/* Pinpoint app. Same design system as the marketing site (site/styles.css, site/BRAND.md).
   --accent is the workspace's own brand colour; structure and buttons use the Pinpoint palette. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap");

:root {
  --ink: #0f1b2d;
  --ink-2: #1b2a42;
  --ink-soft: #46506a;
  --ink-faint: #6e778b;
  --night: #0b1220;
  --paper: #f7f5f0;
  --paper-2: #f1eee7;
  --white: #ffffff;
  --line: #e6e2d9;
  --line-soft: #efece5;
  --line-strong: #d7d2c6;
  --coral: #e5533d;
  --coral-deep: #c63f2b;
  --green: #2f8f5b;
  --green-soft: #e6f4ec;
  --red: #c4362a;
  --accent: #e5533d;
  --accent-ink: #ffffff;
  --ok: #2f8f5b;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --r-lg: 18px;
  --r: 12px;
  --r-sm: 9px;
  --shadow-xs: 0 1px 2px rgba(15, 27, 45, 0.06);
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, 0.05), 0 4px 12px -4px rgba(15, 27, 45, 0.08);
  --shadow-md: 0 2px 4px rgba(15, 27, 45, 0.04), 0 16px 32px -12px rgba(15, 27, 45, 0.18);
  --shadow-xl: 0 2px 6px rgba(15, 27, 45, 0.05), 0 40px 80px -28px rgba(15, 27, 45, 0.32);
  color-scheme: light;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
/* Let the hidden attribute win over component display rules (grid, flex). */
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 700 26px/1.2 var(--font-display); letter-spacing: -0.035em; }
h2 { font: 700 18px/1.3 var(--font-display); letter-spacing: -0.025em; }
h3 { font: 600 15px/1.35 var(--font-display); letter-spacing: -0.015em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.small-text { font-size: 12px; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Form controls ---------- */
label, .label { display: block; font: 500 13px/1.3 var(--font-ui); color: var(--ink-soft); }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]), textarea, select {
  width: 100%; padding: 10px 12px; margin-top: 6px; background: #fff; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #9aa1b0; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.1); }
.field { display: grid; gap: 0; }
.field + .field { margin-top: 14px; }
.hint { margin-top: 6px; font-size: 12px; color: var(--ink-faint); }
.error { min-height: 1em; font-size: 13px; color: var(--red); }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-soft); font-size: 13px; }
.check-row input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--ink); flex: none; }
.check-row a { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink); font: 600 14px/1 var(--font-ui); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs);
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: #fbfaf7; border-color: #c9c3b5; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 6px 16px -8px rgba(15,27,45,0.55); }
.btn.primary:hover { background: var(--ink-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-soft); }
.btn.ghost:hover { background: rgba(15, 27, 45, 0.05); color: var(--ink); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: #fdf1ef; border-color: #f0c6bf; }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.large { height: 46px; padding: 0 20px; font-size: 15px; border-radius: 12px; }
.btn.block { width: 100%; }
.icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 9px; }

/* ---------- Brand marks ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; font: 700 17px/1 var(--font-display); letter-spacing: -0.03em; }
.brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-dot { width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 13px/1 var(--font-display); }
.logo-img { height: 28px; max-width: 170px; object-fit: contain; display: block; }
.pp-mark { width: 26px; height: 26px; flex: none; }

/* ---------- App shell ---------- */
.shell { min-height: 100%; display: flex; flex-direction: column; }
.appbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 22px; height: 62px; padding: 0 24px; background: rgba(255,255,255,0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.appnav { display: flex; gap: 4px; }
.appnav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.appnav a:hover { background: rgba(15, 27, 45, 0.05); color: var(--ink); }
.appnav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.usermenu { position: relative; margin-left: auto; }
.avatar-btn { display: inline-flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 99px; background: #fff; cursor: pointer; }
.avatar-btn:hover { border-color: var(--line-strong); }
.avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 11px/1 var(--font-ui); }
.avatar.lg { width: 38px; height: 38px; font-size: 13px; }
.avatar-name { font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); }
.menu-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line-soft); margin-bottom: 4px; }
.menu-head b { display: block; font-weight: 600; }
.menu a, .menu button { display: flex; width: 100%; align-items: center; gap: 9px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; text-decoration: none; cursor: pointer; color: var(--ink); }
.menu a:hover, .menu button:hover { background: var(--paper); }
.menu .danger { color: var(--red); }
.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 36px 24px 72px; }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--ink-soft); }
@media (max-width: 720px) {
  .appbar { padding: 0 14px; gap: 12px; }
  .avatar-name { display: none; }
  .avatar-btn { padding: 3px; }
  .page { padding: 24px 16px 56px; }
}

