/* HedgeSEC – stiluri proprii peste Bulma (inclus de FoxyUI).
   Paleta de brand: din mascota low-poly (HedgeSEC_Functionalitati.md §7).
   Culorile de severitate sunt provizorii (problema deschisă P11): separate de teal-ul brandului,
   folosite mereu împreună cu text, nu singure. Mobile-first: stilurile de bază sunt pentru telefon. */

:root {
  --hs-teal: #3F7F7A;
  --hs-teal-strong: #2F6460;
  --hs-mint: #BFE3D3;
  --hs-mint-soft: #E4F3EC;
  --hs-lavender: #A99BCB;
  --hs-lavender-soft: #EEEAF6;
  --hs-cyan: #8FD3D1;

  --hs-bg: #F6FAF8;
  --hs-surface: #FFFFFF;
  --hs-surface-2: #F0F5F3;
  --hs-text: #2B3A45;
  --hs-text-muted: #5D6B78;
  --hs-border: #DCE6E2;
  --hs-link: #2F6460;
  --hs-shadow: 0 1px 2px rgba(20, 26, 34, .06), 0 4px 16px rgba(20, 26, 34, .05);

  /* Severitate (provizoriu, P11) */
  --hs-critic: #B42318;   --hs-critic-bg: #FEE4E2;
  --hs-ridicat: #C4320A;  --hs-ridicat-bg: #FFE6D5;
  --hs-mediu: #93590B;    --hs-mediu-bg: #FEF0C7;
  --hs-scazut: #2E6385;   --hs-scazut-bg: #E0EEF6;
  --hs-info: #5D6B78;     --hs-info-bg: #EEF1F4;
  --hs-ok: #1F7A4D;       --hs-ok-bg: #DCF5E7;

  --hs-radius: 12px;
  --hs-radius-sm: 8px;
  --hs-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hs-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
}

html[data-theme="dark"] {
  --hs-teal: #6FB8B0;
  --hs-teal-strong: #8FD3CB;
  --hs-mint: #24453F;
  --hs-mint-soft: #1B302D;
  --hs-lavender-soft: #2A2638;
  --hs-bg: #141A22;
  --hs-surface: #1C2530;
  --hs-surface-2: #232E3A;
  --hs-text: #E6EEF0;
  --hs-text-muted: #A3B1BC;
  --hs-border: #2E3B48;
  --hs-link: #8FD3CB;
  --hs-shadow: 0 1px 2px rgba(0, 0, 0, .3);

  --hs-critic: #FF8A80;   --hs-critic-bg: #3D1F1F;
  --hs-ridicat: #FFAB76;  --hs-ridicat-bg: #3B2618;
  --hs-mediu: #F5C76B;    --hs-mediu-bg: #3A3018;
  --hs-scazut: #8EC3E6;   --hs-scazut-bg: #1C2C3A;
  --hs-info: #A3B1BC;     --hs-info-bg: #26303A;
  --hs-ok: #7FD8A6;       --hs-ok-bg: #173225;
}

/* ---------- bază ---------- */
html[data-theme="light"] body, html[data-theme="dark"] body, body {
  background: var(--hs-bg);
  color: var(--hs-text);
  font-family: var(--hs-font);
  -webkit-font-smoothing: antialiased;
}
body { padding-bottom: 72px; } /* loc pentru bara de navigare de jos (mobil) */
a { color: var(--hs-link); }
a:hover { color: var(--hs-teal); }
h1, h2, h3, h4 { color: var(--hs-text); letter-spacing: -0.01em; }
.hs-muted { color: var(--hs-text-muted); }
.hs-mono, code, pre { font-family: var(--hs-mono); }
code { background: var(--hs-surface-2); color: var(--hs-text); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
::selection { background: var(--hs-mint); }
:focus-visible { outline: 3px solid var(--hs-cyan); outline-offset: 2px; }

.hs-shell { min-height: 100vh; display: flex; flex-direction: column; }
.hs-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px; }

