/* 0.6: calm surfaces for reading, glass for navigation and transient controls. */
:root {
  --bg: #070e1b;
  --panel: #101c2d;
  --line: rgba(152, 183, 219, .15);
  --muted: #a0b1c7;
  --text: #edf3fb;
  --cyan: #67dedf;
  --radius: 20px;
}
body {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  background: radial-gradient(ellipse at 74% -15%, #153656 0, transparent 48%), radial-gradient(ellipse at 0% 90%, #0b2733 0, transparent 48%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { line-height: 1.25; letter-spacing: -.035em; }
h2 { font-size: 21px; line-height: 1.4; letter-spacing: -.025em; }
h3 { font-size: 16px; line-height: 1.45; }
p { margin: 12px 0 18px; }
small { line-height: 1.6; }
.sidebar {
  background: rgba(10, 20, 34, .83);
  backdrop-filter: blur(24px) saturate(125%);
  -webkit-backdrop-filter: blur(24px) saturate(125%);
  border-right-color: rgba(190, 215, 246, .11);
  box-shadow: 12px 0 60px rgba(0, 0, 0, .12);
  padding-top: 23px;
}
.brand { margin-bottom: 18px; gap: 8px; }
.brand-copy { white-space: normal; }
.brand-copy b { display: block; font-size: 13px; line-height: 1.35; }
.brand-copy small { font-size: 10px; line-height: 1.4; }
.brand-mark.small { flex: 0 0 32px; width: 32px; height: 34px; }
.sidebar-collapse { width: 23px; }
.nav-group-toggle { gap: 7px; font-size: 12px; }
.nav-group-toggle span { width: 17px; min-width: 17px; }
.nav-group-toggle b { min-width: 0; }
.nav-group-toggle i { flex: 0 0 auto; }
.brand-mark { box-shadow: 0 8px 24px rgba(25, 167, 220, .18), inset 0 1px rgba(255,255,255,.25); }
nav { gap: 7px; }
nav button { min-height: 42px; border-radius: 11px; letter-spacing: .005em; }
nav button.active { background: linear-gradient(110deg, rgba(45,125,185,.30), rgba(29,92,130,.18)); box-shadow: inset 0 0 0 1px rgba(110,194,239,.17); }
.main { min-width: 0; padding: 28px clamp(20px, 2.6vw, 44px) 40px; }
.topbar { gap: 24px; margin-bottom: 28px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(19,34,53,.52); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.topbar h1 { margin: 0 0 5px; font-size: clamp(23px, 2vw, 30px); }
.topbar p { margin: 0; line-height: 1.55; }
.top-actions { flex-wrap: wrap; gap: 14px; }
.card { background: #101d2e; border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); box-shadow: 0 12px 35px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.025); }
.card h2, .card h3 { margin: 0 0 14px; }
.card > p:last-child { margin-bottom: 0; }
.btn { min-height: 40px; padding: 9px 15px; border-radius: 11px; font-weight: 600; line-height: 1.4; white-space: normal; transition: background .18s, border-color .18s, box-shadow .18s; }
.btn:hover { transform: none; border-color: rgba(160,200,234,.4); box-shadow: 0 4px 15px rgba(0,0,0,.12); }
.btn.primary { background: linear-gradient(135deg, #2088ce, #1671b6); border-color: #3a9bd9; box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 6px 20px rgba(16,116,186,.15); }
.btn.success { background: #123f3e; color: #9bedcf; border-color: #28625b; }
.btn.danger { background: rgba(123,44,63,.17); border-color: rgba(209,105,122,.25); color: #f4a4b1; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.toolbar { gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.actions { gap: 10px; margin-top: 16px; flex-wrap: wrap; }
label { line-height: 1.5; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-height: 44px; padding: 11px 13px; border: 1px solid #2b4059; border-radius: 11px; background: #0b1726; color: var(--text); line-height: 1.5; }
textarea { padding: 14px; }
input::placeholder, textarea::placeholder { color: #7489a3; }
input[type=checkbox] { appearance: auto; width: 17px; height: 17px; min-height: 0; margin: 0; accent-color: #4dc6d1; flex: 0 0 auto; }
.permission, .form-grid .permission { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: #101f31; }
.form-grid { gap: 20px; }
.form-grid label:not(.permission):not(.country-option) { gap: 8px; color: #becde0; font-size: 13px; font-weight: 600; }
.form-grid .wide { min-width: 0; }
.stat { padding: 21px; background: #101f31; border: 1px solid var(--line); border-radius: 16px; }
.stat small { display: block; margin-bottom: 12px; }
.stat strong { letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.grid.stats { gap: 16px; margin-bottom: 24px; }
.trend-table th, .user-table th { padding: 15px 17px; font-size: 11px; line-height: 1.5; letter-spacing: .08em; color: #8ca7c2; text-transform: uppercase; }
.trend-table td, .user-table td { padding: 18px 17px; line-height: 1.55; vertical-align: middle; }
.trend-table .trend-topic { min-width: 220px; }
.trend-table .trend-topic b { font-size: 14px; line-height: 1.6; font-weight: 600; }
.trend-table .trend-topic small { display: block; margin-top: 6px; }
.score { min-width: 42px; padding: 5px 10px; font-size: 16px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.badge { border-radius: 7px; padding: 5px 8px; line-height: 1.4; font-size: 11px; }
.split { grid-template-columns: 245px minmax(0,1fr) 310px; gap: 18px; }
.split > *, .source-copy, .claim-copy { min-width: 0; }
.queue { padding: 0; }
.queue h3 { padding: 19px; margin: 0; }
.queue-item { padding: 17px; }
.queue-item b { margin: 9px 0; line-height: 1.55; font-size: 13px; font-weight: 600; }
.queue-item.selected { background: linear-gradient(110deg,#15334a,#10283e); box-shadow: inset 3px 0 #65d2df; }
.workflow-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(19,41,61,.6); font-size: 12px; color: #a5b9cf; }
.workflow-strip b { color: #9be6e6; font-weight: 600; }
.workflow-strip i { font-style: normal; color: #54718d; }
.case-hero { padding: 26px; }
.case-hero h2 { margin-top: 12px; margin-bottom: 16px; font-size: 23px; line-height: 1.4; }
.case-hero p { line-height: 1.8; color: #b3c5d9; }
.case-tabs-card { padding: 0; overflow: hidden; }
.tabs { gap: 5px; padding: 10px 13px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 0; }
.tabs button { white-space: nowrap; padding: 10px 12px; border-radius: 9px; border-bottom: 0; font-size: 12px; }
.tabs button.active { background: rgba(80,173,206,.12); color: #9de6eb; }
#caseTabContent { padding: 25px; }
#caseTabContent h3 { margin-bottom: 15px; }
#caseTabContent p, #caseTabContent li, .report-section p, .report-section li { line-height: 1.85; }
.analysis-block { margin: 18px 0; padding: 18px; border-radius: 12px; }
.analysis-block ul { padding-left: 22px; margin: 12px 0 0; }
.analysis-block li + li { margin-top: 9px; }
.claim-row { grid-template-columns: 26px minmax(0,1fr); padding: 19px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; align-items: start; background: transparent; }
.claim-row > .result { grid-column: 2; width: fit-content; margin-top: 2px; }
.claim-copy b { display: block; font-weight: 600; line-height: 1.7; }
.claim-copy > small { display: block; margin-top: 11px; font-size: 13px; line-height: 1.8; }
.claim-sources { margin-top: 14px; gap: 9px; }
.claim-sources a { line-height: 1.6; padding: 8px 10px; }
.source-card { padding: 20px 0; gap: 15px; }
.source-meta { gap: 9px; margin-bottom: 12px; line-height: 1.6; }
.source-copy h3 { line-height: 1.6; font-size: 15px; }
.source-copy p { line-height: 1.85; }
.source-url { display: block; margin-top: 10px; overflow-wrap: anywhere; }
.source-row { gap: 14px; padding: 18px; align-items: start; }
.source-row small { display: block; margin-top: 7px; }
.inspector { display: grid; gap: 16px; }
.report-card { padding: 0; }
.report-tabs { padding: 8px; gap: 4px; }
.report-tabs button { min-width: 0; font-size: 12px; padding: 11px 6px; }
.report-tabs button.active { background: #20435d; box-shadow: inset 0 1px rgba(255,255,255,.07); }
.report-tabs button:only-child { grid-column: 1 / -1; }
#reportContent { padding: 22px; }
.report-section h2 { font-size: 17px; line-height: 1.5; }
.report-section .verdict { display: block; font-size: 15px; line-height: 1.6; padding: 15px; border-radius: 11px; }
.report-section .verdict span { display: block; color: #95c5d2; font-size: 13px; margin-top: 6px; }
.report-section .analysis-block { padding: 14px; }
.report-source { color: #93dfe6; font-size: 12px; line-height: 1.7; padding: 11px; }
.article-body { max-width: 820px; margin: 24px auto; font-size: 16px; line-height: 1.9; }
.article-body p { margin-bottom: 20px; }
.article-card { cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.article-card:hover { border-color: #3c627e; box-shadow: 0 15px 40px rgba(0,0,0,.2); }
.article-card h2 { margin: 18px 0 12px; }
.chat-head { padding: 3px 5px 18px; }
.message { white-space: normal; padding: 18px 21px; line-height: 1.8; border-radius: 16px; box-shadow: none; }
.message.assistant { background: #14283d; border-color: #2b415a; }
.message.user { background: #1763a0; border-color: #287bb8; }
.chat-compose { margin-top: 16px; padding: 12px; border-radius: 16px; background: #0b1726; }
.chat-compose textarea { min-height: 58px; border: 0; background: transparent; }
.chat-search input { min-height: 0; }
dialog { width: min(860px, 94vw); max-height: 92dvh; border-radius: 24px; }
dialog::backdrop { background: rgba(2,8,17,.73); backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.modal-card { padding: 32px; border-color: rgba(159,197,234,.22); border-radius: 24px; background: linear-gradient(135deg,rgba(27,47,68,.97),rgba(12,27,44,.98)); box-shadow: 0 35px 100px rgba(0,0,0,.5), inset 0 1px rgba(255,255,255,.06); }
.modal-card h2 { padding-right: 30px; font-size: 24px; margin: 0 0 12px; }
.modal-card > p, .modal-card > form { margin-top: 20px; }
.modal-close { top: 18px; right: 18px; width: 32px; height: 32px; display: grid; place-items: center; line-height: 1; border-radius: 9px; background: rgba(255,255,255,.04); }
.cost-note { border: 0; padding: 0; margin: 0 0 22px; background: none; color: #9db5cb; font-size: 13px; line-height: 1.7; }
.country-picker { border: 1px solid #30455c; border-radius: 15px; background: #0e1b2b; overflow: hidden; }
.country-picker-top { display: flex; align-items: end; gap: 16px; padding: 16px; }
.country-search-label { flex: 1; min-width: 0; display: grid; gap: 7px; color: #9cafc5; font-size: 12px; font-weight: 500; }
.country-search-label input { width: 100%; }
.country-total { color: #8fdddf; font-size: 12px; white-space: nowrap; padding-bottom: 12px; font-variant-numeric: tabular-nums; }
.country-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; max-height: 110px; overflow-y: auto; }
.country-chips button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid #305967; border-radius: 7px; padding: 5px 9px; background: #17323f; color: #a4e4e6; font-size: 12px; cursor: pointer; }
.country-chips button:hover { background: #204c58; }
.country-chips button span { color: #82a7b8; }
.country-placeholder { color: #6f869e; font-size: 12px; }
.country-picker-body { display: grid; grid-template-columns: 185px minmax(0,1fr); border-top: 1px solid var(--line); min-height: 240px; }
.country-groups { padding: 10px; border-right: 1px solid var(--line); background: #101f30; }
.country-groups button { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 1px solid transparent; background: transparent; color: #9eb1c7; padding: 10px; margin-bottom: 4px; border-radius: 8px; font-size: 12px; line-height: 1.5; text-align: left; cursor: pointer; }
.country-groups button span { font-size: 11px; color: #7894ad; }
.country-groups button[aria-pressed=true] { color: #dcf5fa; border-color: #2d4b63; background: #1b3449; }
.country-choices { padding: 12px; min-width: 0; }
.country-bulk { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 0 5px 10px; }
.country-bulk button { background: transparent; border: 0; color: #8ccedb; font-size: 11px; cursor: pointer; padding: 4px 0; }
.country-bulk button:hover { text-decoration: underline; }
.country-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; max-height: 280px; min-height: 110px; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: #36566f transparent; }
.country-option, .form-grid label.country-option { display: flex; align-items: center; gap: 9px; padding: 10px; min-height: 43px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; color: #b9c8da; font-size: 12px; font-weight: 400; }
.country-option:hover { background: #182e43; }
.country-option.is-selected { border-color: #294f60; background: #162f3c; color: #d3f4f3; }
.country-option > span:not(.country-check) { min-width: 0; overflow-wrap: anywhere; }
.country-check { margin-left: auto; color: #70d7d8; opacity: 0; }
.country-option.is-selected .country-check { opacity: 1; }
.country-empty { grid-column: 1/-1; padding: 15px; font-size: 13px; color: var(--muted); }
.topic-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.topic-toggles .permission { padding: 10px 15px; }
.form-caption { margin: 8px 0 0; color: #8ba3bd; font-size: 12px; line-height: 1.65; }
.toast { background: #183349; box-shadow: 0 15px 50px #0005; max-width: min(460px,90vw); line-height: 1.6; }
.search-result-summary { margin-bottom: 20px; border-color: #2c536a; }
.search-result-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.search-result-heading h2 { margin: 8px 0 0; }
.search-result-heading label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.discovery-evidence { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 22px; }
.discovery-evidence h3 { margin-bottom: 12px; }
.discovery-evidence p { font-size: 13px; line-height: 1.8; }
@media(min-width:1550px) { .split { grid-template-columns: 270px minmax(0,1fr) 335px; } }
@media(max-width:1300px) { .split { grid-template-columns: 215px minmax(0,1fr); } .inspector { grid-column: 2; } .queue { grid-row: span 2; } }
@media(max-width:950px) { .topbar { align-items: start; flex-direction: column; gap: 15px; } .split { grid-template-columns: minmax(0,1fr); } .queue { grid-row: auto; max-height: 235px; overflow: auto; } .inspector { grid-column: 1; } }
@media(max-width:760px) { .main { padding: 17px 13px 30px; } .card { padding: 19px; } .case-tabs-card,.queue,.report-card { padding: 0; } .topbar { padding: 19px; } .modal-card { padding: 24px 18px; } .modal-card h2 { font-size: 21px; } .form-grid { grid-template-columns: 1fr; gap: 16px; } .country-picker-body { grid-template-columns: 1fr; } .country-groups { display: flex; overflow-x: auto; gap: 6px; padding: 9px; border-right: 0; border-bottom: 1px solid var(--line); } .country-groups button { width: auto; flex-shrink: 0; white-space: nowrap; padding: 8px 10px; margin: 0; } .country-list { max-height: 225px; } .country-picker-top { gap: 10px; padding: 12px; } .country-chips { padding: 0 12px 12px; } .country-option,.form-grid label.country-option { padding: 9px 6px; font-size: 12px; } #caseTabContent { padding: 20px; } .message { padding: 15px 17px; max-width: 94%; } .chat-head { align-items: start; flex-direction: column; } .source-row { grid-template-columns: 24px minmax(0,1fr); } .source-row > .btn { grid-column: 2; justify-self: start; } .article-body { font-size: 15px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
