:root {
  --app-cursor-default: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2026%22%3E%3Cpath%20d%3D%22M4%206.3%20L4%2019.9%20Q4%2021.9%205.258%2020.346%20L7.4%2017.7%20C8.4%2016.4%209.9%2015.7%2011.5%2015.7%20L14.902%2015.826%20Q16.9%2015.9%2015.414%2014.562%20L5.486%205.638%20Q4%204.3%204%206.3%20Z%22%20fill%3D%22none%22%20fill-opacity%3D%220%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%222%22%20stroke-linejoin%3D%22round%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") 4 6, auto;
  --app-cursor-pointer: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%2724%27%20height%3D%2724%27%20viewBox%3D%270%200%2024%2026%27%3E%3Cpath%20d%3D%27M4%206.3%20L4%2019.9%20Q4%2021.9%205.258%2020.346%20L7.4%2017.7%20C8.4%2016.4%209.9%2015.7%2011.5%2015.7%20L14.902%2015.826%20Q16.9%2015.9%2015.414%2014.562%20L5.486%205.638%20Q4%204.3%204%206.3%20Z%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%273%27%20stroke-opacity%3D%27.9%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%20filter%3D%27blur%281.2px%29%27%2F%3E%3Cpath%20d%3D%27M4%206.3%20L4%2019.9%20Q4%2021.9%205.258%2020.346%20L7.4%2017.7%20C8.4%2016.4%209.9%2015.7%2011.5%2015.7%20L14.902%2015.826%20Q16.9%2015.9%2015.414%2014.562%20L5.486%205.638%20Q4%204.3%204%206.3%20Z%27%20fill%3D%27%230b76a8%27%20fill-opacity%3D%271%27%20stroke%3D%27%230b76a8%27%20stroke-width%3D%271%27%20stroke-linejoin%3D%27round%27%20stroke-linecap%3D%27round%27%2F%3E%3C%2Fsvg%3E") 4 6, pointer;
  --app-cursor-text: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20width%3D%274%27%20height%3D%2718%27%20viewBox%3D%270%200%204%2018%27%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%272%27%20height%3D%2716%27%20fill%3D%27%230b76a8%27%20fill-opacity%3D%27.2%27%20rx%3D%271%27%20filter%3D%27blur%280.7px%29%27%2F%3E%3Crect%20x%3D%271%27%20y%3D%271%27%20width%3D%272%27%20height%3D%2716%27%20fill%3D%27%230b76a8%27%20rx%3D%271%27%2F%3E%3C%2Fsvg%3E") 2 9, text;
  --app-cursor-resize-x: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2212%22%20viewBox%3D%220%200%2028%2014%22%3E%3Cpath%20d%3D%22M9%207%20L3%207%20M5%205%20L3%207%20L5%209%20M19%207%20L25%207%20M23%205%20L25%207%20L23%209%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") 12 6, ew-resize;
  --app-cursor-resize-y: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2224%22%20viewBox%3D%220%200%2014%2028%22%3E%3Cg%20transform%3D%22translate(14%200)%20rotate(90)%22%3E%3Cpath%20d%3D%22M9%207%20L3%207%20M5%205%20L3%207%20L5%209%20M19%207%20L25%207%20M23%205%20L25%207%20L23%209%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 6 12, ns-resize;
  --app-cursor-resize-col: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2212%22%20viewBox%3D%220%200%2028%2014%22%3E%3Cpath%20d%3D%22M9%207%20L3%207%20M5%205%20L3%207%20L5%209%20M19%207%20L25%207%20M23%205%20L25%207%20L23%209%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") 12 6, col-resize;
  --app-cursor-resize-row: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%2224%22%20viewBox%3D%220%200%2014%2028%22%3E%3Cg%20transform%3D%22translate(14%200)%20rotate(90)%22%3E%3Cpath%20d%3D%22M9%207%20L3%207%20M5%205%20L3%207%20L5%209%20M19%207%20L25%207%20M23%205%20L25%207%20L23%209%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 6 12, row-resize;
  --app-cursor-resize-nesw: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20transform%3D%22translate(16%2016)%20rotate(-45)%20translate(-14%20-7)%22%3E%3Cpath%20d%3D%22M9%207%20L3%207%20M5%205%20L3%207%20L5%209%20M19%207%20L25%207%20M23%205%20L25%207%20L23%209%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 12 12, nesw-resize;
  --app-cursor-resize-nwse: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cg%20transform%3D%22translate(16%2016)%20rotate(45)%20translate(-14%20-7)%22%3E%3Cpath%20d%3D%22M9%207%20L3%207%20M5%205%20L3%207%20L5%209%20M19%207%20L25%207%20M23%205%20L25%207%20L23%209%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") 12 12, nwse-resize;
  --app-cursor-grab: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%229%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%2F%3E%3C%2Fsvg%3E") 12 12, grab;
  --app-cursor-grabbing: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2028%2028%22%3E%3Ccircle%20cx%3D%2214%22%20cy%3D%2214%22%20r%3D%2211%22%20fill%3D%22%230b76a8%22%20fill-opacity%3D%22.92%22%2F%3E%3C%2Fsvg%3E") 12 12, grabbing;
  --app-cursor-not-allowed: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M7%2017%20L17%207%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%2F%3E%3C%2Fsvg%3E") 12 12, not-allowed;
  --app-cursor-wait: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%228%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.8%22%2F%3E%3Cpath%20d%3D%22M12%208%20v4%20l3%202%22%20fill%3D%22none%22%20stroke%3D%22%230b76a8%22%20stroke-width%3D%221.6%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") 12 12, wait;
  --app-cursor-accent: #0b76a8;
  --x-seed: #0b76a8;
  --x-card-edge: 1px solid var(--x-card-line);
  --x-avatar-A-hi: #ff9aad;
  --x-avatar-A-lo: #8d3b52;
  --x-avatar-B-hi: #ffad8c;
  --x-avatar-B-lo: #8d4b37;
  --x-avatar-C-hi: #ffc485;
  --x-avatar-C-lo: #8d5f31;
  --x-avatar-D-hi: #ffe285;
  --x-avatar-D-lo: #8d7831;
  --x-avatar-E-hi: #dcf68f;
  --x-avatar-E-lo: #6f8839;
  --x-avatar-F-hi: #a5f5a3;
  --x-avatar-F-lo: #41884a;
  --x-avatar-G-hi: #7de7c4;
  --x-avatar-G-lo: #207c66;
  --x-avatar-H-hi: #76dcd9;
  --x-avatar-H-lo: #1a7378;
  --x-avatar-I-hi: #87d3ff;
  --x-avatar-I-lo: #286b97;
  --x-avatar-J-hi: #8fb8ff;
  --x-avatar-J-lo: #2f5497;
  --x-avatar-K-hi: #a3a3ff;
  --x-avatar-K-lo: #404397;
  --x-avatar-L-hi: #b79aff;
  --x-avatar-L-lo: #503b97;
  --x-avatar-M-hi: #d39aff;
  --x-avatar-M-lo: #683b97;
  --x-avatar-N-hi: #ec96e7;
  --x-avatar-N-lo: #7d3883;
  --x-avatar-O-hi: #ff92c9;
  --x-avatar-O-lo: #8d356a;
  --x-avatar-P-hi: #ff9aad;
  --x-avatar-P-lo: #8d3b52;
  --x-avatar-Q-hi: #ffb68f;
  --x-avatar-Q-lo: #8d5339;
  --x-avatar-R-hi: #f6d889;
  --x-avatar-R-lo: #856f34;
  --x-avatar-S-hi: #c0e78f;
  --x-avatar-S-lo: #587c39;
  --x-avatar-T-hi: #8ce7b6;
  --x-avatar-T-lo: #2c7c5a;
  --x-avatar-U-hi: #7cdadd;
  --x-avatar-U-lo: #1f717b;
  --x-avatar-V-hi: #8fc1ff;
  --x-avatar-V-lo: #2f5c97;
  --x-avatar-W-hi: #a3a8ff;
  --x-avatar-W-lo: #3f4797;
  --x-avatar-X-hi: #c09aff;
  --x-avatar-X-lo: #583b97;
  --x-avatar-Y-hi: #e49aff;
  --x-avatar-Y-lo: #763b97;
  --x-avatar-Z-hi: #ff92b6;
  --x-avatar-Z-lo: #8d355a;
  --x-avatar-none-hi: #adb3bd;
  --x-avatar-none-lo: #485060;
}
#exact-root ::selection,
#exact-root *::selection {
  background: color-mix(in srgb, var(--exact-accent, var(--app-cursor-accent, var(--x-seed, #0b76a8))) 55%, transparent);
  color: inherit;
}
#exact-root ::-moz-selection,
#exact-root *::-moz-selection {
  background: color-mix(in srgb, var(--exact-accent, var(--app-cursor-accent, var(--x-seed, #0b76a8))) 55%, transparent);
  color: inherit;
}
@media (any-pointer: fine) {
  html, html * { cursor: var(--app-cursor-default, auto); }
  html input,
  html textarea,
  html select,
  html [contenteditable]:not([contenteditable="false"]),
  html [role="textbox"] {
    cursor: var(--app-cursor-text, text) !important;
    caret-color: var(--app-cursor-accent, currentColor);
  }
  html button:not(:disabled, [aria-disabled="true"]),
  html a[href],
  html [role="button"]:not(:disabled, [aria-disabled="true"]),
  html [role="tab"],
  html [role="link"],
  html [role="menuitem"],
  html summary,
  html [data-exact-on~="press"]:not(:disabled, [aria-disabled="true"]) {
    cursor: var(--app-cursor-pointer, pointer) !important;
  }
  html :where([data-cursor="resize-x"], [role="separator"][aria-orientation="vertical"]) { cursor: var(--app-cursor-resize-x, ew-resize) !important; }
  html :where([data-cursor="resize-y"], [role="separator"][aria-orientation="horizontal"]) { cursor: var(--app-cursor-resize-y, ns-resize) !important; }
  html :where([data-cursor="resize-col"], [data-cursor="col"]) { cursor: var(--app-cursor-resize-col, col-resize) !important; }
  html :where([data-cursor="resize-row"], [data-cursor="row"]) { cursor: var(--app-cursor-resize-row, row-resize) !important; }
  html :where([data-cursor="resize-nesw"]) { cursor: var(--app-cursor-resize-nesw, nesw-resize) !important; }
  html :where([data-cursor="resize-nwse"]) { cursor: var(--app-cursor-resize-nwse, nwse-resize) !important; }
  html :where([data-cursor="grab"]) { cursor: var(--app-cursor-grab, grab) !important; }
  html :where([data-cursor="grabbing"]) { cursor: var(--app-cursor-grabbing, grabbing) !important; }
  html :where(:disabled, [aria-disabled="true"], [data-cursor="not-allowed"]) { cursor: var(--app-cursor-not-allowed, not-allowed) !important; }
  html :where([aria-busy="true"], [data-cursor="wait"], [data-cursor="progress"]) { cursor: var(--app-cursor-wait, wait) !important; }
  html :where([data-cursor="text"]),
  html input[data-cursor="text"],
  html textarea[data-cursor="text"] {
    cursor: var(--app-cursor-text, text) !important;
    caret-color: var(--app-cursor-accent, currentColor);
  }
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
[data-avatar="ring"] {
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--exact-accent, #0b76a8) 22%, transparent);
  border-top-color: var(--exact-accent, #0b76a8);
  animation: ys-spin 0.7s linear infinite;
}
[data-spinner] {
  display: block;
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: ys-spin 0.7s linear infinite;
}
@keyframes ys-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  [data-avatar="ring"],
  [data-spinner] {
    animation: ys-spin-fade 1.2s ease-in-out infinite;
  }
  @keyframes ys-spin-fade {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
  }
}

svg[data-loader] {
  display: block;
  overflow: visible;
  color: var(--exact-accent, #0b76a8);
  transform-origin: 50% 50%;
  transform-box: fill-box;
  animation: ys-loader-pulse 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite, ys-loader-hue 4.2s linear infinite;
}
svg[data-loader] path:first-of-type {
  fill: currentColor;
  filter: drop-shadow(0 6px 10px color-mix(in srgb, currentColor 28%, transparent));
}
@keyframes ys-loader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
@keyframes ys-loader-hue {
  0% { filter: hue-rotate(0deg); }
  25% { filter: hue-rotate(90deg); }
  50% { filter: hue-rotate(180deg); }
  75% { filter: hue-rotate(270deg); }
  100% { filter: hue-rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  svg[data-loader] {
    animation: ys-loader-fade 2.6s ease-in-out infinite;
    transform: none;
    filter: none;
  }
  @keyframes ys-loader-fade {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 1; }
  }
}

[data-resizer="col"] {
  cursor: var(--app-cursor-resize-col, col-resize) !important;
}
[data-resizer="row"] {
  cursor: var(--app-cursor-resize-y, ns-resize) !important;
}
[data-resizer]::after {
  content: "";
  display: block;
  position: absolute;
  border-radius: 1px;
  background: color-mix(in srgb, var(--exact-accent, #0b76a8) 72%, transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease;
}
[data-resizer="col"]::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  height: auto;
  min-height: 100%;
  transform: translateX(-50%);
}
[data-resizer="row"]::after {
  left: 0;
  right: 0;
  top: 50%;
  width: auto;
  min-width: 100%;
  height: 1px;
  transform: translateY(-50%) scaleY(0.5);
  background: var(--x-card-line, #dde2e4);
  opacity: 1;
}
[data-resizer]:hover::after,
[data-resizer][data-resize-handle-active="true"]::after,
[data-resizer]:focus-visible::after {
  opacity: 1;
}
[data-resizer="row"]:hover::after,
[data-resizer="row"][data-resize-handle-active="true"]::after,
[data-resizer="row"]:focus-visible::after {
  background: color-mix(in srgb, var(--exact-accent, #0b76a8) 72%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  [data-resizer]::after { transition: none; }
}

[data-search="on"],
[data-search="on"]:focus-within {
  outline: none;
}
[data-search="on"] input,
[data-search="on"] input:focus,
[data-search="on"] input:focus-visible {
  outline: none;
  box-shadow: none;
  border: none;
}
[data-search="on"]:focus-within svg {
  stroke: var(--exact-accent, #0b76a8) !important;
}

/* Buttons: Exact reverts focus-visible to the browser's black ring, which also lands
   on a menu's first item when it opens. Keyboard focus gets one quiet accent ring;
   menu rows show focus with their hover fill instead. Fields keep wash.focus. */
#exact-root button:not([data-native]):focus-visible,
#exact-root [role="button"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--exact-accent, var(--x-seed)) 40%, transparent);
  outline-offset: 2px;
}
#exact-root [data-context="menu"] [data-context="item"]:focus-visible,
#exact-root [data-rail="item"]:focus-visible {
  outline: none;
}

/* Scroll still works; the bar is gone everywhere. */
html,
* {
  scrollbar-gutter: auto;
  scrollbar-width: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}
*::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-track,
*::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-corner,
*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:double-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: none;
}


[data-chrome="start-pane"] {
  flex: none;
  width: 100%;
  height: var(--x-pane-start, 52px);
  min-height: var(--x-pane-start, 52px);
  pointer-events: none;
}
[data-chrome="start-phone"] {
  flex: none;
  width: 100%;
  height: var(--x-phone-start, 54px);
  min-height: var(--x-phone-start, 54px);
  pointer-events: none;
}
[data-chrome="end-pane"] {
  flex: none;
  width: 100%;
  height: 0;
  min-height: 0;
  pointer-events: none;
}
/* Thread end spacer; --x-dock-h tracks the live dock height (composer.js). */
[data-chrome="end-phone"] {
  flex: none;
  width: 100%;
  height: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px)));
  min-height: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px)));
  pointer-events: none;
}
[data-chrome="end-phone"][data-pending="1"] {
  height: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + var(--x-attach-h, 72px) + var(--x-composer-h, 36px) + var(--x-space-2, 10px) + env(safe-area-inset-bottom, 0px)));
  min-height: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + var(--x-attach-h, 72px) + var(--x-composer-h, 36px) + var(--x-space-2, 10px) + env(safe-area-inset-bottom, 0px)));
}
/* Bottom dock: NavPill seat — header-pad from the bottom, gutter above. */
[data-dock="on"] {
  height: calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px));
  min-height: calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px));
  padding-top: var(--x-gutter, 8px);
  padding-bottom: calc(var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px));
  padding-left: var(--x-header-pad, 12px);
  padding-right: var(--x-header-pad, 12px);
  box-sizing: border-box;
  align-items: center;
}
/* Composer: content-sized. Bar padding is space-1 in the contract. Open only moves the field. */
#exact-root [data-testid="composer-dock"][data-dock="on"] {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  height: auto !important;
  min-height: calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px)) !important;
  padding-top: var(--x-gutter, 8px) !important;
  padding-bottom: calc(var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px)) !important;
  padding-left: var(--x-header-pad, 12px) !important;
  padding-right: var(--x-header-pad, 12px) !important;
  box-sizing: border-box !important;
}
#exact-root [data-testid="composer-dock"][data-dock="on"] > [data-chat="composer"] {
  width: 100%;
  max-width: 100%;
  pointer-events: auto;
}
#exact-root [data-chat="composer"],
#exact-root [data-chat="composer"]:is([data-open="1"], [data-pending="1"]) {
  height: auto !important;
  max-height: none !important;
  /* Leave this alone unless asked — same in both modes. */
  border-radius: calc(var(--x-radius-card, 24px) + var(--x-space-2, 10px)) !important;
  corner-shape: continuous !important;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "attach field send";
  align-items: center !important;
  column-gap: var(--x-space-1, 6px);
  row-gap: var(--x-space-1, 6px);
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}
#exact-root [data-chat="composer"]:is([data-open="1"], [data-pending="1"]) > [data-chat="bar"] {
  grid-template-areas:
    "field field field"
    "attach . send";
  align-items: end !important;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] > [data-testid="composer-attach"] {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] > [data-testid="attach"] {
  grid-area: attach;
  box-shadow: var(--x-nav-ring) !important;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] > [data-testid="send"] {
  grid-area: send;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] > [data-chat="field"] {
  grid-area: field;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: center !important;
  gap: var(--x-pill-gap, 4px) !important;
  min-width: 0 !important;
  width: 100% !important;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] > [data-chat="field"] > [data-chat="ref"] {
  display: inline-flex !important;
  align-items: center !important;
  height: 16px !important;
  padding: 1px var(--x-chrome-gap, 4px) 0 var(--x-space-1, 6px) !important;
  border-radius: var(--x-gutter, 8px) !important;
  background: var(--exact-accent, var(--x-seed, #0b76a8)) !important;
  color: var(--x-on-accent, #ffffff) !important;
  flex: none !important;
}
#exact-root [data-chat="composer"] > [data-chat="bar"] > [data-chat="field"] > [data-testid="composer-field"] {
  align-self: center !important;
  flex: 1 1 6ch !important;
  width: auto !important;
  min-width: 6ch !important;
  margin: 0 !important;
  border: 0 !important;
  outline: none !important;
  resize: none !important;
  background: transparent !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  field-sizing: fixed;
  height: 1.25em !important;
  min-height: 1.25em !important;
  max-height: 1.25em !important;
}
#exact-root [data-chat="composer"]:is([data-open="1"], [data-pending="1"]) > [data-chat="bar"] > [data-chat="field"] {
  align-items: flex-start !important;
  align-content: flex-start !important;
}
/* Composer field type matches thread body (post-type). 16px on touch so iOS does not zoom. */
#exact-root textarea#composer,
#exact-root textarea#composer::placeholder,
#exact-root textarea[data-testid="composer"],
#exact-root textarea[data-testid="composer"]::placeholder,
#exact-root textarea#composer-field,
#exact-root textarea#composer-field::placeholder,
#exact-root textarea[data-testid="composer-field"],
#exact-root textarea[data-testid="composer-field"]::placeholder {
  font-size: var(--x-post-type, 15px) !important;
  font-family: var(--x-family-sans, Geist, system-ui, sans-serif) !important;
}
@media (hover: none) and (pointer: coarse) {
  #exact-root textarea#composer,
  #exact-root textarea#composer::placeholder,
  #exact-root textarea[data-testid="composer"],
  #exact-root textarea[data-testid="composer"]::placeholder,
  #exact-root textarea#composer-field,
  #exact-root textarea#composer-field::placeholder,
  #exact-root textarea[data-testid="composer-field"],
  #exact-root textarea[data-testid="composer-field"]::placeholder {
    font-size: var(--x-type-control, 16px) !important;
  }
}

