/* ============================================================
   Review Room — Beekman Group design system
   Brand: browns, blues, reds, warm cream. Rubik.
   ============================================================ */

/* --- Variables: light mode — teal & orange --- */
:root {
  --bg:           #f4f4f5;   /* neutral grey, zinc-100 */
  --bg-2:         #e4e4e7;   /* grey-200 for sections */
  --bg-card:      #ffffff;
  --fg:           #1a2e2c;   /* deep teal-black for text */
  --fg-2:         #2d4a47;
  --muted:        #5a7773;
  --muted-2:      #8aa7a3;
  --border:       #d6e7e2;   /* light teal-gray */
  --border-2:     #b3cfc9;
  --accent:       #0d9488;   /* teal-600 — primary */
  --accent-2:     #14b8a6;   /* teal-500 — hover/light */
  --accent-fg:    #ffffff;
  --accent-soft:  rgba(13,148,136,.12);
  --link:         #0d9488;
  --link-hover:   #0f766e;
  --danger:       #c1001e;
  --danger-2:     #E60023;
  --ok:           #2e7d32;
  --warn:         #ea580c;   /* orange-600 — replaces yellow */
  --shadow:       0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.08);
  --radius:       10px;
  --radius-sm:    6px;
  --font:         'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fs:           15px;
  --fs-sm:        13px;
  --fs-lg:        18px;
  --fs-xl:        28px;
  --transition:   150ms ease;
}

/* --- Variables: dark mode (teal + orange) --- */
[data-theme="dark"] {
  --bg:           #0d1f20;   /* deep teal-black */
  --bg-2:         #13292b;   /* darker teal for sections */
  --bg-card:      #1a3335;   /* card surface, teal-dark */
  --fg:           #e6f5f4;   /* light teal-white text */
  --fg-2:         #b8d4d2;   /* secondary text */
  --muted:        #7a9c9a;   /* muted, cool teal-gray */
  --muted-2:      #5a7a78;
  --border:       #1f3a3c;   /* subtle teal-gray border */
  --border-2:     #2c4f52;   /* more visible border */
  --accent:       #2dd4bf;   /* teal-400 — primary, pops on dark */
  --accent-2:     #5eead4;   /* teal-300 — lighter accent */
  --accent-fg:    #0d1f20;   /* dark text on teal button */
  --accent-soft:  rgba(45,212,191,.14);
  --hover:        #fb923c;   /* orange-400 — paired hover accent */
  --hover-2:      #f97316;   /* orange-500 — deeper hover */
  --hover-soft:   rgba(251,146,60,.16);
  --link:         #2dd4bf;
  --link-hover:   #fb923c;
  --danger:       #f87171;
  --danger-2:     #fca5a5;
  --ok:           #34d399;   /* emerald, harmonises with teal */
  --warn:         #fbbf24;
  --shadow:       0 1px 2px rgba(0,0,0,.5), 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden; /* moved here from .rr-mkt so it doesn't break sticky in descendants */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }

/* --- Orange-accent hovers (universal) --- */
.rr-link:hover, .rr-back:hover { color: var(--hover); }
.rr-brand-card:hover, .rr-priority-card:hover, .rr-task-card:hover, .rr-stat:hover { border-color: var(--hover); }
img { max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; background: var(--bg-2); padding: .1em .35em; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* --- Top bar --- */
.rr-topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.rr-brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 600; font-size: 16px; }
.rr-brand img { display: block; }
.rr-brand .rr-logo-dark { display: none; }
[data-theme="dark"] .rr-brand .rr-logo-light { display: none; }
[data-theme="dark"] .rr-brand .rr-logo-dark { display: block; }
.rr-brand span { letter-spacing: -0.01em; }
.rr-topnav { display: flex; align-items: center; gap: 6px; }
.rr-hello { color: var(--fg-2); font-size: 14px; margin-right: 6px; }
.rr-link { color: var(--fg-2); background: none; border: 0; cursor: pointer; padding: 0; font-size: 14px; margin-left: 8px; }
.rr-link:hover { color: var(--accent); }

