/* ============================================================
   FTTH Heroes — Backoffice Styles
   ============================================================ */

:root {
  --fh-blue:    #1a5fc8;
  --fh-blue2:   #1248a0;
  --fh-orange:  #e65100;
  --fh-dark:    #0a1628;
  --fh-purple:  #6d28d9;
  --fh-success: #16a34a;
  --fh-warn:    #b45309;
  --fh-danger:  #dc2626;
  --bg:         #f0f2f5;
  --bg2:        #fff;
  --bg3:        #f6f7f9;
  --border:     #dde1ea;
  --text:       #1a1d24;
  --text2:      #5a6170;
  --text3:      #9099aa;
  --r:          8px;
  --sh:         0 1px 3px rgba(0,0,0,.07),0 1px 2px rgba(0,0,0,.04);
  --mono:       'ui-monospace', 'SFMono-Regular', 'Menlo', 'Consolas', monospace;
}

* { box-sizing: border-box; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Navbar ── */
.navbar-fh {
  background: var(--fh-dark);
  padding: 0 20px;
  height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.nav-logo .logo-icon {
  width: 30px;
  height: 30px;
  background: var(--fh-blue);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo .logo-icon svg { fill: #fff; width: 16px; height: 16px; }
.nav-links {
  display: flex;
  gap: 2px;
  flex: 1;
}
.nav-link-fh {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link-fh:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-link-fh.active { color: #fff; background: rgba(255,255,255,.12); }
.nav-link-fh svg { width: 15px; height: 15px; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-badge {
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.7);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 600;
}

/* ── Layout ── */
.page-wrap { padding: 20px; max-width: 1400px; margin: 0 auto; }
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-title { font-size: 20px; font-weight: 700; color: var(--text); }
.page-subtitle { font-size: 13px; color: var(--text3); margin-top: 2px; }
.breadcrumb-fh {
  font-size: 12px;
  color: var(--text3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.breadcrumb-fh a { color: var(--fh-blue); text-decoration: none; }
.breadcrumb-fh a:hover { text-decoration: underline; }

/* ── Barre d'onglets projet ── */
.proj-tabs-bar {
  position: sticky;
  top: 54px;
  z-index: 90;
  background: var(--bg);
  border-bottom: 2px solid var(--border);
}
.proj-tabs-inner {
  display: flex;
  align-items: center;
  padding: 0 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.proj-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  color: var(--text3);
  transition: color .15s, border-color .15s;
  margin-bottom: -2px;
}
.proj-tab:hover { color: var(--text); }
.proj-tab.active { color: var(--fh-blue); border-bottom-color: var(--fh-blue); }
.proj-tab-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text3);
  margin-left: auto;
}
.proj-tab-breadcrumb a { color: var(--fh-blue); text-decoration: none; }
.proj-tab-breadcrumb a:hover { text-decoration: underline; }
/* Onglet Dossier */
body.show-dossier #tab-encours { display: none !important; }
body.show-dossier .prnt {
  position: static !important;
  left: auto !important; top: auto !important;
  width: 100% !important;
  overflow: visible !important;
  pointer-events: auto !important;
  z-index: auto !important;
  background: #c8d0de;
  min-height: calc(100vh - 110px);
  padding: 24px 20px 40px;
  box-sizing: border-box;
}
body.show-dossier .prnt .pp {
  display: block !important;
  background: white !important;
  max-width: 21cm;
  margin: 0 auto 20px !important;
  padding: 14mm 16mm !important;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
  font-size: 9.5pt !important;
}
body.show-dossier .prnt .ptbl th { background: #e8edf5 !important; color: #1a1d24 !important; }
body.show-dossier .prnt .ptbl tr:nth-child(even) td { background: #f7f8fb !important; }
body.show-dossier #dossier-actions { display: flex; }
#dossier-actions {
  display: none;
  position: sticky;
  top: 108px;
  z-index: 80;
  background: #0d1829;
  border-bottom: 2px solid #1e3060;
  padding: 8px 20px;
  align-items: center;
  gap: 12px;
}

/* ── Cards ── */
.card-fh {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--sh);
}
.card-fh-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-fh-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-fh-body { padding: 16px; }

/* ── Stat cards ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--sh);
}
.stat-card .sv { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-card .sl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .07em; margin-top: 4px; }
.stat-card.accent { border-top: 3px solid var(--fh-blue); }
.stat-card.success { border-top: 3px solid var(--fh-success); }
.stat-card.purple  { border-top: 3px solid var(--fh-purple); }
.stat-card.warn    { border-top: 3px solid var(--fh-warn); }

/* ── Operator badges ── */
.badge-swisscom { background: #e7f0ff; color: #1a5fc8; border: 1px solid #bdd0f5; font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.badge-genedis  { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.badge-mixte    { background: #ede9fe; color: #5b21b6; border: 1px solid #c4b5fd; font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.badge-actif    { background: #dcfce7; color: #15803d; border: 1px solid #86efac; font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }
.badge-archive  { background: #f1f5f9; color: #64748b; border: 1px solid #cbd5e1; font-size: 10px; padding: 2px 8px; border-radius: 99px; font-weight: 600; }

/* ── Tables ── */
.table-fh { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-fh th {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
.table-fh td {
  border: 1px solid var(--border);
  padding: 9px 12px;
  vertical-align: middle;
}
.table-fh tr:nth-child(even) td { background: #fafbfc; }
.table-fh tr:hover td { background: #f0f4ff; cursor: pointer; }
.table-fh .mono { font-family: var(--mono); font-size: 11.5px; font-weight: 700; color: var(--text); }

/* ── Buttons ── */
.btn-fh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
}
/* Icônes dans les boutons : masquées, les boutons restent du texte */
.btn-fh svg { display: none; }
.btn-fh { gap: 0; }
.btn-primary { background: var(--fh-blue); color: #fff; }
.btn-primary:hover { background: var(--fh-blue2); color: #fff; }
.btn-secondary { background: var(--bg3); color: var(--text2); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg); color: var(--text); }
.btn-danger { background: #fef2f2; color: var(--fh-danger); border: 1px solid #fecaca; }
.btn-danger:hover { background: var(--fh-danger); color: #fff; }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn-icon { padding: 6px; border-radius: 6px; }

/* ── Forms ── */
.form-group { margin-bottom: 14px; }
.form-label { font-size: 11.5px; font-weight: 600; color: var(--text2); margin-bottom: 5px; display: block; }
.form-control {
  width: 100%;
  padding: 8px 11px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--bg2);
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-control:focus {
  outline: none;
  border-color: var(--fh-blue);
  box-shadow: 0 0 0 3px rgba(26,95,200,.12);
}
select.form-control { cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── Modal ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--bg2);
  border-radius: var(--r);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 14px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--text3); line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 18px; }
.modal-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* ── Drop zone BEP ── */
.dz-bep {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 20px;
  cursor: pointer;
  transition: all .2s;
  position: relative;
  background: var(--bg3);
  display: flex;
  align-items: center;
  gap: 12px;
}
.dz-bep:hover, .dz-bep.over { border-color: var(--fh-blue); background: #eef4ff; }
.dz-bep.loaded { border-color: var(--fh-success); border-style: solid; background: #f0faf4; }
.dz-bep input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.dz-bep-icon { width: 40px; height: 40px; border-radius: var(--r); background: var(--bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dz-bep-icon svg { width: 20px; height: 20px; }
.dz-bep-info h4 { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 2px; }
.dz-bep-info p { font-size: 11px; color: var(--text3); margin: 0; }

/* ── OTO grid ── */
.oto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.oto-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: box-shadow .15s;
  cursor: pointer;
}
.oto-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.oto-card.corr { border-top: 3px solid var(--fh-purple); }
.oto-card-head {
  padding: 9px 12px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.oto-label { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text); }
.oto-meta { font-size: 10px; color: var(--text3); margin-top: 2px; }
.oto-card-body { padding: 10px 12px; }

/* ── Splice diagram ── */
.splice-scols {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  font-size: 8px;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}
.splice-scols span:first-child { text-align: right; padding-right: 4px; }
.splice-scols span:last-child  { text-align: left; padding-left: 4px; }
.splice-scols span:nth-child(2){ text-align: center; }
.slist { display: flex; flex-direction: column; gap: 3px; }
.srow {
  display: grid;
  grid-template-columns: 1fr 18px 1fr;
  align-items: center;
  min-height: 20px;
}
.sl2 { display: flex; align-items: center; justify-content: flex-end; gap: 2px; flex-wrap: wrap; }
.sr2 { display: flex; align-items: center; justify-content: flex-start; gap: 2px; flex-wrap: wrap; }
.sc3 { display: flex; align-items: center; justify-content: center; position: relative; }
.sc3::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--border); }
.scdot { width: 6px; height: 6px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--fh-blue); z-index: 1; }
.fpill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  border: 1.5px solid rgba(0,0,0,.07);
}
.fdot { width: 4px; height: 4px; border-radius: 50%; flex-shrink: 0; }
.tbdg {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 99px;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(0,0,0,.07);
}
.fno { font-size: 8px; color: var(--text3); font-family: var(--mono); }
.nof { font-size: 8.5px; color: var(--text3); }
.src-dot { width: 5px; height: 5px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ── Tabs filtre OTO ── */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; align-items: center; }
.filter-tab {
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--bg2);
  color: var(--text3);
  transition: all .15s;
}
.filter-tab:hover { border-color: var(--fh-blue); color: var(--fh-blue); }
.filter-tab.active { background: var(--fh-blue); color: #fff; border-color: var(--fh-blue); }
.filter-tab .bdg { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; border-radius: 99px; font-size: 9px; font-weight: 700; margin-left: 4px; padding: 0 4px; background: rgba(255,255,255,.25); }
.filter-tab:not(.active) .bdg { background: var(--bg); color: var(--text2); }

/* ── Search bar ── */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-input-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text3);
}
.search-input-wrap input {
  width: 100%;
  padding: 7px 10px 7px 32px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg2);
  color: var(--text);
  transition: border-color .15s;
}
.search-input-wrap input:focus { outline: none; border-color: var(--fh-blue); }

/* ── BEP source legend ── */
.src-legend { display: flex; gap: 10px; font-size: 10px; color: var(--text2); margin-bottom: 6px; }
.src-legend span { display: flex; align-items: center; gap: 4px; }

/* ── SOR files ── */
.sor-list { display: flex; flex-direction: column; gap: 6px; }
.sor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg3);
}
.sor-icon { width: 30px; height: 30px; background: #fff; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sor-icon svg { width: 15px; height: 15px; color: var(--fh-orange); }
.sor-info { flex: 1; min-width: 0; }
.sor-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sor-meta { font-size: 10px; color: var(--text3); }

/* ── Alerts ── */
.alert-fh {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.alert-fh svg { width: 15px; height: 15px; flex-shrink: 0; }
.alert-success { background: #f0faf4; color: var(--fh-success); border: 1px solid #86efac; }
.alert-error   { background: #fef2f2; color: var(--fh-danger); border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: var(--fh-blue); border: 1px solid #bfdbfe; }

/* ── Empty state ── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: var(--text3);
  text-align: center;
  gap: 10px;
}
.empty-state svg { opacity: .2; }
.empty-state p { font-size: 13px; }

/* ── Spinner ── */
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--border); border-top-color: var(--fh-blue); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Color reference ── */
.color-ref-grid { display: flex; flex-direction: column; gap: 4px; }
.color-ref-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text2); }
.color-dot { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.1); flex-shrink: 0; }
.color-num { width: 16px; text-align: right; color: var(--text3); font-size: 10px; flex-shrink: 0; }

/* ── Aliases utilitaires (compatibilité) ── */
.card  { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--sh); }
.modal { background: var(--bg2); border-radius: var(--r); box-shadow: 0 20px 60px rgba(0,0,0,.3); width: 520px; max-width: 95vw; max-height: 90vh; overflow-y: auto; }
.alert          { padding: 10px 14px; border-radius: 6px; font-size: 13px; line-height: 1.5; }
.alert-danger   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success  { background: #f0faf4; color: #15803d; border: 1px solid #86efac; }
.alert-info     { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.alert-warning  { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }

/* ── Print: aperçu impression ── */
@media screen {
  body.preview-mode .page-wrap,
  body.preview-mode .navbar-fh { display: none !important; }
  body.preview-mode .prnt {
    position: static !important;
    background: #d0d0d0;
    padding: 64px 20px 40px;
  }
  body.preview-mode .pp {
    background: #fff !important;
    max-width: 21cm;
    margin: 0 auto 20px !important;
    padding: 2cm !important;
    box-shadow: 0 4px 28px rgba(0,0,0,.22);
    page-break-after: always;
  }
  .preview-toolbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: #2d3748;
    color: #fff;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    font-size: 13px;
    box-shadow: 0 2px 12px rgba(0,0,0,.4);
  }
  .preview-toolbar .pt-title { flex: 1; font-weight: 600; }
  .preview-toolbar button {
    padding: 7px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
  }
  .preview-toolbar .pt-print { background: #2563eb; color: #fff; }
  .preview-toolbar .pt-print:hover { background: #1d4ed8; }
  .preview-toolbar .pt-close { background: rgba(255,255,255,.12); color: #fff; }
  .preview-toolbar .pt-close:hover { background: rgba(255,255,255,.2); }
}

@media print {
  body.preview-mode .navbar-fh,
  body.preview-mode .preview-toolbar,
  .no-print { display: none !important; }
  body.preview-mode .prnt { background: none; padding: 0; }
  body.preview-mode .pp {
    box-shadow: none;
    margin: 0 !important;
    padding: 1.5cm !important;
    max-width: 100%;
    page-break-after: always;
  }
}

/* ── Pages impression (contenu) ── */
.pp { display: none; }
body.preview-mode .pp { display: block !important; }
.pp-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #1a5fc8; }
.pp-header-left h1 { font-size: 18px; font-weight: 700; color: #1a1d24; margin: 0 0 2px; }
.pp-header-left p  { font-size: 11px; color: #666; margin: 0; }
.pp-header-right   { font-size: 10px; color: #888; text-align: right; }
.pp-section-title  { font-size: 11px; font-weight: 700; color: #1a5fc8; text-transform: uppercase; letter-spacing: .06em; margin: 14px 0 6px; border-bottom: 1px solid #e5e7eb; padding-bottom: 4px; }
.pp-table { width: 100%; border-collapse: collapse; font-size: 10px; margin-bottom: 8px; }
.pp-table th { background: #f3f4f6; padding: 5px 8px; text-align: left; font-weight: 600; color: #374151; border: 1px solid #e5e7eb; }
.pp-table td { padding: 5px 8px; border: 1px solid #e5e7eb; color: #1a1d24; vertical-align: middle; }
.pp-table tr:nth-child(even) td { background: #fafafa; }
.pp-oto-title { font-size: 14px; font-weight: 700; color: #1a1d24; font-family: ui-monospace, monospace; margin: 0 0 4px; }
.pp-oto-sub   { font-size: 11px; color: #6b7280; margin: 0 0 12px; }
.pp-photos    { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pp-photos img { width: 80px; height: 60px; object-fit: cover; border: 1px solid #e5e7eb; border-radius: 4px; }
.pp-pill { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 99px; font-size: 9px; font-weight: 600; border: 1.5px solid rgba(0,0,0,.07); white-space: nowrap; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .page-wrap { padding: 12px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .oto-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
