:root {
  --bg: #f5f3ef;
  --ink: #1f2428;
  --muted: #69717a;
  --line: #d8d4cc;
  --panel: #ffffff;
  --brand: #0f766e;
  --brand-dark: #0b5f59;
  --accent: #d97706;
  --soft: #eef8f6;
  --danger: #b42318;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 6px 18px rgba(27, 37, 44, .06);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
}

.site-brand::before {
  content: "";
  width: 34px;
  height: 18px;
  flex: 0 0 auto;
  background: url("../assets/core-logo-mark-clean-transparent.png") center / contain no-repeat;
}

.admin-brand::before {
  width: 38px;
  height: 20px;
  border-radius: 4px;
  background-color: white;
  box-shadow: 0 0 0 3px white;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.header-user {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 4px 0 0;
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-brand {
  width: fit-content;
  display: inline-flex;
  margin: 0;
  color: white;
}

.admin-topbar-head {
  display: grid;
  gap: 6px;
}

.admin-topbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-topbar-row h1 {
  margin: 0;
  color: white;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.15;
}

.site-nav a,
.nav-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.site-nav a:hover,
.nav-button:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.nav-button {
  cursor: pointer;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 48px);
  background: #153633;
  color: white;
}

.topbar h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: 22px;
}

.eyebrow {
  margin: 0 0 6px;
  color: inherit;
  opacity: .72;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.actions,
.section-head,
.grid,
.filter-box {
  display: flex;
  gap: 12px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  width: 100%;
  background: var(--brand);
  color: white;
}

.button.primary:hover,
.button.secondary:hover {
  background: var(--brand-dark);
}

.button.secondary {
  background: var(--brand);
  color: white;
}

.button.warning,
.quote-order-button,
.calendar-actions .calendar-now {
  background: #f2b705;
  border-color: #d89b00;
  color: #1f2428;
}

.button.warning:hover,
.quote-order-button:hover,
.calendar-actions .calendar-now:hover {
  background: #d89b00;
  color: #1f2428;
}

.button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, .42);
  color: white;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px) 44px;
}

.admin-layout {
  display: grid;
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px) 44px;
}

.corporate-page-layout {
  align-content: start;
}

.corporate-portrait-board {
  width: min(760px, 100%);
  min-height: calc(100vh - 220px);
}

.corporate-table-board {
  width: 100%;
  min-height: calc(100vh - 220px);
}

.corporate-admin-table {
  min-width: 1540px;
}

.corporate-admin-table th,
.corporate-admin-table td {
  padding: 11px 10px;
  white-space: nowrap;
}

.corporate-admin-row {
  cursor: pointer;
}

.corporate-admin-row:hover td,
.corporate-admin-row:focus td {
  background: #dff8f6;
}

.corporate-admin-row.status-unselected td {
  background: #c5faf7;
}

.corporate-progress {
  font-weight: 900;
}

.corporate-progress.confirmed {
  color: #2563eb;
}

.corporate-progress.talking {
  color: #d9a400;
}

.corporate-progress.building {
  color: #d9a400;
}

.corporate-progress.waiting {
  color: #d9a400;
}

.corporate-progress.negotiating {
  color: #0ea532;
}

.corporate-progress.blocked {
  color: #ea580c;
}

.corporate-progress.rejected {
  color: #dc2626;
}

.corporate-progress.checked {
  color: #111827;
}

.corporate-progress.unselected {
  color: #64707d;
}

.corporate-admin-detail {
  width: min(900px, 100%);
  justify-self: center;
  padding: 20px 0 44px;
}

.corporate-detail-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.corporate-detail-head h2 {
  margin: 0;
}

.corporate-detail-form {
  display: grid;
  gap: 16px;
}

.corporate-detail-grid {
  display: grid;
  gap: 16px;
}

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

.corporate-detail-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.corporate-detail-form input,
.corporate-detail-form textarea,
.corporate-detail-form select {
  min-height: 40px;
  border: 1px solid #cfd6dc;
  border-radius: 7px;
  padding: 0 12px;
  background: #fff;
  color: var(--ink);
}

.corporate-detail-form input[readonly],
.corporate-detail-form textarea[readonly] {
  background: #f1f3f5;
  color: #64707d;
}

#detailProgressStatus {
  font-weight: 900;
}

#detailProgressStatus[data-progress-class="unselected"] {
  color: #64707d;
}

#detailProgressStatus[data-progress-class="checked"] {
  color: #111827;
}

#detailProgressStatus[data-progress-class="talking"] {
  color: #d9a400;
}

#detailProgressStatus[data-progress-class="building"] {
  color: #d9a400;
}

#detailProgressStatus[data-progress-class="waiting"] {
  color: #d9a400;
}

#detailProgressStatus[data-progress-class="negotiating"] {
  color: #0ea532;
}

#detailProgressStatus[data-progress-class="confirmed"] {
  color: #2563eb;
}

#detailProgressStatus[data-progress-class="blocked"] {
  color: #ea580c;
}

#detailProgressStatus[data-progress-class="rejected"] {
  color: #dc2626;
}

#detailProgressStatus option {
  color: var(--ink);
}

#detailProgressStatus option[value=""],
#detailProgressStatus option:first-child {
  color: #64707d;
}

#detailProgressStatus option[value="문의중"],
#detailProgressStatus option[value="데이터 제작중"],
#detailProgressStatus option[value="회신대기중"] {
  color: #d9a400;
}

#detailProgressStatus option[value="협의중"] {
  color: #0ea532;
}

#detailProgressStatus option[value="거래확정"] {
  color: #2563eb;
}

#detailProgressStatus option[value="거래불가"] {
  color: #ea580c;
}

#detailProgressStatus option[value="거래실패"] {
  color: #dc2626;
}

.corporate-detail-form textarea {
  padding-top: 11px;
  line-height: 1.55;
  resize: vertical;
}

.detail-full {
  width: 100%;
}

.corporate-admin-controls {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) minmax(130px, .8fr) minmax(110px, .7fr) minmax(180px, 1fr);
  gap: 12px;
  align-items: end;
}

.corporate-save-button {
  min-height: 92px;
}

.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 22px clamp(18px, 4vw, 48px) 44px;
}

.account-status-panel {
  grid-column: 1 / -1;
}

.update-log-layout {
  align-content: start;
}

.update-log-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.update-log-summary h2,
.update-log-content h2 {
  margin: 0;
  letter-spacing: 0;
}

.update-log-summary p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.update-log-counts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.update-log-counts span {
  min-width: 96px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6faf8;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.update-log-counts strong {
  display: block;
  color: var(--brand-dark);
  font-size: 28px;
}

.update-log-entry {
  display: grid;
  grid-template-columns: minmax(160px, .24fr) minmax(0, 1fr);
  gap: 20px;
}

.update-log-date {
  display: grid;
  gap: 8px;
  align-content: start;
}

.update-log-date time {
  color: var(--brand-dark);
  font-weight: 900;
  font-size: 18px;
}

.update-log-date span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: #e4f5f0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.update-log-content {
  display: grid;
  gap: 12px;
}

.update-log-content ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  line-height: 1.7;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.admin-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.admin-main {
  min-width: 0;
}

.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1201;
  width: min(300px, 84vw);
  max-width: 320px;
  height: 100vh;
  display: grid;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  padding: 20px;
  border-right: 1px solid #dce7e3;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 10px 0 28px rgba(27, 37, 44, .16);
  transform: translateX(-100%);
  transition: transform .24s ease;
}

