/* ===== Atlas IT — Design tokens (light shell, yellow accent, dark topbar) ===== */
:root{
  --ink-900:#0f1115;
  --ink-800:#1a1d22;
  --ink-700:#2b3038;
  --ink-600:#475063;
  --ink-500:#6b7589;
  --ink-400:#8b94a6;
  --ink-300:#b3bbc9;
  --ink-200:#d8dde6;
  --ink-100:#eaedf2;
  --ink-50:#f4f6f9;

  /* Topbar charcoal */
  --top-bg:#0f1115;
  --top-fg:#e7e9ee;
  --top-muted:#8b94a6;

  /* Brand yellow accent */
  --accent:#FFC83D;
  --accent-600:#E8B021;
  --accent-700:#C99404;
  --accent-50:#FFF7DC;
  --accent-100:#FFEFB5;

  --bg:#ffffff;
  --surface:#ffffff;
  --surface-alt:#f7f8fb;
  --sidebar-bg:#ffffff;
  --sidebar-hover:#f4f6f9;
  --sidebar-active:#FFF7DC;
  --border:#eaedf2;
  --border-strong:#d8dde6;

  --green-700:#0f6b4a;
  --green-500:#10915f;
  --green-100:#d8efe3;
  --green-50:#ecf7f1;

  --amber-700:#92590a;
  --amber-500:#c98410;
  --amber-100:#fbe9c4;
  --amber-50:#fdf5e2;

  --red-700:#9b1c1c;
  --red-500:#c63838;
  --red-100:#f7d6d6;
  --red-50:#fbeaea;

  --blue-700:#1c4ea8;
  --blue-500:#2563eb;
  --blue-100:#d6e3fa;
  --blue-50:#eaf1fd;

  --violet-500:#6b51c8;
  --violet-100:#e3dbf7;

  --shadow-sm: 0 1px 2px rgba(15,17,21,.04), 0 1px 3px rgba(15,17,21,.04);
  --shadow-md: 0 4px 14px rgba(15,17,21,.05), 0 1px 3px rgba(15,17,21,.04);
  --shadow-lg: 0 12px 40px rgba(15,17,21,.10), 0 4px 12px rgba(15,17,21,.05);

  --radius-sm:6px;
  --radius:8px;
  --radius-md:10px;
  --radius-lg:14px;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size:14px;
  line-height:1.5;
  color: var(--ink-900);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; font-size:inherit; color:inherit; }

