/* FootageDrop window. Colours, type and shape come from design/tokens.css,
   which follows the FootageDrop Brand + UI guidelines: flat cards, pill
   buttons, Bricolage for titles and big numbers, the system font for the rest. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font: 13.5px/1.45 var(--font-ui);
  -webkit-font-smoothing: antialiased; overflow: hidden; user-select: none; cursor: default;
}
svg { display: block; flex: none; }
button { font: inherit; color: inherit; }
input, textarea, select { font: inherit; color: var(--text); user-select: text; }
h1, h2, h3, h4 { margin: 0; }
.mono { font-family: var(--font-mono); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-muted); }
.ell { flex: 1; min-width: 0; overflow-wrap: anywhere; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.display { font-family: var(--font-display); font-weight: 800; letter-spacing: -.02em; }

#app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); height: 100vh; }

/* ---------- Sidebar: Ink ---------- */
#app > aside {
  background: var(--side-bg); color: var(--text-on-dark);
  display: flex; flex-direction: column; gap: 20px; padding: 44px 12px 12px; overflow-y: auto;
  /* Only the strip along the top (beside the window buttons) drags the
     window: a drag region swallows the scroll wheel, which made the whole
     sidebar feel sticky. */
  -webkit-app-region: no-drag;
}
#app > aside::before { content: ''; position: fixed; top: 0; left: 0; width: var(--sidebar); height: 38px; -webkit-app-region: drag; z-index: 3; }
#app > aside::-webkit-scrollbar { display: none; }
#app > aside > * { -webkit-app-region: no-drag; }
.brand { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.brand svg { flex: none; }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -.03em; color: #FFFFFF; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav.modes { gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 10px; border-radius: var(--r-md);
  color: var(--text-on-dark-2); font-size: 14.5px; font-weight: 500; border: 0; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--side-raised); color: var(--text-on-dark); }
