:root {
  --paper: #f3f1ec;
  --paper-2: #ebe8e1;
  --ink: #1d1d1b;
  --ink-2: #3b3934;
  --muted: #756f66;
  --line: #d8d4cb;
  --line-dark: #bcb7ac;
  --white: #fff;
  --orange: #f26322;
  --orange-dark: #c94d14;
  --green: #2f6758;
  --green-light: #deebe5;
  --red: #bd4037;
  --red-light: #f7e4e1;
  --blue: #2453d4;
  --blue-light: #e4eafb;
  --yellow: #b37612;
  --yellow-light: #f7ecd5;
  --shadow: 0 12px 36px rgba(34, 31, 26, .07);
  --radius: 8px;
  --sidebar-width: 248px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 14px/1.48 Inter, "Avenir Next", "Segoe UI", Arial, sans-serif; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), a { cursor: pointer; }
a { color: inherit; }
img, video { max-width: 100%; }
::selection { background: rgba(242, 99, 34, .22); }
[hidden] { display: none !important; }

.app-body { min-height: 100vh; overflow-x: hidden; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; display: flex; width: var(--sidebar-width); flex-direction: column; background: #1d1d1b; color: #fff; border-right: 1px solid rgba(255,255,255,.08); }
.sidebar::before { content: ""; height: 5px; background: var(--orange); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup strong { display: block; font-size: 14px; letter-spacing: .01em; }
.brand-lockup small { display: block; margin-top: 2px; color: rgba(255,255,255,.56); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; flex: 0 0 auto; border-radius: 5px; background: var(--orange); color: #fff; font-weight: 900; font-size: 13px; letter-spacing: -.02em; }
.sidebar-brand { padding: 25px 22px 22px; }
.main-nav { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.nav-item { position: relative; display: flex; width: 100%; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(255,255,255,.66); background: transparent; border: 0; border-radius: 5px; text-align: left; font-weight: 650; font-size: 13px; transition: background .16s, color .16s; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #fff; background: rgba(255,255,255,.1); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; background: var(--orange); }
.nav-item svg, .icon-btn svg, .btn svg { width: 17px; height: 17px; stroke-width: 1.8; }
.sidebar-footer { margin-top: auto; padding: 16px; border-top: 1px solid rgba(255,255,255,.09); }
.user-chip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.user-chip strong, .user-chip small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: rgba(255,255,255,.54); font-size: 10px; margin-top: 2px; }
.avatar { display: grid; width: 33px; height: 33px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--avatar, var(--green)); color: #fff; font-size: 10px; font-weight: 900; }
.logout { display: inline-block; margin: 13px 0 0 43px; color: rgba(255,255,255,.55); font-size: 11px; text-decoration: none; }
.logout:hover { color: #fff; }

.workspace { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar { min-height: 86px; display: flex; align-items: center; gap: 20px; padding: 18px clamp(22px,4vw,52px); background: rgba(243,241,236,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font: 600 25px/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.eyebrow { margin: 0 0 4px; color: var(--orange-dark); font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow.light { color: #ffb38f; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; }
.icon-btn:hover { border-color: var(--line-dark); }
.notification-button { position: relative; }
.notification-dot { position: absolute; top: -5px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border: 2px solid var(--paper); border-radius: 10px; background: var(--orange); color: #fff; font-size: 9px; line-height: 14px; font-weight: 900; }
.mobile-menu { display: none; }
.view { padding: 30px clamp(22px,4vw,52px) 70px; max-width: 1580px; margin: 0 auto; }

.loading-state, .empty-state { min-height: 240px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.spinner { width: 24px; height: 24px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.btn { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 13px; border: 1px solid var(--line-dark); border-radius: 5px; background: #fff; color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 800; transition: transform .12s, background .12s, border-color .12s; }
.btn:hover { border-color: #918b80; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn.primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.danger { color: var(--red); border-color: #e3b4ae; background: #fff8f7; }
.btn.small { min-height: 31px; padding: 5px 9px; font-size: 11px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .48; cursor: not-allowed; }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-intro h2 { font: 600 clamp(25px,3vw,38px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; margin: 0 0 8px; }
.page-intro p { margin: 0; color: var(--muted); max-width: 720px; }
.page-actions { display: flex; gap: 8px; flex: 0 0 auto; }

.kpi-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { min-height: 132px; position: relative; padding: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.kpi::after { content: ""; position: absolute; right: -18px; bottom: -26px; width: 88px; height: 88px; border: 18px solid var(--tone, #edeae3); border-radius: 50%; }
.kpi-label { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.kpi-value { display: block; margin-top: 14px; font: 600 34px/1 Georgia,serif; }
.kpi-foot { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(300px,.65fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 rgba(29,29,27,.02); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.card-header h3 { margin: 0; font-size: 13px; }
.card-header p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.card-body { padding: 18px 19px; }
.card-footer { padding: 13px 19px; border-top: 1px solid var(--line); background: #faf9f6; }
.section-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; font-weight: 900; }
.section-label::before { content: ""; width: 18px; height: 2px; background: var(--orange); }

.list { display: grid; }
.list-item { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #ece9e2; }
.list-item:first-child { padding-top: 0; }
.list-item:last-child { padding-bottom: 0; border-bottom: 0; }
.list-item h4 { margin: 0; font-size: 12px; }
.list-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.list-marker { width: 7px; height: 34px; border-radius: 4px; background: var(--marker,#aaa); }
.list-meta { text-align: right; color: var(--muted); font-size: 10px; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; min-height: 23px; gap: 5px; padding: 3px 8px; border-radius: 20px; background: #ece9e2; color: #4b4842; font-size: 10px; font-weight: 850; white-space: nowrap; }
.badge.orange { background: #fde6da; color: #a33b0b; }
.badge.green { background: var(--green-light); color: #245044; }
.badge.red { background: var(--red-light); color: #913129; }
.badge.blue { background: var(--blue-light); color: #193da1; }
.badge.yellow { background: var(--yellow-light); color: #79500c; }
.badge.outline { background: transparent; border: 1px solid var(--line); }

.progress-track { height: 7px; overflow: hidden; border-radius: 8px; background: #e9e6df; }
.progress-bar { height: 100%; width: var(--progress,0%); background: var(--bar,var(--orange)); border-radius: inherit; }
.goal-card { padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #faf9f6; }
.goal-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.goal-head h4 { margin: 0; font-size: 12px; }
.goal-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.goal-number { font: 600 18px Georgia,serif; }
.goal-quality { margin: 10px 0 0; color: var(--muted); font-size: 10px; }
.goal-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }

.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 16px; padding: 11px; background: #eae7e0; border: 1px solid #d8d4cb; border-radius: 7px; }
.search { min-width: min(100%,260px); flex: 1 1 220px; }
.input, .select, .textarea { width: 100%; border: 1px solid #cbc6bc; border-radius: 5px; background: #fff; color: var(--ink); padding: 9px 10px; font-size: 12px; }
.input, .select { min-height: 38px; }
.textarea { min-height: 95px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 3px solid rgba(242,99,34,.16); border-color: var(--orange); }
.filterbar .select { width: auto; min-width: 150px; }

.table-wrap { width: 100%; overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; min-width: 800px; border-collapse: collapse; }
.data-table th { padding: 11px 13px; background: #f8f7f3; border-bottom: 1px solid var(--line); color: var(--muted); text-align: left; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.data-table td { padding: 13px; border-bottom: 1px solid #ece9e2; vertical-align: middle; font-size: 11px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: #fcfbf8; }
.table-title { display: block; max-width: 320px; font-size: 12px; font-weight: 800; }
.table-subtitle { display: block; color: var(--muted); margin-top: 3px; font-size: 10px; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.brand-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--brand,#777); }
.mini-progress { width: 92px; }

.board { display: grid; grid-template-columns: repeat(4,minmax(230px,1fr)); gap: 12px; overflow-x: auto; align-items: start; padding-bottom: 10px; }
.board-column { min-height: 380px; padding: 11px; border: 1px solid var(--line); border-radius: 7px; background: #eae7e0; }
.board-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 3px 11px; }
.board-head h3 { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.count { display: grid; min-width: 22px; height: 22px; place-items: center; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 9px; font-weight: 800; }
.board-card { margin-bottom: 9px; padding: 13px; border: 1px solid #d4d0c7; border-radius: 6px; background: #fff; box-shadow: 0 4px 12px rgba(35,32,27,.035); }
.board-card:hover { border-color: #aca69b; }
.board-card h4 { margin: 7px 0; font-size: 12px; line-height: 1.35; }
.board-card p { margin: 0; color: var(--muted); font-size: 10px; }
.board-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #edeae4; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 14px; }
.media-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.media-preview { position: relative; aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; background: #dedbd4; }
.media-preview img, .media-preview video { width: 100%; height: 100%; object-fit: cover; }
.media-preview .file-placeholder { display: grid; justify-items: center; gap: 8px; color: var(--muted); }
.media-preview .file-placeholder svg { width: 28px; }
.media-kind { position: absolute; top: 9px; left: 9px; }
.media-body { padding: 13px; }
.media-body h3 { margin: 0 0 4px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-body p { margin: 0; color: var(--muted); font-size: 10px; }
.media-actions { display: flex; gap: 6px; margin-top: 12px; }
.media-actions .btn { flex: 1; }

.team-layout { display: grid; grid-template-columns: minmax(260px,.7fr) minmax(0,1.3fr); gap: 16px; align-items: start; }
.thread-list { display: grid; gap: 7px; }
.thread-button { width: 100%; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; text-align: left; }
.thread-button:hover, .thread-button.active { border-color: var(--orange); box-shadow: inset 3px 0 0 var(--orange); }
.thread-button strong { display: block; font-size: 11px; }
.thread-button small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.conversation { min-height: 520px; display: flex; flex-direction: column; }
.message-list { flex: 1; padding: 18px; display: grid; align-content: start; gap: 13px; max-height: 520px; overflow-y: auto; }
.message { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px; }
.message-bubble { padding: 10px 12px; border-radius: 3px 8px 8px 8px; background: #f0eee9; }
.message-bubble strong { display: block; font-size: 10px; }
.message-bubble p { margin: 3px 0 0; white-space: pre-wrap; font-size: 11px; }
.message-bubble time { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.message-compose { display: flex; gap: 8px; padding: 13px; border-top: 1px solid var(--line); }
.message-compose .input { flex: 1; }

.signal-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.signal-card { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.signal-card h3 { margin: 10px 0 7px; font: 600 17px/1.25 Georgia,serif; }
.signal-card p { color: var(--muted); font-size: 11px; }
.score { display: inline-grid; width: 42px; height: 42px; place-items: center; border-radius: 50%; border: 4px solid var(--green-light); color: var(--green); font-weight: 900; }
.signal-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.next-step { margin-top: 12px; padding-top: 12px; border-top: 1px solid #ece9e2; font-size: 10px; }
.idea-card { position: relative; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.idea-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--orange); border-radius: 7px 0 0 7px; }
.idea-card h3 { margin: 8px 0 10px; font: 600 18px/1.25 Georgia,serif; }
.idea-hook { padding: 11px; background: #f4f2ed; border-left: 2px solid var(--orange); font-size: 11px; }
.idea-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }

.seo-summary { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.seo-summary-card { min-height: 138px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 17px; }
.seo-summary-card > span:first-child { color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.seo-summary-card > strong { margin-top: 15px; font: 600 34px/1 Georgia,serif; }
.seo-summary-card > small { margin-top: 8px; color: var(--muted); font-size: 10px; }
.seo-score { --seo-color: var(--green); width: 70px; height: 70px; display: grid; grid-template-columns: auto auto; align-content: center; justify-content: center; column-gap: 2px; margin-top: 12px; border-radius: 50%; background: radial-gradient(circle closest-side,#fff 74%,transparent 76%),conic-gradient(var(--seo-color) var(--seo-score,0deg),#e5e2dc 0); color: var(--seo-color); }
.seo-score.watch { --seo-color: var(--yellow); }
.seo-score.bad { --seo-color: var(--red); }
.seo-score.empty { --seo-color: var(--muted); background: #efede8; place-items: center; }
.seo-score strong { font: 700 22px/1 Georgia,serif; }
.seo-score small { align-self: end; margin-bottom: 3px; font-size: 8px; }
.seo-score.small { width: 49px; height: 49px; margin: 0; }
.seo-score.small strong { font-size: 16px; }
.seo-score.small small { display: none; }
.seo-delta { color: var(--muted); font-weight: 900; }
.seo-delta.up { color: var(--green); }
.seo-delta.down { color: var(--red); }
.seo-table { min-width: 960px; }
.seo-issues { display: grid; }
.seo-issue { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: start; gap: 13px; padding: 14px 0; border-bottom: 1px solid #ece9e2; }
.seo-issue:first-child { padding-top: 0; }
.seo-issue:last-child { padding-bottom: 0; border-bottom: 0; }
.seo-issue h4 { margin: 0 0 5px; font-size: 12px; }
.seo-issue p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.seo-issue-state { min-width: 48px; padding: 5px 7px; border-radius: 4px; background: var(--yellow-light); color: #79500c; text-align: center; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.seo-issue-state.failed { background: var(--red-light); color: #913129; }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); gap: 11px; }
.platform-card { display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.platform-logo { display: grid; width: 40px; height: 40px; place-items: center; background: #eeeae3; border-radius: 6px; font-size: 12px; font-weight: 900; }
.platform-card h3 { margin: 0; font-size: 11px; }
.platform-card p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 6px; background: #e7e4dd; width: fit-content; margin-bottom: 16px; }
.tab { border: 0; padding: 7px 11px; border-radius: 4px; background: transparent; font-size: 11px; font-weight: 800; color: var(--muted); }
.tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.06); }

.modal-layer { position: fixed; inset: 0; z-index: 100; padding: 20px; overflow-y: auto; background: rgba(19,18,16,.68); backdrop-filter: blur(3px); }
.modal { width: min(680px,100%); margin: 3vh auto; background: #fff; border-radius: 9px; box-shadow: 0 25px 80px rgba(0,0,0,.25); }
.modal.large { width: min(1020px,100%); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-header h2 { margin: 0; font: 600 22px Georgia,serif; }
.modal-body { padding: 20px; }
.modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: #faf9f6; border-radius: 0 0 9px 9px; }
.close-button { border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field > span { color: #5c574f; font-size: 10px; font-weight: 850; }
.field .hint { font-weight: 400; color: var(--muted); }
.checkbox-field { display: flex; gap: 9px; align-items: flex-start; padding: 11px; background: #f5f3ee; border-radius: 5px; }
.checkbox-field input { margin-top: 3px; }
.dropzone { display: grid; min-height: 150px; place-content: center; justify-items: center; padding: 20px; border: 2px dashed #c9c4b9; border-radius: 7px; background: #faf9f6; text-align: center; }
.dropzone.dragging { border-color: var(--orange); background: #fff4ee; }
.dropzone input { max-width: 100%; }
.dropzone strong { margin-top: 10px; }
.dropzone small { margin-top: 4px; color: var(--muted); }

.editor-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.6fr); gap: 18px; }
.canvas-stage { min-height: 480px; display: grid; place-items: center; padding: 18px; background: #242422; border-radius: 7px; overflow: auto; }
.canvas-wrap { position: relative; display: inline-grid; max-width: 100%; box-shadow: 0 12px 30px rgba(0,0,0,.32); }
.canvas-wrap canvas { display: block; max-width: 100%; max-height: 560px; background: #111; }
.safe-zone { position: absolute; inset: 12%; border: 1px dashed rgba(255,255,255,.75); pointer-events: none; }
.safe-zone::before { content: "Veilig kader"; position: absolute; top: 5px; left: 6px; padding: 2px 5px; background: rgba(0,0,0,.48); color: white; font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.editor-tools { display: grid; align-content: start; gap: 14px; }
.tool-group { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.tool-group:last-child { border: 0; }
.tool-group h3 { margin: 0 0 8px; font-size: 11px; }
.tool-group p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.preset-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.preset { padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: #fff; font-size: 9px; font-weight: 800; }
.preset.active { border-color: var(--orange); background: #fff2eb; color: var(--orange-dark); }
.range-row { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 8px; margin-top: 8px; font-size: 9px; }
.range-row input { width: 100%; accent-color: var(--orange); }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 140; display: grid; gap: 8px; width: min(360px,calc(100vw - 36px)); }
.toast { padding: 12px 14px; border: 1px solid #b7d0c4; border-radius: 6px; background: #eef7f2; color: #244a3f; box-shadow: var(--shadow); font-size: 11px; animation: toast-in .18s ease-out; }
.toast.error { border-color: #e4b1aa; background: #fff0ed; color: #832e26; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.notice { margin: 14px 0; padding: 11px 12px; border-radius: 5px; font-size: 11px; }
.notice.success { background: var(--green-light); color: #214a3e; }
.notice.error { background: var(--red-light); color: #852e27; }
.muted { color: var(--muted); }
.text-right { text-align: right; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }

.login-body { min-height: 100vh; background: #e9e6df; }
.login-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(360px,1fr) minmax(420px,.9fr); }
.login-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; padding: clamp(34px,6vw,76px); background: #1d1d1b; color: #fff; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; width: 460px; height: 460px; right: -220px; bottom: -220px; border: 70px solid rgba(242,99,34,.9); border-radius: 50%; }
.login-brand h1 { max-width: 670px; margin: 10px 0 20px; font: 500 clamp(42px,6vw,78px)/.99 Georgia,serif; letter-spacing: -.045em; }
.login-brand p:not(.eyebrow):not(.login-foot) { max-width: 520px; color: rgba(255,255,255,.68); font-size: 16px; }
.login-foot { z-index: 1; color: rgba(255,255,255,.46); font-size: 10px; text-transform: uppercase; letter-spacing: .13em; }
.login-panel { display: grid; place-items: center; padding: 30px; }
.login-card { width: min(390px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: var(--shadow); }
.login-card h2 { margin: 0 0 5px; font: 600 31px Georgia,serif; }
.login-card > .field { margin-top: 15px; }
.login-card .btn { margin-top: 20px; }
.login-help { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 10px; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .signal-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-layout { grid-template-columns: 1fr; }
  .seo-summary { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 800px) {
  :root { --sidebar-width: 260px; }
  .sidebar { transform: translateX(-102%); transition: transform .2s ease; box-shadow: 15px 0 50px rgba(0,0,0,.24); }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { padding: 14px 17px; min-height: 74px; }
  .topbar h1 { font-size: 21px; }
  .view { padding: 22px 16px 55px; }
  .page-intro { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; }
  .team-layout { grid-template-columns: 1fr; }
  .signal-grid, .idea-grid { grid-template-columns: 1fr; }
  .login-layout { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; }
}

@media (max-width: 560px) {
  .kpi-grid, .goal-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal-layer { padding: 8px; }
  .modal { margin: 1vh auto; }
  .modal-body { padding: 16px; }
  .top-actions .btn span:not([data-icon]) { display: none; }
  .filterbar .select { width: 100%; }
  .canvas-stage { min-height: 330px; padding: 8px; }
  .seo-summary { grid-template-columns: 1fr 1fr; }
  .seo-issue { grid-template-columns: auto minmax(0,1fr); }
  .seo-issue .btn { grid-column: 2; justify-self: start; }
}
