/* ==========================================================================
   WATER — Layout system
   A fixed app frame (top bar, stage, dock) and five window types. When a
   screen has several regions, they live in ONE window split by hairlines,
   not in separate floating panels.
   ========================================================================== */

:root {
  /* Material: the glass panel of the background lab */
  --panel-bg: rgb(255 255 255 / 0.5);
  --panel-border: rgb(255 255 255 / 0.28);
  --panel-shadow:
    0 1px 1px rgb(255 255 255 / 0.35) inset,
    0 0 0 1px rgb(14 39 67 / 0.045),
    0 10px 28px -16px rgb(14 39 67 / 0.24);
  --panel-blur: blur(22px) saturate(1.3);
  /* Floating layer (dialogs, popovers): same material, denser */
  --float-bg: rgb(248 251 254 / 0.82);
  --float-shadow:
    0 1px 1px rgb(255 255 255 / 0.5) inset,
    0 0 0 1px rgb(14 39 67 / 0.06),
    0 24px 48px -20px rgb(14 39 67 / 0.35);

  /* Color */
  --ink: #15314a;
  --ink-2: #4a6179;
  --ink-3: #74879a;
  --brand: #15668a;
  --accent: #2f6aa8;
  --hair: rgb(14 39 67 / 0.08);
  --hair-strong: rgb(14 39 67 / 0.14);
  --tint-side: rgb(255 255 255 / 0.22);     /* side region: a little lighter */
  --tint-hover: rgb(255 255 255 / 0.45);
  --tint-active: rgb(255 255 255 / 0.75);
  --field-bg: rgb(255 255 255 / 0.62);

  /* Maximum container widths */
  --w-sheet: 440px;        /* Sheet: access, short steps */
  --w-column: 640px;       /* Column: one list or a long form */
  --w-window: 1280px;      /* Window: split or board */
  --w-dialog-s: 480px;     /* Dialog S: a confirmation, one question */
  --w-dialog-m: 640px;     /* Dialog M: create or edit one object */
  --w-dialog-l: 960px;     /* Dialog L: settings with their own navigation */
  --w-palette: 720px;      /* Palette: global search */

  /* Region widths inside a split window */
  --r-nav: 248px;          /* Navigation of a project or room */
  --r-list: 340px;         /* List that opens a detail */
  --r-inspector: 320px;    /* Details panel, on the right */

  /* Frame */
  --appbar-h: 56px;
  --dock-h: 72px;
  --gutter: 24px;
  --region-head-h: 56px;

  /* Radii and spacing (base 8) */
  --r-window: 16px;
  --r-control: 10px;
  --r-item: 10px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-6: 24px; --sp-8: 32px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.45 var(--font); color: var(--ink); background: #cfe0ea; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Scrollbar: the same everywhere (thin, translucent, no arrows).
   Chrome and Safari use the pseudo-elements; Firefox uses the standard properties
   (in Chrome the standard ones would draw arrows on Windows). */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { border: 3px solid transparent; border-radius: 999px; background: rgb(14 39 67 / 0.22) padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgb(14 39 67 / 0.38); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: rgb(14 39 67 / 0.22) transparent; } }

/* Keyboard focus: one ring in the brand colour, only when navigating with the keyboard */
:focus { outline: none; }
:focus-visible { outline: 2px solid rgb(47 106 168 / 0.6); outline-offset: 2px; }
dialog:focus-visible { outline: none; }
h1, h2, h3, p { margin: 0; }

/* ---- App frame ---------------------------------------------------------- */
.app {
  position: relative; z-index: 1;
  height: 100dvh;
  display: grid;
  grid-template-rows: var(--appbar-h) minmax(0, 1fr) var(--dock-h);
  grid-template-columns: minmax(0, 1fr);
}
body[data-chrome="none"] .app { grid-template-rows: minmax(0, 1fr); }

/* The top bar lines up with the edges of the wide window: the global search
   ends where the window ends, instead of floating in the corner. */
