:root{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:#f4f4f2;
  background:#090909;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  --accent:#ff3b30;
  --accent-soft:rgba(255,59,48,.08);
  --accent-softer:rgba(255,59,48,.025);
}
*{box-sizing:border-box}
body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#0a0a0a 0,#0a0a0a 45%,#0d0d0d 100%)}
button,input,select{font:inherit}
button{cursor:pointer}
.shell{width:min(1120px,calc(100% - 34px));margin:auto;padding:28px 0 40px}

.topbar{display:flex;align-items:center;justify-content:space-between;padding:0 2px 28px;border-bottom:1px solid #232323}
.brand{display:flex;align-items:center;gap:12px}
.brand strong{display:block;font-size:14px;letter-spacing:.12em}
.brand small{display:block;color:#656565;font-size:9px;letter-spacing:.18em;margin-top:3px}
.mark{width:35px;height:35px;border:1px solid #2b2b2b;border-radius:9px;display:grid;grid-template-columns:repeat(3,1fr);gap:2px;padding:8px;transform:skew(-8deg)}
.mark span{background:var(--accent);border-radius:1px}
.local-pill{display:flex;gap:8px;align-items:center;border:1px solid #2a2a2a;border-radius:999px;padding:8px 12px;color:#9a9a9a;font-size:10px;font-weight:800;letter-spacing:.12em}
.local-pill span{width:7px;height:7px;border-radius:50%;background:var(--accent);box-shadow:0 0 12px var(--accent)}

.hero{padding:54px 0 34px}
.kicker,.config-title small,.preview-head small,.statusbar small,.tech-head small{color:#707070;font-size:10px;letter-spacing:.16em;font-weight:800}
.hero h1{font-size:clamp(42px,7.5vw,86px);line-height:.9;letter-spacing:-.06em;margin:12px 0 18px}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero>p:last-child{color:#8d8d8d;max-width:680px;margin:0;font-size:15px;line-height:1.6}

.dropzone{border:1px solid #2b2b2b;border-radius:18px;background:#111;padding:40px 24px;text-align:center;display:grid;place-items:center;outline:none;transition:.16s}
.dropzone:hover,.dropzone:focus,.dropzone.drag{border-color:var(--accent);background:#131313;box-shadow:0 0 0 1px var(--accent-soft),inset 0 0 55px var(--accent-softer)}
.drop-symbol{width:62px;height:62px;border-radius:16px;background:var(--accent);color:white;display:grid;place-items:center;margin-bottom:18px}
.drop-symbol svg{width:34px}
.dropzone>strong{font-size:19px;letter-spacing:.02em}
.dropzone>span{font-size:10px;letter-spacing:.15em;color:#6f6f6f;margin-top:7px}
.drop-actions{display:flex;gap:8px;margin-top:20px}
.btn{min-height:40px;border:1px solid #303030;background:#181818;color:#ddd;border-radius:9px;padding:0 15px;font-size:10px;letter-spacing:.12em;font-weight:800}
.btn:hover{border-color:#555}

.statusbar{display:grid;grid-template-columns:2fr 1fr 1fr;margin:12px 0 14px;border:1px solid #242424;border-radius:13px;overflow:hidden}
.statusbar>div{padding:13px 16px;border-right:1px solid #242424}
.statusbar>div:last-child{border-right:0}
.statusbar strong{display:block;margin-top:4px;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.tech-panel{margin:0 0 28px;border:1px solid #292929;background:#101010;border-radius:16px;overflow:hidden}
.tech-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 20px;border-bottom:1px solid #272727}
.tech-head-left{display:flex;align-items:center;gap:13px}
.tech-icon{width:35px;height:35px;border:1px solid #313131;border-radius:10px;display:grid;place-items:center;color:var(--accent)}
.tech-icon svg{width:19px}
.tech-head h2{margin:3px 0 0;font-size:19px}
.analysis-state{font-size:9px;letter-spacing:.13em;font-weight:900;color:var(--accent);border:1px solid #333;border-radius:999px;padding:7px 10px}
.analysis-state.muted{color:#777}
.tech-grid{display:grid;grid-template-columns:repeat(6,1fr)}
.tech-item{padding:16px 17px;border-right:1px solid #242424;min-width:0}
.tech-item:last-child{border-right:0}
.tech-item small{display:block;color:#616161;font-size:8px;letter-spacing:.14em;font-weight:850;margin-bottom:6px}
.tech-item strong{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tech-item:first-child strong{color:var(--accent)}
.scan-box{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #242424}
.scan-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:15px 18px}
.scan-row:first-child{border-right:1px solid #242424}
.scan-copy small{display:block;color:#636363;font-size:8px;letter-spacing:.14em;font-weight:850;margin-bottom:5px}
.scan-copy strong{font-size:12px}
.scan-note{max-width:470px;color:#666;font-size:10px;line-height:1.45;text-align:right}
.warning-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#ffcf33;margin-right:6px;vertical-align:1px}

.config{padding:24px 0;border-top:1px solid #252525}
.config-title{display:flex;gap:14px;align-items:center;margin-bottom:17px}
.step{width:35px;height:35px;border:1px solid #313131;border-radius:10px;display:grid;place-items:center;color:var(--accent);font-size:11px;font-weight:900}
.config-title h2,.preview-head h2{margin:2px 0 0;font-size:20px;letter-spacing:-.025em}

.fields{display:grid;grid-template-columns:2fr .8fr .85fr .85fr .9fr;gap:10px}
.field span{display:block;color:#727272;font-size:9px;letter-spacing:.13em;font-weight:800;margin:0 0 7px 2px}
.field input,.field select{width:100%;height:48px;background:#121212;border:1px solid #2b2b2b;color:#f2f2f2;border-radius:10px;padding:0 13px;outline:none}
.field input:focus,.field select:focus{border-color:var(--accent)}

.format-choice{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.format{height:78px;text-align:left;padding:0 18px;background:#111;border:1px solid #2b2b2b;border-radius:12px;color:#e5e5e5}
.format strong,.format span{display:block}
.format strong{font-size:22px}
.format span{font-size:9px;letter-spacing:.13em;color:#676767;margin-top:4px}
.format.active{border-color:var(--accent);background:#171111;box-shadow:inset 4px 0 0 var(--accent)}
.format.active strong{color:var(--accent)}

.preview-card{margin-top:8px;border:1px solid #292929;background:#101010;border-radius:16px;overflow:hidden}
.preview-head{padding:18px 20px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #272727}
.clear{border:0;background:transparent;color:#777;font-size:9px;letter-spacing:.14em;font-weight:900}
.clear:disabled{opacity:.3;cursor:default}
.examples>div{display:grid;grid-template-columns:70px 1fr;padding:13px 20px;border-bottom:1px solid #202020}
.examples span{color:#555;font-size:11px}
.examples strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;color:var(--accent)}
.lastline{display:flex;justify-content:space-between;gap:20px;padding:14px 20px;background:#0d0d0d}
.lastline small{color:#555;font-size:9px;letter-spacing:.13em}
.lastline strong{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;color:#aaa}

.format-btn{width:100%;height:62px;margin-top:14px;border:0;border-radius:14px;background:var(--accent);color:white;font-weight:950;letter-spacing:.09em;display:flex;align-items:center;justify-content:center;gap:10px}
.format-btn svg{width:21px}
.format-btn:disabled{background:#222;color:#555;cursor:default}
.progress{text-align:center;color:#676767;font-size:11px;margin:12px 0 0}
footer{text-align:center;color:#555;font-size:10px;letter-spacing:.12em;padding:30px 0 0}

@media(max-width:900px){
  .tech-grid{grid-template-columns:repeat(3,1fr)}
  .tech-item{border-bottom:1px solid #242424}
  .tech-item:nth-child(3){border-right:0}
  .tech-item:nth-child(n+4){border-bottom:0}
}
@media(max-width:760px){
  .shell{width:min(100% - 20px,1120px)}
  .hero{padding-top:38px}
  .fields{grid-template-columns:1fr 1fr}
  .field-wide{grid-column:1/-1}
  .statusbar{grid-template-columns:1fr}
  .statusbar>div{border-right:0;border-bottom:1px solid #242424}
  .statusbar>div:last-child{border-bottom:0}
  .format-choice{grid-template-columns:1fr}
  .drop-actions{width:100%;flex-direction:column}
  .btn{width:100%}
}
@media(max-width:620px){
  .tech-grid{grid-template-columns:1fr 1fr}
  .tech-item:nth-child(3){border-right:1px solid #242424}
  .tech-item:nth-child(even){border-right:0}
  .tech-item:nth-child(n+4){border-bottom:1px solid #242424}
  .tech-item:nth-last-child(-n+2){border-bottom:0}
  .scan-box{grid-template-columns:1fr}
  .scan-row:first-child{border-right:0;border-bottom:1px solid #242424}
  .scan-row{flex-direction:column}
  .scan-note{text-align:left}
}
@media(max-width:480px){
  .fields{grid-template-columns:1fr}
  .field-wide{grid-column:auto}
  .topbar{align-items:flex-start}
  .local-pill{padding:7px 9px}
  .hero h1{font-size:44px}
  .examples>div{grid-template-columns:54px 1fr}
  .lastline{flex-direction:column;gap:5px}
}
