/* ===== THEME TOKENS (light default · dark via .dark on <html>) ===== */
:root {
  --c-bg: #E9EDF1; --c-surface: #FFFFFF; --c-modal: #FFFFFF; --c-pop: #FFFFFF;
  --c-elev: #FFFFFF; --c-elev2: #F3F5F8; --c-thumb: #E4E9EF;
  --c-text: #02066F; --rmp: 2,6,111;
}
.dark {
  --c-bg: #0E0E0F; --c-surface: #161617; --c-modal: #131314; --c-pop: #202022;
  --c-elev: #1d1d1f; --c-elev2: #1a1a1c; --c-thumb: #232325;
  --c-text: #FFFFFF; --rmp: 255,255,255;
}

/* Berrys — Creative Workflow Platform
 * Dark application surface built on Berrys AI design tokens.
 * Loads after colors_and_type.css; root carries .dark so tokens flip.
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  background: var(--c-bg);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; padding: 0; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::selection { background: rgba(237,75,0,.32); }

/* dark scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(var(--rmp),.12); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(var(--rmp),.2); background-clip: padding-box; border: 2px solid transparent; }
*::-webkit-scrollbar-track { background: transparent; }

#root { height: 100vh; }

/* ============================================================= APP SHELL */
.app { display: flex; height: 100vh; width: 100vw; background: var(--c-bg); }

/* ---- Left nav rail ---- */
.rail {
  width: 236px; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 14px 10px 12px;
  gap: 2px;
}
.rail-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px 12px;
}
.rail-ws {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 7px; border-radius: 10px; cursor: pointer;
  transition: background .15s;
}
.rail-ws:hover { background: rgba(var(--rmp),.05); }
.ws-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: #ED4B00; color: var(--c-text); flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; font-size: 17px; line-height: 1;
}
.ws-name { font-size: 14px; font-weight: 600; color: var(--c-text); letter-spacing: -.01em; }
.ws-name .chev { color: var(--fg-3); margin-left: 1px; }
.rail-head-btn { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--fg-3); transition: .15s; }
.rail-head-btn:hover { background: rgba(var(--rmp),.06); color: var(--c-text); }

.rail-scroll { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px; min-height: 0; }

.nav-item {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 7px 10px; border-radius: 9px;
  font-size: 13px; font-weight: 500; color: var(--fg-2);
  transition: background .14s, color .14s;
  text-align: left; width: 100%;
}
.nav-item svg { flex-shrink: 0; opacity: .85; }
.nav-item:hover { background: rgba(var(--rmp),.05); color: var(--c-text); }
.nav-item.active { background: rgba(var(--rmp),.07); color: var(--c-text); }
.nav-item.active svg { opacity: 1; color: var(--accent); }
.nav-item.active::before {
  content: ""; position: absolute; left: -10px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px; border-radius: 0 3px 3px 0; background: var(--accent);
}
.nav-count { margin-left: auto; font-size: 11px; color: var(--fg-3); font-weight: 500; }
.nav-badge {
  margin-left: auto; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 99px;
  background: var(--accent); color: var(--c-text); font-size: 10px; font-weight: 600;
  display: grid; place-items: center;
}

.rail-div { height: 1px; background: rgba(var(--rmp),.08); margin: 11px 6px; }

.rail-section-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 10px 4px;
}
.rail-section-head span {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--fg-3);
}
.rail-add { width: 20px; height: 20px; border-radius: 5px; display: grid; place-items: center; color: var(--fg-3); transition: .14s; }
.rail-add:hover { background: rgba(var(--rmp),.08); color: var(--c-text); }

.board-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--fg-2);
  transition: .14s; width: 100%; text-align: left;
}
.board-item:hover { background: rgba(var(--rmp),.05); color: var(--c-text); }

/* board row + dots + context menu */
.board-row { position: relative; }
.board-count { transition: opacity .12s; }
.board-dots { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; display: none; align-items: center; justify-content: center; color: var(--fg-3); flex-shrink: 0; }
.board-row:hover .board-dots, .board-row.menu-open .board-dots { display: flex; }
.board-row:hover .board-count, .board-row.menu-open .board-count { display: none; }
.board-dots:hover { background: rgba(var(--rmp),.12); color: var(--c-text); }
.dd-item.danger { color: #ff7d92; }
.dd-item.danger:hover { background: rgba(220,60,80,.12); }

/* workspace menu */
.ws-menu { width: 280px; }
.ws-menu-head { display: flex; align-items: center; gap: 11px; padding: 8px 8px 12px; }
.ws-credits { background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.07); border-radius: 11px; padding: 11px 12px; margin: 0 2px; }
.ws-credit-top { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--fg-2); }
.ws-switch { padding: 7px 10px; }
.ws-create { color: var(--accent); font-weight: 500; }
.ws-create-ic { width: 26px; height: 26px; border-radius: 7px; border: 1px dashed rgba(237,75,0,.5); display: grid; place-items: center; color: var(--accent); }
.appearance-seg { display: flex; gap: 6px; padding: 4px 2px 2px; }
.appr-opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px; border-radius: 9px; font-size: 12.5px; font-weight: 500; color: var(--fg-2); border: 1px solid rgba(var(--rmp),.1); background: rgba(var(--rmp),.03); transition: .14s; }
.appr-opt:hover { background: rgba(var(--rmp),.07); color: var(--c-text); }
.appr-opt.active { background: rgba(237,75,0,.14); border-color: rgba(237,75,0,.4); color: var(--accent); }

