.mg-root{--mg-bg:#fff;--mg-surface:#f4f4f8;--mg-surface-2:#fff;--mg-line:#e4e4ec;--mg-text:#17171f;--mg-sub:#6b6b7b;--mg-accent:#6d4aff;--mg-accent-ink:#fff;--mg-accent-soft:#eee9ff;--mg-hit:#0e9f6e;--mg-hit-soft:#e3f7ee;--mg-miss:#d63a50;--mg-miss-soft:#fdecee;--mg-shadow:0 8px 24px #281e5a2e;--mg-radius:16px;color:var(--mg-text);text-align:left;font-variant-numeric:tabular-nums;-webkit-tap-highlight-color:transparent;font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,Yu Gothic UI,sans-serif}@media (prefers-color-scheme:dark){.mg-root{--mg-bg:#16161b;--mg-surface:#24242c;--mg-surface-2:#1c1c22;--mg-line:#34343f;--mg-text:#f1f1f6;--mg-sub:#a3a3b4;--mg-accent:#9d85ff;--mg-accent-ink:#15121f;--mg-accent-soft:#352d57;--mg-hit:#3fd39a;--mg-hit-soft:#1d3a30;--mg-miss:#ff7486;--mg-miss-soft:#452229;--mg-shadow:0 8px 24px #00000080}}body[data-screen=magireko]{background:#fff}@media (prefers-color-scheme:dark){body[data-screen=magireko]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;background:#16161b}}.mg-screen{box-sizing:border-box;width:min(560px,100vw - 16px);margin:0 auto;padding:4px 4px 112px}.mg-root button.mg-btn{min-width:44px;min-height:44px;font:inherit;color:var(--mg-text);background:var(--mg-surface);cursor:pointer;touch-action:manipulation;border:1px solid #0000;border-radius:12px;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:16px;font-weight:600;transition:transform 80ms,background-color .15s,opacity .15s;display:inline-flex}.mg-root button.mg-btn:hover{border-color:#0000}.mg-root button.mg-btn:active:not(:disabled){transform:scale(.97)}.mg-root button.mg-btn:disabled{opacity:.4;cursor:default}.mg-root button.mg-btn:focus-visible{outline:2px solid var(--mg-accent);outline-offset:2px}.mg-root button.mg-btn-icon{width:44px;padding:0}.mg-root button.mg-btn-ghost{background:0 0}.mg-root button.mg-btn-accent{background:var(--mg-accent);color:var(--mg-accent-ink)}.mg-root button.mg-btn-hit{background:var(--mg-hit);color:#fff}.mg-root button.mg-btn-miss,.mg-root button.mg-btn-danger{background:var(--mg-miss-soft);color:var(--mg-miss)}.mg-header{justify-content:space-between;align-items:center;gap:12px;padding:8px 4px 12px;display:flex}.mg-title{letter-spacing:.01em;margin:0;font-size:24px;font-weight:800;line-height:1.2}.mg-caption{color:var(--mg-sub);margin:2px 0 0;font-size:13px}.mg-hero{background:linear-gradient(135deg, var(--mg-accent), #b45cff);color:#fff;border-radius:20px;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:20px;padding:16px;display:grid}.mg-hero-item{min-width:0}.mg-hero-label{opacity:.85;font-size:12px}.mg-hero-value{white-space:nowrap;font-size:28px;font-weight:800;line-height:1.15}.mg-hero-value small{margin-left:2px;font-size:14px;font-weight:600}.mg-month{margin-bottom:12px}.mg-root button.mg-month-head{width:100%;color:var(--mg-sub);background:0 0;justify-content:space-between;padding:0 4px;font-size:15px}.mg-month-count{background:var(--mg-surface);border-radius:999px;margin-left:8px;padding:2px 8px;font-size:12px;font-weight:600}.mg-chevron{transition:transform .2s}.mg-chevron.is-open{transform:rotate(90deg)}.mg-list{border-radius:var(--mg-radius);background:var(--mg-surface);margin:4px 0 0;padding:0;list-style:none;overflow:hidden}.mg-list>li+li{border-top:1px solid var(--mg-line)}.mg-row{align-items:center;gap:4px;padding-right:8px;display:flex}.mg-root button.mg-row-main{text-align:left;background:0 0;border-radius:0;flex:1;justify-content:flex-start;gap:14px;min-width:0;min-height:64px;padding:10px 8px 10px 14px}.mg-root button.mg-row-main:active:not(:disabled){background:var(--mg-line);transform:none}.mg-day{background:var(--mg-accent-soft);width:44px;height:44px;color:var(--mg-accent);border-radius:12px;flex:none;place-items:center;font-size:20px;font-weight:800;display:grid}.mg-row-text{flex-direction:column;min-width:0;display:flex}.mg-row-title{font-size:16px;font-weight:600}.mg-row-sub{color:var(--mg-sub);font-size:13px;font-weight:400}.mg-row-end{color:var(--mg-sub);margin-left:auto}.mg-today{background:var(--mg-accent);color:var(--mg-accent-ink);vertical-align:2px;border-radius:6px;margin-left:6px;padding:1px 6px;font-size:11px;font-weight:700}.mg-state{border-radius:var(--mg-radius);background:var(--mg-surface);text-align:center;color:var(--mg-sub);flex-direction:column;align-items:center;gap:12px;padding:40px 16px;display:flex}.mg-state-icon{color:var(--mg-accent);font-size:36px}.mg-state-title{color:var(--mg-text);margin:0;font-size:17px;font-weight:700}.mg-state p{margin:0;font-size:14px}.mg-skeleton{background:linear-gradient(90deg, var(--mg-surface) 0%, var(--mg-line) 50%, var(--mg-surface) 100%);background-size:200% 100%;border-radius:12px;height:64px;margin-bottom:8px;animation:1.2s ease-in-out infinite mg-shimmer}@keyframes mg-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}@media (prefers-reduced-motion:reduce){.mg-skeleton{animation:none}}.mg-root button.mg-fab{z-index:900;right:max(16px,50vw - 264px);bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px) + 16px);background:var(--mg-accent);min-height:56px;color:var(--mg-accent-ink);box-shadow:var(--mg-shadow);border-radius:999px;padding:0 22px;font-size:16px;position:fixed}.mg-sheet .ant-drawer-content{background:var(--mg-bg);border-radius:20px 20px 0 0}.mg-sheet .ant-drawer-content-wrapper{max-width:560px;margin:0 auto}.mg-sheet .ant-drawer-body{flex-direction:column;padding:0;display:flex}.mg-sheet-grip{background:var(--mg-line);border-radius:999px;width:40px;height:5px;margin:8px auto 0}.mg-sheet-head{align-items:center;gap:8px;padding:8px 12px 8px 20px;display:flex}.mg-sheet-title{margin:0;font-size:20px;font-weight:800}.mg-sheet-head .mg-caption{margin:0}.mg-sheet-head-text{flex:1;min-width:0}.mg-sheet-scroll{overscroll-behavior:contain;flex:1;padding:4px 16px 16px;overflow-y:auto}.mg-stats{grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px;display:grid}.mg-stat{background:var(--mg-surface);border-radius:14px;min-width:0;padding:12px}.mg-stat-label{color:var(--mg-sub);font-size:12px}.mg-stat-value{white-space:nowrap;font-size:22px;font-weight:800;line-height:1.2}.mg-stat-value small{color:var(--mg-sub);margin-left:2px;font-size:13px;font-weight:600}.mg-card{border-radius:var(--mg-radius);background:var(--mg-surface);margin-bottom:12px;padding:12px}.mg-card-title{color:var(--mg-sub);margin:0 0 8px;font-size:14px;font-weight:700}.mg-chips{flex-wrap:wrap;gap:6px;display:flex}.mg-chip{background:var(--mg-hit-soft);color:var(--mg-hit);border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-size:14px;font-weight:600;display:inline-flex}.mg-chip.is-current{color:var(--mg-sub);border:1px dashed var(--mg-line);background:0 0}.mg-entry{border-top:1px solid var(--mg-line);background:var(--mg-surface-2);padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px))}.mg-stepper{grid-template-columns:56px 1fr 56px;align-items:center;gap:8px;margin-bottom:10px;display:grid}.mg-root button.mg-step{background:var(--mg-surface);height:56px;padding:0;font-size:28px;font-weight:500}.mg-count{flex-direction:column;align-items:center;display:flex}.mg-count input{box-sizing:border-box;border:1px solid var(--mg-line);background:var(--mg-bg);width:100%;max-width:160px;height:56px;color:var(--mg-text);text-align:center;font:inherit;font-variant-numeric:tabular-nums;border-radius:12px;font-size:30px;font-weight:800}.mg-count input:focus{outline:2px solid var(--mg-accent);outline-offset:0;border-color:#0000}.mg-entry-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.mg-root .mg-entry-actions button.mg-btn{min-height:52px}.mg-entry-hint{color:var(--mg-sub);text-align:center;margin:8px 0 0;font-size:12px}:root{--nav-height:60px}@media (width<=575px){:root{--nav-height:56px}}.pati-page{box-sizing:border-box;min-height:calc(100vh - 16px);padding-bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px))}.tabbar{--tab-bg:#ffffffeb;--tab-line:#e4e4ec;--tab-text:#6b6b7b;--tab-active:#6d4aff;--tab-active-soft:#eee9ff;z-index:1000;padding-bottom:env(safe-area-inset-bottom,0px);background:var(--tab-bg);border-top:1px solid var(--tab-line);-webkit-backdrop-filter:saturate(180%)blur(16px);font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,Yu Gothic UI,sans-serif;position:fixed;bottom:0;left:0;right:0}@media (prefers-color-scheme:dark){body[data-screen=magireko] .tabbar{--tab-bg:#1c1c22eb;--tab-line:#3b3b46;--tab-text:#a3a3b4;--tab-active:#9d85ff;--tab-active-soft:#352d57}}.tabbar-inner{max-width:560px;height:var(--nav-height);margin:0 auto;display:flex}.tabbar button.tabbar-item{min-width:0;min-height:44px;color:var(--tab-text);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;background:0 0;border:none;border-radius:0;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;padding:0;display:flex}.tabbar button.tabbar-item:hover{border-color:#0000}.tabbar button.tabbar-item:focus-visible{outline:2px solid var(--tab-active);outline-offset:-4px}.tabbar-icon{border-radius:999px;place-items:center;width:56px;height:30px;font-size:20px;transition:background-color .2s;display:grid}.tabbar-label{white-space:nowrap;font-size:11px;font-weight:500;line-height:1.2}.tabbar button.tabbar-item.is-active{color:var(--tab-active)}.tabbar button.tabbar-item.is-active .tabbar-icon{background:var(--tab-active-soft)}.tabbar button.tabbar-item.is-active .tabbar-label{font-weight:700}
