:root {
  --bg: #f3f7fb;
  --panel: #ffffff;
  --ink: #102033;
  --muted: #667085;
  --line: #d7e2ee;
  --primary: #0f5fbf;
  --primary-dark: #073b7d;
  --danger: #d92d20;
  --ok: #039855;
  --warn: #f79009;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
}

.as-connection-status {
  position: fixed;
  z-index: 10000;
  right: 18px;
  bottom: 18px;
  max-width: min(430px, calc(100vw - 36px));
  padding: 12px 16px;
  border: 1px solid #b9d3f4;
  border-radius: 8px;
  color: #073b7d;
  background: #eef6ff;
  box-shadow: 0 8px 24px rgb(15 48 87 / 16%);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.as-connection-status.offline {
  border-color: #f8d18a;
  color: #7a3e00;
  background: #fff8e8;
}

.as-connection-status[hidden] {
  display: none;
}

.as-safe-fallback {
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
  cursor: pointer;
}

button.secondary {
  background: #344054;
}

button.ghost {
  color: var(--primary-dark);
  border: 1px solid var(--line);
  background: #fff;
}

button.danger {
  background: var(--danger);
}

a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 800;
}

.page {
  min-height: 100vh;
  padding: 34px;
}

.shell {
  max-width: 1480px;
  margin: 0 auto;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.brand-title {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: 0;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(16, 32, 51, 0.08);
  padding: 24px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.as-wizard-form {
  display: block;
  overflow: hidden;
}

.as-wizard-head,
.as-step-title,
.as-draft-tools,
.as-wizard-actions,
.timeline-heading,
.admin-kpi-heading {
  display: flex;
  align-items: center;
}

.as-wizard-head {
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.as-wizard-head h2,
.as-step-title h3,
.admin-kpi-heading h3,
.timeline-heading h3 {
  margin: 0;
  color: var(--primary-dark);
}

.as-wizard-head p,
.as-step-title p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.as-wizard-eyebrow {
  display: block;
  margin-bottom: 5px;
  color: #0677b8;
  font-size: 14px;
  font-weight: 1000;
}

.as-draft-tools {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

#as-draft-status {
  width: 100%;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.as-draft-tools button {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.as-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}

.as-step-button {
  position: relative;
  min-height: 72px;
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  color: #475467;
  background: #f8fbff;
  text-align: left;
}

.as-step-button span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #123a72;
  background: #e4effc;
  font-weight: 1000;
}

.as-step-button b {
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

.as-step-button.done {
  color: #075985;
  border-color: #a8daf4;
  background: #eefaff;
}

.as-step-button.done span {
  color: #fff;
  background: #0891b2;
}

.as-step-button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(15, 95, 191, 0.2);
}

.as-step-button.active span {
  color: var(--primary-dark);
  background: #fff;
}

.as-step-button:disabled:not(.active) {
  cursor: default;
  opacity: 0.62;
}

.as-form-step[hidden] {
  display: none;
}

.as-form-step.active {
  display: grid;
  gap: 18px;
  min-height: 380px;
  animation: asStepIn 180ms ease-out;
}

.as-step-title {
  gap: 12px;
  padding: 15px 17px;
  border-left: 5px solid var(--primary);
  background: #f5f9ff;
}

.as-step-title > span,
.as-complete-step span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  font-weight: 1000;
}

.as-step-tip {
  border: 1px solid #b9dcff;
  border-radius: 10px;
  padding: 14px 16px;
  color: #123a72;
  background: #eef7ff;
  font-weight: 800;
  line-height: 1.55;
}

.as-wizard-actions {
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.as-wizard-actions button {
  min-width: 128px;
}

.as-review-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.as-review-summary article {
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  padding: 15px;
  background: #fbfdff;
}

.as-review-summary h4 {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 17px;
}

.as-review-summary dl,
.as-review-summary p {
  margin: 0;
}

.as-review-summary dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed #dde7f2;
}

.as-review-summary dl div:last-child {
  border-bottom: 0;
}

.as-review-summary dt {
  color: #667085;
  font-weight: 800;
}

.as-review-summary dd {
  margin: 0;
  color: #102033;
  font-weight: 800;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.as-consent-list {
  display: grid;
  gap: 10px;
  border: 1px solid #cfe0f3;
  border-radius: 12px;
  padding: 16px;
  background: #f8fbff;
}

.as-consent-list label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #263b56;
  font-weight: 800;
  line-height: 1.5;
}

.as-consent-list input {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.as-upload-progress {
  border: 1px solid #b9dcff;
  border-radius: 12px;
  padding: 14px;
  background: #eef7ff;
}

.as-upload-progress div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #123a72;
}

.as-upload-progress progress {
  width: 100%;
  height: 12px;
}

.as-drop-zone {
  border: 2px dashed #9ec8f2;
  border-radius: 14px;
  display: grid;
  gap: 7px;
  padding: 20px;
  color: #123a72;
  background: #f7fbff;
  text-align: center;
  transition: border-color 150ms ease, background 150ms ease;
}

.as-drop-zone.dragging {
  border-color: var(--primary);
  background: #e9f5ff;
}

.as-drop-zone > span {
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.as-drop-zone input {
  margin-top: 8px;
}

.as-complete-step {
  width: fit-content;
  margin: 0 auto 14px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: #027a48;
  font-weight: 1000;
}

.as-complete-step span {
  background: var(--ok);
}

.as-complete-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 780px;
  margin: 20px auto;
}

.as-complete-meta div {
  border: 1px solid #d6e3f2;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
}

.as-complete-meta strong,
.as-complete-meta span {
  display: block;
}

.as-complete-meta strong {
  color: #667085;
  font-size: 13px;
}

.as-complete-meta span {
  margin-top: 6px;
  color: var(--primary-dark);
  font-weight: 900;
}

@keyframes asStepIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.check-field {
  font-weight: 900;
}

.check-field {
  min-height: 48px;
  border: 1px solid #bfcede;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 13px 14px;
  background: #fbfdff;
}

.check-field input {
  width: 18px;
  height: 18px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #bfcede;
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfdff;
  outline: none;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--danger);
  background: #fff8f7;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}

.field-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.notice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.notice-item {
  border-left: 5px solid var(--primary);
  border-radius: 12px;
  background: #eaf4ff;
  padding: 14px 16px;
  white-space: pre-line;
}

.customer-ai-assist {
  border: 1px solid #bfd7ff;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
  box-shadow: 0 14px 30px rgba(15, 95, 191, 0.08);
}

.customer-ai-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.customer-ai-head h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 24px;
}

.customer-ai-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.customer-ai-head span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: #2563eb;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
}

