:root { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif; color: #171717; background: #fff; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #fff; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.shell { max-width: 1180px; margin: 0 auto; padding: 52px 28px 72px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 34px; }
.eyebrow { margin: 0 0 10px; color: #61708a; font-size: 11px; letter-spacing: .14em; font-weight: 700; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.1; }
.subtitle { color: #68758a; font-size: 16px; margin-bottom: 0; }
.header-mark { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid #171717; color: #f97316; font-size: 22px; }
.layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid #dedede; box-shadow: 0 10px 30px rgba(23, 23, 23, .045); }
.form-panel { padding: 30px; }
.recent-panel { padding: 26px; min-height: 430px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 29px; }
.panel-hint { margin: -18px 0 25px; color: #9aa5b5; font-size: 12px; }
.panel-heading > div { display: flex; align-items: center; gap: 12px; }
h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.step { color: #f97316; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.required-note, .counter, .muted { color: #8490a3; font-size: 12px; }
.field { margin-bottom: 25px; }
label, legend { display: block; margin-bottom: 9px; font-size: 14px; font-weight: 650; }
label span, legend span { color: #d14343; }
.sn-row { display: flex; gap: 10px; }
input[type="text"], textarea { width: 100%; border: 1px solid #cfd8e5; border-radius: 3px; background: #fff; color: #172033; outline: none; transition: border-color .15s, box-shadow .15s; }
input[type="text"] { min-height: 48px; padding: 0 14px; }
textarea { padding: 12px 14px; resize: vertical; min-height: 132px; line-height: 1.6; }
input:focus, textarea:focus { border-color: #f97316; box-shadow: 0 0 0 3px rgba(249, 115, 22, .14); }
input::placeholder, textarea::placeholder { color: #a0aabc; }
.primary-button, .secondary-button { min-height: 48px; border-radius: 3px; border: 1px solid transparent; padding: 0 18px; font-weight: 650; white-space: nowrap; }
.primary-button { width: 100%; color: #fff; background: #171717; }
.primary-button:hover { background: #f97316; color: #171717; }
.primary-button:disabled { opacity: .6; cursor: wait; }
.secondary-button { color: #171717; background: #fff8f2; border-color: #f4c29e; }
.secondary-button:hover { background: #fff0e4; }
.camera-icon { font-size: 15px; }
fieldset { border: 0; padding: 0; }
.joint-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.joint-option { margin: 0; position: relative; }
.joint-option input { position: absolute; opacity: 0; }
.joint-option span { display: grid; place-items: center; min-height: 46px; border: 1px solid #d2dbe8; color: #526078; background: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.joint-option input:checked + span { color: #171717; border-color: #f97316; background: #fff4eb; box-shadow: inset 0 -3px 0 #f97316; }
.joint-option input:focus-visible + span { outline: 3px solid rgba(37, 99, 235, .2); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-error { min-height: 17px; margin: 6px 0 0; color: #c53535; font-size: 12px; }
.status { min-height: 42px; padding: 11px 13px; margin: 0 0 14px; border-left: 3px solid transparent; font-size: 13px; line-height: 1.5; }
.status:empty { display: none; }
.status.success { color: #1d6b4c; background: #edf9f2; border-color: #3ca572; }
.status.error { color: #a52f2f; background: #fff1f1; border-color: #d14343; }
.status.info { color: #28559d; background: #eff5ff; border-color: #4e82db; }
.icon-button { border: 0; background: transparent; color: #65738a; width: 36px; height: 36px; font-size: 22px; }
.icon-button:hover { color: #f97316; background: #fff4eb; }
.recent-list { margin-top: 18px; border-top: 1px solid #e8edf4; }
.record { padding: 16px 0; border-bottom: 1px solid #e8edf4; }
.record-top { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #8490a3; margin-bottom: 7px; }
.record-sn { color: #1e3a70; font-size: 13px; font-weight: 700; word-break: break-all; }
.record-problem { margin: 7px 0 0; color: #536078; font-size: 13px; line-height: 1.5; }
.record-joint { color: #d9570b; font-weight: 700; }
.scanner-dialog { width: min(92vw, 480px); padding: 22px; border: 1px solid #dce4ef; background: #fff; box-shadow: 0 18px 60px rgba(18, 31, 53, .2); }
.scanner-dialog::backdrop { background: rgba(14, 25, 43, .5); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.reader { min-height: 280px; overflow: hidden; background: #101827; }
.full-width { width: 100%; margin-top: 12px; }
@media (max-width: 760px) { .shell { padding: 32px 16px 56px; } .page-header { margin-bottom: 25px; } .header-mark { display: none; } .layout { grid-template-columns: 1fr; } .form-panel, .recent-panel { padding: 22px 18px; } .sn-row { flex-direction: column; } .joint-grid { grid-template-columns: repeat(3, 1fr); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
