/* =========================================================================
   EDU Inclusive — stratul aplicației peste Gallery Design System
   1. Shell (sidebar 248px + bară superioară „frosted” 52px)
   2. Puntea Bootstrap → Gallery (vederile existente păstrează markup-ul
      Bootstrap; aici îl aducem la tokenii Gallery)
   3. Componente de aplicație (page head, card head, liste, sugestii)
   Se încarcă DUPĂ bootstrap.min.css și gallery.css.
   ========================================================================= */

/* ---------- 0. Bază ---------- */
:root {
  --bs-body-font-family: var(--font-sans);
  --bs-body-font-size: var(--fs-caption);
  --bs-body-line-height: var(--lh-caption);
  --bs-body-color: var(--text-primary);
  --bs-body-bg: var(--surface-page);
  --bs-secondary-color: var(--text-muted);
  --bs-tertiary-bg: var(--surface-page);
  --bs-border-color: var(--border-hairline);
  --bs-border-color-translucent: var(--border-subtle);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-sm: var(--radius-xs);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-primary: var(--blue-action);
  --bs-primary-rgb: 0, 102, 204;
  --bs-link-color: var(--color-action);
  --bs-link-color-rgb: 0, 102, 204;
  --bs-link-hover-color: var(--color-action-hover);
  --bs-link-hover-color-rgb: 0, 113, 227;
  --bs-focus-ring-color: rgba(0, 113, 227, .35);
  --bs-box-shadow: none;
  --bs-box-shadow-sm: none;
  --bs-box-shadow-lg: none;
  --bs-emphasis-color: var(--ink);
}
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--surface-page);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
a { color: var(--color-action); text-decoration: none; }
a:hover { color: var(--color-action-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--color-action-focus); outline-offset: 2px; }
.num, .font-monospace, code { font-variant-numeric: tabular-nums; }
code { color: var(--text-secondary); font-size: 12px; }
h1, h2, h3, h4, h5, h6, .h4, .h5, .h6 { font-weight: 600; color: var(--text-primary); letter-spacing: var(--ls-body); }

/* ---------- 1. Shell ---------- */
.app { display: flex; min-height: 100vh; }
.app .g-side {
  position: sticky; top: 0; height: 100vh;
}
.g-side__item { text-decoration: none; }
.g-side__item:hover { text-decoration: none; }
.g-side__item .bi { font-size: 16px; width: 20px; text-align: center; color: var(--text-muted); }
.g-side__item.is-active .bi { color: var(--text-primary); }
.brand-mark {
  width: 28px; height: 28px; border-radius: var(--radius-sm); flex: none;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center; font-size: 14px;
}
.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px 4px; border-top: 1px solid var(--border-soft);
}
.side-user__name { font-size: 14px; font-weight: 600; letter-spacing: var(--ls-caption); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user__meta { font-size: 12px; color: var(--text-muted); letter-spacing: var(--ls-fine); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user__actions { margin-left: auto; display: flex; align-items: center; gap: 2px; flex: none; }

/* Sigla ROEdu · Educație incluzivă */
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text__name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.brand-text__name b { font-weight: 700; color: var(--color-action); }
.brand-text__sub { font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.01em; margin-top: 2px; }

/* Semnătura proiectului */
.credits { font-size: 12px; color: var(--text-muted); text-align: center; }
.credits a { color: var(--text-secondary); font-weight: 600; text-decoration: none; }
.credits a:hover { color: var(--color-action); text-decoration: underline; }
.auth .credits { margin-top: 10px; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { position: sticky; top: 0; z-index: 1030; overflow: visible; } /* deasupra conținutului, sub modale (1055) și meniul mobil (1040/1050) */
.app-topbar .g-subnav__title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }   /* .g-subnav avea overflow:hidden, care tăia meniurile */
.app-content { padding: var(--space-xl); flex: 1; }
.app-content > .wrap { max-width: 1240px; }
.app-content > .wrap--narrow { max-width: 860px; }

.secure-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-fine); letter-spacing: var(--ls-fine); color: var(--text-secondary);
  white-space: nowrap;
}
.secure-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-positive); }

.app-menu-btn { display: none; }
.app-scrim { display: none; }

@media (max-width: 960px) {
  .app .g-side {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 1050;
    transform: translateX(-100%); transition: transform var(--dur-base) var(--ease-out);
  }
  .app.is-nav-open .g-side { transform: none; }
  .app.is-nav-open .app-scrim { display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(0,0,0,.24); }
  .app-menu-btn { display: inline-grid; }
  .app-content { padding: var(--space-lg) 16px; }
  .g-subnav { padding: 0 16px; gap: 12px; }
  .g-subnav__title { font-size: 17px; }
}