.admin-sidebar.is-open {
  transform: translateX(0);
}

.admin-sidebar.collapsed {
  transform: translateX(-100%);
}

.admin-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, .42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .24s ease, visibility .24s ease;
}

.admin-sidebar-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.admin-menu-open {
  overflow: hidden;
}

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

.sidebar-toggle,
.sidebar-open {
  min-height: 36px;
  padding: 0;
}

.sidebar-open {
  width: 40px;
  margin: 0 0 0 -6px;
}

.nav-icon-button {
  display: inline-grid;
  gap: 4px;
  align-content: center;
  justify-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-icon-button span {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: white;
}

.sidebar-open span,
.admin-sidebar .nav-icon-button span {
  background: var(--brand-dark);
}

.admin-sidebar .admin-brand {
  color: var(--brand-dark);
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  border: 1px solid #e4ebe8;
  border-radius: 8px;
  padding: 11px 12px 11px 14px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.admin-nav a:hover {
  border-color: #cfe6de;
  background: #f1f8f6;
  color: var(--brand-dark);
}

.admin-nav a[aria-current="page"] {
  border-color: #b9ded1;
  background: #e9f7f2;
  color: var(--brand-dark);
  box-shadow: inset 4px 0 0 var(--brand);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(27, 37, 44, .07);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.auth-card {
  width: min(760px, 100%);
}

.contact-layout {
  min-height: calc(100vh - 61px);
  display: grid;
  place-items: center;
  padding: 34px clamp(18px, 4vw, 48px);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, .14), transparent 34%),
    linear-gradient(135deg, #f5f3ef 0%, #eef8f6 100%);
}

.contact-card {
  width: min(680px, 100%);
  display: grid;
  gap: 18px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 70px rgba(27, 37, 44, .12);
}

.contact-card h1 {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.contact-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.contact-email-box {
  display: grid;
  gap: 8px;
  border: 1px solid #b8dad6;
  border-radius: 8px;
  padding: 18px;
  background: var(--soft);
}

.contact-email-box span,
.contact-guide strong {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.contact-email-box a {
  color: var(--brand-dark);
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-guide {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.contact-guide ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .button {
  width: auto;
  min-width: 160px;
}

.auth-card h1,
.auth-form h3,
.auth-form h2 {
  margin: 0 0 12px;
}

.auth-copy {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-form.compact-login {
  justify-items: start;
}

.auth-form.compact-login label,
.auth-form.compact-login .button {
  width: min(360px, 100%);
}

.auth-strip,
.signup-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.auth-strip strong,
.auth-strip span,
.signup-cta strong,
.signup-cta span {
  display: block;
}

.auth-strip span,
.signup-cta span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.signup-cta strong {
  font-size: 22px;
  color: var(--ink);
}

.cta-button {
  width: auto;
}

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

.auth-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.button.inline-ghost {
  border-color: var(--line);
  color: var(--danger);
  background: white;
}

.compact-head {
  margin-bottom: 10px;
}

.corporate-layout {
  grid-template-columns: minmax(0, 1fr) minmax(280px, .38fr);
}

.corporate-public-layout {
  display: grid;
  justify-content: center;
  padding: 22px clamp(18px, 4vw, 48px) 44px;
}

.corporate-public-board {
  width: min(760px, 100%);
  min-height: calc(100vh - 220px);
}

.corporate-public-page {
  background: #fff;
}

.corporate-hero {
  min-height: 224px;
  display: grid;
  place-items: center;
  padding: 44px clamp(18px, 4vw, 48px);
  background:
    linear-gradient(90deg, rgba(22, 46, 62, .96), rgba(38, 54, 54, .92)),
    radial-gradient(circle at 22% 40%, rgba(15, 118, 110, .2), transparent 34%);
  color: white;
  text-align: center;
}

.corporate-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: 0;
}

.corporate-hero h1::after {
  content: "";
  display: block;
  width: 84px;
  height: 3px;
  margin: 18px auto 0;
  border-radius: 999px;
  background: var(--brand);
}

.corporate-info-section,
.corporate-form-section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 0;
}

.corporate-info-section {
  padding-bottom: 54px;
}

.corporate-form-section {
  width: 100%;
  margin-top: 0;
  padding: 54px clamp(18px, 4vw, 48px) 76px;
  border-top: 1px solid #111;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, .07), rgba(15, 118, 110, .025)),
    #f6fbf9;
}

.corporate-form-section > .corporate-section-label,
.corporate-form-section > .corporate-trade-form,
.corporate-form-section > .submit-message {
  width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.corporate-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.corporate-section-label::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.corporate-section-label span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 0 14px;
  background: #67707a;
  color: white;
  font-size: 13px;
  font-weight: 900;
}

.corporate-faq-list {
  display: grid;
  gap: 16px;
}

.corporate-faq-list article {
  display: grid;
  gap: 10px;
  border-left: 3px solid rgba(15, 118, 110, .22);
  border-radius: 0 8px 8px 0;
  padding: 16px 18px;
  background: #fbfdfc;
}

.corporate-faq-list h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.5;
}

.corporate-faq-list p {
  margin: 0;
  color: #53606c;
  font-size: 15px;
  line-height: 1.9;
}

.corporate-trade-form {
  display: grid;
  gap: 22px;
  border: 2px solid var(--brand);
  border-radius: 8px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(12, 67, 62, .08);
}

.corporate-form-grid {
  display: grid;
  gap: 16px;
}

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

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

.corporate-field {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  padding: 18px;
  background: #fdfdfd;
  box-shadow: 0 8px 28px rgba(27, 37, 44, .035);
}

.corporate-field span,
.corporate-radio-field legend {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.corporate-field b,
.corporate-radio-field b {
  color: var(--danger);
}

.corporate-field small,
.corporate-radio-field p {
  margin: -2px 0 0;
  color: #53606c;
  font-size: 13px;
  line-height: 1.6;
}

.corporate-field input:not([type="radio"]):not([type="checkbox"]),
.corporate-field select,
.corporate-field textarea {
  min-height: 46px;
  border: 1px solid #cfd6dc;
  border-radius: 7px;
  padding: 0 14px;
  background: white;
}

.corporate-field textarea {
  min-height: 78px;
  padding-top: 12px;
  resize: vertical;
}

.corporate-field.full {
  width: 100%;
}

.corporate-radio-field {
  align-content: start;
}

.corporate-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.corporate-radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.corporate-radio-row input {
  width: 18px;
  height: 18px;
}

.corporate-agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.corporate-agreement input {
  width: 18px;
  height: 18px;
}

.corporate-submit-row {
  display: flex;
  justify-content: center;
}

.corporate-submit-row .button {
  width: min(330px, 100%);
  min-height: 50px;
}

.section-head {
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

#motorcycleCargoPanel > .section-head {
  color: var(--brand);
}

.order-code {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: var(--soft);
  color: var(--brand-dark);
  font-weight: 800;
  white-space: nowrap;
}

.form {
  display: grid;
  gap: 14px;
}

.verification-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
}

.verification-grid .button {
  min-width: 132px;
  height: 44px;
  align-self: start;
  margin-top: 24px;
}

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

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.required-label-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.required-badge {
  color: var(--brand);
  font-weight: 900;
}

.field-guide {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.field-error {
  min-height: 17px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
}

.field-error.field-success {
  color: var(--brand);
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: var(--danger);
  outline: 3px solid rgba(180, 35, 24, .14);
}

input[readonly] {
  background: #f4f8f7;
  color: var(--muted);
  cursor: not-allowed;
}

.progressive-signup [hidden] {
  display: none !important;
}

.signup-inline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.signup-inline-control .button {
  width: auto;
  min-width: 96px;
  padding: 0 14px;
  white-space: nowrap;
}

.signup-optional-badge {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.progressive-signup .verification-grid {
  align-items: end;
}

.progressive-signup .verification-grid .button {
  align-self: end;
  margin-top: 0;
}

fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

legend {
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(15, 118, 110, .16);
  border-color: var(--brand);
}

#publicOrderForm input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus,
#publicOrderForm select:focus,
#publicOrderForm textarea:focus {
  background: #effaf3;
  box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .08);
}

#publicOrderForm label:focus-within,
#publicOrderForm .route-card:focus-within legend,
#publicOrderForm .option-group:focus-within > legend {
  color: var(--brand-dark);
}

#publicOrderForm input::selection,
#publicOrderForm textarea::selection {
  background: rgba(74, 222, 128, .32);
}

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

.single-stats {
  grid-template-columns: 1fr;
}

.side-copy {
  color: var(--muted);
  line-height: 1.7;
}

.subtle-action {
  display: inline-block;
  margin-top: 8px;
  color: rgba(21, 54, 51, .62);
  font-size: 13px;
  font-weight: 700;
}

.subtle-action:hover {
  color: var(--brand);
}

.corporate-detail-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfaf7;
}

.corporate-detail-panel div {
  display: grid;
  gap: 5px;
}

.corporate-detail-panel strong {
  color: var(--muted);
  font-size: 12px;
}

.corporate-detail-panel span {
  color: var(--ink);
  line-height: 1.5;
}

.admin-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-kpis article {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
  box-shadow: 0 8px 24px rgba(27, 37, 44, .06);
}

.admin-kpis span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-kpis strong {
  display: block;
  margin-top: 10px;
  color: var(--brand-dark);
  font-size: 28px;
  line-height: 1.05;
}

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

.admin-toolbar {
  display: grid;
  gap: 12px;
}

.admin-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(150px, .24fr) minmax(150px, .24fr) auto auto;
  grid-template-areas:
    "date-from date-to date-search refresh"
    "status search search search";
  align-items: end;
  justify-content: start;
  gap: 12px;
}