#exact-root [data-chat="composer"]:is([data-open="1"], [data-pending="1"]) > [data-chat="bar"] > [data-chat="field"] > [data-testid="composer-field"] {
  align-self: stretch !important;
  flex: 1 1 100% !important;
  white-space: pre-wrap !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
  field-sizing: content;
  height: auto !important;
  min-height: 1.25em !important;
  max-height: var(--x-composer-max, 120px) !important;
  padding-top: var(--x-space-2, 10px) !important;
  padding-left: var(--x-space-1, 6px) !important;
  padding-right: var(--x-space-1, 6px) !important;
}

[data-dock="notice"] {
  bottom: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + env(safe-area-inset-bottom, 0px)));
}
[data-dock="notice"][data-pending="1"] {
  bottom: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + var(--x-attach-h, 72px) + var(--x-composer-h, 36px) + var(--x-space-2, 10px) + env(safe-area-inset-bottom, 0px)));
}

[data-edge="end"] {
  border-right: var(--x-card-edge);
}
/*
  Rails (locked — do not regress):
  - In-flow slot stays rail-w; [data-rail=fly] width tweens open + close.
  - Panel is width 100% of fly — options/labels collapse as the rail shrinks.
  - Icon column fixed size + padding; labels/switch flex-shrink and clip.
  - Collapsed head/search read as circles (round + narrow). Logo plain in slot.
  - Open fly uses edge shadow only — no 1px border ring.
*/
#exact-root [data-testid="menu-rail"] {
  width: var(--x-rail-w, 48px) !important;
  min-width: var(--x-rail-w, 48px) !important;
  max-width: var(--x-rail-w, 48px) !important;
  flex: 0 0 var(--x-rail-w, 48px) !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  align-self: stretch !important;
  overflow: visible !important;
  z-index: 4;
}
#exact-root [data-testid="menu-rail"] [data-rail="fly"] {
  border: 0;
  border-radius: 0;
  background: light-dark(#ffffff, #161616);
}
/* Brand head: same icon-column layout as account/search — theme-logo only wraps the mark. */
#exact-root [data-testid="menu-rail"] [data-rail-brand="1"] [data-testid="theme-logo"] {
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
}
#exact-root [data-testid="menu-rail"] [data-rail-brand="1"] [data-logo="mark"] svg {
  width: var(--x-mark-w, 32px) !important;
  height: var(--x-mark-h, 18px) !important;
  max-width: 28px !important;
  max-height: 16px !important;
  flex: none !important;
  display: block !important;
}

#exact-root [data-rail="fly"] {
  width: var(--x-rail-w, 48px);
  min-width: var(--x-rail-w, 48px);
  max-width: var(--x-rail-open, 312px);
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  align-items: stretch;
  contain: layout style;
  /* Hover only — focus-within kept the rail open after a click until another click. */
  transition:
    width var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1);
}
#exact-root [data-rail="fly"]:hover,
#exact-root [data-rail="fly"][data-pinned="1"],
#exact-root [data-rail="fly"]:has([data-search="on"] input:focus) {
  width: var(--x-rail-open, 312px);
}
/* Inner corners + shadow only while open — collapsed stays square. */
#exact-root [data-testid="menu-rail"] [data-rail="fly"]:hover,
#exact-root [data-testid="menu-rail"] [data-rail="fly"][data-pinned="1"],
#exact-root [data-testid="menu-rail"] [data-rail="fly"]:has([data-search="on"] input:focus) {
  border-top-left-radius: var(--x-radius-tile, 12px);
  border-bottom-left-radius: var(--x-radius-tile, 12px);
  box-shadow: -6px 0 18px light-dark(rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.45));
}

