:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #15313d; background: #eef3f3; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 0%, #d4e8e6, transparent 35%), #eef3f3; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1060px; margin: auto; padding: 0 28px; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #d7e3e2; }
.brand { display: flex; gap: 12px; align-items: center; font-size: 15px; font-weight: 800; letter-spacing: .08em; }
.brand small { display: block; font-size: 10px; letter-spacing: .17em; color: #6a878c; margin-top: 2px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 10px; color: white; background: #126c72; font-size: 21px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -.065em; line-height: 1.05; margin-bottom: 18px; }
h2 { font-size: 28px; letter-spacing: -.035em; margin-bottom: 0; }
h3 { font-size: 19px; }
.eyebrow { color: #11747b; text-transform: uppercase; font-weight: 800; font-size: 11px; letter-spacing: .19em; margin-bottom: 13px; }
.hero { padding: 65px 0 41px; max-width: 730px; }
.hero > p:last-child, .login > p:not(.eyebrow) { color: #57717a; font-size: 17px; line-height: 1.65; }
.panel { background: #fff; border: 1px solid #dce7e7; box-shadow: 0 20px 65px rgba(18, 54, 63, .06); border-radius: 18px; }
.workspace, .results { padding: 32px; margin-bottom: 25px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading .eyebrow { margin-bottom: 6px; }
.limit { color: #7b9195; font-size: 12px; }
.dropzone { min-height: 230px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; border: 2px dashed #aacdca; border-radius: 13px; background: #f6fbfa; color: #56757c; cursor: pointer; transition: .2s; padding: 24px; }
.dropzone:hover, .dropzone.dragging { background: #e7f5f3; border-color: #168188; }
.dropzone strong { color: #1c424c; font-size: 18px; }
.dropzone > span:last-child { font-size: 13px; }
.drop-icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #dcf0ed; color: #14767a; font-size: 28px; }
#files { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; padding: 0; margin: 14px 0 0; }
.file-list li, .output-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 4px; border-bottom: 1px solid #e8eeee; }
.file-list small, .output-row small { color: #82959b; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding-top: 26px; }
.form-footer p { color: #718990; font-size: 12px; line-height: 1.5; max-width: 460px; margin: 0; }
.primary { border: 0; border-radius: 8px; background: #126c72; color: white; padding: 13px 23px; font-weight: 700; white-space: nowrap; }
.primary:hover { background: #0b545b; }
.primary:disabled { opacity: .45; cursor: not-allowed; }
.secondary { border: 1px solid #b9d2d0; border-radius: 8px; background: #eef8f6; color: #146b72; padding: 10px 17px; font-weight: 700; }
.secondary:hover { background: #dff0ed; }
.link-button { display: inline-block; text-decoration: none; font-size: 14px; }
.text-button { background: none; border: 0; color: #507278; font-weight: 700; }
.status { display: flex; gap: 25px; align-items: center; padding: 26px 32px; margin: 24px 0; }
.status h2 { font-size: 19px; margin-bottom: 5px; }
.status p { color: #6a858a; font-size: 13px; margin-bottom: 12px; }
.status > div:last-child { flex: 1; }
.spinner { width: 32px; height: 32px; border: 3px solid #cfe5e3; border-top-color: #126c72; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-track { height: 5px; background: #e3efed; border-radius: 5px; overflow: hidden; }
#progress-bar { width: 0; height: 100%; background: #138188; transition: width .2s; }
.results > p { color: #6f858c; font-size: 13px; }
.output-row strong, .output-row small { display: block; }
.output-row strong { margin-bottom: 4px; }
.output-row a { color: #11747b; font-weight: 700; text-decoration: none; }
.data-summary { margin-top: 30px; padding: 24px; border: 1px solid #d5e5e2; border-radius: 13px; background: #f7fbfa; }
.summary-heading { display: flex; justify-content: space-between; align-items: end; gap: 15px; }
.summary-heading .eyebrow { margin-bottom: 5px; }
.summary-heading h3 { margin-bottom: 0; }
#summary-count { color: #6d858a; font-size: 12px; white-space: nowrap; }
.summary-intro { color: #617a80; font-size: 13px; line-height: 1.5; margin: 13px 0 18px; }
#summary-content { display: grid; gap: 12px; }
.summary-card { padding: 16px 18px; border: 1px solid #e1ecea; border-radius: 10px; background: #fff; }
.summary-card h4 { margin: 0 0 10px; color: #1b424a; font-size: 14px; }
.summary-card p:last-child { margin-bottom: 0; }
.summary-value { margin: 0 0 5px; font-size: 13px; }
.summary-source { display: block; color: #758b90; font-size: 11px; line-height: 1.45; overflow-wrap: anywhere; }
.summary-item { display: grid; gap: 4px; padding: 9px 0; border-top: 1px solid #edf2f1; font-size: 13px; }
.summary-item:first-of-type { border-top: 0; padding-top: 0; }
.summary-item strong { color: #24474f; }
.summary-ports { color: #536e74; line-height: 1.45; }
.summary-details { padding: 9px 0; border-top: 1px solid #edf2f1; font-size: 13px; }
.summary-details:first-of-type { border-top: 0; padding-top: 0; }
.summary-details summary { cursor: pointer; color: #27545a; font-weight: 650; line-height: 1.5; }
.summary-details ul, .summary-review ul { margin: 9px 0 12px; padding-left: 19px; line-height: 1.55; }
.summary-details .summary-source { margin-top: 8px; }
.summary-review { background: #fffaf2; border-color: #ecd8b4; }
.summary-review h4 { color: #825018; }
.summary-review li { font-size: 13px; margin: 5px 0; }
.summary-empty { color: #617a80; font-size: 13px; margin: 0; }
#preview-section { margin-top: 35px; }
#cad-section { margin-top: 32px; }
.cad-tabs { display: flex; gap: 6px; margin-top: 18px; border-bottom: 1px solid #c8d9d8; }
.cad-tab { padding: 11px 20px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; background: transparent; color: #5d777d; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.cad-tab:hover { background: #eef8f6; color: #146b72; }
.cad-tab[aria-selected="true"] { position: relative; top: 1px; border-color: #c8d9d8; background: #f6fbfa; color: #126c72; }
.cad-tab:focus-visible { outline: 2px solid #126c72; outline-offset: 2px; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.preview-heading h3 { margin-bottom: 0; }
#cad-status { color: #70878c; font-size: 12px; margin: 10px 0 14px; }
#cad-canvas { width: 100%; height: 560px; border: 1px solid #c8d9d8; border-radius: 8px; background: #152c35; overflow: hidden; }
.cad-inspector { margin-top: 12px; padding: 15px 18px; min-height: 54px; border: 1px solid #d5e5e2; border-radius: 8px; background: #f7fbfa; color: #536e74; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.cad-inspector strong { display: block; color: #1b424a; font-size: 14px; margin-bottom: 8px; }
.cad-inspector dl { display: grid; grid-template-columns: 85px 1fr; gap: 5px 12px; margin: 0; }
.cad-inspector dt { color: #70878c; }
.cad-inspector dd { margin: 0; color: #24474f; }
#preview { display: block; width: 100%; height: auto; border: 1px solid #dce7e7; border-radius: 8px; }
.error { color: #b33131; font-size: 13px; min-height: 20px; }
.login { width: min(460px, 100%); margin: 12vh auto 16vh; padding: 40px; }
.login h1 { font-size: 44px; }
.login label { display: block; font-weight: 700; font-size: 13px; margin: 26px 0 8px; }
.login input { display: block; width: 100%; padding: 13px; border: 1px solid #adc7c7; border-radius: 8px; margin-bottom: 18px; }
.login .primary { width: 100%; }
footer { color: #91a4a8; text-align: center; font-size: 10px; letter-spacing: .18em; padding: 35px 0 50px; }
footer span { margin: 0 8px; }
@media (max-width: 700px) { .shell { padding: 0 16px; } .hero { padding-top: 45px; } .workspace, .results { padding: 23px; } .form-footer, .section-heading { align-items: stretch; flex-direction: column; } .form-footer .primary { width: 100%; } .data-summary { padding: 18px; } .summary-heading { align-items: start; flex-direction: column; gap: 7px; } }
