/* Maximia Interiors – gestiune internă.
   Paleta urmează profilul de Instagram: alb cald, bej, lemn, antracit. */
:root {
  --bg: #f5f1eb;
  --surface: #fffdf9;
  --surface-2: #f0e9df;
  --line: #e4dbcf;
  --line-strong: #cdc1b1;
  --ink: #26221f;
  --ink-2: #5a524a;
  --muted: #8b8177;
  --dark: #1d1b19;
  --dark-2: #2b2825;
  --on-dark: #f3eee7;
  --on-dark-muted: #a69c91;
  --accent: #9a7652;
  --accent-strong: #7c5c3d;
  --accent-soft: #f1e6d8;
  --ok: #56704b;
  --ok-soft: #e6ede0;
  --danger: #a5463a;
  --danger-soft: #f6e3de;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Segoe UI', system-ui, sans-serif;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(45, 32, 20, .05), 0 10px 30px rgba(45, 32, 20, .07);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: .01em; margin: 0; }
h1 { font-size: 2.3rem; line-height: 1.1; }
h2 { font-size: 1.5rem; }
small { color: var(--muted); }

/* ---------- autentificare ---------- */
.auth { min-height: 100%; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-brand {
  background: radial-gradient(120% 90% at 20% 10%, #3a342e 0%, var(--dark) 60%);
  color: var(--on-dark);
  display: flex; flex-direction: column; justify-content: center; gap: 2rem;
  padding: 4rem clamp(2rem, 6vw, 6rem);
}
.auth-brand img { width: min(280px, 70%); }
.auth-brand p { font-family: var(--serif); font-size: 1.6rem; margin: 0; line-height: 1.3; }
.auth-brand p span { font-family: var(--sans); font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); }
.auth-panel { display: grid; place-items: center; padding: 3rem 1.5rem; }
.auth-form { width: min(380px, 100%); display: grid; gap: 1rem; }
.auth-form h1 { font-size: 2rem; }
.auth-form p { margin: 0; color: var(--ink-2); }

/* ---------- schelet ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100%; }
.sidebar {
  background: var(--dark); color: var(--on-dark);
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 1.75rem 1.25rem 1.25rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand img { width: 130px; display: block; margin: .25rem auto .5rem; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  text-decoration: none; padding: .55rem .75rem; border-radius: 8px;
  color: var(--on-dark-muted); display: flex; justify-content: space-between; align-items: baseline;
  transition: background .15s, color .15s;
}
.nav a small { color: inherit; opacity: .7; font-size: .75rem; letter-spacing: .05em; }
.nav a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .05); }
.nav a.active { color: var(--on-dark); background: var(--dark-2); box-shadow: inset 2px 0 0 var(--accent); }
.nav-label { margin: 1.2rem .75rem .35rem; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; color: #6f675f; }
.me { border-top: 1px solid #34302c; padding: 1rem .5rem 0; font-size: .9rem; }
.me-name { color: var(--on-dark); }
.me-actions { display: flex; gap: 1rem; margin-top: .25rem; }
.me-actions a, .linklike { color: var(--on-dark-muted); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.me-actions a:hover, .linklike:hover { color: var(--on-dark); }

.view { padding: 2.25rem clamp(1rem, 3vw, 3rem) 4rem; min-width: 0; outline: none; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.eyebrow { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ---------- butoane & câmpuri ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .6rem 1.1rem; border-radius: 8px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer;
  font-weight: 500; font-size: .92rem; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.btn.primary:hover { background: #34302c; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover { background: var(--accent-strong); }
.btn.danger { color: var(--danger); border-color: #e3c3bc; }
.btn.danger:hover { background: var(--danger-soft); }
.btn.ghost { background: transparent; }
.btn.small { padding: .3rem .6rem; font-size: .82rem; }
.btn:disabled { opacity: .55; cursor: default; }
.icon-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: var(--surface); cursor: pointer; font-size: 1.05rem; line-height: 1; display: inline-grid; place-items: center;
}
.icon-btn.in:hover { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.icon-btn.out:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }

label.field { display: grid; gap: .3rem; font-size: .82rem; color: var(--ink-2); }
label.field > span { letter-spacing: .02em; }
label.field.span-2 { grid-column: span 2; }
label.field.span-all { grid-column: 1 / -1; }
input:not([type=checkbox]), select, textarea {
  width: 100%; padding: .6rem .75rem; border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--surface); font-size: .95rem; color: var(--ink);
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, .icon-btn:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.check { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem 1rem; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 1.2em; margin: 0; }

/* ---------- carduri panou ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; text-decoration: none; box-shadow: var(--shadow); display: block;
  transition: transform .15s, border-color .15s;
}
a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.card .label { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.card .big { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; line-height: 1.1; margin: .35rem 0 .1rem; }
.card .sub { color: var(--ink-2); font-size: .9rem; }
.card.alert .big { color: var(--danger); }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1.25rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel > header { display: flex; justify-content: space-between; align-items: baseline; padding: 1rem 1.25rem .5rem; }
.panel > header a { font-size: .85rem; color: var(--accent-strong); }

/* ---------- filtre & tabele ---------- */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.filters input[type=search] { flex: 1 1 280px; max-width: 420px; }
.filters select, .filters input[type=date] { width: auto; min-width: 150px; }
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .92rem; }
.grid th {
  text-align: left; font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); padding: .8rem 1rem; border-bottom: 1px solid var(--line); background: #fbf8f3; white-space: nowrap;
}
.grid td { padding: .7rem 1rem; border-bottom: 1px solid #efe8de; vertical-align: middle; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tbody tr.clickable { cursor: pointer; }
.grid tbody tr.clickable:hover td { background: #faf6f0; }
.grid td strong { font-weight: 500; display: block; }
.grid td small { display: block; font-size: .8rem; }
.grid .num, .grid th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.grid .mono { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.grid .row-actions { white-space: nowrap; text-align: right; width: 1%; }
.grid .row-actions > * + * { margin-left: .3rem; }
.panel .grid th { background: transparent; }
.table-foot { color: var(--muted); font-size: .85rem; margin: .75rem .25rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

.stock { font-weight: 600; font-variant-numeric: tabular-nums; }
.stock.low { color: var(--danger); }
.stock.zero { color: var(--muted); }
.badge {
  display: inline-block; padding: .12rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 500;
  letter-spacing: .03em; white-space: nowrap;
}
.badge.intrare { background: var(--ok-soft); color: var(--ok); }
.badge.iesire { background: var(--accent-soft); color: var(--accent-strong); }
.badge.ajustare { background: #e9e6f0; color: #5b5375; }
.badge.low { background: var(--danger-soft); color: var(--danger); }
.qty-in { color: var(--ok); }
.qty-out { color: var(--accent-strong); }

.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.4rem; margin-bottom: .35rem; }
.empty .btn { margin-top: 1rem; }
.loading { color: var(--muted); padding: 2rem 0; }

/* ---------- modal ---------- */
dialog {
  border: 0; padding: 0; border-radius: 14px; background: var(--surface); color: var(--ink);
  width: min(640px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); box-shadow: 0 30px 80px rgba(20, 14, 8, .35);
}
dialog.wide { width: min(980px, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(29, 27, 25, .55); backdrop-filter: blur(2px); }
.modal-body { padding: 1.6rem 1.75rem 1.5rem; display: grid; gap: 1.1rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { font-size: 1.75rem; line-height: 1.15; }
.modal-head p { margin: .2rem 0 0; color: var(--muted); font-size: .9rem; }
.close-x { background: none; border: 0; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 .2rem; }
.close-x:hover { color: var(--ink); }
.modal-foot { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; padding-top: .25rem; }
.modal-foot .spacer { flex: 1; }

.segmented { display: inline-flex; background: var(--surface-2); border-radius: 9px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: none; padding: .45rem 1rem; border-radius: 7px; cursor: pointer; color: var(--ink-2); font-weight: 500; }
.segmented button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem 1.25rem; margin: 0; }
.facts div { border-left: 2px solid var(--line); padding-left: .75rem; }
.facts dt { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: .1rem 0 0; font-weight: 500; }
.stock-hero { display: flex; align-items: baseline; gap: .5rem; }
.stock-hero .stock { font-size: 2.1rem; font-weight: 500; letter-spacing: -.01em; }
.hint { background: var(--surface-2); border-radius: 8px; padding: .6rem .8rem; font-size: .88rem; color: var(--ink-2); margin: 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; pointer-events: none;
  background: var(--dark); color: var(--on-dark); padding: .7rem 1.2rem; border-radius: 999px; font-size: .92rem;
  box-shadow: var(--shadow); transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100vw - 2rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); }

/* ---------- ecrane mici ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; padding: 1rem; }
  .brand img { width: 80px; margin: 0; }
  .nav { flex-direction: row; overflow-x: auto; order: 3; flex-basis: 100%; }
  .nav a { white-space: nowrap; }
  .nav a small, .nav-label { display: none; }
  .nav-toggle, .nav-tree { display: none !important; }
  .selbar { left: 1rem; right: 1rem; bottom: 1rem; flex-wrap: wrap; }
  .me { border: 0; padding: 0; margin-left: auto; }
  .auth { grid-template-columns: 1fr; }
  .auth-brand { padding: 2.5rem 1.5rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .panels { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  label.field.span-2 { grid-column: auto; }
  h1 { font-size: 1.9rem; }
  .modal-body { padding: 1.25rem; }
}

.grid td.name { min-width: 220px; }

/* buton „arată parola” */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-eye {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center;
  border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer;
}
.pw-eye:hover { color: var(--ink); background: var(--surface-2); }
.pw-eye:focus-visible { outline: 2px solid var(--accent); }

.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; max-width: 980px; }

/* imagini articole */
.with-thumb { display: flex; align-items: center; gap: .75rem; }
.thumb { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; flex: none; background: var(--surface-2); display: block; }
.thumb.empty { border: 1px dashed var(--line-strong); background: transparent; }

/* navigare pe categorii (ca la Regency): traseu + cartonașe cu subcategorii */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .4rem; margin: -.5rem 0 1rem; font-size: .9rem; color: var(--muted); }
.crumbs button { background: none; border: 0; padding: .15rem .1rem; cursor: pointer; color: var(--accent-strong); }
.crumbs button:hover { text-decoration: underline; }
.crumbs button[aria-current] { color: var(--ink); font-weight: 500; cursor: default; text-decoration: none; }
.crumbs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.more-row { text-align: center; padding: .9rem !important; }

/* bife și bara de acțiuni pentru articolele bifate */
th.sel, td.sel { width: 2.4rem; padding-right: 0 !important; }
th.sel input, td.sel input { width: 17px; height: 17px; accent-color: var(--accent-strong); cursor: pointer; vertical-align: middle; }
.selbar {
  position: fixed; z-index: 20; left: calc(250px + 1.5rem); right: 1.5rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: 1rem; padding: .7rem .8rem .7rem 1.2rem;
  background: var(--dark); color: var(--on-dark); border-radius: 12px; box-shadow: 0 12px 40px rgba(29, 27, 25, .35);
}
.selbar .linklike { color: var(--on-dark-muted); }
.selbar .linklike:hover { color: var(--on-dark); }
.selbar .spacer { flex: 1; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; bottom: calc(100% + .5rem); min-width: 260px; padding: .35rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow);
  display: grid;
}
.menu button { text-align: left; background: none; border: 0; padding: .6rem .75rem; border-radius: 7px; cursor: pointer; }
.menu button:hover, .menu button:focus-visible { background: var(--surface-2); outline: none; }
.menu button.danger { color: var(--danger); }
.view { padding-bottom: 6rem; }

/* variante de culoare */
.variants { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .3rem; }
.variants span { font-size: .72rem; padding: .05rem .45rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); }
.swatches { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.swatches-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-right: .25rem; }
.swatch {
  display: flex; align-items: center; gap: .4rem; padding: .25rem .6rem .25rem .3rem; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
}
.swatch img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; background: #fff; }
.swatch small { color: var(--muted); font-size: .75rem; }
.swatch:hover { border-color: var(--line-strong); }
.swatch.on { border-color: var(--accent-strong); box-shadow: inset 0 0 0 1px var(--accent-strong); background: var(--accent-soft); }

