/* styles.css — Video Review Tool. Brand: Divyakar (warm-dark, cinematic).
   Fonts: Bricolage Grotesque (display) · Outfit (body) · JetBrains Mono (code). */

:root {
  /* warm dark surfaces */
  --bg:      #0d0a09;
  --bg-1:    #141010;
  --bg-2:    #1a1512;
  --bg-3:    #221a15;
  --bg-hi:   #2a201a;
  --border:  #382c23;
  --border-2:#4a392d;

  /* text */
  --text:    #f4eadc;
  --muted:   #ad9985;
  --faint:   #7d6e62;

  /* brand accents */
  --accent:  #63b5a2;   /* teal — primary */
  --accent-d:#4d9888;
  --orange:  #ffa53d;   /* secondary */
  --gold:    #e2b656;
  --rose:    #db7f90;
  --violet:  #d09bff;
  --blue:    #5ab1ff;

  --ok:      #63b5a2;
  --warn:    #ffa53d;
  --danger:  #f0616d;

  --disp: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: 'Outfit', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -12px rgba(0,0,0,.6);
  --shadow-sm: 0 6px 18px -6px rgba(0,0,0,.5);
  --ring: 0 0 0 3px rgba(99,181,162,.28);
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 85% -10%, rgba(99,181,162,.07), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(255,165,61,.06), transparent 55%);
  background-attachment: fixed;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--disp); font-weight: 700; margin: 0 0 .4rem; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: var(--text); }
a { color: var(--accent); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.spacer { flex: 1; }
::selection { background: rgba(99,181,162,.3); }

/* scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; border: 2px solid var(--bg); }
*::-webkit-scrollbar-thumb:hover { background: var(--faint); }

/* ---------- brand mark ---------- */
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--disp); font-weight: 800; letter-spacing: .02em; }
.wordmark .mark { color: var(--accent); font-size: 1.05em; transform: translateY(-1px); }
.wordmark .tag { font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--bg); background: var(--accent); padding: .18rem .42rem; border-radius: 6px; }
.logo { color: var(--accent); }

/* ---------- buttons ---------- */
.btn-primary, .btn-ghost, .btn-danger {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border-radius: var(--radius-sm); font-weight: 600; transition: all .18s var(--ease);
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #06231d; padding: .6rem 1.05rem; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #6fc6b1; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; }
.btn-ghost { background: var(--bg-3); color: var(--text); border-color: var(--border); padding: .5rem .85rem; }
.btn-ghost:hover { border-color: var(--border-2); background: var(--bg-hi); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(240,97,109,.35); padding: .5rem .85rem; }
.btn-danger:hover { background: rgba(240,97,109,.12); border-color: var(--danger); }
.btn-danger.sm { padding: .28rem .6rem; font-size: 12.5px; }
.linkbtn { background: none; border: none; color: var(--muted); padding: .22rem .5rem; border-radius: 7px; font-weight: 500; transition: all .15s var(--ease); }
.linkbtn:hover { background: var(--bg-3); color: var(--text); }
.linkbtn.danger:hover { color: var(--danger); }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; font-size: 12.5px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=password], input[type=number], textarea, select, .input {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: .6rem .7rem; color: var(--text); transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 1.05rem, calc(100% - 11px) 1.05rem; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }

/* ---------- badges / pills ---------- */
.badge, .pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--bg-3); border: 1px solid var(--border); color: var(--muted); }
.badge.ok, .pill.ok, .pill.approved { color: var(--ok); border-color: rgba(99,181,162,.4); background: rgba(99,181,162,.1); }
.badge.warn, .pill.warn, .pill.changes_requested { color: var(--warn); border-color: rgba(255,165,61,.4); background: rgba(255,165,61,.1); }
.pill.in_review { color: var(--blue); border-color: rgba(90,177,255,.35); background: rgba(90,177,255,.1); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge::before { display: none; }
.dot { color: var(--faint); }

/* ---------- topbar (reviewer) ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1.1rem; background: rgba(20,16,16,.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--disp); font-weight: 700; }
.project-name { font-weight: 700; font-size: 1.02rem; }
.topbar-right { display: flex; align-items: center; gap: .6rem; }
.version-select { min-width: 130px; font-size: 13px; }

/* ================= REVIEWER ================= */
.reviewer .layout { display: flex; height: calc(100vh - 58px); }
.left { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 1.1rem; gap: .9rem; }
.right { width: 392px; border-left: 1px solid var(--border); background: var(--bg-1); display: flex; flex-direction: column; }

.player { display: flex; flex-direction: column; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.player-stage { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; }
.player-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; touch-action: none; }
.overlay.drawing { pointer-events: auto; cursor: crosshair; }

.player-message { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; background: rgba(13,10,9,.72); backdrop-filter: blur(3px); color: var(--text); text-align: center; padding: 1.5rem; font-size: 13.5px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid rgba(244,234,220,.2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* draw toolbar */
.draw-toolbar { position: absolute; top: .7rem; left: 50%; transform: translateX(-50%); display: flex; gap: .3rem; align-items: center; background: rgba(20,16,16,.94); backdrop-filter: blur(8px); border: 1px solid var(--border-2); border-radius: 999px; padding: .35rem .45rem; z-index: 5; box-shadow: var(--shadow-sm); animation: pop .2s var(--ease); }
.draw-toolbar .tool { background: transparent; border: none; color: var(--text); min-width: 32px; height: 32px; border-radius: 999px; transition: all .15s var(--ease); }
.draw-toolbar .tool:hover { background: var(--bg-hi); }
.draw-toolbar .tool.active { background: var(--accent); color: #06231d; }
.draw-toolbar .tool.done { padding: 0 .8rem; background: var(--accent); color: #06231d; font-weight: 600; }
.draw-toolbar .color { width: 30px; height: 30px; padding: 0; border: none; background: none; border-radius: 50%; cursor: pointer; }

/* controls */
.controls { display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; background: var(--bg-2); }
.ctrl-group { display: flex; align-items: center; gap: .3rem; }
.ctrl { background: transparent; border: none; color: var(--text); width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-sm); transition: all .15s var(--ease); }
.ctrl:hover { background: var(--bg-hi); }
.ctrl:active { transform: scale(.92); }
.ctrl.play { background: var(--accent); color: #06231d; }
.ctrl.play:hover { background: #6fc6b1; }
.tc-wrap { font-family: var(--mono); font-size: 12.5px; margin-left: .4rem; white-space: nowrap; letter-spacing: -.02em; }
.tc { font-weight: 600; color: var(--text); }
.dur { color: var(--muted); }
.vol { width: 78px; accent-color: var(--accent); }

/* scrub bar */
.scrub { position: relative; flex: 1; height: 18px; display: flex; align-items: center; cursor: pointer; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; height: 5px; background: var(--bg-hi); border-radius: 3px; }
.scrub-buffered { position: absolute; height: 5px; background: var(--border-2); border-radius: 3px; width: 0; }
.scrub-fill { position: absolute; height: 5px; background: linear-gradient(90deg, var(--accent), #7fd0bd); border-radius: 3px; width: 0; }
.scrub-handle { position: absolute; width: 14px; height: 14px; background: #fff; border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 4px rgba(99,181,162,.25); transition: transform .1s var(--ease); }
.scrub:hover .scrub-handle { transform: translateX(-50%) scale(1.15); }
.scrub-markers { position: absolute; left: 0; right: 0; height: 100%; }
.marker { position: absolute; top: 50%; transform: translate(-50%,-50%); width: 11px; height: 11px; background: var(--orange); border: 2px solid var(--bg-2); border-radius: 50%; padding: 0; cursor: pointer; transition: transform .12s var(--ease); }
.marker:hover { transform: translate(-50%,-50%) scale(1.4); }
.marker.resolved { background: var(--accent); }

/* approval bar */
.approval-bar { display: flex; align-items: center; gap: .6rem; padding: .1rem .15rem; flex-wrap: wrap; }
.approval-bar .status-label { font-weight: 600; font-size: 12.5px; padding: .35rem .7rem; border-radius: 999px; background: var(--bg-3); border: 1px solid var(--border); color: var(--muted); }
.approval-bar .status-label.approved { color: var(--ok); border-color: rgba(99,181,162,.4); }
.approval-bar .status-label.changes_requested { color: var(--warn); border-color: rgba(255,165,61,.4); }
.approval-bar .approve, .approval-bar .changes { border: 1px solid var(--border); background: var(--bg-3); color: var(--text); padding: .5rem .9rem; border-radius: var(--radius-sm); font-weight: 600; transition: all .18s var(--ease); }
.approval-bar .approve:hover { border-color: var(--ok); transform: translateY(-1px); }
.approval-bar .changes:hover { border-color: var(--warn); transform: translateY(-1px); }
.approval-bar .approve.active { background: var(--ok); color: #06231d; border-color: var(--ok); }
.approval-bar .changes.active { background: var(--warn); color: #2b1700; border-color: var(--warn); }

/* comment panel */
.panel-head { padding: .9rem 1.05rem .5rem; border-bottom: 1px solid var(--border); }
.panel-head h2 { font-size: 1.05rem; }
.panel-head-top { display: flex; align-items: center; justify-content: space-between; }
.filters { display: flex; gap: .3rem; margin-top: .6rem; }
.filter { background: var(--bg-3); border: 1px solid var(--border); color: var(--muted); padding: .28rem .75rem; border-radius: 999px; font-size: 12px; font-weight: 600; transition: all .15s var(--ease); }
.filter:hover { color: var(--text); }
.filter.active { background: var(--accent); color: #06231d; border-color: var(--accent); }

/* export menu */
.export-menu { position: relative; }
.export-btn { background: var(--bg-3); border: 1px solid var(--border); color: var(--text); width: 34px; height: 31px; border-radius: var(--radius-sm); font-size: 18px; line-height: 1; transition: all .15s var(--ease); }
.export-btn:hover { border-color: var(--border-2); background: var(--bg-hi); }
.export-dropdown { position: absolute; right: 0; top: 38px; z-index: 30; width: 258px; background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: .35rem; animation: pop .16s var(--ease); transform-origin: top right; }
.export-item { display: flex; align-items: center; justify-content: space-between; width: 100%; background: transparent; border: none; color: var(--text); padding: .58rem .65rem; border-radius: var(--radius-sm); text-align: left; transition: background .12s var(--ease); }
.export-item:hover { background: var(--bg-3); }
.export-ext { color: var(--faint); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: .04em; }
.export-sep { height: 1px; background: var(--border); margin: .35rem .25rem; }
.export-note { color: var(--faint); font-size: 11px; padding: .4rem .65rem .25rem; line-height: 1.45; }

.comment-list { flex: 1; overflow-y: auto; padding: .55rem .65rem; }
.empty { color: var(--muted); text-align: center; padding: 2.5rem 1rem; }
.comment { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-md); padding: .7rem .8rem; margin-bottom: .55rem; cursor: pointer; transition: border-color .15s var(--ease), transform .15s var(--ease), box-shadow .15s var(--ease); }
.comment:hover { border-color: var(--border-2); transform: translateX(2px); }
.comment.active { border-color: var(--accent); box-shadow: var(--ring); }
.comment.reply { margin-left: 1.5rem; background: var(--bg-1); }
.comment.resolved { opacity: .55; }
.comment.resolved .c-body { text-decoration: line-through; text-decoration-color: var(--faint); }
.c-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .4rem; }
.avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--blue)); color: #06231d; display: grid; place-items: center; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.c-name { font-weight: 600; }
.c-time { font-size: 11px; margin-left: auto; color: var(--faint); }
.chip { background: var(--accent); color: #06231d; border: none; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: .12rem .5rem; border-radius: 6px; transition: transform .12s var(--ease); }
.chip:hover { transform: scale(1.06); }
.ann-badge { font-size: 12px; color: var(--orange); }
.c-body { white-space: pre-wrap; word-break: break-word; line-height: 1.5; }
.c-actions { display: flex; gap: .25rem; margin-top: .45rem; }

/* composer */
.composer { border-top: 1px solid var(--border); padding: .8rem; background: var(--bg-2); }
.name-wrap { font-size: 12px; margin-bottom: .45rem; display: flex; align-items: center; gap: .35rem; color: var(--muted); }
.name-input { padding: .3rem .55rem; }
.comment-input { width: 100%; resize: vertical; min-height: 52px; }
.composer-row { display: flex; align-items: center; gap: .4rem; margin-top: .55rem; }
.pin-btn, .draw-btn { background: var(--bg); border: 1px solid var(--border); color: var(--muted); padding: .4rem .65rem; border-radius: var(--radius-sm); font-family: var(--mono); font-size: 11.5px; transition: all .15s var(--ease); }
.draw-btn { font-family: var(--body); font-weight: 600; }
.pin-btn:hover, .draw-btn:hover { border-color: var(--border-2); color: var(--text); }
.pin-btn.active { color: var(--text); border-color: var(--accent); }
.draw-btn.active { background: var(--accent); color: #06231d; border-color: var(--accent); }
.send-btn { background: var(--accent); color: #06231d; border: none; padding: .5rem 1.1rem; border-radius: var(--radius-sm); font-weight: 700; transition: all .18s var(--ease); }
.send-btn:hover { background: #6fc6b1; transform: translateY(-1px); }
.send-btn:disabled { opacity: .5; transform: none; }
.reply-banner { font-size: 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 8px; padding: .35rem .55rem; margin-bottom: .45rem; display: flex; gap: .5rem; align-items: center; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(8,6,5,.72); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 50; animation: fade .2s var(--ease); padding: 1rem; }
.modal-card { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 1.6rem; width: min(420px, 94vw); box-shadow: var(--shadow); animation: pop .22s var(--ease); }
.modal-card h3 { font-size: 1.25rem; }
.modal-card input { width: 100%; }
.error-text { color: var(--danger); font-size: 12.5px; min-height: 1rem; }

/* ---------- toast ---------- */
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%); background: var(--bg-3); border: 1px solid var(--border-2); color: var(--text); padding: .65rem 1.1rem; border-radius: 999px; z-index: 60; box-shadow: var(--shadow); font-weight: 500; animation: toastin .25s var(--ease); }

.fatal { max-width: 440px; margin: 16vh auto; text-align: center; padding: 2rem; }
.fatal h1 { font-size: 2.4rem; }

/* ================= ADMIN ================= */
/* auth */
.auth-screen { display: grid; place-items: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 2.2rem; width: min(380px, 94vw); box-shadow: var(--shadow); animation: pop .25s var(--ease); }
.auth-card .wordmark { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-card p { color: var(--muted); margin: 0 0 1.2rem; }
.auth-card input { width: 100%; margin-bottom: .6rem; }
.auth-card .btn-primary { width: 100%; margin-top: .5rem; }

/* app bar */
.app-bar { display: flex; align-items: center; justify-content: space-between; padding: .85rem 1.4rem; background: rgba(20,16,16,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 20; }
.app-bar .wordmark { font-size: 1.25rem; }
.app-bar-right { display: flex; align-items: center; gap: .6rem; }

.dash { max-width: 1040px; margin: 0 auto; padding: 1.6rem 1.4rem 5rem; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.8rem; }
.stat { background: linear-gradient(160deg, var(--bg-2), var(--bg-1)); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 1rem 1.1rem; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.stat:hover { border-color: var(--border-2); transform: translateY(-2px); }
.stat .num { font-family: var(--disp); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: 12px; margin-top: .4rem; text-transform: uppercase; letter-spacing: .06em; }
.stat.accent .num { color: var(--accent); }
.stat.orange .num { color: var(--orange); }

.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.dash-head h2 { font-size: 1.3rem; }
.dash-head .tools { display: flex; gap: .5rem; align-items: center; }
.search-box { display: flex; align-items: center; gap: .4rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 .6rem; }
.search-box input { border: none; background: none; padding: .5rem .2rem; width: 170px; }
.search-box input:focus { box-shadow: none; }

/* project grid */
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.project-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.25rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease); display: flex; flex-direction: column; }
.project-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-sm); }
.pc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; }
.pc-title { font-family: var(--disp); font-weight: 700; font-size: 1.12rem; }
.pc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: 12px; color: var(--muted); margin-top: .45rem; }
.pc-share { display: flex; gap: .4rem; margin-top: .9rem; }
.pc-share input { flex: 1; font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: .45rem .6rem; }
.icon-btn { width: 36px; flex-shrink: 0; padding: 0; display: grid; place-items: center; }
.pc-foot { display: flex; gap: .5rem; margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--border); }

/* manage expand */
.pc-manage { margin-top: 1rem; border-top: 1px solid var(--border); padding-top: 1rem; animation: fade .2s var(--ease); }
.tabs { display: flex; gap: .3rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .25rem; margin-bottom: 1rem; }
.tab { flex: 1; background: transparent; border: none; color: var(--muted); padding: .45rem; border-radius: 7px; font-weight: 600; font-size: 13px; transition: all .15s var(--ease); }
.tab:hover { color: var(--text); }
.tab.active { background: var(--bg-hi); color: var(--text); box-shadow: var(--shadow-sm); }
.tab-panel { animation: fade .18s var(--ease); }
.form-grid { display: grid; gap: .8rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* versions */
.version-list { display: flex; flex-direction: column; gap: .5rem; margin-bottom: .9rem; }
.version-row { display: flex; align-items: center; gap: .6rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .55rem .75rem; }
.version-row strong { font-family: var(--disp); }
.fileid { color: var(--faint); font-family: var(--mono); font-size: 11px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-version { display: grid; grid-template-columns: 1fr 1.6fr auto; gap: .5rem; }
.add-version input { width: 100%; }
.hint { font-size: 12px; color: var(--faint); margin: .6rem 0 0; line-height: 1.45; }

/* feedback */
.fb-head-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.fb-version { display: flex; gap: .5rem; align-items: center; margin: .9rem 0 .45rem; font-family: var(--disp); }
.fb-comment { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .55rem .75rem; margin-bottom: .45rem; }
.fb-comment.reply { margin-left: 1.5rem; }
.fb-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .25rem; font-size: 12.5px; }
.fb-head .muted { margin-left: auto; color: var(--faint); }
.fb-head .chip { font-family: var(--mono); }
.fb-body { white-space: pre-wrap; word-break: break-word; }

/* ---------- animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(4px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes toastin { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
.card-in { animation: pop .25s var(--ease) both; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .reviewer .layout { flex-direction: column; height: auto; }
  .right { width: 100%; border-left: none; border-top: 1px solid var(--border); max-height: 65vh; }
  .left { padding: .7rem; }
  .add-version { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .vol { display: none; }
}