.appbar {
  width: min(var(--w-window), 100% - 2 * var(--gutter));
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
}
.appbar__brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; font-size: 15px; color: var(--brand); text-decoration: none; }
.appbar__brand img { height: 30px; width: auto; display: block; }
.appbar__tools { display: flex; align-items: center; gap: var(--sp-2); }

.gsearch {
  width: 280px; height: 36px; padding: 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
  border-radius: var(--r-control); cursor: pointer; color: var(--ink-2);
  background: var(--panel-bg); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow);
  backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
}
.gsearch span { flex: 1; text-align: left; }
.gsearch svg { width: 16px; height: 16px; flex: none; }
.gsearch kbd { white-space: nowrap; font: 11px var(--font); color: var(--ink-3); border: 1px solid var(--hair-strong); border-radius: 5px; padding: 0 5px; }

.stage {
  min-height: 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-items: stretch;
}
.stage--center { align-items: center; overflow: auto; padding-block: var(--sp-6); }

.dockbar { display: grid; place-items: center; }
.dock {
  display: flex; gap: var(--sp-1); padding: var(--sp-1);
  border-radius: 14px;
  background: var(--panel-bg); border: 1px solid var(--panel-border); box-shadow: var(--panel-shadow);
  backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
}
.dock a {
  width: 64px; height: 44px; border-radius: var(--r-item);
  display: grid; place-items: center; align-content: center; gap: 2px;
  color: var(--ink-2); text-decoration: none; font-size: 10px;
}
.dock a svg { width: 24px; height: 24px; }
.dock a:hover { background: var(--tint-hover); }
.dock a[aria-current="page"] { background: var(--tint-active); color: var(--ink); }

/* ---- Window ----------------------------------------------------------- */
.win {
  --w: var(--w-window);
  position: relative;
  width: min(var(--w), 100%);
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--r-window);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
}

/* Type 1 · Sheet: height follows content, centred */
.win--sheet  { --w: var(--w-sheet); height: auto; padding: var(--sp-8) var(--sp-6) var(--sp-6); display: block; }
/* Type 2 · Column: a single region */
.win--column { --w: var(--w-column); grid-template-columns: minmax(0, 1fr); }
/* Type 3 · Split list + detail */
.win--list   { grid-template-columns: var(--r-list) minmax(0, 1fr); }
/* Type 4 · Split nav + content */
.win--nav    { grid-template-columns: var(--r-nav) minmax(0, 1fr); }
/* Type 4b · Three zones: list + content + details */
.win--three  { grid-template-columns: var(--r-list) minmax(0, 1fr) var(--r-inspector); }
/* Type 5 · Board: one wide region (grids, directories) */
.win--board  { grid-template-columns: minmax(0, 1fr); }

/* ---- Regions ------------------------------------------------------------- */
.region {
  min-width: 0; min-height: 0;
  display: grid; grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
}
.region + .region { border-left: 1px solid var(--hair); }
.region--side { background: var(--tint-side); }

.region__head {
  min-height: var(--region-head-h);
  padding: var(--sp-3) var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-2);
  border-bottom: 1px solid var(--hair);
}
.region__head h1, .region__head h2 { font-size: 15px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.region__head .crumbs { font-size: 12px; color: var(--ink-3); font-weight: 400; display: block; }
.region__tools { padding: var(--sp-3) var(--sp-4) var(--sp-2); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-2); min-width: 0; }
.region__body { min-height: 0; overflow: auto; }
.region__body--pad { padding: var(--sp-4) var(--sp-6) var(--sp-6); }
.region__foot { padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--hair); }
.region--stack { grid-template-rows: auto auto minmax(0, 1fr); }
.region--stack-foot { grid-template-rows: auto minmax(0, 1fr) auto; }

/* ---- Controls --------------------------------------------------------- */
.field {
  height: 36px; padding: 0 var(--sp-3);
  display: flex; align-items: center; gap: var(--sp-2);
  border-radius: var(--r-control);
  background: var(--field-bg); border: 1px solid var(--hair);
  color: var(--ink-3);
}
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.field:focus-within { border-color: rgb(47 106 168 / 0.45); box-shadow: 0 0 0 3px rgb(47 106 168 / 0.12); }
.field svg { width: 16px; height: 16px; flex: none; }
.field--big { height: 48px; font-size: 15px; }
textarea.field { height: auto; min-height: 88px; padding: var(--sp-2) var(--sp-3); resize: vertical; color: var(--ink); width: 100%; }
label.lbl { display: block; font-size: 12px; color: var(--ink-2); margin: var(--sp-4) 0 var(--sp-1); }