/* notifications pop-out */
.notif-pop {
  position: fixed; left: 248px; top: 14px; bottom: 14px; width: 396px; z-index: 80;
  background: var(--c-elev2); border: 1px solid rgba(var(--rmp),.1); border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6);
  display: flex; flex-direction: column; overflow: hidden;
  animation: notifin .22s var(--ease);
}
@keyframes notifin { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.notif-head { display: flex; align-items: center; gap: 8px; padding: 16px 16px 12px; }
.notif-title { font-size: 17px; font-weight: 600; color: var(--c-text); }
.notif-readall { font-size: 12px; color: var(--accent); font-weight: 500; padding: 5px 8px; border-radius: 7px; }
.notif-readall:hover { background: rgba(237,75,0,.1); }
.notif-tabs { display: flex; gap: 4px; padding: 0 14px 10px; border-bottom: 1px solid rgba(var(--rmp),.07); }
.notif-tab { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--fg-3); transition: .14s; }
.notif-tab:hover { color: var(--c-text); background: rgba(var(--rmp),.05); }
.notif-tab.active { color: var(--c-text); background: rgba(var(--rmp),.09); }
.notif-list { flex: 1; overflow-y: auto; padding: 8px; }
.notif-item { display: flex; gap: 11px; align-items: flex-start; padding: 11px 10px; border-radius: 12px; transition: .13s; width: 100%; text-align: left; position: relative; }
.notif-item:hover { background: rgba(var(--rmp),.05); }
.notif-item.unread { background: rgba(237,75,0,.05); }
.notif-item.unread:hover { background: rgba(237,75,0,.09); }
.notif-kind { position: absolute; bottom: -2px; right: -2px; width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; color: var(--c-text); border: 2px solid var(--c-elev2); }
.notif-text { flex: 1; min-width: 0; }
.notif-line { font-size: 13px; color: var(--fg-2); line-height: 1.4; }
.notif-line b { color: var(--c-text); font-weight: 600; }
.notif-line b.tgt { color: var(--c-text); font-weight: 500; }
.notif-detail { font-size: 12px; color: var(--fg-3); line-height: 1.45; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notif-ts { font-size: 11px; color: var(--fg-3); margin-top: 5px; }
.notif-thumb { width: 44px; height: 44px; border-radius: 9px; overflow: hidden; flex-shrink: 0; background: var(--c-thumb); }
.notif-thumb img { width: 100%; height: 100%; object-fit: cover; }
.notif-dot { position: absolute; top: 14px; right: 10px; width: 7px; height: 7px; border-radius: 99px; background: var(--accent); }

/* selection action bar */
.sel-bar { display: flex; align-items: center; gap: 9px; padding: 9px 12px; margin-bottom: 16px; background: rgba(237,75,0,.08); border: 1px solid rgba(237,75,0,.25); border-radius: 12px; animation: pop .16s var(--ease); }
.sel-count { font-size: 13px; font-weight: 600; color: #ff8a5c; padding-right: 4px; }

/* list / table view */
.asset-table { border: 1px solid rgba(var(--rmp),.07); border-radius: 14px; overflow: hidden; }
.at-head, .at-row { display: grid; grid-template-columns: 38px minmax(0,2.4fr) 150px 110px 130px 90px 110px 44px; align-items: center; gap: 10px; padding: 0 14px; }
.asset-table.dense .at-head, .asset-table.dense .at-row { grid-template-columns: 38px minmax(0,2.6fr) 150px 110px 130px 110px 44px; }
.at-head { height: 40px; background: rgba(var(--rmp),.03); border-bottom: 1px solid rgba(var(--rmp),.07); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.at-row { height: 60px; border-bottom: 1px solid rgba(var(--rmp),.05); cursor: pointer; transition: background .12s; }
.asset-table.dense .at-row { height: 50px; }
.at-row:last-child { border-bottom: none; }
.at-row:hover { background: rgba(var(--rmp),.04); }
.at-row.sel { background: rgba(237,75,0,.07); }
.row-check { width: 19px; height: 19px; border-radius: 5px; border: 1.5px solid rgba(var(--rmp),.25); display: grid; place-items: center; color: var(--c-text); transition: .12s; }
.row-check.on { background: var(--accent); border-color: var(--accent); }
.row-check:hover { border-color: rgba(var(--rmp),.5); }
.at-c-name { display: flex; align-items: center; gap: 11px; min-width: 0; }
.row-thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--c-thumb); position: relative; }
.asset-table.dense .row-thumb { width: 32px; height: 32px; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-play { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; border-radius: 99px; background: rgba(0,0,0,.5); display: grid; place-items: center; }
.at-name-txt { font-size: 13px; font-weight: 500; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-cmt { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--fg-3); flex-shrink: 0; }
.at-c-owner { display: flex; align-items: center; gap: 8px; }
.at-owner-txt { font-size: 12.5px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.at-c-size, .at-c-date { font-size: 12px; }
.at-c-end { display: flex; justify-content: flex-end; }

/* filter mega menu */
.filterpill.add { color: var(--fg-1); border-style: dashed; }
.filterpill.ghost { background: transparent; border-color: transparent; color: var(--fg-3); }
.filterpill.ghost:hover { color: var(--c-text); background: rgba(var(--rmp),.06); }
.filter-mega { display: flex; width: 460px; height: 340px; }
.fm-cats { width: 210px; border-right: 1px solid rgba(var(--rmp),.08); padding: 6px; display: flex; flex-direction: column; gap: 1px; overflow-y: auto; }
.fm-search { display: flex; align-items: center; gap: 7px; padding: 7px 9px; margin-bottom: 4px; background: rgba(var(--rmp),.05); border-radius: 8px; color: var(--fg-3); }
.fm-search input { flex: 1; background: none; border: none; outline: none; color: var(--c-text); font-size: 12.5px; }
.fm-cat { display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: 8px; font-size: 13px; color: var(--fg-2); transition: .12s; text-align: left; }
.fm-cat:hover, .fm-cat.active { background: rgba(var(--rmp),.07); color: var(--c-text); }
.fm-chev { margin-left: auto; opacity: 0; color: var(--fg-3); }
.fm-cat.active .fm-chev { opacity: 1; }
.fm-vals { flex: 1; padding: 6px; overflow-y: auto; }
.fm-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--fg-3); font-size: 12.5px; }
.fm-swatches { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding-top: 2px; }
.fm-swatch { display: flex; align-items: center; gap: 9px; padding: 8px 9px; border-radius: 8px; font-size: 12.5px; color: var(--fg-1); transition: .12s; }
.fm-swatch:hover { background: rgba(var(--rmp),.07); }
.fm-swatch-dot { width: 16px; height: 16px; border-radius: 5px; border: 1px solid rgba(var(--rmp),.15); }

/* sub-board cards + section blocks */
.section-block { margin-bottom: 26px; }
.section-head-row { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 2px; }
.section-head-row.static { cursor: default; }
.sh-label { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; color: var(--fg-3); }
.section-head-row .board-caret { color: var(--fg-3); }
.subboard-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.subboard-card { cursor: pointer; border-radius: 14px; overflow: hidden; background: var(--c-elev); border: 1px solid rgba(var(--rmp),.07); transition: transform .16s var(--ease), box-shadow .16s, border-color .14s; }
.subboard-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.45); border-color: rgba(var(--rmp),.16); }
.sbc-cover { position: relative; aspect-ratio: 16/10; background: var(--c-thumb); overflow: hidden; }
.sbc-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s var(--ease); }
.subboard-card:hover .sbc-cover img { transform: scale(1.04); }
.sbc-cover.empty { background: linear-gradient(150deg, var(--c-thumb), var(--c-elev2)); display: grid; place-items: center; }
.sbc-empty-ic { color: rgba(var(--rmp),.22); }
.sbc-tr { position: absolute; top: 8px; right: 8px; opacity: 0; transition: .15s; }
.subboard-card:hover .sbc-tr { opacity: 1; }
.sbc-dots { width: 26px; height: 26px; border-radius: 7px; background: rgba(10,10,12,.65); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--c-text); }
.sbc-dots:hover { background: rgba(10,10,12,.85); }
.sbc-meta { padding: 11px 13px 13px; }
.sbc-name { display: block; font-size: 13.5px; font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbc-sub { display: block; font-size: 11.5px; color: var(--fg-3); margin-top: 3px; }
.subboard-card.new-sub { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; aspect-ratio: auto; min-height: 100%; border-style: dashed; border-color: rgba(var(--rmp),.16); background: transparent; color: var(--fg-3); font-size: 13px; font-weight: 500; }
.subboard-card.new-sub:hover { color: var(--c-text); border-color: rgba(237,75,0,.5); background: rgba(237,75,0,.04); transform: translateY(-3px); }

/* sidebar sub-board tree */
.subboard.sub-new { color: var(--fg-3); }
.subboard.sub-new:hover { color: var(--accent); }
.subboard.active { background: rgba(var(--rmp),.07); color: var(--c-text); }
.subboard.active .board-name { color: var(--c-text); }
.subboard .board-caret { width: 14px; flex-shrink: 0; display: grid; place-items: center; color: var(--fg-3); transition: transform .15s; }
.subboard .board-caret.open { transform: rotate(90deg); }
.subboard .nav-count { margin-left: auto; font-size: 11px; color: var(--fg-3); }

/* destination selector (share links) */
.dest-select { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.12); border-radius: 10px; transition: .14s; }
.dest-select:hover { background: rgba(var(--rmp),.07); border-color: rgba(var(--rmp),.18); }
.dest-label { display: flex; align-items: baseline; min-width: 0; }
.dest-parent { font-size: 12.5px; color: var(--fg-3); }
.dest-name { font-size: 13.5px; color: var(--c-text); font-weight: 500; white-space: nowrap; }
.dest-hint { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg-3); margin-top: 8px; }
.board-item.active { background: rgba(var(--rmp),.07); color: var(--c-text); }
.board-swatch { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.board-caret { width: 14px; display: grid; place-items: center; color: var(--fg-3); transition: transform .15s; }
.board-caret.open { transform: rotate(90deg); }
.board-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subboards { display: flex; flex-direction: column; gap: 1px; padding-left: 16px; margin-top: 1px; }
.subboard {
  display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 7px;
  font-size: 12.5px; color: var(--fg-3); transition: .14s; text-align: left; width: 100%;
}
.subboard:hover { background: rgba(var(--rmp),.05); color: var(--fg-1); }
.subboard .dot { width: 6px; height: 6px; border-radius: 99px; flex-shrink: 0; }

/* rail footer */
.rail-foot { padding-top: 8px; display: flex; flex-direction: column; gap: 9px; }
.upgrade-card {
  background: linear-gradient(150deg, rgba(237,75,0,.16), rgba(237,75,0,.04));
  border: 1px solid rgba(237,75,0,.28);
  border-radius: 13px; padding: 12px 13px; cursor: pointer;
  transition: .15s;
}
.upgrade-card:hover { border-color: rgba(237,75,0,.5); }
.upgrade-card .uc-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--c-text); margin-bottom: 7px; }
.upgrade-card .uc-meter { height: 5px; border-radius: 99px; background: rgba(var(--rmp),.12); overflow: hidden; }
.upgrade-card .uc-fill { height: 100%; width: 32%; background: var(--accent); border-radius: 99px; }
.upgrade-card .uc-sub { font-size: 11px; color: var(--fg-3); margin-top: 7px; display: flex; justify-content: space-between; }
.rail-user {
  display: flex; align-items: center; gap: 9px; padding: 6px; border-radius: 10px; cursor: pointer; transition: .15s;
}
.rail-user:hover { background: rgba(var(--rmp),.05); }
.rail-user .meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.rail-user .nm { font-size: 13px; font-weight: 500; color: var(--c-text); }
.rail-user .pl { font-size: 11px; color: var(--fg-3); }

/* avatars */
.avatar { border-radius: 99px; background-size: cover; background-position: center; flex-shrink: 0; background-color: var(--c-thumb); display: grid; place-items: center; color: var(--c-text); font-weight: 600; overflow: hidden; }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.sm { width: 24px; height: 24px; font-size: 10px; }
.avatar.md { width: 30px; height: 30px; font-size: 12px; }
.avatar.lg { width: 38px; height: 38px; font-size: 14px; }
.av-stack { display: flex; align-items: center; border-radius: 99px; transition: .14s; }
.av-stack .avatar { border: 2px solid var(--c-surface); margin-left: -7px; }
.av-stack .avatar:first-child { margin-left: 0; }
.av-invite { width: 30px; height: 30px; border-radius: 99px; margin-left: -7px; border: 2px solid var(--c-surface); background: rgba(var(--rmp),.08); color: var(--fg-2); display: grid; place-items: center; transition: .14s; }
.av-stack:hover .av-invite { background: var(--accent); color: #fff; }

/* ---- Main inset ---- */
.main {
  flex: 1; min-width: 0;
  margin: 10px 10px 10px 0;
  background: var(--c-surface);
  border: 1px solid rgba(var(--rmp),.05);
  border-radius: 22px;
  display: flex; flex-direction: column;
  overflow: hidden;
}

/* ---- Top bar ---- */
.topbar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(var(--rmp),.06);
  flex-shrink: 0;
}
.topbar-search {
  flex: 1; max-width: 560px;
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 14px;
  background: rgba(var(--rmp),.05);
  border: 1px solid rgba(var(--rmp),.07);
  border-radius: 11px;
  color: var(--fg-3);
  transition: .15s; cursor: text;
}
.topbar-search:focus-within, .topbar-search.filled { border-color: rgba(237,75,0,.5); background: rgba(var(--rmp),.06); }
.topbar-search input {
  flex: 1; background: none; border: none; outline: none; color: var(--c-text); font-size: 13.5px;
}
.topbar-search input::placeholder { color: var(--fg-3); }
.topbar-search .kbd { font-size: 11px; color: var(--fg-3); border: 1px solid rgba(var(--rmp),.12); border-radius: 5px; padding: 1px 6px; }
.topbar-clear { color: var(--fg-3); display: grid; place-items: center; }
.topbar-clear:hover { color: var(--c-text); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 9px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-weight: 500; border-radius: 99px; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s, transform .06s, opacity .16s;
}
.btn:active { transform: translateY(.5px); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }
.btn-md { padding: 8px 16px; font-size: 13.5px; }
.btn-primary { background: var(--accent); color: var(--c-text); }
.btn-primary:hover { background: var(--accent-hover); }
/* light mode: primary buttons use navy, not orange */
html:not(.dark) .btn-primary { background: var(--berrys-navy-75); color: #FFFFFF; }
html:not(.dark) .btn-primary:hover { background: #02055D; }
.btn-ghost { background: rgba(var(--rmp),.05); color: var(--c-text); border: 1px solid rgba(var(--rmp),.1); }
.btn-ghost:hover { background: rgba(var(--rmp),.09); }
.btn-quiet { background: transparent; color: var(--fg-2); }
.btn-quiet:hover { background: rgba(var(--rmp),.06); color: var(--c-text); }
.btn-navy { background: var(--berrys-navy-75); color: var(--c-text); }
.btn-navy:hover { background: var(--berrys-navy-50); }
.iconbtn { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--fg-2); transition: .15s; }
.iconbtn:hover { background: rgba(var(--rmp),.07); color: var(--c-text); }
.iconbtn.sm { width: 28px; height: 28px; border-radius: 8px; }

/* ---- Chips / badges ---- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 500;
  background: rgba(var(--rmp),.07); color: var(--fg-2); border: 1px solid transparent;
}
.chip.smart { background: rgba(237,75,0,.12); color: #ff8a5c; }
.chip.solid-navy { background: var(--berrys-navy-15); color: var(--berrys-navy-75); }
.chip-x { opacity: .6; display: grid; place-items: center; }
.chip-x:hover { opacity: 1; }

.statuspill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px 3px 8px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600;
}
.statuspill .dot { width: 7px; height: 7px; border-radius: 99px; }
.dot-only { width: 9px; height: 9px; border-radius: 99px; display: inline-block; }

/* status colors */
.st-progress { background: rgba(38,163,253,.15); color: #6bc0ff; }   .st-progress .dot { background: #26A3FD; }
.st-review   { background: rgba(237,158,0,.16); color: #ffc24d; }    .st-review .dot { background: #F0A020; }
.st-changes  { background: rgba(237,75,0,.16); color: #ff8a5c; }     .st-changes .dot { background: #ED4B00; }
.st-approved { background: rgba(30,180,120,.16); color: #4fd6a0; }   .st-approved .dot { background: #1EB478; }
.st-rejected { background: rgba(220,60,80,.16); color: #ff7d92; }    .st-rejected .dot { background: #DC3C50; }
.swatch-progress { background: #26A3FD; } .swatch-review { background: #F0A020; }
.swatch-changes { background: #ED4B00; } .swatch-approved { background: #1EB478; } .swatch-rejected { background: #DC3C50; }

/* =============================================================== SCREENS */
.screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.screen-scroll { flex: 1; overflow-y: auto; }
.screen-pad { padding: 22px 26px 36px; }

/* page header */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.crumb { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--fg-3); margin-bottom: 7px; }
.crumb .sep { opacity: .5; }
.crumb a:hover { color: var(--c-text); }
.page-title { font-size: 27px; font-weight: 600; letter-spacing: -.02em; color: var(--c-text); margin: 0; line-height: 1.05; }
.page-sub { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; color: var(--fg-3); margin-top: 8px; }
.head-actions { display: flex; align-items: center; gap: 9px; }
.viewtoggle { display: flex; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.08); border-radius: 9px; padding: 2px; }
.viewtoggle button { width: 30px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--fg-3); transition: .14s; }
.viewtoggle button.active { background: rgba(var(--rmp),.1); color: var(--c-text); }
.sortbtn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.08); font-size: 12.5px; color: var(--fg-1); transition: .14s; }
.sortbtn:hover { background: rgba(var(--rmp),.08); }

/* filter bar */
.filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filterpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 9px;
  background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.08);
  font-size: 12.5px; font-weight: 500; color: var(--fg-2);
  transition: .14s; position: relative;
}
.filterpill:hover { background: rgba(var(--rmp),.07); color: var(--c-text); }
.filterpill.on { background: rgba(237,75,0,.14); border-color: rgba(237,75,0,.4); color: #ff8a5c; }
.filterpill .fchev { opacity: .6; }
.filter-sep { width: 1px; height: 20px; background: rgba(var(--rmp),.1); margin: 0 3px; }

/* dropdown */
.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 200px; padding: 6px;
  background: var(--c-pop); border: 1px solid rgba(var(--rmp),.1); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  animation: pop .14s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dd-item { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--fg-1); transition: .12s; width: 100%; text-align: left; }
.dd-item:hover { background: rgba(var(--rmp),.07); }
.dd-item .check { margin-left: auto; color: var(--accent); }
.dd-label { padding: 7px 10px 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--fg-3); text-transform: uppercase; }
.dd-div { height: 1px; background: rgba(var(--rmp),.08); margin: 5px 4px; }