/* Panel tracks fly width so rows/labels collapse with the shrink. */
#exact-root [data-rail="fly"] [data-rail="panel"] {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/*
  Rows fill the (shrinking) panel. Fixed icon padding — labels clip as
  width tweens; no separate hide step that empties the rail before close.
*/
#exact-root [data-rail="item"],
#exact-root [data-rail="head"] {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: var(--x-control, 36px) !important;
  height: var(--x-control, 36px) !important;
  gap: var(--x-gutter, 8px) !important;
  padding-left: var(--x-chrome-gap, 4px) !important;
  padding-right: var(--x-chrome-gap, 4px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  justify-content: flex-start !important;
  align-self: stretch !important;
  border: 0 !important;
}

/* Menu search is kit SearchField. Overflow stays visible so head-chip-shadow
   is not clipped; the parent column already pads with space-1 (the shadow blur). */
#exact-root [data-rail="search"] {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  align-self: stretch !important;
}

/* Collapsed rail: a round search icon button (control size, same as other
   rail buttons). Click focuses the hidden input, which opens the fly. */
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="search"] {
  width: var(--x-control, 36px) !important;
  min-width: var(--x-control, 36px) !important;
  max-width: var(--x-control, 36px) !important;
  height: var(--x-control, 36px) !important;
  align-self: center !important;
  overflow: visible !important;
  justify-content: center !important;
  align-items: center !important;
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="search"] [data-search="on"] {
  position: relative !important;
  flex: 0 0 auto !important;
  width: var(--x-control, 36px) !important;
  min-width: var(--x-control, 36px) !important;
  max-width: var(--x-control, 36px) !important;
  height: var(--x-control, 36px) !important;
  padding: 0 !important;
  gap: 0 !important;
  justify-content: center !important;
  align-items: center !important;
  overflow: visible !important;
  border-radius: var(--x-radius-tile) !important;
  box-shadow: none !important;
  background: color-mix(in srgb, var(--x-text) 2%, transparent) !important;
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="search"] [data-search="on"] > :not(input) {
  pointer-events: none !important;
  flex: none !important;
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="search"] svg {
  width: var(--x-icon-sm, 16px) !important;
  height: var(--x-icon-sm, 16px) !important;
  flex: none !important;
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="search"] input {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  color: transparent !important;
  caret-color: transparent !important;
  padding: 0 !important;
}

/* Labels/switch shrink with the row so text collapses during the width tween. */
#exact-root [data-rail="label"],
#exact-root [data-rail="search"] input {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
#exact-root [data-rail="switch"] {
  flex: 0 1 0% !important;
  min-width: 0 !important;
  max-width: var(--x-icon-sm, 16px) !important;
  overflow: hidden !important;
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="label"],
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-rail="switch"] {
  pointer-events: none !important;
}
#exact-root [data-rail="item"] {
  border-radius: var(--x-radius-tile, 12px) !important;
}
/* Studio menu-list-item rest plate (layout-vscode-preview): text 2% — visible in collapsed icon strip too. */
#exact-root [data-rail="item"]:not([aria-current="page"]):not([aria-current="true"]) {
  background: color-mix(in srgb, var(--x-text, #0f1a24) 2%, transparent) !important;
  background-image: none !important;
}
/* Workspace Back: same pill as account/search (Studio). */
#exact-root [data-testid="rail-back"] {
  border-radius: var(--x-radius-round, 999px) !important;
  justify-content: center !important;
}
#exact-root [data-rail="head"] {
  border-radius: var(--x-radius-round, 999px) !important;
  box-shadow: 0 1px 4px 1px light-dark(rgb(0 0 0 / 0.08), rgb(0 0 0 / 0.35)) !important;
}

/* Open-file pins: Studio tab thumb — 8px radius (gutter), not radius-tile. */
#exact-root [data-rail-pin="face"] {
  border-radius: var(--x-gutter, 8px) !important;
  overflow: hidden !important;
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 8%, transparent) !important;
}
/* Pin thumbnails are inset like folder peek: whole image, contained, token padding. */
#exact-root [data-rail-pin="face"] img {
  display: block !important;
  box-sizing: border-box !important;
  padding: var(--x-space-1, 4px) !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  pointer-events: none !important;
  border: 0 !important;
}

/* Shared CloseIcon — Studio tab-close hover (desk-shell / shell-paint-chrome). */
#exact-root [data-close="1"] {
  box-sizing: border-box !important;
  flex: 0 0 24px !important;
  width: 24px !important;
  min-width: 24px !important;
  max-width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--x-radius-round, 999px) !important;
  background: transparent !important;
  color: var(--x-muted, #5b6b7c) !important;
  cursor: pointer !important;
}
/* Wash only — keep the mark ink; do not flip the X to black/text. */
#exact-root [data-close="1"]:hover,
#exact-root [data-close="1"][data-exact-held~="hover"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 10%, transparent) !important;
  background-image: none !important;
}
/* Right-rail pin X: last to appear — after the fly width tween (duration.rail). */
#exact-root [data-testid="menu-rail"] [data-close="1"] {
  opacity: 0 !important;
  pointer-events: none !important;
  transition:
    opacity var(--x-duration-fast, 90ms) cubic-bezier(0.16, 1, 0.3, 1),
    background-color var(--x-duration-skel, 90ms) cubic-bezier(0.16, 1, 0.3, 1) !important;
  transition-delay: 0ms !important;
}
#exact-root [data-testid="menu-rail"] [data-rail="fly"]:hover [data-close="1"],
#exact-root [data-testid="menu-rail"] [data-rail="fly"][data-pinned="1"] [data-close="1"],
#exact-root [data-testid="menu-rail"] [data-rail="fly"]:has([data-search="on"] input:focus) [data-close="1"] {
  opacity: 1 !important;
  pointer-events: auto !important;
  transition-delay: var(--x-duration-rail, 140ms) !important;
}
/* Pin X (active + regular): keep the touch target 2px off the row edge. */
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"] [data-close="1"] {
  margin-right: var(--x-resize-line, 2px) !important;
}
/* Active pin X: mark only at rest; translucent white wash only on hover. */
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="page"] [data-close="1"],
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="true"] [data-close="1"] {
  background: transparent !important;
  background-image: none !important;
  color: var(--x-on-accent, #ffffff) !important;
}
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="page"] [data-close="1"]:hover,
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="page"] [data-close="1"][data-exact-held~="hover"],
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="true"] [data-close="1"]:hover,
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="true"] [data-close="1"][data-exact-held~="hover"] {
  background: rgb(255 255 255 / 0.22) !important;
  background-image: none !important;
}
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="page"] [data-close="1"] svg,
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][aria-current="true"] [data-close="1"] svg {
  stroke: var(--x-on-accent, #ffffff) !important;
  color: var(--x-on-accent, #ffffff) !important;
}
/* Collapsed: snap-hide (no delayed fade-out fighting the shrink). */
#exact-root [data-testid="menu-rail"] [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-close="1"] {
  opacity: 0 !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}
/* Pin stack: margin (not gap) so close can collapse the slot + space below. */
#exact-root [data-testid="menu-rail"] [data-rail="pins"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
}
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"] {
  padding-right: var(--x-chrome-gap, 4px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  flex: 0 0 auto !important;
  height: var(--x-control, 36px) !important;
  max-height: var(--x-control, 36px) !important;
  margin: 0 0 var(--x-space-1, 6px) 0 !important;
  opacity: 1 !important;
  transform: none !important;
  transition:
    max-height var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1),
    height var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1),
    margin var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1),
    padding var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1),
    opacity var(--x-duration-fast, 90ms) cubic-bezier(0.16, 1, 0.3, 1),
    transform var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1) !important;
  animation: rail-pin-in var(--x-duration-rail, 140ms) cubic-bezier(0.16, 1, 0.3, 1) both !important;
}
#exact-root [data-testid="menu-rail"] [data-rail-pin="1"][data-open="off"] {
  height: 0 !important;
  max-height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  opacity: 0 !important;
  transform: translateY(-4px) !important;
  pointer-events: none !important;
  animation: none !important;
}
@keyframes rail-pin-in {
  from {
    height: 0;
    max-height: 0;
    margin-bottom: 0;
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    height: var(--x-control, 36px);
    max-height: var(--x-control, 36px);
    margin-bottom: var(--x-space-1, 6px);
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #exact-root [data-testid="menu-rail"] [data-close="1"],
  #exact-root [data-testid="menu-rail"] [data-rail="fly"]:hover [data-close="1"],
  #exact-root [data-testid="menu-rail"] [data-rail="fly"][data-pinned="1"] [data-close="1"],
  #exact-root [data-testid="menu-rail"] [data-rail="fly"]:has([data-search="on"] input:focus) [data-close="1"] {
    transition: none !important;
    transition-delay: 0ms !important;
  }
  #exact-root [data-testid="menu-rail"] [data-rail-pin="1"],
  #exact-root [data-testid="menu-rail"] [data-rail-pin="1"][data-open="off"] {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* Right account head: avatar | centered name | switch in a matching end slot. */
#exact-root [data-testid="menu-rail"] [data-rail="head"] {
  padding-left: 2px !important;
  padding-right: 2px !important;
  gap: var(--x-space-1, 6px) !important;
  align-items: center !important;
}
#exact-root [data-testid="menu-rail"] [data-rail="head"] [data-rail="label"] {
  flex: 1 1 0% !important;
  text-align: center !important;
}
#exact-root [data-testid="menu-rail"] [data-rail="head"] [data-rail="switch"] {
  flex: 0 0 var(--x-avatar, 32px) !important;
  width: var(--x-avatar, 32px) !important;
  min-width: var(--x-avatar, 32px) !important;
  max-width: var(--x-avatar, 32px) !important;
  height: var(--x-avatar, 32px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
}

/* Shared icon slot — same box for tree, search, and logo. */
#exact-root [data-rail="icon"] {
  flex: 0 0 var(--x-head-avatar, 28px) !important;
  width: var(--x-head-avatar, 28px) !important;
  min-width: var(--x-head-avatar, 28px) !important;
  max-width: var(--x-head-avatar, 28px) !important;
  height: var(--x-head-avatar, 28px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}
#exact-root [data-rail="icon"] svg {
  width: var(--x-icon-sm, 16px) !important;
  height: var(--x-icon-sm, 16px) !important;
  flex: none !important;
}
/* Right rail account avatar stays 32. */
#exact-root [data-rail="head"] [data-rail="icon"] {
  flex-basis: var(--x-avatar, 32px) !important;
  width: var(--x-avatar, 32px) !important;
  min-width: var(--x-avatar, 32px) !important;
  max-width: var(--x-avatar, 32px) !important;
  height: var(--x-avatar, 32px) !important;
  border-radius: var(--x-radius-round, 999px) !important;
}
#exact-root [data-rail="switch"] {
  flex: 0 1 var(--x-icon-sm, 16px) !important;
  width: var(--x-icon-sm, 16px) !important;
  min-width: 0 !important;
  height: var(--x-icon-sm, 16px) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
}

#exact-root [data-rail="label"] {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#exact-root [data-rail="scroll"] {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  align-items: stretch !important;
  gap: var(--x-space-1, 6px) !important;
  -webkit-overflow-scrolling: touch;
}
#exact-root [data-rail="slides"] {
  width: 200% !important;
  min-width: 200% !important;
  max-width: 200% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
  flex: 0 0 100% !important;
}
#exact-root [data-rail="pane"] {
  display: flex !important;
  flex-direction: column !important;
  width: 50% !important;
  min-width: 50% !important;
  max-width: 50% !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#exact-root [data-menu="scroll"] {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