.nav-item.on { background: var(--rust); color: #FFFFFF; font-weight: 600; }
.nsq { width: 22px; height: 22px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.nsq.butter { background: var(--butter); }
.nsq.sage { background: var(--sage); }
.nsq.clay { background: var(--clay); }
.side-label { font-size: var(--label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-on-dark); padding: 0 12px 6px; }
.filter {
  display: flex; align-items: center; gap: 9px; height: 31px; padding: 0 12px; border-radius: var(--r-md);
  color: var(--text-on-dark-2); font-size: 14px; border: 0; background: none; width: 100%; text-align: left;
}
.filter:hover { background: var(--side-raised); color: var(--text-on-dark); }
.filter.on { background: var(--side-raised); color: #FFFFFF; font-weight: 600; }
.filter .count, #app > aside .count {
  margin-left: auto; min-width: 22px; height: 19px; padding: 0 7px; border-radius: var(--r-pill);
  background: var(--ink-3); color: var(--text-on-dark); font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
}
.count:empty { display: none; }
#app > aside .count.warn { background: var(--butter); color: var(--ink); }
#app > aside .count.hot { background: var(--rust); color: #FFFFFF; }
.side-ok { margin-left: auto; color: var(--moss); }
.side-empty { padding: 0 12px; font-size: 12.5px; color: var(--muted-on-dark); }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 8px;
  /* Always in view: the lists above scroll under it on shorter windows. */
  position: sticky; bottom: -12px; margin-bottom: -12px; padding: 12px 0; background: var(--side-bg); z-index: 2; }
.side-icon { width: 34px; height: 31px; display: flex; align-items: center; justify-content: center; color: var(--text-on-dark-2); border-radius: var(--r-md) !important; }
.side-icon:hover { background: var(--side-raised) !important; color: #FFFFFF !important; }
.spend { background: var(--side-raised); border-radius: 12px; padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.spend-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted-on-dark); }
.spend-v { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; color: var(--butter); }
.spend-v.over { color: var(--clay); }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--ink-3); overflow: hidden; margin-top: 4px; }
.meter > div { height: 100%; min-width: 6px; background: var(--butter); border-radius: inherit; }
.meter.over > div { background: var(--clay); }
.storage-limit-card .spend-top { color: var(--text-on-dark); font-weight: 600; }
/* Settings → Storage: the same bar on the light page. */
.storage-limit { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line, rgba(0,0,0,.1)); border-radius: 12px; }
.storage-limit .meter { background: var(--line, rgba(0,0,0,.1)); margin-top: 8px; }
.storage-limit .meter > div { background: var(--rust, #B85428); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: var(--r-md); border: 0; background: none; text-align: left; color: var(--text-on-dark); }
.me:hover { background: var(--side-raised); }
.me-who { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.3; flex: 1; min-width: 0; }
.me-who span { overflow-wrap: anywhere; min-width: 0; }
.me-who span:first-child { font-weight: 600; }
.me-who span:last-child { color: var(--muted-on-dark); }
.me-gear { color: var(--muted-on-dark); }

/* Avatars: a circle with a Bricolage 800 initial. Ink with Butter for the
   team; an accent fill for contributors. Photos fill the circle. */
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--butter);
  font-family: var(--font-display); font-weight: 800; font-size: 13px; line-height: 1;
  display: flex; align-items: center; justify-content: center; flex: none; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.lg { width: 40px; height: 40px; font-size: 16px; }
.avatar.big { width: 56px; height: 56px; font-size: 22px; }
.avatar.soft { background: var(--sage); color: var(--ink); }
.avatar.butter { background: var(--butter); color: var(--ink); }
.avatar.sage { background: var(--sage); color: var(--ink); }
.avatar.clay { background: var(--clay); color: var(--ink); }
.avatar.team { background: var(--ink); color: var(--butter); }
#app > aside .avatar.team, #app > aside .avatar:not(.soft) { background: var(--butter); color: var(--ink); }
:root[data-theme="dark"] .avatar.team { background: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .avatar.team { background: var(--ink-3); } }

/* ---------- Main ---------- */
main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.bar { height: 56px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 28px 0 40px; -webkit-app-region: drag; }
.bar > * { -webkit-app-region: no-drag; }
.bar .title { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.bar-acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.count-pill { min-width: 22px; height: 20px; padding: 0 7px; border-radius: var(--r-pill); background: var(--fill); color: var(--text-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.crumb button { border: 0; background: none; color: var(--text-muted); padding: 0; }
.crumb button:hover { color: var(--text); }
.crumb .sep { color: var(--text-muted); opacity: .7; }
.crumb .here { color: var(--text); font-weight: 600; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.page { width: 100%; max-width: calc(var(--content-max) + 2 * var(--space-5)); margin: 0 auto; padding: 18px var(--space-5) 48px; display: flex; flex-direction: column; gap: var(--space-3); }
.page.narrow { max-width: 820px; gap: 0; }
.page.project { gap: var(--space-3); }

/* Buttons: pills. Rust is the one primary action on a screen; Ink the main
   action in a section or panel; outline for secondary; Sand when disabled. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 15px; border-radius: var(--r-pill);
  border: 1.5px solid var(--text); background: transparent; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--rust); border-color: var(--rust); color: var(--on-rust); }
.btn.primary:hover { background: var(--rust-deep); border-color: var(--rust-deep); }
.btn.ink { background: var(--btn-ink); border-color: var(--btn-ink); color: var(--btn-ink-text); }
.btn.ink:hover { filter: brightness(1.15); }
.btn.soft { background: var(--fill); border-color: var(--fill); }
.btn.on-rust { background: #FFFFFF; border-color: #FFFFFF; color: var(--rust-deep); }
.btn.big { height: 40px; padding: 0 20px; font-size: 13.5px; }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12.5px; }
.btn:disabled, .btn.primary:disabled, .btn.ink:disabled { background: var(--fill); border-color: var(--fill); color: var(--disabled-text); filter: none; }
.btn.danger { color: var(--error-fg); border-color: currentColor; }
.more-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--fill); color: var(--text); display: flex; align-items: center; justify-content: center; }
.more-btn:hover { filter: brightness(.96); }
.link { border: 0; background: none; padding: 0; color: var(--link); font-weight: 600; }
.link:hover { color: var(--link-hover); text-decoration: underline; }
.iconbtn { border: 0; background: none; color: var(--text-muted); padding: 5px; border-radius: var(--r-pill); }
.iconbtn:hover { background: var(--hover); color: var(--text); }
.search { display: flex; align-items: center; gap: 7px; width: 210px; height: 34px; padding: 0 14px; border-radius: var(--r-pill); background: var(--card); color: var(--text-muted); }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 13.5px; }

/* Stat tiles: Butter for size and money, Sage for files, Ink for deletion dates. */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.stat, .tile { border-radius: var(--r-lg); padding: 12px 16px 13px; display: flex; flex-direction: column; gap: 3px; background: var(--card); }
.stat .k, .tile .k { font-size: 12.5px; font-weight: 500; opacity: .85; }
.stat .v, .tile .v { font-family: var(--font-display); font-size: var(--stat); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat .v-sm { font-size: 14.5px; font-weight: 600; padding-top: 4px; line-height: 1.35; }
.stat .v-sm .link { color: var(--butter); margin-left: 4px; }
.stat.butter, .tile.butter { background: var(--butter); color: var(--text-on-butter); }
.stat.butter-soft { background: var(--card); }
.stat.sage, .tile.sage { background: var(--sage); color: var(--text-on-sage); }
.stat.ink, .tile.ink { background: var(--ink); color: var(--text-on-dark); }
.tiles { display: flex; gap: 10px; flex: none; }
.tile { min-width: 108px; padding: 10px 16px 11px; }
:root[data-theme="dark"] .stat.ink, :root[data-theme="dark"] .tile.ink { background: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat.ink, :root:not([data-theme="light"]) .tile.ink { background: var(--ink-3); } }

/* ---------- Projects table ---------- */
.table { background: var(--card); border-radius: var(--r-xl); padding: 6px 22px 10px; display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 64px 84px 236px 104px 28px; gap: 12px; align-items: center; min-height: 66px; border-bottom: 1px solid var(--track); font-variant-numeric: tabular-nums; }
.row:last-child { border-bottom: 0; }
.row.head { min-height: 38px; font-size: var(--label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.row:not(.head):hover { background: var(--hover); margin: 0 -12px; padding: 0 12px; border-radius: 12px; }
.row .r { text-align: right; }
.couple { font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.amp { color: var(--rust); }
.sub { font-size: 12.5px; color: var(--text-2); }

/* Chips: pills. */
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; white-space: nowrap; align-self: flex-start; background: var(--fill); color: var(--text-2); }
.chip svg { width: 13px; height: 13px; }
.chip.uploading { background: var(--uploading-bg); color: var(--uploading-fg); }
.chip.verified { background: var(--verified-bg); color: var(--verified-fg); }
.chip.paused { background: var(--paused-bg); color: var(--paused-fg); }
.chip.warning { background: var(--warning-bg); color: var(--warning-fg); }
.chip.error { background: var(--rust); color: #FFFFFF; }
.chip.info { background: var(--info-bg); color: var(--info-fg); }
.chip.hot { background: var(--rust); color: #FFFFFF; }
.status { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; }
.status.inline { flex-direction: row; align-items: center; gap: 8px; min-width: 0; }
.status.inline .sub { overflow-wrap: anywhere; min-width: 0; }

/* Progress: a pill on Linen. Rust while in progress, Moss when done, and
   always a sliver, never an empty track. */
.pbar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--track); overflow: hidden; }
.pbar > div { height: 100%; min-width: 8px; background: var(--uploading-bar); border-radius: inherit; transition: width .4s ease; }
.pbar.big, .pbar.mid { height: 10px; }
.pbar.big > div, .pbar.mid > div { min-width: 10px; }
.pbar.paused > div { background: var(--paused-bar); }
.pbar.error > div { background: var(--error-bar); }
.pbar.done > div { background: var(--verified-bar); }

.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 40px; color: var(--text-2); }
.empty h2 { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.025em; color: var(--text); }
.empty p { margin: 0; max-width: 420px; line-height: 1.5; }
.empty > svg { color: var(--text-muted); }

/* ---------- Project header ---------- */
.hero-title { font-family: var(--font-display); font-size: var(--title); font-weight: 800; letter-spacing: -.035em; line-height: .98; color: var(--text); overflow-wrap: anywhere; }
.proj-head { display: flex; align-items: flex-end; gap: var(--space-4); padding: 14px 0 8px; }
.ph-left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ph-logo { height: 32px; max-width: 200px; object-fit: contain; align-self: flex-start; }
.mchips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mchip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: var(--r-pill); background: var(--fill); color: var(--text-2); font-size: 14px; }
/* The brand switcher: an Ink chip with a dropdown. */
.brand-row { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 5px; border-radius: var(--r-pill); background: var(--ink); color: #FFFFFF; margin: 0; }
.brand-row::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: var(--cream); flex: none; }
.brand-row.has-logo::before { display: none; }
.brand-row img { height: 20px; max-width: 60px; object-fit: contain; background: var(--cream); border-radius: 10px; padding: 1px 6px; }
.brand-row .muted { color: var(--text-on-dark-2); font-size: 13px; }
.brand-row select { -webkit-appearance: none; appearance: none; border: 0; background: transparent; color: #FFFFFF; font-size: 13.5px; font-weight: 500; padding: 0 16px 0 0; outline: none; cursor: pointer; }
.brand-row::after { content: ""; position: absolute; right: 12px; top: 13px; border: 4px solid transparent; border-top-color: #FFFFFF; border-bottom: 0; pointer-events: none; }
.brand-row select option { color: var(--ink); background: #FFFFFF; }
:root[data-theme="dark"] .brand-row { background: var(--ink-3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-row { background: var(--ink-3); } }

/* Step tiles for an empty project: Rust, Butter, Sage, always in that order. */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); }
.step { border-radius: var(--r-xl); padding: 22px 24px 24px; min-height: 272px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.step-n { font-family: var(--font-display); font-size: var(--numeral); font-weight: 800; line-height: .8; letter-spacing: -.03em; padding-top: 8px; }
.step-b { display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-family: var(--font-display); font-size: var(--tile-title); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.step p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.step.rust { background: var(--rust); color: #FFFFFF; }
.step.rust p { color: var(--text-on-rust); }
.step.butter { background: var(--butter); color: var(--text); }
.step.butter p { color: var(--text-on-butter); }
.step.butter .btn.ink { background: var(--ink); border-color: var(--ink); color: var(--butter); }
.step.sage { background: var(--sage); color: var(--text); }
.step.sage p { color: var(--text-on-sage); }
.step.sage .btn.ink { background: var(--ink); border-color: var(--ink); color: var(--sage); }
.step.butter h3, .step.sage h3, .step.butter .step-n, .step.sage .step-n { color: var(--ink); }
.foot-note { margin: 10px 0 0; text-align: center; font-size: 12.5px; color: var(--text-muted); }

/* ---------- Cards and sections ---------- */
.box { background: var(--card); border-radius: var(--r-xl); padding: var(--space-4); display: flex; flex-direction: column; gap: 14px; }
.box h3, .panel h3, .section h3 { font-family: var(--font-display); font-size: var(--section); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.box-head { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.box-meta { font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; min-width: 0; min-width: 0; }
.box-acts { margin-left: auto; display: flex; gap: 8px; flex: none; }
.box-head .box-meta + .box-acts { margin-left: auto; }
.panel .box-head .box-meta:last-child { margin-left: auto; }

/* Footage card: a row for you and each shooter. */
/* One grid for every row, so bars, labels and sizes line up whatever
   buttons a row carries. */
.frows { display: grid; grid-template-columns: 40px minmax(0, 1fr) minmax(90px, 180px) 52px 76px auto; column-gap: 14px; row-gap: 18px; align-items: center; padding: 4px 0; }
.frow2 { display: contents; }
.frow2.off > * { opacity: .55; }
.frow2 .who { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.frow2 .who b { font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.frow2 .who .muted { font-size: 12.5px; overflow-wrap: anywhere; min-width: 0; color: var(--text-muted); }
.flabel { font-size: 12.5px; font-weight: 600; color: var(--text-2); text-align: center; font-variant-numeric: tabular-nums; }
.flabel.done { color: var(--text); }
.fsize { font-family: var(--font-display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-align: right; white-space: nowrap; }
.facts2 { display: flex; gap: 6px; justify-content: flex-end; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: var(--r-pill); background: var(--fill); color: var(--text); font-size: 13.5px; }

/* Review (Sage) and Invoices (Butter) panels, with white rows inside. */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); align-items: stretch; }
.duo.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.panel { border-radius: var(--r-xl); padding: 18px var(--space-4) var(--space-4); display: flex; flex-direction: column; gap: 12px; }
.panel.sage { background: var(--sage); color: var(--text-on-sage); }
.panel.butter { background: var(--butter); color: var(--text-on-butter); }
.panel h3 { color: var(--ink); }
.panel .box-meta { color: inherit; }
.panel.sage > .box-head .btn.ink { background: var(--ink); border-color: var(--ink); color: var(--sage); }
.panel.butter > .box-head .btn.ink { background: var(--ink); border-color: var(--ink); color: var(--butter); }
.panel-note { font-size: 13.5px; line-height: 1.5; }
.prows { display: flex; flex-direction: column; gap: 8px; }
.person.prow { background: var(--card); border-radius: var(--r-lg); padding: 12px 14px; color: var(--text); }
.prow .muted { color: var(--text-muted); }
.row-acts { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.panel.butter .prow .btn.ink { color: var(--butter); }
.panel.sage .prow .btn.ink { color: var(--sage); }
:root[data-theme="dark"] .panel .prow .btn.ink { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .panel .prow .btn.ink { color: var(--ink); } }

/* Messages: one white pill-shaped bar per person. */
.msgs { display: flex; flex-direction: column; gap: 10px; }
.person.msg-bar { background: var(--card); border-radius: var(--r-pill); padding: 8px 10px 8px 9px; gap: 12px; min-height: 58px; }
.msg-bar .mb-text { flex: 1; min-width: 0; overflow-wrap: anywhere; min-width: 0; font-size: 14px; }
.msg-bar .mb-text b { font-weight: 600; font-size: 14.5px; }
.msg-bar .mb-text .muted { color: var(--text-muted); }

/* Upload in progress */
.hero { display: flex; align-items: flex-end; gap: 36px; }
.hero .pct { font-family: var(--font-display); font-size: 96px; font-weight: 800; letter-spacing: -.04em; line-height: .85; font-variant-numeric: tabular-nums; }
.hero .side { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
.kpi { background: var(--card); border-radius: var(--r-lg); padding: 12px 16px; display: flex; flex-direction: column; gap: 3px; }
.kpi .label { color: var(--text-muted); }
.kpi .v { font-family: var(--font-display); font-size: var(--stat); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; line-height: 1.1; }
.kpi .v small { font-family: var(--font-ui); font-size: 14px; color: var(--text-2); font-weight: 500; letter-spacing: 0; }
.kpi .v.good { color: var(--verified-fg); align-items: center; }
.kpi:last-child { background: var(--sage); color: var(--text-on-sage); }
.kpi:last-child .label, .kpi:last-child .sub, .kpi:last-child .v.good { color: var(--text-on-sage); }
.files { display: flex; flex-direction: column; gap: 0; padding-top: 10px; padding-bottom: 10px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) 170px 90px 220px; gap: 16px; min-height: 42px; align-items: center; border-bottom: 1px solid var(--track); font-variant-numeric: tabular-nums; }
.frow:last-child { border-bottom: 0; }
.frow.head { min-height: 32px; font-size: var(--label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.frow .fname { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; min-width: 0; }
.frow .fname span { overflow-wrap: anywhere; min-width: 0; }
.frow .fstat { display: flex; align-items: center; gap: 10px; color: var(--uploading-fg); }
.frow .fstat .pbar { flex: 1; }
.frow .ok { display: flex; align-items: center; gap: 6px; color: var(--verified-fg); }

/* Notices: flat colour blocks. Butter for footage and money, Sage for
   sharing and review, Rust tint for problems, Sand for everything else. */
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-lg); font-size: 13.5px; line-height: 1.45; background: var(--fill); color: var(--text); }
.notice > svg { flex: none; }
.notice.error { background: var(--error-bg); color: var(--error-fg); }
.notice.info, .notice.sage { background: var(--sage); color: var(--text-on-sage); }
.notice.warning, .notice.butter { background: var(--butter); color: var(--text-on-butter); }
.notice.butter .btn.ink, .notice.warning .btn.ink { background: var(--ink); border-color: var(--ink); color: var(--butter); }
.notice.sage .btn.ink, .notice.info .btn.ink { background: var(--ink); border-color: var(--ink); color: var(--sage); }
.notice.info .btn:not(.ink), .notice.sage .btn:not(.ink), .notice.butter .btn:not(.ink), .notice.warning .btn:not(.ink) { border-color: var(--ink); color: var(--ink); }
.notice .mono { color: inherit; }
.notice .link { color: inherit; text-decoration: underline; }
.box .notice { margin-top: 2px; background: none; padding: 14px 0 0; border-radius: 0; border-top: 1px solid var(--track); color: var(--text-2); }
.box .notice.sage > svg { color: var(--moss); }

/* Drop zone and forms */
.drop { flex: 1; min-height: 260px; border: 2px dashed var(--line); border-radius: var(--r-xl); background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--rust); background: var(--rust-tint); }
.drop .well { width: 72px; height: 72px; border-radius: 18px; background: var(--butter); display: flex; align-items: center; justify-content: center; color: var(--ink); }
.drop h2 { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.drop p { margin: 0; font-size: 14px; color: var(--text-2); max-width: 440px; line-height: 1.5; }
.fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea, .field select {
  height: 40px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); padding: 0 13px; font-size: 14px; font-weight: 400; outline: none;
}
.field textarea { height: 72px; padding: 10px 13px; resize: none; font-size: 13.5px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--rust); box-shadow: 0 0 0 3px var(--rust-tint); }
.foot { display: flex; align-items: center; gap: 12px; padding-top: 8px; }
.picked { display: flex; align-items: center; gap: 16px; background: var(--card); border-radius: var(--r-xl); padding: 18px 22px; }
.picked .well { width: 52px; height: 52px; border-radius: 14px; background: var(--butter); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.folders { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.folders .f { display: grid; grid-template-columns: minmax(0, 1fr) 100px 100px 24px; align-items: center; min-height: 42px; border-bottom: 1px solid var(--track); gap: 10px; }
.folders .f:last-child { border-bottom: 0; }
.folders .f > span:first-child { display: flex; gap: 8px; align-items: center; }
.meta-grid { display: flex; gap: 28px; font-variant-numeric: tabular-nums; }
.meta-grid div { display: flex; flex-direction: column; gap: 2px; }
.meta-grid .k { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.meta-grid .v { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Receive */
.drives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drive { border: 2px solid transparent; background: var(--card); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; color: var(--text-muted); text-align: left; }
.drive .name { font-size: 14px; font-weight: 600; color: var(--text-2); }
.drive.on { border-color: var(--rust); color: var(--rust); }
.drive.on .name { color: var(--text); }
.drive .radio { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.drive.on .radio { border: 5px solid var(--rust); background: var(--card); }
.drive .pbar { height: 6px; }
.drive .pbar > div { background: var(--disabled-text); min-width: 6px; }
.drive.on .pbar > div { background: var(--rust); }
.drive .note { font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.drive .note.warn { color: var(--error-fg); }
.done-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 40px; }
.done-wrap > div:nth-child(2) > div:first-child { font-family: var(--font-display); font-weight: 800 !important; font-size: 40px !important; letter-spacing: -.03em !important; }
.done-wrap .num span[style*="font-size:22px"] { font-family: var(--font-display); font-weight: 800 !important; }
.done-badge { width: 96px; height: 96px; border-radius: 50%; background: var(--sage); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.done-list { width: 520px; border-radius: var(--r-xl); background: var(--card); padding: 4px 18px; }

/* Contribute and card offload */
.cards { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 14px 18px; display: flex; align-items: center; gap: 14px; font-variant-numeric: tabular-nums; }
.card .who { display: flex; flex-direction: column; gap: 2px; width: 240px; }
.card .who b { font-size: 14.5px; font-weight: 600; }
.card .grow { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.card .line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }

/* People and settings */
.people { display: flex; flex-direction: column; gap: 8px; }
.person { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--card); }
.person .who { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.person .who b { font-weight: 600; font-size: 14px; }
.person .who .muted { font-size: 12.5px; }
.box .people, .section .people { gap: 0; }
.box .person, .section .person { background: none; border-radius: 0; padding: 12px 0; border-top: 1px solid var(--track); }
.box .people .person:first-child, .section .people .person:first-child { border-top: 0; padding-top: 4px; }
.section > .person { border-top: 0; padding: 0; }
.person.pick { cursor: default; border: 2px solid transparent; }
.person.pick.on { border-color: var(--rust); background: var(--rust-tint); }
.check { width: 20px; height: 20px; border-radius: 7px; border: 1.5px solid var(--line); background: var(--field); display: flex; align-items: center; justify-content: center; flex: none; }
.person.on .check { background: var(--rust); border-color: var(--rust); color: #FFFFFF; }
.settings { max-width: 760px; }
.section { display: flex; flex-direction: column; gap: 14px; padding: var(--space-4); border-radius: var(--r-xl); background: var(--card); }
.section p { margin: 0; color: var(--text-2); line-height: 1.5; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.seg { display: inline-flex; background: var(--fill); border-radius: var(--r-pill); padding: 3px; gap: 2px; align-self: flex-start; }
.seg button { border: 0; background: none; height: 30px; padding: 0 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; color: var(--text-2); }
.seg button.on { background: var(--btn-ink); color: var(--btn-ink-text); font-weight: 600; }

/* ---------- Sheets, menus and toast ---------- */
#modal:empty { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(29, 27, 24, .38); display: flex; align-items: flex-start; justify-content: center; padding-top: 80px; z-index: 10; }
.sheet { width: 540px; background: var(--bg); border-radius: var(--r-xl); box-shadow: 0 30px 80px rgba(29, 20, 12, .32); display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 120px); }
.sheet .top { padding: 26px 26px 16px; display: flex; flex-direction: column; gap: 8px; }
.sheet .top b { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.sheet .mid { padding: 0 26px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.sheet .end { margin-top: 18px; padding: 16px 26px 22px; display: flex; align-items: center; gap: 10px; }
.sheet .side-label { color: var(--text-muted); padding: 4px 0 0; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.facts span { display: inline-flex; align-items: center; gap: 6px; }
.sheet .top .facts span { background: var(--fill); border-radius: var(--r-pill); padding: 4px 11px; }
.menu { position: fixed; width: 230px; padding: 6px; background: var(--card); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .18); display: flex; flex-direction: column; }
.menu .filter { color: var(--text); height: 34px; }
.menu .filter:hover { background: var(--fill); color: var(--text); }
.menu .filter.danger { color: var(--error-fg); }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); opacity: 0; transition: .25s; background: var(--btn-ink); color: var(--btn-ink-text); padding: 11px 20px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500; pointer-events: none; max-width: 600px; z-index: 20; }
#toast.show { opacity: 1; transform: translateX(-50%); }

/* Help */
.faq { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-xl); padding: 4px 22px; }
.faq details { border-bottom: 1px solid var(--track); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 16px 0; font-size: 14.5px; font-weight: 600; cursor: default; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { margin-left: auto; transition: transform .15s; }
.faq details[open] summary span { transform: rotate(180deg); }
.faq details p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; line-height: 1.6; user-select: text; }

/* Sign-in */
.signin { margin: auto; width: 420px; padding: 40px 32px; display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.signin > div:nth-child(2) > div:first-child, .signin > div > div[style*="font-size:22px"] { font-family: var(--font-display); font-weight: 800 !important; font-size: 30px !important; letter-spacing: -.025em; }
.code-input { width: 250px; height: 60px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--field); text-align: center; font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: 12px; outline: none; }
.code-input:focus { border-color: var(--rust); box-shadow: 0 0 0 3px var(--rust-tint); }
.signin.onboarding { width: min(440px, 100%); }
.signin .field small { color: var(--text-muted); }
/* What a new studio gets: Sage when it's free, Butter (money) otherwise. */
.onb-plan { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: var(--r-lg); background: var(--butter); color: var(--text-on-butter); font-size: 13.5px; line-height: 1.45; }
.onb-plan.free { background: var(--sage); color: var(--text-on-sage); }
.onb-plan > svg { flex: none; margin-top: 2px; }

/* Get set up: a new owner's first steps, on the projects screen */
.setup-card { gap: 4px; }
.setup-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--track); }
.box-head + .setup-item { border-top: 0; }
.setup-tick { flex: none; width: 26px; height: 26px; border-radius: var(--r-pill); display: flex; align-items: center; justify-content: center; background: var(--fill); color: var(--text); font-weight: 700; font-size: 13px; }
.setup-item.done .setup-tick { background: var(--sage); color: var(--text-on-sage); }
.setup-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.setup-text .muted { font-size: 13px; line-height: 1.45; }
.setup-item.done b { color: var(--text-2); text-decoration: line-through; text-decoration-color: var(--text-muted); }
.setup-acts { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

.tick { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text); }
.tick input { width: 16px; height: 16px; accent-color: var(--rust); }

/* ---------- Chat ---------- */
.bubble { max-width: 78%; align-self: flex-start; background: var(--card); border-radius: 18px 18px 18px 6px; padding: 9px 14px; display: flex; flex-direction: column; gap: 3px; }
.bubble div { white-space: pre-wrap; word-wrap: break-word; font-size: 14px; line-height: 1.45; }
.bubble span { font-size: 11px; color: var(--text-muted); }
.bubble.me { align-self: flex-end; background: var(--btn-ink); color: var(--btn-ink-text); border-radius: 18px 18px 6px 18px; }
.bubble.me span { text-align: right; color: inherit; opacity: .6; }
#chat-in { border: 1.5px solid var(--line); border-radius: 18px; padding: 11px 15px; font: inherit; font-size: 14px; background: var(--card); color: var(--text); outline: none; }
#chat-in:focus { border-color: var(--rust); }
.chat-day { align-self: center; margin: 10px 0 4px; }
.chat-day span { font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--fill); border-radius: var(--r-pill); padding: 4px 11px; }
.bubble.typing { padding: 11px 15px; }
.bubble.typing .dots { display: inline-flex; gap: 4px; align-items: center; height: 10px; }
.bubble.typing .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .35; animation: typing-dot 1.2s infinite ease-in-out; }
.bubble.typing .dots i:nth-child(2) { animation-delay: .15s; }
.bubble.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: .9; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .bubble.typing .dots i { animation: none; opacity: .6; } }
/* Reactions, like Messages' tapbacks: click a bubble to pick one. */
.bubble[data-bubble] { cursor: pointer; }
.bubble.picked { outline: 2px solid var(--rust); outline-offset: 2px; }
.tapbacks { align-self: flex-start; display: flex; gap: 2px; padding: 4px 6px; background: var(--card); border-radius: var(--r-pill); box-shadow: 0 8px 24px rgba(0, 0, 0, .16); margin-bottom: -2px; }
.tapbacks.me { align-self: flex-end; }
.tapbacks button { border: 0; background: none; font-size: 20px; line-height: 1; padding: 5px 6px; border-radius: var(--r-pill); cursor: pointer; transition: transform .1s; }
.tapbacks button:hover { transform: scale(1.2); background: var(--fill); }
.tapbacks button.on { background: var(--butter); }
.reacts { align-self: flex-start; display: flex; gap: 4px; margin-top: -4px; }
.reacts.me { align-self: flex-end; }
.react { border: 0; background: var(--card); border-radius: var(--r-pill); padding: 2px 8px; font-size: 13px; line-height: 1.35; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; }
.react b { font-size: 11px; font-weight: 700; color: var(--text-2); }
.react.mine { background: var(--butter); color: var(--ink); }
.react.mine b { color: var(--text-on-butter); }

/* Messages inbox */
.inbox { display: flex; flex-direction: column; background: var(--card); border-radius: var(--r-xl); overflow: hidden; padding: 4px 0; }
.thread { display: flex; align-items: center; gap: 14px; padding: 14px 22px; border: 0; border-bottom: 1px solid var(--track); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.thread:last-child { border-bottom: 0; }
.thread:hover { background: var(--hover); }
.t-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.t-top { display: flex; align-items: baseline; gap: 8px; }
.t-top b { font-size: 14.5px; font-weight: 600; }
.t-top .muted { font-size: 12.5px; color: var(--text-muted); }
.t-when { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.t-last { color: var(--text-2); font-size: 13.5px; overflow-wrap: anywhere; min-width: 0; }
.thread.unread .t-last { color: var(--text); font-weight: 600; }
.thread.unread .t-when { color: var(--rust); font-weight: 600; }
.t-badge { min-width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--rust); color: #FFFFFF; font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 7px; }

/* Update ready, plan reminders: in the sidebar */
.update-pill { display: flex; align-items: center; gap: 10px; text-align: left; width: 100%; padding: 11px 13px; border: 0; border-radius: 12px; background: var(--rust); color: #FFFFFF; font: inherit; font-size: 12.5px; line-height: 1.35; cursor: pointer; }
.update-pill b { font-weight: 600; }
.update-pill:hover { background: var(--rust-deep); }
.plan-banner { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 11px 13px; border-radius: 12px; border: 0; background: var(--butter); color: var(--ink); font: inherit; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.plan-banner.bad { background: var(--rust); color: #FFFFFF; }

/* Bell and uploads buttons, beside the logo */
.bell-wrap { margin-left: auto; position: relative; }
.bell { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: var(--text-on-dark-2); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bell:hover, .bell.on { background: var(--side-raised); color: #FFFFFF; }
.bell-n { position: absolute; top: -3px; right: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-pill); background: var(--butter); color: var(--ink); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; border: 2px solid var(--side-bg); box-sizing: content-box; }
.up-btn { margin-left: auto; }
.up-btn + .bell-wrap { margin-left: 2px; }
.up-btn .up-ring { position: absolute; inset: 1px; width: 28px; height: 28px; transform: rotate(-90deg); }
.up-btn .up-ring circle { fill: none; stroke: var(--ink-3); stroke-width: 3; }
.up-btn .up-ring circle.fill { stroke: var(--butter); stroke-linecap: round; transition: stroke-dasharray .4s; }
.up-btn.live { color: var(--butter); }

/* Bell panel: a popover, so it keeps its shadow. */
.bell-panel { position: fixed; top: 76px; left: 14px; z-index: 50; width: 370px; max-height: 70vh; overflow: auto; background: var(--card); color: var(--text); border-radius: var(--r-xl); box-shadow: 0 20px 50px rgba(0, 0, 0, .22); padding: 8px; font-size: 13.5px; font-weight: 400; }
.bell-head { display: flex; align-items: center; padding: 8px 10px 8px; }
.bell-head b { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.bell-head .link { margin-left: auto; font-size: 12.5px; }
.bell-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: var(--r-lg); background: transparent; text-align: left; font: inherit; color: inherit; }
.bell-row.msg { cursor: pointer; }
.bell-row.msg:hover { background: var(--fill); }
.bell-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bell-txt span { color: var(--text-2); overflow-wrap: anywhere; min-width: 0; }
.bell-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--sand); display: flex; align-items: center; justify-content: center; color: var(--ink); flex: none; }
.bell-ic.up { background: var(--butter); }
.bell-empty { display: flex; align-items: center; gap: 8px; padding: 18px 12px; color: var(--text-2); }

/* Opening animation */
#intro { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--bg); pointer-events: none; animation: intro-out .32s ease-in 1.08s forwards; }
#intro svg { overflow: visible; animation: intro-plate .42s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 50%; }
#intro .send { animation: intro-send .5s cubic-bezier(.2,.8,.2,1) .12s both; }
#intro .take { animation: intro-take .5s cubic-bezier(.3,1.35,.4,1) .52s both; }
@keyframes intro-plate { from { transform: scale(.86); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes intro-send { from { transform: translateX(-560px); } to { transform: translateX(0); } }
@keyframes intro-take { from { transform: translateX(-134px); opacity: 0; } 20% { opacity: 1; } to { transform: translateX(0); opacity: 1; } }
@keyframes intro-out { to { opacity: 0; transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }

/* Brands */
.brand-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.brand-badge img { display: block; max-width: 120px; object-fit: contain; }
.brand-logo { width: 60px; height: 42px; border-radius: var(--r-md); background: var(--fill); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--text-2); overflow: hidden; flex: none; }
.brand-logo img { max-width: 50px; max-height: 32px; object-fit: contain; }
.brand-logo.lg { width: 88px; height: 58px; }
.brand-logo.lg img { max-width: 78px; max-height: 46px; }
select#f-brand, select#np-brand { height: 40px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--field); color: var(--text); font: inherit; }

/* Brand switcher in the sidebar */
.brand-switch-wrap { position: relative; margin: -6px 0 0; }
.brand-switch { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: var(--side-raised); color: var(--text-on-dark); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; text-align: left; }
.brand-switch:hover, .brand-switch.on { background: var(--ink-3); }
.brand-switch .bs-name { flex: 1; min-width: 0; overflow-wrap: anywhere; min-width: 0; }
.bs-logo { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--butter); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800; color: var(--ink); overflow: hidden; flex: none; }
.bs-logo img { max-width: 20px; max-height: 20px; object-fit: contain; }
.brand-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60; background: var(--card); color: var(--text); border-radius: 16px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); padding: 6px; display: flex; flex-direction: column; }
.bm-row { display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: var(--r-md); background: transparent; color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.bm-row:hover { background: var(--fill); }
.bm-row.on { font-weight: 600; }
.bm-row.manage { color: var(--link); font-weight: 600; font-size: 12.5px; border-top: 1px solid var(--track); border-radius: 0 0 var(--r-md) var(--r-md); margin-top: 4px; padding-top: 10px; }

/* Review rows and the comments sheet */
.rv-row { flex-direction: column; align-items: stretch; gap: 10px; }
.rv-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rv-top .who { min-width: 0; flex: 1; }
.rv-top .who b { overflow-wrap: anywhere; min-width: 0; }
.rv-thumb { width: 64px; height: 40px; border-radius: var(--r-sm); background: var(--track); color: var(--text-muted); display: flex; align-items: center; justify-content: center; flex: none; }
.rv-state { flex: none; }
.rv-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-v { margin: 16px 0 8px; font-size: var(--label); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.rv-v:first-child { margin-top: 0; }
.rv-c { padding: 10px 0; border-bottom: 1px solid var(--track); }
.rv-c.reply { border: 0; margin: 8px 0 0 18px; padding: 8px 0 0 14px; border-left: 2px solid var(--track); }
.rv-c.done > .rv-b { color: var(--text-muted); }
.rv-h { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.rv-tc { font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--butter); padding: 2px 8px; border-radius: var(--r-pill); }
.rv-b { margin-top: 4px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; }
.rv-pics { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 6px; }
.rv-pics button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; width: 112px; height: 76px; cursor: zoom-in; background: var(--track); }
.rv-pics img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-drew { font-size: 12.5px; margin: 2px 0 4px; }

/* Plans: FootageDrop and FootageDrop Studio side by side, with a monthly/yearly switch */
.plan-choice { display: flex; flex-direction: column; gap: var(--space-3); max-width: 560px; }
.plan-seg .save-tag { margin-left: 4px; font-size: 11px; font-weight: 600; color: var(--verified-fg); }
.plan-seg button.on .save-tag { color: inherit; opacity: .8; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px 18px; border: 2px solid transparent; border-radius: var(--r-xl); background: var(--fill); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.plan-card:hover:not(:disabled) { border-color: var(--rust); }
.plan-card.studio { background: var(--butter); color: var(--ink); }
.plan-card.studio .muted { color: var(--text-on-butter); }
.plan-card .plan-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.plan-card .plan-top b { font-size: 14px; }
.plan-card .plan-chip { background: var(--ink); color: var(--butter); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); }
.plan-card .num { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; line-height: 1.1; }
.plan-card .plan-per { font-size: 12.5px; }
.plan-card .plan-perks { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 14px; font-size: 12.5px; }
.plan-card .plan-perks span { display: flex; gap: 6px; align-items: center; }
.plan-card .plan-perks svg { color: var(--verified-fg); flex: none; }
.plan-card.studio .plan-perks svg { color: var(--text-on-butter); }
.plan-card .plan-go { margin-top: auto; pointer-events: none; }
.plan-card.studio .plan-go.primary { background: var(--ink); border-color: var(--ink); color: var(--butter); }
.plan-sheet { width: min(600px, 92vw); }
.plan-sheet .mid { gap: var(--space-3); }
.up-card { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: var(--r-xl); background: var(--butter); color: var(--ink); }
.up-card > div:first-child { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.up-card .muted { color: var(--text-on-butter); font-size: 12.5px; }
.up-price { display: flex; flex-direction: column; align-items: flex-end; }
.up-price .num { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-now { display: flex; flex-direction: column; gap: 6px; }
.plan-now .plan-name { font-family: var(--font-display); font-size: var(--section); font-weight: 800; letter-spacing: -.02em; }
.plan-now .plan-meta { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.plan-now .plan-meta svg { flex: none; color: var(--verified-fg); }
.plan-up { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Profile photo */
.face-edit { position: relative; border: 0; background: none; padding: 0; cursor: pointer; border-radius: 50%; }
.face-edit > span { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--rust); color: #FFFFFF; display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }

/* ---------- Uploads: the panel that slides in from the right ---------- */
#uploads { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(420px, 92vw); display: flex; flex-direction: column;
  background: var(--bg); box-shadow: -24px 0 60px rgba(0, 0, 0, .16);
  transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); }
#uploads:not(.open) { box-shadow: none; }
#uploads.open { transform: none; }
@media (prefers-reduced-motion: reduce) { #uploads { transition: none; } }
.up-head { display: flex; align-items: center; padding: 22px 18px 12px 24px; }
.up-head b { font-family: var(--font-display); font-size: 26px; font-weight: 800; letter-spacing: -.025em; }
.up-head .iconbtn { margin-left: auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--fill); color: var(--text); }
.up-list { flex: 1; overflow: auto; padding: 4px 12px 16px; }
.up-day { font-size: var(--label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); padding: 16px 12px 8px; }
.up-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; border: 0; background: var(--card); color: inherit; font: inherit; padding: 12px 14px; border-radius: var(--r-lg); cursor: pointer; margin-bottom: 6px; }
.up-row:hover { filter: brightness(.985); }
.up-thumb { flex: none; width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--butter); color: var(--ink); }
.up-thumb.audio { background: var(--sage); }
.up-thumb.photo, .up-thumb.doc, .up-thumb.project { background: var(--sand); }
.up-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.up-mid b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
.up-meta { font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; overflow-wrap: anywhere; min-width: 0; }
.up-live { color: var(--text-2); }
.up-live svg { color: var(--rust); }
.up-bar { display: block; margin: 7px 0 3px; width: 100%; }
.up-when { flex: none; font-size: 12.5px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; padding-top: 2px; }
.up-when .ok { color: var(--moss); display: flex; }
.up-empty { color: var(--text-2); text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.up-foot { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 10px; background: var(--card); }
.up-foot .num { font-size: 13.5px; text-align: center; color: var(--text); font-weight: 600; }
.up-foot .pbar { display: block; width: 100%; height: 10px; }
.box .notice .btn:not(.ink) { border-color: var(--text); color: var(--text); }
.page.home { max-width: 1180px; }
.bar .chip { align-self: center; }
.bubble span { text-align: left; }
.bubble.me span { text-align: right; }
.row.head > span { white-space: nowrap; }
.status .sub.num { white-space: nowrap; }

/* Voice notes and deleting in chat. */
.voice { display: flex; align-items: center; gap: 10px; min-width: 210px; }
.vplay { width: 32px; height: 32px; border-radius: 999px; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--rust, #B5522B); color: #fff; flex: none; }
.bubble.me .vplay { background: #fff; color: var(--rust, #B5522B); }
.vbar { flex: 1; height: 6px; border-radius: 999px; background: var(--linen, #EFE9DF); overflow: hidden; }
.bubble.me .vbar { background: rgba(255,255,255,.35); }
.vbar i { display: block; height: 100%; background: var(--rust, #B5522B); border-radius: inherit; }
.bubble.me .vbar i { background: #fff; }
.vt { font-size: 12px; font-variant-numeric: tabular-nums; }
.tb-sep { width: 1px; height: 22px; background: currentColor; opacity: .2; margin: 0 4px; align-self: center; }
.tb-del { color: var(--rust-deep, #8E3F1F) !important; font-size: 0 !important; display: flex; align-items: center; }
.btn.mic { width: 40px; padding: 0; justify-content: center; }
.rec-bar { gap: 10px; align-items: center; }
.rec-bar[hidden], .chat-end[hidden] { display: none !important; }
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--rust, #B5522B); animation: rec-pulse 1s infinite ease-in-out; }
@keyframes rec-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }

/* Browse files: a project in the cloud like a Dropbox folder. */
.sheet.browse { width: min(760px, 94vw); max-height: 86vh; display: flex; flex-direction: column; }
.sheet.browse .top { gap: 10px; }
.br-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.br-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; font-size: 13.5px; }
.br-crumbs .link { overflow-wrap: anywhere; text-align: left; }
.br-list { overflow: auto; flex: 1; min-height: 240px; max-height: 60vh; padding: 6px 12px 12px !important; display: flex; flex-direction: column; gap: 2px; }
.br-row { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 12px; cursor: pointer; }
.br-row:hover { background: var(--hover, rgba(0,0,0,.04)); }
.br-row.head { cursor: default; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }
.br-row.head:hover { background: none; }
.br-ico { flex: none; width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--sand, #E7E0D4); color: var(--text); }
.br-row.folder .br-ico { background: var(--butter, #F2D58A); color: var(--ink, #1D1B18); }
.br-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; display: flex; flex-direction: column; gap: 1px; }
.br-name small { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.br-size { flex: none; font-size: 13px; color: var(--text-2); }
.bxb { border: 0; background: none; padding: 0; cursor: pointer; display: flex; }
.bx { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--text-muted); display: flex; align-items: center; justify-content: center; color: #fff; }
.bx.all { background: var(--rust, #B5522B); border-color: var(--rust, #B5522B); }
.bx.some { border-color: var(--rust, #B5522B); }
.bx.some i { width: 10px; height: 2px; border-radius: 2px; background: var(--rust, #B5522B); }
.br-foot { gap: 10px; align-items: center; flex-wrap: wrap; }
/* Thumbnails and the player (see browse-ui.js). */
.sheet.browse { position: relative; width: min(860px, 94vw); }
.br-view { padding: 6px 12px; }
.br-thumb { position: relative; flex: none; width: 88px; height: 50px; border-radius: 7px; overflow: hidden; border: 0; padding: 0; background: var(--sand, #E7E0D4); color: var(--text); display: flex; align-items: center; justify-content: center; cursor: default; }
.br-thumb.can { cursor: pointer; }
.br-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.br-thumb .br-ph { display: flex; opacity: .7; }
.br-dur { position: absolute; right: 3px; bottom: 3px; z-index: 2; font-size: 10px; line-height: 1; padding: 2px 4px; border-radius: 4px; background: rgba(20, 16, 12, .72); color: #fff; font-weight: 600; }
.br-playglyph { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(20, 16, 12, .38); opacity: 0; transition: opacity .12s; }
.br-thumb.can:hover .br-playglyph, .br-thumb.can:focus-visible .br-playglyph { opacity: 1; }
.br-thumb.can:focus-visible { outline: 2px solid var(--rust, #B5522B); outline-offset: 2px; }
.br-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px 12px; padding: 8px 4px 4px; }
.br-tile { position: relative; display: flex; flex-direction: column; gap: 7px; cursor: pointer; border-radius: 12px; padding: 6px; }
.br-tile:hover { background: var(--hover, rgba(0,0,0,.04)); }
.br-tile.on { background: color-mix(in srgb, var(--rust, #B5522B) 10%, transparent); }
.br-tile .br-thumb { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 9px; }
.br-tile .br-dur { font-size: 11px; right: 6px; bottom: 6px; }
.br-tile .br-tick { position: absolute; top: 12px; left: 12px; z-index: 4; }
.br-tile .br-tick .bx { background: rgba(255, 255, 255, .85); }
.br-tile .br-tick .bx.all { background: var(--rust, #B5522B); }
.br-tile .br-name { font-size: 13px; }
.br-make { margin: 4px 0 8px; }
.br-player { position: absolute; inset: 0; z-index: 5; background: var(--bg); display: flex; flex-direction: column; }
.br-pl-top { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.br-pl-top b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.br-pl-note { font-size: 12.5px; flex: none; }
.br-pl-body { position: relative; flex: 1; min-height: 0; background: #0E0C0A; display: flex; align-items: center; justify-content: center; }
.br-pl-body video { width: 100%; height: 100%; object-fit: contain; background: #0E0C0A; }
.br-pl-body audio { width: min(520px, 90%); }
.br-pl-img { max-width: 100%; max-height: 100%; }
.br-pl-msg { color: #E9E3DA; text-align: center; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; line-height: 1.5; opacity: .9; }
.br-pl-wait { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 13px; background: rgba(20, 16, 12, .7); padding: 6px 12px; border-radius: 99px; display: flex; gap: 8px; align-items: center; pointer-events: none; }
.br-pl-wait[hidden] { display: none; }
.br-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; animation: br-spin .8s linear infinite; display: inline-block; }
@keyframes br-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .br-spin { animation: none; } }
.opt-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.opt-row input { margin-top: 3px; accent-color: var(--rust); width: 16px; height: 16px; flex: none; }

/* ---------- QuickDrop ---------- */
/* Its sidebar square is Cream with a Rust plane, apart from the three modes. */
.nsq.cream { background: var(--cream); color: var(--rust); }
.qs-head { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 8px; }
.qs-title { font-size: 56px; }
.qs-compose .field textarea { height: 64px; }
.qs-head p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 620px; }
.qs-compose { gap: 18px; }
.qs-drop { flex: none; min-height: 0; flex-direction: row; justify-content: flex-start; text-align: left; gap: 18px; padding: 20px 22px; flex-wrap: wrap; }
.qs-drop .well { width: 56px; height: 56px; border-radius: 16px; background: var(--sage); color: var(--text-on-sage); flex: none; }
.qs-drop-t { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.qs-drop h2 { font-size: 22px; }
.qs-drop p { font-size: 13.5px; }
.nav-item .qs-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.qs-picked { display: flex; flex-direction: column; gap: 8px; }
.qs-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--bg); }
.qs-sq { width: 34px; height: 34px; border-radius: 9px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--sage); color: var(--text-on-sage); }
.qs-sq.folder { background: var(--butter); color: var(--text-on-butter); }
.qs-sq.up { background: var(--rust-tint); color: var(--rust-deep); }
.qs-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.qs-name b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.qs-name .muted { font-size: 12.5px; }
.qs-total { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 2px 2px 0; }
.qs-total .btn { margin-left: auto; }
.qs-to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 5px 8px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); cursor: text; }
.qs-to:focus-within { border-color: var(--rust); box-shadow: 0 0 0 3px var(--rust-tint); }
.field .qs-to input { flex: 1; min-width: 200px; height: 28px; border: 0; background: none; padding: 0 5px; box-shadow: none; color: var(--text); }
.qs-chip { display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 4px 0 12px; border-radius: var(--r-pill); background: var(--fill); color: var(--text); font-size: 13px; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; }
.qs-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: none; color: var(--text-2); display: flex; align-items: center; justify-content: center; flex: none; }
.qs-chip button:hover { background: var(--hover); color: var(--text); }
.qs-bad { color: var(--error-fg); font-size: 12.5px; font-weight: 500; }
.qs-row { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.qs-row .seg { flex-wrap: wrap; }
.qs-row > .field:last-child:not(:first-child) { min-width: 200px; }
.qs-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; line-height: 1.4; }
.person.qs-sent { flex-direction: column; align-items: stretch; gap: 10px; }
.qs-sent.ended { opacity: .72; }
.qs-top { display: flex; align-items: center; gap: 12px; }
.qs-top .who { flex: 1; }
.qs-top .who b { overflow-wrap: anywhere; }
.qs-top .chip { align-self: center; }
.qs-msg { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--text-2); font-size: 13.5px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.qs-whos { display: flex; flex-wrap: wrap; gap: 8px; }
.qs-who { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 3px 3px 3px 12px; border-radius: var(--r-pill); background: var(--bg); font-size: 13px; }
.qs-who .qs-mail { min-width: 0; overflow-wrap: anywhere; }
.qs-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.qs-small { font-size: 12.5px; }

/* ---------- Windows ----------
   A 32px title strip across the top (sidebar colour over the sidebar, page
   colour over the rest) that drags the window; Windows draws minimise,
   maximise and close on its right (main.js titleBarOverlay). The app sits
   below it, so nothing is covered, and the Mac's traffic-light space goes. */
:root.win body::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: var(--win-title); z-index: 5; -webkit-app-region: drag;
  background: linear-gradient(to right, var(--side-bg) var(--sidebar), var(--bg) var(--sidebar));
}
:root.win { --win-title: 32px; }
:root.win #app { height: calc(100vh - var(--win-title)); margin-top: var(--win-title); }
:root.win #app > aside { padding-top: 12px; }
:root.win #app > aside::before { display: none; }
:root.win #uploads { top: var(--win-title); }

/* Practice projects (local test storage) at the foot of All projects, while Backblaze is connected */
.practice { margin-top: 22px; display: flex; flex-direction: column; gap: 8px; }
.practice-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 2px; }
.practice-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.practice-head .muted { font-size: 12.5px; }
.practice-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--r-lg); background: var(--card); border: 1px dashed var(--line); }
.practice-row .couple { font-weight: 600; }
.practice-row .muted { font-size: 12.5px; }
.practice-foot { flex: none; padding-top: 0; }

/* ---------- Passwords on links, and how footage is protected ---------- */
.qs-lock { display: flex; flex-direction: column; gap: 10px; }
.qs-lock .opt-row { margin-top: 0; }
.qs-lock .opt-row b { display: inline-flex; align-items: center; gap: 6px; }
.qs-pw { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-left: 26px; }
.qs-pw input { width: 260px; max-width: 100%; height: 38px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--field); color: var(--text); font: inherit; }
.qs-pw input:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 3px var(--rust-tint); }
.qs-locked { display: inline-flex; vertical-align: -2px; margin-right: 6px; color: var(--rust); }
.rv-locked { display: inline-flex; vertical-align: -2px; margin-right: 5px; color: var(--rust); }
.protect { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--sage); color: var(--text-on-sage); }
.protect h4 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.protect ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.protect li { display: flex; gap: 9px; font-size: 13px; line-height: 1.45; }
.protect li svg { flex: none; margin-top: 1px; }
.protect .muted { color: inherit; opacity: .8; font-size: 12px; }

/* ---------- Recently deleted (0.5.2) ---------- */
.trash-filter { margin-top: 4px; }
.trash-filter svg { flex: none; margin-right: -2px; opacity: .8; }
.spend-note { font-size: 11.5px; color: var(--muted-on-dark); line-height: 1.3; }
.stat-note { display: block; font-size: 12px; opacity: .85; margin-top: 4px; }
.stat-note .link { font-size: inherit; }
.bin-table .row { grid-template-columns: minmax(0, 1fr) 80px minmax(320px, 1.5fr) 90px auto; }
.bin-when > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bin-when { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; min-width: 0; }
.bin-acts { display: flex; gap: 6px; justify-content: flex-end; }
.bin-acts .btn { white-space: nowrap; }

/* ---------- Replies and @mentions on cuts (0.5.2) ---------- */
.at { color: var(--rust); font-weight: 600; background: var(--rust-tint); border-radius: 5px; padding: 0 3px; }
.rv-cacts { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 13px; }
.rv-cacts .link { font-size: 13px; }
.rv-done { display: inline-flex; align-items: center; gap: 5px; color: var(--text-muted); cursor: pointer; font-weight: 600; }
.rv-c.focus > .rv-b { background: var(--rust-tint); border-radius: 6px; box-shadow: 0 0 0 4px var(--rust-tint); }
.rv-rbox { position: relative; margin: 10px 0 2px 18px; display: flex; flex-direction: column; gap: 8px; }
.rv-rbox textarea { width: 100%; resize: vertical; min-height: 58px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 11px; background: var(--field); color: var(--text); }
.rv-rbox-end { display: flex; align-items: center; gap: 8px; }
.rv-rbox-end .muted { font-size: 12px; margin-right: auto; }
.mpop { position: absolute; z-index: 30; top: 64px; left: 0; min-width: 240px; max-width: 340px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 14px 36px rgba(29, 20, 12, .22); padding: 5px; display: grid; gap: 2px; }
.mpop button { display: flex; align-items: center; gap: 10px; border: 0; background: none; text-align: left; padding: 7px 9px; border-radius: 8px; cursor: pointer; color: var(--text); font: inherit; font-size: 14px; }
.mpop button b { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mpop button > span { font-size: 12px; color: var(--text-muted); }
.mpop button.on, .mpop button:hover { background: var(--fill); }
.mpop .avatar { width: 26px; height: 26px; font-size: 12px; }
.bell-ic.mention { background: var(--sage); color: var(--text-on-sage); font-weight: 800; font-size: 17px; padding: 0; }