/* ---------- 2. Page head / card head ---------- */
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: var(--space-lg); }
.page-head__title { margin: 0; font-size: var(--fs-display-md); font-weight: 600; line-height: 1.2; letter-spacing: var(--ls-display-md); }
.page-head__sub { font-size: var(--fs-body); color: var(--text-secondary); letter-spacing: var(--ls-body); margin-top: 6px; }
.page-head__actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 600px) { .page-head__title { font-size: 28px; } .page-head__sub { font-size: 15px; } }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head__title { font-size: var(--fs-tagline); font-weight: 600; line-height: var(--lh-tagline); letter-spacing: var(--ls-tagline); margin: 0; }
.card-head__sub { font-size: 14px; color: var(--text-secondary); margin-top: 4px; }
.card-head__right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 16px; }
.split-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.case-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
@media (max-width: 960px) { .split-grid { grid-template-columns: 1fr; } }

.meta-row { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-muted); letter-spacing: var(--ls-fine); padding-top: 12px; border-top: 1px solid var(--border-soft); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
.kv:first-child { border-top: 0; }
.kv span:first-child { color: var(--text-secondary); }
.kv span:last-child { font-weight: 600; text-align: right; }

.toast-flash {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 2000;
  background: var(--ink); color: var(--white); font-size: 14px; letter-spacing: var(--ls-caption);
  padding: 10px 18px; border-radius: var(--radius-pill); display: flex; align-items: center; gap: 8px;
  max-width: calc(100vw - 32px);
}
.notice {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 16px;
  background: var(--surface-canvas); border: 1px solid var(--border-hairline);
  font-size: 14px; color: var(--text-secondary);
}
.notice--critical { background: var(--status-critical-fill); border-color: transparent; color: var(--status-critical); }
.notice--positive { background: var(--status-positive-fill); border-color: transparent; color: var(--status-positive); }
.notice ul { margin: 0; padding-left: 18px; }

/* ---------- 3. Bootstrap → Gallery ---------- */
/* Butoane: pastile, o singură culoare interactivă */
.btn {
  --bs-btn-font-family: var(--font-sans);
  --bs-btn-font-size: var(--fs-caption);
  --bs-btn-font-weight: 400;
  --bs-btn-line-height: var(--lh-caption-strong);
  --bs-btn-padding-x: 16px;
  --bs-btn-padding-y: 8px;
  --bs-btn-border-radius: var(--radius-pill);
  --bs-btn-box-shadow: none;
  --bs-btn-focus-box-shadow: 0 0 0 2px var(--color-action-focus);
  letter-spacing: var(--ls-caption);
  transition: transform var(--dur-fast) var(--ease-standard), background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast);
}
.btn:active:not(:disabled) { transform: scale(var(--press-scale)); }
.btn.fw-semibold, .btn.fw-bold { font-weight: 400 !important; }
.btn-sm { --bs-btn-padding-x: 14px; --bs-btn-padding-y: 6px; --bs-btn-font-size: var(--fs-caption); --bs-btn-border-radius: var(--radius-pill); }
.btn-lg { --bs-btn-padding-x: 28px; --bs-btn-padding-y: 14px; --bs-btn-font-size: var(--fs-button-large); --bs-btn-border-radius: var(--radius-pill); font-weight: 300; }
.btn-primary, .btn-success, .btn-info, .btn-warning {
  --bs-btn-color: #fff; --bs-btn-bg: var(--color-action); --bs-btn-border-color: var(--color-action);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--color-action-hover); --bs-btn-hover-border-color: var(--color-action-hover);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--color-action); --bs-btn-active-border-color: var(--color-action);
  --bs-btn-disabled-color: var(--text-muted); --bs-btn-disabled-bg: var(--chip-gray); --bs-btn-disabled-border-color: var(--chip-gray);
}
.btn-outline-primary, .btn-outline-info, .btn-outline-success, .btn-outline-warning {
  --bs-btn-color: var(--color-action); --bs-btn-border-color: var(--color-action); --bs-btn-bg: transparent;
  --bs-btn-hover-color: var(--color-action); --bs-btn-hover-bg: var(--fill-selected); --bs-btn-hover-border-color: var(--color-action);
  --bs-btn-active-color: var(--color-action); --bs-btn-active-bg: var(--fill-selected); --bs-btn-active-border-color: var(--color-action);
}
.btn-secondary, .btn-dark {
  --bs-btn-color: #fff; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink-muted-80); --bs-btn-hover-border-color: var(--ink-muted-80);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--ink); --bs-btn-active-border-color: var(--ink);
}
.btn-outline-secondary, .btn-outline-dark, .btn-light, .btn-outline-light {
  --bs-btn-color: var(--text-primary); --bs-btn-bg: var(--surface-canvas); --bs-btn-border-color: var(--border-hairline);
  --bs-btn-hover-color: var(--text-primary); --bs-btn-hover-bg: var(--surface-canvas); --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-active-color: var(--text-primary); --bs-btn-active-bg: var(--fill-hover); --bs-btn-active-border-color: var(--border-strong);
}
/* Roșu doar ca text — nu umple niciodată un buton */
.btn-danger, .btn-outline-danger {
  --bs-btn-color: var(--status-critical); --bs-btn-bg: var(--surface-canvas); --bs-btn-border-color: var(--border-hairline);
  --bs-btn-hover-color: var(--status-critical); --bs-btn-hover-bg: var(--status-critical-fill); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--status-critical); --bs-btn-active-bg: var(--status-critical-fill); --bs-btn-active-border-color: transparent;
}
.btn-link { --bs-btn-color: var(--color-action); --bs-btn-hover-color: var(--color-action-hover); }
.btn-group > .btn { border-radius: var(--radius-pill) !important; margin-left: 0 !important; }
.btn-group, .btn-group-sm { gap: 6px; }

