@import url('/editor.css');
@import url('/motion.css');

:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --panel: #ffffff;
  --panel2: #f7f9f7;
  --line: #dce2de;
  --text: #18221d;
  --muted: #5e6b63;
  --mint: #174e3c;
  --yellow: #9a641c;
  --blue: #325e9e;
  --red: #a43c40;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.standalone-login { display: grid; gap: 16px; max-width: 420px; }
.standalone-login .field { display: grid; gap: 6px; }
.standalone-login input { width: 100%; min-height: 44px; }
.standalone-login .primary { justify-self: start; min-height: 44px; }

html, body { max-width: 100%; overflow-x: clip; }
body { background: var(--bg); }
.marketing-shell { min-width: 0; max-width: 100%; min-height: 100vh; display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.hub-sidebar { position: sticky; top: 0; height: 100vh; min-width: 0; padding: 28px 20px 20px; display: flex; flex-direction: column; overflow-y: auto; color: #fff; background: #123d31; border-right: 1px solid rgba(255,255,255,.08); }
.hub-brand { padding: 0 8px 30px; display: flex; align-items: center; gap: 11px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.hub-brand:hover { text-decoration: none; }
.hub-brand-mark { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 10px; color: #143c31; background: #d9f36b; font-weight: 900; }
.hub-sidebar-label { margin: 4px 11px 10px; color: #93b4a5; text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.hub-links { display: grid; gap: 5px; padding-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.hub-links a { min-width: 0; min-height: 42px; padding: 9px 11px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 6px; border-radius: 9px; color: #bad0c7; font-size: 14px; }
.hub-links a:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.hub-links a.active { color: #fff; background: rgba(255,255,255,.11); }
.hub-links a > span { color: #d9f36b; font-size: 16px; }
.hub-links small { padding: 3px 6px; color: #c8e4d2; border: 1px solid rgba(255,255,255,.2); border-radius: 6px; font-size: 10px; }
.hub-sidebar-footer { margin-top: auto; padding: 18px 8px 4px; display: grid; gap: 5px; border-top: 1px solid rgba(255,255,255,.1); }
.hub-sidebar-footer strong { font-size: 13px; }.hub-sidebar-footer span { color: #a9c5b7; font-size: 12px; line-height: 1.5; }
.marketing-main, .marketing-main > main, #project, #guide-panel { min-width: 0; max-width: 100%; }
.marketing-main > .topbar { height: 82px; padding: 0 clamp(22px,3.2vw,44px); background: #fff; }
.identity { color: var(--text); }.identity:hover { text-decoration: none; }
.mark { width: 42px; height: 42px; color: #fff; background: var(--mint); font-size: 21px; white-space: nowrap; }
.topbar h1 { font-size: 20px; }.identity .eyebrow { margin-bottom: 4px; }
.account { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }
.account button { font-size: 12px; }
.marketing-main > main { max-width: 1800px; margin: 0 auto; padding: 32px clamp(22px,3.2vw,44px) 52px; }

button { min-height: 38px; background: var(--panel2); color: var(--text); font-size: 13px; }
button:hover { border-color: #84a895; }
.primary { color: #fff; background: var(--mint); border-color: var(--mint); }
.primary:hover { background: #103f30; border-color: #103f30; }
a { color: var(--mint); }
input, select, textarea { color: var(--text); background: #fff; font-size: 14px; }
input:disabled, select:disabled, textarea:disabled { background: #f1f3f1; }
select {
  appearance: none;
  padding-right: 46px;
  padding-left: 12px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2352645a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px 16px;
}
select:disabled { background-color: #f1f3f1; }
input[type=checkbox] { accent-color: var(--mint); }
:focus-visible { outline-color: #9d6c0b; }

.login { max-width: 560px; margin: 42px auto 90px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 8px 35px rgba(30,47,38,.05); }
.login h2 { margin: 12px 0 20px; font-size: 34px; line-height: 1.18; letter-spacing: -.04em; }
.login h2 span, .intro h2 span { color: var(--mint); }
.login .hint { font-size: 14px; }.login button { margin-top: 12px; }
.login a.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 18px; margin-top: 12px; border-radius: 8px; font-size: 14px; font-weight: 700; text-decoration: none; }
.intro { grid-template-columns: minmax(0,1fr) 340px; gap: 28px; align-items: end; }
.intro h2 { font-size: clamp(31px,3.4vw,47px); letter-spacing: -.045em; }
.intro p:not(.eyebrow) { font-size: 14px; }
.guard { padding: 22px; border: 1px solid #c9ddd0; background: #ecf4ee; border-radius: 14px; }
.guard strong { color: var(--mint); }.guard a { font-size: 13px; }
.projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.project-card { min-height: 230px; padding: 26px; display: flex; flex-direction: column; gap: 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 15px; transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) ease; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(30,47,38,.08); }
.project-card h3 { margin: 0; font-size: 26px; }.project-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.project-card .project-counts { margin-top: auto; padding-top: 16px; color: var(--mint); border-top: 1px solid var(--line); }
.project-card > span:last-child { color: var(--mint); font-size: 13px; }
.project-card.websoftik { border-top: 4px solid var(--mint); }
.project-card .eyebrow { color: var(--muted); }
.stats .stat, .editor, .card { background: #fff; }
.stat strong { font-size: 26px; }.stat span { font-size: 13px; }
.tabs { display: none; }
.tabs .active { color: var(--mint); border-color: var(--mint); background: #ebf3ed; }
.tabs a { margin-left: auto; font-size: 13px; }
.section-head h2 { font-size: 22px; }
.search-label, .filters label, .field { font-size: 13px; }
.view-button { font-size: 12px; }.view-button.active { color: var(--mint); border-color: var(--mint); background: #eaf3ed; }
.card-preview { color: #fff; background: linear-gradient(130deg,#174e3c,#245d50); }
.card-preview.matevmatik { background: linear-gradient(130deg,#273a60,#425878); }
.card-preview.shared { background: linear-gradient(130deg,#355347,#455c4b); }
.card-preview small { color: #d9f36b; }
.card-meta, .card-foot, .hint { font-size: 12px; }
.badge.draft { color: #825018; border-color: #e4c994; background: #fff7e7; }
.badge.review { color: #325e9e; border-color: #bbd0ed; background: #f1f6ff; }
.badge.approved, .badge.published { color: var(--mint); border-color: #b9d8c4; background: #eef7f1; }
.blocker, .dirty { color: #925600; }
.editor { box-shadow: 0 4px 22px rgba(30,47,38,.05); }
.editor .field, .check-row { font-size: 13px; }
.flow-row, .asset-row, .source-row { background: #f7f9f7; }
.warning-box { color: #734612; background: #fff3dc; }
.error-list { color: #8b5400; }
.brand-guide { max-width: 1000px; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.75; }
.history-item { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.6; }
.history-item pre { max-height: 300px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.editor-actions { align-items: center; }.editor-approval-actions { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }.editor-approval-actions button { min-height: 42px; flex: 0 1 auto; }.board-empty { padding: 16px 8px; border: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
#notice { left: calc(50% + 124px); width: max-content; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; color: #fff; background: var(--mint); box-shadow: 0 8px 30px rgba(21,61,46,.18); }
#notice.error { background: var(--red); }
#notice .notice-close { width: 34px; height: 34px; min-height: 34px; flex: 0 0 auto; padding: 0; color: inherit; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); font-size: 21px; line-height: 1; }

/* Project navigation and focused content workspace */
.channel-workspace { display: grid; gap: 14px; padding: 18px 20px; margin-bottom: 22px; border: 1px solid var(--line); border-left: 4px solid var(--mint); border-radius: 12px; background: var(--panel); }
.workspace-selectors { display: grid; grid-template-columns: minmax(140px,220px) minmax(200px,300px); gap: 14px; }
.workspace-selectors label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.workspace-selectors select { width: 100%; min-height: 44px; }
.workspace-context { display: grid; gap: 5px; overflow-wrap: anywhere; }
.workspace-context strong { font-size: 14px; }.workspace-context span { color: var(--muted); font-size: 12px; }
.channel-workspace .hint { margin: 0; }
.channel-workspace > button { justify-self: start; }
.channel-form { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.channel-form textarea { min-height: 110px; }
.channel-record-list { display: grid; gap: 16px; }
.channel-record,.channel-history,.channel-media-ref { padding: 16px; margin: 12px 0; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.channel-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.channel-warning { background: #fff6df; color: #694b0c; padding: 18px 24px; border-radius: 10px; }
.channel-media-ref { display: grid; gap: 12px; }
.channel-media-ref img,.channel-media-ref video { max-width: 100%; max-height: 320px; object-fit: contain; justify-self: start; }
.channel-media-choice { display: flex; flex-wrap: wrap; gap: 10px; }
.channel-variant-layout { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,360px); gap: 24px; align-items: start; }
.channel-variant-layout > * { min-width: 0; }
.whatsapp-status-panel { position: sticky; top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow-wrap: anywhere; }
.whatsapp-phone { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; aspect-ratio: 9/16; background: #111c20; color: white; border-radius: 14px; overflow: hidden; }
.whatsapp-progress { display: flex; gap: 4px; padding: 12px 12px 0; }
.whatsapp-progress span { flex: 1; height: 3px; background: #ffffff40; border-radius: 2px; }
.whatsapp-progress .active { background: #a7f2ce; }
.whatsapp-profile { display: grid; gap: 4px; padding: 12px; font-size: 12px; }
.whatsapp-profile span { color: #b9c7c0; font-size: 11px; }
.whatsapp-viewport { position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; }
.whatsapp-viewport img,.whatsapp-viewport video { width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; }
.whatsapp-viewport [hidden] { display: none; }
.whatsapp-media-status { padding: 20px; color: #cbd8d2; text-align: center; font-size: 13px; }
.whatsapp-caption { margin: 0; padding: 12px; max-height: 90px; overflow: auto; white-space: pre-wrap; font-size: 12px; line-height: 1.5; background: #18272c; }
.whatsapp-status-nav { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: center; margin-top: 12px; font-size: 12px; }
.whatsapp-status-nav button { min-width: 0; min-height: 44px; padding: 8px; white-space: normal; }
.whatsapp-full-copy { white-space: pre-wrap; font-size: 13px; }
.whatsapp-package { display: grid; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.whatsapp-package h3,.whatsapp-package p { margin: 0; }
.whatsapp-package button { min-height: 44px; white-space: normal; }
.whatsapp-package-result textarea { width: 100%; min-height: 100px; }
@media (max-width: 1100px) { .channel-variant-layout { grid-template-columns: minmax(0,1fr); }.whatsapp-status-panel { position: static; width: 100%; max-width: 500px; justify-self: center; grid-row: 1; }.channel-variant-layout .channel-form { padding: 16px; }.whatsapp-phone { max-width: 340px; margin: auto; } }
.channel-decision { max-width: 580px; width: calc(100% - 32px); }
.channel-decision form { display: grid; gap: 16px; }
.channel-decision textarea { width: 100%; min-height: 120px; }
.channel-placeholder { padding: clamp(22px,4vw,40px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); max-width: 1000px; }
.channel-placeholder h2 { margin: 12px 0; font-size: clamp(24px,3vw,34px); }
.channel-placeholder p, .channel-placeholder li { font-size: 14px; line-height: 1.65; }
.channel-placeholder ul { padding-left: 22px; margin: 20px 0; }
.channel-state { display: inline-block; padding: 6px 10px; border: 1px solid #d9c590; border-radius: 7px; color: #734612; background: #fff8e9; font-size: 12px; }
@media (max-width: 620px) { .workspace-selectors { grid-template-columns: minmax(0,1fr); gap: 10px; }.channel-workspace { padding: 14px; }.channel-placeholder { padding: 20px; } }
[hidden] { display: none !important; }
.hub-links button { width: 100%; min-height: 44px; padding: 9px 11px; display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: center; gap: 6px; text-align: left; border: 0; border-radius: 9px; color: #bad0c7; background: transparent; font-size: 14px; font-weight: 550; }
.hub-links button:hover, .hub-links button.active { color: #fff; background: rgba(255,255,255,.11); }
.hub-links button > span { color: #d9f36b; font-size: 18px; }
#project-nav { display: grid; gap: 5px; padding: 10px 0 14px; margin: 8px 0 10px; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
#project-nav .hub-sidebar-label { margin-top: 10px; }
#project-nav .project-repo-link { color: #bad0c7; }
.sidebar-workspace { display: grid; gap: 10px; padding: 4px 10px 14px; min-width: 0; border-bottom: 1px solid #ffffff24; }
.sidebar-workspace .hub-sidebar-label { margin: 0; }
.sidebar-workspace > strong { font-size: 14px; line-height: 1.4; }
.workspace-select-field { display: grid; gap: 5px; color: #bad0c7; font-size: 12px; min-width: 0; }
.sidebar-workspace select { width: 100%; min-width: 0; min-height: 44px; font-size: 13px; }
.hub-links .workspace-select-trigger { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-width: 0; height: 38px; min-height: 38px; padding: 0 12px; border: 1px solid #ffffff30; border-radius: 8px; background: #ffffff0a; color: #f3f8f5; font-size: 13px; font-weight: 500; }
.hub-links .workspace-select-trigger:hover,.hub-links .workspace-select-trigger[aria-expanded=true] { background: #ffffff15; border-color: #a2c4b1; }
.hub-links .workspace-select-trigger:focus-visible { outline: 2px solid #d9f36b; outline-offset: 3px; }
.hub-links .workspace-select-trigger > .workspace-select-value { color: inherit; font-size: inherit; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hub-links .workspace-select-trigger > .workspace-select-chevron { flex: 0 0 16px; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bad0c7' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; transition: transform 140ms ease; }
.workspace-select-trigger[aria-expanded=true] .workspace-select-chevron { transform: rotate(180deg); }
.workspace-select-popup { position: fixed; inset: auto; margin: 0; padding: 4px; box-sizing: border-box; z-index: 1200; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #cbd8cf; border-radius: 10px; background: #fff; color: var(--text); box-shadow: 0 12px 32px #102b2426,0 2px 6px #102b2414; animation: workspace-select-in 120ms ease-out; }
.workspace-select-option { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 8px 10px; box-sizing: border-box; border-radius: 6px; font-size: 13px; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.workspace-select-option[aria-selected=true] { color: var(--mint); font-weight: 650; }
.workspace-select-option.is-active { background: #edf5ef; outline: 1px solid #c8dfd0; outline-offset: -1px; }
.workspace-select-option[aria-disabled=true] { color: #6f7973; cursor: not-allowed; font-weight: 400; }
.workspace-select-check { flex: 0 0 16px; color: var(--mint); visibility: hidden; }
.workspace-select-option[aria-selected=true] .workspace-select-check { visibility: visible; }
@keyframes workspace-select-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 820px) { #project-nav .workspace-select-trigger { width: 100%; min-width: 0; height: 44px; min-height: 44px; padding: 0 12px; font-size: 13px; }.workspace-select-option { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .workspace-select-popup { animation: none; }.workspace-select-chevron { transition: none !important; } }
.navigation-group { display: grid; gap: 5px; padding-bottom: 12px; min-width: 0; border-bottom: 1px solid #ffffff18; }
.workspace { display: block; }
.workspace.has-selection .library { display: none; }
.workspace.has-selection .editor { max-width: 1560px; margin: 0 auto; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,430px); gap: clamp(22px,3vw,42px); align-items: start; }
.editor { position: static; max-height: none; overflow: visible; padding: clamp(22px,3vw,42px); }
.editor-form { min-width: 0; grid-column: 1; }
.workspace.has-selection .editor > :not(.editor-form):not(.instagram-studio) { min-width: 0; grid-column: 1; }
.editor-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.editor-heading .back-to-list { width: 100%; margin-bottom: 16px; color: var(--mint); background: #edf5ef; border-color: #cbded0; text-align: left; }
.editor-heading h2 { width: 100%; margin: 2px 0; font-size: clamp(23px,2.5vw,32px); }
.editor-process { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; margin: 24px 0 12px; }
.editor-process > div { min-width: 0; display: grid; gap: 5px; padding: 15px; border: 1px solid #d9e4dc; border-radius: 10px; background: #f3f8f4; }
.editor-process strong { font-size: 15px; }.editor-process small { color: var(--muted); line-height: 1.4; }
.editor-layer { margin: 28px 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfb; }
.editor-layer h3 { margin: 0 0 5px; font-size: 18px; }
.editor-layer > .hint { margin: 0 0 16px; }
.strategy-brief { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.strategy-brief > h3, .strategy-brief > .hint, .strategy-inline-guide { grid-column: 1 / -1; }
.strategy-brief .field, .strategy-brief .check-row { margin: 0; }
.strategy-inline-guide { padding: 16px; border: 1px solid #bed8c8; border-radius: 10px; background: #edf6f0; }
.strategy-inline-guide strong { color: var(--mint); font-size: 14px; }.strategy-inline-guide p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.editor-layer details { border-top: 1px solid var(--line); }
.section-description { max-width: 750px; margin: -4px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }
#cards:not(.board) { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.card { border-color: #d9e3db; box-shadow: 0 5px 18px rgba(30,47,38,.035); }
.card-preview { position: relative; min-height: 192px; padding: 18px 20px 15px; isolation: isolate; overflow: hidden; }
.card-preview:before { content: ''; position: absolute; z-index: -1; width: 220px; height: 220px; right: -52px; top: -75px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; box-shadow: 0 0 0 32px rgba(255,255,255,.06), 0 0 0 66px rgba(255,255,255,.035); }
.card-preview strong { max-width: 82%; font-size: clamp(17px,1.35vw,23px); line-height: 1.22; letter-spacing: -.035em; }
.preview-top { display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.preview-format, .preview-count { padding: 5px 7px; border: 1px solid rgba(255,255,255,.4); border-radius: 5px; color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.preview-count { border-color: transparent; color: #d9f36b; }
.preview-motif { display: flex; gap: 4px; align-items: flex-end; align-self: flex-end; height: 24px; }
.preview-motif span { display: block; width: 12px; border-radius: 2px; background: rgba(255,255,255,.7); transform: skew(-14deg); }
.preview-motif span:nth-child(1) { height: 9px; }.preview-motif span:nth-child(2) { height: 16px; }.preview-motif span:nth-child(3) { height: 23px; background: #d9f36b; }
.card-stage { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 9px 10px; border: 1px solid #dfe7e0; border-radius: 7px; color: var(--muted); background: #f7faf7; font-size: 11px; }
.card-stage strong { color: var(--mint); font-size: 11px; text-align: right; }
.card-foot { overflow-wrap: anywhere; }
#cards.board { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; overflow: visible; padding: 0; align-items: stretch; }
.board-column { min-width: 0; padding: 14px; border: 1px solid #dae4dc; border-radius: 14px; background: #f7faf7; display: block; }
.board-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.board-heading .eyebrow { margin: 0; color: var(--mint); }.board-heading strong { display: grid; place-items: center; min-width: 27px; min-height: 27px; border-radius: 50%; background: #dcebe1; color: var(--mint); font-size: 13px; }
.board-hint { min-height: 32px; margin: 9px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.board-stage { padding-top: 11px; border-top: 1px solid #dce5de; }.board-stage + .board-stage { margin-top: 15px; }.board-stage h3 { margin: 0 0 10px; color: #566b5d; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.board-stage .card { width: 100%; margin-bottom: 10px; }.board-stage .card-preview { min-height: 112px; padding: 12px; }.board-stage .card-preview strong { font-size: 15px; }.board-stage .card-body { padding: 12px; gap: 8px; }.board-stage .card-stage { display: none; }.board-stage .card-foot { flex-direction: column; gap: 4px; }.board-stage .preview-motif { display: none; }.board-empty { margin: 0; padding: 14px; border-radius: 8px; text-align: center; }

/* Editorial strategy and learning workspace */
#strategy-panel, #clusters-panel, #guide-panel { display: grid; gap: 20px; }
#topics-panel { display: grid; gap: 18px; }
.topic-hero { padding: clamp(24px,3vw,38px); display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,390px); gap: 28px; align-items: end; border: 1px solid #bfd8c8; border-radius: 17px; color: #fff; background: radial-gradient(circle at 82% 0,rgba(217,243,107,.17),transparent 34%),linear-gradient(135deg,#0d3228,#1a5944); }
.topic-hero h2 { max-width: 760px; margin: 5px 0 10px; font-size: clamp(29px,3.5vw,47px); letter-spacing: -.05em; }.topic-hero p:not(.eyebrow) { max-width: 780px; margin: 0; color: #c9ddd3; line-height: 1.6; }.topic-hero .eyebrow { color: #d9f36b; }
.topic-legend { display: grid; gap: 8px; }.topic-legend div { padding: 12px 14px; display: grid; gap: 3px; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid #fff; border-radius: 9px; background: rgba(255,255,255,.07); }.topic-legend .official { border-left-color: #79b9ff; }.topic-legend .support { border-left-color: #71d6a0; }.topic-legend .idea { border-left-color: #f4bf64; }.topic-legend strong { font-size: 12px; }.topic-legend span { color: #c9ddd3; font-size: 10px; }
.topic-course-head { padding: 21px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.topic-course-head h2 { margin: 5px 0 8px; font-size: 25px; }.topic-course-head p:not(.eyebrow) { max-width: 920px; margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.55; }.topic-course-head a { font-size: 12px; font-weight: 750; }
.topic-tree { display: grid; gap: 10px; }.topic-row { min-width: 0; display: grid; grid-template-columns: minmax(190px,.9fr) repeat(3,minmax(210px,1fr)); border: 1px solid #d6e0d8; border-radius: 14px; overflow: hidden; background: #fff; }.topic-row.child { margin-left: 26px; }.topic-identity,.topic-layer { min-width: 0; padding: 17px; }.topic-identity { border-right: 1px solid #e0e7e1; background: #f8faf8; }.topic-order { color: #799084; font-family: ui-monospace,monospace; font-size: 10px; font-weight: 850; }.topic-identity h3 { margin: 7px 0 4px; font-size: 17px; }.topic-identity > p { margin: 0; color: var(--muted); font-size: 11px; }.topic-prereqs { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 5px; }.topic-prereqs strong { width: 100%; color: #64776b; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.topic-prereqs span { padding: 4px 6px; border-radius: 5px; color: #52675a; background: #e8efea; font-size: 9px; }
.topic-layer { border-right: 1px solid #e3e8e4; }.topic-layer .eyebrow { margin: 0 0 9px; }.topic-layer.official .eyebrow { color: #2b6da4; }.topic-layer.support .eyebrow { color: #21734c; }.topic-layer.idea .eyebrow { color: #98610c; }.topic-layer strong { display: block; font-size: 13px; line-height: 1.35; }.topic-layer p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.topic-layer a { display: inline-block; margin-top: 8px; font-size: 10px; font-weight: 750; }
.topic-actions { grid-column: 1 / -1; padding: 10px 12px; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; border-top: 1px solid #e0e7e1; background: #fbfcfb; }.topic-actions input { width: 118px; min-height: 38px; }.topic-actions button { min-height: 38px; padding: 7px 10px; font-size: 11px; }.topic-signal { margin-right: auto; color: var(--mint); font-size: 12px; font-weight: 800; }.topic-privacy { margin: 0; padding: 15px 18px; border: 1px solid #e8d4a9; border-radius: 11px; color: #76501b; background: #fff8e9; font-size: 12px; line-height: 1.55; }.topic-repeat-warning { grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px solid #e3c383; border-radius: 9px; color: #714608; background: #fff5df; font-size: 12px; line-height: 1.5; }
.atlas-controls,.atlas-topic-tools { padding: 16px; display: grid; grid-template-columns: minmax(190px,280px) minmax(260px,1fr); gap: 12px; align-items: end; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.atlas-controls label,.atlas-topic-tools label { display: grid; gap: 6px; color: #52675a; font-size: 11px; font-weight: 750; }.atlas-controls select,.atlas-controls input,.atlas-topic-tools input { min-height: 42px; }.atlas-topic-tools { grid-template-columns: minmax(260px,1fr) auto; }.atlas-topic-tools .hint { margin: 0 0 10px; }
.atlas-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }.atlas-summary article { padding: 17px; display: grid; gap: 3px; border: 1px solid #cedbd1; border-radius: 11px; background: #f8fbf9; }.atlas-summary strong { color: var(--mint); font-size: 25px; }.atlas-summary span { color: var(--muted); font-size: 11px; }
.atlas-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.atlas-card { min-width: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; border: 1px solid #cfdcd2; border-radius: 15px; background: #fff; box-shadow: 0 9px 26px rgba(25,55,40,.04); }.atlas-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }.atlas-technology,.atlas-status { padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .04em; }.atlas-technology { color: #244f3e; background: #e2f0e7; }.atlas-status { color: #6b5310; background: #fff1c8; }.atlas-card h3 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.025em; }.atlas-card > p { min-height: 44px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.atlas-counts,.atlas-contexts { display: flex; flex-wrap: wrap; gap: 6px; }.atlas-counts span,.atlas-contexts span { padding: 6px 8px; border: 1px solid #dbe5dd; border-radius: 7px; color: #52675a; background: #f8faf8; font-size: 10px; }.atlas-contexts { padding-top: 10px; border-top: 1px solid var(--line); }.atlas-open { align-self: flex-start; margin-top: auto; }
.atlas-detail-head { padding: clamp(23px,3vw,34px); display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,380px); gap: 24px; align-items: end; border: 1px solid #c5d9cb; border-radius: 16px; background: linear-gradient(135deg,#edf6f0,#fff); }.back-to-atlases { margin-bottom: 16px; }.atlas-detail-head h2 { margin: 5px 0 8px; font-size: clamp(28px,3vw,42px); letter-spacing: -.045em; }.atlas-detail-head p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.55; }.atlas-source-box { padding: 17px; display: grid; gap: 8px; border: 1px solid #cddbd1; border-radius: 11px; background: rgba(255,255,255,.75); }.atlas-source-box strong { font-size: 12px; }.atlas-source-box a,.atlas-source-box span { font-size: 11px; }
.curriculum-contexts { display: grid; gap: 12px; }.atlas-section-head h2 { margin: 0 0 5px; font-size: 22px; }.atlas-section-head p { margin: 0; color: var(--muted); font-size: 12px; }.context-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.context-card { padding: 18px; border: 1px solid #d7e1d9; border-left: 4px solid #ddae4e; border-radius: 11px; background: #fff; }.context-card.verified { border-left-color: #4f9d73; }.context-card.research_required { border-left-color: #ca6a55; }.context-card h3 { margin: 5px 0 7px; font-size: 17px; }.context-card p { margin: 5px 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.context-card a { display: inline-block; margin-top: 6px; font-size: 10px; font-weight: 750; }
.atlas-module { overflow: hidden; border: 1px solid #cfdbd2; border-radius: 14px; background: #fff; }.atlas-module > summary { padding: 16px 18px; display: grid; grid-template-columns: 40px minmax(180px,1fr) auto; gap: 10px; align-items: center; cursor: pointer; background: #f3f8f4; }.atlas-module > summary strong { font-size: 16px; }.atlas-module > summary > span:last-child { color: var(--muted); font-size: 11px; }.atlas-topic-list { padding: 12px; display: grid; gap: 10px; }.topic-atlas-row { grid-template-columns: minmax(190px,.9fr) repeat(3,minmax(210px,1fr)); }
.brief-dialog { width: min(92vw,560px); padding: 0; border: 1px solid #cbd9cf; border-radius: 16px; color: var(--text); background: #fff; box-shadow: 0 28px 90px rgba(5,31,23,.28); }.brief-dialog::backdrop { background: rgba(6,27,21,.62); backdrop-filter: blur(3px); }.brief-dialog form { padding: 27px; display: grid; gap: 13px; }.brief-dialog h2 { margin: 2px 0; font-size: 27px; }.brief-dialog .hint { margin: 0 0 4px; line-height: 1.5; }.brief-dialog .field { margin: 0; }.brief-dialog-actions { margin-top: 8px; display: flex; justify-content: flex-end; gap: 9px; }
.strategy-hero, .guide-intro { position: relative; padding: clamp(24px,3vw,38px); overflow: hidden; border: 1px solid #bfd8c8; border-radius: 16px; background: linear-gradient(135deg,#e9f4ec,#f8fbf8); }
.strategy-hero:after, .guide-intro:after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border: 1px solid rgba(23,78,60,.2); border-radius: 50%; box-shadow: 0 0 0 45px rgba(23,78,60,.04),0 0 0 90px rgba(23,78,60,.025); }
.strategy-hero h2, .guide-intro h2 { position: relative; z-index: 1; max-width: 780px; margin: 4px 0 10px; font-size: clamp(27px,3vw,42px); letter-spacing: -.045em; }
.strategy-hero > p:last-child, .guide-intro > p:last-child { position: relative; z-index: 1; max-width: 820px; margin: 0; color: #4f6859; line-height: 1.6; }
.phase-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.phase-card { padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.phase-card h3 { margin: 6px 0 8px; font-size: 20px; }.phase-card p { min-height: 42px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.phase-range { display: inline-flex; margin-top: 14px; padding: 6px 9px; border-radius: 7px; color: var(--mint); background: #eaf4ed; font-size: 11px; font-weight: 700; }
.campaign-card { padding: clamp(20px,2.5vw,32px); border: 1px solid #cbd9cf; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(30,47,38,.05); }
.campaign-head { display: flex; justify-content: space-between; gap: 24px; align-items: start; }.campaign-head h2 { margin: 4px 0 8px; font-size: 25px; }.campaign-head p:not(.eyebrow) { max-width: 850px; margin: 0; color: var(--muted); line-height: 1.55; }.campaign-date { padding: 8px 10px; flex: 0 0 auto; border: 1px solid #c7dacd; border-radius: 8px; color: var(--mint); background: #edf6f0; font-size: 11px; font-weight: 750; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin: 24px 0 30px; }
.recommendation-card { padding: 19px; display: flex; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; background: #f8faf8; }.recommendation-card.best { border-color: #76a989; background: #edf6f0; }
.recommendation-card h3 { margin: 7px 0; font-size: 18px; }.recommendation-card > p { color: var(--muted); font-size: 12px; line-height: 1.5; }.recommendation-card .recommendation-reason { margin-top: auto; padding-top: 10px; color: var(--mint); font-weight: 650; }.recommendation-card button { margin-top: 10px; }
.strategy-section-head { margin-top: 8px; }.strategy-section-head h2 { margin: 0 0 6px; font-size: 23px; }.strategy-section-head p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.slot-list { display: grid; gap: 7px; margin-top: 14px; }.slot-row { min-width: 0; padding: 12px 13px; display: grid; grid-template-columns: 82px minmax(240px,1fr) minmax(190px,auto); gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 9px; background: #fafbfa; }.slot-row.filled { background: #edf6f0; border-color: #c8ddcf; }.slot-identity { display: grid; gap: 3px; }.slot-index { color: var(--mint); font-family: ui-monospace,monospace; font-size: 12px; font-weight: 800; }.slot-identity small,.slot-copy small { color: var(--muted); font-family: ui-monospace,monospace; font-size: 11px; }.slot-copy { min-width: 0; display: grid; gap: 3px; }.slot-copy strong { font-size: 13px; }.slot-copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.slot-action { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }.slot-action button { min-height: 36px; padding: 7px 10px; font-size: 11px; }.slot-state { padding: 5px 7px; border-radius: 6px; color: #895600; background: #fff2d9; font-size: 11px; font-weight: 800; white-space: nowrap; }.slot-row.filled .slot-state { color: var(--mint); background: #dceee2; }
.slot-row.blocked { border-color: #ead2ac; background: #fff9ee; }.slot-row.blocked .slot-state { color: #8a5200; background: #ffe6bb; }
.strategy-provenance { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
.type-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.type-card { min-width: 0; padding: 20px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.type-card h3 { margin: 12px 0 7px; font-size: 18px; }.type-card > p { min-height: 57px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.type-funnel { align-self: flex-start; padding: 5px 8px; border-radius: 999px; color: var(--mint); background: #eaf4ed; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.type-meta { display: grid; gap: 5px; padding: 13px 0; margin-top: 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #52675a; font-size: 11px; }.type-card details { margin-bottom: 12px; border: 0; }.type-card details p, .type-card details li { color: var(--muted); font-size: 11px; line-height: 1.5; }.type-card details ul { padding-left: 18px; }.type-card > button { margin-top: auto; }
.cluster-hero { padding: clamp(24px,3vw,38px); display: grid; grid-template-columns: minmax(0,1fr) minmax(240px,330px); gap: 30px; align-items: end; border: 1px solid #b9d2c2; border-radius: 17px; color: #fff; background: radial-gradient(circle at 75% 10%,rgba(217,243,107,.18),transparent 30%),linear-gradient(135deg,#0d3228,#1a5944); }
.cluster-hero h2 { margin: 5px 0 11px; font-size: clamp(29px,3.5vw,48px); letter-spacing: -.05em; }.cluster-hero p { max-width: 780px; margin: 0; color: #c9ddd3; line-height: 1.6; }.cluster-hero .eyebrow { color: #d9f36b; }
.cluster-doc { padding: 18px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.07); }.cluster-doc strong { display: block; margin-bottom: 6px; }.cluster-doc p { margin-bottom: 12px; font-size: 12px; }.cluster-doc a { color: #d9f36b; font-size: 12px; font-weight: 750; }
.cluster-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.cluster-summary article { padding: 18px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.cluster-summary strong { color: var(--mint); font-size: 25px; }.cluster-summary span { font-size: 13px; font-weight: 750; }.cluster-summary small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.cluster-decision { padding: clamp(20px,2.6vw,30px); border: 1px solid #d1ddd4; border-radius: 15px; background: #fff; }.cluster-decision > h2 { margin: 5px 0 7px; font-size: 24px; }.cluster-decision > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 13px; }.cluster-decision-flow { display: flex; gap: 8px; align-items: stretch; margin-top: 20px; overflow-x: auto; padding-bottom: 5px; }.cluster-decision-node { min-width: 160px; flex: 1 0 160px; padding: 16px; border: 1px solid #cfe0d4; border-radius: 11px; background: linear-gradient(155deg,#edf6f0,#fbfcfb); }.cluster-decision-node strong { display: block; margin: 6px 0; font-size: 13px; }.cluster-decision-node p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.cluster-heading { margin-top: 4px; display: flex; justify-content: space-between; gap: 25px; align-items: end; }.cluster-heading h2 { margin: 4px 0 0; font-size: 26px; }.cluster-legend { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; text-align: right; }
.cluster-lanes { display: grid; gap: 16px; }.cluster-lane { padding: 18px; border: 1px solid #d9e2db; border-radius: 15px; background: #f7faf7; }.cluster-lane-head { margin-bottom: 13px; display: flex; align-items: center; justify-content: space-between; }.cluster-lane-head small { color: var(--muted); font-size: 11px; }.cluster-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.cluster-card { min-width: 0; padding: 19px; display: flex; flex-direction: column; border: 1px solid #d7e1d9; border-radius: 13px; background: #fff; }.cluster-card-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.cluster-code { color: #789184; font-family: ui-monospace,monospace; font-size: 11px; font-weight: 800; }.cluster-card h3 { margin: 12px 0 7px; font-size: 19px; }.cluster-card > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.cluster-stats { display: flex; flex-wrap: wrap; gap: 6px; margin: 15px 0 13px; }.cluster-stats span { padding: 5px 7px; border-radius: 6px; color: #53685b; background: #eef3ef; font-size: 10px; }.cluster-stats strong { color: var(--mint); }
.cluster-progress { padding: 11px; border: 1px solid #dce6de; border-radius: 9px; background: #f8fbf8; }.cluster-progress > div:first-child { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }.cluster-progress-track { height: 6px; margin-top: 8px; overflow: hidden; border-radius: 999px; background: #dfe8e1; }.cluster-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#174e3c,#74a68b); }.cluster-no-target { padding: 9px 11px; border-radius: 8px; background: #f5f6f5; font-size: 10px !important; }
.cluster-content-list { display: grid; gap: 6px; margin: 13px 0; }.cluster-content-row { width: 100%; min-height: 0; padding: 9px 10px; display: flex; justify-content: space-between; gap: 12px; text-align: left; border-color: #e0e7e2; background: #fafbfa; }.cluster-content-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }.cluster-content-row small { flex: 0 0 auto; color: var(--muted); font-size: 9px; }.cluster-content-list .empty { padding: 11px; font-size: 10px; }.cluster-actions { display: flex; gap: 7px; margin-top: auto; }.cluster-actions button { flex: 1; font-size: 11px; }
.cluster-principle { padding: 18px 20px; display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 18px; align-items: start; border: 1px solid #e4d4aa; border-radius: 12px; background: #fff9ec; }.cluster-principle strong { color: #825b16; }.cluster-principle p { margin: 0; color: #6f6043; font-size: 12px; line-height: 1.6; }
.calendar-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }.calendar-card { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }.calendar-card h3 { margin: 7px 0 13px; }.calendar-card p { margin: 7px 0; color: var(--muted); font-size: 12px; }.calendar-card .calendar-limit { padding-top: 11px; border-top: 1px solid var(--line); color: #79591c; }.calendar-card a { display: inline-flex; margin-top: 7px; font-size: 12px; }
.workflow-card { min-width: 0; overflow: hidden; border: 1px solid #d5e0d8; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(21,59,45,.055); }
.workflow-card-featured { border-color: #b9d3c2; box-shadow: 0 18px 46px rgba(21,59,45,.09); }
.workflow-card-head { padding: clamp(21px,2.6vw,31px); display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: end; }
.workflow-card-copy { min-width: 0; }.workflow-kicker { display: block; margin-bottom: 9px; color: #59806b; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 11px; font-weight: 850; letter-spacing: .14em; }.workflow-card h2 { margin: 0 0 7px; font-size: clamp(19px,2vw,25px); line-height: 1.15; letter-spacing: -.025em; }.workflow-card-copy p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.workflow-tools { display: flex; align-items: center; gap: 12px; }.workflow-count { padding: 7px 10px; color: #315f4d; border: 1px solid #c7ddd0; border-radius: 999px; background: #edf6f0; font-size: 10px; font-weight: 800; white-space: nowrap; }.workflow-controls { display: flex; gap: 6px; }.workflow-controls[hidden] { display: none; }.workflow-controls button { width: 36px; min-height: 36px; padding: 0; display: grid; place-items: center; border-color: #c7d6cd; border-radius: 50%; color: #143d31; background: #fff; font-size: 17px; box-shadow: 0 4px 12px rgba(20,61,49,.08); }.workflow-controls button:hover:not(:disabled) { color: #fff; border-color: #174e3c; background: #174e3c; }.workflow-controls button:disabled { opacity: .3; cursor: default; }
.workflow-viewport { position: relative; min-width: 0; width: 100%; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(circle at 88% 20%,rgba(217,243,107,.11),transparent 25%),radial-gradient(circle at 8% 90%,rgba(91,219,172,.11),transparent 27%),linear-gradient(135deg,#0a241d,#10382c 58%,#0b2b22); border-top: 1px solid #d7e2da; }
.workflow-viewport:before,.workflow-viewport:after { content: ''; position: absolute; z-index: 3; top: 0; bottom: 8px; width: 55px; pointer-events: none; transition: opacity .2s ease; }.workflow-viewport:before { left: 0; background: linear-gradient(90deg,#0b281f,transparent); }.workflow-viewport:after { right: 0; background: linear-gradient(270deg,#0d3026,transparent); }.workflow-viewport.at-start:before,.workflow-viewport.at-end:after,.workflow-viewport.is-static:before,.workflow-viewport.is-static:after { opacity: 0; }
.workflow-flow { min-width: 0; max-width: 100%; padding: 27px 30px 31px; display: flex; align-items: stretch; gap: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-padding-inline: 30px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #67b394 rgba(255,255,255,.09); }.workflow-flow::-webkit-scrollbar { height: 8px; }.workflow-flow::-webkit-scrollbar-track { background: rgba(255,255,255,.07); }.workflow-flow::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #67b394; background-clip: padding-box; }
.workflow-node { position: relative; min-width: 0; flex: 0 0 clamp(220px,22vw,270px); padding: 18px 18px 19px; scroll-snap-align: start; border: 1px solid rgba(213,239,226,.18); border-radius: 15px; background: linear-gradient(145deg,rgba(255,255,255,.105),rgba(255,255,255,.055)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07),0 12px 26px rgba(0,0,0,.13); backdrop-filter: blur(8px); }.workflow-node.is-gate { border-color: rgba(255,215,70,.58); background: linear-gradient(145deg,rgba(255,215,70,.13),rgba(255,255,255,.055)); }.workflow-node.is-start { border-color: rgba(94,223,174,.54); }.workflow-node.is-finish { border-color: rgba(217,243,107,.62); background: linear-gradient(145deg,rgba(217,243,107,.14),rgba(255,255,255,.055)); }
.workflow-marker { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }.workflow-marker span { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(117,224,184,.55); border-radius: 10px; color: #c7f7e1; background: rgba(29,94,71,.68); font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 10px; font-weight: 900; letter-spacing: .08em; }.workflow-marker i { width: 7px; height: 7px; border-radius: 50%; background: #68dab0; box-shadow: 0 0 0 5px rgba(104,218,176,.1); }.workflow-node.is-gate .workflow-marker span,.workflow-node.is-gate .workflow-marker i { color: #1a2d25; border-color: #ffdc58; background: #ffdc58; }.workflow-node.is-finish .workflow-marker span,.workflow-node.is-finish .workflow-marker i { color: #173c30; border-color: #d9f36b; background: #d9f36b; }
.workflow-node strong { display: block; margin: 0 0 9px; color: #f6fbf8; font-size: 15px; line-height: 1.3; letter-spacing: -.01em; }.workflow-node p { margin: 0; color: #bfd0c7; font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }.workflow-flow > .workflow-arrow { position: relative; z-index: 1; align-self: center; flex: 0 0 46px; display: grid; place-items: center; color: #8ce3c0; font-size: 16px; font-weight: 900; text-shadow: 0 0 10px #0a241d; }.workflow-flow > .workflow-arrow:before { content: ''; position: absolute; z-index: -1; left: 0; right: 0; height: 1px; background: linear-gradient(90deg,rgba(114,210,174,.25),rgba(114,210,174,.85),rgba(114,210,174,.25)); }.cluster-decision-flow > .workflow-arrow { align-self: center; flex: 0 0 auto; color: #7ba28c; font-size: 22px; font-weight: 800; }
.workflow-progress { position: absolute; z-index: 4; left: 30px; right: 30px; bottom: 13px; height: 3px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.1); pointer-events: none; }.workflow-progress i { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#64dab0,#d9f36b); transition: width .16s ease,margin-left .16s ease; }
.glossary-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }.glossary-grid article { padding: 17px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }.glossary-grid strong { color: var(--mint); font-size: 13px; }.glossary-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.brand-intro, .plan-intro { padding: 25px 28px; margin-bottom: 18px; border: 1px solid #cbded2; border-radius: 14px; background: #eaf4ed; }.brand-intro h2, .plan-intro h2 { margin: 0 0 8px; font-size: clamp(22px,2.2vw,30px); }.brand-intro p:last-child, .plan-intro p:last-child { max-width: 840px; margin: 0; color: #4e6657; font-size: 14px; line-height: 1.6; }
.brand-grid, .source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.brand-card, .source-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }.brand-card h3, .source-card h3 { margin: 0 0 12px; font-size: 16px; }.brand-card p, .source-card p { margin: 8px 0; color: var(--muted); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }.brand-card .brand-bullet { padding-left: 14px; border-left: 2px solid #9bc7aa; }.brand-table-line { font-family: ui-monospace,monospace; font-size: 11px !important; }.source-head { display: flex; align-items: baseline; gap: 15px; margin: 28px 0 12px; }.source-head h2 { margin: 0; font-size: 22px; }.source-head p { color: var(--muted); font-size: 13px; }.source-card code { display: block; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }.source-card a { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 700; }
.plan-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }.plan-column { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }.plan-column h3 { margin: 0 0 16px; font-size: 17px; }.plan-card { display: grid; gap: 7px; width: 100%; margin: 9px 0; padding: 16px; text-align: left; border: 1px solid #dae4dc; border-radius: 10px; background: #f9fbf9; }.plan-card:hover { background: #f0f7f1; }.plan-card h3 { margin: 0; font-size: 15px; }.plan-card p { margin: 0; color: var(--muted); font-size: 12px; }.plan-warning, .plan-ready { width: fit-content; padding: 4px 7px; border-radius: 5px; font-size: 11px; }.plan-warning { color: #8a560d; background: #fff3dc; }.plan-ready { color: var(--mint); background: #e4f2e8; }
.schedule-automation { padding: clamp(20px,2.8vw,32px); margin-bottom: 22px; display: grid; gap: 18px; border: 1px solid #b9d2c2; border-radius: 17px; background: #fff; box-shadow: 0 12px 34px rgba(21,59,45,.06); }.schedule-head { display: flex; align-items: start; justify-content: space-between; gap: 24px; }.schedule-head h2 { margin: 5px 0 8px; font-size: clamp(23px,2.8vw,34px); }.schedule-head p:last-child { max-width: 800px; margin: 0; color: var(--muted); line-height: 1.55; }.schedule-mode { padding: 8px 11px; flex: 0 0 auto; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .09em; }.schedule-mode.off { color: #7e5613; background: #fff0ce; }.schedule-mode.shadow { color: #285b86; background: #e7f2fc; }.schedule-mode.live { color: #176040; background: #dff1e6; }.schedule-guard { padding: 15px 17px; display: grid; gap: 4px; border: 1px solid #ead19d; border-left: 4px solid #d29b2f; border-radius: 10px; background: #fff9ec; }.schedule-guard p,.schedule-guard small { margin: 0; color: #735f3d; }.schedule-guard p { font-size: 12px; }.schedule-guard small { font-size: 10px; }.schedule-error { margin: 0; padding: 14px; color: #8a3428; border-radius: 9px; background: #fff0ed; }
.schedule-form { display: grid; gap: 17px; }.schedule-controls { display: grid; grid-template-columns: repeat(5,minmax(130px,1fr)); gap: 11px; }.schedule-control { min-width: 0; display: grid; gap: 6px; color: var(--muted); font-size: 11px; font-weight: 700; }.schedule-control input,.schedule-control select,.schedule-control textarea,.schedule-slot-add input,.schedule-slot-add select,.schedule-queue-add input,.schedule-queue-add select { width: 100%; min-width: 0; min-height: 42px; padding: 9px 12px; color: var(--text); border: 1px solid #cad8ce; border-radius: 9px; background-color: #fff; font: inherit; font-size: 13px; }.schedule-control textarea { resize: vertical; line-height: 1.45; }.schedule-formats { padding: 13px 15px; display: flex; flex-wrap: wrap; gap: 16px; border: 1px solid #d6e1d9; border-radius: 10px; }.schedule-formats legend { padding: 0 5px; color: var(--muted); font-size: 11px; font-weight: 750; }.schedule-formats label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; }.schedule-formats input { width: 18px; height: 18px; }
.schedule-slots,.schedule-preview,.schedule-queue,.schedule-observation,.schedule-evidence { padding: 17px; border: 1px solid #d8e2da; border-radius: 12px; background: #f8fbf8; }.schedule-subhead { display: flex; align-items: end; justify-content: space-between; gap: 15px; }.schedule-subhead h3,.schedule-preview h3 { margin: 0 0 4px; font-size: 17px; }.schedule-subhead p { margin: 0; color: var(--muted); font-size: 11px; }.schedule-slot-list { margin: 13px 0; display: flex; flex-wrap: wrap; gap: 8px; }.schedule-slot { min-height: 38px; padding: 6px 7px 6px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c8dbcD; border-radius: 999px; color: #315f4d; background: #edf6f0; font-size: 11px; }.schedule-slot strong { font-size: 12px; }.schedule-slot button { min-width: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 50%; background: rgba(23,78,60,.08); }.schedule-slot-add { display: grid; grid-template-columns: minmax(150px,1fr) minmax(110px,.6fr) auto; gap: 8px; }.schedule-exceptions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.schedule-actions { display: flex; flex-wrap: wrap; gap: 9px; }.schedule-preview-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }.schedule-preview-list span { padding: 6px 8px; border: 1px solid #d1ddd4; border-radius: 7px; color: #50685a; background: #fff; font-size: 10px; }
.schedule-queue-add { margin-top: 13px; display: grid; grid-template-columns: minmax(230px,1fr) 150px 120px auto; gap: 8px; }.schedule-queue-list { margin-top: 13px; display: grid; gap: 8px; }.schedule-queue-item { padding: 12px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #d8e2da; border-radius: 9px; background: #fff; }.schedule-queue-item > div { min-width: 0; display: grid; gap: 3px; }.schedule-queue-item strong,.schedule-queue-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.schedule-queue-item small { color: var(--muted); font-size: 10px; }.schedule-state { width: fit-content; padding: 4px 6px; border-radius: 5px; color: #315f4d; background: #e8f2eb; font-size: 9px; font-weight: 850; }.schedule-queue-item.cancelled { opacity: .65; }.schedule-queue-item.cancelled .schedule-state { color: #765c2c; background: #f5ead5; }
.schedule-observation { display: grid; gap: 13px; }.schedule-observation-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; }.schedule-observation-head h3 { margin: 0 0 4px; font-size: 17px; }.schedule-observation-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }.schedule-observation-status { padding: 7px 9px; flex: 0 0 auto; border-radius: 999px; color: #7a530f; background: #fff0ce; font-size: 9px; font-weight: 900; letter-spacing: .06em; }.schedule-observation-status.evidence_ready { color: #176040; background: #dff1e6; }.schedule-observation-status.unsafe { color: #8a3428; background: #fff0ed; }.schedule-observation-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }.schedule-observation-stats article { padding: 11px 12px; display: grid; gap: 3px; border: 1px solid #d8e2da; border-radius: 9px; background: #fff; }.schedule-observation-stats strong { font-size: 17px; }.schedule-observation-stats span { color: var(--muted); font-size: 9px; }.schedule-observation-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e4ebe6; }.schedule-observation-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#2f78ad,#73b89b); }.schedule-observation-requirements { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.schedule-observation-requirements article { padding: 9px 10px; display: grid; grid-template-columns: auto minmax(100px,.45fr) minmax(150px,1fr); align-items: center; gap: 8px; border: 1px solid #e3d1ad; border-radius: 8px; background: #fffaf0; }.schedule-observation-requirements article.pass { border-color: #cce0d3; background: #f3faf5; }.schedule-observation-requirements i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #80540b; background: #ffe3a8; font-style: normal; font-size: 10px; font-weight: 900; }.schedule-observation-requirements .pass i { color: #fff; background: #247050; }.schedule-observation-requirements strong { font-size: 11px; }.schedule-observation-requirements span { color: var(--muted); font-size: 10px; line-height: 1.4; }.schedule-observation-note { margin: 0; padding: 9px 10px; color: #735f3d; border-left: 3px solid #d29b2f; background: #fff9ec; font-size: 10px; line-height: 1.5; }
.schedule-run-list { margin-top: 13px; display: grid; gap: 7px; }.schedule-run { padding: 10px 12px; display: grid; gap: 10px; border: 1px solid #d8e2da; border-radius: 9px; background: #fff; }.schedule-run-summary { display: grid; grid-template-columns: auto minmax(150px,.6fr) minmax(220px,1fr); align-items: center; gap: 10px; }.schedule-run strong { font-size: 12px; }.schedule-run small { color: var(--muted); font-size: 10px; }.schedule-run.would_publish { border-color: #9cc8ae; background: #f3faf5; }.schedule-run.failed_safe,.schedule-run.uncertain { border-color: #e3c58f; background: #fff9ed; }.schedule-run.reviewed { border-color: #b8d5c2; background: #f6fbf7; }.schedule-run-review { padding: 10px; border: 1px solid #e2c98f; border-radius: 8px; background: #fff; }.schedule-run-review summary { cursor: pointer; color: #76500f; font-size: 11px; font-weight: 800; }.schedule-run-review[open] { display: grid; gap: 9px; }.schedule-run-review.complete { display: grid; gap: 4px; border-color: #cce0d3; background: #f3faf5; }.schedule-run-review.complete p,.schedule-run-review.complete small { margin: 0; }.schedule-run-review.complete p { font-size: 11px; line-height: 1.5; }.schedule-review-actions { display: flex; justify-content: flex-end; }
.schedule-queue-editor { width: 100%; min-width: 0; flex: 1; padding: 10px; border: 1px solid #d8e2da; border-radius: 8px; }
.schedule-queue-editor summary { cursor: pointer; font-size: 12px; font-weight: 750; }
.schedule-queue-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 12px 0; }
.schedule-queue-editor .hint { white-space: normal; }
@media (max-width: 600px) { .schedule-queue-fields { grid-template-columns: 1fr; } }

/* Instagram rehearsal: familiar publishing surfaces inside the operational workspace. */
.instagram-studio { position: sticky; top: 18px; grid-column: 2; grid-row: 1 / span 20; min-width: 0; padding: 20px; border: 1px solid #d8dfda; border-radius: 18px; background: #f6f7f6; box-shadow: 0 14px 42px rgba(24,34,29,.09); }
.ig-studio-head h3 { margin: 0 0 7px; font-size: 24px; letter-spacing: -.04em; }.ig-studio-head > p:last-child { margin: 0; color: #66736b; font-size: 12px; line-height: 1.55; }
.ig-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 14px; }.ig-checks span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #d8dfda; border-radius: 999px; background: #fff; color: #5d6a62; font-size: 10px; }.ig-checks i { width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; font-style: normal; font-weight: 800; }.ig-checks .pass i { color: #fff; background: #1b684c; }.ig-checks .warn i { color: #774a05; background: #ffe6a8; }
.ig-preview-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; padding: 4px; border-radius: 10px; background: #e9eeea; }.ig-preview-tabs button { min-height: 42px; padding: 8px 5px; border: 0; border-radius: 7px; color: #657168; background: transparent; font-size: 12px; }.ig-preview-tabs button.active { color: #15211b; background: #fff; box-shadow: 0 2px 9px rgba(24,34,29,.08); }
.ig-preview-canvas { min-height: 460px; margin-top: 12px; padding: 14px; display: grid; place-items: start center; overflow: hidden; border: 1px solid #dde2de; border-radius: 14px; background: #e9ece9; }.ig-preview-canvas.story { background: #161918; }.ig-preview-note { margin: 12px 3px 0; color: #647168; font-size: 11px; line-height: 1.55; }
.ig-post { width: 100%; max-width: 390px; overflow: hidden; color: #141414; background: #fff; border: 1px solid #d9d9d9; border-radius: 5px; box-shadow: 0 8px 25px rgba(0,0,0,.08); }
.ig-post-head,.ig-identity { display: flex; align-items: center; }.ig-post-head { height: 54px; justify-content: space-between; padding: 8px 13px; }.ig-identity { gap: 9px; }.ig-identity strong { font-size: 12px; }.ig-more { letter-spacing: 2px; font-weight: 800; }
.ig-avatar { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; border: 1px solid #d2d6d3; border-radius: 50%; color: #fff; background: #123d31; font-size: 12px; font-weight: 900; }.ig-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ig-media-frame { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; background: #111; }.ig-preview-media { width: 100%; height: 100%; display: block; object-fit: cover; }.ig-preview-media.is-loading,.ig-grid-media.is-loading { opacity: 0; }.ig-media-loading { position: absolute; z-index: 1; inset: 0; display: grid; place-items: center; overflow: hidden; color: #b8c5be; background: linear-gradient(145deg,#111915,#1b2821); }.ig-media-loading-shimmer { position: absolute; width: 42%; height: 160%; background: linear-gradient(90deg,transparent,rgba(255,255,255,.08),transparent); transform: translateX(-190%) rotate(12deg); animation: ig-media-shimmer 1.35s ease-in-out infinite; }.ig-media-loading-copy { position: relative; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.06); font-size: 10px; font-weight: 700; letter-spacing: .02em; }.ig-media-loading.is-error { background: #151b18; }.ig-media-loading.is-error .ig-media-error { margin: 0; }
@keyframes ig-media-shimmer { to { transform: translateX(190%) rotate(12deg); } }
.ig-carousel-arrow { position: absolute; z-index: 3; top: 50%; width: 42px; height: 42px; min-height: 42px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; color: #fff; background: rgba(24,24,24,.68); font-size: 25px; line-height: 1; }.ig-carousel-arrow.previous { left: 9px; }.ig-carousel-arrow.next { right: 9px; }.ig-carousel-count { position: absolute; z-index: 3; top: 10px; right: 10px; padding: 5px 8px; border-radius: 13px; color: #fff; background: rgba(17,17,17,.66); font-size: 10px; }
.ig-actions { min-height: 49px; padding: 6px 10px 3px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }.ig-actions > div { display: flex; align-items: center; gap: 12px; line-height: 1; }.ig-actions > .ig-icon:last-child { justify-self: end; }.ig-icon { width: 24px; height: 24px; display: block; color: #141414; }.ig-dots { gap: 0 !important; }.ig-dots button { position: relative; width: 32px; height: 38px; min-height: 38px; padding: 0; border: 0; background: transparent; }.ig-dots button:before { content: ''; position: absolute; width: 7px; height: 7px; left: 50%; top: 50%; transform: translate(-50%,-50%); border-radius: 50%; background: #c4c4c4; }.ig-dots button.active:before { background: #2896d4; }
.ig-caption { margin: 2px 12px 7px; font-size: 11px; line-height: 1.45; white-space: pre-line; }.ig-caption strong { font-size: 11px; }.ig-more-copy { color: #707070; }.ig-date { margin: 0 12px 5px; color: #868686; font-size: 9px; text-transform: uppercase; }.ig-post > a { display: block; margin: 0 12px 13px; font-size: 10px; }
.ig-fallback { position: relative; width: 100%; height: 100%; padding: 11%; display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #fff; background: linear-gradient(140deg,#08130f,#174e3c); }.ig-fallback.matevmatik { background: linear-gradient(140deg,#121d36,#324b79); }.ig-fallback.shared { background: linear-gradient(140deg,#1b2924,#405a4e); }.ig-fallback-label { position: absolute; top: 7%; left: 8%; color: #c9f17b; font-size: 9px; font-weight: 800; letter-spacing: .15em; }.ig-fallback strong { position: relative; z-index: 1; max-width: 90%; font-size: clamp(19px,3vw,31px); line-height: 1.08; letter-spacing: -.045em; }.ig-fallback p { position: relative; z-index: 1; max-width: 90%; margin: 16px 0 0; color: #c8d4cf; font-size: 10px; line-height: 1.5; }.ig-fallback-motif { position: absolute; width: 64%; height: 52%; right: -22%; bottom: -17%; border: 1px solid rgba(255,255,255,.26); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.05),0 0 0 60px rgba(255,255,255,.025); }.ig-fallback-motif i { display: none; }.ig-media-error { align-self: center; padding: 20px; color: #fff; text-align: center; font-size: 11px; }
.ig-profile { width: 100%; max-width: 390px; overflow: hidden; color: #111; background: #fff; border: 1px solid #d9d9d9; border-radius: 5px; box-shadow: 0 8px 25px rgba(0,0,0,.08); }.ig-profile-head { padding: 17px; display: flex; align-items: center; gap: 13px; }.ig-profile-head .ig-avatar { width: 64px; height: 64px; }.ig-profile-info { display: grid; gap: 5px; }.ig-profile-info strong { font-size: 14px; }.ig-profile-info span { color: #666; font-size: 11px; }.ig-profile-stats { padding: 10px 18px 14px; display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid #ddd; text-align: center; }.ig-profile-stats span { white-space: pre-line; color: #555; font-size: 10px; line-height: 1.45; }.ig-profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: #fff; }.ig-grid-cell,.ig-grid-empty { position: relative; aspect-ratio: 1; min-height: 0; padding: 0; overflow: hidden; border: 0; border-radius: 0; background: #edf0ed; }.ig-grid-cell.current { box-shadow: inset 0 0 0 4px #55be8b; }.ig-grid-media { width: 100%; height: 100%; object-fit: cover; }.ig-grid-cell .ig-fallback { padding: 12px; }.ig-grid-cell .ig-fallback strong { font-size: 12px; }.ig-grid-cell .ig-fallback p,.ig-grid-cell .ig-fallback-label { display: none; }.ig-grid-badge { position: absolute; left: 5px; bottom: 5px; padding: 3px 5px; border-radius: 4px; color: #fff; background: rgba(0,0,0,.68); font-size: 7px; font-weight: 800; letter-spacing: .08em; }.ig-grid-carousel { position: absolute; top: 5px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px #000); font-size: 14px; }
.ig-story { position: relative; width: min(100%,315px); aspect-ratio: 9 / 16; overflow: hidden; color: #fff; background: #111; border-radius: 24px; box-shadow: 0 13px 30px rgba(0,0,0,.32); }.ig-story-visual { position: absolute; inset: 0; }.ig-story .ig-fallback { position: absolute; inset: 0; }.ig-story-progress { position: absolute; z-index: 4; top: 11px; left: 10px; right: 10px; display: flex; gap: 3px; }.ig-story-progress i { height: 2px; flex: 1; background: rgba(255,255,255,.35); }.ig-story-progress i.active { background: #fff; }.ig-story-head { position: absolute; z-index: 4; top: 21px; left: 12px; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 4px #000; }.ig-story-head .ig-avatar { width: 28px; height: 28px; }.ig-story-head strong { font-size: 10px; }.ig-story-head span { color: #ddd; font-size: 9px; }.ig-safe { position: absolute; z-index: 3; left: 6%; right: 6%; padding: 4px; border-top: 1px dashed rgba(255,255,255,.58); color: rgba(255,255,255,.76); font-size: 8px; letter-spacing: .12em; }.ig-safe.top { top: 17%; }.ig-safe.bottom { bottom: 18%; border-top: 0; border-bottom: 1px dashed rgba(255,255,255,.58); text-align: right; }.ig-story-cta { position: absolute; z-index: 4; left: 12%; right: 12%; bottom: 8%; padding: 10px; border-radius: 999px; color: #151515; background: rgba(255,255,255,.92); text-align: center; font-size: 10px; font-weight: 800; }.ig-story-controls { position: absolute; z-index: 5; left: 0; right: 0; bottom: 1%; display: flex; justify-content: center; align-items: center; gap: 8px; }.ig-story-controls button { width: 42px; height: 42px; min-height: 42px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.48); }.ig-story-controls span { font-size: 10px; text-shadow: 0 1px 4px #000; }

/* Human approval desk */
.approval-hero { margin-bottom: 20px; padding: clamp(22px,3vw,36px); display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,360px); gap: 28px; align-items: end; border: 1px solid #cddbd2; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#0b2f24,#174e3c 62%,#226049); }
.approval-hero .eyebrow { color: #b7e5cf; }.approval-hero h2 { max-width: 760px; margin: 8px 0 10px; font-size: clamp(29px,3.4vw,47px); line-height: 1.04; letter-spacing: -.05em; }.approval-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: #d2e3d9; line-height: 1.6; }
.approval-guard { padding: 18px; border: 1px solid rgba(255,255,255,.2); border-radius: 13px; background: rgba(255,255,255,.08); }.approval-guard strong { color: #d9f36b; }.approval-guard p { margin-top: 7px !important; font-size: 12px; }
.approval-summary { margin: 0 0 34px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.approval-summary article { padding: 17px 18px; display: grid; gap: 5px; border: 1px solid var(--line); border-top-width: 4px; border-radius: 12px; background: #fff; }.approval-summary article.approval { border-top-color: var(--blue); }.approval-summary article.publish { border-top-color: var(--mint); }.approval-summary article.input { border-top-color: var(--yellow); }.approval-summary article.measure { border-top-color: #7855a5; }.approval-summary strong { font-size: 28px; }.approval-summary span { color: var(--muted); font-size: 12px; }
.approval-section-head { margin: 36px 0 15px; display: flex; justify-content: space-between; align-items: end; gap: 24px; }.approval-section-head h2 { margin: 4px 0 0; font-size: 23px; }.approval-section-head > p { max-width: 560px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: right; }
.approval-list { display: grid; gap: 18px; }.pagination { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.76); }.pagination button { min-height: 40px; padding: 8px 14px; background: #fff; border-color: var(--line); color: var(--ink); }.pagination button:disabled { opacity: .42; cursor: not-allowed; }.pagination-status { min-width: 190px; text-align: center; color: var(--muted); font-size: .9rem; font-weight: 700; }.approval-card { min-width: 0; padding: clamp(16px,2.5vw,26px); display: grid; grid-template-columns: minmax(290px,360px) minmax(0,1fr); gap: clamp(20px,3vw,36px); align-items: center; border: 1px solid var(--line); border-left-width: 5px; border-radius: 18px; background: #fff; box-shadow: 0 7px 24px rgba(30,47,38,.045); }.approval-card.approval { border-left-color: var(--blue); }.approval-card.publish { border-left-color: var(--mint); }.approval-card.input { border-left-color: var(--yellow); }.approval-card.measure { border-left-color: #7855a5; }
.approval-preview { min-width: 0; display: grid; place-items: center; padding: 12px; overflow: hidden; border-radius: 14px; background: #e9ece9; }.approval-preview .ig-post { max-width: 330px; }.approval-preview .ig-media-frame { aspect-ratio: 4 / 5; }.approval-preview .ig-story { width: min(100%,240px); }.approval-preview .ig-story-cta { font-size: 7px; }.approval-post .ig-caption { max-height: 72px; overflow: hidden; }
.approval-info { min-width: 0; }.approval-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }.approval-state { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }.approval-state.approval { color: #244d86; background: #eaf2ff; }.approval-state.publish { color: #174e3c; background: #e8f5ec; }.approval-state.input { color: #7a4b0c; background: #fff1d5; }.approval-state.measure { color: #5e4082; background: #f1eafd; }.approval-date { color: var(--muted); font-size: 11px; }.approval-info h3 { margin: 5px 0 8px; font-size: clamp(23px,2.6vw,34px); line-height: 1.1; letter-spacing: -.04em; }.approval-hook { color: var(--muted); font-size: 15px; line-height: 1.55; }.approval-details { margin: 18px 0; padding: 15px 18px 15px 34px; border: 1px solid #e0e7e2; border-radius: 10px; background: #f8faf8; }.approval-details li { margin: 5px 0; color: #4f5f56; font-size: 13px; line-height: 1.5; }.approval-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }.approval-actions button { min-height: 42px; }
.review-feedback { margin: 0 0 18px; padding: 15px 17px; border: 1px solid #e6b85c; border-left: 4px solid #c68416; border-radius: 10px; background: #fff8e9; }.review-feedback strong { color: #714608; }.review-feedback p { margin: 7px 0; line-height: 1.55; }.review-feedback small { color: var(--muted); }
.direct-publish { margin: 20px 0 16px; padding: 20px; display: grid; gap: 10px; border: 1px solid #a9cdb7; border-radius: 14px; background: linear-gradient(135deg,#edf8f1,#fff); }.direct-publish.unavailable { border-color: #dccb9e; background: #fffaf0; }.direct-publish .eyebrow { margin: 0; color: #1b684c; }.direct-publish > strong { font-size: 19px; letter-spacing: -.02em; }.direct-publish > p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.direct-publish-facts { display: flex; flex-wrap: wrap; gap: 7px; }.direct-publish-facts span { padding: 5px 8px; border: 1px solid #cfe0d5; border-radius: 999px; color: #315f4d; background: rgba(255,255,255,.82); font-size: 10px; font-weight: 750; }.direct-publish-button { width: fit-content; min-height: 44px; margin-top: 3px; padding-inline: 18px; }.direct-publish-button:disabled { color: #8b7b55; border-color: #dfd0aa; background: #f1e8d1; cursor: not-allowed; }

/* Performance learning */
.metrics-hero { margin-bottom: 20px; padding: clamp(22px,3vw,36px); display: grid; grid-template-columns: minmax(0,1fr) minmax(260px,360px); gap: 28px; align-items: end; border: 1px solid #d8d0e4; border-radius: 18px; background: linear-gradient(135deg,#f5f0fb,#fff 62%,#eef7f2); }.metrics-hero h2 { margin: 8px 0 10px; font-size: clamp(29px,3.4vw,47px); line-height: 1.04; letter-spacing: -.05em; }.metrics-hero p:not(.eyebrow) { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.6; }.metrics-sync { padding: 18px; border: 1px solid #d6c8e7; border-radius: 13px; background: rgba(255,255,255,.78); }.metrics-sync strong { color: #5e4082; }.metrics-sync p { margin-top: 7px !important; font-size: 12px; }.metrics-sync .sync-button { margin-top: 12px; width: 100%; background: #6c4a94; color: #fff; }
.metrics-summary { margin: 0 0 24px; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }.metrics-summary article { padding: 18px; display: grid; gap: 5px; border: 1px solid var(--line); border-top: 4px solid #7855a5; border-radius: 12px; background: #fff; }.metrics-summary strong { font-size: 28px; }.metrics-summary span { color: var(--muted); font-size: 12px; }
.metrics-scroll-hint { display: none; }.metrics-table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; scrollbar-color: #739987 #e8eee9; }.metrics-table-wrap:focus-visible { outline: 2px solid #9d6c0b; outline-offset: 3px; }.metrics-table { width: 100%; min-width: 920px; border-collapse: separate; border-spacing: 0; }.metrics-table th,.metrics-table td { padding: 14px 13px; border-bottom: 1px solid #e7ebe8; text-align: left; font-size: 12px; }.metrics-table th { color: #526158; background: #f5f7f5; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }.metrics-table tbody tr { cursor: pointer; }.metrics-table tbody tr:hover,.metrics-table tbody tr:focus { outline: 0; background: #f4faf6; }.metrics-table tbody tr:last-child td { border-bottom: 0; }.metrics-table td strong,.metrics-table td small { display: block; }.metrics-table td small { margin-top: 4px; color: var(--muted); }.metrics-table th:first-child,.metrics-table td:first-child { position: sticky; left: 0; z-index: 1; min-width: 190px; background: #fff; box-shadow: 10px 0 18px -16px rgba(15,52,39,.75); }.metrics-table th:first-child { z-index: 2; background: #f5f7f5; }
.editor-mobile-switch { display: none; }
.instagram-archive { margin: 0 0 28px; padding: clamp(18px,2.5vw,28px); border: 1px solid #d8d0e4; border-radius: 18px; background: #fbf9fd; }.archive-head { display: flex; justify-content: space-between; align-items: end; gap: 22px; }.archive-head h2 { margin: 5px 0; font-size: 25px; }.archive-head p { margin: 0; color: var(--muted); font-size: 13px; }.archive-import { min-width: 230px; color: #fff; background: #6c4a94; }.archive-note { max-width: 850px; margin: 17px 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.archive-grid { max-height: 420px; padding-right: 4px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; overflow-y: auto; }.archive-card { min-width: 0; padding: 14px; display: grid; gap: 7px; border: 1px solid #e1dbe9; border-radius: 11px; background: #fff; }.archive-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.archive-card strong { font-size: 16px; }.archive-card small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }.archive-card a { color: #5e4082; font-size: 12px; font-weight: 750; }.archive-state { padding: 4px 7px; border-radius: 999px; font-size: 9px; font-weight: 850; white-space: nowrap; }.archive-state.matched { color: #174e3c; background: #e8f5ec; }.archive-state.unmatched { color: #7a4b0c; background: #fff1d5; }

@media (max-width: 1260px) {
  #cards.board { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #cards:not(.board), .brand-grid, .source-grid, .type-grid, .glossary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .recommendation-grid { grid-template-columns: 1fr 1fr; }
  .cluster-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .workspace.has-selection .editor { display: block; max-width: 1000px; }
  .instagram-studio { position: relative; top: auto; max-width: 470px; margin: 30px auto 0; }
  .approval-card { grid-template-columns: 320px minmax(0,1fr); }
}
@media (max-width: 820px) {
  .marketing-shell { display: block; }
  .hub-sidebar { position: static; height: auto; padding: 14px 18px; }
  .hub-brand { padding: 0 0 12px; }
  .hub-sidebar-label, .hub-sidebar-footer { display: none; }
  .hub-links { display: block; padding: 0; border: 0; }
  .hub-links a { min-height: 40px; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 5px; font-size: 12px; text-align: center; }
  .hub-links small { display: none; }
  .hub-links button { display: flex; align-items: center; min-height: 40px; }
  #project-nav:not([hidden]) { display: grid; gap: 7px; padding: 9px 0 4px; margin-bottom: 0; }
  .sidebar-workspace { grid-template-columns: minmax(0,1fr) minmax(0,1fr); padding: 0 0 10px; gap: 8px 12px; }
  .sidebar-workspace > strong { grid-column: 1/-1; font-size: 12px; }
  #project-nav .sidebar-workspace .hub-sidebar-label { display: none; }
  .navigation-group { display: flex; align-items: center; overflow-x: auto; overscroll-behavior-inline: contain; padding: 3px 0 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  #project-nav .navigation-group .hub-sidebar-label { display: block; margin: 0 10px 0 0; flex: 0 0 115px; font-size: 10px; }
  #project-nav button,#project-nav .project-repo-link { width: auto; min-width: max-content; min-height: 42px; flex: 0 0 auto; padding: 8px 12px; scroll-snap-align: start; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; font-size: 12px; }
  #project-nav .project-repo-link { display: flex; }
  .marketing-main > .topbar { height: 72px; }
  .intro { grid-template-columns: 1fr; }
  .cluster-hero { grid-template-columns: 1fr; }
  .cluster-heading { display: block; }.cluster-legend { margin-top: 8px; text-align: left; }
  .approval-hero, .approval-card, .metrics-hero { grid-template-columns: 1fr; }.approval-guard,.metrics-sync { max-width: 520px; }.approval-preview { max-width: 390px; width: 100%; margin: 0 auto; }.approval-section-head { display: block; }.approval-section-head > p { margin-top: 7px; text-align: left; }.archive-head { display: grid; align-items: stretch; }.archive-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.archive-import { width: 100%; }
  .approval-summary,.metrics-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .schedule-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }.schedule-queue-add { grid-template-columns: 1fr 1fr; }.schedule-queue-add select:first-child { grid-column: 1/-1; }
  .workflow-card-head { grid-template-columns: 1fr; gap: 15px; align-items: start; }.workflow-tools { justify-content: space-between; }.workflow-node { flex-basis: min(76vw,255px); }
  .topic-hero,.atlas-detail-head { grid-template-columns: 1fr; }.topic-legend { grid-template-columns: repeat(3,minmax(0,1fr)); }.topic-row { grid-template-columns: minmax(180px,.8fr) repeat(3,minmax(190px,1fr)); overflow-x: auto; }.topic-tree { overflow-x: auto; }.topic-row { min-width: 980px; }.atlas-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #notice { left: 50%; }
}
@media (max-width: 620px) {
  .pagination { justify-content: space-between; gap: 7px; padding: 8px; }.pagination button { padding: 8px 10px; }.pagination-status { min-width: 0; font-size: .76rem; }
  .hub-sidebar { padding: 10px 14px 8px; }
  .hub-brand { padding: 0 0 8px; }
  .hub-links > button#nav-projects { min-height: 34px; padding: 6px 9px; }
  #project-nav:not([hidden]) { gap: 6px; padding-top: 7px; }
  #project-nav button,#project-nav .project-repo-link { min-height: 42px; padding: 7px 10px; font-size: 11px; }
  .hub-links > a { display: none; }
  .marketing-main > main { padding: 24px 18px 46px; }
  .marketing-main > .topbar { padding: 0 18px; }
  .topbar h1 { font-size: 17px; }.identity .eyebrow { display: none; }
  .mark { width: 36px; height: 36px; font-size: 18px; }
  .account { gap: 6px; }.account span { display: none; }.account button { padding: 7px 8px; }
  .login { margin: 16px auto 70px; padding: 22px; }.login h2 { font-size: 28px; }
  .projects { grid-template-columns: 1fr; }.project-card { min-height: 210px; padding: 22px; }
  .stats { display: flex; gap: 8px; margin-bottom: 20px; padding: 0 0 4px; overflow-x: auto; scroll-snap-type: x proximity; }.stats .stat { flex: 0 0 136px; padding: 12px 14px; scroll-snap-align: start; }.stat strong { font-size: 22px; }.stat span { font-size: 12px; }.filters { grid-template-columns: 1fr 1fr; }
  #cards:not(.board), #cards.board, .brand-grid, .source-grid, .plan-grid, .editor-process, .phase-grid, .recommendation-grid, .type-grid, .calendar-grid, .glossary-grid, .strategy-brief, .cluster-summary, .cluster-grid, .approval-summary, .metrics-summary, .archive-grid { grid-template-columns: 1fr; }.tabs a { margin-left: 0; }
  .cluster-principle { grid-template-columns: 1fr; gap: 7px; }
  .campaign-head { display: block; }.campaign-date { display: inline-flex; margin-top: 12px; }
  .slot-row { grid-template-columns: 62px 1fr; }.slot-action { grid-column: 1 / -1; justify-content: flex-start; }.slot-copy p { white-space: normal; }
  .editor { padding: 18px; }
  .editor-layer { padding: 15px; }
  .instagram-studio { padding: 14px; margin-top: 22px; }
  .editor-mobile-switch { position: sticky; z-index: 8; top: 8px; margin: -8px -4px 18px; padding: 5px; display: grid; grid-template-columns: 1fr 1fr; gap: 5px; border: 1px solid #d5dfd8; border-radius: 12px; background: rgba(244,246,243,.96); box-shadow: 0 7px 22px rgba(23,78,60,.12); backdrop-filter: blur(10px); }.editor-mobile-switch button { min-height: 42px; color: var(--mint); background: #fff; }
  .ig-preview-canvas { min-height: 390px; padding: 8px; }
  .metrics-scroll-hint { margin: 0 0 8px; display: block; color: #52675a; font-size: 12px; font-weight: 750; text-align: right; }.metrics-table-wrap { border-radius: 12px; box-shadow: inset -22px 0 20px -24px rgba(18,61,49,.85); }.metrics-table { min-width: 820px; }.metrics-table th,.metrics-table td { padding: 12px 11px; }.metrics-table th:first-child,.metrics-table td:first-child { min-width: 165px; }
  .source-head { display: block; }
  .editor-approval-actions button { flex: 1 1 100%; }
  .direct-publish-button { width: 100%; }
  .schedule-head,.schedule-observation-head { display: grid; }.schedule-mode,.schedule-observation-status { justify-self: start; }.schedule-controls,.schedule-exceptions,.schedule-slot-add,.schedule-queue-add,.schedule-run,.schedule-run-summary,.schedule-observation-stats,.schedule-observation-requirements,.schedule-observation-requirements article { grid-template-columns: 1fr; }.schedule-queue-add select:first-child { grid-column: auto; }.schedule-actions button,.schedule-queue-add button,.schedule-review-actions button { width: 100%; }.schedule-queue-item { align-items: stretch; flex-direction: column; }.schedule-queue-item > button { width: 100%; }
  .workflow-card { border-radius: 16px; }.workflow-card-head { padding: 19px 18px; }.workflow-tools { align-items: center; }.workflow-flow { padding: 22px 18px 27px; scroll-padding-inline: 18px; }.workflow-node { flex-basis: min(78vw,248px); }.workflow-flow > .workflow-arrow { flex-basis: 34px; }.workflow-progress { left: 18px; right: 18px; bottom: 10px; }.workflow-viewport:before,.workflow-viewport:after { width: 28px; }
  .topic-hero { padding: 22px 19px; }.topic-legend,.atlas-grid,.context-grid,.atlas-controls,.atlas-topic-tools,.atlas-summary { grid-template-columns: 1fr; }.topic-tree { margin-right: -18px; padding-right: 18px; }.topic-row { min-width: 0; margin-left: 0 !important; display: block; overflow: visible; }.topic-identity,.topic-layer { border-right: 0; border-bottom: 1px solid #e0e7e1; }.topic-actions { justify-content: stretch; }.topic-signal { width: 100%; }.topic-actions input,.topic-actions button { flex: 1 1 130px; }.atlas-module > summary { grid-template-columns: 34px 1fr; }.atlas-module > summary > span:last-child { grid-column: 2; }.brief-dialog form { padding: 21px; }.brief-dialog-actions button { flex: 1; }
}
.topic-link-editor { grid-column: 1 / -1; min-width: 0; padding: 16px; border: 1px solid #d5dfd8; border-radius: 12px; }
.topic-link-editor h4 { margin: 0 0 8px; }
.topic-link-controls { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.topic-link-controls select { min-width: 0; width: 100%; }
.topic-link-list { display: grid; gap: 8px; margin-bottom: 12px; }
.topic-link-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.metric-entry { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid #d5dfd8; }
.metric-entry small { grid-column: 1 / -1; color: #52675a; }
.approval-pending { display: block; min-height: 180px; padding: 24px; }
@media (max-width: 700px) {
 .topic-link-controls,.metric-entry { grid-template-columns: 1fr; }
 .topic-link-chip { align-items: flex-start; }
 .topic-link-chip span { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .workflow-flow { scroll-behavior: auto; }
  .workflow-progress i,.workflow-viewport:before,.workflow-viewport:after { transition: none; }
  .ig-media-loading-shimmer { animation: none; }
}

.topic-review-section { margin: 20px 0; padding: 20px; border: 1px solid #d7e2dc; border-radius: 16px; background: #fff; }
.topic-review-section > summary { cursor: pointer; font-weight: 700; padding: 6px 32px 6px 0; }
.topic-review-card { padding: 18px 0; border-top: 1px solid #e0e7e1; overflow-wrap: anywhere; }
.topic-review-card h3 { margin: 0 0 8px; }
.mapping-evidence { display: grid; gap: 14px; margin-top: 16px; }
.mapping-evidence article,.atlas-review-diff article { padding: 14px; border-radius: 10px; background: #f3f7f4; }
.mapping-evidence a,.mapping-evidence span { display: block; margin: 7px 0; }
.mapping-evidence blockquote { margin: 12px 0; padding-left: 12px; border-left: 3px solid #3a795e; }
.atlas-review-dialog { width: min(94vw,760px); max-height: 90dvh; overflow-y: auto; }
.atlas-review-dialog textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.atlas-review-dialog fieldset { border: 1px solid #d7e2dc; border-radius: 10px; min-width: 0; }
.atlas-review-dialog fieldset label { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0; overflow-wrap: anywhere; }
.atlas-review-dialog input[type=checkbox] { width: auto; flex: 0 0 auto; }
.atlas-review-dialog .brief-dialog-actions { flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; border-top: 1px solid #d7e2dc; padding: 12px 0; z-index: 1; }
.atlas-review-diff { display: grid; gap: 12px; overflow-wrap: anywhere; }
.atlas-review-diff p { white-space: pre-wrap; }
.review-ledger>select{width:100%;max-width:22rem;margin:1rem 0}.review-history article{border-top:1px solid var(--line,#dbe4df);padding:.75rem 0}.review-history article p{overflow-wrap:anywhere}.ledger-record blockquote{margin:.75rem 0;padding:.75rem;border-left:3px solid #1b6651;background:#eef6f1}.ledger-record .atlas-review-diff article{overflow-wrap:anywhere}
.application-plan{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:12px;background:var(--bg);overflow-wrap:anywhere}
.application-plan label{display:flex;align-items:flex-start;gap:.6rem;margin:1rem 0}
.application-plan input[type=checkbox]{flex:0 0 auto;width:18px;height:18px;margin-top:2px}
.classification-change-dialog p{overflow-wrap:anywhere}.classification-change-plan{padding:1rem;border:1px solid var(--line);border-radius:12px;margin:1rem 0;background:var(--bg)}.classification-change-plan:empty{display:none}.classification-change-plan label{display:flex;gap:.6rem;align-items:flex-start;margin:1rem 0}
.atlas-review-diff article>a{display:block;margin:.4rem 0;overflow-wrap:anywhere}
.web-workspace-head,.web-editor{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin:20px 0;min-width:0;overflow-wrap:anywhere}
.web-records{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0}
.web-record{padding:20px;background:#fff;border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}
.web-record button{display:block;margin-top:16px}.web-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.web-editor .field{display:flex;flex-direction:column;margin:16px 0;gap:8px}.web-editor textarea{resize:vertical}.web-editor input,.web-editor textarea{width:100%;box-sizing:border-box}
.web-editor pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:24rem;overflow:auto}.web-editor details{margin:18px 0}.web-publication{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
@media(max-width:700px){.web-records{grid-template-columns:1fr}.web-workspace-head,.web-editor{padding:18px}.web-actions>button{width:100%}}
:root{--wa-design-max:280px}
.whatsapp-tools{border:1px solid var(--line,#dce4e0);border-radius:14px;padding:18px;margin:18px 0;min-width:0}
.whatsapp-tools>summary{font-weight:700;cursor:pointer;min-height:40px;display:flex;align-items:center}
.whatsapp-design-canvas{width:100%;max-width:var(--wa-design-max);height:auto;border-radius:12px;background:#103f35}
.wa-clock-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.whatsapp-tools details{margin:14px 0}.whatsapp-tools .channel-record{margin:14px 0}.whatsapp-tools input{max-width:100%}
@media(max-width:700px){.wa-clock-fields{grid-template-columns:1fr}.whatsapp-tools{padding:14px}}
