/* =====================================================================
   Helpdesk – temă „glass” întunecată
   ===================================================================== */

/* ---------- Fonturi (incluse local, licență SIL OFL) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-ext-500-normal.woff2) format("woff2"); unicode-range: U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* ---------- Variabile ---------- */
:root {
  color-scheme: dark;
  --bg: #0a0f2a;
  --glow-1: rgba(52, 104, 255, .62);
  --glow-2: rgba(84, 64, 214, .38);
  --glow-3: rgba(130, 84, 214, .34);
  --glass: rgba(255, 255, 255, .055);
  --glass-2: rgba(255, 255, 255, .09);
  --glass-3: rgba(255, 255, 255, .14);
  --canvas: rgba(10, 14, 42, .46);
  --stroke: rgba(255, 255, 255, .11);
  --stroke-2: rgba(255, 255, 255, .2);
  --text: #eef1fb;
  --muted: rgba(222, 228, 248, .64);
  --faint: rgba(222, 228, 248, .42);
  --accent: #8ea6ff;
  --accent-strong: #5b7cff;
  --accent-soft: rgba(110, 140, 255, .18);
  --ok: #4fe3a0; --ok-soft: rgba(79, 227, 160, .14);
  --warn: #f7b45a; --warn-soft: rgba(247, 180, 90, .15);
  --bad: #ff7d86; --bad-soft: rgba(255, 125, 134, .15);
  --purple: #b9a2ff; --purple-soft: rgba(185, 162, 255, .16);
  --r-lg: 22px; --r: 16px; --r-sm: 12px;
  --blur: blur(22px) saturate(140%);
  --shadow: 0 1px 0 rgba(255,255,255,.07) inset, 0 18px 40px -18px rgba(3, 6, 25, .7);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* compatibilitate cu numele vechi */
  --primary: var(--accent); --primary-soft: var(--accent-soft); --gray-soft: var(--glass); --border: var(--stroke); --panel: var(--glass);
}
body.portal { --glow-1: rgba(32, 150, 190, .55); --glow-2: rgba(52, 104, 255, .32); --glow-3: rgba(40, 170, 150, .28);
  --accent: #6fe0d0; --accent-strong: #2fbfae; --accent-soft: rgba(80, 220, 200, .16); }
body.admin { --glow-1: rgba(214, 128, 52, .45); --glow-2: rgba(120, 70, 200, .38); --glow-3: rgba(190, 90, 120, .3);
  --accent: #ffc36e; --accent-strong: #f0a23c; --accent-soft: rgba(255, 190, 100, .16); }

/* ---------- Bază ---------- */
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; display: flow-root; color: var(--text);
  font: 14px/1.5 "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 620px at 12% -8%, var(--glow-1), transparent 62%),
    radial-gradient(900px 600px at 92% 4%, var(--glow-2), transparent 60%),
    radial-gradient(1000px 700px at 70% 112%, var(--glow-3), transparent 62%),
    linear-gradient(180deg, #0c1438 0%, #0a0f2a 55%, #120f33 100%);
  background-attachment: fixed;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 18px; }
h2 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 14px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: 12px; background: var(--glass-2); border: 1px solid var(--stroke); padding: 1px 6px; border-radius: 6px; }
::selection { background: rgba(142, 166, 255, .35); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -4px; }
.eyebrow { font: 500 11px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
[hidden] { display: none !important; }

/* sticlă */
.card, .stat, .sidebar, .portal-top .inner, .toolbar, .comment, .bulkbar, .kb-cat, .messages li, .auth .card, .chip, .filters, .seg-tabs {
  background: var(--glass); border: 1px solid var(--stroke);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

/* ---------- Layout cu sidebar (tehnicieni, administrare) ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 14px; min-height: 100vh; padding: 14px; }
.sidebar { border-radius: var(--r-lg); padding: 14px 10px; display: flex; flex-direction: column; position: sticky; top: 14px; height: calc(100vh - 28px); overflow-y: auto; scrollbar-width: thin; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; padding: 4px 8px 14px; }
.brand:hover { text-decoration: none; }
.brand small { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.brand > span:last-child { line-height: 1.2; }
.logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; flex: none;
  background: linear-gradient(140deg, var(--accent) 0%, var(--accent-strong) 100%); box-shadow: 0 6px 18px -6px var(--accent-strong), 0 1px 0 rgba(255,255,255,.35) inset; }
.logo .i { width: 20px; height: 20px; }
.snav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.snav a { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 8px 10px; border-radius: 12px; font-weight: 500; border: 1px solid transparent; }
.snav a:hover { background: var(--glass); color: var(--text); text-decoration: none; }
.snav a.active { background: var(--glass-3); color: var(--text); border-color: var(--stroke-2); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset; }
.snav a.active .i { color: var(--accent); }
.snav a.sub { padding: 5px 10px 5px 38px; font-size: 13px; color: var(--faint); }
.snav a.sub:hover { color: var(--text); }
.snav .grp { font: 500 10.5px/1 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 16px 10px 6px; }
.snav .sep { border-top: 1px solid var(--stroke); margin: 10px 6px; }
.snav a.to-admin { color: var(--warn); }
body.admin .snav a.to-admin { color: #9fb4ff; }
.sfoot { border-top: 1px solid var(--stroke); padding: 12px 6px 2px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sfoot .who { flex: 1; min-width: 0; font-weight: 500; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; }
.sfoot .who small { display: block; color: var(--faint); font: 500 9.5px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .04em; }
.sfoot form { margin: 0; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--muted); background: transparent; border: 1px solid transparent; cursor: pointer; }
.icon-btn:hover { background: var(--glass-2); border-color: var(--stroke); color: var(--text); text-decoration: none; }

/* zona de lucru: „pânză” cu grilă de puncte */
.content { min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--stroke); padding: 18px 24px 40px;
  background-color: var(--canvas);
  background-image: radial-gradient(rgba(255, 255, 255, .085) 1px, transparent 1.2px);
  background-size: 22px 22px; background-position: 11px 11px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* bara de unelte de sus */
.toolbar { display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px; margin-bottom: 22px; }
.toolbar .search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); min-width: 0; }
.toolbar .search input { border: 0; background: transparent; box-shadow: none; padding: 8px 0; height: auto; }
.toolbar .search input:focus { outline: none; box-shadow: none; }
.toolbar .kbd { font: 500 11px var(--mono); color: var(--faint); border: 1px solid var(--stroke); border-radius: 7px; padding: 2px 6px; }
.toolbar .btn { height: 40px; }
.toolbar .saved { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); padding: 0 10px; white-space: nowrap; }
.avs { display: flex; padding-right: 4px; }
.avs .av + .av { margin-left: -8px; }

/* avatare */
.av { --h: 220; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  font: 600 10.5px/1 "Inter", sans-serif; letter-spacing: .02em; color: hsl(var(--h) 60% 18%);
  background: linear-gradient(140deg, hsl(var(--h) 85% 86%), hsl(calc(var(--h) + 30) 80% 72%));
  box-shadow: 0 0 0 2px rgba(12, 18, 50, .8); }
.av.lg { width: 36px; height: 36px; font-size: 12px; }
.av.sm { width: 22px; height: 22px; font-size: 9px; }
.av.av-none { background: var(--glass-2); color: var(--faint); box-shadow: 0 0 0 1px var(--stroke); }
.av .i { width: 14px; height: 14px; }
.person { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.person > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Portal (angajați, clienți) ---------- */
.portal-top { position: sticky; top: 12px; z-index: 20; padding: 12px 16px 0; }
.portal-top .inner { max-width: 1040px; margin: 0 auto; border-radius: 999px; padding: 6px 8px 6px 10px; display: flex; align-items: center; gap: 14px; }
.portal-top .brand { padding: 0 6px 0 0; }
.portal-top .logo { width: 34px; height: 34px; border-radius: 50%; }
.pnav { display: flex; gap: 4px; flex: 1; }
.pnav a { display: flex; align-items: center; gap: 7px; color: var(--muted); padding: 7px 14px; border-radius: 999px; font-weight: 500; border: 1px solid transparent; }
.pnav a:hover { color: var(--text); background: var(--glass); text-decoration: none; }
.pnav a.active { color: var(--text); background: var(--glass-3); border-color: var(--stroke-2); }
.userbox { display: flex; align-items: center; gap: 8px; }
.userbox form { margin: 0; }
.container { max-width: 1280px; margin: 0 auto; padding: 28px 16px 48px; }
.container.narrow { max-width: 1040px; }
.portal-foot { text-align: center; color: var(--faint); font-size: 12px; padding: 12px 16px 40px; }
.welcome { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; padding: 26px 28px !important;
  background: linear-gradient(120deg, var(--accent-soft), rgba(255,255,255,.04)) !important; }
.welcome h1 { margin: 6px 0 6px; font-size: 26px; }

/* ---------- Titluri de pagină ---------- */
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head .muted { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.page-head h1 .muted { font-family: inherit; font-size: inherit; letter-spacing: inherit; text-transform: none; font-weight: 400; }

/* ---------- Carduri ---------- */
.card { border-radius: var(--r-lg); padding: 18px 20px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 16px 20px 4px; }
.card > h2 .i, .card-title .i { color: var(--muted); }
.card-title { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-title h2 { margin: 0; }
.node-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); flex: none; }
.node-ico.accent { background: linear-gradient(140deg, var(--accent), var(--accent-strong)); color: #0b1030; border-color: transparent; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid, .card + .grid { margin-top: 16px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.detail-layout > aside { min-width: 0; }

/* ---------- Statistici (ca nodurile din referință) ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { position: relative; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; border-radius: var(--r); padding: 16px 18px; color: var(--text); }
a.stat:hover { border-color: var(--stroke-2); background: var(--glass-2); text-decoration: none; }
.stat .num { font-size: clamp(20px, 2.1vw, 28px); font-weight: 600; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.stat .lbl { font: 500 10.5px/1.35 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.stat::after { content: ""; position: absolute; top: 16px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.stat.ok::after { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.stat.warn::after { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.stat.bad::after { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.stat.warn .num { color: var(--warn); } .stat.bad .num { color: var(--bad); }

/* ---------- Tabele ---------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
th { font: 500 10.5px/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); background: rgba(255,255,255,.025); }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .12s; }
tbody tr:hover { background: rgba(255, 255, 255, .04); }
td.subject a { font-weight: 500; color: var(--text); }
td.subject .muted { margin-top: 2px; }
.table-wrap { overflow-x: auto; }
.empty { padding: 28px; text-align: center; color: var(--muted); }

/* ---------- Badge-uri cu punct de stare ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.status-new { color: var(--purple); } .status-new::before { box-shadow: 0 0 8px var(--purple); }
.status-open { color: var(--accent); }
.status-in_progress { color: var(--warn); }
.status-pending { color: var(--muted); }
.status-resolved { color: var(--ok); } .status-resolved::before { box-shadow: 0 0 8px var(--ok); }
.status-closed { color: var(--faint); }
.prio-low { color: var(--faint); }
.prio-normal { color: #a9b8ff; }
.prio-high { color: var(--warn); }
.prio-critical { color: #fff; background: rgba(255, 90, 105, .28); border-color: rgba(255, 125, 134, .5); }
.prio-critical::before { background: var(--bad); box-shadow: 0 0 8px var(--bad); }
.role-admin { color: var(--warn); } .role-agent { color: var(--accent); } .role-employee { color: var(--text); } .role-client { color: var(--purple); }
.asset-active { color: var(--ok); } .asset-stock { color: var(--accent); } .asset-repair { color: var(--warn); } .asset-retired { color: var(--faint); }
.sla-ok { color: var(--text); } .sla-warning { color: var(--warn); font-weight: 600; } .sla-breached { color: var(--bad); font-weight: 600; } .sla-met { color: var(--muted); }
.tag { display: inline-flex; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--muted); }

/* ---------- Formulare ---------- */
.form-row { margin-bottom: 16px; }
.form-row > label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.form-row .help { color: var(--faint); font-size: 12px; margin-top: 6px; }
.form-row .errors { color: var(--bad); font-size: 12.5px; margin-top: 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=datetime-local], input[type=search],
input[type=number], input[type=url], input:not([type]), select, textarea {
  width: 100%; padding: 10px 14px; min-height: 44px; font: inherit; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--stroke); border-radius: var(--r-sm);
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; transition: border-color .15s, background .15s, box-shadow .15s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--stroke-2); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background-color: rgba(255,255,255,.08); box-shadow: 0 0 0 4px var(--accent-soft); }
select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23dfe5fb' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
select[multiple] { background-image: none; padding: 6px; }
select, select:focus, select:hover { background-repeat: no-repeat; background-position: right 14px center; }
select option { background: #151b3f; color: var(--text); }
textarea { resize: vertical; line-height: 1.55; }
input[type=file] { color: var(--muted); font-size: 13px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 500; color: var(--text); background: var(--glass-2); border: 1px solid var(--stroke); border-radius: 999px; padding: 7px 14px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--glass-3); }

/* căsuțe de bifat */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 0; flex: none; border-radius: 6px; border: 1px solid var(--stroke-2); background: rgba(255,255,255,.05); cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle; }
input[type=checkbox]:checked { background: var(--accent); border-color: var(--accent); }
input[type=checkbox]:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #0b1030; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
/* comutatoare (ca „Armed” din referință) */
.form-row.checkbox > label { display: flex; align-items: center; gap: 12px; color: var(--text); font-weight: 400; font-size: 14px; cursor: pointer; margin: 0; }
.form-row.checkbox input[type=checkbox], input.switch { width: 42px; height: 24px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--stroke-2); position: relative; transition: background .2s; }
.form-row.checkbox input[type=checkbox]::after, input.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 0; transform: none; box-shadow: 0 2px 6px rgba(0,0,0,.35); transition: left .2s; }
.form-row.checkbox input[type=checkbox]:checked, input.switch:checked { background: linear-gradient(90deg, #6aa0ff, var(--accent)); border-color: transparent; }
body.admin .form-row.checkbox input[type=checkbox]:checked { background: linear-gradient(90deg, #ffb35a, var(--accent)); }
body.portal .form-row.checkbox input[type=checkbox]:checked { background: linear-gradient(90deg, #3fd2c0, var(--accent)); }
.form-row.checkbox input[type=checkbox]:checked::after, input.switch:checked::after { left: 20px; width: 18px; height: 18px; border: 0; transform: none; }
.form-row.checkbox .help { margin-left: 54px; }
/* liste de bifat (echipe, zile, categorii) */
.form-row > div > div > label, .form-row ul label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; color: var(--text); }
.form-row ul, .form-row div[id^="id_"]:has(> div > label > input[type=checkbox]) { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.form-row div[id^="id_"]:has(> div > label > input[type=checkbox]) > div label { padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); cursor: pointer; }
.form-row div[id^="id_"]:has(> div > label > input[type=checkbox]) > div label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* control segmentat (ca Low / Normal / Rush) */
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) {
  display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--stroke); }
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) > div { flex: 1; }
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) label {
  display: flex; justify-content: center; align-items: center; height: 38px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  color: var(--muted); font-weight: 500; font-size: 13.5px; margin: 0; border: 1px solid transparent; transition: background .15s, color .15s; }
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) input { position: absolute; opacity: 0; pointer-events: none; }
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) label:hover { color: var(--text); }
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) label:has(input:checked) { background: var(--glass-3); color: var(--text); border-color: var(--stroke-2); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset; }
.form-row div[id^="id_"]:has(> div > label > input[type=radio]) label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }

/* tab-uri segmentate (ca Topology / History / Runs) */
.seg-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; }
.seg-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-weight: 500; border: 1px solid transparent; }
.seg-tabs a:hover { color: var(--text); text-decoration: none; }
.seg-tabs a.active { background: var(--glass-3); color: var(--text); border-color: var(--stroke-2); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset; }
.seg-tabs a .count { font: 500 11px var(--mono); color: var(--faint); }
.subbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-meta { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); color: var(--muted); font-size: 12.5px; }