/* Carduri: alb, hairline, 18px, fără umbră */
.card {
  --bs-card-border-color: var(--border-hairline);
  --bs-card-border-radius: var(--radius-lg);
  --bs-card-inner-border-radius: calc(var(--radius-lg) - 1px);
  --bs-card-bg: var(--surface-canvas);
  --bs-card-cap-bg: transparent;
  border: 1px solid var(--border-hairline) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: none !important;
}
.card.table-card { padding: var(--space-lg) !important; }
.shadow, .shadow-sm, .shadow-lg { box-shadow: none !important; }
/* Fără accente colorate pe bordura stângă */
.border-start.border-4, .border-start.border-3 { border-left-width: 1px !important; border-left-color: var(--border-hairline) !important; }

/* Tabele: separatoare fine, fără zebră */
.table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: transparent;
  --bs-table-hover-bg: var(--fill-hover);
  --bs-table-border-color: var(--border-soft);
  --bs-table-color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: 12px 10px; }
.table thead th, .table-light th, .table-light {
  --bs-table-bg: transparent; background: transparent !important;
  font-size: 12px; font-weight: 600; letter-spacing: var(--ls-fine); color: var(--text-muted);
  border-bottom-color: var(--border-hairline);
}
.table tbody tr:last-child > * { border-bottom: 0; }

/* Badge-uri: 5px, tonuri Gallery */
.badge {
  --bs-badge-font-size: 12px; --bs-badge-font-weight: 600; --bs-badge-padding-x: 7px; --bs-badge-padding-y: 3px;
  border-radius: var(--radius-xs) !important; letter-spacing: var(--ls-fine); line-height: 1.1; border: 0 !important;
}
.badge.bg-light, .badge.bg-white, .badge.bg-secondary-subtle, .badge.bg-light-subtle { background: var(--surface-page) !important; color: var(--text-secondary) !important; }
.badge.bg-secondary { background: var(--surface-page) !important; color: var(--text-secondary) !important; }
.badge.bg-primary-subtle, .badge.bg-info-subtle, .badge.bg-info { background: var(--fill-selected) !important; color: var(--color-action) !important; }
.badge.bg-primary, .badge.bg-dark { background: var(--ink) !important; color: var(--white) !important; }
.badge.bg-success, .badge.bg-success-subtle { background: var(--status-positive-fill) !important; color: var(--status-positive) !important; }
.badge.bg-warning, .badge.bg-warning-subtle, .badge.bg-danger, .badge.bg-danger-subtle { background: var(--status-critical-fill) !important; color: var(--status-critical) !important; }

/* Text colorat: o singură culoare de acțiune + statusuri doar ca text mic */
.text-primary, .text-info { color: var(--color-action) !important; }
.text-success { color: var(--status-positive) !important; }
.text-danger, .text-warning { color: var(--status-critical) !important; }
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-dark { color: var(--text-primary) !important; }
.text-uppercase { text-transform: none !important; }
.bg-light { background-color: var(--surface-page) !important; }
.bg-dark { background-color: var(--surface-dark) !important; }
.bg-primary.bg-opacity-10 { background: var(--fill-selected) !important; }
.rounded, .rounded-3 { border-radius: var(--radius-md) !important; }
.border { border-color: var(--border-hairline) !important; }
.border-bottom, .border-top { border-color: var(--border-soft) !important; }

