/* ==========================================================================
   SALON LILY — Espaces authentifiés (connexion, compte client, administration)
   Prolonge css/style.css : mêmes variables, même vocabulaire graphique.
   ========================================================================== */

/* ---------- 1. Formulaires d'authentification ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: var(--ivory);
}

.auth-aside {
  background: linear-gradient(168deg, var(--blush) 0%, #f6ebe7 55%, var(--sand) 100%);
  padding: clamp(48px, 6vw, 90px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside::after {
  content: "";
  position: absolute; width: 40vw; aspect-ratio: 1;
  border: 1px solid rgba(169, 138, 95, .3); border-radius: 50%;
  right: -14vw; bottom: -16vw;
}
.auth-aside .wordmark { font-size: clamp(44px, 5vw, 76px); margin-bottom: 22px; }
.auth-aside .auth-pitch { font-family: var(--serif); font-size: clamp(20px, 2.2vw, 28px); font-weight: 300; line-height: 1.4; max-width: 22ch; }
.auth-benefits { display: grid; gap: 16px; margin-top: 40px; position: relative; z-index: 1; }
.auth-benefits li { font-size: 14px; padding-left: 26px; position: relative; }
.auth-benefits li::before { content: ""; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--gold); }

.auth-main {
  padding: clamp(40px, 5vw, 80px) clamp(24px, 5vw, 90px);
  display: flex; flex-direction: column; justify-content: center;
}
.auth-box { width: 100%; max-width: 460px; margin: 0 auto; }
.auth-box h1 { font-family: var(--serif); font-size: clamp(30px, 3.4vw, 44px); font-weight: 300; margin-bottom: 10px; }
.auth-box .auth-sub { font-size: 15px; margin-bottom: 40px; }

.auth-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--line-soft); margin-bottom: 36px; }
.auth-tab {
  background: none; border: 0; padding: 0 0 14px; cursor: pointer;
  font-family: var(--sans); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  opacity: .5; position: relative; transition: opacity .4s var(--ease);
}
.auth-tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-soft);
}
.auth-tab.active { opacity: 1; }
.auth-tab.active::after { transform: scaleX(1); }

.auth-form { display: grid; gap: 22px; }
.auth-form .form-grid { gap: 22px; }
.auth-alert {
  padding: 14px 18px; font-size: 14px;
  background: #fdeeea; border-left: 2px solid #a4442f;
}
.auth-alert.ok { background: #eef4ee; border-left-color: #3f6b46; }
.auth-foot { margin-top: 30px; font-size: 14px; text-align: center; }
.auth-foot a { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 2. Coquille des espaces authentifiés ---------- */
.app-shell { min-height: 100vh; background: var(--ivory-warm); }