#exact-root [data-testid="phone-menu"] {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
#exact-root [data-testid="pane-phone"] {
  height: 100% !important;
  max-height: 100% !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

/* RoundButton: wash.secondary from the part; kill Exact's ink overlay. */
#exact-root [data-wash="on"] {
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
  /* No press fade: a pressed row or pill goes straight to its active fill. */
  --exact-dims: 0 !important;
}
#exact-root [data-wash="on"]:hover,
#exact-root [data-wash="on"][data-exact-held~="hover"] {
  background-image: none !important;
}

#exact-root [data-crumbs="scroll"] {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
#exact-root [data-crumbs="scroll"]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#exact-root [data-crumbs="scroll"] > * {
  flex: 0 0 auto !important;
}
/* Crumb chips: CSS wash — Contract hoverId rebuilt the trail on every pass. */
#exact-root [data-crumbs="chip"] {
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
}
#exact-root [data-crumbs="chip"]:not([data-over="1"]):hover,
#exact-root [data-crumbs="chip"]:not([data-over="1"])[data-exact-held~="hover"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 10%, transparent) !important;
  background-image: none !important;
}

#exact-root [data-rail="item"],
#exact-root [data-rail="item"] *,
#exact-root [data-rail="head"],
#exact-root [data-rail="search"] {
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
}
#exact-root [data-rail="item"]:hover,
#exact-root [data-rail="item"][data-exact-held~="hover"],
#exact-root [data-rail="head"]:hover,
#exact-root [data-rail="search"]:hover {
  background-image: none !important;
}
#exact-root [data-rail="item"]:focus,
#exact-root [data-rail="item"]:focus-visible,
#exact-root [data-rail="item"]:focus-within {
  outline: none !important;
  box-shadow: none !important;
}
/* Account head is a button; the left Brand row stays plain (no hover plate). */
#exact-root button[data-rail="head"]:hover {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 10%, transparent) !important;
}
#exact-root [data-rail="item"][aria-current="page"],
#exact-root [data-rail="item"][aria-current="true"],
#exact-root [data-rail="item"][aria-current="page"]:hover,
#exact-root [data-rail="item"][aria-current="true"]:hover {
  background: var(--exact-accent, #0b76a8) !important;
  background-image: none !important;
  box-shadow: none !important;
}
#exact-root [data-rail="item"][aria-current="page"] [data-rail="icon"] svg,
#exact-root [data-rail="item"][aria-current="true"] [data-rail="icon"] svg,
#exact-root [data-rail="item"][aria-current="page"] [data-rail="switch"] svg,
#exact-root [data-rail="item"][aria-current="true"] [data-rail="switch"] svg {
  stroke: var(--x-on-accent, #ffffff) !important;
  color: var(--x-on-accent, #ffffff) !important;
}
#exact-root [data-rail="item"][aria-current="page"] [data-rail="label"],
#exact-root [data-rail="item"][aria-current="true"] [data-rail="label"] {
  color: var(--x-on-accent, #ffffff) !important;
}

#exact-root [data-rail="search"] input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

/* Row wash in CSS — no per-row Contract hover rebuild. */
#exact-root [data-rail="item"]:not([aria-current="page"]):not([aria-current="true"]):hover,
#exact-root [data-rail="item"]:not([aria-current="page"]):not([aria-current="true"])[data-exact-held~="hover"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 10%, transparent) !important;
  background-image: none !important;
}

/* Chat inbox rows: same CSS wash — Contract hover was rebuilding every row. */
#exact-root [data-chat="row"] {
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
  border-radius: var(--x-radius-card, 24px) !important;
}
#exact-root [data-chat="row"]:not([aria-current="true"]):hover,
#exact-root [data-chat="row"]:not([aria-current="true"])[data-exact-held~="hover"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 10%, transparent) !important;
  background-image: none !important;
}

/* Press wash sits on top of the row or tile (avatar and type included). Snaps on, fades out on release. */
#exact-root [data-chat="row"],
#exact-root [data-file-tile="1"],
#exact-root [data-rail="item"] {
  position: relative;
  isolation: isolate;
}
#exact-root [data-chat="row"]::after,
#exact-root [data-file-tile="1"]::after,
#exact-root [data-rail="item"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  corner-shape: inherit;
  background: light-dark(
    color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 16%, transparent),
    color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 24%, transparent)
  );
  opacity: 0;
  transition: opacity var(--x-duration-fast, 90ms) ease;
}
#exact-root [data-chat="row"]:active::after,
#exact-root [data-chat="row"][data-pressed]::after,
#exact-root [data-file-tile="1"]:active::after,
#exact-root [data-file-tile="1"]:has(:active)::after,
#exact-root [data-file-tile="1"]:has([data-pressed])::after,
#exact-root [data-rail="item"]:active::after,
#exact-root [data-rail="item"][data-pressed]::after {
  opacity: 1;
  transition: none;
}
@media (prefers-reduced-motion: reduce) {
  #exact-root [data-chat="row"]::after,
  #exact-root [data-file-tile="1"]::after,
  #exact-root [data-rail="item"]::after {
    transition: none;
  }
}

/* Skeleton: host keeps card/row surface; only inner bones get a soft shimmer. */
#exact-root [data-file-skel="1"] {
  pointer-events: none !important;
}
#exact-root [data-skel="dot"],
#exact-root [data-skel="bar"],
#exact-root [data-skel="plate"] {
  position: relative !important;
  overflow: hidden !important;
  background: color-mix(in srgb, var(--x-text, #0f1a24) 8%, transparent) !important;
  background-image: none !important;
}
#exact-root [data-skel="bar"] {
  max-width: 68%;
  height: 10px !important;
  border-radius: var(--x-radius-round, 999px) !important;
}
#exact-root [data-skel="dot"]::after,
#exact-root [data-skel="bar"]::after,
#exact-root [data-skel="plate"]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 18%,
    color-mix(in srgb, var(--x-text, #0f1a24) 6%, transparent) 50%,
    transparent 82%
  );
  transform: translateX(-100%);
  animation: rome-skel-shimmer 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes rome-skel-shimmer {
  to { transform: translateX(100%); }
}

/* Files grid: stacked crossfade — skeleton and live share one cell (no hard cut). */
#exact-root [data-files="swap"] {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  flex: 1 1 auto !important;
}
#exact-root [data-files="live"],
#exact-root [data-files="skel"] {
  grid-area: 1 / 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  transition: opacity var(--x-duration-fast, 90ms) ease !important;
}
#exact-root [data-files="live"] {
  opacity: 0 !important;
  pointer-events: none !important;
}
#exact-root [data-files="live"][data-on="1"] {
  opacity: 1 !important;
  pointer-events: auto !important;
}
#exact-root [data-files="skel"] {
  z-index: 1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