/* arborele de categorii din meniu (se desfășoară pe loc, cu săgeți) */
.nav-row { display: flex; align-items: center; gap: 2px; }
.nav-row > a { flex: 1; min-width: 0; }
.nav-toggle, .tn-toggle {
  flex: none; display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  background: none; border: 0; border-radius: 6px; color: var(--on-dark-muted); cursor: pointer;
}
.nav-toggle:hover, .tn-toggle:hover { color: var(--on-dark); background: rgba(255, 255, 255, .06); }
.nav-toggle:focus-visible, .tn-toggle:focus-visible, .tn-row a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.nav-toggle svg, .tn-toggle svg { transition: transform .15s; }
.nav-toggle[aria-expanded="true"] svg, .tn-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.nav-tree { margin: 2px 0 6px .35rem; padding-left: .35rem; border-left: 1px solid #34302c; }
.tn-kids { padding-left: .85rem; }
.tn-row { display: flex; align-items: center; gap: 1px; border-radius: 6px; }
.tn-pad { flex: none; width: 26px; }
.tn-row a {
  flex: 1; min-width: 0; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem;
  padding: .3rem .4rem; border-radius: 6px; text-decoration: none; color: var(--on-dark-muted); font-size: .86rem; line-height: 1.3;
}
.tn-row a span { overflow-wrap: anywhere; }
.tn-row a small { flex: none; font-size: .72rem; opacity: .65; }
.tn-row a:hover { color: var(--on-dark); background: rgba(255, 255, 255, .05); }
.tn-row.current a { color: var(--on-dark); background: var(--dark-2); box-shadow: inset 2px 0 0 var(--accent); }
.img-field { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; }
.img-field .img-actions { display: grid; gap: .35rem; justify-items: start; }
.img-field .img-actions small { max-width: 36ch; }
.img-drop {
  width: 150px; height: 150px; border-radius: 10px; border: 1.5px dashed var(--line-strong); background: var(--surface-2);
  display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .85rem; transition: border-color .15s, background .15s;
}
.img-drop.over { border-color: var(--accent); background: var(--accent-soft); }
.img-drop img { width: 100%; height: 100%; object-fit: cover; }
.item-photo { display: block; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.item-photo img { display: block; width: 100%; max-height: 320px; object-fit: contain; }

/* ---------- site: galerie și mesaje ---------- */
.img-field:has(.img-drop.wide) { grid-template-columns: 220px 1fr; }
.img-drop.wide { width: 220px; height: 165px; }
.gal-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gal-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; }
.gal-card.off .gal-pic img { opacity: .45; }
.gal-pic { display: block; padding: 0; border: 0; background: var(--surface-2); aspect-ratio: 4 / 3; cursor: pointer; overflow: hidden; }
.gal-pic img, .gal-pic video, .img-drop video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal-card.off .gal-pic video { opacity: .45; }
.gal-card { position: relative; }
.gal-card.sel { outline: 2px solid var(--accent); outline-offset: -1px; }
.gal-check {
  position: absolute; top: .55rem; left: .55rem; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 7px; background: rgba(255, 253, 249, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .2); cursor: pointer;
}
.gal-check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; margin: 0; }
.gal-album {
  position: absolute; top: .55rem; right: .55rem; z-index: 2; padding: .2rem .55rem; border-radius: 6px;
  background: rgba(29, 27, 25, .78); color: var(--on-dark); font-size: .75rem; letter-spacing: .02em;
}
.gal-info .muted { color: var(--muted); font-weight: 400; font-style: italic; }
.gal-bar { position: sticky; top: 0; z-index: 3; background: var(--bg); padding: .5rem 0; }
.gal-bar .spacer { flex: 1; }
.gal-bar select { width: auto; }
.gal-count { color: var(--muted); font-size: .88rem; }
.upload-progress { position: relative; height: 30px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.upload-progress > div { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent-soft); transition: width .2s; }
.upload-progress > span { position: relative; display: block; line-height: 30px; padding: 0 .8rem; font-size: .88rem; color: var(--ink-2); }
.gal-info { padding: .75rem .9rem .25rem; display: grid; gap: .15rem; }
.gal-info strong { font-weight: 500; }
.gal-tools { display: flex; gap: .35rem; align-items: center; padding: .5rem .9rem .8rem; }
.gal-tools .spacer { flex: 1; }
.nav a small#nav-mesaje { color: var(--accent); font-weight: 500; }
.grid tr.unread td { font-weight: 500; color: var(--ink); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: .45rem; vertical-align: middle; }
.msg-preview { color: var(--ink-2); max-width: 420px; }
.msg-body { white-space: pre-wrap; background: var(--surface-2); border-radius: 8px; padding: 1rem 1.1rem; margin: 0; line-height: 1.6; }
@media (max-width: 560px) {
  .img-field:has(.img-drop.wide) { grid-template-columns: 1fr; }
}
/* Proiecte / Oferte */
.nav a small#nav-proiecte { color: var(--accent); font-weight: 500; }
.section-title { font-size: 1.35rem; margin: 1.5rem 0 .75rem; }
.section-title small { font-family: var(--sans, inherit); font-size: .85rem; color: var(--muted); font-weight: 400; margin-left: .35rem; }
.grid .row-actions { text-align: right; white-space: nowrap; }
.grid .row-actions .btn + .btn { margin-left: .3rem; }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }
.page-head + .facts { margin-bottom: 1rem; }
.alege-lista { display: grid; gap: .35rem; max-height: 50vh; overflow: auto; margin: .25rem 0 .5rem; }
.alege { display: grid; text-align: left; gap: .1rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface, #fff); cursor: pointer; font: inherit; color: inherit; }
.alege:hover, .alege:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.alege small { color: var(--muted); font-size: .82rem; }
.modal-foot .spacer { flex: 1; }
@media (max-width: 560px) { .img-field { grid-template-columns: 1fr; } }
