:root {
  --ink: #252a2d;
  --muted: #60696c;
  --accent: #245c50;
  --accent-light: #edf4f1;
  --border: #dfe3e2;
  --surface: #fff;
  --bg: #f6f7f6;
  --green: #24694c;
  --red: #a3373d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .48; }
:focus-visible { outline: 3px solid #6a9e90; outline-offset: 3px; }
.topbar { min-height: 64px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; gap: 20px; }
.header-context { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.brand { display: flex; align-items: center; }
.brand-logo { display: block; width: 124px; height: auto; }
.tool-label { border-left: 1px solid var(--border); padding-left: 22px; color: var(--muted); font-size: 13px; }
.identity { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 16px; font-size: 12px; color: var(--muted); }
.identity:empty { display: none; }
main { max-width: 1180px; margin: 0 auto; padding: 34px 32px 56px; min-height: calc(100vh - 122px); }
footer { max-width: 1180px; margin: auto; border-top: 1px solid var(--border); padding: 20px 32px; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; color: var(--muted); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 25px; font-weight: 650; letter-spacing: -.5px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 600; line-height: 1.4; }
h3 { font-size: 14px; font-weight: 600; }
p { line-height: 1.6; color: var(--muted); }
.eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 20px; }
.page-heading p { margin-top: 6px; font-size: 13px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border-radius: 5px; border: 1px solid #cbd2cf; padding: 8px 14px; font-size: 13px; font-weight: 500; background: white; color: var(--ink); white-space: nowrap; }
.btn:hover { background: #f0f3f1; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: white; }
.btn-primary:hover { background: #1b493f; }
.btn-danger { color: var(--red); border-color: #dec5c8; }
.btn-link { border: 0; background: none; color: var(--accent); padding: 4px; font-size: 12px; }
.btn-small { min-height: 32px; font-size: 12px; padding: 6px 10px; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 6px; overflow: hidden; }
.card-body { padding: 22px; }
.card-header { padding: 15px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.count { color: var(--muted); font-size: 12px; font-weight: 400; margin-left: 8px; }
.empty { padding: 42px 24px; text-align: center; }
.empty h2 { margin-bottom: 8px; }
.empty p { font-size: 13px; max-width: 390px; margin: 0 auto 20px; }
.icon-tile { display: inline-grid; place-items: center; color: var(--muted); height: 32px; width: 32px; font-size: 22px; }
.request-table { width: 100%; border-collapse: collapse; text-align: left; table-layout: fixed; }
.request-table th { padding: 12px 20px; color: var(--muted); font-weight: 500; font-size: 12px; background: #fafbfa; }
.request-table th:first-child { width: 35%; }
.request-table th:nth-child(2) { width: 29%; }
.request-table th:nth-child(3) { width: 22%; }
.request-table td { padding: 16px 20px; border-top: 1px solid #edf0ee; font-size: 13px; vertical-align: middle; overflow-wrap: anywhere; }
.request-table tr[data-id] { cursor: pointer; }
.request-table tr[data-id]:hover { background: #f5f8f6; }
.request-table td strong { font-weight: 550; }
.request-table td small { display: block; font-size: 11px; color: var(--muted); margin-top: 5px; }
.badge { display: inline-block; font-size: 11px; font-weight: 500; border-radius: 4px; padding: 4px 7px; background: #eef1ef; color: #52625a; text-transform: capitalize; white-space: nowrap; }
.badge-good { color: #236247; background: #eaf4ed; }
.badge-warn { color: #805f1c; background: #fbf3df; }
.badge-bad { color: #93363e; background: #faecee; }
.metrics { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 20px; }
.metric { display: flex; align-items: baseline; gap: 5px; padding: 0 18px; border-left: 1px solid #d7ddda; }
.metric:first-child { padding-left: 0; border-left: 0; }
.metric .label { font-size: 12px; color: var(--muted); }
.metric strong { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-size: 12px; font-weight: 600; }
.field input, .field textarea, .field select { border: 1px solid #cbd2cf; border-radius: 4px; background: white; padding: 10px 11px; color: var(--ink); font-size: 13px; min-width: 0; width: 100%; }
.field textarea { resize: vertical; line-height: 1.5; }
.field small, .hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.full { grid-column: 1/-1; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.5; }
.checkbox input { accent-color: var(--accent); margin: 3px 0 0; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.form-error { color: var(--red); font-size: 13px; line-height: 1.6; margin-top: 14px; }
.notice { border: 1px solid var(--border); background: #f5f7f6; border-radius: 4px; padding: 13px 15px; font-size: 12px; color: #52615a; line-height: 1.6; }
.notice.success { border-color: #d3e4d9; background: #f0f7f2; color: #286346; }
.notice.warning { border-color: #eadbb7; background: #fcf8ed; color: #7b5c1d; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.meta-list { display: grid; gap: 18px; }
.meta-row dt { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.meta-row dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.back { display: inline-flex; font-size: 12px; color: var(--muted); margin-bottom: 18px; gap: 7px; }
.customer-wrap { max-width: 640px; margin: 4px auto; }
.customer-heading { margin-bottom: 22px; }
.customer-heading h1 { margin-bottom: 7px; }
.customer-heading p { font-size: 13px; }
.steps { display: flex; align-items: center; gap: 0; margin: 24px 0; }
.step { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.step b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e9eeeb; font-weight: 500; font-size: 11px; }
.step.active { color: var(--accent); font-weight: 600; }
.step.active b { background: var(--accent); color: white; }
.step.done { color: var(--green); }
.step.done b { background: #e2eee5; color: var(--green); }
.step-line { height: 1px; background: var(--border); flex: 1; min-width: 12px; margin: 0 12px; }
.customer-card { padding: 24px; }
.customer-card h2 { margin-bottom: 8px; }
.customer-card > p { font-size: 13px; margin-bottom: 20px; }
.customer-card > .btn { width: 100%; margin-top: 20px; }
.security-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 16px; }
.code-input { font-size: 24px !important; letter-spacing: 8px; text-align: center; font-variant-numeric: tabular-nums; padding: 13px !important; }
.dropzone { border: 1px dashed #93a99f; border-radius: 5px; background: #f7faf8; padding: 26px 20px; text-align: center; cursor: pointer; }
.dropzone:hover, .dropzone.drag { background: #edf4ef; border-color: var(--accent); }
.dropzone strong { display: block; font-size: 13px; margin: 6px 0; }
.dropzone p { font-size: 12px; }
.file-list { display: flex; flex-direction: column; margin-top: 14px; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid #edf0ee; min-width: 0; }
.file-icon { width: 34px; height: 39px; border: 1px solid var(--border); background: #f8faf9; border-radius: 4px; display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 600; color: #526e61; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 11px; color: var(--muted); margin-top: 5px; }
.file-meta.error { color: var(--red); }
.progress { height: 4px; border: 0; background: #e7ede9; border-radius: 3px; width: 100%; display: block; margin-top: 9px; appearance: none; overflow: hidden; }
.progress::-webkit-progress-bar { background: #e7ede9; }
.progress::-webkit-progress-value { background: var(--accent); }
.progress::-moz-progress-bar { background: var(--accent); }
.file-actions { display: flex; align-items: center; gap: 7px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 6px; }
.upload-summary { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin: 18px 0; }
.receipt-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; background: #e9f3ec; color: var(--green); font-size: 23px; }
.receipt { padding: 24px; }
.receipt p { font-size: 13px; margin: 10px 0 20px; }
.signin { max-width: 420px; margin: 40px auto; padding: 28px; }
.signin h1 { font-size: 24px; margin-bottom: 10px; }
.signin p { font-size: 13px; margin-bottom: 22px; }
.signin .btn { width: 100%; }
.signin .hint { margin: 18px 0 0; font-size: 12px; }
.loading { padding: 64px; text-align: center; color: var(--muted); font-size: 13px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); max-width: 90vw; padding: 13px 20px; background: #293d33; color: white; border-radius: 5px; font-size: 13px; z-index: 30; }
.modal-backdrop { position: fixed; inset: 0; background: #1e292255; display: grid; place-items: center; padding: 24px; z-index: 20; overflow-y: auto; }
.modal { width: 100%; max-width: 650px; max-height: 90vh; overflow: auto; }
.modal .card-body > p { font-size: 13px; margin-bottom: 22px; }
.close { background: none; border: 0; font-size: 22px; color: var(--muted); }
.noscript { position: fixed; inset: 100px 20%; background: white; padding: 32px; border: 1px solid var(--border); }
[hidden] { display: none !important; }
.filename { overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.section-gap { margin-top: 22px; }
.nowrap { white-space: nowrap; }
@media (max-width: 760px) {
  .topbar { padding: 14px 20px; gap: 12px; flex-wrap: wrap; }
  .header-context { gap: 16px; }
  .brand-logo { width: 114px; }
  .tool-label { padding-left: 16px; font-size: 12px; }
  .identity { font-size: 12px; gap: 12px; }
  main { padding: 26px 20px 44px; }
  h1 { font-size: 23px; }
  .page-heading { align-items: flex-start; gap: 16px; }
  .page-heading p { font-size: 12px; }
  .page-heading .btn { padding: 8px 11px; }
  .request-table th, .request-table td { padding: 14px 12px; }
  .request-table th:nth-child(3), .request-table td:nth-child(3) { display: none; }
  .request-table th:first-child { width: 38%; }
  .request-table th:nth-child(2) { width: 38%; }
  .request-table th:nth-child(4) { width: 24%; }
  .detail-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .card-body, .customer-card { padding: 20px; }
  .customer-wrap { margin-top: 0; }
  .file-row { gap: 9px; }
  .file-actions { gap: 2px; }
  footer { padding: 18px 20px; }
  .signin { padding: 24px; margin-top: 24px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: 95vh; }
  .card-header { padding: 14px 16px; }
}
@media (max-width: 440px) {
  .identity { width: 100%; justify-content: flex-start; gap: 12px; }
  .identity > span { margin-right: auto; overflow-wrap: anywhere; }
  .page-heading { flex-wrap: wrap; }
  .request-table th, .request-table td { padding: 12px 9px; font-size: 12px; }
  .step { font-size: 10px; gap: 5px; }
  .step-line { margin: 0 7px; }
  .step b { width: 20px; height: 20px; }
  .file-row { flex-wrap: wrap; }
  .file-info { min-width: 45%; }
  .file-actions { margin-left: auto; }
  .upload-summary { flex-wrap: wrap; }
  footer { flex-wrap: wrap; }
  .noscript { inset: 100px 16px; padding: 24px; }
}