.quick-issue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-issue {
  min-height: 104px;
  border: 1px solid #d6e6fa;
  border-radius: 16px;
  padding: 14px;
  color: #123a72;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.05);
}

.quick-issue:hover,
.quick-issue:focus {
  outline: 3px solid rgba(37, 99, 235, 0.16);
  border-color: #60a5fa;
}

.quick-issue strong,
.quick-issue small {
  display: block;
}

.quick-issue strong {
  font-size: 16px;
}

.quick-issue small {
  margin-top: 7px;
  color: #667085;
  font-weight: 800;
  line-height: 1.35;
}

.customer-ai-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.voice-issue-status {
  color: #475467;
  font-weight: 900;
}

.customer-ai-hint {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  color: #075985;
  background: #e0f2fe;
  font-weight: 800;
  line-height: 1.5;
}

.customer-file-list {
  border: 1px dashed #b9cbe1;
  border-radius: 12px;
  padding: 12px;
  color: #667085;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.customer-file-summary {
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.customer-file-category-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.customer-file-category-summary span {
  border-radius: 999px;
  padding: 7px 10px;
  color: #063f77;
  background: #e0f2fe;
  font-size: 12px;
  font-weight: 1000;
}

.customer-file-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.customer-file-chip {
  min-width: 0;
  border: 1px solid #e0e8f2;
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
}

.customer-file-chip strong,
.customer-file-chip span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-file-chip strong {
  color: #102033;
}

.customer-file-chip span {
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.customer-ocr-status {
  margin-top: 10px;
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  padding: 11px 12px;
  color: #344054;
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
}

.customer-ocr-status.processing {
  color: #073b7d;
  border-color: #9cc8ff;
  background: #edf6ff;
}

.customer-ocr-status.success {
  color: #027a48;
  border-color: #8bd5ad;
  background: #ecfdf3;
}

.customer-ocr-status.warn {
  color: #b54708;
  border-color: #fedf89;
  background: #fffaeb;
}

.customer-ocr-status.error {
  color: #b42318;
  border-color: #fecdca;
  background: #fff1f3;
}

.label-upload-panel {
  border: 1px solid #9bc8ff;
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.14), transparent 30%),
    linear-gradient(135deg, #eff7ff 0%, #ffffff 62%, #f4fbff 100%);
  box-shadow: 0 16px 36px rgba(13, 84, 160, 0.1);
}

.label-upload-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.label-upload-head h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(23px, 2.4vw, 34px);
  line-height: 1.16;
}

.label-upload-head p,
.label-upload-note {
  margin: 7px 0 0;
  color: #344054;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.5;
}

.label-upload-badge {
  border-radius: 999px;
  padding: 10px 13px;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.22);
  font-size: 14px;
  font-weight: 1000;
  white-space: nowrap;
}

.label-upload-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.label-upload-steps span {
  border: 1px solid #cfe2ff;
  border-radius: 12px;
  padding: 10px 12px;
  color: #0b4a97;
  background: #fff;
  font-size: 14px;
  font-weight: 1000;
  text-align: center;
}

.label-capture-guide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid #bcd8ff;
  border-radius: 16px;
  padding: 14px;
  background: linear-gradient(135deg, #eef7ff 0%, #ffffff 100%);
}

.label-capture-guide.featured {
  margin-top: 4px;
  border-color: #a7d4ff;
  background: rgba(255, 255, 255, 0.74);
}

.label-capture-guide strong {
  display: block;
  color: var(--primary-dark);
  font-size: 17px;
  font-weight: 1000;
}

.label-capture-guide p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
}

.label-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 84px);
  gap: 8px;
}

.label-sample {
  min-height: 70px;
  border: 1px solid #d7e3f1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #075985;
  background: #ffffff;
  font-size: 15px;
  font-weight: 1000;
  text-align: center;
  line-height: 1.15;
}

.label-sample small {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
}

.label-sample.good {
  border-color: #86efac;
  background: #f0fdf4;
  color: #027a48;
}

.label-sample.bad {
  border-color: #fedf89;
  background: #fffbeb;
  color: #b54708;
}

.attachment-type-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.attachment-type-card {
  min-width: 0;
  border: 1px solid #d7e3f1;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(16, 32, 51, 0.05);
}

.attachment-type-card b,
.attachment-type-card span,
.attachment-type-card small {
  display: block;
  overflow-wrap: anywhere;
}

.attachment-type-card b {
  color: var(--primary-dark);
  font-size: 15px;
  font-weight: 1000;
}

.attachment-type-card span {
  margin-top: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.35;
}

.attachment-type-card small {
  margin-top: 7px;
  color: #667085;
  font-weight: 800;
  line-height: 1.35;
}

.attachment-type-card.label-photo {
  border-color: #93c5fd;
  background: #eff6ff;
}