/* Formulare */
.form-label { font-size: 12px; font-weight: 600 !important; letter-spacing: var(--ls-fine); color: var(--text-secondary) !important; margin-bottom: 6px; }
.form-text { font-size: 12px !important; color: var(--text-muted); letter-spacing: var(--ls-fine); }
.form-control, .form-select {
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  letter-spacing: var(--ls-caption);
  color: var(--text-primary);
  background-color: var(--surface-canvas);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-height: 42px;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.form-control-sm, .form-select-sm { min-height: 36px; padding: 7px 12px; font-size: var(--fs-caption); border-radius: var(--radius-md); }
textarea.form-control { min-height: 0; }
.form-control:hover, .form-select:hover { border-color: var(--border-strong); }
.form-control:focus, .form-select:focus {
  border-color: var(--color-action-focus);
  box-shadow: 0 0 0 1px var(--color-action-focus);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control[readonly] { background: var(--surface-page); }
.input-group-text { background: var(--surface-page) !important; border-color: var(--border-hairline); color: var(--text-muted); border-radius: var(--radius-md); }
.input-group > .form-control { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.form-check-input { border-color: var(--border-strong); }
.form-check-input:checked { background-color: var(--color-action); border-color: var(--color-action); }
.form-check-input:focus { box-shadow: 0 0 0 2px rgba(0,113,227,.3); border-color: var(--color-action-focus); }

/* Alerte → notificări calme */
.alert {
  --bs-alert-border-radius: var(--radius-md);
  --bs-alert-padding-x: 16px; --bs-alert-padding-y: 12px;
  font-size: 14px; border: 0; letter-spacing: var(--ls-caption);
}
.alert-info, .alert-secondary, .alert-primary, .alert-light { background: var(--fill-selected); color: var(--text-secondary); }
.alert-success { background: var(--status-positive-fill); color: var(--status-positive); }
.alert-danger, .alert-warning { background: var(--status-critical-fill); color: var(--status-critical); }
.alert .btn-close { padding: 14px; }

/* Modale */
.modal { --bs-modal-border-radius: var(--radius-lg); --bs-modal-inner-border-radius: calc(var(--radius-lg) - 1px); --bs-modal-border-color: transparent; --bs-modal-box-shadow: none; --bs-modal-header-border-color: var(--border-soft); --bs-modal-footer-border-color: var(--border-soft); --bs-modal-padding: var(--space-lg); --bs-modal-header-padding: 20px var(--space-lg); }
.modal-backdrop { --bs-backdrop-bg: #000; --bs-backdrop-opacity: .32; }
.modal-title { font-size: var(--fs-tagline); font-weight: 600 !important; letter-spacing: var(--ls-tagline); color: var(--text-primary) !important; }
.modal-title .bi { display: none; }
.modal-footer { gap: 8px; }

/* Dropdown */
.dropdown-menu {
  --bs-dropdown-border-color: var(--border-hairline);
  --bs-dropdown-border-radius: var(--radius-md);
  --bs-dropdown-link-hover-bg: var(--fill-hover);
  --bs-dropdown-link-active-bg: var(--fill-selected);
  --bs-dropdown-link-active-color: var(--text-primary);
  --bs-dropdown-font-size: 14px;
  --bs-dropdown-item-padding-y: 8px;
  padding: 6px;
}
.dropdown-item { border-radius: var(--radius-sm); }
.dropdown-item .bi { color: var(--text-muted) !important; }

/* Paginare */
.pagination { --bs-pagination-border-color: var(--border-hairline); --bs-pagination-color: var(--text-secondary); --bs-pagination-active-bg: var(--ink); --bs-pagination-active-border-color: var(--ink); --bs-pagination-hover-bg: var(--fill-hover); --bs-pagination-focus-box-shadow: 0 0 0 2px var(--color-action-focus); --bs-pagination-font-size: 14px; gap: 4px; margin: 0; }
.page-link { border-radius: var(--radius-sm) !important; }
.pagination + * , nav[role="navigation"] p.small { color: var(--text-muted); }

/* Spinner */
.spinner-border { --bs-spinner-border-width: 2px; color: var(--text-muted) !important; }

/* ---------- 4. Liste de sugestii (autocompletare județ / localitate / școală) ---------- */
.suggestions-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 1080; width: 100%;
  max-height: 240px; overflow-y: auto;
  background: var(--surface-canvas);
  border: 1px solid var(--border-hairline) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: none !important;
  padding: 4px;
}
.suggestion-item { padding: 8px 10px; cursor: pointer; border-bottom: 0 !important; border-radius: var(--radius-sm); font-size: 14px; }
.suggestion-item:hover { background: var(--fill-hover) !important; }
.suggestion-item small { color: var(--text-muted); }

/* ---------- 5. Pagini de autentificare ---------- */
.auth {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--space-xxl) 16px; background: var(--surface-page);
}
.auth__brand { display: flex; align-items: center; gap: 10px; font-size: var(--fs-body); font-weight: 600; letter-spacing: var(--ls-body); margin-bottom: var(--space-lg); }
.auth__card { width: 100%; max-width: 440px; padding: 32px; }
.auth__card--wide { max-width: 620px; }
.auth__title { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.14; letter-spacing: var(--ls-lead); }
.auth__sub { margin: 8px 0 24px; font-size: var(--fs-caption); color: var(--text-secondary); }
.auth__foot { margin-top: var(--space-lg); font-size: 12px; color: var(--text-muted); letter-spacing: var(--ls-fine); text-align: center; }
.auth .g-btn--primary.g-btn--block { margin-top: 8px; }
@media (max-width: 480px) { .auth__card { padding: 24px 20px; } }

.field { margin-bottom: 14px; }
.field-hint { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--text-muted); letter-spacing: var(--ls-fine); margin-top: 6px; }
.section-box { background: var(--surface-page); border-radius: var(--radius-md); padding: 16px; margin-bottom: 16px; }
.section-box__title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.section-box__title .g-badge { margin-left: auto; }

/* ---------- 6. Câmpuri secrete (fără salvare de parolă în browser) ---------- */
.secret-field { position: relative; }
.secret-input { -webkit-text-security: disc; text-security: disc; padding-right: 44px !important; font-family: var(--font-sans); }
.secret-input.is-revealed { -webkit-text-security: none; text-security: none; }
.secret-input::placeholder { -webkit-text-security: none; }
.secret-field__toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--text-muted);
  display: grid; place-items: center; cursor: pointer;
}
.secret-field__toggle:hover { background: var(--fill-hover); color: var(--text-primary); }
input[data-no-autofill][readonly] { background: var(--surface-canvas); cursor: text; }

