:root {
  --bg: #07110f;
  --sidebar: #0a1512;
  --surface: #0e1b17;
  --surface-2: #13241e;
  --surface-3: #192d25;
  --line: rgba(207, 239, 224, 0.12);
  --line-strong: rgba(207, 239, 224, 0.22);
  --text: #eff8f3;
  --muted: #8fa79c;
  --lime: #b9ff66;
  --lime-soft: rgba(185, 255, 102, 0.12);
  --cyan: #7ce8da;
  --violet: #c5a7ff;
  --amber: #ffc86b;
  --danger: #ff8e84;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [contenteditable="true"] { -webkit-tap-highlight-color: transparent; }

.account-body { background: radial-gradient(circle at 78% 2%, rgba(185,255,102,.10), transparent 30%), var(--bg); }
.account-wrap { max-width: 1160px; margin: 0 auto; padding: 24px clamp(18px, 4vw, 48px) 80px; }
.account-top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 16px; }
.account-top .brand { padding: 0; }
.account-top a.button { display: inline-flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; }
.account-top a.button:hover { color: var(--lime); }
.account-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.account-actions form { margin: 0; }
.account-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--line-strong); border-radius: 20px; background: linear-gradient(145deg, #14261e, #0a1713); box-shadow: var(--shadow); }
.login-card { width: min(100%, 460px); margin: min(12vh, 100px) auto 0; }
.account-card h1, .admin-heading h1 { min-width: 0; font-size: clamp(1.65rem, 3vw, 2.4rem); margin: 12px 0; }
.account-card h2 { margin: 12px 0 6px; font: 700 1.2rem "Manrope", sans-serif; }
.account-subtitle, .account-note, .admin-heading p { color: var(--muted); line-height: 1.55; }
.account-note { margin: 22px 0 0; font-size: .82rem; }
.account-form { display: grid; gap: 10px; margin-top: 24px; }
.account-form > div { display: grid; gap: 8px; }
.account-form label { color: #dcece3; font-size: .8rem; font-weight: 700; }
.account-form input, .account-form select, .assign-form select { width: 100%; min-height: 46px; padding: 0 13px; color: var(--text); background: #091610; border: 1px solid var(--line-strong); border-radius: 9px; }
.account-form input:focus, .account-form select:focus, .assign-form select:focus { outline: 2px solid var(--lime); outline-offset: 2px; }
.account-form .button { margin-top: 14px; min-height: 46px; display: flex; justify-content: space-between; align-items: center; }
.account-form .errorlist { padding-left: 18px; color: var(--danger); font-size: .82rem; }
.account-form .helptext { color: var(--muted); font-size: .76rem; }
.form-alert, .form-success { padding: 13px 15px; border-radius: 9px; }
.form-alert { color: #ffbcb6; border: 1px solid rgba(255,142,132,.35); background: rgba(255,142,132,.1); }
.form-success { color: #d9ffb0; border: 1px solid rgba(185,255,102,.3); background: rgba(185,255,102,.08); }
.admin-main { margin-top: 55px; }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 30px; }
.admin-heading p { margin: 0; max-width: 650px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-list { margin-top: 18px; }
.list-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.list-head h2 { color: var(--text); }
.table-scroll { overflow-x: auto; margin-top: 15px; }
.admin-list table { width: 100%; border-collapse: collapse; min-width: 670px; text-align: left; font-size: .86rem; }
.admin-list th, .admin-list td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-list th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }
.admin-list em { color: var(--amber); }
.assign-form { display: flex; gap: 8px; }
.assign-form select { min-width: 150px; min-height: 38px; }
.assign-form .button { min-height: 38px; }
@media (max-width: 700px) {
  .account-top .brand { display: flex; }
  .account-top .brand span:last-child { display: inline; }
}
@media (max-width: 700px) {
  .account-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .account-actions { justify-content: flex-start; }
  .account-actions .button { padding: 8px; font-size: .72rem; }
  .admin-main { margin-top: 36px; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-heading { align-items: flex-start; }
  .admin-heading .status-pill { display: none; }
  .login-card { margin-top: 8vh; }
}
button:focus-visible, select:focus-visible, textarea:focus-visible, [contenteditable="true"]:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.app-shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #0b1814 0%, #08120f 100%); display: flex; flex-direction: column; z-index: 10; }
.brand { color: var(--text); text-decoration: none; font: 800 1.18rem/1 "Manrope", sans-serif; letter-spacing: -0.04em; display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; color: #0b1814; background: var(--lime); box-shadow: 0 0 28px rgba(185, 255, 102, 0.18); }
.nav-stack { display: grid; gap: 5px; }
.nav-item { width: 100%; min-height: 43px; padding: 0 12px; border: 1px solid transparent; background: transparent; border-radius: 10px; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; color: var(--muted); text-align: left; cursor: pointer; font-weight: 600; }
.nav-item:hover, .nav-item.active { color: var(--text); background: var(--lime-soft); border-color: rgba(185,255,102,.12); }
.nav-item.active > span:first-child { color: var(--lime); }
.nav-badge { border-radius: 20px; padding: 2px 7px; color: #0a1512; background: var(--lime); font-size: .72rem; }
.workspace-switcher { margin-top: 32px; padding: 16px 8px; border-top: 1px solid var(--line); }
.eyebrow { color: var(--muted); text-transform: uppercase; font: 700 .7rem/1.2 "Manrope", sans-serif; letter-spacing: .13em; }
.workspace-button { margin-top: 12px; width: 100%; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; text-align: left; cursor: pointer; }
.workspace-button small, .profile small { display: block; margin-top: 2px; color: var(--muted); font-size: .74rem; }
.company-avatar, .avatar { display: grid; place-items: center; border-radius: 9px; width: 34px; height: 34px; background: var(--lime); color: #102014; font-weight: 800; }
.sidebar-bottom { margin-top: auto; }
kbd { color: #728a7f; border: 1px solid var(--line); padding: 2px 5px; border-radius: 5px; font-size: .68rem; }
.profile { margin-top: 12px; padding: 14px 8px 2px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; font-size: .86rem; }
.avatar { border-radius: 50%; background: #233d33; color: #d5eee2; font-size: .73rem; }
.icon-button { border: 0; min-width: 40px; min-height: 40px; border-radius: 8px; background: transparent; cursor: pointer; color: var(--muted); }
.icon-button:hover { color: var(--text); background: rgba(255,255,255,.06); }

.main-content { min-width: 0; }
.topbar { min-height: 104px; padding: 21px 26px 18px 30px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); background: rgba(7,17,15,.86); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 8; }
.breadcrumbs { display: flex; gap: 8px; color: var(--muted); font-size: .76rem; margin-bottom: 7px; }
.title-row { display: flex; align-items: center; gap: 12px; }
h1 { margin: 0; font: 700 clamp(1.35rem, 2vw, 1.75rem)/1.2 "Manrope", sans-serif; letter-spacing: -.045em; min-width: 240px; }
.status-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 20px; background: rgba(185,255,102,.08); color: #d8ffac; border: 1px solid rgba(185,255,102,.17); font-size: .72rem; }
.status-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.role-select-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.role-select { min-height: 38px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #dfeee7; background: var(--surface); }
.collaborators { display: flex; padding-left: 8px; }
.collaborators span { width: 30px; height: 30px; margin-left: -8px; border: 2px solid var(--bg); border-radius: 50%; background: #28483c; display: grid; place-items: center; font-size: .64rem; font-weight: 700; }
.collaborators span:nth-child(2) { background: #493e63; }
.collaborators span:nth-child(3) { background: #26312d; color: var(--muted); }
.collaborators span:only-child { margin-left: 0; color: var(--lime); background: #193029; border-color: var(--bg); }
.button { min-height: 42px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-weight: 700; font-size: .82rem; }
.button:hover { border-color: rgba(185,255,102,.45); }
.button.primary { border-color: var(--lime); background: var(--lime); color: #0d1a15; }
.button.primary:hover { filter: brightness(1.05); }

.workspace-bar { min-height: 65px; padding: 11px 26px 11px 30px; border-bottom: 1px solid var(--line); background: #091410; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.progress-wrap { width: min(360px, 38vw); }
.progress-label { display: flex; justify-content: space-between; font-size: .73rem; color: var(--muted); margin-bottom: 6px; }
.progress-label strong { color: var(--lime); }
.progress-track { width: 100%; height: 4px; background: #20312a; border-radius: 10px; overflow: hidden; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #5ecfbf, var(--lime)); transition: width .25s ease; }
.canvas-tools { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.tool-button { min-height: 32px; border: 0; border-radius: 8px; padding: 0 10px; color: var(--muted); background: transparent; cursor: pointer; }
.tool-button.active, .tool-button:hover { color: var(--text); background: rgba(255,255,255,.055); }
.tool-separator { height: 23px; width: 1px; background: var(--line); margin: 0 5px; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: calc(100vh - 169px); }
.content-grid:has(.ai-panel.closed) { grid-template-columns: minmax(0, 1fr); }
.strategy-canvas { overflow: auto; padding: 28px 30px 70px; background-color: #09130f; background-image: radial-gradient(rgba(184, 225, 203, .095) 1px, transparent 1px); background-size: 21px 21px; }
.canvas-inner { width: min(1120px, 100%); margin: 0 auto; transform-origin: top left; transition: transform .2s ease; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 7px 0 13px; }
.section-heading h2 { margin: 5px 0 0; font: 700 1.05rem/1.3 "Manrope", sans-serif; letter-spacing: -.02em; }
.eyebrow.lime { color: var(--lime); }
.eyebrow.cyan { color: var(--cyan); }
.eyebrow.violet { color: var(--violet); }
.text-button, .add-line, .insight-action { border: 0; padding: 0; color: var(--lime); background: transparent; cursor: pointer; font-weight: 700; font-size: .76rem; }
.text-button:hover, .add-line:hover, .insight-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.foundation-grid { display: grid; grid-template-columns: 1.4fr 1fr .74fr; gap: 12px; }
.principles-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.principle-card { min-height: 108px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.principle-card .remove-principle { float: right; margin-top: -10px; }
.principle-text { margin: 16px 0 0; min-height: 32px; line-height: 1.45; }
.strategy-card, .choice-card, .swot-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(20,37,31,.96), rgba(12,25,21,.96)); border-radius: 14px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.strategy-card { min-height: 192px; padding: 17px; display: flex; flex-direction: column; transition: border-color .18s, transform .18s; }
.strategy-card:hover, .strategy-card.active-card { border-color: rgba(185,255,102,.32); transform: translateY(-1px); }
.card-topline { display: flex; align-items: center; gap: 8px; color: #cfe1d8; font: 700 .75rem/1.2 "Manrope", sans-serif; text-transform: uppercase; letter-spacing: .07em; }
.card-topline .card-menu { margin-left: auto; border: 0; background: none; color: var(--muted); cursor: pointer; }
.card-icon { color: var(--lime); }
.hero-copy { margin: 20px 0 18px; font: 600 1.03rem/1.45 "Manrope", sans-serif; letter-spacing: -.024em; }
.card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .72rem; }
.confidence { padding: 4px 7px; border-radius: 14px; }
.confidence.high { color: #d7ffb0; background: rgba(185,255,102,.09); }
.confidence.medium { color: #ffe1a5; background: rgba(255,200,107,.08); }
.value-list { list-style: none; padding: 8px 0 0; margin: 0; display: grid; gap: 3px; }
.value-list li { position: relative; padding: 6px 3px 6px 17px; border-bottom: 1px solid var(--line); font-size: .79rem; color: #d7e5de; }
.value-list li::before { content: "•"; position: absolute; left: 2px; color: var(--lime); }
.add-line { margin-top: auto; align-self: flex-start; padding-top: 10px; }
.signal-card { background: linear-gradient(160deg, rgba(185,255,102,.14), rgba(15,31,25,.96) 55%); }
.metric { margin: 17px 0 10px; }
.metric strong { display: block; font: 700 2.25rem/1 "Manrope", sans-serif; letter-spacing: -.06em; color: var(--lime); }
.metric span { display: block; color: #b3c8be; font-size: .73rem; margin-top: 5px; }
.sparkline { height: 40px; display: flex; gap: 4px; align-items: flex-end; margin: auto 0 8px; }
.sparkline span { width: 13%; border-radius: 3px 3px 1px 1px; background: linear-gradient(#b9ff66, #3fae91); opacity: .76; }
.sparkline.empty-chart span { height: 3px; background: #355047; opacity: .45; }
.signal-card small { color: var(--muted); font-size: .67rem; }
.cascade-title { margin-top: 33px; }
.helper-text { color: var(--muted); font-size: .72rem; }
.cascade-flow { position: relative; display: grid; grid-template-columns: repeat(5, minmax(155px, 1fr)); gap: 9px; }
.flow-line { position: absolute; top: 31px; left: 6%; right: 6%; height: 1px; background: linear-gradient(90deg, var(--lime), var(--cyan), var(--violet), var(--amber)); opacity: .55; }
.choice-card { min-height: 250px; padding: 15px; position: relative; overflow: hidden; cursor: pointer; transition: transform .18s, border-color .18s, background .18s; }
.choice-card:hover, .choice-card.selected { transform: translateY(-3px); border-color: rgba(124,232,218,.42); background: linear-gradient(155deg, rgba(24,48,39,.98), rgba(12,26,21,.98)); box-shadow: var(--shadow); }
.choice-card.selected::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, var(--lime), var(--cyan)); }
.choice-index { position: relative; z-index: 1; width: 33px; height: 33px; border-radius: 50%; display: grid; place-items: center; background: #193029; border: 1px solid var(--line-strong); color: var(--cyan); font: 700 .69rem/1 "Manrope", sans-serif; }
.choice-label { display: block; margin-top: 22px; color: var(--muted); font-size: .67rem; text-transform: uppercase; letter-spacing: .085em; font-weight: 700; }
.choice-card h3 { margin: 9px 0 18px; font: 600 .9rem/1.42 "Manrope", sans-serif; letter-spacing: -.024em; }
.choice-meta { position: absolute; left: 15px; right: 15px; bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 7px; color: var(--muted); font-size: .67rem; }
.choice-meta > span { min-width: 0; max-width: 50%; overflow-wrap: anywhere; }
.choice-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.choice-tags span, .ai-chip { padding: 4px 6px; border-radius: 20px; background: rgba(255,255,255,.05); color: #a7bdb2; font-size: .61rem; }
.ai-chip { color: var(--cyan); background: rgba(124,232,218,.08); }
.position-title { margin-top: 34px; }
.swot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; transition: opacity .2s; }
.swot-grid.collapsed { display: none; }
.swot-card { padding: 15px; min-height: 174px; }
.swot-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 10px; margin-bottom: 8px; font: 700 .74rem/1 "Manrope", sans-serif; }
.swot-head strong { color: var(--muted); font-size: .66rem; }
.swot-card ul { margin: 0; padding: 0 0 0 16px; color: #c1d1ca; font-size: .75rem; line-height: 1.45; }
.swot-card li { padding: 3px 0; }
.strength .swot-head { color: var(--lime); }.weakness .swot-head { color: var(--danger); }.opportunity .swot-head { color: var(--cyan); }.threat .swot-head { color: var(--amber); }

.ai-panel { border-left: 1px solid var(--line); background: #0c1814; min-width: 0; padding: 18px; position: sticky; top: 169px; align-self: start; height: calc(100vh - 169px); overflow: auto; transition: transform .25s, opacity .25s; }
.ai-panel.closed { display: none; }
.panel-backdrop { display: none; }
.utility-dialog { width: min(440px, calc(100vw - 32px)); max-height: min(80vh, 700px); padding: 20px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--text); background: #0d1d17; box-shadow: var(--shadow); }
.utility-dialog::backdrop { background: rgba(0, 0, 0, .66); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; font: 700 1.1rem/1.3 "Manrope", sans-serif; }
.utility-dialog p { color: #bfd2c8; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; }
.command-list { display: grid; gap: 8px; margin-top: 18px; }
.command-list button { min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); text-align: left; cursor: pointer; }
.command-list button:hover { border-color: var(--lime); }
.ai-panel-head > div { display: flex; align-items: center; gap: 10px; }
.ai-panel-head { display: flex; justify-content: space-between; align-items: center; }
.ai-panel-head span span { display: block; }
.ai-panel-head small { display: block; color: var(--muted); font-size: .68rem; margin-top: 3px; }
.ai-orb { display: grid; place-items: center; width: 34px; height: 34px; color: #0a1512; border-radius: 10px; background: radial-gradient(circle at 30% 25%, #efffd7, var(--lime) 45%, #62bda4); box-shadow: 0 0 24px rgba(185,255,102,.18); }
.ai-score { margin: 20px 0; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); display: grid; grid-template-columns: 60px 1fr; gap: 13px; align-items: center; }
.score-ring { width: 58px; height: 58px; border-radius: 50%; border: 5px solid #284338; border-top-color: var(--lime); border-right-color: var(--lime); display: grid; place-content: center; text-align: center; transform: rotate(10deg); }
.score-ring span, .score-ring small { transform: rotate(-10deg); }
.score-ring span { font: 700 1rem/1 "Manrope"; }.score-ring small { color: var(--muted); font-size: .55rem; }
.ai-score strong { font: 700 .79rem/1.3 "Manrope"; }.ai-score p { margin: 5px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.insight-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #09130f; }
.insight-tabs button { min-height: 31px; border: 0; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; font-size: .72rem; font-weight: 700; }
.insight-tabs button.active { color: var(--text); background: var(--surface-3); }
.insight-tabs span { color: var(--lime); margin-left: 4px; }
.insights-list { display: grid; gap: 8px; padding: 12px 0 18px; }
.insight-card { padding: 13px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.insight-card.priority { border-color: rgba(255,200,107,.25); background: linear-gradient(145deg, rgba(255,200,107,.07), rgba(255,255,255,.02)); }
.insight-type { color: var(--cyan); font: 700 .61rem/1 "Manrope"; text-transform: uppercase; letter-spacing: .09em; }
.priority .insight-type { color: var(--amber); }
.insight-card h4 { margin: 8px 0 6px; font: 700 .8rem/1.35 "Manrope"; }.insight-card p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.43; }
.insight-action { margin-top: 10px; font-size: .68rem; }
.questions-list { display: grid; gap: 8px; padding: 12px 0 18px; }
.question-chip { padding: 11px; text-align: left; border: 1px solid var(--line); border-radius: 9px; color: #cfe0d8; background: rgba(255,255,255,.025); cursor: pointer; font-size: .72rem; }
.question-chip:hover { border-color: rgba(185,255,102,.32); }
.hidden { display: none !important; }
.ai-composer { position: sticky; bottom: -18px; padding: 14px 0 18px; margin-top: auto; background: linear-gradient(transparent, #0c1814 18%); }
.ai-composer label { display: block; margin: 0 0 7px; color: var(--muted); font-size: .67rem; font-weight: 700; }
.ai-composer > div:not(.ai-response) { display: grid; grid-template-columns: 1fr 38px; gap: 6px; align-items: end; }
.ai-composer textarea { resize: none; min-height: 66px; padding: 10px; color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; background: #09130f; font-size: .73rem; }
.ai-composer #askAi { width: 38px; height: 38px; border: 0; border-radius: 9px; color: #09130f; background: var(--lime); font-weight: 800; cursor: pointer; }
.ai-composer small { display: block; color: #61776c; font-size: .6rem; margin-top: 6px; }
.ai-response { margin-bottom: 9px; padding: 10px; border-left: 2px solid var(--lime); color: #d7e6df; background: rgba(185,255,102,.05); font-size: .7rem; line-height: 1.45; }
[contenteditable="true"] { border-radius: 4px; }
[contenteditable="true"]:hover { box-shadow: 0 0 0 2px rgba(185,255,102,.08); }
[contenteditable="true"]:focus { background: rgba(185,255,102,.055); box-shadow: 0 0 0 1px rgba(185,255,102,.24); }
.editable-empty:empty::before { content: attr(data-placeholder); color: #62786d; font-weight: 500; font-style: normal; pointer-events: none; }
.choice-card h3.editable-empty:empty::before { color: #789087; }
.empty-insight { border-style: dashed; text-align: center; padding: 22px 15px; }
.viewer-mode [contenteditable="true"] { pointer-events: none; }
.viewer-mode .add-line, .viewer-mode #addPrinciple, .viewer-mode .remove-principle, .viewer-mode .card-menu { display: none; }
.focus-mode .foundation-grid, .focus-mode .position-title, .focus-mode .swot-grid { display: none; }
.focus-mode .cascade-title { margin-top: 8px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; padding: 11px 14px; border: 1px solid rgba(185,255,102,.25); border-radius: 10px; color: #eaffd3; background: #15261f; box-shadow: var(--shadow); font-size: .76rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .22s; }
.toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 1500px) {
  .content-grid { grid-template-columns: minmax(0, 1fr) 318px; }
  .foundation-grid { grid-template-columns: 1.2fr 1fr; }.signal-card { grid-column: span 2; min-height: 140px; }
  .signal-card .sparkline { max-width: 260px; }.cascade-flow { grid-template-columns: repeat(3, 1fr); }.flow-line { display: none; }
}
@media (max-width: 920px) {
  .app-shell { grid-template-columns: 74px minmax(0,1fr); }.sidebar { padding: 22px 10px; }.brand span:last-child, .nav-item span:nth-child(2), .workspace-switcher, .profile > span:nth-child(2), kbd, .nav-badge { display: none; }.brand { padding-inline: 10px; }.nav-item { grid-template-columns: 1fr; justify-items: center; padding: 0; }.profile { grid-template-columns: 1fr auto; padding-inline: 1px; }.content-grid { grid-template-columns: 1fr; }.ai-panel { position: fixed; z-index: 20; right: 0; top: 0; width: min(380px, 94vw); height: 100dvh; box-shadow: -20px 0 60px rgba(0,0,0,.45); }.panel-backdrop:not(.hidden) { display: block; position: fixed; inset: 0; z-index: 19; background: rgba(0,0,0,.56); }.panel-open { overflow: hidden; }.topbar { padding-left: 20px; }.workspace-bar { padding-left: 20px; }.strategy-canvas { padding-left: 20px; }
}
@media (max-width: 680px) {
  .app-shell { display: block; }.sidebar { position: fixed; inset: auto 0 0; z-index: 25; width: auto; height: calc(66px + env(safe-area-inset-bottom)); padding: 7px 14px max(7px, env(safe-area-inset-bottom)); border: 1px solid var(--line); border-width: 1px 0 0; display: block; }.brand, .workspace-switcher, .sidebar-bottom { display: none; }.nav-stack { grid-template-columns: repeat(3,1fr); }.nav-item { min-height: 50px; font-size: .78rem; }.nav-item span:nth-child(2) { display: block; font-size: .63rem; }.nav-item { grid-template-columns: 1fr; gap: 0; text-align: center; }.topbar { position: static; min-height: 126px; padding: 18px; align-items: flex-start; flex-direction: column; }.top-actions { width: 100%; flex-wrap: wrap; }.top-actions .button { flex: 1; white-space: nowrap; }.role-select { width: 100%; }.workspace-bar { padding: 10px 18px; flex-direction: column; align-items: stretch; }.progress-wrap { width: 100%; }.canvas-tools { justify-content: flex-end; }.strategy-canvas { padding: 20px 14px 110px; }.foundation-grid, .cascade-flow, .swot-grid { grid-template-columns: 1fr; }.signal-card { grid-column: auto; }.choice-card { min-height: 205px; }.section-heading { align-items: flex-start; gap: 10px; }.helper-text { text-align: right; }.status-pill { display: none; } h1 { min-width: 0; font-size: 1.35rem; }.title-row { width: 100%; }.ai-panel { width: 100vw; padding-bottom: calc(75px + env(safe-area-inset-bottom)); }.toast { right: 14px; bottom: 82px; left: 14px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
