:root {
  color-scheme: light;
  --ink: #12141a;
  --muted: #6b6e78;
  --soft: #8b8e97;
  --paper: #f8f7f4;
  --white: #ffffff;
  --line: #e2e0da;
  --blue: #0057ff;
  --blue-soft: #e9f0ff;
  --green: #157a46;
  --green-soft: #e9f7ef;
  --orange: #b65b00;
  --orange-soft: #fff1df;
  --red: #ba2636;
  --red-soft: #fff0f1;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(18,20,26,.08);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(2rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); letter-spacing: -.035em; }
h3 { font-size: 1rem; }
p { color: var(--muted); line-height: 1.55; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; letter-spacing: -.04em; }
.brand-mark { display: grid; gap: 3px; width: 20px; }
.brand-mark i { display: block; height: 3px; border-radius: 8px; background: var(--blue); }
.brand-mark i:nth-child(2) { width: 70%; }
.brand small { color: var(--blue); font-size: .7em; font-weight: 700; letter-spacing: 0; }
.button { appearance: none; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--ink); color: white; min-height: 48px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 700; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(18,20,26,.15); }
.button.outline { background: transparent; color: var(--ink); box-shadow: none; }
.button.blue { background: var(--blue); border-color: var(--blue); }
.button.danger { background: transparent; color: var(--red); border-color: var(--red); }
.button.success { background: rgba(21,122,70,.1); color: var(--green); border-color: rgba(21,122,70,.4); }
.button.small { min-height: 38px; padding: 0 14px; font-size: .88rem; }
.button.wide { width: 100%; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-weight: 700; font-size: .9rem; }
.field small { color: var(--soft); }
.input, .select, .textarea { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: var(--radius); background: white; color: var(--ink); padding: 12px 14px; outline: none; transition: border .15s, box-shadow .15s; }
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,87,255,.1); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card.flush { padding: 0; overflow: hidden; }
.stack { display: grid; gap: 16px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid.four { grid-template-columns: repeat(4,minmax(0,1fr)); }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.muted { color: var(--muted); }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; color: var(--blue); }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: #efefec; font-size: .76rem; font-weight: 800; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: var(--orange-soft); color: var(--orange); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.banner { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: white; display: flex; gap: 13px; align-items: flex-start; }
.banner.red { border-color: rgba(186,38,54,.55); background: rgba(186,38,54,.08); }
.banner.blue { border-color: rgba(0,87,255,.35); background: rgba(0,87,255,.08); }
.banner.orange { border-color: rgba(182,91,0,.35); background: rgba(182,91,0,.08); }
.banner.green { border-color: rgba(21,122,70,.35); background: rgba(21,122,70,.08); }
.banner strong { display: block; margin-bottom: 3px; }
.banner p { margin: 0; font-size: .9rem; color: var(--ink); }
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(330px, 1fr) minmax(440px, 1fr); }
.auth-story { position: relative; background: var(--ink); color: white; padding: clamp(28px,5vw,72px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.auth-story p { color: rgba(255,255,255,.68); max-width: 570px; }
.auth-story .brand small { color: #74a2ff; }
.auth-rings { position: absolute; width: 500px; height: 500px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; right: -230px; bottom: -170px; }
.auth-rings::after { content:""; position:absolute; inset:70px; border:1px solid rgba(255,255,255,.1); border-radius:50%; }
.auth-panel { display: grid; place-items: center; padding: 28px; }
.auth-box { width: min(100%, 470px); }
.auth-box h2 { margin-bottom: 7px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }
.auth-switch button { border: 0; background: none; color: var(--blue); font-weight: 800; }
.steps { display: flex; gap: 6px; margin: 24px 0; }
.steps span { height: 4px; flex: 1; border-radius: 8px; background: var(--line); }
.steps span.active, .steps span.done { background: var(--blue); }
.otp { display: grid; grid-template-columns: repeat(6,1fr); gap: 8px; }
.otp input { width: 100%; min-width: 0; height: 54px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 1.2rem; font-weight: 800; }
.upload { border: 1.5px dashed #b9bbc3; border-radius: var(--radius); padding: 28px 18px; text-align: center; background: #fbfbfa; }
.upload.drag { border-color: var(--blue); background: var(--blue-soft); }
.upload input { position: absolute; opacity: 0; pointer-events: none; }
.progress-ring { width: 124px; aspect-ratio:1; border-radius:50%; display:grid; place-items:center; margin: 15px auto 25px; background: conic-gradient(var(--blue) var(--progress,0%), #e7e9ed 0); position:relative; }
.progress-ring::before { content:""; position:absolute; inset:9px; background:white; border-radius:50%; }
.progress-ring strong { position:relative; font-size:1.6rem; }
.check-list { display:grid; gap:10px; }
.check-item { border:1px solid var(--line); border-radius:var(--radius); padding:14px; display:flex; gap:12px; align-items:center; }
.check-dot { width:23px; height:23px; border-radius:50%; display:grid; place-items:center; background:#eceeF1; color:var(--muted); font-size:.8rem; }
.check-item.done .check-dot { background:var(--green); color:white; }
.check-item.active .check-dot { border:2px solid var(--blue); background:white; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:250px minmax(0,1fr); }
.sidebar { position:sticky; top:0; height:100vh; background:white; border-right:1px solid var(--line); padding:24px 16px; display:flex; flex-direction:column; }
.sidebar .brand { margin:4px 10px 32px; }
.nav { display:grid; gap:5px; }
.nav button { border:0; background:transparent; border-radius:12px; min-height:44px; padding:0 12px; text-align:left; font-weight:650; color:var(--muted); }
.nav button:hover,.nav button.active { background:var(--ink); color:white; }
.sidebar-foot { margin-top:auto; display:grid; gap:8px; }
.app-main { min-width:0; }
.topbar { height:76px; background:rgba(248,247,244,.88); backdrop-filter:blur(12px); border-bottom:1px solid var(--line); padding:0 clamp(20px,4vw,48px); display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:5; }
.page { padding:clamp(22px,4vw,48px); max-width:1540px; margin:auto; }
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:18px; margin-bottom:26px; }
.page-head h2 { margin-bottom:5px; }
.metric { min-height:150px; display:flex; flex-direction:column; justify-content:space-between; }
.metric strong { font-size:clamp(1.55rem,3vw,2.7rem); letter-spacing:-.05em; }
.metric.blue { background:var(--blue); color:white; border-color:var(--blue); }
.metric.blue p,.metric.blue .muted { color:rgba(255,255,255,.75); }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:720px; }
th,td { padding:14px 16px; text-align:left; border-bottom:1px solid var(--line); font-size:.9rem; }
th { font-size:.72rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); background:#fbfbfa; }
tbody tr { cursor:pointer; }
tbody tr:hover { background:#fafaf8; }
.empty { text-align:center; padding:50px 20px; }
.empty strong { display:block; margin-bottom:6px; }
.notification-list { display:grid; gap:8px; }
.notification { border:1px solid var(--line); border-radius:12px; padding:14px; background:white; }
.notification.unread { border-left:4px solid var(--blue); }
.mobile-nav { display:none; }
.dialog-backdrop { position:fixed; inset:0; z-index:20; background:rgba(18,20,26,.45); display:grid; place-items:center; padding:20px; }
.dialog { width:min(100%,560px); max-height:90vh; overflow:auto; background:white; border-radius:var(--radius); padding:24px; box-shadow:var(--shadow); }
.toast-region { position:fixed; top:18px; right:18px; z-index:50; display:grid; gap:8px; width:min(380px,calc(100vw - 36px)); }
.toast { background:var(--ink); color:white; padding:14px 16px; border-radius:12px; box-shadow:var(--shadow); transform:translateY(-10px); opacity:0; transition:.2s; }
.toast.show { transform:none; opacity:1; }
.toast.error { background:var(--red); }
.toast.success { background:var(--green); }
.skeleton { min-height:18px; border-radius:8px; background:linear-gradient(90deg,#ecebe7 25%,#f7f6f2 50%,#ecebe7 75%); background-size:200% 100%; animation:shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position:-200% 0; } }
@media (max-width: 960px) {
  .auth-layout { grid-template-columns:1fr; }
  .auth-story { min-height:240px; }
  .auth-story h1 { font-size:2.7rem; max-width:600px; }
  .app-shell { grid-template-columns:1fr; padding-bottom:72px; }
  .sidebar { display:none; }
  .mobile-nav { position:fixed; bottom:0; left:0; right:0; height:68px; display:grid; grid-template-columns:repeat(5,1fr); background:white; border-top:1px solid var(--line); z-index:10; padding:6px; }
  .mobile-nav button { border:0; border-radius:10px; background:transparent; font-size:.68rem; color:var(--muted); font-weight:700; }
  .mobile-nav button.active { background:var(--ink); color:white; }
  .grid.four { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .auth-story { min-height:190px; padding:24px; }
  .auth-story h1 { font-size:2.1rem; margin-bottom:8px; }
  .auth-story p { display:none; }
  .auth-panel { padding:22px 16px; align-items:start; }
  .auth-box { padding-top:10px; }
  .grid.two,.grid.three,.grid.four { grid-template-columns:1fr; }
  .page { padding:20px 14px; }
  .topbar { height:64px; padding:0 16px; }
  .page-head { flex-direction:column; }
  .button { min-height:46px; }
  .card { padding:18px; }
}