/* asset grid */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 16px; }
.asset-card { cursor: pointer; }
.asset-thumb {
  position: relative; border-radius: 13px; overflow: hidden;
  aspect-ratio: 4/3; background: var(--c-thumb);
  border: 1px solid rgba(var(--rmp),.07);
  transition: transform .18s var(--ease), box-shadow .18s, border-color .15s;
}
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s var(--ease); }
.asset-card:hover .asset-thumb { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.45); border-color: rgba(var(--rmp),.16); }
.asset-card:hover .asset-thumb img { transform: scale(1.04); }
.asset-card.selected .asset-thumb { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.thumb-grad { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5), transparent 42%); opacity: 0; transition: .18s; }
.asset-card:hover .thumb-grad { opacity: 1; }

.thumb-tl { position: absolute; top: 8px; left: 8px; display: flex; gap: 5px; }
.thumb-tr { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; opacity: 0; transition: .15s; }
.asset-card:hover .thumb-tr, .asset-card.selected .thumb-tr { opacity: 1; }
.thumb-bl { position: absolute; bottom: 8px; left: 8px; display: flex; gap: 5px; align-items: center; }
.thumb-br { position: absolute; bottom: 8px; right: 8px; }
.thumb-badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 7px;
  background: rgba(10,10,12,.7); backdrop-filter: blur(6px);
  color: var(--c-text); font-size: 11px; font-weight: 600;
}
.thumb-check {
  width: 22px; height: 22px; border-radius: 6px;
  background: rgba(10,10,12,.6); backdrop-filter: blur(6px);
  border: 1.5px solid rgba(var(--rmp),.55); display: grid; place-items: center; color: var(--c-text);
}
.asset-card.selected .thumb-check { background: var(--accent); border-color: var(--accent); }
.thumb-status-dot { width: 22px; height: 22px; border-radius: 6px; background: rgba(10,10,12,.6); backdrop-filter: blur(6px); display: grid; place-items: center; }
.processing-overlay { position: absolute; inset: 0; background: rgba(10,10,12,.55); backdrop-filter: blur(2px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--c-text); }
.spinner { width: 24px; height: 24px; border-radius: 99px; border: 2.5px solid rgba(var(--rmp),.25); border-top-color: var(--c-text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.asset-meta { display: flex; align-items: center; gap: 7px; padding: 9px 3px 0; }
.asset-name { font-size: 13px; font-weight: 500; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-sub { font-size: 11px; color: var(--fg-3); margin-left: auto; flex-shrink: 0; }
.why-chip { margin-top: 7px; }

/* results subheader */
.results-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.results-title { font-size: 15px; color: var(--c-text); }
.results-title b { font-weight: 600; }
.results-title .muted { color: var(--fg-3); }

/* toast */
.toast-wrap { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px; border-radius: 12px;
  background: var(--c-thumb); border: 1px solid rgba(var(--rmp),.12);
  box-shadow: 0 14px 36px rgba(0,0,0,.5); color: var(--c-text); font-size: 13px; font-weight: 500;
  animation: toastin .26s var(--ease);
}
.toast .ic { color: var(--accent); display: grid; place-items: center; }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ====================================================== REVIEW MODAL (S3/S4/S6) */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,8,.72); backdrop-filter: blur(6px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: fixed; inset: 18px; z-index: 101;
  background: var(--c-modal); border: 1px solid rgba(var(--rmp),.08); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: modalin .24s var(--ease);
}
@keyframes modalin { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.modal-top {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; border-bottom: 1px solid rgba(var(--rmp),.07); flex-shrink: 0;
}
.modal-top .crumb { margin: 0; }
.modal-top .crumb b { color: var(--c-text); font-weight: 500; }
.modal-top-center { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.modal-top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.modal-body { flex: 1; display: flex; min-height: 0; }

/* version rail */
.ver-rail {
  width: 64px; flex-shrink: 0; border-right: 1px solid rgba(var(--rmp),.07);
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 0;
}
.ver-thumb {
  width: 44px; height: 44px; border-radius: 9px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; position: relative; background: var(--c-thumb);
}
.ver-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ver-thumb.active { border-color: var(--accent); }
.ver-thumb .vlabel { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,.7); color: var(--c-text); font-size: 8.5px; font-weight: 700; text-align: center; padding: 1px 0; }
.ver-add { width: 44px; height: 30px; border-radius: 8px; border: 1px dashed rgba(var(--rmp),.2); color: var(--fg-3); display: grid; place-items: center; }
.ver-add:hover { color: var(--c-text); border-color: rgba(var(--rmp),.4); }

/* stage */
.stage { flex: 1; position: relative; display: flex; flex-direction: column; min-width: 0; background:
  radial-gradient(120% 100% at 50% 0%, var(--c-surface), var(--c-bg)); }
.stage-canvas { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 30px; min-height: 0; overflow: hidden; }
.stage-frame { position: relative; max-width: 88%; max-height: 100%; border-radius: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.stage-frame > img { display: block; max-width: 100%; max-height: calc(100vh - 200px); object-fit: contain; border-radius: 8px; }

/* annotation overlay */
.annot-layer { position: absolute; inset: 0; pointer-events: none; }
.annot-ellipse { position: absolute; border: 2.5px solid var(--accent); border-radius: 50%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.pin {
  position: absolute; width: 26px; height: 26px; border-radius: 99px 99px 99px 2px;
  background: var(--accent); color: var(--c-text); font-size: 12px; font-weight: 700;
  display: grid; place-items: center; transform: rotate(-0deg) translate(-50%, -100%);
  box-shadow: 0 3px 10px rgba(0,0,0,.5); cursor: pointer; pointer-events: auto;
  border: 2px solid var(--c-text);
}
.pin:hover { filter: brightness(1.08); }

/* video stage */
.video-poster { position: relative; width: min(100%, 1080px); aspect-ratio: 16/9; max-height: calc(100vh - 240px); display: flex; align-items: center; justify-content: center; border-radius: 10px; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.video-poster img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.video-poster::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.18); }
.video-poster .play-btn { z-index: 2; }
.play-btn {
  position: absolute; width: 64px; height: 64px; border-radius: 99px;
  background: rgba(var(--rmp),.92); color: var(--berrys-navy-75);
  display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.4);
  transition: transform .15s;
}
.play-btn:hover { transform: scale(1.06); }
.video-controls { display: flex; align-items: center; gap: 12px; padding: 12px 18px; flex-shrink: 0; }
.scrubber { flex: 1; height: 5px; border-radius: 99px; background: rgba(var(--rmp),.16); position: relative; cursor: pointer; }
.scrub-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; }
.scrub-knob { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 13px; height: 13px; border-radius: 99px; background: var(--c-text); box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.scrub-marker { position: absolute; top: -4px; width: 11px; height: 11px; border-radius: 99px 99px 99px 2px; background: var(--c-text); border: 2px solid var(--accent); transform: translateX(-50%) rotate(0); cursor: pointer; }
.scrub-marker:hover { transform: translateX(-50%) scale(1.2); }
.time-read { font-size: 12px; color: var(--fg-2); font-variant-numeric: tabular-nums; min-width: 84px; }

/* filmstrip */
.filmstrip { display: flex; gap: 3px; padding: 0 18px 14px; position: relative; }
.film-cell { flex: 1; height: 46px; border-radius: 5px; overflow: hidden; background: var(--c-thumb); position: relative; }
.film-cell img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.film-marker { position: absolute; bottom: 4px; width: 14px; height: 14px; border-radius: 99px 99px 99px 2px; background: var(--accent); border: 1.5px solid var(--c-text); transform: translateX(-50%); display: grid; place-items: center; color: var(--c-text); font-size: 8px; font-weight: 700; cursor: pointer; z-index: 2; }
.film-marker.hover { box-shadow: 0 0 0 3px rgba(237,75,0,.35); }

/* transcript panel */
.transcript {
  width: 280px; flex-shrink: 0; border-right: 1px solid rgba(var(--rmp),.07);
  display: flex; flex-direction: column; min-height: 0; background: var(--c-surface);
}
.transcript-head { display: flex; align-items: center; gap: 8px; padding: 14px 16px 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); }
.transcript-list { flex: 1; overflow-y: auto; padding: 0 10px 14px; }
.tline { display: flex; gap: 11px; padding: 9px 8px; border-radius: 9px; cursor: pointer; transition: .12s; }
.tline:hover { background: rgba(var(--rmp),.05); }
.tline.active { background: rgba(237,75,0,.1); }
.tline .tt { font-size: 11px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; flex-shrink: 0; padding-top: 1px; }
.tline .tx { font-size: 13px; color: var(--fg-1); line-height: 1.45; }

/* inspector */
.inspector { width: 360px; flex-shrink: 0; border-left: 1px solid rgba(var(--rmp),.07); display: flex; flex-direction: column; min-height: 0; background: var(--c-surface); }
.insp-tabs { display: flex; gap: 2px; padding: 12px 14px 0; flex-shrink: 0; }
.insp-tab { flex: 1; padding: 9px; border-radius: 9px 9px 0 0; font-size: 13px; font-weight: 500; color: var(--fg-3); transition: .14s; position: relative; }
.insp-tab:hover { color: var(--c-text); }
.insp-tab.active { color: var(--c-text); }
.insp-tab.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: var(--accent); border-radius: 2px; }
.insp-tabs-line { height: 1px; background: rgba(var(--rmp),.07); }
.insp-body { flex: 1; overflow-y: auto; padding: 16px 16px 20px; }

/* comments */
.comment-thread { display: flex; flex-direction: column; gap: 14px; }
.comment {
  background: rgba(var(--rmp),.03); border: 1px solid rgba(var(--rmp),.07);
  border-radius: 12px; padding: 12px;
}
.comment.pinned { border-color: rgba(237,75,0,.3); }
.comment-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.comment-head .nm { font-size: 13px; font-weight: 600; color: var(--c-text); }
.comment-head .pin-no { width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: var(--c-text); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.comment-head .ts { font-size: 11px; color: var(--fg-3); margin-left: auto; }
.comment-body { font-size: 13.5px; color: var(--fg-1); line-height: 1.5; }
.comment-body .mention { color: #6bc0ff; font-weight: 500; }
.comment-foot { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.comment-foot button { font-size: 12px; color: var(--fg-3); display: inline-flex; align-items: center; gap: 5px; }
.comment-foot button:hover { color: var(--c-text); }
.comment-foot .resolve:hover { color: #4fd6a0; }
.comment .timestamp-link { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 8px; cursor: pointer; }
.reply-row { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.reply-row input { flex: 1; height: 34px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 9px; padding: 0 12px; color: var(--c-text); font-size: 13px; outline: none; }
.reply-row input:focus { border-color: rgba(237,75,0,.5); }

/* composer */
.composer { border-top: 1px solid rgba(var(--rmp),.07); padding: 12px 14px; flex-shrink: 0; }
.annot-tools { display: flex; align-items: center; gap: 4px; margin-bottom: 9px; }
.annot-tool { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--fg-2); transition: .14s; }
.annot-tool:hover { background: rgba(var(--rmp),.07); color: var(--c-text); }
.annot-tool.active { background: rgba(237,75,0,.16); color: var(--accent); }
.annot-color { width: 18px; height: 18px; border-radius: 99px; border: 2px solid rgba(var(--rmp),.3); cursor: pointer; }
.annot-color.active { border-color: var(--c-text); box-shadow: 0 0 0 2px var(--accent); }
.composer-input { width: 100%; min-height: 64px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 11px; padding: 10px 12px; color: var(--c-text); font-size: 13.5px; line-height: 1.5; resize: none; outline: none; }
.composer-input:focus { border-color: rgba(237,75,0,.5); }
.composer-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 9px; }

/* inspector info sections */
.insp-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(var(--rmp),.07); }
.insp-section:last-child { border-bottom: none; }
.insp-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 11px; display: flex; align-items: center; gap: 7px; }
.ai-cap { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: #ff8a5c; background: rgba(237,75,0,.12); padding: 2px 7px; border-radius: 99px; letter-spacing: 0; text-transform: none; }
.field-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.field-row .k { font-size: 13px; color: var(--fg-2); }
.field-row .v { font-size: 13px; color: var(--c-text); font-weight: 500; }
.select-mini { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 8px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); font-size: 12.5px; color: var(--c-text); position: relative; }
.select-mini:hover { background: rgba(var(--rmp),.08); }
.stars { display: inline-flex; gap: 2px; color: #F0A020; }
.stars .off { color: rgba(var(--rmp),.2); }
.smart-summary { font-size: 13.5px; color: var(--fg-1); line-height: 1.55; background: rgba(var(--rmp),.03); border: 1px solid rgba(var(--rmp),.07); border-radius: 11px; padding: 12px; }
.smart-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.loc-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.08); }
.loc-card .ic { width: 30px; height: 30px; border-radius: 8px; background: rgba(237,75,0,.14); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }

/* versions */
.ver-list { display: flex; flex-direction: column; gap: 8px; }
.ver-item { display: flex; align-items: center; gap: 11px; padding: 10px; border-radius: 11px; border: 1px solid rgba(var(--rmp),.08); background: rgba(var(--rmp),.03); transition: .14s; cursor: pointer; }
.ver-item:hover { background: rgba(var(--rmp),.06); }
.ver-item.current { border-color: rgba(237,75,0,.4); background: rgba(237,75,0,.06); }
.ver-item .vthumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--c-thumb); }
.ver-item .vmeta { flex: 1; min-width: 0; }
.ver-item .vtop { display: flex; align-items: center; gap: 7px; }
.ver-item .vname { font-size: 13px; font-weight: 600; color: var(--c-text); }
.ver-item .vsub { font-size: 11px; color: var(--fg-3); margin-top: 2px; }

