/* SpaceD — interface claire uniquement, même famille que le portail v12 et la connexion
   de référence (fond #f7f7f5, panneaux blancs, encre #1c1917). Aucune ressource externe. */

@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geistmono-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geistmono-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --bg: #f7f7f5;
  --panel: #ffffff;
  --text: #1c1917;
  --text-2: #57534e;
  --text-3: #78716c;
  --text-4: #a8a29e;
  --border: #e4e2df;
  --line: #efedea;
  --field: #d6d3d1;
  --field-hover: #a8a29e;
  --hover: #f6f5f3;
  --sel: #eeecf8;
  --sel-hover: #e6e4f5;
  --sel-line: #cfcbee;
  --ring: rgba(28, 25, 23, 0.12);
  --button: #1c1917;
  --button-hover: #33302d;
  --ok: #15803d;
  --wait: #b45309;
  --err: #b42318;
  --off: #a8a29e;
  --err-bg: #fef3f2;
  --err-border: #fecdca;
  --warn-bg: #fffaeb;
  --warn-border: #fedf89;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.04), 0 6px 20px rgba(28, 25, 23, 0.08);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --top-h: 56px;
  --side-w: 256px;
  --row-h: 44px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: "ss01" 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; padding: 8px 12px; background: var(--button);
  color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }
.muted { color: var(--text-3); }
.mono-t { font-family: var(--mono); font-size: 12.5px; }
.err-t { color: var(--err); }

/* ------------------------------------------------------------------ connexion (modèle commun) */
.cx { font-size: 15px; line-height: 1.5; }
.cx-page { max-width: 1080px; margin: 0 auto; padding-inline: 40px; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; }
.cx-top { display: flex; align-items: center; height: 68px; border-bottom: 1px solid var(--border); }
.cx-brand { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.cx-brand span { color: var(--text-3); font-weight: 500; }
.cx-main { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 48px 72px; }
.cx-panel { width: 100%; max-width: 392px; padding: 32px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; }
.cx-panel h1 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.cx-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.cx-form { margin-top: 28px; display: grid; gap: 18px; }
.cx-field { display: grid; gap: 6px; }
.cx-field label { font-size: 13px; font-weight: 500; }
.cx-input { display: block; width: 100%; height: 42px; margin: 0; padding: 0 12px; background: #fff; color: var(--text);
  border: 1px solid var(--field); border-radius: 8px; font: inherit; font-size: 15px;
  transition: border-color .12s ease, box-shadow .12s ease; }
.cx-input:hover { border-color: var(--field-hover); }
.cx-input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.cx-input[aria-invalid="true"] { border-color: var(--err); }
.cx-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12); }
.cx-password { position: relative; }
.cx-password .cx-input { padding-right: 88px; }
.cx-toggle { position: absolute; top: 5px; right: 5px; height: 32px; padding: 0 10px; border: 0; border-radius: 6px;
  background: transparent; color: var(--text-2); font: 500 12.5px/1 var(--sans); cursor: pointer; }
.cx-toggle:hover { background: #f5f5f4; color: var(--text); }
.cx-toggle:focus-visible { outline: 2px solid var(--text); outline-offset: 0; }
.cx-captcha { width: 100%; max-width: 222px; background: #fafaf8; border: 1px solid #e5e3de; border-radius: 6px;
  overflow: hidden; }
.cx-captcha svg { display: block; width: 100%; max-width: 220px; height: auto; aspect-ratio: 220 / 64; }
.cx-submit { height: 42px; width: 100%; margin-top: 6px; border: 0; border-radius: 8px; background: var(--button);
  color: #fff; font: 500 14.5px/1 var(--sans); cursor: pointer; transition: background-color .12s ease; }
.cx-submit:hover { background: var(--button-hover); }
.cx-error { margin: 16px 0 0; padding: 10px 12px; background: var(--err-bg); border: 1px solid var(--err-border);
  border-radius: 8px; color: var(--err); font-size: 13.5px; line-height: 1.45; }
.cx-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px 24px; flex-wrap: wrap;
  padding-block: 24px 32px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-3); }
.cx-foot a { color: var(--text-2); }
.cx-foot a:hover { color: var(--text); }

/* ------------------------------------------------------------------ coquille de l'application */
.app-body { overflow: hidden; }
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr);
  height: 100vh; height: 100dvh; }
.topbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; padding: 0 16px 0 20px;
  border-bottom: 1px solid var(--border); background: var(--bg); min-width: 0; }
.brand { display: flex; align-items: baseline; gap: 8px; font-size: 15px; white-space: nowrap; width: calc(var(--side-w) - 36px);
  flex: none; }
.brand-group { color: var(--text-3); font-weight: 500; }
.brand-sep { color: var(--text-4); }
.brand-app { font-weight: 600; letter-spacing: -0.01em; }
.search { flex: 1; max-width: 560px; position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 11px; color: var(--text-3); pointer-events: none; }
.search input { width: 100%; height: 36px; padding: 0 36px 0 36px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--panel); color: var(--text); font-size: 14px; transition: border-color .12s, box-shadow .12s; }
.search input::placeholder { color: var(--text-3); }
.search input:hover { border-color: var(--field); }
.search input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.search input::-webkit-search-cancel-button { display: none; }
.search-kbd { position: absolute; right: 9px; font: 500 11px/1 var(--mono); color: var(--text-3); border: 1px solid var(--border);
  border-radius: 4px; padding: 3px 5px; background: var(--bg); }
.search input:focus + .search-kbd { display: none; }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--text-2); white-space: nowrap; }
a.sync-pill:hover { border-color: var(--field); color: var(--text); }
.sync-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--off); }
.sync-pill.s-ok .dot { background: var(--ok); }
.sync-pill.s-wait .dot { background: var(--wait); }
.sync-pill.s-err .dot { background: var(--err); }
.sync-pill.s-err { color: var(--err); }
.user { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: #ebe8e3;
  color: var(--text); font: 600 13px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.avatar:hover { background: #e2dfd9; }
.user-menu { right: 0; top: 40px; min-width: 220px; }

/* barre latérale */
.sidebar { display: flex; flex-direction: column; min-height: 0; background: var(--bg); border-right: 1px solid var(--border); }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px 8px; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tnode > ul { padding-left: 14px; }
.tnode[aria-expanded="false"] > ul { display: none; }
.trow { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px 0 2px; border-radius: 7px; color: var(--text-2);
  cursor: pointer; user-select: none; }
.trow:hover { background: #efede9; color: var(--text); }
.trow.current { background: #e9e6e1; color: var(--text); font-weight: 550; }
.trow.drop-target { background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); color: var(--text); }
.tnode:focus-visible { outline: none; }
.tnode:focus-visible > .trow { outline: 2px solid var(--text); outline-offset: -2px; }
.twisty { width: 20px; height: 20px; display: grid; place-items: center; color: var(--text-3); border-radius: 4px; flex: none; }
.twisty .i { width: 14px; height: 14px; }
.twisty:hover { color: var(--text); }
.ticon { width: 17px; height: 17px; color: var(--text-3); }
.trow.current .ticon { color: var(--text); }
.tlabel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.tree .loading-row { height: 28px; margin: 2px 0 2px 26px; border-radius: 6px; background: #efede9; width: 60%; }
.side-links { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); display: grid; gap: 1px; }
.side-link { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px 0 8px; border-radius: 7px; color: var(--text-2);
  font-size: 13.5px; }
.side-link:hover { background: #efede9; color: var(--text); }
.side-link.current { background: #e9e6e1; color: var(--text); font-weight: 550; }
.side-link .i { color: var(--text-3); width: 17px; height: 17px; }
.side-link .count { margin-left: auto; font: 500 11.5px/1 var(--mono); color: var(--text-3); }
.side-link.drop-target { background: var(--err-bg); box-shadow: inset 0 0 0 1px var(--err-border); }
.storage { padding: 14px 18px 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-2); }
.storage-row { display: flex; justify-content: space-between; gap: 8px; }
.storage-used { font-weight: 550; color: var(--text); }
.storage-trash { color: var(--text-3); }
.storage-bar { display: block; width: 100%; height: 4px; margin: 8px 0 6px; }
.storage-bar .track { fill: #e7e4df; }
.storage-bar .fill { fill: var(--text); }
.storage-free { color: var(--text-3); }
.scrim { display: none; }

/* zone principale */
.app > main { min-width: 0; min-height: 0; background: var(--panel); }
.main { height: 100%; display: flex; flex-direction: column; min-height: 0; outline: none; }
.flash { margin: 12px 20px 0; padding: 9px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 13.5px; }
.flash-err { background: var(--err-bg); border-color: var(--err-border); color: var(--err); }

/* ------------------------------------------------------------------ boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px;
  border: 1px solid transparent; font: 500 13.5px/1 var(--sans); cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s; }
.btn .i { width: 16px; height: 16px; }
.btn-primary { background: var(--button); color: #fff; }
.btn-primary:hover { background: var(--button-hover); }
.btn-secondary { background: var(--panel); border-color: var(--field); color: var(--text); }
.btn-secondary:hover { border-color: var(--field-hover); background: #fbfaf9; }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--hover); }
.btn.danger { color: var(--err); }
.btn-secondary.danger:hover { border-color: var(--err-border); background: var(--err-bg); }
.btn-ghost.danger:hover { background: var(--err-bg); }
.btn-danger { background: var(--err); color: #fff; }
.btn-danger:hover { background: #9b1c12; }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
  color: var(--text-2); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn[aria-pressed="true"] { background: #efede9; color: var(--text); }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); }
.seg .icon-btn { width: 30px; height: 28px; border-radius: 6px; }
.only-mobile { display: none !important; }

/* ------------------------------------------------------------------ explorateur */
.explorer { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.explorer.scroll { overflow-y: auto; }
.toolbar { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px 10px 20px; border-bottom: 1px solid var(--line); }
.toolbar-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; }
.toolbar-main .crumbs { min-width: 0; flex: 0 1 auto; overflow: hidden; }
.folder-more { width: 30px; height: 30px; color: var(--text-2); border-radius: 7px; }
.folder-more[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.toolbar-actions { display: flex; align-items: center; gap: 8px; }
.page-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs ol { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; min-width: 0; }
.crumbs li { display: flex; align-items: center; min-width: 0; flex-shrink: 1; }
.crumbs li:last-child { flex-shrink: 0.25; }
.crumbs li + li::before { content: ""; width: 16px; height: 16px; flex: none; margin: 0 2px; background: var(--text-4);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 7 5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m10 7 5 5-5 5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.crumbs a, .crumbs .here { display: block; padding: 5px 7px; border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 16px; letter-spacing: -0.01em; }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { background: var(--hover); color: var(--text); }
.crumbs a.drop-target { background: var(--sel); color: var(--text); box-shadow: inset 0 0 0 1px var(--sel-line); }
.crumbs .here { color: var(--text); font-weight: 600; }
.crumbs li:first-child a, .crumbs li:first-child .here { padding-left: 4px; }

.selbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; margin-left: -8px; }
.selcount { font-weight: 600; font-size: 14px; white-space: nowrap; margin-right: 8px; }
.selactions { display: flex; gap: 2px; flex-wrap: nowrap; padding-left: 12px; border-left: 1px solid var(--border); }
.pane-note { margin: 0; padding: 10px 20px; font-size: 13px; color: var(--text-3); border-bottom: 1px solid var(--line); }

.pane { flex: 1; display: flex; min-height: 0; }
.listing-wrap { flex: 1; min-width: 0; overflow: auto; position: relative; outline: none; }
.listing { min-width: 0; }
.lhead, .lrow { display: grid; grid-template-columns: 44px minmax(0, 1fr) 168px 104px 150px 52px; align-items: center; }
.is-search .lhead, .is-search .lrow { grid-template-columns: 44px minmax(0, 1fr) minmax(120px, 220px) 150px 96px 140px 52px; }
.is-trash .lhead, .is-trash .lrow { grid-template-columns: 44px minmax(0, 1fr) minmax(120px, 220px) 150px 96px 92px 52px; }
.lhead { position: sticky; top: 0; z-index: 3; height: 38px; background: var(--panel); border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.lhead > span { display: flex; align-items: center; min-width: 0; }
.lhead button { display: inline-flex; align-items: center; gap: 4px; height: 26px; margin-left: -6px; padding: 0 6px; border: 0; border-radius: 6px;
  background: none; color: inherit; font: inherit; cursor: pointer; }
.lhead button:hover { background: var(--hover); color: var(--text); }
.lhead [aria-sort="ascending"] button, .lhead [aria-sort="descending"] button { color: var(--text); }
.lhead .sort-i { width: 13px; height: 13px; }
.lrow { height: var(--row-h); border-bottom: 1px solid var(--line); cursor: default; user-select: none; -webkit-user-select: none; position: relative; }
.lrow:hover { background: var(--hover); }
.lrow[aria-selected="true"] { background: var(--sel); }
.lrow[aria-selected="true"]:hover { background: var(--sel-hover); }
.lrow:focus { outline: none; }
.lrow:focus-visible, .lrow.kbd-focus { outline: 1.5px solid var(--text); outline-offset: -1.5px; border-radius: 3px; }
.lrow.drop-target { background: var(--sel); box-shadow: inset 0 0 0 1.5px var(--sel-line); }
.lrow.cut { opacity: .45; }
.lrow.is-new { animation: flash-row 1.2s ease; }
@keyframes flash-row { from { background: #f3f1fb; } to { background: transparent; } }
.c-check { display: flex; align-items: center; justify-content: center; height: 100%; }
.check { width: 16px; height: 16px; margin: 0; accent-color: var(--text); cursor: pointer; opacity: 0; transition: opacity .1s; }
.lhead .check, .lrow:hover .check, .lrow[aria-selected="true"] .check, .has-selection .check, .check:focus-visible { opacity: 1; }
.c-name { display: flex; align-items: center; gap: 11px; min-width: 0; padding-right: 16px; }
.thumb { flex: none; display: grid; place-items: center; width: 24px; height: 24px; }
.ficon { width: 24px; height: 24px; }
.nm { display: flex; flex-direction: column; min-width: 0; }
.name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 14px; }
a.name:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--text-4); }
.nm .sub { display: none; font-size: 12.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-trash .nm .sub { display: block; }
.c-date, .c-size, .c-loc, .c-exp { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-variant-numeric: tabular-nums; padding-right: 12px; }
.c-loc a:hover { color: var(--text); text-decoration: underline; }
.c-sync { min-width: 0; display: flex; align-items: center; }
.c-more { display: flex; justify-content: center; }
.row-more { width: 30px; height: 30px; opacity: 0; }
.lrow:hover .row-more, .lrow[aria-selected="true"] .row-more, .lrow:focus-within .row-more, .lrow:focus-visible .row-more,
.row-more:focus-visible, .row-more[aria-expanded="true"] { opacity: 1; }
.row-more[aria-expanded="true"] { background: var(--hover); color: var(--text); }
.rename-input { width: 100%; height: 30px; margin: 0 0 0 -7px; padding: 0 7px; border: 1px solid var(--text); border-radius: 6px;
  box-shadow: 0 0 0 3px var(--ring); font-size: 14px; background: #fff; color: var(--text); }
.rename-input:focus { outline: none; }

.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--off); }
.b-synced::before { background: var(--ok); }
.b-pending::before { background: var(--wait); }
.b-error { color: var(--err); }
.b-error::before { background: var(--err); }
.b-local { color: var(--text-3); }
.b-excluded { color: var(--text-2); }
.sub .badge { vertical-align: middle; }
.b-excluded::before { width: 14px; height: 14px; border-radius: 0; background: var(--text-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 7.1a5.5 5.5 0 0 1 8.65 1.9 4.6 4.6 0 0 1 2.9 7.6M16.1 18.25H7.25a4 4 0 0 1-.6-7.95 5.6 5.6 0 0 1 .3-1.2M4.25 4.25l15.5 15.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8.6 7.1a5.5 5.5 0 0 1 8.65 1.9 4.6 4.6 0 0 1 2.9 7.6M16.1 18.25H7.25a4 4 0 0 1-.6-7.95 5.6 5.6 0 0 1 .3-1.2M4.25 4.25l15.5 15.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* vue grille */
.view-grid .lhead { display: none; }
.view-grid .lbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); gap: 14px; padding: 16px 20px 24px; }
.view-grid .lrow { display: flex; flex-direction: column; align-items: stretch; height: auto; padding: 8px 8px 10px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); }
.view-grid .lrow:hover { background: #fbfaf9; border-color: var(--border); }
.view-grid .lrow[aria-selected="true"] { background: var(--sel); border-color: var(--sel-line); }
.view-grid .c-check { position: absolute; top: 12px; left: 12px; height: auto; z-index: 1; }
.view-grid .c-check .check { width: 17px; height: 17px; }
.view-grid .c-name { flex-direction: column; align-items: stretch; gap: 9px; padding: 0; }
.view-grid .thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 7px; background: #f6f5f2; overflow: hidden; }
.view-grid .lrow[aria-selected="true"] .thumb { background: #e7e4f4; }
.view-grid .ficon { width: 52px; height: 52px; }
.view-grid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.view-grid .nm { padding: 0 2px; }
.view-grid .name { font-size: 13.5px; }
.view-grid .nm .sub { display: block; margin-top: 1px; }
.view-grid .c-date, .view-grid .c-size, .view-grid .c-loc, .view-grid .c-exp { display: none; }
.view-grid .c-sync { display: none; }
.view-grid .nm .sub .badge { display: inline-flex; font-size: 0; gap: 0; margin-left: 7px; vertical-align: 1px; }
.view-grid .c-more { position: absolute; top: 12px; right: 12px; }
.view-grid .row-more { width: 28px; height: 28px; background: rgba(255, 255, 255, .92); border: 1px solid var(--border); border-radius: 7px; }

/* états */
.empty { position: absolute; inset: 38px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 32px 24px 64px; }
.view-grid ~ .empty { inset: 0; }
.empty-icon { width: 40px; height: 40px; color: var(--text-4); margin-bottom: 14px; }
.empty-title { margin: 0; font-size: 15px; font-weight: 600; }
.empty-text { margin: 6px 0 0; max-width: 380px; color: var(--text-3); font-size: 13.5px; }
.empty-actions { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }
.empty-hint { margin: 22px 0 0; font-size: 12.5px; color: var(--text-3); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.kbd-icon { display: inline-grid; place-items: center; width: 22px; height: 20px; border: 1px solid var(--border); border-radius: 5px; background: var(--panel); color: var(--text-2); }
.kbd-icon .i { width: 15px; height: 15px; }
.dropzone { position: absolute; inset: 6px; z-index: 5; border: 1.5px dashed var(--text-2); border-radius: 12px; background: rgba(247, 247, 245, .88);
  display: grid; place-items: center; pointer-events: none; }
.dropzone-label { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--button); color: #fff; border-radius: 10px;
  font-weight: 500; }
.statusline { padding: 8px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); background: var(--panel); }
.noscript { padding: 16px 20px; color: var(--text-2); }
.skeleton .lrow { pointer-events: none; }
.sk { display: block; height: 10px; border-radius: 5px; background: #efede9; }
.state-msg { padding: 48px 24px; text-align: center; color: var(--text-2); }
.state-msg .btn { margin-top: 12px; }

/* panneau de détails */
.details { width: 320px; flex: none; border-left: 1px solid var(--line); overflow-y: auto; background: var(--panel); }
.details-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 12px 12px 18px; border-bottom: 1px solid var(--line); }
.details-head h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--text-2); }
.details-hero { padding: 18px 18px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.details-hero .hero-thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; background: #f6f5f2; display: grid; place-items: center; overflow: hidden; }
.details-hero .hero-thumb img { width: 100%; height: 100%; object-fit: contain; }
.details-hero .ficon { width: 56px; height: 56px; }
.details-hero .dname { font-weight: 600; font-size: 14.5px; word-break: break-word; }
.details-hero .tag { font-size: 11.5px; color: var(--text-3); border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; }
.details dl { margin: 0; padding: 4px 18px 18px; }
.details dl div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 12px; color: var(--text-3); margin-bottom: 2px; }
.details dd { margin: 0; font-size: 13.5px; word-break: break-word; }
.details .d-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 18px 18px; }

.nm .sub .badge { display: none; }
.sk-row .c-name { gap: 12px; }
.sk-ico { width: 22px; height: 22px; border-radius: 5px; }
.drag-ghost { position: fixed; top: -200px; left: -200px; display: inline-flex; align-items: center; gap: 8px; max-width: 280px;
  padding: 7px 12px 7px 9px; background: var(--button); color: #fff; border-radius: 8px; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.drag-ghost .ficon { width: 20px; height: 20px; }
.viewer-on { overflow: hidden; }

/* ------------------------------------------------------------------ menus, dialogues, notifications */
.menu { position: absolute; z-index: 60; min-width: 208px; padding: 5px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); }
.menu-fixed { position: fixed; }
.menu-head { display: grid; padding: 8px 10px 9px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.menu-head span { color: var(--text-3); font-size: 12px; }
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 0; border-radius: 6px;
  background: none; color: var(--text); font: 400 13.5px/1 var(--sans); text-align: left; cursor: pointer; white-space: nowrap; }
.menu-item .i { width: 16px; height: 16px; color: var(--text-3); }
.menu-item:hover, .menu-item:focus-visible { background: var(--hover); outline: none; }
.menu-item.danger { color: var(--err); }
.menu-item.danger .i { color: var(--err); }
.menu-item kbd { margin-left: auto; font: 11px/1 var(--mono); color: var(--text-3); }
.menu-item[aria-checked="true"]::after { content: ""; margin-left: auto; width: 14px; height: 14px; background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4.25 4.25 8.75-9.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5.5 12.5 4.25 4.25 8.75-9.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.menu-sep { height: 1px; margin: 5px 4px; background: var(--line); }

dialog.dlg { width: min(440px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel);
  color: var(--text); box-shadow: var(--shadow); }
dialog.dlg::backdrop { background: rgba(28, 25, 23, .28); }
.dlg-body { padding: 22px 22px 8px; }
.dlg h2 { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.dlg p { margin: 0; color: var(--text-2); font-size: 13.5px; }
.dlg .field { margin-top: 16px; }
.dlg .field input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--field); border-radius: 8px; font-size: 14.5px; color: var(--text); }
.dlg .field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px var(--ring); }
.dlg .dlg-error { margin-top: 10px; color: var(--err); font-size: 13px; }
.dlg .check-line { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.dlg .check-line input { accent-color: var(--text); width: 16px; height: 16px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 22px 20px; flex-wrap: wrap; }
.dlg-wide { width: min(520px, calc(100vw - 32px)); }
.picker { margin-top: 14px; height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 6px; }
.picker .trow[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.picker .trow.chosen { background: var(--sel); box-shadow: inset 0 0 0 1px var(--sel-line); color: var(--text); }
.picker-target { margin-top: 10px; font-size: 13px; color: var(--text-2); min-height: 18px; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; justify-items: center;
  pointer-events: none; }
.toast { display: flex; align-items: center; gap: 14px; min-height: 42px; max-width: min(560px, calc(100vw - 32px)); padding: 9px 10px 9px 14px;
  background: #1c1917; color: #fafaf9; border-radius: 10px; font-size: 13.5px; box-shadow: 0 4px 16px rgba(28, 25, 23, .18);
  pointer-events: auto; animation: toast-in .16s ease-out; }
.toast.err { background: #7a1a12; }
.toast .t-msg { flex: 1; }
.toast button { border: 0; background: rgba(255,255,255,.1); color: #fff; height: 28px; padding: 0 10px; border-radius: 6px; font: 500 13px/1 var(--sans);
  cursor: pointer; }
.toast button:hover { background: rgba(255,255,255,.18); }
.toast .t-close { background: none; width: 28px; padding: 0; opacity: .7; }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* envois */
.uploads { position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 380px; max-height: min(460px, 70vh); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.up-head { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 16px; border-bottom: 1px solid var(--line); }
.up-title { flex: 1; font-weight: 600; font-size: 13.5px; }
.up-total { height: 3px; background: #efede9; }
.up-total span { display: block; height: 100%; width: 0; background: var(--text); transition: width .2s; }
.up-list { overflow-y: auto; }
.uploads.collapsed .up-list { display: none; }
.up-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 10px 9px 16px; border-bottom: 1px solid var(--line); }
.up-item:last-child { border-bottom: 0; }
.up-item .ficon { width: 22px; height: 22px; }
.up-name { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-meta { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-bar { height: 3px; margin-top: 5px; background: #efede9; border-radius: 2px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; background: var(--text); }
.up-item.done .up-bar, .up-item.failed .up-bar, .up-item.cancelled .up-bar { display: none; }
.up-item.failed .up-meta { color: var(--err); }
.up-state { width: 28px; height: 28px; display: grid; place-items: center; color: var(--text-3); }
.up-item.done .up-state { color: var(--ok); }

/* visionneuse */
.viewer { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; background: #f3f2ef; }
.viewer-bar { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 10px 0 16px; background: var(--panel); border-bottom: 1px solid var(--border); }
.viewer-bar .ficon { width: 22px; height: 22px; }
.viewer-title { flex: 1; min-width: 0; }
.viewer-title strong { display: block; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-title span { display: block; font-size: 12px; color: var(--text-3); }
.viewer-stage { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; padding: 20px 64px; }
.viewer-stage img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; box-shadow: 0 1px 3px rgba(28,25,23,.12); }
.viewer-stage iframe { width: 100%; height: 100%; border: 1px solid var(--border); border-radius: 6px; background: #fff; }
.viewer-stage video { max-width: 100%; max-height: 100%; background: #000; border-radius: 6px; }
.viewer-stage audio { width: min(520px, 100%); }
.viewer-stage pre { width: 100%; height: 100%; margin: 0; overflow: auto; padding: 20px 24px; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; font: 12.5px/1.6 var(--mono); white-space: pre-wrap; word-break: break-word; color: var(--text); }
.viewer-audio { display: grid; justify-items: center; gap: 18px; }
.viewer-audio .ficon { width: 72px; height: 72px; }
.viewer-none { display: grid; justify-items: center; gap: 10px; text-align: center; color: var(--text-2); }
.viewer-none .ficon { width: 64px; height: 64px; }
.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--panel); display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.viewer-nav:hover { color: var(--text); border-color: var(--field); }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
.viewer-note { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--text-3); }

/* ------------------------------------------------------------------ Synchronisation */
.sheet { padding: 8px 20px 40px; max-width: 1100px; }
.block { margin-top: 22px; }
.block h2 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--text-2); text-transform: none; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; overflow-wrap: anywhere; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cols .facts div { grid-template-columns: 130px minmax(0, 1fr); }
.actions-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.actions-row form { margin: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px;
  background: #fbfaf9; font-size: 13.5px; }
.notice .i { color: var(--text-2); margin-top: 1px; }
.notice > div { flex: 1; display: grid; gap: 3px; }
.notice span { color: var(--text-2); }
.notice-warn { background: var(--warn-bg); border-color: var(--warn-border); }
.notice-warn .i { color: var(--wait); }
.notice form { margin: 0; }
.table { border-top: 1px solid var(--line); font-size: 13px; }
.trow-h, .trow-d { display: grid; grid-template-columns: 190px minmax(0, 1.4fr) 150px minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.trow-h { color: var(--text-3); font-size: 12px; }
.trow-d > span { overflow-wrap: anywhere; }
.block-note { margin: 0 0 10px; font-size: 13px; }
.excl-table .trow-h, .excl-table .trow-d { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 150px 210px; align-items: center; }
.excl-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.excl-name .ficon { width: 22px; height: 22px; flex: none; }
.excl-name a { font-weight: 500; }
.excl-name a:hover { text-decoration: underline; }
.excl-action { display: flex; justify-content: flex-end; }
.excl-action form { margin: 0; }

/* ------------------------------------------------------------------ écrans moyens */
@media (max-width: 1180px) {
  .selactions .btn span { display: none; }
  .selactions .btn { width: 36px; padding: 0; }
  .lhead, .lrow { grid-template-columns: 44px minmax(0, 1fr) 150px 92px 130px 48px; }
  .is-search .lhead, .is-search .lrow { grid-template-columns: 44px minmax(0, 1fr) minmax(100px, 180px) 132px 130px 48px; }
  .is-search .c-size { display: none; }
  .is-trash .lhead, .is-trash .lrow { grid-template-columns: 44px minmax(0, 1fr) minmax(100px, 180px) 132px 80px 48px; }
  .is-trash .c-size { display: none; }
  .details { width: 280px; }
}

/* ------------------------------------------------------------------ mobile */
@media (max-width: 760px) {
  :root { --row-h: 60px; }
  .cx-page { padding-inline: 16px; }
  .cx-top { height: 60px; }
  .cx-main { align-items: flex-start; padding-block: 32px 48px; }
  .cx-panel { padding: 24px 20px; }
  .cx-input { font-size: 16px; }

  .only-mobile { display: inline-grid !important; }
  .desk-only { display: none !important; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { padding: 0 8px; gap: 6px; }
  .brand { width: auto; flex: 1; min-width: 0; }
  .brand-group, .brand-sep { display: none; }
  .search { display: none; position: absolute; left: 8px; right: 8px; top: 10px; max-width: none; z-index: 20; }
  .search-open .search { display: flex; }
  .search input { height: 38px; font-size: 16px; }
  .search-kbd { display: none; }
  .topbar-end { gap: 4px; }
  .topbar .sync-pill { padding: 0; width: 34px; justify-content: center; border: 0; background: none; }
  .topbar .sync-pill .label { display: none; }
  .topbar .sync-pill .dot { width: 9px; height: 9px; }
  .toolbar .sync-pill { padding: 0 10px; }
  .sidebar { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(320px, 86vw); transform: translateX(-102%);
    transition: transform .2s ease; box-shadow: var(--shadow); }
  .drawer-open .sidebar { transform: none; }
  .drawer-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(28, 25, 23, .28); }
  .trow { height: 42px; }
  .side-link { height: 44px; }
  .app > main { grid-column: 1; }
  .toolbar.selecting .toolbar-actions { display: none; }
  .view-grid:not(.has-selection) .c-check { display: none; }
  .view-grid .row-more { opacity: 1; width: 34px; height: 34px; }
  .menu-item kbd { display: none; }
  .viewer-bar { gap: 2px; padding: 0 4px 0 12px; }
  .viewer-bar .btn span { display: none; }
  .viewer-bar .btn { width: 40px; padding: 0; border: 0; }
  .viewer-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .toolbar { padding: 8px 8px 8px 12px; min-height: 56px; }
  .crumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .crumbs li:nth-last-child(2):not(:last-child) a { font-size: 0; padding: 6px 4px; }
  .crumbs li:nth-last-child(2):not(:last-child) a::before { content: "‹"; font-size: 22px; line-height: 1; color: var(--text-2); }
  .crumbs li::before { display: none !important; }
  .crumbs li:last-child { max-width: 100%; }
  .crumbs .here { font-size: 17px; }
  .folder-more { width: 40px; height: 40px; flex: none; }
  .toolbar-actions .btn-primary span { display: none; }
  .toolbar-actions .btn-primary { width: 40px; padding: 0; height: 40px; border-radius: 10px; }
  .icon-btn { width: 40px; height: 40px; }
  .selbar { gap: 2px; margin-left: -4px; }
  .selcount { font-size: 13.5px; margin-right: 0; }
  .selactions { padding-left: 4px; border-left: 0; margin-left: auto; }
  .selactions .btn span { display: none; }
  .selactions .btn { width: 38px; padding: 0; height: 40px; }
  .lhead { display: none; }
  .lrow, .is-search .lrow, .is-trash .lrow { grid-template-columns: 0 minmax(0, 1fr) 44px; }
  .has-selection .lrow { grid-template-columns: 40px minmax(0, 1fr) 44px; }
  .lrow .c-check { overflow: hidden; }
  .is-search .nm .sub { display: block; }
  .c-date, .c-size, .c-loc, .c-exp, .c-sync { display: none; }
  .c-name { padding-left: 14px; gap: 12px; }
  .has-selection .c-name { padding-left: 0; }
  .thumb, .ficon { width: 30px; height: 30px; }
  .nm .sub { display: block; }
  .nm .sub .badge { display: inline-flex; margin-left: 8px; font-size: 12px; vertical-align: -1px; }
  .row-more { opacity: 1; width: 40px; height: 40px; }
  .check { opacity: 1; width: 20px; height: 20px; }
  .view-grid .lbody { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
  .view-grid .lrow { grid-template-columns: none; }
  .view-grid .c-name { padding-left: 0; }
  .view-grid .thumb { width: 100%; height: auto; }
  .view-grid .ficon { width: 44px; height: 44px; }
  .details { position: fixed; z-index: 55; inset: auto 0 0 0; width: auto; max-height: 78vh; border: 1px solid var(--border); border-radius: 14px 14px 0 0;
    box-shadow: var(--shadow); }
  .uploads { left: 8px; right: 8px; bottom: 8px; width: auto; }
  .toasts { bottom: 12px; }
  .viewer-stage { padding: 12px; }
  .viewer-nav { display: none; }
  .statusline { padding: 8px 14px; }
  .pane-note { padding: 10px 14px; }
  .sheet { padding: 4px 14px 32px; }
  .cols { grid-template-columns: 1fr; }
  .facts div, .cols .facts div { grid-template-columns: 1fr; gap: 2px; }
  .trow-h { display: none; }
  .trow-d, .excl-table .trow-d { grid-template-columns: 1fr; gap: 4px; }
  .excl-action { justify-content: flex-start; margin-top: 4px; }
  .menu-item { height: 44px; font-size: 15px; }
  .menu-fixed.sheet-menu { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; min-width: 0; border-radius: 14px; padding: 6px; }
  dialog.dlg { margin: auto auto 8px; width: calc(100vw - 16px); }
  .dlg-actions .btn { height: 42px; }
  .empty { inset: 0; }
}

@media (pointer: coarse) {
  .check { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