.admin-toolbar-grid > :nth-child(1) { grid-area: date-from; }
.admin-toolbar-grid > :nth-child(2) { grid-area: date-to; }
.admin-toolbar-grid > :nth-child(3) { grid-area: date-search; }
.admin-toolbar-grid > :nth-child(4) { grid-area: refresh; }
.admin-toolbar-grid > :nth-child(5) { grid-area: status; }
.admin-toolbar-grid > :nth-child(6) { grid-area: search; }

.order-admin-layout {
  gap: 0;
  padding: 0;
}

.order-admin-controls {
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 48px) 12px;
  background: #fff;
}

.order-search-row,
.order-date-row {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 8px;
  width: min(1160px, 100%);
}

.order-search-row > .button:first-child {
  margin-right: 18px;
}

.order-search-row {
  transform: translateX(-50px);
}

.order-date-row {
  transform: translateX(-50px);
}

.order-search-row label,
.order-date-row label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.order-search-row select,
.order-date-row select {
  min-width: 120px;
}

.order-keyword-field {
  flex: 0 1 600px;
}

.order-search-button {
  width: auto;
  min-width: 82px;
  max-width: 92px;
  min-height: 40px;
  padding: 0 12px;
  flex: 0 0 auto;
}

.order-refresh-button {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

.date-range-mark {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  padding-top: 18px;
}

.order-status-filter {
  width: min(1152px, 100%);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 28px;
  background: #fff;
}

.order-status-filter legend {
  padding: 0 5px;
  font-weight: 900;
}

.order-status-filter label,
.order-status-checks label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.order-status-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #2d8db8;
  outline: none;
  box-shadow: none;
}

.order-status-filter input[type="checkbox"]:focus,
.order-status-filter input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: none;
}

.order-status-checks label:focus-within,
.order-status-filter > label:focus-within {
  border-radius: 6px;
  background: rgba(45, 141, 184, .08);
}

.order-status-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.order-admin-table-section {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.order-admin-table-wrap {
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.order-admin-table {
  min-width: 1720px;
}

.order-admin-table th,
.order-admin-table td {
  white-space: nowrap;
  padding: 14px 10px;
}

.order-table-row {
  cursor: pointer;
}

.order-table-row:hover td {
  filter: brightness(.98);
}

.order-table-row.waiting td {
  background: #ffd6d6;
  color: #111827;
}

.order-table-row.accepted td {
  background: #e7f6df;
  color: #1f3f1d;
}

.order-table-row.canceled td {
  background: #dbe8f7;
  color: #294c73;
}

.account-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(180px, .3fr) minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.account-toolbar-grid .button {
  width: auto;
}

.orders-toolbar {
  margin-bottom: 16px;
}

.date-picker-input {
  width: 100%;
  min-width: 0;
  cursor: pointer;
}

.date-picker-field {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.date-picker-trigger {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #cfd8d5;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(12, 67, 62, .06);
  cursor: pointer;
}

.date-picker-trigger::before {
  content: "";
  width: 21px;
  height: 21px;
  background: #0f766e;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4'/%3E%3Cpath d='M16 2v4'/%3E%3Crect width='18' height='18' x='3' y='4' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E") center / contain no-repeat;
}

.date-picker-trigger.is-selected {
  border-color: var(--brand);
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .14), 0 4px 12px rgba(12, 67, 62, .18);
}

.date-picker-trigger.is-selected::before {
  background: #ffffff;
}

.date-picker-trigger.is-selected:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.date-picker-trigger:hover {
  border-color: var(--brand);
  background: var(--soft);
}

.date-picker-trigger:focus-visible {
  outline: 3px solid rgba(15, 118, 110, .18);
  outline-offset: 2px;
}

.date-picker-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
}

.calendar-picker-popover {
  position: absolute;
  z-index: 1100;
  max-width: calc(100vw - 24px);
}

.calendar-picker-shell {
  width: min(328px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .16);
  padding: 14px;
}

.calendar-picker-head,
.calendar-actions,
.calendar-time-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-nav {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
}

.calendar-month-label {
  color: var(--ink);
  font-size: 15px;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays {
  margin: 14px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  height: 38px;
  border: 1px solid #d9e2d8;
  border-radius: 8px;
  background: #edf6ec;
  color: #1f6a2d;
  cursor: pointer;
  font-weight: 800;
}

.calendar-day.outside-month {
  border-color: #e5e7eb;
  background: #f3f4f6;
  color: #a0a8b2;
}

.calendar-day.blank-day {
  border-color: transparent;
  background: transparent;
  color: transparent;
  cursor: default;
}

.calendar-day.disabled {
  border-color: #eceef1;
  background: #f6f7f8;
  color: #c0c6cf;
  cursor: not-allowed;
}

.calendar-day.selected {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .22);
  transform: translateY(-1px);
}

.calendar-day.committed:not(.selected) {
  border-color: #0f766e;
  background: #e4f5f0;
  color: var(--brand-dark);
  box-shadow: inset 0 0 0 2px rgba(15, 118, 110, .2);
}

.calendar-time-panel {
  margin-top: 12px;
}

.calendar-time-panel label {
  flex: 1;
}

.calendar-actions {
  margin-top: 14px;
}

.calendar-actions .calendar-now,
.calendar-actions .calendar-apply {
  flex: 1;
}

.calendar-actions .calendar-clear {
  flex: 0 0 auto;
}

.admin-notice {
  align-self: center;
  margin: 0;
}

.stats div {
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
  color: var(--brand-dark);
}

.stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-box {
  margin-top: 18px;
  flex-direction: column;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

th {
  background: #fbfaf7;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.order-row-waiting td {
  background: #fff6cf;
  color: #6f5a00;
}

.order-row-accepted td {
  background: #e7f6df;
  color: #275b24;
}

.order-row-canceled td {
  background: #e6eef7;
  color: #365b82;
}

.order-row-waiting strong,
.order-row-waiting .route span,
.order-row-waiting td span,
.order-row-accepted strong,
.order-row-accepted .route span,
.order-row-accepted td span,
.order-row-canceled strong,
.order-row-canceled .route span,
.order-row-canceled td span {
  color: inherit;
}

.order-row-canceled .button.secondary,
.order-row-canceled .button.admin-accept {
  background: #1f8f45;
  color: white;
}

.order-row-canceled .button.admin-waiting {
  background: #f4cc47;
  color: #6a5400;
}

.order-row-canceled .button.ghost,
.order-row-canceled .button.admin-cancel {
  border-color: #4b79a8;
  color: white;
  background: #4b79a8;
}

.route {
  display: grid;
  gap: 4px;
  min-width: 260px;
}

.compact-route {
  min-width: 220px;
}

tbody tr[data-id] {
  cursor: pointer;
}

tbody tr[data-id]:hover td {
  filter: brightness(.98);
}

.route span {
  color: var(--muted);
  font-size: 12px;
}

.status-select {
  min-width: 92px;
  font-weight: 700;
}

.admin-edit-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr);
  gap: 8px;
  min-width: 210px;
}

