:root {
  --bg: #0a0c10;
  --bg-2: #10141b;
  --panel: #151b24;
  --card: #1c2430;
  --line: #3a4556;
  --text: #f3efe6;
  --muted: #a9b3c0;
  --accent: #e0b34a;
  --accent-2: #3ecf9a;
  --blue: #7eb6e8;
  --warn: #e0a354;
  --danger: #e15b5b;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --radius: 16px;
  --font: Tahoma, "Segoe UI", "Noto Sans Arabic", sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 480px at 100% -10%, rgba(224, 179, 74, 0.16), transparent 55%),
    radial-gradient(1100px 520px at 0% -10%, #1a2030 0%, var(--bg) 58%);
  color: var(--text);
  font-family: var(--font);
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--accent); }

.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-split {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: linear-gradient(180deg, #1a3648, #10202b);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.login-brand {
  padding: 40px 36px;
  background:
    radial-gradient(400px 220px at 0% 0%, rgba(212,179,106,0.22), transparent 70%),
    linear-gradient(160deg, #214556, #10202b);
}
.login-brand h1 { margin: 14px 0 6px; font-size: 34px; letter-spacing: 0.12em; }
.login-points { margin: 22px 0 0; padding: 0 18px 0 0; color: var(--muted); line-height: 1.9; }
.login-card {
  padding: 36px 32px;
  background: #0e1d27;
}
.login-card h2 { margin: 0 0 6px; font-size: 22px; }
.brand-mark {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #8a6b2a); color: #1a1406; font-weight: 800;
}
.brand-mark.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 13px; }
.brand-mark.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
label { display: block; margin: 14px 0; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%; margin-top: 6px; background: #0b1922; color: var(--text);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(212, 179, 106, 0.35); border-color: var(--accent); }
input[type="checkbox"] { width: auto; margin: 4px 0 0; accent-color: var(--accent); }
textarea { min-height: 88px; resize: vertical; }
.clean-opt { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--text); margin: 0; }
.clean-opt span { flex: 1; }
.clean-opt .n { color: var(--accent); font-weight: 700; min-width: 2ch; text-align: left; }
.hint { font-size: 12px; color: var(--muted); margin-top: 16px; }

.shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar {
  background: rgba(8, 20, 28, 0.96); border-left: 1px solid var(--line);
  padding: 18px 12px; display: flex; flex-direction: column; gap: 16px;
}
.sidebar-brand { display: flex; gap: 10px; align-items: center; padding: 6px 8px 14px; }
.sidebar-brand span { display: block; color: var(--muted); font-size: 12px; }
nav { display: flex; flex-direction: column; gap: 4px; flex: 1; overflow: auto; }
.nav-h { color: var(--muted); font-size: 11px; padding: 14px 12px 4px; letter-spacing: 0.06em; text-transform: uppercase; }
nav button {
  text-align: right; background: transparent; color: var(--text); border: 0;
  border-radius: 10px; padding: 9px 12px; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; gap: 10px;
}
nav button .ni {
  width: 8px; height: 8px; border-radius: 50%; background: #3a5566; flex: 0 0 8px;
}
nav button:hover { background: #173445; }
nav button.active { background: linear-gradient(90deg, #1d3d4c, #173445); color: var(--accent); }
nav button.active .ni { background: var(--accent); }
nav button[data-page="doctor"] { color: var(--accent); font-weight: 700; }
nav button[data-page="doctor"] .ni { background: var(--accent); }
.sidebar-foot { display: flex; flex-direction: column; gap: 8px; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 24px 10px; gap: 12px;
  border-bottom: 1px solid rgba(44, 74, 94, 0.45);
}
.topbar h2 { margin: 0; font-size: 22px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.content { padding: 16px 24px 48px; }
.content h3 { margin: 22px 0 10px; font-size: 16px; font-weight: 700; }

.grid { display: grid; gap: 14px; }
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grid.two { grid-template-columns: 1.1fr 0.9fr; }
.card {
  background: linear-gradient(180deg, #183344, #122633);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 26px; margin-top: 6px; font-weight: 700; }

.page-hero {
  display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 16px;
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(212,179,106,0.16), transparent 62%),
    linear-gradient(120deg, #214556 0%, #152b3c 60%, #10202b 100%);
}
.page-hero h3 { margin: 4px 0 6px; font-size: 22px; }
.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.mod {
  cursor: pointer; min-height: 118px;
  border: 1px solid var(--line);
  transition: transform 0.08s ease, border-color 0.12s ease;
}
.mod:hover { transform: translateY(-2px); border-color: var(--accent); }
.mod .label { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.mod h4 { margin: 0 0 6px; font-size: 16px; }
.mod p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.mod.doctor { border-color: #8a6b2a; }

.btn {
  border: 1px solid var(--line); background: #173445; color: var(--text);
  border-radius: 10px; padding: 9px 14px; cursor: pointer; transition: transform 0.08s ease, filter 0.12s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
a.btn { display: inline-block; text-decoration: none; text-align: center; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #1a1406; font-weight: 700; }
.btn.ok { background: var(--accent-2); border-color: var(--accent-2); color: #042214; font-weight: 700; }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.danger { background: #4a1f1f; border-color: #7a3030; color: #ffd0d0; }
.btn.active { background: var(--accent); border-color: var(--accent); color: #1a1406; font-weight: 700; }
.reply-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px; }
.reply-chips .btn { font-size: 12px; padding: 4px 10px; }
.reply-chips input { background: #10202b; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; }
.reply-ask {
  position: fixed; inset: 0; z-index: 40; background: rgba(6, 12, 18, 0.55);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.reply-ask[hidden] { display: none; }
.reply-ask-card {
  background: #10202b; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px; max-width: 520px; width: 100%; box-shadow: var(--shadow);
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.chip-row { gap: 6px; }
.sector-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 18px 0 8px; }
.sector-h h3 { margin: 0; font-size: 16px; }
.sector-block { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.warn-txt { color: var(--warn); }
.plan-hero .plan-quote {
  font-size: 17px; line-height: 1.85; margin: 8px 0 16px;
}
.plan-num { font-weight: 800; color: var(--accent); font-size: 18px; width: 2.2em; }
.plan-row:first-child td { background: rgba(224, 179, 74, 0.08); }
.doc-kicker { color: var(--accent); font-size: 12px; letter-spacing: 0.08em; }
.act-wrap { position: relative; display: inline-block; }
.act-menu {
  position: absolute; left: 0; top: calc(100% + 4px); min-width: 160px; z-index: 12;
  background: #10202b; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 4px; display: none;
}
.act-wrap.open .act-menu { display: block; }
.act-menu button {
  display: block; width: 100%; text-align: right; background: transparent; border: 0;
  color: inherit; padding: 8px 12px; cursor: pointer; border-radius: 8px; font: inherit;
}
.act-menu button:hover { background: #173445; }
.act-menu button.danger { color: #ffd0d0; }
.chip, .pill { font-size: 12px; border-radius: 999px; padding: 6px 10px; border: 1px solid var(--line); background: #12303c; }
.pill.ok { color: #b6f5d4; border-color: #1dbf73; }
.prio { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.prio.CRITICAL, .prio.HIGH { background: #4a1f1f; color: #ffd0d0; }
.prio.MEDIUM { background: #4a3a16; color: #ffe0ad; }
.prio.LOW { background: #16361f; color: #b6f5d4; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; }
.th-filter { position: relative; white-space: nowrap; vertical-align: middle; }
.th-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; color: inherit; font: inherit; font-weight: 600;
  cursor: pointer; padding: 2px 4px; border-radius: 8px;
}
.th-btn:hover { background: #173445; color: var(--text); }
.th-btn.on { color: var(--accent); }
.th-funnel { flex: 0 0 auto; opacity: 0.75; }
.th-btn.on .th-funnel { opacity: 1; color: var(--accent); }
.th-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 22;
  min-width: 230px; max-width: 280px; max-height: 300px; overflow: auto;
  background: #10202b; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); padding: 8px; text-align: right;
}
.th-menu input { width: 100%; margin: 0 0 8px; }
.th-opt {
  display: block; width: 100%; text-align: right; background: transparent; border: 0;
  color: inherit; padding: 7px 10px; cursor: pointer; border-radius: 8px; font: inherit;
}
.th-opt:hover, .th-opt.on { background: #173445; }
.th-opt.on { color: var(--accent); }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: #173445; }

.muted { color: var(--muted); }
.error { color: #ffb4b4; }
.ok { color: #b6f5d4; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toast {
  position: fixed; bottom: 18px; left: 18px; background: #173445; border: 1px solid var(--line);
  padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow); z-index: 20;
}
[hidden] { display: none !important; }

.kanban { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: start; }
.kanban-col { background: #10202b; border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 180px; }
.kanban-col h4 { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.kanban-card { background: #173445; border-radius: 10px; padding: 8px; margin-bottom: 8px; cursor: grab; font-size: 13px; }
.timeline { border-right: 2px solid var(--line); margin: 8px 10px; padding: 0 16px; }
.timeline .item { margin: 0 0 14px; }
.timeline .when { font-size: 12px; color: var(--muted); }

.inbox { display: grid; grid-template-columns: 280px 1fr 260px; gap: 12px; min-height: 64vh; }
.list { overflow: auto; max-height: 68vh; }
.list-item { padding: 10px; border-radius: 10px; cursor: pointer; }
.list-item:hover, .list-item.active { background: #173445; }
.bubbles { display: flex; flex-direction: column; gap: 8px; min-height: 240px; }
.bubble { max-width: 80%; padding: 10px 12px; border-radius: 14px; }
.bubble.in { align-self: flex-start; background: #1a3847; }
.bubble.out { align-self: flex-end; background: #0f5a3a; }
.composer { display: flex; gap: 8px; margin-top: 10px; }
.composer input { flex: 1; }
.msg-preview {
  white-space: pre-wrap; background: #0b1922; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px; max-height: 240px; overflow: auto; color: var(--text); font-size: 13px;
}

.doctor-page { display: grid; gap: 16px; }
.doc-kicker {
  display: inline-block; font-size: 11px; letter-spacing: 0.14em; color: #1a1406;
  background: linear-gradient(90deg, var(--accent), #f0d59a); padding: 4px 10px; border-radius: 999px;
  font-weight: 800; margin-bottom: 8px;
}
.hero-tag { font-size: 18px; margin: 6px 0 4px; color: #fff; font-weight: 700; }
.doc-steps {
  list-style: none; margin: 0; padding: 12px; display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px;
  background: #10202b; border: 1px solid var(--line); border-radius: 16px;
}
.doc-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  color: var(--muted); font-size: 11px; padding: 8px 4px; border-radius: 12px;
}
.doc-steps li b {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: #0b1922; font-size: 12px;
}
.doc-steps li.done { color: #b6f5d4; }
.doc-steps li.done b { background: #1fb887; color: #042214; border-color: #1fb887; }
.doc-steps li.now { color: var(--accent); background: rgba(212, 179, 106, 0.08); }
.doc-steps li.now b { background: var(--accent); color: #1a1406; border-color: var(--accent); }
.doc-block {
  background: linear-gradient(180deg, #183344, #122633);
  border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 18px;
}
.doc-block > h3 {
  margin: 0 0 10px; font-size: 18px; color: var(--accent);
  border-right: 4px solid var(--accent); padding-right: 10px;
}
.doc-total { font-weight: 800; color: #ffd37a; }
.doc-foot { margin: 8px 0 0; }

.doctor-hero {
  display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap;
  background:
    radial-gradient(500px 180px at 100% 0%, rgba(212,179,106,0.18), transparent 60%),
    linear-gradient(120deg, #214556 0%, #152b3c 55%, #10202b 100%);
  padding: 26px 22px;
  border: 1px solid #3d5d70;
  box-shadow: var(--shadow);
}
.doctor-hero h3 { margin: 0 0 6px; font-size: 22px; }
.doctor-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.score-wrap {
  position: relative; width: 148px; height: 148px; flex: 0 0 148px;
}
.score-svg { width: 148px; height: 148px; transform: rotate(-90deg); }
.score-svg .track, .score-svg .bar {
  fill: none; stroke-width: 10; stroke-linecap: round;
}
.score-svg .track { stroke: #243e4e; }
.score-svg .bar { stroke: #5a7180; transition: stroke-dasharray 0.4s ease; }
.score-wrap.ok .bar { stroke: #2ea44f; }
.score-wrap.warn .bar { stroke: #d29922; }
.score-wrap.bad .bar { stroke: #f85149; }
.score-wrap.na .bar { stroke: #3a5566; }
.score-label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
}
.score-label .num { font-size: 28px; font-weight: 800; line-height: 1; }

.xray { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.xray-card { min-height: 140px; }
.xray-card h4 { margin: 0 0 6px; font-size: 14px; }
.xray-card .score { font-size: 28px; font-weight: 800; }
.xray-card.ISSUE { border-color: #a56b2b; }
.xray-card.READY { border-color: #2a6b4a; }
.xray-card.INSUFFICIENT { opacity: 0.92; }
.xray-card.HIGH, .xray-card.CRITICAL { box-shadow: inset 4px 0 0 #e15b5b; }
.xray-card.MEDIUM { box-shadow: inset 4px 0 0 #e0a354; }
.xray-card.LOW { box-shadow: inset 4px 0 0 #1fb887; }
.plan-pill { font-size: 12px; }
.table tr.active-row { background: #173445; }

.findings { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.finding { border-right: 4px solid var(--line); padding: 14px 16px; }
.finding header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.finding h4 { margin: 0; font-size: 16px; }
.finding dl { margin: 10px 0 0; display: grid; gap: 8px; }
.finding dt { color: var(--accent); font-size: 12px; }
.finding dd { margin: 2px 0 0; font-size: 13px; line-height: 1.55; }
.finding.HIGH, .finding.CRITICAL { border-right-color: #e15b5b; }
.finding.MEDIUM { border-right-color: #e0a354; }
.finding.LOW { border-right-color: #1fb887; }
.sev { font-size: 11px; border-radius: 999px; padding: 3px 8px; border: 1px solid var(--line); }
.sev.HIGH, .sev.CRITICAL { background: #4a1f1f; color: #ffd0d0; }
.sev.MEDIUM { background: #4a3a16; color: #ffe0ad; }
.sev.LOW { background: #16361f; color: #b6f5d4; }
.section-note { margin: 0 0 12px; }

.locked-card { opacity: 0.85; }
.doc-actions { margin-top: 0; }
.plan-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 4px; }
.plan-col {
  display: grid; gap: 10px; align-content: start;
  background: #0d1c26; border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  min-height: 160px;
}
.plan-col h4 { margin: 0; font-size: 14px; }
.plan-col.h30 { border-top: 5px solid #e15b5b; }
.plan-col.h60 { border-top: 5px solid #e0a354; }
.plan-col.h90 { border-top: 5px solid #1fb887; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 1fr; }
  .login-split, .inbox, .grid.two, .form-grid, .plan-board, .doc-steps { grid-template-columns: 1fr; }
}

.doc-ask-form { display: grid; gap: 8px; margin: 8px 0 12px; }
.doc-ask-form textarea {
  width: 100%; min-height: 72px; resize: vertical; padding: 10px 12px;
  border-radius: 12px; border: 1px solid var(--line); background: #0b1922; color: inherit;
  font: inherit;
}
.doc-ask-log { display: grid; gap: 10px; }
.doc-ask-log .q { margin-bottom: 6px; }

.doc-share-card { display: grid; gap: 8px; }
.doc-share-card .kpi .value { font-size: 42px; }
.doc-share-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.doc-share-cats li, .doc-share-card ul li { display: flex; justify-content: space-between; gap: 8px; }
.doc-share-card input { width: 100%; }

.doc-plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.doc-plan-card.now { outline: 2px solid #3d8bfd; }
.doc-plan-card ul { margin: 8px 0; padding-inline-start: 18px; font-size: 13px; }
@media (max-width: 1100px) { .doc-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* —— UI polish (visual only) —— */
html { color-scheme: dark; }
::selection { background: rgba(212, 179, 106, 0.35); color: #fff; }
body { letter-spacing: 0.01em; }
.login-eyebrow {
  margin: 18px 0 0; font-size: 11px; letter-spacing: 0.18em; color: var(--accent); font-weight: 700;
}
.login-card .btn.primary { padding: 12px 16px; font-size: 15px; margin-top: 8px; }
.login-card input { padding: 12px 14px; }
.sidebar { position: sticky; top: 0; height: 100vh; }
.sidebar-brand strong { letter-spacing: 0.08em; }
nav { scrollbar-width: thin; scrollbar-color: #2c4a5e transparent; }
.topbar {
  position: sticky; top: 0; z-index: 8;
  background: rgba(7, 16, 24, 0.82);
  backdrop-filter: blur(12px);
}
.content { max-width: 1320px; }
.card { box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18); }
.card.kpi { padding: 14px 16px 16px; }
.card.kpi .value { letter-spacing: -0.02em; }
.table { background: transparent; }
.card .table { display: block; overflow-x: auto; }
.table tbody tr:nth-child(even) { background: rgba(7, 16, 24, 0.28); }
.toolbar .btn { white-space: nowrap; }
.locked-card {
  border-style: dashed;
  background: repeating-linear-gradient(-45deg, #10202b, #10202b 10px, #122633 10px, #122633 20px);
}
.doc-steps { overflow-x: auto; }
.toast { z-index: 40; border-color: var(--accent); }
.chip { background: #0f2a36; }
#license-pill { text-align: center; }
.is-app .login-wrap { display: none !important; }

.dropzone {
  position: relative;
  overflow: hidden;
  border: 2px dashed var(--accent);
  border-radius: 18px;
  padding: 32px 18px;
  text-align: center;
  cursor: pointer;
  background: rgba(224, 179, 74, 0.07);
  margin: 12px 0 18px;
}
.dropzone.lg { padding: 52px 22px; }
.dropzone.over { background: rgba(224, 179, 74, 0.16); border-style: solid; }
.dropzone strong { display: block; font-size: 18px; margin-bottom: 6px; }
.dropzone input[type="file"] {
  position: absolute; inset: 0; opacity: 0; cursor: pointer;
  width: 100%; height: 100%; margin: 0; padding: 0; border: 0;
  background: transparent;
}

.global-search input {
  min-width: 180px;
  background: #1a1f27;
  border: 1px solid #2c3340;
  color: inherit;
}
.bell-wrap { position: relative; }
.badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  margin-inline-start: 6px;
  border-radius: 999px;
  background: #e0b34a;
  color: #1a1408;
  font-size: 12px;
  font-weight: 700;
}
.bell-panel {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  width: min(360px, 80vw);
  max-height: 420px;
  overflow: auto;
  background: #161b22;
  border: 1px solid #2c3340;
  border-radius: 14px;
  padding: 8px;
  z-index: 40;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.bell-item {
  display: block;
  width: 100%;
  text-align: start;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}
.bell-item:hover { background: rgba(224,179,74,.1); }
.bell-item.read { opacity: .55; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.li-paste textarea { min-height: 140px; }
.li-results { margin-top: 10px; overflow: auto; }
.ops-tabs { margin: 0 0 16px; }

/* —— palette 2.0.3 (visual only) —— */
.login-split {
  background: linear-gradient(180deg, #1c2433, #121820);
  border-color: var(--line);
}
.login-brand {
  background:
    radial-gradient(400px 220px at 0% 0%, rgba(224,179,74,0.22), transparent 70%),
    linear-gradient(160deg, #243044, #121820);
}
.login-card { background: #121820; }
.sidebar { background: rgba(10, 12, 16, 0.96); border-left-color: var(--line); }
nav button:hover { background: #1e2b3a; }
nav button.active { background: linear-gradient(90deg, #2a3548, #1e2b3a); }
.card, .doc-block {
  background: linear-gradient(180deg, #1e2836, #161d28);
  border-color: var(--line);
}
.page-hero, .doctor-hero {
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(224,179,74,0.16), transparent 62%),
    linear-gradient(120deg, #243044 0%, #1b2330 60%, #121820 100%);
}
.btn { background: #1e2b3a; border-color: var(--line); }
input, select, textarea { background: #0e141c; border-color: var(--line); }
.chip, .pill { background: #1a2430; }
.kanban-col, .doc-steps, .plan-col { background: #121820; border-color: var(--line); }
.kanban-card, .list-item:hover, .list-item.active, .table tr.clickable:hover, .table tr.active-row { background: #1e2b3a; }
.bubble.in { background: #243044; }
.topbar { background: rgba(10, 12, 16, 0.86); }
.locked-card {
  background: repeating-linear-gradient(-45deg, #121820, #121820 10px, #161d28 10px, #161d28 20px);
}

@media (max-width: 1400px) {
  .doc-steps { grid-template-columns: repeat(6, minmax(72px, 1fr)); }
}
@media (max-width: 720px) {
  .login-wrap { padding: 12px; }
  .login-split { border-radius: 18px; }
  .login-brand, .login-card { padding: 24px 20px; }
  .content { padding: 12px 14px 40px; }
  .topbar { padding: 12px 14px; }
  .sidebar { height: auto; position: relative; border-left: 0; border-bottom: 1px solid var(--line); }
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-plan-grid { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
}

.chips { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0 18px; }

.prog {
  height: 16px;
  background: #0b1922;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}
.prog > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.15s linear;
}
.imp-now { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.imp-sample { font-size: 12px; color: var(--muted); }

.pager { display: flex; gap: 10px; align-items: center; margin: 10px 0 14px; flex-wrap: wrap; }
.pager .btn[disabled] { opacity: 0.4; pointer-events: none; }
#lead-q { max-width: 320px; margin: 0; }

.drive-login { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.drive-login .btn { margin-top: 8px; }

.sec-tools { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px 6px; }
.sec-tools .btn { padding: 7px 10px; font-size: 12px; }

#mail-preview textarea { width: 100%; min-height: 220px; margin: 8px 0; }

#sec-group-panel select { min-width: 160px; }
#sec-group-panel .toolbar { flex-wrap: wrap; }
.chip-row .btn.active { outline: 2px solid var(--accent, #0b6); }

.sec-bundle { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0 10px 8px 0; padding: 4px 8px; border: 1px solid var(--line, #ddd); border-radius: 10px; }
.sec-bundle-h { font-size: 11px; opacity: 0.75; margin-inline-end: 4px; white-space: nowrap; }

.sec-edit-row { display: grid; grid-template-columns: 110px 1fr 2fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.sec-edit-row input { width: 100%; }
.sec-edit-row .sec-id[readonly] { opacity: 0.7; }
@media (max-width: 800px) {
  .sec-edit-row { grid-template-columns: 1fr; }
}

.sec-edit-row.is-hidden { opacity: 0.45; }

#wa-blast textarea { width: 100%; min-height: 140px; margin: 8px 0; }
#desk-sec { min-width: 220px; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th, table.grid td { border-bottom: 1px solid #e8e4dc; padding: 6px 8px; text-align: right; }
table.grid th { color: #6b6458; font-weight: 600; }

.sector-preview-overlay {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(8,10,14,.72);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 24px 12px; overflow: auto;
}
.sector-preview-card { width: min(1100px, 100%); max-height: none; }