#exact-root [data-files="skel"][data-on="1"] {
  opacity: 1 !important;
}
#exact-root [data-files="skel"][data-on="off"] [data-skel]::after {
  animation: none !important;
  opacity: 0 !important;
}
/* Files grid: staggered feed-in for skeleton → structure → thumbs (first→last). */
/* Delays ease slow→fast across the set; skeleton span is near-instant. */
@keyframes rome-files-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
/* Stage 1: skeleton — super quick. */
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel] {
  animation: rome-files-in var(--x-duration-skel, 90ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Stage 2: structure tiles. */
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile] {
  animation: rome-files-in var(--x-duration-files, 200ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}
/* Stage 3: file thumbs + folder peek stacks. Cover photos fade in-face (data-thumb). */
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile] [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile] [data-folder-peek="stack"][data-on="1"] {
  animation: rome-files-in var(--x-duration-files, 200ms) cubic-bezier(0.16, 1, 0.3, 1) both;
}
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(1) { animation-delay: 0ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(2) { animation-delay: 5ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(3) { animation-delay: 10ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(4) { animation-delay: 14ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(5) { animation-delay: 18ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(6) { animation-delay: 22ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(7) { animation-delay: 26ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(8) { animation-delay: 29ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(9) { animation-delay: 32ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(10) { animation-delay: 35ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(11) { animation-delay: 37ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(12) { animation-delay: 39ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(13) { animation-delay: 41ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(14) { animation-delay: 43ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(15) { animation-delay: 45ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(16) { animation-delay: 46ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(17) { animation-delay: 47ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(18) { animation-delay: 47ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(19) { animation-delay: 48ms; }
#exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel]:nth-child(20) { animation-delay: 48ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(1) { animation-delay: 0ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(1) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(1) [data-folder-peek="stack"][data-on="1"] { animation-delay: 0ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(2) { animation-delay: 21ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(2) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(2) [data-folder-peek="stack"][data-on="1"] { animation-delay: 29ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(3) { animation-delay: 42ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(3) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(3) [data-folder-peek="stack"][data-on="1"] { animation-delay: 58ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(4) { animation-delay: 62ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(4) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(4) [data-folder-peek="stack"][data-on="1"] { animation-delay: 85ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(5) { animation-delay: 82ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(5) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(5) [data-folder-peek="stack"][data-on="1"] { animation-delay: 112ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(6) { animation-delay: 101ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(6) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(6) [data-folder-peek="stack"][data-on="1"] { animation-delay: 138ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(7) { animation-delay: 119ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(7) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(7) [data-folder-peek="stack"][data-on="1"] { animation-delay: 163ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(8) { animation-delay: 137ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(8) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(8) [data-folder-peek="stack"][data-on="1"] { animation-delay: 187ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(9) { animation-delay: 154ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(9) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(9) [data-folder-peek="stack"][data-on="1"] { animation-delay: 211ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(10) { animation-delay: 170ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(10) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(10) [data-folder-peek="stack"][data-on="1"] { animation-delay: 233ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(11) { animation-delay: 186ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(11) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(11) [data-folder-peek="stack"][data-on="1"] { animation-delay: 255ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(12) { animation-delay: 201ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(12) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(12) [data-folder-peek="stack"][data-on="1"] { animation-delay: 275ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(13) { animation-delay: 216ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(13) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(13) [data-folder-peek="stack"][data-on="1"] { animation-delay: 295ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(14) { animation-delay: 230ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(14) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(14) [data-folder-peek="stack"][data-on="1"] { animation-delay: 315ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(15) { animation-delay: 243ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(15) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(15) [data-folder-peek="stack"][data-on="1"] { animation-delay: 333ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(16) { animation-delay: 256ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(16) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(16) [data-folder-peek="stack"][data-on="1"] { animation-delay: 350ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(17) { animation-delay: 268ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(17) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(17) [data-folder-peek="stack"][data-on="1"] { animation-delay: 367ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(18) { animation-delay: 279ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(18) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(18) [data-folder-peek="stack"][data-on="1"] { animation-delay: 382ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(19) { animation-delay: 290ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(19) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(19) [data-folder-peek="stack"][data-on="1"] { animation-delay: 397ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(20) { animation-delay: 301ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(20) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(20) [data-folder-peek="stack"][data-on="1"] { animation-delay: 411ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(21) { animation-delay: 310ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(21) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(21) [data-folder-peek="stack"][data-on="1"] { animation-delay: 424ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(22) { animation-delay: 319ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(22) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(22) [data-folder-peek="stack"][data-on="1"] { animation-delay: 437ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(23) { animation-delay: 328ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(23) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(23) [data-folder-peek="stack"][data-on="1"] { animation-delay: 448ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(24) { animation-delay: 335ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(24) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(24) [data-folder-peek="stack"][data-on="1"] { animation-delay: 459ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(25) { animation-delay: 342ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(25) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(25) [data-folder-peek="stack"][data-on="1"] { animation-delay: 469ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(26) { animation-delay: 349ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(26) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(26) [data-folder-peek="stack"][data-on="1"] { animation-delay: 478ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(27) { animation-delay: 355ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(27) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(27) [data-folder-peek="stack"][data-on="1"] { animation-delay: 486ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(28) { animation-delay: 360ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(28) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(28) [data-folder-peek="stack"][data-on="1"] { animation-delay: 493ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(29) { animation-delay: 365ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(29) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(29) [data-folder-peek="stack"][data-on="1"] { animation-delay: 499ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(30) { animation-delay: 369ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(30) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(30) [data-folder-peek="stack"][data-on="1"] { animation-delay: 505ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(31) { animation-delay: 372ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(31) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(31) [data-folder-peek="stack"][data-on="1"] { animation-delay: 509ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(32) { animation-delay: 375ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(32) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(32) [data-folder-peek="stack"][data-on="1"] { animation-delay: 513ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(33) { animation-delay: 377ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(33) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(33) [data-folder-peek="stack"][data-on="1"] { animation-delay: 516ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(34) { animation-delay: 379ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(34) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(34) [data-folder-peek="stack"][data-on="1"] { animation-delay: 518ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(35) { animation-delay: 380ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(35) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(35) [data-folder-peek="stack"][data-on="1"] { animation-delay: 520ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(36) { animation-delay: 380ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(36) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(36) [data-folder-peek="stack"][data-on="1"] { animation-delay: 520ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(n+37) { animation-delay: 380ms; }
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(n+37) [data-thumb="fit"],
#exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile]:nth-child(n+37) [data-folder-peek="stack"][data-on="1"] { animation-delay: 520ms; }
@media (prefers-reduced-motion: reduce) {
  #exact-root [data-skel="dot"]::after,
  #exact-root [data-skel="bar"]::after,
  #exact-root [data-skel="plate"]::after {
    animation: none;
    transform: none;
    opacity: 0.35;
  }
  #exact-root [data-files="live"],
  #exact-root [data-files="skel"] {
    transition: none !important;
  }
  #exact-root [data-files="skel"][data-on="1"] [data-files="grid"] > [data-file-skel],
  #exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile],
  #exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile] [data-thumb="fit"],
  #exact-root [data-files="live"][data-on="1"] [data-files="grid"] > [data-file-tile] [data-folder-peek="stack"][data-on="1"] {
    animation: none !important;
  }
}

/* Tile grids (Files, menu, profile, lightbox folders):
   column count follows the grid's own width, not the page. auto-fill with
   tile-min adds or drops columns as the section resizes (about two on a phone). */
#exact-root [data-files="grid"] {
  grid-template-columns: repeat(auto-fill, minmax(var(--x-tile-min, 152px), 1fr));
}

/* Connectors: wider tracks (connect-min) so about five cards fit where tile-min fits seven. */
#exact-root [data-connector="grid"] {
  grid-template-columns: repeat(auto-fill, minmax(var(--x-connect-min), 1fr));
}

/* Files tiles: pointer until a real lift; then keep the filled circle for the drag. */
#exact-root [data-file-tile="1"],
#exact-root [data-file-tile="1"] * {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: var(--app-cursor-pointer, pointer) !important;
}
/* Lifting: custom grabbing cursor (file-drag.js re-applies under the pointer during HTML DnD). */
html:has([data-lifting="1"]),
html:has([data-lifting="1"]) * {
  cursor: var(--app-cursor-grabbing, grabbing) !important;
}
#exact-root [data-file-tile="1"] {
  border-radius: var(--x-radius-card, 24px);
  corner-shape: continuous;
  border: none !important;
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
}
/* Inset ring sits on the fill (no outer fringe); drop stays outside. */
#exact-root [data-file-tile="1"]:not([data-over="1"]) {
  box-shadow:
    inset 0 0 0 1px var(--x-card-ring),
    0 1px 4px 1px var(--x-shadow-far, rgb(0 0 0 / 0.06)) !important;
}
/* Hover is CSS-only (same wash.secondary mix as kit/wash.ts) — no Contract rebuild per tile. */
#exact-root [data-file-tile="1"]:hover,
#exact-root [data-file-tile="1"][data-exact-held~="hover"] {
  background-color: light-dark(
    color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 10%, #ffffff),
    color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 16%, #161616)
  ) !important;
  background-image: none !important;
}
#exact-root [data-file-tile="1"][data-over="1"],
#exact-root [data-file-tile="1"][data-over="1"]:hover {
  background-color: light-dark(
    color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 16%, #ffffff),
    color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 24%, #161616)
  ) !important;
  background-image: none !important;
}
#exact-root [data-file-tile="1"]:hover :is(button, [data-exact-on~="press"]),
#exact-root [data-file-tile="1"] [data-exact-held~="hover"] {
  background-image: none !important;
}
#exact-root input[data-file-title="1"],
#exact-root input[data-file-title="edit"] {
  cursor: var(--app-cursor-text, text) !important;
  caret-color: var(--app-cursor-accent, currentColor);
  field-sizing: content;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
}
/* HeadChip title: hug the name, cap at the pill so side controls never overlap. */
#exact-root [data-testid="chat-name-chip"] input[data-file-title="1"],
#exact-root [data-testid$="-title"] input[data-file-title="1"] {
  flex: 0 1 auto;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  field-sizing: content;
  overflow-x: hidden;
  text-overflow: ellipsis;
}
/* HTML mail frame: start short; mail-frame.js grows it to full content height
   and forwards wheel/touch so the page scrolls, not the iframe. */
#exact-root [data-testid="mail-html"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: var(--x-mail-html, 120px);
  height: auto !important;
  overflow: hidden !important;
  background: var(--x-card, #fff);
  -webkit-overflow-scrolling: auto;
}
#exact-root input[data-file-title="edit"] {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}
#exact-root [data-file-tile="1"] [data-file-title] {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 var(--x-space-1, 6px) !important;
  box-sizing: border-box !important;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: none !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font: 600 var(--x-type-hint) / 1.25 var(--x-family-sans) !important;
  cursor: var(--app-cursor-text, text) !important;
  user-select: text !important;
  -webkit-user-select: text !important;
  field-sizing: content;
}

/* Rome context menu: card on desktop (Exact places it). Phone: right-edge sheet.
   Open is a short opacity fade. Hover is CSS-only and instant (field-bg), with no
   Exact hover-wash fade and no press scale. */
#exact-root [data-context="menu"] {
  margin: 0;
}
#exact-root [data-context="menu"]:popover-open {
  animation: rome-context-in var(--x-duration-skel) ease-out;
}
@keyframes rome-context-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
#exact-root [data-context="menu"] [data-context="item"] {
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
  transition: none !important;
  transform: none !important;
}
#exact-root [data-context="menu"] [data-context="item"]:hover,
#exact-root [data-context="menu"] [data-context="item"][data-exact-held~="hover"],
#exact-root [data-context="menu"] [data-context="item"]:focus-visible {
  background-color: var(--x-field-bg) !important;
  background-image: none !important;
}
@media (max-width: 759px) {
  #exact-root [data-context="menu"]:popover-open {
    position: fixed !important;
    inset: auto 0 auto auto !important;
    top: 50% !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: max-content !important;
    min-width: var(--x-context-min) !important;
    max-width: min(var(--x-context-max), calc(100dvw - var(--x-space-4))) !important;
    max-height: min(80dvh, 100%) !important;
    overflow-y: auto !important;
    border-radius: var(--x-radius-card) 0 0 var(--x-radius-card) !important;
    animation: rome-context-edge-in var(--x-duration-skel) cubic-bezier(0.22, 1, 0.36, 1);
  }
}
@keyframes rome-context-edge-in {
  from { transform: translate(100%, -50%); opacity: 0; }
  to { transform: translate(0, -50%); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #exact-root [data-context="menu"]:popover-open {
    animation: none;
  }
}


[data-hue-dragging="1"],
[data-hue-dragging="1"] * {
  transition: none !important;
}


/* Folder peek: one rounded card. Covers stay inside the square plate.
   Tile overflow stays visible so chip-shadow / card-ring is not clipped. */
#exact-root [data-file-tile="1"],
#exact-root [data-folder-peek="tile"] {
  overflow: visible !important;
}
#exact-root [data-folder-peek="plate"] {
  overflow: hidden;
  container-type: size;
}
#exact-root [data-folder-peek="icon"] {
  z-index: 0;
  transition: opacity var(--x-duration-fast, 90ms) ease;
}
#exact-root [data-folder-peek="tile"][data-ready="1"] [data-folder-peek="icon"] {
  opacity: 0;
}
#exact-root [data-folder-peek="stack"] {
  position: relative;
  z-index: 1;
  width: 64%;
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  pointer-events: none;
  transition: opacity var(--x-duration-fast, 90ms) ease;
}
@supports (width: 1cqw) {
  #exact-root [data-folder-peek="stack"] {
    width: min(64cqw, 82cqh);
    height: auto;
  }
}
#exact-root [data-folder-peek="card"] {
  position: absolute;
  inset: 0;
  overflow: hidden;
  box-sizing: border-box;
  padding: var(--x-chrome-gap, 4px);
  border-radius: var(--x-radius-card, 24px);
  corner-shape: continuous;
  background: light-dark(rgb(255 255 255 / 0.72), rgb(22 22 22 / 0.88));
  border: none;
  box-shadow:
    inset 0 0 0 1px var(--x-card-ring),
    0 1px 4px 1px var(--x-shadow-far, rgb(0 0 0 / 0.06));
  transform: scale(0.86);
}
#exact-root [data-folder-peek="face"] {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--x-radius-card, 24px) - var(--x-chrome-gap, 4px));
  corner-shape: continuous;
}
/* Peek thumbnails are inset: whole image, contained, token padding (matches grid data-thumb="fit"). */
#exact-root [data-folder-peek="face"] img {
  position: absolute;
  inset: var(--x-space-1, 4px);
  display: block;
  width: calc(100% - 2 * var(--x-space-1, 4px));
  height: calc(100% - 2 * var(--x-space-1, 4px));
  object-fit: contain;
  border-radius: 0;
  corner-shape: initial;
}
#exact-root [data-folder-peek="shimmer"] {
  border-radius: inherit !important;
  corner-shape: inherit;
  z-index: 0;
}
/* Preview plate: no inset ring (it lipped corners on contain-fit thumbs). Clip to the squircle. */
#exact-root [data-thumb="0"],
#exact-root [data-thumb="1"],
#exact-root [data-folder-peek="plate"] {
  overflow: hidden !important;
  box-sizing: border-box !important;
  border-radius: var(--x-radius-card, 24px) !important;
  corner-shape: continuous;
  background-color: light-dark(
    color-mix(in srgb, var(--exact-accent, #0b76a8) 4%, #ffffff),
    color-mix(in srgb, var(--exact-accent, #0b76a8) 6%, #2a2a2a)
  ) !important;
  border: none !important;
  box-shadow: none !important;
}
#exact-root [data-thumb="0"]::after,
#exact-root [data-thumb="1"]::after,
#exact-root [data-folder-peek="plate"]::after {
  content: none;
}
/* Fit is only a layout box — never inherit the plate's continuous radius or it lips the preview. */
#exact-root [data-thumb="fit"] {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
  corner-shape: initial;
}
#exact-root [data-thumb="fit"] img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  /* Continuous on a wide short thumb lips the corners into the stage. */
  border-radius: 0 !important;
  corner-shape: initial;
}
#exact-root [data-lightbox="media"] {
  border-radius: var(--x-radius-tile, 12px) !important;
  corner-shape: continuous;
}
/* A picture fades in once, on its first load; after that it stays put. */
#exact-root [data-thumb] img {
  opacity: 0;
  transition: opacity var(--x-duration-fast, 90ms) ease;
}
#exact-root [data-thumb="1"] img {
  opacity: 1;
}
#exact-root [data-folder-peek="count"],
#exact-root :is([data-file-mark="1"], [data-file-mark="label"]) {
  position: absolute;
  left: 50%;
  bottom: var(--x-chrome-gap, 4px);
  z-index: 5;
  display: grid !important;
  place-items: center !important;
  min-width: var(--x-count, 16px);
  height: var(--x-count, 16px);
  box-sizing: border-box;
  border-radius: var(--x-radius-round, 999px);
  background: var(--x-card);
  box-shadow: var(--x-chip-shadow);
  line-height: 1 !important;
  transform: translateX(-50%);
  pointer-events: none;
}
#exact-root [data-folder-peek="count"],
#exact-root [data-file-mark="label"] {
  padding: 0 var(--x-chrome-inset, 3px) !important;
  font-size: var(--x-type-caption, 11px);
  font-weight: 500;
}
#exact-root [data-file-mark="1"] {
  width: var(--x-count, 16px);
  padding: 0 !important;
}
#exact-root [data-file-mark="1"] svg {
  width: var(--x-icon-xs, 14px) !important;
  height: var(--x-icon-xs, 14px) !important;
}
#exact-root [data-folder-peek="count"] > * {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  height: 1em !important;
  font: inherit !important;
  color: inherit !important;
  text-align: center !important;
  transform: translateY(0.08em);
}
#exact-root [data-folder-peek="stack"][data-count="1"] [data-folder-peek="card"]:nth-child(1) {
  z-index: 1;
  transform: scale(0.86);
}
#exact-root [data-folder-peek="stack"][data-count="2"] [data-folder-peek="card"]:nth-child(1) {
  z-index: 1;
  transform: rotate(-10deg) translate(-16%, 2%) scale(0.76);
}
#exact-root [data-folder-peek="stack"][data-count="2"] [data-folder-peek="card"]:nth-child(2) {
  z-index: 2;
  transform: rotate(10deg) translate(16%, -2%) scale(0.82);
}
#exact-root [data-folder-peek="stack"][data-count="3"] [data-folder-peek="card"]:nth-child(1) {
  z-index: 1;
  transform: rotate(-11deg) translate(-20%, 4%) scale(0.72);
}
#exact-root [data-folder-peek="stack"][data-count="3"] [data-folder-peek="card"]:nth-child(2) {
  z-index: 2;
  transform: rotate(11deg) translate(20%, 3%) scale(0.76);
}
#exact-root [data-folder-peek="stack"][data-count="3"] [data-folder-peek="card"]:nth-child(3) {
  z-index: 3;
  transform: rotate(-1deg) translate(0, -8%) scale(0.84);
}
@media (prefers-reduced-motion: reduce) {
  #exact-root [data-folder-peek="icon"],
  #exact-root [data-folder-peek="stack"],
  #exact-root [data-thumb] img {
    transition: none;
  }
}