.admin-status-stack {
  display: grid;
  gap: 8px;
  min-width: 110px;
}

.admin-status-select,
.status-badge {
  font-weight: 800;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  padding: 7px 12px;
  border: 1px solid transparent;
  background: #fbfaf7;
}

.status-badge.waiting {
  background: #f4cc47;
  color: #6a5400;
}

.status-badge.accepted {
  background: #1f8f45;
  color: white;
}

.status-badge.canceled {
  background: #4b79a8;
  color: white;
}

.admin-delete {
  border-color: var(--line);
  color: var(--danger);
  background: white;
}

.button.admin-cancel {
  border-color: #4b79a8;
  color: white;
  background: #4b79a8;
}

.button.admin-waiting {
  border-color: #f4cc47;
  color: #6a5400;
  background: #f4cc47;
}

.button.admin-accept {
  border-color: #1f8f45;
  color: white;
  background: #1f8f45;
}

.account-role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
}

.account-role-chip.admin {
  background: #dff4ee;
  color: #0b5f59;
}

.account-role-chip.customer {
  background: #eef2ff;
  color: #3746a3;
}

.button.account-delete {
  border-color: #c75b5b;
  color: white;
  background: #c75b5b;
}

.button.account-delete[disabled] {
  border-color: #d7dadd;
  background: #d7dadd;
  color: white;
  cursor: not-allowed;
}

.tracking-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.tracking-result {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.tracking-result strong {
  color: var(--brand-dark);
  font-size: 20px;
}

.tracking-result span {
  color: var(--muted);
  font-size: 14px;
}

.submit-message {
  min-height: 22px;
  margin: 0;
  color: var(--brand-dark);
  font-weight: 800;
}

.submit-message.error-message {
  color: var(--danger);
}

.helper-text.error-message {
  color: var(--danger);
  font-weight: 900;
}

.option-group,
.conditional-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.modal-head h2 {
  color: var(--ink);
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 18, .58);
}