.btn {
  height: 36px; padding: 0 var(--sp-4);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  border-radius: var(--r-control); cursor: pointer; white-space: nowrap;
  background: rgb(255 255 255 / 0.6); border: 1px solid var(--hair-strong);
}
.btn:hover { background: rgb(255 255 255 / 0.85); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: #285e96; }
.btn--ghost { background: none; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--tint-hover); }
.btn--block { width: 100%; height: 44px; }
.btn svg { width: 16px; height: 16px; }
.icon-btn {
  width: 32px; height: 32px; flex: none; border: 0; background: none; cursor: pointer;
  border-radius: 8px; display: grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--tint-hover); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

.tabs { display: flex; gap: var(--sp-1); min-width: 0; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; white-space: nowrap;
  height: 30px; padding: 0 var(--sp-3); border: 0; border-radius: 8px; background: none; cursor: pointer; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
}
.tabs button:hover { background: var(--tint-hover); }
.tabs button[aria-selected="true"] { background: var(--tint-active); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--hair); }
.tabs--fill button { flex: 1; justify-content: center; }
.count { font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; display: inline-grid; place-items: center; }
.chip { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: rgb(21 102 138 / 0.1); color: var(--brand); white-space: nowrap; }
.chip--muted { background: rgb(14 39 67 / 0.06); color: var(--ink-2); }
.row { display: flex; align-items: center; gap: var(--sp-2); }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.section-label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: var(--sp-4) var(--sp-4) var(--sp-2); }

/* ---- Lists ------------------------------------------------------------ */
.list { list-style: none; margin: 0; padding: 0 var(--sp-2) var(--sp-2); }
.item {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-2); border-radius: var(--r-item); cursor: pointer;
}
.item:hover { background: var(--tint-hover); }
.item.is-active { background: var(--tint-active); box-shadow: 0 0 0 1px var(--hair); }
.item__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__sub { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__meta { font-size: 11px; color: var(--ink-3); text-align: right; display: grid; justify-items: end; align-content: start; gap: 6px; }
.item--compact { grid-template-columns: 20px minmax(0, 1fr) auto; padding: 8px var(--sp-2); align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--brand); background: rgb(255 255 255 / 0.8); box-shadow: 0 0 0 1px var(--hair); }
.avatar--sq { border-radius: 8px; }
.check { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--hair-strong); background: rgb(255 255 255 / 0.6); margin-top: 1px; }

.nav { list-style: none; margin: 0; padding: var(--sp-2); }
.nav a {
  display: flex; align-items: center; gap: var(--sp-2); height: 34px; padding: 0 var(--sp-2);
  border-radius: 8px; color: var(--ink-2); text-decoration: none;
}
.nav a:hover { background: var(--tint-hover); }
.nav a[aria-current="page"] { background: var(--tint-active); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--hair); }
.nav a svg { width: 16px; height: 16px; flex: none; }
.nav__label { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding: var(--sp-4) var(--sp-2) var(--sp-1); }
.nav .sub a { padding-left: 32px; height: 30px; }

