@charset "UTF-8";

/* Reclassifica is an independent workspace. Keep its theme out of the other IDR tools. */
:root {
  color-scheme: light;
  --bg: #eeeae3;
  --surface: #fffdf8;
  --surface-2: #f3efe8;
  --surface-3: #e8e2d8;
  --ink: #272722;
  --muted: #68665e;
  --line: #d5cec1;
  --accent: #ff862f;
  --accent-ink: #321a09;
  --accent-text: #a34008;
  --positive: #24634c;
  --positive-bg: #e5f1e8;
  --warning: #835411;
  --warning-bg: #fff0d6;
  --negative: #a53b35;
  --negative-bg: #fce9e5;
  --shadow: 0 18px 34px #302b2110, 0 3px 0 #c9c1b4;
  --shadow-deep: 0 26px 50px #302b211f, 0 4px 0 #c9c1b4;
  --shine: inset 0 1px 0 #ffffffdc;
  --radius: 18px;
  --scroll-depth: 0px;
  font-family: "Segoe UI", "Arial", sans-serif;
  font-synthesis: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171a18;
  --surface: #252925;
  --surface-2: #2c302b;
  --surface-3: #383d35;
  --ink: #f5f2e9;
  --muted: #b5b9ad;
  --line: #464c41;
  --accent: #ff994d;
  --accent-ink: #2c190c;
  --accent-text: #ffb274;
  --positive: #a6d8b5;
  --positive-bg: #243c2f;
  --warning: #f0ce8d;
  --warning-bg: #423821;
  --negative: #ffb3a8;
  --negative-bg: #472d28;
  --shadow: 0 18px 34px #00000026, 0 3px 0 #0e110e;
  --shadow-deep: 0 26px 50px #00000040, 0 4px 0 #0c100d;
  --shine: inset 0 1px 0 #ffffff0b;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; scroll-padding-top: 115px; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.5; isolation: isolate; }
button, input, select, textarea { font: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; opacity: .5; box-shadow: none; transform: none !important; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -.045em; }
h1 { font-size: clamp(32px, 3.7vw, 52px); font-weight: 760; }
h2 { font-size: 26px; font-weight: 730; }
h3 { font-size: 19px; font-weight: 720; }
p { color: var(--muted); }
img, svg { max-width: 100%; }
svg { flex-shrink: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 4px; }
main:focus:not(:focus-visible) { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sr-only:focus { position: fixed; z-index: 999; width: auto; height: auto; clip: auto; left: 16px; top: 16px; padding: 12px 20px; background: var(--surface); border: 2px solid var(--accent); }
::selection { background: #ff994d66; color: inherit; }
.ico { display: inline-block; width: 21px; height: 21px; vertical-align: middle; flex: 0 0 auto; }
.ico svg { width: 100%; height: 100%; }
.code, code, .json, .rc-sheet-code { font-family: "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.full { width: 100%; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 16px; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.eyebrow, .rc-kicker { display: block; color: var(--accent-text); font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .15em; text-transform: uppercase; }

/* Ambient drawing board: motion belongs behind the work, never under a pointer. */
.rc-ambient { position: fixed; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.rc-ambient i { display: block; position: absolute; }
.rc-grid { inset: -35% -20%; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 82px 82px; opacity: .25; transform: perspective(950px) rotateX(48deg) rotateZ(-18deg) translateY(calc(var(--scroll-depth) * -.3)); mask-image: linear-gradient(transparent 12%, #000 45%, transparent 90%); }
.rc-glow { top: -260px; right: -210px; width: 780px; height: 780px; border-radius: 50%; background: radial-gradient(ellipse, #ff862f14, transparent 68%); animation: rc-atmosphere 18s ease-in-out infinite alternate; }
.rc-orbit { bottom: -480px; left: -310px; width: 1000px; height: 1000px; border: 1px solid var(--line); border-radius: 50%; box-shadow: 0 0 0 50px #ff862f03, 0 0 0 100px #ff862f03; opacity: .6; animation: rc-orbit-drift 22s ease-in-out infinite alternate; }
@keyframes rc-atmosphere { to { transform: translate3d(-100px, 100px, 0) scale(1.15); opacity: .55; } }
@keyframes rc-orbit-drift { to { transform: translate3d(65px, -80px, 0); opacity: .3; } }

/* Masthead and suspended workspace navigation. */
.rc-frame, .rc-auth-frame { width: min(100%, 1480px); margin: 0 auto; padding: 0 42px; }
.rc-topbar, .rc-auth-header { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 110px; padding: 22px 0; }
.rc-brand { display: inline-flex; align-items: center; gap: 22px; min-width: 0; text-decoration: none; }
.rc-brand img { width: 78px; height: 60px; object-fit: contain; flex-shrink: 0; }
.rc-brand > span { display: block; padding-left: 22px; border-left: 1px solid var(--line); }
.rc-brand strong { display: block; font-size: 26px; font-weight: 750; letter-spacing: -.055em; line-height: 1.05; }
.rc-brand strong > span { color: var(--accent-text); }
.rc-brand small { display: block; margin-top: 8px; font-size: 8px; font-weight: 800; letter-spacing: .18em; color: var(--muted); }
.rc-header-actions { display: flex; gap: 12px; align-items: center; }
.rc-environment { display: flex; align-items: center; gap: 9px; margin-right: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.rc-environment i, .rc-environment .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 4px #4e987018; }
.rc-icon-button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--ink); box-shadow: var(--shine), 0 2px 0 #0000000b; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.rc-icon-button:hover, .icon-button:hover { border-color: var(--accent); background: var(--surface-2); transform: translateY(-2px); }
.rc-icon-button:active, .icon-button:active { transform: translateY(1px); }
.rc-icon-button .ico { width: 18px; height: 18px; }
.rc-user-avatar { display: inline-grid; place-items: center; height: 30px; width: 30px; background: var(--surface-3); color: var(--ink); border-radius: 50%; font-size: 11px; font-weight: 800; flex-shrink: 0; }
.rc-dropdown { position: relative; }
.rc-dropdown > summary { list-style: none; display: flex; gap: 9px; align-items: center; min-height: 44px; padding: 6px 10px 6px 6px; border: 1px solid transparent; border-radius: 14px; color: var(--ink); font-size: 12px; font-weight: 650; }
.rc-dropdown > summary::-webkit-details-marker { display: none; }
.rc-dropdown > summary > span:not(.ico):not(.rc-user-avatar) { max-width: 170px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rc-dropdown > summary > .ico:last-child { width: 14px; height: 14px; color: var(--muted); transition: transform .2s; }
.rc-dropdown[open] > summary { border-color: var(--line); background: var(--surface); box-shadow: var(--shine); }
.rc-dropdown[open] > summary > .ico:last-child { transform: rotate(180deg); }
.rc-dropdown-panel { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: 250px; max-width: calc(100vw - 32px); padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow-deep); animation: rc-menu-enter .18s ease both; }
.rc-dropdown-panel::before { content: ""; position: absolute; right: 21px; top: -5px; width: 9px; height: 9px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--surface); transform: rotate(45deg); }
.rc-dropdown-panel > button, .rc-dropdown-panel > a { display: flex; width: 100%; align-items: center; gap: 11px; min-height: 44px; padding: 12px; background: transparent; border: 0; border-radius: 10px; color: var(--ink); text-align: left; text-decoration: none; font-size: 12px; font-weight: 600; }
.rc-dropdown-panel > button:hover, .rc-dropdown-panel > a:hover { background: var(--surface-2); color: var(--accent-text); }
.rc-dropdown-panel .ico { width: 18px; height: 18px; }
.rc-dropdown-panel hr { height: 1px; margin: 5px 10px; border: 0; background: var(--line); }
.rc-dropdown-panel > small, .rc-dropdown-panel > p { display: block; padding: 9px 12px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.rc-dropdown-panel > strong { display: block; padding: 9px 12px 2px; font-size: 12px; overflow-wrap: anywhere; }
.rc-dropdown-panel > span { display: block; padding: 2px 12px 9px; }
.rc-dropdown-panel > .rc-menu-label { padding: 10px 12px 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .14em; }
@keyframes rc-menu-enter { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.rc-navigation { position: sticky; z-index: 30; top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 21px; background: var(--surface); box-shadow: 0 8px 22px #25231912, var(--shine); }
.rc-navigation nav { display: flex; gap: 5px; align-items: center; min-width: 0; padding: 2px; }
.rc-nav-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 20px; min-height: 48px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; transition: color .18s, background .18s, transform .18s; }
.rc-nav-tab .ico { width: 19px; height: 19px; }
.rc-nav-tab:hover { color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.rc-nav-tab[aria-selected="true"] { color: var(--surface); background: var(--ink); border-color: var(--ink); box-shadow: inset 0 1px 0 #ffffff20, 0 3px 0 #00000020; }
.rc-nav-tab[aria-selected="true"]::before { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); left: 10px; top: 50%; margin-top: -2px; }
:root[data-theme="dark"] .rc-nav-tab[aria-selected="true"] { background: #e4e9dc; color: #20251e; border-color: #e4e9dc; }
.rc-nav-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; background: #7a7a751a; border: 1px solid #7a7a7526; border-radius: 6px; font-size: 10px; font-variant-numeric: tabular-nums; }
.rc-nav-actions { display: flex; align-items: center; gap: 8px; padding-right: 1px; flex-shrink: 0; }
.rc-main { padding: 36px 0 10px; min-height: calc(100vh - 310px); }
.rc-main > * { min-width: 0; }
.loading { width: min(520px, calc(100% - 32px)); margin: 20vh auto; padding: 32px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); color: var(--muted); text-align: center; box-shadow: var(--shadow); }
.rc-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 28px; }
.rc-heading .eyebrow { margin-bottom: 11px; }
.rc-heading h1 { font-size: clamp(30px, 3vw, 43px); }
.rc-heading p { margin-top: 13px; max-width: 680px; font-size: 13px; }
.rc-head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Tactile, consistently sized controls. */
button:not(:where(.rc-nav-tab, .rc-icon-button, .icon-button, .rc-dropdown-panel button, .rc-project-tabs button)), .button-link, .rc-button, button.primary, button.secondary, button.ghost, a.secondary, a.primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 46px; max-width: 100%; border: 1px solid #ad5b1f; border-bottom-width: 3px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); padding: 12px 19px; font-size: 12px; font-weight: 750; line-height: 1.35; text-decoration: none; box-shadow: inset 0 1px 0 #ffffff66, 0 3px 9px #00000009; transition: transform .18s, box-shadow .18s, background .18s; }
button:not(:where(.rc-nav-tab, .rc-icon-button, .icon-button, .rc-dropdown-panel button, .rc-project-tabs button)) > .ico, .button-link .ico, .rc-button .ico, button.primary .ico, button.secondary .ico, button.ghost .ico { width: 18px; height: 18px; }
button:not(:where(.rc-nav-tab, .rc-icon-button, .icon-button, .rc-dropdown-panel button, .rc-project-tabs button)):hover, .button-link:hover, .rc-button:hover, button.primary:hover, button.secondary:hover, button.ghost:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #ffffff33, 0 6px 13px #00000012; }
button:not(:where(.rc-nav-tab, .rc-icon-button, .icon-button, .rc-dropdown-panel button, .rc-project-tabs button)):active, .button-link:active, .rc-button:active, button.primary:active, button.secondary:active, button.ghost:active { transform: translateY(1px); box-shadow: none; }
.rc-button.secondary, button.secondary, a.secondary { background: var(--surface); border-color: var(--line); color: var(--ink); box-shadow: var(--shine); }
.rc-button.ghost, button.ghost { background: transparent; border-color: transparent; border-bottom-width: 1px; color: var(--muted); box-shadow: none; }
.rc-button.ghost:hover, button.ghost:hover { background: var(--surface-2); color: var(--ink); }
.rc-button.small, button.small { min-height: 44px; padding: 10px 13px; font-size: 11px; }
.rc-button.danger { color: var(--negative); background: var(--negative-bg); border-color: var(--negative); }
.rc-button.full { width: 100%; }
form { min-width: 0; }
#project-upload, #project-form, #review-form { display: grid; gap: 22px; }
#modal-content > .eyebrow { margin-bottom: 12px; }
#modal-content > h2 { margin-bottom: 15px; }
#modal-content > p { margin: 0 0 22px; font-size: 12px; line-height: 1.8; }
#modal-content > form { margin-top: 25px; }
#modal-content > .button-link { margin-top: 6px; }
.rc-empty-wide { grid-column: 1 / -1; }

/* Dashboard: a workbench, a register, and a clear next action. */
.rc-welcome { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); align-items: center; gap: 25px; overflow: hidden; min-height: 315px; padding: 40px 45px; border: 1px solid #42483e; border-radius: 23px; background: #232720; color: #faf7ec; box-shadow: 0 5px 0 #141a13, 0 20px 30px #171e1718; }
.rc-welcome::before { content: ""; position: absolute; inset: -10% -10% -60% 48%; border: 1px solid #f5edcc16; border-radius: 50%; transform: rotate(-25deg); box-shadow: 0 0 0 54px #f5edcc04, 0 0 0 108px #f5edcc03; pointer-events: none; }
.rc-welcome::after { content: "+"; position: absolute; top: 22px; right: 24px; font-family: monospace; font-size: 24px; line-height: 1; color: #c8c7b470; }
.rc-welcome-copy { position: relative; z-index: 2; max-width: 660px; }
.rc-welcome-copy .eyebrow, .rc-welcome-copy .rc-kicker { color: #ffb47d; }
.rc-welcome h1 { margin: 17px 0 17px; font-size: clamp(35px, 4.3vw, 57px); line-height: 1.04; letter-spacing: -.055em; font-weight: 620; }
.rc-welcome h1 strong { color: #ff994d; font-weight: 750; }
.rc-welcome p { max-width: 520px; color: #c3c8ba; font-size: 13px; line-height: 1.7; }
.rc-welcome .row { margin-top: 25px; }
.rc-welcome .secondary { color: #f6f5e9; border-color: #606757; background: #353c30; }
.rc-welcome .ghost { color: #d9dfd2; }
.rc-workflow-visual { position: relative; height: 260px; min-width: 0; perspective: 1100px; transform-style: preserve-3d; }
.rc-sheet { position: absolute; width: 205px; height: 228px; padding: 22px; border-radius: 12px; transform-style: preserve-3d; box-shadow: 12px 20px 25px #00000025, 3px 4px 0 #0000002b; animation: rc-sheet-float 8s ease-in-out infinite; }
.rc-sheet-back { z-index: 1; top: 4px; left: 8%; --sheet-rotate: -13deg; background: #f1efe4; color: #4b4d42; border: 1px solid #e5e2d2; transform: rotate(-13deg) rotateY(-14deg); animation-delay: -3s; }
.rc-sheet-front { z-index: 2; display: flex; flex-direction: column; top: 30px; left: 35%; --sheet-rotate: 8deg; --sheet-depth: 40px; background: #ff994d; color: #321a09; border: 1px solid #ffb678; transform: translateZ(40px) rotate(8deg) rotateY(-14deg); box-shadow: 12px 23px 30px #00000030, 3px 4px 0 #ae5119, inset 0 1px 0 #ffd2a8; }
.rc-sheet > span:first-child, .rc-sheet > small:first-child { display: block; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.rc-sheet > .ico { width: 34px; height: 34px; margin: 20px 0 12px; }
.rc-sheet > strong { display: block; margin: 18px 0; font-size: 24px; line-height: 1.05; letter-spacing: -.05em; }
.rc-sheet-line { display: block; width: 100%; height: 5px; border-radius: 3px; background: currentColor; opacity: .18; margin: 10px 0; }
.rc-sheet-line:nth-child(2n) { width: 75%; }
.rc-sheet-code { display: block; margin-top: 16px; padding-top: 11px; border-top: 1px solid #45250d40; font-size: 10px; letter-spacing: .04em; }
.rc-sheet-front > .rc-sheet-code:first-child { margin: 0; padding: 0; border: 0; font-size: 8px; letter-spacing: .03em; white-space: nowrap; }
.rc-sheet-front > .ico { width: 25px; height: 25px; margin: 12px 0 0; }
.rc-sheet-front > strong { margin: 12px 0; font-size: 24px; line-height: 1.04; }
.rc-sheet-stamp { display: flex; align-items: center; gap: 5px; padding-top: 9px; margin-top: auto; border-top: 1px solid #45250d40; font-size: 6px; font-weight: 800; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; }
.rc-sheet-stamp .ico { width: 11px; height: 11px; flex-shrink: 0; }
@keyframes rc-sheet-float { 0%, 100% { transform: translate3d(0, 0, var(--sheet-depth, 0px)) rotate(var(--sheet-rotate, 8deg)) rotateY(-14deg); } 50% { transform: translate3d(0, -10px, var(--sheet-depth, 0px)) rotate(var(--sheet-rotate, 8deg)) rotateY(-14deg); } }
.rc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 29px 0 34px; }
.rc-metric { position: relative; min-width: 0; padding: 21px 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shine), 0 3px 0 #00000007; }
.rc-metric:first-child { border-left: 4px solid var(--accent); padding-left: 21px; }
.rc-metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 650; color: var(--muted); }
.rc-metric-label .ico { width: 17px; height: 17px; opacity: .7; }
.rc-metric > strong { display: block; margin-top: 9px; font-size: clamp(27px, 3vw, 36px); line-height: 1.15; font-weight: 730; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.rc-metric > small { display: block; margin-top: 8px; color: var(--muted); font-size: 10px; }
.rc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.rc-section-head h2 { font-size: 24px; }
.rc-section-head .eyebrow { margin-bottom: 7px; }
.rc-section-head p { font-size: 12px; margin-top: 8px; }
.rc-project-grid + .rc-section-head, .rc-panel + .rc-section-head { margin-top: 39px; }
.rc-work-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(265px, 1fr); align-items: start; gap: 26px; }
.rc-work-grid > * { min-width: 0; }
.rc-guide { position: relative; padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); box-shadow: var(--shine); }
.rc-guide > .ico { width: 28px; height: 28px; color: var(--accent-text); margin-bottom: 15px; }
.rc-guide h3 { font-size: 21px; margin-bottom: 12px; }
.rc-guide p { font-size: 12px; line-height: 1.75; }
.rc-guide .rc-button { margin-top: 20px; }
.rc-guide ol { padding-left: 19px; margin: 21px 0 0; font-size: 12px; color: var(--muted); }
.rc-guide li { padding-left: 6px; margin-top: 14px; }
.rc-guide li::marker { color: var(--accent-text); font-weight: 800; }
.rc-guide strong { color: var(--ink); }
.rc-project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rc-work-grid .rc-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rc-project-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.rc-project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-deep); border-color: #b3906f; }
.rc-project-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 24px; }
.rc-project-top > .ico, .rc-project-top > .rc-project-icon { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; color: var(--accent-text); box-shadow: var(--shine), 2px 2px 0 #00000007; }
.rc-project-card h3 { font-size: 19px; line-height: 1.25; overflow-wrap: anywhere; }
.rc-project-card > p { margin-top: 8px; font-size: 11px; overflow-wrap: anywhere; }
.rc-project-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding: 21px 0; margin-top: auto; }
.rc-project-meta > div { min-width: 0; }
.rc-project-meta small, .rc-project-meta span { display: block; font-size: 10px; color: var(--muted); }
.rc-project-meta strong { display: block; font-size: 13px; margin-top: 5px; overflow-wrap: anywhere; }
.rc-project-card footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 17px; }
.rc-project-card footer > span, .rc-project-card footer > small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.rc-project-card footer .rc-button { flex-shrink: 0; }
.rc-toolbar { display: flex; align-items: center; gap: 12px; padding: 13px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shine); }
.rc-search { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 0 8px; }
.rc-search > .ico { color: var(--muted); width: 20px; height: 20px; }
.rc-search > input { width: 100%; min-width: 0; height: 44px; padding: 8px 0; border: 0; background: transparent; color: var(--ink); outline-offset: 3px; }
.rc-search > input::placeholder { color: var(--muted); opacity: 1; }
.rc-toolbar > select { width: auto; min-width: 170px; }
.rc-results-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 2px 20px; color: var(--muted); font-size: 11px; }
.rc-empty { display: grid; justify-items: center; text-align: center; gap: 15px; padding: 48px 25px; border: 1px dashed var(--line); border-radius: 17px; background: var(--surface); }
.rc-empty-icon { display: grid; place-items: center; width: 70px; height: 70px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); box-shadow: 3px 4px 0 var(--surface-3); color: var(--accent-text); transform: rotate(-5deg); margin-bottom: 8px; }
.rc-empty-icon .ico { width: 30px; height: 30px; transform: rotate(5deg); }
.rc-empty h2 { font-size: 24px; }
.rc-empty p { max-width: 470px; font-size: 13px; line-height: 1.75; }
.rc-empty .rc-button { margin-top: 8px; }
.rc-panel, .card { padding: 26px; min-width: 0; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shine), 0 3px 0 #00000008; }
.rc-panel > h2, .card > h2 { margin-bottom: 13px; }
.rc-panel > p, .card > p { font-size: 13px; line-height: 1.7; }
.rc-panel > .row, .card > .row { margin-top: 20px; }
.rc-pipeline { counter-reset: pipeline; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.rc-pipeline > div, .rc-pipeline > article { position: relative; min-width: 0; padding: 25px 22px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shine); }
.rc-step-number { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line); font-size: 11px; font-weight: 800; color: var(--accent-text); margin-bottom: 19px; }
.rc-pipeline strong { display: block; font-size: 14px; margin-bottom: 10px; }
.rc-pipeline p { font-size: 12px; line-height: 1.7; }

/* Project workspace, upload, review, and processing. */
.rc-project-banner { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 32px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); box-shadow: var(--shadow); }
.rc-project-banner h1 { font-size: clamp(29px, 3vw, 40px); margin: 9px 0 12px; overflow-wrap: anywhere; }
.rc-project-banner p { font-size: 12px; }
.rc-project-banner::before { content: ""; width: 4px; position: absolute; top: 26px; bottom: 26px; left: -1px; background: var(--accent); border-radius: 0 4px 4px 0; }
.rc-project-banner + .rc-page-head { margin-top: 28px; }
.rc-project-banner:has(> button:first-child) { padding: 10px 17px; border-radius: 13px; box-shadow: var(--shine); }
.rc-project-banner:has(> button:first-child)::before { top: 13px; bottom: 13px; }
.rc-context { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; padding: 19px 2px; color: var(--muted); font-size: 11px; }
.rc-context > span { display: inline-flex; align-items: center; gap: 7px; }
.rc-context .ico { width: 15px; height: 15px; }
.rc-context strong { color: var(--ink); font-weight: 700; }
.rc-project-tabs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 7px 0 27px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.rc-project-tabs > button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 18px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; transition: background .2s, color .2s; }
.rc-project-tabs > button:hover { color: var(--ink); background: var(--surface); }
.rc-project-tabs > button[aria-selected="true"] { color: var(--accent-text); background: var(--surface); border-color: var(--line); box-shadow: 0 2px 4px #00000007; }
.rc-project-tabs .ico { width: 17px; height: 17px; }
.rc-project-tabs > button > span { font-family: Consolas, monospace; font-size: 10px; opacity: .7; }
.rc-project-tabs > button > small { min-width: 19px; padding: 2px 6px; border-radius: 5px; background: var(--surface-3); font-size: 9px; font-variant-numeric: tabular-nums; }
.rc-project-panel { min-width: 0; }
.rc-upload-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(270px, 1fr); align-items: start; gap: 23px; }
.rc-upload-layout > * { min-width: 0; }
.rc-upload-guide { padding: 26px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.rc-upload-guide h3 { font-size: 20px; margin-bottom: 14px; }
.rc-upload-guide p, .rc-upload-guide li { font-size: 12px; color: var(--muted); line-height: 1.8; }
.rc-upload-guide ul, .rc-upload-guide ol { padding-left: 18px; margin: 18px 0; }
.rc-upload-guide li { padding-left: 3px; margin: 9px 0; }
.rc-upload-guide li::marker { color: var(--accent-text); }
.rc-upload-guide .rc-kicker { margin-bottom: 14px; }
.rc-upload-guide h2 { font-size: 28px; line-height: 1.12; }
.rc-upload-guide li > strong { font-size: 12px; color: var(--ink); }
.rc-upload-guide li > p { margin-top: 5px; }
.rc-panel > .rc-kicker { margin-bottom: 12px; }
.rc-source-details { margin-top: 23px; border-top: 1px solid var(--line); padding-top: 17px; }
.rc-source-details summary { font-size: 11px; font-weight: 650; color: var(--muted); }
.rc-source-details .code, .rc-source-details code { display: block; margin-top: 14px; font-size: 10px; white-space: normal; overflow-wrap: anywhere; }
.file-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; min-height: 245px; padding: 35px 24px; text-align: center; border: 1px dashed var(--line); border-radius: 15px; background: var(--surface-2); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop:focus-within, .file-drop.drag-over { border-color: var(--accent); background: var(--surface); }
.rc-upload-icon { display: grid; place-items: center; width: 61px; height: 65px; margin-bottom: 4px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--accent-text); box-shadow: 3px 4px 0 var(--surface-3); transform: rotate(-6deg); }
.rc-upload-icon .ico { width: 27px; height: 27px; transform: rotate(6deg); }
.file-drop h3 { font-size: 20px; }
.file-drop p, .file-drop small { color: var(--muted); font-size: 12px; }
.file-picker { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: 100%; }
.file-picker .pick { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer; }
.native-file { width: 100%; max-width: 100%; min-height: 44px; color: var(--muted); font-size: 12px; }
.native-file::file-selector-button { margin-right: 14px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.file-drop > .native-file { position: absolute; top: 50%; left: 50%; width: 1px; height: 1px; min-height: 0; overflow: hidden; opacity: 0; padding: 0; }
.file-picker:has(.pick) .native-file { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.file-name { max-width: 100%; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label, label.field > span { color: var(--ink); font-size: 12px; font-weight: 650; }
.field > small { font-size: 11px; color: var(--muted); line-height: 1.6; }
.field input, .field select, .field textarea, input:not([type]):not(.rc-search input), input[type="text"]:not(.rc-search input), input[type="email"], input[type="password"], input[type="number"], select, textarea { width: 100%; min-width: 0; min-height: 46px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); box-shadow: inset 0 2px 3px #00000003; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--muted); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-text); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-text); width: 17px; height: 17px; flex-shrink: 0; }
textarea { min-height: 110px; resize: vertical; }
.rc-summary-strip { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 20px 0; }
.rc-stat-chip { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.rc-stat-chip strong { color: var(--ink); font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.rc-review-count { padding: 4px 8px; background: var(--surface-3); border-radius: 6px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 24px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 10px; line-height: 1.3; font-weight: 700; white-space: nowrap; }
.pill.ok, .pill.success { color: var(--positive); background: var(--positive-bg); border-color: #51966a35; }
.pill.warn, .pill.pending { color: var(--warning); background: var(--warning-bg); border-color: #a27f3630; }
.pill.error, .pill.failed { color: var(--negative); background: var(--negative-bg); border-color: #b04c3930; }
.pill .ico { width: 12px; height: 12px; }
.notice { padding: 15px 18px; margin: 16px 0; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 3px 10px 10px 3px; background: var(--surface-2); color: var(--muted); font-size: 12px; line-height: 1.7; }
.notice.blue { color: var(--muted); background: var(--surface-2); border-left-color: var(--positive); }
.notice strong { color: var(--ink); }
.notice.error { border-left-color: var(--negative); background: var(--negative-bg); color: var(--negative); }
.notice .ico { width: 17px; height: 17px; margin-right: 5px; color: var(--accent-text); }
.error-text { color: var(--negative); font-size: 12px; line-height: 1.6; }
.rc-job-card { margin-bottom: 18px; padding: 22px 25px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); box-shadow: var(--shine), 0 3px 0 #00000007; }
.rc-job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rc-job-head h3 { font-size: 17px; line-height: 1.3; }
.rc-job-head p { font-size: 11px; margin-top: 7px; }
.rc-job-progress { margin-top: 21px; }
.rc-job-progress > strong { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 650; }
.rc-progress { height: 7px; width: 100%; overflow: hidden; border-radius: 9px; background: var(--surface-3); box-shadow: inset 0 1px 2px #00000008; }
.rc-progress > span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: inherit; transition: width .3s ease; }
.rc-progress > span.is-complete { width: 100%; background: var(--positive); }
.rc-progress.is-running > span { width: 32%; animation: rc-working 1.6s ease-in-out infinite; }
@keyframes rc-working { from { transform: translateX(-110%); } to { transform: translateX(420%); } }
.rc-job-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 15px; color: var(--muted); font-size: 11px; }
.rc-job-footer .rc-button { margin-left: auto; }
.table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 12px; }
th { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .02em; white-space: nowrap; }
td { padding: 15px 16px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--surface-2); }
td small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.rc-line-reason { width: 350px; min-width: 230px; max-width: 350px; font-size: 11px; line-height: 1.7; white-space: normal; }
td .rc-button { white-space: nowrap; }
.pager { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; font-size: 11px; color: var(--muted); }
.pager > div { display: flex; align-items: center; gap: 8px; }
.json { overflow: auto; max-width: 100%; max-height: 440px; margin: 16px 0; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: 11px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.rc-review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.rc-review-grid > * { min-width: 0; }
.rc-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px 0 28px; margin-top: 50px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.rc-footer > span:first-child { font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }

/* Authentication gets the same visual care as the workspace. */
.rc-auth-frame { max-width: 1440px; }
.rc-auth-header { border-bottom: 1px solid var(--line); }
.rc-auth-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: clamp(50px, 8vw, 125px); align-items: center; min-height: calc(100vh - 205px); padding: 55px 0 45px; }
.rc-auth-story { min-width: 0; }
.rc-auth-story > .eyebrow { display: flex; gap: 10px; align-items: center; }
.rc-auth-story > .eyebrow::before { content: ""; width: 25px; height: 2px; background: var(--accent); }
.rc-auth-story h1 { margin: 18px 0 21px; max-width: 700px; font-size: clamp(45px, 5.3vw, 74px); line-height: 1.015; font-weight: 650; letter-spacing: -.06em; }
.rc-auth-story h1 strong, .rc-auth-story h1 em { color: var(--accent-text); font-style: normal; font-weight: 750; }
.rc-auth-story > p { max-width: 510px; font-size: 14px; line-height: 1.8; }
.rc-auth-story .rc-auth-visual { position: relative; width: min(100%, 440px); height: 284px; margin: 12px 0 0 0; perspective: 1100px; transform-style: preserve-3d; }
.rc-auth-story .rc-auth-visual::before { content: ""; position: absolute; width: 300px; height: 130px; border-radius: 50%; border: 1px solid var(--line); left: 38px; bottom: 3px; transform: rotate(-12deg); box-shadow: 0 0 0 20px #8a807a05, 0 0 0 40px #8a807a03; }
.rc-auth-story .rc-auth-visual .rc-sheet { height: 226px; width: 200px; padding: 20px; box-shadow: 10px 15px 25px #302b2121, 3px 4px 0 #00000016; }
.rc-auth-story .rc-auth-visual .rc-sheet-back { left: 9%; top: 27px; background: var(--surface); color: var(--ink); border-color: var(--line); }
.rc-auth-story .rc-auth-visual .rc-sheet-front { left: 40%; top: 39px; background: #ff994d; color: #321a09; box-shadow: 13px 16px 25px #302b2128, 3px 4px 0 #b25b20; }
.rc-auth-story .rc-auth-visual .rc-sheet > strong { font-size: 24px; margin: 12px 0; }
.rc-auth-proof { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 17px; color: var(--muted); font-size: 11px; }
.rc-auth-proof > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.rc-auth-proof strong { display: block; color: var(--ink); font-size: 25px; font-weight: 750; letter-spacing: -.04em; line-height: 1.3; }
.rc-auth-proof small { display: block; margin-top: 5px; font-size: 10px; }
.rc-auth-proof span { display: block; margin-top: 5px; font-size: 10px; }
.rc-login-panel { position: relative; min-width: 0; max-width: 495px; width: 100%; padding: 39px 37px 27px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow-deep); }
.rc-login-panel::before { content: ""; position: absolute; z-index: -1; left: 13px; right: 13px; height: 24px; top: -8px; border: 1px solid var(--line); border-radius: 15px 15px 0 0; background: var(--surface-3); transform: rotate(-1.7deg); }
.rc-login-panel > .eyebrow { margin-bottom: 16px; }
.rc-login-panel > .rc-kicker { margin-bottom: 16px; }
.rc-login-panel h2 { margin-bottom: 13px; font-size: 33px; line-height: 1.1; font-weight: 750; }
.rc-login-panel > p { max-width: 340px; font-size: 12px; line-height: 1.8; }
.rc-login-panel form { display: grid; gap: 20px; margin-top: 29px; }
.rc-login-panel form .rc-button, .rc-login-panel form button[type="submit"] { margin-top: 2px; width: 100%; min-height: 49px; }
.rc-login-panel .notice { margin: 0; }
.rc-login-footer { display: flex; align-items: flex-start; gap: 9px; margin-top: 26px; padding-top: 19px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.7; color: var(--muted); }
.rc-login-footer .ico { width: 16px; height: 16px; margin-top: 1px; flex-shrink: 0; }
.rc-auth-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 23px 0 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.rc-auth-footer strong { color: var(--ink); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }

/* Dialogs and feedback belong above both navigation layers. */
dialog#modal { width: min(900px, calc(100vw - 32px)); max-width: none; max-height: 85vh; overflow: auto; padding: 31px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px #00000055; }
dialog#modal::backdrop { background: #10170f8f; backdrop-filter: blur(8px); }
dialog#modal h2 { font-size: 29px; }
dialog#modal > p, dialog#modal form > p { margin-top: 12px; font-size: 12px; line-height: 1.8; }
dialog#modal form { display: grid; gap: 20px; }
dialog#modal .grid { gap: 17px; }
dialog#modal .row.between { margin-bottom: 16px; }
dialog#modal .row:has(button[type="submit"]) { margin-top: 10px; justify-content: flex-end; }
dialog#modal > .close { display: flex; margin: 22px 0 0 auto; }
#toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translateX(-50%); width: max-content; max-width: min(560px, calc(100vw - 32px)); padding: 14px 20px; border: 1px solid #56634e; border-radius: 13px; background: #293525; color: #f7faef; box-shadow: 0 12px 30px #00000035; font-size: 12px; text-align: center; overflow-wrap: anywhere; }
#toast:empty { display: none; }
#toast.error { background: #552d28; border-color: #8c5042; }

@media (min-width: 1600px) {
  .rc-welcome { padding-top: 45px; padding-bottom: 45px; }
  .rc-auth-layout { min-height: min(790px, calc(100vh - 205px)); }
}
@media (max-width: 1150px) {
  .rc-frame, .rc-auth-frame { padding-left: 28px; padding-right: 28px; }
  .rc-environment { display: none; }
  .rc-nav-tab { padding-left: 15px; padding-right: 15px; }
  .rc-navigation { gap: 9px; }
  .rc-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-work-grid { grid-template-columns: minmax(0, 1.8fr) minmax(245px, 1fr); gap: 20px; }
  .rc-work-grid .rc-project-grid { grid-template-columns: 1fr; }
  .rc-welcome { padding: 32px; grid-template-columns: minmax(0, 1.4fr) minmax(230px, .7fr); }
  .rc-sheet { width: 178px; height: 212px; padding: 20px; }
  .rc-sheet-front { left: 27%; }
  .rc-sheet-back { left: 0; }
  .rc-workflow-visual { height: 245px; }
  .rc-metric { padding: 18px; }
  .rc-metric:first-child { padding-left: 15px; }
  .rc-upload-layout { grid-template-columns: minmax(0, 1.4fr) minmax(230px, 1fr); }
  .rc-auth-layout { gap: 48px; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); }
  .rc-auth-story h1 { font-size: 56px; }
  .rc-login-panel { padding: 32px 28px 25px; }
}
@media (max-width: 900px) {
  .rc-topbar, .rc-auth-header { min-height: 95px; padding: 18px 0; }
  .rc-brand img { width: 65px; height: 50px; }
  .rc-brand { gap: 17px; }
  .rc-brand > span { padding-left: 17px; }
  .rc-brand strong { font-size: 24px; }
  .rc-navigation { gap: 8px; padding: 6px; }
  .rc-navigation nav { overflow-x: auto; scrollbar-width: none; }
  .rc-navigation nav::-webkit-scrollbar { display: none; }
  .rc-nav-tab { padding: 13px 14px; min-height: 46px; font-size: 11px; }
  .rc-nav-tab .ico { width: 17px; height: 17px; }
  .rc-nav-actions > .rc-button, .rc-nav-actions > button { padding: 11px 13px; font-size: 11px; }
  .rc-main { padding-top: 28px; }
  .rc-work-grid { grid-template-columns: minmax(0, 1fr); }
  .rc-work-grid .rc-project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-guide { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: start; }
  .rc-guide > .ico { grid-row: span 3; }
  .rc-guide > h3, .rc-guide > p, .rc-guide > ol, .rc-guide > .rc-button { grid-column: 2; }
  .rc-guide > .rc-button { justify-self: start; }
  .rc-pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-welcome { grid-template-columns: minmax(0, 1.4fr) minmax(180px, .6fr); padding: 29px; gap: 15px; }
  .rc-welcome h1 { font-size: 39px; }
  .rc-welcome p { font-size: 12px; }
  .rc-workflow-visual { height: 225px; }
  .rc-sheet { width: 153px; height: 189px; padding: 16px; }
  .rc-sheet-front { left: 15%; top: 34px; }
  .rc-sheet > strong { font-size: 21px; }
  .rc-sheet-front > .ico { width: 24px; height: 24px; margin-top: 8px; }
  .rc-sheet-front > strong { font-size: 21px; margin: 10px 0; }
  .rc-metrics { gap: 12px; }
  .rc-metric-label { font-size: 10px; }
  .rc-metric-label .ico { display: none; }
  .rc-metric > strong { font-size: 28px; }
  .rc-metric > small { font-size: 9px; }
  .rc-upload-layout { grid-template-columns: 1fr; }
  .rc-upload-guide { padding: 22px; }
  .rc-auth-layout { grid-template-columns: minmax(0, 1fr) minmax(310px, .95fr); gap: 30px; padding-top: 40px; }
  .rc-auth-story h1 { font-size: 46px; }
  .rc-auth-story > p { font-size: 12px; }
  .rc-auth-story .rc-auth-visual { height: 260px; }
  .rc-auth-story .rc-auth-visual .rc-sheet { width: 170px; height: 212px; padding: 17px; }
  .rc-auth-story .rc-auth-visual .rc-sheet-front { left: 34%; }
  .rc-auth-story .rc-auth-visual .rc-sheet > strong { font-size: 23px; margin: 10px 0; }
  .rc-auth-story .rc-auth-visual::before { width: 240px; left: 13px; }
  .rc-auth-proof { gap: 15px; }
  .rc-auth-proof > div + div { padding-left: 15px; }
  .rc-auth-proof strong { font-size: 22px; }
  .rc-auth-proof small { font-size: 9px; }
  .rc-login-panel { padding: 28px 24px 23px; }
  .rc-login-panel h2 { font-size: 29px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 92px; }
  .rc-frame, .rc-auth-frame { padding: 0 20px; }
  .rc-topbar, .rc-auth-header { gap: 14px; min-height: 88px; padding: 17px 0; }
  .rc-brand { gap: 13px; }
  .rc-brand img { width: 57px; height: 45px; }
  .rc-brand > span { padding-left: 13px; }
  .rc-brand strong { font-size: 22px; }
  .rc-brand small { font-size: 7px; margin-top: 7px; letter-spacing: .1em; }
  .rc-header-actions { gap: 7px; }
  .rc-header-actions .rc-dropdown > summary { padding: 5px; }
  .rc-header-actions .rc-dropdown > summary > span:not(.ico):not(.rc-user-avatar) { display: none; }
  .rc-header-actions .rc-dropdown > summary > .ico:last-child { display: none; }
  .rc-header-actions .rc-dropdown > summary { min-width: 40px; }
  .rc-icon-button { width: 44px; height: 44px; padding: 10px; }
  .rc-navigation { top: 8px; border-radius: 17px; gap: 5px; padding: 5px; }
  .rc-navigation nav { gap: 3px; padding: 2px 1px; flex: 1; }
  .rc-nav-tab { min-height: 45px; padding: 10px 13px; gap: 7px; font-size: 11px; border-radius: 11px; }
  .rc-nav-tab[aria-selected="true"]::before { display: none; }
  .rc-nav-count { min-width: 17px; height: 17px; font-size: 9px; }
  .rc-nav-actions { padding-right: 0; }
  .rc-nav-actions .rc-button, .rc-nav-actions > button { min-width: 44px; min-height: 44px; padding: 10px; font-size: 0; gap: 0; }
  .rc-nav-actions .rc-button > span:not(.ico), .rc-nav-actions > button > span:not(.ico) { display: none; }
  .rc-nav-actions .rc-button .ico, .rc-nav-actions > button .ico { display: block; width: 19px; height: 19px; }
  .rc-main { padding-top: 24px; }
  .rc-page-head { align-items: flex-start; flex-direction: column; gap: 19px; margin-bottom: 24px; }
  .rc-heading h1 { font-size: 34px; }
  .rc-heading p { font-size: 12px; }
  .rc-head-actions { width: 100%; }
  .rc-welcome { min-height: 0; grid-template-columns: minmax(0, 1fr) 140px; gap: 0; padding: 27px 24px; border-radius: 18px; }
  .rc-welcome h1 { margin: 15px 0; font-size: 35px; }
  .rc-welcome .row { margin-top: 21px; }
  .rc-welcome .row .rc-button, .rc-welcome .row button { font-size: 11px; padding: 11px 13px; }
  .rc-workflow-visual { height: 195px; margin-left: -20px; }
  .rc-sheet { width: 124px; height: 160px; padding: 13px; }
  .rc-sheet-front { left: 13%; top: 30px; }
  .rc-sheet > strong { font-size: 17px; margin: 14px 0; }
  .rc-sheet-front > .ico { display: none; }
  .rc-sheet-front > strong { font-size: 17px; margin: 11px 0; }
  .rc-sheet-stamp { font-size: 5.2px; gap: 3px; }
  .rc-sheet-stamp .ico { width: 9px; height: 9px; }
  .rc-sheet > span:first-child, .rc-sheet > small:first-child { font-size: 7px; }
  .rc-sheet-line { height: 4px; margin: 8px 0; }
  .rc-sheet-code { font-size: 8px; margin-top: 12px; padding-top: 9px; }
  .rc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 23px 0 29px; gap: 12px; }
  .rc-metric { padding: 17px 19px; }
  .rc-metric:first-child { padding-left: 16px; }
  .rc-metric-label { font-size: 11px; }
  .rc-metric-label .ico { display: block; width: 15px; height: 15px; }
  .rc-metric > strong { font-size: 31px; }
  .rc-metric > small { font-size: 10px; }
  .rc-section-head { gap: 12px; }
  .rc-section-head h2 { font-size: 23px; }
  .rc-section-head .rc-button { font-size: 10px; padding: 10px 11px; }
  .rc-project-grid, .rc-work-grid .rc-project-grid { grid-template-columns: 1fr; gap: 19px; }
  .rc-project-card { padding: 22px; }
  .rc-project-top { margin-bottom: 18px; }
  .rc-project-meta { padding: 18px 0; }
  .rc-toolbar { flex-wrap: wrap; padding: 10px; gap: 8px; }
  .rc-search { flex-basis: 100%; border-bottom: 1px solid var(--line); padding: 0 5px 5px; }
  .rc-toolbar > select { min-width: 0; flex: 1; width: 0; font-size: 12px; }
  .rc-toolbar > .rc-button { font-size: 11px; }
  .rc-results-caption { font-size: 10px; }
  .rc-panel, .card { padding: 22px; }
  .rc-pipeline { gap: 12px; }
  .rc-pipeline > div, .rc-pipeline > article { padding: 21px 18px; }
  .rc-pipeline p { font-size: 11px; }
  .rc-pipeline strong { font-size: 13px; }
  .rc-project-banner { padding: 24px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .rc-project-banner h1 { font-size: 31px; }
  .rc-project-banner .rc-head-actions { width: auto; }
  .rc-context { font-size: 10px; gap: 9px 14px; }
  .rc-project-tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; padding: 5px; }
  .rc-project-tabs::-webkit-scrollbar { display: none; }
  .rc-project-tabs > button { white-space: nowrap; min-height: 44px; font-size: 11px; padding: 10px 13px; }
  .rc-project-tabs .ico { width: 16px; height: 16px; }
  .rc-review-grid, .grid { grid-template-columns: 1fr; }
  .file-drop { padding: 27px 20px; min-height: 230px; }
  .rc-summary-strip { gap: 8px; }
  .rc-stat-chip { flex: 1; min-width: 140px; justify-content: space-between; font-size: 10px; }
  .rc-job-card { padding: 21px; }
  .rc-job-head { gap: 10px; }
  .rc-job-head h3 { font-size: 16px; }
  .rc-job-footer { font-size: 10px; }
  .rc-empty { padding: 36px 22px; }
  .rc-empty h2 { font-size: 22px; }
  .rc-empty p { font-size: 12px; }
  .rc-footer { padding-top: 20px; margin-top: 35px; align-items: flex-start; font-size: 9px; }
  .rc-footer > span { max-width: 55%; }
  .rc-auth-layout { grid-template-columns: 1fr; gap: 36px; min-height: 0; padding: 36px 0 44px; }
  .rc-auth-story h1 { max-width: 600px; font-size: clamp(44px, 7.7vw, 60px); margin: 15px 0 18px; }
  .rc-auth-story > p { max-width: 530px; font-size: 13px; }
  .rc-auth-story .rc-auth-visual { display: none; }
  .rc-auth-proof { margin-top: 24px; gap: 22px; }
  .rc-auth-proof > div + div { padding-left: 22px; }
  .rc-auth-proof strong { font-size: 25px; }
  .rc-auth-proof small { font-size: 10px; }
  .rc-login-panel { justify-self: center; max-width: none; padding: 30px 27px 25px; }
  .rc-login-panel h2 { font-size: 31px; }
  .rc-login-panel > p { max-width: 500px; }
  .rc-login-panel form { gap: 19px; margin-top: 25px; }
  .rc-auth-footer { font-size: 9px; padding: 20px 0; align-items: flex-start; }
  .rc-auth-footer > :last-child { max-width: 55%; text-align: right; }
  dialog#modal { padding: 23px; width: calc(100vw - 24px); max-height: 88vh; }
  dialog#modal h2 { font-size: 25px; }
  dialog#modal .row:has(button[type="submit"]) { flex-wrap: wrap; }
}
@media (max-width: 460px) {
  .rc-frame, .rc-auth-frame { padding: 0 15px; }
  .rc-brand { gap: 10px; }
  .rc-brand img { width: 49px; height: 42px; }
  .rc-brand > span { padding-left: 10px; }
  .rc-brand strong { font-size: 20px; }
  .rc-brand small { font-size: 6px; letter-spacing: .1em; }
  .rc-header-actions { gap: 5px; }
  .rc-header-actions .rc-dropdown > summary { min-width: 33px; padding: 3px; }
  .rc-header-actions .rc-user-avatar { width: 27px; height: 27px; font-size: 10px; }
  .rc-welcome { display: block; padding: 26px 23px; }
  .rc-welcome h1 { font-size: 37px; max-width: 310px; }
  .rc-welcome-copy p { font-size: 12px; max-width: 310px; }
  .rc-workflow-visual { display: none; }
  .rc-welcome::before { inset: 40% -80% -70% 20%; }
  .rc-welcome::after { font-size: 21px; top: 16px; right: 18px; }
  .rc-welcome-copy .eyebrow { font-size: 8px; }
  .rc-welcome .row { gap: 8px; }
  .rc-welcome .row .rc-button, .rc-welcome .row button { padding: 11px 14px; }
  .rc-metric { padding: 16px; }
  .rc-metric:first-child { padding-left: 13px; }
  .rc-metric-label { font-size: 10px; gap: 4px; }
  .rc-metric-label .ico { width: 13px; height: 13px; }
  .rc-metric > strong { font-size: 29px; }
  .rc-metric > small { font-size: 9px; }
  .rc-section-head { align-items: flex-start; }
  .rc-section-head .rc-button { font-size: 10px; gap: 4px; }
  .rc-section-head .rc-button .ico { width: 14px; height: 14px; }
  .rc-guide { padding: 22px; column-gap: 14px; }
  .rc-guide h3 { font-size: 20px; }
  .rc-guide > .ico { width: 22px; height: 22px; }
  .rc-guide p, .rc-guide ol { font-size: 11px; }
  .rc-panel, .card { padding: 20px; }
  .rc-pipeline { grid-template-columns: 1fr; }
  .rc-pipeline > div, .rc-pipeline > article { padding: 21px; }
  .rc-pipeline .rc-step-number { float: left; margin: 0 17px 15px 0; }
  .rc-pipeline p { padding-left: 51px; }
  .rc-job-head { flex-wrap: wrap; }
  .rc-job-head .pill { margin-top: 2px; }
  .rc-auth-story h1 { font-size: 45px; }
  .rc-auth-story > p { font-size: 12px; }
  .rc-auth-story .eyebrow { font-size: 8px; }
  .rc-auth-proof { gap: 18px; }
  .rc-auth-proof > div + div { padding-left: 18px; }
  .rc-auth-proof strong { font-size: 24px; }
  .rc-auth-proof small { font-size: 9px; }
  .rc-login-panel { padding: 27px 23px 23px; border-radius: 18px; }
  .rc-login-panel h2 { font-size: 29px; }
  .rc-login-panel .eyebrow { font-size: 9px; }
  .rc-login-panel > p { font-size: 11px; }
  .rc-footer { gap: 15px; font-size: 8px; }
  .rc-auth-footer strong { font-size: 8px; letter-spacing: .06em; }
}

:root[data-motion="off"] *, :root[data-motion="off"] *::before, :root[data-motion="off"] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
:root[data-motion="off"] .rc-project-card:hover, :root[data-motion="off"] .rc-button:hover, :root[data-motion="off"] .rc-icon-button:hover { transform: none; }
:root[data-motion="off"] .rc-progress.is-running > span { width: 100%; opacity: .5; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rc-grid { transform: none; }
  .rc-glow, .rc-orbit { transform: none; }
  .rc-project-card:hover, .rc-button:hover, .rc-icon-button:hover { transform: none; }
  .rc-progress.is-running > span { width: 100%; opacity: .5; }
}
@media print {
  .rc-ambient, .rc-header-actions, .rc-navigation, .rc-nav-actions, .rc-head-actions, .rc-footer, .rc-project-tabs, #toast { display: none !important; }
  :root { --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f4f4; --ink: #111111; --muted: #444444; --line: #bbbbbb; }
  body { background: white; color: black; }
  .rc-frame { max-width: none; padding: 0; }
  .rc-main { padding-top: 15px; }
  .rc-panel, .card, .rc-project-card, .rc-project-banner { box-shadow: none; break-inside: avoid; }
  .table-wrap { overflow: visible; }
}

/* Keep the theme control usable when shared secondary-button styles apply. */
.rc-icon-button.secondary { width: 44px; height: 44px; min-height: 44px; padding: 10px; border-bottom-width: 1px; }
.rc-icon-button .ico { max-width: none; }
@media (max-width: 600px) {
  .rc-navigation { align-items: stretch; }
  .rc-navigation nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; width: 100%; }
  .rc-nav-tab { min-width: 0; width: 100%; padding: 10px 6px; font-size: 11px; justify-content: flex-start; }
  .rc-nav-tab .ico { width: 17px; height: 17px; }
  .rc-nav-actions { display: flex; align-items: center; }
}