/* --- Icon buttons (top bar: admin, profile, chat, bell, theme) ---
   Consistent 32x32 hit target, line-style SVG centered, subtle hover.
   Light mode: teal. Dark mode: white. */
.rr-iconbtn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 0;
  background: transparent; color: var(--accent);
  border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
[data-theme="dark"] .rr-iconbtn { color: #ffffff; }
.rr-iconbtn:hover { background: var(--hover-soft); color: var(--accent-2); }
[data-theme="dark"] .rr-iconbtn:hover { background: var(--hover-soft); color: #ffffff; }
.rr-iconbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rr-iconbtn svg { display: block; }

/* Theme button: stacked sun + moon SVGs swap based on [data-theme] */
.rr-theme { position: relative; overflow: hidden; }
.rr-theme__icon {
  position: absolute; top: 50%; left: 50%;
  transition: opacity 300ms ease, transform 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.rr-theme__icon--moon { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }
.rr-theme__icon--sun  { transform: translate(-50%, -50%) rotate(90deg) scale(0.6); opacity: 0; }
[data-theme="dark"] .rr-theme__icon--moon { transform: translate(-50%, -50%) rotate(-90deg) scale(0.6); opacity: 0; }
[data-theme="dark"] .rr-theme__icon--sun  { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 1; }

/* --- Main / footer --- */
.rr-main { max-width: 1180px; margin: 0 auto; padding: 32px 28px 80px; }
.rr-footer { max-width: 1180px; margin: 0 auto; padding: 24px 28px 48px; color: var(--muted); font-size: var(--fs-sm); text-align: center; }

/* --- Greeting + sections --- */
.rr-greeting h1 { font-size: var(--fs-xl); font-weight: 500; margin: 0 0 8px; letter-spacing: -0.01em; }
.rr-greeting p { color: var(--fg-2); max-width: 720px; margin: 0 0 24px; line-height: 1.65; }
.rr-quote {
  margin: 0 0 18px; padding: 10px 16px;
  border-left: 3px solid var(--accent);
  color: var(--fg-2); font-style: italic;
  max-width: 720px;
}
.rr-quote p { margin: 0; color: var(--fg); }
.rr-quote footer { margin-top: 4px; font-style: normal; font-size: 13px; color: var(--fg-2); }
.rr-signoff { text-align: right; color: var(--accent); font-style: italic; margin: 0 0 24px; max-width: 720px; }
.rr-section { margin: 32px 0; }
.rr-section__title { font-size: var(--fs-lg); font-weight: 500; margin: 0 0 16px; display: flex; align-items: baseline; gap: 8px; }
.rr-section__title small { font-size: var(--fs-sm); font-weight: 400; }
.rr-page-head { margin: 0 0 24px; }
.rr-page-head h1 { font-size: var(--fs-xl); font-weight: 500; margin: 0 0 6px; }
.rr-page-head p { margin: 0 0 8px; }
.rr-back { display: inline-block; color: var(--muted); font-size: var(--fs-sm); margin-bottom: 12px; }
.rr-back:hover { color: var(--accent); }
.rr-muted { color: var(--muted); }

/* --- Auth (login, setup) --- */
.rr-auth { display: flex; align-items: center; justify-content: center; min-height: 70vh; }
.rr-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.rr-card--narrow { width: 100%; max-width: 420px; }
.rr-card h1 { font-size: var(--fs-lg); font-weight: 500; margin: 0 0 6px; }
.rr-card .rr-muted { font-size: var(--fs-sm); margin: 0 0 24px; }
.rr-error { background: rgba(193,0,30,.08); color: var(--danger); border: 1px solid rgba(193,0,30,.25); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: var(--fs-sm); }
.rr-success { background: rgba(46,125,50,.10); color: var(--ok); border: 1px solid rgba(46,125,50,.25); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: var(--fs-sm); }

/* --- Forms --- */
.rr-form label { display: block; margin-bottom: 14px; color: var(--fg-2); font-size: var(--fs-sm); font-weight: 500; }
.rr-form input[type="text"], .rr-form input[type="email"], .rr-form input[type="password"],
.rr-form input[type="date"], .rr-form input[type="number"], .rr-form input:not([type]),
.rr-form select, .rr-form textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 9px 12px; border: 1px solid var(--border-2);
  background: var(--bg-card); color: var(--fg);
  border-radius: var(--radius-sm); font-size: var(--fs);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.rr-form input:focus, .rr-form select:focus, .rr-form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}
.rr-form textarea { resize: vertical; min-height: 60px; }
.rr-form select[multiple] { padding: 6px; }
.rr-form select[multiple] option { padding: 4px 6px; }
.rr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rr-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; margin-bottom: 24px; }
.rr-form__brands { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 16px; margin-top: 4px; }
.rr-form__brand { display: flex; align-items: center; gap: 6px; font-size: var(--fs); font-weight: 400; color: var(--fg); margin: 0; }
.rr-form__check { display: flex; align-items: center; gap: 6px; font-size: var(--fs); font-weight: 400; color: var(--fg); margin: 8px 0 0; }
.rr-form__google { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 12px 16px; border: 1px dashed var(--border-2); border-radius: var(--radius); background: var(--bg-card); }
.rr-form__google-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.rr-form__google input { font-family: ui-monospace, monospace; font-size: 13px; }
.rr-form__google small { font-size: 11px; }

.rr-form__file {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px dashed var(--border-2); border-radius: var(--radius);
  padding: 36px 20px; text-align: center; color: var(--muted);
  cursor: pointer; transition: background var(--transition), border-color var(--transition);
  min-height: 200px;
}
.rr-form__file:hover { border-color: var(--accent); background: var(--accent-soft); }
.rr-form__file input { display: none; }
.rr-form__file-hint { font-size: var(--fs-sm); line-height: 1.6; }
.rr-form__file-hint small { color: var(--muted-2); }

/* --- Buttons --- */
.rr-btn {
  display: inline-block; padding: 9px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-2); background: var(--bg-card); color: var(--fg);
  font-size: var(--fs); font-weight: 500; cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  text-decoration: none;
}
.rr-btn:hover { border-color: var(--accent); color: var(--accent); }
.rr-btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.rr-btn--primary:hover { background: var(--hover); color: #1a0f08; border-color: var(--hover); }
.rr-btn--ghost { background: transparent; color: var(--fg-2); border-color: var(--border-2); }
.rr-btn--ghost:hover { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.rr-btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.rr-btn--danger:hover { background: var(--danger-2); color: #fff; }

/* --- Stat grid (admin dashboard) --- */
.rr-stat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rr-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--fg); transition: border-color var(--transition); }
.rr-stat:hover { border-color: var(--accent); }
.rr-stat__num { font-size: 28px; font-weight: 600; color: var(--accent); }
.rr-stat__lbl { font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; }

/* --- Tables --- */
.rr-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rr-table th, .rr-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.rr-table th { background: var(--bg-2); font-size: var(--fs-sm); font-weight: 600; color: var(--fg-2); }
.rr-table tr:last-child td { border-bottom: 0; }
.rr-table tr:hover td { background: var(--accent-soft); }

/* --- Brand grid (dashboard) --- */
.rr-brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.rr-brand-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; text-align: center; color: var(--fg); transition: border-color var(--transition), transform var(--transition); }
.rr-brand-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rr-brand-card__logo {
  width: 56px; height: 56px; margin: 0 auto 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; letter-spacing: 0.04em;
}
.rr-brand-card__name { font-weight: 600; }
.rr-brand-card__web { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.rr-brand-mini { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }

/* --- Priority cards (dashboard top) --- */
.rr-priority-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.rr-priority-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--fg); transition: border-color var(--transition), transform var(--transition); display: block; }
.rr-priority-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rr-priority-card__preview { background: var(--bg-2); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rr-priority-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.rr-priority-card__doc { font-size: 48px; color: var(--accent); }
.rr-priority-card__meta { padding: 14px 16px; }
.rr-priority-card__name { font-weight: 600; margin-bottom: 4px; }
.rr-priority-card__sub { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; }

/* --- Task grid (brand pages) --- */
.rr-task-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.rr-task-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--fg); transition: border-color var(--transition), transform var(--transition); display: block; }
.rr-task-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.rr-task-card__preview { background: var(--bg-2); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.rr-task-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.rr-task-card__doc { font-size: 32px; color: var(--accent); padding: 12px; }
.rr-task-card__meta { padding: 12px 14px; }
.rr-task-card__name { font-weight: 600; margin-bottom: 4px; }
.rr-task-card__sub { font-size: var(--fs-sm); }

/* --- Stages / workflow progress --- */
.rr-stages { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; }
.rr-stage { flex: 1; min-width: 200px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.rr-stage.is-current { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent); }
.rr-stage.is-done { opacity: .8; }
.rr-stage__head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: var(--fs-sm); }
.rr-stage__num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--fg); font-size: 12px; font-weight: 600; }
.rr-stage.is-current .rr-stage__num { background: var(--accent); color: var(--accent-fg); }
.rr-stage__name { font-weight: 600; }
.rr-stage__mode { color: var(--muted); font-size: 12px; }
.rr-stage__focus { color: var(--muted); font-size: 12px; margin-left: auto; }
.rr-approvers { list-style: none; margin: 0; padding: 0; font-size: var(--fs-sm); }
.rr-approvers li { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; border-top: 1px solid var(--border); }
.rr-approvers li:first-child { border-top: 0; }
.rr-approver-name { color: var(--fg-2); }