/* ---------- 7. Google ---------- */
.g-btn--google {
  background: var(--surface-canvas); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-hairline);
  font-size: var(--fs-body); letter-spacing: var(--ls-body); padding: 11px 22px; border-radius: var(--radius-pill); gap: 10px;
}
.g-btn--google:hover { box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-primary); text-decoration: none; }
.g-btn--google svg { width: 18px; height: 18px; flex: none; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-muted); font-size: 12px; letter-spacing: var(--ls-fine); }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-hairline); }

/* ---------- 8. Numerotare pagini + liste de documente ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; margin-top: 8px; border-top: 1px solid var(--border-soft); }
.pager__info { font-size: 13px; color: var(--text-muted); }
.pager__info strong { color: var(--text-primary); font-weight: 600; font-variant-numeric: tabular-nums; }
.pager__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pager__btn { min-width: 34px; height: 34px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: var(--radius-pill); font-size: 14px; color: var(--text-secondary); text-decoration: none; font-variant-numeric: tabular-nums; transition: background-color var(--dur-fast); }
a.pager__btn:hover { background: var(--fill-hover); color: var(--text-primary); text-decoration: none; }
.pager__btn.is-current { background: var(--ink); color: var(--white); font-weight: 600; }
.pager__btn.is-disabled { color: var(--border-strong); }
.pager__gap { display: inline-grid; place-items: center; min-width: 24px; height: 34px; color: var(--text-muted); }

.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filter-bar .form-select, .filter-bar .form-control { width: auto; min-width: 170px; }
/* Document emis: linie compactă (Listă) sau card (Grilă) */
.view-switch { display: inline-flex; padding: 2px; border-radius: var(--radius-pill); background: var(--surface-page); }
.view-switch button { border: 0; background: transparent; color: var(--text-secondary); height: 30px; padding: 0 12px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.view-switch button[aria-pressed="true"] { background: var(--surface-canvas); color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-hairline); font-weight: 600; }

