@font-face{font-family:Bricolage Grotesque Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/_astro/bricolage-grotesque-vietnamese-wght-normal.BUzh504Q.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Bricolage Grotesque Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/_astro/bricolage-grotesque-latin-ext-wght-normal.CcLUaPy7.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Bricolage Grotesque Variable;font-style:normal;font-display:swap;font-weight:200 800;src:url(/_astro/bricolage-grotesque-latin-wght-normal.DLoelf7F.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-cyrillic-ext-wght-normal.BOeWTOD4.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-cyrillic-wght-normal.DqGufNeO.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-greek-ext-wght-normal.DlzME5K_.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-greek-wght-normal.CkhJZR-_.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-vietnamese-wght-normal.CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-latin-ext-wght-normal.DO1Apj_S.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/_astro/inter-latin-wght-normal.Dx4kXJAl.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--font-display:"Bricolage Grotesque Variable", ui-sans-serif, system-ui, sans-serif;--font-text:"Inter Variable", ui-sans-serif, system-ui, sans-serif;--bg:#f6f3ec;--surface:#fffdf8;--surface-2:#efebe1;--ink:#1c1f1a;--muted:#53594f;--line:#ddd7c9;--line-strong:#b9b2a1;--brand:#14532d;--brand-ink:#fffdf8;--brand-soft:color-mix(in srgb, var(--brand) 12%, transparent);--positive:#15803d;--negative:#b93815;--warning:#a16207;--focus:#2563eb;--focus-ring:#2563eb33;--scrim:#0f120d73;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-7:32px;--space-8:48px;--text-xs:.75rem;--text-sm:.8125rem;--text-base:.9375rem;--text-md:1.0625rem;--text-lg:1.25rem;--text-xl:1.6rem;--text-2xl:clamp(1.5rem, 1.2rem + 1.1vw, 2rem);--leading:1.55;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-pill:999px;--shadow-1:0 1px 2px #1c1f1a0f, 0 4px 16px #1c1f1a0d;--shadow-2:0 20px 60px #00000040;--z-sticky:10;--z-nav:20;--z-sheet:40;--z-toast:60;--dur-fast:.12s;--dur:.2s;--dur-slow:.35s;--ease:cubic-bezier(.2, .8, .2, 1);--control-h:38px;--sidebar:252px;--tabbar-h:64px;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#11140f;--surface:#181c16;--surface-2:#232920;--ink:#eceee6;--muted:#b5bcae;--line:#2f362b;--line-strong:#4a5245;--brand:#4ade80;--brand-ink:#0b1a10;--brand-soft:color-mix(in srgb, var(--brand) 16%, transparent);--positive:#4ade80;--negative:#fb923c;--warning:#fbbf24;--focus:#93c5fd;--focus-ring:#93c5fd40;--scrim:#0009;--shadow-1:0 1px 2px #0006;--shadow-2:0 20px 60px #0009;color-scheme:dark}}@media (width<=640px){:root{--control-h:44px}}*,:before,:after{box-sizing:border-box}@view-transition{navigation:auto}html{-webkit-text-size-adjust:100%;scrollbar-gutter:stable}body{background:var(--bg);color:var(--ink);font:400 var(--text-base) / var(--leading) var(--font-text);font-feature-settings:"tnum" 1, "cv11" 1;margin:0}h1,h2,h3{font-family:var(--font-display);letter-spacing:-.02em;margin:0 0 .5em;line-height:1.15}h1{font-size:var(--text-2xl);font-weight:700}h2{font-size:var(--text-md);font-weight:650}h3{font-size:var(--text-base);font-weight:650}a{color:var(--brand)}p{margin:0 0 1em}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}[hidden]{display:none!important}html.auth-check body{visibility:hidden}.muted{color:var(--muted)}.small{font-size:var(--text-sm)}.num{font-variant-numeric:tabular-nums;white-space:nowrap}.income,.positive{color:var(--positive)}.spend,.negative{color:var(--negative)}.right{text-align:right}.row{gap:var(--space-2);flex-wrap:wrap;align-items:center;display:flex}.row-end{justify-content:flex-end}.spacer{flex:1}.stack>*+*{margin-top:var(--space-4)}.stack-sm>*+*{margin-top:var(--space-2)}.visually-hidden{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.btn{justify-content:center;align-items:center;gap:var(--space-2);min-height:var(--control-h);border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:var(--radius-pill);padding:0 var(--space-4);font:550 var(--text-sm) / 1.2 var(--font-text);white-space:nowrap;cursor:pointer;transition:background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);text-decoration:none;display:inline-flex}.btn:hover{border-color:var(--line-strong)}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.55;cursor:progress}.btn svg{flex:none;width:16px;height:16px}.btn-primary{background:var(--brand);border-color:var(--brand);color:var(--brand-ink)}.btn-primary:hover{filter:brightness(1.08);border-color:var(--brand)}.btn-danger{background:var(--negative);border-color:var(--negative);color:#fff}.btn-danger:hover{filter:brightness(1.08);border-color:var(--negative)}.btn-ghost{background:0 0;border-color:#0000}.btn-ghost:hover{background:var(--surface-2);border-color:#0000}.btn-ghost.btn-danger{color:var(--negative);background:0 0}.btn-ghost.btn-danger:hover{background:color-mix(in srgb, var(--negative) 10%, transparent)}.btn-sm{min-height:32px;padding:0 var(--space-3)}.btn-icon{width:var(--control-h);padding:0}.btn-sm.btn-icon{width:32px}@media (width<=640px){.btn-sm{min-height:40px}.btn-sm.btn-icon{width:40px}}input,select,textarea{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);padding:0 var(--space-3);min-height:var(--control-h);min-width:0;max-width:100%}textarea{padding:var(--space-2) var(--space-3)}input:focus,select:focus,textarea:focus{border-color:var(--focus);box-shadow:0 0 0 3px var(--focus-ring);outline:none}input[aria-invalid=true],select[aria-invalid=true]{border-color:var(--negative)}input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--brand);cursor:pointer;margin:0}input[type=file]{padding:var(--space-2)}.field{gap:var(--space-1);align-content:start;min-width:0;display:grid}.field>span:first-child,.field-label{font-size:var(--text-sm);color:var(--muted);font-weight:550}.field input,.field select,.field textarea{width:100%}.field-hint{font-size:var(--text-xs);color:var(--muted)}.field-error{font-size:var(--text-xs);color:var(--negative);font-weight:550}.field-error:empty{display:none}.field-inline{gap:var(--space-2);display:flex}.check{cursor:pointer;place-items:center;min-width:32px;min-height:32px;display:inline-grid}.form{gap:var(--space-4);display:grid}.form-row{gap:var(--space-3);grid-template-columns:repeat(var(--cols,2), minmax(0, 1fr));align-items:start;display:grid}.form-row.cols-3{--cols:3}.form-row.cols-4{--cols:4}.form-actions{gap:var(--space-2);flex-wrap:wrap;justify-content:flex-end;display:flex}.form-inline{gap:var(--space-3);flex-wrap:wrap;align-items:end;display:flex}.form-inline>.field{flex:180px}@media (width<=640px){.form-row,.form-row.cols-3,.form-row.cols-4{--cols:1}.form-row.keep-2{--cols:2}}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:var(--space-4) var(--space-5);box-shadow:var(--shadow-1);min-width:0}.card-head{align-items:center;gap:var(--space-2);margin-bottom:var(--space-3);flex-wrap:wrap;display:flex}.card-head h2{margin:0}.card-head .spacer{flex:1}.order-last{order:1}.card-danger{border-color:var(--negative)}.card-fill{flex-direction:column;display:flex}.card-fill>.slot-chart{flex:1}.grid{gap:var(--space-4);display:grid}.grid-kpi{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-kpi.cols-2,.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}@media (width<=1000px){.grid-kpi{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:minmax(0,1fr)}}.kpi{gap:var(--space-1);display:grid}.kpi .label{font-size:var(--text-xs);color:var(--muted);text-transform:uppercase;letter-spacing:.04em;font-weight:600}.kpi .value{font:700 var(--text-xl) / 1.2 var(--font-display);font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;min-height:1.2em;overflow:hidden}.kpi .sub{font-size:var(--text-sm);color:var(--muted);min-height:1.55em}@media (width<=640px){.grid-kpi{gap:var(--space-3)}.kpi{padding:var(--space-3) var(--space-4)}.kpi .value{font-size:var(--text-lg)}}.badge{align-items:center;gap:var(--space-1);padding:2px var(--space-2);border-radius:var(--radius-pill);background:var(--surface-2);color:var(--ink);font-size:var(--text-xs);white-space:nowrap;font-weight:550;display:inline-flex}.badge-brand{background:var(--brand-soft)}.badge-positive{background:color-mix(in srgb, var(--positive) 16%, transparent);color:var(--positive)}.badge-warning{background:color-mix(in srgb, var(--warning) 18%, transparent);color:var(--warning)}.badge-negative{background:color-mix(in srgb, var(--negative) 16%, transparent);color:var(--negative)}.chips{gap:var(--space-2);flex-wrap:wrap;display:flex}.chip-x{width:24px;height:24px;color:inherit;cursor:pointer;opacity:.7;background:0 0;border:0;border-radius:50%;place-items:center;margin:-4px -6px -4px 0;font-size:1rem;line-height:1;display:inline-grid}.chip-x:hover{opacity:1;color:var(--negative);background:var(--surface)}.plain-list{margin:0;padding:0;list-style:none;display:grid}.plain-list>li{padding:var(--space-2) 0;border-bottom:1px solid var(--line)}.plain-list>li:last-child{border-bottom:0}.recent-main{justify-content:space-between;gap:var(--space-3);font-size:var(--text-sm);display:flex}.recent-desc{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.empty{color:var(--muted);padding:var(--space-6) 0;text-align:center;margin:0}.empty .btn{margin-top:var(--space-3)}.error-state{color:var(--negative)}.skeleton{border-radius:var(--radius-sm);background:linear-gradient(90deg, var(--surface-2) 30%, color-mix(in srgb, var(--surface-2) 50%, var(--surface)) 50%, var(--surface-2) 70%);background-size:300% 100%;animation:1.4s ease-in-out infinite shimmer;display:block}.skeleton-text{width:60%;height:1em}.skeleton-value{vertical-align:middle;width:6ch;height:1em;display:inline-block}.skeleton-row{height:44px;margin-bottom:var(--space-2)}.skeleton-block{height:100%;min-height:inherit}@keyframes shimmer{0%{background-position:100% 0}to{background-position:0 0}}.slot-chart{flex-direction:column;min-height:280px;display:flex}.slot-list{min-height:280px}.slot-table{min-height:360px}.slot-short{min-height:160px}.table-wrap{margin:0 calc(-1 * var(--space-5));padding:0 var(--space-5);overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:var(--text-sm)}th{text-align:left;font-weight:600;font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:var(--space-2);border-bottom:1px solid var(--line);white-space:nowrap}td{padding:var(--space-2);border-bottom:1px solid var(--line);vertical-align:middle;height:48px}tr:last-child td{border-bottom:0}th.right,td.right{text-align:right}td.desc{overflow-wrap:anywhere;max-width:420px}td.shrink,th.shrink{white-space:nowrap;width:1%}td select{min-height:32px;padding:0 var(--space-2);font-size:var(--text-sm);max-width:190px}tr[data-muted=true] td{opacity:.45}tr.is-removing td{opacity:.35;transition:opacity var(--dur)}tfoot td{border-top:1px solid var(--line);border-bottom:0;font-weight:600}.cell-sub{color:var(--muted);font-size:var(--text-xs);display:block}@media (width<=640px){.table-wrap{margin:0;padding:0;overflow:visible}.table-cards thead{display:none}.table-cards,.table-cards tbody,.table-cards tfoot{display:block}.table-cards tr{align-items:center;row-gap:var(--space-1);padding:var(--space-3) 0;border-bottom:1px solid var(--line);grid-template-columns:auto minmax(0,1fr) auto;display:grid}.table-cards tr:last-child{border-bottom:0}.table-cards td{text-align:left;border:0;grid-column:2/4;min-width:0;max-width:none;height:auto;padding:0;display:block}.table-cards td:empty{display:none}.table-cards td[data-cell=check]{margin-right:var(--space-2);grid-area:1/1/span 3;align-self:start}.table-cards td[data-cell=primary]{grid-area:1/2;font-weight:550}.table-cards td[data-cell=amount]{text-align:right;margin-left:var(--space-3);grid-area:1/3;font-weight:600}.table-cards td[data-cell=meta]{color:var(--muted);font-size:var(--text-xs)}.table-cards td[data-cell=actions]{justify-self:end}.table-cards td[data-cell=actions] .row{justify-content:flex-end}.table-cards td[data-label]:not([data-cell]):before{content:attr(data-label) ": ";color:var(--muted);font-size:var(--text-xs)}.table-cards td select{max-width:100%}.table-cards td[colspan]{grid-column:1/-1}}.chart-wrap{flex-direction:column;flex:1;min-height:0;margin:0;display:flex}.chart-box{flex:1;min-height:220px;position:relative}.chart{width:100%;height:100%;display:block;position:absolute;inset:0}.chart .grid-line{stroke:var(--line);stroke-width:1px}.chart .axis{fill:var(--muted);font-size:12px;font-family:var(--font-text)}.chart .bar-income{fill:var(--positive)}.chart .bar-spend{fill:var(--negative)}.legend{gap:var(--space-4);font-size:var(--text-sm);color:var(--muted);margin-top:var(--space-2);display:flex}.key:before{content:"";width:10px;height:10px;margin-right:var(--space-2);border-radius:3px;display:inline-block}.key-income:before{background:var(--positive)}.key-spend:before{background:var(--negative)}.bar-list{gap:var(--space-3);margin:0;padding:0;list-style:none;display:grid}.bar-row{justify-content:space-between;align-items:center;gap:var(--space-3);font-size:var(--text-sm);margin-bottom:var(--space-1);display:flex}.bar-row>:first-child{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.bar-row a{color:inherit;text-decoration:none}.bar-row a:hover{text-decoration:underline}.bar-track{background:var(--surface-2);border-radius:var(--radius-pill);height:8px;overflow:hidden}.bar-fill{background:var(--brand);border-radius:inherit;width:0;height:100%;transition:width var(--dur-slow) var(--ease);display:block}.bar-fill[data-over=true]{background:var(--negative)}.bar-fill[data-warn=true]{background:var(--warning)}.tabs{gap:var(--space-1);border-bottom:1px solid var(--line);margin-bottom:var(--space-4);display:flex;overflow-x:auto}.tabs [role=tab]{color:var(--muted);font:550 var(--text-sm) / 1 var(--font-text);padding:var(--space-3) var(--space-3);cursor:pointer;white-space:nowrap;background:0 0;border:0;border-bottom:2px solid #0000;min-height:40px}.tabs [role=tab][aria-selected=true]{color:var(--ink);border-bottom-color:var(--brand)}.app{grid-template-columns:var(--sidebar) minmax(0, 1fr);min-height:100dvh;display:grid}.sidebar-col{background:var(--surface);border-right:1px solid var(--line)}.sidebar{gap:var(--space-6);height:100dvh;padding:var(--space-5) var(--space-3);flex-direction:column;display:flex;position:sticky;top:0;overflow-y:auto}.brand{align-items:center;gap:var(--space-2);font:700 .95rem/1.15 var(--font-display);color:var(--ink);padding:0 var(--space-2);white-space:nowrap;text-decoration:none;display:flex;overflow:hidden}.brand span{text-overflow:ellipsis;overflow:hidden}.nav{gap:2px;display:grid}.nav a{align-items:center;gap:var(--space-3);min-height:40px;padding:0 var(--space-3);border-radius:var(--radius-sm);color:var(--muted);font-weight:550;font-size:var(--text-sm);text-decoration:none;display:flex}.nav a:hover{background:var(--surface-2);color:var(--ink)}.nav a[aria-current=page]{background:var(--brand);color:var(--brand-ink)}.nav svg,.tabbar svg,.sheet-nav svg{flex:none;width:18px;height:18px}.nav-sep{background:var(--line);height:1px;margin:var(--space-2) var(--space-3)}.user-box{align-items:center;gap:var(--space-2);padding:var(--space-1);font-size:var(--text-sm);margin-top:auto;display:flex}.avatar{background:var(--surface-2);width:32px;height:32px;color:var(--muted);font-weight:650;font-size:var(--text-sm);border-radius:50%;flex:none;place-items:center;display:grid;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.user-box .who{flex:1;min-width:0}.user-box .who span{text-overflow:ellipsis;white-space:nowrap;min-height:1.4em;display:block;overflow:hidden}.main{padding:var(--space-6) clamp(var(--space-4), 3vw, 40px) var(--space-8);width:100%;min-width:0;max-width:1200px}.page-head{align-items:end;gap:var(--space-4);margin-bottom:var(--space-5);flex-wrap:wrap;display:flex}.page-head h1{margin:0}.page-head p{margin:var(--space-1) 0 0}.page-actions{gap:var(--space-2);flex-wrap:wrap;align-items:center;display:flex}.tabbar{display:none}@media (width<=860px){.app{grid-template-columns:minmax(0,1fr)}.sidebar-col{display:none}.main{padding:var(--space-4) var(--space-4) calc(var(--tabbar-h) + var(--space-6) + env(safe-area-inset-bottom))}.page-head{margin-bottom:var(--space-4)}.tabbar{z-index:var(--z-nav);height:calc(var(--tabbar-h) + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);background:var(--surface);border-top:1px solid var(--line);view-transition-name:tabbar;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;inset:auto 0 0}.tabbar a,.tabbar button{color:var(--muted);font:550 .7rem/1 var(--font-text);cursor:pointer;background:0 0;border:0;align-content:center;place-items:center;gap:2px;padding:0;text-decoration:none;display:grid}.tabbar svg{width:22px;height:22px}.tabbar [aria-current=page]{color:var(--brand)}}.sheet-user{margin-bottom:var(--space-3)}.sheet-nav{margin:0 0 var(--space-4);gap:2px;display:grid}.sheet-nav a,.sheet-nav button{align-items:center;gap:var(--space-3);min-height:48px;padding:0 var(--space-3);border-radius:var(--radius-sm);color:var(--ink);font:550 var(--text-base) / 1 var(--font-text);cursor:pointer;background:0 0;border:0;width:100%;text-decoration:none;display:flex}.sheet-nav a[aria-current=page]{background:var(--brand-soft)}.sheet-nav a:hover,.sheet-nav button:hover{background:var(--surface-2)}.filters-toggle{display:none}.filters{gap:var(--space-3);grid-template-columns:minmax(180px,2fr) repeat(4,minmax(0,1fr)) auto;align-items:end;display:grid}@media (width<=1000px){.filters{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=640px){.filters-toggle{display:inline-flex}.filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);display:none}.filters.is-open{display:grid}.filters>.field:first-child{grid-column:1/-1}}dialog{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--surface);color:var(--ink);padding:var(--space-5);width:min(560px, calc(100vw - 2 * var(--space-4)));max-height:calc(100dvh - 2 * var(--space-4));box-shadow:var(--shadow-2);overflow-y:auto}dialog::backdrop{background:var(--scrim)}dialog h2{font-size:var(--text-lg)}dialog[open]{animation:dialog-in var(--dur) var(--ease)}.dialog-sm{width:min(420px, calc(100vw - 2 * var(--space-4)))}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)scale(.98)}}@media (width<=640px){dialog.sheet,dialog.dialog-form{border-radius:var(--radius-lg) var(--radius-lg) 0 0;width:100%;max-width:100%;padding-bottom:calc(var(--space-5) + env(safe-area-inset-bottom));border-bottom:0;margin:auto 0 0}dialog.sheet[open],dialog.dialog-form[open]{animation:sheet-in var(--dur) var(--ease)}}@keyframes sheet-in{0%{transform:translateY(100%)}}.toasts{left:50%;bottom:var(--space-5);z-index:var(--z-toast);gap:var(--space-2);width:max-content;max-width:calc(100vw - 2 * var(--space-4));pointer-events:none;display:grid;position:fixed;transform:translate(-50%)}@media (width<=860px){.toasts{bottom:calc(var(--tabbar-h) + var(--space-3) + env(safe-area-inset-bottom))}}.toast{align-items:center;gap:var(--space-3);background:var(--ink);color:var(--bg);padding:var(--space-2) var(--space-2) var(--space-2) var(--space-4);border-radius:var(--radius-pill);min-height:44px;font-weight:550;font-size:var(--text-sm);box-shadow:var(--shadow-2);pointer-events:auto;animation:toast-in var(--dur) var(--ease);display:flex}.toast:not(:has(button)){padding-right:var(--space-4)}.toast[data-kind=error]{background:var(--negative);color:#fff}.toast button{background:color-mix(in srgb, currentColor 16%, transparent);color:inherit;font:650 var(--text-sm) / 1 var(--font-text);min-height:32px;padding:0 var(--space-3);border-radius:var(--radius-pill);cursor:pointer;border:0}.toast.is-leaving{opacity:0;transition:opacity var(--dur), transform var(--dur);transform:translateY(8px)}@keyframes toast-in{0%{opacity:0;transform:translateY(8px)}}.dropzone{place-items:center;gap:var(--space-2);text-align:center;padding:var(--space-7) var(--space-4);border:2px dashed var(--line-strong);border-radius:var(--radius-md);background:var(--bg);cursor:pointer;transition:border-color var(--dur-fast), background var(--dur-fast);display:grid;position:relative}.dropzone:hover,.dropzone.is-over{border-color:var(--brand);background:var(--brand-soft)}.dropzone:focus-within{border-color:var(--focus)}.dropzone input[type=file]{opacity:0;width:1px;height:1px;position:absolute}.dropzone svg{width:28px;height:28px;color:var(--muted)}.dropzone .file-name{overflow-wrap:anywhere;font-weight:600}details.collapse>summary{cursor:pointer;align-items:center;gap:var(--space-2);min-height:40px;list-style:none;display:flex}details.collapse>summary::-webkit-details-marker{display:none}details.collapse>summary:after{content:"";border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);width:8px;height:8px;transition:transform var(--dur-fast);margin-left:auto;transform:rotate(45deg)}details.collapse[open]>summary:after{transform:rotate(225deg)}details.collapse>summary h2{margin:0}details.collapse>summary{flex-wrap:wrap}.cat-body{margin-top:var(--space-3)}.kw-form{flex-wrap:nowrap;align-items:start}.kw-field{flex:1}.pair-badge{margin-left:var(--space-2)}.pair-side{font-size:var(--text-sm);overflow-wrap:anywhere}.reason{color:var(--positive);font-size:var(--text-xs);display:block}tr[tabindex]:focus{outline:none}tr[tabindex]:focus-visible td{background:var(--brand-soft)}tr[tabindex]:focus-visible td:first-child{box-shadow:inset 3px 0 0 var(--focus)}.typeahead{position:relative}.typeahead input{width:100%}.typeahead-list,.palette-list{padding:var(--space-1);margin:0;list-style:none;overflow-y:auto}.typeahead-list{z-index:var(--z-sheet);background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-sm);max-height:260px;box-shadow:var(--shadow-2);position:absolute;inset:calc(100% + 4px) 0 auto}.typeahead-list [role=option],.palette-list [role=option]{justify-content:space-between;align-items:center;gap:var(--space-3);min-height:36px;padding:var(--space-1) var(--space-3);border-radius:var(--radius-sm);cursor:pointer;display:flex}.typeahead-list [aria-selected=true],.palette-list [aria-selected=true]{background:var(--brand-soft)}.picker{overflow:visible}dialog.palette{width:min(600px, calc(100vw - 2 * var(--space-4)));margin-top:12vh;padding:0}.palette-input{border:0;border-bottom:1px solid var(--line);width:100%;min-height:52px;padding:0 var(--space-4);font-size:var(--text-md);border-radius:0}.palette-input:focus{box-shadow:none}.palette-list{max-height:min(420px,60vh)}.palette-group{padding:var(--space-2) var(--space-3) var(--space-1);font-size:var(--text-xs);text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:600}dialog.help{width:min(640px, calc(100vw - 2 * var(--space-4)))}.help-group{margin-bottom:var(--space-4)}.help-group h3{margin-bottom:var(--space-2)}.help-group td{height:auto;padding:var(--space-1) var(--space-2)}.help-group td:first-child{white-space:nowrap;width:40%}kbd{border:1px solid var(--line-strong);background:var(--bg);font:600 var(--text-xs) / 1.4 var(--font-text);border-bottom-width:2px;border-radius:6px;padding:1px 6px;display:inline-block}::view-transition-old(root),::view-transition-new(root){animation-duration:var(--dur)}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}@view-transition{navigation:none}}