/* ---------- Cards, badges ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 24px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font: 600 12px/1.4 var(--font-ui); background: var(--paper-2); color: var(--ink-soft); white-space: nowrap; }
.badge.open { background: #fdeeea; color: var(--coral-deep); }
.badge.done { background: var(--green-soft); color: #23704a; }
.badge.kind { background: transparent; border: 1px solid var(--line); text-transform: uppercase; font-size: 10px; letter-spacing: 0.06em; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--paper-2); flex: none; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: 13px; color: var(--ink-soft); cursor: pointer; white-space: nowrap; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); font-weight: 600; }
.seg .count { display: inline-block; min-width: 18px; margin-left: 3px; padding: 0 5px; border-radius: 99px; background: rgba(15,27,45,0.08); font-size: 11px; line-height: 17px; text-align: center; }
.seg.accent button.on { background: var(--accent); color: var(--accent-ink); }

/* ---------- Dashboard ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-faint); pointer-events: none; }
.search input { margin-top: 0 !important; padding-left: 36px !important; height: 38px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.review-card { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.rc-top { display: flex; align-items: flex-start; gap: 12px; }
.rc-icon { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); }
.rc-icon svg { width: 20px; height: 20px; }
.rc-icon.website { background: #eef3fb; color: #2f5d84; }
.rc-icon.image { background: #fbf1e8; color: #b8582f; }
.rc-icon.pdf { background: #fdeeea; color: var(--coral-deep); }
.rc-title { min-width: 0; flex: 1; }
.rc-title a { display: block; font: 600 16px/1.3 var(--font-display); letter-spacing: -0.02em; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rc-url { display: block; margin-top: 3px; font-size: 13px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-more { position: relative; z-index: 2; }
.rc-stats { display: flex; align-items: center; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.progress { height: 6px; margin-top: 14px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.rc-foot { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-faint); }
.rc-foot .btn { position: relative; z-index: 2; }
.rc-menu { min-width: 180px; }

.empty { display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.empty-art { width: 76px; height: 76px; margin-bottom: 18px; border-radius: 50% 50% 50% 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 800 22px/1 var(--font-display); box-shadow: 0 18px 36px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.empty p { max-width: 42ch; margin: 8px auto 22px; color: var(--ink-soft); }

.onboard { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; margin-bottom: 24px; padding: 22px 24px; border-radius: var(--r-lg); background: linear-gradient(135deg, #fff, #fbf8f2); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.ob-step { display: flex; gap: 11px; align-items: flex-start; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); text-decoration: none; transition: border-color 0.15s; }
.ob-step:hover { border-color: var(--line-strong); }
.ob-check { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; color: #fff; }
.ob-step.done .ob-check { background: var(--green); border-color: var(--green); }
.ob-step.done b { text-decoration: line-through; color: var(--ink-faint); }
.ob-step b { display: block; font-weight: 600; }
.ob-step span { font-size: 12px; color: var(--ink-faint); }
@media (max-width: 760px) { .onboard-steps { grid-template-columns: 1fr; } }

/* ---------- Modal ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(11, 18, 32, 0.45); backdrop-filter: blur(3px); animation: fade 0.15s ease; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; padding: 26px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-xl); animation: rise 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head p { margin: 4px 0 0; color: var(--ink-soft); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 11px; background: var(--paper-2); }
.tabs button { flex: 1; border: 0; padding: 8px; border-radius: 8px; background: transparent; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.dropzone { display: grid; place-items: center; gap: 6px; padding: 32px 18px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: #fcfbf8; text-align: center; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); background: #fff; }
.dropzone svg { width: 28px; height: 28px; color: var(--ink-faint); }
.dropzone b { font-weight: 600; }
.file-chosen { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 12px; background: var(--night); color: #fff; font-weight: 500; box-shadow: var(--shadow-md); animation: rise 0.2s ease; }
.toast.error { background: var(--red); }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.settings-nav { position: sticky; top: 86px; display: grid; gap: 2px; }
.settings-nav a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.settings-nav a:hover { background: rgba(15,27,45,0.05); color: var(--ink); }
.settings-nav a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.panel { padding: 28px; }
.panel + .panel { margin-top: 20px; }
.panel-head { margin-bottom: 22px; }
.panel-head p { margin: 6px 0 0; color: var(--ink-soft); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid2 .full { grid-column: 1 / -1; }
.color-row { display: flex; gap: 8px; margin-top: 6px; }
.color-row input[type=color] { width: 46px; height: 42px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 9px; background: #fff; cursor: pointer; flex: none; }
.color-row input:not([type=color]) { margin-top: 0 !important; }
.presets { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.preset { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; box-shadow: 0 0 0 1px rgba(15,27,45,0.12); }
.preset:hover { transform: scale(1.1); }
.logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.logo-preview { width: 190px; height: 58px; padding: 8px; border: 1px dashed var(--line-strong); border-radius: 12px; display: grid; place-items: center; background: #fcfbf8; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-frame { margin-top: 6px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.pv-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); }
.pv-body { position: relative; display: grid; grid-template-columns: 1fr 200px; min-height: 140px; }
.pv-site { position: relative; padding: 18px; background: #fffdf9; border-right: 1px solid var(--line-soft); }
.pv-site i { display: block; height: 9px; border-radius: 4px; background: #ebe6db; margin-bottom: 8px; }
.pv-site i:first-child { width: 70%; height: 14px; background: #d9d2c4; }
.pv-thread { padding: 12px; font-size: 12px; }
.pv-thread p { margin: 4px 0 0; color: var(--ink-soft); }
.pv-foot { padding: 8px 12px; font-size: 11px; color: var(--ink-faint); border-top: 1px solid var(--line-soft); }
.pin-mini { position: absolute; width: 24px; height: 24px; border-radius: 50% 50% 50% 0; background: var(--accent); color: var(--accent-ink); border: 2px solid #fff; display: grid; place-items: center; font: 700 10px/1 var(--font-display); box-shadow: 0 6px 12px -4px rgba(15,27,45,0.35); }
.num { width: 21px; height: 21px; flex: none; border-radius: 50% 50% 50% 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font: 700 10px/1 var(--font-display); }
.num.ok, .thread.resolved .num { background: var(--ok); color: #fff; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line-soft); }
.row-item:first-child { border-top: 0; }
.row-item .info { flex: 1; min-width: 0; }
.row-item .info b { display: block; font-weight: 600; }
.row-item .info span { font-size: 13px; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.invite-form { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 10px; align-items: end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.invite-form input { margin-top: 6px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-strong); transition: background 0.15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-xs); transition: transform 0.15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.status-dot.on { background: var(--green); }
.status-dot.off { background: #e0a32e; }
.callout { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--ink-soft); }
@media (max-width: 860px) {
  .settings { grid-template-columns: 1fr; gap: 16px; }
  .settings-nav { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  .settings-nav a { white-space: nowrap; }
  .grid2, .invite-form { grid-template-columns: 1fr; }
  .pv-body { grid-template-columns: 1fr; }
  .pv-thread { border-top: 1px solid var(--line-soft); }
  .panel { padding: 20px; }
}

/* ---------- Auth (sign in, sign up, reset) ---------- */
.auth { min-height: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.auth-main { display: flex; flex-direction: column; padding: 28px 40px; background: var(--paper); }
.auth-top { display: flex; align-items: center; justify-content: space-between; }
.auth-top a.brand { color: var(--ink); }
.auth-top .faint a { color: var(--ink); font-weight: 600; text-decoration: none; }
.auth-form { width: 100%; max-width: 400px; margin: auto; padding: 36px 0; display: grid; gap: 0; }
.auth-form h1 { font-size: 30px; }
.auth-form > p { margin: 8px 0 26px; color: var(--ink-soft); }
.auth-form .btn.block { margin-top: 20px; height: 46px; font-size: 15px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.auth-alt a { color: var(--ink); font-weight: 600; }
.auth-foot { font-size: 12px; color: var(--ink-faint); display: flex; gap: 16px; }
.auth-foot a { color: inherit; text-decoration: none; }
.auth-side { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: center; padding: 56px; background: var(--night); color: #f2f3f6; }
.auth-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(45% 50% at 80% 20%, rgba(229, 83, 61, 0.3), transparent 70%), radial-gradient(40% 50% at 10% 90%, rgba(37, 99, 235, 0.16), transparent 70%); }
.auth-side h2 { font: 800 34px/1.12 var(--font-display); letter-spacing: -0.04em; max-width: 15ch; }
.auth-side ul { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; color: #c8cfdc; font-size: 15px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; }
.auth-side li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #6ee7a0; }
.auth-card-demo { margin-top: 40px; max-width: 380px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,0.96); color: var(--ink); box-shadow: var(--shadow-xl); font-size: 13px; }
.auth-card-demo .t-head { display: flex; align-items: center; gap: 8px; }
.auth-card-demo p { margin: 6px 0 0 29px; color: var(--ink-soft); }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-main { padding: 20px 18px; } }

/* ---------- Review page ---------- */
.review { display: grid; grid-template-rows: 56px 1fr; height: 100vh; height: 100dvh; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: #fff; border-bottom: 1px solid var(--line); min-width: 0; }
.topbar .brand { font-size: 15px; flex: none; }
.topbar .logo-img { height: 26px; max-width: 140px; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; color: var(--ink-soft); text-decoration: none; flex: none; }
.back:hover { background: var(--paper); color: var(--ink); }
.back svg { width: 18px; height: 18px; }
.topbar .divider { width: 1px; height: 24px; background: var(--line); flex: none; }
.topbar .title { font: 600 14px/1.2 var(--font-display); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.main { display: grid; grid-template-columns: 1fr 360px; min-height: 0; }
.stage { position: relative; background: var(--paper-2); min-height: 0; }
.stage iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; }
.stage-hint { position: absolute; left: 50%; top: 14px; z-index: 4; transform: translateX(-50%); padding: 7px 13px; border-radius: 99px; background: var(--night); color: #fff; font-size: 12px; font-weight: 500; box-shadow: var(--shadow-md); pointer-events: none; transition: opacity 0.3s; }
.side { display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line); min-height: 0; }
.side-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.side-head { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.thread { padding: 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background 0.15s; }
.thread:hover { background: #fcfbf9; }
.thread.active { background: color-mix(in srgb, var(--accent) 6%, #fff); box-shadow: inset 3px 0 0 var(--accent); }
.thread-head { display: flex; align-items: center; gap: 8px; }
.thread-head .when { font-size: 12px; color: var(--ink-faint); }
.thread-actions { display: flex; gap: 4px; margin-left: auto; }
.comment { margin: 9px 0 0 29px; }
.comment b { font-weight: 600; font-size: 13px; }
.comment .team-tag { margin-left: 6px; padding: 1px 6px; border-radius: 99px; background: var(--paper-2); font-size: 10px; font-weight: 600; color: var(--ink-soft); vertical-align: 1px; }
.comment p { margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--ink-soft); }
.reply { display: flex; gap: 6px; margin: 12px 0 0 29px; }
.reply input { margin-top: 0 !important; }
.group-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line-soft); background: #faf9f6; font: 600 12px/1.2 var(--font-ui); color: var(--ink-soft); }
.group-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.side-empty { padding: 40px 22px; text-align: center; color: var(--ink-soft); }
.side-empty .empty-art { width: 52px; height: 52px; margin: 0 auto 14px; font-size: 16px; }
.powered { padding: 10px 14px; font-size: 11px; text-align: center; color: var(--ink-faint); border-top: 1px solid var(--line-soft); }
.composer { position: absolute; z-index: 5; width: 290px; max-width: calc(100% - 16px); padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xl); animation: rise 0.15s ease; }
.composer textarea { min-height: 84px; resize: vertical; margin-top: 0; }
.composer .row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 9px; }
.share-pop { position: absolute; right: 14px; top: 62px; z-index: 50; width: 360px; max-width: calc(100vw - 28px); padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xl); animation: rise 0.15s ease; }
.share-pop .copy-row { display: flex; gap: 8px; margin-top: 12px; }
.share-pop .copy-row input { margin-top: 0 !important; font-size: 13px; }
@media (max-width: 860px) {
  .main { grid-template-columns: 1fr; grid-template-rows: 1fr 44vh; }
  .side { border-left: 0; border-top: 1px solid var(--line); }
  .topbar .seg button { padding: 6px 9px; }
  .hide-sm { display: none !important; }
}

/* Fields keep their natural height inside two-column forms. */
.grid2 { align-items: start; }
.field { align-content: start; }
@media (max-width: 760px) { .onboard { grid-template-columns: 1fr; position: relative; } #obDismiss { position: absolute; top: 14px; right: 14px; } .page-head .btn.large { width: 100%; } }
