/* Ripple TX Artwork Review | shared styles */
:root {
  --black: #000000;
  --ink: #0B0B0C;
  --ink-2: #2E343A;
  --ink-3: #4A5560;
  --muted: #626C75;
  --faint: #8C959D;
  --bg: #F6F6F6;
  --stage: #ECEEF0;
  --card: #FFFFFF;
  --line: #E4E7EA;
  --line-2: #EEF0F2;
  --field: #D6DBE0;
  --btn-line: #CBD1D7;
  --navy: #2B5775;
  --navy-deep: #1F4259;
  --blue-2: #4E738C;
  --blue-3: #94AAB9;
  --sky: #ACD9EB;
  --tint: #EAF1F5;
  --amber: #8A6100;
  --amber-bg: #FBF1DB;
  --amber-dot: #D9A53A;
  --coral: #A3402B;
  --coral-bg: #FBEAE5;
  --coral-line: #EBB3A5;
  --coral-dot: #E07A62;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(11, 11, 12, 0.04);
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--navy); }
a:hover { color: var(--navy-deep); }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { margin: 0; font-weight: 300; font-size: 36px; line-height: 1.15; letter-spacing: -0.01em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Black ribbon */
.topbar { background: var(--black); color: #BCC3C9; }
.topbar-in { max-width: 1440px; margin: 0 auto; padding: 0 32px; min-height: 64px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.brand { display: flex; align-items: center; gap: 20px; text-decoration: none; }
.brand img { height: 18px; width: auto; display: block; }
.brand .divider { width: 1px; height: 22px; background: #2A2F33; }
.brand .tag { font-size: 12px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky); }
.nav { display: flex; gap: 4px; }
.nav a { padding: 9px 14px; border-radius: 10px; color: #BCC3C9; text-decoration: none; font-size: 14px; }
.nav a:hover { color: #fff; }
.nav a.on { background: #1C2329; color: #fff; font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--sky); color: #000; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0; }
.avatar.soft { background: var(--tint); color: var(--navy); }
.who a { color: #BCC3C9; font-size: 12px; }

.wrap { max-width: 1360px; margin: 0 auto; padding: 36px 32px 64px; }
.wrap.wide { max-width: 1440px; }
.eyebrow { font-size: 13px; color: var(--muted); }
.label-caps { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--btn-line); background: #fff; color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { border-color: var(--blue-3); color: var(--ink); }
.btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.btn.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: #fff; }
.btn.lg { min-height: 52px; font-size: 15px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled, .btn.primary:disabled { background: #E8EBEE; border-color: #E8EBEE; color: var(--muted); cursor: not-allowed; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field > label, .field > .lbl { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.input, select.input, textarea.input { width: 100%; min-height: 48px; border: 1px solid var(--field); border-radius: 12px; background: #fff; padding: 11px 14px; font-size: 14px; }
textarea.input { resize: vertical; line-height: 1.55; }
.hint { font-size: 12px; color: var(--muted); }
.error { color: var(--coral); font-size: 13px; }

/* Status pills */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pending, .pill.awaiting { color: var(--amber); background: var(--amber-bg); }
.pill.overdue, .pill.changes { color: var(--coral); background: var(--coral-bg); }
.pill.approved { color: var(--navy); background: var(--tint); }
.pill.draft, .pill.archived { color: var(--muted); background: #EEF1F4; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--coral); }

.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .topbar-in { padding: 0 16px; min-height: 56px; }
  .brand .divider, .brand .tag { display: none; }
  .wrap { padding: 24px 16px 48px; }
  h1 { font-size: 28px; }
  .who .name, .who .me-name { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