/* Detail content */
.props { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-2) var(--sp-4); margin: var(--sp-4) 0 var(--sp-6); }
.props dt { color: var(--ink-3); }
.props dd { margin: 0; }
.doc-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.block-title { font-size: 13px; font-weight: 600; margin: var(--sp-6) 0 var(--sp-2); }
.card {
  border-radius: 12px; background: rgb(255 255 255 / 0.55); box-shadow: 0 0 0 1px var(--hair);
  padding: var(--sp-4);
}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--sp-4); }
.cover { height: 96px; margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) var(--sp-3); border-radius: 12px 12px 0 0;
         background: linear-gradient(135deg, #b6cad2, #6c92ac); }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: var(--sp-3); min-width: 840px; }
.kanban__col { border-radius: 12px; background: rgb(255 255 255 / 0.25); box-shadow: 0 0 0 1px var(--hair); padding: var(--sp-2); display: grid; gap: var(--sp-2); align-content: start; }
.kanban__col h3 { font-size: 12px; font-weight: 600; color: var(--ink-2); padding: var(--sp-1) var(--sp-1) 0; }
.kanban .card { padding: var(--sp-3); }

/* Chat */
.chat { padding: var(--sp-6); display: grid; gap: var(--sp-3); align-content: end; min-height: 100%; }
/* Bubbles: their own colours with the relief of the original: a vertical base
   gradient, a radial highlight on top, a glow at the bottom, a light edge on
   top and a short double shadow. */
.msg {
  justify-self: start; max-width: 72%; padding: 10px 14px; border-radius: 14px; border-bottom-left-radius: 4px;
  background:
    radial-gradient(90% 120% at 20% 0%, rgb(255 255 255 / 0.9), rgb(255 255 255 / 0) 60%),
    radial-gradient(75% 90% at 50% 115%, rgb(244 249 255 / 0.55), rgb(244 249 255 / 0)),
    linear-gradient(180deg, rgb(253 254 255 / 0.96) 0%, rgb(236 243 250 / 0.92) 55%, rgb(219 231 244 / 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 1),
    inset 0 0 0 1px rgb(255 255 255 / 0.35),
    0 1px 1px rgb(14 39 67 / 0.12),
    0 4px 10px rgb(14 39 67 / 0.10);
}
.msg--me {
  justify-self: end; color: #fff; border-bottom-left-radius: 14px; border-bottom-right-radius: 4px;
  background:
    radial-gradient(90% 120% at 80% 0%, rgb(255 255 255 / 0.18), rgb(255 255 255 / 0) 60%),
    radial-gradient(75% 90% at 50% 115%, rgb(79 208 232 / 0.26), rgb(79 208 232 / 0)),
    linear-gradient(180deg, #4a85c2 0%, var(--accent) 55%, #1f4f86 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.38),
    0 1px 1px rgb(21 70 168 / 0.18),
    0 5px 12px rgb(47 106 168 / 0.18);
}
.msg__who { font-size: 11px; color: var(--ink-3); margin-bottom: 2px; }
.composer { margin: 0 var(--sp-4) var(--sp-4); }

/* ---- Dialogs and palette ------------------------------------------------ */
dialog.dlg {
  padding: 0; border: 1px solid rgb(255 255 255 / 0.5); border-radius: var(--r-window);
  width: min(var(--w), 100% - 2 * var(--gutter)); max-height: min(720px, 100dvh - 2 * var(--gutter));
  color: var(--ink);
  background: var(--float-bg); box-shadow: var(--float-shadow);
  backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
  overflow: hidden;
}
dialog.dlg[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: dlg-in 260ms var(--ease); }
dialog.dlg::backdrop { background: rgb(14 39 67 / 0.18); backdrop-filter: blur(2px); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.dlg--s { --w: var(--w-dialog-s); }
.dlg--m { --w: var(--w-dialog-m); }
.dlg--l { --w: var(--w-dialog-l); height: min(640px, 100dvh - 2 * var(--gutter)); }
.dlg--palette { --w: var(--w-palette); margin-top: 12vh; }
.dlg__head { padding: var(--sp-4) var(--sp-4) var(--sp-4) var(--sp-6); display: flex; align-items: center; gap: var(--sp-2); border-bottom: 1px solid var(--hair); }
.dlg__head h2 { font-size: 15px; font-weight: 600; flex: 1; }
.dlg__body { padding: var(--sp-4) var(--sp-6) var(--sp-6); overflow: auto; }
.dlg__foot { padding: var(--sp-3) var(--sp-6); border-top: 1px solid var(--hair); display: flex; justify-content: flex-end; gap: var(--sp-2); }
.dlg--l .dlg__split { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 0; }
.dlg--l .dlg__split > nav { background: var(--tint-side); border-right: 1px solid var(--hair); overflow: auto; }

/* ---- Compact sizes only ------------------------------------------------- */
.only-compact, .only-phone { display: none !important; }
/* .hide-phone: secondary actions that move into a menu on phones */

/* ---- Measurement labels (Review panel → Container measurements) -------- */
html.show-spec [data-spec] { outline: 1px dashed rgb(201 74 74 / 0.6); outline-offset: -1px; }
html.show-spec [data-spec]::after {
  content: attr(data-spec);
  position: absolute; z-index: 30; left: 8px; bottom: 8px;
  font: 600 10px/1 var(--font); letter-spacing: 0.02em;
  padding: 4px 6px; border-radius: 4px; background: #c94a4a; color: #fff; pointer-events: none; white-space: nowrap;
}
html.show-spec .win[data-spec]::after { left: auto; right: 8px; background: #7a2f2f; }
html.show-spec .region[data-spec], html.show-spec .win[data-spec] { position: relative; }

/* ==========================================================================
   RESPONSIVE
   ≥ 1200    everything visible
   960–1199  the details region (inspector) becomes an overlay drawer
   720–959   narrower side regions, 16 px margins
   < 720     one region at a time (list → detail with Back), navigation in a
             drawer, dialogs as bottom sheets, full-width dock
   ========================================================================== */
@media (max-width: 1199px) {
  .win--three { grid-template-columns: var(--r-list) minmax(0, 1fr); }
  .win--three .region--inspector,
  .win[data-inspector] .region--inspector {
    position: absolute; top: 0; right: 0; bottom: 0; width: var(--r-inspector); z-index: 5;
    background: var(--float-bg); box-shadow: var(--float-shadow); border-left: 1px solid var(--hair);
    transform: translateX(calc(100% + 24px)); transition: transform 320ms var(--ease);
  }
  .win[data-inspector="open"] .region--inspector { transform: none; }
  .win--three .only-compact { display: grid !important; }
}

@media (max-width: 959px) {
  :root { --gutter: 16px; --r-nav: 208px; --r-list: 288px; }
  .appbar .gsearch { width: 220px; }
}

@media (max-width: 719px) {
  :root { --gutter: 8px; --appbar-h: 52px; --dock-h: 68px; --r-window: 14px; }
  .only-phone { display: grid !important; }
  .hide-phone { display: none !important; }
  .appbar .gsearch { width: 36px; padding: 0; justify-content: center; }
  .appbar .gsearch span, .appbar .gsearch kbd { display: none; }

  /* List + detail and three zones: one region at a time */
  .win--list, .win--three { grid-template-columns: minmax(0, 1fr); }
  .win--list:not([data-view="main"]) .region--main,
  .win--three:not([data-view="main"]) .region--main { display: none; }
  .win--list[data-view="main"] .region--list,
  .win--three[data-view="main"] .region--list { display: none; }
  .region + .region { border-left: 0; }
  .win[data-inspector] .region--inspector { width: 100%; }

  /* Nav + content: the navigation becomes a drawer */
  .win--nav { grid-template-columns: minmax(0, 1fr); }
  .win--nav .region--nav {
    position: absolute; inset: 0 auto 0 0; width: min(300px, 86%); z-index: 5;
    background: var(--float-bg); box-shadow: var(--float-shadow);
    transform: translateX(-105%); transition: transform 320ms var(--ease);
  }
  .win--nav[data-nav="open"] .region--nav { transform: none; }

  .region__body--pad { padding: var(--sp-4); }
  .props { grid-template-columns: 96px minmax(0, 1fr); }
  .win--sheet { padding: var(--sp-6) var(--sp-4) var(--sp-4); }

  /* Dialogs: full-width bottom sheet */
  dialog.dlg { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 16px 16px 0 0; max-height: 92dvh; }
  .dlg--l { height: 92dvh; }
  .dlg--l .dlg__split { grid-template-columns: minmax(0, 1fr); }
  .dlg--l .dlg__split > nav { display: none; }
  .dlg--palette { margin-top: auto; }

  .dock { width: calc(100% - 16px); justify-content: space-around; }
  .dock a { width: auto; flex: 1; }
}