/* ---------- antet ---------- */
.hs-header { background: var(--hs-surface); border-bottom: 1px solid var(--hs-border); position: sticky; top: 0; z-index: 50; }
.hs-header-inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.hs-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.12rem; color: var(--hs-text) !important; text-decoration: none; flex-shrink: 0; }
.hs-brand > div { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hs-brand img { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; }
.hs-brand span.hs-brand-sec { color: var(--hs-teal); }
.hs-nav { display: none; gap: 3px 4px; flex-wrap: wrap; flex: 1 1 auto; min-width: 0; justify-content: flex-start; }
.hs-nav a { padding: 6px 9px; border-radius: 8px; color: var(--hs-text-muted); font-weight: 500; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.hs-nav a:hover { background: var(--hs-surface-2); color: var(--hs-text); }
.hs-nav a.is-active { background: var(--hs-mint-soft); color: var(--hs-teal-strong); font-weight: 650; }
.hs-header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.hs-user { display: none; font-size: .85rem; color: var(--hs-text-muted); text-align: right; line-height: 1.2; }
.hs-user strong { color: var(--hs-text); display: block; }
.hs-iconbtn.button { border-radius: 8px; background: var(--hs-surface-2); border: 1px solid var(--hs-border); color: var(--hs-text); }

/* bara de jos – doar pe mobil */
.hs-bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--hs-surface); border-top: 1px solid var(--hs-border);
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
.hs-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--hs-text-muted); text-decoration: none; padding: 4px 0; border-radius: 8px; }
.hs-bottomnav a i { font-size: 1.15rem; }
.hs-bottomnav a.is-active { color: var(--hs-teal-strong); font-weight: 700; }

@media (min-width: 900px) {
  .hs-main { padding: 28px 24px; }
}
/* Meniul complet din antet doar pe ecrane late; sub 1100px rămâne bara de jos. */
@media (min-width: 1100px) {
  body { padding-bottom: 0; }
  .hs-nav { display: flex; flex-wrap: nowrap; }
  .hs-user { display: block; }
  .hs-bottomnav { display: none; }
}

/* ---------- subsol ---------- */
.hs-footer { border-top: 1px solid var(--hs-border); background: var(--hs-surface); color: var(--hs-text-muted); font-size: .85rem; }
.hs-footer-inner { max-width: 1180px; margin: 0 auto; padding: 20px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- titluri de pagină ---------- */
.hs-pagehead { margin-bottom: 18px; }
.hs-pagehead h1 { font-size: 1.55rem; font-weight: 800; margin: 0 0 4px; }
.hs-pagehead p { color: var(--hs-text-muted); margin: 0; }
@media (min-width: 900px) { .hs-pagehead h1 { font-size: 1.9rem; } }
.hs-section-title { font-size: 1.05rem; font-weight: 750; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }

/* ---------- carduri, grile ---------- */
.hs-card { background: var(--hs-surface); border: 1px solid var(--hs-border); border-radius: var(--hs-radius); box-shadow: var(--hs-shadow); padding: 16px; margin-bottom: 14px; }
.hs-card h3 { font-size: 1.02rem; font-weight: 700; margin: 0 0 8px; }
.hs-card.hs-card-accent { border-left: 4px solid var(--hs-teal); }
.hs-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .hs-grid.hs-2, .hs-grid.hs-3, .hs-grid.hs-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .hs-grid.hs-3 { grid-template-columns: repeat(3, 1fr); } .hs-grid.hs-4 { grid-template-columns: repeat(4, 1fr); } }
.hs-grid > .hs-card { margin-bottom: 0; }
.hs-grid > .hs-span-all { grid-column: 1 / -1; }

