/* Shared visual language: quiet surfaces, lagoon blue and citron. */
:root {
    --bg: oklch(.955 .006 135); --surface: oklch(.992 .003 120);
    --fg: oklch(.25 .022 165); --muted: oklch(.48 .018 165);
    --border: oklch(.90 .01 145); --soft: oklch(.955 .01 145);
    --accent: oklch(.38 .065 175); --accent-hover: oklch(.30 .05 175);
    --accent-soft: oklch(.93 .03 160); --radius: 14px;
    --citron: oklch(.94 .18 112);
}
body.shell { --nav-w: 232px; background: #e9ece7; padding: 12px; gap: 0; }
body.shell .sidebar { background: #f4f5f0; border: 0; border-radius: 20px 0 0 20px; box-shadow: none; }
.shell-main { background: #f1f3ee; border: 0; border-radius: 0 20px 20px 0; }
body.shell .top { background: #f4f5f0; border: 0; }
body.shell .top-inner { min-height: 72px; padding-inline: 26px; }
body.shell main.wrap { width: 100%; margin: 0; padding: 0 24px 48px; }
.side-brand { min-height: 72px; padding: 16px; }
.side-brand .brand-mark { width: 38px; height: 38px; background: var(--citron); color: var(--fg); border-radius: 50%; }
.side-brand .brand-mark:hover { background: #dcefa0; color: var(--fg); }
.side-brand small { color: var(--muted); }
.side-nav { padding: 20px 12px; gap: 7px; }
.nav-item { min-height: 42px; font-size: .82rem; border-radius: 12px; }
.nav-subitem { font-size: .74rem; min-height: 31px; }
.nav-item[aria-current="page"], .nav-subitem[aria-current="page"] { background: #e3e9dc; color: #233c32; }
.nav-item:hover,.nav-subitem:hover { background: #e9ede4; }
.nav-sub { padding-bottom: 8px; }
.side-foot { border-top: 1px solid var(--border); margin: 0 12px; padding-inline: 0; }
.side-user .avatar { background: #d8e1cd; color: #34473b; }
.crumb { font-size: .8rem; }
.crumb strong { background: #e9ede6; padding: 10px 16px; border-radius: 10px; font-weight: 500; }
.top-search input { background: #e9ede6; border-color: transparent; border-radius: 12px; }
.dash { padding-top: 0; }
.city-hero { min-height: 290px; padding: 32px; border-radius: 18px; color: #f9fcf5; align-items: flex-end; position: relative; overflow: hidden; background: linear-gradient(100deg,#315c60 0%,#4e8083 55%,#9bb6a3 100%); isolation: isolate; }
.city-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('city-landscape.svg') right center / auto 100% no-repeat; opacity: .68; }
.city-hero > div:first-child { flex: 1 1 460px; }
.city-hero .kicker { color: #eff9eb; font-size: .75rem; letter-spacing: .02em; text-transform: none; margin: 0 0 35px; }
.hero-live { margin-left: 18px; padding-left: 16px; border-left: 1px solid #a3bfba; opacity: .85; }
.page-dashboard .city-hero h1 { font-size: clamp(2rem,3.3vw,3.5rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.12; color: #f8fcf4; margin: 0; }
.hero-description { font-size: .86rem; margin: 14px 0 22px; max-width: 37ch; color: #f2f8ed; }
.city-hero .dash-lede { color: #e3efe6; font-size: .7rem; max-width: 65ch; }
.city-hero .dash-actions { position: relative; flex: 1 1 100%; }
.city-hero .range-pills { border: 0; background: #ffffff17; padding: 4px; border-radius: 10px; }
.city-hero .range-pills a { color: #f3f7ef; font-weight: 450; padding: 8px 13px; }
.city-hero .range-pills a.is-on { background: #eff5e9; color: #244b48; border-radius: 7px; }
.city-hero .range-pills a:hover { background: #ffffff26; }
.city-hero .range-pills a.is-on:hover { background: #eff5e9; }
.city-hero .btn { margin-left: auto; background: #f2f6e9; color: #294b42; border: 0; }
.overview-studio { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(0,2fr); gap: 18px; margin-bottom: 22px; }
.pulse-assistant { border-radius: 18px; padding: 24px; background: linear-gradient(150deg,#dbe6b5,#f0fa93 70%,#ebf898); display: flex; flex-direction: column; min-height: 350px; }
.assistant-label { display: flex; align-items: center; gap: 9px; font-size: .75rem; font-weight: 550; }
.assistant-label > .ico { margin-left: auto; width: 16px; }
.assistant-symbol { background: #24352a; color: #eef7a0; width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; }
.assistant-copy { margin: auto 0; padding: 32px 0 20px; }
.assistant-copy .kicker { color: #4c5b31; font-size: .65rem; }
.assistant-copy h2 { font-family: var(--font); font-size: 1.75rem; font-weight: 450; line-height: 1.18; letter-spacing: -.035em; margin: 10px 0 16px; }
.assistant-copy > p:last-child { font-size: .8rem; line-height: 1.65; max-width: 30ch; color: #44512f; }
.assistant-links { display: flex; flex-wrap: wrap; gap: 6px; }
.assistant-links a { display: inline-flex; align-items: center; gap: 6px; font-size: .69rem; padding: 9px 10px; background: #ffffff50; color: #33452c; border-radius: 8px; }
.assistant-links .ico { width: 12px; height: 12px; }
.assistant-bottom { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .7rem; color: #394a2e; }
.assistant-go { width: 36px; height: 36px; background: #253a2d; color: #f3fac7; border-radius: 12px; display: grid; place-items: center; }
.overview-data { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.overview-data .kpi-card { order: -1; margin: 0; background: transparent; border: 0; border-radius: 0; overflow: visible; }
.kpi-grid { gap: 12px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.kpi { background: var(--surface); border: 0; border-radius: 16px; padding: 22px 16px; }
.kpi:nth-child(n) { border: 0; }
.kpi h3 { color: #536057; font-size: .71rem; font-weight: 500; }
.kpi-val { flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.kpi-val span:first-child { font-weight: 450; font-size: 2rem; }
.kpi p { font-size: .66rem; line-height: 1.6; margin-top: 14px; }
.card, .panel { border: 1px solid #e6eae2; box-shadow: none; border-radius: 18px; background: var(--surface); }
.priority-strip { margin: 0; border-radius: 16px; flex: 1; }
.priority-strip.is-clear { background: #e7ede2; border-color: #e0e7d9; }
.priority-intro { padding: 20px; flex-wrap: wrap; }
.priority-intro h2 { font-size: 1rem; font-weight: 550; }
.priority-intro .kicker { font-size: .65rem; }
.priority-context { font-size: .71rem; }
.priority-all { font-size: .73rem; }
.priority-clear { font-size: .8rem; line-height: 1.7; padding: 20px; }
.card-head { padding-top: 24px; }
.card-head h2,.donut-card h2 { font-weight: 550; letter-spacing: -.025em; }
.card-head .muted,.donut-card > .muted { font-size: .76rem; line-height: 1.65; }
.btn,button,input,select,textarea { border-radius: 10px; }
.btn,button[type=submit]:not(.side-logout):not(.danger) { background: #2e5043; }
.ghost-btn { background: #edf1e8; border-color: transparent; color: #365043; border-radius: 9px; }
.table th { background: #f2f5ed; color: #606d61; font-size: .69rem; }
.table td { border-bottom-color: #edf0e8; }
.table tbody tr:hover { background: #f7f9f1; }
h1 { letter-spacing: -.045em; }
.topic-track i { background: #7d9275; }
.brief-mini { background: #edf3d7; border-color: #e0e9c8; border-radius: 12px; }
.page-login { --login-paper: #e5eddb; --login-ink: #263d34; --login-muted: #56695b; --login-accent: #365e50; --login-line: #ced9c7; background: #f4f6ef; padding: 16px; }
.login-shell { min-height: calc(100svh - 32px); gap: 16px; }
.login-story {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    justify-content: space-between;
    border-radius: 22px;
    background: linear-gradient(150deg,#d5e2bf,#eff7a7);
}
.login-story::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 58%;
    z-index: -1;
    background: url("city-landscape.svg") center bottom / cover no-repeat;
    opacity: .55;
    pointer-events: none;
}
.login-editorial h1 { font-family: var(--font); font-weight: 400; }
.login-editorial h1 em { font-family: var(--serif); }
.login-entry { background: #fbfcf7; border-radius: 22px; }
.login-field input { background: #f7f9f1; border-radius: 10px; }
.login-submit { border-radius: 10px; }
:focus-visible { outline: 2px solid #507b51; outline-offset: 4px; }
@media (max-width: 1250px) { .kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .city-hero { padding: 28px; } }
@media (max-width: 980px) {
 body.shell { padding: 0; } body.shell .sidebar { border-radius: 18px; background: #f4f5f0; }
 .shell-main { border-radius: 0; } body.shell main.wrap { padding: 0 18px 32px; }
 .overview-studio { grid-template-columns: minmax(220px,.75fr) minmax(0,1.5fr); }
 .city-hero { margin-top: 0; } .city-hero::before { opacity: .35; }
}
@media (max-width: 640px) {
 body.shell .top-inner { min-height: 60px; padding-inline: 16px; } .crumb { display: block; } .crumb > span { display: none; } .crumb strong { background: none; padding: 0; }
 body.shell main.wrap { padding-inline: 12px; } .city-hero { padding: 24px 20px; border-radius: 14px; min-height: 325px; gap: 20px; }
 .city-hero .kicker { margin-bottom: 28px; } .hero-live { margin-left: 8px; padding-left: 8px; }
 .city-hero .range-pills a { padding-inline: 9px; font-size: .73rem; } .city-hero .btn { font-size: .75rem; }
 .overview-studio { grid-template-columns: 1fr; gap: 14px; } .pulse-assistant { min-height: 0; padding: 22px; }
 .assistant-copy { padding: 20px 0 10px; } .assistant-copy h2 br { display: none; } .assistant-copy h2 { font-size: 1.55rem; } .assistant-copy > p:last-child { max-width: 42ch; }
 .assistant-bottom { margin-top: 20px; } .kpi { padding: 20px; } .kpi h3 { font-size: .76rem; }
 .page-login { padding: 8px; } .login-shell { gap: 8px; } .login-story { padding: 28px 24px; } .login-entry { padding: 28px 24px; }
}
@media (prefers-reduced-motion: no-preference) { .city-hero,.overview-studio { animation: studio-enter .45s ease-out both; } .overview-studio { animation-delay: .06s; } @keyframes studio-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } }

/* Account controls stay inside the rail, including long account names. */
.side-foot { min-width: 0; }
.side-user { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 10px; min-width: 0; padding: 12px 8px; }
.side-user .avatar { width: 34px; height: 34px; flex-shrink: 0; }
.side-user > div { width: 100%; min-width: 0; }
.side-user p { width: 100%; font-size: .72rem; overflow: hidden; text-overflow: ellipsis; }
.side-user small { font-size: .68rem; }
.side-logout-form { margin: 0; min-width: 0; }
.side-tools .side-logout { width: 100%; justify-content: flex-start; background: transparent; color: #536357; padding: 6px 10px; box-shadow: none; }
.side-tools .side-logout:hover { background: #e5ebdf; color: #243c30; }
@media (min-width: 981px) {
 html.sidebar-collapsed .side-user { display: flex; justify-content: center; }
 html.sidebar-collapsed .side-tools .side-logout { justify-content: center; padding: 10px; }
}
/* Briefs: compact archive alongside an editorial reading surface. */
.page-briefs section.briefs { padding-top: 12px; }
.briefs-heading { padding: 24px 4px 28px; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.briefs-heading .kicker { color: #536f5e; font-size: .68rem; letter-spacing: .1em; }
.page-briefs .briefs-heading h1 { font-size: clamp(1.9rem,3vw,2.75rem); font-weight: 450; line-height: 1.2; margin: 10px 0 12px; }
.briefs-heading .dash-lede { font-size: .83rem; line-height: 1.7; max-width: 55ch; }
.brief-create { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.brief-create .btn { background: #dfea9f !important; color: #263d2b; padding: 13px 18px; border: 1px solid #d5df99; font-size: .8rem; }
.brief-create .btn:hover { background: #d1e488 !important; }
.brief-create > span { color: var(--muted); font-size: .68rem; padding-left: 2px; }
.briefs-layout { grid-template-columns: minmax(240px,.8fr) minmax(0,2fr); gap: 24px; }
.brief-rail { background: transparent; border: 0; padding: 0; overflow: visible; min-width: 0; }
.brief-rail-heading { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 18px; }
.brief-rail-heading h2 { padding: 0; margin: 0; font-size: .68rem; }
.brief-rail .brief-count { background: #e3e9dc; color: #47614c; padding: 3px 8px; border-radius: 6px; font-size: .68rem; }
.brief-rail ul { display: grid; gap: 6px; max-height: 65vh; overflow-y: auto; scrollbar-width: thin; padding: 3px; }
.brief-rail a { grid-template-columns: 42px minmax(0,1fr) 14px; align-items: center; gap: 12px; padding: 14px 10px; border: 1px solid transparent; border-radius: 12px; }
.brief-rail a:hover { background: #e9eee3; }
.brief-rail a[aria-current="page"] { background: #e4edce; border-color: #d8e4bd; color: #293f2b; }
.brief-rail a[aria-current="page"] span { color: #405736; }
.brief-rail .brief-date-tile { background: #fafbf5; border-radius: 8px; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 1.25rem; font-weight: 500; line-height: 1.2; }
.brief-date-tile small { font-size: .5rem; margin-top: 3px; color: #66775e; }
.brief-archive-copy { display: grid; gap: 5px; min-width: 0; }
.brief-rail strong { font-size: .76rem; font-weight: 550; line-height: 1.4; }
.brief-archive-copy > span { font-size: .64rem; }
.brief-rail a > .ico { width: 14px; height: 14px; }
.brief-doc { padding: 0; min-width: 0; border-color: #e0e7d9; }
.brief-doc .brief-document-header { background: #eaf0e2; margin: 0; padding: 28px 32px; border-bottom: 1px solid #dfe7d7; }
.brief-document-label { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.brief-document-label .kicker { margin: 0; font-size: .64rem; color: #4e6853; }
.brief-document-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #334f3d; color: #eaf1d4; }
.brief-document-symbol .ico { width: 14px; height: 14px; }
.brief-source-label { margin-left: auto; font-size: .62rem; color: #556b50; background: #f6f9ed; padding: 5px 8px; border-radius: 6px; }
.brief-doc header h2 { font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 500; margin: 0; }
.brief-meta-line { font-size: .7rem; line-height: 1.8; margin-top: 12px; }
.brief-body { padding: 8px 32px 32px; max-width: none; overflow-wrap: anywhere; }
.page-briefs .brief-body .brief-sec { padding: 26px 0; margin: 0; border-radius: 0; background: transparent; border-bottom: 1px solid #e9eee2; }
.page-briefs .brief-body .brief-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.brief-sec h3 { font-size: .95rem; font-weight: 600; margin-bottom: 16px; letter-spacing: -.02em; }
.brief-sec p,.brief-sec li { font-size: .85rem; line-height: 1.85; max-width: 70ch; }
.brief-lede { padding-top: 24px; font-size: .87rem; line-height: 1.8; }
.brief-chips li { background: #f0f4e8; border-color: #e3eadb; border-radius: 8px; }
.brief-issue { padding-block: 18px; }
.brief-issue-top { flex-wrap: wrap; gap: 8px; }
.brief-step { font-size: .6rem; white-space: normal; }
.brief-empty { min-height: 420px; padding: 64px 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.brief-empty-symbol { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e7efcc; color: #476342; margin-bottom: 28px; }
.brief-empty h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; margin: 12px 0; }
.brief-empty p { max-width: 44ch; font-size: .85rem; line-height: 1.8; }
@media (max-width: 1100px) { .briefs-layout { grid-template-columns: 230px minmax(0,1fr); gap: 16px; } }
@media (max-width: 760px) {
 .briefs-heading { padding: 16px 4px 24px; gap: 22px; } .briefs-layout { grid-template-columns: 1fr; }
 .brief-rail ul { display: flex; overflow-x: auto; max-height: none; padding-bottom: 10px; scroll-snap-type: x proximity; }
 .brief-rail li { flex: 0 0 245px; scroll-snap-align: start; } .brief-rail a { background: #eaf0e3; height: 100%; }
 .brief-rail-heading { padding-top: 0; } .brief-doc .brief-document-header { padding: 24px; }
 .brief-body { padding: 0 24px 28px; } .brief-document-label { flex-wrap: wrap; gap: 8px; }
 .brief-empty { padding: 36px 24px; min-height: 340px; }
}

/* Interior pages share the dashboard palette without changing the dashboard. */
.workspace-heading { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding: 8px 0 18px; margin: 0 0 18px; border-radius: 0; background: none; color: #29463c; border-bottom: 1px solid #dde5d6; }
.workspace-heading > div { min-width: 0; }
.workspace-heading .kicker { color: #617058; font-size: .68rem; letter-spacing: .04em; text-transform: none; margin: 0 0 6px; }
.workspace-heading h1 { font-family: var(--font); font-size: clamp(1.45rem,2.2vw,1.85rem); line-height: 1.2; font-weight: 600; margin: 0; letter-spacing: -.02em; }
.workspace-heading h1 .muted { font-size: .55em; color: #617b5d; vertical-align: middle; }
.workspace-heading p:not(.kicker) { color: #617058; font-size: .8rem; line-height: 1.5; max-width: 58ch; margin: 8px 0 0; }
.workspace-heading .range-pills { border: 1px solid #d7e0cf; background: #fff; padding: 3px; border-radius: 8px; }
.workspace-heading .range-pills a { border-radius: 6px; }
.workspace-heading .range-pills a.is-on { background: #365a49; }
.page-mentions .mentions-page,.page-settings .settings-page,.insights-page,.opis-iskanja { padding-top: 12px; }
.mentions-page .alert-shortcut { background: #f7f9ee; border: 1px solid #d5dfce; color: #43573d; border-radius: 10px; padding: 11px 14px; font-size: .75rem; white-space: nowrap; }
.mentions-page .filters { display: flex; background: #fafcf6; border: 1px solid #e1e8d9; border-radius: 14px; padding: 12px 14px; gap: 10px 12px; margin-bottom: 18px; }
.mentions-page .filter-search { flex: 1 1 240px; }
.mentions-page .filters label { min-width: 0; font-size: .68rem; color: #566951; gap: 5px; text-transform: none; letter-spacing: 0; }
.mentions-page .filters input,.mentions-page .filters select { width: 100%; min-width: 0; min-height: 36px; background: #f0f4e9; border-color: #dfe7d5; font-size: .8rem; }
.mentions-page .filters .filter-actions button { min-height: 36px; padding: 8px 12px; }
.mentions-page .filter-more summary { color: #566951; }
.mentions-page > .table-wrap { border: 1px solid #e2e8dc; border-radius: 16px; background: #fcfdf8; }
.mentions-page .table { margin: 0; }
.mentions-page .table th { padding: 17px 16px; font-weight: 550; white-space: nowrap; }
.mentions-page .table td { padding: 19px 16px; font-size: .78rem; }
.mentions-page .title-cell a { color: #2d4e40; line-height: 1.65; font-weight: 500; }
.mentions-page .table .empty { padding: 70px 24px; color: #65775f; font-size: .88rem; }
.mentions-page .pager { display: flex; justify-content: center; gap: 20px; align-items: center; font-size: .78rem; padding: 16px; }
.mentions-page .pager a { padding: 10px 14px; border-radius: 9px; background: #e5eddb; }
.detail { padding-top: 12px; }
.detail-hero { background: #e4eddf; border: 0; border-radius: 18px; padding: 28px 32px; margin-bottom: 24px; }
.detail-hero h1 { font-size: clamp(1.6rem,2.5vw,2.3rem); font-weight: 450; line-height: 1.25; max-width: 34ch; overflow-wrap: anywhere; }
.detail-hero .kicker { color: #5c7759; font-size: .68rem; }
.detail-hero .meta { font-size: .73rem; line-height: 1.7; }
.detail-main { background: #fcfdf8; border: 1px solid #e2e8da; border-radius: 18px; padding: 26px; }
.detail-main .notice { margin-top: 0; background: #f0f4df; border: 1px solid #e0e7cd; color: #51623d; padding: 16px; font-size: .77rem; line-height: 1.7; border-radius: 10px; }
.detail-main .kv { grid-template-columns: 145px minmax(0,1fr); font-size: .84rem; line-height: 1.8; }
.detail-main .kv dd { overflow-wrap: anywhere; }
.detail-side .status-form { background: #e8efdc; border-color: #dce6cd; border-radius: 16px; padding: 24px; }
.detail-side .status-form label { font-size: .76rem; }
.detail-side input,.detail-side select { min-width: 0; background: #fafcf3; border-color: #d6e1cd; }
.detail-side .payload { background: #f5f8ef; border: 1px solid #e1e8d9; border-radius: 12px; }
.insight-tabs { gap: 2px; padding: 0; background: none; border-bottom: 1px solid #dde5d6; border-radius: 0; margin-bottom: 18px; width: 100%; max-width: none; }
.insight-tabs a { font-size: .78rem; font-weight: 500; padding: 10px 12px; border-radius: 0; color: #5a6b54; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.insight-tabs a[aria-current="page"] { background: none; color: #294532; box-shadow: none; border-bottom-color: #365a49; }
.insight-tabs a:hover { background: none; color: #2c4a35; }
.insight-note,.insight-rule { color: #617058; line-height: 1.55; font-size: .8rem; }
.insights-page .card { box-shadow: none; border-color: #dde5d6; border-radius: 10px; }
.insight-panel,.steelman-card { padding: 18px 20px; }
.insight-panel h2,.steelman-card h2 { font-family: var(--font); font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.insight-panel header p { font-size: .76rem; line-height: 1.5; }
.insight-empty { padding: 28px 22px; background: #fff; max-width: none; }
.insight-empty h2 { font-family: var(--font); font-size: 1.05rem; font-weight: 600; }
.insight-empty p { max-width: 60ch; font-size: .82rem; line-height: 1.55; margin-top: 8px; }
.insights-page .topic-pills a,.insights-page .topic-pills span { background: #eef2e8; color: #4b6542; padding: 3px 7px; border-radius: 4px; }
.insights-page .ownership-track { background: #e6eddb; height: 6px; border-radius: 3px; }
.insights-page .ownership-track i { background: #5f7a58; border-radius: 3px; }
.insights-page .claim-list { margin: 8px 0 0; background: none; border-radius: 0; }
.insights-page .claim-list article { background: none; }
.insights-page .claim-list p { line-height: 1.5; }
.steelman-card { background: #fff; }
.source-links a { background: none; border-radius: 0; padding: 0; color: #365a49; text-decoration: underline; text-underline-offset: 2px; }
.settings-page .split { gap: 22px; align-items: start; }
.settings-page .panel { padding: 28px; min-width: 0; }
.settings-page .panel > h2 { font-size: 1.1rem; font-weight: 550; margin: 0 0 18px; }
.settings-page .panel > p { font-size: .8rem; line-height: 1.8; overflow-wrap: anywhere; }
.settings-page .panel:nth-child(2) { background: #eaf0df; }
.settings-page .stack { gap: 20px; margin-top: 28px; }
.settings-page .stack label { font-size: .76rem; gap: 9px; }
.settings-page .stack input { background: #f3f6ec; border-color: #dce4d4; min-height: 46px; min-width: 0; width: 100%; }
.settings-page .stack button { justify-self: start; padding: 12px 20px; }
.settings-page .kv { font-size: .8rem; line-height: 1.75; grid-template-columns: 100px minmax(0,1fr); }
.settings-page .danger { margin-top: 20px; background: #f8eee6; color: #8b4835; border: 1px solid #e8cdbf; font-size: .75rem; white-space: normal; }
.settings-audit { margin-top: 36px; }
.settings-audit > h2 { font-size: 1.1rem; margin-bottom: 6px; }
.settings-audit > p { font-size: .78rem; }
.settings-audit .table-wrap { border-radius: 14px; border: 1px solid #e0e7d7; background: #fafcf5; margin-top: 18px; }
.settings-audit .table { margin: 0; }
.methodology-grid { display: grid; grid-template-columns: minmax(0,2fr) minmax(220px,1fr); gap: 20px; }
.methodology-grid .panel { padding: 28px; min-width: 0; }
.methodology-grid .panel:nth-child(2) { background: #e6eebc; }
.methodology-grid .panel:nth-child(n+3) { grid-column: 1 / -1; }
.methodology-grid h2 { font-size: 1.15rem; font-weight: 550; margin: 0 0 16px; }
.methodology-grid p,.methodology-grid li,.methodology-grid .kv { font-size: .85rem; line-height: 1.85; }
.methodology-grid li + li { margin-top: 10px; }
.methodology-grid .kv { grid-template-columns: 180px minmax(0,1fr); gap: 18px 28px; }
.methodology-grid dd { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .narrative-grid { grid-template-columns: 1fr; } .settings-page .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
 .workspace-heading { padding: 8px 0 16px; gap: 12px; } .workspace-heading h1 { font-size: 1.45rem; }
 .mentions-page .filters { padding: 12px; }
 .insight-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; } .insight-tabs a { flex-shrink: 0; }
 .detail-hero { padding: 24px; } .detail-main { padding: 20px; } .detail-main .kv { grid-template-columns: 1fr; }
 .detail-main .kv dd { margin-bottom: 16px; } .methodology-grid { grid-template-columns: 1fr; }
 .methodology-grid .panel { padding: 24px; } .methodology-grid .kv { grid-template-columns: 1fr; gap: 8px; } .methodology-grid dd { margin-bottom: 16px; }
 .settings-page .panel { padding: 24px; } .steelman-grid,.claim-list { grid-template-columns: minmax(0,1fr); }
 .insight-panel,.steelman-card { padding: 22px; } .ownership-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 32px; }
}
@media (max-width: 980px) {
 .mentions-page .table th:nth-child(7),.mentions-page .table td:nth-child(7),.mentions-page .table th:nth-child(8),.mentions-page .table td:nth-child(8) { display: table-cell; }
 .mentions-page .table { min-width: 850px; }
}
