:root{--bg:#f7f5f0;--paper:#fffefa;--ink:#243c35;--muted:#66756d;--accent:#276c55;--soft:#e7eee3;--line:#dedfd5;--orange:#d98b5c;--radius:22px}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;margin:0;font:16px/1.55 -apple-system,BlinkMacSystemFont,Segoe UI,Arial,sans-serif}button,input,textarea,select{font:inherit}button,a,input,textarea,summary{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button,a{color:inherit}button{cursor:pointer}a{text-decoration:none}button:disabled,fieldset:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.045em;margin-bottom:18px;font-size:clamp(32px,6vw,54px);font-weight:650;line-height:1.12}h2{letter-spacing:-.025em;font-size:23px;font-weight:650}h3{letter-spacing:-.02em;font-size:20px}input,textarea,select{background:var(--paper);border:1px solid var(--line);width:100%;min-height:52px;color:var(--ink);border-radius:12px;padding:13px 15px;font-size:16px}textarea{resize:vertical;min-height:110px}input::placeholder,textarea::placeholder{color:#7a847d}label{font-weight:600;display:block}label input,label textarea,label select{margin-top:8px;font-weight:400;display:block}button{background:0 0;border:0}fieldset{border:0;min-width:0;margin:0;padding:0;display:contents}summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:600}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-width:100%;line-height:1.7}.header{justify-content:space-between;align-items:center;gap:18px;max-width:1220px;height:94px;margin:auto;padding:18px 36px;display:flex}.brand{letter-spacing:-.03em;align-items:center;gap:12px;font-size:20px;font-weight:650;display:flex}.brand small{color:var(--muted);letter-spacing:.12em;text-transform:uppercase;font-size:10px;font-weight:500;display:block}.brand-mark{background:var(--ink);width:43px;height:43px;color:var(--paper);border-radius:14px;place-content:center;font-family:Georgia,serif;font-size:36px;line-height:1;display:grid;position:relative}.brand-mark span{color:var(--orange);font-size:26px;position:absolute;top:-5px;right:4px}.header-actions{align-items:center;gap:15px;display:flex}.language{background:#eeeee7;border-radius:50px;padding:4px;display:flex}.language a{letter-spacing:.03em;border-radius:50px;place-items:center;min-width:42px;min-height:36px;font-size:12px;font-weight:700;display:grid}.language a[aria-current=page]{background:var(--paper);box-shadow:0 1px 4px #23332b12}.avatar{border:1px solid var(--line);border-radius:50%;place-items:center;min-width:44px;min-height:44px;font-size:21px;display:grid}.workspace{max-width:1148px;margin:0 auto;padding:30px 0 80px}.intro{max-width:760px;padding:35px 0 28px}.eyebrow{letter-spacing:.16em;color:var(--accent);text-transform:uppercase;margin-bottom:18px;font-size:11px;font-weight:700}.lead{color:var(--muted);font-size:17px;line-height:1.65}.catalog-tools{gap:12px;margin:18px 0 24px;display:flex}.search{background:var(--paper);border:1px solid var(--line);border-radius:16px;flex:1;align-items:center;gap:12px;padding:0 17px;display:flex}.search>span:first-child{font-size:28px;font-weight:400}.search input{outline-offset:0;background:0 0;border:0;min-height:60px;margin:0;padding-left:0}.secondary,.primary{border-radius:12px;justify-content:center;align-items:center;gap:8px;min-height:50px;padding:12px 20px;font-size:15px;font-weight:650;display:inline-flex}.primary{background:var(--accent);color:#fff;border:1px solid var(--accent)}.primary:hover{background:#1e5844}.secondary{background:var(--paper);border:1px solid var(--line)}.secondary:hover,.secondary.active{background:var(--soft);border-color:var(--accent)}.favorite-filter{border-radius:16px}.chips{scrollbar-width:thin;overscroll-behavior-x:contain;gap:9px;margin-bottom:25px;padding:3px 0 12px;display:flex;overflow-x:auto}.chips button,.chips a{border:1px solid var(--line);white-space:nowrap;background:0 0;border-radius:50px;flex-shrink:0;min-height:45px;padding:9px 17px;font-size:14px}.chips button.active,.chips a.active{background:var(--ink);color:#fff;border-color:var(--ink)}.section-heading{justify-content:space-between;align-items:center;gap:15px;margin:18px 0;display:flex}.section-heading h2{margin:0}.section-heading>span{color:var(--muted);font-size:13px}.scenario-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;display:grid}.scenario-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);min-height:220px;transition:transform .15s,border-color .15s;position:relative;overflow:hidden}.scenario-card:hover{border-color:#9db7a8;transform:translateY(-3px)}.scenario-open{text-align:left;width:100%;height:100%;padding:25px 25px 50px;display:block}.scenario-category{letter-spacing:.02em;color:var(--muted);margin-bottom:20px;padding-right:22px;font-size:11px;font-weight:600;display:block}.scenario-card h3{margin-bottom:9px;line-height:1.3}.scenario-card p{color:var(--muted);margin:0;font-size:14px;line-height:1.5}.scenario-arrow{color:var(--accent);font-size:23px;position:absolute;bottom:18px;right:24px}.heart{min-width:48px;min-height:48px;color:var(--muted);border-radius:50%;flex-shrink:0;place-items:center;font-size:25px;display:grid}.scenario-card .heart{position:absolute;top:7px;right:8px}.heart[aria-pressed=true]{color:var(--accent);background:var(--soft)}.empty{text-align:center;color:var(--muted);padding:70px 20px}.editor{max-width:1100px;margin:auto}.back{margin-bottom:24px}.text-link{min-height:48px;color:var(--accent);align-items:center;font-size:14px;font-weight:600;display:inline-flex}.editor-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin:10px 0 28px;display:flex}.editor-heading h1{font-size:clamp(28px,4vw,40px)}.editor-heading .eyebrow{margin-bottom:12px}.editor-layout{grid-template-columns:1fr 1fr;align-items:start;gap:26px;display:grid}.card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px}.field{margin-bottom:24px;font-size:15px}.optional{color:var(--muted);font-size:12px;font-weight:400}.advanced{border-top:1px solid var(--line);margin-top:15px}.advanced .field{margin-top:15px}.save-status{text-align:right;max-width:50%;font-size:11px!important}.prompt-card{padding-top:15px;padding-bottom:15px}.prompt-card summary{padding:13px 0}.prompt-card pre{border-top:1px solid var(--line);padding-top:20px;font-size:15px}.prompt-actions{margin-top:18px}.prompt-actions .primary{width:100%;min-height:56px}.providers{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px;display:grid}.providers a{background:var(--paper);border:1px solid var(--line);border-radius:12px;justify-content:center;align-items:center;gap:4px;min-height:48px;font-size:13px;font-weight:600;display:flex}.hint{color:var(--muted);margin:10px 0 0;font-size:12px}.privacy-note{color:var(--muted);margin:24px 4px;font-size:12px}.notice{background:#fff0de;border:1px solid #e2c79f;border-radius:14px;margin-bottom:20px;padding:18px;font-size:14px}.notice p:last-child{margin-bottom:0}.auth-layout{max-width:520px;margin:70px auto;padding:0 20px 60px}.auth-layout h1{font-size:38px}.auth-layout .card{margin-bottom:20px}.stack{flex-direction:column;gap:17px;display:flex}.stack p{margin:0}.access-details{margin:25px 0}.muted{color:var(--muted);font-size:14px}.toast{z-index:100;background:var(--ink);color:#fff;opacity:0;pointer-events:none;text-align:center;border-radius:50px;max-width:90vw;padding:13px 20px;font-size:14px;transition:opacity .15s;position:fixed;bottom:30px;left:50%;transform:translate(-50%)}.toast.show{opacity:1}.news-dialog{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:24px;width:calc(100% - 36px);max-width:480px;max-height:85dvh;padding:30px;overflow:auto}.news-dialog::backdrop{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#1d352c66}.news-items>div{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding:15px 0;display:flex}.news-items{margin-bottom:15px}.admin{padding-top:40px}.admin>section{margin-bottom:28px;scroll-margin-top:20px}.admin-row{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:12px;padding:15px 0;display:flex}.admin-row>span,.admin-row>div:first-child{overflow-wrap:anywhere;flex:1;min-width:160px}.admin-row small{color:var(--muted);display:block}.admin-row form p:empty{display:none}.admin-row form p{max-width:220px;font-size:12px}.admin-scenarios{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:430px;margin-top:25px;display:grid;overflow:auto}.admin-scenarios a{border:1px solid var(--line);border-radius:12px;padding:12px;font-size:14px}.admin-scenarios a.active{background:var(--soft)}.admin-scenarios small{color:var(--muted);display:block}.field-editor{background:var(--bg);border:1px solid var(--line);border-radius:14px;flex-direction:column;gap:12px;margin-bottom:15px;padding:15px;display:flex}.field-editor small{color:var(--muted);font-family:monospace}.checkbox{align-items:center;gap:10px;display:flex}.checkbox input{width:20px;min-height:20px;margin:0}.stat-grid{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:25px;display:grid}.stat-grid strong{font-size:32px;display:block}.stat-grid span{color:var(--muted);font-size:13px}.category-form{border-bottom:1px solid var(--line);margin-bottom:25px;padding-bottom:20px}.success{color:var(--accent)}.form-status{color:#9b3e31;font-size:13px}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (max-width:1220px){.workspace{margin:0 36px}}@media (max-width:850px){.scenario-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-layout{grid-template-columns:1fr}.header{height:82px;padding:16px 22px}.workspace{margin:0;padding:18px 22px 55px}.intro{padding:25px 0 15px}.intro h1{font-size:39px}.editor{padding-bottom:180px}.prompt-actions{z-index:20;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--line);position:fixed;bottom:0;left:0;right:0}.prompt-actions .hint{display:none}.prompt-actions .primary{min-height:50px}.prompt-actions .providers a{min-height:46px}.toast{bottom:calc(145px + env(safe-area-inset-bottom));border-radius:14px}.editor-heading{margin-bottom:18px}.header-actions>.text-link{font-size:12px}.admin .editor{padding-bottom:0}}@media (max-width:540px){.header{padding:14px 18px}.brand{gap:9px;font-size:18px}.brand-mark{border-radius:12px;width:37px;height:37px;font-size:32px}.header-actions{gap:8px}.language a{min-width:35px}.avatar{min-width:39px;min-height:39px}.workspace{padding-left:18px;padding-right:18px}.intro h1{max-width:350px;font-size:36px}.intro .lead{font-size:15px}.catalog-tools{gap:8px}.favorite-filter{padding:12px 14px;font-size:22px}.favorite-filter span{display:none}.search{padding:0 13px}.search input{min-height:56px;font-size:14px}.scenario-grid{grid-template-columns:1fr;gap:12px}.scenario-card{min-height:170px}.scenario-open{padding:20px 65px 24px 22px}.scenario-category{margin-bottom:13px}.scenario-card h3{font-size:21px}.scenario-card p{font-size:14px}.scenario-card .heart{top:10px;right:10px}.scenario-arrow{bottom:18px;right:23px}.chips{margin-bottom:20px;margin-right:-18px;padding-right:18px}.chips button{min-height:44px;font-size:13px}.card{border-radius:18px;padding:21px 18px}.form-card{background:0 0;border:0;padding:0}.form-card .section-heading{margin-bottom:24px}.editor-heading h1{font-size:30px}.auth-layout{margin-top:40px}.auth-layout h1{font-size:32px}.admin-scenarios{grid-template-columns:1fr}.stat-grid{gap:10px}.stat-grid strong{font-size:27px}.news-dialog{padding:24px}.news-items>div{flex-direction:column;align-items:flex-start;gap:10px}.header-actions>.text-link{font-size:11px}.brand small{font-size:9px}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,:before,:after{transition:none!important;animation:none!important}}
