/* External Google Fonts removed from the critical path for faster first paint. */

:root {
  color-scheme: dark;
  --bg: #09090d;
  --bg-soft: #0e0d14;
  --surface: #12111a;
  --surface-2: #171521;
  --surface-3: #201c2d;
  --border: rgba(255,255,255,.075);
  --border-strong: rgba(255,255,255,.13);
  --text: #f4f1fb;
  --muted: #9691a8;
  --muted-2: #6f6a80;
  --purple: #9870ff;
  --purple-light: #c0a9ff;
  --purple-soft: rgba(152,112,255,.12);
  --purple-border: rgba(166,128,255,.28);
  --green: #5bd6a0;
  --red: #ff7188;
  --yellow: #f4c66f;
  --radius: 18px;
  --radius-sm: 12px;
  --sidebar-width: 270px;
  --topbar-height: 72px;
  --shadow: 0 24px 70px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(ellipse at 76% 0%, rgba(93,55,157,.13), transparent 32%),
    radial-gradient(ellipse at 8% 70%, rgba(69,44,113,.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font: 14px/1.65 'DM Sans', sans-serif;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--purple-light); outline-offset: 3px;
}
::selection { background: rgba(152,112,255,.35); color: #fff; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #393348; border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: #66528e; }
.hidden { display: none !important; }

.bg-orb { position: fixed; z-index: -2; width: 420px; height: 420px; border-radius: 50%; filter: blur(120px); opacity: .1; pointer-events: none; }
.orb-1 { top: -250px; left: 30%; background: #8b5cff; }
.orb-2 { right: -270px; bottom: -220px; background: #6840bd; }
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none; opacity: .1;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* APP CHROME */
.topbar {
  position: sticky; top: 0; z-index: 100; display: flex; align-items: center;
  justify-content: space-between; height: var(--topbar-height); padding: 0 30px;
  border-bottom: 1px solid var(--border);
  background: rgba(9,9,13,.86); backdrop-filter: blur(24px);
}
.brand { display: flex; align-items: center; gap: 13px; min-width: var(--sidebar-width); }
.brand-mark {
  display: grid; width: 40px; height: 40px; place-items: center;
  border: 1px solid rgba(255,255,255,.28); border-radius: 13px;
  background: linear-gradient(145deg,#b59aff 0%,#8b62ed 48%,#5f3db8 100%);
  box-shadow: 0 8px 30px rgba(133,91,235,.32), inset 0 1px rgba(255,255,255,.35);
  color: white; font: 700 23px 'Manrope',sans-serif;
}
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.brand strong { font: 800 14px 'Manrope',sans-serif; letter-spacing: .25px; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: 1.7px; text-transform: uppercase; }
.topbar-center { display: flex; flex: 1; justify-content: center; }
.workspace-label {
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255,255,255,.025); color: #aaa4ba; font-size: 9px;
  font-weight: 800; letter-spacing: 1.3px;
}
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: var(--sidebar-width); }
.status-pill, .dashboard-status {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  border: 1px solid rgba(91,214,160,.2); border-radius: 30px;
  background: rgba(91,214,160,.055); color: #9be6c4; font-size: 10px; font-weight: 700;
}
.dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(91,214,160,.55); }
.icon-btn {
  display: grid; width: 39px; height: 39px; place-items: center;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  color: var(--muted); cursor: pointer; transition: .22s ease;
}
.icon-btn:hover { border-color: var(--purple-border); color: var(--purple-light); transform: translateY(-1px); }

/* SIDEBAR + WORKSPACE */
.dashboard-layout { display: flex; align-items: stretch; min-height: calc(100vh - var(--topbar-height)); }
.app-sidebar {
  position: sticky; top: var(--topbar-height); display: flex; flex: 0 0 var(--sidebar-width);
  flex-direction: column; width: var(--sidebar-width); height: calc(100vh - var(--topbar-height));
  padding: 20px 14px 14px; overflow-y: auto; border-right: 1px solid var(--border);
  background: rgba(13,12,18,.91); backdrop-filter: blur(18px);
}
.sidebar-top { padding: 0 5px 19px; border-bottom: 1px solid var(--border); }
.sidebar-workspace {
  display: flex; align-items: center; gap: 10px; padding: 11px;
  border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.025);
}
.workspace-avatar { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid var(--purple-border); border-radius: 11px; background: var(--purple-soft); color: var(--purple-light); font: 800 14px 'Manrope',sans-serif; }
.workspace-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; line-height: 1.3; }
.workspace-copy strong { font-size: 11px; font-weight: 800; }
.workspace-copy small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.workspace-indicator { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(91,214,160,.45); }
.sidebar-navigation { flex: 1; padding: 12px 0 20px; }
.sidebar-heading { margin: 19px 10px 8px; color: #716b80; font-size: 9px; font-weight: 800; letter-spacing: 1.55px; }
.nav-item {
  position: relative; display: flex; align-items: center; width: 100%; gap: 12px;
  margin: 3px 0; padding: 10px 11px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: #a6a1b4; text-align: left; cursor: pointer;
  transition: background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
}
.nav-item:hover { background: rgba(255,255,255,.045); color: var(--text); transform: translateX(2px); }
.nav-item.active {
  border-color: rgba(166,128,255,.23);
  background: linear-gradient(100deg,rgba(152,112,255,.17),rgba(152,112,255,.045));
  color: #d2c4ff; box-shadow: inset 0 0 24px rgba(152,112,255,.035);
}
.nav-item.active::before { content: ''; position: absolute; left: -15px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 4px 4px 0; background: var(--purple-light); box-shadow: 0 0 12px rgba(192,169,255,.6); }
.nav-icon { display: grid; width: 20px; height: 20px; flex: 0 0 20px; place-items: center; color: #898397; font: 600 14px 'Space Grotesk',sans-serif; }
.nav-item.active .nav-icon { color: var(--purple-light); }
.nav-label { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; padding: 14px 7px 4px; border-top: 1px solid var(--border); }
.sidebar-bottom-mark { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--purple-border); border-radius: 9px; background: var(--purple-soft); color: var(--purple-light); font: 800 13px 'Manrope',sans-serif; }
.sidebar-bottom div:nth-child(2) { display: flex; flex: 1; flex-direction: column; line-height: 1.35; }
.sidebar-bottom strong { font-size: 10px; letter-spacing: .5px; }
.sidebar-bottom small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.sidebar-version { color: var(--purple-light); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.main-content { width: calc(100% - var(--sidebar-width)); min-width: 0; max-width: 1680px; margin: 0 auto; padding: 42px clamp(24px,4.2vw,68px) 76px; }

/* PAGE SYSTEM */
.page-view { display: none; width: 100%; animation: pageEnter .38s cubic-bezier(.2,.7,.2,1) both; }
.page-view.active { display: block; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.eyebrow,.step { display: inline-block; color: var(--purple-light); font-size: 9px; font-weight: 800; letter-spacing: 1.7px; }
.page-header h1 { margin: 8px 0 5px; font: 800 clamp(30px,3vw,42px)/1.13 'Manrope',sans-serif; letter-spacing: -1.8px; }
.page-header p { margin: 0; color: var(--muted); font-size: 12px; }
.page-header .dashboard-status { flex-shrink: 0; }

/* SURFACES */
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(145deg,rgba(24,22,33,.96),rgba(15,14,21,.98));
  box-shadow: 0 14px 45px rgba(0,0,0,.13); transition: border-color .22s ease,transform .22s ease,box-shadow .22s ease;
}
.card:hover { border-color: rgba(255,255,255,.12); }
.welcome-panel {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  min-height: 310px; padding: 48px clamp(30px,4vw,58px); overflow: hidden;
  border-color: rgba(166,128,255,.25);
  background:
    radial-gradient(ellipse at 77% 48%,rgba(131,86,224,.23),transparent 36%),
    radial-gradient(ellipse at 5% 100%,rgba(107,73,180,.12),transparent 40%),
    linear-gradient(115deg,#1c1928 0%,#171520 52%,#211a31 100%);
  box-shadow: 0 22px 70px rgba(0,0,0,.22), inset 0 1px rgba(255,255,255,.035);
}
.welcome-panel::after { content: 'DCS'; position: absolute; right: 25px; bottom: -68px; color: rgba(255,255,255,.025); font: 800 clamp(130px,17vw,230px)/1 'Manrope',sans-serif; letter-spacing: -18px; pointer-events: none; }
.welcome-content,.welcome-panel > div:first-child { position: relative; z-index: 2; max-width: 600px; }
.welcome-content h2,.welcome-panel h2 { max-width: 580px; margin: 13px 0 12px; font: 800 clamp(30px,3.5vw,46px)/1.13 'Manrope',sans-serif; letter-spacing: -2px; }
.welcome-content p,.welcome-panel p { max-width: 500px; margin: 0 0 25px; color: #b1aabd; font-size: 13px; line-height: 1.9; }
.welcome-decoration { position: absolute; right: 35px; bottom: -48px; color: rgba(255,255,255,.025); font: 800 180px 'Manrope',sans-serif; letter-spacing: -12px; pointer-events: none; }
.welcome-visual { position: relative; display: grid; width: 250px; height: 220px; flex: 0 0 250px; place-items: center; margin-right: 20px; }
.visual-orbit { position: absolute; width: 190px; height: 190px; border: 1px solid rgba(192,169,255,.25); border-radius: 50%; }
.orbit-one { transform: rotateX(65deg) rotate(-25deg); }
.orbit-two { width: 150px; height: 150px; border-color: rgba(192,169,255,.17); transform: rotateX(65deg) rotate(55deg); }
.visual-core { display: grid; width: 86px; height: 86px; place-items: center; border: 1px solid rgba(255,255,255,.34); border-radius: 26px; background: linear-gradient(145deg,#b49aff,#6945c5); box-shadow: 0 0 65px rgba(150,112,255,.42),inset 0 1px rgba(255,255,255,.4); color: #fff; font: 800 48px 'Manrope',sans-serif; transform: rotate(-8deg); }
.visual-spark { position: absolute; color: #d8caff; }
.spark-one { top: 13px; right: 35px; font-size: 22px; }
.spark-two { bottom: 25px; left: 17px; font-size: 27px; }
.spark-three { top: 50px; left: 23px; font-size: 35px; }

/* BUTTONS */
.primary-btn,.secondary-btn,.ghost-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 40px; padding: 10px 16px; border: 1px solid transparent;
  border-radius: 10px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .22s ease;
}
.primary-btn { background: linear-gradient(135deg,#ad91ff,#7953df); box-shadow: 0 8px 24px rgba(126,82,225,.23); color: #fff; }
.primary-btn:hover { border-color: rgba(255,255,255,.22); box-shadow: 0 10px 30px rgba(126,82,225,.36); filter: brightness(1.08); transform: translateY(-2px); }
.primary-btn:disabled,.secondary-btn:disabled,.ghost-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.primary-btn.large { min-height: 47px; padding: 12px 21px; }
.secondary-btn { border-color: var(--purple-border); background: var(--purple-soft); color: var(--purple-light); }
.secondary-btn:hover { background: rgba(152,112,255,.2); }
.ghost-btn { border-color: var(--border-strong); background: rgba(255,255,255,.025); color: #c6c0d3; }
.ghost-btn:hover { border-color: var(--purple-border); background: var(--purple-soft); color: var(--purple-light); }
.full { width: 100%; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; }

/* DASHBOARD */
.dashboard-section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 42px 0 18px; }
.dashboard-section-title h2 { margin: 5px 0 2px; font: 800 21px 'Manrope',sans-serif; letter-spacing: -.6px; }
.dashboard-section-title p { margin: 0; color: var(--muted); font-size: 11px; }
.section-count { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 1px; }
.quick-tools-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.quick-tool {
  display: flex; align-items: center; min-width: 0; gap: 13px; padding: 18px;
  text-align: left; cursor: pointer; transition: .24s ease;
}
.quick-tool:hover { border-color: var(--purple-border); background: linear-gradient(145deg,#211d30,#171520); transform: translateY(-4px); box-shadow: 0 18px 35px rgba(0,0,0,.2); }
.quick-tool-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border: 1px solid rgba(166,128,255,.24); border-radius: 13px; background: var(--purple-soft); color: var(--purple-light); font: 700 17px 'Space Grotesk',sans-serif; }
.quick-tool-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.quick-tool strong,.quick-tool-content strong { overflow: hidden; font-size: 11px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.quick-tool small,.quick-tool-content small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.quick-tool-arrow { color: var(--muted-2); font-size: 17px; transition: .2s ease; }
.quick-tool:hover .quick-tool-arrow { color: var(--purple-light); transform: translate(3px,-3px); }
.dashboard-note { display: flex; align-items: center; gap: 15px; margin-top: 20px; padding: 16px 19px; background: rgba(255,255,255,.018); }
.dashboard-note p { margin: 0; color: var(--muted); font-size: 11px; }

/* TOOL WORKSPACES */
.generator-card { margin-bottom: 20px; padding: 27px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 22px; }
.section-heading > div:first-child { display: flex; align-items: center; gap: 12px; }
.section-heading h2 { margin: 0; font: 700 17px 'Manrope',sans-serif; letter-spacing: -.4px; }
.section-heading .step { display: grid; min-width: 29px; height: 29px; place-items: center; border: 1px solid var(--purple-border); border-radius: 9px; background: var(--purple-soft); font-size: 9px; letter-spacing: .3px; }
.section-heading.compact { margin-bottom: 15px; }
.hint,.muted { color: var(--muted); font-size: 11px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.field label { color: #d5d0e0; font-size: 11px; font-weight: 800; }
.field small { line-height: 1.6; }
.keyword-row { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 22px; }
.grow { flex: 1; }
.options-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
input,select,textarea {
  width: 100%; min-width: 0; border: 1px solid var(--border-strong); border-radius: 10px;
  outline: none; background: #0e0d14; color: var(--text); font-size: 12px;
  transition: border-color .2s ease,box-shadow .2s ease,background .2s ease;
}
input,select { min-height: 44px; padding: 10px 13px; }
textarea { min-height: 110px; padding: 13px; line-height: 1.75; resize: vertical; }
input::placeholder,textarea::placeholder { color: #696477; }
input:hover,select:hover,textarea:hover { border-color: rgba(166,128,255,.3); }
input:focus,select:focus,textarea:focus { border-color: rgba(166,128,255,.65); background: #11101a; box-shadow: 0 0 0 3px rgba(152,112,255,.1); }
select { color-scheme: dark; }
.metric,.snippet-box {
  border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.022);
}
.article-meta-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; margin: 18px 0; }
.metric { display: flex; flex-direction: column; gap: 5px; padding: 14px; }
.metric span,.snippet-box span { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric strong { font: 800 19px 'Manrope',sans-serif; letter-spacing: -.5px; }
.snippet-box { display: grid; gap: 14px; padding: 17px; margin: 18px 0; }
.snippet-box > div { display: flex; flex-direction: column; gap: 5px; }
.snippet-box strong { font-size: 13px; }
.snippet-box p { margin: 0; color: #c2bdcd; font-size: 11px; }
.slug-row { display: flex !important; flex-direction: row !important; align-items: center; gap: 12px !important; }
.slug-row code { flex: 1; color: var(--purple-light); font-size: 11px; overflow-wrap: anywhere; }
.slug-row button { border: 0; background: transparent; color: var(--purple-light); cursor: pointer; }
.workspace-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(250px,.75fr); align-items: start; gap: 17px; }
.editor-card,.score-card,.originality-card { padding: 22px; }
.sticky-heading { position: sticky; top: calc(var(--topbar-height) + 8px); z-index: 5; padding-bottom: 14px; border-bottom: 1px solid var(--border); background: linear-gradient(var(--surface),rgba(18,17,26,.94)); }
.article-preview { color: #d9d4e2; font-size: 13px; line-height: 1.9; overflow-wrap: anywhere; }
.article-preview h1,.article-preview h2,.article-preview h3 { color: var(--text); font-family: 'Manrope',sans-serif; line-height: 1.3; }
.article-preview img { max-width: 100%; height: auto; border-radius: 12px; }
.sidebar-stack { display: grid; gap: 15px; }
.score-list { display: grid; gap: 14px; }
.score-item { display: grid; gap: 7px; }
.score-top { display: flex; justify-content: space-between; gap: 12px; color: #c9c3d4; font-size: 10px; }
.score-top strong { color: var(--purple-light); }
.progress { height: 6px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.08); }
.progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#7652d1,#b79cff); }
.empty-state { color: var(--muted); font-size: 11px; }
.originality-score { display: flex; align-items: center; gap: 13px; margin: 15px 0; }
.originality-score strong { color: var(--purple-light); font: 800 34px 'Manrope',sans-serif; }
.originality-score span { color: var(--muted); font-size: 11px; }
.findings { display: grid; gap: 10px; }
.finding { padding: 13px; border: 1px solid var(--border); border-radius: 11px; background: rgba(255,255,255,.02); overflow-wrap: anywhere; }
.finding strong { font-size: 11px; }
.finding p { margin: 5px 0; }
.finding a { color: var(--purple-light); font-size: 10px; }
.titles-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.title-card { display: flex; flex-direction: column; gap: 12px; padding: 17px; border: 1px solid var(--border); border-radius: 13px; background: rgba(255,255,255,.02); }
.title-card h3 { margin: 0; font: 700 14px 'Manrope',sans-serif; }
.title-card p { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.title-copy { flex: 1; }
.score-badge { color: var(--purple-light); font-size: 11px; }
.loading-panel { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 50px 20px; color: var(--muted); text-align: center; }
.loading-panel strong { color: var(--text); }
.loader,.spinner { width: 22px; height: 22px; border: 2px solid rgba(255,255,255,.15); border-top-color: var(--purple-light); border-radius: 50%; animation: spin .8s linear infinite; }
.spinner { display: none; width: 14px; height: 14px; }
.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.coming-soon-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 40px; }
.coming-soon-card h2 { margin: 0; font: 800 24px 'Manrope',sans-serif; }
.coming-soon-card p { max-width: 520px; margin: 0 0 10px; color: var(--muted); }
.coming-soon-icon { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid var(--purple-border); border-radius: 16px; background: var(--purple-soft); color: var(--purple-light); font-size: 25px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 999; max-width: min(420px,calc(100vw - 40px)); padding: 13px 17px; border: 1px solid var(--border-strong); border-radius: 12px; background: #211e2d; box-shadow: var(--shadow); color: var(--text); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: rgba(255,113,136,.35); color: #ffb0bd; }
.footer { padding: 18px 24px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 10px; text-align: center; }

/* LIGHT THEME */
body.light {
  color-scheme: light; --bg:#f5f3fa; --bg-soft:#fff; --surface:#fff; --surface-2:#f8f6fc;
  --surface-3:#eeeaf7; --border:rgba(35,25,55,.09); --border-strong:rgba(35,25,55,.15);
  --text:#211b2d; --muted:#777184; --muted-2:#9992a6; --purple:#7953d5;
  --purple-light:#7650d3; --purple-soft:rgba(121,83,213,.09); --purple-border:rgba(121,83,213,.25);
  background: radial-gradient(ellipse at 76% 0%,rgba(140,105,220,.1),transparent 35%),var(--bg);
}
body.light .topbar,body.light .app-sidebar { background: rgba(250,249,253,.9); }
body.light .card { background: linear-gradient(145deg,#fff,#faf9fd); }
body.light .welcome-panel { background: radial-gradient(ellipse at 77% 48%,rgba(131,86,224,.14),transparent 36%),linear-gradient(115deg,#f0eafb,#f8f6fc 55%,#eee8fa); }
body.light .welcome-content p,body.light .welcome-panel p { color: #716b80; }
body.light input,body.light select,body.light textarea { background: #fff; color: var(--text); }
body.light .nav-item { color: #6d6879; }
body.light .nav-item.active { color: #6946bd; }
body.light .metric,body.light .snippet-box,body.light .finding,body.light .title-card { background: rgba(35,25,55,.025); }
body.light .sticky-heading { background: linear-gradient(#fff,rgba(255,255,255,.95)); }

/* RESPONSIVE */
@media (max-width: 1100px) {
  :root { --sidebar-width: 238px; }
  .main-content { padding: 34px 25px 60px; }
  .quick-tools-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .welcome-visual { width: 190px; flex-basis: 190px; margin-right: 0; }
  .welcome-panel { padding: 36px; }
}
@media (max-width: 820px) {
  :root { --sidebar-width: 0px; --topbar-height: 66px; }
  .topbar { padding: 0 17px; }
  .brand { min-width: 0; }
  .topbar-center { display: none; }
  .topbar-actions { min-width: 0; }
  .app-sidebar { position: relative; top: auto; width: 100%; height: auto; max-height: 230px; flex: 0 0 auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .dashboard-layout { display: flex; flex-direction: column; }
  .sidebar-navigation { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2px 8px; }
  .sidebar-heading { grid-column: 1/-1; }
  .sidebar-bottom { display: none; }
  .main-content { width: 100%; padding: 30px 20px 55px; }
  .workspace-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .brand-mark { width: 36px; height: 36px; }
  .brand strong { font-size: 12px; }
  .brand small { font-size: 8px; letter-spacing: 1px; }
  .status-pill { padding: 6px 8px; font-size: 9px; }
  .page-header { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
  .page-header h1 { font-size: 30px; }
  .welcome-panel { min-height: 290px; padding: 28px 23px; }
  .welcome-panel h2 { font-size: 31px; }
  .welcome-visual { position: absolute; right: -35px; bottom: -42px; opacity: .35; transform: scale(.8); }
  .quick-tools-grid,.options-grid,.titles-grid { grid-template-columns: 1fr; }
  .quick-tool { padding: 14px; }
  .generator-card,.editor-card,.score-card,.originality-card { padding: 18px; }
  .keyword-row { align-items: stretch; flex-direction: column; }
  .keyword-row .primary-btn { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading .action-row { width: 100%; }
  .section-heading .action-row button { flex: 1; }
  .article-meta-grid { grid-template-columns: 1fr 1fr; }
  .article-meta-grid .metric:last-child:nth-child(3) { grid-column: 1/-1; }
  .dashboard-section-title { margin-top: 30px; }
  .dashboard-note { align-items: flex-start; flex-direction: column; gap: 7px; }
  .coming-soon-card { padding: 25px; }
  .footer { padding: 16px; line-height: 1.6; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* DCS ECOSYSTEM MODULES */
.module-page-header { align-items: center; }
.module-state { display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border:1px solid rgba(244,198,111,.2);border-radius:30px;background:rgba(244,198,111,.055);color:#e8c77f;font-size:9px;font-weight:800;letter-spacing:.6px; }
.module-state i { width:6px;height:6px;border-radius:50%;background:#e8c77f; }
.module-hero { position:relative;display:flex;align-items:center;justify-content:space-between;min-height:215px;padding:34px 42px;overflow:hidden;border-color:rgba(166,128,255,.23);background:radial-gradient(ellipse at 83% 45%,rgba(137,91,226,.2),transparent 33%),linear-gradient(115deg,#1b1826,#13111b 68%,#211a31); }
.module-hero-copy { position:relative;z-index:2;max-width:650px; }
.module-hero h2 { margin:12px 0 9px;font:800 clamp(27px,3vw,39px)/1.15 'Manrope',sans-serif;letter-spacing:-1.4px; }
.module-hero p { max-width:570px;margin:0;color:#aaa4b8;font-size:12px;line-height:1.8; }
.module-hero-art { position:relative;display:grid;width:155px;height:155px;flex:0 0 155px;place-items:center;margin-right:5%; }
.module-hero-art span { z-index:2;display:grid;width:78px;height:78px;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:24px;background:linear-gradient(145deg,#b59aff,#6844c2);box-shadow:0 0 55px rgba(152,112,255,.4);color:white;font:800 42px 'Manrope',sans-serif;transform:rotate(-9deg); }
.module-hero-art i,.module-hero-art b { position:absolute;width:145px;height:75px;border:1px solid rgba(190,164,255,.25);border-radius:50%;transform:rotate(-28deg); }
.module-hero-art b { width:115px;height:115px;border-color:rgba(190,164,255,.13); }
.module-section-head { display:flex;align-items:flex-end;justify-content:space-between;margin:34px 0 16px; }
.module-section-head h2 { margin:5px 0 0;font:800 21px 'Manrope',sans-serif;letter-spacing:-.5px; }
.module-feature-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px; }
.module-feature { position:relative;display:flex;align-items:flex-start;gap:13px;min-height:104px;padding:17px; }
.module-feature-index { display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border:1px solid var(--purple-border);border-radius:9px;background:var(--purple-soft);color:var(--purple-light);font:700 9px 'Space Grotesk',sans-serif; }
.module-feature h3 { margin:2px 0 5px;font:700 12px 'Manrope',sans-serif; }
.module-feature p { margin:0;color:var(--muted);font-size:10px;line-height:1.6; }
.module-feature-mark { position:absolute;right:15px;top:15px;color:var(--muted-2);font-size:13px; }
.module-workbench { margin-top:19px;padding:25px; }
.module-disclaimer { margin:13px 2px 0;color:var(--muted-2);font-size:10px;line-height:1.7; }
.workflow-steps { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:20px; }
.workflow-step { display:flex;align-items:flex-start;gap:12px;padding:15px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.018); }
.workflow-step span { color:var(--purple-light);font:700 11px 'Space Grotesk',sans-serif; }
.workflow-step p { margin:0;color:#c7c1d2;font-size:11px; }
.integration-panel { display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--border);border-radius:13px;background:rgba(255,255,255,.022); }
.integration-panel>div { display:flex;align-items:center;gap:13px; }
.integration-symbol { display:grid;width:39px;height:39px;flex:0 0 39px;place-items:center;border:1px solid var(--purple-border);border-radius:12px;background:var(--purple-soft);color:var(--purple-light);font:800 17px 'Manrope',sans-serif; }
.integration-panel h3 { margin:0 0 4px;font:700 12px 'Manrope',sans-serif; }
.integration-panel p { margin:0;color:var(--muted);font-size:10px;line-height:1.6; }
.integration-status,.integration-note { color:var(--yellow);font-size:9px;font-weight:800;letter-spacing:.7px; }
.tiktok-workbench { display:grid;grid-template-columns:minmax(0,1.2fr) minmax(240px,.8fr);gap:20px; }
.tiktok-brief { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px; }
.tiktok-wide,.tiktok-action { grid-column:1/-1; }
.tiktok-action { display:flex;align-items:center;justify-content:space-between;gap:12px; }
.tiktok-preview { padding:19px;border:1px solid rgba(166,128,255,.2);border-radius:14px;background:linear-gradient(150deg,rgba(152,112,255,.1),rgba(255,255,255,.015)); }
.tiktok-preview h3 { margin:7px 0 18px;font:800 17px 'Manrope',sans-serif; }
.timeline-step { display:flex;gap:13px;padding:12px 0;border-top:1px solid var(--border); }
.timeline-step>b { min-width:58px;color:var(--purple-light);font:700 9px 'Space Grotesk',sans-serif; }
.timeline-step div { display:flex;flex-direction:column;gap:3px; }
.timeline-step strong { font-size:10px;letter-spacing:.7px; }
.timeline-step small { color:var(--muted);font-size:9px; }
body.light .module-hero { background:radial-gradient(ellipse at 83% 45%,rgba(137,91,226,.14),transparent 33%),linear-gradient(115deg,#eee8f9,#faf9fd 68%,#f0eafb); }
body.light .module-hero p { color:#716b80; }
body.light .workflow-step p { color:#5d566c; }
body.light .integration-panel,body.light .workflow-step { background:rgba(35,25,55,.025); }
@media(max-width:1050px) { .module-feature-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .tiktok-workbench { grid-template-columns:1fr; } }
@media(max-width:600px) { .module-hero { min-height:190px;padding:25px 22px; } .module-hero-art { position:absolute;right:-40px;bottom:-45px;opacity:.25; } .module-feature-grid,.workflow-steps,.tiktok-brief { grid-template-columns:1fr; } .integration-panel,.tiktok-action { align-items:flex-start;flex-direction:column; } .module-workbench { padding:18px; } .module-section-head { align-items:flex-start;flex-direction:column;gap:8px; } }

/* Functional TikTok Booster workspace */
.tiktok-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}
.tiktok-form-grid label{display:grid;gap:8px;color:var(--text,#eee);font-size:13px}
.tiktok-form-grid input,.tiktok-form-grid select{width:100%;min-height:44px;padding:11px 13px;border:1px solid var(--border,rgba(255,255,255,.12));border-radius:10px;background:var(--surface,#17171f);color:inherit}
.tiktok-actions{display:flex;gap:12px;margin:14px 0}
.tiktok-generated-result{margin-top:20px}
.tiktok-result-card{padding:22px;border:1px solid rgba(160,120,255,.24);border-radius:16px;background:rgba(120,90,180,.07)}
.tiktok-result-head{display:flex;justify-content:space-between;align-items:center;gap:12px}
.tiktok-result-card h3{font-size:21px;line-height:1.4;margin:16px 0}
.tiktok-result-card h4{margin:20px 0 8px;color:var(--accent,#b99aff)}
.tiktok-result-card li{margin:8px 0}
.tiktok-result-card small{display:block;margin-top:16px;color:var(--muted,#999)}
.tiktok-error{color:#ff9b9b}
@media(max-width:650px){.tiktok-form-grid{grid-template-columns:1fr}.tiktok-result-head{align-items:flex-start;flex-direction:column}}



/* =========================================================
   DCS TOOLS — DASHBOARD REDESIGN
   Presentation layer only; existing app behavior is preserved.
========================================================= */
:root {
  --bg: #08090d;
  --bg-soft: #0d0e14;
  --surface: #11131b;
  --surface-2: #171a24;
  --surface-3: #202432;
  --border: rgba(190,198,220,.09);
  --border-strong: rgba(190,198,220,.16);
  --text: #f2f4fa;
  --muted: #969daf;
  --muted-2: #70798e;
  --purple: #8b9cff;
  --purple-light: #aebaff;
  --purple-soft: rgba(116,139,255,.11);
  --purple-border: rgba(139,156,255,.26);
  --green: #70d6b0;
  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-width: 258px;
  --topbar-height: 70px;
  --shadow: 0 24px 70px rgba(0,0,0,.28);
}
body {
  background:
    radial-gradient(ellipse at 72% -12%,rgba(77,105,190,.13),transparent 35%),
    radial-gradient(ellipse at 0% 70%,rgba(79,70,150,.07),transparent 30%),
    var(--bg);
  font-family:'DM Sans',sans-serif;
}
.bg-orb { opacity:.07; }
.topbar {
  padding:0 30px;
  border-bottom-color:rgba(190,198,220,.08);
  background:rgba(8,9,13,.88);
}
.brand { min-width:var(--sidebar-width); }
.brand-mark {
  border-radius:12px;
  background:linear-gradient(145deg,#aab8ff,#647be0 55%,#394b9c);
  box-shadow:0 7px 24px rgba(91,112,220,.25),inset 0 1px rgba(255,255,255,.38);
}
.brand strong { letter-spacing:.7px; }
.brand small { letter-spacing:1.35px; }
.workspace-label {
  border-color:var(--border);
  border-radius:30px;
  background:rgba(255,255,255,.025);
  color:#8f98ae;
  letter-spacing:1.7px;
}
.status-pill {
  border-color:rgba(112,214,176,.17);
  background:rgba(112,214,176,.045);
  color:#91d9bc;
}
.icon-btn { border-radius:50%; }
.app-sidebar {
  padding:17px 13px 13px;
  background:rgba(11,13,19,.94);
  border-right-color:rgba(190,198,220,.08);
}
.sidebar-top { padding:0 2px 16px; }
.sidebar-workspace {
  border-radius:12px;
  background:linear-gradient(120deg,rgba(255,255,255,.045),rgba(255,255,255,.015));
}
.workspace-avatar {
  border-radius:10px;
  background:linear-gradient(145deg,#aab8ff,#647be0);
  color:#fff;
}
.sidebar-heading {
  margin:20px 10px 8px;
  color:#747e95;
  font-size:9px;
  letter-spacing:1.65px;
}
.nav-item {
  min-height:39px;
  padding:9px 10px;
  gap:11px;
  border-radius:9px;
  color:#9ba3b6;
  font-size:11px;
}
.nav-item:hover {
  background:rgba(255,255,255,.04);
  color:#f4f5fa;
  transform:translateX(2px);
}
.nav-item.active {
  border-color:rgba(139,156,255,.2);
  background:linear-gradient(100deg,rgba(116,139,255,.17),rgba(116,139,255,.045));
  color:#c4ceff;
  box-shadow:none;
}
.nav-item.active::before {
  left:-14px;
  background:#9aaaff;
  box-shadow:0 0 12px rgba(154,170,255,.45);
}
.nav-icon { color:#818ba2; }
.nav-item.active .nav-icon { color:#b3c0ff; }
.sidebar-bottom {
  gap:9px;
  border-top-color:var(--border);
}
.sidebar-bottom-mark {
  border-color:var(--purple-border);
  background:var(--purple-soft);
  color:var(--purple-light);
}
.main-content {
  padding:40px clamp(24px,4vw,64px) 76px;
}
.page-header { margin-bottom:27px; }
.page-header h1 {
  font-size:clamp(29px,2.8vw,39px);
  letter-spacing:-1.5px;
}
.eyebrow,.step { letter-spacing:1.6px; }
.card {
  border-color:var(--border);
  border-radius:var(--radius);
  background:linear-gradient(145deg,rgba(20,23,33,.97),rgba(14,16,23,.98));
  box-shadow:0 12px 38px rgba(0,0,0,.13);
}
.card:hover { border-color:rgba(170,183,220,.17); }
.welcome-panel {
  min-height:320px;
  padding:44px clamp(28px,4vw,54px);
  border-color:rgba(139,156,255,.2);
  border-radius:20px;
  background:
    radial-gradient(ellipse at 78% 48%,rgba(99,121,221,.2),transparent 34%),
    radial-gradient(ellipse at 4% 100%,rgba(81,97,172,.12),transparent 38%),
    linear-gradient(115deg,#171c2a 0%,#121722 55%,#1b2032 100%);
}
.welcome-panel::after { color:rgba(255,255,255,.018); }
.welcome-copy { max-width:610px; }
.welcome-panel h2 {
  max-width:590px;
  margin:14px 0 13px;
  font-size:clamp(31px,3.4vw,45px);
  letter-spacing:-1.9px;
  line-height:1.12;
}
.welcome-panel p {
  max-width:500px;
  margin:0 0 23px;
  color:#aab2c4;
  font-size:12px;
  line-height:1.9;
}
.welcome-actions { display:flex; flex-wrap:wrap; gap:10px; }
.welcome-actions .primary-btn,.welcome-actions .ghost-btn { min-height:43px; }
.welcome-tags {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:25px;
}
.welcome-tags span {
  padding:6px 9px;
  border:1px solid rgba(190,202,255,.13);
  border-radius:30px;
  color:#a5aec5;
  font-size:8px;
  font-weight:800;
  letter-spacing:1.1px;
}
.welcome-visual { opacity:.92; }
.visual-orbit { border-color:rgba(169,184,255,.2); }
.visual-core {
  border-radius:24px;
  background:linear-gradient(145deg,#b8c4ff,#687fe0 58%,#4053a4);
  box-shadow:0 0 65px rgba(104,127,224,.35),inset 0 1px rgba(255,255,255,.42);
}
.primary-btn {
  background:linear-gradient(135deg,#9eafff,#647bdc);
  box-shadow:0 8px 24px rgba(91,112,220,.2);
}
.primary-btn:hover { box-shadow:0 10px 30px rgba(91,112,220,.3); }
.secondary-btn {
  border-color:rgba(139,156,255,.27);
  background:rgba(116,139,255,.1);
  color:#b8c4ff;
}
.dashboard-section-title { margin:38px 0 16px; }
.dashboard-section-title h2 {
  font-size:20px;
  letter-spacing:-.5px;
}
.dashboard-section-title p { font-size:11px; }
.quick-tools-grid { gap:13px; }
.quick-tool {
  min-height:88px;
  padding:16px;
  border-radius:14px;
  background:linear-gradient(145deg,rgba(23,26,37,.97),rgba(16,18,26,.98));
}
.quick-tool:hover {
  border-color:rgba(139,156,255,.25);
  background:linear-gradient(145deg,#20263a,#171c2a);
  box-shadow:0 17px 34px rgba(0,0,0,.2);
}
.quick-tool-icon,.ecosystem-symbol {
  border-color:rgba(139,156,255,.2);
  border-radius:12px;
  background:rgba(116,139,255,.09);
  color:#aebaff;
}
.quick-tool strong { font-size:11px; }
.quick-tool small { font-size:9px; }
.ecosystem-section { margin-top:34px; }
.ecosystem-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.ecosystem-card {
  display:flex;
  align-items:center;
  min-width:0;
  gap:13px;
  padding:16px;
  color:var(--text);
  text-align:left;
  cursor:pointer;
  transition:transform .2s ease,border-color .2s ease,background .2s ease;
}
.ecosystem-card:hover {
  transform:translateY(-2px);
  border-color:var(--purple-border);
  background:linear-gradient(145deg,#20263a,#171c2a);
}
.ecosystem-symbol {
  display:grid;
  width:40px;
  height:40px;
  flex:0 0 40px;
  place-items:center;
  border:1px solid var(--purple-border);
  font-size:17px;
}
.ecosystem-copy {
  display:flex;
  flex:1;
  flex-direction:column;
  min-width:0;
}
.ecosystem-copy strong { font-size:11px; }
.ecosystem-copy small {
  margin-top:4px;
  color:var(--muted);
  font-size:9px;
  line-height:1.5;
}
.ecosystem-arrow { color:var(--muted-2); }
.workflow-strip {
  margin-top:16px;
  padding:23px 25px;
}
.workflow-strip-heading h2 {
  margin:6px 0 19px;
  font:800 18px 'Manrope',sans-serif;
  letter-spacing:-.5px;
}
.workflow-strip-steps {
  display:grid;
  grid-template-columns:1fr auto 1fr auto 1fr auto 1fr;
  align-items:center;
  gap:13px;
}
.workflow-strip-steps>div { display:flex; flex-direction:column; gap:4px; }
.workflow-strip-steps>div span {
  color:var(--purple-light);
  font:700 10px 'Space Grotesk',sans-serif;
}
.workflow-strip-steps strong { font-size:11px; }
.workflow-strip-steps small { color:var(--muted); font-size:9px; }
.workflow-strip-steps>i { color:var(--muted-2); font-style:normal; }
.dashboard-note {
  border-radius:12px;
  background:rgba(255,255,255,.018);
}
.footer { border-top-color:var(--border); }
body.light .topbar,body.light .app-sidebar { background:rgba(250,250,253,.94); }
body.light .welcome-panel {
  background:radial-gradient(ellipse at 78% 48%,rgba(99,121,221,.12),transparent 34%),linear-gradient(115deg,#edf0fc,#f8f9fd 60%,#eef1fc);
}
body.light .welcome-panel p { color:#68728a; }
body.light .welcome-tags span { color:#67718c; border-color:rgba(76,93,155,.17); }
body.light .ecosystem-card { color:var(--text); }
body.light .workflow-strip { background:linear-gradient(145deg,#fff,#f8f9fd); }

@media(max-width:1100px) {
  .welcome-panel { padding:35px; }
  .welcome-visual { width:190px; flex-basis:190px; }
}
@media(max-width:820px) {
  .topbar { padding:0 18px; }
  .brand { min-width:0; }
  .topbar-center { display:none; }
  .topbar-actions { min-width:0; }
  .dashboard-layout { flex-direction:column; }
  .app-sidebar {
    position:relative;
    top:auto;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    align-content:start;
    width:100%;
    height:auto;
    max-height:300px;
    flex:0 0 auto;
    overflow-y:auto;
    border-right:0;
    border-bottom:1px solid var(--border);
    padding:12px 14px;
  }
  .sidebar-top,.sidebar-bottom,.sidebar-heading { grid-column:1/-1; }
  .nav-item { min-width:0; }
  .main-content { width:100%; padding:29px 20px 55px; }
}
@media(max-width:600px) {
  .topbar { height:64px; padding:0 13px; }
  .brand-mark { width:35px; height:35px; }
  .brand strong { font-size:12px; }
  .brand small { font-size:7px; letter-spacing:.8px; }
  .status-pill { padding:6px 8px; font-size:8px; }
  .welcome-panel { min-height:310px; padding:27px 22px; }
  .welcome-panel h2 { max-width:340px; font-size:31px; }
  .welcome-panel p { max-width:340px; font-size:11px; }
  .welcome-visual { right:-42px; bottom:-50px; opacity:.22; }
  .welcome-tags { margin-top:20px; }
  .quick-tools-grid,.ecosystem-grid { grid-template-columns:1fr; }
  .quick-tool { min-height:76px; }
  .workflow-strip { padding:19px; }
  .workflow-strip-steps {
    grid-template-columns:1fr 1fr;
    gap:17px 12px;
  }
  .workflow-strip-steps>i { display:none; }
  .ecosystem-card { padding:14px; }
}


/* DCS PUBLISHER — EDITOR & CONTENT LIBRARY */
.publisher-header { align-items:center; }
.publisher-local-status { display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid rgba(112,214,176,.18);border-radius:30px;background:rgba(112,214,176,.05);color:#8bd9b8;font-size:9px;font-weight:800;letter-spacing:1px; }
.publisher-local-status i { width:6px;height:6px;border-radius:50%;background:#70d6b0;box-shadow:0 0 10px rgba(112,214,176,.6); }
.publisher-overview { display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,1fr);gap:13px; }
.publisher-intro { padding:27px 30px;min-height:190px;background:radial-gradient(ellipse at 90% 20%,rgba(110,130,225,.16),transparent 40%),linear-gradient(130deg,#171c2b,#111722); }
.publisher-intro h2 { margin:12px 0 8px;font:800 clamp(25px,3vw,34px) 'Manrope',sans-serif;letter-spacing:-1.2px; }
.publisher-intro p { max-width:570px;color:#aab2c4;font-size:11px;line-height:1.8; }
.publisher-intro-meta { display:flex;flex-wrap:wrap;gap:8px;margin-top:19px; }
.publisher-intro-meta span { padding:6px 8px;border:1px solid var(--border-strong);border-radius:30px;color:var(--muted);font-size:8px;letter-spacing:.8px; }
.publisher-metrics { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px; }
.publisher-metric { display:flex;flex-direction:column;justify-content:center;gap:8px;padding:15px 12px; }
.publisher-metric span { color:var(--muted);font-size:8px;font-weight:800;letter-spacing:.8px; }
.publisher-metric strong { font:800 29px 'Manrope',sans-serif; }
.publisher-metric small { color:var(--muted-2);font-size:8px;line-height:1.5; }
.publisher-toolbar { display:flex;align-items:end;justify-content:space-between;gap:15px;margin:34px 0 14px; }
.publisher-toolbar h2 { margin:5px 0 0;font:800 20px 'Manrope',sans-serif;letter-spacing:-.5px; }
.publisher-toolbar-actions { display:flex;flex-wrap:wrap;gap:8px; }
.publisher-toolbar-actions button,.publisher-editor-actions button { min-height:37px;padding:9px 12px;font-size:10px; }
.publisher-layout { display:grid;grid-template-columns:minmax(220px,.72fr) minmax(0,1.8fr);gap:13px;align-items:start; }
.publisher-library,.publisher-editor { min-width:0;padding:18px; }
.publisher-library { position:sticky;top:88px; }
.publisher-library-head,.publisher-editor-head,.publisher-preview-head,.publisher-revision-head { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.publisher-library-head { padding:2px 2px 13px;border-bottom:1px solid var(--border);font-size:11px; }
.publisher-library-head span,.publisher-revision-head span { color:var(--muted-2);font-size:8px;letter-spacing:.8px; }
.publisher-draft-list { display:grid;gap:7px;padding-top:10px; }
.publisher-draft-item { display:flex;width:100%;flex-direction:column;gap:6px;padding:12px;border:1px solid transparent;border-radius:10px;background:rgba(255,255,255,.018);color:var(--text);text-align:left;cursor:pointer; }
.publisher-draft-item:hover,.publisher-draft-item.active { border-color:var(--purple-border);background:var(--purple-soft); }
.publisher-draft-item strong { overflow-wrap:anywhere;font-size:10px; }
.publisher-draft-item small { color:var(--muted);font-size:8px; }
.publisher-empty { padding:24px 10px;color:var(--muted);font-size:10px;line-height:1.7;text-align:center; }
.publisher-editor-head { margin-bottom:20px;padding-bottom:15px;border-bottom:1px solid var(--border); }
.publisher-editor-head h2 { margin:5px 0 0;font:800 18px 'Manrope',sans-serif; }
.publisher-save-state { color:var(--muted);font-size:9px; }
.publisher-editor form { display:grid;gap:13px; }
.publisher-field-row { display:grid;grid-template-columns:1fr 180px;gap:12px; }
.publisher-editor .field { min-width:0; }
.publisher-editor input,.publisher-editor select,.publisher-editor textarea { width:100%;min-width:0; }
.publisher-editor textarea { resize:vertical;line-height:1.75; }
.publisher-body-input { min-height:300px;font-family:inherit; }
.publisher-help { display:block;margin-top:6px;color:var(--muted-2);font-size:8px; }
.publisher-editor-actions { display:flex;flex-wrap:wrap;gap:8px;padding-top:5px; }
.publisher-delete-btn { margin-left:auto;color:#e99aa7; }
.publisher-preview,.publisher-revision-panel { margin-top:17px;padding:15px;border:1px solid var(--border);border-radius:12px;background:rgba(255,255,255,.018); }
.publisher-preview-head { margin-bottom:12px; }
.publisher-preview article { max-height:420px;overflow:auto; }
.publisher-preview pre { white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted);font-family:inherit;font-size:11px;line-height:1.8; }
.publisher-revision-panel { display:grid;gap:9px; }
.publisher-revision-row { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid var(--border);font-size:9px; }
.publisher-revision-row small { display:block;margin-top:4px;color:var(--muted); }
.publisher-revision-row button { padding:6px 9px;font-size:9px; }
.publisher-connection { display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:22px;margin-top:16px;padding:21px; }
.publisher-connection h2 { margin:7px 0;font:800 17px 'Manrope',sans-serif; }
.publisher-connection p { max-width:430px;color:var(--muted);font-size:10px;line-height:1.8; }
.publisher-destinations { display:grid;gap:8px; }
.publisher-destinations>div { display:grid;grid-template-columns:1fr auto;gap:4px 10px;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.018); }
.publisher-destinations strong { font-size:10px; }
.publisher-destinations span { color:var(--muted);font-size:8px; }
.publisher-destinations b { grid-column:2;grid-row:1/3;align-self:center;color:#d5b779;font-size:7px;letter-spacing:.6px; }
.publisher-disclaimer { margin:12px 2px;color:var(--muted-2);font-size:9px;line-height:1.7; }
body.light .publisher-intro { background:linear-gradient(130deg,#edf0fc,#f8f9fd); }
body.light .publisher-intro p { color:#68728a; }
body.light .publisher-draft-item { background:rgba(40,30,70,.025); }
body.light .publisher-preview,body.light .publisher-revision-panel { background:#faf9fd; }
@media(max-width:1050px){.publisher-overview{grid-template-columns:1fr}.publisher-metrics{min-height:105px}}
@media(max-width:760px){.publisher-layout,.publisher-connection{grid-template-columns:1fr}.publisher-library{position:static}.publisher-draft-list{grid-template-columns:repeat(2,minmax(0,1fr))}.publisher-toolbar{align-items:flex-start;flex-direction:column}.publisher-field-row{grid-template-columns:1fr}.publisher-toolbar-actions{width:100%}}
@media(max-width:520px){.publisher-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.publisher-metric{padding:12px 9px}.publisher-metric strong{font-size:23px}.publisher-intro{padding:22px}.publisher-library,.publisher-editor{padding:13px}.publisher-draft-list{grid-template-columns:1fr}.publisher-destinations>div{grid-template-columns:1fr}.publisher-destinations b{grid-column:auto;grid-row:auto}}


/* DCS GOOGLE HUB + VPN CENTER */
.dcs-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-bottom:14px}
.dcs-hub-panel{padding:22px;min-width:0}
.dcs-hub-panel h3,.vpn-guide h3{margin:8px 0 7px;font:800 18px 'Manrope',sans-serif;letter-spacing:-.4px}
.dcs-hub-panel>p,.vpn-guide li{color:var(--muted);font-size:10px;line-height:1.8}
.dcs-hub-panel .field{margin-top:13px}
.dcs-hub-panel input,.dcs-hub-panel select,.vpn-center-toolbar input,.vpn-center-toolbar select{width:100%;min-width:0}
.dcs-hub-panel>button{margin-top:12px;min-height:38px;padding:10px 14px;font-size:10px}
.dcs-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.dcs-panel-heading h3{margin-bottom:0}
.dcs-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.dcs-service-grid a{display:flex;flex-direction:column;gap:7px;min-width:0;padding:14px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.018);color:var(--text);text-decoration:none}
.dcs-service-grid a:hover{border-color:var(--purple-border);background:var(--purple-soft)}
.dcs-service-grid b{font-size:11px}
.dcs-service-grid small{min-height:32px;color:var(--muted);font-size:9px;line-height:1.6}
.dcs-service-grid a span{color:var(--purple-light);font-size:9px}
.dcs-integration-note{margin-top:15px;padding:11px 12px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.02);color:var(--muted-2);font-size:9px;line-height:1.7}
.google-property-list{display:grid;gap:8px;margin-top:14px}
.google-property-row{display:grid;gap:8px;padding:11px;border:1px solid var(--border);border-radius:9px;overflow-wrap:anywhere}
.google-property-row>span{font-size:10px;font-weight:700}
.google-property-row>div{display:flex;flex-wrap:wrap;gap:12px}
.google-property-row a,.google-property-row button{border:0;background:none;padding:0;color:var(--purple-light);font-size:9px;text-decoration:none;cursor:pointer}
.google-property-row button{color:#e99aa7}
.vpn-center-toolbar{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:12px;margin-bottom:14px}
.vpn-notice{display:flex;flex-direction:column;gap:5px;margin-bottom:14px;padding:13px 15px;border:1px solid rgba(216,183,121,.2);border-radius:10px;background:rgba(216,183,121,.045)}
.vpn-notice b{font-size:10px;color:#d9bd86}
.vpn-notice span{color:var(--muted);font-size:9px;line-height:1.7}
.vpn-provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.vpn-provider-card{padding:17px;min-width:0}
.vpn-provider-top{display:flex;align-items:center;justify-content:space-between;gap:10px}
.vpn-provider-top b{font-size:12px}
.vpn-provider-top span{padding:5px 7px;border:1px solid var(--border);border-radius:30px;color:var(--muted);font-size:8px}
.vpn-provider-card p{min-height:35px;margin:12px 0;color:var(--muted);font-size:9px;line-height:1.7}
.vpn-provider-card a{color:var(--purple-light);font-size:9px;text-decoration:none}
.vpn-guide{margin-top:14px}
.vpn-guide ol{display:grid;gap:7px;padding-left:19px}
body.light .dcs-service-grid a,body.light .google-property-row,body.light .vpn-provider-card{background:#fff}
@media(max-width:800px){.dcs-hub-grid{grid-template-columns:1fr}.dcs-service-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.vpn-center-toolbar{grid-template-columns:1fr 1fr}.vpn-center-toolbar .field:first-child{grid-column:1/-1}}
@media(max-width:540px){.dcs-service-grid,.vpn-provider-grid,.vpn-center-toolbar{grid-template-columns:1fr}.vpn-center-toolbar .field:first-child{grid-column:auto}.dcs-panel-heading{align-items:flex-start;flex-direction:column}}


/* LOCAL WORKBENCH UTILITIES */
.link-library{display:grid;gap:8px}
.link-library-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px;border:1px solid var(--border);border-radius:10px}
.link-library-row>div:first-child{display:grid;gap:5px;min-width:0;overflow-wrap:anywhere}
.link-library-row b{font-size:10px}
.link-library-row small{color:var(--muted);font-size:9px;line-height:1.5}
.link-library-row>div:last-child{display:flex;flex-wrap:wrap;gap:10px;flex-shrink:0}
.link-library-row a,.link-library-row button{border:0;background:none;padding:0;color:var(--purple-light);font-size:9px;text-decoration:none;cursor:pointer}
.analytics-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-bottom:13px}
.analytics-metrics article{display:grid;gap:8px;padding:18px}
.analytics-metrics small{color:var(--muted);font-size:8px;font-weight:800;letter-spacing:1px}
.analytics-metrics b{font:800 28px 'Manrope',sans-serif}
.analytics-bars{display:grid;gap:12px;margin-top:18px}
.analytics-bar-row{display:grid;grid-template-columns:130px minmax(0,1fr) 30px;align-items:center;gap:10px}
.analytics-bar-row>span{overflow:hidden;color:var(--muted);font-size:9px;text-overflow:ellipsis}
.analytics-bar-row>div{height:8px;overflow:hidden;border-radius:20px;background:rgba(255,255,255,.07)}
.analytics-bar-row i{display:block;height:100%;border-radius:20px;background:linear-gradient(90deg,#687fe0,#aebaff)}
.analytics-bar-row>b{font-size:9px;text-align:right}
.backup-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}
.backup-actions button,.backup-import-label{min-height:39px;padding:11px 14px;font-size:10px;cursor:pointer}
.backup-import-label{display:inline-flex;align-items:center;border:1px solid var(--purple-border);border-radius:9px;background:var(--purple-soft);color:var(--purple-light)}
.content-output{min-height:170px;margin:13px 0;padding:13px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.018);color:var(--muted);font-size:10px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.content-output .muted{white-space:normal}
.landing-preview{min-height:180px;margin:14px 0;padding:24px;border:1px solid var(--border);border-radius:10px;background:linear-gradient(145deg,#171c2b,#111722);color:#f5f6fb}
.landing-preview h2{font:800 24px 'Manrope',sans-serif}
.landing-preview p{color:#aab2c4;font-size:11px;line-height:1.8}
.landing-preview a{display:inline-block;margin-top:8px;padding:10px 14px;border-radius:8px;background:#8295f5;color:#111;text-decoration:none;font-size:10px;font-weight:800}
body.light .landing-preview{background:linear-gradient(145deg,#edf0fc,#f8f9fd);color:#182033}
body.light .landing-preview p{color:#68728a}
@media(max-width:650px){.analytics-metrics{grid-template-columns:1fr 1fr}.link-library-row{align-items:flex-start;flex-direction:column}.analytics-bar-row{grid-template-columns:95px minmax(0,1fr) 25px}}


/* DCS ECOSYSTEM OVERVIEW NAVIGATION */
.dcs-quick-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.dcs-quick-link{display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:7px;padding:17px;color:var(--text);text-align:left;cursor:pointer}
.dcs-quick-link:hover{border-color:var(--purple-border);background:var(--purple-soft);transform:translateY(-1px)}
.dcs-quick-link b{font-size:11px}
.dcs-quick-link small{min-height:30px;color:var(--muted);font-size:9px;line-height:1.6}
.dcs-quick-link span{color:var(--purple-light);font-size:9px}
.account-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.account-plan-grid .dcs-hub-panel{display:flex;flex-direction:column;align-items:flex-start}
.account-state{display:inline-flex;margin-top:auto;padding:6px 8px;border:1px solid var(--border);border-radius:30px;color:var(--muted);font-size:8px}
@media(max-width:650px){.dcs-quick-link-grid,.account-plan-grid{grid-template-columns:1fr}}

/* Collapsible sidebar navigation */
.sidebar-menu-label { margin: 18px 10px 8px; color: #716b80; font-size: 9px; font-weight: 800; letter-spacing: 1.55px; }
.sidebar-group { margin: 3px 0; border: 1px solid transparent; border-radius: 10px; }
.sidebar-group[open] { background: rgba(255,255,255,.018); border-color: rgba(255,255,255,.045); }
.sidebar-group > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 11px; color:#a6a1b4; font-size:10px; font-weight:800; letter-spacing:1.1px; list-style:none; cursor:pointer; user-select:none; border-radius:9px; transition:background .2s ease,color .2s ease; }
.sidebar-group > summary::-webkit-details-marker { display:none; }
.sidebar-group > summary:hover, .sidebar-group[open] > summary { color:var(--text); background:rgba(255,255,255,.045); }
.sidebar-chevron { color:#827b94; font-size:14px; transition:transform .2s ease; }
.sidebar-group[open] .sidebar-chevron { transform:rotate(180deg); }
.sidebar-group-items { padding:2px 5px 7px; }
.sidebar-group .nav-item { margin:2px 0; padding:9px 10px; font-size:11px; }
.sidebar-group .nav-item.active::before { left:-6px; }

/* AI keyword research results */
.keyword-research-results { display:grid; gap:10px; margin:14px 0; }
.keyword-result-row { padding:14px 15px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2, rgba(255,255,255,.025)); }
.keyword-result-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.keyword-result-heading b { color:var(--text); font-size:13px; }
.keyword-result-heading span { color:var(--muted); font-size:10px; letter-spacing:.04em; }
.keyword-result-row p { margin:8px 0 5px; color:var(--muted); font-size:12px; line-height:1.55; }
.keyword-result-row small { color:var(--text-secondary, var(--muted)); font-size:11px; }

.vpn-connection-status { display:inline-flex; align-items:center; min-height:38px; color:var(--muted); font-size:12px; }
.vpn-ip-details { margin-top:14px; padding:14px; border:1px solid var(--border); border-radius:12px; min-height:24px; }
.vpn-ip-country { display:flex; align-items:baseline; flex-wrap:wrap; gap:10px; }
.vpn-ip-country strong { color:var(--text); font-size:20px; }
.vpn-ip-country span,.vpn-ip-details small { color:var(--muted); font-size:11px; }
.vpn-ip-details p { margin:8px 0 0; color:var(--muted); font-size:12px; }
.vpn-provider-card .audit-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.vpn-provider-card .audit-actions a { text-decoration:none; display:inline-flex; align-items:center; justify-content:center; padding:9px 12px; border-radius:8px; font-size:11px; }


/* Bank account validation */
.bank-validator-grid { align-items: start; }
.bank-validator-result-panel { min-height: 100%; }
.bank-result-status {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
}
.bank-result-status strong { letter-spacing: .12em; font-size: 12px; }
.bank-result-status span { color: var(--text); }
.bank-result-status.is-valid { border-color: rgba(91,214,160,.42); }
.bank-result-status.is-valid strong { color: var(--green); }
.bank-result-status.is-invalid { border-color: rgba(255,113,136,.42); }
.bank-result-status.is-invalid strong { color: var(--red); }
.bank-validator-result-panel small { display: block; color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) {
  .bank-validator-grid { grid-template-columns: 1fr; }
}


/* Bank inquiry: provider result details */
.bank-inquiry-details {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
}
.bank-inquiry-details p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  color: var(--muted);
}
.bank-inquiry-details strong {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}
#bankSearch, #bankAccountNumber, #bankSelect {
  width: 100%;
}


/* =========================================================
   DCS WORKSPACE — PROFESSIONAL SAAS REFRESH
   Linear-inspired navigation + Stripe-inspired surfaces.
   Existing component IDs and interaction hooks are preserved.
========================================================= */
body.light {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f8faff;
  --surface-3: #eef2f8;
  --border: #e7ebf2;
  --border-strong: #d9e0eb;
  --text: #182235;
  --muted: #68758a;
  --muted-2: #8b96a8;
  --purple: #405fe8;
  --purple-light: #3658df;
  --purple-soft: #edf2ff;
  --purple-border: #d6e0ff;
  --green: #159b68;
  --red: #d94b62;
  --yellow: #b78328;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 12px 34px rgba(25,42,75,.06);
  background: var(--bg);
  color: var(--text);
}
body.light {
  background:
    radial-gradient(ellipse at 78% -10%, rgba(65,95,220,.055), transparent 34%),
    var(--bg);
  font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}
body.light .bg-orb { opacity: .025; }
body.light .topbar {
  height: 66px;
  padding: 0 28px;
  border-bottom: 1px solid #e8ecf3;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 10px rgba(22,35,60,.025);
  backdrop-filter: blur(18px);
}
body.light .brand { gap: 11px; }
body.light .brand-mark {
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: #3157df; box-shadow: 0 4px 10px rgba(49,87,223,.18);
  font-size: 21px;
}
body.light .brand strong { color: #17233a; font-size: 13px; letter-spacing: .1px; }
body.light .brand small { color: #8792a5; font-size: 9px; letter-spacing: .9px; }
body.light .workspace-label {
  padding: 6px 10px; border: 0; border-radius: 7px;
  background: #f3f5fa; color: #7b879a; font-size: 9px; letter-spacing: .9px;
}
body.light .topbar-actions { gap: 10px; }
body.light .status-pill, body.light .dashboard-status {
  padding: 6px 10px; border-color: #d9f1e6; background: #f0faf5;
  color: #18865e; font-size: 10px;
}
body.light .dot { box-shadow: none; }
body.light .icon-btn {
  width: 36px; height: 36px; border-color: #e6eaf1; border-radius: 9px;
  background: #fff; color: #647189;
}
body.light .icon-btn:hover { border-color: #cbd7fb; color: #3658df; transform: none; }
body.light .dashboard-layout { min-height: calc(100vh - 66px); }
body.light .app-sidebar {
  top: 66px; height: calc(100vh - 66px); flex-basis: 258px; width: 258px;
  padding: 17px 13px 13px; border-right: 1px solid #e8ecf3;
  background: #fff; backdrop-filter: none;
}
body.light .sidebar-top { padding-bottom: 14px; border-color: #edf0f5; }
body.light .sidebar-workspace {
  gap: 9px; padding: 10px; border: 1px solid #edf0f5;
  border-radius: 11px; background: #fafbfe;
}
body.light .workspace-avatar {
  width: 32px; height: 32px; flex-basis: 32px; border: 0;
  border-radius: 9px; background: #edf2ff; color: #3658df;
}
body.light .workspace-copy strong { color: #26334a; font-size: 10px; letter-spacing: .35px; }
body.light .workspace-copy small { color: #8a95a7; font-size: 9px; }
body.light .workspace-indicator { box-shadow: none; }
body.light .sidebar-heading, body.light .sidebar-menu-label {
  margin: 17px 10px 7px; color: #9aa4b4; font-size: 9px;
  letter-spacing: 1.05px;
}
body.light .sidebar-group { margin: 2px 0; border-radius: 9px; }
body.light .sidebar-group[open] { border-color: #eef1f6; background: #fbfcfe; }
body.light .sidebar-group > summary {
  padding: 9px 10px; color: #68758a; font-size: 9px;
  letter-spacing: .85px; border-radius: 8px;
}
body.light .sidebar-group > summary:hover,
body.light .sidebar-group[open] > summary { background: #f4f6fa; color: #26334a; }
body.light .sidebar-chevron { color: #9aa4b4; }
body.light .sidebar-group-items { padding: 2px 4px 6px; }
body.light .nav-item {
  gap: 10px; margin: 2px 0; padding: 8px 9px;
  border: 1px solid transparent; border-radius: 8px;
  color: #68758a; font-size: 11px; font-weight: 500;
}
body.light .nav-item:hover { background: #f6f8fc; color: #24324a; transform: none; }
body.light .nav-item.active {
  border-color: #e0e8ff; background: #eef3ff; color: #3155d5;
  box-shadow: none; font-weight: 700;
}
body.light .nav-item.active::before { left: -5px; top: 7px; bottom: 7px; width: 2px; background: #4164e8; box-shadow: none; }
body.light .nav-icon {
  width: 21px; height: 21px; flex-basis: 21px; border-radius: 6px;
  background: #f2f4f8; color: #7d899c; font-size: 12px;
}
body.light .nav-item.active .nav-icon { background: #dfe8ff; color: #3155d5; }
body.light .sidebar-bottom { border-color: #edf0f5; }
body.light .sidebar-bottom-mark { border: 0; border-radius: 8px; background: #edf2ff; color: #3658df; }
body.light .sidebar-bottom strong { color: #26334a; }
body.light .sidebar-bottom small { color: #8a95a7; }
body.light .sidebar-version { color: #5470dc; }
body.light .main-content {
  width: calc(100% - 258px); max-width: 1600px;
  padding: 34px clamp(24px,3.4vw,54px) 68px;
}
body.light .page-view { animation-duration: .22s; }
body.light .page-header { margin-bottom: 25px; }
body.light .eyebrow, body.light .step {
  color: #5270d9; font-size: 9px; font-weight: 700; letter-spacing: 1.15px;
}
body.light .page-header h1 {
  margin: 7px 0 6px; color: #17233a;
  font: 750 clamp(28px,2.7vw,36px)/1.15 Inter, "DM Sans", sans-serif;
  letter-spacing: -1.15px;
}
body.light .page-header p { color: #748197; font-size: 12px; line-height: 1.65; }
body.light .card {
  border: 1px solid #e7ebf2; border-radius: 13px;
  background: #fff; box-shadow: 0 3px 12px rgba(24,38,67,.025);
  transition: border-color .18s ease, box-shadow .18s ease;
}
body.light .card:hover { border-color: #dce3ef; }
body.light .welcome-panel {
  min-height: 260px; padding: 38px 42px; border-color: #e0e7fa;
  border-radius: 15px; background: linear-gradient(115deg,#f0f4ff 0%,#f9fbff 58%,#edf2ff 100%);
  box-shadow: none;
}
body.light .welcome-panel::after { color: rgba(49,87,223,.035); }
body.light .welcome-content h2, body.light .welcome-panel h2 {
  color: #17233a; font-weight: 750; letter-spacing: -1.5px;
}
body.light .welcome-content p, body.light .welcome-panel p { color: #69778e; }
body.light .visual-core {
  border: 0; border-radius: 22px; background: linear-gradient(145deg,#5b78ec,#3157df);
  box-shadow: 0 14px 36px rgba(49,87,223,.2); transform: none;
}
body.light .visual-orbit { border-color: rgba(65,95,220,.15); }
body.light .visual-spark { color: #7890ed; }
body.light .primary-btn {
  border: 1px solid #3157df; border-radius: 8px; background: #3157df;
  box-shadow: 0 3px 8px rgba(49,87,223,.14); color: #fff;
  font-size: 11px; font-weight: 650;
}
body.light .primary-btn:hover { border-color: #274bc9; background: #274bc9; box-shadow: 0 5px 12px rgba(49,87,223,.18); filter: none; transform: translateY(-1px); }
body.light .secondary-btn {
  border-color: #dce5ff; border-radius: 8px; background: #f1f5ff;
  color: #3658cf; font-weight: 650;
}
body.light .secondary-btn:hover { background: #e8efff; }
body.light .ghost-btn {
  border-color: #e2e7ef; border-radius: 8px; background: #fff;
  color: #59677e; font-weight: 600;
}
body.light .ghost-btn:hover { border-color: #cbd7fb; background: #f7f9ff; color: #3155d5; }
body.light .quick-tool, body.light .dcs-quick-link { background: #fff; }
body.light .quick-tool:hover, body.light .dcs-quick-link:hover {
  border-color: #d4defb; background: #fbfcff; transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(35,57,110,.05);
}
body.light .quick-tool-icon { border: 0; border-radius: 10px; background: #eef3ff; color: #4162d9; }
body.light .quick-tool strong, body.light .quick-tool-content strong,
body.light .dcs-quick-link b { color: #26334a; font-size: 11px; }
body.light .quick-tool small, body.light .quick-tool-content small,
body.light .dcs-quick-link small { color: #8490a3; }
body.light .quick-tool-arrow, body.light .dcs-quick-link span { color: #5270d9; }
body.light .dashboard-section-title h2 { color: #1e2a40; font-size: 19px; letter-spacing: -.45px; }
body.light .dashboard-section-title p { color: #7b879a; }
body.light .section-count { border-color: #e6eaf1; background: #fff; color: #7c889a; }
body.light .dashboard-note { border-color: #e7ebf2; background: #fbfcfe; }
body.light .dashboard-note p { color: #718096; }
body.light .generator-card { padding: 25px; }
body.light .section-heading h2 { color: #26334a; font-size: 16px; }
body.light .section-heading .step { border: 0; border-radius: 8px; background: #eef3ff; color: #4563d4; }
body.light .field label { color: #35435a; font-size: 11px; font-weight: 650; }
body.light input, body.light select, body.light textarea {
  border: 1px solid #dfe5ee; border-radius: 8px;
  background: #fff; color: #26334a; font-size: 12px;
}
body.light input::placeholder, body.light textarea::placeholder { color: #a1aaba; }
body.light input:hover, body.light select:hover, body.light textarea:hover { border-color: #c4d0e6; }
body.light input:focus, body.light select:focus, body.light textarea:focus {
  border-color: #7892ed; background: #fff; box-shadow: 0 0 0 3px rgba(65,95,220,.09);
}
body.light select { color-scheme: light; }
body.light .metric, body.light .snippet-box, body.light .finding,
body.light .title-card, body.light .keyword-result-row {
  border-color: #e8edf4; border-radius: 10px; background: #fafbfd;
}
body.light .metric span, body.light .snippet-box span { color: #78869b; }
body.light .metric strong { color: #25334a; }
body.light .snippet-box p { color: #627087; }
body.light .sticky-heading { border-color: #e8edf4; background: rgba(255,255,255,.96); }
body.light .article-preview { color: #46546a; }
body.light .article-preview h1, body.light .article-preview h2, body.light .article-preview h3 { color: #1d2a40; }
body.light .score-top { color: #526078; }
body.light .score-top strong, body.light .originality-score strong { color: #4162d9; }
body.light .progress { background: #e9edf4; }
body.light .progress i { background: #5270df; }
body.light .empty-state, body.light .hint, body.light .muted { color: #78869b; }
body.light .module-hero {
  border-color: #e0e7fa; border-radius: 14px;
  background: linear-gradient(115deg,#f0f4ff,#fafbff 65%,#edf2ff);
  box-shadow: none;
}
body.light .module-hero h2 { color: #1c2940; }
body.light .module-hero p { color: #6e7b91; }
body.light .module-hero-art { opacity: .65; }
body.light .module-feature-card, body.light .integration-panel,
body.light .workflow-step { border-color: #e8edf4; background: #fff; }
body.light .module-feature-card h3, body.light .module-workbench h2 { color: #27354c; }
body.light .module-feature-card p, body.light .module-disclaimer { color: #78869b; }
body.light .publisher-intro { border-color: #e0e7fa; background: linear-gradient(115deg,#f0f4ff,#fafbff); }
body.light .publisher-intro h2, body.light .publisher-connection h2 { color: #1d2a40; }
body.light .publisher-intro p { color: #6d7a90; }
body.light .publisher-intro-meta span { border-color: #dfe6f5; color: #73819a; }
body.light .publisher-metric strong { color: #24324a; }
body.light .publisher-draft-item { background: #fafbfd; color: #2b3850; }
body.light .publisher-draft-item:hover, body.light .publisher-draft-item.active { border-color: #d7e1ff; background: #f0f4ff; }
body.light .publisher-editor-head h2, body.light .publisher-library-head strong { color: #27354c; }
body.light .publisher-preview, body.light .publisher-revision-panel { border-color: #e8edf4; background: #fafbfd; }
body.light .publisher-destinations > div { border-color: #e8edf4; background: #fafbfd; }
body.light .publisher-destinations strong { color: #34425a; }
body.light .publisher-disclaimer { color: #8490a3; }
body.light .dcs-hub-panel h3, body.light .vpn-guide h3 { color: #27354c; }
body.light .dcs-hub-panel > p, body.light .vpn-guide li { color: #718096; }
body.light .dcs-service-grid a, body.light .google-property-row,
body.light .vpn-provider-card, body.light .link-library-row { border-color: #e8edf4; background: #fff; }
body.light .dcs-service-grid a:hover { border-color: #d6e0ff; background: #f8faff; }
body.light .dcs-service-grid b, body.light .vpn-provider-top b { color: #2d3a51; }
body.light .dcs-service-grid a span, body.light .google-property-row a,
body.light .google-property-row button, body.light .link-library-row a,
body.light .link-library-row button { color: #4162d9; }
body.light .dcs-integration-note { border-color: #e7ebf2; background: #fafbfd; color: #78869b; }
body.light .vpn-notice { border-color: #f1e5c9; background: #fffaf0; }
body.light .vpn-notice b { color: #9b742d; }
body.light .vpn-notice span { color: #7c715d; }
body.light .vpn-provider-top span { border-color: #e8edf4; color: #7c889a; }
body.light .vpn-provider-card p { color: #78869b; }
body.light .vpn-ip-details, body.light .bank-result-status,
body.light .bank-inquiry-details, body.light .content-output { border-color: #e7ebf2; background: #fafbfd; }
body.light .vpn-ip-country strong, body.light .bank-inquiry-details strong { color: #27354c; }
body.light .analytics-bars .analytics-bar-row > div { background: #e9edf4; }
body.light .analytics-bar-row i { background: #5270df; }
body.light .landing-preview { border-color: #e0e7fa; background: linear-gradient(145deg,#f0f4ff,#fafbff); color: #1d2a40; }
body.light .landing-preview p { color: #6e7b91; }
body.light .footer { color: #929daf; }
body.light .toast { box-shadow: 0 8px 25px rgba(20,35,65,.13); }
body.light button:focus-visible, body.light a:focus-visible,
body.light input:focus-visible, body.light select:focus-visible,
body.light textarea:focus-visible { outline-color: #5270df; }
@media (max-width: 1050px) {
  body.light .main-content { padding: 30px 24px 60px; }
}
@media (max-width: 800px) {
  body.light .topbar { padding: 0 17px; }
  body.light .app-sidebar { top: 66px; }
}
@media (max-width: 760px) {
  body.light .main-content { width: 100%; padding: 25px 17px 52px; }
  body.light .app-sidebar { background: #fff; }
}
@media (max-width: 600px) {
  body.light .topbar { height: 60px; }
  body.light .brand-mark { width: 32px; height: 32px; }
  body.light .brand small, body.light .topbar-center { display: none; }
  body.light .topbar-actions { min-width: auto; }
  body.light .app-sidebar { top: 60px; height: calc(100vh - 60px); }
  body.light .page-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  body.light .welcome-panel { min-height: 0; padding: 26px 23px; }
  body.light .welcome-visual { width: 115px; height: 120px; flex-basis: 115px; margin: 0; }
  body.light .visual-core { width: 58px; height: 58px; border-radius: 17px; font-size: 32px; }
  body.light .visual-orbit { width: 105px; height: 105px; }
  body.light .visual-orbit.orbit-two { width: 82px; height: 82px; }
}
@media (prefers-reduced-motion: reduce) {
  body.light *, body.light *::before, body.light *::after {
    scroll-behavior: auto !important; animation-duration: .01ms !important;
    animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}


/* Photopea: full-width creative workspace */
body.light .photopea-shell {
  width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 14px;
  padding: 0; border: 0; border-radius: 0; background: transparent;
}
body.light .photopea-workspace-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 22px; flex-wrap: wrap; padding: 4px 2px 2px;
}
body.light .photopea-workspace-title { min-width: 240px; }
body.light .photopea-kicker {
  display: block; margin-bottom: 8px; color: #7183b7;
  font-size: 9px; font-weight: 750; letter-spacing: 1.25px;
}
body.light .photopea-kicker span { padding: 0 5px; color: #b0b9ca; }
body.light .photopea-workspace-title h2 {
  margin: 0 0 5px; color: #19263c; font-size: 21px;
  font-weight: 750; letter-spacing: -.65px; line-height: 1.25;
}
body.light .photopea-workspace-title p {
  margin: 0; color: #78869b; font-size: 11px; line-height: 1.6;
}
body.light .photopea-actions {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 8px; flex-wrap: wrap;
}
body.light .photopea-live-status {
  display: inline-flex; align-items: center; gap: 7px;
  margin-right: 7px; color: #6e7d92; font-size: 10px; font-weight: 600;
}
body.light .photopea-live-status i {
  width: 7px; height: 7px; border-radius: 50%; background: #20a477;
  box-shadow: 0 0 0 3px rgba(32,164,119,.11);
}
body.light .photopea-actions button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; min-height: 36px; padding: 0 13px; font-size: 10px;
}
body.light .photopea-frame-wrap {
  position: relative; display: block; width: 100%; height: min(76vh, 900px);
  min-height: 640px; overflow: hidden; border: 1px solid #dce2ec;
  border-radius: 12px; background: #17191d;
  box-shadow: 0 8px 28px rgba(20,34,62,.09);
}
body.light .photopea-frame-wrap iframe {
  position: relative; z-index: 1; display: block; width: 100%; height: 100%;
  min-width: 0; min-height: 0; margin: 0; padding: 0;
  border: 0; background: #17191d;
}
body.light .photopea-frame-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #9ba7bb; font-size: 12px; pointer-events: none;
}
body.light .photopea-workspace-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 15px; padding: 11px 14px; border: 1px solid #e7ebf2;
  border-radius: 9px; background: #fff; color: #7b879b;
  font-size: 10px; line-height: 1.55;
}
body.light .photopea-workspace-foot strong { color: #44536b; font-weight: 700; }
body.light .photopea-workspace-foot a {
  flex: 0 0 auto; color: #4564d5; font-weight: 650; text-decoration: none;
}
body.light .photopea-workspace-foot a:hover { text-decoration: underline; }
#photopeaFrameWrap:fullscreen {
  width: 100vw; height: 100vh; min-height: 0; border: 0; border-radius: 0;
}
@media (max-width: 760px) {
  body.light .photopea-workspace-head { align-items: flex-start; flex-direction: column; }
  body.light .photopea-actions { width: 100%; justify-content: flex-start; }
  body.light .photopea-frame-wrap { height: 72vh; min-height: 480px; }
  body.light .photopea-workspace-foot { align-items: flex-start; flex-direction: column; }
}


/* DCS language selector */
.language-control{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 9px;border:1px solid var(--border-strong);border-radius:10px;background:var(--surface);color:var(--muted);font-size:11px}
.language-control>span{font-size:15px}
.language-control select{width:auto;min-width:126px;min-height:32px;padding:5px 24px 5px 4px;border:0;background:transparent;color:var(--text);font-size:11px;cursor:pointer;box-shadow:none}
.language-control select:focus{outline:2px solid var(--purple-light);outline-offset:2px}
@media(max-width:700px){.topbar{padding:0 14px}.topbar-actions{min-width:0;gap:7px}.language-control{padding:0 6px}.language-control select{min-width:104px;font-size:10px}.topbar-center{display:none}}


/* =========================================================
   DCS DESIGN SYSTEM — EDITORIAL WORKSPACE / UI POLISH
   Preserves existing page IDs, controls and application logic.
========================================================= */
:root {
  color-scheme: dark;
  --bg: #0c1110;
  --bg-soft: #101715;
  --surface: #151d19;
  --surface-2: #1a241f;
  --surface-3: #202d26;
  --border: rgba(224,239,224,.085);
  --border-strong: rgba(224,239,224,.16);
  --text: #edf3eb;
  --muted: #9ba99d;
  --muted-2: #718075;
  --purple: #c4e27a;
  --purple-light: #d7ef9a;
  --purple-soft: rgba(196,226,122,.11);
  --purple-border: rgba(196,226,122,.28);
  --green: #a9d779;
  --red: #ff827c;
  --yellow: #edc878;
  --radius: 15px;
  --radius-sm: 10px;
  --sidebar-width: 258px;
  --topbar-height: 68px;
  --shadow: 0 22px 60px rgba(0,0,0,.24);
}
body {
  background:
    radial-gradient(ellipse at 78% -10%, rgba(135,165,98,.09), transparent 34%),
    linear-gradient(180deg,#0c1110 0%,#0d1311 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  letter-spacing: -.01em;
}
body::before {
  content:""; position:fixed; inset:0; z-index:-4; pointer-events:none;
  opacity:.16;
  background-image:linear-gradient(rgba(235,245,232,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(235,245,232,.025) 1px,transparent 1px);
  background-size:64px 64px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}
.bg-orb { display:none; }
.topbar {
  height:var(--topbar-height); padding:0 clamp(18px,2.8vw,42px);
  border-bottom:1px solid var(--border);
  background:rgba(12,17,16,.92); backdrop-filter:blur(20px);
}
.brand { min-width:var(--sidebar-width); gap:11px; }
.brand-mark {
  width:36px;height:36px;border:1px solid rgba(218,239,179,.35);border-radius:10px;
  background:linear-gradient(145deg,#d7e9a0,#7d9b4e);
  box-shadow:0 5px 18px rgba(170,205,105,.15),inset 0 1px rgba(255,255,255,.42);
  color:#172016;font:800 20px Georgia,serif;
}
.brand strong { font:750 13px/1.2 Inter,"Segoe UI",sans-serif;letter-spacing:.11em; }
.brand small { margin-top:4px;font-size:9px;letter-spacing:.08em;color:#8f9c90; }
.workspace-label {
  border:1px solid var(--border);border-radius:5px;background:rgba(255,255,255,.018);
  color:#9ba99d;font-size:9px;letter-spacing:.16em;padding:7px 10px;
}
.topbar-actions { gap:9px; }
.status-pill,.dashboard-status {
  border-color:rgba(169,215,121,.2);border-radius:6px;background:rgba(169,215,121,.07);
  color:#c4e3a0;font-size:10px;padding:7px 10px;
}
.dot { box-shadow:none; }
.icon-btn {
  width:36px;height:36px;border-radius:9px;background:var(--surface);
  border-color:var(--border);color:#c0cbbf;
}
.icon-btn:hover { border-color:var(--purple-border);color:var(--purple-light);transform:none; }
.language-control { min-height:35px;border-radius:8px;background:var(--surface);border-color:var(--border); }
.language-control select { font-size:10px; }
.dashboard-layout { min-height:calc(100vh - var(--topbar-height)); }
.app-sidebar {
  top:var(--topbar-height);height:calc(100vh - var(--topbar-height));
  padding:16px 12px 12px;background:rgba(14,21,18,.94);
  border-right:1px solid var(--border);backdrop-filter:blur(18px);
}
.sidebar-top { padding:0 4px 15px; }
.sidebar-workspace {
  padding:10px;border:1px solid var(--border);border-radius:10px;
  background:rgba(255,255,255,.022);
}
.workspace-avatar {
  width:32px;height:32px;flex-basis:32px;border-radius:8px;
  border-color:var(--purple-border);background:var(--purple-soft);color:var(--purple-light);
}
.workspace-copy strong { font-size:10px;letter-spacing:.1em; }
.workspace-copy small { color:var(--muted-2);font-size:9px; }
.sidebar-heading,.sidebar-menu-label {
  margin:17px 10px 7px;color:#75847a;font-size:9px;font-weight:750;letter-spacing:.16em;
}
.sidebar-group { margin:2px 0;border-radius:8px; }
.sidebar-group[open] { background:rgba(255,255,255,.018);border-color:rgba(224,239,224,.055); }
.sidebar-group>summary {
  padding:9px 10px;border-radius:7px;color:#a3afa4;font-size:9px;letter-spacing:.13em;
}
.sidebar-group>summary:hover,.sidebar-group[open]>summary { background:rgba(255,255,255,.035);color:#e5eee2; }
.sidebar-group-items { padding:2px 4px 6px; }
.nav-item {
  gap:10px;margin:2px 0;padding:8px 9px;border-radius:7px;
  color:#a1ada2;font-size:11px;
}
.nav-item:hover { background:rgba(255,255,255,.04);color:#f0f5ed;transform:none; }
.nav-item.active {
  border-color:rgba(196,226,122,.18);
  background:linear-gradient(100deg,rgba(196,226,122,.13),rgba(196,226,122,.035));
  color:#d9edaa;box-shadow:none;
}
.nav-item.active::before {
  left:-13px;top:7px;bottom:7px;width:2px;background:#c4e27a;box-shadow:none;
}
.nav-icon {
  width:21px;height:21px;flex-basis:21px;border-radius:6px;
  background:rgba(255,255,255,.035);color:#b3c0b2;font-size:12px;
}
.nav-item.active .nav-icon { background:rgba(196,226,122,.12);color:#d7ef9a; }
.sidebar-bottom { margin-top:auto;padding:13px 8px 2px;border-top:1px solid var(--border); }
.sidebar-bottom-mark {
  width:29px;height:29px;border-radius:8px;background:#c4e27a;color:#172016;
}
.sidebar-bottom strong { font-size:10px;letter-spacing:.1em; }
.sidebar-bottom small { color:var(--muted-2);font-size:9px; }
.sidebar-version { color:var(--purple-light); }
.main-content {
  width:calc(100% - var(--sidebar-width));max-width:1580px;
  padding:38px clamp(24px,4vw,64px) 72px;
}
.page-view { animation-duration:.24s; }
.page-header { margin-bottom:25px;align-items:center; }
.eyebrow,.step { color:var(--purple-light);font-size:9px;letter-spacing:.17em;font-weight:800; }
.page-header h1 {
  margin:7px 0 6px;font-family:Inter,"Segoe UI",sans-serif;
  font-size:clamp(29px,3vw,39px);font-weight:730;letter-spacing:-.055em;
}
.page-header p { color:var(--muted);font-size:12px;line-height:1.7; }
.card {
  border:1px solid var(--border);border-radius:var(--radius);
  background:linear-gradient(145deg,rgba(24,34,28,.96),rgba(18,26,22,.98));
  box-shadow:0 10px 30px rgba(0,0,0,.12);
  transition:border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.card:hover { border-color:rgba(216,238,198,.16); }
.welcome-panel {
  min-height:285px;padding:clamp(28px,4vw,48px);
  border-color:rgba(196,226,122,.2);
  background:
    linear-gradient(105deg,rgba(17,27,22,.98) 0%,rgba(21,34,26,.96) 62%,rgba(37,53,34,.96) 100%);
  box-shadow:0 18px 50px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.035);
}
.welcome-panel::before {
  content:"";position:absolute;top:0;right:0;width:43%;height:100%;pointer-events:none;
  opacity:.22;background:linear-gradient(135deg,transparent 35%,rgba(196,226,122,.11) 35.2%,transparent 35.6%,transparent 52%,rgba(196,226,122,.09) 52.2%,transparent 52.6%);
}
.welcome-panel::after {
  right:18px;bottom:-58px;color:rgba(225,241,208,.035);
  font-size:clamp(150px,18vw,245px);letter-spacing:-.1em;
}
.welcome-panel h2 {
  max-width:610px;margin:13px 0 12px;
  font-family:Inter,"Segoe UI",sans-serif;font-size:clamp(32px,3.6vw,48px);
  line-height:1.04;letter-spacing:-.065em;font-weight:650;
}
.welcome-panel p { max-width:520px;color:#aab8aa;font-size:12px;line-height:1.85; }
.welcome-tags { gap:7px;margin-top:21px; }
.welcome-tags span {
  padding:6px 8px;border:1px solid rgba(208,232,175,.15);border-radius:5px;
  color:#b4c3ad;font-size:8px;letter-spacing:.13em;
}
.welcome-visual { opacity:.75;filter:saturate(.55); }
.visual-orbit { border-color:rgba(204,231,155,.22); }
.visual-core {
  border:1px solid rgba(230,245,208,.42);border-radius:18px;
  background:linear-gradient(145deg,#d5e89b,#78974a 70%,#4e6936);
  box-shadow:0 0 52px rgba(160,197,101,.18),inset 0 1px rgba(255,255,255,.45);
  color:#182116;
}
.visual-spark { color:#d9eca8; }
.primary-btn {
  min-height:42px;padding:0 17px;border:1px solid #c4e27a;border-radius:7px;
  background:#c4e27a;color:#172016;font-size:11px;font-weight:800;
  box-shadow:0 6px 18px rgba(165,199,103,.13);
}
.primary-btn:hover { background:#d4ed94;transform:translateY(-1px); }
.ghost-btn {
  min-height:42px;padding:0 15px;border:1px solid rgba(223,239,217,.2);
  border-radius:7px;background:rgba(255,255,255,.025);color:#e0e9dc;font-size:11px;
}
.ghost-btn:hover { border-color:rgba(196,226,122,.4);background:rgba(196,226,122,.06); }
.dashboard-section-title { margin:31px 0 15px; }
.dashboard-section-title h2 {
  margin:0 0 4px;font-size:18px;font-weight:680;letter-spacing:-.035em;
}
.dashboard-section-title p { margin:0;color:var(--muted);font-size:11px; }
.quick-tools-grid { gap:11px; }
.quick-tool {
  min-height:84px;padding:15px;border-radius:11px;background:var(--surface);
  gap:12px;transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.quick-tool:hover {
  transform:translateY(-2px);border-color:rgba(196,226,122,.3);
  background:linear-gradient(145deg,#1d2a21,#17211b);box-shadow:0 10px 25px rgba(0,0,0,.15);
}
.quick-tool-icon {
  width:38px;height:38px;flex-basis:38px;border:1px solid rgba(196,226,122,.18);
  border-radius:9px;background:rgba(196,226,122,.08);color:#d3eb96;font-size:15px;
}
.quick-tool strong,.quick-tool-content strong { font-size:11px;font-weight:720;letter-spacing:-.01em; }
.quick-tool small,.quick-tool-content small { margin-top:3px;color:#91a093;font-size:10px; }
.ecosystem-section { margin-top:27px; }
.ecosystem-grid { gap:10px; }
.ecosystem-card {
  min-height:76px;padding:14px;border-radius:10px;background:var(--surface);
}
.ecosystem-card:hover { transform:translateY(-2px);border-color:var(--purple-border); }
.ecosystem-symbol {
  width:35px;height:35px;border-radius:8px;background:rgba(196,226,122,.08);
  color:#d3eb96;border:1px solid rgba(196,226,122,.16);
}
.ecosystem-copy strong { font-size:11px;font-weight:720; }
.ecosystem-copy small { color:#91a093;font-size:9px; }
.ecosystem-arrow { color:#c4e27a; }
.workflow-strip { margin-top:22px;padding:22px;border-radius:12px; }
.workflow-strip-heading h2 { font-size:17px;letter-spacing:-.04em; }
.workflow-strip-steps > div { border-color:var(--border); }
.workflow-strip-steps > div > span { color:var(--purple-light); }
.dashboard-note {
  margin-top:17px;padding:14px 17px;border-radius:9px;background:rgba(255,255,255,.018);
}
.dashboard-note p { color:#9aa89c;font-size:10px;line-height:1.7; }
.section-count { border-color:var(--border);color:#a4b0a4; }
input,select,textarea {
  border:1px solid rgba(220,237,217,.14)!important;border-radius:8px!important;
  background:#101814!important;color:#e9f1e7!important;box-shadow:none!important;
}
input::placeholder,textarea::placeholder { color:#718075!important; }
input:focus,select:focus,textarea:focus {
  border-color:rgba(196,226,122,.55)!important;
  outline:3px solid rgba(196,226,122,.1)!important;
}
button { -webkit-tap-highlight-color:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid var(--purple-light);outline-offset:3px;
}
@media (hover:hover) {
  .nav-item:hover,.sidebar-group>summary:hover { transition:background .16s ease,color .16s ease; }
}
@media (max-width:1100px) {
  :root { --sidebar-width:238px; }
  .main-content { padding:32px 25px 60px; }
  .welcome-panel { padding:34px; }
}
@media (max-width:820px) {
  :root { --sidebar-width:0px;--topbar-height:64px; }
  .topbar { padding:0 15px; }
  .brand { min-width:0; }
  .app-sidebar {
    position:relative;top:auto;width:100%;height:auto;max-height:220px;flex:0 0 auto;
    border-right:0;border-bottom:1px solid var(--border);padding:11px 12px;
  }
  .sidebar-top { display:none; }
  .sidebar-bottom { display:none; }
  .sidebar-heading,.sidebar-menu-label { margin-top:8px; }
  .sidebar-navigation { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .main-content { width:100%;padding:26px 18px 50px; }
  .welcome-panel { min-height:260px; }
}
@media (max-width:600px) {
  .topbar { height:60px;padding:0 12px; }
  .brand-mark { width:32px;height:32px; }
  .brand strong { font-size:11px; }
  .brand small,.topbar-center { display:none; }
  .topbar-actions { min-width:0;gap:5px; }
  .language-control { min-height:32px;padding:0 5px; }
  .language-control>span { display:none; }
  .language-control select { min-width:94px;font-size:9px; }
  .status-pill { padding:6px 7px;font-size:8px; }
  .icon-btn { width:32px;height:32px; }
  .main-content { padding:23px 13px 42px; }
  .page-header { margin-bottom:19px; }
  .page-header h1 { font-size:28px; }
  .welcome-panel { min-height:0;padding:25px 20px; }
  .welcome-panel h2 { max-width:440px;font-size:31px; }
  .welcome-panel p { max-width:380px;font-size:11px; }
  .welcome-visual { position:absolute;right:-48px;bottom:-48px;width:145px;height:145px;opacity:.2; }
  .welcome-actions { position:relative;z-index:3; }
  .welcome-actions button { min-height:40px;font-size:10px; }
  .quick-tools-grid,.options-grid,.titles-grid { grid-template-columns:1fr; }
  .quick-tool { min-height:72px;padding:12px; }
  .dashboard-section-title { margin:25px 0 12px; }
  .dashboard-section-title h2 { font-size:16px; }
  .workflow-strip { padding:17px; }
  .workflow-strip-steps { gap:9px; }
  .workflow-strip-steps>i { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important; }
}

/* LIGHT THEME — warm mineral paper */
body.light {
  color-scheme:light;
  --bg:#f2f4ef;--bg-soft:#f7f8f4;--surface:#ffffff;--surface-2:#f7f9f4;--surface-3:#edf1e8;
  --border:rgba(33,51,37,.10);--border-strong:rgba(33,51,37,.17);
  --text:#1b261d;--muted:#68766a;--muted-2:#849087;
  --purple:#6b873f;--purple-light:#607c36;--purple-soft:rgba(107,135,63,.09);
  --purple-border:rgba(107,135,63,.24);--green:#4d8a5b;
  background:linear-gradient(180deg,#f2f4ef 0%,#f7f8f5 100%);color:var(--text);
}
body.light::before {
  opacity:.36;background-image:linear-gradient(rgba(45,65,43,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(45,65,43,.035) 1px,transparent 1px);
}
body.light .topbar { background:rgba(249,250,247,.92);border-color:var(--border); }
body.light .brand-mark { background:linear-gradient(145deg,#dce9b7,#819b55);color:#1b281a;border-color:rgba(84,112,53,.25);box-shadow:none; }
body.light .brand strong { color:#1d2a20; }
body.light .brand small { color:#7a887b; }
body.light .workspace-label { background:#fff;color:#718071;border-color:var(--border); }
body.light .status-pill,body.light .dashboard-status { background:#edf5e7;border-color:#d8e7c8;color:#52783c; }
body.light .dot { background:#63965a; }
body.light .icon-btn,body.light .language-control { background:#fff;border-color:var(--border);color:#526052; }
body.light .language-control select { color:#344337; }
body.light .app-sidebar { background:rgba(248,250,246,.96);border-color:var(--border); }
body.light .sidebar-workspace { background:#fff;border-color:var(--border); }
body.light .workspace-avatar { background:#edf4e4;color:#607b3c;border-color:#dce8cb; }
body.light .workspace-copy strong { color:#334235; }
body.light .workspace-copy small { color:#89958a; }
body.light .sidebar-heading,body.light .sidebar-menu-label { color:#8b978b; }
body.light .sidebar-group>summary { color:#68766a; }
body.light .sidebar-group>summary:hover,body.light .sidebar-group[open]>summary { color:#2e3c30;background:rgba(50,75,45,.045); }
body.light .nav-item { color:#637164; }
body.light .nav-item:hover { color:#27372a;background:rgba(54,84,48,.05); }
body.light .nav-item.active { color:#47652e;background:linear-gradient(100deg,rgba(119,151,72,.13),rgba(119,151,72,.035));border-color:rgba(107,135,63,.18); }
body.light .nav-item.active::before { background:#7e9d4b; }
body.light .nav-icon { background:#f0f3ed;color:#687b61; }
body.light .nav-item.active .nav-icon { background:#e8f0dd;color:#5d7b39; }
body.light .sidebar-bottom { border-color:var(--border); }
body.light .sidebar-bottom-mark { background:#dce9b7;color:#334528; }
body.light .sidebar-bottom strong { color:#334235; }
body.light .main-content { color:var(--text); }
body.light .page-header h1,body.light .dashboard-section-title h2 { color:#1b2a1e; }
body.light .page-header p,body.light .dashboard-section-title p { color:#728074; }
body.light .eyebrow,body.light .step { color:#718e45; }
body.light .card {
  background:#fff;border-color:rgba(42,60,43,.1);
  box-shadow:0 8px 24px rgba(34,53,35,.045);
}
body.light .card:hover { border-color:rgba(107,135,63,.23); }
body.light .welcome-panel {
  border-color:#d9e4cb;
  background:linear-gradient(112deg,#f9fbf6 0%,#eef4e7 67%,#e6eedb 100%);
  box-shadow:0 14px 34px rgba(46,69,39,.07);
}
body.light .welcome-panel::before { opacity:.48; }
body.light .welcome-panel::after { color:rgba(70,96,52,.045); }
body.light .welcome-panel h2 { color:#243523; }
body.light .welcome-panel p { color:#6c7a6b; }
body.light .welcome-tags span { border-color:#dce7d1;color:#71836a; }
body.light .visual-orbit { border-color:rgba(99,127,64,.2); }
body.light .visual-core { background:linear-gradient(145deg,#dce9b7,#8ca45f);color:#273521;border-color:#c4d4a8;box-shadow:0 0 35px rgba(130,158,81,.14); }
body.light .visual-spark { color:#7d9854; }
body.light .primary-btn { background:#718e45;border-color:#718e45;color:#fff;box-shadow:0 5px 14px rgba(87,119,55,.12); }
body.light .primary-btn:hover { background:#5e7839; }
body.light .ghost-btn { background:#fff;border-color:#d9e3d3;color:#4b5d4b; }
body.light .ghost-btn:hover { background:#f5f8f1;border-color:#b9cba6; }
body.light .quick-tool,body.light .ecosystem-card { background:#fff; }
body.light .quick-tool:hover { background:#f7faf3;border-color:#c9d9b8; }
body.light .quick-tool-icon,body.light .ecosystem-symbol { background:#f0f5e9;border-color:#e0e9d5;color:#6c8745; }
body.light .quick-tool strong,body.light .ecosystem-copy strong { color:#2a392c; }
body.light .quick-tool small,body.light .ecosystem-copy small { color:#778478; }
body.light .ecosystem-arrow { color:#718e45; }
body.light .workflow-strip { background:#fbfcf9; }
body.light .workflow-strip-heading h2 { color:#2b3a2d; }
body.light .workflow-strip-steps>div { border-color:#e3e9df; }
body.light .workflow-strip-steps>div>span { color:#718e45; }
body.light .dashboard-note { background:#f9faf7;border-color:#e4e9e1; }
body.light .dashboard-note p { color:#758276; }
body.light .section-count { border-color:#e1e8de;color:#778578; }
body.light input,body.light select,body.light textarea {
  background:#fff!important;color:#253327!important;border-color:#dfe6dc!important;
}
body.light input::placeholder,body.light textarea::placeholder { color:#9aa59a!important; }
body.light input:focus,body.light select:focus,body.light textarea:focus { border-color:#9bb77b!important;outline-color:rgba(113,142,69,.12)!important; }
body.light .sidebar-bottom small { color:#879388; }
body.light .sidebar-version { color:#718e45; }


/* DCS OFFICE WORKSPACE */
.office-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.office-launch-card{min-height:176px;padding:18px;text-align:left;display:flex;flex-direction:column;align-items:flex-start;gap:9px;cursor:pointer}
.office-launch-card:hover{transform:translateY(-3px);border-color:var(--purple-border);box-shadow:0 14px 30px rgba(0,0,0,.16)}
.office-tool-mark{display:grid;place-items:center;width:38px;height:34px;border:1px solid var(--purple-border);border-radius:8px;background:var(--purple-soft);color:var(--purple-light);font-size:9px;font-weight:800;letter-spacing:.08em}
.office-launch-card b{font-size:13px;color:var(--text)}
.office-launch-card small{font-size:10px;line-height:1.6;color:var(--muted);font-weight:400}
.office-launch-link{margin-top:auto;padding-top:7px;color:var(--purple-light);font-size:10px;font-weight:700}
.office-work-panel{padding:clamp(18px,3vw,28px);min-height:220px}
.office-work-panel h3{font-size:20px;letter-spacing:-.035em;margin:9px 0}
.office-work-panel .field{margin:13px 0}
.office-work-panel .field label{display:block;margin-bottom:7px;color:var(--muted);font-size:11px;font-weight:650}
.office-work-panel input,.office-work-panel select,.office-work-panel textarea{width:100%;padding:11px 12px;font:inherit}
.office-actions{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0}
.office-result{margin:14px 0;padding:13px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.025);color:var(--muted);font-size:11px;line-height:1.7;white-space:pre-wrap}
.office-table-wrap{overflow:auto;max-width:100%;margin:14px 0}
.office-preview-table{border-collapse:collapse;width:100%;font-size:10px}
.office-preview-table th,.office-preview-table td{padding:8px 10px;border:1px solid var(--border);text-align:left;max-width:220px;overflow-wrap:anywhere}
.office-preview-table th{color:var(--purple-light);background:var(--purple-soft)}
.office-table-wrap>small{display:block;margin-top:7px;color:var(--muted-2);font-size:9px}
.office-task-form,.office-invoice-grid,.office-image-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:end}
.office-task-list{display:grid;gap:8px;margin-top:18px}
.office-task-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:12px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.02)}
.office-task-row label{display:flex;align-items:center;gap:9px;min-width:0;color:var(--text);font-size:11px}
.office-task-row label input{width:auto}
.office-task-row small{font-size:9px;color:var(--muted)}
.office-task-row button{border:0;background:transparent;color:var(--red);font-size:10px;cursor:pointer}
.office-task-row .is-done{text-decoration:line-through;color:var(--muted-2)}
.office-image-preview{margin:15px 0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.office-image-preview img{display:block;max-width:100%;max-height:340px;object-fit:contain;border:1px solid var(--border);border-radius:9px}
.office-image-preview small{color:var(--muted);font-size:10px}
@media(max-width:900px){.office-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.office-launch-grid{grid-template-columns:1fr}.office-launch-card{min-height:140px}.office-task-form,.office-invoice-grid,.office-image-controls{grid-template-columns:1fr}.office-task-row{grid-template-columns:1fr auto}.office-task-row small{grid-column:1}.office-task-row button{grid-column:2;grid-row:1}}
body.light .office-launch-card b{color:#263629}
body.light .office-tool-mark{background:#f0f5e9;color:#617d3c}
body.light .office-result{background:#f8faf6}
body.light .office-preview-table th{background:#f0f5e9;color:#617d3c}
body.light .office-task-row{background:#fff}


/* DASHBOARD UX REFRESH */
.dashboard-greeting{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:22px}
.dashboard-greeting h1{margin:7px 0 5px;font:800 clamp(28px,3vw,39px)/1.15 'Manrope',sans-serif;letter-spacing:-1.5px}
.dashboard-greeting p{margin:0;color:var(--muted);font-size:12px}
.dashboard-command{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:18px 28px;align-items:center;padding:26px 28px;border-color:rgba(166,128,255,.22);background:radial-gradient(ellipse at 85% 0%,rgba(130,90,220,.15),transparent 42%),linear-gradient(145deg,#1b1826,#12111a)}
.command-copy h2{margin:7px 0 5px;font:800 clamp(20px,2vw,27px)/1.2 'Manrope',sans-serif;letter-spacing:-.8px}
.command-copy p{margin:0;color:var(--muted);font-size:11px}
.dashboard-search{display:flex;align-items:center;gap:11px;min-height:54px;padding:0 15px;border:1px solid var(--border-strong);border-radius:12px;background:rgba(5,5,9,.45);color:var(--purple-light)}
.dashboard-search>span{font-size:24px}.dashboard-search input{flex:1;min-width:0;min-height:48px;padding:8px 0;border:0;background:transparent;box-shadow:none;color:var(--text);outline:0}.dashboard-search input:focus{border:0;background:transparent;box-shadow:none}.dashboard-search kbd,.sidebar-tool-search kbd{padding:3px 6px;border:1px solid var(--border-strong);border-radius:5px;color:var(--muted-2);font-size:9px}
.command-shortcuts{grid-column:2;display:flex;flex-wrap:wrap;gap:8px}.command-shortcuts button{padding:7px 10px;border:1px solid var(--border);border-radius:8px;background:rgba(255,255,255,.025);color:#c7c0d4;font-size:10px;cursor:pointer}.command-shortcuts button:hover{border-color:var(--purple-border);color:var(--purple-light)}
.dashboard-section-heading{margin-top:32px}
.workspace-launch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.workspace-launch-card{display:flex;min-height:190px;flex-direction:column;align-items:flex-start;padding:19px;text-align:left;cursor:pointer}
.workspace-launch-card:hover{transform:translateY(-3px);border-color:var(--purple-border);box-shadow:0 15px 34px rgba(0,0,0,.2)}
.launch-icon{display:grid;width:38px;height:38px;place-items:center;border:1px solid var(--purple-border);border-radius:11px;background:var(--purple-soft);color:var(--purple-light);font-size:17px}
.launch-meta{margin-top:14px;color:var(--purple-light);font-size:8px;font-weight:800;letter-spacing:1.25px}
.workspace-launch-card strong{margin-top:4px;font:800 15px 'Manrope',sans-serif}
.workspace-launch-card small{margin-top:5px;color:var(--muted);font-size:10px;line-height:1.6}
.launch-link{margin-top:auto;padding-top:13px;color:var(--purple-light);font-size:10px;font-weight:700}
.dashboard-lower-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:16px}
.dashboard-panel{padding:20px}
.panel-heading{display:flex;justify-content:space-between;gap:12px}
.panel-heading h2{margin:5px 0 2px;font:800 17px 'Manrope',sans-serif}
.panel-heading p{margin:0;color:var(--muted);font-size:10px}
.panel-mark{color:rgba(192,169,255,.35);font:800 22px 'Manrope',sans-serif}
.popular-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:17px}
.popular-tools button{display:flex;align-items:center;gap:9px;min-width:0;padding:10px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.018);text-align:left;cursor:pointer}
.popular-tools button:hover{border-color:var(--purple-border);background:var(--purple-soft)}
.popular-tools button>span:first-child{display:grid;width:30px;height:30px;flex:0 0 30px;place-items:center;border-radius:8px;background:var(--purple-soft);color:var(--purple-light)}
.popular-tools button>span:nth-child(2){display:flex;min-width:0;flex-direction:column}
.popular-tools strong{font-size:10px}.popular-tools small{color:var(--muted);font-size:9px}.popular-tools b{margin-left:auto;color:var(--muted-2)}
.workflow-list{display:grid;gap:13px;margin-top:18px}
.workflow-list>div{display:flex;align-items:center;gap:11px}
.workflow-list i{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;border:1px solid var(--purple-border);border-radius:50%;color:var(--purple-light);font-size:10px;font-style:normal}
.workflow-list span{display:flex;flex-direction:column}.workflow-list strong{font-size:10px}.workflow-list small{color:var(--muted);font-size:9px}
.sidebar-tool-search{display:flex;align-items:center;gap:8px;margin:15px 2px 5px;padding:0 10px;border:1px solid var(--border);border-radius:9px;background:rgba(255,255,255,.025);color:var(--muted)}
.sidebar-tool-search>span{font-size:18px}.sidebar-tool-search input{width:100%;min-width:0;min-height:39px;padding:7px 0;border:0;background:transparent;box-shadow:none;color:var(--text);font-size:10px;outline:0}.sidebar-tool-search input:focus{border:0;background:transparent;box-shadow:none}.sidebar-tool-search kbd{white-space:nowrap;font-size:8px}
.sidebar-group[hidden],.sidebar-group-items .nav-item[hidden],.nav-item[hidden]{display:none!important}
@media(max-width:1050px){.workspace-launch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-command{grid-template-columns:1fr}.command-shortcuts{grid-column:1}}
@media(max-width:700px){.dashboard-greeting{align-items:flex-start;flex-direction:column}.dashboard-command{padding:20px}.workspace-launch-grid,.dashboard-lower-grid{grid-template-columns:1fr}.workspace-launch-card{min-height:165px}.popular-tools{grid-template-columns:1fr}.dashboard-search{min-width:0}.dashboard-greeting .dashboard-status{align-self:flex-start}}

/* Article export actions */
#editorSection .sticky-heading .action-row{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}
#editorSection .sticky-heading .action-row button{white-space:nowrap}
@media(max-width:760px){#editorSection .sticky-heading{align-items:flex-start;flex-direction:column}#editorSection .sticky-heading .action-row{width:100%;justify-content:flex-start}#editorSection .sticky-heading .action-row button{flex:1 1 auto}}
