/* Original Dark Crimson design system is retained in original.css. */
body { font-size: 16px; }
.btn,.nav-item,.input,.select,.textarea,.field>label,.label { font-size:14px; }
.lead { font-size:16px; line-height:1.65; }
.small,.field .hint,.brand-sub,.crumbs,.pill-status { font-size:13px; }
.nav-label { font-size:11px; }
.sidebar { padding-top:28px; }
.community-list { overflow-y:auto; min-height:0; flex:1; }
.reference-box { margin-bottom:18px; padding:16px; border:1px solid var(--line); border-radius:12px; }
.reference-box>label { display:block; margin-bottom:10px; font-size:14px; }
.reference-box input { max-width:100%; font-size:14px; }
.reference-previews { display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.reference-previews>div { position:relative; }
.reference-previews img { width:88px; height:104px; object-fit:contain; background:var(--card); border-radius:8px; }
.reference-previews button { position:absolute; right:0; top:0; background:var(--panel); }
.profile-assistant { display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin-bottom:22px; padding:16px; background:var(--red-soft); border:1px solid var(--red-line); border-radius:12px; }
.profile-assistant>div { flex:1; min-width:180px; }
.profile-assistant p { margin-top:6px; color:var(--sub); font-size:14px; line-height:1.6; }
.profile-assistant>.hint { width:100%; }
.topic-box { padding:14px; border:1px solid var(--line); border-radius:12px; margin-bottom:18px; font-size:14px; }
.topic-options { display:flex; flex-wrap:wrap; gap:12px; margin:12px 0; }
.topic-options label,.source-switch { display:flex; gap:7px; align-items:center; font-size:14px; }
.source-list { display:grid; gap:10px; margin-top:18px; }
.source-card { padding:14px; border:1px solid var(--line); border-radius:10px; }
.source-card a,.post-sources a { color:#f3a5b1; }
.post-sources { margin:12px 0; font-size:14px; line-height:1.5; }
.post-sources a { display:block; margin-top:5px; }
.brand-title { font-size:17px; letter-spacing:.5px; }
.brand-sub { margin-top:5px; }
.brand-mark { width:46px; height:46px; }
.main { padding-top:26px; max-width:1800px; width:100%; }
.topbar { margin-bottom:36px; }
.pill-status { text-decoration:none; }
.side-note { font-size:13px; line-height:1.65; margin-top:auto; }
.side-note strong { font-size:14px; }
.sidebar-foot { font-size:12px; color:var(--faint); padding:12px 10px 0; }
.side-community { display:flex; gap:10px; align-items:center; background:none; border:1px solid transparent; border-radius:12px; color:var(--sub); padding:10px; text-align:left; width:100%; }
.side-community:hover { background:var(--card); }
.side-community.selected { border-color:var(--line); background:var(--card); color:var(--text); }
.side-community img { width:38px; height:42px; object-fit:cover; border-radius:9px; }
.side-community b { font-size:14px; display:block; }
.side-community small { font-size:12px; display:block; }
.hero { display:flex; align-items:center; justify-content:space-between; gap:28px; margin-bottom:28px; }
.hero .h1 { font-size:clamp(30px,3.4vw,46px); letter-spacing:-1.5px; margin-top:12px; }
.hero .h1 em { font-style:normal; color:#ee7886; }
.hero .lead { max-width:700px; }
.hero-numbers { display:flex; align-items:center; gap:16px; padding:18px 24px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(150deg,#d63b4c16,#151a23); flex-shrink:0; }
.hero-numbers strong { font-size:36px; font-weight:850; line-height:1.2; display:block; }
.hero-numbers span { font-size:12px; color:var(--sub); }
.hero-numbers .plus { font-size:24px; color:var(--red); }
.setup-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); gap:18px; align-items:stretch; }
.section-kicker { font-size:11px; font-weight:800; letter-spacing:1.8px; color:var(--faint); text-transform:uppercase; margin-bottom:16px; }
.community-choice { display:flex; align-items:center; gap:10px; }
.community-choice .field { flex:1; }
.character-summary { display:flex; align-items:flex-start; gap:16px; margin:20px 0 14px; }
.character-photo { width:90px; height:112px; object-fit:cover; border-radius:12px; border:1px solid var(--line); flex-shrink:0; }
.character-summary h2 { font-size:20px; margin:2px 0 4px; }
.character-summary .bio { font-size:14px; color:var(--sub); margin-top:8px; display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; white-space:pre-wrap; }
.character-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:208px; gap:12px; padding:16px; }
.empty-avatar { width:66px; height:66px; border:1px dashed var(--red-line); color:#f2919d; border-radius:20px; display:grid; place-items:center; background:var(--red-soft); }
.character-empty p { color:var(--sub); font-size:14px; max-width:340px; }
.memory-line { display:flex; align-items:center; gap:8px; padding-top:14px; margin-top:14px; border-top:1px solid var(--line-soft); color:var(--sub); font-size:13px; }
.memory-line svg { color:var(--red-hover); flex-shrink:0; }
.generate-panel { background:linear-gradient(145deg,rgba(214,59,76,.09),var(--panel) 60%); border-color:#68323f; }
.generate-panel .textarea { min-height:96px; font-size:14px; }
.options-row { display:grid; grid-template-columns:1.2fr 1fr 1fr; gap:10px; margin:14px 0 16px; }
.options-row .input,.options-row .select { padding-left:10px; font-size:13px; }
.generate-button { min-height:54px; font-size:16px; }
.generate-hint { font-size:12px; color:var(--sub); text-align:center; margin-top:11px; line-height:1.6; }
.generate-hint a { color:#e9949f; }
.results-head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:32px 0 16px; flex-wrap:wrap; }
.results-head h2 { font-size:22px; letter-spacing:-.4px; }
.batch-controls { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.batch-controls .select { width:260px; max-width:100%; }
.batch-meta { margin:0 0 18px; display:flex; gap:10px; align-items:center; flex-wrap:wrap; font-size:14px; color:var(--sub); }
.batch-meta b { color:var(--text); }
.status-panel { padding:18px 20px; margin-bottom:20px; border:1px solid var(--line); border-radius:14px; background:var(--panel); }
.status-heading { display:flex; gap:14px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.status-heading strong { font-size:15px; }
.status-heading p { font-size:13px; color:var(--sub); margin-top:3px; }
.life-progress { margin-top:14px; height:5px; background:var(--input); border-radius:10px; overflow:hidden; }
.life-progress span { display:block; height:100%; background:linear-gradient(90deg,var(--red-deep),var(--red-hover)); transition:width .4s; border-radius:10px; }
.life-progress.busy span { animation:pulse 1.7s ease-in-out infinite; }
.error-box { padding:13px 16px; margin:14px 0 0; border-radius:10px; border:1px solid var(--red-line); background:var(--red-soft); color:#ffb1ba; font-size:14px; overflow-wrap:anywhere; }
.notice { font-size:13px; color:var(--sub); padding:12px 14px; background:var(--elev); border:1px solid var(--line); border-radius:10px; line-height:1.65; }
.life-posts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.life-post { background:var(--card); border:1px solid var(--line-soft); border-radius:16px; overflow:hidden; display:flex; flex-direction:column; min-width:0; }
.life-media { background:radial-gradient(ellipse at top,#2c3443,#171d27 80%); aspect-ratio:3/4; position:relative; display:grid; place-items:center; overflow:hidden; }
.life-media img { width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.photo-placeholder { color:var(--faint); text-align:center; font-size:13px; display:grid; justify-items:center; gap:12px; padding:20px; }
.photo-placeholder svg { width:32px; height:32px; opacity:.7; }
.photo-placeholder.running { color:#f29aa5; }
.photo-placeholder.running svg { animation:pulse 1.5s infinite; }
.post-index { position:absolute; left:12px; top:12px; font-size:12px; font-weight:750; background:#0d1016c9; padding:5px 9px; border-radius:8px; border:1px solid #ffffff20; }
.post-tag { position:absolute; right:12px; top:12px; font-size:11px; background:#0d1016c9; color:#ced3df; border:1px solid #ffffff20; border-radius:20px; padding:5px 9px; }
.post-content { padding:18px; display:flex; flex-direction:column; flex:1; }
.post-content h3 { font-size:17px; line-height:1.35; margin:8px 0 10px; }
.post-date { font-size:12px; color:var(--sub); }
.post-text { font-size:14px; line-height:1.7; color:#cdd2db; white-space:pre-wrap; overflow-wrap:anywhere; }
.post-text.clamped { display:-webkit-box; -webkit-line-clamp:5; -webkit-box-orient:vertical; overflow:hidden; }
.post-actions { display:flex; gap:7px; flex-wrap:wrap; padding-top:16px; margin-top:auto; }
.post-actions .btn { font-size:12px; padding:7px 9px; }
.post-actions a { text-decoration:none; }
.post-error { color:#ffadb6; font-size:12px; margin-top:10px; }
.post-more { color:#ed8b98; margin:8px 0; border:0; padding:0; background:none; text-align:left; font-size:12px; }
.empty-results { padding:42px 24px; border:1px dashed var(--line); border-radius:16px; text-align:center; background:linear-gradient(180deg,#151a2390,#151a2320); }
.empty-results h3 { font-size:20px; margin:18px 0 8px; }
.empty-results p { max-width:570px; margin:auto; color:var(--sub); font-size:14px; line-height:1.7; }
.empty-illustration { display:flex; justify-content:center; gap:8px; height:72px; align-items:center; }
.empty-illustration div { width:52px; height:66px; display:grid; place-items:center; background:var(--card); border:1px solid var(--line); border-radius:9px; color:var(--sub); }
.empty-illustration div:first-child { transform:rotate(-12deg); }.empty-illustration div:last-child { transform:rotate(12deg); }.empty-illustration div:nth-child(2) { background:var(--red-soft); border-color:var(--red-line); color:#f18c99; transform:translateY(-6px); }
.connection-error { padding:20px; margin-bottom:20px; border:1px solid var(--red-line); border-radius:12px; background:var(--panel); color:#ffadb6; }
.life-dialog { width:min(760px,calc(100vw - 32px)); max-height:90vh; color:var(--text); background:var(--panel); border:1px solid var(--line); border-radius:20px; padding:0; box-shadow:0 30px 100px #0009; }
.life-dialog::backdrop { background:#060910c4; backdrop-filter:blur(5px); }
.dialog-header { padding:23px 26px 18px; display:flex; justify-content:space-between; align-items:center; gap:16px; border-bottom:1px solid var(--line-soft); }
.dialog-header h2 { font-size:22px; letter-spacing:-.4px; }.dialog-header p { font-size:13px; color:var(--sub); margin-top:4px; }
.dialog-body { padding:24px 26px; }.dialog-footer { display:flex; justify-content:flex-end; gap:10px; margin-top:24px; padding-top:18px; border-top:1px solid var(--line-soft); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }.form-grid .full { grid-column:1/-1; }
.avatar-upload { display:flex; gap:18px; align-items:center; margin-bottom:22px; padding:16px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
.avatar-upload img,.avatar-preview { width:90px; height:110px; border-radius:10px; object-fit:cover; flex-shrink:0; background:var(--input); }
.avatar-preview { display:grid; place-items:center; color:var(--faint); }.avatar-upload input { font-size:12px; max-width:100%; }
.avatar-upload input::file-selector-button { background:var(--elev); border:1px solid var(--line); border-radius:8px; padding:8px 10px; color:var(--text); margin-right:8px; cursor:pointer; }
.form-details { margin-top:18px; }.form-details summary { color:#e5a1ab; font-size:14px; cursor:pointer; padding:8px 0 14px; }
.memory-events { display:grid; gap:12px; margin-top:16px; }.memory-event { padding:14px; border:1px solid var(--line); border-radius:12px; background:var(--card); font-size:14px; }.memory-event small { color:var(--sub); display:block; margin-bottom:6px; }
.viewer-img { max-height:65vh; width:100%; object-fit:contain; border-radius:12px; }.edit-text { min-height:260px; }
#toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); padding:13px 20px; border-radius:12px; background:var(--elev); border:1px solid var(--line); color:var(--text); box-shadow:var(--shadow); max-width:calc(100vw - 30px); z-index:10000; font-size:14px; display:none; }
#toast.visible { display:block; }#toast.err { border-color:var(--red-line); color:#ffadb6; }
.boot { min-height:100vh; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; font-size:22px; font-weight:800; }.boot span { color:var(--sub); font-size:14px; font-weight:400; }
.sidebar-empty { color:var(--faint); font-size:13px; padding:10px; line-height:1.65; }
.footnote { margin-top:24px; color:var(--faint); font-size:12px; line-height:1.7; }
@keyframes pulse { 50% { opacity:.45; } }
@media(min-width:1600px) { .life-posts { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:1200px) { .app { grid-template-columns:220px minmax(0,1fr); }.hero-numbers { display:none; }.options-row { grid-template-columns:1fr 1fr; }.options-row .field:first-child { grid-column:1/-1; }.life-posts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:950px) { .setup-grid { grid-template-columns:1fr; }.app { grid-template-columns:190px minmax(0,1fr); }.sidebar { padding:22px 12px; }.brand { gap:9px; }.brand-title { font-size:15px; }.brand-mark { width:38px; height:38px; }.options-row { grid-template-columns:1.2fr 1fr 1fr; }.options-row .field:first-child { grid-column:auto; }.main { padding-left:20px; padding-right:20px; } }
@media(max-width:760px) { .app { display:block; }.sidebar { position:static; width:auto; height:auto; transform:none; flex-direction:row; align-items:center; justify-content:space-between; padding:15px 18px; border-bottom:1px solid var(--line); border-right:0; }.sidebar .brand { padding:0; }.sidebar .nav-item { width:auto; }.sidebar .desktop-only { display:none; }.main { padding:20px 16px 40px; }.topbar { margin-bottom:24px; gap:8px; }.topbar .crumbs { display:none; }.topbar .pill-status { font-size:12px; padding:7px 10px; }.hero .h1 { font-size:34px; }.lead { font-size:14px; }.hero { margin-bottom:22px; }.hero .eyebrow { font-size:10px; }.life-posts { gap:12px; }.post-content { padding:14px; }.dialog-header,.dialog-body { padding:18px; }.options-row { grid-template-columns:1fr 1fr; }.options-row .field:first-child { grid-column:1/-1; }.batch-controls { width:100%; }.batch-controls .select { flex:1; min-width:150px; }.form-grid { grid-template-columns:1fr; }.form-grid .full { grid-column:auto; } }
@media(max-width:500px) { .life-posts { grid-template-columns:1fr; }.life-media { aspect-ratio:4/5; }.hero .h1 { font-size:30px; }.avatar-upload { flex-direction:column; align-items:flex-start; }.generate-button { font-size:14px; padding-left:10px; padding-right:10px; }.community-choice { align-items:flex-end; }.character-photo { width:76px; height:98px; }.topbar { flex-wrap:wrap; justify-content:space-between; }.topbar .spacer { display:none; }.character-summary .row { flex-wrap:wrap; }.dialog-footer { flex-wrap:wrap; }.field,.options-row>* { min-width:0; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
.bulk-authors { display:grid; gap:8px; max-height:310px; overflow:auto; margin:18px 0; }
.bulk-authors label { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid var(--line); border-radius:10px; background:var(--card); cursor:pointer; }
.bulk-authors img { width:42px; height:48px; border-radius:8px; object-fit:cover; }
.bulk-authors small { display:block; color:var(--sub); margin-top:3px; }
.queue-jobs { display:flex; gap:8px 18px; flex-wrap:wrap; max-height:160px; overflow:auto; margin-top:16px; }
.queue-jobs button { font-size:12px; text-align:left; }

/* Generation controls */
.generation-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.mode-choice{font:inherit;text-align:left;padding:14px;border:1px solid var(--border,#34343c);border-radius:12px;background:transparent;color:inherit;cursor:pointer}.mode-choice b{display:block;font-size:12px;letter-spacing:.06em}.mode-choice span{display:block;font-size:11px;opacity:.65;margin-top:6px;line-height:1.5}.mode-choice.selected{border-color:#e74766;background:rgba(231,71,102,.09)}.count-control{padding:15px 0}.count-control label{display:flex;align-items:center;justify-content:space-between;font-size:13px}.count-control strong{font-size:25px;color:#f36b83}.count-control input{width:100%;margin:16px 0 4px;accent-color:#e74766;cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:11px;opacity:.6}.generation-format,.result-tabs{display:flex;gap:8px;flex-wrap:wrap}.generation-note{line-height:1.6;margin:12px 0 18px}.result-tabs{margin:28px 0 18px}.text-card-head{padding:20px 20px 0;display:flex;justify-content:space-between;gap:10px}.text-only-post .post-text{white-space:pre-wrap;line-height:1.75}.text-only-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.text-only-post{align-self:start}@media(max-width:700px){.text-only-grid{grid-template-columns:1fr}.mode-choice{padding:10px}.generation-format .btn{flex:1;font-size:11px}}

.comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.comparison-grid figure{margin:0;min-width:0}.comparison-grid img{width:100%;height:auto;border-radius:10px;display:block;margin:10px 0}.comparison-grid figcaption{font-size:13px;line-height:1.6}.router-steps{padding-left:24px;line-height:1.8;margin:18px 0}@media(max-width:600px){.comparison-grid{grid-template-columns:1fr}}

.community-navigation{min-height:0;display:flex;flex-direction:column}.community-navigation .community-list{overflow-y:auto;min-height:0}.workspace-tabs{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0 14px;flex-shrink:0}.workspace-tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-width:0;padding:11px 3px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--sub);cursor:pointer;font:inherit}.workspace-tab b{font-size:10px;letter-spacing:.015em}.workspace-tab>strong{font-size:15px;font-weight:700}.workspace-tab.selected{border-color:var(--red);background:var(--red-soft);color:var(--text)}.workspace-tab.selected>strong{color:var(--red)}.workspace-tab:focus-visible{outline:2px solid var(--red);outline-offset:3px}.workspace-assignment{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0}.workspace-assignment .btn{font-size:11px}@media(max-width:760px){.sidebar{flex-wrap:wrap}.community-navigation{flex:0 0 100%;margin-top:12px}.workspace-tabs{margin-bottom:0}.workspace-tab{flex-direction:row;gap:12px;padding:12px}.workspace-tab b{font-size:12px}.workspace-assignment{flex-wrap:wrap}}

.author-tabs{display:flex;gap:10px;margin:4px 0 24px}.model-controls{display:grid;gap:12px;margin:16px 0}.identity-panel h2{font-size:24px}.identity-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,3fr);gap:20px;margin:24px 0}.identity-layout figure{margin:0}.identity-layout figcaption{margin-bottom:12px;color:var(--sub)}.identity-layout img{display:block;width:100%;height:auto;max-height:650px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.identity-sheet .btn{margin-top:12px}.identity-thumbnails{display:flex;flex-wrap:wrap;gap:12px;margin-top:16px}.identity-thumbnails a{width:150px;color:var(--sub);font-size:12px}.identity-thumbnails img{width:150px;height:120px;object-fit:contain;background:var(--bg);border-radius:8px}.wardrobe-text{min-height:170px}@media(max-width:760px){.identity-layout{grid-template-columns:1fr}.identity-layout>figure:first-child img{max-height:240px}.author-tabs{margin-bottom:20px}}

.type-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:2px 0 8px}.type-tabs .btn{font-size:17px;font-weight:750}.side-community{user-select:none}

.avatar-placeholder{display:inline-flex;align-items:center;justify-content:center;background:var(--card);color:var(--sub);flex-shrink:0}.side-community .avatar-placeholder{width:38px;height:42px;border-radius:9px}.bulk-authors .avatar-placeholder{width:42px;height:48px;border-radius:8px}.bulk-authors label:has(input:disabled){opacity:.6;cursor:default}

.monthly-panel{border:1px solid #ae3845;border-radius:18px;background:linear-gradient(120deg,#321b23,var(--card));padding:24px;margin-bottom:24px}.monthly-panel h2{margin:7px 0}.monthly-panel p{line-height:1.6}.monthly-panel .field{min-width:170px}.monthly-button{display:flex;width:100%;justify-content:center;align-items:center;gap:14px;min-height:76px;font-size:clamp(19px,2vw,29px);font-weight:800;letter-spacing:.7px;color:#fff;background:#d8273b;border:1px solid #f15a68;border-radius:14px;margin:18px 0 12px;box-shadow:0 8px 25px #b01c3230}.monthly-button:hover:not(:disabled){background:#ed3349}.monthly-button:disabled{opacity:.5;cursor:not-allowed}.monthly-missing{max-height:60vh;overflow:auto}.monthly-missing>.row{padding:12px 0;border-bottom:1px solid var(--line);gap:16px}.monthly-missing small{display:block;color:var(--sub);margin-top:5px}

.monthly-actions{display:grid;grid-template-columns:1.3fr 1fr;align-items:stretch;gap:14px;margin:18px 0 12px}.monthly-actions .monthly-button{margin:0}.monthly-download{display:flex;justify-content:center;align-items:center;gap:10px;white-space:normal;text-align:center;border:2px solid #d8273b;color:#ffbbc4;min-height:76px;font-size:17px;font-weight:750;border-radius:14px}.monthly-download:disabled{opacity:.45}@media(max-width:900px){.monthly-actions{grid-template-columns:1fr}}

.vk-panel{padding:22px;margin-bottom:22px;border:1px solid #385f93;border-radius:16px;background:linear-gradient(120deg,#17263b,var(--card))}.vk-panel h2{margin:8px 0}.vk-panel p{line-height:1.55}.vk-assets{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.vk-assets img{width:110px;height:110px;object-fit:cover;border-radius:12px}.vk-job{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.vk-job .post-text{white-space:pre-wrap}

.pinned-post{margin:24px 0 32px;padding:24px;border:1px solid var(--red-line);border-top:3px solid var(--red);border-radius:16px;background:var(--card);scroll-margin-top:24px}
.pinned-post-heading{margin-bottom:20px}.pinned-post-heading h2{margin-top:12px}
.pinned-post-body{display:flex;gap:28px;align-items:flex-start}.pinned-post-content{flex:1;min-width:0}
.pinned-post-photo{flex:0 0 30%;max-width:360px}.pinned-post-photo img{display:block;width:100%;height:auto;border-radius:12px}.pinned-post-photo>.btn{margin-top:12px}
.pinned-post-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.75;margin:0}
.empty-welcome p{color:var(--sub);margin:12px 0 18px}
.welcome-shortcut{margin:0 0 20px}
.delete-author-panel{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-top:36px;padding:22px 0;border-top:1px solid var(--line)}
.delete-author-panel .hint{margin-top:8px}
@media(max-width:760px){.pinned-post{padding:18px}.pinned-post-body{flex-direction:column;gap:20px}.pinned-post-photo{width:100%;max-width:420px;flex-basis:auto}.pinned-post-content .btn{white-space:normal}}

.author-counter{padding:16px;margin:16px 0;border:1px solid var(--border,#344154);border-radius:14px}.author-counter>div{display:flex;align-items:baseline;gap:12px}.author-counter strong{font-size:34px;line-height:1.2}.author-counter p{margin:10px 0 6px}.author-counter small{opacity:.7;font-size:12px}

.budget-pill{border-color:rgba(76,195,140,.4);white-space:normal;text-align:left}.budget-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.budget-tile{padding:14px;border:1px solid var(--border,#343b48);border-radius:12px;background:rgba(255,255,255,.025);min-width:0}.budget-tile span{display:block;font-size:12px;opacity:.75;margin-bottom:6px}.budget-tile strong{font-size:19px}.budget-panel{margin-bottom:20px}.topbar{flex-wrap:wrap}@media(max-width:520px){.budget-grid{grid-template-columns:1fr}.budget-pill{font-size:12px}}
.budget-control{display:flex;align-items:center;gap:6px}.budget-refresh{padding:9px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border-color:rgba(91,210,170,.45);flex-shrink:0}.budget-refresh:hover{background:rgba(91,210,170,.1)}.budget-refresh:disabled{cursor:wait;opacity:.6}.budget-refresh.is-loading svg{animation:budget-spin 1s linear infinite}@keyframes budget-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.budget-refresh.is-loading svg{animation:none}}

.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(100%,480px);border:1px solid #394557;border-radius:22px;background:#18202d;padding:32px}.auth-card h1{font-size:30px}.auth-card label,.life-dialog label,.publish-card label{display:block;margin:14px 0}.auth-card input,.team-filters input,.team-filters select{width:100%;margin-top:7px;padding:12px;background:#242b38;color:inherit;border:1px solid #455064;border-radius:10px}.auth-card p,.hint{line-height:1.55}#auth-error,#team-error{color:#ff9b9b}.team-table-wrap{overflow:auto;margin:18px 0}.team-table{width:100%;border-collapse:collapse;font-size:14px}.team-table th,.team-table td{padding:12px 9px;text-align:left;vertical-align:top;border-bottom:1px solid #394250}.team-table small{display:block;margin-top:6px;color:#aab4c3}.team-assignments{max-height:300px;overflow:auto;border:1px solid #394557;padding:12px;border-radius:12px}.team-assignments label{display:flex;gap:10px;align-items:center}.team-assignments input{width:auto!important}.team-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.publish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.publish-card{border:1px solid #394557;border-radius:16px;overflow:hidden;margin:20px 0;background:#19212e}.publish-card header{display:flex;justify-content:space-between;gap:12px;padding:18px}.publish-card img{width:100%;max-height:650px;object-fit:contain}.publish-body{padding:20px}.publish-text{white-space:pre-wrap;line-height:1.65}.publish-card input{width:100%;padding:12px;background:#252e3c;color:inherit;border:1px solid #46536a;border-radius:10px}.side-community img{width:42px;height:42px;object-fit:cover;border-radius:9px}.team-assignments input[type=checkbox]{height:auto}.auth-card input[readonly]{opacity:.7}@media(max-width:800px){.publish-grid,.team-filters{grid-template-columns:1fr}.auth-card{padding:22px}.publish-card header{flex-wrap:wrap}}

/* Team and publishing controls use the same dark form styling as the studio. */
.moderator-app .starter-panel{padding:24px;border:1px solid var(--line);background:var(--card);border-radius:16px;margin-bottom:24px}
.moderator-app .starter-panel label{display:block;margin:20px 0 10px;font-size:14px;color:var(--sub)}
.moderator-app .starter-panel textarea{display:block;width:100%;padding:14px;margin-top:10px;min-height:80px;background:var(--input);border:1px solid var(--line);border-radius:10px;color:var(--text);font:inherit;line-height:1.6;resize:vertical}
.moderator-app .starter-panel label:nth-of-type(2) textarea{min-height:145px}.moderator-app .starter-panel .btn{margin:4px 8px 4px 0}
#team-create-user label,#team-edit-user label{display:block;margin:16px 0}
#team-create-user input,#team-create-user select,#team-edit-user input:not([type=checkbox]),#team-edit-user select{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--input);color:var(--text);font:inherit}
#team-edit-user .team-assignments label{display:flex;margin:12px 0}#team-edit-user input[type=checkbox]{accent-color:var(--red)}

.team-credentials-table{min-width:760px}.team-credentials-table td:nth-child(3){min-width:250px;max-width:340px}.team-credentials-table code{display:inline-block;font-size:15px;margin:3px 0 10px}.team-credentials-table .btn{margin:8px 0 0;white-space:normal}.team-password{display:grid;gap:9px}.team-password .input{width:100%;min-width:0;font-family:ui-monospace,Consolas,monospace;font-size:14px}.team-password .row{gap:6px}.team-password .btn{margin:0}.team-password strong{font-size:13px;color:#83d6b2}.team-password small{line-height:1.5}.life-dialog:has(.team-credentials-table){width:min(1100px,96vw)}

.impersonation-banner{position:sticky;top:0;z-index:1000;background:#49351c;border-bottom:2px solid #e6b663;color:#fff5dd;display:flex;gap:18px;align-items:center;justify-content:center;padding:12px 20px;flex-wrap:wrap}.impersonation-banner .btn{background:#fff0cf;color:#30200b}.team-table td:last-child .btn{margin:4px}

.presence-online{color:#79d6a6}.team-table td div+div{margin-top:10px}
#dialog:has(#team-online){width:min(1180px,96vw);max-width:96vw}
#team-online .team-table th:nth-child(3),#team-online .team-table td:nth-child(3){min-width:195px}
#team-online .team-table small{font-size:13px;line-height:1.5}
#team-online .team-table td:first-child{min-width:105px}
.helper-estimate{padding:9px 0 3px;color:#d7deeb;font-size:12px}.helper-estimate>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.helper-estimate b{color:#8fe1bb;white-space:nowrap}.helper-estimate small{display:block;color:#9eabbf;margin-top:4px;line-height:1.45}.helper-price-details{font-size:11px;color:#9eabbf;margin-top:3px}.helper-price-details summary{cursor:pointer}.helper-price-details p{font-size:11px;line-height:1.5;margin:7px 0;max-height:100px;overflow:auto}
.helper-owner-controls{padding:9px 18px;border-bottom:1px solid #3b3039;background:#261d27;font-size:11px}.helper-owner-controls>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:10px}.helper-owner-controls button{background:#39232e;color:#ff96aa;border:1px solid #75404e;border-radius:7px;padding:6px 10px;cursor:pointer}.helper-owner-active{color:#92e0b9}.helper-owner-controls input{width:100%;padding:9px;background:#202632;border:1px solid #69414f;border-radius:8px;color:#fff;margin:6px 0}.helper-owner-controls small{display:block;line-height:1.5;color:#b8aaba;margin-top:6px}.helper-owner-controls label{display:block;margin-top:10px}

.history-scopes{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.history-summary{color:var(--muted);margin:12px 0 20px}.history-batch+.history-batch{border-top:1px solid var(--line);margin-top:36px;padding-top:28px}.history-batch-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.history-batch-heading strong{font-size:15px;color:var(--muted)}

.history-tools{margin:16px 0 22px;border:1px solid var(--line);border-radius:12px;padding:14px 16px}.history-tools summary{cursor:pointer;font-weight:600}.history-release-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--line);margin-top:12px}.history-release-tools p{margin:6px 0 0}.combined-status p{margin-top:8px;color:var(--muted)}

.blog-library-list a{overflow-wrap:anywhere}.blog-research-post{margin-top:14px;padding:16px;border:1px solid var(--border,#343c49);border-radius:12px;background:rgba(255,255,255,.025)}.blog-research-post p{margin:8px 0}.blog-library-list summary{cursor:pointer}

.avatar-attempts{margin-top:16px;padding:16px;border:1px solid #394352;border-radius:12px}.avatar-attempts figure{margin:12px 0;max-width:150px}.avatar-attempts img{width:120px;height:120px;object-fit:cover;border-radius:12px}.avatar-attempts figcaption{font-size:12px;margin-top:6px}.avatar-attempts .vk-assets{display:flex;gap:16px;flex-wrap:wrap}

/* Selecting existing authors for additional posts */
.sidebar{overflow-y:auto}.community-navigation{flex:0 0 auto}.community-navigation .community-list{flex:none;max-height:40vh;min-height:0}.sidebar>.brand,.sidebar>.nav-item,.sidebar>.nav-label,.sidebar>.nav-sep,.sidebar>.side-note,.sidebar>.sidebar-foot{flex-shrink:0}@media(max-height:850px) and (min-width:761px){.sidebar>.side-note{display:none}}
.side-community-row{display:flex;align-items:center;gap:5px}.side-community-row .side-community{min-width:0;flex:1}.community-bulk-check{flex:none;width:17px;height:17px;margin:0;accent-color:#eb4860;cursor:pointer}.bulk-selection-tools{display:grid;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);margin-bottom:10px}.bulk-selection-tools b{font-size:13px}.bulk-selection-tools .btn{font-size:11px;padding:8px}.bulk-total{font-size:18px;font-weight:750;color:#ff98a9}.bulk-authors input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#e34860}#bulk-post-count{width:100%;accent-color:#e34860}

.life-dialog .bulk-authors label{display:flex;align-items:center;gap:12px;margin:0}.life-dialog .bulk-authors label>span{min-width:0}.life-dialog .bulk-authors img{flex:none}

/* Shared owner/admin author selection, including narrow browser windows. */
.community-bulk-toggle{display:flex;align-items:center;justify-content:center;flex:0 0 32px;min-height:44px;cursor:pointer}.community-bulk-toggle:has(input:disabled){cursor:default;opacity:.5}.community-bulk-check{width:20px;height:20px}.side-community-row:has(.community-bulk-check:checked){background:rgba(230,60,85,.09);border-radius:12px}.bulk-access-hint{font-size:12px;line-height:1.5;color:var(--muted,#aab4c3)}
@media(max-width:760px){.sidebar{flex-wrap:wrap;gap:12px}.community-navigation{flex-basis:100%;width:100%;min-width:0}.sidebar .community-list.desktop-only{display:block;max-height:260px}.community-navigation .side-community{width:100%}.bulk-selection-tools .btn{font-size:13px}.community-bulk-toggle{flex-basis:40px}}

/* Keep each author post count visible beside the bulk selector. */
.side-community>img,.side-community>.side-avatar{flex-shrink:0}
.community-summary{min-width:0}
.side-community .community-post-count{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px;margin-top:3px;font-size:14px;line-height:1.4;color:var(--text);white-space:normal;overflow:visible;text-overflow:clip}
.community-post-count strong{font-weight:800;font-variant-numeric:tabular-nums}

/* Drag the boundary to give community names more room. */
.sidebar-resizer{display:none}
@media(min-width:761px){
 .app{grid-template-columns:var(--studio-sidebar-width,264px) minmax(0,1fr)}
 .app>.sidebar{position:sticky;top:0;width:auto;transform:none;box-shadow:none;min-width:0}
 .sidebar-resizer{display:block;position:fixed;left:calc(var(--studio-sidebar-width,264px) - 4px);top:0;bottom:0;width:8px;z-index:95;cursor:col-resize;touch-action:none;background:transparent}
 .sidebar-resizer::after{content:'';position:absolute;left:3px;top:0;bottom:0;width:2px;background:var(--line);transition:background .15s}
 .sidebar-resizer:hover::after,.sidebar-resizer:focus-visible::after,.sidebar-is-resizing .sidebar-resizer::after{background:var(--red-hover);width:3px}
 .sidebar-resizer:focus-visible{outline:2px solid var(--red-hover);outline-offset:1px}
 .sidebar-is-resizing,.sidebar-is-resizing *{cursor:col-resize!important;user-select:none!important}
}

.life-dialog:has(.spending-dashboard){width:min(1380px,97vw);max-height:93vh}.spending-intro{display:flex;justify-content:space-between;gap:18px;align-items:start;margin:22px 0}.spending-intro h2{font-size:26px}.spending-intro p{margin-top:8px;color:var(--sub)}.spending-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;align-items:end;padding:18px;background:#1d2532;border:1px solid #384456;border-radius:14px}.spending-filters label{margin:0;font-size:14px}.spending-filters input,.spending-filters select{display:block;width:100%;min-width:0;background:#111924;color:#f4f6fc;border:1px solid #4a5669;border-radius:9px;padding:10px;margin-top:7px;font:inherit}.spending-periods{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.spending-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 14px}.spending-tile{display:flex;flex-direction:column;gap:9px;padding:18px;border:1px solid #404c60;border-radius:14px;background:#1d2634;min-width:0}.spending-tile>span{font-size:14px}.spending-tile>strong{font-size:27px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.spending-tile>small{font-size:12px;color:#b0bbcb;line-height:1.5}.spending-credit{background:#142c27;border-color:#2c7560}.spending-credit strong,.spending-ok{color:#85e6b6}.spending-debit{background:#30202b;border-color:#81404d}.spending-debit strong,.spending-out{color:#ff93a5}.spending-warning{background:#302b20;border-color:#76623c}.spending-warning strong,.spending-unresolved{color:#f1ca83}.spending-explanation{font-size:13px;color:#acb8c9;line-height:1.6}.spending-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.spending-category{display:flex;flex-direction:column;gap:8px;background:#1d2632;border:1px solid #40516a;border-radius:12px;padding:14px;text-align:left;color:inherit;cursor:pointer}.spending-category strong{color:#ff93a5;font-size:20px}.spending-category small{color:#aeb9cb}.spending-views{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.spending-table{font-size:14px}.spending-table th{white-space:nowrap}.spending-table td{min-width:95px}.spending-table td:first-child{min-width:190px}.spending-table small{font-size:12px;line-height:1.5}.spending-table details{margin-top:10px;max-width:430px;overflow-wrap:anywhere}.spending-table summary{color:#aebed5;cursor:pointer}.spending-operations td:nth-child(2){min-width:300px;max-width:540px}.spending-operations td:nth-child(2)>div{margin-top:6px}.spending-pages{display:flex;align-items:center;justify-content:center;gap:14px;margin:16px}.spending-status{font-size:12px}.spending-table .link-btn{display:block;margin-top:8px}.spending-dashboard [aria-busy=true]{opacity:.55}@media(max-width:900px){.spending-filters,.spending-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.spending-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.spending-summary,.spending-filters,.spending-breakdown{grid-template-columns:1fr}.spending-intro{flex-direction:column}}

/* Team spending: employee -> community -> operation, all time in Moscow. */
.spending-timezone{display:inline-flex;align-items:center;padding:6px 10px;margin-top:10px;border:1px solid #43546d;border-radius:99px;background:#172332;color:#c8d8ef;font-size:12px;white-space:nowrap}
.spending-detail-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0 18px}.spending-detail-head h3{font-size:21px;line-height:1.35;overflow-wrap:anywhere}.spending-detail-head p{font-size:14px;color:#bac6d8;margin-top:8px}.spending-detail-head .btn{flex-shrink:0}
.spending-people-grid,.spending-destination-grid{display:grid;gap:14px;margin:16px 0 24px}.spending-people-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.spending-destination-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr))}
.spending-drill-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;gap:14px;padding:20px;min-width:0;border:1px solid #3e4c60;border-radius:16px;background:linear-gradient(135deg,#1c2635,#19212d);color:#f2f5fb;font:inherit;cursor:pointer;transition:border-color .15s,background .15s,transform .15s}.spending-drill-card:hover{border-color:#f37c92;background:linear-gradient(135deg,#2c2637,#202a3b);transform:translateY(-2px)}.spending-drill-card:focus-visible,.spending-inline-link:focus-visible,.spending-op-title:focus-visible,.spending-breadcrumbs button:focus-visible{outline:2px solid #ff8c9f;outline-offset:4px}
.spending-card-top{display:flex;align-items:flex-start;gap:13px}.spending-person-initial{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid #a34a62;border-radius:14px;background:#4b293a;color:#ffd9e1;font-size:23px;font-weight:800}.spending-card-name{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}.spending-card-name strong{font-size:17px;line-height:1.45;overflow-wrap:anywhere}.spending-card-name small{font-size:12px;color:#b9c6d9}.spending-card-arrow{color:#fd8ca2;font-size:22px;line-height:1.2}.spending-card-amount{color:#ff9bad;font-size:27px;font-weight:800;letter-spacing:-.6px;line-height:1.25;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.spending-card-count{font-size:13px;color:#c1ccdb;line-height:1.6}.spending-card-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:13px;border-top:1px solid #39485b}.spending-card-stats>span{display:flex;flex-direction:column;gap:5px}.spending-card-stats small{font-size:12px;color:#b9c6d9}.spending-card-stats b{font-size:14px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.spending-card-rework{color:#f8a7b5;font-size:12px;line-height:1.6}.spending-card-open{margin-top:auto;padding-top:6px;font-size:13px;font-weight:700;color:#d5e3f8}
.spending-breadcrumbs{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:24px;font-size:14px;color:#b4c1d4}.spending-breadcrumbs button{border:0;padding:3px 0;background:none;color:#efb6c2;font:inherit;cursor:pointer}.spending-breadcrumbs strong{font-weight:600;color:#e5edf8;overflow-wrap:anywhere}
.spending-operations-head{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 16px;margin:16px 0;border:1px solid #35465e;background:#192535;border-radius:12px}.spending-operations-head span{font-size:14px}.spending-operations-head small{font-size:12px;color:#c0cce0}
.spending-day{margin:22px 0}.spending-day>header{display:flex;align-items:center;gap:14px;margin:0 0 12px;padding:0 3px}.spending-day h4{font-size:16px;color:#e8effb}.spending-day>header small{font-size:12px;color:#b4c2d5}
.spending-operation{display:grid;grid-template-columns:135px minmax(0,1fr) 215px;gap:20px;padding:19px 20px;margin-bottom:10px;background:#1b2330;border:1px solid #354358;border-radius:13px;align-items:start}.spending-op-time{display:flex;flex-direction:column;gap:9px}.spending-op-time time{font-size:14px;color:#e5eefb;font-weight:700;font-variant-numeric:tabular-nums}.spending-op-time small,.spending-op-body>small{font-size:12px;line-height:1.6;color:#bac8dd}.spending-inline-link{background:none;border:0;padding:0;text-align:left;color:#eea6b7;font:inherit;font-size:13px;cursor:pointer;overflow-wrap:anywhere}.spending-inline-link:hover,.spending-op-title:hover{text-decoration:underline}
.spending-op-tags{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:10px}.spending-op-tags span{font-size:11px;padding:4px 7px;border-radius:6px;background:#263449;color:#d3e1f4}.spending-op-tags .spending-rework-tag{background:#482c3b;color:#ffafbe}.spending-op-title{display:block;background:none;border:0;padding:0;text-align:left;color:#f3f6fc;font:inherit;font-weight:750;font-size:15px;line-height:1.5;overflow-wrap:anywhere;cursor:pointer}.spending-op-body>p{font-size:14px;line-height:1.6;margin:7px 0 4px;color:#d5dfed}.spending-op-body>small{display:block}.spending-op-body details{margin-top:14px;font-size:12px;color:#b8c6db;overflow-wrap:anywhere}.spending-op-body summary{cursor:pointer;color:#cbd9ed}.spending-op-body dl{margin:12px 0 0;padding:12px;border-radius:9px;background:#141e2b}.spending-op-body dl>div{display:grid;grid-template-columns:135px minmax(0,1fr);gap:10px;margin:6px 0}.spending-op-body dt{color:#acbdd3}.spending-op-body dd{margin:0;color:#e0e8f5}.spending-op-body details p{line-height:1.6;margin-top:10px}
.spending-op-money{display:flex;flex-direction:column;align-items:flex-end;text-align:right;gap:9px}.spending-op-money strong{font-size:18px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;max-width:100%}.spending-op-money span,.spending-op-money small{font-size:12px;line-height:1.6}.spending-op-money small{color:#bac7d9}.spending-empty{padding:35px 20px;margin:20px 0;border:1px dashed #52617a;border-radius:14px;text-align:center;color:#c4cfe0}
@media(max-width:900px){.spending-operation{grid-template-columns:120px minmax(0,1fr);gap:14px}.spending-op-money{grid-column:2;align-items:flex-start;text-align:left}.spending-detail-head{align-items:flex-start;flex-direction:column}.spending-people-grid{grid-template-columns:1fr}}
@media(max-width:520px){.spending-operation{grid-template-columns:1fr;padding:16px}.spending-op-money{grid-column:1;align-items:flex-start;text-align:left}.spending-op-time{flex-direction:row;flex-wrap:wrap;align-items:center}.spending-destination-grid{grid-template-columns:1fr}.spending-op-body dl>div{grid-template-columns:1fr;gap:4px}.spending-card-amount{font-size:25px}.spending-pages{margin:16px 0;gap:8px;font-size:12px}.spending-pages .btn{padding:10px;font-size:12px}}

.logout-confirm{max-width:500px;width:calc(100% - 32px);padding:28px}.logout-confirm h2{font-size:24px;line-height:1.3}.logout-confirm p{color:var(--muted);line-height:1.6;margin:16px 0 24px}.logout-confirm .dialog-footer{display:flex;justify-content:flex-end;gap:12px}.logout-confirm::backdrop{background:rgba(0,0,0,.7)}
.helper-launcher{position:fixed;z-index:90;width:60px;height:60px;display:grid;place-items:center;box-sizing:border-box;border:1px solid #ff7180;border-radius:50%;background:linear-gradient(150deg,#f04e61,#cf203b);color:#fff;box-shadow:0 8px 30px #df28424d;cursor:grab;touch-action:none;user-select:none;transition:box-shadow .18s}
.helper-launcher:hover{box-shadow:0 8px 34px #ed375a80}.helper-launcher:focus-visible,.helper-window button:focus-visible,.helper-drag-handle:focus-visible{outline:3px solid #ffbdc6;outline-offset:3px}.helper-launcher svg{width:29px;height:29px}.helper-dragging,.helper-dragging *{cursor:grabbing!important;user-select:none!important}
.helper-window{position:fixed;z-index:91;display:flex;flex-direction:column;width:480px;height:640px;min-width:min(330px,calc(100vw - 20px));max-width:calc(100vw - 20px);min-height:min(350px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);box-sizing:border-box;resize:both;overflow:hidden;color:#eff1f7;background:#151920;border:1px solid #424854;border-radius:22px;box-shadow:0 20px 80px #0009;font-family:inherit}
.helper-window[hidden]{display:none}.helper-window button,.helper-window textarea{font:inherit;color:inherit}.helper-heading{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:17px 18px;border-bottom:1px solid #303640;background:#1b1e26}.helper-drag-handle{display:flex;align-items:center;gap:12px;flex:1;min-width:0;cursor:grab;touch-action:none;user-select:none;outline-offset:4px;border-radius:6px}.helper-heading h2{font-size:15px;line-height:1.4;letter-spacing:.04em;margin:0}.helper-heading #helper-subtitle{display:block;color:#aab2c0;font-size:12px;margin-top:3px}.helper-heading>[data-helper=close]{width:32px;height:32px;border:1px solid #444b59;border-radius:10px;background:#252a34;font-size:25px;line-height:1;cursor:pointer}.helper-avatar{display:grid;place-items:center;flex:0 0 35px;width:35px;height:35px;border-radius:50%;background:#d8354c;color:white}.helper-avatar svg{width:20px;height:20px}
.helper-window #helper-messages{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:23px 18px 8px;scrollbar-gutter:stable}.helper-turn{margin-bottom:26px}.helper-user{margin-left:42px;padding:12px 15px;background:#34252d;border:1px solid #603846;border-radius:17px 17px 4px 17px}.helper-meta{display:flex;align-items:center;gap:9px;color:#b2bac8;font-size:11px}.helper-meta time{margin-left:auto;white-space:nowrap}.helper-meta b{font-size:11px;color:#dce0e9}.helper-user p,.helper-answer>p{font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0}.helper-answer{padding:16px 2px 0}.helper-answer .helper-avatar{width:27px;height:27px;flex-basis:27px}.helper-answer .helper-avatar svg{width:16px;height:16px}.helper-answer>p{margin-top:11px}.helper-answer footer{display:flex;justify-content:space-between;gap:10px;margin-top:12px;color:#949eaf;font-size:11px}.helper-answer footer button,.helper-change button{padding:0;border:0;background:transparent;color:#b6c1d2;font-size:11px;cursor:pointer}.helper-answer footer button:hover,.helper-change button:hover{color:white}
.helper-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100%;text-align:center;box-sizing:border-box;padding:22px 10px;color:#aab2c0;font-size:14px;line-height:1.7}.helper-empty-icon{display:grid;place-items:center;width:62px;height:62px;border-radius:20px;background:#36242c;color:#ff8da0;margin-bottom:16px}.helper-empty-icon svg{width:31px;height:31px}.helper-empty h3{font-size:22px;color:#f2f4f9;margin:0 0 7px}.helper-empty p{margin:0;max-width:260px}.helper-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:24px}.helper-suggestions button{padding:9px 12px;border:1px solid #45414d;border-radius:10px;background:#23252e;font-size:12px;cursor:pointer}.helper-suggestions button:hover{border-color:#dc4d65}
.helper-window #helper-compose{flex-shrink:0;margin:0;padding:12px 16px 16px;border-top:1px solid #303640;background:#191d25}.helper-window #helper-text{display:block;width:100%;box-sizing:border-box;resize:none;min-height:54px;max-height:150px;overflow-y:auto;border:1px solid #454c5a;border-radius:13px;background:#242933;padding:13px 14px;line-height:1.5;font-size:14px;outline:none}.helper-window #helper-text:focus{border-color:#ed5369;box-shadow:0 0 0 2px #ed53691c}.helper-window #helper-text::placeholder{color:#959fae}.helper-sendbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:12px}.helper-sendbar small{font-size:10px;line-height:1.5;color:#929dac;max-width:150px}.helper-window #helper-send{display:flex;align-items:center;justify-content:center;gap:9px;padding:11px 14px;border:1px solid #f3697c;border-radius:11px;background:#d93650;font-size:12px;font-weight:700;cursor:pointer;white-space:nowrap}.helper-window #helper-send span{font-size:20px;line-height:1}.helper-window #helper-send:hover{background:#e74760}.helper-window button:disabled{opacity:.55;cursor:wait}.helper-window #helper-error{font-size:12px;line-height:1.5;color:#ff9cad;margin:8px 0 0;overflow-wrap:anywhere}.helper-window #helper-error:empty{display:none}.helper-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.helper-thinking{display:flex;gap:4px;align-items:center;margin:14px 0;color:#aab3c2;font-size:12px;flex-wrap:wrap}.helper-thinking i{width:5px;height:5px;border-radius:50%;background:#ef657e;animation:helper-pulse 1s infinite alternate}.helper-thinking i:nth-child(2){animation-delay:.2s}.helper-thinking i:nth-child(3){animation-delay:.4s}.helper-thinking span{margin-left:6px}.helper-change{display:flex;align-items:flex-start;gap:12px;justify-content:space-between;background:#193128;border:1px solid #345e49;color:#a7deba;padding:10px 12px;margin-top:11px;border-radius:11px;font-size:12px;line-height:1.5}.helper-change button{flex-shrink:0;color:#ccebd6}.helper-inline-error{color:#ff9caf}.helper-legacy-apply{margin-top:12px;padding:9px 12px;border:1px solid #5d626f;border-radius:9px;background:#292f39;font-size:12px;cursor:pointer}
@keyframes helper-pulse{from{opacity:.3;transform:translateY(1px)}to{opacity:1;transform:translateY(-2px)}}@media(prefers-reduced-motion:reduce){.helper-thinking i{animation:none}.helper-launcher{transition:none}}
html[data-studio-density] .life-post .post-text{font-size:var(--studio-copy-size,16px)}html[data-studio-density=compact] .life-posts{gap:10px}html[data-studio-density=compact] .side-community{padding:9px}html[data-studio-density=comfortable] .life-posts{gap:18px}@media(min-width:1100px){html[data-studio-density] .life-posts:not(.text-only-grid){grid-template-columns:repeat(var(--studio-post-columns,4),minmax(0,1fr))}}
@media(max-width:540px){.helper-window{width:calc(100vw - 20px);height:min(640px,calc(100dvh - 100px));resize:none}.helper-launcher{width:56px;height:56px}.helper-sendbar small{max-width:110px}.helper-user{margin-left:22px}.helper-heading{padding:14px}.helper-window #helper-messages{padding:18px 14px 8px}}

/* Project developer state inside the shared assistant. */
#helper-developer-status{display:block;color:#d4a65c;font-size:11px;line-height:1.4;margin:0 0 8px}#helper-developer-status[hidden]{display:none}#helper-developer-status.helper-developer-ready{color:#77d8ad}.helper-development{display:grid;gap:9px;margin-top:10px}.helper-development small{font-size:11px;color:#9aa5b5}.helper-development button{justify-self:start}

.bulk-author-row{display:grid;grid-template-columns:minmax(0,1fr) 94px;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;background:var(--card);padding:8px 10px}.life-dialog .bulk-authors .bulk-author-pick{border:0;padding:0;min-width:0;background:transparent}.bulk-author-pick>span{overflow-wrap:anywhere}.life-dialog .bulk-authors .bulk-author-amount{display:flex;flex-direction:column;align-items:stretch;gap:5px;background:transparent;border:0;padding:0;font-size:11px;color:var(--sub);cursor:default}.bulk-author-amount .input{width:100%;padding:9px 8px;text-align:center;color:var(--text);font-weight:750;font-size:16px;box-sizing:border-box}.bulk-author-row:has(input[type=checkbox]:checked){border-color:#b44659}.bulk-author-row input:focus-visible{outline:2px solid #fb7c92;outline-offset:2px}.bulk-author-amount .input:disabled{opacity:.4}@media(max-width:560px){.bulk-author-row{grid-template-columns:minmax(0,1fr) 70px;gap:7px}.bulk-author-pick img{display:none}}

.helper-owner-controls [hidden]{display:none!important}.helper-owner-controls{flex-shrink:0}.helper-heading>[data-helper=fullscreen]{width:32px;height:32px;flex:none;display:grid;place-items:center;border:1px solid #444b59;border-radius:10px;background:#252a34;cursor:pointer}.helper-heading>[data-helper=fullscreen] svg{width:18px;height:18px}.helper-window{resize:none}.helper-fullscreen{inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;border-radius:0!important;z-index:95}.helper-fullscreen #helper-messages{padding-left:max(24px,calc((100vw - 1000px)/2));padding-right:max(24px,calc((100vw - 1000px)/2))}.helper-fullscreen #helper-compose{padding-left:max(24px,calc((100vw - 1000px)/2));padding-right:max(24px,calc((100vw - 1000px)/2))}.helper-resize{position:absolute;z-index:3;touch-action:none}.helper-resize:hover,.helper-resize:focus-visible{background:#ff829733}.helper-resize-e,.helper-resize-w{top:24px;bottom:24px;width:8px;cursor:ew-resize}.helper-resize-e{right:0}.helper-resize-w{left:0}.helper-resize-n,.helper-resize-s{left:24px;right:24px;height:8px;cursor:ns-resize}.helper-resize-n{top:0}.helper-resize-s{bottom:0}.helper-resize-ne,.helper-resize-nw,.helper-resize-se,.helper-resize-sw{width:18px;height:18px}.helper-resize-ne{top:0;right:0;cursor:nesw-resize}.helper-resize-nw{top:0;left:0;cursor:nwse-resize}.helper-resize-se{bottom:0;right:0;cursor:nwse-resize}.helper-resize-sw{bottom:0;left:0;cursor:nesw-resize}.helper-fullscreen .helper-resize{display:none}.helper-fullscreen .helper-drag-handle{cursor:default}
/* Attachments and dictation stay within the assistant composer. */
.helper-media{display:grid;gap:8px;margin:6px 0 10px;min-width:0}
.helper-media-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.helper-media-actions button{border:1px solid var(--border,#394453);border-radius:10px;background:#232a35;color:#e9edf2;padding:8px 11px;font:inherit;font-size:13px;cursor:pointer}
.helper-media-actions button:disabled{opacity:.5;cursor:default}
.helper-media-actions button.recording{background:#b92c43;border-color:#ff6a82;color:#fff}
.helper-media-actions span,.helper-media-status{font-size:11px;line-height:1.45;color:#aeb9ca}
.helper-media-previews{display:flex;gap:8px;flex-wrap:wrap}
.helper-media-previews:empty,.helper-media-status:empty{display:none}
.helper-media-previews>div{position:relative;width:86px;height:64px}
.helper-media-previews img{width:100%;height:100%;object-fit:contain;background:#0e1117;border:1px solid #455163;border-radius:8px}
.helper-media-previews button{position:absolute;right:-5px;top:-5px;width:24px;height:24px;padding:0;border:1px solid #566174;border-radius:50%;background:#283141;color:#fff;font-size:18px;cursor:pointer}
.helper-image-link{display:inline-block;margin:5px 6px 0 0;max-width:100%}
.helper-image-link img{display:block;width:130px;max-width:100%;height:95px;object-fit:contain;background:#111722;border:1px solid #455163;border-radius:8px}
.helper-window #helper-compose{flex-shrink:1;min-height:140px;max-height:70%;overflow-y:auto}
.helper-window .helper-owner-controls{flex-shrink:1;max-height:35%;overflow-y:auto}
@media(max-width:540px){
 .helper-window{left:10px!important;top:calc(var(--helper-mobile-top,0px) + 10px)!important;right:auto!important;bottom:auto!important;width:calc(100vw - 20px)!important;height:calc(var(--helper-mobile-height,100dvh) - 20px)!important;min-height:0;max-height:calc(var(--helper-mobile-height,100dvh) - 20px)}
 .helper-window.helper-fullscreen{left:0!important;top:var(--helper-mobile-top,0px)!important;width:100vw!important;height:var(--helper-mobile-height,100dvh)!important}
 .helper-window .helper-heading{gap:8px;padding:8px 10px}.helper-heading h2{font-size:13px;letter-spacing:0}.helper-heading #helper-subtitle{font-size:11px}
 .helper-heading>[data-helper]{min-width:40px;min-height:44px}.helper-window .helper-resize{display:none}
 .helper-window #helper-compose{padding:8px 10px 10px;max-height:76%;min-height:120px;scroll-padding-bottom:62px}
 .helper-window #helper-text{font-size:16px;padding:9px 10px;min-height:48px;max-height:96px}
 .helper-window .helper-media{gap:6px;margin:0 0 6px}.helper-media-actions{gap:6px}.helper-media-actions button{min-height:44px;padding:8px 10px}.helper-media-actions>span{display:none}
 .helper-estimate{padding-top:6px}.helper-estimate small{display:none}.helper-price-details{margin-top:2px}
 .helper-sendbar{position:sticky;bottom:-10px;background:#191d25;padding:6px 0;margin-top:4px;z-index:2}.helper-window #helper-send{min-height:44px}
 .helper-window #helper-messages{padding:12px 10px 6px}.helper-user{margin-left:10px}.helper-avatar{width:30px;height:30px;flex-basis:30px}
}
.spending-period-help{grid-column:1/-1;margin:0;color:#b8c6da;font-size:12px;line-height:1.5}.spending-applied-period{display:flex;flex-direction:column;gap:6px;padding:16px 18px;margin:0 0 16px;border:1px solid #884252;border-radius:14px;background:#2a202c}.spending-applied-period strong{color:#ffc1cb;font-size:19px}.spending-applied-period span{color:#c6cdd9;font-size:13px;line-height:1.5}.spending-periods [aria-pressed=true]{box-shadow:inset 0 0 0 1px #e9637a}.spending-loading{padding:18px;color:#c6cdd9}

.spending-daily{margin:24px 0;padding:20px;border:1px solid #3a485b;border-radius:18px;background:#171f2a}.spending-daily-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.spending-daily-heading h3{margin:0;font-size:21px}.spending-daily-heading>span,.spending-daily>p{color:#b8c6da;font-size:13px}.spending-daily>p{margin:8px 0 16px;line-height:1.5}.spending-daily-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(190px,100%),1fr));gap:12px;max-height:320px;overflow:auto;overscroll-behavior:contain}.spending-daily-card{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:8px;padding:16px;border:1px solid #40516a;border-radius:12px;background:#1e2a3a;color:#edf1f7;text-align:left;cursor:pointer;font:inherit}.spending-daily-card:hover,.spending-daily-card:focus-visible{border-color:#f0607c;outline:2px solid #f0607c;outline-offset:-2px}.spending-daily-card.is-selected{border-color:#e84868;background:#37232e}.spending-daily-card:disabled{cursor:default}.spending-daily-card strong{font-size:24px;line-height:1.2;color:#ff839b;overflow-wrap:anywhere}.spending-daily-date{font-weight:750}.spending-daily-card>span:not(.spending-daily-date),.spending-daily-card small{font-size:12px;line-height:1.4}.spending-daily-card>span:not(.spending-daily-date){color:#b8c6da}@media(max-width:520px){.spending-daily{padding:14px}.spending-daily-heading h3{font-size:19px}.spending-daily-heading>span{font-size:11px}.spending-daily-grid{grid-template-columns:1fr 1fr;gap:8px}.spending-daily-card{padding:12px}.spending-daily-card strong{font-size:20px}}