/* Lightbox video: picture shrinks to leave the control dock in view; no dead band under it. */
#exact-root [data-video="player"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
  align-self: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  max-height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  /* Visible so the dock chip-shadow is not clipped on the sides/bottom. */
  overflow: visible !important;
  gap: var(--x-space-2, 10px) !important;
}
#exact-root [data-video="stage"] {
  display: flex !important;
  flex: 0 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  max-height: calc(100% - var(--x-composer-h, 36px) - var(--x-space-2, 10px)) !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: var(--x-radius-tile, 12px);
  overflow: hidden;
  margin-left: auto !important;
  margin-right: auto !important;
}
#exact-root [data-video="dock"] {
  flex: 0 0 auto !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  overflow: visible !important;
  /* Room for chip-shadow past the dock pill. */
  padding: 2px;
  box-sizing: border-box;
}
#exact-root [data-video="player"] video {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background: transparent !important;
  border-radius: var(--x-radius-tile, 12px);
  margin-left: auto !important;
  margin-right: auto !important;
}
#exact-root [data-video="player"] video::-webkit-media-controls {
  display: none !important;
}
#exact-root [data-video="seek"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: var(--app-cursor-pointer, pointer);
}
#exact-root [data-video="seek"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--exact-accent, #0b76a8) 22%, transparent);
}
#exact-root [data-video="seek"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 999px;
  border: 0;
  background: var(--exact-accent, #0b76a8);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--exact-accent, #0b76a8) 35%, transparent);
}
#exact-root [data-video="seek"]::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--exact-accent, #0b76a8) 22%, transparent);
}
#exact-root [data-video="seek"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--exact-accent, #0b76a8);
}


/* Drag: the original slot stays as a faded placeholder; the ghost is a full Exact card. */
#exact-root [data-file-tile="1"][data-drag-source="1"] {
  opacity: var(--x-opacity-drag-source, 0.35) !important;
  transition: opacity 120ms ease-out;
}
#exact-root [data-drag-ghost="1"],
[data-drag-ghost="1"] {
  opacity: 1 !important;
  content-visibility: visible !important;
  background-color: var(--x-card, Canvas) !important;
  border-radius: var(--x-radius-card, 24px) !important;
  box-shadow: var(--x-chip-shadow) !important;
  overflow: hidden !important;
}
#exact-root [data-drag-ghost="1"] img,
[data-drag-ghost="1"] img {
  opacity: 1 !important;
  content-visibility: visible !important;
}

/* Files grid: offscreen tiles skip layout and paint, so a big folder scrolls at the cost of what is on screen. */
[data-file-tile="1"] { content-visibility: auto; contain-intrinsic-size: auto 12rem; }

/* Prose: the shared Markdown reader (kit/prose.contract). Runs arrive as inline spans, so the look keys off their marks. */
#exact-root [data-prose] { letter-spacing: -0.006em; -webkit-font-smoothing: antialiased; text-wrap: pretty; }
#exact-root [data-prose] span[style*="font-weight: 700"][style*="font-size"] { letter-spacing: -0.018em; line-height: 1.3; }
#exact-root [data-prose] a { color: var(--exact-accent, var(--x-seed)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color 0.15s ease; }
#exact-root [data-prose] a:hover { text-decoration-color: currentColor; }
/* Long URLs: keep the href, shorten the visible label. */
#exact-root [data-chat="line"] a,
#exact-root [data-prose="bubble"] a {
  display: inline-block;
  max-width: min(100%, 28ch);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
#exact-root [data-prose] span[style*="monospace"] { font-size: 0.88em; padding: 0.12em 0.4em; border-radius: 6px; background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 10%, transparent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
#exact-root [data-prose] a span[style*="monospace"] { background: color-mix(in srgb, var(--exact-accent, var(--x-seed)) 10%, transparent); }
#exact-root [data-prose="accent"] a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 60%, transparent); }
#exact-root [data-prose="accent"] span[style*="monospace"] { background: color-mix(in srgb, currentColor 16%, transparent); }
#exact-root [data-prose] img { max-width: 100%; border-radius: var(--x-radius-tile); }
@media (max-width: 640px) { #exact-root [data-prose="page"] { font-size: 0.97em; } }

/* Lightbox PDF: pages hold a page-shaped box until drawn, and offscreen pages skip layout and paint. */
#exact-root [data-pdf="page"] {
  display: block;
  height: auto;
  aspect-ratio: auto 1 / 1.4142;
  content-visibility: auto;
  contain-intrinsic-size: auto 760px auto 1075px;
}


/* Prose blocks: the Markdown reader draws code, tables, quotes, task boxes and rules as elements named by data-md. */
#exact-root [data-prose] [data-md="marker"] { color: color-mix(in srgb, var(--exact-accent, var(--x-seed)) 85%, currentColor); }
#exact-root [data-prose] [data-md="task-marker"] { opacity: 1 !important; align-items: center; }
#exact-root [data-prose] [data-md="task"] { position: relative; display: inline-block; box-sizing: border-box; flex: none; width: 1.05em; height: 1.05em; margin-right: 0.3em; border-radius: 0.3em; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 38%, transparent); }
#exact-root [data-prose] [data-md="task"][data-checked="1"] { background: var(--exact-accent, var(--x-seed)); box-shadow: none; }
#exact-root [data-prose] [data-md="task"][data-checked="1"]::after { content: ""; position: absolute; left: 0.34em; top: 0.12em; width: 0.26em; height: 0.52em; border: solid var(--x-on-accent); border-width: 0 0.13em 0.13em 0; transform: rotate(45deg); }
#exact-root [data-prose] [data-md="rule"] { display: inline-block; width: 100%; height: 1px; margin: 0.6em 0; vertical-align: middle; background: var(--x-card-line); }
#exact-root [data-prose] [data-md="quote"] { display: block; margin: 0.2em 0; padding: 0.05em 0 0.05em 1em; border-left: 3px solid color-mix(in srgb, var(--exact-accent, var(--x-seed)) 55%, transparent); border-radius: 2px; }
#exact-root [data-prose="accent"] [data-md="quote"] { border-left-color: color-mix(in srgb, currentColor 55%, transparent); }
#exact-root [data-prose] [data-md="quote"] span[style*="opacity"] { opacity: 0.8 !important; }
#exact-root [data-prose] [data-md="code"] { display: block; box-sizing: border-box; max-width: 100%; margin: 0.25em 0; padding: var(--x-space-2) calc(var(--x-space-2) + 2px); overflow-x: auto; white-space: pre; font-size: 0.88em; line-height: 1.55; border-radius: var(--x-radius-tile); background: var(--x-field-bg); box-shadow: 0 0 0 1px var(--x-card-line); }
#exact-root [data-prose] [data-md="code"] span[style*="monospace"] { padding: 0; border-radius: 0; background: none; box-shadow: none; font-size: inherit; }
#exact-root [data-prose="accent"] [data-md="code"] { background: color-mix(in srgb, currentColor 14%, transparent); box-shadow: none; }
#exact-root [data-prose] [data-md="table"] { display: block; box-sizing: border-box; max-width: 100%; margin: 0.4em 0; overflow-x: auto; white-space: normal; border-radius: var(--x-radius-tile); box-shadow: 0 0 0 1px var(--x-card-line); }
#exact-root [data-prose] [data-md="table"] table { min-width: 100%; border-collapse: collapse; font-size: 0.93em; line-height: 1.5; }
#exact-root [data-prose] [data-md="table"] th { padding: 0.5em 0.85em; font-weight: 600; text-align: left; white-space: nowrap; background: var(--x-field-bg); }
#exact-root [data-prose] [data-md="table"] td { padding: 0.5em 0.85em; vertical-align: top; }
#exact-root [data-prose] [data-md="table"] th + th, #exact-root [data-prose] [data-md="table"] td + td { border-left: 1px solid var(--x-card-line); }
#exact-root [data-prose] [data-md="table"] tbody tr { border-top: 1px solid var(--x-card-line); }
#exact-root [data-prose] [data-md="table"] thead tr { border-bottom: 1px solid var(--x-card-line); }
@media (max-width: 640px) {
  #exact-root [data-prose] [data-md="code"] { padding: var(--x-space-1) var(--x-space-2); font-size: 0.84em; }
  #exact-root [data-prose] [data-md="table"] table { font-size: 0.88em; }
}

/* Downloads: the row fills as the bar while the rail is open; collapsed, the icon's ring fills instead. */
#exact-root [data-dl="ring"] {
  display: none !important;
}
#exact-root [data-dl="ring"] svg {
  transform: rotate(-90deg);
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-dl="ring"] {
  display: flex !important;
}
#exact-root [data-rail="fly"]:not(:hover):not([data-pinned="1"]):not(:has([data-search="on"] input:focus)) [data-dl="fill"] {
  display: none !important;
}

/* Lightbox table: hairline between columns, same line as the row rules. */
#exact-root [data-table="cell"] + [data-table="cell"] { border-left: 1px solid var(--x-card-line); }

/* Database tables: offscreen rows skip layout and paint, so a long table scrolls at the cost of what is on screen. */
[data-grid="row"] { content-visibility: auto; contain-intrinsic-size: auto var(--x-control, 36px); }