.modal-card {
  width: min(430px, 100%);
  min-height: min(680px, calc(100vh - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .22);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 20, 18, .58);
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  position: relative;
  width: min(480px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 24px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.report-modal {
  min-height: min(720px, calc(100vh - 36px));
  display: grid;
  align-content: start;
  gap: 16px;
}

.compact-modal {
  width: min(420px, calc(100vw - 36px));
}

.pricing-warning-modal {
  display: grid;
  gap: 16px;
  text-align: center;
}

.pricing-warning-modal h2 {
  margin: 0;
}

.pricing-warning-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.pricing-warning-modal .actions {
  justify-content: center;
}

.pricing-warning-modal .button {
  width: min(160px, 100%);
}

.waypoint-modal-card {
  width: min(720px, calc(100vw - 36px));
  display: grid;
  gap: 16px;
}

.waypoint-modal-card h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.waypoint-modal-card .helper-text {
  margin: 0;
}

.waypoint-field-stack {
  display: grid;
  gap: 12px;
}

.waypoint-stop {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
}

.waypoint-stop[hidden] {
  display: none !important;
}

.waypoint-stop h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.waypoint-stop h3 small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.waypoint-add-stop {
  width: 100%;
}

.waypoint-step {
  min-height: 72px;
}

.waypoint-step.is-hidden {
  display: none !important;
}

.order-success-modal {
  width: min(440px, calc(100vw - 36px));
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 34px 28px 28px;
  text-align: center;
}

.order-success-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid #9ad1bd;
  border-radius: 50%;
  background: #e8f5ef;
  color: var(--brand-dark);
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

.order-success-modal h2 {
  margin: 0;
  color: var(--ink);
  font-size: 23px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.order-success-modal p {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7e5df;
  border-radius: 8px;
  background: #f7fbf9;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.order-success-modal p strong {
  color: var(--brand-dark);
  font-size: 16px;
  font-weight: 900;
  word-break: break-all;
}

.order-success-modal .actions {
  width: 100%;
  justify-content: center;
  margin-top: 2px;
}

.order-success-modal .button {
  width: min(180px, 100%);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.report-grid {
  display: grid;
  gap: 10px;
}

.report-grid > div {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfaf7;
}

.report-grid strong {
  color: var(--muted);
  font-size: 12px;
}

.report-grid span {
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fee-card {
  overflow: hidden;
  border: 1px solid #cfd8d5;
  border-radius: 8px;
  background: #ffffff;
}

.fee-card-title {
  padding: 14px 16px;
  border-bottom: 1px solid #e2e7e4;
  background: #f3f7f5;
  color: var(--brand-dark);
  font-size: 15px;
  font-weight: 900;
}

.fee-card-subtitle {
  padding: 8px 16px 4px;
  color: #20302f;
  font-size: 13px;
  font-weight: 900;
}

.fee-segment {
  padding: 4px 0;
}

.fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 16px;
  color: #20302f;
  font-size: 14px;
}

.fee-row span {
  color: #445654;
  font-weight: 700;
}

.fee-row strong {
  color: #172321;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.fee-segment-title {
  align-items: flex-start;
  padding-top: 14px;
}

.fee-segment-title span {
  color: var(--brand-dark);
}

.fee-segment-title strong {
  max-width: 65%;
  white-space: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

.fee-segment-total {
  background: #f8fbfa;
}

.fee-adjustment {
  padding-left: 26px;
}

.fee-adjustment span,
.fee-option-row span,
.fee-muted-row span {
  color: #5d6b69;
}

.fee-discount strong {
  color: #0f766e;
}

.fee-muted-row strong {
  color: #7a8583;
}

.fee-error-row {
  align-items: flex-start;
  background: #fff4f2;
}

.fee-error-row span,
.fee-error-row strong {
  color: #b42318;
}

.fee-error-row strong {
  white-space: normal;
  text-align: right;
  overflow-wrap: anywhere;
}

.fee-extra-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.fee-extra-toggle {
  width: 34px;
  height: 34px;
  border: 1px solid #cfd8d5;
  border-radius: 7px;
  background: #fbfaf7;
  color: var(--brand-dark);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.fee-extra-toggle:hover {
  border-color: var(--brand);
  background: #eefaf7;
}

.fee-extra-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.fee-extra-reasons[hidden] {
  display: none !important;
}

.fee-extra-reasons span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: #eefaf7;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
}

.fee-divider {
  height: 1px;
  margin: 8px 0;
  background: #e2e7e4;
}

.fee-row.discount strong {
  color: #b42318;
}

.fee-row.total {
  padding-top: 8px;
  padding-bottom: 16px;
}

.fee-row.total span {
  color: #172321;
  font-size: 17px;
  font-weight: 900;
}

.fee-row.total small {
  color: #7a8583;
  font-size: 12px;
  font-weight: 700;
}

.fee-row.total strong {
  color: var(--brand-dark);
  font-size: 26px;
}

.button.ghost-dark {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.button.ghost-dark:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.admin-order-detail-page {
  min-height: 100vh;
  background: #ffffff;
  color: var(--ink);
}

.order-detail-topbar {
  min-height: 58px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #e2e7e4;
  padding: 0 18px;
  background: rgba(255, 255, 255, .98);
  color: #111827;
  box-shadow: 0 1px 8px rgba(27, 37, 44, .05);
}

.order-detail-topbar > strong {
  justify-self: center;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.order-detail-session {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.order-detail-session span::after {
  content: "";
  width: 11px;
  height: 11px;
  display: inline-block;
  margin-left: 6px;
  border-radius: 999px;
  background: #16a34a;
  vertical-align: -1px;
}

.order-detail-session button {
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.order-detail-main {
  min-width: 0;
  background: #ffffff;
}

.order-detail-map-section {
  position: relative;
  height: min(560px, 58vh);
  min-height: 420px;
  margin: 14px 10px 0;
  overflow: hidden;
  border: 1px solid #cfd8d5;
  background: #e8f2ef;
}

.order-detail-map {
  width: 100%;
  height: 100%;
}

.order-detail-map-fallback {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px solid #d9e1de;
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, .94);
  color: var(--muted);
  text-align: center;
}

.order-detail-map-fallback strong {
  color: var(--brand-dark);
  font-size: 17px;
}

.order-map-pin {
  --map-pin-color: #24292f;
  --map-label-bg: #24292f;
  --map-pin-spot: rgba(36, 41, 47, .38);
  --map-pin-spot-soft: rgba(36, 41, 47, .15);
  --map-pin-spot-clear: rgba(36, 41, 47, 0);
  position: relative;
  display: inline-flex;
  justify-content: center;
  width: max-content;
  padding-bottom: 29px;
}

.order-map-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 42px;
  border-radius: 12px;
  padding: 0 13px;
  background: var(--map-label-bg);
  color: var(--map-pin-color);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  z-index: 1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .18);
}

.order-map-label::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 16px;
  height: 16px;
  background: var(--map-label-bg);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
  transform: translateX(-50%);
}

.order-map-pin-spot {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--map-pin-color) 0%, var(--map-pin-color) 10%, var(--map-pin-spot-soft) 50%, var(--map-pin-spot-clear) 74%);
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

.order-map-pin.start {
  --map-pin-color: #16a34a;
  --map-pin-spot: rgba(22, 163, 74, .52);
  --map-pin-spot-soft: rgba(22, 163, 74, .2);
  --map-pin-spot-clear: rgba(22, 163, 74, 0);
}

.order-map-pin.end {
  --map-pin-color: #f59e0b;
  --map-pin-spot: rgba(245, 158, 11, .52);
  --map-pin-spot-soft: rgba(245, 158, 11, .2);
  --map-pin-spot-clear: rgba(245, 158, 11, 0);
}

.order-map-pin.waypoint {
  --map-pin-color: #2563eb;
  --map-pin-spot: rgba(37, 99, 235, .52);
  --map-pin-spot-soft: rgba(37, 99, 235, .2);
  --map-pin-spot-clear: rgba(37, 99, 235, 0);
}

.order-detail-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 10px;
  padding: 3px 0 14px;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
}

.order-detail-meta-strip strong {
  font-weight: 800;
}

.order-detail-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e7e4;
  padding: 12px 10px 18px;
}

.order-detail-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-detail-title h1 {
  margin: 0;
  color: #05070a;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.order-copy-button {
  width: 24px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #111827;
  cursor: pointer;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
}

.order-copy-button:hover {
  color: var(--brand);
}

.order-detail-title .button {
  white-space: nowrap;
}

.order-detail-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
}

.order-detail-actions button {
  min-height: 48px;
  border: 1px solid #d9dee2;
  border-radius: 8px;
  padding: 0 15px;
  background: #eef0f2;
  color: #485058;
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.order-detail-actions button:disabled {
  background: #e9ecef;
  color: #868e96;
  cursor: not-allowed;
}

.order-detail-actions button.danger {
  border-color: #ef4444;
  background: #ef4444;
  color: #ffffff;
}

.order-detail-actions button.danger:hover {
  border-color: #dc2626;
  background: #dc2626;
}

.order-detail-notice {
  margin: 12px 10px 0;
}

.order-detail-form {
  display: grid;
  gap: 22px;
  padding: 0 10px 44px;
}

.order-detail-switches {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 56px;
  border-bottom: 1px solid #e2e7e4;
  padding: 0 0 10px;
}

.order-detail-switch,
.order-detail-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
}

.order-detail-switch input,
.order-detail-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
}

.order-detail-check input:disabled {
  cursor: not-allowed;
}

.order-detail-field-section {
  display: grid;
  gap: 10px;
}

.order-detail-field-section h2 {
  margin: 0;
  color: #172321;
  font-size: 17px;
  font-weight: 900;
}

.order-detail-section-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.order-detail-section-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 3px 9px;
  background: #f1f3f5;
  color: #495057;
  font-size: 12px;
  font-weight: 900;
}

.order-detail-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}

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

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

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

.order-detail-field-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.order-detail-field-grid.fee-detail {
  grid-template-columns: repeat(11, minmax(0, 1fr));
  gap: 14px 6px;
}

.order-detail-field-grid.fee-detail span {
  font-size: 12px;
  letter-spacing: 0;
  white-space: nowrap;
}

.order-detail-field-grid.fee-detail input {
  min-height: 46px;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 800;
}

.order-detail-template-form {
  gap: 18px;
}

.order-detail-template-section {
  gap: 8px;
}

.order-detail-field-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.order-detail-field-grid label.wide {
  grid-column: 1 / -1;
}

