:root{--canvas:#f5f4f0;--surface:#fff;--ink:#252a27;--muted:#626863;--border:#e3e6df;--accent:#b74d27;--accent-hover:#983a1c;--accent-soft:#faeee6;--green:#3c6c4d;--green-soft:#edf5ee;--danger:#a62f36;--danger-soft:#fbeced;--radius:18px;--shadow:0 3px 15px #252a2705;--motion:180ms}
*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.55}button,input,textarea,select{font:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button,a,summary{touch-action:manipulation}button{cursor:pointer}button:disabled,input:disabled,select:disabled{cursor:not-allowed;opacity:.48}a{color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,p{margin:0}h1{font-size:30px;line-height:1.2;font-weight:650;letter-spacing:-.8px}h2{font-size:19px;line-height:1.35;font-weight:650;letter-spacing:-.25px}[hidden]{display:none!important}:focus-visible{outline:3px solid #b74d2770;outline-offset:4px}button:focus-visible{outline-offset:3px}.skip-link{position:fixed;left:16px;top:-80px;z-index:1000;background:var(--ink);color:white;padding:12px 20px;border-radius:10px}.skip-link:focus{top:12px}.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}.initial-loading{display:grid;min-height:100dvh;place-items:center;color:var(--muted)}
.app-shell{min-height:100dvh}.sidebar{width:238px;position:fixed;inset:0 auto 0 0;background:#fbfbf8;border-right:1px solid var(--border);padding:34px 22px 22px;display:flex;flex-direction:column}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;margin:0 2px 46px}.avatar{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:var(--accent-soft);color:var(--accent);flex-shrink:0}.avatar svg{width:36px;height:36px;stroke-width:2.3}.brand strong{display:block;font-size:21px;letter-spacing:-.4px}.brand small{display:block;color:var(--muted);font-size:11px;line-height:1.9}.sidebar-label{font-size:10px;letter-spacing:1.4px;font-weight:650;color:var(--muted);padding-left:15px;margin-bottom:12px}.navigation{display:grid;gap:7px}.nav-link{display:flex;align-items:center;gap:13px;min-height:48px;padding:11px 15px;border-radius:10px;text-decoration:none;color:var(--muted);font-size:14px;font-weight:500;transition:background var(--motion),color var(--motion)}.nav-link:hover{background:#eeefea;color:var(--ink)}.nav-link.active{background:var(--ink);color:white}.nav-link svg{width:19px;height:19px}.sidebar-bottom{margin-top:auto}.connection-note{display:flex;align-items:center;gap:9px;font-size:12px;padding:16px 12px;border-top:1px solid var(--border);color:var(--muted)}.status-dot{width:7px;height:7px;background:#9ca39b;border-radius:50%;display:inline-block;flex-shrink:0}.status-dot.live{background:var(--green);box-shadow:0 0 0 3px #3c6c4d12}.status-dot.observe{background:var(--accent)}.status-dot.error{background:var(--danger)}.logout-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;color:var(--muted);font-size:12px;padding:10px 12px;min-height:44px;width:100%;text-align:left;border-radius:8px}.logout-button:hover{background:#eeefea;color:var(--ink)}.logout-button svg{width:18px;height:18px}.main-content{margin-left:238px;max-width:1500px;padding:42px 48px 24px}.page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:31px}.eyebrow{font-size:10px;letter-spacing:1.6px;font-weight:650;color:var(--muted);margin-bottom:9px}.header-chip{display:flex;gap:8px;align-items:center;font-size:12px;border:1px solid var(--border);border-radius:30px;padding:8px 12px;background:#ffffff80;white-space:nowrap}.page-section{animation:enter var(--motion) ease-out}.page-intro{color:var(--muted);font-size:15px;max-width:660px;margin-bottom:24px}.notice{border:1px solid #ead9c6;background:#fff6e9;color:#76582f;padding:13px 16px;border-radius:10px;font-size:14px;margin-bottom:20px}.notice.error{background:var(--danger-soft);border-color:#edd0d2;color:var(--danger)}.hero-card{position:relative;display:flex;justify-content:space-between;align-items:center;gap:25px;min-height:265px;background:#e9eee5;border:1px solid #e0e6db;border-radius:var(--radius);padding:31px 35px;overflow:hidden}.hero-copy{max-width:590px;position:relative;z-index:1}.hero-kicker{display:flex;align-items:center;gap:8px;font-size:11px;color:#47634a;font-weight:600;margin-bottom:15px}.hero-copy h2{font-size:31px;letter-spacing:-.9px;line-height:1.2;margin-bottom:12px}.hero-copy>p{font-size:14px;line-height:1.65;color:#52604f;max-width:490px}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:11px;margin-top:26px}.button{border:1px solid transparent;border-radius:9px;min-height:44px;padding:10px 17px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:11px;text-decoration:none;line-height:1.5;transition:background var(--motion),border-color var(--motion),box-shadow var(--motion);white-space:nowrap}.button.primary{background:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-hover)}.button.secondary{border-color:#d5dacf;background:#ffffffb3;color:var(--ink)}.button.secondary:hover{background:white;border-color:#b5beaf}.button.danger-outline{color:var(--danger);border-color:#e9cdd0;background:white}.button.danger-outline:hover{background:var(--danger-soft)}.button.danger{background:var(--danger);color:white}.button.danger:hover{background:#83242a}.button:active:not(:disabled){box-shadow:inset 0 2px 5px #0002}.text-button{border:0;background:none;color:#486447;min-height:44px;padding:8px 5px;font-size:12px;font-weight:600}.text-button:hover{text-decoration:underline}.hero-portrait{width:200px;min-width:170px;align-self:stretch;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;margin:0 20px}.portrait-circle{width:148px;height:148px;border-radius:50%;background:#f7f1dc;overflow:hidden;border:8px solid #ffffff50}.portrait-circle svg{width:100%;height:100%;stroke:none}.portrait-body{fill:#818e74}.portrait-head{fill:#e9b891}.portrait-hair{fill:#454a38}.portrait-feature{stroke:#454a38;stroke-width:3;fill:none}.portrait-label{font-size:10px;color:#5b6955;margin-top:17px;white-space:nowrap}.portrait-spark{position:absolute;color:#738667;font-size:26px;font-weight:300}.spark-one{top:21px;right:0}.spark-two{bottom:60px;left:0;font-size:16px}.metrics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:21px}.metric-card{border:1px solid var(--border);border-radius:14px;background:var(--surface);padding:21px 22px;box-shadow:var(--shadow)}.metric-label{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--muted);font-size:12px;font-weight:500}.metric-label svg{width:18px;height:18px;color:#92998f}.metric-card>strong{display:block;font-size:32px;font-weight:600;letter-spacing:-.8px;line-height:1.45;margin:7px 0 3px;font-variant-numeric:tabular-nums}.metric-card>p{font-size:11px;color:var(--muted)}.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:22px}.card{border:1px solid var(--border);border-radius:var(--radius);padding:25px 27px;background:var(--surface);box-shadow:var(--shadow)}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:22px}.card-heading h2{font-size:17px}.inline-link{color:var(--muted);font-size:11px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center;gap:8px;margin:-12px 0}.inline-link:hover{color:var(--accent)}.account-summary{display:flex;align-items:center;gap:13px}.summary-icon{display:grid;place-items:center;background:#eef1ec;width:44px;height:44px;flex-shrink:0;border-radius:12px;color:#61765b}.account-summary strong{display:block;font-size:13px}.account-summary span:not(.summary-icon){display:block;color:var(--muted);font-size:12px;margin-top:3px;overflow-wrap:anywhere}.friend-avatars{display:flex;flex-wrap:wrap;gap:6px;margin:20px 0 12px}.friend-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#f1e9de;color:#716354;border:2px solid white;font-size:11px;font-weight:650}.friend-avatar:nth-child(2n){background:#e7eee4;color:#566550}.friend-avatar:nth-child(3n){background:#e9e6ee;color:#6a5d74}.subtle{color:var(--muted);font-size:12px;line-height:1.6}.summary-list{margin:0 0 18px;font-size:12px}.summary-list>div{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-top:13px}.summary-list dt{color:var(--muted)}.summary-list dd{margin:0;font-weight:550;text-align:right;overflow-wrap:anywhere}.quiet-note{display:flex;gap:10px;align-items:flex-start;color:var(--muted);font-size:11px;margin:24px 3px}.quiet-note svg{width:17px;height:17px;color:#84937e;margin-top:1px}.main-footer{display:flex;justify-content:space-between;gap:15px;border-top:1px solid var(--border);padding-top:21px;margin-top:29px;font-size:10px;color:#777f75}
.setup-progress{display:flex;list-style:none;margin:0 0 25px;padding:0;gap:0}.setup-progress li{display:flex;align-items:center;gap:9px;font-size:12px;flex:1;color:var(--muted)}.setup-progress li:not(:last-child):after{content:"";height:1px;background:var(--border);flex:1;margin:0 16px}.setup-progress span{display:grid;place-items:center;border:1px solid #d5dbcf;border-radius:50%;width:27px;height:27px;font-size:11px}.setup-progress .complete{color:var(--green)}.setup-progress .complete span{background:var(--green-soft);border-color:#c9dfcb}.setup-card{margin-bottom:21px}.step-heading{display:flex;align-items:flex-start;gap:16px;margin-bottom:25px}.step-number{color:var(--accent);font-size:11px;background:var(--accent-soft);display:grid;place-items:center;width:33px;height:33px;border-radius:9px;flex-shrink:0}.step-heading h2{font-size:18px;margin-bottom:5px}.step-heading p{color:var(--muted);font-size:12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 24px}.field{min-width:0;margin-bottom:20px}.form-grid>.field{margin-bottom:0}label,legend{display:block;font-size:13px;font-weight:550;margin-bottom:8px;color:var(--ink)}input:not([type=checkbox]):not([type=range]),textarea,select{width:100%;border:1px solid #dce0d7;border-radius:8px;color:var(--ink);background:#fdfdfb;min-height:44px;padding:10px 12px;font-size:14px;transition:border-color var(--motion),box-shadow var(--motion)}input::placeholder{color:#889081}input:focus,textarea:focus,select:focus{outline:0;border-color:var(--accent);box-shadow:0 0 0 3px #b74d2710}textarea{resize:vertical;line-height:1.65}select{padding-right:30px}option{color:var(--ink)}.field-hint{font-size:11px;color:var(--muted);line-height:1.7;margin-top:7px}.field-hint a{color:var(--accent);text-underline-offset:3px}.form-footer{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.form-error{color:var(--danger);font-size:13px;margin:15px 0;background:var(--danger-soft);padding:11px 13px;border-radius:8px;overflow-wrap:anywhere}.compact-field{max-width:380px}.button-row{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.connected-account{display:flex;align-items:flex-start;gap:13px;background:var(--green-soft);border-radius:11px;padding:16px}.connected-check{display:grid;place-items:center;border-radius:50%;background:#dceadb;color:var(--green);width:29px;height:29px;flex-shrink:0}.connected-account strong{font-size:14px}.connected-account p{color:#4e6650;font-size:12px;margin-top:4px}.select-row{display:flex;gap:10px;align-items:center}.select-row select{flex:1;min-width:0}.friends-fieldset{padding:0;margin:23px 0 0;border:0}.friends-fieldset legend{width:100%;display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.count-chip{font-size:11px;color:var(--muted);border-radius:15px;padding:3px 9px;background:#f0f2ec}.members-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.member-label{display:flex;align-items:center;gap:11px;padding:13px;border:1px solid var(--border);border-radius:9px;margin:0;cursor:pointer;min-height:52px;font-size:13px;overflow-wrap:anywhere}.member-label:has(input:checked){background:var(--green-soft);border-color:#b8d1b9}.member-label input{width:17px;height:17px;accent-color:var(--green);flex-shrink:0}.member-label span{min-width:0}.member-label small{display:block;color:var(--muted);font-size:10px;font-weight:400}.empty-state{font-size:13px;color:var(--muted);grid-column:1/-1;padding:20px;background:#f7f8f4;border-radius:9px}.settings-card{margin-bottom:21px}.settings-card>.field{margin-top:25px;margin-bottom:0}.section-note{font-size:9px;color:#828a7a;letter-spacing:1px}.switch-row{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:28px}.switch-row label{margin:0}.switch-row p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:6px}.switch{position:relative;width:46px;min-width:46px;height:44px;display:flex;align-items:center!important;cursor:pointer}.switch input{position:absolute;inset:0;opacity:0;width:100%;height:100%;margin:0;z-index:1;cursor:pointer}.switch-track{height:26px;width:46px;background:#dce1d6;border-radius:20px;position:relative;transition:background var(--motion)}.switch-track:after{content:"";position:absolute;width:20px;height:20px;top:3px;left:3px;background:white;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform var(--motion)}.switch input:checked+.switch-track{background:var(--green)}.switch input:checked+.switch-track:after{transform:translateX(20px)}.switch input:focus-visible+.switch-track{outline:3px solid #b74d2770;outline-offset:4px}.range-field{margin:0 0 26px;max-width:560px}.range-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.range-heading label{margin-bottom:0}.range-heading output{color:var(--accent);font-size:13px;font-weight:650;font-variant-numeric:tabular-nums;background:var(--accent-soft);border-radius:6px;padding:3px 8px}input[type=range]{display:block;width:100%;height:44px;margin:6px 0 0;accent-color:var(--green);cursor:pointer}.range-captions{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:-5px}.input-with-unit{display:flex;align-items:center;position:relative}.input-with-unit input{padding-right:60px!important}.input-with-unit>span{position:absolute;right:13px;font-size:11px;color:var(--muted);pointer-events:none}.budget-note{margin:22px 0 0}.advanced-card{margin:0 0 21px;padding:0}.advanced-card summary{list-style:none;cursor:pointer;padding:21px 27px;display:flex;justify-content:space-between;align-items:center;min-height:64px;font-size:14px;font-weight:550}.advanced-card summary::-webkit-details-marker{display:none}.advanced-card summary>span{color:var(--muted);font-size:20px;font-weight:400}.advanced-card[open] summary>span{transform:rotate(45deg)}.advanced-content{padding:0 27px 24px}.advanced-content .switch-row{margin:26px 0 0;border-top:1px solid var(--border);padding-top:23px}.save-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;background:#e9eee5;border-radius:12px;border:1px solid #dce3d6;margin-bottom:26px}.save-bar strong{font-size:12px}.save-bar p{font-size:11px;color:var(--muted);margin-top:4px}.memory-card{display:flex;align-items:center;justify-content:space-between;gap:26px;border-color:#e5d9d7}.memory-card h2{font-size:15px}.memory-card p{font-size:12px;color:var(--muted);margin-top:7px;max-width:450px}.toast{position:fixed;left:calc(50% + 119px);transform:translateX(-50%);bottom:24px;z-index:100;background:var(--ink);color:white;border-radius:10px;padding:13px 21px;max-width:calc(100% - 32px);box-shadow:0 5px 25px #0002;font-size:13px;animation:enter var(--motion) ease-out}.toast.error{background:var(--danger)}.confirm-dialog{border:1px solid var(--border);border-radius:18px;max-width:440px;width:calc(100% - 36px);padding:28px;color:var(--ink);box-shadow:0 24px 100px #0003}.confirm-dialog::backdrop{background:#18231b66}.confirm-dialog h2{margin-bottom:12px}.confirm-dialog p{font-size:14px;color:var(--muted);margin-bottom:25px}.confirm-dialog .button-row{justify-content:flex-end}
.login-screen{min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:radial-gradient(ellipse at 80% 10%,#e8eee3 0,transparent 45%),var(--canvas)}.login-card{max-width:420px;width:100%;background:var(--surface);border:1px solid var(--border);border-radius:23px;padding:37px;box-shadow:0 16px 60px #2e402006}.avatar-large{width:62px;height:62px;border-radius:17px;margin-bottom:29px}.avatar-large svg{width:47px;height:47px}.login-card h1{font-size:27px;margin-bottom:14px}.login-description{font-size:14px;color:var(--muted);margin-bottom:28px;line-height:1.75}.login-card label{font-size:12px}.login-card .button{margin-top:19px}.full-width{width:100%;justify-content:space-between}.login-footer{font-size:10px;color:var(--muted);margin-top:23px;text-align:center}.login-card .form-error{margin-bottom:0}
.restore-telegram{padding:0 0 22px;margin-bottom:22px;border-bottom:1px solid var(--border)}.restore-telegram .button{margin-top:12px}.mobile-logout{display:none;background:none;border:0;color:var(--muted);padding:6px 8px;min-height:44px;font-size:11px}
@keyframes enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}
@media(min-width:1550px){.main-content{margin-right:auto;margin-left:max(238px,calc((100vw - 1300px)/2 + 150px));max-width:1260px}}
@media(max-width:1100px){.sidebar{width:210px;padding:30px 16px 20px}.main-content{margin-left:210px;padding:34px 30px 22px}.brand small{font-size:10px}.hero-card{padding:29px}.hero-portrait{min-width:130px;width:150px;margin:0}.portrait-circle{width:126px;height:126px}.portrait-label{font-size:9px}.hero-copy h2{font-size:27px}.overview-grid{gap:16px}.card{padding:23px}.metric-card{padding:18px}.toast{left:calc(50% + 105px)}}
@media(max-width:850px){.sidebar{width:184px;padding:27px 13px}.brand{gap:9px;margin-bottom:35px}.avatar{width:38px;height:38px;border-radius:12px}.brand strong{font-size:19px}.brand small{font-size:9px}.sidebar-label{font-size:9px;padding-left:12px}.nav-link{padding:10px 12px;font-size:12px;gap:10px}.main-content{margin-left:184px;padding:29px 23px 22px}.page-header{gap:12px;margin-bottom:23px}h1{font-size:25px}.header-chip{font-size:10px;padding:7px 9px}.hero-card{min-height:245px;padding:25px}.hero-portrait{display:none}.hero-copy h2{font-size:29px}.hero-copy>p{font-size:13px}.metrics-grid{gap:12px}.metric-card{padding:16px}.metric-label{font-size:10px}.metric-label svg{display:none}.metric-card>strong{font-size:28px}.metric-card>p{font-size:10px}.overview-grid{grid-template-columns:1fr}.form-grid{gap:20px}.form-grid label{font-size:12px}.form-footer>.subtle{font-size:11px}.section-note{font-size:8px}.card{padding:22px}.toast{left:calc(50% + 92px)}}
@media(max-width:640px){body{font-size:16px}.sidebar{width:auto;height:70px;inset:auto 0 0;background:#fbfbf8f5;backdrop-filter:blur(15px);border:0;border-top:1px solid var(--border);padding:4px 12px calc(4px + env(safe-area-inset-bottom));height:calc(70px + env(safe-area-inset-bottom));z-index:20;display:block}.brand,.sidebar-label,.sidebar-bottom{display:none}.navigation{display:flex;justify-content:space-around;gap:8px}.nav-link{flex:1;min-height:59px;flex-direction:column;gap:4px;padding:7px 4px;font-size:10px;border-radius:8px}.nav-link svg{width:21px;height:21px}.nav-link.active{background:#ecede8;color:var(--ink)}.main-content{margin:0;padding:27px 20px calc(94px + env(safe-area-inset-bottom))}.page-header{margin-bottom:23px;align-items:flex-start}.eyebrow{font-size:9px;letter-spacing:1.3px;margin-bottom:9px}h1{font-size:25px;letter-spacing:-.65px}.header-chip{margin-top:4px;font-size:9px;padding:6px 9px;max-width:128px;white-space:normal}.header-chip .status-dot{width:6px;height:6px}.hero-card{border-radius:15px;padding:25px 23px;min-height:260px}.hero-copy h2{font-size:29px}.hero-copy>p{font-size:13px}.hero-kicker{font-size:11px}.hero-actions{gap:9px;margin-top:22px}.hero-actions .button{font-size:12px;padding:10px 14px}.hero-actions .text-button{font-size:11px}.metrics-grid{gap:9px;margin-top:16px}.metric-card{padding:15px 12px;border-radius:12px}.metric-label{font-size:10px;line-height:1.5;min-height:30px;align-items:flex-start}.metric-card>strong{font-size:24px;margin-top:8px}.metric-card>p{font-size:9px;line-height:1.6}.overview-grid{margin-top:16px;gap:16px}.card{padding:22px;border-radius:15px}.card-heading h2{font-size:16px}.quiet-note{font-size:11px;margin:21px 0}.main-footer{font-size:9px;margin-top:23px;gap:12px}.setup-progress li{font-size:10px;gap:6px}.setup-progress li:not(:last-child):after{margin:0 7px}.setup-progress span{width:23px;height:23px;font-size:10px;flex-shrink:0}.step-heading{gap:11px;margin-bottom:22px}.step-heading h2{font-size:17px}.step-heading p{font-size:12px}.step-number{width:30px;height:30px;font-size:10px}.form-grid{grid-template-columns:1fr;gap:20px}.field label,.form-grid label{font-size:13px}input:not([type=checkbox]):not([type=range]),textarea,select{font-size:16px;min-height:46px}.field-hint{font-size:11px}.form-footer{flex-direction:column;align-items:stretch;gap:15px}.form-footer .button{width:100%}.form-footer>.subtle{max-width:100%;font-size:11px}.select-row{align-items:stretch;flex-direction:column}.select-row .button{align-self:flex-start;font-size:12px}.members-list{grid-template-columns:1fr}.member-label{font-size:14px}.page-intro{font-size:14px;margin-bottom:22px}.settings-card .section-note{display:none}.switch-row{gap:18px}.switch-row p{font-size:11px}.range-heading label{font-size:12px;max-width:220px}.range-field{margin-bottom:24px}.save-bar{align-items:stretch;flex-direction:column;padding:18px;gap:16px}.save-bar .button{width:100%}.memory-card{align-items:stretch;flex-direction:column;gap:18px}.memory-card .button{align-self:flex-start}.advanced-card{padding:0}.advanced-card summary{padding:20px 22px;font-size:13px}.advanced-content{padding:0 22px 22px}.toast{left:50%;bottom:calc(85px + env(safe-area-inset-bottom));min-width:240px;text-align:center;font-size:12px}.login-card{padding:30px;max-width:400px}.login-card h1{font-size:26px}.login-description{font-size:14px}.login-card label{font-size:13px}.login-card .button{font-size:14px;min-height:48px}.login-footer{font-size:11px}.confirm-dialog{padding:24px}.notice{font-size:13px}}
@media(max-width:360px){.main-content{padding-left:15px;padding-right:15px}.page-header h1{font-size:22px}.header-chip{font-size:8px;max-width:105px}.hero-card{padding:23px 20px}.hero-copy h2{font-size:26px}.metric-card{padding:14px 10px}.metric-label{font-size:9px}.metric-card>strong{font-size:22px}.setup-progress li{font-size:9px}.setup-progress li:not(:last-child):after{margin:0 5px}}
@media(max-width:640px){.mobile-logout{display:block}.main-footer{align-items:center;flex-wrap:wrap}.main-footer>span:first-child{display:none}.main-footer .mobile-logout{margin-left:auto}.restore-telegram .button{font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.memory-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:21px}.metric-card>strong.memory-date{font-size:16px;letter-spacing:0;line-height:1.5;margin:16px 0 11px}.memory-learning-card,.memory-search-card{margin-bottom:21px}.memory-learning-card .switch-row{margin-bottom:0}.memory-learning-card .form-footer{margin-top:18px;padding-top:16px}.memory-search-row{display:flex;gap:10px;align-items:center}.memory-search-row input{flex:1;min-width:0}.memory-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px}.memory-results-card{min-width:0}.memory-list-note{margin-bottom:18px}.memory-item{border-top:1px solid var(--border);padding:18px 0;overflow-wrap:anywhere}.memory-item:first-child{border-top:0;padding-top:0}.memory-item:last-child{padding-bottom:0}.memory-item-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.memory-item strong{font-size:12px}.memory-item .count-chip{font-size:9px;white-space:nowrap}.memory-pinned{background:var(--green-soft);color:var(--green)}.memory-item-text{font-size:13px;line-height:1.75;white-space:pre-wrap;margin:10px 0}.memory-item-meta{font-size:10px;color:var(--muted);line-height:1.65}.memory-item-actions{display:flex;gap:17px}.memory-action{font-size:11px;padding:5px 0;min-height:36px}.memory-action-danger{color:var(--danger)}.memory-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:23px 0}.memory-editor{max-width:540px}.memory-editor .field{margin-bottom:18px}.memory-editor .button-row{margin-top:20px}
@media(max-width:1100px){.memory-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.memory-results-grid{grid-template-columns:1fr}.memory-search-row{flex-wrap:wrap}.memory-search-row input{flex-basis:100%}}
@media(max-width:640px){.memory-metrics{gap:10px}.memory-metrics .metric-card{padding:16px}.memory-metrics .metric-card>strong{font-size:26px}.memory-metrics .metric-card>strong.memory-date{font-size:14px}.memory-search-row .button{flex:1}.memory-item-heading{flex-wrap:wrap;gap:7px}.memory-item strong{font-size:13px}.memory-item-text{font-size:14px}.memory-pagination{gap:10px;justify-content:space-between}.memory-pagination .button{padding:9px 12px}.memory-pagination .subtle{font-size:10px;text-align:center}.memory-learning-card .form-footer{flex-direction:column;align-items:stretch}}
.lore-now{margin-bottom:22px;background:var(--green-soft)}.lore-now .card-heading{margin-bottom:16px}.lore-now .button-row{margin-top:18px}.lore-now .summary-list{max-width:680px}#page-lore input[readonly]{background:#f1f2ed;color:var(--muted)}#lore-form>.settings-card>.form-grid{margin-bottom:20px}@media(max-width:640px){.lore-now .button-row{flex-wrap:wrap}.lore-now .card-heading{align-items:flex-start}.lore-now .summary-list dd{max-width:65%}.lore-now .button{white-space:normal}#lore-form .save-bar .button-row{width:100%;flex-wrap:wrap}#lore-form .save-bar .button{flex:1}}
:root .avatar-large{font-size:30px;font-weight:600}
