/* =========================================================================
   Share — Feuille de style (charte reprise du module BDESE)
   Thème clair, barre latérale + contenu, listes de documents type SharePoint.
   Aucun style en ligne (CSP style-src 'self').
   ========================================================================= */
:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --surface-3: #eef1f6;
  --text: #121826;
  --text-2: #4a5568;
  --muted: #7a8599;
  --border: #e3e7ee;
  --border-strong: #cfd6e2;
  --primary: #0f4a6e;
  --primary-2: #16618f;
  --primary-soft: #e6f0f7;
  --accent: #0d9488;
  --ok: #15803d;   --ok-soft: #e7f6ec;
  --warn: #b45309; --warn-soft: #fdf3e2;
  --err: #b91c1c;  --err-soft: #fdecec;
  --info-soft: #eaf2fd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 2px 8px rgba(16, 24, 40, .05);
  --radius: 14px;
  --radius-sm: 9px;
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, -apple-system, Roboto, sans-serif;
  --mono: Consolas, "Cascadia Mono", ui-monospace, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-size: 22px; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 12px; }
.ico { width: 18px; height: 18px; flex: none; }
.ico.sm { width: 14px; height: 14px; }
.ico.xs { width: 11px; height: 11px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pre { white-space: pre-line; }
.ellipsis { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- Structure ---------- */
.app { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px; background: var(--surface); color: var(--text-2); border-right: 1px solid var(--border); overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 6px; color: var(--text); text-decoration: none !important; }
.brand.center { justify-content: center; padding-bottom: 14px; }
.brand-logo { display: block; width: 44px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; letter-spacing: .04em; color: var(--primary); }
.brand-text small { font-size: 11.5px; opacity: .65; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-title { margin: 12px 11px 4px; font-size: 10.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.nav a, .nav-logout {
  display: flex; align-items: center; gap: 11px; padding: 8px 11px; border-radius: 9px; width: 100%;
  color: var(--text-2); text-decoration: none; font: inherit; font-weight: 520; background: none; border: 0; cursor: pointer; text-align: left;
}
.nav a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a:hover, .nav-logout:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
.nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 650; box-shadow: inset 3px 0 0 var(--primary); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--border); padding-top: 12px; }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; text-decoration: none !important; }
.who:hover { background: var(--surface-3); }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.who-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.who-text strong { color: var(--text); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-text small { font-size: 11.5px; color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.topbar-title { flex: 1 1 260px; min-width: 0; }
.topbar-title h1 { font-size: 19px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title p { color: var(--muted); font-size: 12.5px; }
.topbar-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.crumbs a { color: var(--text-2); }
.search { position: relative; display: flex; align-items: center; width: 260px; }
.search .ico { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.search input[type=search] { padding-left: 32px; border-radius: 999px; background: var(--surface); }
.icon-btn.menu-toggle { display: none; }
.content { padding: 22px 28px 40px; display: flex; flex-direction: column; gap: 18px; }

/* ---------- Contrôles ---------- */
.select { display: flex; flex-direction: column; gap: 2px; }
.select > span, .filters .field > span { font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
select, input[type=text], input[type=password], input[type=email], input[type=date], input[type=search], input[type=number], textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 7px 10px; min-height: 36px; width: 100%;
}
input[type=file] { font: inherit; font-size: 13px; padding: 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); width: 100%; }
select { padding-right: 28px; min-width: 150px; }
textarea { min-height: 64px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 55%, transparent); outline-offset: 1px; border-color: var(--primary);
}
input:disabled, textarea:disabled { background: var(--surface-3); color: var(--muted); cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; line-height: 1.4; }
.check input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--primary); flex: none; }
.checks { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.code-input { font-family: var(--mono); font-size: 22px !important; letter-spacing: .3em; text-align: center; min-height: 50px !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px;
  font: inherit; font-weight: 600; font-size: 13.5px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); cursor: pointer; text-decoration: none !important;
  white-space: nowrap; transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-3); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 40%, var(--border)); }
.btn.danger:hover { background: var(--err-soft); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn.block { width: 100%; height: 44px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; font-size: 20px; line-height: 1; }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn:hover { background: var(--surface-3); text-decoration: none; }
form { margin: 0; }

.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,24,40,.16);
}
.dropdown-menu a, .menu-btn { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--text); width: 100%; font: inherit; background: none; border: 0; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .menu-btn:hover { background: var(--surface-3); text-decoration: none; }
.menu-btn.danger { color: var(--err); }
.dropdown-menu small { color: var(--muted); margin-left: auto; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--border); margin: 5px 0; }