/* ---------- Butoane ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  font: inherit; font-weight: 500; font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap;
  background: rgba(255, 255, 255, .07); border: 1px solid var(--stroke-2); box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: rgba(255, 255, 255, .13); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: #fff; color: #0b1030; border-color: #fff; box-shadow: 0 8px 22px -10px rgba(255,255,255,.55); }
.btn.primary:hover { background: #e9edff; }
.btn.small { height: 32px; padding: 0 13px; font-size: 13px; }
.btn.link { background: none; border: 0; box-shadow: none; padding: 0; height: auto; color: var(--muted); -webkit-backdrop-filter: none; backdrop-filter: none; }
.btn.link:hover { color: var(--text); background: none; }
.btn.danger { color: var(--bad); border-color: rgba(255, 125, 134, .4); }
.btn.danger:hover { background: var(--bad-soft); }
.btn .i { width: 17px; height: 17px; }
.btn .kbd { font: 500 11px var(--mono); padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.1); color: var(--muted); }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }

/* ---------- Filtre ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; padding: 8px; border-radius: 22px; }
.filters > * { width: auto; }
.filters input[type=search] { min-width: 240px; flex: 1; }
.filters select, .filters input { min-height: 40px; border-radius: 999px; background-color: rgba(255,255,255,.05); }
.filters .btn { height: 40px; }
.filters label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; white-space: nowrap; }

/* ---------- Mesaje ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { display: block; position: relative; padding: 12px 16px 12px 36px; border-radius: var(--r); margin-bottom: 8px; line-height: 1.5; }
.messages li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.messages li.success::before { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.messages li.error::before { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.messages li.warning::before { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

/* ---------- Detalii (dl) ---------- */
.meta dl { display: grid; grid-template-columns: 112px 1fr; gap: 10px 12px; margin: 0; align-items: center; }
.meta dt { color: var(--muted); font-size: 13px; }
.meta dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- Conversație: noduri conectate ---------- */
.timeline { display: flex; flex-direction: column; gap: 14px; position: relative; }
.timeline > * { position: relative; }
.timeline > * + *::before { content: ""; position: absolute; left: 34px; top: -15px; height: 14px; width: 1px; background: linear-gradient(var(--stroke-2), var(--stroke-2)); }
.timeline > .event + *::before, .timeline > * + .event::before { left: 34px; }
.comment { border-radius: var(--r-lg); overflow: hidden; }
.comment .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--stroke); font-size: 13px; }
.comment .head .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.comment .head strong { font-weight: 500; }
.comment .body { padding: 14px 18px 16px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.comment.internal { border-color: rgba(247, 180, 90, .4); background: linear-gradient(180deg, rgba(247,180,90,.08), var(--glass)); }
.comment.agent { border-color: rgba(142, 166, 255, .35); }
.comment.first { border-color: var(--stroke-2); }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.event { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 2px 0 2px 28px; }
.event::after { content: ""; position: absolute; left: 31px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--faint); }
.event span.t { font: 500 11px var(--mono); color: var(--faint); margin-left: 16px; }
.attachments { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 14px; }
.attachments a, .att { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 11px; border: 1px solid var(--stroke); border-radius: 999px; background: var(--glass); color: var(--text); }
.attachments a:hover { background: var(--glass-2); text-decoration: none; }
.cf-list { display: grid; grid-template-columns: 180px 1fr; gap: 6px 12px; margin: 0; padding: 0 18px 16px; font-size: 13px; }
.cf-list dt { color: var(--muted); } .cf-list dd { margin: 0; }

/* ---------- Grafice rapoarte ---------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding-top: 8px; border-bottom: 1px solid var(--stroke); }
.bars .day { flex: 1; display: flex; gap: 1px; align-items: flex-end; height: 100%; min-width: 4px; }
.bars .b { flex: 1; border-radius: 4px 4px 1px 1px; min-height: 2px; }
.b.created { background: linear-gradient(180deg, #a9bbff, #5b7cff); }
.b.resolved { background: linear-gradient(180deg, #7ef3bf, #2ebf82); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 56px; gap: 10px; align-items: center; margin-bottom: 9px; font-size: 13px; }
.hbar .track { background: rgba(255,255,255,.07); border-radius: 999px; height: 8px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.hbar .v { text-align: right; color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* ---------- Autentificare ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 9vh 16px 40px; }
.auth .card { padding: 30px; border-radius: 26px; }
.auth h1 { text-align: center; font-size: 22px; }
.auth .brand { justify-content: center; margin-bottom: 22px; font-size: 18px; }
.or { text-align: center; color: var(--faint); font-size: 12px; margin: 16px 0; position: relative; }
.or::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--stroke); }
.or span { position: relative; padding: 0 10px; background: #1a2150; border-radius: 999px; }
.btn.ms { width: 100%; }

.pagination { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 14px; }

/* ---------- Administrare ---------- */
.admin-band { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--warn);
  padding: 7px 14px; border-radius: 999px; background: var(--warn-soft); border: 1px solid rgba(247,180,90,.3); margin-bottom: 18px; }