/* Time chip. */
#exact-root [data-chat="when"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto !important;
  height: 16px;
  margin: 0;
  padding: 1px var(--x-space-1, 6px) 0 var(--x-space-1, 6px);
  box-sizing: border-box;
  border: 0;
  border-radius: var(--x-gutter, 8px);
  border-top-left-radius: var(--x-pill-gap, 4px);
  corner-shape: initial !important;
  background: var(--exact-accent, var(--x-seed, #0b76a8));
  color: var(--x-on-accent, #ffffff);
  font-size: var(--x-type-pill, 11px);
  font-weight: 500;
  line-height: 1;
}
#exact-root [data-chat="meta"] {
  gap: var(--x-pill-gap, 4px) !important;
}
/* Pill above first message — gap, stem runs up to the pill. */
#exact-root [data-chat="main"] {
  --stem-gap: var(--x-space-2, 10px);
}
/* Square the time pill only when a stem joins it. */
#exact-root [data-chat="main"] > [data-chat="clock"]:has(+ [data-chat="entry"] [data-chat="stem"]) {
  margin-bottom: calc(-1 * var(--x-chrome-gap, 4px) + var(--stem-gap));
}
#exact-root [data-chat="main"] > [data-chat="clock"]:has(+ [data-chat="entry"] [data-chat="stem"]) [data-chat="when"] {
  border-bottom-left-radius: 0;
}
#exact-root [data-chat="main"] > [data-chat="clock"]:has([data-chat="when"]) + [data-chat="entry"] [data-chat="stem"][data-follow="1"]::before {
  top: calc(-1 * var(--stem-gap) - 4px);
}
#exact-root [data-chat="main"] > [data-chat="clock"]:has([data-chat="when"]) + [data-chat="entry"] [data-chat="stem"][data-follow="off"]::before {
  top: calc(-1 * var(--stem-gap) - 4px);
  height: calc(var(--stem-mid) - var(--stem-bend) + var(--stem-w) + var(--stem-gap) + 4px);
}
#exact-root [data-chat="entry"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  width: 100%;
  min-width: 0;
  gap: var(--x-pill-gap, 4px);
}
#exact-root [data-chat="stem"] {
  --stem-mid: calc(var(--x-post-type, 15px) * 1.35 / 2);
  --stem-w: 1px;
  --stem-arm: 10px;
  --stem-bend: 5px;
  --stem-ink: var(--exact-accent, var(--x-seed, #0b76a8));
  position: relative;
  flex: none;
  width: var(--stem-arm) !important;
  min-width: var(--stem-arm) !important;
  align-self: stretch;
  min-height: calc(var(--stem-mid) * 2);
  overflow: visible;
}
#exact-root [data-chat="stem"]::before,
#exact-root [data-chat="stem"]::after {
  corner-shape: initial !important;
  box-sizing: border-box;
}
/* Mid: vertical + tip. */
#exact-root [data-chat="stem"][data-follow="1"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--stem-w);
  background: var(--stem-ink);
}
#exact-root [data-chat="stem"][data-follow="1"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--stem-mid) - var(--stem-w) / 2);
  width: var(--stem-arm);
  height: var(--stem-w);
  background: var(--stem-ink);
}
/* End: fill vertical, small round tip. */
#exact-root [data-chat="stem"][data-follow="off"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--stem-w);
  height: calc(var(--stem-mid) - var(--stem-bend) + var(--stem-w));
  background: var(--stem-ink);
}
#exact-root [data-chat="stem"][data-follow="off"]::after {
  content: "";
  position: absolute;
  left: 0;
  top: calc(var(--stem-mid) - var(--stem-bend));
  width: var(--stem-arm);
  height: var(--stem-bend);
  background: transparent;
  border: 0;
  border-left: var(--stem-w) solid var(--stem-ink);
  border-bottom: var(--stem-w) solid var(--stem-ink);
  border-bottom-left-radius: var(--stem-bend);
  corner-shape: initial !important;
}
/* Mobile retina hairline (was good); desktop always thin. */
@media (min-resolution: 2dppx) {
  #exact-root [data-chat="stem"] {
    --stem-w: 0.5px;
  }
}
@media (min-width: 760px) {
  #exact-root [data-chat="stem"] {
    --stem-w: 0.5px;
  }
}
#exact-root [data-chat="line"] {
  margin: 0;
  padding: 0;
}
#exact-root [data-chat="line"] p,
#exact-root [data-chat="line"] [data-md] {
  font-size: inherit;
  font-weight: inherit;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  vertical-align: baseline;
}
#exact-root [data-chat="line"] p,
#exact-root [data-chat="line"] [data-md] {
  display: inline;
  margin: 0;
  padding: 0;
}
#exact-root [data-chat="line"] [data-chat="when"] {
  margin: 0 0.35em 0 0;
  vertical-align: middle;
}
#exact-root [data-chat="line"] [data-chat="tally"] {
  margin: 0 0.35em 0 0;
  vertical-align: middle;
  transform: translateY(-1px);
}
#exact-root [data-chat="tally"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: auto !important;
  min-width: 16px;
  height: 16px;
  margin: 0;
  padding: 0 3px;
  box-sizing: border-box;
  border: 0;
  border-radius: var(--x-radius-round, 999px) !important;
  corner-shape: initial !important;
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed, #0b76a8)) 12%, transparent) !important;
  color: light-dark(var(--exact-accent, var(--x-seed, #0b76a8)), #ffffff) !important;
  font-size: var(--x-type-pill, 11px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
#exact-root #thread {
  gap: 0;
}
#exact-root [data-chat="post"] {
  gap: 0;
  margin: 0;
}
#exact-root [data-chat="post"][data-headed="off"]:not([data-cluster="1"]) [data-chat="main"] {
  padding-top: 0 !important;
}
/* Space between consecutive stemmed messages; keep the vertical continuous. */
#exact-root [data-chat="post"][data-follow="1"] [data-chat="main"] {
  padding-bottom: var(--x-space-1, 6px) !important;
}
#exact-root [data-chat="post"][data-follow="1"] [data-chat="stem"][data-follow="1"]::before {
  bottom: calc(-1 * var(--x-space-1, 6px));
}
#exact-root [data-chat="album"] {
  --chat-album-inset: var(--x-post-inset, calc(var(--x-post-pad-x, 12px) + var(--x-post-avatar, 40px) + var(--x-space-2, 10px)));
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-top: var(--x-post-media-gap);
  padding-bottom: var(--x-post-pad-y);
  padding-left: var(--chat-album-inset);
  padding-right: 0;
  scroll-padding-left: var(--chat-album-inset);
  scroll-snap-type: x mandatory;
  gap: var(--x-post-gap);
  align-items: flex-start;
}
/* Album in main (gallery under the time chip) or beside a stem — already inset. */
#exact-root [data-chat="main"] > [data-chat="album"],
#exact-root [data-chat="entry"] [data-chat="album"] {
  padding-left: 0;
  padding-right: 0;
  scroll-padding-left: 0;
}
/* Gallery still scrolls to the pane edge past the row's right pad. */
#exact-root [data-chat="main"] > [data-chat="album"][data-many="1"] {
  width: calc(100% + var(--x-post-pad-x, 12px));
  max-width: none;
  margin-right: calc(-1 * var(--x-post-pad-x, 12px));
}
/* Stem tip centered on media (not the text line). */
#exact-root [data-chat="entry"]:has([data-chat="album"]) [data-chat="stem"][data-follow="1"]::after {
  top: 50%;
  transform: translateY(-50%);
}
#exact-root [data-chat="entry"]:has([data-chat="album"]) [data-chat="stem"][data-follow="off"]::before {
  height: calc(50% - var(--stem-bend) + var(--stem-w));
}
#exact-root [data-chat="entry"]:has([data-chat="album"]) [data-chat="stem"][data-follow="off"]::after {
  top: calc(50% - var(--stem-bend));
}
#exact-root [data-chat="album"]::-webkit-scrollbar { display: none; width: 0; height: 0; }
#exact-root [data-chat="album"] > * { flex: 0 0 auto; min-width: 0; }
/* One item: natural ratio clamped to 16:9 .. 9:16. */
#exact-root [data-chat="album"][data-many="off"] {
  padding-right: var(--x-post-pad-x);
  scroll-snap-type: none;
  overflow-x: hidden;
}
#exact-root [data-chat="album"][data-many="off"] [data-chat="tile"] {
  container-type: inline-size;
  width: 100%;
  max-width: 100%;
}
#exact-root [data-chat="album"][data-many="off"] [data-chat="tile"][data-portrait="1"] {
  width: 66.667%;
  max-width: 66.667%;
}
#exact-root [data-chat="album"][data-many="off"] [data-chat="attach"],
#exact-root [data-chat="album"][data-many="off"] [data-chat="attach"] img,
#exact-root [data-chat="album"][data-many="off"] [data-chat="attach"] video {
  display: block;
  width: 100%;
  height: auto;
  min-height: 56.25cqw;
  max-height: 177.78cqw;
  object-fit: cover;
  border-radius: var(--x-post-radius);
}
#exact-root [data-chat="album"][data-many="off"] [data-chat="tile"][data-portrait="1"] [data-chat="attach"],
#exact-root [data-chat="album"][data-many="off"] [data-chat="tile"][data-portrait="1"] [data-chat="attach"] img,
#exact-root [data-chat="album"][data-many="off"] [data-chat="tile"][data-portrait="1"] [data-chat="attach"] video {
  min-height: 0;
  max-height: 177.78cqw;
}
/* White edge on the media face (img + video) — on attach so reels don't paint over it. */
#exact-root [data-chat="tile"] [data-chat="attach"] {
  position: relative;
  border-radius: var(--x-post-radius);
  corner-shape: -exact-continuous;
}
#exact-root [data-chat="tile"] [data-chat="attach"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  corner-shape: inherit;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04);
  pointer-events: none;
}
/* Sequenced: natural ratio tiles on a full-width track (scroll over the stem). */
#exact-root [data-chat="album"][data-many="1"] [data-chat="tile"] {
  height: var(--x-post-row-h);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