/* plăci cu valori (KPI) */
.hs-tile { background: var(--hs-surface); border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: 14px 16px; }
.hs-tile .hs-tile-label { font-size: .8rem; color: var(--hs-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.hs-tile .hs-tile-value { font-size: 1.7rem; font-weight: 800; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.hs-tile .hs-tile-note { font-size: .82rem; color: var(--hs-text-muted); }

/* ---------- severitate ---------- */
.hs-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; line-height: 1.6; }
.hs-badge::before { content: ""; width: 7px; height: 7px; display: inline-block; flex-shrink: 0; }
.hs-sev-critic { color: var(--hs-critic); background: var(--hs-critic-bg); }
.hs-sev-critic::before { background: currentColor; transform: rotate(45deg); }       /* romb */
.hs-sev-ridicat { color: var(--hs-ridicat); background: var(--hs-ridicat-bg); }
.hs-sev-ridicat::before { border-left: 4px solid transparent; border-right: 4px solid transparent; border-bottom: 7px solid currentColor; width: 0; height: 0; } /* triunghi */
.hs-sev-mediu { color: var(--hs-mediu); background: var(--hs-mediu-bg); }
.hs-sev-mediu::before { background: currentColor; }                                  /* pătrat */
.hs-sev-scazut { color: var(--hs-scazut); background: var(--hs-scazut-bg); }
.hs-sev-scazut::before { background: currentColor; border-radius: 50%; }            /* cerc */
.hs-sev-info { color: var(--hs-info); background: var(--hs-info-bg); }
.hs-sev-info::before { border: 1.5px solid currentColor; border-radius: 50%; width: 6px; height: 6px; } /* cerc gol */
.hs-badge-ok { color: var(--hs-ok); background: var(--hs-ok-bg); }
.hs-badge-ok::before { background: currentColor; border-radius: 50%; }
.hs-badge-kev { color: #fff; background: var(--hs-critic); }
html[data-theme="dark"] .hs-badge-kev { color: #1C2530; }
.hs-badge-kev::before { display: none; }
.hs-badge-neutral { color: var(--hs-text-muted); background: var(--hs-surface-2); }
.hs-badge-neutral::before { display: none; }
.hs-badge-brand { color: var(--hs-teal-strong); background: var(--hs-mint-soft); }
.hs-badge-brand::before { display: none; }

/* ---------- HedgeScore ---------- */
.hs-score { --v: 0; --c: var(--hs-info); width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0;
  background: conic-gradient(var(--c) calc(var(--v) * 1%), var(--hs-surface-2) 0); display: grid; place-items: center; }
.hs-score > div { width: 74px; height: 74px; border-radius: 50%; background: var(--hs-surface); display: grid; place-items: center; text-align: center; }
.hs-score strong { font-size: 1.6rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.hs-score small { font-size: .62rem; color: var(--hs-text-muted); text-transform: uppercase; letter-spacing: .05em; }
.hs-score.hs-sm { width: 52px; height: 52px; }
.hs-score.hs-sm > div { width: 40px; height: 40px; }
.hs-score.hs-sm strong { font-size: 1rem; }
.hs-score-bun { --c: var(--hs-ok); }
.hs-score-ok { --c: var(--hs-mediu); }
.hs-score-slab { --c: var(--hs-ridicat); }
.hs-score-critic { --c: var(--hs-critic); }
.hs-score-none { --c: var(--hs-border); }
.hs-scorebox { display: flex; align-items: center; gap: 16px; }

/* ---------- liste (carduri pe mobil în loc de tabele, P14) ---------- */
.hs-list { display: flex; flex-direction: column; gap: 10px; }
.hs-item { background: var(--hs-surface); border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm); padding: 12px 14px; }
.hs-item-head { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.hs-item-title { font-weight: 650; color: var(--hs-text); }
a.hs-item-title { text-decoration: none; }
a.hs-item-title:hover { text-decoration: underline; }
.hs-item-meta { font-size: .82rem; color: var(--hs-text-muted); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.hs-item-body { font-size: .92rem; margin-top: 8px; }
.hs-item-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.hs-fix { background: var(--hs-mint-soft); border-radius: 6px; padding: 8px 10px; font-size: .88rem; margin-top: 8px; }
.hs-fix::before { content: "Remediere: "; font-weight: 700; color: var(--hs-teal-strong); }

/* „Ce repari azi” – numerotare */
.hs-todo { counter-reset: todo; }
.hs-todo > .hs-item { position: relative; padding-left: 48px; }
.hs-todo > .hs-item::before { counter-increment: todo; content: counter(todo); position: absolute; left: 12px; top: 12px; width: 26px; height: 26px;
  border-radius: 50%; background: var(--hs-teal); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .85rem; }
html[data-theme="dark"] .hs-todo > .hs-item::before { color: #141A22; }

/* tabele simple (doar citire) */
.hs-table-wrap { overflow-x: auto; border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm); background: var(--hs-surface); }
table.hs-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.hs-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--hs-text-muted); background: var(--hs-surface-2); padding: 8px 12px; white-space: nowrap; }
table.hs-table td { padding: 8px 12px; border-top: 1px solid var(--hs-border); vertical-align: top; }

/* ---------- formulare / butoane ---------- */
.button.is-primary, .button.hs-primary { background: var(--hs-teal); border-color: transparent; color: #fff; font-weight: 650; }
.button.is-primary:hover, .button.hs-primary:hover { background: var(--hs-teal-strong); color: #fff; }
html[data-theme="dark"] .button.is-primary, html[data-theme="dark"] .button.hs-primary { color: #141A22; }
.button { border-radius: 8px; }
.input, .textarea, .select select { border-radius: 8px; border-color: var(--hs-border); background: var(--hs-surface); color: var(--hs-text); }
html[data-theme="dark"] .input, html[data-theme="dark"] .textarea, html[data-theme="dark"] .select select { background: var(--hs-surface-2); }
.input:focus, .textarea:focus { border-color: var(--hs-teal); box-shadow: 0 0 0 3px rgba(63, 127, 122, .18); }
.label, label { color: var(--hs-text); }
.hs-form { max-width: 440px; margin: 0 auto; }
.hs-form .field, .hs-form > * { margin-bottom: 12px; }
.hs-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.hs-row > .hs-grow { flex: 1 1 200px; }
.hs-filters { display: grid; gap: 8px; grid-template-columns: 1fr; margin-bottom: 14px; }
@media (min-width: 760px) { .hs-filters { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; } }

/* mesaje */
.hs-alert { border-radius: var(--hs-radius-sm); padding: 10px 14px; font-size: .92rem; margin-bottom: 12px; border: 1px solid transparent; }
.hs-alert-ok { background: var(--hs-ok-bg); color: var(--hs-ok); border-color: color-mix(in srgb, var(--hs-ok) 25%, transparent); }
.hs-alert-err { background: var(--hs-critic-bg); color: var(--hs-critic); border-color: color-mix(in srgb, var(--hs-critic) 25%, transparent); }
.hs-alert-warn { background: var(--hs-mediu-bg); color: var(--hs-mediu); border-color: color-mix(in srgb, var(--hs-mediu) 25%, transparent); }
/* sectiuni necitite la ultima scanare (ActivPage) */
.hs-colectare-erori summary { cursor: pointer; font-weight: 600; }
.hs-colectare-erori ul { margin: 8px 0 8px 18px; padding: 0; list-style: disc; }
.hs-colectare-erori li { margin: 2px 0; word-break: break-word; }
.hs-alert-info { background: var(--hs-mint-soft); color: var(--hs-teal-strong); }

/* ---------- comanda de scanare ---------- */
.hs-cmd { position: relative; background: #141A22; color: #D7F2EA; border-radius: var(--hs-radius-sm); padding: 14px 16px; font-family: var(--hs-mono);
  font-size: .86rem; line-height: 1.5; word-break: break-all; border: 1px solid #2E3B48; }
.hs-cmd > span { white-space: pre-wrap; }
.hs-cmd .hs-prompt { color: var(--hs-cyan); user-select: none; }
.hs-guard { display: flex; gap: 10px; align-items: flex-start; background: var(--hs-lavender-soft); border-radius: var(--hs-radius-sm); padding: 10px 12px; font-size: .88rem; margin-top: 10px; }
.hs-guard i { color: #6A5A9E; margin-top: 3px; }
html[data-theme="dark"] .hs-guard i { color: var(--hs-lavender); }
/* Separatorul „sau” dintre autentificarea cu parolă și cea cu cheia de securitate */
.hs-sau { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--hs-muted, #6b7280); font-size: .85rem; }
.hs-sau::before, .hs-sau::after { content: ""; flex: 1; border-top: 1px solid var(--hs-border, #e5e7eb); }
.hs-code { font-family: var(--hs-mono); font-size: 1.9rem; font-weight: 800; letter-spacing: .12em; color: var(--hs-teal-strong); background: var(--hs-mint-soft);
  border-radius: 10px; padding: 6px 16px; display: inline-block; }
.hs-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hs-border); margin-bottom: 12px; overflow-x: auto; }
.hs-tabs .button { border: none; border-bottom: 3px solid transparent; border-radius: 0; background: transparent; color: var(--hs-text-muted); font-weight: 600; }
.hs-tabs .button.hs-tab-active { color: var(--hs-teal-strong); border-bottom-color: var(--hs-teal); }
.hs-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.hs-steps li { counter-increment: step; position: relative; padding: 0 0 12px 36px; }
.hs-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--hs-mint);
  color: var(--hs-teal-strong); font-weight: 800; display: grid; place-items: center; font-size: .8rem; }
.hs-waiting { display: flex; align-items: center; gap: 10px; color: var(--hs-text-muted); }
.hs-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--hs-teal); animation: hs-pulse 1.4s infinite; }
@keyframes hs-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 127, 122, .5); } 70% { box-shadow: 0 0 0 10px rgba(63, 127, 122, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 127, 122, 0); } }
@media (prefers-reduced-motion: reduce) { .hs-pulse { animation: none; } }

/* ---------- pagina de start ---------- */
.hs-hero { display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; padding: 8px 0 20px; }
.hs-hero h1 { font-size: 1.5rem; line-height: 1.15; font-weight: 850; margin: 0 0 12px; }
.hs-hero h1 em { font-style: normal; color: var(--hs-teal); }
.hs-hero p.hs-lead { font-size: 1.08rem; color: var(--hs-text-muted); margin-bottom: 18px; }
.hs-hero > div:last-child { justify-self: center; }
.hs-hero .hs-mascot { justify-self: center; width: 220px; max-width: 70vw; border-radius: 24px; }
html[data-theme="dark"] .hs-hero .hs-mascot { background: #fff; padding: 8px; }
@media (min-width: 900px) {
  .hs-hero { grid-template-columns: 1.3fr 1fr; padding: 24px 0 36px; }
  .hs-hero h1 { font-size: 2.15rem; }
  .hs-hero .hs-mascot { width: 340px; }
}
.hs-feature i { font-size: 1.4rem; color: var(--hs-teal); margin-bottom: 8px; }
.hs-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* prețuri */
.hs-plan { display: flex; flex-direction: column; }
.hs-plan .hs-price { font-size: 2rem; font-weight: 850; margin: 6px 0; }
.hs-plan .hs-price small { font-size: .9rem; font-weight: 500; color: var(--hs-text-muted); }
.hs-plan ul { list-style: none; margin: 10px 0 0; padding: 0; flex: 1; }
.hs-plan li { padding: 4px 0 4px 22px; position: relative; font-size: .92rem; }
.hs-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--hs-teal); font-weight: 800; }
.hs-plan.hs-plan-featured { border: 2px solid var(--hs-teal); }

/* stări goale cu mascota (P13) */
.hs-empty { text-align: center; padding: 28px 16px; color: var(--hs-text-muted); }
.hs-empty img { width: 96px; opacity: .9; margin-bottom: 8px; border-radius: 16px; }
html[data-theme="dark"] .hs-empty img { background: #fff; padding: 4px; }

/* modal de avertizare (copiere comandă) */
.modal-card-title { font-weight: 800; }
.hs-warn-list { margin: 8px 0 12px 18px; }
.hs-warn-list li { list-style: disc; margin-bottom: 4px; }
.hs-warn-strong { background: var(--hs-critic-bg); color: var(--hs-critic); border-radius: 8px; padding: 10px 12px; font-weight: 600; font-size: .9rem; }

/* utilitare */
.hs-flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hs-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.hs-mt { margin-top: 12px; }
.hs-mb0 { margin-bottom: 0 !important; }
.hs-small { font-size: .85rem; }
.hs-pre { white-space: pre-line; }
.hs-hide-mobile { display: none; }
@media (min-width: 900px) { .hs-hide-mobile { display: initial; } }

/* Dovezi NIS2 (măsuri organizatorice) */
.hs-dovezi { margin-top: .6rem; border-top: 1px dashed var(--hs-border); padding-top: .6rem; }
.hs-dovezi-lista { list-style: none; margin: 0 0 .5rem; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.hs-dovezi-lista li { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.hs-dovada-form { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.hs-dovada-form input[type=text] { flex: 1 1 12rem; min-width: 8rem; padding: .3rem .5rem; border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm); background: var(--hs-surface); color: var(--hs-text); }
.hs-dovada-form input[type=file] { font-size: .85rem; max-width: 100%; }
.hs-inline { display: inline; margin: 0; }
.button.hs-danger { color: var(--hs-critic); border-color: var(--hs-critic-bg); }
.button.hs-danger:hover { background: var(--hs-critic-bg); }

/* Marcaj „nou” (știri / CVE apărute de la ultima vizită) */
.hs-nou {
  display: inline-flex; align-items: center; gap: .15rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  color: var(--hs-critic); background: var(--hs-critic-bg);
  border-radius: 999px; padding: .08rem .4rem; text-transform: uppercase;
  white-space: nowrap;
}

/* Cod QR (ex. configurare 2FA) */
.hs-qr {
  display: inline-block; margin: .5rem 0; padding: 12px;
  background: #fff; border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm);
  line-height: 0;
}
.hs-qr svg { display: block; width: 220px; height: 220px; }

/* Linie de comandă cu buton Copiază */
.hs-cmd-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .25rem 0 .6rem; }
.hs-cmd-inline {
  font-family: var(--hs-mono); font-size: .82rem; background: var(--hs-surface-2);
  color: var(--hs-text); padding: .35rem .55rem; border-radius: var(--hs-radius-sm);
  border: 1px solid var(--hs-border); overflow-x: auto; white-space: pre; flex: 1 1 18rem; min-width: 0;
}
.hs-copybtn { flex-shrink: 0; }

/* Rând de tabel neconform (deep scan BIOS) */
.hs-table tr.hs-rand-rau td { background: var(--hs-ridicat-bg); }
.hs-table tr.hs-rand-rau td code { background: transparent; }

/* Banner de notificare (alerte de securitate noi) */
.hs-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem 1rem; border-radius: var(--hs-radius); margin-bottom: 1rem; border: 1px solid;
}
.hs-banner-critic { background: var(--hs-critic-bg); border-color: var(--hs-critic); }
.hs-banner-atentie { background: var(--hs-mediu-bg); border-color: var(--hs-mediu); }
.hs-banner-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.hs-banner-title { font-weight: 700; }
.hs-banner-critic .hs-banner-title { color: var(--hs-critic); }
.hs-banner-atentie .hs-banner-title { color: var(--hs-mediu); }
.hs-banner-sub { font-size: .85rem; color: var(--hs-text-muted); overflow: hidden; text-overflow: ellipsis; }

/* Valori lungi în tabelul BIOS (hex, liste de boot) */
.hs-val-bios { white-space: pre-wrap; word-break: break-all; font-size: .8rem; }

/* Meniul de sub „Nume și firmă” (antet) */
.hs-usermenu { position: relative; }
.hs-usermenu > summary { list-style: none; cursor: pointer; border-radius: var(--hs-radius-sm); padding: .2rem .5rem; }
.hs-usermenu > summary::-webkit-details-marker { display: none; }
.hs-usermenu > summary::after { content: "▾"; margin-left: .35rem; color: var(--hs-text-muted); font-size: .8rem; }
.hs-usermenu > summary:hover, .hs-usermenu[open] > summary, .hs-usermenu > summary.is-active { background: var(--hs-surface-2); }
.hs-usermenu-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 210px;
  background: var(--hs-surface); border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm);
  box-shadow: var(--hs-shadow); padding: .35rem; display: flex; flex-direction: column;
}
.hs-usermenu-item { display: flex; align-items: center; gap: .55rem; padding: .45rem .6rem; border-radius: 6px; color: var(--hs-text); text-decoration: none; }
.hs-usermenu-item:hover { background: var(--hs-surface-2); }
.hs-usermenu-item.is-active { color: var(--hs-teal-strong); font-weight: 600; }

/* NIS2: bare de progres, cipuri de navigare, coduri de cerință, editor inline, grafic */
.hs-progres { height: 6px; background: var(--hs-border); border-radius: 999px; overflow: hidden; margin: 6px 0 4px; }
.hs-progres span { display: block; height: 100%; background: var(--hs-teal); border-radius: 999px; }
.hs-wrap { flex-wrap: wrap; }
.hs-chip { display: inline-block; padding: 3px 10px; border: 1px solid var(--hs-border); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--hs-text-muted); background: var(--hs-surface); text-decoration: none; white-space: nowrap; }
.hs-chip:hover { border-color: var(--hs-teal); color: var(--hs-teal-strong); }
.hs-chip.hs-chip-activ { background: var(--hs-teal); border-color: var(--hs-teal); color: #fff; }
.hs-cod { font-family: var(--hs-mono); font-size: .78rem; font-weight: 700; color: var(--hs-teal-strong); background: var(--hs-mint-soft, rgba(63,127,122,.1)); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.hs-ancora { display: block; position: relative; top: -80px; visibility: hidden; }
.hs-editor { padding: 12px; border-radius: var(--hs-radius-sm); }
.hs-grafic { width: 100%; height: 120px; color: var(--hs-teal); display: block; }
.hs-criticitate-wrap { max-width: 260px; }

/* Inventar hardware: tabele cheie-valoare, tabele compacte, liste restrânse */
.hs-kv { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hs-kv th { text-align: left; font-weight: 600; color: var(--hs-text-muted); padding: 4px 10px 4px 0; width: 42%; vertical-align: top; }
.hs-kv td { padding: 4px 0; word-break: break-word; }
.hs-kv tr + tr th, .hs-kv tr + tr td { border-top: 1px solid var(--hs-border); }
.hs-table-mica { font-size: .85rem; }
.hs-detalii { border: 1px solid var(--hs-border); border-radius: var(--hs-radius-sm); padding: 8px 12px; background: var(--hs-surface); }
.hs-detalii summary { cursor: pointer; font-weight: 600; }
.hs-rand-stare { padding: 5px 0; border-bottom: 1px solid var(--hs-border); }
.hs-rand-stare:last-child { border-bottom: 0; }

/* Eticheta criticității și pop-up-ul cu textul normelor NIS2 */
.hs-criticitate-eticheta { font-weight: 600; margin-bottom: 6px; display: block; }
.hs-link-norma { text-decoration: underline dotted; text-underline-offset: 3px; }
dialog.hs-norma { max-width: min(720px, calc(100vw - 32px)); max-height: 85vh; overflow-y: auto; border: 1px solid var(--hs-border); border-radius: var(--hs-radius); padding: 20px 22px; background: var(--hs-surface); color: var(--hs-text); }
dialog.hs-norma::backdrop { background: rgba(20, 30, 40, .45); }
dialog.hs-norma h3 { margin: 0 0 10px; font-size: 1.15rem; font-weight: 700; }
dialog.hs-norma blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--hs-teal); background: var(--hs-surface-2); font-size: .92rem; line-height: 1.5; }
.hs-norma-sursa { font-weight: 600; font-size: .85rem; color: var(--hs-text-muted); margin: 14px 0 4px; }
.hs-norma-inchide { text-align: right; margin-top: 12px; }
.hs-temei { margin: 4px 0 10px; color: var(--hs-text-muted); }
.hs-temei-eticheta { font-weight: 600; }

/* Administrare → Conturi: blocul de autentificare în doi pași al unui utilizator */
.hs-2fa-admin { border-top: 1px dashed var(--hs-border); padding-top: 8px; }
.hs-2fa-admin .hs-flex { gap: 8px; align-items: center; }