.admin-band::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.card.settings h2 { margin-bottom: 18px; }
.hint { font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.04); border: 1px dashed var(--stroke-2); border-radius: var(--r-sm); padding: 12px 14px; margin-top: 6px; line-height: 1.55; }
.hint ol { margin: 8px 0 0; padding-left: 18px; }
.hint summary { cursor: pointer; font-weight: 500; color: var(--text); }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--stroke); align-items: flex-start; }
.checklist li:last-child { border-bottom: 0; }
.checklist .ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.checklist li.ok .ico { background: var(--ok-soft); color: var(--ok); }
.checklist li.bad .ico { background: var(--bad-soft); color: var(--bad); }
.checklist li.bad { color: var(--bad); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.dot.bad { background: var(--bad); box-shadow: 0 0 10px var(--bad); }
.dot.off { background: rgba(255,255,255,.18); }
.status-line { display: flex; gap: 12px; align-items: center; padding: 14px 18px; }
.test-box { border-style: dashed; }
code.token { display: block; padding: 14px; font-size: 14px; word-break: break-all; user-select: all; border-radius: var(--r-sm); }
.api-doc pre, .article pre { background: rgba(0,0,0,.28); border: 1px solid var(--stroke); padding: 14px; border-radius: var(--r-sm); overflow-x: auto; font-size: 12px; white-space: pre-wrap; }
.api-doc h3 { margin: 18px 0 8px; }

/* reguli automate – flux de noduri */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 54px minmax(0, 1.2fr) 54px minmax(0, 1.3fr); align-items: stretch; margin-bottom: 18px; }
.flow > .edge { align-self: center; }
.node { position: relative; border-radius: var(--r-lg); padding: 14px 16px; background: var(--glass); border: 1px solid var(--stroke); box-shadow: var(--shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--text); min-height: 112px; }
a.node:hover { border-color: var(--stroke-2); background: var(--glass-2); text-decoration: none; }
.node.selected { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.1); }
.node .nhead { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.node .ntitle { font-size: 15.5px; font-weight: 500; margin-bottom: 4px; }
.node .nsub { color: var(--muted); font-size: 12.5px; }
.node .ndot { position: absolute; top: 18px; right: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.node .ndot.off { background: var(--faint); box-shadow: none; }
.node .tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.node.inactive { opacity: .55; }
.edge { position: relative; height: 1px; background: var(--stroke-2); }
.edge::after { content: ""; position: absolute; right: -1px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); }
.edge .lbl { position: absolute; left: 50%; top: -12px; transform: translateX(-50%); font-size: 11px; padding: 2px 8px; border-radius: 999px; background: #232a5a; border: 1px solid var(--stroke-2); color: var(--muted); white-space: nowrap; }
.flow-meta { display: flex; justify-content: space-between; align-items: center; margin: -6px 2px 26px; color: var(--faint); font: 500 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* ---------- Funcții (KB, inventar, sarcini, AI...) ---------- */
.bulkbar { position: sticky; top: 10px; z-index: 6; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-radius: 999px; padding: 6px 6px 6px 18px; margin-bottom: 12px; border-color: var(--stroke-2); background: rgba(30, 38, 90, .72); }
.bulkbar select { width: auto; min-height: 36px; border-radius: 999px; }
.ai-box { border-color: rgba(185, 162, 255, .4); background: linear-gradient(135deg, rgba(185,162,255,.12), var(--glass) 60%); }
.ai-out { margin-top: 12px; white-space: pre-wrap; line-height: 1.55; }
.ai-out.err { color: var(--bad); }
.task { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--stroke); margin: 0; }
.task .chk { background: none; border: 0; font-size: 18px; cursor: pointer; color: var(--accent); padding: 0; line-height: 1; }
.task span { flex: 1; }
.task.done span:first-of-type { text-decoration: line-through; color: var(--faint); }
.asset-row, .kb-sugg { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.asset-row form.inline { margin: 0 0 0 auto; }
.kb-sugg a { flex: 1; }
.stars { color: #ffc75e; letter-spacing: 1px; }
.stars-pick { display: flex; justify-content: center; flex-direction: row-reverse; gap: 6px; margin: 18px 0; }
.stars-pick input { display: none; }
.stars-pick span { font-size: 42px; color: rgba(255,255,255,.18); cursor: pointer; transition: color .1s, transform .1s; display: inline-block; }
.stars-pick label:hover span, .stars-pick label:hover ~ label span, .stars-pick label:has(input:checked) span, .stars-pick label:has(input:checked) ~ label span { color: #ffc75e; text-shadow: 0 0 18px rgba(255,199,94,.5); }
.stars-pick label:hover span { transform: scale(1.08); }
.feedback { padding: 8px 0; border-bottom: 1px solid var(--stroke); }
.create-layout { display: grid; grid-template-columns: minmax(0, 820px) 300px; gap: 18px; align-items: start; }
.kb-hint { border-color: var(--accent) !important; position: sticky; top: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--glass) 70%) !important; }
.kb-hint ul { padding-left: 18px; margin: 0; } .kb-hint li { margin-bottom: 8px; }
.kb-search { display: flex; gap: 8px; margin-bottom: 22px; padding: 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.kb-search input { border: 0; background: transparent; font-size: 16px; box-shadow: none; padding-left: 16px; }
.kb-search input:focus { box-shadow: none; background: transparent; }
.kb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kb-cat { border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 3px; color: var(--text); }
.kb-cat:hover { border-color: var(--stroke-2); background: var(--glass-2); text-decoration: none; }
.kb-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--stroke); color: var(--text); }
.kb-item:hover { background: rgba(255,255,255,.05); text-decoration: none; }
.article { font-size: 15px; line-height: 1.7; }
.article h1, .article h2, .article h3 { margin: 22px 0 10px; }
.article img { max-width: 100%; border-radius: var(--r-sm); }
.article table { width: auto; }
.article :first-child { margin-top: 0; }
.helpful form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
textarea.mono { font-size: 13px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; color: var(--muted); font-size: 13px; }
.chip b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.chip.active, .chip:hover { border-color: var(--stroke-2); color: var(--text); background: var(--glass-2); text-decoration: none; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) { .detail-layout { grid-template-columns: 1fr; } .detail-layout > aside { position: static; max-height: none; overflow: visible; } .flow { grid-template-columns: 1fr; gap: 0; } .edge { width: 1px; height: 26px; margin: 0 auto; } .edge::after { right: -3px; top: auto; bottom: -1px; } .edge .lbl { top: 50%; left: 14px; transform: translateY(-50%); } }
@media (max-width: 900px) {
  .grid-2, .grid-3, .create-layout { grid-template-columns: 1fr; }
  .shell { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .sidebar { position: sticky; top: 8px; z-index: 30; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 20px; }
  .sidebar .brand { padding: 2px 4px; flex: 1; }
  .snav { flex-direction: row; overflow-x: auto; flex-basis: 100%; order: 3; white-space: nowrap; scrollbar-width: none; }
  .snav .grp, .snav .sep, .snav a.sub { display: none; }
  .snav a { padding: 7px 12px; }
  .sfoot { border: 0; padding: 0; }
  .sfoot .who { display: none; }
  .content { padding: 14px 12px 32px; border-radius: 18px; }
  .toolbar .saved, .toolbar .kbd { display: none; }
  .portal-top { padding: 8px 8px 0; }
  .portal-top .inner { border-radius: 22px; flex-wrap: wrap; gap: 6px; padding: 6px; }
  .portal-top .brand span:last-child small { display: none; }
  .pnav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; }
  .userbox .who { display: none; }
  .cf-list, .meta dl { grid-template-columns: 1fr; gap: 2px 0; }
  .meta dt { margin-top: 8px; }
  h1 { font-size: 21px; }
  .hbar { grid-template-columns: 110px 1fr 48px; }
  .filters { border-radius: 18px; }
  .filters > * { flex: 1 1 140px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* fluxul de statusuri de pe pagina de start */
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; gap: 0; margin: 4px 0 18px; }
.pipeline { grid-template-columns: minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr) 28px minmax(0,1fr); }
.pnode { min-height: 0; padding: 14px 16px; }
.pnode .ntitle { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.pnode .nhead { margin-bottom: 10px; }
@media (max-width: 1100px) { .pipeline { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; } .pipeline .edge { display: none; } }
@media (max-width: 600px) { .pipeline { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* =====================================================================
   v6 – elemente noi: card evidențiat, bare, indicatoare, liste,
   cronometru, temă luminoasă, accent verde, organigramă, bara de jos
   ===================================================================== */

/* meniu: elementul activ strălucește, eticheta „Nou” */
.snav a { position: relative; }
.snav a.active { background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.12); overflow: hidden; }
.snav a.active::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 4px var(--accent); opacity: .85; }
.snav a.active::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -20%, var(--accent-soft), transparent 70%); pointer-events: none; }
.new-pill { margin-left: auto; font: 600 10px/1 "Inter", sans-serif; padding: 4px 7px; border-radius: 999px; background: var(--accent); color: #0b1030; }

/* comutator temă + accent */
.prefs { padding: 8px 2px 4px; border-top: 1px solid var(--stroke); margin-top: 8px; }
.mode-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: var(--muted); font: 500 14px "Inter", sans-serif; background: none; border: 0; border-radius: 12px; cursor: pointer; text-align: left; }
.mode-row:hover { background: var(--glass); color: var(--text); }
.mode-row .sw { margin-left: auto; width: 38px; height: 22px; border-radius: 999px; background: rgba(255,255,255,.15); position: relative; transition: background .2s; flex: none; }
.mode-row .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .2s; }
.mode-row .sw.on { background: var(--accent); } .mode-row .sw.on::after { left: 19px; background: #0c1022; }
.accents { display: flex; align-items: center; gap: 8px; padding: 4px 10px; }
.accents span { flex: 1; }
.acc { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; box-shadow: 0 0 0 1px var(--stroke-2); }
.acc.blue { background: linear-gradient(140deg, #8ea6ff, #4566ff); }
.acc.green { background: linear-gradient(140deg, #5df0a0, #1fbf6f); }
.acc.on { box-shadow: 0 0 0 2px var(--text); }

/* card principal evidențiat + săgeată */
.stat.hero { background: linear-gradient(145deg, var(--accent-strong), color-mix(in srgb, var(--accent-strong) 55%, #0b1030)); border-color: transparent; color: #fff;
  box-shadow: 0 18px 40px -18px var(--accent-strong), 0 1px 0 rgba(255,255,255,.25) inset; }
.stat.hero .lbl { color: rgba(255,255,255,.8); }
.stat.hero::after, .stat.has-arrow::after { display: none; }
.stat .arrow { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: var(--text); transition: transform .15s; }
.stat .arrow .i { width: 14px; height: 14px; transform: rotate(135deg); }
a.stat:hover .arrow { transform: translate(2px, -2px); }
.stat.hero .arrow { background: #fff; color: #0b1030; border-color: #fff; }
.stat .trend { font-size: 11.5px; color: var(--muted); }
.stat .trend.bad { color: var(--bad); }
.stat.hero .trend { color: rgba(255,255,255,.85); }
.stat.hero .num { color: #fff; }

/* rânduri de pe pagina de start */
.dash-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-row > .card { margin: 0; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }
.dash-side .card { margin: 0; }
.big-num { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.big-num .stars { font-size: 18px; }
.grid-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.grid-split > .card { margin: 0; }

/* bare rotunjite și hașurate */
.pbars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding: 22px 4px 0; }
.pbars .col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; position: relative; }
.pbars .bar { width: 100%; max-width: 46px; border-radius: 999px; transition: filter .15s; }
.pbars .col:hover .bar { filter: brightness(1.15); }
.pbars .bar.on { background: linear-gradient(180deg, var(--accent), var(--accent-strong)); box-shadow: 0 10px 24px -12px var(--accent-strong); }
.pbars .bar.off { background: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 3px, rgba(255,255,255,.03) 3px 8px); border: 1px solid var(--stroke); }
.pbars .bar.today { outline: 2px solid rgba(255,255,255,.6); outline-offset: 3px; }
.pbars .d { font: 500 11px var(--mono); color: var(--faint); height: 14px; }
.pbars .cnt { font: 500 10.5px var(--mono); color: var(--muted); }
.pbars .tip { position: absolute; font: 600 11px var(--mono); padding: 3px 7px; border-radius: 8px; background: #fff; color: #0b1030; }
.pbars.dense { gap: 4px; }
.pbars.dense .cnt { font-size: 9.5px; }

/* indicator circular */
.gauge { --p: 72; --c: var(--accent); width: 170px; height: 170px; margin: 6px auto; position: relative; border-radius: 50%;
  background: conic-gradient(from -120deg, var(--c) calc(var(--p) * 2.4deg), rgba(255,255,255,.09) 0 240deg, transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px)); mask: radial-gradient(farthest-side, transparent calc(100% - 18px), #000 calc(100% - 17px)); }
.gauge-wrap { position: relative; text-align: center; }
.gauge-wrap .val { position: absolute; inset: 0; display: grid; place-content: center; }
.gauge-wrap .val b { font-size: 32px; font-weight: 600; letter-spacing: -.02em; }
.gauge-wrap .val span { font-size: 12px; color: var(--muted); }
.legend2 { display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--muted); }
.legend2 i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.legend2 i.rest { background: rgba(127,127,127,.35); }

/* liste rafinate */
.rlist .row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--stroke); }
.rlist .row .txt { flex: 1; min-width: 0; }
.rlist .row .txt b { display: block; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rlist .row .txt a:hover b { color: var(--accent); }
.rlist .row .txt a:hover { text-decoration: none; }
.rlist .row .txt > span { font-size: 12px; color: var(--muted); }
.rlist .empty { border-top: 1px solid var(--stroke); }
.st { font-size: 11.5px; font-weight: 500; padding: 4px 10px; border-radius: 8px; white-space: nowrap; }
.st.prog { background: var(--warn-soft); color: var(--warn); }
.st.done { background: var(--ok-soft); color: var(--ok); }
.st.wait { background: var(--bad-soft); color: var(--bad); }
.st.new { background: var(--purple-soft); color: var(--purple); }
.st.pend { background: var(--glass-2); color: var(--muted); }

/* cronometru */
.timer { display: block; border-radius: var(--r-lg); padding: 18px 20px; color: #fff; position: relative; overflow: hidden; margin-bottom: 16px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.18), transparent 50%), linear-gradient(150deg, var(--accent-strong), #0f1a4a 90%); border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 40px -20px var(--accent-strong); }
a.timer:hover { text-decoration: none; }
.timer::after { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 110% 120%, rgba(255,255,255,.06) 0 2px, transparent 2px 22px); pointer-events: none; }
.timer > * { position: relative; z-index: 1; }
.timer .lbl { font: 500 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.timer .t { font: 500 40px/1 var(--mono); letter-spacing: .02em; margin: 14px 0 16px; text-align: center; font-variant-numeric: tabular-nums; }
.timer .sub { font-size: 12px; opacity: .8; text-align: center; margin-top: 10px; }
.timer .sub a { color: #fff; text-decoration: underline; }
.timer .ctrls { display: flex; justify-content: center; gap: 12px; }
.timer .ctrls button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0b1030; border: 0; cursor: pointer; font-size: 16px; transition: transform .12s; }
.timer .ctrls button:hover { transform: scale(1.06); }
.timer .ctrls button .i { width: 20px; height: 20px; fill: currentColor; }
.timer .ctrls button.stop { background: #ff5b6b; color: #fff; }
.timer .ctrls button.ghost { background: rgba(255,255,255,.14); color: #fff; width: 38px; height: 38px; align-self: center; }
.timer.running .t { color: #fff; text-shadow: 0 0 22px rgba(255,255,255,.35); }
.timer.running .lbl::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff5b6b; margin-right: 7px; vertical-align: 1px; animation: rec 1.4s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.timer-form input[type=text] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; margin-bottom: 8px; }
.timer-form input[type=text]::placeholder { color: rgba(255,255,255,.6); }
.tchk { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-bottom: 12px; cursor: pointer; }
.timer .tchk { justify-content: center; opacity: .9; }
.small-timer .t { font-size: 32px; margin: 10px 0 4px; }
.small-timer { margin: 0; }
.timer-pill { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; height: 36px; border-radius: 999px; font: 500 12.5px var(--mono); color: var(--text); background: var(--accent-soft); border: 1px solid var(--stroke-2); white-space: nowrap; }
.timer-pill:hover { text-decoration: none; background: var(--glass-3); }
.timer-pill .rec { width: 8px; height: 8px; border-radius: 50%; background: #ff5b6b; animation: rec 1.4s infinite; }
.time-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--stroke); }
.time-row .mono { font-size: 12.5px; min-width: 52px; }
.time-row .muted { flex: 1; min-width: 0; }
.time-form { margin-top: 10px; }
.time-form .tchk { margin: 8px 0 0; }

/* grafic circular */
.donut-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: center; }
.donut-box { position: relative; width: 220px; height: 220px; }
.donut { width: 100%; height: 100%; border-radius: 50%;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 30px), #000 calc(100% - 29px)); mask: radial-gradient(farthest-side, transparent calc(100% - 30px), #000 calc(100% - 29px)); }
.donut-box .val { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-box .val b { font-size: 34px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.donut-box .val span { font-size: 12px; color: var(--muted); margin-top: 4px; }
.donut-wrap.compact { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
.donut-wrap.compact .donut-box { width: 170px; height: 170px; }
.donut-wrap.compact .donut { -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px)); mask: radial-gradient(farthest-side, transparent calc(100% - 24px), #000 calc(100% - 23px)); }
.donut-wrap.compact .val b { font-size: 28px; }
.dlegend .r { display: grid; grid-template-columns: 12px 28px minmax(0,1fr) 44px 46px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--stroke); }
.dlegend .r.nocav { grid-template-columns: 12px minmax(0,1fr) 40px 44px; }
.dlegend .r:last-child { border-bottom: 0; }
.dlegend .sw { width: 10px; height: 10px; border-radius: 3px; }
.dlegend .n { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dlegend .c { font: 600 14px var(--mono); text-align: right; }
.dlegend .p { font: 500 12px var(--mono); color: var(--muted); text-align: right; }

/* rapoarte per client */
.period { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.period .range { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); color: var(--muted); }
.period .range input { border: 0; background: transparent; box-shadow: none; padding: 4px 0; height: auto; width: auto; color: var(--text); font-size: 13px; }
.client-search .search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); color: var(--muted); }
.client-search input { border: 0; background: transparent; box-shadow: none; padding: 8px 0; width: 220px; }
.client-search input:focus { outline: none; box-shadow: none; }
.client-pick { display: flex; align-items: center; gap: 12px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); }
.client-pick b { font-weight: 600; } .client-pick small { display: block; color: var(--muted); font-size: 11.5px; }
.logo-c { --h: 30; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 12px; color: #0b1030;
  background: linear-gradient(140deg, hsl(var(--h) 95% 78%), hsl(calc(var(--h) + 25) 85% 62%)); }
.client-cell { display: flex; align-items: center; gap: 12px; color: var(--text); }
.client-cell:hover { text-decoration: none; }
.client-cell:hover b { color: var(--accent); }
.client-cell b { font-weight: 600; display: block; }
.client-cell small { display: block; color: var(--muted); font-size: 11.5px; }
table.ctab td, table.ctab th { padding: 11px 16px; }
table.ctab td.num { font-family: var(--mono); text-align: right; white-space: nowrap; }
table.ctab th.num { text-align: right; }
table.ctab tfoot td { border-top: 1px solid var(--stroke-2); padding-top: 14px; padding-bottom: 14px; }
.mini { display: inline-block; width: 70px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.mini i { display: block; height: 100%; border-radius: 999px; background: var(--ok); }
.mini i.w { background: var(--warn); } .mini i.b { background: var(--bad); }
.mini-bar { display: inline-block; width: 46px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; vertical-align: middle; margin-right: 10px; }
.mini-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent-strong), var(--accent)); }
.notice { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 16px; border-radius: var(--r); background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); }
.notice > .i { color: var(--warn); width: 22px; height: 22px; }
.notice > div { flex: 1; }
.inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; }
details.collapsible > summary { list-style: none; cursor: pointer; margin: 0; }
details.collapsible > summary::-webkit-details-marker { display: none; }
details.collapsible > summary h2 { margin: 0; }
details.collapsible[open] > summary { border-bottom: 1px solid var(--stroke); }

/* organigramă */
.org { position: relative; padding: 18px 10px 26px; overflow-x: auto; }
.org svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.org svg.wires path { fill: none; stroke: color-mix(in srgb, var(--accent) 75%, transparent); stroke-width: 1.5; filter: drop-shadow(0 0 4px var(--accent)); }
.org svg.wires circle { fill: var(--accent); }
.org-root { display: flex; justify-content: center; margin-bottom: 46px; }
.org-cols { display: flex; justify-content: center; gap: 34px; flex-wrap: wrap; }
.org-col { display: flex; flex-direction: column; align-items: center; gap: 42px; min-width: 170px; }
.org-members { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 14px; max-width: 520px; }
.org .pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--bg); color: var(--text);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); box-shadow: 0 0 18px -6px var(--accent); font-weight: 500; }
.org .pill .cnt { font: 500 11px var(--mono); padding: 2px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
a.pill:hover { text-decoration: none; border-color: var(--accent); }
.org .member { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 14px 12px; min-width: 150px; max-width: 170px; text-align: center;
  border-radius: 16px; background: color-mix(in srgb, var(--bg) 82%, #fff 4%); border: 1px solid var(--stroke); color: var(--text); }
.org .member:hover { text-decoration: none; border-color: var(--stroke-2); transform: translateY(-1px); }
.org .member b { font-weight: 600; font-size: 13.5px; }
.org .member small { color: var(--muted); font-size: 11.5px; }
.org .member.lead { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }

/* bara plutitoare de jos (telefon) */
.tabbar { display: none; }
@media (max-width: 700px) {
  body.staff, body.portal, body.admin { padding-bottom: 104px; }
  .tabbar { position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 50; height: 66px; border-radius: 999px; display: flex; align-items: center; justify-content: space-around; padding: 0 8px;
    background: rgba(22, 28, 60, .62); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.12) inset; }
  .tabbar a, .tabbar button { width: 54px; height: 50px; border-radius: 999px; display: grid; place-items: center; color: rgba(222,228,248,.7); position: relative; background: none; border: 0; cursor: pointer; }
  .tabbar .i { width: 24px; height: 24px; }
  .tabbar .on { background: rgba(255,255,255,.14); color: #fff; width: 76px; }
  .tabbar .tab-inbox { color: #fff; background: linear-gradient(140deg, var(--accent), var(--accent-strong)); width: 50px; box-shadow: 0 8px 20px -8px var(--accent-strong); }
  .tabbar .dotn { position: absolute; top: 9px; right: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #1a2150; }
  .sidebar .snav, .sidebar .prefs { display: none; }
  body.menu-open .sidebar .snav { display: flex; flex-direction: column; flex-basis: 100%; order: 3; white-space: normal; }
  body.menu-open .sidebar .snav a.sub, body.menu-open .sidebar .snav .grp { display: block; }
  body.menu-open .sidebar .prefs { display: block; flex-basis: 100%; order: 4; }
  .pnav { display: none; }
  .dash-row, .grid-split { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .donut-wrap, .donut-wrap.compact { grid-template-columns: 1fr; justify-items: center; }
  .dlegend { width: 100%; }
  .client-pick { width: 100%; }
  .client-search input { width: 100%; }
  .toolbar .timer-pill { display: none; }
  .org-col { min-width: 0; }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .dash-row { grid-template-columns: 1fr 1fr; }
  .dash-row > :first-child { grid-column: 1 / -1; }
}

/* accent verde pe negru */
body.green { --glow-1: rgba(40, 140, 90, .30); --glow-2: rgba(20, 70, 55, .42); --glow-3: rgba(60, 130, 70, .24);
  --accent: #5df0a0; --accent-strong: #1fbf6f; --accent-soft: rgba(93,240,160,.14); --bg: #050807;
  background: radial-gradient(900px 500px at 10% -10%, var(--glow-1), transparent 60%), radial-gradient(900px 600px at 90% 110%, var(--glow-3), transparent 60%), linear-gradient(180deg, #070b0a, #050807);
  background-attachment: fixed; }
body.green .content { background-color: rgba(8, 14, 12, .7); background-image: radial-gradient(rgba(140,255,200,.07) 1px, transparent 1.2px); }
body.green .edge { background: linear-gradient(90deg, rgba(93,240,160,.15), rgba(93,240,160,.8)); box-shadow: 0 0 10px rgba(93,240,160,.5); }
body.green .edge::after { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
body.green .node-ico.accent, body.green .new-pill { color: #04140b; }
body.green .timer { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.16), transparent 50%), linear-gradient(150deg, #1fbf6f, #06291a 90%); }
body.green .stat.hero { background: linear-gradient(145deg, #1fbf6f, #0b4a2c); }
body.green .admin-band { color: var(--accent); background: var(--accent-soft); border-color: rgba(93,240,160,.3); }
html:has(body.green) { background: #050807; }

/* temă luminoasă (meniul rămâne închis la culoare) */
body.light { --bg: #eef2f8; --glass: #ffffff; --glass-2: #f3f5fa; --glass-3: #e9edf7; --canvas: #f6f8fc; --stroke: #e3e7f0; --stroke-2: #d3d9e6;
  --text: #121a33; --muted: #5d6680; --faint: #9aa2b6; --accent: #4566ff; --accent-strong: #2f4fe8; --accent-soft: rgba(69,102,255,.12);
  --ok: #0f7a4a; --ok-soft: #e3f6ec; --warn: #9a5a00; --warn-soft: #fdf1dc; --bad: #e0434f; --bad-soft: #fde8ea; --purple: #7a55e0; --purple-soft: #efe9fd;
  --shadow: 0 1px 2px rgba(18,26,51,.05), 0 10px 26px -18px rgba(18,26,51,.25); color-scheme: light;
  background: #e8edf6; }
html:has(body.light) { background: #e8edf6; }
body.light.green { --accent: #12a35a; --accent-strong: #0d8a4a; --accent-soft: rgba(18,163,90,.12); }
body.light.admin { --accent: #a85a00; --accent-strong: #8f4c00; --accent-soft: rgba(217,122,11,.12); }
body.light.portal { --accent: #0b7a6e; --accent-strong: #096a60; --accent-soft: rgba(15,159,143,.12); }
body.light .content { background-color: #f5f7fb; background-image: none; border-color: #e3e7f0; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.light .sidebar, body.light .portal-top .inner { background: #0c1022; border-color: #0c1022; color: #c9d2e3; --text: #eef1fb; --muted: rgba(222,228,248,.62); --faint: rgba(222,228,248,.4);
  --stroke: rgba(255,255,255,.1); --stroke-2: rgba(255,255,255,.18); --glass: rgba(255,255,255,.05); --glass-2: rgba(255,255,255,.08); --glass-3: rgba(255,255,255,.1);
  --accent: #c6f432; --accent-soft: rgba(198,244,50,.16); }
body.light.green .sidebar { --accent: #5df0a0; --accent-soft: rgba(93,240,160,.16); }
body.light.admin .sidebar { --accent: #ffc36e; --accent-soft: rgba(255,195,110,.16); }
body.light .sidebar .brand, body.light .portal-top .brand { color: #fff; }
body.light .sidebar .btn, body.light .portal-top .btn { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
body.light .portal-top .btn.primary { background: var(--accent); color: #0c1022; }
body.light .card, body.light .stat, body.light .toolbar, body.light .comment, body.light .filters, body.light .seg-tabs, body.light .chip, body.light .bulkbar, body.light .kb-cat, body.light .messages li { -webkit-backdrop-filter: none; backdrop-filter: none; }
body.light .btn { background: #fff; border-color: #dfe4ee; color: #121a33; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.light .btn:hover { background: #f3f5fa; }
body.light .btn.primary { background: #121a33; color: #fff; border-color: #121a33; box-shadow: 0 8px 18px -10px rgba(18,26,51,.6); }
body.light .btn.link { background: none; border-color: transparent; color: var(--accent); }
body.light .btn.danger { color: var(--bad); }
body.light th { background: #f6f8fc; }
body.light tbody tr:hover { background: #f8f9fd; }
body.light .badge { background: #fff; }
body.light input, body.light select, body.light textarea { background-color: #fff; border-color: #d9dfea; color: #121a33; }
body.light .pbars .bar.off { background: repeating-linear-gradient(135deg, #dfe4ee 0 3px, #f6f8fc 3px 8px); border-color: #e3e7f0; }
body.light .pbars .bar.today { outline-color: rgba(18,26,51,.35); }
body.light .pbars .tip { background: #121a33; color: #fff; }
body.light .gauge { background: conic-gradient(from -120deg, var(--c) calc(var(--p) * 2.4deg), #e6eaf3 0 240deg, transparent 0); }
body.light .hbar .track, body.light .mini, body.light .mini-bar { background: #e9edf5; }
body.light .stat::after { box-shadow: none; }
body.light .stat .arrow { background: #f3f5fa; border-color: #e3e7f0; color: #121a33; }
body.light .stat.hero .arrow { background: #fff; }
body.light .av { box-shadow: 0 0 0 2px #fff; }
body.light .timer-form input[type=text] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; }
body.light .org .pill { background: #fff; }
body.light .org .member { background: #fff; }
body.light code { background: #f1f3f9; }
body.light .tabbar { background: rgba(12, 16, 34, .88); }
body.light .new-pill { color: #0c1022; }
body.light .comment.internal { background: #fff8ea; }
body.light .notice { border-color: #f3d9a8; }
.hbar { grid-template-columns: 150px 1fr minmax(56px, auto); }
.hbar .v { white-space: nowrap; }
.dlegend .r.nocav .n { white-space: normal; line-height: 1.25; }
.dlegend .r.nocav { grid-template-columns: 12px minmax(0,1fr) 30px 40px; gap: 8px; }
@media (max-width: 700px) {
  .stats .stat.hero { grid-column: 1 / -1; }
  .page-head .btn-row .btn { flex: 1 1 auto; justify-content: center; }
  .pbars { gap: 6px; height: 170px; }
}
body.light .prio-critical { color: var(--bad); background: var(--bad-soft); border-color: #f6c3c8; }
body.light .prio-normal { color: #4f63c9; }
body.light .prio-low { color: #8a92a8; }
.timer-warn { font-size: 12.5px; background: rgba(255,91,107,.22); border: 1px solid rgba(255,140,150,.45); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.timer-form input[type=number] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; margin-bottom: 8px; }

/* ---------- corecturi de afișaj (verificare v7) ---------- */
code { overflow-wrap: anywhere; }
.api-doc td code { word-break: break-all; }
.dash-row > *, .grid-split > *, .grid > * { min-width: 0; }
@media (max-width: 1250px) {
  .grid-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) and (min-width: 701px) {
  .dash-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .seg-tabs { display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg-tabs a { flex: none; white-space: nowrap; }
  .subbar { flex-direction: column; align-items: stretch; }
  .filters input[type=search] { flex: 1 1 160px; }
  .filters > * { flex: 1 1 140px; }
  .filters > .btn { flex-basis: 100%; justify-content: center; }
  /* tichetele ca o listă de carduri */
  table.ttable thead { display: none; }
  table.ttable, table.ttable tbody { display: block; }
  table.ttable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; position: relative; border-top: 1px solid var(--stroke); }
  table.ttable tr:has(.c-sel) { padding-left: 46px; }
  table.ttable td { padding: 0; border: 0; }
  table.ttable .c-sel { position: absolute; left: 14px; top: 14px; }
  table.ttable .c-subj { order: -1; flex-basis: 100%; }
  table.ttable .c-subj a { font-weight: 500; }
  table.ttable .c-req, table.ttable .c-asg { font-size: 12.5px; }
  table.ttable .c-req .muted, table.ttable .c-asg .muted:only-child { display: none; }
  table.ttable .c-sla { font-size: 12px; font-family: var(--mono); }
  table.ttable .c-upd { margin-left: auto; }
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .client-search, .client-search .search { width: 100%; }
  .period { width: 100%; }
  .period .range { flex: 1 1 100%; justify-content: space-between; }
}
body.light .node-ico.accent { color: #fff; }
@media (max-width: 700px) {
  .table-wrap > table:not(.ttable) { min-width: 560px; }
  .table-wrap > table input[type=number] { min-width: 70px; }
  .notice { flex-wrap: wrap; }
  .notice .inline-form { flex-basis: 100%; }
  .notice .inline-form input { flex: 1; width: auto !important; }
  .admin-band { font-size: 10px; }
}
.hbar { grid-template-columns: minmax(60px, 42%) minmax(30px, 1fr) minmax(40px, auto); }
.hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1200px) and (min-width: 901px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .shell { align-content: start; } .sidebar { align-self: start; } }
/* liste derulante și etichete în tema luminoasă / verde */
body.green select option { background: #0b1410; }
body.light select option, body.light select optgroup { background: #fff; color: #121a33; }
body.light .edge .lbl { background: #fff; color: #5d6680; border-color: #dfe4ee; }
body.light .or span { background: #f5f7fb; }

/* ---------- lista de tichete: file, filtre ca meniu, diferențiere rânduri ---------- */
:root { --k-me: var(--accent); --k-none: var(--warn); --k-others: var(--purple); --k-done: var(--faint); }
.list-tabs { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
.list-tabs a { gap: 8px; }
.list-tabs a .count { margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: var(--glass-2); color: var(--muted); }
.list-tabs a.active .count { background: var(--accent-soft); color: var(--text); }
.kdot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.kdot.me { background: var(--k-me); box-shadow: 0 0 8px var(--k-me); }
.kdot.none { background: var(--k-none); box-shadow: 0 0 8px var(--k-none); }
.kdot.others { background: var(--k-others); }
.kdot.done { background: transparent; border: 2px solid var(--k-done); width: 10px; height: 10px; }

.list-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.list-tools .search { flex: 1; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--stroke); color: var(--muted); min-width: 0; }
.list-tools .search input { border: 0; background: transparent; box-shadow: none; padding: 10px 0; height: auto; }
.list-tools .search input:focus { outline: none; box-shadow: none; }
.list-tools .search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.list-tools .btn.on { border-color: var(--accent); color: var(--text); }
.badge-n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; font: 600 11px var(--mono); background: var(--accent); color: #0b1030; }
body.light .badge-n { color: #fff; }

.dropdown { position: relative; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: min(560px, calc(100vw - 32px)); padding: 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 92%, #fff 3%); border: 1px solid var(--stroke-2); box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
body.light .dropdown-panel { background: #fff; box-shadow: 0 24px 60px -24px rgba(18,26,51,.35); }
.dropdown-panel::before { content: ""; position: absolute; top: -6px; right: 28px; width: 12px; height: 12px; transform: rotate(45deg); background: inherit; border-left: 1px solid var(--stroke-2); border-top: 1px solid var(--stroke-2); }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.dp-grid label { display: flex; flex-direction: column; gap: 5px; font: 500 10.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.dp-grid select { font: 400 14px "Inter", sans-serif; letter-spacing: 0; text-transform: none; }
.dp-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--stroke); }
.active-filters { align-items: center; margin-bottom: 10px; }
.active-filters .chip { background: var(--accent-soft); border-color: transparent; color: var(--text); padding: 5px 8px 5px 12px; }
.active-filters .chip b { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-2); font-family: inherit; }
.active-filters .chip:hover b { background: var(--bad-soft); color: var(--bad); }
.legend-rows { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); margin: 0 4px 10px; }
.legend-rows span { display: inline-flex; align-items: center; gap: 7px; }

/* rândurile tabelului (doar în spațiul tehnicienilor) */
body.staff table.ttable tbody tr { box-shadow: inset 3px 0 0 transparent; }
body.staff table.ttable tr.row-me { box-shadow: inset 3px 0 0 var(--k-me); background: color-mix(in srgb, var(--k-me) 7%, transparent); }
body.staff table.ttable tr.row-none { box-shadow: inset 3px 0 0 var(--k-none); background: color-mix(in srgb, var(--k-none) 6%, transparent); }
body.staff table.ttable tr.row-others { box-shadow: inset 3px 0 0 color-mix(in srgb, var(--k-others) 70%, transparent); }
table.ttable tr.row-done td { opacity: .55; }
table.ttable tr.row-done:hover td { opacity: .9; }
table.ttable tr.row-done .c-subj a { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text) 35%, transparent); }
.own-tag, .none-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 4px; border-radius: 999px; white-space: nowrap; }
.own-tag { background: var(--accent-soft); color: var(--text); }
.none-tag { background: var(--warn-soft); color: var(--warn); padding-left: 10px; }
td.c-act { width: 1%; white-space: nowrap; text-align: right; }
td.c-act form { margin: 0; }
@media (max-width: 700px) {
  .list-tabs { flex-wrap: nowrap; }
  .list-tools { flex-wrap: wrap; }
  .list-tools .search { flex-basis: 100%; }
  .list-tools .pill-meta { margin-left: auto; }
  .dropdown { position: static; }
  .dropdown-panel { left: 0; right: 0; width: auto; top: 100%; margin-top: 8px; position: absolute; }
  .dropdown-panel::before { display: none; }
  .list-tools { position: relative; }
  .dp-grid { grid-template-columns: 1fr; }
  body.staff table.ttable tr.row-me, body.staff table.ttable tr.row-none, body.staff table.ttable tr.row-others { box-shadow: inset 4px 0 0 var(--k-me); }
  body.staff table.ttable tr.row-none { box-shadow: inset 4px 0 0 var(--k-none); }
  body.staff table.ttable tr.row-others { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--k-others) 70%, transparent); }
}
.dropdown-panel { background: #141a3c; }
body.green .dropdown-panel { background: #0c1411; }
body.light .dropdown-panel { background: #fff; }
body.light { --k-done: #8a92a8; }
@media (max-width: 700px) {
  .dp-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
body.light select:not([multiple]) { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6680' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); }

/* antispam */
.q-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 18px; margin-bottom: 12px; }
.q-actions .tchk { margin: 0 8px 0 4px; }
.more-menu { display: inline-block; }
.more-menu > summary { list-style: none; cursor: pointer; }
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu[open] > summary { border-color: var(--bad); color: var(--bad); }
.spam-panel { display: flex; flex-direction: column; gap: 10px; width: 330px; }
.spam-panel .tchk { margin: 0; font-size: 13px; }
.spam-panel .btn { align-self: flex-end; }
@media (max-width: 700px) { .spam-panel { position: fixed; left: 12px; right: 12px; top: auto; bottom: 96px; width: auto; z-index: 60; } .spam-panel::before { display: none; } }
.spam-panel .tchk { align-items: flex-start; }
.spam-panel .tchk input { margin-top: 2px; flex: none; }
.spam-panel .tchk b { overflow-wrap: anywhere; }

/* lista de tichete are propria căutare: bara de sus păstrează doar cronometrul și starea SLA */
.toolbar.no-search { justify-content: flex-end; }
.toolbar.no-search .search { display: none; }
@media (max-width: 700px) { .toolbar.no-search { display: none; } }
.snav a.sub.on { color: var(--text); font-weight: 600; }

/* ---------- calendar vizite ---------- */
.cal-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav .btn { min-width: 38px; justify-content: center; }
.cal-filter { margin-left: auto; }
.cal-filter select { min-width: 190px; }
.cal { overflow: hidden; margin-bottom: 16px; }
.cal-head, .cal-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 10px 10px 8px; font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.cal-row + .cal-row, .cal-head + .cal-row { border-top: 1px solid var(--stroke); }
.cal-day { min-height: 112px; padding: 6px 6px 8px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-day + .cal-day { border-left: 1px solid var(--stroke); }
.cal-day.weekend { background: rgba(255,255,255,.015); }
.cal-day.other { opacity: .45; }
.cal-week .cal-day { min-height: 340px; }
.cal-dn { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 0 2px 2px; }
.cal-dn span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal-day.today .cal-dn span { background: var(--accent); color: #fff; font-weight: 600; }
.cal-add { opacity: 0; color: var(--muted); font-size: 16px; line-height: 1; padding: 0 4px; border-radius: 6px; text-decoration: none; }
.cal-day:hover .cal-add, .cal-add:focus { opacity: 1; }
.cal-add:hover { color: var(--text); background: var(--glass-3); }
.vchip { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.25; padding: 4px 6px; border-radius: 7px; text-decoration: none; color: var(--text);
  background: hsl(var(--h) 70% 60% / .16); border-left: 3px solid hsl(var(--h) 70% 62%); min-width: 0; }
.vchip:hover { background: hsl(var(--h) 70% 60% / .26); }
.vchip .vt { font: 500 11px var(--mono); color: var(--muted); flex: none; }
.vchip .vn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.vchip .vs { color: var(--ok); flex: none; }
.vchip.st-done { opacity: .7; }
.vchip.st-cancelled { opacity: .45; text-decoration: line-through; border-left-style: dashed; }
body.light .vchip { background: hsl(var(--h) 70% 55% / .12); border-left-color: hsl(var(--h) 65% 50%); }
.cal-agenda { margin-bottom: 16px; }
.cal-agenda.mobile-only { display: none; }
.ag-day { display: grid; grid-template-columns: 64px 1fr; border-top: 1px solid var(--stroke); }
.ag-day:first-child { border-top: 0; }
.ag-date { padding: 14px 0 0 18px; display: flex; flex-direction: column; color: var(--muted); }
.ag-date b { font-size: 20px; color: var(--text); line-height: 1.1; }
.ag-date span { font-size: 11.5px; text-transform: lowercase; }
.ag-date.today b { color: var(--accent); }
.ag-list { padding: 8px 14px 8px 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-item { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text);
  border-left: 3px solid hsl(var(--h) 70% 62%); background: var(--glass-2); min-width: 0; }
.ag-item:hover { background: var(--glass-3); }
.ag-item.st-cancelled { opacity: .5; }
.ag-item.st-cancelled b { text-decoration: line-through; }
.ag-time { font-size: 12px; color: var(--muted); flex: none; width: 92px; }
.ag-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ag-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-tech { display: flex; gap: 2px; flex: none; }
.copy-row { display: flex; gap: 8px; align-items: center; margin: 8px 0; }
.copy-row input { flex: 1; min-width: 0; font: 12px var(--mono); }
.tech-picks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.grid.tight { gap: 0 12px; }
.grid.tight > div > .form-row, .grid.tight > .form-row { margin-bottom: 12px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack .btn { justify-content: center; }
.sig-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.sig-row figure { margin: 0; }
.sig-row img { display: block; height: 70px; max-width: 220px; background: #fff; border-radius: 8px; border: 1px solid var(--stroke); }
.sig-row figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; }
.series-list { display: flex; flex-wrap: wrap; gap: 6px; }
.series-list a { font: 12px var(--mono); padding: 4px 8px; border-radius: 7px; background: var(--glass-2); color: var(--muted); text-decoration: none; }
.series-list a.on { background: var(--accent); color: #fff; }
.series-list a.st-cancelled { text-decoration: line-through; opacity: .6; }
.sigpad { position: relative; height: 180px; border-radius: 12px; background: #fff; border: 1px dashed var(--stroke-2); margin-bottom: 10px; touch-action: none; }
.sigpad canvas { width: 100%; height: 100%; display: block; border-radius: 12px; cursor: crosshair; touch-action: none; }
.sigpad .sig-hint { position: absolute; left: 0; right: 0; bottom: 42%; text-align: center; color: #9aa2b6; font-size: 13px; pointer-events: none; }
.sigpad.signed .sig-hint { display: none; }
.sigpad [data-clear] { position: absolute; right: 8px; top: 8px; background: #eef1f8; color: #3a4466; border-color: #dde2ee; }
.sigpad::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 34px; border-bottom: 1px solid #e3e7f0; pointer-events: none; }
.up-visits .row .when { font: 12px var(--mono); color: var(--muted); white-space: nowrap; }
@media (max-width: 900px) { .cal-day { min-height: 88px; } }
@media (max-width: 1100px) { .cal-month .vchip .vt, .cal:not(.cal-week) .vchip .vt { display: none; } }
@media (max-width: 700px) {
  .cal { display: none; }
  .cal-agenda.mobile-only { display: block; }
  .cal-filter { margin-left: 0; width: 100%; }
  .cal-filter select { width: 100%; }
  .ag-day { grid-template-columns: 48px 1fr; }
  .ag-date { padding-left: 12px; }
  .ag-item { flex-wrap: wrap; gap: 4px 10px; }
  .ag-time { width: auto; }
  .ag-main { flex-basis: 100%; order: 3; }
  .copy-row { flex-wrap: wrap; }
}
.copy-lbl { font-size: 12.5px; color: var(--muted); width: 104px; flex: none; }
@media (max-width: 700px) { .copy-lbl { width: 100%; } }
.meta dd .person + .person { margin-left: 14px; }
.meta dd:has(.person + .person) { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.meta dd:has(.person + .person) .person + .person { margin-left: 0; }
.stack-form { display: flex; flex-direction: column; gap: 10px; }
.stack-form label { display: flex; flex-direction: column; gap: 6px; }
.stack-form .btn { align-self: flex-start; }
.bad-text { color: var(--bad); }
.org-notice { align-items: flex-start; }
.sig-preview { background: #fff; color: #1f2433; border-radius: 10px; padding: 14px; font-size: 13px; line-height: 1.5; display: inline-block; max-width: 100%; }
.sig-preview img { display: block; max-width: 100%; height: auto; margin-top: 6px; }
.mute-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); border: 1px solid var(--stroke-2); border-radius: 6px; padding: 0 5px; margin-left: 4px; vertical-align: 1px; }
.mute-tag .i { width: 11px; height: 11px; }
.btn.is-muted { border-color: var(--warn); color: var(--warn); }

/* ---------- ajustări după verificarea interfeței ---------- */
@media (max-width: 900px) {
  .snav a { flex: none; }
  .prefs { border-top: 0; margin-top: 0; }
}
.card:has(> .donut-wrap), .card:has(> div > .donut-wrap) { container-type: inline-size; }
@container (max-width: 470px) {
  .donut-wrap, .donut-wrap.compact { grid-template-columns: 1fr; justify-items: center; }
  .dlegend { width: 100%; }
}
@media (max-width: 1500px) and (min-width: 1101px) { table.ttable .c-upd { display: none; } }
@media (min-width: 1101px) { table.ttable td.c-sla { white-space: nowrap; font-size: 12.5px; } }
@media (max-width: 700px) {
  .table-wrap > table.fit { min-width: 0; }
}
body.light { --faint: #7a8399; }
body.light .bulkbar { background: rgba(255,255,255,.94); box-shadow: var(--shadow); }
.card-title .node-ico.accent .i { color: inherit; }
.toolbar.no-search { background: transparent; border-color: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: flex-end; }
.cal-week .vchip { flex-wrap: wrap; align-items: flex-start; }
.cal-week .vchip .vn { white-space: normal; overflow-wrap: anywhere; }
input[type=file] { color: var(--muted); font-size: 13px; padding: 6px; }
input[type=file]::file-selector-button { font: inherit; font-weight: 500; color: var(--text); background: var(--glass-2); border: 1px solid var(--stroke-2); border-radius: 999px; padding: 6px 14px; margin-right: 10px; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--glass-3); }
@media (min-width: 1101px) {
  table.ttable td.c-req .person > span:last-child { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  table.ttable td.c-subj { min-width: 140px; }
}
@media (max-width: 1280px) and (min-width: 1101px) {
  table.ttable td.c-req .person > span:last-child { max-width: 160px; }
  table.ttable th, table.ttable td { padding-left: 10px; padding-right: 10px; }
}
/* lista de tichete ca listă de carduri și pe tabletă / ecrane mici (tabelul nu mai încape lângă meniu) */
@media (max-width: 1100px) {
  table.ttable thead { display: none; }
  table.ttable, table.ttable tbody { display: block; }
  table.ttable tr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 12px 14px; position: relative; border-top: 1px solid var(--stroke); }
  table.ttable tr:has(.c-sel) { padding-left: 46px; }
  table.ttable td { padding: 0; border: 0; }
  table.ttable .c-sel { position: absolute; left: 14px; top: 14px; }
  table.ttable .c-subj { order: -1; flex-basis: 100%; }
  table.ttable .c-subj a { font-weight: 500; }
  table.ttable .c-req, table.ttable .c-asg { font-size: 12.5px; }
  table.ttable .c-req .muted, table.ttable .c-asg .muted:only-child { display: none; }
  table.ttable .c-sla { font-size: 12px; font-family: var(--mono); }
  table.ttable .c-upd { margin-left: auto; }
  table.ttable td.c-act { margin-left: 8px; width: auto; flex: none; }
  table.ttable td.c-act:empty { display: none; }
  body.staff table.ttable tr.row-me { box-shadow: inset 4px 0 0 var(--k-me); }
  body.staff table.ttable tr.row-none { box-shadow: inset 4px 0 0 var(--k-none); }
  body.staff table.ttable tr.row-others { box-shadow: inset 4px 0 0 color-mix(in srgb, var(--k-others) 70%, transparent); }
}
.org-sla td input { max-width: 150px; }
.org-sla td { vertical-align: middle; }
.org-sla td .error { margin-top: 4px; }
body.light .stars { color: #c98a00; }
body.light .sigpad .sig-hint { color: #6b7386; }
table.catalog td:last-child { white-space: nowrap; }
@media (max-width: 1280px) and (min-width: 701px) { table.catalog-organizatii th:nth-child(5), table.catalog-organizatii td:nth-child(5) { display: none; } }
dl.status-list { display: grid; grid-template-columns: minmax(130px, 38%) 1fr; gap: 10px 14px; margin: 0; }
dl.status-list dt { color: var(--muted); font-size: 13px; }
dl.status-list dd { margin: 0; font-size: 13.5px; }
dl.status-list .dot { margin-right: 4px; vertical-align: 1px; }
@media (max-width: 700px) { dl.status-list { grid-template-columns: 1fr; gap: 2px; } dl.status-list dd { margin-bottom: 8px; } }
.system-alerts li a { margin-left: 6px; }

/* =====================================================================
   Animații (sigla, indicator care alunecă, lumină pe margine, strălucire,
   buton principal, intrarea paginii). Oprite pentru „reducere mișcare”.
   ===================================================================== */
@property --beam-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* 1. sigla cu „radar” */
.logo { position: relative; overflow: hidden; }
.logo .i { position: relative; z-index: 1; }
.logo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .55; pointer-events: none;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255,255,255,.75) 92%, transparent 100%);
  animation: hd-sweep 4s linear infinite; }
@keyframes hd-sweep { to { transform: rotate(360deg); } }

/* 2. indicator care alunecă (meniu lateral, tab-uri, meniul portalului) */
.has-ind { position: relative; }
.has-ind > a { position: relative; z-index: 1; }
.has-ind > a.active { background: transparent; border-color: transparent; box-shadow: none; }
.snav.has-ind > a.active::before, .snav.has-ind > a.active::after { display: none; }
.slide-ind { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; opacity: 0; border-radius: 12px;
  background: var(--glass-3); border: 1px solid var(--stroke-2); box-shadow: 0 1px 0 rgba(255,255,255,.1) inset;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.slide-ind.instant { transition: none; }
.seg-tabs .slide-ind, .pnav .slide-ind { border-radius: 999px; }
.snav .slide-ind { overflow: hidden; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.12); }
.snav .slide-ind::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); box-shadow: 0 0 18px 4px var(--accent); opacity: .85; }
.snav .slide-ind::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% -20%, var(--accent-soft), transparent 70%); }
body.light .seg-tabs .slide-ind { background: #fff; border-color: #dfe4ee; box-shadow: 0 1px 3px rgba(18,26,51,.08); }
body.light .portal-top .pnav .slide-ind { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); box-shadow: none; }

/* 3. lumină care parcurge marginea (bara de căutare, cardul principal) */
.toolbar:not(.no-search), .stat.hero, .portal-top .inner { position: relative; }
.toolbar:not(.no-search)::before, .stat.hero::before, .portal-top .inner::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: conic-gradient(from var(--beam-a), transparent 0 78%, color-mix(in srgb, var(--accent) 70%, #fff) 88%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: hd-beam 7s linear infinite; }
.stat.hero::before { background: conic-gradient(from var(--beam-a), transparent 0 78%, rgba(255,255,255,.9) 88%, transparent 96%); }
@keyframes hd-beam { to { --beam-a: 360deg; } }

/* 4. strălucire ambientală sub bara de sus */
.content, body.portal main.container { position: relative; isolation: isolate; }
.content::before, body.portal main.container::before { content: ""; position: absolute; left: 15%; right: 15%; top: 0; height: 170px; z-index: -1;
  pointer-events: none; background: radial-gradient(50% 70% at 50% 0%, color-mix(in srgb, var(--accent-strong) 45%, transparent), transparent 72%);
  opacity: .45; animation: hd-breathe 6s ease-in-out infinite; }
body.light .content::before { opacity: .18; }
@keyframes hd-breathe { 50% { opacity: .85; transform: scaleX(1.08); } }
body.light .content::before { animation-name: hd-breathe-light; }
@keyframes hd-breathe-light { 50% { opacity: .3; transform: scaleX(1.08); } }

/* 5. buton principal cu săgeată în cerc + reflex de lumină */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; top: 0; bottom: 0; width: 45%; left: -70%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); }
.btn.primary:hover::after { animation: hd-shine .8s ease; }
@keyframes hd-shine { to { left: 130%; } }
.btn.cta { padding: 0 5px 0 18px; gap: 10px; color: #fff; border: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 78%, #0b1030), color-mix(in srgb, var(--accent-strong) 62%, #0b1030));
  box-shadow: 0 10px 26px -10px var(--accent-strong), 0 1px 0 rgba(255,255,255,.25) inset; }
.btn.cta:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 85%, #0b1030), color-mix(in srgb, var(--accent-strong) 68%, #0b1030));
  box-shadow: 0 14px 30px -10px var(--accent-strong), 0 1px 0 rgba(255,255,255,.25) inset; }
.btn.cta .arr { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--accent-strong); display: grid; place-items: center;
  transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.btn.cta .arr .i { width: 15px; height: 15px; }
.btn.cta:hover .arr { transform: rotate(45deg) scale(1.06); }
.btn.cta.small { padding-left: 14px; }
.btn.cta.small .arr { width: 26px; height: 26px; }
body.light .btn.cta, body.light .portal-top .btn.cta { color: #fff; border: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-strong) 88%, #0b1030), color-mix(in srgb, var(--accent-strong) 72%, #0b1030)); }
body.light .portal-top .btn.cta .arr { color: var(--accent-strong); }

/* 6. intrarea lină a paginii */
.content > *, body.portal main.container > * { animation: hd-rise .55s cubic-bezier(.2,.8,.2,1) backwards; }
.content > *:nth-child(2), body.portal main.container > *:nth-child(2) { animation-delay: .05s; }
.content > *:nth-child(3), body.portal main.container > *:nth-child(3) { animation-delay: .1s; }
.content > *:nth-child(4), body.portal main.container > *:nth-child(4) { animation-delay: .15s; }
.content > *:nth-child(n+5), body.portal main.container > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes hd-rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  .logo::before, .toolbar::before, .stat.hero::before, .portal-top .inner::before, .content::before,
  body.portal main.container::before, .content > *, body.portal main.container > * { animation: none !important; }
  .slide-ind, .btn.cta .arr { transition: none !important; }
  .btn.primary:hover::after { animation: none; }
}
/* Administrarea își păstrează accentul portocaliu și cu accentul verde ales (ca în tema deschisă) */
body.admin.green { --accent: #ffc36e; --accent-strong: #f0a23c; --accent-soft: rgba(255, 190, 100, .16); }
body.admin.green .stat.hero { background: linear-gradient(145deg, var(--accent-strong), color-mix(in srgb, var(--accent-strong) 55%, #0b1030)); }

/* ---------- evaluări ---------- */
.eval-crit { padding: 14px 0; border-top: 1px solid var(--stroke); }
.eval-crit:first-of-type { border-top: 0; }
.eval-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.eval-col textarea, .eval-sum textarea { width: 100%; margin-top: 8px; }
.eval-col .eyebrow, .eval-sum .eyebrow { margin-bottom: 6px; }
.eval-sum { padding: 14px 0; border-top: 1px solid var(--stroke); }
.score { display: inline-flex; gap: 6px; }
.score label { cursor: pointer; }
.score input { position: absolute; opacity: 0; pointer-events: none; }
.score span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--stroke); font-weight: 600; color: var(--muted); transition: background .15s, color .15s, border-color .15s, transform .15s; }
.score label:hover span { border-color: var(--accent); color: var(--text); }
.score input:checked + span, .score.ro span.on { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.score input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.score input:active + span { transform: scale(.94); }
.score.ro span { width: 28px; height: 28px; font-size: 13px; }
.pnote { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--glass); }
.pnote form.inline button { padding: 0; }

/* ---------- scor evaluare, drepturi, sarcini ---------- */
.score-card { display: grid; grid-template-columns: minmax(180px, 230px) 1fr; gap: 18px; margin-bottom: 16px; }
@media (max-width: 760px) { .score-card { grid-template-columns: 1fr; } }
.score-big { border: 1px solid var(--stroke); border-radius: var(--r); padding: 16px 18px; background: var(--glass); }
.score-big .n { font-size: 46px; font-weight: 650; letter-spacing: -.03em; line-height: 1.05; margin-top: 8px; }
.score-big .n small { font-size: 15px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.score-big .g { font-weight: 600; margin: 4px 0 8px; }
.score-big.ok .n, .score-pill.ok { color: var(--ok); } .score-big.mid .n, .score-pill.mid { color: var(--warn); }
.score-big.low .n, .score-pill.low { color: var(--bad); }
.score-parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sp { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px; }
.sp.off { opacity: .55; }
.sp-head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.sp .bar { height: 6px; border-radius: 4px; background: var(--glass-2); margin: 7px 0 6px; overflow: hidden; }
.sp .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent-strong); transition: width .6s ease; }
.score-pill { font-weight: 650; font-variant-numeric: tabular-nums; }
.perm-matrix td.c, .perm-matrix th:not(:first-child) { text-align: center; width: 110px; }
.perm-opt { display: inline-grid; place-items: center; cursor: pointer; }
.perm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.perm-opt span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--stroke-2); transition: border-color .15s, box-shadow .15s; }
.perm-opt input:checked + span { border-color: var(--accent-strong); background: radial-gradient(circle, var(--accent-strong) 0 4.5px, transparent 5.5px); }
.perm-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
fieldset.ro { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.ro .timer, fieldset.ro button, fieldset.ro form.time-form, fieldset.ro form.btn-row { display: none; }
.task-table tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--bad); }
.nowrap { white-space: nowrap; }
a.b { font-weight: 600; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 34px 18px; border: 1.5px dashed var(--stroke-2); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-ico svg { width: 26px; height: 26px; color: var(--accent); }
.up-table input, .up-table select { width: 100%; min-width: 110px; }
.up-table td:nth-child(2) input { min-width: 200px; }
.up-table td:first-child { min-width: 170px; max-width: 240px; }
.up-table .fname { overflow-wrap: anywhere; }
.ttype { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; border: 1px solid currentColor; }
.ttype::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ttype.c-blue { color: #8ea6ff; } .ttype.c-green { color: var(--ok); } .ttype.c-orange { color: var(--warn); }
.ttype.c-purple { color: #c39bff; } .ttype.c-red { color: var(--bad); } .ttype.c-gray { color: var(--muted); }
body.light .ttype.c-blue { color: #3f5bd8; } body.light .ttype.c-purple { color: #7a45d6; }
.warn-text { color: var(--warn); }
.tchip { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.25; padding: 3px 6px; border-radius: 7px; text-decoration: none; color: var(--text);
  background: hsl(var(--h) 70% 60% / .14); border: 1px solid hsl(var(--h) 70% 62% / .45); min-width: 0; }
.tchip:hover { background: hsl(var(--h) 70% 60% / .26); }
.tchip.gray { --h: 220; background: var(--glass-2); border-color: var(--stroke-2); }
.tchip .tn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.tchip .ti, .vchip .ti { font: 600 9.5px/1 var(--mono); padding: 2px 4px; border-radius: 4px; background: hsl(var(--h) 70% 60% / .25); flex: none; }
.tchip .tk { flex: none; width: 10px; height: 10px; border-radius: 3px; border: 1.5px solid hsl(var(--h) 70% 62%); }
.tchip.st-done { opacity: .6; } .tchip.st-done .tk { background: hsl(var(--h) 70% 62%); }
.tchip.cont { border-style: dashed; opacity: .8; } .tchip.cont .tn::before { content: "↳ "; color: var(--muted); }
.tchip.late { box-shadow: inset 3px 0 0 var(--bad); }
body.light .tchip { background: hsl(var(--h) 70% 55% / .10); border-color: hsl(var(--h) 60% 50% / .45); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin: -4px 0 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend i { width: 10px; height: 10px; border-radius: 3px; background: hsl(var(--h) 70% 62%); }
.cal-legend i.gray { background: var(--muted); }
.ag-item.task { --h: 220; }
.vchip .ti { margin-left: auto; }
@media (max-width: 1100px) { .cal:not(.cal-week) .tchip .ti, .cal:not(.cal-week) .vchip .ti { display: none; } }
.cal-week .tchip .tn { white-space: normal; overflow-wrap: anywhere; }
.cal-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.cal-filter select { width: auto; min-width: 170px; }
.cal-week .vchip .vn, .cal-week .tchip .tn { flex: 1 1 100%; order: 3; }
.cal-week .vchip .ti, .cal-week .tchip .ti { order: 2; margin-left: auto; }
.cal-week .tchip { flex-wrap: wrap; align-items: flex-start; }
.backlog select { min-width: 150px; }
.backlog input[type=date] { min-width: 140px; }
@media (max-width: 700px) { .cal-filter select { width: 100%; flex: 1 1 100%; } }
dl.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 2px; } dl.kv dd { margin: 0; }
.ttype.c-teal { color: #5fd8e6; } .ttype.c-yellow { color: #f3d36b; } .ttype.c-pink { color: #f59ad2; }
body.light .ttype.c-teal { color: #0b8796; } body.light .ttype.c-yellow { color: #9a7a00; } body.light .ttype.c-pink { color: #c02f8a; }
.tchip .tm { flex: none; font: 600 10.5px/1 var(--mono); padding: 2px 5px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.tchip .tdone { flex: none; color: var(--ok); font-weight: 700; }
.cal-week .tchip .tm, .cal-week .tchip .tdone { order: 2; }
.import-prev tr.is-err td { opacity: .65; }
.import-prev tr.is-err td:first-child { box-shadow: inset 3px 0 0 var(--bad); opacity: 1; }
tr.total td { border-top: 1px solid var(--stroke-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.sig-preview { display: flex; align-items: center; justify-content: center; padding: 14px 22px; max-width: 100%; min-height: 110px; border-radius: 12px; background: #fff; border: 1px solid var(--stroke); }
.sig-preview img { max-height: 110px; max-width: 100%; display: block; }
.sigpad.big { height: 240px; }
.sigpad.big .sig-hint { font-size: 18px; color: #b3b9c9; }
.sig-full { position: fixed; inset: 0; z-index: 2147483000; background: #fff; display: flex; flex-direction: column; touch-action: none; }
.sig-full-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #e3e7f0; color: #14204a; }
.sig-full-bar .btn:not(.primary) { background: #eef1f8; color: #3a4466; border-color: #dde2ee; }
.sig-full canvas { flex: 1; width: 100%; display: block; touch-action: none; cursor: crosshair; }
.sig-full-hint { position: absolute; left: 0; right: 0; top: 50%; text-align: center; color: #b3b9c9; font-size: 22px; pointer-events: none; }
.sig-full.signed .sig-full-hint { display: none; }
.sig-full::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: 22%; border-bottom: 1px solid #e3e7f0; pointer-events: none; }
.sig-full-bar .btn.primary { background: #3557e6; color: #fff; border-color: #3557e6; box-shadow: none; }


/* ---------- Acasă: calendarul mic ---------- */
.home-cal { padding: 18px; }
.hc-head { display: flex; align-items: center; gap: 14px; }
.hc-d { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.03em; color: var(--accent); }
.hc-tt { display: flex; flex-direction: column; min-width: 0; }
.hc-tt b { font-size: 15px; font-weight: 600; }
.hc-tt small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-btn { margin-left: auto; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); }
.hc-btn:hover { background: var(--glass-3); text-decoration: none; }
.hc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin: 14px 0 6px; padding: 6px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); }
.hc-week a { display: flex; flex-direction: column; align-items: center; padding: 5px 0 6px; border-radius: 11px; font: 500 10.5px var(--mono); color: var(--faint); text-decoration: none; }
.hc-week a b { font: 600 13.5px/1.3 Inter, system-ui, sans-serif; color: var(--text); margin-top: 2px; }
.hc-week a::after { content: ""; width: 4px; height: 4px; margin-top: 3px; border-radius: 50%; background: transparent; }
.hc-week a.has::after { background: var(--accent); }
.hc-week a:hover { background: var(--glass-3); }
.hc-week a.on { background: var(--accent-strong); color: rgba(255,255,255,.8); box-shadow: 0 8px 18px -8px var(--accent-strong); }
.hc-week a.on b { color: #fff; }
.hc-week a.on.has::after { background: #fff; }
.hc-ev { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 11px; border-radius: 13px; background: var(--glass-2); border: 1px solid var(--stroke); color: var(--text); text-decoration: none; }
.hc-ev:hover { background: var(--glass-3); text-decoration: none; }
.hc-ev.done { opacity: .6; }
.hc-t { font-size: 11.5px; color: var(--muted); width: 42px; flex: none; }
.hc-bar { width: 3px; align-self: stretch; border-radius: 3px; flex: none; background: hsl(var(--h) 70% 62%); }
.hc-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.hc-main > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hc-main b { font-size: 13px; font-weight: 600; }
.hc-main span { font-size: 11.5px; color: var(--muted); }
.hc-tag { flex: none; font: 600 10.5px var(--mono); color: var(--bad); background: var(--bad-soft); border-radius: 999px; padding: 3px 8px; }
.hc-empty { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
body.light .hc-week a.on { color: rgba(255,255,255,.85); }


/* =====================================================================
   Tema „Aurora” (întunecată, accent albastru) – spațiu cu stele, meniu din sticlă cu bara albă de acțiuni
   ===================================================================== */
.srail, .nav-toggle { display: none; }
body.staff:not(.light):not(.green) {
  --bg: #060a16; --accent: #86a8ff; --accent-strong: #3e6fe8; --accent-soft: rgba(110, 150, 255, .2);
  --gold: #f4c56c; --canvas: rgba(8, 12, 28, .5);
  background:
    radial-gradient(1px 1px at 23px 41px, rgba(255,255,255,.75), transparent), radial-gradient(1px 1px at 157px 112px, rgba(255,255,255,.55), transparent), radial-gradient(1.4px 1.4px at 211px 19px, rgba(255,255,255,.8), transparent), radial-gradient(1px 1px at 88px 190px, rgba(190,210,255,.6), transparent), radial-gradient(1px 1px at 280px 230px, rgba(255,255,255,.5), transparent), radial-gradient(1.2px 1.2px at 330px 70px, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 61px 300px, rgba(255,255,255,.5), transparent), radial-gradient(1.6px 1.6px at 420px 140px, rgba(200,220,255,.75), transparent), radial-gradient(1px 1px at 250px 420px, rgba(255,255,255,.45), transparent), radial-gradient(1px 1px at 510px 380px, rgba(255,255,255,.6), transparent),
    radial-gradient(1100px 650px at 25% -12%, rgba(70, 118, 214, .55), transparent 62%),
    radial-gradient(900px 600px at 95% 2%, rgba(44, 76, 160, .32), transparent 60%),
    radial-gradient(800px 500px at 50% 115%, rgba(20, 60, 90, .35), transparent 65%),
    linear-gradient(180deg, #142451 0%, #0b1330 42%, #060914 78%, #04060c 100%);
  background-size: 360px 260px, 360px 260px, 360px 260px, 360px 260px, 360px 260px, 360px 260px,
    560px 460px, 560px 460px, 560px 460px, 560px 460px, auto, auto, auto, auto;
  background-attachment: fixed;
}
@media (min-width: 901px) {
  body.staff:not(.green) .shell { grid-template-columns: 304px minmax(0, 1fr); gap: 16px; }
  body.staff:not(.green) .sidebar { position: sticky; overflow: hidden; padding: 16px 62px 12px 14px; border-radius: 30px;
    background: linear-gradient(180deg, rgba(92, 140, 236, .62) 0%, rgba(52, 88, 168, .5) 26%, rgba(22, 34, 72, .62) 58%, rgba(9, 13, 28, .82) 100%);
    border: 1px solid rgba(170, 196, 255, .24);
    box-shadow: 0 30px 70px -24px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .03); }
  body.staff:not(.green) .brand { padding: 2px 44px 14px 2px; }
  body.staff:not(.green) .brand .logo { width: 44px; height: 44px; border-radius: 50%; color: #fff;
    background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.55), rgba(255,255,255,.12) 55%, rgba(255,255,255,.06));
    border: 1px solid rgba(255,255,255,.35); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.5); }
  body.staff:not(.green) .brand small { color: rgba(225, 233, 255, .72); }
  body.staff:not(.green) .nav-toggle { display: grid; place-items: center; position: absolute; top: 24px; right: 72px; width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; cursor: pointer; z-index: 2; }
  body.staff:not(.green) .nav-toggle:hover { background: rgba(255,255,255,.26); }
  body.staff:not(.green) .nav-toggle .i { width: 15px; height: 15px; }

  /* bara albă din dreapta: acțiuni rapide + secțiunea curentă (verticală) */
  body.staff:not(.green) .srail { display: flex; flex-direction: column; align-items: center; gap: 10px; position: absolute; top: 10px; right: 10px; bottom: 10px; width: 52px;
    padding: 10px 0; background: #fbfcff; border-radius: 24px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.9), -8px 0 24px -16px rgba(0,0,0,.5); z-index: 1; }
  body.staff:not(.green) .rail-btn { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; color: #22305a; background: #edf1fa;
    border: 1px solid #e1e7f4; transition: transform .15s, background .15s; }
  body.staff:not(.green) .rail-btn:hover { background: #e2e9fb; transform: translateY(-1px); text-decoration: none; }
  body.staff:not(.green) .rail-btn .i { width: 18px; height: 18px; }
  body.staff:not(.green) .rail-btn.main { width: 40px; height: 40px; color: #fff; border: 0; background: linear-gradient(160deg, #5a86f5, #2f5fd8);
    box-shadow: 0 10px 20px -8px rgba(47, 95, 216, .8), inset 0 1px 0 rgba(255,255,255,.35); margin-bottom: 4px; }
  body.staff:not(.green) .rail-lbl { margin-top: auto; writing-mode: vertical-rl; transform: rotate(180deg); font: 600 10.5px/1 var(--mono); letter-spacing: .22em;
    text-transform: uppercase; color: #9aa4bd; max-height: 220px; overflow: hidden; white-space: nowrap; padding-top: 6px; }

  /* meniul: pastile din sticlă; elementul activ e alb și se unește cu bara albă */
  body.staff:not(.green) .snav { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; gap: 3px; padding: 2px 0 6px; }
  body.staff:not(.green) .snav::-webkit-scrollbar { display: none; }
  body.staff:not(.green) .snav .slide-ind { display: none !important; }
  body.staff:not(.green) .snav a { margin: 0 12px 0 0; padding: 9px 14px; border-radius: 999px; color: rgba(236, 241, 255, .9);
    background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.05)); border: 1px solid rgba(255,255,255,.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 6px 14px -10px rgba(0,0,0,.6); overflow: visible; transition: background .15s; }
  body.staff:not(.green) .snav a:hover { background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.09)); color: #fff; }
  body.staff:not(.green) .snav a .i { color: rgba(236, 241, 255, .85); }
  body.staff:not(.green) .snav a.active, body.staff:not(.green) .snav.has-ind > a.active { margin-right: 0; border-radius: 999px 0 0 999px; background: #fbfcff; color: #0f1733;
    border-color: #fbfcff; box-shadow: none; font-weight: 600; z-index: 2; }
  body.staff:not(.green) .snav a.active .i { color: #0f1733; }
  body.staff:not(.green) .snav a.active::before, body.staff:not(.green) .snav a.active::after,
  body.staff:not(.green) .snav.has-ind > a.active::before, body.staff:not(.green) .snav.has-ind > a.active::after {
    display: block; content: ""; position: absolute; right: -1px; left: auto; width: 18px; height: 18px; inset-inline-start: auto;
    border-radius: 0; box-shadow: none; pointer-events: none; }
  body.staff:not(.green) .snav a.active::before, body.staff:not(.green) .snav.has-ind > a.active::before { top: -18px; bottom: auto;
    background: radial-gradient(circle at 0 0, transparent 17.5px, #fbfcff 18px); }
  body.staff:not(.green) .snav a.active::after, body.staff:not(.green) .snav.has-ind > a.active::after { top: auto; bottom: -18px; inset: auto -1px -18px auto;
    background: radial-gradient(circle at 0 100%, transparent 17.5px, #fbfcff 18px); }
  body.staff:not(.green) .snav a.sub { background: none; border-color: transparent; box-shadow: none; padding: 4px 12px 4px 40px; font-size: 12.5px; color: rgba(222, 230, 255, .62); }
  body.staff:not(.green) .snav a.sub:hover { color: #fff; background: rgba(255,255,255,.06); }
  body.staff:not(.green) .snav a.sub.on { color: #fff; font-weight: 600; }
  body.staff:not(.green) .snav .grp { color: rgba(220, 230, 255, .55); padding: 14px 6px 6px; }
  body.staff:not(.green) .snav a .eyebrow { font: 600 10.5px/1 var(--mono); letter-spacing: 0; color: #eaf0ff; background: rgba(255,255,255,.14);
    border-radius: 999px; padding: 4px 8px; }
  body.staff:not(.green) .snav a.active .eyebrow { color: #0f1733; background: #e6ebf7; }
  body.staff:not(.green) .snav .new-pill { background: linear-gradient(180deg, #f8cf7c, #ecab49); color: #1d1404; box-shadow: 0 4px 12px -4px rgba(236, 171, 73, .8); }
  body.staff:not(.green) .snav a.to-admin { color: var(--gold); }
  body.staff:not(.green) .snav .sep { border-color: rgba(255,255,255,.12); margin: 8px 12px 8px 0; }
  body.staff:not(.green) .prefs { margin: 8px 12px 6px 0; padding: 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: rgba(255,255,255,.05); }
  body.staff:not(.green) .mode-row .sw.on { background: linear-gradient(90deg, #f8cf7c, #ecab49); }
  body.staff:not(.green) .sfoot { margin-right: 12px; border-top-color: rgba(255,255,255,.1); }
  body.staff:not(.light):not(.green) .content { border-color: rgba(170, 196, 255, .14); border-radius: 30px; }

  /* meniul restrâns: doar iconițe, fără bara albă */
  body.staff.nav-mini:not(.green) .shell { grid-template-columns: 84px minmax(0, 1fr); }
  body.staff.nav-mini:not(.green) .sidebar { padding: 14px 10px 12px; align-items: center; }
  body.staff.nav-mini:not(.green) .srail, body.staff.nav-mini:not(.green) .snav .grp, body.staff.nav-mini:not(.green) .snav a.sub, body.staff.nav-mini:not(.green) .snav .sep, body.staff.nav-mini:not(.green) .brand > span:last-child, body.staff.nav-mini:not(.green) .prefs,
  body.staff.nav-mini:not(.green) .sfoot .who, body.staff.nav-mini:not(.green) .sfoot .icon-btn, body.staff.nav-mini:not(.green) .sfoot form, body.staff.nav-mini:not(.green) .snav .new-pill, body.staff.nav-mini:not(.green) .snav a .eyebrow, body.staff.nav-mini:not(.green) .snav a > span { display: none !important; }
  body.staff.nav-mini:not(.green) .brand { padding: 2px 0 8px; justify-content: center; }
  body.staff.nav-mini:not(.green) .nav-toggle { position: static; margin: 0 auto 10px; transform: rotate(180deg); }
  body.staff.nav-mini:not(.green) .snav { width: 100%; align-items: center; }
  body.staff.nav-mini:not(.green) .snav a, body.staff.nav-mini:not(.green) .snav.has-ind > a.active { width: 48px; height: 48px; margin: 3px auto; padding: 0; justify-content: center; border-radius: 50%; font-size: 0; gap: 0; }
  body.staff.nav-mini:not(.green) .snav a .i { width: 20px; height: 20px; }
  body.staff.nav-mini:not(.green) .snav a.active, body.staff.nav-mini:not(.green) .snav.has-ind > a.active { box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); }
  body.staff.nav-mini:not(.green) .snav a.active::before, body.staff.nav-mini:not(.green) .snav a.active::after,
  body.staff.nav-mini:not(.green) .snav.has-ind > a.active::before, body.staff.nav-mini:not(.green) .snav.has-ind > a.active::after { display: none; }
  body.staff.nav-mini:not(.green) .sfoot { margin: 0; padding: 10px 0 0; justify-content: center; }
}
@media (max-width: 900px) {
  body.staff:not(.green) .sidebar { background: linear-gradient(180deg, rgba(70, 112, 210, .55), rgba(14, 22, 48, .8)); border-color: rgba(170, 196, 255, .22); }
  body.staff:not(.green) .snav a.active { background: #fbfcff; color: #0f1733; }
  body.staff:not(.green) .snav a.active .i { color: #0f1733; }
}
@media (min-width: 901px) {
  body.staff:not(.green) .sfoot { gap: 6px; }
  body.staff:not(.green) .sfoot .icon-btn { width: 28px; height: 28px; border-radius: 9px; }
  body.staff:not(.green) .sfoot .icon-btn .i { width: 16px; height: 16px; }
  body.staff:not(.green) .snav { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent);
    mask-image: linear-gradient(to bottom, #000 calc(100% - 26px), transparent); padding-bottom: 22px; }
}
/* fără bara albă din dreapta: elementul activ e o pastilă albă obișnuită */
@media (min-width: 901px) {
  body.staff:not(.green) .shell { grid-template-columns: 268px minmax(0, 1fr); }
  body.staff:not(.green) .sidebar { padding: 16px 14px 12px; }
  body.staff:not(.green) .srail { display: none; }
  body.staff:not(.green) .nav-toggle { right: 16px; }
  body.staff:not(.green) .snav a { margin-right: 0; }
  body.staff:not(.green) .snav a.active, body.staff:not(.green) .snav.has-ind > a.active { border-radius: 999px;
    box-shadow: 0 10px 24px -10px rgba(0,0,0,.6); }
  body.staff:not(.green) .snav a.active::before, body.staff:not(.green) .snav a.active::after,
  body.staff:not(.green) .snav.has-ind > a.active::before, body.staff:not(.green) .snav.has-ind > a.active::after { display: none; }
  body.staff:not(.green) .snav .sep, body.staff:not(.green) .prefs, body.staff:not(.green) .sfoot { margin-right: 0; }
  body.staff.nav-mini:not(.green) .shell { grid-template-columns: 84px minmax(0, 1fr); }
  body.staff.nav-mini:not(.green) .sidebar { padding: 14px 10px 12px; }
}

/* tema „Aurora” și în modul luminos: același meniu (sticlă albastră), conținutul rămâne luminos */
body.staff.light:not(.green) { --gold: #f4c56c; }
body.staff.light:not(.green) .sidebar { color: #e9eeff; }
@media (min-width: 901px) {
  body.staff.light:not(.green) .sidebar {
    background: linear-gradient(180deg, #5b8ce8 0%, #3a66c4 26%, #1d2f66 60%, #0d1430 100%);
    border-color: rgba(60, 100, 200, .35); box-shadow: 0 24px 50px -24px rgba(20, 40, 100, .55), inset 0 1px 0 rgba(255,255,255,.3); }
}
@media (max-width: 900px) {
  body.staff.light:not(.green) .sidebar { background: linear-gradient(180deg, #4f7fe0, #18275a); border-color: transparent; }
}
/* animația de restrângere / extindere a meniului */
@media (min-width: 901px) {
  body.staff:not(.green) .shell { transition: grid-template-columns .38s cubic-bezier(.2, .8, .2, 1); }
  body.staff:not(.green) .nav-toggle { transition: transform .38s cubic-bezier(.2, .8, .2, 1), background .15s; }
  body.staff:not(.green) .snav a { transition: background .18s, color .18s, transform .18s, width .38s, height .38s, border-radius .38s; }
  body.staff:not(.green) .snav a:hover { transform: translateX(2px); }
  body.staff:not(.green) .snav a.active:hover { transform: none; }
  body.staff.nav-anim:not(.green) .brand > span:last-child, body.staff.nav-anim:not(.green) .snav .grp,
  body.staff.nav-anim:not(.green) .prefs, body.staff.nav-anim:not(.green) .sfoot .who { animation: hdFadeIn .35s ease both; }
}
@keyframes hdFadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  body.staff:not(.green) .shell, body.staff:not(.green) .snav a, body.staff:not(.green) .nav-toggle { transition: none !important; }
  body.staff:not(.green) .brand > span:last-child, body.staff:not(.green) .snav .grp, body.staff:not(.green) .prefs { animation: none !important; }
}


/* ---------- Autentificare: animația „piesele se unesc” (succes) / „cardul respinge” (eșec) ---------- */
.lx-card { position: relative; overflow: hidden; }
.lx-stage { transition: opacity .35s ease, filter .35s ease, transform .35s ease; }
.lx-shard { position: absolute; width: 46px; height: 46px; z-index: 3; pointer-events: none;
  background: linear-gradient(140deg, #7cc8ff, #2f7cf0 70%); filter: drop-shadow(0 0 8px rgba(80, 160, 255, .55));
  transition: transform .6s cubic-bezier(.65, 0, .25, 1), background .3s, filter .3s; --tx: 0px; --ty: 0px; }
.lx-shard.tl { top: 10px; left: 10px; clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: 14px; }
.lx-shard.br { bottom: 10px; right: 10px; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-right-radius: 14px; }
.lx-ring { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; z-index: 2;
  border: 2px solid rgba(110, 180, 255, .85); box-shadow: 0 0 24px rgba(90, 170, 255, .6), inset 0 0 24px rgba(90, 170, 255, .45);
  opacity: 0; transform: scale(.2); pointer-events: none; }
.lx-status { position: absolute; left: 0; right: 0; top: calc(50% + 46px); text-align: center; z-index: 3; font-weight: 600;
  color: var(--text); opacity: 0; transition: opacity .3s; pointer-events: none; }
/* așteptare: conținutul se estompează, piesele pornesc spre centru */
.lx-card.lx-wait .lx-stage { opacity: .12; filter: blur(5px); transform: scale(.98); }
.lx-card.lx-wait .lx-shard { transform: translate(calc(var(--tx) * .55), calc(var(--ty) * .55)); }
.lx-card.lx-wait .lx-status { opacity: .75; }
/* succes: piesele se unesc într-un pătrat, apoi inelele pulsează */
.lx-card.lx-ok .lx-shard { transform: translate(var(--tx), var(--ty)); filter: drop-shadow(0 0 14px rgba(110, 190, 255, .95)); }
.lx-card.lx-ok .lx-stage { opacity: 0; filter: blur(8px); }
.lx-card.lx-ok .lx-ring { animation: lxRing 1s .45s cubic-bezier(.2, .7, .2, 1) both; }
.lx-card.lx-ok .lx-ring.r2 { animation-delay: .7s; }
.lx-card.lx-ok .lx-status { opacity: 1; transition-delay: .5s; }
.lx-card.lx-ok { animation: lxOk 1.25s ease both; }
@keyframes lxRing { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes lxOk { 0%, 70% { box-shadow: var(--shadow); } 85% { box-shadow: 0 0 0 1px rgba(110, 180, 255, .5), 0 0 60px -10px rgba(90, 170, 255, .7); }
  100% { opacity: .0; transform: scale(1.02); } }
/* eșec: piesele se înroșesc și se retrag, cardul tremură */
.lx-card.lx-bad { animation: lxShake .5s cubic-bezier(.36, .07, .19, .97) both; }
.lx-card.lx-bad .lx-shard { background: linear-gradient(140deg, #ff9aa4, #e5384f 70%); filter: drop-shadow(0 0 10px rgba(255, 80, 100, .7));
  transform: translate(calc(var(--tx) * .15), calc(var(--ty) * .15)); }
.lx-card.lx-bad .lx-stage { opacity: 1; filter: none; transform: none; }
.lx-card.lx-bad .lx-stage .messages li { animation: lxFlash .9s ease; }
@keyframes lxShake { 10%, 90% { transform: translateX(-2px); } 20%, 80% { transform: translateX(4px); } 30%, 50%, 70% { transform: translateX(-8px); }
  40%, 60% { transform: translateX(8px); } }
@keyframes lxFlash { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 110, .7); } 100% { box-shadow: 0 0 0 14px rgba(255, 90, 110, 0); } }
@media (prefers-reduced-motion: reduce) { .lx-shard, .lx-stage { transition: none; } .lx-card, .lx-ring { animation: none !important; } }

/* Administrare → API: cheile tokenurilor */
.tok-key { margin-top: 4px; }
.tok-key code { display: inline-block; max-width: 100%; font-size: 11.5px; padding: 2px 8px; border-radius: 8px; word-break: break-all; white-space: normal; transition: background .2s; }
.tok-key code.open { user-select: all; background: var(--accent-soft); color: var(--text); animation: tokIn .25s ease both; }
@keyframes tokIn { from { opacity: .3; } }
td .row-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
td .row-actions form { display: contents; }
.tok-list td:first-child { min-width: 260px; }
.tok-key code:not(.open) { white-space: nowrap; word-break: normal; }
.tok-key code.open { font-size: 12.5px; padding: 6px 10px; }
.tok-new { margin-top: 14px; }
.tok-new summary { list-style: none; display: inline-flex; cursor: pointer; }
.tok-new summary::-webkit-details-marker { display: none; }
.tok-new[open] summary { margin-bottom: 14px; }
.tok-new form { max-width: 560px; }


/* =====================================================================
   Tema „Sticlă” (a treia temă) – sticlă mată caldă peste un fundal estompat, accent albastru, pastile.
   Modul luminos: sticlă albă-bej; modul întunecat: sticlă fumurie. Selectorii repetă clasa .frost ca să aibă
   prioritate față de temele Aurora / Verde / modul luminos, fără !important.
   ===================================================================== */
.acc.frost { background: linear-gradient(140deg, #f4efe6 0%, #d9dde3 55%, #1a73e8 56%, #5b9bff 100%); }

/* ---- variabile: întunecat (fumuriu) ---- */
html body.frost.frost.frost.frost.frost.frost {
  --bg: #1b1d21; --text: #eef0f3; --muted: rgba(232, 236, 242, .66); --faint: rgba(232, 236, 242, .44);
  --glass: rgba(52, 55, 61, .52); --glass-2: rgba(70, 74, 82, .5); --glass-3: rgba(92, 97, 107, .52);
  --stroke: rgba(255, 255, 255, .1); --stroke-2: rgba(255, 255, 255, .18);
  --canvas: rgba(30, 32, 36, .34);
  --accent: #6ea8ff; --accent-strong: #2f7cf0; --accent-soft: rgba(90, 150, 255, .18); --gold: #f2c66d;
  --ok: #5fd99a; --ok-soft: rgba(95, 217, 154, .15); --warn: #f3b562; --warn-soft: rgba(243, 181, 98, .16);
  --bad: #ff8a8f; --bad-soft: rgba(255, 138, 143, .15);
  --blur: blur(26px) saturate(150%);
  --shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 18px 40px -22px rgba(0, 0, 0, .7);
  --r-lg: 26px; --r: 20px; --r-sm: 14px;
  --fr-pill: rgba(255, 255, 255, .08); --fr-pill-hover: rgba(255, 255, 255, .16); --fr-side: rgba(40, 43, 48, .5);
  --fr-input: rgba(255, 255, 255, .07); --fr-th: rgba(255, 255, 255, .04); --fr-on: #ffffff;
  background:
    radial-gradient(900px 620px at 8% 6%, rgba(160, 140, 115, .32), transparent 62%),
    radial-gradient(800px 600px at 95% 12%, rgba(95, 115, 140, .38), transparent 60%),
    radial-gradient(900px 700px at 60% 110%, rgba(120, 100, 80, .32), transparent 62%),
    linear-gradient(170deg, #2a2d32 0%, #222428 45%, #1c1b1d 100%);
  background-attachment: fixed;
}
/* ---- variabile: luminos (bej-gri, ca în referință) ---- */
html body.light.frost.frost.frost.frost.frost.frost {
  --bg: #d9d6d0; --text: #1d2126; --muted: rgba(29, 33, 38, .62); --faint: rgba(29, 33, 38, .44);
  --glass: rgba(250, 248, 244, .58); --glass-2: rgba(255, 255, 255, .62); --glass-3: rgba(255, 255, 255, .82);
  --stroke: rgba(255, 255, 255, .72); --stroke-2: rgba(120, 110, 95, .2);
  --canvas: rgba(255, 255, 255, .18);
  --accent: #1a73e8; --accent-strong: #1765cc; --accent-soft: rgba(26, 115, 232, .12); --gold: #c98a1a;
  --ok: #188a4f; --ok-soft: rgba(24, 138, 79, .12); --warn: #b86e0c; --warn-soft: rgba(201, 125, 20, .13);
  --bad: #d23b48; --bad-soft: rgba(210, 59, 72, .11);
  --shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 14px 34px -22px rgba(70, 55, 35, .45);
  --fr-pill: rgba(255, 255, 255, .5); --fr-pill-hover: rgba(255, 255, 255, .8); --fr-side: rgba(244, 241, 236, .5);
  --fr-input: rgba(255, 255, 255, .7); --fr-th: rgba(255, 255, 255, .3); --fr-on: #ffffff;
  background:
    radial-gradient(900px 620px at 6% 4%, rgba(255, 246, 228, .9), transparent 60%),
    radial-gradient(760px 560px at 96% 10%, rgba(190, 205, 215, .85), transparent 62%),
    radial-gradient(1000px 700px at 55% 108%, rgba(214, 190, 160, .75), transparent 62%),
    radial-gradient(600px 420px at 30% 60%, rgba(236, 228, 214, .8), transparent 70%),
    linear-gradient(170deg, #cfd3d6 0%, #dcd6cc 50%, #cbbfaf 100%);
  background-attachment: fixed;
}
html body.frost.frost.frost.frost.frost.frost ::selection { background: rgba(26, 115, 232, .28); }

/* ---- sticlă: carduri, bare, mesaje ---- */
html body.frost.frost.frost.frost.frost.frost .card, html body.frost.frost.frost.frost.frost.frost .stat, html body.frost.frost.frost.frost.frost.frost .toolbar, html body.frost.frost.frost.frost.frost.frost .comment, html body.frost.frost.frost.frost.frost.frost .bulkbar, html body.frost.frost.frost.frost.frost.frost .kb-cat, html body.frost.frost.frost.frost.frost.frost .messages li, html body.frost.frost.frost.frost.frost.frost .chip,
html body.frost.frost.frost.frost.frost.frost .filters, html body.frost.frost.frost.frost.frost.frost .seg-tabs, html body.frost.frost.frost.frost.frost.frost .auth .card, html body.frost.frost.frost.frost.frost.frost .portal-top .inner, html body.frost.frost.frost.frost.frost.frost .hc-week {
  background: var(--glass); border-color: var(--stroke); box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
html body.frost.frost.frost.frost.frost.frost .content { background: var(--canvas); background-image: none; border-color: var(--stroke); border-radius: 30px;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
html body.frost.frost.frost.frost.frost.frost .stat::after { box-shadow: none; }
html body.frost.frost.frost.frost.frost.frost .stat .arrow { background: var(--glass-3); border-color: var(--stroke); color: var(--text); }
html body.frost.frost.frost.frost.frost.frost .stat.hero { background: linear-gradient(150deg, #3d8bf5, #1765cc 70%); border-color: transparent; color: #fff; }
html body.frost.frost.frost.frost.frost.frost .stat.hero .arrow { background: rgba(255,255,255,.92); color: #1765cc; }
html body.frost.frost.frost.frost.frost.frost .timer { background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.2), transparent 50%), linear-gradient(150deg, #3d8bf5, #12408f 90%); }
html body.frost.frost.frost.frost.frost.frost .comment.internal { background: var(--warn-soft); border-color: rgba(201, 125, 20, .25); }
html body.frost.frost.frost.frost.frost.frost code { background: var(--glass-2); border-color: var(--stroke); }
html body.frost.frost.frost.frost.frost.frost th { background: var(--fr-th); }
html body.frost.frost.frost.frost.frost.frost tbody tr:hover { background: var(--fr-pill); }
html body.frost.frost.frost.frost.frost.frost .badge { background: var(--glass-2); }
html body.frost.frost.frost.frost.frost.frost .av { box-shadow: 0 0 0 2px var(--glass-3); }

/* ---- formulare și butoane (aceleași pastile) ---- */
html body.frost.frost.frost.frost.frost.frost input, html body.frost.frost.frost.frost.frost.frost select, html body.frost.frost.frost.frost.frost.frost textarea { background-color: var(--fr-input); border-color: var(--stroke-2); color: var(--text); }
html body.frost.frost.frost.frost.frost.frost input:focus, html body.frost.frost.frost.frost.frost.frost select:focus, html body.frost.frost.frost.frost.frost.frost textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
html body.frost.frost.frost.frost.frost.frost select option, html body.frost.frost.frost.frost.frost.frost select optgroup { background: var(--bg); color: var(--text); }
html body.frost.frost.frost.frost.frost.frost .btn { background: var(--fr-pill); border-color: var(--stroke-2); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset; }
html body.frost.frost.frost.frost.frost.frost .btn:hover { background: var(--fr-pill-hover); }
html body.frost.frost.frost.frost.frost.frost .btn.primary { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff;
  box-shadow: 0 10px 22px -10px rgba(26, 115, 232, .75), 0 1px 0 rgba(255,255,255,.3) inset; }
html body.frost.frost.frost.frost.frost.frost .btn.primary:hover { background: #1a73e8; }
html body.frost.frost.frost.frost.frost.frost .btn.link { background: none; border-color: transparent; color: var(--accent); box-shadow: none; }
html body.frost.frost.frost.frost.frost.frost .btn.danger { color: var(--bad); }
html body.frost.frost.frost.frost.frost.frost .mode-row .sw.on, html body.frost.frost.frost.frost.frost.frost .sw.on { background: var(--accent-strong); }
html body.frost.frost.frost.frost.frost.frost .new-pill { background: var(--accent-strong); color: #fff; }
html body.frost.frost.frost.frost.frost.frost .badge-n { background: var(--accent-strong); color: #fff; }
html body.frost.frost.frost.frost.frost.frost .hc-week a.on { background: var(--accent-strong); box-shadow: 0 8px 18px -8px rgba(26, 115, 232, .8); }
html body.frost.frost.frost.frost.frost.frost .edge { background: linear-gradient(90deg, rgba(26,115,232,.15), rgba(26,115,232,.7)); box-shadow: none; }
html body.frost.frost.frost.frost.frost.frost .edge::after { background: var(--accent-strong); box-shadow: 0 0 6px rgba(26,115,232,.5); }
html body.frost.frost.frost.frost.frost.frost .node-ico.accent { color: #fff; }
html body.frost.frost.frost.frost.frost.frost .admin-band { color: var(--accent); background: var(--accent-soft); border-color: rgba(26,115,232,.25); }

/* ---- meniul: panou de sticlă mată; pastile translucide; activul e albastru ---- */
html body.frost.frost.frost.frost.frost.frost .sidebar { background: var(--fr-side); border: 1px solid var(--stroke); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 24px 50px -28px rgba(40, 30, 20, .55); }
html body.light.frost.frost.frost.frost.frost.frost .sidebar, html body.light.frost.frost.frost.frost.frost.frost .portal-top .inner { color: #1d2126; --text: #1d2126; --muted: rgba(29, 33, 38, .62); --faint: rgba(29, 33, 38, .44); }
html body.light.frost.frost.frost.frost.frost.frost .sidebar, html body.light.frost.frost.frost.frost.frost.frost .portal-top .inner { --accent: var(--accent-strong); }
html body.frost.frost.frost.frost.frost.frost .sidebar .brand { color: inherit; }
html body.frost.frost.frost.frost.frost.frost .sidebar .brand small, html body.frost.frost.frost.frost.frost.frost .snav .grp { color: var(--faint); }
html body.frost.frost.frost.frost.frost.frost .brand .logo, html body.frost.frost.frost.frost.frost.frost .portal-top .logo { background: linear-gradient(150deg, #5b9bff, #1765cc); color: #fff; border: 0;
  box-shadow: 0 8px 18px -8px rgba(26, 115, 232, .8), inset 0 1px 0 rgba(255,255,255,.4); }
html body.frost.frost.frost.frost.frost.frost .nav-toggle { background: var(--fr-pill); border-color: var(--stroke-2); color: inherit; }
html body.frost.frost.frost.frost.frost.frost .nav-toggle:hover { background: var(--fr-pill-hover); }
html body.frost.frost.frost.frost.frost.frost .snav a, html body.frost.frost.frost.frost.frost.frost .snav.has-ind > a { color: var(--muted); background: var(--fr-pill); border-color: var(--stroke);
  box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 6px 14px -12px rgba(40, 30, 20, .5); }
html body.frost.frost.frost.frost.frost.frost .snav a .i { color: inherit; }
html body.frost.frost.frost.frost.frost.frost .snav a:hover { background: var(--fr-pill-hover); color: inherit; }
html body.light.frost.frost.frost.frost.frost.frost .snav a { color: #2b3138; }
html body.light.frost.frost.frost.frost.frost.frost .snav a:hover { color: #111418; }
html body.frost.frost.frost.frost.frost.frost .snav a.active, html body.frost.frost.frost.frost.frost.frost .snav.has-ind > a.active { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff;
  box-shadow: 0 12px 24px -12px rgba(26, 115, 232, .9), inset 0 1px 0 rgba(255,255,255,.3); }
html body.frost.frost.frost.frost.frost.frost .snav a.active .i { color: #fff; }
html body.frost.frost.frost.frost.frost.frost .snav a.active .eyebrow { color: var(--accent-strong); background: #fff; }
html body.frost.frost.frost.frost.frost.frost .snav a .eyebrow { color: inherit; background: var(--fr-pill-hover); }
html body.frost.frost.frost.frost.frost.frost .snav a.sub { background: none; border-color: transparent; box-shadow: none; color: var(--faint); }
html body.frost.frost.frost.frost.frost.frost .snav a.sub:hover, html body.frost.frost.frost.frost.frost.frost .snav a.sub.on { color: var(--accent); background: none; }
html body.frost.frost.frost.frost.frost.frost .snav .sep, html body.frost.frost.frost.frost.frost.frost .sfoot { border-color: var(--stroke-2); }
html body.frost.frost.frost.frost.frost.frost .snav a.to-admin { color: var(--gold); }
html body.frost.frost.frost.frost.frost.frost .prefs { background: var(--fr-pill); border-color: var(--stroke); }
html body.frost.frost.frost.frost.frost.frost .sidebar .icon-btn { color: var(--muted); }
html body.frost.frost.frost.frost.frost.frost .sidebar .icon-btn:hover { background: var(--fr-pill-hover); color: inherit; }
html body.frost.frost.frost.frost.frost.frost .sidebar .btn { background: var(--fr-pill); color: inherit; border-color: var(--stroke-2); }
html body.frost.frost.frost.frost.frost.frost .sidebar .btn.primary { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
html body.frost.frost.frost.frost.frost.frost .snav .new-pill { background: #fff; color: var(--accent-strong); box-shadow: 0 4px 10px -4px rgba(0,0,0,.3); }
html body.frost.frost.frost.frost.frost.frost .snav a:not(.active) .new-pill { background: var(--accent-strong); color: #fff; }
@media (min-width: 901px) {
  html body.frost.frost.frost.frost.frost.frost.nav-mini .snav a.active, html body.frost.frost.frost.frost.frost.frost.nav-mini .snav.has-ind > a.active { box-shadow: 0 10px 22px -8px rgba(26, 115, 232, .9); }
}

/* ---- portal (clienți) și bara de jos de pe telefon ---- */
html body.frost.frost.frost.frost.frost.frost .portal-top .inner { color: var(--text); }
html body.frost.frost.frost.frost.frost.frost .portal-top .brand { color: inherit; }
html body.frost.frost.frost.frost.frost.frost .portal-top .btn { background: var(--fr-pill); color: var(--text); border-color: var(--stroke-2); }
html body.frost.frost.frost.frost.frost.frost .portal-top .btn.primary { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
html body.frost.frost.frost.frost.frost.frost .pnav a.active, html body.frost.frost.frost.frost.frost.frost .seg-tabs a.active, html body.frost.frost.frost.frost.frost.frost .seg-tabs .on { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
html body.frost.frost.frost.frost.frost.frost .tabbar { background: var(--fr-side); border-color: var(--stroke); color: var(--text);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }

/* ---- grafice și diverse ---- */
html body.frost.frost.frost.frost.frost.frost .gauge { background: conic-gradient(from -120deg, var(--c) calc(var(--p) * 2.4deg), var(--glass-2) 0 240deg, transparent 0); }
html body.frost.frost.frost.frost.frost.frost .hbar .track, html body.frost.frost.frost.frost.frost.frost .mini, html body.frost.frost.frost.frost.frost.frost .mini-bar { background: var(--glass-2); }
html body.frost.frost.frost.frost.frost.frost .pbars .tip { background: #1d2126; color: #fff; }
html body.frost.frost.frost.frost.frost.frost .edge .lbl { background: var(--glass-3); color: var(--muted); border-color: var(--stroke); }
html body.frost.frost.frost.frost.frost.frost .or span { background: transparent; }
html body.light.frost.frost.frost.frost.frost.frost .timer-form input[type=text] { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }

/* ---- autentificare: același fundal, card de sticlă, piese albastre ---- */
html body.frost.frost.frost.frost.frost.frost .lx-shard { background: linear-gradient(140deg, #8fc0ff, #1a73e8 70%); }


/* ---------- Tichet: „Timp lucrat și explicații” ---------- */
.worklog .wl-row { padding: 10px 0; border-bottom: 1px solid var(--stroke); }
.worklog .wl-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.worklog .wl-dur { font: 600 13px var(--mono); color: var(--text); background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; }
.worklog .wl-del { margin-left: auto; }
.worklog .wl-note { margin-top: 5px; font-size: 13px; line-height: 1.45; white-space: pre-line; word-break: break-word; }
.worklog .wl-empty { margin: 4px 0 6px; }
.wl-form { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--stroke-2); }
.wl-lbl { font-weight: 600; font-size: 13px; }
.wl-lbl .muted { font-weight: 400; font-size: 12px; }
.wl-dur-in { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-dur-in label { position: relative; display: block; }
.wl-dur-in input { width: 100%; padding-right: 46px; font: 600 16px var(--mono); }
.wl-dur-in span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); pointer-events: none; }
.wl-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.wl-quick .chip { cursor: pointer; font-size: 12px; padding: 4px 10px; border-radius: 999px; color: var(--text); transition: transform .12s, background .15s; }
.wl-quick .chip:hover { background: var(--accent-soft); }
.wl-quick .chip:active { transform: scale(.95); }
.wl-form textarea { min-height: 70px; resize: vertical; }
.wl-row2 { display: flex; align-items: center; gap: 10px; }
.wl-row2 input { flex: 1; }
.wl-save { align-self: flex-start; margin-top: 2px; }
.wl-help { margin: 2px 0 0; padding: 8px 10px; border-radius: 12px; background: var(--accent-soft); line-height: 1.45; }

/* ---------- Tema „Sticlă”: animațiile din referință ---------- */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@media (prefers-reduced-motion: no-preference) {
  /* intrarea în pagină: blocurile apar din ceață, unul după altul */
  html body.frost.frost.frost.frost.frost.frost .content > *, html body.frost.frost.frost.frost.frost.frost main.container > * { animation: frIn .6s cubic-bezier(.2, .8, .2, 1) backwards; }
  html body.frost.frost.frost.frost.frost.frost .content > *:nth-child(2), html body.frost.frost.frost.frost.frost.frost main.container > *:nth-child(2) { animation-delay: .05s; }
  html body.frost.frost.frost.frost.frost.frost .content > *:nth-child(3), html body.frost.frost.frost.frost.frost.frost main.container > *:nth-child(3) { animation-delay: .1s; }
  html body.frost.frost.frost.frost.frost.frost .content > *:nth-child(4), html body.frost.frost.frost.frost.frost.frost main.container > *:nth-child(4) { animation-delay: .15s; }
  html body.frost.frost.frost.frost.frost.frost .content > *:nth-child(5), html body.frost.frost.frost.frost.frost.frost main.container > *:nth-child(5) { animation-delay: .2s; }
  html body.frost.frost.frost.frost.frost.frost .content > *:nth-child(n+6), html body.frost.frost.frost.frost.frost.frost main.container > *:nth-child(n+6) { animation-delay: .25s; }
  html body.frost.frost.frost.frost.frost.frost .stats > *, html body.frost.frost.frost.frost.frost.frost .grid > .card { animation: frIn .6s cubic-bezier(.2, .8, .2, 1) backwards; }
  html body.frost.frost.frost.frost.frost.frost .stats > *:nth-child(2), html body.frost.frost.frost.frost.frost.frost .grid > .card:nth-child(2) { animation-delay: .06s; }
  html body.frost.frost.frost.frost.frost.frost .stats > *:nth-child(3), html body.frost.frost.frost.frost.frost.frost .grid > .card:nth-child(3) { animation-delay: .12s; }
  html body.frost.frost.frost.frost.frost.frost .stats > *:nth-child(4), html body.frost.frost.frost.frost.frost.frost .grid > .card:nth-child(4) { animation-delay: .18s; }
  html body.frost.frost.frost.frost.frost.frost .stats > *:nth-child(5), html body.frost.frost.frost.frost.frost.frost .grid > .card:nth-child(5) { animation-delay: .24s; }
  /* inelele (SLA etc.) se desenează, barele cresc */
  html body.frost.frost.frost.frost.frost.frost .gauge { animation: frGauge 1.3s .2s cubic-bezier(.2, .8, .2, 1) both; }
  html body.frost.frost.frost.frost.frost.frost .pbars .bar { transform-origin: 50% 100%; animation: frBar .8s cubic-bezier(.2, .8, .2, 1) backwards; }
  html body.frost.frost.frost.frost.frost.frost .pbars .col:nth-child(2) .bar { animation-delay: .05s; } html body.frost.frost.frost.frost.frost.frost .pbars .col:nth-child(3) .bar { animation-delay: .1s; }
  html body.frost.frost.frost.frost.frost.frost .pbars .col:nth-child(4) .bar { animation-delay: .15s; } html body.frost.frost.frost.frost.frost.frost .pbars .col:nth-child(5) .bar { animation-delay: .2s; }
  html body.frost.frost.frost.frost.frost.frost .pbars .col:nth-child(6) .bar { animation-delay: .25s; } html body.frost.frost.frost.frost.frost.frost .pbars .col:nth-child(7) .bar { animation-delay: .3s; }
  html body.frost.frost.frost.frost.frost.frost .hbar .fill, html body.frost.frost.frost.frost.frost.frost .mini-bar > *, html body.frost.frost.frost.frost.frost.frost .mini > * { transform-origin: 0 50%; animation: frFill .9s .15s cubic-bezier(.2, .8, .2, 1) backwards; }
  html body.frost.frost.frost.frost.frost.frost .hc-week a { animation: frPop .45s cubic-bezier(.2, .9, .3, 1.3) backwards; }
  html body.frost.frost.frost.frost.frost.frost .hc-week a:nth-child(2) { animation-delay: .03s; } html body.frost.frost.frost.frost.frost.frost .hc-week a:nth-child(3) { animation-delay: .06s; }
  html body.frost.frost.frost.frost.frost.frost .hc-week a:nth-child(4) { animation-delay: .09s; } html body.frost.frost.frost.frost.frost.frost .hc-week a:nth-child(5) { animation-delay: .12s; }
  html body.frost.frost.frost.frost.frost.frost .hc-week a:nth-child(6) { animation-delay: .15s; } html body.frost.frost.frost.frost.frost.frost .hc-week a:nth-child(7) { animation-delay: .18s; }
  /* carduri și pastile: se ridică ușor la trecerea mouse-ului; comutatoarele alunecă */
  html body.frost.frost.frost.frost.frost.frost .card, html body.frost.frost.frost.frost.frost.frost .stat { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
  html body.frost.frost.frost.frost.frost.frost a.stat:hover, html body.frost.frost.frost.frost.frost.frost .card:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 22px 40px -24px rgba(50, 40, 25, .5); }
  html body.frost.frost.frost.frost.frost.frost .card:has(textarea:focus, input:focus, select:focus):hover { transform: none; }
  html body.frost.frost.frost.frost.frost.frost .btn { transition: background .18s, transform .15s, box-shadow .2s; }
  html body.frost.frost.frost.frost.frost.frost .btn:active { transform: scale(.97); }
  html body.frost.frost.frost.frost.frost.frost .sw, html body.frost.frost.frost.frost.frost.frost .sw::after, html body.frost.frost.frost.frost.frost.frost .sw::before { transition: all .3s cubic-bezier(.2, .8, .2, 1); }
  html body.frost.frost.frost.frost.frost.frost .messages li { animation: frIn .5s cubic-bezier(.2, .8, .2, 1) backwards; }
}
@keyframes frIn { from { opacity: 0; filter: blur(10px); transform: translateY(10px) scale(.985); } to { opacity: 1; filter: none; transform: none; } }
@keyframes frGauge { from { --p: 0; } }
@keyframes frBar { from { transform: scaleY(.04); opacity: .4; } }
@keyframes frFill { from { transform: scaleX(0); } }
@keyframes frPop { from { opacity: 0; transform: translateY(6px) scale(.9); } }

/* =====================================================================
   Crăciun (1–26 decembrie sau pornit din Administrare → Generale): luminițe, ninsoare, căciulă pe siglă, urare
   ===================================================================== */
.xm-snow { position: fixed; inset: 0; z-index: 60; pointer-events: none; }
.xm-lights { position: fixed; top: 0; left: 0; right: 0; height: 30px; z-index: 61; pointer-events: none; display: flex; overflow: hidden;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='30'%3E%3Cpath d='M0 4 Q23 20 46 4' fill='none' stroke='%23233a2e' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0; }
body.light .xm-lights { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='46' height='30'%3E%3Cpath d='M0 4 Q23 20 46 4' fill='none' stroke='%235a6b60' stroke-width='1.6'/%3E%3C/svg%3E"); }
.xm-lights i { flex: none; width: 46px; position: relative; }
.xm-lights i::before { content: ""; position: absolute; left: 20px; top: 11px; width: 5px; height: 4px; border-radius: 1px; background: #4a5a50; }
.xm-lights i::after { content: ""; position: absolute; left: 18px; top: 14px; width: 9px; height: 13px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
  background: var(--c); box-shadow: 0 0 10px 2px var(--c); animation: xmBlink 2.4s ease-in-out infinite; animation-delay: inherit; }
.xm-lights i.r { --c: #ff4d5e; } .xm-lights i.g { --c: #3ee07f; } .xm-lights i.y { --c: #ffd25e; } .xm-lights i.b { --c: #5aa8ff; }
@keyframes xmBlink { 0%, 100% { opacity: 1; filter: none; } 50% { opacity: .35; box-shadow: 0 0 2px 0 var(--c); } }
.xm-toggle { position: fixed; right: 14px; bottom: 14px; z-index: 62; width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 17px; line-height: 1; color: #fff; border: 1px solid rgba(255,255,255,.3);
  background: rgba(30, 60, 120, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.6);
  transition: transform .2s, opacity .2s; }
.xm-toggle:hover { transform: rotate(30deg) scale(1.06); }
.xm-toggle.off { opacity: .45; }
.xm-toggle.off::after { content: ""; position: absolute; width: 24px; height: 2px; background: #fff; transform: rotate(-45deg); border-radius: 2px; }
body.light .xm-toggle { background: rgba(26, 115, 232, .85); }
@media (max-width: 900px) { .xm-toggle { bottom: 86px; } }

/* căciula de pe siglă (desen propriu, simplu) */
.xmas .logo { position: relative; overflow: visible; }
.xmas .logo::after { content: ""; position: absolute; width: 30px; height: 26px; top: -15px; right: -12px; transform: rotate(16deg); pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 26'%3E%3Cpath d='M3 19 C6 8 14 2 22 4 C26 5 27 10 26 14 L24 12 C22 9 18 9 16 12 L14 19 Z' fill='%23e23a46'/%3E%3Crect x='1' y='17' width='17' height='6' rx='3' fill='%23fff'/%3E%3Ccircle cx='25.5' cy='15' r='3.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.xmas .auth .brand .logo::after { top: -16px; right: -13px; }

/* urarea de pe pagina principală */
.xm-greet { position: relative; display: flex; align-items: center; gap: 18px; padding: 18px 22px; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(120deg, rgba(200, 40, 60, .28), rgba(30, 140, 80, .22) 60%, rgba(255, 210, 94, .14)), var(--glass); }
.xm-greet::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.5px 1.5px at 10% 30%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 55% 20%, #fff, transparent), radial-gradient(1px 1px at 75% 60%, #fff, transparent), radial-gradient(1.2px 1.2px at 90% 25%, #fff, transparent); }
body.light .xm-greet { background: linear-gradient(120deg, rgba(226, 58, 70, .12), rgba(31, 157, 92, .12) 60%, rgba(255, 210, 94, .18)), var(--glass); }
body.light .xm-greet::before { opacity: 0; }
.xm-greet h2 { margin: 4px 0 2px; font-size: 20px; }
.xm-greet p { margin: 0; }
.xm-txt { flex: 1; min-width: 0; }
.xm-tree { width: 58px; height: 72px; flex: none; filter: drop-shadow(0 6px 12px rgba(0,0,0,.3)); }
.xm-tree .xm-star { transform-origin: 32px 7px; animation: xmStar 3s ease-in-out infinite; }
.xm-tree .xm-b { animation: xmBlinkSvg 2.2s ease-in-out infinite; }
.xm-tree .xm-b.r { fill: #ff4d5e; } .xm-tree .xm-b.y { fill: #ffd25e; animation-delay: .7s; } .xm-tree .xm-b.b { fill: #5aa8ff; animation-delay: 1.4s; }
@keyframes xmStar { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.18) rotate(12deg); } }
@keyframes xmBlinkSvg { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.xm-orn { display: flex; gap: 10px; align-self: flex-start; margin-top: -18px; }
.xm-orn i { position: relative; width: 18px; height: 18px; border-radius: 50%; margin-top: 30px; transform-origin: 50% -30px; animation: xmSwing 3.2s ease-in-out infinite;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8), transparent 35%), var(--c); box-shadow: 0 6px 12px -4px var(--c); }
.xm-orn i::before { content: ""; position: absolute; left: 8px; top: -30px; width: 1.5px; height: 30px; background: rgba(255,255,255,.45); }
.xm-orn i::after { content: ""; position: absolute; left: 6px; top: -3px; width: 6px; height: 4px; border-radius: 1px; background: #c9a24a; }
.xm-orn i.r { --c: #e23a46; } .xm-orn i.y { --c: #e8b53a; animation-delay: -1.1s; margin-top: 22px; } .xm-orn i.g { --c: #1f9d5c; animation-delay: -2.2s; }
body.light .xm-orn i::before { background: rgba(0,0,0,.25); }
@keyframes xmSwing { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@media (max-width: 600px) { .xm-orn { display: none; } .xm-tree { width: 44px; height: 56px; } }
@media (prefers-reduced-motion: reduce) { .xm-lights i::after, .xm-tree *, .xm-orn i { animation: none !important; } }
@media print { .xm-snow, .xm-lights, .xm-toggle, .xm-greet { display: none !important; } .xmas .logo::after { display: none; } }