.app-top {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  height: 72px;
  display: flex; align-items: center;
}
.app-top-inner {
  width: 100%; max-width: 1560px; margin: 0 auto;
  padding: 0 clamp(18px, 3vw, 34px);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.app-brand { font-family: var(--serif); font-size: 19px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.app-brand em { font-style: italic; letter-spacing: .04em; }
.app-top-actions { display: flex; align-items: center; gap: 12px; }

/* Cloche de notifications */
.bell { position: relative; background: none; border: 0; cursor: pointer; padding: 8px; font-size: 17px; line-height: 1; }
.bell-dot {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--ink); color: var(--ivory);
  border-radius: 999px; font-size: 9.5px; font-weight: 500;
  display: grid; place-items: center;
}
.bell-dot:empty, .bell-dot[hidden] { display: none; }

.notif-panel {
  position: absolute; top: 62px; right: clamp(18px, 3vw, 34px);
  width: min(400px, calc(100vw - 36px));
  background: #fff; box-shadow: var(--shadow-lift);
  z-index: 950; max-height: 70vh; overflow-y: auto;
}
.notif-panel[hidden] { display: none; }
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.notif-head h3 { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.notif-item { padding: 18px 24px; border-bottom: 1px solid var(--line-soft); display: block; }
.notif-item:last-child { border-bottom: 0; }
.notif-item.unread { background: var(--blush-pale); }
.notif-item strong { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.notif-item p { font-size: 13.5px; margin-bottom: 6px; }
.notif-item time { font-size: 11px; opacity: .6; }

/* ---------- 3. Grille latérale ---------- */
.app-body {
  display: grid; grid-template-columns: 250px 1fr;
  max-width: 1560px; margin: 0 auto;
  align-items: start;
}
.app-nav {
  position: sticky; top: 72px;
  padding: 34px clamp(14px, 1.6vw, 24px);
  border-right: 1px solid var(--line-soft);
  min-height: calc(100vh - 72px);
  background: #fff;
}
.app-nav h4 {
  font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .5; margin: 26px 0 12px; padding: 0 14px;
}
.app-nav h4:first-child { margin-top: 0; }
.app-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; font-size: 14px; border-radius: 3px;
  transition: background .35s var(--ease);
}
.app-nav a:hover { background: var(--ivory-warm); text-decoration: none; }
.app-nav a.active { background: var(--blush-pale); font-weight: 400; }
.app-nav a .ico { width: 18px; text-align: center; opacity: .75; font-size: 13px; }
.app-nav a .count {
  margin-left: auto; font-size: 10.5px;
  background: var(--ink); color: var(--ivory);
  padding: 1px 8px; border-radius: 999px;
}

.app-main { padding: clamp(26px, 3.4vw, 48px); min-width: 0; }
.app-view[hidden] { display: none; }

.view-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.view-head h1 { font-family: var(--serif); font-size: clamp(27px, 3vw, 38px); font-weight: 300; line-height: 1.15; }
.view-head p { font-size: 14.5px; margin-top: 6px; }
.view-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 4. Cartes & indicateurs ---------- */
.card { background: #fff; padding: clamp(22px, 2.4vw, 34px); box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card h2 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin-bottom: 6px; }
.card h3 { font-family: var(--serif); font-size: 19px; font-weight: 400; margin-bottom: 14px; }
.card-sub { font-size: 14px; margin-bottom: 24px; }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px; background: var(--line-soft); margin-bottom: 24px; }
.kpi { background: #fff; padding: 26px 24px; }
.kpi .k-label { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; display: block; }
.kpi .k-value { font-family: var(--serif); font-size: 38px; font-weight: 300; line-height: 1.1; display: block; margin-top: 10px; }
.kpi .k-hint { font-size: 12px; opacity: .65; display: block; margin-top: 4px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }

/* ---------- 5. Tableaux ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left; font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 400; opacity: .6; padding: 0 16px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line-soft);
}
table.data td { padding: 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .3s var(--ease); }
table.data tbody tr:hover { background: var(--ivory-warm); }
table.data .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data .t-main { font-weight: 400; }
table.data .t-sub { font-size: 12.5px; opacity: .68; display: block; margin-top: 2px; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- 6. Étiquettes de statut ---------- */
.pill {
  display: inline-block; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--line); white-space: nowrap;
}
.pill-pending   { background: #fdf5e6; border-color: #e0c690; }
.pill-confirmed { background: #eaf1ea; border-color: #9bb79f; }
.pill-completed { background: var(--blush-pale); border-color: #ddc0b8; }
.pill-cancelled { background: #f6f3f2; border-color: var(--line); opacity: .75; }
.pill-no_show   { background: #fbeeea; border-color: #d9a898; }
.pill-approved  { background: #eaf1ea; border-color: #9bb79f; }
.pill-rejected  { background: #f6f3f2; border-color: var(--line); opacity: .75; }
.pill-gold { background: linear-gradient(120deg, #f5e9d2, #e8d3a8); border-color: #cbae74; }

/* ---------- 7. Boutons compacts ---------- */
.btn-xs {
  padding: 8px 15px; font-size: 9.5px; letter-spacing: .16em;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-family: var(--sans); text-transform: uppercase;
  transition: border-color .35s var(--ease), background .35s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-xs:hover { border-color: var(--ink); background: var(--ivory-warm); text-decoration: none; }
.btn-xs.danger:hover { border-color: #a4442f; color: #a4442f; }
.btn-xs.primary { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-xs.primary:hover { background: #2c2725; color: var(--ivory); }

/* ---------- 8. Barre de filtres ---------- */
.filter-bar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end;
  padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.filter-bar .field { gap: 6px; }
.filter-bar label { font-size: 9.5px; }
.filter-bar input, .filter-bar select {
  border: 1px solid var(--line); border-bottom-width: 1px;
  padding: 9px 12px; font-size: 13.5px; min-width: 150px; background: #fff;
}
.filter-bar input:focus, .filter-bar select:focus { border-color: var(--ink); }

/* ---------- 9. Fenêtres modales ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1200;
  background: rgba(20, 16, 15, .42);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fade .3s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: #fff; width: min(680px, 100%);
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lift);
  animation: rise .45s var(--ease-soft);
}
.modal.wide { width: min(940px, 100%); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-head {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px clamp(22px, 3vw, 36px); border-bottom: 1px solid var(--line-soft);
  position: sticky; top: 0; background: #fff; z-index: 1;
}
.modal-head h2 { font-family: var(--serif); font-size: 25px; font-weight: 300; }
.modal-close { background: none; border: 0; font-size: 22px; cursor: pointer; line-height: 1; padding: 4px 8px; }
.modal-body { padding: clamp(22px, 3vw, 36px); }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap;
  padding: 22px clamp(22px, 3vw, 36px); border-top: 1px solid var(--line-soft);
  position: sticky; bottom: 0; background: #fff;
}

/* ---------- 10. Listes de détail ---------- */
.detail-list { display: grid; gap: 1px; background: var(--line-soft); }
.detail-list > div { background: #fff; display: flex; justify-content: space-between; gap: 18px; padding: 14px 18px; font-size: 14px; }
.detail-list .d-label { opacity: .65; font-size: 13px; }

/* ---------- 11. Graphiques (SVG maison) ---------- */
.chart { width: 100%; height: 220px; display: block; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 190px; }
.chart-bar { flex: 1; background: var(--blush); position: relative; min-height: 2px; transition: background .3s; }
.chart-bar:hover { background: var(--sand); }
.chart-legend { display: flex; justify-content: space-between; font-size: 10.5px; opacity: .6; margin-top: 10px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.bar-row:last-child { border-bottom: 0; }
.bar-track { height: 5px; background: var(--ivory-warm); position: relative; margin-top: 8px; }
.bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); transition: width .8s var(--ease-soft); }
.bar-label { font-size: 14px; }
.bar-value { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- 12. Fidélité ---------- */
.loyalty-card {
  background: linear-gradient(140deg, var(--ink) 0%, #2e2724 60%, #45372c 100%);
  padding: clamp(28px, 3.4vw, 44px);
  color: var(--ivory);
  position: relative; overflow: hidden;
}
.loyalty-card * { color: var(--ivory); }
.loyalty-card::after {
  content: ""; position: absolute; width: 300px; height: 300px;
  border: 1px solid rgba(169, 138, 95, .38); border-radius: 50%;
  right: -110px; top: -130px;
}
.loyalty-tier { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.loyalty-points { font-family: var(--serif); font-size: clamp(46px, 5vw, 68px); font-weight: 300; line-height: 1; margin: 12px 0 6px; }
.loyalty-progress { height: 2px; background: rgba(252, 250, 248, .22); margin: 26px 0 12px; position: relative; }
.loyalty-progress span { position: absolute; inset: 0 auto 0 0; background: var(--gold); transition: width 1s var(--ease-soft); }
.loyalty-next { font-size: 13px; opacity: .85; }

.tier-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-soft); margin-top: 20px; }
.tier-step { background: #fff; padding: 18px 16px; text-align: center; }
.tier-step.reached { background: var(--blush-pale); }
.tier-step .t-name { font-family: var(--serif); font-size: 18px; }
.tier-step .t-min { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin-top: 4px; display: block; }

.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1px; background: var(--line-soft); }
.reward { background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.reward .r-cost { font-family: var(--serif); font-size: 26px; }
.reward .r-label { font-size: 15px; }
.reward .r-desc { font-size: 13px; opacity: .72; flex: 1; }
.reward .btn-xs { align-self: flex-start; margin-top: 8px; }
.reward.locked { opacity: .5; }

.voucher {
  background: var(--blush-pale); padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
  border-left: 2px solid var(--gold); margin-bottom: 10px;
}
.voucher.used, .voucher.expired { opacity: .48; border-left-color: var(--line); }
.voucher-code { font-family: var(--serif); font-size: 21px; letter-spacing: .06em; }

/* ---------- 13. États vides & chargement ---------- */
.empty {
  padding: clamp(36px, 5vw, 64px); text-align: center;
  border: 1px dashed var(--line); font-size: 14.5px;
}
.empty strong { display: block; font-family: var(--serif); font-size: 21px; font-weight: 400; margin-bottom: 8px; }
.loading { padding: 60px; text-align: center; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; opacity: .55; }
.skeleton { background: linear-gradient(90deg, var(--ivory-warm) 25%, #f2ece8 50%, var(--ivory-warm) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; height: 14px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 14. Éditeur de contenu (CMS) ---------- */
.cms-group { margin-bottom: 34px; }
.cms-group > h3 {
  font-family: var(--sans); font-size: 9.5px; letter-spacing: .22em; text-transform: uppercase;
  opacity: .6; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 22px;
}
.cms-field { margin-bottom: 22px; }
.cms-field label { display: block; font-size: 12.5px; margin-bottom: 8px; }
.cms-field .key { font-size: 10px; opacity: .45; margin-left: 8px; }
.cms-field input, .cms-field textarea {
  width: 100%; border: 1px solid var(--line); padding: 11px 14px;
  font-family: var(--sans); font-size: 14px; background: #fff; border-radius: 0;
}
.cms-field textarea { min-height: 96px; resize: vertical; line-height: 1.65; }
.cms-field input:focus, .cms-field textarea:focus { border-color: var(--ink); outline: none; }

.save-bar {
  position: sticky; bottom: 0; background: #fff;
  border-top: 1px solid var(--line-soft);
  padding: 18px clamp(22px, 3vw, 34px);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 30px -34px -48px; z-index: 10;
}

/* ---------- 15. Grille des horaires ---------- */
.hours-editor { display: grid; gap: 1px; background: var(--line-soft); }
.hours-row {
  background: #fff; display: grid; grid-template-columns: 130px 90px 1fr; gap: 16px;
  align-items: center; padding: 14px 18px;
}
.hours-row .h-day { font-size: 14px; }
.hours-row input[type="time"] { border: 1px solid var(--line); padding: 8px 10px; font-size: 13.5px; font-family: var(--sans); }
.hours-row .h-times { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; cursor: pointer; }
.switch input { width: 16px; height: 16px; accent-color: var(--ink); }

/* ---------- 16. Onglets ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line-soft); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
  background: none; border: 0; padding: 0 0 14px; cursor: pointer;
  font-family: var(--sans); font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  opacity: .5; position: relative; transition: opacity .4s var(--ease);
}
.tab::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-soft);
}
.tab.active { opacity: 1; }
.tab.active::after { transform: scaleX(1); }

/* ---------- 17. Agenda du jour ---------- */
.agenda { display: grid; gap: 10px; }
.agenda-slot {
  background: #fff; padding: 18px 22px;
  display: grid; grid-template-columns: 78px 1fr auto; gap: 20px; align-items: center;
  box-shadow: var(--shadow); border-left: 2px solid var(--blush);
}
.agenda-slot.status-pending { border-left-color: #e0c690; }
.agenda-slot.status-completed { border-left-color: #9bb79f; }
.agenda-slot.status-cancelled { border-left-color: var(--line); opacity: .55; }
.agenda-time { font-family: var(--serif); font-size: 21px; }
.agenda-time small { display: block; font-family: var(--sans); font-size: 11px; opacity: .6; }

/* ---------- 18. Avis en modération ---------- */
.review-mod { background: #fff; padding: 26px; box-shadow: var(--shadow); margin-bottom: 14px; }
.review-mod-top { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 14px; }
.review-mod .stars { color: var(--gold); letter-spacing: .22em; font-size: 13px; }
.review-mod blockquote { font-family: var(--serif); font-size: 18px; font-style: italic; font-weight: 300; line-height: 1.55; margin: 10px 0 18px; }
.review-reply { background: var(--ivory-warm); padding: 16px 20px; font-size: 14px; border-left: 2px solid var(--gold); margin-top: 14px; }
.review-reply .r-title { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; display: block; margin-bottom: 6px; }

/* ---------- 18 bis. Médiathèque ---------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 18px;
}
.media-item {
  background: var(--ivory-warm);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  transition: border-color .35s var(--ease), transform .35s var(--ease-soft);
}
.media-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--blush-pale);
}
.media-item figcaption { padding: 12px 14px; }
.media-item .m-name {
  display: block; font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.media-item .m-size { display: block; font-size: 11px; opacity: .6; margin-top: 2px; }
.media-item.pickable { cursor: pointer; }
.media-item.pickable:hover { border-color: var(--ink); transform: translateY(-3px); }

/* Aperçu sous un champ image */
.apercu:empty { display: none; }
.apercu img {
  max-width: 190px; max-height: 120px;
  object-fit: cover; margin-top: 10px;
  border: 1px solid var(--line-soft);
}

/* ---------- 19. Notification toast d'erreur ---------- */
.toast-error { background: #8f3a2f; }
.toast-error, .toast-error span { color: #fff; }

/* ---------- 20. Responsive ---------- */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 1fr; }
  .app-nav {
    position: static; min-height: 0; border-right: 0;
    border-bottom: 1px solid var(--line-soft);
    display: flex; gap: 6px; overflow-x: auto; padding: 14px 18px;
  }
  .app-nav h4 { display: none; }
  .app-nav a { white-space: nowrap; padding: 10px 16px; }
  .app-nav a .count { margin-left: 8px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-main { padding: 40px 22px; min-height: 100vh; }

  /* Barre supérieure : elle s'adapte au lieu de déborder */
  .app-top { height: auto; min-height: 62px; padding: 10px 0; }
  .app-top-inner { flex-wrap: wrap; gap: 10px; }
  .app-brand { font-size: 16px; }
  .app-top-actions { gap: 8px; flex-wrap: wrap; }
  .app-top-actions .btn-xs { padding: 7px 12px; font-size: 9px; letter-spacing: .12em; }
  .app-top-actions #whoami { display: none; }
  .app-nav { position: static; top: auto; }
  .notif-panel { top: auto; left: 12px; right: 12px; width: auto; }
  .tier-track { grid-template-columns: repeat(2, 1fr); }
  .agenda-slot { grid-template-columns: 1fr; gap: 12px; }
  .hours-row { grid-template-columns: 1fr; gap: 10px; }
  .view-head { align-items: flex-start; }
  .save-bar { margin-left: -22px; margin-right: -22px; }
  table.data thead { display: none; }
  table.data tbody tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
  table.data td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 4px; border: 0; text-align: right; }
  table.data td::before { content: attr(data-label); font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; opacity: .6; text-align: left; }
  table.data td.num { text-align: right; }
  .row-actions { justify-content: flex-end; }
}
