/* Neody Entreprises — atelier professionnel, clair et calme. */

@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/static/fonts/cinzel-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/static/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+1E00-1EFF, U+20A0-20CF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("/static/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

:root {
  --canvas: #f3f5f7;
  --canvas-deep: #e9edf1;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --surface-warm: #fff9ed;
  --nav: #16202a;
  --nav-soft: #202d39;
  --nav-line: rgba(255,255,255,.10);
  --text: #1e2935;
  --text-soft: #526170;
  --text-dim: #748190;
  --line: #dde3e8;
  --line-strong: #c9d1d9;
  --accent: #c78d27;
  --accent-strong: #9e6912;
  --accent-soft: #fff2d8;
  --link: #315d7a;
  --success: #23744d;
  --success-soft: #eaf7f0;
  --warning: #9a6819;
  --warning-soft: #fff5df;
  --danger: #ad3b48;
  --danger-soft: #fff0f1;
  --neutral-soft: #edf1f4;
  --hover: #fafbfc;
  --cell-line: #e8ecef;
  --field-label: #3b4957;
  --placeholder: #9aa5ae;
  --status-bg: #f4f6f8;
  --quota-track: #e7ebee;
  --dropzone-bg: #fafbfc;
  --dropzone-line: #b8c3cc;
  --scroll-thumb: #bdc6ce;
  --scroll-hover: #98a5b0;
  --display: "Manrope", system-ui, sans-serif;
  --brand: "Cinzel", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(20,32,44,.05), 0 1px 8px rgba(20,32,44,.035);
  --shadow-md: 0 18px 45px rgba(21,31,42,.11);
  --rail: 248px;
}

html[data-theme="dark"] {
  --canvas: #0f151b;
  --canvas-deep: #0a1016;
  --surface: #18212a;
  --surface-soft: #1e2933;
  --surface-warm: #2b2418;
  --nav: #090f14;
  --nav-soft: #141d25;
  --nav-line: rgba(255,255,255,.09);
  --text: #eef3f6;
  --text-soft: #b8c4cd;
  --text-dim: #8292a0;
  --line: #2a3742;
  --line-strong: #3b4b58;
  --accent: #d39a34;
  --accent-strong: #e1ad50;
  --accent-soft: #322719;
  --link: #82bad9;
  --success: #72c99a;
  --success-soft: #172c23;
  --warning: #e0b45d;
  --warning-soft: #302718;
  --danger: #ef818d;
  --danger-soft: #321e23;
  --neutral-soft: #22303b;
  --hover: #202c36;
  --cell-line: #293640;
  --field-label: #c8d1d8;
  --placeholder: #6f7f8b;
  --status-bg: #222d36;
  --quota-track: #27343e;
  --dropzone-bg: #141d25;
  --dropzone-line: #455663;
  --scroll-thumb: #43525e;
  --scroll-hover: #596b78;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.18), 0 8px 24px rgba(0,0,0,.08);
  --shadow-md: 0 22px 55px rgba(0,0,0,.34);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: light; -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
button { border: 0; background: none; color: inherit; cursor: pointer; }
ul { list-style: none; }
code, samp { font-family: var(--mono); }
::selection { background: #f2d69f; color: var(--text); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 3px solid transparent; border-radius: 99px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-hover); }

.skip {
  position: fixed; left: 16px; top: -100px; z-index: 200;
  padding: 10px 14px; border-radius: 8px;
  background: var(--nav); color: #fff; font-weight: 750;
  transition: top .18s ease;
}
.skip:focus { top: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(199,141,39,.42); outline-offset: 2px;
}

/* Thème clair / sombre */
.theme-toggle { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:34px; padding:7px 9px; border:1px solid var(--line); border-radius:9px; background:var(--surface); color:var(--text-soft); font-size:11px; font-weight:700; }
.theme-toggle .ic { width:15px; height:15px; }
.theme-toggle__sun { display:none; }
html[data-theme="dark"] .theme-toggle__moon { display:none; }
html[data-theme="dark"] .theme-toggle__sun { display:inline-flex; }
.theme-toggle--rail { width:100%; justify-content:flex-start; margin-bottom:13px; border-color:var(--nav-line); background:rgba(255,255,255,.04); color:#aebbc5; }
.theme-toggle--floating { position:fixed; top:18px; right:18px; z-index:100; box-shadow:var(--shadow-sm); }
.topbar__theme { display:none; }
@media (hover:hover) { .theme-toggle:hover { border-color:var(--accent); color:var(--text); } .theme-toggle--rail:hover { color:#fff; background:rgba(255,255,255,.075); } }
html[data-theme="dark"] .btn--danger { border-color:#61333b; }
html[data-theme="dark"] .btn--danger:hover { border-color:#82434d; background:#40242a; }
html[data-theme="dark"] .flash { border-color:#5b4828; color:#e7bd69; }
html[data-theme="dark"] .flash--ok { border-color:#28543e; color:var(--success); }
html[data-theme="dark"] .flash--error { border-color:#66343c; color:var(--danger); }
html[data-theme="dark"] .flash--secret { border-color:#66502a; color:#e7c47d; }
html[data-theme="dark"] .impersonate { background:#2c2519; color:#e8c171; border-color:#5b4828; }
html[data-theme="dark"] .user-option__state.is-blocked { background:var(--neutral-soft); }
html[data-theme="dark"] .st--on { border-color:#28543e; }
html[data-theme="dark"] .st--off { border-color:#66343c; }
html[data-theme="dark"] .st--wait { border-color:#5b4828; }
html[data-theme="dark"] .st--dim { color:var(--text-dim); background:var(--neutral-soft); }
html[data-theme="dark"] .bulkbar { border-color:#66502a; color:#e7c47d; }
html[data-theme="dark"] .topbar { background:rgba(24,33,42,.94); }
html[data-theme="dark"] .topbar__avatar { background:var(--neutral-soft); }

/* Actions */
.btn {
  min-height: 42px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 17px; border: 1px solid transparent; border-radius: 10px;
  font-weight: 750; font-size: 13.5px; letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}
.btn .ic { width: 17px; height: 17px; }
.btn--gold {
  background: var(--accent); color: #18212b;
  border-color: #b77a19;
  box-shadow: 0 6px 16px rgba(158,105,18,.16), inset 0 1px rgba(255,255,255,.32);
}
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn--danger { background: var(--danger-soft); color: var(--danger); border-color: #efcbd0; }
.btn--sm { min-height: 36px; padding: 7px 12px; border-radius: 8px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .48; cursor: not-allowed; }
@media (hover:hover) {
  .btn:hover { transform: translateY(-1px); }
  .btn--gold:hover { background: #d49a32; box-shadow: 0 9px 22px rgba(158,105,18,.22); }
  .btn--ghost:hover { border-color: #9ca9b5; background: var(--surface-soft); }
  .btn--danger:hover { border-color: #dca5ad; background: #ffe6e8; }
}
.btn:active { transform: translateY(0); }
.btn--icon {
  min-width: 32px; min-height: 32px; padding: 6px; border-radius: 8px;
  color: var(--text-dim); border: 1px solid transparent; background: transparent;
  font-size: 0; gap: 0;
}
.btn--icon .ic { width: 15px; height: 15px; }
.btn--icon.btn--danger { color: var(--danger); background: transparent; border-color: transparent; }
@media (hover:hover) {
  .btn--icon:hover { color: var(--text); background: var(--neutral-soft); border-color: var(--line); }
  .btn--icon.btn--danger:hover { color: var(--danger); background: var(--danger-soft); border-color: #f0d5d8; }
}

/* Formulaires */
.field { margin-bottom: 17px; }
.field label { display: block; margin-bottom: 7px; color: var(--field-label); font-size: 12.5px; font-weight: 750; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 13px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--surface); color: var(--text); font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(20,32,44,.03);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field textarea { min-height: 280px; font-family: var(--mono); line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199,141,39,.15);
}
.help { margin-top: 6px; color: var(--text-dim); font-size: 12px; }
.invalid { margin-top: 6px; color: var(--danger); font-size: 12px; font-weight: 650; }
.check { display: inline-flex; align-items: center; gap: 8px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent-strong); }

/* Retours */
.flash {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 16px; padding: 11px 13px;
  border: 1px solid #ead29f; border-radius: 10px;
  background: var(--warning-soft); color: #775019; font-size: 13px;
}
.flash--ok { border-color: #bfe2cf; background: var(--success-soft); color: var(--success); }
.flash--error { border-color: #efc9ce; background: var(--danger-soft); color: var(--danger); }
.flash--secret { border-color: #e1c37e; background: var(--surface-warm); color: #5e4519; word-break: break-word; }
.impersonate {
  position: relative; z-index: 90;
  display: flex; justify-content: center; align-items: center; gap: 14px;
  padding: 9px 20px; background: #fff4d8; color: #684b15;
  border-bottom: 1px solid #ead29f; font-size: 12.5px; font-weight: 650;
}

/* Shell */
.console { background: var(--canvas); }
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--rail) minmax(0,1fr); }
.rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 22px;
  padding: 22px 16px 16px;
  color: #dce4eb;
  background:
    linear-gradient(150deg, rgba(199,141,39,.08), transparent 36%),
    var(--nav);
  border-right: 1px solid #0f171f;
}
.rail__head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.rail__brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rail__brand img { width: 38px; height: 38px; object-fit: contain; }
.rail__brand span { display: flex; flex-direction: column; line-height: 1.1; }
.rail__brand b { color: #fff; font-family: var(--brand); font-size: 14px; letter-spacing: .09em; text-transform: uppercase; }
.rail__brand small { margin-top: 4px; color: #bdc8d1; font-size: 10.5px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.rail__close { display: none; width: 40px; height: 40px; place-items: center; border: 1px solid var(--nav-line); border-radius: 9px; }
.rail__label { padding: 0 11px; color: #81909d; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.rail__nav { display: flex; flex-direction: column; gap: 5px; }
.rail__nav a {
  position: relative; display: flex; align-items: center; gap: 11px;
  min-height: 43px; padding: 10px 12px; border-radius: 9px;
  color: #bdc8d1; font-size: 13.5px; font-weight: 650;
  transition: color .16s ease, background .16s ease;
}
.rail__nav a .ic { width: 17px; height: 17px; color: #8c9aa6; }
.rail__nav a.is-on { background: rgba(255,255,255,.09); color: #fff; }
.rail__nav a.is-on::before { content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius:4px; background:var(--accent); }
.rail__nav a.is-on .ic { color: #e2b45f; }
@media (hover:hover) { .rail__nav a:hover { background: rgba(255,255,255,.055); color: #fff; } }
.rail__end { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--nav-line); }
.rail__user { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.rail__avatar { position:relative; width:36px; height:36px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:10px; background:#2c3b48; color:#f4c76f; font-weight:800; }
.rail__avatar img, .topbar__avatar img, .user-option__avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; image-rendering:pixelated; }
.rail__avatar img.is-missing, .topbar__avatar img.is-missing, .user-option__avatar img.is-missing { display:none; }
.rail__who { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.rail__who b { color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.rail__who small { margin-top: 3px; color: #8f9da8; font-size: 10.5px; }
.rail__logout { color: #aebbc5; font-size: 12px; font-weight: 650; }
@media (hover:hover) { .rail__logout:hover { color: #fff; } }
.rail-backdrop { display: none; }
.topbar { display: none; }
.stage { min-width: 0; }
.stage__main { width: 100%; max-width: 1480px; min-width: 0; padding: 36px 40px 64px; }

/* Titres et structure */
.page-head { margin-bottom: 24px; }
.page-head--row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px 20px; align-items: end; }
.page-head--row > * { min-width: 0; }
.page-head--row > :not(:first-child):not(.lede) { justify-self: end; }
.page-head--row .lede { grid-column: 1 / -1; }
.eyebrow, .section-kicker {
  color: var(--accent-strong); font-size: 10.5px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.h-sec {
  margin-top: 4px; color: var(--text); font-family: var(--display);
  font-size: clamp(27px, 3vw, 36px); font-weight: 760; line-height: 1.16; letter-spacing: -.035em;
}
.h-sec em { color: inherit; font-style: normal; }
.lede { max-width: 70ch; color: var(--text-soft); font-size: 14px; line-height: 1.65; }
.display { font-family: var(--display); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: minmax(0,1.35fr) minmax(290px,.75fr); align-items: start; }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.stack, .dashboard-side { display: flex; flex-direction: column; gap: 18px; }

/* Cartes */
.card {
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.gild::before, .gild::after, .card::after { display: none; }
.card-pad { padding: 21px; }
.card__head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 15px;
  color: var(--text); font-size: 15px; font-weight: 760;
}
.card__head .ic { width: 17px; height: 17px; color: var(--accent-strong); }
.card__head .btn, .card__head form { margin-inline-start: auto; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.section-head h2 { margin-top: 2px; color: var(--text); font-size: 17px; font-weight: 760; letter-spacing: -.02em; }
.section-head > a { color: var(--link); font-size: 12px; font-weight: 700; }
.count { min-width: 30px; height: 28px; display: grid; place-items: center; padding: 0 8px; border-radius: 8px; background: var(--neutral-soft); color: var(--text-soft); font-size: 12px; font-weight: 800; }

.overview {
  display: flex; flex-wrap: wrap; gap: 1px; margin: -5px 0 20px;
  overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: var(--line);
  box-shadow: var(--shadow-sm);
}
.overview__item { flex: 1 1 190px; display: flex; align-items: center; gap: 9px; min-height: 48px; padding: 10px 15px; background: var(--surface); color: var(--text-soft); font-size: 12.5px; }
.overview__item .ic { width: 16px; height: 16px; color: var(--text-dim); }
.overview__item b { color: var(--text); }
.overview__item.is-ok .ic { color: var(--success); }
.overview__item.is-alert .ic { color: var(--danger); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(290px,.65fr); gap: 20px; align-items: start; }
.quiet-state { display: flex; align-items: center; gap: 9px; min-height: 58px; padding: 12px; border-radius: 10px; background: var(--surface-soft); color: var(--text-soft); font-size: 12.5px; }
.quiet-state .ic { color: var(--success); }
.task-list { display: flex; flex-direction: column; gap: 8px; }
.task-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-list li:last-child { border-bottom: 0; }
.task-list span { display: flex; flex-direction: column; }
.task-list b { font-size: 13px; }
.task-list small { color: var(--text-dim); font-size: 11px; }
.activity-list { display: flex; flex-direction: column; }
.activity-list p { display: grid; grid-template-columns: auto 1fr; gap: 1px 9px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.activity-list p:last-child { border-bottom: 0; }
.activity-list span { color: var(--text-dim); }
.activity-list b { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.activity-list code { grid-column: 1/-1; color: var(--text-soft); font-size: 10.5px; }
.tenant-list { display:flex; flex-direction:column; gap:10px; }
.tenant-record { overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--surface-soft); }
.tenant-record__head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:15px 16px 13px; border-bottom:1px solid var(--line); background:var(--surface); }
.tenant-record__head a { color:var(--text); font-size:15px; font-weight:800; letter-spacing:-.015em; }
.tenant-record__head p { margin-top:3px; color:var(--text-dim); font-size:10.5px; overflow-wrap:anywhere; }
.tenant-record__facts { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); }
.tenant-record__facts > div { min-width:0; display:flex; align-items:center; gap:10px; padding:12px 16px; }
.tenant-record__facts > div + div { border-left:1px solid var(--line); }
.tenant-record__facts > div > .ic { width:18px; height:18px; color:var(--accent-strong); }
.tenant-record__facts > div > span:not(.st):not(.tenant-record__avatar) { min-width:0; display:flex; flex-direction:column; }
.tenant-record__facts small { color:var(--text-dim); font-size:9px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.tenant-record__facts b { margin-top:2px; overflow:hidden; color:var(--text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.tenant-record__facts em { margin-top:1px; color:var(--text-dim); font-size:10.5px; font-style:normal; }
.tenant-record__facts .st { margin-inline-start:auto; }
.tenant-record__avatar { position:relative; flex:0 0 38px; width:38px; height:38px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:var(--neutral-soft); color:var(--text-soft); font-size:11px; font-weight:800; }
.tenant-record__avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; image-rendering:pixelated; }
.tenant-record__avatar img.is-missing { display:none; }
.tenant-record__actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:8px; padding:11px 16px; border-top:1px solid var(--line); background:var(--surface); }
.tenant-record__actions form { display:inline-flex; }

/* Création guidée */
.create-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,360px); gap:20px; align-items:start; }
.create-aside { position:sticky; top:28px; }
.create-aside h2 { margin:5px 0 18px; font-size:19px; line-height:1.35; letter-spacing:-.025em; }
.form-section { display:grid; grid-template-columns:34px minmax(0,1fr); gap:14px; padding:3px 0 24px; margin-bottom:24px; border-bottom:1px solid var(--line); }
.form-section:last-of-type { margin-bottom:0; }
.form-section__number { width:31px; height:31px; display:grid; place-items:center; border-radius:9px; background:var(--nav); color:#f0c46d; font-size:11px; font-weight:800; }
.form-section__body > h2 { font-size:16px; font-weight:780; letter-spacing:-.02em; }
.form-section__body > p { margin:3px 0 16px; color:var(--text-dim); font-size:12px; }
.slug-field { display:flex; align-items:stretch; }
.slug-field input { width:auto; min-width:0; flex:0 1 43%; border-radius:9px 0 0 9px; }
.slug-field > span { min-width:0; flex:1; display:flex; align-items:center; padding:0 11px; border:1px solid var(--line-strong); border-left:0; border-radius:0 9px 9px 0; background:var(--surface-soft); color:var(--text-dim); font-size:11px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.user-picker { position:relative; }
.user-picker__search { margin-bottom:9px; }
.user-picker__count { margin-bottom:7px; color:var(--text-dim); font-size:10.5px; text-align:end; }
.user-picker__list { max-height:360px; overflow-y:auto; border:1px solid var(--line); border-radius:11px; background:var(--surface-soft); }
.user-option { position:relative; display:grid; grid-template-columns:18px 36px minmax(0,1fr) auto; align-items:center; gap:9px; min-height:58px; padding:9px 11px; border-bottom:1px solid var(--line); background:var(--surface); cursor:pointer; transition:background .15s,border-color .15s; }
.user-option:last-of-type { border-bottom:0; }
.user-option > input { width:16px; height:16px; }
.user-option__avatar { position:relative; width:36px; height:36px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:10px; background:var(--neutral-soft); color:var(--text-soft); font-size:11px; font-weight:800; }
.user-option__identity { min-width:0; display:flex; flex-direction:column; }
.user-option__identity b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12.5px; }
.user-option__identity small { color:var(--text-dim); font-size:10px; }
.user-option__state { padding:4px 7px; border-radius:99px; font-size:9.5px; font-weight:750; white-space:nowrap; }
.user-option__state.is-ready { color:var(--success); background:var(--success-soft); }
.user-option__state.is-wait { color:var(--warning); background:var(--warning-soft); }
.user-option__state.is-blocked { color:var(--text-dim); background:#eef1f3; }
.user-option:has(input:checked) { z-index:1; background:var(--accent-soft); box-shadow:inset 3px 0 var(--accent); }
.user-option:has(input:checked) .user-option__avatar { background:var(--accent); color:var(--nav); }
.user-option.is-disabled { cursor:not-allowed; opacity:.58; }
@media (hover:hover) { .user-option:not(.is-disabled):hover { background:var(--hover); } }
.user-picker__empty { padding:24px 16px; color:var(--text-dim); text-align:center; font-size:12px; }
.quota-field { position:relative; max-width:200px; }
.quota-field input { padding-right:50px; }
.quota-field > span { position:absolute; right:13px; bottom:12px; color:var(--text-dim); font-size:11px; }
.create-actions { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.create-actions p { display:flex; align-items:center; gap:7px; max-width:48ch; color:var(--text-dim); font-size:11px; }
.create-actions p .ic { color:var(--success); }
.create-flow { display:flex; flex-direction:column; }
.create-flow li { display:grid; grid-template-columns:36px 1fr; gap:11px; padding:15px 0; border-bottom:1px solid var(--line); }
.create-flow li:last-child { border-bottom:0; }
.create-flow li > span { width:34px; height:34px; display:grid; place-items:center; border-radius:9px; background:var(--accent-soft); color:var(--accent-strong); }
.create-flow b { font-size:12.5px; }
.create-flow p { margin-top:3px; color:var(--text-dim); font-size:11px; line-height:1.55; }

/* Tableaux */
.table-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; }
.table { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.table th { padding: 10px 11px; border-block: 1px solid var(--line); background: var(--surface-soft); color: var(--text-dim); text-align: start; font-size: 9.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.table th:first-child { border-left: 1px solid var(--line); border-radius: 8px 0 0 8px; }
.table th:last-child { border-right: 1px solid var(--line); border-radius: 0 8px 8px 0; }
.table th a { display: inline-flex; align-items: center; gap: 5px; }
.table th[aria-sort="ascending"] a::after { content:"↑"; color:var(--accent-strong); font-size:12px; }
.table th[aria-sort="descending"] a::after { content:"↓"; color:var(--accent-strong); font-size:12px; }
.table td { padding: 10px 11px; border-bottom: 1px solid var(--cell-line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table__primary { color: var(--text); font-weight: 750; }
.table .num { text-align: end; }
.table [hidden], .table .is-column-hidden { display: none !important; }
.table--compact { min-width: 520px; }
.table--compact td { padding-block: 8px; }
@media (hover:hover) { .table tbody tr:hover td { background: var(--hover); } .table a:hover { color: var(--link); } }
.meta { color: var(--text-dim); font-size: 11.5px; }
.sort-rank { display: inline-grid; place-items:center; min-width:15px; height:15px; padding:0 4px; border-radius:99px; background:var(--accent-soft); color:var(--accent-strong); font-size:8px; }

/* États */
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 99px; background: var(--status-bg); color: var(--text-soft); font-size: 10.5px; font-weight: 750; white-space: nowrap; }
.st::before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.st--on { color: var(--success); border-color: #c7e3d3; background: var(--success-soft); }
.st--off { color: var(--danger); border-color: #efd2d6; background: var(--danger-soft); }
.st--wait { color: var(--warning); border-color: #ecd9ac; background: var(--warning-soft); }
.st--dim { color: #697684; background: #f0f3f5; }

/* Détails vitrine */
.kv { display: grid; margin-top: 3px; }
.kv div { display: grid; grid-template-columns: minmax(120px,.55fr) minmax(0,1fr); gap: 18px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { color: var(--text-dim); font-size: 12px; }
.kv dd { min-width: 0; color: var(--text); font-size: 12.5px; font-weight: 650; text-align: end; }
.kv--compact div { padding-block: 9px; }
.copy { display: inline-flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; }
.copy > span, .copy > a { overflow-wrap: anywhere; }
.copy button { flex: 0 0 auto; width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 7px; color: var(--text-dim); }
.copy button .ic { width: 14px; height: 14px; }
.copy button.is-done { color: var(--success); background: var(--success-soft); }
@media (hover:hover) { .copy button:hover { color: var(--link); background: var(--neutral-soft); } }
.quota { height: 7px; margin-top: 12px; overflow: hidden; border-radius: 99px; background: var(--quota-track); }
.quota span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#d4a347,var(--accent-strong)); }
.quota--compact { height: 5px; margin: 6px 3px 2px; }
.preview { width:100%; min-height:500px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 19px; }
.actions form { display: inline-flex; }
.scope-note { display:flex; align-items:flex-start; gap:9px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface-soft); color:var(--text-soft); font-size:11.5px; line-height:1.55; }
.scope-note .ic { width:16px; height:16px; margin-top:1px; color:var(--accent-strong); }
.scope-note b { color:var(--text); }
.tenant-control .actions { align-items:flex-start; }
.tenant-card { display: block; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.tenant-card__name { margin: 7px 0 13px; font-size: 19px; font-weight: 760; letter-spacing: -.02em; }
@media (hover:hover) { .tenant-card:hover { transform: translateY(-2px); border-color: #bdc7d0; box-shadow: 0 12px 28px rgba(21,31,42,.09); } }

/* Gestionnaire de fichiers */
.fman { min-width: 0; overflow: visible; padding: 14px; }
.ftoolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 2px 2px 13px; border-bottom: 1px solid var(--line); }
.crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:6px; color:var(--text-soft); font-size:12px; }
.crumbs a { color: var(--link); font-weight: 700; }
.crumbs .ic { width: 12px; height: 12px; color: var(--text-dim); }
.ftoolbar__actions { margin-inline-start:auto; display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.drop { position:relative; }
.drop summary { list-style:none; cursor:pointer; }
.drop summary::-webkit-details-marker { display:none; }
.drop[open] summary { border-color:#9ca9b5; background:var(--surface-soft); }
.drop__panel { position:absolute; inset-inline-end:0; top:calc(100% + 8px); z-index:50; width:min(300px,84vw); padding:15px; border:1px solid var(--line-strong); border-radius:11px; background:var(--surface); box-shadow:var(--shadow-md); }
.drop__panel--compact { width:230px; }
.drop__panel--sort { width:min(420px,88vw); }
.drop__title { margin-bottom:7px; font-size:12px; font-weight:800; }
.drop__panel--compact .check { display:flex; padding:6px 0; color:var(--text-soft); font-size:12.5px; }
.sort-fields { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.85fr); gap:0 12px; }
.sort-fields .field { min-width:0; margin-bottom:12px; }
.dropzone { display:flex; flex-wrap:wrap; align-items:center; gap:9px 12px; margin:13px 2px; padding:13px 15px; border:1.5px dashed var(--dropzone-line); border-radius:11px; background:var(--dropzone-bg); color:var(--text-soft); font-size:12.5px; transition:border-color .16s ease, background .16s ease; }
.dropzone > .ic { color:var(--accent-strong); }
.dropzone.is-over { border-color:var(--accent); background:var(--accent-soft); }
.file-pick { position:relative; display:inline-flex; align-items:center; gap:7px; padding:7px 11px; border:1px solid var(--line-strong); border-radius:8px; background:var(--surface); color:var(--text); font-size:12px; font-weight:750; cursor:pointer; }
.file-pick .ic { width:14px; height:14px; color:var(--accent-strong); }
.file-pick input { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); }
.file-pick:focus-within { outline:3px solid rgba(199,141,39,.34); outline-offset:2px; }
.file-name { max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text-dim); font-size:11px; }
.dropzone .check { font-size:11.5px; }
.dropzone__status { flex-basis:100%; min-height:1em; }
.ftable { min-width:680px; }
.ftable td { padding-block:8px; }
.ftable__check { width:35px; }
.ftable__name { max-width:0; }
.ftable__name a, .ftable__name .fname { display:inline-flex; align-items:center; gap:9px; min-width:0; max-width:100%; }
.ftable__name a { color:var(--text); font-weight:700; }
.ftable__name span span, .ftable__name a span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ftable__actions { width:1%; text-align:end; white-space:nowrap; }
.ftable__actions form { display:inline; }
.ftable__actions .btn--icon { vertical-align:middle; }
.ic { width:16px; height:16px; flex-shrink:0; }
.ficon { width:17px; height:17px; color:#7c8995; }
.ficon--dir { color:var(--accent-strong); }
.bulkbar { display:none; align-items:center; gap:11px; margin:11px 2px 0; padding:9px 11px; border:1px solid #e6c986; border-radius:10px; background:var(--accent-soft); color:#715018; font-size:12px; }
.fman:has(.ftable input[name="rel"]:checked) .bulkbar, .bulkbar.is-on { display:flex; }
.bulkbar__count { font-weight:750; }
.bulkbar .btn { margin-inline-start:auto; }
.fusage { display:flex; flex-wrap:wrap; gap:6px 18px; margin:12px 3px 0; color:var(--text-dim); font-size:11.5px; font-variant-numeric:tabular-nums; }
.fusage strong { color:var(--text-soft); }
.fusage__quota { margin-inline-start:auto; }

/* Éditeur — contraste-signature */
.editor-title { font-family:var(--mono); font-size:clamp(20px,2.3vw,29px); letter-spacing:-.03em; overflow-wrap:anywhere; }
.editor-card { padding:13px; background:var(--surface); }
.code-editor { overflow:hidden; border:1px solid #2c3a47; border-radius:11px; background:#111820; box-shadow:0 14px 28px rgba(21,31,42,.13); }
.code-editor__bar { min-height:43px; display:flex; align-items:center; gap:12px; padding:8px 13px; border-bottom:1px solid #2c3a47; background:#18222c; color:#9aabb8; font-size:11px; }
.code-editor__bar label { color:#e9c57c; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.code-editor__state { margin-inline-start:auto; color:#7ac89b; }
.code-editor__state.is-dirty { color:#e4b65c; }
.code-editor__surface { position:relative; min-height:clamp(390px,57vh,700px); }
.code-editor__highlight, .code-editor__surface textarea { position:absolute; inset:0; width:100%; height:100%; margin:0; padding:17px 18px; border:0; border-radius:0; resize:none; overflow:auto; font-family:var(--mono); font-size:13px; line-height:1.62; tab-size:2; white-space:pre; word-wrap:normal; }
.code-editor__highlight { pointer-events:none; color:#dbe3e9; background:transparent; }
.code-editor__highlight code { font:inherit; }
.code-editor__surface textarea { color:#e9eef2; background:transparent; caret-color:#f2c86e; }
.code-editor.is-enhanced textarea { color:transparent; -webkit-text-fill-color:transparent; }
.code-editor.is-enhanced textarea::selection { background:rgba(231,184,85,.25); }
.code-editor__surface textarea:focus { outline:2px solid #d6a33f; outline-offset:-2px; }
.tok-comment { color:#778b7d; font-style:italic; }
.tok-tag, .tok-keyword, .tok-heading { color:#e8b95d; }
.tok-string, .tok-attr, .tok-link { color:#8fd2aa; }
.tok-number, .tok-literal { color:#d7a0cf; }
.tok-punctuation, .tok-operator { color:#aebbc5; }
.tok-property, .tok-selector { color:#83bedb; }
.editor-foot { display:flex; align-items:center; gap:16px; padding:13px 3px 1px; }
.editor-foot .help { max-width:68ch; margin:0; }
.editor-foot .actions { margin:0 0 0 auto; flex-wrap:nowrap; }

/* États vides et utilitaires */
.empty { display:flex; flex-direction:column; align-items:center; gap:7px; padding:44px 20px; text-align:center; }
.empty > .ic { width:34px; height:34px; margin-bottom:5px; padding:8px; box-sizing:content-box; border-radius:12px; background:var(--accent-soft); color:var(--accent-strong); }
.empty__title { color:var(--text); font-size:16px; font-weight:760; }
.empty p { max-width:48ch; color:var(--text-soft); font-size:12.5px; }
.empty .actions { justify-content:center; }
.form-card { max-width:620px; }
.plaque { display:inline-flex; align-items:center; gap:8px; max-width:100%; padding:8px 11px; border:1px solid var(--line); border-radius:8px; background:var(--surface-soft); font-family:var(--mono); font-size:12px; color:var(--text-soft); overflow-wrap:anywhere; }
.u-mt { margin-top:16px; }
.u-mb { margin-bottom:16px; }
.u-m0 { margin:0; }
.u-row { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.u-between { justify-content:space-between; }
.u-nowrap { white-space:nowrap; }

/* Porte d'entrée */
.gate { background:var(--canvas); }
.gate__layout { min-height:100vh; display:grid; grid-template-columns:minmax(440px,1.08fr) minmax(460px,.92fr); }
.gate__story { position:relative; overflow:hidden; display:flex; flex-direction:column; padding:clamp(34px,5vw,72px); color:#edf2f5; background:
  linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
  radial-gradient(circle at 78% 18%,rgba(199,141,39,.20),transparent 28%),
  linear-gradient(145deg,#1a2833,#121b23 74%);
  background-size:42px 42px,42px 42px,auto,auto;
}
.gate__story::after { content:""; position:absolute; left:clamp(34px,5vw,72px); top:0; width:72px; height:5px; background:var(--accent); }
.gate__brand { position:relative; z-index:1; display:flex; align-items:center; gap:13px; width:max-content; }
.gate__brand img { width:54px; height:54px; object-fit:contain; }
.gate__brand span { display:flex; flex-direction:column; line-height:1.08; }
.gate__brand b { color:#fff; font-family:var(--brand); font-size:17px; letter-spacing:.1em; text-transform:uppercase; }
.gate__brand small { margin-top:5px; color:#aebbc5; font-size:10.5px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.gate__pitch { position:relative; z-index:1; max-width:560px; margin:auto 0; padding-block:50px; }
.gate__kicker { margin-bottom:14px; color:#e7ba61; font-size:11px; font-weight:800; letter-spacing:.15em; text-transform:uppercase; }
.gate__pitch h2 { color:#fff; font-size:clamp(38px,4.6vw,67px); font-weight:720; line-height:1.04; letter-spacing:-.055em; }
.gate__pitch h2 em { color:#edc16b; font-style:normal; }
.gate__pitch > p:not(.gate__kicker) { max-width:49ch; margin-top:22px; color:#bdc8d1; font-size:15px; line-height:1.7; }
.gate__steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:38px; }
.gate__steps li { display:grid; grid-template-columns:27px 1fr; gap:2px 9px; padding-top:13px; border-top:1px solid rgba(255,255,255,.14); }
.gate__steps li > span { grid-row:1/3; width:27px; height:27px; display:grid; place-items:center; border:1px solid rgba(231,186,97,.42); border-radius:8px; color:#efc66f; font-size:10px; font-weight:800; }
.gate__steps b { color:#fff; font-size:12px; }
.gate__steps small { color:#8999a5; font-size:10.5px; line-height:1.4; }
.gate__signature { position:relative; z-index:1; color:#748695; font-size:10.5px; letter-spacing:.08em; }
.gate__panel { display:grid; place-items:center; padding:48px clamp(28px,6vw,82px); background:var(--canvas); }
.gate__box { width:100%; max-width:460px; padding:34px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:var(--shadow-md); }
.gate__box h1 { margin:6px 0 10px; color:var(--text); font-size:28px; font-weight:760; line-height:1.18; letter-spacing:-.035em; }
.gate__intro { margin-bottom:25px; color:var(--text-soft); font-size:13.5px; line-height:1.65; }
.gate__hint { margin-top:16px; text-align:center; }
.gate__hint a { color:var(--link); font-size:12px; font-weight:650; }
.gate__local, .gate__staff { margin-top:22px; padding-top:19px; border-top:1px solid var(--line); }
.gate__staff summary { list-style-position:inside; color:var(--text-dim); text-align:center; font-size:11.5px; cursor:pointer; }
.gate__staff[open] summary { margin-bottom:11px; color:var(--text-soft); }
.gate__staff p { margin-bottom:11px; color:var(--text-dim); text-align:center; font-size:11.5px; }

/* A2F local */
.auth { min-height:100vh; display:grid; grid-template-columns:minmax(420px,.9fr) minmax(480px,1.1fr); background:var(--canvas); }
.auth__art { position:relative; overflow:hidden; display:flex; align-items:center; padding:clamp(42px,6vw,80px); color:#fff; background:
  linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px),
  linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
  radial-gradient(circle at 25% 22%,rgba(199,141,39,.18),transparent 32%),
  var(--nav);
  background-size:42px 42px,42px 42px,auto,auto;
}
.auth__art .rays { display:none; }
.auth__art .inner { position:relative; z-index:1; max-width:430px; }
.auth__art img { width:76px; margin-bottom:29px; }
.auth__art h2 { color:#fff; font-size:clamp(32px,4vw,50px); font-weight:720; line-height:1.08; letter-spacing:-.045em; }
.auth__art h2 em { color:#efc46e; font-style:normal; }
.auth__art p { margin-top:18px; color:#b9c5ce; font-size:14px; line-height:1.7; }
.auth__form { display:grid; place-items:center; padding:45px 28px; }
.auth__card { width:100%; max-width:480px; padding:32px; border:1px solid var(--line); border-radius:17px; background:var(--surface); box-shadow:var(--shadow-md); }
.auth__card h1 { margin:5px 0 8px; font-size:27px; font-weight:760; letter-spacing:-.035em; }
.auth__card .sub { margin-bottom:24px; color:var(--text-soft); font-size:13px; line-height:1.6; }
.qr { display:inline-block; margin:3px 0 8px; padding:11px; border:1px solid var(--line); border-radius:11px; background:#fff; }
.qr svg { display:block; width:170px; height:170px; }
.codes { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:17px 0 22px; list-style:none; }
.codes li { padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:var(--surface-soft); text-align:center; }
.codes code { color:var(--text); font-size:12.5px; }

/* Responsive */
@media (max-width:1120px) {
  .dashboard-grid { grid-template-columns:1fr; }
  .dashboard-side { display:grid; grid-template-columns:1fr 1fr; }
  .grid-3 { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gate__layout { grid-template-columns:minmax(380px,.85fr) minmax(430px,1.15fr); }
  .gate__steps { grid-template-columns:1fr; gap:9px; }
  .gate__steps li { grid-template-columns:27px 1fr; padding-top:9px; }
  .create-grid { grid-template-columns:1fr; }
  .create-aside { position:static; }
}
@media (max-width:900px) {
  .shell { grid-template-columns:1fr; }
  .topbar { position:sticky; top:0; z-index:60; display:flex; align-items:center; gap:11px; min-height:58px; padding:8px 15px; border-bottom:1px solid var(--line); background:rgba(255,255,255,.94); backdrop-filter:blur(14px); }
  .topbar__burger { width:40px; height:40px; display:grid; place-items:center; border:1px solid var(--line); border-radius:9px; background:var(--surface); }
  .topbar__brand { display:flex; align-items:center; gap:8px; color:var(--text); font-size:12px; font-weight:800; }
  .topbar__theme { display:inline-flex; margin-inline-start:auto; min-width:38px; min-height:38px; padding:7px; }
  .topbar__identity { display:flex; align-items:center; gap:8px; }
  .topbar__avatar { position:relative; width:32px; height:32px; display:grid; place-items:center; overflow:hidden; border:1px solid var(--line); border-radius:9px; background:var(--neutral-soft); }
  .topbar__who { color:var(--text-dim); font-size:11.5px; }
  .rail { position:fixed; inset:0 auto 0 0; z-index:70; width:min(300px,86vw); height:100dvh; transform:translateX(-105%); visibility:hidden; transition:transform .25s ease,visibility 0s linear .25s; box-shadow:24px 0 50px rgba(15,24,32,.22); }
  .rail.is-open { transform:none; visibility:visible; transition:transform .25s ease; }
  .rail__close { display:grid; }
  .rail-backdrop { position:fixed; inset:0; z-index:65; display:block; background:rgba(14,22,29,.45); opacity:0; pointer-events:none; transition:opacity .2s ease; }
  .rail-backdrop.is-on { opacity:1; pointer-events:auto; }
  .stage__main { padding:28px 22px 50px; }
  .grid-2 { grid-template-columns:1fr; }
  .auth { grid-template-columns:1fr; }
  .auth__art { display:none; }
  .auth__form { min-height:100vh; }
  .gate__layout { grid-template-columns:1fr; }
  .gate__layout { grid-template-rows:112px minmax(0,1fr); }
  .gate__story { min-height:112px; max-height:112px; padding:18px 24px; }
  .gate__story::after { left:24px; }
  .gate__pitch, .gate__signature { display:none; }
  .gate__brand img { width:42px; height:42px; }
  .gate__panel { place-items:start center; padding:30px 20px 50px; }
}
@media (max-width:680px) {
  .stage__main { padding:24px 16px 44px; }
  .page-head--row { grid-template-columns:1fr; align-items:start; }
  .page-head--row > :not(:first-child):not(.lede) { justify-self:start; }
  .page-head--row .lede { grid-column:1; }
  .page-head--row > .btn { width:100%; }
  .h-sec { font-size:27px; }
  .overview { display:grid; grid-template-columns:1fr; }
  .overview__item { min-height:42px; }
  .dashboard-side { display:flex; }
  .grid-3 { grid-template-columns:1fr; }
  .card-pad { padding:17px; }
  .section-head { align-items:flex-start; }
  .ftoolbar__actions { width:100%; margin-inline-start:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ftoolbar__actions .drop { position:static; }
  .ftoolbar__actions summary { width:100%; padding-inline:9px; }
  .ftoolbar__actions .drop__panel { position:fixed; inset:72px 16px auto; width:auto; max-width:none; max-height:calc(100dvh - 96px); overflow-y:auto; z-index:80; }
  .dropzone { align-items:center; padding:13px; }
  .dropzone > span:first-of-type { flex-basis:calc(100% - 30px); }
  .file-name { max-width:130px; }
  .table-scroll .ftable { min-width:100%; table-layout:fixed; }
  .table-scroll .ftable.has-date { min-width:520px; }
  .ftable__check { width:32px; }
  .ftable [data-col="size"] { width:66px; }
  .ftable [data-col="date"] { width:128px; }
  .ftable th:last-child, .ftable__actions { width:108px; }
  .ftable__name { max-width:none; }
  .fusage__quota { margin-inline-start:0; }
  .kv div { grid-template-columns:1fr; gap:4px; }
  .kv dd { text-align:start; }
  .editor-foot { flex-direction:column; align-items:flex-start; }
  .editor-foot .actions { width:100%; margin-inline-start:0; }
  .editor-foot .actions .btn { flex:1; padding-inline:10px; }
  .code-editor__surface { min-height:58vh; }
  .gate__box, .auth__card { padding:24px 20px; border-radius:14px; }
  .gate__panel { padding-inline:16px; }
  .gate__brand b { font-size:14px; }
  .codes { grid-template-columns:1fr; }
  .impersonate { flex-direction:column; gap:7px; text-align:center; }
  .theme-toggle--floating { top:12px; right:12px; min-width:38px; padding:7px; }
  .theme-toggle--floating [data-theme-label] { display:none; }
  .form-section { grid-template-columns:1fr; gap:10px; }
  .form-section__number { width:29px; height:29px; }
  .slug-field { flex-direction:column; }
  .slug-field input { border-radius:9px 9px 0 0; }
  .slug-field input { width:100%; flex:none; }
  .slug-field > span { min-height:36px; flex:none; border-left:1px solid var(--line-strong); border-top:0; border-radius:0 0 9px 9px; }
  .user-option { grid-template-columns:18px 34px minmax(0,1fr); }
  .user-option__state { grid-column:2/4; justify-self:start; }
  .create-actions { align-items:stretch; flex-direction:column; }
  .create-actions .btn { width:100%; }
  .tenant-record__head { align-items:center; }
  .tenant-record__facts { grid-template-columns:1fr; }
  .tenant-record__facts > div + div { border-left:0; border-top:1px solid var(--line); }
  .tenant-record__actions { display:grid; grid-template-columns:1fr; }
  .tenant-record__actions .btn { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}