/* ---------- Fenêtres modales ---------- */
dialog.modal {
  width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text);
  box-shadow: 0 24px 64px rgba(16, 24, 40, .22);
}
dialog.modal.sm { width: min(600px, calc(100vw - 32px)); }
dialog.modal[open] { display: flex; flex-direction: column; }
dialog.modal > form { display: flex; flex-direction: column; min-height: 0; max-height: calc(100vh - 50px); }
dialog.modal::backdrop { background: rgba(16, 24, 40, .45); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 16px 20px 20px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-head > .ico { color: var(--primary); }
.card-body { padding: 18px; }
.card-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 18px; border-top: 1px solid var(--border); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.doc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 18px; align-items: start; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 11px; border: 1px solid transparent; font-size: 13.5px; }
.alert .ico { margin-top: 1px; }
.alert.ok   { background: var(--ok-soft);   color: var(--ok);   border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert.err  { background: var(--err-soft);  color: var(--err);  border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.alert.info { background: var(--info-soft); color: var(--primary); border-color: color-mix(in srgb, var(--primary) 20%, transparent); }
.alert span { color: var(--text); }

.pill {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); border: 1px solid var(--border);
}
.pill.xs { height: 19px; padding: 0 6px; font-size: 10.5px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.pill.cse { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.pill.muted { color: var(--muted); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.kpi-value { font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kpi-foot { font-size: 12px; color: var(--muted); }

.empty { padding: 44px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico { width: 34px; height: 34px; opacity: .5; }
.empty h2 { color: var(--text); }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); border: 1px solid var(--border); background: var(--surface); }
.tabs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tabs a:hover { text-decoration: none; }
.sticky-save { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: flex-end; gap: 10px; padding: 12px 18px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius); }

/* ---------- Listes ---------- */
.table-wrap { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: 13px; }
.list th { text-align: left; font-size: 11px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 9px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.list td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.list tr:last-child td { border-bottom: 0; }
.list tbody tr:hover td { background: color-mix(in srgb, var(--primary-soft) 40%, var(--surface)); }
.list tr.row-warn td { background: color-mix(in srgb, var(--warn-soft) 60%, var(--surface)); }
.list.audit td.details code { color: var(--text-2); word-break: break-all; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > *, .row-actions form { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters .field { width: 170px; }
.pager { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 18px; border-top: 1px solid var(--border); }
.pager .muted { margin-right: auto; }

.fname { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 560; min-width: 0; }
.fname span:last-child { overflow-wrap: anywhere; }
a.fname:hover span:last-child { color: var(--primary); text-decoration: underline; }
.flags { display: inline-flex; gap: 4px; margin-left: 8px; vertical-align: middle; }
.ftype { display: inline-grid; place-items: center; flex: none; width: 34px; height: 26px; border-radius: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .03em; color: #fff; background: #64748b; }
.ft-pdf { background: #c2410c; } .ft-xls { background: #15803d; } .ft-doc { background: #1d4ed8; } .ft-ppt { background: #b45309; }
.ft-img { background: #7c3aed; } .ft-zip { background: #475569; } .ft-txt { background: #64748b; }
.ft-folder { background: #fdf3e2; color: #b7791f; }
.cat { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.c-blue { background: #e3f1fb; color: #145b8a; }     .dot.c-blue { background: #2563eb; }
.c-teal { background: #e6f6f3; color: #0f6e63; }     .dot.c-teal { background: #0d9488; }
.c-green { background: #e7f6ec; color: #166534; }    .dot.c-green { background: #16a34a; }
.c-amber { background: #fdf0e3; color: #9a4b0b; }    .dot.c-amber { background: #d97706; }
.c-red { background: #fdecec; color: #9f1d1d; }      .dot.c-red { background: #dc2626; }
.c-violet { background: #f1ebfd; color: #5b2ca0; }   .dot.c-violet { background: #7c3aed; }
.c-slate { background: var(--surface-3); color: var(--text-2); } .dot.c-slate { background: #64748b; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; padding: 16px 18px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); text-decoration: none !important; transition: border-color .12s, box-shadow .12s; }
.tile:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.tile-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; flex: none; }
.tile-text { display: flex; flex-direction: column; min-width: 0; }
.tile-text small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dropzone {
  display: flex; align-items: center; justify-content: center; gap: 10px; margin: 14px 18px 0; padding: 14px;
  border: 1.5px dashed var(--border-strong); border-radius: 12px; color: var(--muted); font-size: 13px; background: var(--surface-2); cursor: pointer;
  transition: border-color .12s, background .12s;
}
.dropzone.over { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.dropzone.tall { margin: 0; flex-direction: column; padding: 28px 14px; position: relative; }
.dropzone.tall input[type=file] { border: 0; background: transparent; text-align: center; }

/* ---------- Fiche document ---------- */
.props { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 0; margin: 0; padding: 6px 0; }
.props dt, .props dd { padding: 8px 18px; margin: 0; border-bottom: 1px solid var(--border); }
.props dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.props dt:last-of-type, .props dd:last-of-type { border-bottom: 0; }
.hash { font-size: 11px; color: var(--text-2); word-break: break-all; }
.new-links { border-color: color-mix(in srgb, var(--ok) 40%, var(--border)); }
.copy-row { display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.copy-row input { font-family: var(--mono); font-size: 12px; }

/* ---------- Connexion / pages publiques ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr); }
.login-aside {
  padding: 48px; color: var(--text-2); display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  background: radial-gradient(1200px 600px at -10% 110%, #d6ebe8 0%, transparent 55%), radial-gradient(900px 500px at 110% -10%, #dbe9f4 0%, transparent 50%), var(--bg);
  border-right: 1px solid var(--border);
}
.login-aside h2 { font-size: 32px; line-height: 1.15; font-weight: 720; max-width: 520px; letter-spacing: -.02em; color: var(--primary); }
.login-aside ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; max-width: 460px; }
.login-aside li { display: flex; gap: 10px; align-items: flex-start; }
.login-aside li .ico { color: var(--accent); margin-top: 2px; }
.login-main { display: grid; place-items: center; padding: 32px 20px; background: var(--surface); }
.login-form { width: 100%; max-width: 370px; display: grid; gap: 16px; }
.center-page { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px;
  background: radial-gradient(1000px 500px at 0% 100%, #d6ebe8 0%, transparent 55%), radial-gradient(800px 400px at 100% 0%, #dbe9f4 0%, transparent 50%), var(--bg); }
.center-card { width: 100%; max-width: 500px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 48px rgba(16,24,40,.10); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.choice { display: grid; gap: 10px; }
.choice-item { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none !important; }
.choice-item:hover { border-color: var(--primary); background: var(--primary-soft); }
.choice-item > .ico { width: 26px; height: 26px; color: var(--primary); }
.choice-item span { display: flex; flex-direction: column; }
.choice-item small { color: var(--muted); }
.qr-box { display: grid; place-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.qr { display: block; max-width: 100%; height: auto; }
.mono-key { font-family: var(--mono); font-size: 16px; letter-spacing: .08em; padding: 10px; margin: 8px 0; text-align: center; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; word-break: break-all; }
.steps-list { margin: 0; padding-left: 18px; color: var(--text-2); }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.codes code { padding: 8px; text-align: center; font-size: 14px; letter-spacing: .05em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; }
.doc-card { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.doc-card .ftype { width: 44px; height: 34px; font-size: 11px; }
.doc-card strong { overflow-wrap: anywhere; }
.quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--primary); background: var(--primary-soft); border-radius: 0 8px 8px 0; color: var(--text-2); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; color: var(--text-2); }
.facts li { display: flex; gap: 8px; align-items: flex-start; }
.facts li .ico { margin-top: 3px; color: var(--muted); }
.facts li.warn { color: var(--warn); }
.facts li.warn .ico { color: var(--warn); }
.strength { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: -8px; }
.strength > i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--err); transition: width .2s, background .2s; }
.strength.s2 > i { width: 50%; background: var(--warn); } .strength.s3 > i { width: 75%; background: #ca8a04; } .strength.s4 > i { width: 100%; background: var(--ok); }
.strength.s1 > i { width: 25%; }

.legal-foot { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 11.5px; padding-top: 8px; }
.legal-foot.center { justify-content: center; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .doc-grid, .grid-2 { grid-template-columns: 1fr; }
  .search { width: 100%; order: 3; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  body.side-open .sidebar { transform: none; box-shadow: 0 0 0 100vmax rgba(16,24,40,.25); }
  .icon-btn.menu-toggle { display: grid; }
  .topbar { padding: 12px 16px; }
  .content { padding: 16px 16px 32px; }
  .login { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .form-row, .copy-row { grid-template-columns: 1fr; }
  .props { grid-template-columns: 1fr; }
  .props dt { border-bottom: 0; padding-bottom: 0; }
  .settings-grid { grid-template-columns: 1fr; }
}
.center-card.install { max-width: 760px; }
.center-card.install h2 { margin-top: 8px; color: var(--primary); }