.attachment-type-card.fault-photo {
  border-color: #fdba74;
  background: #fff7ed;
}

.attachment-type-card.fault-video {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.attachment-type-card.document-file {
  border-color: #86efac;
  background: #f0fdf4;
}

.customer-file-grid.enhanced {
  grid-template-columns: 1fr;
  gap: 12px;
}

.customer-file-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #d7e3f1;
  border-radius: 16px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.customer-file-thumb-large {
  position: relative;
  width: 132px;
  height: 96px;
  border: 1px solid #d7e3f1;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #075985;
  background: linear-gradient(135deg, #eff8ff 0%, #ffffff 100%);
  font-size: 13px;
  font-weight: 1000;
}

.customer-file-thumb-large img,
.customer-file-thumb-large video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-file-thumb-large.pdf {
  color: #b42318;
  background: #fff1f3;
}

.customer-file-thumb-large .scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: -20%;
  height: 38%;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0) 0%, rgba(37, 99, 235, 0.32) 48%, rgba(37, 99, 235, 0) 100%);
  animation: scanLabelLine 1.7s ease-in-out infinite;
  pointer-events: none;
}

.customer-file-icon {
  border-radius: 999px;
  padding: 9px 12px;
  background: #e0f2fe;
}

.customer-file-icon.pdf {
  color: #b42318;
  background: #ffe4e6;
}

.customer-file-meta {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.customer-file-meta strong,
.customer-file-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-file-meta strong {
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 1000;
}

.customer-file-meta span {
  color: #667085;
  font-size: 13px;
}

.customer-file-type-badge {
  justify-self: start;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: #2563eb;
  font-size: 12px;
  font-weight: 1000;
}

.customer-file-type-badge.image {
  background: #2563eb;
}

.customer-file-type-badge.video {
  background: #7c3aed;
}

.customer-file-type-badge.pdf,
.customer-file-type-badge.document,
.customer-file-type-badge.spreadsheet,
.customer-file-type-badge.file {
  background: #059669;
}

.customer-file-meta em {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  color: #075985;
  background: #e0f2fe;
  font-size: 12px;
  font-style: normal;
  font-weight: 1000;
}

.customer-file-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ocr-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ocr-status-row b {
  margin-left: auto;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: #2563eb;
  font-size: 12px;
}

.ocr-spinner {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border: 3px solid rgba(37, 99, 235, 0.18);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: ocrSpin 0.72s linear infinite;
}

.ocr-progress {
  height: 7px;
  margin-top: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbeafe;
}

.ocr-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8 0%, #38bdf8 100%);
  transition: width 0.24s ease;
}

.customer-ocr-result {
  margin-top: 12px;
  border: 1px solid #d7e3f1;
  border-radius: 16px;
  padding: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(16, 32, 51, 0.06);
}

.customer-ocr-result.high {
  border-color: #86efac;
  background: #f0fdf4;
}

.customer-ocr-result.medium {
  border-color: #fedf89;
  background: #fffbeb;
}

.customer-ocr-result.low {
  border-color: #fecdca;
  background: #fff1f3;
}

.ocr-result-head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.ocr-result-head strong {
  color: var(--primary-dark);
  font-size: 18px;
  font-weight: 1000;
}

.confidence-badge {
  border-radius: 999px;
  padding: 7px 11px;
  color: #fff;
  background: #475467;
  font-size: 13px;
  font-weight: 1000;
}

.confidence-badge.high {
  background: #059669;
}

.confidence-badge.medium {
  background: #f59e0b;
}

.confidence-badge.low {
  background: #dc2626;
}

.ocr-result-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 12px 0;
}

.ocr-result-list div {
  min-width: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.82);
}

.ocr-result-list dt {
  color: #667085;
  font-size: 12px;
  font-weight: 1000;
}

.ocr-result-list dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
}

.attachment-ai-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.attachment-ai-item {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.84);
}

.attachment-ai-item b,
.attachment-ai-item span,
.attachment-ai-item p,
.attachment-ai-item em {
  overflow-wrap: anywhere;
}

.attachment-ai-item b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 1000;
}

.attachment-ai-item span {
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 1000;
}

.attachment-ai-item p,
.attachment-ai-item em {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
}

.attachment-ai-item em {
  color: #667085;
  font-style: normal;
}

.ocr-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

@keyframes scanLabelLine {
  0% {
    transform: translateY(-120%);
  }
  100% {
    transform: translateY(360%);
  }
}

@keyframes ocrSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  .attachment-type-guide {
    grid-template-columns: 1fr;
  }

  .copilot-v2-grid {
    grid-template-columns: 1fr;
  }
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  color: #fff;
  background: #475467;
  font-weight: 900;
  white-space: nowrap;
}

