/* FrameSketch, styled on the Habitat XR design system (brand bible, 22 Oct 2026).
   Interface scale: every size is 1.25x the design system's values (like 125% browser zoom); hairlines stay 1px.
   The tokens below are the design system's, under their own names; the short aliases further down keep older rules working. */
:root {
  /* surfaces: layers by lightness, not shadow */
  --surface-000: #131515;  /* navigation rail */
  --surface-100: #1a1c1c;  /* canvas: top bar and page (brand charcoal) */
  --surface-200: #202323;  /* inset fields */
  --surface-300: #262929;  /* cards, control tracks */
  --surface-400: #313535;  /* controls, icon buttons */
  --surface-500: #3c4141;  /* selected segment, sub-header bands */
  --surface-600: #4f5555;  /* strong header bands */
  --border-subtle: #262929;
  --border-field: #363a3a;
  /* text */
  --text-strong: #ffffff;
  --text-primary: #e6e8e7;
  --text-secondary: #a9aeac;
  --text-tertiary: #959a98;
  /* greens: accent = focus, selection, links; action = main buttons; teal = eyebrows, avatars */
  --accent: #60b358;
  --on-accent: #101010;
  --accent-text: var(--accent);
  --accent-teal: #4ea791;
  --action: #55b498;
  --action-hover: #6cc4a8;
  --action-fill: #223b33;
  --action-fill-hover: #2b4a40;
  --brand-charcoal: var(--surface-100);
  --brand-forest: #183932;
  --topo-line: var(--accent-teal);
  --icon-brand: #60d0a1;
  --avatar-fill: var(--accent-teal);
  /* review states: always shown with an icon too */
  --status-approved: #7cc673;
  --status-review: #f2c14e;
  --status-changes: #ff7a6b;
  --status-progress: #6fb7ff;
  /* category fills (white text) */
  --phase-green: #3e7b47;
  --phase-violet: #49447e;
  --phase-plum: #4e2b4f;
  --phase-maroon: #4e2b2c;
  /* shape and space (x1.25) */
  --radius-sm: 5px;
  --radius-md: 7.5px;
  --radius-lg: 10px;
  --radius-full: 9999px;
  --space-1: 5px; --space-2: 10px; --space-3: 15px; --space-4: 20px; --space-6: 30px;
  --rail-width: 80px;
  --topbar-height: 65px;
  --control-height: 35px;
  --button-height: 50px;
  --button-height-sm: 40px;
  --field-height: 40px;
  --shadow-menu: 0 10px 30px rgba(0,0,0,.5);
  /* type */
  --display: Oswald, "Arial Narrow", "Roboto Condensed", sans-serif;
  --font: Lato, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* short names used throughout this file */
  --bg: var(--surface-100);
  --bg2: var(--surface-100);
  --bg3: var(--surface-300);
  --bg4: var(--surface-400);
  --line: var(--border-subtle);
  --line-strong: var(--border-field);
  --text: var(--text-primary);
  --muted: var(--text-secondary);
  --danger: var(--status-changes);
  --warn: #ffc53d;            /* team-only comments: deliberately louder than any review state */
  --grad: linear-gradient(90deg, var(--accent-teal), var(--accent));
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9aeac' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");  /* the icon set's 'down', in text-secondary */
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--surface-100); color: var(--text-primary);
  font: 400 17.5px/25px var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { background: var(--surface-200); border: 1px solid var(--border-field); border-radius: var(--radius-md);
  padding: 7px 12.5px; min-height: var(--field-height); outline: none; width: 100%; }