.doc-list.is-list .doc-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto auto; align-items: center; column-gap: 14px;
  padding: 10px 8px; border-top: 1px solid var(--border-soft); border-radius: var(--radius-sm);
}
.doc-list.is-list .doc-item:first-child { border-top: 0; }
.doc-list.is-list .doc-item:hover { background: var(--fill-hover); }
.doc-item__icon { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-page); display: grid; place-items: center; color: var(--text-secondary); }
.doc-item.is-archived .doc-item__icon { color: var(--text-muted); }
.doc-item__main { min-width: 0; }
.doc-item__title { font-size: 15px; font-weight: 600; letter-spacing: var(--ls-caption); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item.is-archived .doc-item__title { color: var(--text-secondary); }
.doc-item__meta { font-size: 12px; color: var(--text-muted); letter-spacing: var(--ls-fine); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-item__actions { display: flex; gap: 2px; align-items: center; justify-content: flex-end; }
.doc-item__code { font-variant-numeric: tabular-nums; }

/* Grilă: carduri */
.doc-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.doc-list.is-grid .doc-item {
  display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "icon main" "status code" "actions actions";
  gap: 10px 12px; align-items: center; padding: 16px; border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); background: var(--surface-canvas);
}
.doc-list.is-grid .doc-item:hover { border-color: var(--border-strong); }
.doc-list.is-grid .doc-item__icon { grid-area: icon; }
.doc-list.is-grid .doc-item__main { grid-area: main; }
.doc-list.is-grid .doc-item__meta { white-space: normal; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.doc-list.is-grid .doc-item__status { grid-area: status; justify-self: start; }
.doc-list.is-grid .doc-item__code { grid-area: code; justify-self: end; }
.doc-list.is-grid .doc-item__actions { grid-area: actions; justify-content: flex-start; padding-top: 8px; border-top: 1px solid var(--border-soft); }

/* Ecrane înguste: în listă codul trece sub titlu, acțiunile rămân pe aceeași linie */
@media (max-width: 760px) {
  .doc-list.is-list .doc-item { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .doc-list.is-list .doc-item__code, .doc-list.is-list .doc-item__status { display: none; }
}.doc-panel.is-grid { background: transparent; border: 0 !important; padding: 0 !important; }
.doc-list.is-grid > .g-empty { grid-column: 1 / -1; background: var(--surface-canvas); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); }

/* ============================================================== Taskuri, calendar, notificări */
.task-list { margin: 0 -10px; display: flex; flex-direction: column; gap: 2px; }
.task-list .g-task__main { cursor: pointer; }
.task-desc { font-size: 14px; line-height: 1.43; color: var(--text-secondary); max-width: 560px; margin-bottom: 12px; white-space: pre-line; }
.quick-add { padding: 6px 6px 6px 20px; }
.quick-add__input { flex: 1; border: 0; outline: 0; background: transparent; height: 44px; font-size: var(--fs-body); color: var(--text-primary); min-width: 0; }

.overview-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .overview-grid { grid-template-columns: 1fr; } }
.next-card { display: flex; flex-direction: column; gap: 6px; min-height: 156px; }
.next-card__label { font-size: 14px; color: var(--text-on-dark-muted); }
.next-card__title { font-size: 21px; font-weight: 600; line-height: 1.19; }
.next-card__foot { margin-top: auto; padding-top: 10px; font-size: 14px; }
.breakdown { display: flex; flex-direction: column; gap: 8px; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.breakdown span { color: var(--text-secondary); }
.breakdown strong { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

.timeline { position: relative; margin-left: 44px; }
.timeline__hour { position: absolute; left: -44px; right: 0; display: flex; align-items: center; gap: 8px; }
.timeline__hour span { width: 36px; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.timeline__hour i { flex: 1; height: 1px; background: var(--border-soft); }
.timeline__item { position: absolute; left: 0; width: 100%; box-sizing: border-box; padding: 4px 10px; border-radius: 8px; overflow: hidden; display: flex; gap: 8px; align-items: center;
    background: var(--surface-page); color: var(--text-primary); transition: opacity var(--dur-fast); }
.timeline__item.is-tall { flex-direction: column; align-items: flex-start; padding: 6px 10px; gap: 2px; }
.timeline__item.is-task { box-shadow: inset 3px 0 0 var(--color-action); }
.timeline__item.is-focus { background: var(--ink); color: var(--white); }
.timeline__item.is-past { opacity: .55; }
.timeline__title { font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.timeline__time { font-size: 12px; color: var(--text-secondary); white-space: nowrap; }
.timeline__item.is-focus .timeline__time { color: var(--text-on-dark-muted); }
.timeline__now { position: absolute; left: -44px; right: 0; display: flex; align-items: center; pointer-events: none; z-index: 2; }
.timeline__now span { width: 36px; font-size: 12px; font-weight: 600; color: var(--color-action); background: var(--surface-canvas, var(--white)); }
.timeline__now b { width: 7px; height: 7px; border-radius: 50%; background: var(--color-action); margin-left: 4px; }
.timeline__now i { flex: 1; height: 1px; background: var(--color-action); }

.calendar-layout { max-width: 1240px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.calendar-month { flex: 2 1 560px; min-width: 0; }
.calendar-day { flex: 1 1 300px; min-width: 0; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month-grid__wd { font-size: 12px; font-weight: 600; color: var(--text-muted); padding: 0 10px 8px; }
.month-grid__day { min-height: 84px; padding: 8px; border-radius: 11px; display: flex; flex-direction: column; gap: 4px; color: inherit; text-decoration: none; transition: background-color var(--dur-fast); }
.month-grid__day:hover { background: var(--fill-hover); color: inherit; }
.month-grid__day.is-weekend { background: var(--surface-pearl); }
.month-grid__day.is-selected { background: var(--fill-selected); box-shadow: inset 0 0 0 2px var(--color-action-focus); }
.month-grid__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.month-grid__day.is-weekend .month-grid__num { color: var(--text-muted); }
.month-grid__num.is-today { background: var(--color-action); color: var(--white) !important; font-weight: 600; }
.month-grid__item { font-size: 12px; line-height: 1.25; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.month-grid__item i { width: 5px; height: 5px; border-radius: 50%; flex: none; background: var(--chip-gray, var(--border-strong)); }
.month-grid__item i.is-primary { background: var(--color-action); }
.month-grid__item.is-done { text-decoration: line-through; color: var(--text-muted); }
.month-grid__more { font-size: 12px; color: var(--text-muted); }
@media (max-width: 600px) {
    .month-grid__day { min-height: 52px; padding: 4px; }
    .month-grid__item { display: none; }
    .month-grid__wd { padding: 0 4px 6px; }
}
.day-tasks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.day-tasks__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-page); border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-primary); text-decoration: none; }
.day-tasks__item.is-done span:first-of-type { text-decoration: line-through; color: var(--text-muted); }
.day-tasks__item .bi { color: var(--color-action); }
.day-events { margin-top: 14px; border-top: 1px solid var(--border-soft); padding-top: 8px; }
.day-events__row { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 2px 0; min-width: 0; }

.report-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--border-soft); }
.report-row__icon { width: 40px; height: 40px; border-radius: 8px; background: var(--surface-page); display: grid; place-items: center; color: var(--text-secondary); flex: none; }
.report-row__main { flex: 1; min-width: 0; }
.report-row__title { font-size: 17px; font-weight: 600; line-height: 1.24; }
.report-row__meta { font-size: 14px; color: var(--text-secondary); margin-top: 3px; }
@media (max-width: 600px) { .report-row { flex-wrap: wrap; } .report-row__main { flex-basis: calc(100% - 54px); } }

.notif__panel { width: min(380px, calc(100vw - 32px)); padding: 0; overflow: hidden; z-index: 1060; }
.notif__head, .notif__foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-size: 14px; }
.notif__head { border-bottom: 1px solid var(--border-soft); }
.notif__head .g-link { margin-left: auto; font-size: 12px; }
.notif__foot { border-top: 1px solid var(--border-soft); font-size: 12px; }
.notif__foot:has(> [hidden]:only-child) { display: none; }
.notif__list { max-height: min(60vh, 440px); overflow-y: auto; }
.notif__empty { padding: 24px 16px; text-align: center; font-size: 14px; color: var(--text-muted); }
.notif__item { display: flex; gap: 10px; padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.notif__item:last-child { border-bottom: 0; }
.notif__item:hover, .notif__item:focus-visible { background: var(--fill-hover); outline: 0; }
.notif__item.is-unread { background: var(--fill-selected); }
.notif__mark { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--border-strong); }
.notif__mark--action { background: var(--color-action); }
.notif__mark--critical { background: var(--status-critical); }
.notif__body { flex: 1; min-width: 0; }
.notif__title { display: flex; gap: 8px; font-size: 14px; font-weight: 600; }
.notif__time { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--text-muted); white-space: nowrap; }
.notif__text { font-size: 14px; color: var(--text-secondary); margin-top: 2px; overflow-wrap: anywhere; cursor: pointer; }
.notif__actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.notif-toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1090; display: flex; flex-direction: column; gap: 10px; width: min(360px, calc(100vw - 32px)); }
.notif-toast { background: var(--surface-canvas, var(--white)); border-radius: var(--radius-md); box-shadow: var(--shadow-product), 0 0 0 1px var(--border-hairline); padding: 12px 14px; animation: notif-in var(--dur-base) var(--ease-out); }
.notif-toast__head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.notif-toast__head .notif__mark { margin-top: 0; }
@keyframes notif-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .notif-toast { animation: none; } }