.status-접수 { background: #2563eb; }
.status-접수완료 { background: #1570ef; }
.status-제품입고 { background: #0891b2; }
.status-견적 { background: #7a5af8; }
.status-승인대기 { background: #f79009; }
.status-수리중 { background: #0f766e; }
.status-수리완료 { background: #039855; }
.status-발송완료 { background: #166534; }

.status-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 18px;
}

.status-step {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  color: #475467;
  background: #f8fbff;
  font-size: 14px;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.status-step.done {
  color: #075985;
  border-color: #bae6fd;
  background: #e0f2fe;
}

.status-step.current {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 8px 18px rgba(15, 95, 191, 0.22);
}

.timeline-heading {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-heading span,
.admin-kpi-heading span {
  display: block;
  margin-bottom: 4px;
  color: #0782a8;
  font-size: 13px;
  font-weight: 1000;
}

.timeline-heading > b,
.admin-kpi-heading > b {
  border-radius: 999px;
  padding: 7px 11px;
  color: #075985;
  background: #e0f2fe;
  font-size: 13px;
  white-space: nowrap;
}

.as-history-timeline {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-history-timeline::before {
  position: absolute;
  top: 22px;
  bottom: 22px;
  left: 37px;
  width: 3px;
  content: "";
  background: #cfe0f3;
}

.as-history-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 10px 0;
}

.as-history-marker {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 44px;
  border: 4px solid #fff;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #075985;
  background: #dff4ff;
  font-size: 11px;
  font-weight: 1000;
}

.as-history-timeline li.current .as-history-marker {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 7px 18px rgba(15, 95, 191, 0.24);
}

.as-history-timeline li > div {
  border: 1px solid #d9e6f5;
  border-radius: 12px;
  padding: 13px 15px;
  background: #fbfdff;
}

.as-history-timeline time {
  display: block;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.as-history-timeline strong {
  display: block;
  margin-top: 3px;
  color: var(--primary-dark);
  font-size: 17px;
}

.as-history-timeline p {
  margin: 5px 0 0;
  color: #344054;
  line-height: 1.5;
}

.status-button-panel {
  border: 1px solid #cfe0f3;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  padding: 16px;
  margin: 12px 0 18px;
}

.status-button-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.status-button-title strong {
  color: var(--primary-dark);
  font-size: 18px;
}

.status-button-title span,
.status-save-note {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.status-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.status-action {
  min-height: 54px;
  border: 1px solid #c8d8ea;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  color: #102033;
  background: #fff;
  box-shadow: 0 6px 18px rgba(16, 32, 51, 0.06);
}

.status-action.done {
  color: #075985;
  border-color: #bae6fd;
  background: #e0f2fe;
}

.status-action.current {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 10px 22px rgba(15, 95, 191, 0.24);
}

.status-action.pending:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #f0f7ff;
}

.status-action:disabled {
  cursor: wait;
  opacity: 0.72;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: currentColor;
}

.status-save-note {
  min-height: 20px;
  margin-top: 10px;
}

.complete-card {
  text-align: center;
  padding: 46px 24px;
}

.as-no {
  margin: 20px auto;
  color: var(--primary-dark);
  font-size: clamp(34px, 5vw, 70px);
  font-weight: 1000;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(380px, 0.95fr) minmax(520px, 1.05fr);
  gap: 18px;
}

.admin-kpi-section {
  margin: 12px 0 16px;
  border: 1px solid #d9e6f5;
  border-radius: 16px;
  padding: 16px;
  background: #f8fbff;
}

.admin-kpi-heading {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-kpi-card {
  min-width: 0;
  border: 1px solid #d7e4f3;
  border-left: 5px solid #1976d2;
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
}

.admin-kpi-card span,
.admin-kpi-card strong,
.admin-kpi-card small {
  display: block;
}

.admin-kpi-card span {
  color: #344054;
  font-size: 13px;
  font-weight: 900;
}

.admin-kpi-card strong {
  margin: 6px 0;
  color: var(--primary-dark);
  font-size: 30px;
  line-height: 1;
}

.admin-kpi-card small {
  color: #667085;
  line-height: 1.35;
}

.admin-kpi-card.urgent { border-left-color: #d92d20; }
.admin-kpi-card.urgent strong { color: #b42318; }
.admin-kpi-card.remote { border-left-color: #7a5af8; }
.admin-kpi-card.visit { border-left-color: #f79009; }
.admin-kpi-card.complete { border-left-color: #039855; }
.admin-kpi-card.complete strong { color: #027a48; }

.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.list {
  display: grid;
  gap: 10px;
  max-height: 72vh;
  overflow: auto;
  padding-right: 4px;
}

.request-row {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
}

.request-row.active {
  outline: 3px solid rgba(15, 95, 191, 0.2);
  border-color: var(--primary);
}

.recent-card-section {
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  padding: 16px;
  margin: 12px 0 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.recent-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.recent-card-head h3 {
  margin: 0;
  color: var(--primary-dark);
}

.recent-card-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.recent-card-head span {
  border-radius: 999px;
  padding: 7px 11px;
  color: #123a72;
  background: #eaf4ff;
  font-size: 13px;
  font-weight: 1000;
  white-space: nowrap;
}

.recent-request-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recent-request-list .request-row {
  min-width: 0;
  padding: 12px;
  box-shadow: 0 8px 18px rgba(16, 32, 51, 0.05);
}

.recent-request-list .row-title strong {
  font-size: 16px;
}

.recent-request-list .meta {
  font-size: 14px;
}

.as-summary-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.as-summary-card {
  min-height: 82px;
  border: 1px solid #cfe0f5;
  border-radius: 14px;
  padding: 12px;
  color: #123a72;
  background: #f7fbff;
  text-align: left;
}

.as-summary-card strong,
.as-summary-card span {
  display: block;
}

.as-summary-card strong {
  color: var(--primary-dark);
  font-size: 26px;
  line-height: 1;
}

.as-summary-card span {
  margin-top: 8px;
  color: #475467;
  font-size: 13px;
}

.admin-search-panel {
  border: 1px solid #d9e6f5;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  padding: 18px;
  margin-bottom: 16px;
}

.admin-search-head,
.admin-search-actions,
.quick-date-actions,
.issue-chip-row,
.bulk-action-bar,
.as-pagination,
.page-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.admin-search-head {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.admin-search-head h3 {
  margin: 0;
  color: var(--primary-dark);
}

.admin-search-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-search-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-search-actions select {
  min-height: 44px;
  border: 1px solid #bfcede;
  border-radius: 11px;
  padding: 8px 12px;
  background: #fff;
}

.admin-search-grid {
  align-items: end;
}

.quick-date-actions,
.issue-chip-row {
  flex-wrap: wrap;
  margin-top: 12px;
}

.issue-chip {
  min-height: 40px;
  border: 1px solid #bfcede;
  border-radius: 999px;
  padding: 8px 13px;
  color: #123a72;
  background: #fff;
  font-size: 14px;
}

.issue-chip.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.column-settings-box {
  margin-top: 12px;
  border: 1px solid #d9e6f5;
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.column-settings-box summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 900;
}

.column-check-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 12px 0;
}

.column-check-grid label {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.bulk-action-bar {
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 8px 0 10px;
  border: 1px solid #d9e6f5;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f8fbff;
}

.bulk-action-bar select {
  min-height: 42px;
  border: 1px solid #bfcede;
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
}

.as-table-wrap {
  width: 100%;
  max-height: 62vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.as-request-table {
  width: 100%;
  min-width: 1100px;
  border-collapse: separate;
  border-spacing: 0;
}

.as-request-table th,
.as-request-table td {
  border-bottom: 1px solid #e4edf7;
  padding: 12px 10px;
  color: #102033;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
  font-size: 14px;
}

.as-request-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #123a72;
  background: #eff6ff;
  font-weight: 1000;
}

.as-request-row {
  cursor: pointer;
}

.as-request-row:hover td,
.as-request-row.active td {
  background: #f0f7ff;
}

.select-col {
  width: 70px;
  text-align: center !important;
}

.as-pagination {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 12px;
  color: #475467;
  font-weight: 800;
}

.page-buttons {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-buttons button {
  min-height: 40px;
  padding: 8px 12px;
}

.empty-result {
  border: 1px dashed #bfcede;
  border-radius: 16px;
  padding: 26px;
  color: #667085;
  background: #fbfdff;
  text-align: center;
  font-weight: 900;
}

.row-title {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.row-title strong {
  font-size: 18px;
}

.meta {
  color: var(--muted);
  line-height: 1.5;
}

.warranty-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}

.warranty-pill,
.charge-amount {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 900;
}

.warranty-pill {
  color: #475467;
  background: #eef2f6;
}

.warranty-summary.free .warranty-pill {
  color: #027a48;
  background: #d1fadf;
}

.warranty-summary.paid .warranty-pill {
  color: #b42318;
  background: #fee4e2;
}

.warranty-summary.unknown .warranty-pill {
  color: #475467;
  background: #eef2f6;
}

.charge-amount {
  color: #7a2e0e;
  background: #fff4e5;
}

.shipping-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 900;
}

.shipping-summary.ready {
  color: #063b22;
  background: #ecfdf3;
  border: 1px solid #abefc6;
}

.shipping-summary.missing {
  color: #7a2e0e;
  background: #fff4e5;
  border: 1px solid #fedf89;
}

.shipping-pill {
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: #0f766e;
}

.shipping-summary strong {
  font-size: 15px;
}

.kakao-panel {
  border: 1px solid #f9d78c;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.08);
}

.kakao-panel-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kakao-panel h3 {
  margin: 0;
  color: #7a2e0e;
  font-size: 21px;
}

.kakao-panel p {
  margin: 6px 0 0;
  color: #667085;
  font-weight: 800;
}

.kakao-badge {
  border-radius: 999px;
  padding: 8px 12px;
  color: #3b2f00;
  background: #fee500;
  font-weight: 1000;
}

.kakao-message {
  width: 100%;
  min-height: 210px;
  max-height: 280px;
  border: 1px solid #f7c566;
  border-radius: 14px;
  padding: 14px;
  color: #1f2937;
  background: #fffef7;
  line-height: 1.55;
  resize: vertical;
}

.kakao-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.kakao-note {
  margin-top: 10px;
  color: #7a2e0e;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.attachment-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  margin-top: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  font-size: 13px;
  font-weight: 900;
}

.attachment-section {
  border: 1px solid #d7e3f1;
  border-radius: 16px;
  padding: 16px;
  background: #f8fbff;
}

.attachment-section h3 {
  margin: 0;
  color: var(--primary-dark);
}

.attachment-count {
  border-radius: 999px;
  padding: 6px 10px;
  color: #075985;
  background: #e0f2fe;
  font-size: 13px;
  font-weight: 900;
}

.attachment-list {
  display: grid;
  gap: 10px;
}

.attachment-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
}

.attachment-thumb {
  width: 96px;
  height: 72px;
  border: 1px solid #d7e3f1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #075985;
  background: #eff8ff;
  font-size: 12px;
  font-weight: 1000;
}

.attachment-preview-trigger {
  padding: 0;
  cursor: zoom-in;
}

.attachment-thumb img,
.attachment-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.attachment-doc-thumb {
  gap: 4px;
  color: #b42318;
  background: #fff1f3;
}

.attachment-doc-thumb b {
  font-size: 18px;
}

.attachment-file-thumb {
  color: #475467;
  background: #f2f4f7;
}

.attachment-info {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.attachment-info strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
}

.attachment-info span,
.attachment-private {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.small-button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.attachment-preview-modal[hidden] {
  display: none;
}

.attachment-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(9, 18, 32, 0.72);
}

.attachment-preview-dialog {
  width: min(1040px, 92vw);
  height: min(760px, 86vh);
  border-radius: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.34);
}

.attachment-preview-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.attachment-preview-head strong {
  min-width: 0;
  overflow: hidden;
  color: var(--primary-dark);
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.attachment-preview-tools span {
  min-width: 54px;
  text-align: center;
  color: var(--muted);
  font-weight: 900;
}

.attachment-preview-body {
  overflow: auto;
  background: #0f172a;
}

.attachment-preview-stage {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.attachment-preview-media {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  background: #fff;
  transform: scale(var(--preview-zoom, 1));
  transform-origin: center;
  transition: transform 0.16s ease;
}

.attachment-preview-frame {
  width: min(900px, 82vw);
  height: min(640px, 72vh);
  border: 0;
}

.attachment-preview-empty {
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  color: #fff;
}

.ai-panel {
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  box-shadow: 0 14px 32px rgba(15, 95, 191, 0.1);
  padding: 18px;
  margin: 14px 0 18px;
}

.ai-panel.empty {
  background: #f8fbff;
}

.ai-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ai-panel h3 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 22px;
}

.ai-panel p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.ai-badge {
  border-radius: 999px;
  padding: 8px 12px;
  color: #fff;
  background: #2563eb;
  font-weight: 1000;
  white-space: nowrap;
}

.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.ai-grid div,
.ai-copy-block {
  border: 1px solid #d7e2ee;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  padding: 12px;
}

.ai-grid b,
.ai-copy-block b {
  display: block;
  color: #344054;
  font-size: 13px;
  margin-bottom: 6px;
}

.ai-grid span {
  color: var(--primary-dark);
  font-size: 16px;
  font-weight: 900;
}

.ai-copy-block {
  margin-top: 8px;
}

.ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.ai-output {
  width: 100%;
  min-height: 132px;
  margin-top: 12px;
  border: 1px solid #bfcede;
  border-radius: 14px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  resize: vertical;
}

.enterprise-ai-panel {
  border: 1px solid #c7d7fe;
  border-radius: 20px;
  padding: 18px;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.09);
}

.enterprise-ai-head,
.enterprise-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.enterprise-ai-head {
  margin-bottom: 14px;
}

.enterprise-ai-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.copilot-v2-button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.24);
}

.copilot-v2-output {
  border: 1px solid #bfdbfe;
  border-radius: 18px;
  padding: 14px;
  margin: 0 0 14px;
  background: #eff6ff;
}

.copilot-v2-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.copilot-v2-head strong,
.copilot-v2-head span {
  display: block;
}

.copilot-v2-head strong {
  color: #0f2e5f;
  font-size: 19px;
  font-weight: 1000;
}

.copilot-v2-head span {
  margin-top: 4px;
  color: #475467;
  font-weight: 900;
}

.copilot-v2-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.copilot-v2-card {
  min-width: 0;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  padding: 12px;
  background: #ffffff;
}

.copilot-v2-card b,
.copilot-v2-card strong,
.copilot-v2-card p {
  display: block;
  overflow-wrap: anywhere;
}

.copilot-v2-card b {
  color: #2563eb;
  font-size: 12px;
  font-weight: 1000;
}

.copilot-v2-card strong {
  margin-top: 5px;
  color: #101828;
  font-size: 16px;
  font-weight: 1000;
}

.copilot-v2-card p {
  margin: 6px 0 0;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.copilot-v2-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.copilot-v2-actions b,
.copilot-v2-actions span {
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 1000;
}

.copilot-v2-actions b {
  color: #fff;
  background: #1d4ed8;
}

.copilot-v2-actions span {
  color: #0f2e5f;
  background: #dbeafe;
}

.copilot-v2-report {
  width: 100%;
  min-height: 180px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  margin-top: 12px;
  padding: 12px;
  color: #172033;
  background: #ffffff;
  font-weight: 800;
  line-height: 1.55;
  resize: vertical;
}

.analysis-report-panel {
  border: 1px solid #bfd7ff;
  border-radius: 20px;
  padding: 18px;
  margin: 14px 0 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: 0 16px 34px rgba(15, 76, 129, 0.09);
}

.analysis-report-head,
.analysis-report-actions,
.analysis-evidence-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.analysis-report-head {
  margin-bottom: 14px;
}

.analysis-report-head h3 {
  margin: 0;
  color: #0b2d55;
  font-size: 23px;
}

.analysis-report-head p {
  margin: 6px 0 0;
  color: #667085;
  font-weight: 800;
  line-height: 1.5;
}

.analysis-report-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.analysis-report-create,
.analysis-report-ai {
  border: 0;
  border-radius: 999px;
  padding: 11px 16px;
  color: #fff;
  background: linear-gradient(135deg, #0f5bd3 0%, #12a8a8 100%);
  box-shadow: 0 10px 22px rgba(15, 91, 211, 0.22);
}

.analysis-report-form {
  display: grid;
  gap: 12px;
}

.analysis-report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analysis-report-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-report-form textarea {
  min-height: 94px;
  line-height: 1.5;
}

.analysis-evidence-area {
  border-top: 1px solid #d9e7ff;
  margin-top: 18px;
  padding-top: 16px;
}

.analysis-evidence-head h4 {
  margin: 0;
  color: #0b2d55;
  font-size: 18px;
}

#analysis-evidence-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

#analysis-evidence-form input[type="file"] {
  max-width: 260px;
}

#analysis-evidence-form input[name="caption"] {
  min-width: 280px;
}

.analysis-evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.analysis-evidence-card {
  margin: 0;
  border: 1px solid #d9e7ff;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
}

.analysis-evidence-card img,
.analysis-file-thumb {
  width: 100%;
  height: 150px;
  object-fit: contain;
  display: grid;
  place-items: center;
  background: #f3f7fc;
  color: #475467;
  font-weight: 1000;
}

.analysis-evidence-card figcaption {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
}

.analysis-evidence-card figcaption b {
  color: #0b2d55;
  line-height: 1.35;
}

.analysis-evidence-card figcaption span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.enterprise-ai-head h3 {
  margin: 0;
  color: #123a72;
  font-size: 23px;
}

.enterprise-ai-head p,
.enterprise-ai-note {
  margin: 6px 0 0;
  color: #667085;
  font-weight: 800;
  line-height: 1.5;
}

.enterprise-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.enterprise-ai-card {
  min-width: 0;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  padding: 15px;
  background: #fff;
}

.enterprise-card-head {
  margin-bottom: 12px;
}

.enterprise-card-head strong {
  color: #101828;
  font-size: 17px;
}

.enterprise-card-head button {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.enterprise-result {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.enterprise-result div {
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 10px;
  background: #f8fafc;
}

.enterprise-result dt {
  color: #667085;
  font-size: 12px;
  font-weight: 900;
}

.enterprise-result dd {
  margin: 4px 0 0;
  color: #0f172a;
  font-weight: 1000;
  line-height: 1.35;
  word-break: keep-all;
}

.enterprise-pre {
  max-height: 120px;
  overflow: auto;
  border: 1px solid #e5edf6;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
  color: #344054;
  white-space: pre-wrap;
}

.voice-stt-input {
  width: 100%;
  min-height: 96px;
  border: 1px solid #d7e3f1;
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
}

.maintenance-list {
  display: grid;
  gap: 8px;
}

.maintenance-item {
  border: 1px solid #e7eef8;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbff;
}

.maintenance-item strong,
.maintenance-item span {
  display: block;
}

.maintenance-item strong {
  color: #b42318;
  font-size: 14px;
}

.maintenance-item span {
  margin-top: 4px;
  color: #123a72;
  font-weight: 900;
}

.maintenance-item p {
  margin: 6px 0 0;
  color: #475467;
  line-height: 1.45;
}

.ai-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.ai-dashboard-card {
  border: 1px solid #cfe0f3;
  border-radius: 16px;
  background: #f8fbff;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(16, 32, 51, 0.06);
}

.ai-dashboard-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 32px;
  line-height: 1;
}

.ai-dashboard-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 900;
}

.detail-section {
  margin-top: 18px;
}

.detail-section h3 {
  margin: 0 0 10px;
  color: var(--primary-dark);
}

.contract-billing-panel {
  border: 1px solid #bfd7ff;
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
}

.contract-billing-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.contract-billing-heading span {
  color: #1570ef;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.contract-billing-heading h3 {
  margin: 3px 0 0;
}

.contract-billing-links {
  margin-top: 0;
}

.contract-billing-links a {
  border: 1px solid #bfd7ff;
  border-radius: 10px;
  padding: 9px 12px;
  color: #0b4a8f;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.contract-billing-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 16px 0;
}

.contract-billing-steps span {
  border: 1px solid #d6e4f7;
  border-radius: 999px;
  padding: 7px 5px;
  color: #667085;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.contract-billing-steps span.done {
  border-color: #86efac;
  color: #067647;
  background: #ecfdf3;
}

.contract-billing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contract-billing-grid article {
  min-width: 0;
  border: 1px solid #d6e4f7;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.contract-billing-grid article.is-good {
  border-color: #a6f4c5;
  background: #f0fdf4;
}

.contract-billing-grid article.is-accent {
  border-color: #fbd38d;
  background: #fffbeb;
}

.contract-billing-grid span,
.contract-billing-grid small {
  display: block;
  color: #667085;
  font-weight: 800;
}

.contract-billing-grid strong {
  display: block;
  overflow: hidden;
  margin: 5px 0;
  color: #102a56;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-billing-actions button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.contract-billing-note,
.contract-billing-empty {
  margin: 12px 0 0;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 720px) {
  .contract-billing-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-billing-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contract-billing-grid {
    grid-template-columns: 1fr;
  }
}

.kv {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 14px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.kv dt {
  color: var(--muted);
  font-weight: 800;
}

.kv dd {
  margin: 0;
  white-space: pre-line;
}

.log-list {
  display: grid;
  gap: 8px;
}

.log-item {
  border-radius: 12px;
  background: #f6f9fc;
  padding: 12px;
}

.company-footer {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: #344054;
  line-height: 1.55;
}

.inbound-guide {
  margin-top: 18px;
  border: 1px solid #b8d7ff;
  border-radius: 14px;
  background: #f0f7ff;
  padding: 18px;
  color: #102033;
  font-size: 17px;
  line-height: 1.7;
}

.inbound-guide strong {
  color: var(--primary-dark);
  font-size: 20px;
}

.issue-type-form {
  margin-top: 16px;
}

.issue-type-list {
  max-height: 60vh;
}

.issue-type-row {
  cursor: default;
}

.receipt {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  padding: 34px;
}

.receipt h1 {
  margin: 0 0 20px;
  text-align: center;
  font-size: 34px;
}

.receipt .as-no {
  font-size: 36px;
}

.receipt-section {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
}

.receipt-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--primary-dark);
}

.login-card {
  max-width: 520px;
  margin: 8vh auto 0;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.admin-tabs button {
  background: #e7eef8;
  color: var(--primary-dark);
}

.admin-tabs button.active {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 920px) {
  .page {
    padding: 18px;
  }

  .hero,
  .admin-layout {
    grid-template-columns: 1fr;
    display: grid;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .as-summary-cards,
  .column-check-grid,
  .recent-request-list,
  .admin-kpi-grid,
  .as-review-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-stepper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .as-wizard-head {
    align-items: flex-start;
  }

  .admin-search-head {
    display: grid;
  }

  .admin-search-actions {
    justify-content: flex-start;
  }

  .status-flow,
  .status-button-grid,
  .ai-grid,
  .enterprise-ai-grid,
  .ai-dashboard-grid,
  .quick-issue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .label-capture-guide,
  .label-upload-head {
    grid-template-columns: 1fr;
  }

  .label-sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body {
    background: #ffffff;
  }

  .page {
    padding: 14px;
  }

  .hero {
    gap: 12px;
    margin-bottom: 14px;
  }

  .brand-title {
    font-size: 25px;
    line-height: 1.18;
  }

  .sub {
    font-size: 14px;
    line-height: 1.45;
  }

  .panel {
    border-radius: 14px;
    padding: 16px;
    box-shadow: none;
  }

  .as-wizard-head,
  .as-step-title,
  .as-wizard-actions,
  .timeline-heading,
  .admin-kpi-heading {
    align-items: stretch;
  }

  .as-wizard-head,
  .timeline-heading,
  .admin-kpi-heading {
    display: grid;
  }

  .as-draft-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  #as-draft-status {
    grid-column: 1 / -1;
    text-align: left;
  }

  .as-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .as-step-button {
    min-height: 62px;
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 8px;
  }

  .as-step-button span {
    width: 28px;
    height: 28px;
  }

  .as-form-step.active {
    min-height: 0;
  }

  .as-step-title {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .as-wizard-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .as-wizard-actions button {
    width: 100%;
    min-width: 0;
  }

  #as-step-next,
  #as-submit {
    grid-column: 1 / -1;
  }

  .as-review-summary,
  .as-complete-meta,
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }

  .as-review-summary dl div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .as-history-timeline::before {
    left: 27px;
  }

  .as-history-timeline li {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 9px;
  }

  .as-history-marker {
    width: 56px;
    height: 38px;
  }

  .label-upload-panel {
    border-radius: 16px;
    padding: 14px;
  }

  .label-upload-steps {
    grid-template-columns: 1fr;
  }

  .label-upload-badge {
    width: fit-content;
  }

  .grid {
    gap: 12px;
  }

  .field {
    gap: 6px;
  }

  .field label {
    font-size: 15px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 48px;
    border-radius: 11px;
    padding: 12px;
    font-size: 16px;
  }

  .field textarea {
    min-height: 118px;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .actions a,
  .actions button {
    width: 100%;
  }

  .attachment-item {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .attachment-item > a {
    grid-column: 1 / -1;
  }

  .attachment-thumb {
    width: 78px;
    height: 60px;
  }

  .enterprise-ai-grid,
  .enterprise-result,
  .as-summary-cards,
  .column-check-grid,
  .recent-request-list {
    grid-template-columns: 1fr;
  }

  .recent-card-head {
    display: grid;
  }

  .as-table-wrap {
    max-height: none;
  }

  .as-pagination,
  .page-buttons,
  .bulk-action-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .enterprise-ai-head,
  .enterprise-card-head {
    flex-direction: column;
  }

  .customer-ai-head {
    flex-direction: column;
  }

  .quick-issue-grid,
  .customer-file-grid {
    grid-template-columns: 1fr;
  }

  .label-capture-guide,
  .customer-file-card {
    grid-template-columns: 1fr;
  }

  .label-sample-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .customer-file-thumb-large {
    width: 100%;
    height: 180px;
  }

  .customer-file-actions,
  .ocr-result-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ocr-result-list {
    grid-template-columns: 1fr;
  }

  .quick-issue {
    min-height: 86px;
  }

  .attachment-preview-modal {
    padding: 10px;
  }

  .attachment-preview-dialog {
    width: 96vw;
    height: 86vh;
  }

  .attachment-preview-tools {
    width: 100%;
  }

  .attachment-preview-tools a,
  .attachment-preview-tools button {
    width: auto;
  }

  button {
    min-height: 50px;
    padding: 12px 14px;
    border-radius: 12px;
  }

  .notice-item,
  .inbound-guide,
  .company-footer {
    font-size: 14px;
    line-height: 1.55;
  }

  .complete-card {
    padding: 26px 16px;
  }

  .as-no {
    font-size: 32px;
    word-break: break-all;
  }

  .kv {
    grid-template-columns: 96px 1fr;
    gap: 6px 10px;
    font-size: 14px;
  }

  .receipt {
    padding: 18px;
  }

  .receipt h1 {
    font-size: 25px;
  }

  .receipt .as-no {
    font-size: 25px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 9mm;
  }

  body {
    background: #fff;
    color: #111827;
  }

  .no-print {
    display: none !important;
  }

  .page {
    padding: 0;
    min-height: auto;
  }

  .receipt {
    border: 0;
    box-shadow: none;
    max-width: none;
    width: 100%;
    padding: 0;
    font-size: 10.5pt;
    page-break-inside: avoid;
  }

  .receipt h1 {
    font-size: 20pt;
    margin: 0 0 5mm;
  }

  .receipt .as-no {
    margin: 0 auto 4mm;
    font-size: 19pt;
  }

  .receipt-section {
    margin-top: 3mm;
    border-radius: 6px;
    padding: 3mm 4mm;
    page-break-inside: avoid;
  }

  .receipt-section h2 {
    margin: 0 0 2mm;
    font-size: 12pt;
  }

  .receipt-section dl {
    margin: 0;
  }

  .kv {
    grid-template-columns: 28mm 1fr;
    gap: 1mm 3mm;
    padding: 1.2mm 0;
    font-size: 10pt;
  }

  .kv dd {
    line-height: 1.28;
    max-height: 22mm;
    overflow: hidden;
  }

  .inbound-guide {
    margin-top: 1mm;
    border-radius: 6px;
    padding: 2.5mm 3mm;
    font-size: 9.5pt;
    line-height: 1.32;
  }

  .inbound-guide strong {
    font-size: 10.5pt;
  }

  .company-footer {
    margin-top: 3mm;
    padding-top: 2.5mm;
    font-size: 9pt;
    line-height: 1.32;
  }
}