.order-detail-field-grid span {
  color: #2f3835;
  font-size: 13px;
  font-weight: 800;
}

.order-detail-field-grid input,
.order-detail-field-grid select,
.order-detail-field-grid textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccd3d8;
  border-radius: 7px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.order-detail-field-grid input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--brand);
}

.order-detail-field-grid label.order-detail-inline-check {
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  min-height: 46px;
}

.order-detail-field-grid label.order-detail-inline-check span {
  align-self: center;
}

.order-detail-field-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.order-detail-field-grid input:focus,
.order-detail-field-grid select:focus,
.order-detail-field-grid textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.order-detail-field-grid input:disabled,
.order-detail-field-grid input[readonly],
.order-detail-field-grid select:disabled,
.order-detail-field-grid textarea:disabled,
.order-detail-field-grid textarea[readonly],
.order-detail-field-grid .is-integration-pending input {
  background: #f1f3f5;
  color: #868e96;
  cursor: not-allowed;
}

.order-detail-field-grid .is-integration-pending span {
  color: #687076;
}

.order-detail-field-grid label.fee-alert input[readonly] {
  background: #ffe3e6;
  color: #6b7280;
}

.order-detail-field-grid input.is-order-empty,
.order-detail-field-grid textarea.is-order-empty,
.order-detail-field-grid select.is-order-empty {
  border-color: #7aa6c2;
  background: #dbeaf3;
}

.order-detail-field-grid input.is-order-empty::placeholder,
.order-detail-field-grid textarea.is-order-empty::placeholder {
  color: #3f6f8b;
  opacity: 1;
}

.order-detail-field-grid label.is-order-empty span::after,
.order-detail-switches label.is-order-empty span::after {
  content: "접수창 값 없음";
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  background: #d4e6f1;
  color: #315f7a;
  font-size: 11px;
  font-weight: 900;
}

.order-detail-field-grid input.is-reception-readonly,
.order-detail-field-grid textarea.is-reception-readonly {
  background: #f1f3f5;
  color: #111827;
  cursor: default;
}

.order-detail-field-grid input.is-reception-readonly.is-order-empty,
.order-detail-field-grid textarea.is-reception-readonly.is-order-empty {
  border-color: #7aa6c2;
  background: #f1f3f5;
  color: #111827;
}

.modal-head,
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-head h2 {
  margin: 0;
}

.modal-copy {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.modal-actions {
  justify-content: flex-end;
  position: sticky;
  bottom: 0;
  padding-top: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 24%);
}

body.modal-open {
  overflow: hidden;
}

.route-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.route-editor fieldset {
  display: grid;
  gap: 12px;
}

.route-card {
  align-self: start;
  min-height: 128px;
}

.route-card-title {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 2px;
}

.route-card-title::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #cfd8d5;
  box-shadow: 0 1px 4px rgba(12, 67, 62, .05);
}

.route-card-title span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #cfd8d5;
  border-radius: 999px;
  padding: 0 12px;
  background: #fbfaf7;
  color: var(--brand-dark);
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(12, 67, 62, .06);
}

.route-card-title .route-title-actions {
  order: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.route-mini-button {
  min-height: 34px;
  border: 1px solid rgba(15, 118, 110, .34);
  border-radius: 8px;
  padding: 0 10px;
  background: #eefaf7;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.route-mini-button:hover {
  border-color: var(--brand);
  background: #e0f3ee;
}

.route-mini-button-muted {
  background: #fbfaf7;
  color: #58635f;
}

.waypoint-fee-notice {
  margin: 12px 0 0;
  border: 1px solid rgba(15, 118, 110, .26);
  border-radius: 8px;
  padding: 10px 12px;
  background: #f2faf6;
  color: #36524b;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.route-expand-button {
  position: relative;
  order: 3;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfd8d5;
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(12, 67, 62, .06);
}

.route-expand-button::before {
  content: "▾";
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 1em;
  height: 1em;
  transform: translate(calc(-50% - .5px), -50%);
  color: inherit;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.route-expand-button:hover {
  border-color: var(--brand);
  background: var(--soft);
}

.route-expand-button[aria-expanded="false"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.route-expand-button[aria-expanded="false"]:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.route-expand-button[aria-expanded="true"] {
  background: #ffffff;
  border-color: #cfd8d5;
  color: var(--brand-dark);
}

.route-expand-button[aria-expanded="true"]::before {
  content: "▴";
  font-size: 28px;
}

.route-expand-button[data-route-expand="dropoff"]::before {
  transform: translate(-50%, -50%);
}

.route-step {
  min-height: 72px;
}

.route-step-contact {
  min-height: 72px;
}

.route-step.is-hidden {
  display: none !important;
}

.requester-card {
  display: grid;
  gap: 12px;
}

.requester-card .grid.two,
.requester-info-grid {
  margin: 0;
}

.requester-info-grid {
  display: grid;
  grid-template-columns: minmax(176px, .5fr) minmax(220px, .58fr) minmax(430px, 1.2fr);
  gap: 12px;
  align-items: start;
}

.requester-info-grid:has(.requester-payment-slot[hidden]) {
  grid-template-columns: minmax(176px, .5fr) minmax(220px, .58fr);
}

.requester-payment-slot {
  min-width: 0;
}

.requester-payment-slot #paymentTypeField {
  min-width: 0;
}

.requester-payment-slot select {
  min-width: 0;
}

.payment-method-row {
  display: grid;
  grid-template-columns: minmax(180px, .52fr) minmax(170px, .48fr);
  gap: 10px;
  align-items: stretch;
}

.selected-payment-card {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid #b8dad6;
  border-radius: 8px;
  padding: 7px 10px;
  background: #effaf3;
  color: var(--brand-dark);
}

.selected-payment-card[hidden] {
  display: none;
}

.selected-payment-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.selected-payment-card strong {
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.25;
}

.card-register-button {
  width: 100%;
  min-height: 38px;
}

.requester-payment-slot .card-register-button {
  width: min(180px, 100%);
}

.requester-payment-slot .card-register-button[hidden] {
  display: none;
}

.service-detail-fields #paymentTypeField .payment-method-row {
  grid-template-columns: 1fr;
}

.service-detail-fields #selectedPaymentCard {
  display: none;
}

.service-detail-fields #paymentTypeField .card-register-button {
  display: none;
}

@media (max-width: 1040px) {
  .requester-info-grid {
    grid-template-columns: minmax(176px, .5fr) minmax(220px, .58fr);
  }

  .requester-payment-slot {
    grid-column: 1 / -1;
  }
}

.phone-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.phone-title-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.phone-warning-text {
  color: var(--danger);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  visibility: hidden;
}

.phone-warning-text.is-visible {
  visibility: visible;
}

.address-search-field {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.address-search-button {
  grid-column: 1;
  grid-row: 1;
}

.address-search-field input {
  grid-column: 2;
  grid-row: 1;
}

.address-search-field input {
  min-width: 0;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 52px;
  right: 0;
  z-index: 35;
  max-height: 260px;
  overflow: auto;
  border: 1px solid #b8dad6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(27, 37, 44, .16);
}

.address-suggestion-button {
  width: 100%;
  display: grid;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid #edf1ef;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.address-suggestion-button:last-child {
  border-bottom: 0;
}

.address-suggestion-button:hover,
.address-suggestion-button:focus-visible {
  background: #effaf3;
  outline: none;
}

.address-suggestion-button strong {
  color: var(--brand-dark);
  font-size: 13px;
  line-height: 1.35;
}

.address-suggestion-button span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.input-history-panel {
  position: absolute;
  z-index: 1200;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .16);
}