/* ============================================================== Programa școlară */
.curriculum-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); align-items: start; }
.curriculum-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 960px) { .curriculum-grid { grid-template-columns: 1fr; } .curriculum-side { position: static; order: -1; } }
.curriculum-row { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.curriculum-row:first-child { border-top: 0; padding-top: 0; }
.curriculum-row__name { font-size: var(--fs-body); font-weight: 600; }
.curriculum-row__grades { display: flex; gap: 6px; flex-wrap: wrap; }
.curriculum-groups { max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.curriculum-groups__area { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .02em; margin-top: 8px; }
.curriculum-contents { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.45; }
.curriculum-contents li::marker { color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* Card restrâns (<details>): un rând cu titlu + valoare, extensibil */
.fold { padding: 0; }
.fold__summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; min-width: 0; }
.fold__summary::-webkit-details-marker { display: none; }
.fold__summary:hover { background: var(--fill-hover); border-radius: inherit; }
.fold__title { font-weight: 600; white-space: nowrap; }
.fold__value { flex: 1; min-width: 0; color: var(--text-secondary); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.fold__chev { color: var(--text-muted); transition: transform var(--dur-base) var(--ease-out); }
.fold[open] .fold__chev { transform: rotate(180deg); }
.fold[open] .fold__value { white-space: normal; }
.fold__body { padding: 4px 20px 20px; border-top: 1px solid var(--border-soft); padding-top: 16px; }

.curriculum-content { display: flex; align-items: flex-start; gap: 12px; }
.curriculum-content > span:first-child { flex: 1; min-width: 0; }
.curriculum-content__actions { display: flex; align-items: center; gap: 6px; flex: none; }

/* Chei AI */
.ai-keys { display: flex; flex-direction: column; gap: 14px; }
.ai-keys__provider { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ai-keys__models { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ai-keys__model { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--text-muted); margin: 0; }

/* Proiecte de lecție */
.lp-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.lp-filters .form-select, .lp-filters .form-control { width: auto; min-width: 0; flex: 1 1 180px; max-width: 260px; }
.lp-item { display: flex; gap: 14px; color: inherit; text-decoration: none; min-width: 0; }
.lp-item:hover { color: inherit; }
.lp-item__thumb { flex: none; display: grid; place-items: center; overflow: hidden; background: var(--surface-page); color: var(--text-muted); font-size: 22px; }
.lp-item__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-item__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lp-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--text-secondary); }
.lp-item__title { font-weight: 600; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp-item__excerpt { font-size: 13px; color: var(--text-secondary); line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lp-item__foot { font-size: 12px; color: var(--text-muted); margin-top: auto; }
.lp-list.is-list { background: var(--surface-canvas, var(--white)); border-radius: var(--radius-lg, 18px); box-shadow: 0 0 0 1px var(--border-hairline); overflow: hidden; }
.lp-list.is-list .lp-item { padding: 14px 16px; border-top: 1px solid var(--border-soft); }
.lp-list.is-list .lp-item:first-child { border-top: 0; }
.lp-list.is-list .lp-item:hover { background: var(--fill-hover); }
.lp-list.is-list .lp-item__thumb { width: 88px; height: 66px; border-radius: 8px; }
.lp-list.is-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.lp-list.is-grid .lp-item { flex-direction: column; gap: 0; background: var(--surface-canvas, var(--white)); border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--border-hairline); overflow: hidden; transition: box-shadow var(--dur-fast); }
.lp-list.is-grid .lp-item:hover { box-shadow: 0 0 0 1px var(--border-strong); }
.lp-list.is-grid .lp-item__thumb { width: 100%; aspect-ratio: 4 / 3; font-size: 34px; }
.lp-list.is-grid .lp-item__main { padding: 12px 14px 14px; }
.lp-list.is-grid .lp-item__excerpt { -webkit-line-clamp: 3; }
@media (max-width: 600px) { .lp-list.is-list .lp-item__thumb { width: 64px; height: 52px; } .lp-filters .form-select, .lp-filters .form-control { max-width: none; } }
.lp-context { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 18px; padding: 12px 14px; background: var(--surface-page); border-radius: var(--radius-md); }
.lp-context .kv span:last-child { font-weight: 400; }
.lp-mini { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--border-soft); color: inherit; text-decoration: none; font-size: 14px; }
.lp-mini:first-of-type { border-top: 0; }
.lp-mini .bi { color: var(--color-action); margin-top: 2px; }
.lp-frame { width: 100%; min-height: 70vh; border: 0; border-radius: var(--radius-lg, 18px); background: #fff; box-shadow: 0 0 0 1px var(--border-hairline); display: block; }
.form-check.is-disabled { opacity: .6; }

/* Proiect de lecție: document + carduri laterale (cost, reclamă, prompt) */
.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.lp-main { min-width: 0; }
.lp-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; }
@media (max-width: 1100px) { .lp-layout { grid-template-columns: 1fr; } .lp-aside { position: static; max-height: none; overflow: visible; } }
.lp-card { padding: 18px; }
.lp-card__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.lp-card__title { font-size: 16px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 8px; }
.lp-card__title .bi { color: var(--color-action); }
.lp-cost { margin-bottom: 12px; }
.lp-cost__value { font-size: 30px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lp-cost__sub { font-size: 13px; color: var(--text-secondary); margin-top: 4px; }
.lp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; font-size: 13px; margin: 0 0 12px; }
.lp-kv dt { color: var(--text-muted); font-weight: 400; }
.lp-kv dd { margin: 0; overflow-wrap: anywhere; }
.lp-kv code { font-size: 12px; }
.lp-savings { display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--surface-page); font-size: 13px; }
.lp-savings .bi { font-size: 18px; color: var(--text-muted); }
.lp-savings.is-active { background: var(--status-positive-fill); }
.lp-savings.is-active .bi { color: var(--status-positive); }
.lp-savings__note { color: var(--text-secondary); margin-top: 2px; font-size: 12px; }
.lp-regen { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.lp-regen__prompt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.45; }
.lp-prompt summary { font-size: 13px; color: var(--text-secondary); cursor: pointer; margin-bottom: 6px; }
.lp-prompt pre, .lp-prompt__user { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; line-height: 1.45; background: var(--surface-page); border-radius: var(--radius-md); padding: 10px 12px; margin: 0 0 8px; max-height: 320px; overflow-y: auto; }
.lp-ad { padding: 12px; }
.lp-ad__label { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 8px; }
.lp-ad__image img { width: 100%; height: auto; display: block; border-radius: var(--radius-md); }
.lp-ad__frame { width: 100%; height: 250px; border: 0; display: block; border-radius: var(--radius-md); background: var(--surface-page); }

/* Administrare: prețuri și reclame */
.ai-prices input { min-width: 90px; }
.ai-prices tr.is-missing td { background: var(--status-critical-fill); }
.ad-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--border-soft); }
.ad-row:first-of-type { border-top: 0; }
.ad-row__preview { width: 72px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-page); display: grid; place-items: center; color: var(--text-muted); }
.ad-row__preview img { width: 100%; height: 100%; object-fit: cover; }
.ad-row__main { flex: 1; min-width: 0; }
.ad-row__name { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ad-row__meta { font-size: 12px; color: var(--text-muted); }
.ad-row__actions { display: flex; gap: 4px; align-items: center; flex: none; }