/* ===== Top bar (charcoal/black) ===== */
.topbar{
  height:56px; background: var(--top-bg); color: var(--top-fg);
  display:flex; align-items:center; padding: 0 18px; gap:14px;
  position:sticky; top:0; z-index:30;
  border-bottom:1px solid #1a1d22;
}
.tb-collapse{
  width:32px; height:32px; border-radius:6px; background:transparent; border:0; color:#cfd4de;
  display:grid; place-items:center;
}
.tb-collapse:hover{ background:#1a1d22; color:#fff; }
.tb-logo{
  width:28px; height:28px; display:grid; place-items:center; color:#FFC83D;
}
.crumbs{ display:flex; align-items:center; gap:10px; color: var(--top-muted); font-size:13px; margin-left:6px;}
.crumbs .sep{ color:#3a414f; }
.crumbs .here{ color:#fff; font-weight:500; }
.tb-right{ margin-left:auto; display:flex; align-items:center; gap:10px;}
.tb-iconbtn{
  width:34px; height:34px; border-radius:6px; background:transparent; border:0; color:#cfd4de;
  display:grid; place-items:center; position:relative;
}
.tb-iconbtn:hover{ background:#1a1d22; color:#fff;}
.tb-iconbtn .pip{ position:absolute; top:7px; right:8px; width:7px; height:7px; border-radius:50%; background:var(--accent); border:2px solid var(--top-bg);}
.tb-iconbtn .pip.red{ background: var(--red-500); }
.tb-user{ display:flex; align-items:center; gap:8px; padding:4px 8px 4px 4px; border-radius:24px;}
.tb-user:hover{ background:#1a1d22; }
.tb-user .avatar{ width:28px; height:28px; border-radius:50%; background:#FFC83D; color:#0f1115; display:grid; place-items:center; font-weight:700; font-size:12px; }
.tb-user .name{ color:#fff; font-size:13.5px; font-weight:500; }

/* ===== App shell ===== */
.app{ display:grid; grid-template-columns: 248px 1fr; min-height: calc(100vh - 56px); transition: grid-template-columns .25s ease; }
.app.collapsed{ grid-template-columns: 64px 1fr; }
.sidebar{
  background: var(--sidebar-bg);
  border-right:1px solid var(--border);
  display:flex; flex-direction:column;
  position:sticky; top:56px; height: calc(100vh - 56px);
  overflow:hidden;
}
.app.collapsed .sb-org .org-name,
.app.collapsed .sb-org .org-sub,
.app.collapsed .sb-section,
.app.collapsed .sb-item span:not(.ic):not(.badge):not(.chev),
.app.collapsed .sb-item .badge,
.app.collapsed .sb-foot span:not(.dot){
  display:none;
}
.app.collapsed .sb-org{ padding:14px 12px; justify-content:center; }
.app.collapsed .sb-nav{ padding:10px 8px; }
.app.collapsed .sb-item{ justify-content:center; padding:10px 8px; }
.app.collapsed .sb-foot{ justify-content:center; padding:14px 8px; }
.main{ min-width: 0; }
.sb-org{
  padding:16px 18px;
  border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:12px;
}
.sb-org .seal{
  width:38px; height:38px; border-radius:8px;
  background: var(--ink-50); color: var(--ink-700);
  display:grid; place-items:center; font-weight:700; font-size:13px;
  border:1px solid var(--border);
}
.sb-org .org-name{ font-size:15px; color: var(--ink-900); font-weight:600; line-height:1.2; }
.sb-org .org-sub{ font-size:11.5px; color: var(--ink-500); }

.sb-nav{ display:flex; flex-direction:column; gap:2px; padding: 10px 12px; overflow-y:auto; }
.sb-section{ padding:14px 10px 6px; font-size:10.5px; color:var(--ink-400); letter-spacing:1px; text-transform:uppercase; font-weight:600;}
.sb-item{
  display:flex; align-items:center; gap:12px;
  padding:9px 12px; border-radius:8px;
  color: var(--ink-600); font-size:14px;
  background:transparent; border:0; text-align:left; width:100%;
  position:relative; font-weight:500;
}
.sb-item:hover{ background: var(--sidebar-hover); color: var(--ink-900); }
.sb-item.active{ background: var(--sidebar-active); color: var(--ink-900); }
.sb-item.active .ic{ color: var(--accent-700); }
.sb-item .ic{ color: var(--ink-500); display:grid; place-items:center; }
.sb-item .badge{
  margin-left:auto; background: var(--ink-100); color: var(--ink-700); font-size:10.5px;
  padding:1px 7px; border-radius:10px; font-weight:600;
}
.sb-item .badge.red{ background: var(--red-500); color:#fff; }
.sb-item .badge.amber{ background: var(--accent); color:#0f1115; }
.sb-item .chev{ margin-left:auto; color: var(--ink-400); }

.sb-foot{
  margin-top:auto; padding:14px 18px; border-top:1px solid var(--border);
  font-size:11.5px; color: var(--ink-500);
  display:flex; align-items:center; gap:10px;
}
.sb-foot .dot{ width:8px; height:8px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.18); }

/* ===== Main / Page ===== */
.main{ display:flex; flex-direction:column; min-width:0; background:#fff; overflow-x:hidden; }
.page-body{ min-width:0; }
.split, .kpi-row, .filter-bar{ min-width:0; }
.card{ min-width:0; }
.page{ padding:0; }
.page-head{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding: 22px 32px 18px; background:#fff; border-bottom:1px solid var(--border);
}
.page-head h1{ font-size:22px; margin:0; font-weight:600; color: var(--accent-700); letter-spacing:-.2px; }
.page-head .lead{ color: var(--ink-500); font-size:13px; margin:2px 0 0 0; max-width:680px; font-weight:400; }
.page-head-left{ display:flex; flex-direction:column; }
.page-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.page-search{
  display:flex; align-items:center; gap:8px;
  background: #fff; border:1px solid var(--border-strong);
  border-radius:8px; padding:8px 12px; width:340px; color:var(--ink-500);
}
.page-search input{ background:transparent; border:0; outline:0; flex:1; font-size:13.5px; }

.page-body{ padding: 22px 32px 40px; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:9px 14px; border-radius:8px; font-size:13.5px; font-weight:500;
  border:1px solid var(--border-strong); background:#fff; color:var(--ink-800);
  transition: all .15s ease;
}
.btn:hover{ background: var(--ink-50); }
.btn.primary{
  background: var(--accent); color: #0f1115; border-color: var(--accent-600);
  font-weight:600;
}
.btn.primary:hover{ background: var(--accent-600); }
.btn.dark{ background: var(--ink-900); color:#fff; border-color: var(--ink-900); }
.btn.dark:hover{ background: var(--ink-800); }
.btn.ghost{ border-color: transparent; background:transparent; }
.btn.ghost:hover{ background: var(--ink-50); }
.btn.danger{ background:#fff; color: var(--red-700); border-color: var(--red-100); }
.btn.danger:hover{ background: var(--red-50); }
.btn.green{ background: var(--green-500); color:#fff; border-color: var(--green-700); }
.btn.green:hover{ background: var(--green-700); }
.btn.sm{ padding:6px 10px; font-size:12.5px; }
.btn.icon-only{ padding:9px; width:38px; height:38px; justify-content:center; }

/* ===== Filter bar (dropdown chips) ===== */
.filter-bar{
  display:flex; gap:10px; flex-wrap:wrap; align-items:center;
  padding: 16px 0;
}
.filter-chip{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 12px 7px 14px; border-radius:8px;
  background:#fff; border:1px solid var(--border-strong);
  font-size:13px; color: var(--ink-700); font-weight:500;
}
.filter-chip:hover{ background: var(--ink-50); }
.filter-chip .chev{ color: var(--ink-400); }
.filter-chip .count{
  font-size:11px; background: var(--accent-50); color: var(--accent-700);
  padding:1px 6px; border-radius:10px; border:1px solid var(--accent-100);
}

/* ===== Cards ===== */
.card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-head{
  padding:14px 18px; border-bottom:1px solid var(--border);
  display:flex; align-items:center; gap:12px;
}
.card-head h3{ margin:0; font-size:14px; font-weight:600; }
/* Buton × de închidere modal: mereu împins la dreapta */
.modal-close{
  margin-left: auto !important;
  background:transparent; border:0; cursor:pointer;
  font-size:22px; line-height:1; padding:4px 10px;
  color: var(--ink-500); border-radius:6px;
}
.modal-close:hover{ background: var(--ink-50); color: var(--ink-900); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.7; transform: scale(1.15); }
}

.card-head .sub{ font-size:12px; color: var(--ink-500); }
.card-body{ padding:18px; }

.kpi-row{ display:grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap:14px; margin-bottom:22px;}
.kpi{
  background:#fff; border:1px solid var(--border); border-radius:10px; padding:16px 18px;
  position:relative; overflow:hidden;
}
.kpi .label{ font-size:12px; color: var(--ink-500); display:flex; align-items:center; gap:8px; font-weight:500; }
.kpi .val{ font-size:26px; font-weight:600; margin-top:6px; letter-spacing:-.4px; }
.kpi .delta{ font-size:11.5px; color: var(--green-700); margin-top:4px; }
.kpi .delta.down{ color: var(--red-700); }
.kpi .icn{ width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background: var(--ink-50); color: var(--ink-700);}
.kpi .icn.green{ background: var(--green-50); color: var(--green-700); }
.kpi .icn.amber{ background: var(--accent-50); color: var(--accent-700); }
.kpi .icn.violet{ background: #f1edfb; color: var(--violet-500); }
.kpi .icn.blue{ background: var(--blue-50); color: var(--blue-700); }

/* Tags */
.tag{
  display:inline-flex; align-items:center; gap:6px;
  font-size:11.5px; font-weight:500; padding:3px 8px; border-radius:6px;
  background: var(--ink-50); color: var(--ink-700); border:1px solid var(--border);
}
.tag.green{ background: var(--green-50); color: var(--green-700); border-color: var(--green-100); }
.tag.amber{ background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-100); }
.tag.yellow{ background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
.tag.red{ background: var(--red-50); color: var(--red-700); border-color: var(--red-100); }
.tag.blue{ background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.tag.violet{ background: #f4f0fc; color: var(--violet-500); border-color: var(--violet-100); }
.tag .dot{ width:6px; height:6px; border-radius:50%; background: currentColor; }

/* Tables */
.tbl{ width:100%; border-collapse:collapse; font-size:13.5px; }
.tbl th{
  text-align:left; font-weight:600; font-size:12px; letter-spacing:.2px;
  color: var(--ink-700); padding:14px 16px; border-bottom:1px solid var(--border); background:#fff;
}
.tbl td{ padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:middle; color: var(--ink-800); }
.tbl tr:last-child td{ border-bottom:0; }
.tbl tr:hover td{ background: var(--surface-alt); }

/* Form bits */
.inp{
  width:100%; padding:9px 12px; border:1px solid var(--border-strong); border-radius:8px;
  background:#fff; font-size:13.5px; outline:none;
}
.inp:focus{ border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,200,61,.20); }
.lbl{ display:block; font-size:12px; color: var(--ink-500); margin-bottom:6px; font-weight:500; }

/* Tabs */
.tabs{ display:flex; gap:2px; border-bottom:1px solid var(--border); margin-bottom:18px;}
.tab{
  padding:10px 14px; font-size:13.5px; color: var(--ink-500); cursor:pointer; border:0; background:transparent;
  border-bottom:2px solid transparent; margin-bottom:-1px; font-weight:500;
}
.tab:hover{ color: var(--ink-900); }
.tab.active{ color: var(--accent-700); border-bottom-color: var(--accent); }

/* Avatars */
.av{ width:32px; height:32px; border-radius:50%; background: var(--ink-100); color:var(--ink-700); display:inline-grid; place-items:center; font-weight:600; font-size:12px; flex-shrink:0; overflow:hidden;}
.av.lg{ width:40px; height:40px; font-size:14px; }
.av.sm{ width:24px; height:24px; font-size:10px; }

/* Helpers */
.row{ display:flex; align-items:center; gap:10px; }
.col{ display:flex; flex-direction:column; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-20{ gap:20px; }
.mt-8{ margin-top:8px;} .mt-12{margin-top:12px;} .mt-16{ margin-top:16px;} .mt-24{ margin-top:24px;}
.muted{ color: var(--ink-500); }
.small{ font-size:12px; }
.tiny{ font-size:11.5px; }
.bold{ font-weight:600; }

/* Layouts */
.split{ display:grid; gap:20px; }
.split.k-2{ grid-template-columns: 2fr 1fr; }
.split.k-3{ grid-template-columns: 1fr 1fr 1fr; }
.split.k-12{ grid-template-columns: 1fr 2fr; }

/* AI shimmer */
@keyframes shimmer { 0%{background-position:-300px 0} 100%{background-position:300px 0} }
.ai-pill{
  display:inline-flex; align-items:center; gap:6px;
  background: linear-gradient(90deg, #fff7dc, #ffefb5, #fff7dc);
  background-size: 600px 100%;
  animation: shimmer 2.4s linear infinite;
  color: var(--accent-700); border:1px solid var(--accent-100);
  padding:3px 8px; border-radius:6px; font-size:11.5px; font-weight:600;
}

/* Highlights */
.hl-y{ background: #fef3c7; padding: 0 3px; border-radius:2px; }
.hl-g{ background: #d1fae5; padding: 0 3px; border-radius:2px; }
.hl-r{ background: #fecaca; padding: 0 3px; border-radius:2px; }
.hl-b{ background: #dbeafe; padding: 0 3px; border-radius:2px; }

/* Risk donut */
.risk-donut{
  width:120px; height:120px; border-radius:50%;
  background: conic-gradient(var(--amber-500) 0 60%, var(--ink-100) 60% 100%);
  display:grid; place-items:center; position:relative;
}
.risk-donut::after{ content:""; width:84px; height:84px; border-radius:50%; background:#fff; position:absolute; }
.risk-donut .lbl{ position:relative; z-index:1; text-align:center; line-height:1.1; }
.risk-donut .lbl b{ font-size:11px; color: var(--ink-500); display:block; font-weight:500;}
.risk-donut .lbl span{ font-size:16px; font-weight:600; color: var(--amber-700); }

/* Phone */
.phone{
  width:300px; background: #1a1a1a; border-radius:38px; padding:8px;
  box-shadow: 0 10px 40px rgba(15,17,21,.18); position:relative;
}
.phone .screen{
  background:#e5ddd5; border-radius:30px; overflow:hidden; position:relative; height:560px;
}
.phone .notch{
  position:absolute; top:14px; left:50%; transform:translateX(-50%);
  width:90px; height:24px; background:#000; border-radius:14px; z-index:3;
}
.wa-header{
  background: #075e54; color:#fff; padding:38px 14px 10px; display:flex; align-items:center; gap:10px;
}
.wa-msgs{ padding:14px 12px; display:flex; flex-direction:column; gap:8px; height: calc(100% - 130px); overflow:auto;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='20' cy='20' r='1' fill='%23d8cfc4'/></svg>"); }
.wa-bubble{
  max-width:82%; background:#fff; border-radius:8px; padding:8px 10px; font-size:12.5px; box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.wa-bubble.me{ background:#dcf8c6; align-self:flex-end;}
.wa-bubble .time{ font-size:9.5px; color: var(--ink-400); text-align:right; margin-top:2px; }
.wa-input{
  position:absolute; bottom:6px; left:6px; right:6px;
  background:#fff; border-radius:24px; padding:8px 14px; display:flex; align-items:center; gap:8px;
  font-size:12px; color: var(--ink-400); box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

/* Chart */
.bar-chart{ display:flex; align-items:flex-end; gap:14px; height:160px; padding:14px 6px; }
.bar-grp{ display:flex; flex-direction:column; align-items:center; gap:6px; flex:1; }
.bar-stack{ display:flex; align-items:flex-end; gap:3px; height:130px; width:100%; justify-content:center; }
.bar{ width:14px; background: var(--ink-700); border-radius:2px 2px 0 0; }
.bar.b{ background: var(--accent); }
.bar-label{ font-size:11px; color: var(--ink-500); }

/* Lists */
.list{ display:flex; flex-direction:column; }
.list-row{ padding:12px 0; border-bottom:1px solid var(--border); display:flex; gap:12px; align-items:flex-start; }
.list-row:last-child{ border-bottom:0; }

/* Doc thumb */
.doc-thumb{
  width:56px; height:72px; background:#fff; border:1px solid var(--border-strong); border-radius:4px; position:relative;
  flex-shrink:0; display:flex; flex-direction:column; padding:6px; gap:3px;
}
.doc-thumb::before{ content:""; position:absolute; top:0; right:0; width:14px; height:14px;
  background: linear-gradient(225deg, transparent 50%, var(--ink-100) 50%); }
.doc-thumb i{ display:block; height:2px; background:var(--ink-100); border-radius:1px; }
.doc-thumb i:nth-child(1){ width:60%; }
.doc-thumb i:nth-child(2){ width:90%; }
.doc-thumb i:nth-child(3){ width:75%; }
.doc-thumb i:nth-child(4){ width:80%; }

/* Comments */
.thread{ display:flex; flex-direction:column; }
.cmt{ padding:14px 16px; border-bottom:1px solid var(--border); display:flex; gap:12px; cursor:pointer; }
.cmt:hover{ background: var(--surface-alt); }
.cmt.selected{ background: var(--accent-50); border-left:3px solid var(--accent); padding-left:13px; }
.cmt-meta{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color: var(--ink-500); }
.cmt-text{ font-size:13.5px; margin-top:4px; color: var(--ink-900); }
.cmt-actions{ margin-top:8px; display:flex; gap:6px; }

/* Form preview */
.form-preview{
  background:#fff; padding:34px 36px; border:1px solid var(--border-strong);
  font-family: 'Source Serif 4', Georgia, serif; font-size:13px; line-height:1.7;
  min-height:600px; box-shadow: var(--shadow-sm);
}
.form-preview h2{ text-align:center; font-size:16px; letter-spacing:1px; text-transform:uppercase; }
.form-preview .seal-strip{ display:flex; justify-content:space-between; align-items:flex-start; border-bottom:2px solid #000; padding-bottom:10px; margin-bottom:16px; font-size:11.5px;}

/* Status */
.status-row{ display:flex; align-items:center; gap:8px; font-size:12.5px; }
.status-row .pulse{
  width:8px; height:8px; border-radius:50%; background: var(--green-500);
  box-shadow:0 0 0 0 rgba(16,145,95,.5);
  animation: pulse 1.8s infinite;
}
@keyframes pulse{
  0%{ box-shadow:0 0 0 0 rgba(16,145,95,.4);}
  70%{ box-shadow:0 0 0 8px rgba(16,145,95,0);}
  100%{ box-shadow:0 0 0 0 rgba(16,145,95,0);}
}

.donut{ width:140px; height:140px; border-radius:50%; display:grid; place-items:center; position:relative; }
.donut::after{ content:""; position:absolute; width:90px; height:90px; border-radius:50%; background:#fff; }
.donut .center{ position:relative; z-index:1; text-align:center; line-height:1.1; }
.donut .center b{ font-size:20px; font-weight:600; }
.donut .center span{ font-size:11px; color: var(--ink-500); display:block; }

.spark{ stroke: var(--ink-700); fill: none; stroke-width:2; }
.spark-fill{ fill: rgba(255,200,61,.18); stroke:none; }

.scroll-y{ overflow-y:auto; }
.divider{ height:1px; background:var(--border); margin:14px 0; }
hr.sep{ border:0; border-top:1px solid var(--border); margin:14px 0; }
.scroll-y::-webkit-scrollbar{ width:8px; }
.scroll-y::-webkit-scrollbar-thumb{ background: var(--ink-200); border-radius:4px; }
.scroll-y::-webkit-scrollbar-track{ background: transparent; }

/* Empty state */
.empty{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding: 80px 20px; text-align:center; color: var(--ink-500);
}
.empty .ic{
  width:64px; height:64px; border-radius:14px; background: var(--accent-50);
  display:grid; place-items:center; color: var(--accent-700); margin-bottom:14px;
}
.empty h4{ margin:0 0 6px; color: var(--ink-900); font-size:15px; font-weight:600; }
.empty p{ margin:0; font-size:13px; }

/* ===== Presentation mode: fonturi mai mari + contrast mai bun pentru videoproiector ===== */
:root{
  --ink-500:#525a6e;        /* text muted, mai întunecat */
  --ink-400:#6b7589;        /* text foarte muted, mai întunecat */
  --top-muted:#a8b0c0;      /* breadcrumbs topbar */
  --border:#d8dde6;         /* borduri panouri mai vizibile */
  --border-strong:#b3bbc9;
}
body{ font-size:16px; line-height:1.55; }

/* Topbar */
.crumbs{ font-size:14.5px; }
.tb-user .name{ font-size:15px; }
.tb-user .avatar{ width:32px; height:32px; font-size:13px; }
.topbar{ height:62px; }
.sidebar{ top:62px; height: calc(100vh - 62px); }
.app{ min-height: calc(100vh - 62px); }

/* Sidebar */
.sb-org .org-name{ font-size:17px; }
.sb-org .org-sub{ font-size:13px; }
.sb-section{ font-size:12px; }
.sb-item{ font-size:15.5px; padding:11px 14px; }
.sb-item .badge{ font-size:12px; padding:2px 8px; }
.sb-foot{ font-size:13px; }
.app{ grid-template-columns: 268px 1fr; }

/* Page head */
.page-head h1{ font-size:28px; }
.page-head .lead{ font-size:15px; max-width:760px; }
.page-search{ width:380px; padding:10px 14px; }
.page-search input{ font-size:15px; }

/* Buttons */
.btn{ font-size:15px; padding:10px 16px; }
.btn.sm{ font-size:14px; padding:7px 12px; }
.btn.icon-only{ width:42px; height:42px; padding:10px; }

/* Filter bar */
.filter-chip{ font-size:14.5px; padding:8px 14px 8px 16px; }
.filter-chip .count{ font-size:12.5px; }

/* Cards */
.card-head h3{ font-size:16px; }
.card-head .sub{ font-size:14px; }

/* KPI */
.kpi .label{ font-size:14px; }
.kpi .val{ font-size:32px; }
.kpi .delta{ font-size:13px; }
.kpi .icn{ width:34px; height:34px; }

/* Tags */
.tag{ font-size:13px; padding:4px 10px; }

/* Tabel */
.tbl{ font-size:15px; }
.tbl th{ font-size:13.5px; padding:14px 16px; }
.tbl td{ padding:14px 16px; }

/* Forms */
.inp{ font-size:15px; padding:10px 14px; }
.lbl{ font-size:14px; }

/* Tabs */
.tab{ font-size:15px; padding:11px 16px; }

/* Avatare */
.av{ width:36px; height:36px; font-size:14px; }
.av.lg{ width:44px; height:44px; font-size:16px; }
.av.sm{ width:28px; height:28px; font-size:12px; }

/* Helpers */
.small{ font-size:13.5px; }
.tiny{ font-size:13px; }

/* Comments */
.cmt-text{ font-size:15px; }
.cmt-meta{ font-size:13.5px; }

/* Empty / donut / chart */
.empty h4{ font-size:17px; }
.empty p{ font-size:15px; }
.donut .center b{ font-size:24px; }
.donut .center span{ font-size:13px; }
.risk-donut .lbl b{ font-size:13px; }
.risk-donut .lbl span{ font-size:18px; }
.bar-label{ font-size:13px; }
.form-preview{ font-size:15px; }
.form-preview h2{ font-size:18px; }

/* Spinner */
.spinner{
  width:24px; height:24px; border-radius:50%;
  border:3px solid var(--ink-100);
  border-top-color: var(--accent-500, #4f46e5);
  animation: atlas-spin 0.8s linear infinite;
}
@keyframes atlas-spin { to { transform: rotate(360deg); } }