.input-history-option {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  border-radius: 0;
  background: #f8fbfa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.input-history-option:last-child {
  border-bottom: 0;
}

.input-history-option:hover,
.input-history-option:focus-visible {
  background: #eef8f3;
  outline: none;
}

.input-history-option span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d8cd;
  border-radius: 6px;
  background: #e8f5ef;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.input-history-option strong {
  min-width: 0;
  min-height: 30px;
  display: block;
  overflow: hidden;
  padding: 6px 10px;
  border: 1px solid #d5dde2;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kakao-address-modal {
  width: min(900px, calc(100vw - 36px));
  display: grid;
  gap: 14px;
}

.kakao-address-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 8px;
}

.kakao-address-map-wrap {
  position: relative;
}

.kakao-address-map {
  width: 100%;
  height: min(58vh, 520px);
  min-height: 380px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef2f1;
}

.kakao-address-modal {
  overflow: visible;
}

.kakao-address-modal .actions {
  justify-content: flex-end;
}

.kakao-address-modal .button.primary {
  width: auto;
  min-width: 160px;
}

.kakao-address-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(8, 20, 18, .28);
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.kakao-address-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.kakao-selected-address {
  min-height: 42px;
  margin: 0;
  border: 1px solid #b8dad6;
  border-radius: 8px;
  padding: 10px 12px;
  background: #effaf3;
  color: var(--brand-dark);
  font-weight: 900;
  line-height: 1.5;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.icon-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.swap-route-button {
  width: 44px;
  height: 44px;
  margin-top: 62px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

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

.motorcycle-cargo-layout {
  display: block;
}

.cargo-catalog-columns {
  display: grid;
  grid-template-columns: minmax(170px, .82fr) minmax(210px, 1.1fr) minmax(190px, 1fr) minmax(190px, 1fr);
  gap: 12px;
  margin-top: 10px;
  align-items: start;
}

.cargo-column {
  display: grid;
  gap: 12px;
  align-content: start;
}

.cargo-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: white;
}

.cargo-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cargo-card-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 16px;
  white-space: nowrap;
  line-height: 1.2;
}

.cargo-card-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cargo-icon {
  flex: 0 0 auto;
  font-size: 16px;
}

.cargo-score-panel {
  display: grid;
  gap: 8px;
  border: 1px solid #bfd5f4;
  border-radius: 8px;
  padding: 16px;
  background: #edf4ff;
  color: #25539e;
}

.cargo-score-panel strong {
  font-size: 14px;
}

.cargo-score-panel span {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
}

.cargo-score-panel small {
  font-size: 13px;
  font-weight: 800;
}

.cargo-stepper {
  display: inline-grid;
  grid-template-columns: 36px 44px 36px;
  gap: 6px;
  align-items: center;
  justify-self: start;
  flex-shrink: 0;
}

.cargo-step-button {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.cargo-step-button[disabled] {
  opacity: .42;
  cursor: not-allowed;
}

.cargo-count {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  color: var(--ink);
  font-weight: 800;
}

.vehicle-card {
  display: flex;
  min-height: 92px;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.vehicle-card input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.vehicle-card strong,
.vehicle-card small {
  display: block;
}

.vehicle-card strong {
  font-size: 16px;
}

.vehicle-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.vehicle-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--soft);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: white;
  color: var(--ink);
}

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

.priority-high {
  color: var(--danger);
  font-weight: 800;
}