input::placeholder, textarea::placeholder { color: var(--text-secondary); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
/* dropdowns: the brand chevron 15px in from the right edge, with room between the text and the arrow */
select { -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 42.5px;
  background-image: var(--chevron); background-repeat: no-repeat; background-position: right 15px center; background-size: 16px 16px; }
.mini-select:hover { background-color: var(--surface-500); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--accent); }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
kbd { font: 500 15px var(--mono); background: var(--surface-400); border: 1px solid var(--border-field); border-bottom-width: 2.5px; border-radius: var(--radius-sm); padding: 0 6px; }
hr { border: 0; border-top: 1px solid var(--border-subtle); margin: 5px 0; }
.muted { color: var(--text-secondary); } .small { font-size: 16px; } .tiny { font-size: 15px; line-height: 20px; } .light { font-weight: 400; }
.dim { opacity: .55; }
.spacer { flex: 1; } .grow { flex: 1; min-width: 0; } .ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: var(--space-2); } .row-end { display: flex; justify-content: flex-end; gap: var(--space-2); margin-top: var(--space-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.error { color: var(--status-changes); min-height: 1em; font-size: 16px; }
.ic { display: inline-flex; vertical-align: middle; flex: none; }
[hidden] { display: none !important; }

/* ---- buttons
   main (primary and outline): Oswald caps on the website's action pair; one primary per view.
   secondary (.btn): surface-400, Lato Bold sentence case. tertiary (.btn.ghost): no fill. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--control-height);
  padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: var(--surface-400); color: var(--text-primary);
  font: 700 17.5px/20px var(--font); cursor: pointer; white-space: nowrap; transition: background .12s, color .12s, border-color .12s; }
.btn:hover { background: var(--surface-500); color: var(--text-strong); }
.btn.primary, .btn.outline { height: var(--button-height-sm); padding: 0 var(--space-4); border: 1.5px solid var(--action);
  font: 500 17.5px/20px var(--display); text-transform: uppercase; letter-spacing: .02em; }
.btn.primary { background: var(--action-fill); color: var(--action); border-color: var(--action-fill); }
.btn.primary:hover { background: var(--action-fill-hover); border-color: var(--action-fill-hover); color: var(--action-hover); }
.btn.outline { background: transparent; color: var(--action); }
.btn.outline:hover { background: var(--action-fill); color: var(--action-hover); border-color: var(--action-hover); }
.btn.wide, .modal-actions .btn.primary, .auth .btn.primary { height: var(--button-height); font-size: 20px; }
.btn.danger { background: transparent; color: var(--status-changes); box-shadow: inset 0 0 0 1px #5b2c28; }
.btn.danger:hover { background: #2e1a18; color: #ff9a8e; }
.modal-actions .btn.danger { height: var(--button-height); }
.btn.ghost { background: transparent; color: var(--text-secondary); }
.btn.ghost:hover { background: var(--surface-300); color: var(--text-primary); }
.btn.sm { height: 30px; padding: 0 var(--space-2); font-size: 16px; }
.btn.primary.sm, .btn.outline.sm { height: var(--button-height-sm); padding: 0 var(--space-3); font-size: 17.5px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: var(--control-height); border-radius: var(--radius-md);
  background: transparent; border: 0; cursor: pointer; color: var(--text-secondary); flex: none; }
.icon-btn:hover { background: var(--surface-400); color: var(--text-primary); }
.icon-btn.sm { width: 32.5px; height: 32.5px; }
.icon-btn.big { width: 50px; height: 50px; }
.icon-btn.on { color: var(--accent); }
.link { background: none; border: 0; padding: 0; color: var(--accent-text); cursor: pointer; }
.link:hover { text-decoration: underline; }
.link.small { color: var(--text-secondary); font-size: 15px; } .link.small:hover { color: var(--text-primary); text-decoration: none; }
.mini-select { width: auto; min-height: var(--control-height); padding: 0 42.5px 0 12.5px; font-size: 16px; background-color: var(--surface-400); border: 0; border-radius: var(--radius-md); background-position: right 15px center; }
.seg { display: inline-flex; background: var(--surface-300); border-radius: var(--radius-md); padding: 2.5px; gap: 2.5px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; height: 30px; padding: 0 var(--space-2); border-radius: var(--radius-sm);
  cursor: pointer; font: 700 16px var(--font); color: var(--text-secondary); }
.seg button:hover { color: var(--text-primary); }
.seg button.on { background: var(--surface-500); color: var(--text-strong); }

/* ---- shell: navigation rail + top bar + content */
.shell { display: grid; grid-template-columns: var(--rail-width) minmax(0, 1fr); min-height: 100vh; }
.previewing .shell { min-height: calc(100vh - 50px); }
.rail { background: var(--surface-000); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); padding: var(--space-3) 0;
  position: sticky; top: 0; height: 100vh; z-index: 30; }
.previewing .rail { top: 50px; height: calc(100vh - 50px); }
.rail-mark { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: var(--space-2); }
.rail-mark img { width: 40px; height: auto; display: block; }
.rail-product { display: none; }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.rail-item { width: 50px; height: 50px; display: grid; place-items: center; border-radius: var(--radius-md); color: var(--text-tertiary); position: relative; }
.rail-item:hover { color: var(--text-primary); background: var(--surface-300); }
.rail-item.on { color: var(--icon-brand); background: var(--surface-300); }
.rail-item.on::before { content: ''; position: absolute; left: -15px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.rail-avatar { width: 45px; height: 45px; border-radius: var(--radius-full); border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--avatar-fill); color: var(--on-accent); font: 700 16px/20px var(--font); letter-spacing: .02em; }
.rail-avatar.guest { cursor: default; }
.rail-avatar:hover:not(.guest) { box-shadow: 0 0 0 2px var(--surface-500); }
.shell-main { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.previewing .shell-main { min-height: calc(100vh - 50px); }
/* the page: brand charcoal with a faint forest glow rising from the bottom of the window (hx-glow) */
.hx-glow { background: radial-gradient(120% 55% at 50% 125%, rgba(24,57,50,.85) 0%, rgba(24,57,50,.35) 45%, rgba(24,57,50,0) 75%) fixed, var(--surface-100); }
.page { min-height: 100%; display: flex; flex-direction: column; flex: 1; }
.topbar { display: flex; align-items: center; gap: var(--space-4); height: var(--topbar-height); padding: 0 var(--space-6); border-bottom: 1px solid var(--border-subtle);
  background: var(--surface-100); flex: none; }
.brand { display: flex; align-items: center; gap: var(--space-3); }
.brand-logo { height: 42.5px; display: block; }
.brand-logo.big { height: 67.5px; }
.wordmark { font: 700 17.5px var(--display); letter-spacing: .04em; text-transform: uppercase; }
.wordmark.big { font-size: 27.5px; }
.product { color: var(--text-strong); font: 700 21px var(--display); }
.top-right { display: flex; align-items: center; gap: var(--space-2); }
.content { padding: var(--space-6); max-width: 1750px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-6); flex-wrap: wrap; }
.page-head h1 { margin: 0; font: 700 35px/42.5px var(--display); color: var(--text-primary); }
.page-head h1 .light { font-weight: 400; }
.eyebrow { display: block; font: 700 17.5px/22.5px var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--accent-teal); margin-bottom: 5px; }
.eyebrow b { font-weight: 700; } .eyebrow span { font-weight: 400; color: var(--accent-text); }
.center-screen { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 25px; }
.center-screen > :first-child { margin: auto 0; }
.card { background: var(--surface-300); border-radius: var(--radius-lg); padding: var(--space-6); }
.card.narrow { max-width: 700px; }
.auth { width: 100%; max-width: 475px; display: flex; flex-direction: column; gap: var(--space-4); }
.auth h2 { margin: 7.5px 0 0; }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); margin: 5px 0 12.5px; }
.auth h2 { text-align: center; } .auth > p { text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; } .field > span { font: 700 16px var(--font); color: var(--text-secondary); }
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.check { display: flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.empty { text-align: center; padding: 75px 25px; color: var(--text-secondary); }
.empty.small { padding: 37.5px 12.5px; }
.spinner { width: 32.5px; height: 32.5px; border: 4px solid var(--surface-400); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- grids and cards */
.grid { display: grid; gap: var(--space-4); }
.grid.projects { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid.assets { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-bottom: 25px; }
.project-card, .asset-card { background: var(--surface-300); border-radius: var(--radius-lg); padding: var(--space-1); overflow: hidden; display: block; position: relative;
  outline: 2px solid transparent; outline-offset: -2px; transition: outline-color .12s; }
.project-card:hover, a.asset-card:hover { outline-color: var(--surface-500); }
.project-card:focus-visible, a.asset-card:focus-visible { outline-color: var(--accent); outline-offset: -2px; }
.project-card.archived { opacity: .55; }
.pc-thumb, .ac-thumb { aspect-ratio: 16/9; background: #000; position: relative; overflow: hidden; border-radius: var(--radius-md); }
.pc-thumb img, .ac-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* projects without a picture: a ProjectCover gradient (never the contour pattern, which is kept for sign-in) */
.pc-thumb .ph, .pl-thumb .ph { background: linear-gradient(135deg, #8cc277 0%, #5d9a5c 45%, #1f3d2a 100%); }
.ph { position: absolute; inset: 0; display: flex; flex-direction: column; gap: var(--space-2); align-items: center; justify-content: center; color: var(--text-secondary); text-align: center; padding: 15px; }
.ph.error { color: var(--status-changes); }
.pc-body, .ac-body { padding: var(--space-3) var(--space-2) var(--space-2); display: flex; flex-direction: column; gap: 5px; }
.pc-body > b { font: 700 21px/27.5px var(--display); color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-body .muted { color: var(--text-secondary); } .pc-body .tiny { color: var(--text-tertiary); }
.ac-title b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 21px/27.5px var(--display); color: var(--text-primary); }
.ac-meta { display: flex; align-items: center; gap: var(--space-2); }
.ac-strip { position: absolute; inset: 0; background-size: 1000% 1000%; opacity: 0; transition: opacity .1s; }
.ac-thumb:hover .ac-strip { opacity: 1; }
.dur { position: absolute; right: 9px; bottom: 9px; background: rgba(26,28,28,.8); padding: 0 7.5px; border-radius: var(--radius-sm); font: 500 15px/20px var(--mono); color: var(--text-strong); }
.badge { display: inline-block; font: 700 15px/20px var(--font); padding: 0 var(--space-2); border-radius: var(--radius-sm); background: var(--surface-300);
  color: var(--text-primary); margin-left: var(--space-2); vertical-align: middle; }
.badge.dim { background: var(--surface-400); color: var(--text-secondary); opacity: 1; font-weight: 400; }
.badge.on-thumb { position: absolute; left: 9px; bottom: 9px; margin: 0; background: rgba(26,28,28,.8); color: var(--text-strong); }
/* StatusBadge: a chip with a coloured icon, so state never depends on colour alone */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 27.5px; padding: 0 var(--space-2); border-radius: var(--radius-sm);
  background: var(--surface-400); font: 700 15px/20px var(--font); color: var(--text-primary); white-space: nowrap; }
.st-pending .ic { color: var(--status-review); }
.st-progress .ic { color: var(--status-progress); }
.st-changes .ic { color: var(--status-changes); }
.st-approved .ic { color: var(--status-approved); }
select.approval { font-weight: 700; border: 0; padding-left: 32.5px; background-repeat: no-repeat; background-position: 12.5px center, right 15px center; background-size: 12px 12px, 16px 16px; }
select.approval.st-pending { background-image: radial-gradient(circle, var(--status-review) 58%, transparent 62%), var(--chevron); }
select.approval.st-progress { background-image: radial-gradient(circle, var(--status-progress) 58%, transparent 62%), var(--chevron); }
select.approval.st-changes { background-image: radial-gradient(circle, var(--status-changes) 58%, transparent 62%), var(--chevron); }
select.approval.st-approved { background-image: radial-gradient(circle, var(--status-approved) 58%, transparent 62%), var(--chevron); }
.warn-dot { color: var(--warn); cursor: help; }
.card-x { position: absolute; top: 7.5px; right: 7.5px; background: rgba(26,28,28,.6); }
.archived-wrap { margin-top: 37.5px; } .archived-wrap summary { cursor: pointer; color: var(--text-secondary); margin-bottom: var(--space-4); font: 500 20px var(--display); }

/* ---- project */
.project { flex: 1; display: grid; grid-template-columns: 275px 1fr; min-height: 0; position: relative; }
.project.dragging::after { content: 'Drop to upload'; position: absolute; inset: 12.5px; border: 2.5px dashed var(--accent); border-radius: var(--radius-lg);
  background: rgba(19,21,21,.75); display: grid; place-items: center; font: 700 25px var(--display); pointer-events: none; z-index: 5; }
.rounds { border-right: 1px solid var(--border-subtle); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: 4px; background: var(--surface-100); }
.rounds-title { font: 500 20px/27.5px var(--display); color: var(--text-primary); padding: 0 12.5px 10px; }
.round-link { display: flex; justify-content: space-between; align-items: center; padding: 8px 12.5px; border-radius: var(--radius-md); color: var(--text-secondary); }
.round-link:hover { background: var(--surface-300); color: var(--text-primary); }
.round-link.on { background: var(--surface-500); color: var(--text-strong); font-weight: 700; }
.rounds .btn { margin-top: 12.5px; }
.project-main { padding: var(--space-6); min-width: 0; }
.notes { color: var(--text-secondary); margin-top: -12.5px; }
.dropzone { border: 1.5px dashed var(--border-field); border-radius: var(--radius-lg); padding: 62.5px; display: flex; gap: var(--space-2); align-items: center; justify-content: center; color: var(--text-secondary); }
.dropzone.compact { padding: 27.5px; }

/* ---- modal / menu / toast */
.modal-bg { position: fixed; inset: 0; background: rgba(10,12,12,.7); display: grid; place-items: center; z-index: 50; padding: 25px; }
.modal { background: var(--surface-300); border-radius: var(--radius-lg); width: 100%; max-width: 550px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-menu); }
.modal.wide { max-width: 800px; }
.modal-head { display: flex; align-items: center; padding: var(--space-4) var(--space-3) 0 var(--space-6); }
.modal-head h3 { margin: 0; flex: 1; font: 700 25px/32.5px var(--display); color: var(--text-primary); }
.modal-body { padding: var(--space-4) var(--space-6); overflow: auto; }
.modal-body h4 { margin: 10px 0 0; font: 500 20px/27.5px var(--display); color: var(--text-primary); }
.modal-actions { display: flex; justify-content: flex-end; align-items: center; gap: var(--space-2); padding: 0 var(--space-6) var(--space-6); }
.modal-body input, .modal-body select, .modal-body textarea { background-color: var(--surface-200); }
.menu { position: fixed; z-index: 60; background: var(--surface-400); border-radius: var(--radius-lg); padding: 6px; min-width: 262.5px; box-shadow: var(--shadow-menu); }
.menu button { display: flex; align-items: center; gap: var(--space-2); width: 100%; text-align: left; background: none; border: 0; padding: 8px 12.5px; border-radius: var(--radius-md); cursor: pointer; color: var(--text-primary); }
.menu button .ic { color: var(--text-secondary); }
.menu button:hover { background: var(--surface-500); color: var(--text-strong); } .menu button.danger, .menu button.danger .ic { color: var(--status-changes); }
.menu hr { border-top-color: var(--surface-500); }
.toasts { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: var(--space-2); z-index: 70; align-items: center; }
.toast { background: var(--surface-500); color: var(--text-strong); padding: 11px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow-menu); transition: opacity .3s; }
.toast.error { background: #3d201d; color: #ffc2bb; } .toast.out { opacity: 0; }
.share-new { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); background: var(--surface-200); border-radius: var(--radius-lg); }
.share-new .btn { align-self: flex-start; }
.share-list { display: flex; flex-direction: column; gap: var(--space-2); }
.share-row { display: flex; align-items: center; gap: var(--space-2); padding: 12.5px 0; border-bottom: 1px solid var(--surface-400); }
.link-input { margin-top: 6px; font-size: 15px; min-height: 0; padding: 5px 10px; color: var(--text-secondary); }
.kbd-table td { padding: 5px 17.5px 5px 0; }

/* ---- uploads */
.upload-tray { position: fixed; right: 22.5px; bottom: 22.5px; width: 425px; max-height: 50vh; overflow: auto; background: var(--surface-400); border-radius: var(--radius-lg); z-index: 40; box-shadow: var(--shadow-menu); }
.tray-head { display: flex; align-items: center; padding: 10px 10px 10px 17.5px; border-bottom: 1px solid var(--surface-500); }
.tray-item { padding: 12.5px 17.5px; border-bottom: 1px solid var(--surface-500); display: flex; flex-direction: column; gap: 6px; }
.tray-item.error .tiny { color: var(--status-changes); }
.bar { height: 5px; background: var(--surface-200); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--accent); transition: width .2s; }
.tray-item.done .bar i { background: var(--surface-600); }

/* ---- review player */
.review { display: grid; grid-template-columns: 1fr 450px; grid-template-rows: minmax(0, 1fr) auto; height: 100vh; overflow: hidden; }
.shell .review { height: 100vh; }
.previewing .shell .review { height: calc(100vh - 50px); }
.review-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #000; }
.review-main:fullscreen { background: #000; }
.review-head { display: flex; align-items: center; gap: var(--space-3); padding: 10px var(--space-4); min-height: var(--topbar-height); background: var(--surface-100); border-bottom: 1px solid var(--border-subtle); flex: none; }
.crumbs { min-width: 0; }
.crumb-top { font-size: 15px; line-height: 20px; color: var(--text-tertiary); }
.crumb-title { font: 700 21px/27.5px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-primary); }
.crumb-title .badge { font-family: var(--font); }
.spatial-tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 var(--space-2); margin-right: 5px; border-radius: var(--radius-md);
  color: var(--icon-brand); font: 700 15px var(--font); white-space: nowrap; }
@media (max-width: 1437.5px) { .spatial-tag .lbl { display: none; } }
.asset-switch { max-width: 275px; }
.banners:empty { display: none; }
.banner { background: #2c2716; color: #f5dc9a; padding: 9px 17.5px; font-size: 16px; border-bottom: 1px solid #3d3519; }
.banner.warn { background: #3a1d1a; color: #ffc2bb; }
.banner { display: flex; align-items: center; gap: var(--space-2); }
.banner-x { flex: none; display: grid; place-items: center; width: 27.5px; height: 27.5px; border: 0; border-radius: var(--radius-sm); background: transparent; color: inherit; cursor: pointer; opacity: .75; }
.banner-x:hover { opacity: 1; background: rgba(255,255,255,.08); }
.stage { flex: 1; position: relative; min-height: 0; display: grid; place-items: center; overflow: hidden; background: #000; }
.frame { position: relative; overflow: hidden; }
.frame video { position: absolute; left: 0; top: 0; object-fit: fill; display: block; }
.overlay { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; }
.overlay.drawing { cursor: crosshair; }
.pano-host { position: absolute; inset: 0; display: none; }
.stage.pov .pano-host { display: block; }
.stage.pov .frame { opacity: 0.001; pointer-events: none; }
.pano-canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.pano-canvas:active { cursor: grabbing; }
.stage.loading::after { content: ''; position: absolute; width: 42.5px; height: 42.5px; border: 4px solid rgba(255,255,255,.2); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; pointer-events: none; }
.stage-msg { position: absolute; inset: auto 25px 25px; background: rgba(26,28,28,.92); padding: 17.5px; border-radius: var(--radius-lg); text-align: center; }
.controls { background: var(--surface-100); border-top: 1px solid var(--border-subtle); padding: 0 12.5px 7.5px; flex: none; }
.timeline { position: relative; height: 37.5px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.tl-track { position: relative; width: 100%; height: 7.5px; background: var(--surface-400); border-radius: 4px; }
.timeline:hover .tl-track { height: 10px; }
.tl-buffered { position: absolute; left: 0; top: 0; bottom: 0; background: var(--surface-600); border-radius: 4px; }
.tl-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 4px; }
.tl-head { position: absolute; top: 50%; width: 4px; height: 25px; background: #fff; border-radius: 2.5px; transform: translate(-50%, -50%); box-shadow: 0 0 5px rgba(0,0,0,.6); pointer-events: none; }
.tl-range { position: absolute; top: -5px; bottom: -5px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.5); border-radius: 4px; pointer-events: none; }
.tl-markers { position: absolute; inset: 0; }
.tl-marker { position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translate(-50%, -50%); border: 2.5px solid var(--surface-100); cursor: pointer; z-index: 2; }
.tl-marker:hover, .tl-marker.on { transform: translate(-50%, -50%) scale(1.35); z-index: 3; }
.tl-marker.resolved { opacity: .35; }
.tl-rangemark { position: absolute; top: -6px; height: 4px; border-radius: 2.5px; opacity: .8; pointer-events: none; }
.tl-preview { position: absolute; bottom: 37.5px; transform: translateX(-50%); background: #000; border-radius: var(--radius-md); overflow: hidden; pointer-events: none; z-index: 5; text-align: center; box-shadow: var(--shadow-menu); }
.tl-thumb { width: 200px; background-size: 1000% 1000%; }
.tl-preview span { display: block; font: 500 15px var(--mono); padding: 2.5px 7.5px; }
.ctrl-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.tc-wrap { margin-left: 10px; font: 500 16px var(--mono); font-variant-numeric: tabular-nums; color: var(--text-secondary); }
.tc { background: none; border: 0; padding: 2.5px 5px; border-radius: var(--radius-sm); cursor: pointer; font: inherit; color: var(--text-primary); }
button.tc:hover { background: var(--surface-400); }
.vol { width: 100px; padding: 0; min-height: 0; accent-color: var(--accent); border: 0; background: none; }

/* ---- comments */
.comments { display: flex; flex-direction: column; min-height: 0; background: var(--surface-100); border-left: 1px solid var(--border-subtle); }
.c-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); min-height: var(--topbar-height); border-bottom: 1px solid var(--border-subtle); }
.c-head h3 { margin: 0; font: 700 25px/32.5px var(--display); } .c-head .count { color: var(--text-tertiary); font-size: 15px; }
.c-list { flex: 1; overflow: auto; padding: var(--space-2); }
.c { padding: 12.5px 12.5px 10px; border-radius: var(--radius-lg); cursor: pointer; margin-bottom: 2.5px; outline: 2px solid transparent; outline-offset: -2px; }
.c:hover { background: var(--surface-300); }
.c.on { background: var(--surface-300); outline-color: var(--accent); }
.c.resolved > .c-body, .c.resolved > .c-meta { opacity: .5; }
.c-top { display: flex; align-items: center; gap: 9px; }
.c-top b { font-weight: 700; color: var(--text-primary); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font: 700 13px var(--font); letter-spacing: .02em; color: var(--on-accent); flex: none; }
.avatar.sm { width: 25px; height: 25px; font-size: 12px; }
.avatar.md { width: 40px; height: 40px; font-size: 15px; }
.avatar.xl { width: 120px; height: 120px; font-size: 40px; }
.avatar.has-img { background: var(--surface-400); overflow: hidden; }
.avatar img, .rail-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.rail-avatar.has-img { background: var(--surface-400); overflow: hidden; }
.person { display: flex; align-items: center; gap: var(--space-3); }
.avatar-btn { border: 0; padding: 0; background: none; border-radius: 50%; cursor: pointer; }
.avatar-form { align-items: center; text-align: center; }
.avatar-preview { display: grid; place-items: center; padding-top: 5px; }
.team-tag { font: 700 13px/18px var(--font); background: var(--surface-400); color: var(--text-secondary); padding: 0 6px; border-radius: var(--radius-sm); }
.c-num { color: var(--text-tertiary); font-size: 15px; }
.c-top .muted.small { color: var(--text-tertiary); font-size: 15px; }
.resolve { border: 1.5px solid var(--border-field); border-radius: 50%; color: transparent; }
.resolve:hover { color: var(--text-secondary); }
.resolve.on { background: var(--status-approved); border-color: var(--status-approved); color: var(--on-accent); }
.c-meta { display: flex; gap: var(--space-2); align-items: center; margin: 7.5px 0 4px 39px; }
.tc-chip { font: 500 15px/20px var(--mono); background: var(--surface-400); color: var(--accent-text); padding: 1px 7.5px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.tc-chip.dim { color: var(--text-secondary); opacity: 1; font-family: var(--font); font-weight: 700; }
.c-body { margin-left: 39px; white-space: pre-wrap; word-wrap: break-word; }
.c-actions { display: flex; gap: var(--space-3); margin: 6px 0 0 39px; opacity: 0; }
.c:hover .c-actions, .c.on .c-actions, .c:focus-within .c-actions { opacity: 1; }
.replies { margin: 10px 0 0 39px; border-left: 2px solid var(--surface-400); padding-left: 12.5px; display: flex; flex-direction: column; gap: var(--space-2); }
.reply .c-body { margin-left: 34px; }
.reply-box { margin: 10px 0 0 39px; }
.composer { border-top: 1px solid var(--border-subtle); padding: 12.5px var(--space-3) var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface-100); }
.tools { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; row-gap: 7.5px; }
/* the drawing tools (range first) stay together on the right; a long range timecode moves them onto the next line */
.tool-group { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.tool-sep { width: 1px; height: 20px; background: var(--surface-500); margin: 0 2.5px; }
.tool.marking { box-shadow: inset 0 0 0 2px var(--accent); background: transparent; color: var(--accent-text); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; background: var(--surface-400); border: 0; border-radius: var(--radius-md); padding: 0 10px; cursor: pointer; color: var(--text-secondary); font: 500 14px var(--mono); white-space: nowrap; flex: none; }
.chip.on { color: var(--accent-text); background: var(--surface-500); }
.tool { width: 35px; height: 35px; display: inline-grid; place-items: center; background: none; border: 0; border-radius: var(--radius-md); cursor: pointer; color: var(--text-secondary); }
.tool:hover { background: var(--surface-400); color: var(--text-primary); }
.tool.on { background: var(--surface-500); color: var(--text-strong); box-shadow: inset 0 0 0 2px var(--accent); }
.swatches { display: flex; gap: 7.5px; align-items: center; }
.swatch { width: 22.5px; height: 22.5px; border-radius: 50%; border: 2.5px solid transparent; cursor: pointer; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.swatch.on { border-color: #fff; }
.composer textarea { min-height: 75px; }
.compose-foot { display: flex; align-items: center; justify-content: space-between; }

/* Team-only comments: amber everywhere, so a private note is never mistaken for one clients can read */
.vis-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.vis-row .seg button.on[data-v="team"] { background: var(--warn); color: #241a00; }
.vis-note { display: none; align-items: center; gap: 7.5px; font-size: 15px; font-weight: 700; color: var(--warn); }
.composer.team-only { background: color-mix(in srgb, var(--warn) 9%, var(--surface-100)); box-shadow: inset 4px 0 0 var(--warn); }
.composer.team-only .vis-note { display: flex; }
.composer.team-only textarea { border-color: color-mix(in srgb, var(--warn) 55%, var(--border-field)); }
.composer.team-only .btn.primary { background: var(--warn); border-color: var(--warn); color: #241a00; }
.vis-tag { display: inline-flex; align-items: center; gap: 4px; font: 700 13px/18px var(--font); color: var(--warn);
  background: color-mix(in srgb, var(--warn) 14%, transparent); padding: 0 7px; border-radius: var(--radius-sm); }
.c.team-only { box-shadow: inset 3px 0 0 var(--warn); }
.tl-marker.team-only { border-color: var(--warn); border-radius: 3px; }

/* ---- compare */
.compare { display: flex; flex-direction: column; height: 100vh; background: #000; }
.previewing .compare { height: calc(100vh - 50px); }
.cmp-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 2.5px; min-height: 0; }
.cmp-pane { display: flex; flex-direction: column; min-height: 0; }
.cmp-label { padding: 7.5px 15px; background: var(--surface-100); font-size: 16px; }
.cmp-video { flex: 1; min-height: 0; display: grid; place-items: center; }
.cmp-video video { max-width: 100%; max-height: 100%; }

@media (max-width: 1437.5px) { .vol { display: none; } }
@media (max-width: 1125px) {
  .review, .shell .review { grid-template-columns: 1fr; grid-template-rows: 58vh 1fr auto; height: auto; min-height: 100vh; }
  .comments { border-left: 0; border-top: 1px solid var(--border-subtle); }
  .project { grid-template-columns: 1fr; }
  .rounds { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border-subtle); padding: 12.5px; }
  .rounds-title { display: none; }
  .round-link { flex: none; white-space: nowrap; gap: 12.5px; }
  .rounds .btn { width: auto; margin-top: 0; flex: none; }
  .content, .project-main { padding: var(--space-4); }
  .vol { display: none; }
  .cmp-grid { grid-template-columns: 1fr; }
}

/* ---- review types: category fills from the brand deck, white labels */
.rl-name { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.kind-tag { font: 700 13px/18px var(--font); padding: 1px 7.5px; border-radius: var(--radius-sm); vertical-align: middle; margin-left: var(--space-2); color: var(--text-strong); }
.rl-name .kind-tag { margin-left: 0; }
.kind-tag.big { font-size: 15px; padding: 2.5px 10px; position: relative; top: -4px; }
.kind-tag.internal { background: var(--phase-violet); }
.kind-tag.client { background: var(--phase-green); }
.internal-note { display: flex; align-items: center; gap: var(--space-2); background: color-mix(in srgb, var(--phase-violet) 45%, var(--surface-100)); color: #dcd8ff;
  padding: 11px 15px; border-radius: var(--radius-lg); margin: -10px 0 22.5px; font-size: 16px; }
.kind-choice { display: flex; flex-direction: column; gap: var(--space-2); }
.kind-opt { display: flex; gap: 12.5px; align-items: flex-start; padding: 12.5px 15px; background: var(--surface-200); border-radius: var(--radius-lg); cursor: pointer; outline: 2px solid transparent; outline-offset: -2px; }
.kind-opt.on { outline-color: var(--accent); }
.kind-opt input { margin-top: 4px; width: auto; flex: none; accent-color: var(--accent); }

/* ---- team & roles */
.role-tag { font: 700 13px/18px var(--font); padding: 1px 7.5px; border-radius: var(--radius-sm); }
.role-tag.admin { background: var(--phase-plum); color: var(--text-strong); }
.role-tag.contributor { background: var(--surface-400); color: var(--text-secondary); }
.team-layout { display: grid; grid-template-columns: minmax(0, 1fr) 425px; gap: 25px; align-items: start; }
.team-table { width: 100%; border-collapse: collapse; }
.team-table th { text-align: left; font: 500 20px/27.5px var(--display); color: var(--text-primary); padding: 0 12.5px 12.5px; }
.team-table td { padding: 15px 12.5px; border-top: 1px solid var(--surface-400); vertical-align: middle; }
.team-table td.right { text-align: right; }
.card-title { margin: 0 0 17.5px; font: 700 25px/32.5px var(--display); color: var(--text-primary); }
.roles-help p { margin: 7.5px 0; }
.temp-pw { font: 500 19px var(--mono); letter-spacing: .05em; }
@media (max-width: 1125px) { .team-layout { grid-template-columns: 1fr; } }

/* ---- brand */
.pc-thumb .ph-icon, .ph-icon { width: 34%; height: auto; object-fit: contain; opacity: .55; }
.head-icon { display: flex; padding-right: 12.5px; margin-right: 2.5px; border-right: 1px solid var(--border-subtle); }
.head-icon img { width: 35px; height: 35px; display: block; }
.review-head { flex-wrap: wrap; row-gap: 7.5px; }
.review-head .crumbs { flex: 1 1 160px; min-width: 0; }
.crumb-top { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1125px) { .review-head .spacer { display: none; } .asset-switch { max-width: 200px; } }

/* ---- copyright / IP notice */
.site-footer { margin-top: auto; padding: var(--space-4) 25px; text-align: center; font-size: 15px; line-height: 20px; color: var(--text-tertiary); border-top: 1px solid var(--border-subtle); }
.site-footer a { color: var(--accent-text); }
.site-footer a::after { content: " ↗"; }
.site-footer a:hover { text-decoration: underline; }
.center-screen .site-footer { border-top: 0; padding-bottom: 5px; }
.site-footer.compact { margin-top: 0; padding: 6px 15px; font-size: 14px; background: var(--surface-100); }
.review-footer { grid-column: 1 / -1; }

/* ---- projects: list view */
.sort-label { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text-primary); }
.sort-label .mini-select { color: var(--text-secondary); }
.seg button .ic { pointer-events: none; }
.seg button[data-v] { padding: 0 11px; }
.project-list { padding: 7.5px 0; overflow-x: auto; }
.project-list table { width: 100%; border-collapse: collapse; }
.project-list th { text-align: left; font: 500 20px/27.5px var(--display); color: var(--text-primary); padding: 10px 17.5px; }
.project-list td { padding: 10px 17.5px; border-top: 1px solid var(--surface-400); vertical-align: middle; }
.project-list tbody tr { cursor: pointer; }
.project-list tbody tr:hover, .project-list tbody tr:focus-visible { background: var(--surface-400); outline: none; }
.project-list tr.archived { opacity: .55; }
.project-list .num { text-align: right; font-variant-numeric: tabular-nums; }
.project-list .nowrap { white-space: nowrap; }
.pl-thumb { width: 120px; padding-right: 0 !important; }
.pl-thumb .pc-thumb { width: 120px; border-radius: var(--radius-md); }
.pl-thumb .ph-icon { width: 40%; }
.pl-name { font-weight: 700; }
.archived-wrap .project-list { margin-top: 5px; }
@media (max-width: 875px) { .project-list th:nth-child(4), .project-list td:nth-child(4), .project-list th:nth-child(5), .project-list td:nth-child(5), .project-list th:nth-child(6), .project-list td:nth-child(6) { display: none; } }
.bar.big { height: 10px; border-radius: 6px; }

/* ---- client review window */
.review-countdown { display: inline-flex; align-items: center; gap: 7.5px; flex: none; height: 32.5px; padding: 0 var(--space-3);
  border-radius: var(--radius-full); background: var(--surface-300); color: var(--text-primary); font: 700 15px/20px var(--font); white-space: nowrap; }
body > .review-countdown { position: fixed; z-index: 35; left: 50%; transform: translateX(-50%); bottom: 15px; box-shadow: var(--shadow-menu); }
.review-countdown .ic { color: var(--accent); }
.review-countdown.soon .ic { color: var(--status-review); }
.request-box { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin: 7.5px 0 2.5px; padding: 10px 12.5px;
  border-radius: var(--radius-md); background: color-mix(in srgb, var(--status-review) 12%, var(--surface-300)); }
.request-box > .ic { color: var(--status-review); }
.request-msg { margin-top: 2.5px; color: var(--text-primary); white-space: pre-wrap; }
.req-dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; margin-left: 2.5px;
  background: var(--status-review); color: #241a00; font: 700 12px var(--font); }


/* ---- project team and delivery date (team only) */
.member-stack { display: inline-flex; align-items: center; }
.member-stack .avatar { box-shadow: 0 0 0 2px var(--surface-300); }
.member-stack .avatar + .avatar { margin-left: -7.5px; }
.member-stack .avatar.more { background: var(--surface-500); color: var(--text-primary); font-size: 11px; }
.due-chip { display: inline-flex; align-items: center; gap: 5px; height: 25px; padding: 0 var(--space-2); border-radius: var(--radius-sm);
  background: var(--surface-400); color: var(--text-secondary); font: 700 14px/18px var(--font); white-space: nowrap; }
.due-chip.soon { color: var(--status-review); }
.due-chip.late { color: var(--status-changes); }
.pc-team { display: flex; align-items: center; gap: var(--space-2); margin-top: 5px; min-height: 27.5px; }
.project-meta { display: inline-flex; align-items: center; gap: var(--space-3); margin-top: var(--space-2); padding: 3px 7.5px 3px 3px; border: 0; border-radius: var(--radius-md); background: transparent; cursor: pointer; }
.project-meta:hover { background: var(--surface-300); }
.project-meta .member-stack .avatar { box-shadow: 0 0 0 2px var(--surface-100); }
.member-pick { display: flex; flex-direction: column; gap: 2.5px; max-height: 240px; overflow: auto; background: var(--surface-200); border-radius: var(--radius-md); padding: 5px; }
.member-opt { display: flex; align-items: center; gap: var(--space-2); padding: 5px 7.5px; border-radius: var(--radius-sm); cursor: pointer; }
.member-opt:hover { background: var(--surface-300); }
input[type=date] { color-scheme: dark; }

/* ---- team member previewing a client link */
.preview-strip { position: sticky; top: 0; z-index: 45; height: 50px; display: flex; align-items: center; gap: 12.5px; padding: 0 15px 0 20px;
  background: color-mix(in srgb, var(--phase-violet) 60%, var(--surface-000)); color: #e6e3ff; font-size: 16px; white-space: nowrap; overflow: hidden; }
.preview-strip .grow { overflow: hidden; text-overflow: ellipsis; }
.preview-strip .btn { flex: none; }
.previewing .review, .previewing .compare { height: calc(100vh - 50px); }
.previewing .center-screen, .previewing .signin { min-height: calc(100vh - 50px); }
@media (max-width: 875px) { .preview-strip .ps-long { display: none; } }

/* ---- multi-select */
.select-toolbar { display: flex; align-items: center; margin: -7.5px 0 15px; min-height: 27.5px; }
.card-check { position: absolute; top: 10px; left: 10px; z-index: 3; width: 30px; height: 30px; border-radius: var(--radius-md); padding: 0;
  display: grid; place-items: center; cursor: pointer; color: transparent;
  background: rgba(19,21,21,.6); border: 1.5px solid rgba(255,255,255,.75); opacity: 0; transition: opacity .12s; }
.asset-card:hover .card-check, .grid.selecting .card-check, .card-check:focus-visible { opacity: 1; }
.card-check:hover { border-color: #fff; color: rgba(255,255,255,.6); }
.asset-card.selected .card-check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.asset-card.selected { outline-color: var(--accent); }
.grid.selecting .asset-card { cursor: pointer; }
.select-bar { position: fixed; left: calc(50% + var(--rail-width) / 2); bottom: 30px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: var(--space-2);
  padding: 10px 10px 10px 20px; border-radius: var(--radius-lg); background: var(--surface-400); box-shadow: var(--shadow-menu); white-space: nowrap; }
.sb-count { margin-right: 7.5px; }
.batch-names { margin: -5px 0 0; }
.project-main { padding-bottom: 112.5px; }

/* ---- link expiry */
.exp-wrap { display: inline-flex; align-items: center; gap: 7.5px; }
.exp-tag { font: 700 14px/18px var(--font); padding: 1px 7.5px; border-radius: var(--radius-sm); background: var(--surface-400); color: var(--text-secondary); }
.exp-tag.soon { color: var(--status-review); }
.exp-tag.expired { color: var(--status-changes); }

/* ---- activity */
.act-list { display: flex; flex-direction: column; padding: 5px 0; max-height: 65vh; overflow: auto; }
.content .act-list { max-height: none; padding: 7.5px 5px; }
.act-row { display: flex; gap: var(--space-3); padding: 12.5px 17.5px; border-bottom: 1px solid var(--surface-400); }
.act-row:last-child { border-bottom: 0; }
.act-ic { width: 35px; height: 35px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-400); color: var(--text-secondary); }
.kind-downloaded_original .act-ic, .kind-downloaded_watermarked .act-ic, .kind-downloaded_report .act-ic { color: var(--status-progress); }
.kind-commented .act-ic, .kind-replied .act-ic { color: var(--accent); }
.kind-comment_visibility .act-ic { color: var(--warn); }
.kind-sign_in_failed .act-ic, .kind-link_switched_off .act-ic, .kind-links_all_off .act-ic, .kind-file_deleted .act-ic { color: var(--status-changes); }
.act-detail { margin: 2.5px 0; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; }
.who-tag { font: 700 13px/18px var(--font); padding: 1px 6px; border-radius: var(--radius-sm); }
.who-tag.client { background: var(--phase-green); color: var(--text-strong); }
.who-tag.team { background: var(--surface-400); color: var(--text-secondary); }
.link-stats { margin-top: 6px; }
.empty-act { padding: 25px; text-align: center; }
.row-center { display: flex; justify-content: center; margin: 20px 0; }

/* ---- notifications */
.check-list { display: flex; flex-direction: column; gap: 11px; }
.banner.rounded { border-radius: var(--radius-lg); border: 0; }
.email-row { margin-top: 25px; grid-template-columns: minmax(0, 1fr); max-width: 900px; }
#app h1 { text-wrap: balance; }

/* ---- sign-in and client entry: the brand panel (charcoal to forest with contour lines) beside the form */
.signin { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--surface-100); }
.hx-topo { position: relative; overflow: hidden; }
.hx-topo::before { content: ''; position: absolute; inset: -10%; pointer-events: none; background: var(--topo-line); opacity: .24;  /* topo-cover (.4) at 60% */
  -webkit-mask: var(--pattern) center / cover no-repeat; mask: var(--pattern) center / cover no-repeat; }
.hx-topo--cover { background: linear-gradient(160deg, var(--brand-charcoal) 0%, #1b2a26 45%, var(--brand-forest) 100%); }
.signin-hero { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: var(--space-6); padding: 60px clamp(30px, 6vw, 100px); }
.signin-hero > * { position: relative; }
.hero-logos { display: flex; align-items: center; gap: clamp(20px, 2.5vw, 35px); flex-wrap: wrap; }
.signin-hero .hero-logo { width: clamp(200px, 18vw, 320px); height: auto; display: block; }
.signin-hero .hero-product { height: clamp(35px, 3vw, 47.5px); width: auto; display: block; padding-left: clamp(20px, 2.5vw, 35px); border-left: 1px solid rgba(255,255,255,.18); }
.signin-side { display: flex; flex-direction: column; align-items: center; padding: var(--space-6); }
.signin-side > .auth { margin: auto 0; }
.signin-side .auth { background: transparent; padding: 0; }
.signin-side .auth h2 { text-align: left; margin: 0; font: 700 35px/42.5px var(--display); color: var(--text-primary); }
.signin-side .auth > p { text-align: left; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-top: -5px; }
.signin-side .auth .link.small { align-self: center; }
.signin-side .site-footer { border-top: 0; padding-bottom: 0; align-self: stretch; }
@media (max-width: 1125px) {
  .signin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .signin-hero { padding: 40px var(--space-6); gap: var(--space-4); }
  .signin-hero .hero-logo { width: min(240px, 55%); }
  .signin-hero .hero-product { height: 32.5px; }
}
@media (max-width: 700px) {
  .hero-logos { flex-wrap: nowrap; gap: 15px; }
  .signin-hero .hero-logo { width: 145px; }
  .signin-hero .hero-product { height: 25px; padding-left: 15px; }
}

/* ---- FrameSketch logo, always after the Habitat XR mark */
.product-logo { height: 30px; width: auto; display: block; }
.product-logo.big { height: 47.5px; }

/* ---- narrow screens at the 1.25x scale: never let a toolbar stretch the page wider than the screen */
@media (max-width: 1125px) {
  .review { grid-template-columns: minmax(0, 1fr); }
  .review > * { min-width: 0; }
  .swatches { flex-wrap: wrap; row-gap: 7.5px; }
}
/* phones: the rail becomes a bar along the top */
@media (max-width: 700px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .rail { flex-direction: row; height: 60px; width: 100%; padding: 0 var(--space-3); gap: var(--space-2); }
  .previewing .rail { height: 60px; }
  .rail-mark { width: 40px; height: 40px; margin: 0; } .rail-mark img { width: 32px; }
  .rail-product { display: block; height: 22.5px; width: auto; margin-right: auto; }
  .rail-nav { flex-direction: row; gap: 5px; }
  .rail-item { width: 42.5px; height: 42.5px; }
  .rail-item.on::before { left: 10px; right: 10px; top: auto; bottom: -8.5px; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .rail-foot { margin: 0; }
  .rail-avatar { width: 37.5px; height: 37.5px; font-size: 14px; }
  .shell .topbar { display: none; }
  .select-bar { left: 50%; }
  .review-head .crumb-title .badge.dim { display: none; }
  .ctrl-row .tc-wrap { margin-left: 0; }
}