/* ============================================================ KANBAN (S5) */
.kanban { display: flex; gap: 14px; padding: 20px 22px 26px; overflow-x: auto; height: 100%; align-items: stretch; }
.kcol { width: 268px; flex-shrink: 0; display: flex; flex-direction: column; height: 100%; min-height: 240px; border-radius: 12px; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 12px; }
.kcol-head .dot { width: 9px; height: 9px; border-radius: 99px; }
.kcol-head .ttl { font-size: 13px; font-weight: 600; color: var(--c-text); }
.kcol-head .cnt { font-size: 11px; font-weight: 600; color: var(--fg-3); background: rgba(var(--rmp),.07); padding: 1px 7px; border-radius: 99px; }
.kcol-head .add { margin-left: auto; color: var(--fg-3); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; }
.kcol-head .add:hover { background: rgba(var(--rmp),.08); color: var(--c-text); }
.kcol.approved { background: rgba(30,180,120,.05); border-radius: 14px; padding: 4px; }
.kcol.approved .kcol-head { padding: 8px 8px 12px; }
.kcol-body { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 2px 2px 8px; flex: 1 1 auto; min-height: 120px; }
.kcard {
  background: var(--c-elev); border: 1px solid rgba(var(--rmp),.08); border-radius: 12px;
  padding: 9px; cursor: grab; transition: transform .14s, box-shadow .14s, border-color .14s;
}
.kcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.4); border-color: rgba(var(--rmp),.16); }
.kcard:active { cursor: grabbing; }
.kcard-thumb { aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--c-thumb); margin-bottom: 9px; position: relative; }
.kcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.kcard-name { font-size: 12.5px; font-weight: 500; color: var(--c-text); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard-foot { display: flex; align-items: center; gap: 8px; }
.kcard-foot .ver-badge { font-size: 10px; font-weight: 700; color: var(--fg-3); background: rgba(var(--rmp),.07); padding: 1px 6px; border-radius: 5px; }
.kcard-foot .cmt { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--fg-3); }
.kcard-foot .spacer { flex: 1; }

