
:root {
  --bg: #0a0a0b;
  --surface: #161618;
  --surface-raised: #1e1e21;
  --border: rgba(255, 255, 255, 0.10);
  --border-soft: rgba(255, 255, 255, 0.06);
  --fg: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --subtle: rgba(255, 255, 255, 0.40);
  --accent: #6d2be8;
  --accent-readable: #9b6df2;
  --error: #e8564a;
  --radius: 3px;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.login-shell { display: grid; place-items: center; padding: 32px; }
.login-panel { width: min(100%, 440px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: var(--fg); font-size: 17px; font-weight: 750; letter-spacing: -0.025em; text-decoration: none; }
.brand-dot { color: var(--accent-readable); }
.mark { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 30px; height: 30px; padding: 7px 5px; background: #000; border: 1px solid var(--border); }
.mark span { position: relative; border-radius: 50%; background: var(--fg); }
.mark span::after { content: ""; position: absolute; width: 40%; height: 55%; left: 30%; top: 28%; border-radius: 50%; background: #000; }
.login-copy { margin: 72px 0 36px; }
.eyebrow { margin: 0 0 18px; color: var(--subtle); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font-size: clamp(44px, 8vw, 82px); line-height: .98; letter-spacing: -.045em; }
.login-copy h1 { font-size: clamp(42px, 10vw, 62px); }
.login-copy > p:last-child, .hero > p:last-child, .login-panel > p { color: var(--muted); line-height: 1.6; }
.login-form { display: grid; gap: 18px; }
label { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--fg); outline: none; }
input, select { height: 48px; padding: 0 14px; }
textarea { min-height: 96px; padding: 13px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(109, 43, 232, .18); }
button, .button-link { display: inline-flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 17px; border: 1px solid var(--fg); border-radius: var(--radius); background: var(--fg); color: var(--bg); font-weight: 720; text-decoration: none; cursor: pointer; }
button:hover, .button-link:hover { background: rgba(255, 255, 255, .88); }
.form-error { margin: 0; padding: 12px 14px; border: 1px solid rgba(232, 86, 74, .35); color: var(--error); font-size: 13px; }
.security-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-soft); color: var(--subtle) !important; font-size: 12px; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 72px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--border); background: rgba(10, 10, 11, .94); }
.text-button { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.text-button:hover { background: transparent; color: var(--fg); }
.workspace { width: min(calc(100% - 48px), 1240px); margin: 0 auto; padding: 96px 0 120px; }
.hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); align-items: end; gap: 56px; padding-bottom: 72px; }
.hero .eyebrow { grid-column: 1 / -1; margin-bottom: 0; }
.hero > p:last-child { margin: 0 0 4px; max-width: 38ch; }
.empty-state { display: flex; gap: 28px; padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.empty-index { color: var(--accent-readable); font-variant-numeric: tabular-nums; }
.empty-state h2 { margin: 0 0 8px; font-size: 18px; }
.empty-state p { margin: 0; color: var(--muted); }
.upload-panel { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); gap: 56px; margin-bottom: 96px; padding: 36px; border: 1px solid var(--border); background: var(--surface); }
.upload-panel h2 { margin: 0; font-size: 26px; letter-spacing: -.025em; }
.upload-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.file-field input { height: auto; padding: 13px; }
.upload-form button { grid-column: 2; }
.library-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.library-heading .eyebrow { margin: 0; }
.library-heading > span { color: var(--subtle); font-size: 12px; font-variant-numeric: tabular-nums; }
.artifact-list { border-top: 1px solid var(--border); }
.artifact-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 24px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--border); }
.artifact-index { padding-top: 5px; color: var(--accent-readable); font-size: 12px; font-variant-numeric: tabular-nums; }
.artifact-meta { display: flex; gap: 18px; margin-bottom: 10px; color: var(--subtle); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.artifact-main h2 { margin: 0; font-size: clamp(21px, 3vw, 30px); letter-spacing: -.025em; }
.artifact-notes { max-width: 64ch; margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.file-meta { margin: 15px 0 0; color: var(--subtle); font-size: 11px; }
.download-link { display: inline-flex; gap: 18px; padding: 5px 0 7px; border-bottom: 1px solid var(--border); color: var(--fg); font-size: 13px; font-weight: 650; text-decoration: none; }
.download-link:hover { border-color: var(--accent); color: var(--accent-readable); }
@media (max-width: 720px) {
  .login-shell { align-items: start; padding: 24px; }
  .login-panel { padding-top: 12px; }
  .login-copy { margin-top: 64px; }
  .topbar { padding: 0 20px; }
  .workspace { width: min(calc(100% - 40px), 1240px); padding-top: 64px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 52px; }
  .hero .eyebrow { grid-column: auto; }
  .upload-panel { grid-template-columns: 1fr; gap: 32px; margin-inline: -20px; padding: 32px 20px; border-inline: 0; }
  .upload-form { grid-template-columns: 1fr; }
  .field-wide, .upload-form button { grid-column: auto; }
  .artifact-row { grid-template-columns: 30px minmax(0, 1fr); gap: 14px; }
  .download-link { grid-column: 2; justify-self: start; margin-top: 5px; }
}