#exact-root [data-chat="album"][data-many="1"] [data-chat="attach"],
#exact-root [data-chat="album"][data-many="1"] [data-chat="attach"] img,
#exact-root [data-chat="album"][data-many="1"] [data-chat="attach"] video {
  display: block;
  width: auto;
  height: var(--x-post-row-h);
  min-width: calc(var(--x-post-row-h) * 9 / 16);
  max-width: calc(var(--x-post-row-h) * 16 / 9);
  object-fit: cover;
  border-radius: var(--x-post-radius);
}
#exact-root [data-chat="reel"] { pointer-events: none; }
#exact-root [data-chat="sound"] {
  position: absolute;
  top: var(--x-space-2);
  right: var(--x-space-2);
  bottom: auto;
  z-index: 3;
  box-sizing: border-box;
  width: var(--x-post-mute) !important;
  height: var(--x-post-mute) !important;
  min-width: var(--x-post-mute);
  min-height: var(--x-post-mute);
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.55) !important;
  background-image: none !important;
  color: #fff;
  pointer-events: auto;
}
/* Sanity-style feed: tiny time pills around the scrub + thumb. */
#exact-root [data-chat="rail"] {
  position: absolute;
  left: var(--x-space-2);
  right: var(--x-space-2);
  bottom: var(--x-space-2);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--x-pill-gap, 4px);
  pointer-events: none;
}
#exact-root [data-chat="rail-at"],
#exact-root [data-chat="rail-end"] {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: var(--x-pill-pad-start, 2px) var(--x-chrome-gap, 4px);
  border-radius: var(--x-radius-round, 999px);
  background: rgb(0 0 0 / 0.55);
  color: #fff;
  font: 600 var(--x-post-rail-type, 9px) / 1 var(--x-family-sans, Geist, system-ui, sans-serif);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#exact-root [data-chat="rail-bar"] {
  position: relative;
  flex: 1;
  align-self: stretch;
  min-width: 0;
  min-height: var(--x-post-rail-thumb, 8px);
  overflow: visible;
  pointer-events: auto;
  touch-action: none;
  cursor: pointer;
}
#exact-root [data-chat="rail-bar"]::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: var(--x-post-rail-track, 3px);
  border-radius: var(--x-radius-round, 999px);
  background: rgb(255 255 255 / 0.28);
  transform: translateY(-50%);
  pointer-events: none;
}
#exact-root [data-chat="rail-fill"] {
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: var(--x-post-rail-track, 3px);
  border-radius: var(--x-radius-round, 999px);
  background: #fff;
  transform: translateY(-50%) scaleX(0);
  transform-origin: left center;
  will-change: transform;
  pointer-events: none;
}
#exact-root [data-chat="rail-thumb"] {
  position: absolute;
  top: 50%;
  left: 0;
  width: var(--x-post-rail-thumb, 8px);
  height: var(--x-post-rail-thumb, 8px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--x-chip-shadow);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#exact-root [data-video="surface"] {
  --exact-hover-wash: none !important;
  --exact-hover-dim: 1 !important;
  --exact-dims: 0 !important;
}
#exact-root [data-video="surface"]:hover,
#exact-root [data-video="surface"][data-exact-held~="hover"],
#exact-root [data-video="surface"]:active,
#exact-root [data-video="surface"][data-pressed] {
  background-image: none !important;
}
#exact-root [data-video="flash"] {
  z-index: 2;
  opacity: 0;
  pointer-events: none !important;
}
#exact-root [data-video="flash"][data-flash="play"],
#exact-root [data-video="flash"][data-flash="pause"] {
  animation: video-play-flash var(--x-duration-flash) ease-out forwards;
}
@keyframes video-play-flash {
  0% { opacity: 0; transform: scale(0.86); }
  18% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  #exact-root [data-video="flash"][data-flash="play"],
  #exact-root [data-video="flash"][data-flash="pause"] {
    animation: video-play-flash-static var(--x-duration-context) ease-out forwards;
  }
}
@keyframes video-play-flash-static {
  0%, 40% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
/* Exact rows set display:flex as an inline style, so hiding must win with !important. */
#exact-root [data-chat="sound"] [data-chat="vol-off"],
#exact-root [data-chat="sound"] [data-chat="vol-on"] {
  flex: none;
  align-items: center;
  justify-content: center;
}
#exact-root [data-chat="sound"] [data-chat="vol-on"] { display: none !important; }
#exact-root [data-chat="sound"][data-sound="on"] [data-chat="vol-on"] { display: flex !important; }
#exact-root [data-chat="sound"][data-sound="off"] [data-chat="vol-off"] { display: flex !important; }
#exact-root [data-chat="sound"][data-sound="on"] [data-chat="vol-off"] { display: none !important; }
#exact-root [data-chat="sound"] svg {
  width: var(--x-icon-xs, 14px);
  height: var(--x-icon-xs, 14px);
  stroke: #fff;
  flex: none;
}
#exact-root { --x-post-rule: color-mix(in srgb, var(--x-text, currentColor) 10%, transparent); }
#exact-root [data-chat="rule"] {
  width: 100%;
  height: 0;
  margin: 0;
  border-bottom: 1px solid var(--x-post-rule);
}
#exact-root [data-chat="rule"] {
  overflow: visible;
}
#exact-root [data-chat="rule"][data-seen="1"] {
  border-bottom-color: var(--exact-accent, var(--x-seed));
}
#exact-root [data-chat="rule"] [data-chat="seen"] {
  border: 1px solid var(--exact-accent, var(--x-seed));
  top: 0;
  left: var(--x-post-pad-x);
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}
#exact-root [data-chat="rule"] [data-chat="day"] {
  border: 1px solid var(--exact-accent, var(--x-seed));
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

#exact-root [data-chat="pending"] {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}
#exact-root [data-chat="pending"]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
#exact-root [data-chat="pending"] > * {
  flex: 0 0 auto !important;
}
/* Shared tile height; width follows the file's ratio, clamped between 9:16 and 16:9. */
#exact-root [data-chat="pending"] [data-chat="thumb"] {
  flex: 0 0 auto !important;
  width: fit-content !important;
  min-width: calc(var(--x-attach-h, 72px) * 9 / 16) !important;
  max-width: calc(var(--x-attach-h, 72px) * 16 / 9) !important;
  height: var(--x-attach-h, 72px) !important;
  max-height: var(--x-attach-h, 72px) !important;
  border-radius: var(--x-radius-tile, 12px) !important;
  overflow: hidden !important;
  background: transparent !important;
}
#exact-root [data-chat="pending"] [data-chat="thumb"] img,
#exact-root [data-chat="pending"] [data-chat="thumb"] video {
  display: block !important;
  width: auto !important;
  height: var(--x-attach-h, 72px) !important;
  min-width: calc(var(--x-attach-h, 72px) * 9 / 16) !important;
  max-width: calc(var(--x-attach-h, 72px) * 16 / 9) !important;
  max-height: var(--x-attach-h, 72px) !important;
  object-fit: cover !important;
  object-position: center !important;
  background: transparent !important;
}
#exact-root [data-chat="pending"] [data-chat="thumb"] video {
  pointer-events: none;
}
#exact-root [data-chat="pending"] [data-chat="close"] {
  z-index: 1;
  top: var(--x-chrome-gap, 4px) !important;
  right: var(--x-chrome-gap, 4px) !important;
  width: var(--x-count, 16px) !important;
  height: var(--x-count, 16px) !important;
  min-width: var(--x-count, 16px) !important;
  min-height: var(--x-count, 16px) !important;
}
#exact-root [data-chat="pending"] [data-chat="close"] svg {
  width: var(--x-icon-xs, 14px) !important;
  height: var(--x-icon-xs, 14px) !important;
}
/* Phone: taller attach strip, 16px field text, roomier fallback spacer. */
@media (max-width: 759px) {
  [data-chrome="end-phone"][data-pending="1"] {
    height: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + var(--x-attach-h-phone, 120px) + var(--x-composer-h, 36px) + var(--x-space-2, 10px) + env(safe-area-inset-bottom, 0px)));
    min-height: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + var(--x-attach-h-phone, 120px) + var(--x-composer-h, 36px) + var(--x-space-2, 10px) + env(safe-area-inset-bottom, 0px)));
  }
  [data-dock="notice"][data-pending="1"] {
    bottom: var(--x-dock-h, calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-header-pad, 12px) + var(--x-attach-h-phone, 120px) + var(--x-composer-h, 36px) + var(--x-space-2, 10px) + env(safe-area-inset-bottom, 0px)));
  }
  #exact-root [data-chat="pending"] [data-chat="thumb"] {
    min-width: calc(var(--x-attach-h-phone, 120px) * 9 / 16) !important;
    max-width: calc(var(--x-attach-h-phone, 120px) * 16 / 9) !important;
    height: var(--x-attach-h-phone, 120px) !important;
    max-height: var(--x-attach-h-phone, 120px) !important;
  }
  #exact-root [data-chat="pending"] [data-chat="thumb"] img,
  #exact-root [data-chat="pending"] [data-chat="thumb"] video {
    height: var(--x-attach-h-phone, 120px) !important;
    min-width: calc(var(--x-attach-h-phone, 120px) * 9 / 16) !important;
    max-width: calc(var(--x-attach-h-phone, 120px) * 16 / 9) !important;
    max-height: var(--x-attach-h-phone, 120px) !important;
  }
  #exact-root [data-chat="composer"] > [data-chat="bar"] > [data-chat="field"] > [data-testid="composer-field"] {
    font-size: var(--x-type-control, 16px) !important;
  }
}

/* Shared HeadBar: equal 1fr sides, sized from the side slots, pin start and end
   to the padded edges and cap the title so it stays centered and never reaches
   the buttons. Overflow stays visible on the title slot and pill so chip-shadow
   is not clipped; names ellipsize on one line inside the pill. */
#exact-root [data-head="bar"] {
  display: grid !important;
  grid-template-columns: minmax(min-content, 1fr) minmax(0, auto) minmax(min-content, 1fr) !important;
  align-items: center !important;
  gap: var(--x-gutter, 8px) !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  container-type: inline-size;
  container-name: head-bar;
}
#exact-root [data-head="start"],
#exact-root [data-head="end"] {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  min-width: min-content !important;
  justify-self: stretch !important;
}
#exact-root [data-head="start"] {
  justify-content: flex-start !important;
}
#exact-root [data-head="end"] {
  justify-content: flex-end !important;
}
#exact-root [data-head="title"] {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  box-sizing: border-box !important;
  flex: 0 1 auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  /* space-1 (~6px) matches chip-shadow (1px ring + 4px blur + 1px spread). */
  padding: var(--x-space-1, 6px) !important;
  overflow: visible !important;
}
#exact-root [data-head="title"] > * {
  flex: 0 1 auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: visible !important;
}
#exact-root [data-head="title"]:has([data-head="meta"]) > * {
  height: auto !important;
  min-height: var(--x-round-btn, 34px) !important;
  padding-top: var(--x-chrome-gap, 4px) !important;
  padding-bottom: var(--x-chrome-gap, 4px) !important;
  align-items: center !important;
}
#exact-root [data-head="names"] {
  flex: 0 1 auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#exact-root [data-head="names"]:has([data-head="meta"]) {
  white-space: normal !important;
}
#exact-root [data-head="label"][data-file-title="1"],
#exact-root [data-head="title"] input[data-file-title="1"] {
  flex: 0 1 auto !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  field-sizing: content !important;
  overflow-x: hidden !important;
  overflow-y: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#exact-root [data-head="meta"] {
  display: block !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#exact-root [data-head="extra"] {
  display: flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
}
#exact-root [data-head="more"] {
  display: none !important;
  flex: 0 0 auto !important;
  position: relative !important;
}
@container head-bar (max-width: 384px) { /* head-overflow */
  #exact-root [data-head="extra"] {
    display: none !important;
  }
  #exact-root [data-head="more"] {
    display: flex !important;
  }
}
/* Edit timeline filmstrip — Studio 28px tiles. */
#exact-root [data-edit="strip"] {
  display: flex;
  align-items: stretch;
  height: 100%;
  width: 100%;
  overflow: hidden;
  background: var(--x-edit-video, #1a1c20);
  border-radius: inherit;
  corner-shape: inherit;
}
#exact-root [data-edit="strip"] img {
  width: 28px;
  min-width: 28px;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
  pointer-events: none;
  user-select: none;
}

/* Edit play dock sits on the preview — keep media above it, pad the time pill. */
#exact-root [data-testid="edit-play-dock"][data-dock="on"] {
  --edit-play-dock-h: calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-space-2, 10px));
  height: var(--edit-play-dock-h) !important;
  min-height: var(--edit-play-dock-h) !important;
  padding-top: var(--x-gutter, 8px) !important;
  padding-bottom: var(--x-space-2, 10px) !important;
  padding-left: var(--x-gutter, 8px) !important;
  padding-right: var(--x-gutter, 8px) !important;
}
#exact-root [data-testid="edit-preview"] {
  padding-bottom: calc(var(--x-composer-h, 36px) + var(--x-gutter, 8px) + var(--x-space-2, 10px)) !important;
  box-sizing: border-box !important;
}
#exact-root [data-testid="edit-play-dock"] > :nth-child(2) {
  padding-left: var(--x-header-pad, 12px) !important;
  padding-right: var(--x-header-pad, 12px) !important;
  gap: var(--x-space-2, 10px) !important;
}

/* Connector tile description: two lines, then cut. */
#exact-root [data-file-tile="1"] [data-file-blurb] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  padding: 0 var(--x-space-1, 6px);
  box-sizing: border-box;
  overflow-wrap: anywhere;
  line-height: 1.3;
  min-height: calc(2 * 1.3em);
}
/* Skill Hub: two line summaries, quiet cover tints, and a sideways tab strip. */
#exact-root [data-skill="tabs"] {
  scrollbar-width: none;
}
#exact-root [data-skill="tabs"]::-webkit-scrollbar {
  display: none;
}
#exact-root [data-skill="summary"] {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
#exact-root [data-skill="cover-1"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed)) 14%, var(--x-field-bg));
}
#exact-root [data-skill="cover-2"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed)) 10%, var(--x-field-bg));
}
#exact-root [data-skill="cover-3"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed)) 18%, var(--x-field-bg));
}
#exact-root [data-skill="cover-4"] {
  background: color-mix(in srgb, var(--exact-accent, var(--x-seed)) 8%, var(--x-field-bg));
}