/* ======================================================= COLLECTION (S7) */
.collection-wrap { display: flex; height: 100%; min-height: 0; }
.collection-col { flex: 1; min-width: 0; overflow-y: auto; }
.collection-col.builder { max-width: 460px; border-right: 1px solid rgba(var(--rmp),.07); flex-shrink: 0; background: var(--c-surface); }
.builder-inner { padding: 24px 26px 32px; }
.builder-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--c-text); margin-bottom: 4px; }
.builder-sub { font-size: 12.5px; color: var(--fg-3); margin-bottom: 20px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--fg-2); margin-bottom: 7px; display: block; }
.form-input, .form-textarea { width: 100%; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 10px; padding: 10px 12px; color: var(--c-text); font-size: 13.5px; outline: none; transition: .14s; }
.form-input:focus, .form-textarea:focus { border-color: rgba(237,75,0,.5); background: rgba(var(--rmp),.06); }
.form-textarea { min-height: 70px; resize: vertical; line-height: 1.5; }
.form-group { margin-bottom: 18px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.toggle-row .tl { font-size: 13.5px; color: var(--c-text); font-weight: 500; }
.toggle-row .td { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.switch { width: 40px; height: 23px; border-radius: 99px; background: rgba(var(--rmp),.15); position: relative; transition: .18s; flex-shrink: 0; }
.switch.on { background: var(--accent); }
.switch .knob { position: absolute; top: 2.5px; left: 2.5px; width: 18px; height: 18px; border-radius: 99px; background: var(--c-text); transition: transform .18s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on .knob { transform: translateX(17px); }
.field-builder-row { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid rgba(var(--rmp),.09); border-radius: 10px; background: rgba(var(--rmp),.03); margin-bottom: 8px; }
.field-builder-row .grip { color: var(--fg-3); cursor: grab; }
.field-builder-row .fname { font-size: 13px; color: var(--c-text); font-weight: 500; flex: 1; }
.field-builder-row .ftype { font-size: 11px; color: var(--fg-3); }
.add-field-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; padding: 11px; border: 1px dashed rgba(var(--rmp),.18); border-radius: 10px; color: var(--fg-2); font-size: 13px; font-weight: 500; transition: .14s; }
.add-field-btn:hover { border-color: rgba(237,75,0,.5); color: var(--c-text); }
.public-link { display: flex; align-items: center; gap: 10px; padding: 11px 12px; background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.1); border-radius: 11px; }
.public-link .url { flex: 1; font-size: 12.5px; color: var(--fg-2); font-family: var(--font-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section-divider { height: 1px; background: rgba(var(--rmp),.07); margin: 20px 0; }

/* submitter (light) */
.submitter { flex: 1; min-width: 0; overflow-y: auto; background: #fafafa; color: #1a1a1a; display: flex; }
.submitter-inner { margin: auto; width: 100%; max-width: 760px; padding: 44px 40px; display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.sub-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 28px; }
.sub-brand .m { width: 26px; height: 26px; border-radius: 7px; background: #ED4B00; color: #fff; display: grid; place-items: center; font-family: var(--font-serif); font-weight: 700; font-size: 15px; }
.sub-brand .t { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.sub-title { font-size: 26px; font-weight: 600; color: #0b0b0c; letter-spacing: -.02em; margin: 0 0 8px; }
.sub-desc { font-size: 13.5px; color: #565656; line-height: 1.55; margin-bottom: 26px; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; align-items: center; gap: 13px; padding: 12px 4px; }
.step .num { width: 28px; height: 28px; border-radius: 99px; background: #ED4B00; color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.step.done .num { background: #1EB478; }
.step.todo .num { background: #e7e7e7; color: #9a9a9a; }
.step .stx { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.step .stx small { display: block; font-size: 12px; color: #888; font-weight: 400; margin-top: 1px; }
.step-line { width: 1px; height: 14px; background: #e0e0e0; margin-left: 18px; }
.dropzone { border: 2px dashed #d4d4d4; border-radius: 16px; background: #fff; padding: 40px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; transition: .16s; }
.dropzone:hover { border-color: #ED4B00; background: #fffaf7; }
.dropzone .dz-ic { width: 54px; height: 54px; border-radius: 99px; background: #fff0e9; color: #ED4B00; display: grid; place-items: center; }
.dropzone .dz-title { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.dropzone .dz-sub { font-size: 12.5px; color: #888; }
.dz-actions { display: flex; gap: 9px; }
.btn-light { background: #ED4B00; color: #fff; }
.btn-light:hover { background: #d44300; }
.btn-light-ghost { background: #fff; color: #1a1a1a; border: 1px solid #ddd; }
.btn-light-ghost:hover { background: #f4f4f4; }
.upload-row { display: flex; align-items: center; gap: 11px; margin-top: 14px; padding: 11px 13px; border: 1px solid #ececec; border-radius: 11px; background: #fff; }
.upload-row .uic { width: 34px; height: 34px; border-radius: 8px; background: #f0f0f0; display: grid; place-items: center; color: #888; flex-shrink: 0; overflow: hidden; }
.upload-row .um { flex: 1; min-width: 0; }
.upload-row .un { font-size: 12.5px; font-weight: 500; color: #1a1a1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-row .ubar { height: 4px; border-radius: 99px; background: #eee; margin-top: 6px; overflow: hidden; }
.upload-row .ufill { height: 100%; background: #ED4B00; border-radius: 99px; }
.upload-row .upct { font-size: 11px; color: #888; flex-shrink: 0; }
.sub-foot { grid-column: 1 / -1; text-align: center; font-size: 11.5px; color: #9a9a9a; margin-top: 8px; }
.sub-foot a { color: #565656; text-decoration: underline; }
.coll-toggle { display: inline-flex; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 9px; padding: 2px; }
.coll-toggle button { padding: 6px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 500; color: var(--fg-3); transition: .14s; }
.coll-toggle button.active { background: rgba(var(--rmp),.1); color: var(--c-text); }

/* ============================================================ PEOPLE (S8) */
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.face-card { cursor: pointer; text-align: center; }
.face-thumb { width: 100%; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--c-thumb); border: 1px solid rgba(var(--rmp),.07); transition: .18s; position: relative; }
.face-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.face-card:hover .face-thumb { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.4); border-color: rgba(var(--rmp),.16); }
.face-card:hover .face-thumb img { transform: scale(1.05); }
.face-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); margin-top: 11px; }
.face-role { font-size: 11.5px; color: var(--fg-3); margin-top: 1px; }
.face-count { font-size: 11.5px; color: var(--fg-3); margin-top: 1px; }
.name-input { width: 100%; margin-top: 9px; height: 32px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.12); border-radius: 8px; padding: 0 10px; color: var(--c-text); font-size: 12.5px; outline: none; text-align: center; }
.name-input:focus { border-color: rgba(237,75,0,.5); }
.name-input::placeholder { color: var(--fg-3); }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 20px; gap: 6px; }
.empty-ill { width: 96px; height: 96px; border-radius: 26px; background: linear-gradient(150deg, rgba(237,75,0,.18), rgba(2,6,111,.2)); border: 1px solid rgba(var(--rmp),.08); display: grid; place-items: center; color: var(--fg-2); margin-bottom: 14px; }
.empty-title { font-size: 17px; font-weight: 600; color: var(--c-text); }
.empty-sub { font-size: 13px; color: var(--fg-3); max-width: 320px; line-height: 1.5; }

/* mini checkout (annotation target for S3) — rendered UI screenshot */
.checkout-shot { width: 360px; background: #fff; color: #1a1a1a; border-radius: 12px; overflow: hidden; font-size: 13px; }
.co-bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #eee; }
.co-bar .co-logo { font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.co-step { font-size: 11px; color: #888; margin-left: auto; }
.co-sec { padding: 14px; border-bottom: 1px solid #f0f0f0; }
.co-sec h5 { margin: 0 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #888; }
.co-item { display: flex; gap: 11px; align-items: center; }
.co-item .ci-img { width: 46px; height: 46px; border-radius: 8px; background: #efe9e2; display: grid; place-items: center; color: #b59; overflow: hidden; flex-shrink: 0; }
.co-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.co-item .ci-name { font-size: 12.5px; font-weight: 600; }
.co-item .ci-meta { font-size: 11px; color: #999; }
.co-item .ci-price { margin-left: auto; font-weight: 600; font-size: 12.5px; }
.co-field { height: 34px; border: 1px solid #e2e2e2; border-radius: 8px; margin-bottom: 8px; display: flex; align-items: center; padding: 0 11px; color: #999; font-size: 12px; }
.co-pay-btn { width: 100%; height: 40px; border-radius: 9px; background: #1a1a1a; color: #fff; font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.co-total { display: flex; justify-content: space-between; font-weight: 700; font-size: 14px; margin-bottom: 12px; }

/* misc */
.muted { color: var(--fg-3); }
.spacer { flex: 1; }
.divider-y { width: 1px; height: 22px; background: rgba(var(--rmp),.1); }
[data-tooltip] { position: relative; }


/* ===== theme-invariant whites (text/rings on accent or photography) ===== */
.ws-mark, .nav-badge, .notif-kind, .sbc-dots, .avatar,
.btn-primary, .btn-navy, .thumb-badge, .thumb-check, .row-check,
.processing-overlay, .comment-head .pin-no { color: #fff; }
.pin, .film-marker { border-color: #fff; }
.spinner { border-top-color: #fff; }

/* light-mode refinements */
.dark .modal-backdrop { background: rgba(6,6,8,.72); }
:root:not(.dark) .modal-backdrop { background: rgba(20,26,48,.42); }
:root:not(.dark) .topbar-search,
:root:not(.dark) .btn-ghost,
:root:not(.dark) .sortbtn,
:root:not(.dark) .filterpill,
:root:not(.dark) .viewtoggle { box-shadow: var(--shadow-sm); }
:root:not(.dark) .main { box-shadow: 0 1px 3px rgba(2,6,111,.06); }
:root:not(.dark) .asset-thumb,
:root:not(.dark) .subboard-card,
:root:not(.dark) .kcard,
:root:not(.dark) .face-thumb { box-shadow: 0 1px 2px rgba(2,6,111,.05); }

/* light-mode active pills get a raised white chip */
:root:not(.dark) .coll-toggle button.active,
:root:not(.dark) .viewtoggle button.active { background: #fff; box-shadow: 0 1px 2px rgba(2,6,111,.14); }
:root:not(.dark) .coll-toggle,
:root:not(.dark) .viewtoggle { background: rgba(2,6,111,.05); }
/* keep accent-tinted active pills (filters/people) on their orange tint — handled by .on/.active accent rules */

/* light-mode: soften floating-element shadows (dark mode tunes them deep) */
:root:not(.dark) .modal { box-shadow: 0 24px 70px rgba(2,6,111,.18), 0 2px 8px rgba(2,6,111,.08); }
:root:not(.dark) .notif-pop { box-shadow: 0 24px 60px rgba(2,6,111,.18); }
:root:not(.dark) .dropdown { box-shadow: 0 14px 38px rgba(2,6,111,.16); }
:root:not(.dark) .toast { box-shadow: 0 14px 34px rgba(2,6,111,.2); }
:root:not(.dark) .stage-frame { box-shadow: 0 20px 50px rgba(2,6,111,.16); }
:root:not(.dark) .asset-card:hover .asset-thumb,
:root:not(.dark) .subboard-card:hover,
:root:not(.dark) .kcard:hover,
:root:not(.dark) .face-card:hover .face-thumb { box-shadow: 0 14px 30px rgba(2,6,111,.13); }
/* video stage scrim is too dark over a light app — lighten the vignette tint */
:root:not(.dark) .stage { background: radial-gradient(120% 100% at 50% 0%, #ffffff, #eef1f5); }

/* ===================================================== CENTERED DIALOG (invite) */
.dialog {
  position: fixed; z-index: 101; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 580px; max-width: calc(100vw - 36px); max-height: calc(100vh - 56px);
  background: var(--c-modal); border: 1px solid rgba(var(--rmp),.08); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: modalin .22s var(--ease);
}
:root:not(.dark) .dialog { box-shadow: 0 24px 70px rgba(2,6,111,.2), 0 2px 8px rgba(2,6,111,.08); }
.dialog-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid rgba(var(--rmp),.07); flex-shrink: 0; }
.dialog-title { font-size: 16px; font-weight: 600; color: var(--c-text); }
.dialog-sub { font-size: 12px; color: var(--fg-3); margin-top: 2px; }
.dialog-body { flex: 1; overflow-y: auto; padding: 18px; }
.dialog-foot { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid rgba(var(--rmp),.07); flex-shrink: 0; }

.dlg-section { margin-bottom: 20px; }
.dlg-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 9px; }

/* invite-by-email entry */
.invite-row { display: flex; gap: 8px; align-items: flex-start; }
.invite-entry { flex: 1; min-height: 42px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 8px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 11px; cursor: text; transition: .14s; }
.invite-entry:focus-within { border-color: rgba(237,75,0,.5); background: rgba(var(--rmp),.06); }
.invite-entry input { flex: 1; min-width: 130px; background: none; border: none; outline: none; color: var(--c-text); font-size: 13.5px; padding: 5px 4px; }
.invite-entry input::placeholder { color: var(--fg-3); }
.email-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px 4px 10px; border-radius: 99px; background: rgba(var(--rmp),.09); font-size: 12.5px; font-weight: 500; color: var(--c-text); }
.email-chip .ec-x { display: grid; place-items: center; opacity: .55; }
.email-chip .ec-x:hover { opacity: 1; }
.email-chip.bad { background: rgba(220,60,80,.16); color: #ff7d92; }
.invite-scope-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 11px; }
.scope-left { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg-2); }

/* invite link card */
.invite-link-card { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border: 1px solid rgba(var(--rmp),.1); border-radius: 12px; background: rgba(var(--rmp),.03); }
.ilc-ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(237,75,0,.14); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ilc-meta { flex: 1; min-width: 0; }
.ilc-title { font-size: 12.5px; font-weight: 600; color: var(--c-text); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ilc-sub { font-size: 11.5px; color: var(--fg-3); margin-top: 2px; }

/* member / pending rows */
.member-list { display: flex; flex-direction: column; }
.member-row { display: flex; align-items: center; gap: 11px; padding: 9px 2px; border-bottom: 1px solid rgba(var(--rmp),.06); }
.member-row:last-child { border-bottom: none; }
.member-meta { flex: 1; min-width: 0; }
.member-name { font-size: 13.5px; font-weight: 500; color: var(--c-text); display: flex; align-items: center; gap: 7px; }
.member-email { font-size: 12px; color: var(--fg-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pending-av { width: 30px; height: 30px; border-radius: 99px; border: 1.5px dashed rgba(var(--rmp),.28); display: grid; place-items: center; color: var(--fg-3); flex-shrink: 0; }
.you-chip { font-size: 10px; font-weight: 600; color: var(--fg-3); background: rgba(var(--rmp),.09); padding: 1px 7px; border-radius: 99px; }
.row-x { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--fg-3); transition: .14s; flex-shrink: 0; }
.row-x:hover { background: rgba(220,60,80,.12); color: #ff7d92; }

/* =============================================== WORKSPACE SETTINGS SCREEN */
.set-wrap { max-width: 720px; }
.set-section { border: 1px solid rgba(var(--rmp),.08); border-radius: 16px; padding: 22px; margin-bottom: 18px; background: var(--c-elev); }
:root:not(.dark) .set-section { box-shadow: 0 1px 2px rgba(2,6,111,.05); }
.set-sec-title { font-size: 15px; font-weight: 600; color: var(--c-text); margin: 0 0 4px; }
.set-sec-sub { font-size: 12.5px; color: var(--fg-3); line-height: 1.5; margin-bottom: 18px; }
.set-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.logo-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.logo-big { width: 64px; height: 64px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-serif); font-weight: 700; font-size: 32px; line-height: 1; }
.logo-actions { display: flex; gap: 8px; }
.input-affix { display: flex; align-items: center; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 10px; overflow: hidden; transition: .14s; }
.input-affix:focus-within { border-color: rgba(237,75,0,.5); background: rgba(var(--rmp),.06); }
.input-affix .pre { padding: 0 2px 0 12px; font-size: 13.5px; color: var(--fg-3); white-space: nowrap; }
.input-affix input { flex: 1; min-width: 0; background: none; border: none; outline: none; padding: 10px 12px 10px 1px; color: var(--c-text); font-size: 13.5px; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.color-sw { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; border: 1px solid rgba(var(--rmp),.12); transition: transform .12s; }
.color-sw:hover { transform: scale(1.08); }
.color-sw.on { box-shadow: 0 0 0 2px var(--c-surface), 0 0 0 4px currentColor; }
.ws-prev-list { display: flex; flex-direction: column; gap: 4px; border: 1px solid rgba(var(--rmp),.08); border-radius: 12px; padding: 6px; background: rgba(var(--rmp),.02); }
.ws-prev-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 10px; }
.ws-prev-row.active { background: rgba(var(--rmp),.06); }
.wpr-name { font-size: 13.5px; font-weight: 600; color: var(--c-text); display: flex; align-items: center; gap: 8px; }
.wpr-sub { font-size: 11.5px; color: var(--fg-3); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; }
.set-row:first-of-type { padding-top: 0; }

/* ============================================================= APP ADDITIONS (wired platform) */

/* ── auth + splash ─────────────────────────────────────────── */
.auth-wrap { position: fixed; inset: 0; display: grid; place-items: center; background: var(--c-bg); }
.auth-card { width: 360px; max-width: 92vw; background: var(--c-surface); border: 1px solid rgba(var(--rmp),.1); border-radius: 16px; padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.auth-logo { width: 40px; height: 40px; border-radius: 10px; background: #ED4B00; color: #fff; font-family: 'Lora', Georgia, serif; font-weight: 700; font-size: 22px; display: grid; place-items: center; }
.auth-logo.big { width: 64px; height: 64px; font-size: 34px; border-radius: 16px; }
.auth-title { font-weight: 700; font-size: 18px; color: var(--c-text); font-family: 'Lora', Georgia, serif; }
.auth-sub { font-size: 12px; color: var(--fg-3); }
.auth-tabs { display: flex; gap: 4px; background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.1); border-radius: 10px; padding: 4px; }
.auth-tabs button { flex: 1; height: 32px; border-radius: 7px; color: var(--fg-3); font-size: 13px; font-weight: 500; background: transparent; }
.auth-tabs button.on { background: rgba(var(--rmp),.09); color: var(--c-text); }
.auth-field { display: flex; flex-direction: column; gap: 5px; }
.auth-field span { font-size: 11px; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; }
.auth-field input { height: 38px; border-radius: 9px; background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.14); color: var(--c-text); padding: 0 12px; font-size: 14px; }
.auth-field input:focus { outline: none; border-color: #ED4B00; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-magic { background: transparent; color: var(--fg-3); font-size: 12px; text-decoration: underline; margin-top: 2px; }
.auth-err { background: rgba(220,60,80,.12); border: 1px solid rgba(220,60,80,.4); color: #ff7d92; font-size: 12.5px; border-radius: 8px; padding: 8px 10px; }
.auth-msg { background: rgba(30,180,120,.12); border: 1px solid rgba(30,180,120,.4); color: #2aa97a; font-size: 12.5px; border-radius: 8px; padding: 8px 10px; }
.splash { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.splash-text { color: var(--fg-3); font-size: 13px; }

/* ── data-layer helpers (thumbnails, processing, versions, pins, empties) ── */
.thumb-ph { position:absolute; inset:0; display:grid; place-items:center; background:var(--c-thumb); color:var(--fg-3); font-size:11px; font-weight:700; letter-spacing:.05em; }
.stage-ph { width:100%; height:100%; display:grid; place-items:center; color:var(--fg-3); font-size:13px; min-height:240px; }
.video-el { max-width:100%; max-height:100%; width:100%; border-radius:8px; background:#000; }
.ver-actions { display:flex; gap:10px; margin-top:6px; }
.ver-actions button { font-size:11px; color:var(--accent); background:none; border:none; cursor:pointer; padding:0; }
.ver-actions button:hover { text-decoration:underline; }
.pin-hint { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; color:#c2410c; background:rgba(237,75,0,.12); border-radius:7px; padding:5px 9px; margin-bottom:8px; }
.dark .pin-hint { color:#ffb38a; }
.pin-hint button { background:none; border:none; color:inherit; text-decoration:underline; cursor:pointer; font-size:11px; margin-left:4px; }
.pin.pending { background:rgba(237,75,0,.5); border:2px dashed #fff; }
.insp-empty { color:var(--fg-3); font-size:13px; padding:14px 2px; }
.rail-empty { color:var(--fg-3); font-size:12px; padding:8px 12px; }
.notif-empty { color:var(--fg-3); font-size:13px; padding:30px 16px; text-align:center; }
.kcol-empty { color:var(--fg-3); font-size:12px; padding:14px; text-align:center; border:1px dashed rgba(var(--rmp),.08); border-radius:8px; }
.invite-ic { width:36px; height:36px; border-radius:9px; background:rgba(var(--rmp),.06); display:grid; place-items:center; color:var(--fg-3); flex-shrink:0; }
.row-thumb { width:40px; height:40px; border-radius:8px; overflow:hidden; flex-shrink:0; background:var(--c-thumb); }
.row-thumb img { width:100%; height:100%; object-fit:cover; }

/* ── in-app dialogs (prompt / confirm / pick) ──────────────── */
.dlg-backdrop { position:fixed; inset:0; background:rgba(0,0,0,.45); display:grid; place-items:center; z-index:200; backdrop-filter:blur(2px); }
.dlg { width:380px; max-width:92vw; background:var(--c-modal); border:1px solid rgba(var(--rmp),.12); border-radius:14px; padding:20px; box-shadow:0 24px 60px rgba(0,0,0,.3); }
.dlg-title { font-size:16px; font-weight:600; color:var(--c-text); }
.dlg-msg { font-size:13.5px; color:var(--fg-2); margin-top:8px; line-height:1.5; }
.dlg-input { width:100%; height:40px; border-radius:9px; background:rgba(var(--rmp),.04); border:1px solid rgba(var(--rmp),.14); color:var(--c-text); padding:0 12px; font-size:14px; font-family:inherit; }
.dlg-input:focus { outline:none; border-color:var(--accent); }
.dlg-actions { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.dlg-picklist { margin-top: 14px; max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.dlg-pick { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent; color: var(--fg-1); border: none; border-radius: 8px; padding: 9px 12px; font-size: 13.5px; cursor: pointer; }
.dlg-pick:hover { background: rgba(var(--rmp),.06); color: var(--c-text); }
.btn-danger { background:#dc3c50; color:#fff; }
.btn-danger:hover { background:#c52f43; }

/* ── drag-drop upload + pagination ─────────────────────────── */
.drop-overlay { position:absolute; inset:0; z-index:20; background:rgba(237,75,0,.10); border:2px dashed var(--accent); border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; color:#c2410c; font-size:14px; font-weight:600; pointer-events:none; backdrop-filter:blur(1px); }
.dark .drop-overlay { color:#ff8a5c; }
.drop-overlay.busy { background:rgba(0,0,0,.55); color:#fff; }
.load-more-row { display:flex; justify-content:center; padding:22px 0 6px; }

/* ── kanban drag-and-drop ──────────────────────────────────── */
.kcard[draggable=true] { cursor:grab; }
.kcard.dragging { opacity:.4; }
.kcol.drop-target { outline:2px dashed var(--accent); outline-offset:-2px; background:rgba(237,75,0,.06); border-radius:12px; }

/* ── annotation drawing surface ────────────────────────────── */
.stage-frame.drawable { cursor: crosshair; position: relative; }
.stage-frame.drawable img { user-select: none; -webkit-user-drag: none; }
.annot-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-frame .pin { pointer-events: none; }

/* ── responsive pass (internal app surfaces) ───────────────── */
@media (max-width: 980px) { .rail { width: 210px; } }
@media (max-width: 820px) {
  .modal { inset: 0; border-radius: 0; }
  .modal-body { flex-direction: column; overflow-y: auto; }
  .inspector { width: 100% !important; max-height: none; border-left: none; border-top: 1px solid rgba(var(--rmp),.08); }
  .stage { min-height: 50vh; }
  .collection-wrap { flex-direction: column; }
  .collection-col.builder, .submitter { width: 100% !important; }
  .invite-row { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .rail { position: fixed; z-index: 60; height: 100%; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.5); }
  .rail.open { transform: none; }
  .topbar-search { max-width: 46vw; }
}

/* ============================================================= CONTENT REQUEST TRACKER */
.req-screen { display: flex; flex-direction: column; gap: 12px; }
.req-intro { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--fg-2); background: rgba(var(--rmp),.03); border: 1px solid rgba(var(--rmp),.07); border-radius: 10px; padding: 9px 12px; }
.req-empty-state { color: var(--fg-3); font-size: 13px; padding: 18px 4px; }

.req-wrap { overflow: auto; max-height: calc(100vh - 250px); border: 1px solid rgba(var(--rmp),.08); border-radius: 14px; background: var(--c-surface); }
:root:not(.dark) .req-wrap { box-shadow: 0 1px 2px rgba(2,6,111,.05); }
.req-table { min-width: max-content; font-size: 13px; }
.req-row { display: grid; align-items: stretch; border-bottom: 1px solid rgba(var(--rmp),.06); }
.req-row:last-child { border-bottom: none; }
.req-row > span, .req-row > div { min-width: 0; padding: 8px 10px; display: flex; align-items: center; border-right: 1px solid rgba(var(--rmp),.05); }

/* header */
.req-head { position: sticky; top: 0; z-index: 6; background: var(--c-elev2); }
.req-head > span, .req-head > div { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); height: 40px; }
.req-head .req-c-idx, .req-head .req-c-title { z-index: 7; background: var(--c-elev2); }

/* sticky left columns */
.req-c-idx { position: sticky; left: 0; z-index: 4; background: var(--c-surface); justify-content: center; color: var(--fg-3); font-size: 11.5px; }
.req-c-title { position: sticky; left: 36px; z-index: 4; background: var(--c-surface); gap: 6px; }
.req-row:hover .req-c-idx, .req-row:hover .req-c-title { background: var(--c-elev2); }
.req-row:hover { background: rgba(var(--rmp),.025); }
.req-title-txt { font-weight: 600; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; cursor: text; }
.req-expand { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--fg-3); opacity: 0; flex-shrink: 0; transition: .12s; }
.req-c-title:hover .req-expand { opacity: 1; }
.req-expand:hover { background: rgba(var(--rmp),.1); color: var(--c-text); }
.req-c-end { justify-content: center; }
.req-c-end .row-x { opacity: 0; }
.req-row:hover .req-c-end .row-x { opacity: 1; }

/* cells */
.req-cell { cursor: pointer; min-height: 52px; }
.req-text { width: 100%; color: var(--fg-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.req-empty { color: var(--fg-3); font-size: 12.5px; }
.req-input { width: 100%; background: var(--c-pop); border: 1.5px solid var(--accent); border-radius: 7px; padding: 6px 8px; font-size: 13px; font-family: inherit; color: var(--c-text); outline: none; }
.req-textarea { resize: vertical; min-height: 56px; line-height: 1.4; }
.req-link-cell { display: flex; align-items: center; gap: 6px; }
.req-link { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent); background: rgba(237,75,0,.1); padding: 3px 9px; border-radius: 99px; font-weight: 500; }
.req-edit-dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--fg-3); }
.req-edit-dot:hover { background: rgba(var(--rmp),.1); color: var(--c-text); }
.req-date { font-size: 12.5px; color: var(--fg-1); }
.req-date.overdue { color: #ff7d92; font-weight: 600; }
.req-result { display: flex; align-items: center; gap: 8px; cursor: pointer; min-width: 0; }
.req-result .row-thumb { width: 34px; height: 34px; }
.req-result-name { font-size: 12px; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.req-attach { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--fg-3); border: 1px dashed rgba(var(--rmp),.2); border-radius: 8px; padding: 5px 10px; }
.req-attach:hover:not(:disabled) { color: var(--accent); border-color: rgba(237,75,0,.5); }
.req-attach:disabled { opacity: .5; cursor: default; }
.req-cell-status, .req-cell-output { overflow: visible; }

/* quick-add row */
.req-add { background: rgba(var(--rmp),.02); }
.req-add .req-c-idx, .req-add .req-c-title { background: rgba(var(--rmp),.02); }
.req-add-input { border: none; background: transparent; font-size: 13px; }
.req-add-input:focus { border: none; }

/* request kanban cards */
.req-kcard { cursor: pointer; }
.req-kcard-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.req-kcard-meta .req-date { display: inline-flex; align-items: center; gap: 3px; }
.req-kcard-brief { font-size: 12px; color: var(--fg-2); margin-top: 8px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.req-kcard-result { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 11.5px; font-weight: 500; color: var(--accent); background: rgba(237,75,0,.1); border-radius: 7px; padding: 5px 10px; }
.req-kcard-noresult { margin-top: 10px; font-size: 11px; color: var(--fg-3); font-style: italic; }

/* request tracker — active cell, toolbar, result drop */
.req-wrap:focus { outline: none; }
.req-cell.active, .req-c-title.active { box-shadow: inset 0 0 0 2px var(--accent); border-radius: 4px; }
.req-toolbar { display: inline-flex; align-items: center; gap: 8px; }
.req-toolbar .btn .icon, .req-toolbar .btn svg { flex-shrink: 0; }
.req-result-cell { display: flex; align-items: center; width: 100%; height: 100%; border-radius: 6px; }
.req-result-cell.drop { outline: 2px dashed var(--accent); outline-offset: -3px; background: rgba(237,75,0,.07); }

/* ============================================================= ONBOARDING */
.ob-backdrop { position: fixed; inset: 0; z-index: 300; background: transparent; }
.ob-spot { position: fixed; z-index: 301; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(4,6,30,.62), 0 0 0 2px var(--accent); pointer-events: none; transition: all .25s cubic-bezier(.4,0,.2,1); }
.dark .ob-spot { box-shadow: 0 0 0 9999px rgba(0,0,0,.68), 0 0 0 2px var(--accent); }
.ob-callout { position: fixed; z-index: 302; background: var(--c-modal); border: 1px solid rgba(var(--rmp),.12); border-radius: 14px; padding: 16px 16px 12px; box-shadow: 0 24px 60px rgba(2,6,111,.28); animation: obpop .22s var(--ease); }
.dark .ob-callout { box-shadow: 0 24px 60px rgba(0,0,0,.5); }
@keyframes obpop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.ob-step-n { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.ob-title { font-size: 16px; font-weight: 700; color: var(--c-text); margin: 4px 0 6px; font-family: 'Lora', Georgia, serif; }
.ob-body { font-size: 13px; color: var(--fg-2); line-height: 1.55; }
.ob-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.ob-dots { display: inline-flex; gap: 5px; }
.ob-dot { width: 6px; height: 6px; border-radius: 99px; background: rgba(var(--rmp),.2); transition: .15s; }
.ob-dot.on { background: var(--accent); width: 16px; }
.ob-skip { background: none; border: none; color: var(--fg-3); font-size: 12.5px; cursor: pointer; padding: 6px 8px; }
.ob-skip:hover { color: var(--c-text); }

.ob-checklist { position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 300px; background: var(--c-modal); border: 1px solid rgba(var(--rmp),.12); border-radius: 16px; padding: 16px; box-shadow: 0 18px 50px rgba(2,6,111,.2); animation: obpop .25s var(--ease); }
.dark .ob-checklist { box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.ob-cl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ob-cl-title { font-size: 14.5px; font-weight: 600; color: var(--c-text); }
.ob-cl-sub { font-size: 11.5px; color: var(--fg-3); margin-top: 1px; }
.ob-cl-bar { height: 5px; border-radius: 99px; background: rgba(var(--rmp),.1); margin: 12px 0; overflow: hidden; }
.ob-cl-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s var(--ease); }
.ob-cl-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: none; padding: 8px 6px; border-radius: 9px; cursor: pointer; color: var(--fg-1); font-size: 13px; }
.ob-cl-item:hover { background: rgba(var(--rmp),.05); }
.ob-cl-item.done { color: var(--fg-3); cursor: default; }
.ob-cl-item.done .ob-cl-label { text-decoration: line-through; }
.ob-check { width: 19px; height: 19px; border-radius: 99px; border: 1.5px solid rgba(var(--rmp),.25); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.ob-cl-item.done .ob-check { background: var(--accent); border-color: var(--accent); }
.ob-cl-tour { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; width: 100%; justify-content: center; background: rgba(237,75,0,.1); color: var(--accent); border: none; border-radius: 9px; padding: 9px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.ob-cl-tour:hover { background: rgba(237,75,0,.16); }

/* asset kanban card → linked request label */
.kcard-req { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; max-width: 100%; font-size: 11px; font-weight: 500; color: var(--accent); background: rgba(237,75,0,.1); border-radius: 7px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcard-req svg { flex-shrink: 0; }

/* sidebar storage card (replaces plan/credits) */
.storage-card { background: rgba(var(--rmp),.04); border: 1px solid rgba(var(--rmp),.08); border-radius: 11px; padding: 11px 12px; margin: 0 2px 8px; }
.storage-card .uc-title { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--c-text); margin-bottom: 6px; }
.storage-card .uc-sub { font-size: 11px; color: var(--fg-3); display: flex; justify-content: space-between; align-items: center; }

/* workspace switcher — search + scroll for many workspaces */
.ws-search { display: flex; align-items: center; gap: 7px; margin: 2px 8px 6px; padding: 6px 9px; background: rgba(var(--rmp),.05); border: 1px solid rgba(var(--rmp),.1); border-radius: 8px; color: var(--fg-3); }
.ws-search input { flex: 1; background: none; border: none; outline: none; color: var(--c-text); font-size: 12.5px; }
.ws-switch-list { max-height: 244px; overflow-y: auto; }

/* review modal — versions sidebar */
.btn.btn-ghost.on { background: rgba(237,75,0,.12); color: var(--accent); }
.verx-side { width: 250px; flex-shrink: 0; border-right: 1px solid rgba(var(--rmp),.08); background: var(--c-surface); display: flex; flex-direction: column; }
.verx-head { display: flex; align-items: center; gap: 4px; padding: 14px 12px 10px; border-bottom: 1px solid rgba(var(--rmp),.07); }
.verx-title { font-size: 14px; font-weight: 600; color: var(--c-text); }
.verx-list { flex: 1; overflow-y: auto; padding: 10px; }
.verx-group { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); margin: 6px 2px 8px; }
.verx-item { display: flex; gap: 10px; padding: 8px; border-radius: 10px; border: 1px solid transparent; margin-bottom: 6px; }
.verx-item.current { border-color: rgba(237,75,0,.4); background: rgba(237,75,0,.05); }
.verx-thumb { width: 46px; height: 46px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--c-thumb); }
.verx-thumb img { width: 100%; height: 100%; object-fit: cover; }
.verx-meta { flex: 1; min-width: 0; }
.verx-top { display: flex; align-items: center; gap: 6px; }
.verx-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.verx-badge { font-size: 9.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; }
.verx-badge.cur { background: rgba(38,163,253,.16); color: #2f9bea; }
.verx-badge.appr { background: rgba(30,180,120,.16); color: #1c9d6e; }
.verx-sub { font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.verx-add { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 4px 10px 12px; padding: 9px; border: 1px dashed rgba(var(--rmp),.2); border-radius: 10px; color: var(--fg-2); font-size: 12.5px; font-weight: 500; background: none; cursor: pointer; }
.verx-add:hover { color: var(--accent); border-color: rgba(237,75,0,.5); }
@media (max-width: 820px) { .verx-side { display: none; } }

/* ============================================================= UPLOAD TRAY (Drive-style) */
.uptray { position: fixed; right: 22px; bottom: 22px; z-index: 130; width: 320px; background: var(--c-modal); border: 1px solid rgba(var(--rmp),.12); border-radius: 14px; box-shadow: 0 18px 50px rgba(2,6,111,.2); overflow: hidden; animation: obpop .2s var(--ease); }
.dark .uptray { box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.uptray-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px; background: rgba(var(--rmp),.04); border-bottom: 1px solid rgba(var(--rmp),.07); }
.uptray-title { font-size: 13px; font-weight: 600; color: var(--c-text); }
.uptray-spin { width: 14px; height: 14px; border-radius: 99px; border: 2px solid rgba(var(--rmp),.2); border-top-color: var(--accent); animation: upspin .7s linear infinite; flex-shrink: 0; }
@keyframes upspin { to { transform: rotate(360deg); } }
.uptray-list { max-height: 260px; overflow-y: auto; padding: 6px; }
.uptray-item { display: flex; align-items: center; gap: 9px; padding: 7px 8px; border-radius: 8px; }
.uptray-item:hover { background: rgba(var(--rmp),.04); }
.uptray-ic { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; flex-shrink: 0; color: var(--fg-3); background: rgba(var(--rmp),.07); }
.uptray-ic.done { color: #fff; background: #1EB478; }
.uptray-ic.error { color: #fff; background: #DC3C50; }
.uptray-ic.uploading { color: var(--accent); }
.uptray-name { flex: 1; min-width: 0; font-size: 12.5px; color: var(--c-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uptray-bar { width: 54px; height: 4px; border-radius: 99px; background: rgba(var(--rmp),.12); overflow: hidden; flex-shrink: 0; }
.uptray-bar-fill { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 99px; animation: upbar 1.1s ease-in-out infinite; }
@keyframes upbar { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.uptray-errlbl { font-size: 11px; color: #ff7d92; font-weight: 600; flex-shrink: 0; }

/* Email notification preference segmented control (workspace settings) */
.email-seg { display: inline-flex; gap: 2px; background: rgba(var(--rmp),.06); border-radius: 9px; padding: 2px; }
.email-seg-btn { border: 0; background: transparent; color: var(--fg-3); font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 7px; cursor: pointer; transition: background .12s, color .12s; }
.email-seg-btn:hover:not(.on) { color: var(--c-text); }
.email-seg-btn.on { background: var(--c-surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.email-seg-btn:disabled { opacity: .5; cursor: default; }

/* Multi-stage approval — review modal pipeline */
.appr-pipe { display: flex; flex-direction: column; gap: 8px; }
.appr-stage { border: 1px solid rgba(var(--rmp),.09); border-radius: 10px; padding: 9px 11px; background: var(--c-surface); }
.appr-stage.cur { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.appr-stage.done { opacity: .85; }
.appr-stage-head { display: flex; align-items: center; gap: 7px; }
.appr-dot { width: 9px; height: 9px; border-radius: 99px; background: rgba(var(--rmp),.25); flex-shrink: 0; }
.appr-dot.ok { background: #1EB478; } .appr-dot.chg { background: #DC3C50; } .appr-dot.cur { background: var(--accent); }
.appr-name { font-size: 13px; font-weight: 600; color: var(--c-text); }
.appr-tag { font-size: 10px; font-weight: 600; color: #26A3FD; background: rgba(38,163,253,.12); padding: 1px 6px; border-radius: 5px; }
.appr-cur-tag { font-size: 10px; font-weight: 600; color: var(--accent); margin-left: auto; }
.appr-approvers { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.appr-appr { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--fg-3); background: rgba(var(--rmp),.05); padding: 2px 7px; border-radius: 6px; }
.appr-appr.approved { color: #1EB478; } .appr-appr.changes { color: #DC3C50; }
.appr-actions { display: flex; gap: 8px; margin-top: 10px; }

/* kanban current-stage badge */
.kcard-stage { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--accent); background: rgba(237,75,0,.1); padding: 2px 7px; border-radius: 6px; margin: 4px 0 0; max-width: 100%; }

/* board approval-stages editor dialog */
.stage-edit { border: 1px solid rgba(var(--rmp),.09); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.stage-edit-top { display: flex; align-items: center; gap: 9px; }
.stage-num { width: 22px; height: 22px; flex-shrink: 0; border-radius: 99px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.stage-edit-row { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.stage-mini-label { font-size: 11.5px; color: var(--fg-3); font-weight: 600; }
.stage-sel { flex: 0 0 auto; width: auto; padding: 6px 8px; }
.stage-due { width: 72px; padding: 6px 8px; }
.stage-approvers { margin-top: 10px; }
.stage-member-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.stage-member { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-text); background: var(--c-surface); border: 1px solid rgba(var(--rmp),.12); border-radius: 8px; padding: 4px 9px 4px 5px; cursor: pointer; }
.stage-member.on { border-color: var(--accent); background: rgba(237,75,0,.08); color: var(--accent); }
.stage-client-note { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--fg-3); margin-top: 10px; background: rgba(var(--rmp),.04); padding: 8px 10px; border-radius: 8px; }

/* Comment reactions */
.react-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin: 7px 0 2px; }
.react-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: rgba(var(--rmp),.06); border: 1px solid transparent; border-radius: 99px; padding: 1px 8px; cursor: pointer; }
.react-chip.mine { background: rgba(237,75,0,.12); border-color: var(--accent); }
.react-chip .rc-n { font-size: 11px; color: var(--fg-3); font-weight: 600; }
.react-chip.mine .rc-n { color: var(--accent); }
.react-add { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 99px; background: rgba(var(--rmp),.06); color: var(--fg-3); cursor: pointer; border: 0; }
.react-add:hover { color: var(--c-text); }
.react-pop { position: absolute; bottom: 28px; left: 0; z-index: 30; display: flex; gap: 2px; background: var(--c-pop); border: 1px solid rgba(var(--rmp),.12); border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.react-pop button { font-size: 16px; line-height: 1; padding: 4px 5px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; }
.react-pop button:hover { background: rgba(var(--rmp),.1); }

/* @mention autocomplete */
.mention-pop { position: absolute; bottom: 100%; left: 0; right: 0; margin-bottom: 6px; z-index: 30; background: var(--c-pop); border: 1px solid rgba(var(--rmp),.12); border-radius: 10px; padding: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-height: 200px; overflow-y: auto; }
.mention-opt { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; border: 0; background: transparent; color: var(--c-text); font-size: 13px; padding: 6px 8px; border-radius: 7px; cursor: pointer; }
.mention-opt:hover { background: rgba(var(--rmp),.08); }

/* Requests tracker — view bar (saved views, filter, sort, columns, fields) */
.req-viewbar { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 6px 0 10px; }
.view-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--fg-2); background: rgba(var(--rmp),.05); border: 1px solid transparent; border-radius: 8px; padding: 4px 11px; cursor: pointer; }
.view-chip.on { color: var(--accent); background: rgba(237,75,0,.1); border-color: var(--accent); }
.view-chip .view-x { display: inline-flex; opacity: .6; }
.view-chip .view-x:hover { opacity: 1; }
.btn.on { color: var(--accent); }
.vf-chips { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 4px 4px; }
.vf-chip { font-size: 12px; color: var(--fg-2); background: rgba(var(--rmp),.06); border: 1px solid transparent; border-radius: 7px; padding: 3px 9px; cursor: pointer; }
.vf-chip.on { color: var(--accent); background: rgba(237,75,0,.1); border-color: var(--accent); }
.col-check { display: inline-flex; width: 16px; justify-content: center; color: var(--accent); }
.req-c-custom { display: inline-flex; align-items: center; gap: 4px; }
.req-field-x { display: inline-flex; opacity: .45; cursor: pointer; border: 0; background: transparent; color: var(--fg-3); padding: 0; }
.req-field-x:hover { opacity: 1; color: #ff7d92; }

/* Share settings dialog — active links list */
.share-link-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid rgba(var(--rmp),.06); font-size: 12.5px; color: var(--fg-2); }
.share-link-row .slr-perm { font-weight: 600; color: var(--c-text); }
.share-link-row .slr-exp { font-size: 11.5px; color: var(--fg-3); }

/* Requests: priority + assignee cells */
.prio-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--c-text); }
.req-assignee { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--c-text); }
.req-assignee-nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-mini { display: inline-flex; align-items: center; gap: 6px; }

/* Request discussion thread (expanded record) */
.rqc-wrap { margin-top: 4px; }
.rqc-list { display: flex; flex-direction: column; gap: 12px; }
.rqc { display: flex; flex-direction: column; gap: 3px; }
.rqc-head { display: flex; align-items: center; gap: 7px; }
.rqc-nm { font-size: 12.5px; font-weight: 600; color: var(--c-text); }
.rqc-ts { font-size: 11px; color: var(--fg-3); }
.rqc-body { font-size: 13px; color: var(--fg-1); line-height: 1.5; padding-left: 25px; white-space: pre-wrap; }
.rqc-body .mention { color: var(--accent); font-weight: 600; }

/* ===== AI transcript (Phase 3) ===== */
.transcript { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; margin-top: 4px; }
.transcript.plain { font-size: 12.5px; line-height: 1.6; color: var(--c-text); white-space: pre-wrap; }
.tr-seg { display: flex; gap: 8px; align-items: baseline; text-align: left; background: none; border: none; padding: 4px 6px; border-radius: 6px; cursor: pointer; width: 100%; }
.tr-seg:hover { background: rgba(var(--rmp), .06); }
.tr-t { flex: 0 0 auto; font-variant-numeric: tabular-nums; font-size: 11px; font-weight: 600; color: var(--accent); min-width: 34px; }
.tr-x { font-size: 12.5px; line-height: 1.5; color: var(--c-text); }
