:root {
  color-scheme: light;
  --ink: #15271f;
  --paper: #f5f6f1;
  --white: #ffffff;
  --muted: #718078;
  --line: #dfe4dd;
  --lime: #d8f55f;
  --green: #2f7354;
  --orange: #e87a4b;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 26px 20px; color: white; background: var(--ink); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup div { display: grid; gap: 2px; }
.brand-lockup small { color: #ffffff8a; font-size: 11px; letter-spacing: .08em; }
.brand-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: var(--ink); background: var(--lime); font-size: 19px; font-weight: 900; }
.nav-list { display: grid; gap: 7px; margin-top: 42px; }
.nav-item { display: flex; min-height: 46px; align-items: center; gap: 12px; padding: 0 13px; border: 0; border-radius: 12px; color: #ffffffa6; background: transparent; text-align: left; }
.nav-item span { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid #ffffff24; border-radius: 8px; font-size: 10px; }
.nav-item:hover, .nav-item.active { color: white; background: #ffffff12; }
.nav-item.active span { color: var(--ink); border-color: var(--lime); background: var(--lime); }
.sidebar-foot { display: grid; gap: 4px; margin-top: auto; padding: 16px; border: 1px solid #ffffff17; border-radius: 16px; background: #ffffff0a; }
.sidebar-foot p { margin: 0; font-weight: 700; }
.sidebar-foot small { color: #ffffff7d; }
.sidebar-foot button { margin-top: 10px; padding: 8px; border: 1px solid #ffffff20; border-radius: 9px; color: white; background: transparent; }
.main { min-width: 0; padding: 34px clamp(22px, 4vw, 58px) 60px; }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.topbar h1, .hero h2, .section-intro h2 { margin: 4px 0 0; letter-spacing: -.035em; }
.topbar h1 { font-size: clamp(28px, 3vw, 42px); }
.eyebrow { margin: 0; color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .17em; }
.today { color: var(--muted); font-size: 13px; }
.view { display: none; }
.view.active { display: block; }
.hero { display: grid; grid-template-columns: 1.45fr .7fr; gap: 32px; padding: clamp(26px, 4vw, 44px); border-radius: 26px; background: var(--white); box-shadow: 0 18px 60px #253c2c0d; }
.hero h2 { max-width: 720px; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.03; }
.hero p:not(.eyebrow) { max-width: 650px; margin: 18px 0 0; color: var(--muted); line-height: 1.75; }
.hero-status { align-self: end; display: flex; align-items: center; gap: 12px; padding: 17px; border-radius: 17px; background: var(--ink); color: white; }
.hero-status div { display: grid; gap: 4px; }
.hero-status small { color: #ffffff87; }
.pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 7px #d8f55f1e; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 16px 0; }
.metrics article { display: grid; min-height: 140px; align-content: space-between; padding: 21px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.metrics article.accent { border-color: #ffd4c2; background: #fff1ea; }
.metrics span, .metrics small { color: var(--muted); }
.metrics strong { font-size: 42px; }
.grid.two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: white; }
.panel.dark { color: white; border-color: var(--ink); background: var(--ink); }
.panel h3 { margin: 5px 0 0; font-size: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.text-button { border: 0; color: var(--green); background: transparent; font-size: 12px; font-weight: 700; }
.source-list { display: grid; gap: 9px; margin-top: 20px; }
.source-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.source-row span:last-child { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.source-row i { width: 7px; height: 7px; border-radius: 50%; background: #aeb8b1; }
.source-row.connected i { background: #48a777; }
.guardrail { display: grid; gap: 7px; margin-top: 30px; padding: 18px; border: 1px solid #ffffff18; border-radius: 16px; background: #ffffff0a; }
.guardrail span { color: #ffffff9b; line-height: 1.65; }
.module-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.module-grid button { display: grid; min-height: 155px; align-content: space-between; gap: 9px; padding: 20px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: white; text-align: left; }
.module-grid button:hover { transform: translateY(-2px); border-color: #aab89c; box-shadow: 0 15px 35px #263e2d0c; }
.module-grid span { width: fit-content; padding: 5px 8px; border-radius: 999px; color: var(--green); background: #eaf3e8; font-size: 10px; font-weight: 800; }
.module-grid strong { font-size: 18px; }
.module-grid small, .muted { color: var(--muted); line-height: 1.55; }
.section-intro { margin-bottom: 22px; }
.section-intro h2 { font-size: clamp(30px, 4vw, 52px); }
.section-intro > p:last-child { color: var(--muted); }
.empty-state { display: grid; min-height: 360px; place-content: center; justify-items: center; padding: 40px; border: 1px dashed #bbc5ba; border-radius: 24px; background: #ffffff88; text-align: center; }
.empty-state > span { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 17px; background: var(--lime); font-weight: 900; }
.empty-state h3 { margin: 18px 0 4px; font-size: 23px; }
.empty-state p { max-width: 520px; color: var(--muted); line-height: 1.7; }
.upload-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.upload-box input { flex: 1; min-width: 220px; }
.upload-box small { color: var(--muted); }
.primary-button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 12px; color: white; background: var(--ink); font-weight: 750; }
.file-list { display: grid; gap: 10px; margin-top: 16px; }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.file-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--muted); }
.file-row button { border: 0; color: var(--green); background: transparent; font-weight: 700; }
.assistant-card { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: clamp(28px, 5vw, 54px); border-radius: 26px; color: white; background: var(--ink); }
.assistant-card h3 { margin: 18px 0 7px; font-size: 30px; }
.assistant-card p, .assistant-card li { color: #ffffffa4; line-height: 1.7; }
.assistant-card li { margin-bottom: 10px; }
.ai-orb { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 18px; color: var(--ink); background: var(--lime); font-weight: 900; }
#toast { position: fixed; right: 22px; bottom: 22px; z-index: 20; max-width: 380px; padding: 13px 16px; border-radius: 12px; color: white; background: var(--ink); box-shadow: 0 12px 36px #0002; opacity: 0; pointer-events: none; transform: translateY(12px); transition: .2s ease; }
#toast.show { opacity: 1; transform: translateY(0); }
.login-body { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: radial-gradient(circle at top right, #d8f55f44, transparent 36%), var(--paper); }
.login-card { width: min(440px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: 0 24px 80px #1d352310; }
.login-card h1 { margin: 38px 0 8px; font-size: 38px; letter-spacing: -.04em; }
.login-card > p { color: var(--muted); line-height: 1.6; }
.login-card form { display: grid; gap: 16px; margin-top: 24px; }
.login-card label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; }
.login-card input { min-height: 46px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 4px #d8f55f33; }
.login-foot { display: block; margin-top: 18px; color: var(--muted); text-align: center; }
.login-error { padding: 11px 12px; border-radius: 10px; color: #8d3c2d !important; background: #fff0ea; font-size: 13px; }
@media (max-width: 1050px) { .metrics, .module-grid { grid-template-columns: repeat(2, 1fr); } .grid.two, .hero { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .shell { display: block; } .sidebar { position: static; height: auto; } .nav-list { grid-template-columns: repeat(2, 1fr); margin-top: 24px; } .sidebar-foot { display: none; } .main { padding: 24px 16px 42px; } .topbar { align-items: start; } .metrics, .module-grid, .assistant-card { grid-template-columns: 1fr; } .hero h2 { font-size: 36px; } }