/* --- Asset (image + HTML iframe) --- */
.rr-asset-wrap { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: visible; }
.rr-asset-img-wrap { position: relative; display: block; width: 100%; user-select: none; }
.rr-asset-img-wrap img { display: block; width: 100%; height: auto; }
.rr-asset-img-wrap iframe#rrAsset { display: block; width: 100%; border: 0; background: #fff; pointer-events: auto; }
.rr-asset-pdf { width: 100%; height: 80vh; border: 0; background: #fff; }
.rr-asset-fallback { padding: 60px 20px; text-align: center; font-size: var(--fs-lg); color: var(--muted); }
.rr-asset-fallback a { display: inline-block; margin-left: 8px; }

.rr-asset-google { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.rr-asset-google__head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; font-size: 13px; }
.rr-asset-google__icon { font-size: 18px; }
.rr-asset-google__label { font-weight: 600; color: var(--fg); }
.rr-asset-google__open { margin-left: auto; font-size: 12px; color: var(--accent); text-decoration: none; }
.rr-asset-google__open:hover { text-decoration: underline; }
.rr-asset-google iframe { display: block; width: 100%; min-height: 720px; height: 80vh; border: 0; border-radius: 6px; background: #fff; }

/* --- 4-button decision panel --- */
.rr-decide__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.rr-decide__opt { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--border-2); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.rr-decide__opt:hover { border-color: var(--accent); }
.rr-decide__opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.rr-decide__opt input { display: none; }
.rr-decide__title { font-weight: 600; }
.rr-decide__sub { font-size: var(--fs-sm); color: var(--muted); }
.rr-decide__notes { display: block; margin: 12px 0 12px; }
.rr-decide__notes textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-card); color: var(--fg); resize: vertical; }
.rr-decide__status { margin-left: 12px; color: var(--muted); font-size: var(--fs-sm); }

