:root {
  --ink: #172033; --muted: #667085; --paper: #f6f8fc; --panel: #ffffff; --line: #e7ebf2;
  --navy: #172033; --blue: #1664ff; --blue-dark: #0e4cd4; --orange: #1664ff; --orange-soft: #f3f7ff;
  --green: #00a870; --red: #b74338; --amber: #9a691e; --shadow: 0 16px 48px rgba(30,54,96,.08);
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
body { margin: 0; min-width: 320px; background-color: var(--paper); background-image: linear-gradient(rgba(22,100,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(22,100,255,.035) 1px, transparent 1px); background-size: 28px 28px; }
button, input, select, textarea { font: inherit; }
button, .upload-card { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.overline { margin: 0 0 10px; color: var(--orange); font: 800 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.brand-mark { width: 38px; height: 38px; display: block; flex: 0 0 38px; overflow: hidden; border-radius: 9px; background: #fff; box-shadow: 0 8px 18px rgba(22,100,255,.24); }
.brand-mark img { width: 100%; height: 100%; display: block; }
.button { min-height: 45px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 5px; padding: 0 18px; cursor: pointer; font-weight: 780; transition: transform .16s, box-shadow .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; transform: none; }
.button.primary { color: #fff; background: var(--blue); box-shadow: 0 8px 24px rgba(22,100,255,.2); }
.button.primary:hover { background: var(--blue-dark); }
.button.secondary { color: var(--navy); border: 1px solid #bdc4c8; background: transparent; box-shadow: none; }

.login-view { min-height: 100vh; display: grid; place-items: center; padding: 32px; }
.login-panel { width: min(1120px, 100%); min-height: 650px; display: grid; grid-template-columns: 1.25fr .75fr; position: relative; overflow: hidden; border: 1px solid #d7e1f4; border-radius: 18px; color: #fff; background: linear-gradient(145deg, var(--blue-dark), var(--blue)); box-shadow: var(--shadow); }
.login-panel::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .16; background-image: linear-gradient(rgba(255,255,255,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.18) 1px, transparent 1px); background-size: 44px 44px; }
.login-brand { position: absolute; z-index: 1; top: 34px; left: 40px; display: grid; grid-template-columns: auto auto; align-items: center; gap: 0 12px; }
.login-brand .brand-mark { grid-row: 1 / 3; }.login-brand b { font-size: 15px; }.login-brand small { color: #a9bac8; }
.login-copy { align-self: end; z-index: 1; padding: 56px 42px 60px; }
.login-copy .overline, .result-header .overline { color: #dbe7ff; }
.login-copy h1 { margin: 0; font-size: clamp(46px, 6vw, 76px); line-height: .99; letter-spacing: -.065em; }
.login-copy > p:not(.overline) { max-width: 600px; margin: 24px 0 32px; color: #b9c8d3; line-height: 1.8; }
.mini-flow { display: flex; align-items: center; gap: 12px; color: #d9e2e8; font-size: 12px; }.mini-flow i { width: 36px; height: 1px; background: #668095; }
.login-form { z-index: 1; align-self: center; display: grid; gap: 20px; margin-right: 42px; padding: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.09); backdrop-filter: blur(12px); }
.login-form p, .login-form h2 { margin: 0; }.login-form h2 { margin-top: 4px; font-size: 28px; }.login-form div span, .login-form > a { color: #b9c8d3; font-size: 12px; }.login-form > a { text-align: center; }
.login-form label { display: grid; gap: 8px; color: #dce5eb; font-size: 12px; font-weight: 700; }.login-form input { width: 100%; padding: 13px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 8px; color: #fff; background: rgba(0,0,0,.12); letter-spacing: .12em; outline: none; }.login-form input:focus { border-color: #fff; }
.error-text { min-height: 18px; color: #ffb9ad; font-size: 12px; }

.topbar { height: 68px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 34px; border-bottom: 1px solid rgba(231,235,242,.85); background: rgba(255,255,255,.92); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.top-brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }.top-brand .brand-mark { width: 34px; height: 34px; }.top-brand b, .top-brand small { display: block; }.top-brand b { font-size: 13px; }.top-brand small { color: var(--muted); font-size: 10px; }
.top-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }.top-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(0,168,112,.12); }
.user-actions { justify-self: end; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 11px; }.user-actions button { border: 0; color: var(--navy); background: transparent; cursor: pointer; }
.global-error { width: min(1180px, calc(100% - 40px)); margin: 20px auto -12px; padding: 12px 15px; border-left: 3px solid var(--red); color: #7d302a; background: #fff1ef; }
.workspace { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 54px 0 72px; }
.workspace-heading { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 60px; margin-bottom: 30px; }.workspace-heading h1 { margin: 0; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; letter-spacing: -.055em; }.workspace-heading > p { margin: 0 0 4px; color: var(--muted); line-height: 1.75; }
.lifecycle-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 13px; margin-bottom: 22px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.92); }
.lifecycle-strip > div { min-width: 0; }.lifecycle-strip span, .lifecycle-strip b, .lifecycle-strip small { display: block; }.lifecycle-strip span { color: var(--orange); font: 800 10px ui-monospace, monospace; }.lifecycle-strip b { margin: 4px 0 2px; font-size: 13px; }.lifecycle-strip small { color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.lifecycle-strip i { width: 24px; height: 1px; background: #b9c0c4; }
.input-layout { display: grid; grid-template-columns: minmax(0, 1fr) 335px; gap: 20px; align-items: start; }
.input-main, .run-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 14px 34px rgba(30,54,96,.05); }
.input-main { padding: 28px; }.run-panel { position: sticky; top: 86px; display: grid; gap: 17px; padding: 25px; }
.panel-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 15px; }.panel-title > div { display: flex; align-items: center; gap: 10px; }.panel-title span { color: var(--orange); font: 800 10px ui-monospace, monospace; }.panel-title h2 { margin: 0; font-size: 18px; }.panel-title small { color: var(--muted); font-size: 10px; }.section-gap { margin-top: 27px; padding-top: 24px; border-top: 1px solid var(--line); }
.upload-card { min-height: 122px; display: flex; align-items: center; gap: 14px; position: relative; padding: 20px; border: 1px dashed #bdc8da; border-radius: 12px; cursor: pointer; background: #f9fbff; transition: border .16s, background .16s; }.upload-card:hover, .upload-card.has-files { border-color: var(--blue); background: #f3f7ff; }.upload-card input { position: absolute; width: 1px; height: 1px; opacity: 0; }.upload-icon { flex: 0 0 50px; height: 56px; display: grid; place-items: center; border: 1px solid #b7c5dc; border-radius: 9px; color: var(--blue); background: #edf3ff; font: 800 11px ui-monospace, monospace; }.upload-card b, .upload-card p, .upload-card small { display: block; }.upload-card b { font-size: 14px; }.upload-card p { margin: 5px 0; color: var(--muted); font-size: 11px; }.upload-card small { max-width: 420px; color: #88939b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.upload-card em { margin-left: auto; padding: 7px 10px; border-radius: 8px; color: var(--blue); background: #eaf1ff; font-size: 11px; font-style: normal; font-weight: 700; }.upload-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.upload-grid .upload-card { align-items: flex-start; }.upload-grid .upload-card > div { min-width: 0; }
.boundary-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 18px; padding: 13px 15px; border-left: 3px solid var(--blue); color: var(--muted); background: var(--orange-soft); font-size: 11px; line-height: 1.6; }.boundary-note b { color: var(--blue-dark); }
.run-panel > label:not(.confirmation) { display: grid; gap: 7px; color: #46525e; font-size: 11px; font-weight: 750; }.run-panel select, .run-panel textarea { width: 100%; border: 1px solid #c8cbd0; border-radius: 5px; padding: 11px 12px; color: var(--ink); background: #fff; outline: none; }.run-panel textarea { resize: vertical; }.run-panel select:focus, .run-panel textarea:focus { border-color: var(--blue); }
.output-preview { padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }.output-preview p { margin: 0 0 8px; font-size: 11px; font-weight: 800; }.output-preview ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 11px; line-height: 1.75; }.confirmation { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 10px; line-height: 1.55; cursor: pointer; }.confirmation input { flex: 0 0 auto; margin-top: 2px; accent-color: var(--blue); }.model-warning { margin: 0; color: var(--red); font-size: 10px; }

.loading-view { min-height: calc(100vh - 66px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }.loading-core { width: 104px; height: 104px; display: grid; place-items: center; position: relative; margin-bottom: 24px; border: 1px solid #9caab4; }.loading-core::before, .loading-core::after { content: ""; position: absolute; width: 12px; height: 12px; border-style: solid; border-color: var(--orange); }.loading-core::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }.loading-core::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; }.loading-core span { color: var(--navy); font: 800 10px ui-monospace, monospace; letter-spacing: .12em; }.loading-core i { position: absolute; inset: 10px; border: 2px solid transparent; border-top-color: var(--orange); border-radius: 50%; animation: spin 1.4s linear infinite; }@keyframes spin { to { transform: rotate(360deg); } }.loading-view h1 { margin: 0; font-size: 28px; }.loading-line { width: min(520px, 86vw); height: 3px; margin: 24px 0 16px; overflow: hidden; background: #d3d6d5; }.loading-line i { display: block; width: 8%; height: 100%; background: var(--orange); transition: width .6s; }.loading-stages { display: flex; gap: 28px; color: #9ca4aa; font-size: 11px; }.loading-stages span.active { color: var(--navy); font-weight: 800; }

.result-view { padding-top: 34px; }.result-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 30px 34px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); box-shadow: var(--shadow); }.result-header h1 { margin: 0; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; }.result-header > div > p:last-child { margin: 8px 0 0; color: #dbe7ff; }.risk-summary { display: flex; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; overflow: hidden; }.risk-summary div { min-width: 82px; padding: 13px 14px; text-align: center; background: rgba(255,255,255,.09); }.risk-summary div + div { border-left: 1px solid rgba(255,255,255,.15); }.risk-summary span, .risk-summary small { display: block; }.risk-summary span { font-size: 25px; font-weight: 850; }.risk-summary small { color: #dbe7ff; font-size: 9px; }.risk-summary .risk-high span { color: #ffd0ca; }
.demo-label { margin-top: 12px; padding: 11px 14px; border-left: 3px solid var(--amber); color: #76531b; background: #fff7df; font-size: 11px; }.result-toolbar { display: flex; justify-content: flex-end; gap: 10px; margin: 16px 0; }.result-tabs { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 6px 6px 0 0; overflow: hidden; background: #e7e7e2; }.result-tabs button { min-height: 54px; border: 0; border-right: 1px solid var(--line); color: var(--muted); background: #f8f7f2; cursor: pointer; font-size: 12px; font-weight: 750; }.result-tabs button:last-child { border-right: 0; }.result-tabs button span { margin-right: 7px; color: #9ca4aa; font: 800 9px ui-monospace, monospace; }.result-tabs button.active { color: #fff; background: var(--blue); }.result-tabs button.active span { color: #f8ba99; }
.tab-panel { display: none; padding: 27px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; background: var(--panel); }.tab-panel.active { display: block; }.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }.section-heading h2 { margin: 0; font-size: 20px; }.section-heading span { color: var(--muted); font-size: 10px; }.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }.profile-item { min-height: 78px; padding: 13px 14px; border: 1px solid #e0ded8; border-radius: 5px; background: #faf9f5; }.profile-item span, .profile-item b { display: block; }.profile-item span { color: var(--muted); font-size: 9px; }.profile-item b { margin-top: 6px; font-size: 13px; }.summary-box, .conclusion-box { margin-top: 15px; padding: 18px; border-left: 3px solid var(--blue); color: #3f4b56; background: #eef3f6; line-height: 1.75; white-space: pre-wrap; }.conclusion-box { border-color: var(--orange); background: var(--orange-soft); }
.matrix-wrap { overflow-x: auto; border: 1px solid #dfddd7; border-radius: 5px; }.matrix { width: 100%; border-collapse: collapse; font-size: 11px; }.matrix th { padding: 10px; color: #57636d; background: #f0efea; text-align: left; white-space: nowrap; }.matrix td { min-width: 105px; padding: 11px 10px; border-top: 1px solid #e7e5df; vertical-align: top; color: #3f4b56; line-height: 1.55; }.matrix tbody tr:hover { background: #fffaf5; }.status { display: inline-flex; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 850; white-space: nowrap; }.status-high, .status-fail { color: #9f352d; background: #fce6e3; }.status-medium, .status-pending { color: #805918; background: #fff1d4; }.status-low, .status-pass { color: #236246; background: #e2f2e9; }.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 18px; }.list-panel { padding: 17px; border: 1px solid #dfddd7; border-radius: 5px; }.list-panel h3 { margin: 0 0 10px; font-size: 13px; }.clean-list { margin: 0; padding-left: 18px; color: #4f5a64; font-size: 11px; line-height: 1.7; }.empty { margin: 0; color: #92999e; font-size: 11px; }.subsection { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }.subsection h3 { margin: 0 0 12px; font-size: 15px; }.milestone-check { width: 15px; height: 15px; accent-color: var(--green); }
.fatal-view { min-height: 100vh; display: grid; place-content: center; text-align: center; }.fatal-view h1 { margin: 0 0 10px; }

@media (max-width: 900px) { .workspace-heading, .input-layout { grid-template-columns: 1fr; }.run-panel { position: static; }.workspace-heading { gap: 15px; }.lifecycle-strip { grid-template-columns: repeat(5, 1fr); }.lifecycle-strip i { display: none; }.result-header { align-items: stretch; flex-direction: column; }.risk-summary { align-self: flex-start; } }
@media (max-width: 640px) { .login-view { padding: 12px; }.login-panel { min-height: 0; grid-template-columns: 1fr; }.login-brand { position: static; padding: 24px 22px 0; }.login-copy { padding: 50px 22px 25px; }.login-copy h1 { font-size: 43px; }.login-form { margin: 0 14px 14px; padding: 23px; }.topbar { grid-template-columns: 1fr auto; padding: 0 14px; }.top-status, #user-label { display: none; }.workspace { width: min(100% - 24px, 1180px); padding-top: 34px; }.workspace-heading h1 { font-size: 36px; }.lifecycle-strip { grid-template-columns: 1fr 1fr; }.lifecycle-strip > div:last-child { grid-column: 1 / -1; }.upload-grid, .profile-grid, .two-col { grid-template-columns: 1fr; }.input-main, .run-panel { padding: 19px; }.upload-card { align-items: flex-start; }.upload-card em { display: none; }.result-header { padding: 24px 20px; }.risk-summary div { min-width: 70px; }.result-toolbar { display: grid; grid-template-columns: 1fr 1fr; }.result-tabs { grid-template-columns: 1fr 1fr; }.result-tabs button { border-bottom: 1px solid var(--line); }.result-tabs button:last-child { grid-column: 1 / -1; }.tab-panel { padding: 18px 14px; }.section-heading { align-items: flex-start; flex-direction: column; } }
