:root {
  --ink: #0b0d0f;
  --ink-2: #111519;
  --panel: #151a1f;
  --line: #2b3239;
  --muted: #84909a;
  --paper: #f3f0e8;
  --lime: #c9ff4b;
  --violet: #a58bff;
  --coral: #ff6f61;
  --cyan: #5ce1e6;
  --text: var(--paper);
  --base: var(--ink);
  --accent: var(--lime);
  --radius: 5px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--paper); min-width: 320px; }
button, textarea, input { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 244px; border-right: 1px solid var(--line); background: #0d1013; padding: 26px 20px; display: flex; flex-direction: column; z-index: 5; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--paper); text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 25px; font-weight: 900; letter-spacing: -4px; }
.brand-mark span { font-size: 15px; vertical-align: top; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; letter-spacing: .13em; }
.brand small { color: var(--muted); font-size: 9px; letter-spacing: .16em; margin-top: 3px; }
nav { margin-top: 42px; display: grid; gap: 5px; min-height: 0; overflow-y: auto; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 12px; color: #a7b0b8; text-decoration: none; border: 1px solid transparent; font-size: 13px; font-weight: 650; }
.nav-link span { color: #58636d; font-family: ui-monospace, monospace; font-size: 10px; }
.nav-link b { margin-left: auto; background: #242a30; border-radius: 99px; padding: 2px 7px; font-size: 10px; }
.nav-link:hover, .nav-link.active { color: var(--paper); background: #161b20; border-color: #252c32; }
.nav-link.active::before { content: ""; width: 3px; height: 20px; background: var(--lime); margin-left: -13px; }
.side-status { margin-top: auto; border-top: 1px solid var(--line); padding-top: 22px; }
.eyebrow { margin: 0; color: #7b8791; letter-spacing: .16em; font-size: 10px; font-weight: 750; }
.side-status > div { display: grid; grid-template-columns: 8px 1fr auto; gap: 8px; align-items: center; margin-top: 13px; font-size: 10px; color: #a8b0b7; }
.side-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px color-mix(in srgb, var(--lime), transparent 35%); }
.side-status i.off { background: #59636c; box-shadow: none; }
.side-status b { color: #d6dadd; font-size: 9px; }
.account-block { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); min-width: 0; }
.account-block strong, .account-block small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-block strong { color: #d5dadd; font-size: 10px; }
.account-block small { color: #68737c; font-size: 8px; margin-top: 4px; }
.account-block > div { display: flex; gap: 9px; margin-top: 10px; }
.account-block button { padding: 0; border: 0; background: transparent; color: #84909a; cursor: pointer; font-size: 9px; }
.account-block button:hover { color: var(--lime); }

main { grid-column: 2; min-width: 0; }
.topbar { min-height: 164px; padding: 40px clamp(28px, 5vw, 72px) 32px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; background: linear-gradient(115deg, #0b0d0f 55%, #12171a); }
.topbar h1 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.035em; font-size: clamp(31px, 4vw, 54px); margin: 10px 0 0; line-height: .98; }
.topbar .eyebrow span { color: var(--lime); }
.top-meta { display: flex; gap: 30px; flex-shrink: 0; }
.top-meta div { border-left: 1px solid var(--line); padding-left: 14px; }
.top-meta span, .top-meta strong { display: block; }
.top-meta span { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.top-meta strong { margin-top: 6px; font-size: 11px; }
.account-switcher { display: grid; gap: 6px; border-left: 1px solid var(--line); padding-left: 14px; }
.account-switcher span { color: var(--muted); font-size: 8px; letter-spacing: .14em; }
.account-switcher select { max-width: 170px; background: #101418; color: var(--paper); border: 1px solid #303940; padding: 7px 28px 7px 8px; font-size: 10px; }
.account-switcher select:disabled { opacity: .75; }

.section { padding: 58px clamp(28px, 5vw, 72px) 72px; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 30px; }
.section-heading > div { display: flex; align-items: center; gap: 16px; }
.section-number { color: #5b6570; font: 11px ui-monospace, monospace; border: 1px solid #353e46; padding: 7px; }
.section-heading h2 { margin: 5px 0 0; font-size: clamp(23px, 3vw, 34px); letter-spacing: -.035em; font-weight: 620; }
.section-heading > p { color: var(--muted); max-width: 360px; text-align: right; line-height: 1.5; font-size: 12px; margin: 0; }
.section-actions { display: flex; gap: 7px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.composer-grid { display: grid; grid-template-columns: minmax(280px, .83fr) minmax(360px, 1.17fr); gap: 14px; align-items: stretch; }
.brief-panel, .draft-panel { padding: clamp(20px, 3vw, 34px); }
label, .label-row { color: #a5aeb5; font-size: 9px; letter-spacing: .14em; font-weight: 750; }
#topic { width: 100%; resize: vertical; min-height: 185px; margin-top: 13px; background: #101418; border: 1px solid #303940; border-radius: 3px; color: var(--paper); padding: 17px; line-height: 1.55; font-size: 14px; }
#topic::placeholder, .post-text::placeholder { color: #5c6670; }
.voice-readout { display: flex; align-items: center; gap: 11px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.voice-readout .pulse { width: 9px; height: 9px; background: var(--violet); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet), transparent 80%); }
.voice-readout strong, .voice-readout small { display: block; }
.voice-readout strong { font-size: 10px; letter-spacing: .08em; }
.voice-readout small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.tone-block { margin-top: 21px; }
.label-row { display: flex; justify-content: space-between; }
.label-row small { color: #626d76; text-transform: none; letter-spacing: 0; font-size: 9px; }
.tone-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; margin-top: 10px; }
.tone { background: #11161a; border: 1px solid #323b43; padding: 10px; border-radius: 3px; font-size: 11px; cursor: pointer; }
.tone:hover, .tone.active { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.tone.loading::after { content: " …"; animation: blink .8s infinite; }
@keyframes blink { 50% { opacity: .25; } }

.draft-panel { display: flex; flex-direction: column; }
.draft-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.draft-head > div > span { font-size: 10px; color: #a4adb4; display: block; margin-top: 5px; }
.draft-head-actions { display: flex; align-items: center; gap: 12px; }
.draft-head-actions small { color: #65717a; font-size: 8px; }
.text-button { border: 0; padding: 0; background: transparent; color: var(--muted); font-size: 10px; cursor: pointer; }
.text-button:hover { color: var(--paper); }
.thread-editor { margin-top: 14px; display: grid; gap: 10px; }
.post-editor { position: relative; border: 1px solid #303940; background: #101418; border-radius: 3px; overflow: hidden; }
.post-editor-media { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 12px 10px; }
.post-editor-meta { display: flex; align-items: center; justify-content: space-between; padding: 0 11px 9px; }
.post-editor-meta .counter { padding: 0; }
.attach-media { border: 1px solid #354049; padding: 5px 7px; color: #87929a; cursor: pointer; font-size: 8px; letter-spacing: .05em; }
.attach-media:hover { color: var(--paper); border-color: var(--lime); }
.attach-media input { display: none; }
.post-media-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 11px 10px; }
.post-media-chip { display: flex; align-items: center; gap: 8px; max-width: 100%; border: 1px solid #354049; background: #151b20; padding: 6px 8px; }
.post-media-chip span { min-width: 0; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #aeb6bb; font-size: 8px; }
.post-media-chip small { display: block; margin-top: 3px; color: #65717a; }
.post-media-chip button { border: 0; background: transparent; color: var(--coral); padding: 0; cursor: pointer; }
.media-chip { display: flex; align-items: center; gap: 7px; max-width: 100%; border: 1px solid #354049; background: #151b20; padding: 6px 8px; color: #aeb6bb; font-size: 8px; }
.media-chip span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.media-chip button { border: 0; background: transparent; color: var(--coral); padding: 0; cursor: pointer; }
.post-media-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px 10px; }
.post-media-controls label { border: 1px solid #354049; padding: 6px 8px; color: #87929a; cursor: pointer; letter-spacing: .05em; }
.post-media-controls label:hover { color: var(--paper); border-color: var(--lime); }
.post-media-controls input { display: none; }
.post-media-controls small { color: #65717a; font-size: 8px; }
.post-label { display: flex; justify-content: space-between; padding: 9px 12px 0; color: #68747e; font-size: 8px; letter-spacing: .12em; }
.post-label button { border: 0; background: transparent; color: #6f7a83; cursor: pointer; font-size: 13px; line-height: 1; }
.post-text { width: 100%; min-height: 115px; resize: vertical; background: transparent; border: 0; color: var(--paper); padding: 12px 13px 7px; line-height: 1.5; font-size: 14px; }
.post-text:focus { outline: 0; }
.counter { display: block; text-align: right; color: #77838c; font: 10px ui-monospace, monospace; padding: 0 11px 9px; }
.counter.warn { color: #ffc35c; }
.counter.over { color: var(--coral); font-weight: 800; }
.add-post { align-self: flex-start; margin: 10px 0 22px; background: transparent; border: 0; color: #929da5; padding: 5px 0; cursor: pointer; font-size: 10px; letter-spacing: .06em; }
.add-post span { color: var(--lime); font-size: 15px; margin-right: 5px; }
.rewrite-block { border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 18px; }
.rewrite-buttons { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.rewrite-buttons button { background: #101418; border: 1px solid #343d44; color: #9da7ae; padding: 7px 9px; cursor: pointer; font-size: 9px; }
.rewrite-buttons button:hover { color: var(--paper); border-color: var(--violet); }
.rewrite-results { display: grid; gap: 6px; margin-top: 10px; }
.rewrite-results > button { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; text-align: left; background: #0d1114; border: 1px solid #303940; color: #c6cbd0; padding: 10px; cursor: pointer; }
.rewrite-results strong { color: var(--violet); font-size: 9px; text-transform: uppercase; }
.rewrite-results span { font-size: 10px; line-height: 1.4; }
.rewrite-results b { color: var(--lime); font-size: 8px; }
.schedule-controls { margin-top: auto; border-top: 1px solid var(--line); padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.pin-toggle { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.pin-toggle input { position: absolute; opacity: 0; }
.pin-toggle > span { width: 28px; height: 16px; border-radius: 20px; background: #333b42; position: relative; }
.pin-toggle > span::after { content: ""; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #929ca4; left: 3px; top: 3px; transition: .2s; }
.pin-toggle input:checked + span { background: var(--lime); }
.pin-toggle input:checked + span::after { background: var(--ink); transform: translateX(12px); }
.pin-field { display: flex; align-items: center; gap: 7px; }
.pin-field input { background: #0d1114; color: var(--paper); border: 1px solid #364049; padding: 7px; font-size: 10px; }
.hidden { display: none !important; }
.primary-button { width: 100%; border: 0; background: var(--lime); color: var(--ink); padding: 15px 18px; display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .12em; font-weight: 850; cursor: pointer; }
.primary-button:hover { background: #d8ff79; }
.primary-button:disabled { opacity: .45; cursor: wait; }

.queue-section { background: #0e1114; }
.queue-tabs, .view-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.queue-tabs button, .view-tabs button { border: 1px solid #343e45; background: #101418; color: #87929a; padding: 8px 12px; cursor: pointer; font-size: 9px; }
.queue-tabs button.active, .view-tabs button.active { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); gap: 7px; overflow-x: auto; padding-bottom: 8px; }
.calendar-day { min-height: 190px; border: 1px solid var(--line); background: var(--panel); padding: 10px; }
.calendar-day header { display: flex; justify-content: space-between; color: #78838b; font-size: 8px; padding-bottom: 9px; border-bottom: 1px solid #293137; }
.calendar-day header strong { color: #c7cdd0; }
.calendar-day > button, .calendar-item { width: 100%; text-align: left; margin-top: 7px; border: 0; border-left: 2px solid var(--lime); background: #101418; color: inherit; padding: 8px; cursor: pointer; }
.calendar-day > p { color: #65717a; font-size: 8px; }
.calendar-day > button b, .calendar-day > button span, .calendar-day > button small { display: block; }
.calendar-day > button b { color: var(--lime); font: 8px ui-monospace, monospace; }
.calendar-day > button span { margin-top: 5px; color: #9aa4ab; font-size: 8px; line-height: 1.4; }
.calendar-day > button small { margin-top: 5px; color: #65717a; font-size: 7px; }
.calendar-item.pinned { border-left-color: var(--violet); }
.calendar-item strong, .calendar-item span { display: block; }
.calendar-item strong { color: var(--lime); font: 8px ui-monospace, monospace; }
.calendar-item span { margin-top: 5px; color: #9aa4ab; font-size: 8px; line-height: 1.4; }
.draft-library { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.library-card { min-height: 170px; padding: 16px; display: flex; flex-direction: column; }
.library-card small { color: var(--violet); font-size: 8px; text-transform: uppercase; }
.library-card p { color: #cbd0d3; font-size: 11px; line-height: 1.5; }
.library-card > div:first-child strong, .library-card > div:first-child small { display: block; }
.library-card > div:first-child small { margin-top: 5px; }
.library-card > div:last-child { margin-top: auto; display: flex; gap: 12px; }
.library-card footer { margin-top: auto; padding: 0; display: flex; gap: 12px; }
.library-card button { border: 0; background: transparent; color: var(--lime); padding: 0; cursor: pointer; font-size: 8px; }
.library-card button:last-child { color: #77838c; }
.queue-list { display: grid; gap: 9px; }
.queue-card { display: grid; grid-template-columns: 36px 150px minmax(0, 1fr) auto; gap: 16px; align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 110px; transition: transform .15s, opacity .15s, border-color .15s; }
.queue-card.dragging { opacity: .35; transform: scale(.99); }
.queue-card.drag-over { border-color: var(--lime); }
.drag-handle { display: grid; place-items: center; border: 0; border-right: 1px solid var(--line); background: #111519; color: #5f6b74; cursor: grab; font-size: 16px; }
.queue-card:not([draggable="true"]) .drag-handle { cursor: default; }
.queue-time { padding: 18px 0; }
.queue-time strong, .queue-time span, .queue-time small { display: block; }
.queue-time strong { font-size: 20px; letter-spacing: -.03em; }
.queue-time span { font-size: 10px; color: #a2abb2; margin-top: 3px; }
.queue-time small { margin-top: 8px; color: var(--lime); font-size: 8px; letter-spacing: .1em; }
.queue-time small.pinned { color: var(--violet); }
.queue-copy { min-width: 0; padding: 16px 0; display: grid; gap: 8px; align-content: center; }
.queue-item { min-width: 0; display: flex; align-items: center; gap: 10px; }
.queue-item p { margin: 0; color: #d5d8d9; line-height: 1.45; font-size: 12px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.thread-index { flex-shrink: 0; border: 1px solid #364049; padding: 3px 5px; color: #7f8a93; font: 8px ui-monospace, monospace; }
.copy-button { margin-left: auto; flex-shrink: 0; background: transparent; border: 1px solid #3a444c; border-radius: 3px; color: #9aa4ab; padding: 6px 8px; cursor: pointer; font-size: 9px; }
.copy-button:hover { border-color: var(--paper); color: var(--paper); }
.queue-actions { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 8px; padding: 14px 16px; border-left: 1px solid var(--line); min-width: 132px; }
.status-pill { font-size: 8px; letter-spacing: .12em; padding: 4px 7px; background: #252c32; color: #aab2b8; }
.status-pill.sending { background: color-mix(in srgb, var(--cyan), transparent 80%); color: var(--cyan); }
.status-pill.failed { background: color-mix(in srgb, var(--coral), transparent 80%); color: var(--coral); }
.status-pill.sent { background: color-mix(in srgb, var(--lime), transparent 85%); color: var(--lime); }
.card-buttons { display: flex; gap: 5px; }
.card-buttons button { background: transparent; border: 0; color: #78848d; padding: 4px; cursor: pointer; font-size: 9px; }
.card-buttons button:hover { color: var(--paper); }
.queue-error { grid-column: 3 / -1; color: var(--coral); font-size: 10px; padding: 0 16px 12px 0; }
.empty-state { padding: 44px; border: 1px dashed #343d44; color: var(--muted); text-align: center; font-size: 12px; }

.growth-section { background: linear-gradient(125deg, #101418, #0b0d0f 70%); }
.section-note { margin: -16px 0 24px; color: #707b84; font-size: 10px; line-height: 1.5; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.idea-grid .empty-state { grid-column: 1 / -1; }
.idea-card { padding: 20px; min-height: 275px; display: flex; flex-direction: column; }
.idea-card > span { color: var(--violet); font: 8px ui-monospace, monospace; letter-spacing: .12em; }
.idea-card h3 { margin: 12px 0 8px; font-size: 17px; line-height: 1.2; }
.idea-card p { margin: 0; color: #89949c; font-size: 10px; line-height: 1.5; }
.idea-card blockquote { margin: 18px 0; padding-left: 12px; border-left: 2px solid var(--lime); color: #d0d5d8; font-size: 11px; line-height: 1.55; }
.idea-card button { margin-top: auto; align-self: flex-start; border: 0; background: transparent; padding: 0; color: var(--lime); font-size: 8px; cursor: pointer; }

.discovery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; align-items: start; }
.trend-panel, .format-panel, .strategic-panel { padding: 20px; min-width: 0; }
.panel-action { border: 0; background: transparent; color: var(--lime); padding: 0; font-size: 8px; cursor: pointer; letter-spacing: .06em; }
.panel-action:disabled { color: #59636b; cursor: wait; }
.panel-note { margin: 12px 0; color: #707b84; font-size: 9px; line-height: 1.5; }
.trend-list { display: flex; flex-wrap: wrap; gap: 7px; }
.trend-chip { display: grid; gap: 3px; text-align: left; border: 1px solid #343e45; background: #101418; color: #c8ced1; padding: 9px 11px; cursor: pointer; max-width: 100%; }
.trend-chip:hover { border-color: var(--lime); }
.trend-chip strong { overflow: hidden; text-overflow: ellipsis; font-size: 10px; }
.trend-chip small { color: #6e7981; font-size: 7px; }
.format-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid #343d44; background: #101418; margin-top: 14px; }
.format-form input { min-width: 0; border: 0; background: transparent; color: var(--paper); padding: 11px; font-size: 10px; }
.format-form button { border: 0; background: var(--lime); color: var(--ink); padding: 0 13px; font-size: 8px; font-weight: 800; cursor: pointer; }
.format-report { display: grid; gap: 8px; }
.format-summary { color: #77828a; font-size: 8px; }
.format-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid #262e34; }
.format-row strong { font-size: 10px; text-transform: capitalize; }
.format-row span { color: var(--lime); font: 9px ui-monospace, monospace; }
.format-row small { grid-column: 1 / -1; color: #717c84; font-size: 8px; }

.engage-grid, .intelligence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.engage-panel, .watch-panel, .heatmap-panel, .opportunities-panel { padding: 20px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; gap: 20px; color: #adb5bb; font-size: 9px; letter-spacing: .1em; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.panel-head small { color: #69747d; letter-spacing: 0; text-align: right; }
.mentions-list, .watch-list { max-height: 660px; overflow: auto; }
.mention-card { padding: 16px 0; border-bottom: 1px solid #262e34; }
.mention-card.reviewed { opacity: .48; }
.mention-card.snoozed { opacity: .6; }
.engage-toolbar, .engagement-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 12px 0; }
.engage-toolbar select, .engagement-toolbar select { border: 1px solid #343d44; background: #101418; color: var(--paper); padding: 8px; font-size: 9px; }
.engage-toolbar small, .engagement-toolbar strong { color: #69747d; font-size: 8px; }
.engagement-state-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 10px; }
.engagement-state-actions button { border: 0; background: transparent; color: #77838c; padding: 0; cursor: pointer; font-size: 7px; }
.engagement-state-actions button:hover { color: var(--lime); }
.mention-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.mention-card strong { font-size: 10px; color: var(--cyan); }
.mention-card time { color: #66717a; font-size: 8px; }
.mention-card > p { color: #ced3d6; font-size: 11px; line-height: 1.5; }
.mention-actions { display: flex; gap: 12px; align-items: center; }
.mention-actions a, .mention-actions button { border: 0; background: transparent; padding: 0; color: #76818a; text-decoration: none; font-size: 8px; cursor: pointer; }
.mention-actions a:hover, .mention-actions button:hover { color: var(--lime); }
.reply-options { display: grid; gap: 5px; margin-top: 10px; }
.reply-options:empty { display: none; }
.reply-options button { display: grid; grid-template-columns: 1fr auto; gap: 10px; border: 1px solid #303940; background: #101418; color: #c8cdd0; text-align: left; padding: 10px; cursor: pointer; }
.reply-options span { font-size: 10px; line-height: 1.45; }
.reply-options b { color: var(--lime); font-size: 7px; white-space: nowrap; }
.watch-form { display: grid; grid-template-columns: auto 1fr auto; align-items: center; margin: 15px 0; border: 1px solid #343d44; background: #101418; }
.watch-form span { padding-left: 10px; color: #69747d; }
.watch-form input { min-width: 0; border: 0; background: transparent; color: var(--paper); padding: 10px 5px; }
.watch-form button { align-self: stretch; border: 0; background: var(--lime); color: var(--ink); padding: 0 12px; font-size: 8px; font-weight: 800; cursor: pointer; }
.watch-card { padding: 16px 0; border-bottom: 1px solid #262e34; }
.watch-title { display: flex; align-items: center; gap: 9px; }
.watch-title img { width: 32px; height: 32px; border-radius: 50%; }
.watch-title div { min-width: 0; }
.watch-title strong, .watch-title a { display: block; }
.watch-title strong { font-size: 11px; }
.watch-title a { color: var(--cyan); text-decoration: none; font-size: 9px; margin-top: 2px; }
.watch-title button { margin-left: auto; border: 0; background: transparent; color: #6f7a83; cursor: pointer; }
.watch-card > p { color: #8b969e; font-size: 10px; line-height: 1.45; }
.watch-stats { display: flex; gap: 16px; color: #737e87; font-size: 8px; }
.watch-stats b { color: #cbd0d3; }
.watch-posts { display: grid; gap: 5px; margin-top: 12px; }
.watch-posts a { color: #b9c0c4; background: #101418; padding: 9px; text-decoration: none; font-size: 9px; line-height: 1.4; }
.watch-posts small { display: block; color: #67727b; margin-top: 5px; }
.mini-empty { color: #69747d; padding: 25px 5px; font-size: 10px; line-height: 1.5; }
.strategic-panel { margin-top: 12px; }
.strategic-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.strategic-card { display: flex; flex-direction: column; min-width: 0; min-height: 180px; padding: 14px; border: 1px solid #2d363d; background: #101418; }
.strategic-author { display: flex; align-items: center; gap: 8px; }
.strategic-author img { width: 28px; height: 28px; border-radius: 50%; }
.strategic-author strong, .strategic-author span { display: block; }
.strategic-author strong { font-size: 9px; }
.strategic-author span { color: var(--cyan); font-size: 8px; margin-top: 2px; }
.strategic-card > p { color: #cbd0d3; font-size: 10px; line-height: 1.5; }
.strategic-reason { color: #7d888f; font-size: 8px; line-height: 1.4; text-transform: uppercase; }
.strategic-meta { display: flex; flex-wrap: wrap; gap: 9px; color: #78838b; font-size: 8px; margin-top: 8px; }
.strategic-actions { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 12px; }
.strategic-actions button, .strategic-actions a { border: 0; background: transparent; color: var(--lime); text-decoration: none; font-size: 8px; padding: 0; cursor: pointer; }
.strategic-actions a { color: #78838b; }
.strategic-actions button:hover, .strategic-actions a:hover { color: var(--paper); }
.strategic-actions button:disabled { color: #68737b; cursor: wait; }
.strategic-replies { display: grid; gap: 8px; margin-top: 12px; }
.strategic-replies:empty { display: none; }
.strategic-reply { padding-top: 9px; border-top: 1px solid #293137; }
.strategic-reply > div:first-child, .strategic-reply > div:last-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.strategic-reply strong { color: #aeb6bb; font-size: 8px; text-transform: uppercase; }
.strategic-counter { color: #6d7880; font: 8px ui-monospace, monospace; }
.strategic-counter.warn { color: #c5a961; }
.strategic-counter.over { color: var(--coral); }
.strategic-reply textarea { width: 100%; resize: vertical; margin: 7px 0; border: 1px solid #303940; background: #0c0f12; color: #d4d8da; padding: 9px; font: inherit; font-size: 10px; line-height: 1.45; }
.strategic-reply > div:last-child { justify-content: flex-start; }
.strategic-reply button { border: 0; background: transparent; color: #7b868e; padding: 0; font-size: 7px; cursor: pointer; }
.strategic-reply button:last-child { color: var(--lime); }

.audience-section { background: #0e1114; }
.import-controls { display: flex; gap: 7px; }
.import-controls select { border: 1px solid #414b53; background: #101418; color: #aab2b8; padding: 8px; font-size: 9px; }
.audience-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.audience-summary > div { padding: 20px; border-right: 1px solid var(--line); }
.audience-summary > div:last-child { border-right: 0; }
.audience-summary span, .audience-summary strong { display: block; }
.audience-summary span { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.audience-summary strong { margin-top: 8px; font: 18px ui-monospace, monospace; }
.audience-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 12px 0; }
.audience-toolbar input { flex: 1; min-width: 0; border: 1px solid #343d44; background: #101418; color: var(--paper); padding: 11px; font-size: 10px; }
.audience-toolbar small { color: #69747d; font-size: 8px; }
.audience-list { max-height: 780px; overflow: auto; padding: 0 18px; }
.audience-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1.5fr) auto; gap: 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid #262e34; }
.audience-row:last-child { border-bottom: 0; }
.audience-row.vip { background: linear-gradient(90deg, color-mix(in srgb, var(--lime), transparent 94%), transparent); }
.audience-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.audience-person img { width: 34px; height: 34px; border-radius: 50%; }
.audience-person strong, .audience-person a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audience-person strong { font-size: 10px; }
.audience-person a { color: var(--cyan); text-decoration: none; font-size: 8px; margin-top: 3px; }
.audience-bio { min-width: 0; color: #87929a; font-size: 9px; line-height: 1.45; }
.audience-stats { display: flex; gap: 14px; color: #747f87; font-size: 8px; white-space: nowrap; }
.audience-stats b { color: #d0d4d6; }
.audience-details { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(220px, 1.3fr) auto; gap: 8px; }
.audience-details input, .audience-details textarea { min-width: 0; border: 1px solid #303940; background: #101418; color: var(--paper); padding: 8px; font-size: 9px; }
.audience-details textarea { resize: vertical; }
.audience-details label { display: flex; align-items: center; gap: 6px; }
.audience-details button { border: 1px solid #3b464e; background: transparent; color: var(--lime); padding: 8px 10px; cursor: pointer; font-size: 8px; }

.secondary-button { background: transparent; border: 1px solid #414b53; border-radius: 3px; padding: 9px 12px; color: #aab2b8; cursor: pointer; font-size: 10px; }
.secondary-button:hover { border-color: var(--lime); color: var(--paper); }
.metric-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-bottom: 0; }
.metric-summary > div { padding: 22px; border-right: 1px solid var(--line); }
.metric-summary > div:last-child { border: 0; }
.metric-summary span, .metric-summary strong { display: block; }
.metric-summary span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.metric-summary strong { margin-top: 8px; font: 24px ui-monospace, monospace; }
.metric-summary .sync-readout strong { font-size: 11px; margin-top: 13px; }
.chart-panel { border-radius: 0; padding: 20px 22px 12px; }
.chart-head { display: flex; justify-content: space-between; color: #adb5bb; font-size: 9px; letter-spacing: .1em; }
.chart-head small { color: #69747d; letter-spacing: 0; }
.sparkline { height: 160px; margin-top: 10px; }
.sparkline svg { width: 100%; height: 100%; overflow: visible; }
.sparkline .grid { stroke: #2a3238; stroke-width: 1; }
.sparkline .area { fill: url(#spark-fill); }
.sparkline .line { fill: none; stroke: var(--lime); stroke-width: 2; vector-effect: non-scaling-stroke; }
.sparkline .follower-line { fill: none; stroke: var(--cyan); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.sparkline .dot { fill: var(--ink); stroke: var(--lime); stroke-width: 2; }
.table-wrap { margin-top: 12px; overflow-x: auto; }
.analytics-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-bottom: 12px; }
.analytics-toolbar label { display: grid; gap: 5px; }
.analytics-toolbar input, .analytics-toolbar select { border: 1px solid #343d44; background: #101418; color: var(--paper); padding: 8px; font-size: 9px; }
.analytics-toolbar button { margin-left: auto; }
.analytics-insights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.analytics-insights > article,
.insight-card { border: 1px solid var(--line); background: var(--panel); padding: 14px; min-width: 0; }
.analytics-insights > article span, .analytics-insights > article strong, .analytics-insights > article small { display: block; }
.analytics-insights > article span { color: #707b84; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.analytics-insights > article strong { margin-top: 7px; color: var(--lime); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.analytics-insights > article small { margin-top: 5px; color: #849099; font-size: 8px; line-height: 1.4; }
.insight-card small, .insight-card strong, .insight-card span { display: block; }
.insight-card small { color: #707b84; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.insight-card strong { margin-top: 7px; color: var(--lime); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.insight-card span { margin-top: 5px; color: #849099; font-size: 8px; line-height: 1.4; }
.intelligence-grid { margin-top: 12px; align-items: start; }
.time-heatmap { overflow-x: auto; padding-top: 14px; }
.heatmap-grid { display: grid; grid-template-columns: 30px repeat(24, minmax(18px, 1fr)); gap: 3px; min-width: 620px; align-items: center; }
.heatmap-grid b, .heatmap-grid strong { color: #68737c; font: 7px ui-monospace, monospace; text-align: center; }
.heatmap-grid strong { text-align: left; }
.heatmap-grid i { aspect-ratio: 1; min-height: 16px; background: #1c2328; border-radius: 2px; }
.heatmap-grid .heat-1 { background: #283127; }
.heatmap-grid .heat-2 { background: #344125; }
.heatmap-grid .heat-3 { background: #405124; }
.heatmap-grid .heat-4 { background: #4d6222; }
.heatmap-grid .heat-5 { background: #5a7320; }
.heatmap-grid .heat-6 { background: #6a871d; }
.heatmap-grid .heat-7 { background: #7b9c19; }
.heatmap-grid .heat-8 { background: #91b714; }
.heatmap-grid .heat-9 { background: #abd60d; }
.heatmap-grid .heat-10 { background: var(--lime); }
.time-recommendations { margin-top: 12px; color: #adb5bb; font-size: 9px; }
.time-recommendations span { color: var(--lime); font-size: 8px; }
.opportunity { display: block; padding: 15px 0; border-bottom: 1px solid #262e34; color: inherit; text-decoration: none; }
.opportunity strong, .opportunity span, .opportunity b { display: block; }
.opportunity strong { font-size: 11px; }
.opportunity span { margin-top: 6px; color: #859098; font-size: 10px; line-height: 1.45; }
.opportunity b { margin-top: 9px; color: var(--lime); font-size: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; }
th { text-align: left; color: #6f7a83; font-size: 8px; letter-spacing: .12em; font-weight: 700; padding: 13px 17px; border-bottom: 1px solid var(--line); }
td { padding: 15px 17px; border-bottom: 1px solid #252c31; color: #b3bbc0; font-size: 11px; }
tr:last-child td { border-bottom: 0; }
td:first-child { max-width: 480px; color: #d7dadd; }
td:not(:first-child) { font-family: ui-monospace, monospace; }
td a { color: inherit; text-decoration: none; }
td a:hover { color: var(--lime); }
footer { padding: 25px clamp(28px, 5vw, 72px); color: #535d65; font-size: 8px; letter-spacing: .14em; }
.toast { position: fixed; right: 24px; bottom: 24px; max-width: min(380px, calc(100vw - 48px)); padding: 12px 15px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 45px #0008; border-left: 4px solid var(--lime); font-size: 11px; line-height: 1.4; transform: translateY(120px); opacity: 0; transition: .25s; z-index: 20; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left-color: var(--coral); }
.clipboard-fallback { position: fixed; opacity: 0; pointer-events: none; }

.auth-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 70% 20%, #1b2326, var(--ink) 48%); }
.auth-card { width: min(440px, 100%); padding: 38px; box-shadow: 0 28px 100px #000a; }
.auth-card .brand-mark { margin-bottom: 30px; }
.auth-card h2 { margin: 10px 0 14px; font: 400 36px/1.05 Georgia, serif; letter-spacing: -.035em; }
.auth-card > p:not(.eyebrow) { color: #9aa4ab; font-size: 12px; line-height: 1.6; }
.auth-card .primary-button { margin-top: 26px; }
.auth-card > small { display: block; min-height: 16px; color: #6d7881; margin-top: 15px; font-size: 9px; line-height: 1.5; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: #66717a; font-size: 8px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.email-auth, .email-auth-form { display: grid; gap: 8px; }
.email-auth input, .email-auth-form input { width: 100%; border: 1px solid #303940; background: #101418; color: var(--paper); padding: 11px; font-size: 11px; }
.email-auth-form > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.email-auth-form button { border: 1px solid #3a444c; background: #101418; color: #b1b8bd; padding: 10px; cursor: pointer; font-size: 9px; }
.email-auth-form button:first-child { border-color: var(--lime); color: var(--lime); }
.email-auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.email-auth-actions button { border: 1px solid #3a444c; background: #101418; color: #b1b8bd; padding: 10px; cursor: pointer; font-size: 9px; }
.email-auth-actions button:first-child { border-color: var(--lime); color: var(--lime); }

.settings-dialog { width: min(720px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; color: var(--paper); box-shadow: 0 30px 110px #000c; }
.settings-dialog::backdrop { background: #050607dd; backdrop-filter: blur(5px); }
.settings-dialog form { padding: 28px; }
.settings-dialog section { padding: 20px 0; border-top: 1px solid var(--line); }
.settings-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 22px; }
.settings-head h2 { margin: 5px 0 0; font-size: 25px; }
.settings-head > button { border: 0; background: transparent; color: #88939c; cursor: pointer; font-size: 25px; }
.settings-dialog section > input, .settings-dialog section > textarea { width: 100%; margin-top: 9px; background: #101418; border: 1px solid #303940; border-radius: 3px; color: var(--paper); padding: 11px; font-size: 12px; }
.settings-dialog textarea { resize: vertical; line-height: 1.5; }
.field-help { margin: 7px 0 0; color: #707b84; font-size: 9px; line-height: 1.45; }
.field-help code { color: #aab2b8; }
.slot-settings { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin-top: 10px; }
.slot-settings label { display: grid; gap: 6px; }
.slot-settings input { min-width: 0; width: 100%; background: #101418; border: 1px solid #303940; color: var(--paper); padding: 9px; font-size: 10px; }
.x-settings { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.x-settings strong { display: block; margin-top: 7px; font-size: 12px; }
.x-settings .secondary-button { flex-shrink: 0; }
.x-account-manager { min-width: 0; flex: 1; }
.x-account-list { display: grid; gap: 6px; margin-top: 10px; }
.x-account-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 10px; border: 1px solid #303940; background: #101418; }
.x-account-row.active { border-color: color-mix(in srgb, var(--lime), transparent 35%); }
.x-account-row > div { display: flex; align-items: center; gap: 9px; min-width: 0; }
.x-account-row img { width: 30px; height: 30px; border-radius: 50%; }
.x-account-row span { min-width: 0; }
.x-account-row strong, .x-account-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-account-row strong { color: #d5dadd; font-size: 10px; margin: 0; }
.x-account-row small { color: #6f7a83; font-size: 8px; margin-top: 3px; }
.x-account-row button { border: 0; background: transparent; color: #77838c; font-size: 8px; cursor: pointer; padding: 4px; }
.x-account-row button:hover { color: var(--lime); }
.budget-grid, .budget-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 10px; }
.budget-grid label, .budget-settings label { display: grid; gap: 6px; }
.budget-grid input, .budget-settings input[type="number"] { width: 100%; border: 1px solid #303940; background: #101418; color: var(--paper); padding: 9px; }
.budget-settings .budget-check { grid-column: 1 / -1; display: flex; align-items: center; }
.usage-readout { margin-top: 10px; color: #87929a; font: 9px ui-monospace, monospace; line-height: 1.7; }
.data-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.danger-button { border: 1px solid var(--coral); background: transparent; color: var(--coral); padding: 9px 12px; cursor: pointer; font-size: 9px; }
.admin-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 12px; }
.admin-panel { padding: 20px; min-width: 0; }
.admin-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; margin: 14px 0; }
.admin-form input, .admin-form select { min-width: 0; border: 1px solid #343d44; background: #101418; color: var(--paper); padding: 9px; font-size: 9px; }
.admin-form button { border: 0; background: var(--lime); color: var(--ink); padding: 0 12px; font-size: 8px; font-weight: 800; }
.admin-list { display: grid; gap: 7px; }
.admin-row { border: 1px solid #303940; background: #101418; padding: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.admin-row strong, .admin-row small { display: block; overflow: hidden; text-overflow: ellipsis; }
.admin-row strong { font-size: 9px; }
.admin-row small { margin-top: 4px; color: #707b84; font-size: 8px; }
.admin-row button { border: 0; background: transparent; color: var(--coral); padding: 0; cursor: pointer; font-size: 8px; }
.invite-row { border-bottom: 1px solid #293137; padding: 10px 0; display: flex; justify-content: space-between; gap: 10px; }
.invite-row span, .invite-row small { display: block; }
.invite-row span { font-size: 9px; }
.invite-row small { margin-top: 4px; color: #707b84; font-size: 7px; }
.invite-row button { border: 0; background: transparent; color: var(--coral); cursor: pointer; font-size: 8px; }
.health-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 12px 0; border-bottom: 1px solid #293137; }
.health-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px #c9ff4b88; }
.health-row i.off { background: var(--coral); box-shadow: none; }
.health-row span, .health-row strong { font-size: 9px; }
.admin-user { border: 1px solid #303940; background: #101418; padding: 14px; margin-top: 8px; }
.admin-user > div:first-child strong, .admin-user > div:first-child small { display: block; }
.admin-user > div:first-child strong { font-size: 10px; }
.admin-user > div:first-child small { margin-top: 4px; color: #707b84; font-size: 8px; }
.admin-counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; color: #849099; font-size: 8px; }
.admin-counts .danger { color: var(--coral); }
.admin-user-actions { display: grid; grid-template-columns: 85px 100px 90px auto; gap: 6px; }
.admin-user-actions input, .admin-user-actions select { min-width: 0; border: 1px solid #343d44; background: #0d1114; color: var(--paper); padding: 7px; font-size: 8px; }
.admin-user-actions button { border: 1px solid #414b53; background: transparent; color: #aab2b8; font-size: 8px; cursor: pointer; }
.admin-user details { margin-top: 10px; color: #707b84; font-size: 8px; }
.health-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.health-card { border: 1px solid #303940; padding: 12px; }
.health-card span, .health-card strong { display: block; }
.health-card span { color: #707b84; font-size: 8px; }
.health-card strong { margin-top: 5px; font-size: 10px; }

@media (max-width: 980px) {
  .shell { grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { width: 72px; padding: 22px 14px; align-items: center; }
  .brand > span:last-child { display: none; }
  .nav-link:not(.active)::before, .nav-link span, .nav-link b, .nav-link { font-size: 0; }
  nav { width: 100%; }
  .nav-link { justify-content: center; padding: 12px 5px; }
  .nav-link::after { font-size: 12px; }
  .nav-link[href="#composer"]::after { content: "✎"; }
  .nav-link[href="#growth"]::after { content: "✦"; }
  .nav-link[href="#queue"]::after { content: "≡"; }
  .nav-link[href="#engage"]::after { content: "@"; }
  .nav-link[href="#audience"]::after { content: "◎"; }
  .nav-link[href="#signals"]::after { content: "⌁"; }
  .side-status, .account-block { display: none; }
  main { grid-column: 2; }
  .composer-grid { grid-template-columns: 1fr; }
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engage-grid, .intelligence-grid, .discovery-grid { grid-template-columns: 1fr; }
  .draft-library, .analytics-insights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .strategic-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; width: 100%; height: 64px; flex-direction: row; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-mark { width: 38px; height: 38px; }
  nav { margin: 0 0 0 auto; width: auto; max-width: calc(100vw - 86px); display: flex; gap: 2px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  .nav-link { width: 38px; flex: 0 0 38px; }
  main { grid-column: auto; }
  .topbar { min-height: 175px; padding: 28px 20px; align-items: flex-start; flex-direction: column; }
  .top-meta { width: 100%; justify-content: space-between; }
  .top-meta { flex-wrap: wrap; gap: 18px; }
  .account-switcher { width: 100%; }
  .account-switcher select { max-width: none; width: 100%; }
  .section { padding: 45px 20px 55px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .section-heading > p { text-align: left; }
  .brief-panel, .draft-panel { padding: 20px; }
  .schedule-controls { align-items: flex-start; flex-direction: column; }
  .queue-card { grid-template-columns: 30px 105px minmax(0, 1fr); }
  .queue-actions { grid-column: 2 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; justify-content: space-between; align-items: center; min-width: 0; }
  .queue-copy { padding-right: 12px; }
  .copy-button { font-size: 0; }
  .copy-button::after { content: "COPY"; font-size: 8px; }
  .metric-summary { grid-template-columns: repeat(2, 1fr); }
  .metric-summary > div:nth-child(2) { border-right: 0; }
  .metric-summary > div { border-bottom: 1px solid var(--line); }
  .slot-settings { grid-template-columns: 1fr; }
  .x-settings { align-items: flex-start; flex-direction: column; }
  .idea-grid { grid-template-columns: 1fr; }
  .strategic-feed { grid-template-columns: 1fr; }
  .audience-summary { grid-template-columns: repeat(2, 1fr); }
  .audience-summary > div:nth-child(2) { border-right: 0; }
  .audience-summary > div { border-bottom: 1px solid var(--line); }
  .audience-toolbar { align-items: stretch; flex-direction: column; }
  .audience-row { grid-template-columns: 1fr; gap: 8px; }
  .audience-details { grid-template-columns: 1fr; }
  .draft-library, .analytics-insights { grid-template-columns: 1fr; }
  .calendar-grid { grid-template-columns: repeat(7, 180px); }
  .draft-head { gap: 12px; }
  .draft-head-actions { align-items: flex-end; flex-direction: column-reverse; }
  .admin-form { grid-template-columns: 1fr; }
  .admin-form button { padding: 10px; }
  .import-controls { width: 100%; }
  .rewrite-results > button { grid-template-columns: 1fr auto; }
  .rewrite-results strong { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.notification-button { background: transparent; border: 1px solid var(--line); color: var(--text); padding: 10px 12px; letter-spacing: .12em; font-size: 10px; }
.notification-button b { background: var(--accent); color: #0b0d0f; border-radius: 99px; margin-left: 7px; padding: 2px 6px; }
.notification-list { display: grid; gap: 8px; margin: 20px 0; max-height: 55vh; overflow: auto; }
.notification-list article { border: 1px solid var(--line); padding: 14px; display: grid; gap: 6px; }
.notification-list article.unread { border-left: 3px solid var(--accent); }
.notification-list small, .activity-entry small { color: var(--muted); }
.account-chip { color: var(--accent); display: block; font-size: 9px; letter-spacing: .1em; margin-bottom: 5px; }
.workflow-pill { border: 1px solid var(--line); padding: 3px 6px; text-transform: uppercase; font-size: 9px; color: var(--accent); }
.activity-entry { border-bottom: 1px solid var(--line); padding: 12px 0; display: grid; gap: 5px; }
#draft-activity { max-height: 50vh; overflow: auto; margin: 10px 0 20px; }
#collaboration-settings.shared { opacity: .65; }

.composer-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.composer-extras label, .poll-builder label { color: var(--muted); display: grid; font-size: 9px; gap: 6px; letter-spacing: .12em; }
.composer-extras input, .composer-extras select, .poll-builder input, .poll-builder select, #campaign-dialog input, #campaign-dialog textarea, #campaign-dialog select { background: var(--base); border: 1px solid var(--line); color: var(--text); padding: 11px; }
.poll-builder { border: 1px solid var(--line); display: grid; gap: 8px; margin: 14px 0; padding: 14px; }
.composer-tools { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; }
.composer-tools summary { color: var(--muted); cursor: pointer; font-size: 9px; letter-spacing: .14em; }
.composer-tool-grid { display: grid; gap: 18px; grid-template-columns: 1.2fr 1fr 1.2fr; margin-top: 15px; }
.post-preview { background: #000; border: 1px solid #2f3336; border-radius: 14px; min-height: 140px; padding: 14px; }
.preview-author { align-items: center; display: flex; gap: 9px; }
.preview-avatar { background: var(--accent); border-radius: 50%; color: #071004; display: grid; font-weight: 800; height: 36px; place-items: center; width: 36px; }
.preview-copy { color: #e7e9ea; line-height: 1.35; margin: 12px 0; white-space: pre-wrap; }
.preview-meta { color: #71767b; font-size: 11px; }
.preview-media { display: grid; gap: 4px; grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
.preview-media img { aspect-ratio: 16 / 9; border: 1px solid #2f3336; border-radius: 9px; height: 100%; object-fit: cover; width: 100%; }
.template-list, .media-library, #campaign-list, #digest-list { display: grid; gap: 8px; margin-top: 10px; }
.template-row, .media-card, .campaign-card, .digest-card { border: 1px solid var(--line); display: grid; gap: 7px; padding: 10px; }
.template-row div, .media-card div, .campaign-card div { display: flex; flex-wrap: wrap; gap: 6px; }
.template-row button, .media-card button, .campaign-card button { background: transparent; border: 1px solid var(--line); color: var(--text); font-size: 9px; padding: 6px; }
.media-library { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; overflow: auto; }
.media-card img { aspect-ratio: 1; background: #080a0c; object-fit: cover; width: 100%; }
.post-media-chip img { border-radius: 4px; height: 42px; object-fit: cover; width: 42px; }
.media-card small, .campaign-card small, .digest-card small { color: var(--muted); }
.campaign-grid { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.campaign-grid > .panel { padding: 20px; }
.mix-bar { background: #252a2f; height: 5px; overflow: hidden; }
.mix-bar i { background: var(--accent); display: block; height: 100%; }
.analytics-comparison { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); margin: 12px 0; }
.analytics-comparison > div { border: 1px solid var(--line); display: grid; gap: 6px; padding: 14px; }
.analytics-comparison span { color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.analytics-comparison strong.up { color: var(--accent); }
.analytics-comparison strong.down { color: #ff766d; }
.security-actions, .legal-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.onboarding-checklist { display: grid; gap: 7px; margin-top: 8px; }
.onboarding-checklist div { color: var(--muted); }
.onboarding-checklist div.done { color: var(--accent); }
#crop-canvas { background: #080a0c; display: block; max-height: 55vh; max-width: 100%; width: 100%; }
.legal-copy { color: var(--muted); line-height: 1.65; max-height: 60vh; overflow: auto; }
.legal-copy h3 { color: var(--text); }

@media (max-width: 1100px) {
  .composer-tool-grid, .campaign-grid { grid-template-columns: 1fr; }
  .analytics-comparison { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .composer-extras, .analytics-comparison { grid-template-columns: 1fr; }
}

/* Account-aware AI systems */
.action-summary { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 14px; }
.action-summary > div { border-right: 1px solid var(--line); padding: 16px; }
.action-summary > div:last-child { border-right: 0; }
.action-summary span, .action-summary strong { display: block; }
.action-summary span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.action-summary strong { margin-top: 7px; font-size: 18px; }

.ask-layout { display: grid; grid-template-columns: minmax(230px, .36fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.ask-sidebar, .ask-main { padding: 20px; }
.ask-sidebar { max-height: 720px; overflow: auto; }
.ask-sidebar .panel-head:not(:first-child) { margin-top: 24px; }
.assistant-skills, .assistant-chats { display: grid; gap: 6px; margin-top: 10px; }
.assistant-skills button, .assistant-chats button { width: 100%; border: 1px solid var(--line); background: #101418; color: var(--text); padding: 10px; text-align: left; cursor: pointer; }
.assistant-skills button.active, .assistant-chats button.active { border-color: var(--lime); }
.assistant-skills strong, .assistant-skills small, .assistant-chats strong, .assistant-chats small { display: block; }
.assistant-skills strong, .assistant-chats strong { font-size: 10px; }
.assistant-skills small, .assistant-chats small { color: var(--muted); font-size: 8px; line-height: 1.45; margin-top: 4px; }
.ask-main { display: flex; flex-direction: column; min-height: 680px; }
.assistant-thread { display: grid; gap: 10px; flex: 1; max-height: 570px; overflow: auto; padding-right: 4px; }
.assistant-message { border: 1px solid var(--line); padding: 14px; }
.assistant-message.user { border-left: 3px solid var(--violet); }
.assistant-message.assistant { border-left: 3px solid var(--lime); }
.assistant-message > span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.assistant-message p { white-space: pre-wrap; line-height: 1.6; margin: 8px 0 0; font-size: 11px; }
.assistant-message ul { color: #aeb6bb; line-height: 1.55; font-size: 10px; padding-left: 18px; }
.assistant-proposals h3 { color: var(--muted); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; }
.assistant-proposal { border: 1px solid var(--line); margin-top: 8px; padding: 13px; }
.assistant-proposal.saved { opacity: .7; }
.assistant-proposal > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.assistant-proposal strong, .assistant-proposal small { display: block; }
.assistant-proposal small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.assistant-proposal > p { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 8px; align-items: start; border-top: 1px solid var(--line); margin: 10px 0 0; padding-top: 10px; white-space: pre-wrap; line-height: 1.5; font-size: 10px; }
.assistant-proposal > p b { color: var(--lime); font-size: 8px; }
.assistant-proposal > p small { color: var(--muted); white-space: nowrap; }
.assistant-proposal button { border: 0; background: var(--lime); color: var(--ink); padding: 8px 10px; font-size: 8px; font-weight: 800; cursor: pointer; }
.assistant-form { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.assistant-form textarea { width: 100%; resize: vertical; border: 1px solid #303940; background: #101418; color: var(--paper); padding: 13px; line-height: 1.5; }
.assistant-form > div { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.assistant-form span { color: var(--muted); font-size: 8px; letter-spacing: .12em; }
.assistant-form button { border: 0; background: var(--lime); color: var(--ink); padding: 10px 13px; font-size: 8px; font-weight: 850; cursor: pointer; }

.workers-grid { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 14px; }
.worker-editor-panel, .workers-grid > .panel, .worker-review-panel { padding: 20px; }
.worker-form { display: grid; gap: 9px; margin-top: 14px; }
.worker-form > input, .worker-form > select, .worker-form textarea, .worker-schedule input, .worker-schedule select, .worker-form-actions select { width: 100%; border: 1px solid #303940; background: #101418; color: var(--paper); padding: 10px; }
.worker-form textarea { resize: vertical; line-height: 1.5; }
.worker-schedule { display: grid; grid-template-columns: 1.1fr repeat(4, .8fr); gap: 7px; }
.worker-schedule label { display: grid; gap: 5px; }
.worker-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.worker-form-actions button { border: 0; background: var(--lime); color: var(--ink); font-size: 9px; font-weight: 800; }
.worker-list { display: grid; gap: 8px; margin-top: 12px; }
.worker-card { border: 1px solid var(--line); padding: 13px; }
.worker-card > div { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.worker-card p { color: #b3bbc0; font-size: 10px; line-height: 1.5; }
.worker-card small { color: var(--muted); font-size: 8px; }
.worker-card em { display: block; color: var(--coral); font-size: 8px; margin-top: 7px; }
.worker-card button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 6px 8px; font-size: 8px; cursor: pointer; }
.worker-review-panel { margin-top: 14px; }
.worker-review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.worker-review-card { border: 1px solid var(--line); padding: 14px; }
.worker-review-card:not(.pending) { opacity: .66; }
.worker-review-card header, .worker-review-card footer { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.worker-review-card header strong, .worker-review-card header small { display: block; }
.worker-review-card header small, .worker-review-card header > span { color: var(--muted); font-size: 8px; margin-top: 4px; }
.worker-review-card footer { padding: 12px 0 0; }
.worker-review-card footer button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 7px; font-size: 8px; cursor: pointer; }
.worker-review-card footer button:first-child { color: var(--lime); border-color: var(--lime); }
.worker-draft-post { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.worker-draft-post b { color: var(--lime); font-size: 8px; }
.worker-draft-post p { margin: 0; white-space: pre-wrap; font-size: 10px; line-height: 1.5; }
.worker-draft-post small { color: var(--muted); font-size: 8px; white-space: nowrap; }

.context-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.context-grid > label { display: flex; flex-direction: column; gap: 8px; padding: 18px; }
.context-grid .context-wide { grid-column: 1 / -1; }
.context-grid textarea, .context-grid input { width: 100%; border: 1px solid #303940; background: #101418; color: var(--paper); padding: 12px; resize: vertical; line-height: 1.5; }
.context-grid small { color: var(--muted); font-size: 8px; letter-spacing: 0; line-height: 1.45; }

@media (max-width: 1100px) {
  .ask-layout, .workers-grid { grid-template-columns: 1fr; }
  .ask-sidebar { max-height: none; }
  .assistant-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .worker-schedule { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .nav-link[href="#ask"]::after { content: "?"; }
  .nav-link[href="#workers"]::after { content: "⚙"; }
  .nav-link[href="#context"]::after { content: "≋"; }
}

@media (max-width: 720px) {
  .action-summary, .context-grid, .worker-review-list { grid-template-columns: 1fr; }
  .action-summary > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .context-grid .context-wide { grid-column: auto; }
  .assistant-skills, .worker-schedule { grid-template-columns: 1fr; }
  .ask-main { min-height: 580px; }
}

.inspiration-search-form { display: grid; grid-template-columns: minmax(0, 1fr) 190px 210px; gap: 8px; padding: 14px; margin-bottom: 14px; }
.inspiration-search-form input { min-width: 0; border: 1px solid var(--line); background: #101418; color: var(--paper); padding: 11px; }
.inspiration-search-form button { border: 0; background: var(--lime); color: var(--ink); font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.inspiration-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 14px; align-items: start; }
.inspiration-main, .inspiration-side { padding: 20px; }
.inspiration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.inspiration-card { border: 1px solid var(--line); background: #101418; padding: 13px; min-width: 0; }
.inspiration-card > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 12px; border: 1px solid var(--line); }
.inspiration-card header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.inspiration-card header > img { width: 30px; height: 30px; border-radius: 50%; }
.inspiration-card header strong, .inspiration-card header a { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.inspiration-card header strong { font-size: 10px; }
.inspiration-card header a { color: var(--cyan); font-size: 8px; text-decoration: none; margin-top: 2px; }
.inspiration-card header > span { color: var(--muted); border: 1px solid var(--line); padding: 4px; font-size: 7px; text-transform: uppercase; }
.inspiration-card > p { min-height: 70px; white-space: pre-wrap; color: #d5dadd; font-size: 11px; line-height: 1.55; }
.inspiration-card > small { color: var(--muted); font-size: 8px; }
.inspiration-card blockquote { margin: 10px 0 0; border-left: 2px solid var(--violet); padding-left: 9px; color: #afb7bd; font-size: 9px; }
.inspiration-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.inspiration-card footer a, .inspiration-card footer button { border: 1px solid var(--line); background: transparent; color: #b8c0c6; padding: 6px; font-size: 7px; text-decoration: none; cursor: pointer; }
.inspiration-card footer button[data-use-inspiration] { color: var(--lime); border-color: color-mix(in srgb, var(--lime), transparent 45%); }
.inspiration-history, .inspiration-saved { display: grid; gap: 6px; margin: 10px 0 22px; max-height: 360px; overflow: auto; }
.inspiration-history > button { text-align: left; border: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px; cursor: pointer; }
.inspiration-history > button.active { border-color: var(--lime); }
.inspiration-history strong, .inspiration-history small { display: block; }
.inspiration-history small { color: var(--muted); font-size: 7px; margin-top: 4px; }
.inspiration-saved .inspiration-card > p { min-height: 0; }

.articles-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 14px; align-items: start; }
.article-library, .article-editor { padding: 20px; }
#article-list { display: grid; gap: 6px; margin-top: 12px; max-height: 780px; overflow: auto; }
#article-list > button { text-align: left; border: 1px solid var(--line); background: #101418; color: var(--text); padding: 11px; cursor: pointer; }
#article-list > button.active { border-color: var(--lime); }
#article-list strong, #article-list small, #article-list span { display: block; }
#article-list small { color: var(--muted); font-size: 7px; margin: 5px 0; }
#article-list span { color: #87929b; font-size: 8px; line-height: 1.4; }
.article-editor { display: grid; gap: 9px; }
.article-editor > input, .article-editor > textarea, .article-meta-fields input, .article-meta-fields select, .article-ai-brief textarea { width: 100%; min-width: 0; border: 1px solid var(--line); background: #101418; color: var(--paper); padding: 11px; line-height: 1.55; }
#article-title { font: 24px Georgia, serif; }
#article-body { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; resize: vertical; }
.article-meta-fields { display: grid; grid-template-columns: 1fr 1.3fr 110px; gap: 8px; }
.article-body-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.article-ai-brief { border: 1px solid var(--line); padding: 10px; }
.article-ai-brief summary { color: var(--violet); cursor: pointer; font-size: 8px; font-weight: 800; }
.article-ai-brief textarea { margin-top: 10px; }
.article-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.article-actions button { border: 1px solid var(--line); background: transparent; color: var(--text); padding: 9px 11px; font-size: 8px; cursor: pointer; }
.article-actions button[type="submit"] { background: var(--lime); border-color: var(--lime); color: var(--ink); font-weight: 850; }
.article-actions #delete-article { margin-left: auto; color: var(--coral); }

.credit-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.credit-summary article { padding: 18px; }
.credit-summary span, .credit-summary strong, .credit-summary small { display: block; }
.credit-summary span { color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.credit-summary strong { font-size: 22px; margin: 8px 0; }
.credit-summary small { color: #76818a; font-size: 8px; }
.credit-summary article > div { height: 4px; background: #2c343b; margin: 10px 0; }
.credit-summary article > div i { display: block; height: 100%; max-width: 100%; background: var(--lime); }
.credit-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 14px; }
.credit-activity, .credit-policy { padding: 20px; }
#credit-activity-list { display: grid; gap: 6px; margin-top: 12px; max-height: 620px; overflow: auto; }
.credit-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; border: 1px solid var(--line); padding: 10px; }
.credit-entry.refunded { opacity: .55; }
.credit-entry strong, .credit-entry small { display: block; }
.credit-entry strong { text-transform: capitalize; font-size: 9px; }
.credit-entry small, .credit-entry span { color: var(--muted); font-size: 8px; }
.credit-entry b { color: var(--lime); font-size: 7px; }
.credit-entry.refunded b { color: var(--violet); }
.credit-policy p { color: #aab3b9; font-size: 9px; line-height: 1.5; }
#credit-feature-list { display: grid; gap: 6px; margin-top: 10px; }
#credit-feature-list > div { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 7px 0; color: #abb4ba; text-transform: capitalize; font-size: 9px; }

@media (max-width: 1100px) {
  .inspiration-layout, .articles-layout, .credit-layout { grid-template-columns: 1fr; }
  .inspiration-side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .inspiration-side .panel-head { grid-column: auto; }
  .credit-summary { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .nav-link[href="#inspiration"]::after { content: "◇"; }
  .nav-link[href="#articles"]::after { content: "¶"; }
  .nav-link[href="#credits"]::after { content: "$"; }
}

@media (max-width: 720px) {
  .inspiration-search-form, .inspiration-grid, .inspiration-side, .credit-summary, .article-meta-fields { grid-template-columns: 1fr; }
  .inspiration-search-form button { min-height: 42px; }
  .article-actions { display: grid; grid-template-columns: 1fr; }
  .article-actions #delete-article { margin-left: 0; }
  .credit-entry { grid-template-columns: 1fr auto; }
  .credit-entry > span { grid-column: 1 / -1; }
}

/* Reusable action dialogs */
.app-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: hidden;
  color: var(--paper);
  background: linear-gradient(145deg, #191f24 0%, #12171b 100%);
  border: 1px solid #39434b;
  border-radius: 18px;
  box-shadow: 0 40px 120px #000d, 0 0 0 1px #ffffff08 inset;
}
.app-dialog[open] { animation: app-dialog-in .18s cubic-bezier(.2, .8, .2, 1); }
.app-dialog::backdrop { background: #040607c7; backdrop-filter: blur(12px) saturate(.75); animation: app-backdrop-in .18s ease-out; }
.app-dialog form { margin: 0; }
.app-dialog-head { display: grid; grid-template-columns: 46px minmax(0, 1fr) 34px; gap: 14px; align-items: center; padding: 24px 24px 20px; border-bottom: 1px solid #2d353b; }
.app-dialog-head h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.12; letter-spacing: -.025em; }
.app-dialog-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--lime), transparent 88%); border: 1px solid color-mix(in srgb, var(--lime), transparent 62%); }
.app-dialog-icon span { width: 13px; height: 13px; border: 3px solid var(--lime); border-radius: 50%; position: relative; }
.app-dialog-icon span::after { content: ""; position: absolute; width: 5px; height: 3px; right: -7px; bottom: -4px; border-right: 3px solid var(--lime); border-bottom: 3px solid var(--lime); }
.app-dialog-close { width: 34px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #82909a; font-size: 22px; line-height: 1; cursor: pointer; transition: .15s; }
.app-dialog-close:hover { color: var(--paper); background: #252c31; border-color: #39434a; }
.app-dialog-body { display: grid; gap: 16px; padding: 24px; max-height: min(62dvh, 520px); overflow-y: auto; }
#app-dialog-message { margin: 0; color: #b8c0c5; font-size: 13px; line-height: 1.65; white-space: pre-line; }
.app-dialog-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.app-dialog-detail { min-width: 0; padding: 13px; background: #0d1114; border: 1px solid #2a3238; border-radius: 10px; }
.app-dialog-detail span, .app-dialog-detail strong { display: block; }
.app-dialog-detail span { color: #73808a; font-size: 8px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.app-dialog-detail strong { margin-top: 7px; color: var(--paper); font-size: 15px; overflow-wrap: anywhere; }
.app-dialog-detail.accent strong { color: var(--lime); }
.app-dialog-detail.warning strong { color: var(--coral); }
.app-dialog-field { display: grid; gap: 8px; }
.app-dialog-field > span { color: #89959e; font-size: 8px; letter-spacing: .14em; }
.app-dialog-field input { width: 100%; min-height: 48px; padding: 12px 14px; color: var(--paper); background: #0c1013; border: 1px solid #3a454d; border-radius: 10px; font-size: 13px; transition: border-color .15s, box-shadow .15s; }
.app-dialog-field input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime), transparent 85%); outline: 0; }
.app-dialog-field small { min-height: 12px; color: #6f7b84; font-size: 9px; letter-spacing: 0; line-height: 1.45; }
.app-dialog-secret { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 13px; border: 1px solid color-mix(in srgb, var(--violet), transparent 55%); border-radius: 10px; background: color-mix(in srgb, var(--violet), transparent 92%); }
.app-dialog-secret span { grid-column: 1 / -1; color: #9b89e2; font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.app-dialog-secret code { min-width: 0; overflow-wrap: anywhere; color: #dad2ff; font-size: 11px; line-height: 1.45; }
.app-dialog-secret button { border: 1px solid #5b4f87; border-radius: 7px; background: transparent; color: #bcaeff; padding: 7px 9px; font-size: 8px; font-weight: 800; cursor: pointer; }
.app-dialog-error { margin: -5px 0 0; color: #ff8d83; font-size: 10px; line-height: 1.4; }
.app-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 18px 24px 22px; border-top: 1px solid #2d353b; background: #101519aa; }
.app-dialog-actions button { min-height: 43px; border-radius: 10px; padding: 0 18px; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; cursor: pointer; }
.app-dialog-cancel { color: #aab2b8; background: transparent; border: 1px solid #3a444b; }
.app-dialog-cancel:hover { background: #20272c; color: var(--paper); }
.app-dialog-confirm { min-width: 150px; display: flex; align-items: center; justify-content: space-between; gap: 22px; color: #0b1007; background: var(--lime); border: 1px solid var(--lime); box-shadow: 0 8px 26px color-mix(in srgb, var(--lime), transparent 83%); }
.app-dialog-confirm:hover { filter: brightness(1.06); transform: translateY(-1px); }
.app-dialog-confirm b { font-size: 14px; }
.app-dialog[data-variant="danger"] .app-dialog-icon { background: color-mix(in srgb, var(--coral), transparent 88%); border-color: color-mix(in srgb, var(--coral), transparent 60%); }
.app-dialog[data-variant="danger"] .app-dialog-icon span { border-color: var(--coral); border-radius: 3px; transform: rotate(45deg); }
.app-dialog[data-variant="danger"] .app-dialog-icon span::after { border-color: var(--coral); }
.app-dialog[data-variant="danger"] .app-dialog-confirm { color: #fff; background: #e95d52; border-color: #ff796e; box-shadow: 0 8px 26px #ff6f6127; }
.app-dialog[data-variant="security"] .app-dialog-icon, .app-dialog[data-variant="input"] .app-dialog-icon { background: color-mix(in srgb, var(--violet), transparent 89%); border-color: color-mix(in srgb, var(--violet), transparent 58%); }
.app-dialog[data-variant="security"] .app-dialog-icon span, .app-dialog[data-variant="input"] .app-dialog-icon span { border-color: var(--violet); }
.app-dialog[data-variant="security"] .app-dialog-icon span::after, .app-dialog[data-variant="input"] .app-dialog-icon span::after { border-color: var(--violet); }
.app-dialog[data-variant="security"] .app-dialog-confirm, .app-dialog[data-variant="input"] .app-dialog-confirm { color: #100d1b; background: var(--violet); border-color: #b4a0ff; box-shadow: 0 8px 26px #a58bff28; }

@keyframes app-dialog-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes app-backdrop-in { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .app-dialog[open], .app-dialog::backdrop { animation: none; }
  .app-dialog-confirm { transition: none; }
}

@media (max-width: 560px) {
  .app-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 15px; }
  .app-dialog-head { grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 11px; padding: 19px 18px 17px; }
  .app-dialog-head h2 { font-size: 19px; }
  .app-dialog-icon { width: 40px; height: 40px; border-radius: 12px; }
  .app-dialog-body { padding: 19px 18px; }
  .app-dialog-details { grid-template-columns: 1fr; }
  .app-dialog-actions { display: grid; grid-template-columns: 1fr 1.25fr; padding: 15px 18px 18px; }
  .app-dialog-actions button { padding: 0 13px; }
  .app-dialog-confirm { min-width: 0; }
}