/* --- Sprint dropdown --- */
.rr-sprint-jump { display: block; width: 100%; max-width: 640px; padding: 10px 12px; font-size: 14px; background: var(--bg-card); color: var(--fg); border: 1px solid var(--border-2); border-radius: var(--radius-sm); cursor: pointer; }
.rr-sprint-jump:focus { border-color: var(--accent); outline: none; }
.rr-sprint-hint { font-size: 12px; margin-top: 6px; }

/* --- Greeting + quick actions --- */
.rr-greeting { display: flex; flex-direction: column; gap: 8px; }
.rr-greeting__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.rr-greeting__actions .rr-btn--primary { padding: 10px 18px; font-size: 15px; }
.rr-greeting__actions .rr-btn--ghost { padding: 10px 18px; font-size: 15px; }

/* --- Bell + notifications --- */
.rr-bell-wrap { position: relative; }
.rr-bell__count {
  position: absolute; top: 2px; right: 2px;
  background: var(--danger); color: #fff;
  font-size: 10px; font-weight: 700;
  padding: 1px 5px; border-radius: 999px; min-width: 16px;
  text-align: center; line-height: 1.4;
  box-shadow: 0 0 0 2px var(--bg-card);
}
.rr-bell-panel { position: absolute; top: calc(100% + 8px); right: 0; width: 360px; max-width: 90vw; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,0.12); z-index: 100; overflow: hidden; }
.rr-bell-panel[hidden] { display: none; }
.rr-bell-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.rr-bell-panel__empty { margin: 0; padding: 16px 14px; font-size: 13px; }
.rr-bell-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; }
.rr-bell-item { border-bottom: 1px solid var(--border); }
.rr-bell-item:last-child { border-bottom: 0; }
.rr-bell-item.is-unread { background: var(--bg-2); }
.rr-bell-item__link { display: block; padding: 10px 14px; text-decoration: none; color: var(--fg); }
.rr-bell-item__link:hover { background: var(--hover-soft); }
.rr-bell-item__body { display: block; font-size: 13px; line-height: 1.4; margin: 4px 0; }
.rr-bell-item__when { display: block; font-size: 11px; }
.rr-bell-panel__foot { padding: 8px 14px; border-top: 1px solid var(--border); text-align: center; background: var(--bg-2); }
.rr-notif-list { display: flex; flex-direction: column; gap: 10px; }
.rr-notif { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.rr-notif.is-unread { border-left: 3px solid var(--accent); background: var(--bg-2); }
.rr-notif__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; font-size: 12px; }
.rr-notif__when { margin-left: auto; }
.rr-notif__body { margin: 0; }
.rr-notif__read { display: inline-block; margin-top: 6px; font-size: 11px; }

