:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --navy-3: #1d4b7a;
  --amber: #d97706;
  --amber-soft: #fffbeb;
  --slate: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --white: #ffffff;
  --ok: #047857;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--slate); background: var(--bg); }
a { color: inherit; }
code, .mono { font-family: 'IBM Plex Mono', monospace; }
.eyebrow { margin: 0 0 6px; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-size: 13px; }
.situ-chip { background: #fff; border-radius: 6px; padding: 5px 9px; height: 30px; width: auto; }

/* auth */
.auth-body { background: radial-gradient(circle at 15% 15%, #dbeafe 0, transparent 32%), linear-gradient(135deg, #f8fafc, #e2e8f0); }
.auth-topbar { background: var(--navy); color: #fff; }
.auth-topbar-inner { max-width: 1120px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 14px; font-size: 11px; letter-spacing: .04em; color: #cbd5e1; }
.auth-shell { max-width: 1040px; margin: 48px auto; padding: 0 20px; display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(15, 23, 42, .14); }
.auth-card { padding: 48px; }
.auth-head h1 { margin: 6px 0 8px; font-size: 34px; letter-spacing: -.03em; color: var(--navy); }
.auth-head .sub { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.doc-mark { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--amber-soft); color: var(--amber); border: 1px solid #fde68a; margin-bottom: 18px; }
.doc-mark svg { width: 28px; height: 28px; }
.auth-form { margin-top: 26px; display: grid; gap: 14px; }
label { display: block; font-size: 12px; font-weight: 800; color: var(--navy); }
input[type=text], input[type=password], input[type=file] { width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid #cbd5e1; border-radius: 9px; font: inherit; font-size: 13px; background: #fff; color: var(--slate); }
input:focus { outline: 2px solid #bfdbfe; border-color: var(--navy-3); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; padding: 11px 18px; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--amber); color: #fff; width: 100%; }
.btn-primary:hover { background: #b45309; }
.btn-ghost { background: #fff; color: var(--navy); border: 1px solid var(--line); }
.alert { background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; padding: 12px 14px; border-radius: 7px; font-size: 13px; margin: 14px 0; }
.ok { background: #ecfdf5; border-left: 4px solid #10b981; color: #065f46; padding: 12px 14px; border-radius: 7px; font-size: 13px; margin: 14px 0; }
.hint { margin-top: 22px; font-size: 11px; color: var(--muted); }
.auth-aside { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 60%, var(--navy-3) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside::after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; right: -90px; bottom: -90px; background: rgba(255,255,255,.06); }
.auth-aside h2 { font-size: 26px; line-height: 1.25; margin: 26px 0 10px; letter-spacing: -.02em; }
.auth-aside p { color: #cbd5e1; font-size: 13px; line-height: 1.7; margin: 0; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 12px; color: #e2e8f0; }
.feature-list li { display: flex; align-items: center; gap: 9px; }
.feature-list span { width: 7px; height: 7px; border-radius: 50%; background: #fbbf24; }
.folder-art { position: relative; width: 190px; height: 140px; margin-bottom: 8px; }
.folder-tab { position: absolute; left: 10px; top: 0; width: 74px; height: 26px; background: #fbbf24; border-radius: 8px 8px 0 0; }
.folder-body { position: absolute; left: 0; top: 22px; width: 190px; height: 112px; background: #f59e0b; border-radius: 10px; box-shadow: 0 18px 30px rgba(0,0,0,.18); }
.paper { position: absolute; background: #fff; border-radius: 5px; box-shadow: 0 8px 14px rgba(0,0,0,.12); }
.paper-1 { width: 108px; height: 70px; left: 42px; top: 8px; transform: rotate(-4deg); }
.paper-2 { width: 108px; height: 70px; left: 48px; top: 14px; transform: rotate(2deg); }
.paper-3 { width: 108px; height: 70px; left: 44px; top: 20px; transform: rotate(-1deg); }
.paper-3::before, .paper-3::after { content: ""; position: absolute; left: 14px; height: 5px; border-radius: 3px; background: #cbd5e1; }
.paper-3::before { top: 18px; width: 70px; }
.paper-3::after { top: 30px; width: 48px; }

/* app */
.app-body { display: flex; min-height: 100vh; }
.sidebar { width: 260px; flex: 0 0 260px; background: linear-gradient(180deg, var(--navy) 0%, #081c35 100%); color: #fff; padding: 22px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.12); }
.sidebar-brand strong { display: block; font-size: 13px; }
.sidebar-brand small { display: block; font-size: 10px; color: #94a3b8; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 4px; margin-top: 20px; }
.sidebar-nav a { display: flex; align-items: center; gap: 10px; color: #cbd5e1; text-decoration: none; font-size: 13px; font-weight: 600; padding: 10px 12px; border-radius: 8px; border-left: 3px solid transparent; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: rgba(251,191,36,.12); color: #fbbf24; border-left-color: #fbbf24; }
.nav-icon { width: 18px; text-align: center; font-size: 15px; }
.sidebar-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 10px; font-size: 11px; }
.user-dot { width: 32px; height: 32px; border-radius: 50%; background: #fbbf24; color: #0b2545; display: grid; place-items: center; font-weight: 800; }
.sidebar-foot strong { display: block; font-size: 12px; color: #fff; }
.sidebar-foot small { display: block; color: #94a3b8; font-size: 10px; }
.logout { margin-left: auto; color: #fca5a5; text-decoration: none; font-weight: 700; }
.app-main { flex: 1; padding: 30px 38px 48px; max-width: 1280px; }
.app-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.app-header h1 { margin: 0; font-size: 26px; letter-spacing: -.03em; color: var(--navy); }
.header-chip { background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: 11px; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.welcome-strip { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 65%, var(--navy-3) 100%); color: #fff; border-radius: 14px; padding: 24px 28px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; box-shadow: 0 14px 30px rgba(11,37,69,.16); }
.welcome-strip .eyebrow { color: #93c5fd; }
.welcome-strip h2 { margin: 0 0 4px; font-size: 22px; }
.welcome-strip p { margin: 0; color: #cbd5e1; font-size: 12px; }
.welcome-stat { text-align: right; }
.welcome-stat strong { display: block; font-size: 32px; color: #fbbf24; line-height: 1; }
.welcome-stat span { font-size: 10px; color: #cbd5e1; text-transform: uppercase; letter-spacing: .1em; }
.content-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: 0 8px 20px rgba(15,23,42,.05); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; font-size: 18px; color: var(--navy); letter-spacing: -.02em; }
.badge { background: #f8fafc; border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.upload-form { display: grid; gap: 12px; }
.dropzone { border: 1.5px dashed #cbd5e1; border-radius: 10px; padding: 24px 16px; text-align: center; background: #f8fafc; cursor: pointer; display: grid; justify-items: center; gap: 4px; }
.dropzone:hover { border-color: var(--amber); background: var(--amber-soft); }
.dropzone input { display: none; }
.drop-icon { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--amber); font-size: 18px; margin-bottom: 4px; }
.dropzone strong { font-size: 12px; color: var(--navy); }
.dropzone small { font-size: 10px; color: var(--muted); }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-list li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 12px; background: #fff; }
.file-list li:hover { border-color: #fcd34d; background: #fffdf5; }
.file-icon { width: 34px; height: 34px; border-radius: 8px; background: var(--amber-soft); color: var(--amber); display: grid; place-items: center; font-size: 15px; }
.file-meta { min-width: 0; flex: 1; }
.file-meta strong { display: block; font-size: 12px; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta small { display: block; font-size: 10px; color: var(--muted); }
.file-action { font-size: 11px; font-weight: 800; color: var(--amber); text-decoration: none; }
.empty { color: var(--muted); font-size: 12px; justify-content: center; }
.document-panel { max-width: 900px; }
.document-body { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 18px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow: auto; color: #1e293b; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; margin: 24px auto; }
  .auth-aside { display: none; }
  .auth-card { padding: 32px; }
  .app-body { display: block; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
  .sidebar-nav { display: flex; margin: 0; flex-wrap: wrap; }
  .sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; }
  .app-main { padding: 22px 16px 40px; }
  .content-grid { grid-template-columns: 1fr; }
}
