:root{--navy: #23395b;--blue: #6b8bc3;--blue-light: #9db4db;--tint: #dce4f2;--tint-soft: #eef2f9;--amber: #f4b942;--amber-soft: #fffbef;--amber-line: #f0d58c;--amber-ink: #7a5600;--bg: #f6f7fb;--surface: #ffffff;--ink: #1f2633;--muted: #5b6475;--line: #e3e7ef;--field-line: #cfd6e2;--ok: #2e7d55;--bad: #b3412f;--font-body: "Assistant", "Segoe UI", Arial, sans-serif;--font-display: "Fredoka", "Assistant", system-ui, sans-serif;--radius: 12px;--radius-lg: 16px;--side-width: 248px}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--font-body);font-size:16px;line-height:1.5;-webkit-tap-highlight-color:transparent}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--amber);outline-offset:2px}h1,h2,h3{margin:0;text-wrap:balance}p{margin:0}a{color:var(--navy)}.shell{min-height:100%;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:4px;background:var(--navy);color:#fff;padding:calc(8px + env(safe-area-inset-top,0px)) max(10px,env(safe-area-inset-right,0px)) 8px max(10px,env(safe-area-inset-left,0px))}.brand{display:flex;align-items:center;gap:6px;direction:ltr;font-family:var(--font-display);font-weight:600;font-size:1.1rem;color:#fff;text-decoration:none;margin-inline-start:4px}.brand svg{width:28px;height:28px}.brand .buddy{color:var(--amber);font-weight:500}.topbar .spacer{flex:1}.iconbtn{position:relative;background:none;border:0;color:inherit;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:48px;min-height:44px;padding:2px 4px;border-radius:10px;font-size:.68rem}.iconbtn svg{width:22px;height:22px}.iconbtn:hover{background:#ffffff1a}.badge{position:absolute;top:0;inset-inline-end:6px;background:var(--amber);color:var(--ink);font-size:.65rem;font-weight:700;min-width:17px;height:17px;border-radius:9px;display:grid;place-items:center;padding:0 4px}.layout{flex:1;display:flex}.main{flex:1;min-width:0;display:flex;flex-direction:column}.content{flex:1;width:100%;max-width:640px;margin:0 auto;padding:16px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:14px}.footer{display:flex;justify-content:center;gap:14px;padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px));font-size:.8rem}.footer a{color:var(--muted)}.side{display:none}.dim{position:fixed;top:0;right:0;bottom:0;left:0;background:#10141b73;z-index:30;border:0}.drawer{position:fixed;top:0;bottom:0;inset-inline-start:0;z-index:31;width:min(80vw,300px);background:var(--surface);display:flex;flex-direction:column;box-shadow:0 0 24px #0003;overflow-y:auto}.menu-head{background:var(--navy);color:#fff;padding:calc(28px + env(safe-area-inset-top,0px)) 16px 16px;display:flex;flex-direction:column;gap:6px}.menu-head .avatar{background:#fff}.menu-head b{font-size:1.05rem}.menu-list{list-style:none;margin:0;padding:6px 0;flex:1}.menu-list button,.menu-list a{width:100%;display:flex;align-items:center;gap:12px;padding:11px 18px;background:none;border:0;text-align:start;text-decoration:none;color:var(--ink);font-size:.98rem}.menu-list svg{width:20px;height:20px;color:var(--navy);flex:none}.menu-list button:hover,.menu-list a:hover{background:var(--tint-soft)}.menu-list .sep{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}.menu-list .danger,.menu-list .danger svg{color:var(--bad)}.menu-version{font-size:.78rem;color:var(--muted);padding:10px 18px 18px}@media (min-width: 1024px){.topbar .menu-toggle{display:none}.side{display:flex;flex-direction:column;width:var(--side-width);flex:none;background:var(--surface);border-inline-end:1px solid var(--line);position:sticky;top:64px;height:calc(100vh - 64px);overflow-y:auto}.side .menu-head{padding-top:18px}.content{padding-top:28px}}.hello{font-weight:700;font-size:1.25rem}.sub{font-size:.88rem;color:var(--muted);margin-top:-10px}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg);padding:14px;display:flex;flex-direction:column;gap:10px}.card.highlight{background:var(--amber-soft);border-color:var(--amber-line)}.card b{font-size:1rem}.note{display:flex;gap:8px;align-items:flex-start;font-size:.85rem;background:var(--amber-soft);border:1px solid var(--amber-line);border-radius:10px;padding:9px 11px}.note svg{width:17px;height:17px;flex:none;color:var(--amber-ink);margin-top:2px}.inline-note{display:flex;gap:6px;align-items:center;font-size:.86rem;color:var(--amber-ink)}.inline-note svg{width:15px;height:15px;flex:none}.muted{color:var(--muted)}.hint{font-size:.8rem;color:var(--muted)}.error{color:var(--bad);font-size:.85rem}.ok{color:var(--ok);font-size:.85rem;font-weight:700}.btn{display:block;width:100%;border:0;border-radius:12px;padding:12px;min-height:46px;background:var(--navy);color:#fff;font-weight:700;font-size:1rem;text-align:center;text-decoration:none}.btn:disabled{opacity:.45;cursor:not-allowed}.btn.amber{background:var(--amber);color:var(--ink)}.btn.ghost{background:var(--surface);color:var(--navy);border:1.5px solid var(--navy)}.btn.danger{background:var(--bad)}.linkbtn{background:none;border:0;color:var(--navy);font-weight:700;padding:6px;text-decoration:underline;text-underline-offset:3px}.field{display:flex;flex-direction:column;gap:5px}.field label,.label{font-weight:700;font-size:.92rem;color:#3d4552}.input{width:100%;background:var(--surface);border:1px solid var(--field-line);border-radius:10px;padding:11px 12px;font-size:1rem;min-height:46px}.input:focus{border-color:var(--navy);outline:none;box-shadow:0 0 0 3px var(--tint)}.input.ltr{direction:ltr;text-align:right}.check{display:flex;align-items:center;gap:10px;font-size:.95rem}.check input{width:20px;height:20px;accent-color:var(--navy)}.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}.tile{position:relative;background:var(--tint);border:0;border-radius:14px;padding:12px;min-height:86px;display:flex;flex-direction:column;justify-content:space-between;gap:8px;text-align:start;font-weight:700;font-size:.95rem;color:var(--ink);text-decoration:none}.tile svg{width:24px;height:24px;color:var(--navy)}.tile:hover{background:#d2dcee}.avatar{width:44px;height:44px;border-radius:50%;background:var(--tint);color:var(--navy);display:grid;place-items:center;font-weight:700;flex:none}.chips{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid var(--field-line);background:var(--surface);border-radius:999px;padding:7px 14px;font-size:.92rem;min-height:38px}.chip[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}.chip:disabled{color:#9aa1ad;border-style:dashed;cursor:default}.tag-chip{font-size:.78rem;background:#ffffff29;border:1px solid rgba(255,255,255,.3);border-radius:999px;padding:1px 10px}.seg{display:flex;gap:4px;background:#e6eaf2;border-radius:12px;padding:4px}.seg button{flex:1;border:0;background:none;border-radius:9px;padding:9px 4px;font-weight:700;font-size:.92rem;color:#4d5666;min-height:42px}.seg button[aria-pressed=true]{background:var(--navy);color:#fff}.dd{background:var(--surface);border:1px solid var(--field-line);border-radius:12px;overflow:hidden}.dd.open{border-color:var(--navy);box-shadow:0 4px 14px #23395b1f}.dd-head{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px;padding:11px 12px;background:none;border:0;font-weight:700;text-align:start;min-height:46px}.dd-head .placeholder{color:#8a92a1;font-weight:400}.dd.open .dd-head{border-bottom:1px solid var(--line)}.dd-list{list-style:none;margin:0;padding:0}.dd-item{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;background:none;border:0;text-align:start;min-height:44px}.dd-list li+li .dd-item{border-top:1px solid #f0f2f6}.dd-item[aria-selected=true]{background:var(--tint-soft);color:var(--navy);font-weight:700}.dd-item small{display:block;font-size:.8rem;color:var(--muted);font-weight:400}.dd-item .tick{margin-inline-start:auto}.box{width:20px;height:20px;border-radius:5px;border:1.5px solid #aab3c2;flex:none;display:grid;place-items:center}[aria-selected=true] .box,[aria-checked=true] .box{background:var(--navy);border-color:var(--navy)}.box svg{width:13px;height:13px;color:#fff}.opt{width:100%;display:flex;align-items:center;gap:12px;background:var(--surface);border:1.5px solid #dbe1ea;border-radius:12px;padding:12px;text-align:start}.opt[aria-checked=true]{border-color:var(--navy);background:var(--tint-soft)}.opt span small{display:block;font-size:.82rem;color:var(--muted)}.progress{display:flex;gap:5px}.progress i{flex:1;height:6px;border-radius:3px;background:#d5dbe6}.progress i.on{background:var(--amber)}.code-input{letter-spacing:.6em;text-align:center;direction:ltr;font-size:1.4rem;font-weight:700}.titlebar{display:flex;align-items:center;gap:6px;font-weight:700;font-size:1.1rem}.titlebar .back{background:none;border:0;padding:6px;display:grid;place-items:center;color:var(--navy)}.titlebar svg{width:22px;height:22px}.auth{min-height:100%;display:flex;flex-direction:column}.auth .content{justify-content:center}.auth-logo{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px 0 6px}.auth-logo .icon{width:84px;height:84px;border-radius:22px;background:var(--navy);display:grid;place-items:center}.auth-logo .icon svg{width:58px;height:58px}.auth-logo .name{font-family:var(--font-display);font-weight:600;font-size:1.7rem;direction:ltr}.auth-logo .name .buddy{color:#4a6a9e;font-weight:500}.modal-wrap{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;display:grid;place-items:center;padding:16px;background:#10141b73}.modal{background:var(--surface);border-radius:var(--radius-lg);padding:18px;width:min(100%,380px);display:flex;flex-direction:column;gap:12px;box-shadow:0 12px 32px #00000040}.row{display:flex;gap:10px}.row>*{flex:1}.draft-badge{align-self:flex-start;background:#fff1cc;color:var(--amber-ink);font-weight:700;font-size:.8rem;border-radius:6px;padding:2px 8px}.prose{display:flex;flex-direction:column;gap:10px}.prose ol{margin:0;padding-inline-start:22px;display:flex;flex-direction:column;gap:8px}@media (prefers-reduced-motion: no-preference){.btn,.chip,.tile,.seg button{transition:background-color .15s,opacity .15s}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.dd-head svg,.dd-item .tick svg{width:20px;height:20px;flex:none;color:var(--navy)}.dd.open .dd-head svg{transform:rotate(180deg)}.avatar svg{width:30px;height:30px}.shell,.auth{overflow-x:clip}.stack{display:flex;flex-direction:column;gap:12px;min-width:0}.stack.compact{gap:10px}.q{display:flex;flex-direction:column;gap:6px}.q .hint{margin-top:-2px}.req{color:var(--bad);font-weight:700}.titlebar h1{font-size:1.12rem}.progress-wrap{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.progress-wrap .progress{flex-basis:100%}.progress-wrap .hint:last-child{margin-inline-start:auto}.content{gap:12px;padding-top:12px;padding-bottom:16px}.input,.dd-head{min-height:44px;padding:9px 12px}.dd-item{min-height:42px;padding:8px 12px}.chip{min-height:36px;padding:6px 13px}.btn{min-height:46px;padding:11px}.btn.small{width:auto;min-height:38px;padding:7px 14px;font-size:.9rem}.btn.with-icon{display:flex;align-items:center;justify-content:center;gap:8px}.btn.with-icon svg{width:20px;height:20px}.cards{display:flex;flex-direction:column;gap:8px}.opt{padding:10px 12px;min-height:48px}.opt .dot{width:20px;height:20px;border-radius:50%;border:1.5px solid #aab3c2;flex:none}.opt[aria-checked=true] .dot{border:6px solid var(--navy)}.seg{background:none;padding:0;gap:8px}.seg button{background:var(--surface);border:1.5px solid var(--field-line);border-radius:12px;color:var(--ink);min-height:46px}.seg button[aria-pressed=true]{background:var(--navy);border-color:var(--navy);color:#fff}.pw{position:relative}.pw .input{padding-inline-end:48px}.pw-toggle{position:absolute;inset-inline-end:4px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:none;color:var(--muted);display:grid;place-items:center;border-radius:8px}.pw-toggle svg{width:22px;height:22px}.pw-toggle[aria-pressed=true]{color:var(--navy)}.rules{list-style:none;margin:0;padding:8px 10px;background:var(--tint-soft);border-radius:10px;display:grid;gap:2px;font-size:.84rem;color:var(--muted)}.rules li{display:flex;gap:6px}.rules li span{width:1em;text-align:center}.rules li.met{color:var(--ok);font-weight:700}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 18px;font-size:.95rem;cursor:pointer}.switch-row input{width:40px;height:22px;accent-color:var(--navy)}.menu-section{padding:10px 18px 2px;font-size:.78rem;font-weight:700;color:var(--muted);letter-spacing:.02em}.menu-version{color:var(--ink);font-weight:600;font-size:.85rem;border-top:1px solid var(--line);padding:12px 18px calc(16px + env(safe-area-inset-bottom,0px))}.iconbtn{min-width:44px}@media (max-width: 380px){.iconbtn{min-width:38px;padding-inline:2px;font-size:.62rem}.brand{font-size:1rem}}@media (max-width: 340px){.brand-word{display:none}}.dash-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.dash-top h1{font-size:1.25rem}.range,.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}.kpi{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}.kpi span{font-size:.8rem;color:var(--muted)}.kpi b{font-family:var(--font-display);font-weight:600;font-size:1.4rem;font-variant-numeric:tabular-nums}.panels{display:grid;grid-template-columns:1fr;gap:10px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0}.panel h2{font-size:.95rem}.dash-chart{width:100%;height:auto;direction:ltr}.dash-table{width:100%;border-collapse:collapse;font-size:.88rem}.dash-table td{padding:6px 0;border-bottom:1px solid #edf0f5;vertical-align:top}.dash-table tr:last-child td{border-bottom:0}.dash-table .num{text-align:left;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap;padding-inline-start:10px}.dash-table .hidden-row td{color:#8a92a1;font-style:italic}.url{display:block;direction:ltr;text-align:right;font-size:.76rem;color:#4a6a9e;word-break:break-all}@media (min-width: 1024px){.content:has(.dash){max-width:1040px}.kpis{grid-template-columns:repeat(4,1fr)}.panels{grid-template-columns:repeat(3,1fr)}}