.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 920px) {
  .topbar,
  .layout {
    grid-template-columns: 1fr;
  }

  .admin-kpis,
  .admin-toolbar,
  .tracking-form,
  .account-layout,
  .route-editor {
    grid-template-columns: 1fr;
  }

  .swap-route-button {
    justify-self: center;
    transform: rotate(90deg);
  }

  .route-card-title {
    flex-wrap: wrap;
  }

  .route-card-title .route-title-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .order-detail-map-section {
    height: 440px;
    min-height: 380px;
  }

  .order-detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-detail-actions {
    justify-content: flex-start;
  }

  .order-detail-field-grid,
  .order-detail-field-grid.two,
  .order-detail-field-grid.three,
  .order-detail-field-grid.four,
  .order-detail-field-grid.five,
  .order-detail-field-grid.fee-detail {
    grid-template-columns: 1fr;
  }

  .corporate-detail-grid.wide,
  .corporate-admin-controls {
    grid-template-columns: 1fr;
  }

  .corporate-save-button {
    min-height: 52px;
  }

  .update-log-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .update-log-entry {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 1201;
    width: min(84vw, 320px);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-search-row,
  .order-date-row,
  .order-status-filter {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .order-search-row > .button:first-child,
  .order-date-row > .button:first-child,
  .order-date-row > .button:last-child {
    margin: 0;
  }

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

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

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

  .corporate-form-grid.three {
    grid-template-columns: 1fr;
  }

  .motorcycle-cargo-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .grid.two,
  .grid.three {
    grid-template-columns: 1fr;
  }

  .verification-grid {
    grid-template-columns: 1fr;
  }

  .verification-grid .button {
    width: 100%;
  }

  .panel {
    padding: 16px;
  }

  .button {
    width: 100%;
  }

  .vehicle-options {
    grid-template-columns: 1fr;
  }

  .cargo-catalog-columns {
    grid-template-columns: 1fr;
  }

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

  .corporate-info-section,
  .corporate-form-section {
    width: min(100% - 24px, 1120px);
  }

  .corporate-form-section {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  .corporate-detail-panel {
    grid-template-columns: 1fr;
  }

  .order-detail-topbar {
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 8px 12px;
  }

  .order-detail-topbar > strong {
    justify-self: start;
    font-size: 16px;
  }

  .order-detail-session {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .order-detail-map-section {
    height: 360px;
    min-height: 320px;
    margin: 10px 8px 0;
  }

  .order-detail-title {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .order-detail-title h1 {
    width: 100%;
    font-size: 23px;
  }

  .order-detail-actions,
  .order-detail-actions button,
  .order-detail-title .button {
    width: 100%;
  }

  .order-detail-switches {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
  }

  .order-detail-map-fallback {
    inset: 10px;
    padding: 12px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.customer-orders-page,
.customer-order-detail-page {
  width: min(100% - 48px, 1600px);
  margin: 0 auto;
  padding: 54px 0 96px;
}

.customer-orders-panel,
.customer-detail-section {
  display: grid;
  gap: 20px;
}

.customer-orders-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.customer-orders-head h1,
.customer-detail-top h1 {
  margin: 0;
  color: #0f172a;
  font-size: 28px;
  letter-spacing: 0;
}

.order-count-text {
  color: #334155;
  font-size: 15px;
  font-weight: 800;
}

.customer-order-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.customer-date-select-row,
.customer-range-button-row,
.customer-order-search-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-order-date-tools {
  display: grid;
  gap: 10px;
  flex: 0 0 auto;
  min-width: max-content;
}

.customer-date-select-row {
  flex-wrap: nowrap;
}

.customer-range-button-row {
  align-items: flex-start;
}

.customer-date-field input {
  width: 134px;
  min-height: 46px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 800;
}

.button.primary.order-search-button {
  width: auto;
  flex: 0 0 92px;
}

.customer-order-search {
  display: grid;
  grid-template-columns: auto minmax(260px, 360px);
  min-height: 46px;
  border: 1px solid #cfd6dd;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.customer-order-search select,
.customer-order-search input {
  border: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.customer-order-search select {
  border-right: 1px solid #e2e8f0;
  padding: 0 10px;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.customer-order-search input {
  min-width: 0;
  padding: 0 14px;
}

.button.ghost.order-range-button {
  min-height: 44px;
  border-color: #a9d8d1;
  color: #0b5f59;
  background: #fff;
  opacity: 1;
  box-shadow: none;
}

.button.ghost.order-range-button:hover {
  border-color: #0f766e;
  background: #eef8f6;
  color: #064e46;
}

.button.ghost.order-range-button.is-active {
  border-color: #0f766e;
  color: #064e46;
  background: #dff3ef;
}

.button.primary.order-download-button {
  width: 160px;
  max-width: 160px;
  min-height: 46px;
  flex: 0 0 160px;
  padding: 0 16px;
}

.customer-orders-table-wrap {
  border-color: #d8dee4;
  background: #fff;
}

.customer-orders-table-wrap table {
  min-width: 1180px;
}

.customer-orders-table-wrap th {
  background: #f7f9f8;
  color: #69717a;
  font-size: 13px;
  text-transform: none;
}

.customer-order-row td {
  background: #fff;
  color: #0f172a;
}

.customer-order-row:hover td {
  background: #f8fbfa;
}

.customer-order-no {
  color: #0b5f59;
  font-weight: 900;
}

.customer-route-cell {
  display: grid;
  gap: 7px;
  min-width: 360px;
}

.customer-route-cell span {
  display: flex;
  gap: 8px;
  color: #0f172a;
  font-size: 13px;
}

.customer-route-cell b {
  min-width: 32px;
  color: #0f766e;
}

.customer-route-cell i {
  color: #cbd5e1;
  font-style: normal;
}

.customer-priority {
  color: #f97316;
  font-size: 13px;
}

.customer-orders-notice {
  min-height: 22px;
}

.customer-detail-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 26px;
}

.customer-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #334155;
  font-size: 28px;
  line-height: 1;
}

.customer-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 16px;
  color: #64748b;
  font-weight: 800;
}

.customer-detail-meta strong {
  margin-left: 8px;
  color: #0f172a;
}

.customer-detail-actions {
  display: flex;
  gap: 10px;
}

.customer-detail-actions button {
  min-width: 118px;
  min-height: 44px;
  border: 1px solid #0f766e;
  border-radius: 7px;
  background: #fff;
  color: #0b5f59;
  font-weight: 900;
}

.customer-detail-actions button:disabled {
  border-color: #d5dce2;
  background: #eef1f3;
  color: #a0a7af;
  cursor: not-allowed;
}

.customer-detail-section {
  margin-top: 40px;
}

.customer-detail-section h2 {
  margin: 0;
  color: #111827;
  font-size: 18px;
  letter-spacing: 0;
}

.customer-info-card {
  border: 1px solid #d6dce1;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.customer-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 14px 16px;
}

.customer-info-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 40px;
  padding: 6px 4px;
}

.customer-info-item.wide {
  grid-column: 1 / -1;
}

.customer-info-item dt {
  color: #111827;
  font-size: 13px;
  font-weight: 900;
}

.customer-info-item dd {
  margin: 0;
  color: #111827;
  font-size: 14px;
  line-height: 1.55;
}

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

.customer-route-card {
  display: grid;
  gap: 14px;
  min-height: 130px;
  margin: 0;
  border: 1px solid #e0e5e9;
  border-radius: 9px;
  padding: 18px 20px;
  background: #f7f8f8;
}

.customer-route-card h3 {
  margin: 0;
  color: #111827;
  font-size: 15px;
}

.customer-route-card p {
  margin: 0;
  color: #111827;
  font-weight: 800;
}

.customer-route-card span,
.customer-map-note {
  color: #64748b;
  font-size: 13px;
}

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

.customer-payment-card .customer-info-item {
  grid-template-columns: minmax(120px, 1fr) auto;
  border-bottom: 1px solid #e5e9ec;
  padding: 13px 16px;
}

.customer-payment-card .customer-info-item:last-child {
  border-bottom: 0;
}

.customer-payment-card .customer-info-item:last-child dd {
  font-size: 18px;
  font-weight: 900;
}

.customer-disabled-action button {
  min-height: 36px;
  border: 1px solid #d5dce2;
  border-radius: 7px;
  padding: 0 12px;
  background: #eef1f3;
  color: #a0a7af;
  font-weight: 900;
  cursor: not-allowed;
}

.customer-status-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.customer-status-title span {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.customer-status-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin: 14px 0 8px;
  padding: 0;
  list-style: none;
}

.customer-status-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #94a3b8;
  font-weight: 900;
}

.customer-status-stepper li:not(:last-child)::after {
  content: "›";
  position: absolute;
  right: -22px;
  color: #94a3b8;
}

.customer-status-stepper span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eef2f4;
  color: #64748b;
}

.customer-status-stepper .is-active span {
  background: #dff4ee;
  color: #0b5f59;
}

.customer-status-stepper .is-current strong {
  color: #0b5f59;
}

.customer-status-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #d6dce1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.customer-status-table div {
  display: grid;
  gap: 10px;
  min-height: 82px;
  border-right: 1px solid #e5e9ec;
}

.customer-status-table div:last-child {
  border-right: 0;
}

.customer-status-table strong,
.customer-status-table span {
  padding: 12px 14px;
}

.customer-status-table strong {
  border-bottom: 1px solid #e5e9ec;
  background: #f7f9f8;
  color: #64748b;
  font-size: 13px;
}

.customer-status-table span {
  color: #111827;
  font-weight: 800;
}

.customer-map-note {
  margin: 0;
  font-weight: 700;
}

.customer-map-shell {
  position: relative;
  min-height: 500px;
  border: 1px solid #d6dce1;
  border-radius: 8px;
  overflow: hidden;
  background: #edf4f2;
}

.customer-order-map {
  width: 100%;
  height: 500px;
}

.customer-detail-bottom {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.customer-detail-bottom .button {
  min-width: 100px;
}

.customer-service-footer {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  border-top: 1px solid #e5e9ec;
  padding: 48px clamp(24px, 7vw, 128px);
  background: #f4f6f5;
}

.customer-service-footer span,
.customer-service-footer p,
.customer-service-footer a {
  color: #475569;
  font-size: 14px;
}

.customer-service-footer strong {
  display: block;
  margin: 6px 0 14px;
  color: #1f2937;
  font-size: 42px;
  line-height: 1;
}

.customer-service-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 46px;
  align-content: start;
}

@media (max-width: 920px) {
  .customer-order-toolbar,
  .customer-detail-top,
  .customer-service-footer {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .customer-order-search,
  .customer-route-cards,
  .customer-payment-layout,
  .customer-info-grid,
  .customer-status-table {
    grid-template-columns: 1fr;
  }

  .customer-detail-actions,
  .customer-detail-actions button {
    width: 100%;
  }

  .customer-status-stepper {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .customer-status-stepper li:not(:last-child)::after {
    display: none;
  }
}