/* --- Decisions log --- */
.rr-decisions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rr-decision { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; border-left-width: 3px; }
.rr-decision--approved         { border-left-color: var(--ok); }
.rr-decision--pending_changes  { border-left-color: #c77800; }
.rr-decision--changes          { border-left-color: #b06a3a; }
.rr-decision--rejected         { border-left-color: var(--danger); }
.rr-decision__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; margin-bottom: 6px; }
.rr-decision__when { margin-left: auto; }
.rr-decision__notes { margin: 0; font-size: 13px; line-height: 1.5; }

/* --- Time tracking --- */
.rr-time-form { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rr-time-form__label { color: var(--muted); font-size: var(--fs-sm); margin-right: 4px; }
.rr-time-form button { background: var(--bg-card); border: 1px solid var(--border-2); padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer; font-size: 14px; font-weight: 600; font-family: inherit; }
.rr-time-form button:hover { background: var(--hover-soft); border-color: var(--hover); color: var(--hover); }
.rr-time-form button:active { transform: translateY(1px); }
.rr-time-tally { color: var(--accent); font-size: 13px; font-weight: 600; min-width: 90px; }
.rr-time-form .rr-time-save { padding: 8px 18px; }
.rr-time-form .rr-time-save:disabled { opacity: 0.5; cursor: not-allowed; }
.rr-time-form .rr-time-save:not(:disabled):hover { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.rr-time-form .rr-time-reset { background: transparent; border: 0; color: var(--muted); padding: 6px 8px; font-size: 12px; cursor: pointer; text-transform: lowercase; }
.rr-time-form .rr-time-reset:hover { color: var(--accent); background: transparent; }
.rr-time-status { font-size: var(--fs-sm); color: var(--muted); margin-left: 8px; }
.rr-time-details { margin-top: 6px; }
.rr-time-details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.rr-time-entries { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; }
.rr-time-entries li { padding: 4px 0; border-top: 1px solid var(--border); }

.rr-time-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rr-time-stat { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rr-time-stat__num { font-size: 28px; font-weight: 700; color: var(--fg); }
.rr-time-stat__label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rr-time-bar { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: 6px; border: 1px solid var(--border); }
.rr-time-bar__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s ease; }
.rr-time-bar__fill.is-over { background: var(--ok); }
[data-theme="dark"] .rr-time-bar { background: var(--bg); border-color: var(--border-2); }
[data-theme="dark"] .rr-time-bar__fill { background: var(--accent); box-shadow: 0 0 8px var(--accent-soft); }
.rr-profile-time__note { margin-top: 12px; font-size: 12px; }

/* --- Brief + uploader notes --- */
.rr-brief { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 8px 14px; margin: 4px 0 12px; font-size: 14px; }
.rr-brief summary { cursor: pointer; font-weight: 600; color: var(--fg); }
.rr-brief p { margin: 8px 0 0; line-height: 1.5; }

/* --- Status badges --- */
.b { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
.b-ok { background: rgba(46,125,50,.12); color: var(--ok); }
.b-no { background: rgba(193,0,30,.12); color: var(--danger); }
.b-pen { background: rgba(183,121,31,.15); color: var(--warn); }
.b-amber { background: rgba(183,121,31,.15); color: var(--warn); }
.b-green { background: rgba(46,125,50,.12); color: var(--ok); }
.b-red { background: rgba(193,0,30,.12); color: var(--danger); }
.b-credit { background: rgba(251,146,60,.18); color: var(--hover-2); }
.b-upload { background: rgba(13,148,136,.15); color: var(--accent); }
.b + .b { margin-left: 4px; }

/* --- Credits --- */
.rr-uploader { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rr-credit-mini { font-size: 12px; color: var(--muted); }
.rr-credit-mini strong { color: var(--fg); }
.rr-credits { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.rr-credit-givers { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rr-credit-givers li { background: var(--bg-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 4px 12px; font-size: 12px; display: inline-flex; gap: 6px; align-items: center; }
.rr-credit-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rr-credit-status { font-size: var(--fs-sm); color: var(--muted); }
.rr-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(200,137,90,.15); color: #b06a3a; }
.rr-badge--t0 { background: rgba(46,125,50,.12); color: #2e7d32; }
.rr-badge--t1 { background: rgba(56,142,60,.14); color: #388e3c; }
.rr-badge--t2 { background: rgba(255,167,38,.18); color: #c77800; }
.rr-badge--t3 { background: rgba(33,150,243,.15); color: #1565c0; }
.rr-badge--t4 { background: rgba(156,39,176,.15); color: #7b1fa2; }
.rr-badge--t5 { background: rgba(0,150,136,.15); color: #00695c; }
.rr-badge--t6 { background: rgba(255,143,0,.18); color: #e65100; }
.rr-badge--t7 { background: linear-gradient(90deg, #c8895a, #b06a3a); color: #fff; box-shadow: var(--shadow); }

/* --- Recent movements timeline --- */
.rr-timeline { list-style: none; margin: 0; padding: 0; }
.rr-timeline li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: var(--fs-sm); }
.rr-timeline li:last-child { border-bottom: 0; }
.rr-timeline__when { color: var(--muted); min-width: 140px; }
.rr-timeline__who { color: var(--fg-2); min-width: 120px; }
.rr-timeline__task { margin-left: auto; color: var(--link); }
.rr-releases { list-style: none; margin: 0; padding: 0; }
.rr-releases li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.rr-releases li:last-child { border-bottom: 0; }

/* --- Consolidated change list --- */
.rr-changes { list-style: none; margin: 0; padding: 0; }
.rr-changes li { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 8px; }
.rr-change__head { font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.rr-change__body { color: var(--fg-2); white-space: pre-wrap; }

/* --- Admin nav --- */
.rr-admin-nav { display: flex; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.rr-admin-nav a { padding: 6px 12px; color: var(--fg-2); border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: 500; }
.rr-admin-nav a.is-active { background: var(--accent); color: var(--accent-fg); }
.rr-admin-nav a:hover { background: var(--accent-soft); color: var(--accent); }
.rr-admin-nav a.is-active:hover { background: var(--accent-2); color: var(--accent-fg); }

/* --- Workflow editor --- */
.rr-stage-edit { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.rr-stage-edit__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.rr-stage-edit__head input { flex: 1; padding: 8px 12px; border: 1px solid var(--border-2); border-radius: var(--radius-sm); background: var(--bg-card); }
.rr-stage-edit__num { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 12px; font-weight: 600; }
.rr-stage-edit__body { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px; align-items: start; }
.rr-stage-edit__body label { font-size: var(--fs-sm); }
.rr-stage-edit__body select[multiple] { min-height: 100px; }

/* --- Empty / Misc --- */
.rr-empty { background: var(--bg-2); border: 1px dashed var(--border-2); border-radius: var(--radius); padding: 40px 20px; text-align: center; color: var(--muted); }
.rr-due { font-size: 12px; color: var(--warn); margin-left: 4px; }
.rr-toolbar { margin-bottom: 16px; }
.rr-quick { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.rr-quick a { color: var(--link); font-weight: 500; }
.rr-brand-header { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.rr-brand-header h1 { font-size: var(--fs-xl); font-weight: 500; margin: 0 0 6px; }

/* --- Team reports (admin) --- */
.rr-team-reports { max-width: 1180px; margin: 0 auto; }
.rr-team-reports__hero {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 24px;
}
.rr-team-reports__hero-text h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.rr-team-reports__hero-text p { margin: 0; color: var(--muted); font-size: 14px; }
.rr-team-reports__hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.rr-team-reports__h2 { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.rr-team-reports__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rr-team-reports__table th { text-align: left; padding: 10px 12px; background: var(--bg-2); font-weight: 700; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; border-bottom: 1px solid var(--border); }
.rr-team-reports__table td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.rr-team-reports__table tr:last-child td { border-bottom: 0; }
.rr-team-reports__table .ta-r { text-align: right; }
.rr-team-reports__username { color: var(--muted); font-size: 12px; margin-left: 6px; }
.rr-team-reports__row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.rr-btn--sm { padding: 5px 10px; font-size: 12px; }

/* --- Export rail (bottom of dashboard) --- */
.rr-export-rail {
  margin-top: 48px;
  padding: 20px 0 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.rr-export-rail__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.rr-export-rail__text { display: flex; flex-direction: column; gap: 2px; }
.rr-export-rail__text strong { font-size: 15px; font-weight: 600; color: var(--fg); }
.rr-export-rail__text .rr-muted { font-size: 13px; }
.rr-export-rail__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* --- Mobile --- */
@media (max-width: 760px) {
  .rr-topbar { padding: 10px 16px; }
  .rr-main { padding: 20px 16px 60px; }
  .rr-form__grid { grid-template-columns: 1fr; }
  .rr-form__row { grid-template-columns: 1fr; }
  .rr-form__brands { grid-template-columns: 1fr; }
  .rr-decide__grid { grid-template-columns: 1fr; }
  .rr-stat-grid { grid-template-columns: repeat(3, 1fr); }
  .rr-stage-edit__body { grid-template-columns: 1fr; }
  .rr-stages { flex-direction: column; }
  .rr-stage { min-width: 0; }
  .rr-export-rail__inner { padding: 0 16px; }
  .rr-export-rail__actions { width: 100%; }
  .rr-export-rail__actions .rr-btn { flex: 1; justify-content: center; }
  .rr-topnav { gap: 4px; }
  .rr-hello { display: none; }
}
@media (max-width: 480px) {
  .rr-stat-grid { grid-template-columns: repeat(2, 1fr); }
}
