:root {
  color-scheme: light;
  --ink: #211b39;
  --muted: #514764;
  --surface: #fff;
  --canvas: #f6f5ff;
  --line: #e0d8f4;
  --field-line: #8f7ea9;
  --primary: #5534c9;
  --primary-hover: #3f2699;
  --primary-soft: #f0eaff;
  --nav: #201546;
  --nav-ink: #ece5ff;
  --nav-active: #5132a1;
  --danger: #9e2b2f;
  --radius: 1rem;
  --focus: #7250ed;
  --shadow: 0 2px 5px #35246b07, 0 7px 22px #56398c0c;
  --canvas-glow: radial-gradient(ellipse at 92% 0%, #d8edff 0, transparent 31rem),
    radial-gradient(ellipse at 5% 8%, #fae0f4 0, transparent 33rem);
  --brand-gradient: linear-gradient(109deg, #6532c6, #4b38d0 52%, #314ac8);
  --banner-gradient: radial-gradient(ellipse at 100% 10%, #1d66b690, transparent 65%),
    radial-gradient(ellipse at 89% 110%, #a83be494, transparent 69%),
    linear-gradient(110deg, #241356 0%, #3c218a 52%, #4634ae);
  font: 100%/1.55 "Segoe UI", "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas-glow), var(--canvas); }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.22; font-weight: 760; }
h2 { font-size: 1.15rem; line-height: 1.4; font-weight: 750; }
h3 { font-size: 1.05rem; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
button, input, select, summary { font: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
code { font-family: "Cascadia Mono", Consolas, monospace; overflow-wrap: anywhere; }
.skip-link { position: fixed; z-index: 5; top: 0.65rem; left: 0.65rem; padding: 0.55rem 0.9rem; background: white; color: var(--ink); border-radius: 0.5rem; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.mobile-tabs, .mobile-home-actions, .brand.mobile-workspace-brand, .mobile-account-actions { display: none; }

.brand { display: inline-flex; min-height: 2.75rem; align-items: center; gap: 0.67rem; font-size: 1.07rem; font-weight: 760; white-space: nowrap; }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 0.56rem;
  flex: none;
  background: linear-gradient(140deg, #8536ce 10%, #5535dc 48%, #0e74c6);
  box-shadow: inset 0 0 0 1px #ffffff46, 0 3px 9px #5335c536;
}
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: 0.48rem; width: 1.01rem; height: 0.23rem; background: #fff; border-radius: 1rem; transform: rotate(-37deg); }
.brand-mark::before { top: 0.70rem; }
.brand-mark::after { top: 1.06rem; opacity: 0.73; }

.workspace { display: grid; min-height: 100vh; grid-template-columns: 14.5rem minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; min-width: 0;
  background: radial-gradient(ellipse at 14% 0%, #462577, transparent 56%),
    linear-gradient(167deg, var(--nav) 48%, #1e215c 100%);
  color: var(--nav-ink); padding: 1.15rem 0.85rem 1rem;
}
.sidebar .brand { color: #fff; padding-inline: 0.52rem; }
.workspace-nav { display: grid; gap: 0.4rem; margin-top: 1.85rem; }
.workspace-nav a, .sidebar-foot a {
  display: flex;
  align-items: center;
  min-height: 2.8rem;
  gap: 0.68rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.71rem;
  font-size: 0.94rem;
  font-weight: 620;
}
.workspace-nav a:hover, .sidebar-foot a:hover { background: #ffffff16; color: white; }
.workspace-nav [aria-current="page"], .workspace-nav [aria-current="page"]:hover {
  color: #fff;
  background: linear-gradient(110deg, var(--nav-active), #3e3ea0);
  box-shadow: inset 3px 0 #c9b6ff, 0 6px 16px #160b352d;
}
.sidebar-foot { padding-block-start: 0.9rem; border-top: 1px solid #ffffff27; margin-top: auto; }
.workspace-body { min-width: 0; }
.workspace-bar {
  min-height: 4.4rem;
  padding: 0.55rem clamp(1rem, 3.1vw, 2.6rem);
  display: flex; align-items: center; justify-content: space-between; gap: 0.7rem;
  background: linear-gradient(108deg, #fff, #f8f5ff 72%, #f0f8ff);
  border-bottom: 1px solid var(--line);
}
.workspace-location { font-weight: 720; }
.header-actions { display: flex; align-items: center; gap: 0.65rem; }
.account-link, .header-logout { display: inline-flex; align-items: center; min-height: 2.75rem; gap: 0.42rem; padding-inline: 0.55rem; border-radius: 0.45rem; font-size: 0.9rem; }
.account-link { max-width: 12rem; min-width: 0; }
.account-link > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link:hover, .header-logout:hover { background: var(--primary-soft); }
.header-logout { border: 0; background: transparent; color: var(--muted); white-space: nowrap; }
.environment {
  display: inline-flex; align-items: center; gap: 0.43rem;
  white-space: nowrap; padding: 0.25rem 0.63rem;
  background: #eee7ff; border: 1px solid #e2d6fa; border-radius: 99px; color: #4c2a8d;
  font-weight: 690; font-size: 0.78rem;
}
.environment::before { content: ""; width: 0.43rem; height: 0.43rem; border-radius: 50%; background: #7350c8; }
.environment.live { background: #fff0dc; border-color: #f2dcb7; color: #74430e; }
.environment.live::before { background: #9f5c12; }

.nav-icon { display: inline-block; position: relative; width: 1.03rem; height: 1.03rem; flex: none; color: currentColor; }
.icon-grid {
  background:
    linear-gradient(currentColor, currentColor) left top / 39% 39% no-repeat,
    linear-gradient(currentColor, currentColor) right top / 39% 39% no-repeat,
    linear-gradient(currentColor, currentColor) left bottom / 39% 39% no-repeat,
    linear-gradient(currentColor, currentColor) right bottom / 39% 39% no-repeat;
}
.icon-plus { border: 1.5px solid currentColor; border-radius: 0.2rem; }
.icon-plus::before, .icon-plus::after { content: ""; position: absolute; background: currentColor; inset: calc(50% - 0.75px) 22% auto; height: 1.5px; }
.icon-plus::after { transform: rotate(90deg); }
.icon-list { border: 1.5px solid currentColor; border-radius: 0.18rem; }
.icon-list::before { content: ""; position: absolute; inset: 24% 19% auto; height: 1.5px; background: currentColor; box-shadow: 0 0.21rem currentColor, 0 0.42rem currentColor; }
.icon-person::before, .icon-people::before { content: ""; position: absolute; top: 0.02rem; left: 0.31rem; width: 0.43rem; height: 0.43rem; border: 1.4px solid currentColor; border-radius: 50%; }
.icon-person::after, .icon-people::after { content: ""; position: absolute; bottom: 0; left: 0.12rem; width: 0.8rem; height: 0.36rem; border: 1.4px solid currentColor; border-radius: 1rem 1rem 0.2rem 0.2rem; }
.icon-people::before { left: 0.13rem; box-shadow: 0.48rem 0 currentColor; }
.icon-people::after { left: 0.02rem; box-shadow: 0.2rem 0 currentColor; }

.page { width: min(100%, 90rem); margin-inline: auto; padding: clamp(1.2rem, 3.5vw, 2.6rem) clamp(1rem, 3.1vw, 2.6rem) 3rem; }
.page.narrow { width: min(100%, 69rem); }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.35rem; }
.page-heading p { margin-top: 0.42rem; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.panel-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.96rem 1.25rem; border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0; background: linear-gradient(112deg, #f9f4ff, #f4f9ff);
}
.padded-panel, .contact-panel, .parcel-panel, .result-panel { padding: clamp(1rem, 2.6vw, 1.55rem); }
.panel-text { margin-top: 0.38rem; color: var(--muted); }
.dashboard-banner {
  padding: clamp(1.35rem, 3.75vw, 2.45rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  color: #fff; border-radius: calc(var(--radius) + 0.2rem);
  background:
    repeating-linear-gradient(127deg, transparent 0 31px, #ffffff15 32px 33px, transparent 34px 62px) right center / 40% 100% no-repeat,
    var(--banner-gradient);
  box-shadow: 0 10px 28px #4426a125;
}
.dashboard-banner p { margin-top: 0.55rem; color: #f4edff; }
.order-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; margin-block: 1.15rem; }
.stat-card {
  --stat-accent: #6b43cd;
  --stat-tint: #f4ebff;
  position: relative;
  display: grid; gap: 0.45rem;
  min-width: 0; padding: 1rem 1.1rem 0.95rem 1.36rem;
  background: linear-gradient(125deg, var(--stat-tint), var(--surface) 75%); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat-card > span:not(.stat-accent) { color: var(--muted); font-weight: 640; font-size: 0.93rem; }
.stat-card > strong { font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.16; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-accent { position: absolute; top: 1rem; bottom: 1rem; left: 0.55rem; width: 3px; border-radius: 99px; background: var(--stat-accent); }
.stats-issued { --stat-accent: #14846c; --stat-tint: #e5fbf4; }
.stats-pending { --stat-accent: #af681c; --stat-tint: #fff4e5; }
.stats-canceled { --stat-accent: #6f809a; --stat-tint: #edf3fb; }
.dashboard .history-panel { margin-top: 1.15rem; }

.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 21rem); align-items: start; gap: 1rem; }
.order-grid.order-grid-single { grid-template-columns: minmax(0, 1fr); }
.address-stack { display: grid; gap: 1rem; }
.contact-panel > h2, .parcel-panel > h2 { margin-bottom: 1rem; padding-bottom: 0.82rem; border-bottom: 1px solid var(--line); }
.field-row { display: grid; gap: 0.8rem; }
.field-row.sender-row { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: block; min-width: 0; font-size: 0.92rem; font-weight: 650; }
label + label, .field-row + .field-row, .field-row + label { margin-top: 0.8rem; }
.field-row label + label, .form-stack label + label { margin-top: 0; }
input:not([type="checkbox"]):not([type="hidden"]), select {
  display: block; margin-top: 0.35rem; min-height: 2.75rem; width: 100%; min-width: 0;
  border: 1px solid var(--field-line); border-radius: 0.65rem; padding: 0.55rem 0.7rem;
  background: #fff; color: var(--ink); font-size: 1rem; font-weight: 450;
}
input::placeholder, textarea::placeholder { color: #6a617b; }
input.invalid, select.invalid { border-color: var(--danger); border-width: 2px; }
.field-error, .form-hint { display: block; margin-top: 0.26rem; font-size: 0.84rem; }
.field-error { color: var(--danger); }
.form-hint { color: var(--muted); font-weight: 450; }
.field-error:empty { display: none; }
.unit { color: var(--muted); font-weight: 500; font-size: 0.85rem; }
.check-option { display: flex; min-height: 2.75rem; align-items: center; gap: 0.62rem; cursor: pointer; }
.check-option input { accent-color: var(--primary); width: 1.1rem; height: 1.1rem; flex: none; margin: 0; }
.notice { padding: 0.68rem 0.85rem; background: #fff4e6; color: #774515; border: 1px solid #edcc9d; border-radius: 0.52rem; }
.notice.wide { grid-column: 1 / -1; }
.notice.error { background: #fff0ef; border-color: #edc3c1; color: #852528; }
.notice.success { background: #ecf8f2; border-color: #bcded1; color: #1b5d48; }
.page-notice { margin-bottom: 1rem; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.42rem;
  min-height: 2.75rem; padding: 0.52rem 0.92rem;
  border-radius: 0.65rem; border: 1px solid transparent;
  white-space: nowrap; cursor: pointer; font-weight: 690; font-size: 0.92rem;
  transition: background-color 150ms, border-color 150ms, box-shadow 150ms;
  touch-action: manipulation;
}
.button.primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 3px 8px #4830b42b; }
.button.primary:hover { box-shadow: 0 4px 13px #4830b448; }
.button.secondary { background: var(--surface); border-color: #c9bce5; color: var(--primary-hover); }
.button.secondary:hover { background: var(--primary-soft); border-color: #aa96df; }
.button.danger { background: var(--danger); color: #fff; }
.button.danger:hover { background: #802127; }
.button.danger-outline { color: var(--danger); background: #fff; border-color: #e1b5b5; }
.button.danger-outline:hover { background: #fceeed; border-color: #ce9999; }
.button:disabled { opacity: 0.75; cursor: wait; }
.button.submit { width: 100%; margin-top: 0.9rem; }
.order-submit-only { display: flex; justify-content: flex-end; }
.order-submit-only .submit { width: min(100%, 21rem); margin-top: 0; }
.button.hero-cta { background: #fff; color: #3e258f; box-shadow: 0 4px 12px #1b134037; }
.button.hero-cta:hover { background: #f0e9ff; }
.button.hero-secondary { color: white; border-color: #ffffff75; background: #1f164e47; }
.button.hero-secondary:hover { background: #ffffff1a; border-color: white; }

.filter-panel {
  display: grid; grid-template-columns: minmax(11rem, 1.35fr) minmax(7rem, 0.7fr) minmax(17rem, 1.5fr) auto;
  align-items: start; gap: 0.75rem; padding: 1rem 1.2rem; margin-bottom: 1rem;
  background: linear-gradient(112deg, #fff 50%, #f9f5ff);
}
.filter-panel label + label { margin-top: 0; }
.filter-actions { flex-wrap: nowrap; align-self: end; }
.history-date-filter { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
.history-date-filter legend { padding: 0; font-size: 0.92rem; font-weight: 650; }
.history-range-options, .history-custom-range { display: grid; gap: 0.5rem; margin-top: 0.35rem; }
.history-range-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.history-range-option { position: relative; }
.history-range-option > input[type="radio"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.history-range-option > span {
  display: grid; place-items: center; min-height: 2.75rem; padding: 0.35rem 0.2rem;
  border: 1px solid #c9bce5; border-radius: 0.65rem; background: var(--surface); color: var(--ink);
  font-size: 0.85rem; line-height: 1.3; text-align: center;
}
.history-range-option > input:checked + span {
  border-color: var(--primary); background: var(--brand-gradient); color: #fff;
  box-shadow: 0 3px 8px #4830b426;
}
.history-range-option > input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.history-custom-range { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.7rem; }
.history-custom-range[hidden] { display: none; }
.empty { display: grid; justify-items: center; gap: 0.32rem; text-align: center; padding: 2.9rem 1rem; }
.empty p { color: var(--muted); }
.empty-icon { width: 1.85rem; height: 1.85rem; margin-bottom: 0.5rem; color: var(--primary); border-width: 2px; }
.empty-icon::before { box-shadow: 0 0.38rem currentColor, 0 0.76rem currentColor; }
.record-list, .member-list { list-style: none; padding: 0; }
.record-head, .record-list li {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.92fr) minmax(5.2rem, 0.8fr) 9.75rem;
  align-items: center; column-gap: 1.08rem;
  padding: 0.9rem 1.25rem;
}
.record-head { padding-block: 0.62rem; color: var(--muted); background: #f6f2fc; font-size: 0.84rem; font-weight: 690; }
.record-list li { min-height: 5rem; }
.record-list li + li, .member-list li + li { border-top: 1px solid var(--line); }
.record-list code, .record-list time, .mobile-label { font-size: 0.86rem; color: var(--muted); }
.record-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.52rem; margin-bottom: 0.25rem; }
.record-waybill strong { display: block; overflow-wrap: anywhere; }
.mobile-label { display: none; }
.record-by { display: block; margin-top: 0.12rem; color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; }
.status { display: inline-block; padding: 0.15rem 0.55rem; border-radius: 99px; font-weight: 670; font-size: 0.78rem; white-space: nowrap; }
.status.issued { background: #e2f5ec; color: #135341; }
.status.pending { background: #fff0d8; color: #79430b; }
.status.failed { background: #fbe7e6; color: #882b30; }
.status.canceled { background: #e9eef4; color: #445974; }
.row-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.record-list .row-actions { justify-content: flex-start; }
.pagination { padding: 0.8rem 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; }
.result-overview h2 { margin-top: 0.64rem; }
.result-overview p { color: var(--muted); margin-top: 0.35rem; }
.waybill-box { margin-top: 1.1rem; padding: 1rem; background: var(--primary-soft); border-radius: 0.62rem; }
.waybill-box > div { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.35rem; }
.waybill-box .waybill-number { margin: 0; border: 0; background: transparent; padding-inline: 0; font: 748 1.19rem/1.3 Consolas, monospace; }
.copy-status { display: block; min-height: 1.25rem; color: #165344; font-size: 0.85rem; }
.facts { margin: 1.22rem 0; display: grid; gap: 0.55rem; }
.facts div { display: grid; grid-template-columns: minmax(5rem, 7rem) minmax(0, 1fr); gap: 0.6rem; }
.facts dt { color: var(--muted); }
.facts dd { overflow-wrap: anywhere; }
.cancel-panel { padding: 1rem; border: 1px solid #e4c2c1; border-radius: 0.58rem; background: #fff5f4; }
.cancel-panel p { margin-block: 0.35rem 0.8rem; color: #6b3b3b; }

.account-grid, .admin-grid { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-grid { grid-template-columns: minmax(15rem, 0.8fr) minmax(0, 1.4fr); }
.form-stack { display: grid; gap: 0.85rem; margin-top: 1rem; min-width: 0; }
.form-stack .button { justify-self: start; }
.profile-facts { padding-block-end: 1rem; border-bottom: 1px solid var(--line); }
.member-list > li { padding: 0.9rem 1.25rem; }
.member-head { display: flex; align-items: start; justify-content: space-between; gap: 0.7rem; }
.member-name { min-width: 0; overflow-wrap: anywhere; }
.member-name code { display: block; color: var(--muted); font-size: 0.86rem; }
.member-badges { display: flex; flex-wrap: wrap; justify-content: end; gap: 0.38rem; }
.member-permission { margin-top: 0.48rem; color: var(--muted); font-size: 0.9rem; }
.member-actions { margin-top: 0.62rem; }
.password-disclosure { margin-top: 0.28rem; }
.password-disclosure summary { color: var(--primary-hover); min-height: 2.75rem; align-content: center; font-size: 0.91rem; }
.password-disclosure form { max-width: 27rem; margin-block: 0.5rem; }

.site-container { width: min(100% - 2.5rem, 75rem); margin-inline: auto; }
.site-header { background: linear-gradient(108deg, #fff, #f8f5ff 72%, #f0f8ff); border-bottom: 1px solid var(--line); }
.site-header-inner, .site-footer > div { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; min-height: 4.4rem; }
.site-header nav { display: flex; align-items: center; gap: 1.45rem; }
.site-feature-link { padding-block: 0.55rem; color: var(--muted); font-size: 0.94rem; font-weight: 650; }
.site-feature-link:hover, .site-footer a:hover { color: var(--primary); }
.site-hero { background: var(--banner-gradient); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); padding-block: clamp(2.5rem, 5vw, 4.65rem); }
.hero-copy { position: relative; z-index: 1; }
.hero-category { display: block; margin-bottom: 1.1rem; font-size: 0.94rem; font-weight: 650; color: #e8d9ff; }
.hero-copy h1 { font-size: clamp(2.65rem, 5vw, 4.5rem); line-height: 1.14; letter-spacing: -0.025em; }
.hero-copy > p { color: #f3edff; margin-top: 1.22rem; max-width: 28rem; font-size: clamp(0.99rem, 1.5vw, 1.12rem); line-height: 1.7; }
.hero-copy .row-actions { margin-top: 1.55rem; gap: 0.72rem; }
.hero-copy .button { min-height: 3rem; padding-inline: 1rem; }
.hero-copy .hero-note { color: #e9e1ff; font-size: 0.85rem; margin-top: 0.95rem; }
.hero-visual {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 1.35; border-radius: 1rem; border: 1px solid #ffffff59;
  background: linear-gradient(145deg, #7047a8, #213c81 65%);
  box-shadow: 0 12px 30px #1b13404f;
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(130deg, #8e37b352, transparent 55%, #26a6e140);
}
.hero-visual img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 60% center; }
.services { padding-block: clamp(2rem, 5vw, 4rem); }
.services-heading > h2 { font-size: clamp(1.55rem, 3vw, 2.1rem); }
.services-heading > p { color: var(--muted); margin-top: 0.42rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.95rem; margin-top: 1.3rem; }
.service-card { padding: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.service-icon { color: var(--primary); margin-bottom: 0.7rem; }
.service-card p { color: var(--muted); margin-top: 0.32rem; font-size: 0.94rem; }
.site-footer { background: #fff; border-top: 1px solid var(--line); }
.site-footer a:last-child { font-size: 0.9rem; color: var(--primary-hover); font-weight: 650; }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.25rem; }
.login-shell { width: min(100%, 56rem); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); overflow: hidden; border-radius: 1.2rem; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 58px #48278027; }
.login-intro { padding: clamp(1.4rem, 4vw, 2.7rem); display: flex; flex-direction: column; gap: 3rem; justify-content: space-between; color: #fff; background: var(--banner-gradient); }
.login-intro .login-title { color: #fff; margin-top: 0; font-weight: 750; font-size: clamp(1.7rem, 3.2vw, 2.47rem); line-height: 1.23; }
.login-intro p { color: #f3edff; margin-top: 0.7rem; }
.login-panel { padding: clamp(1.4rem, 4vw, 2.7rem); border: 0; border-radius: 0; box-shadow: none; }
.login-panel h1 { margin-top: 0.65rem; }
.login-description { color: var(--muted); margin: 0.4rem 0 1.35rem; }
.login-back { display: inline-flex; align-items: center; gap: 0.42rem; min-height: 2.75rem; color: var(--primary-hover); font-size: 0.9rem; font-weight: 650; }
.login-panel .notice { margin-bottom: 1rem; }


input[readonly]:not(.waybill-number), select:disabled { background: #f1f5fb; color: #354a69; }
select:disabled { opacity: 1; cursor: default; }
.address-paste { margin-bottom: 0.95rem; padding-bottom: 0.85rem; border-bottom: 1px solid var(--line); }
.address-paste textarea {
  display: block; width: 100%; min-width: 0; min-height: 4rem; margin-top: 0.35rem; padding: 0.55rem 0.7rem;
  resize: vertical; border: 1px solid var(--field-line); border-radius: 0.65rem;
  background: #fff; color: var(--ink); font: inherit; font-size: 1rem;
}
.address-paste .button { margin-top: 0.6rem; min-width: 10rem; }
.address-paste-status, .address-paste-error { font-size: 0.9rem; overflow-wrap: anywhere; }
.address-paste-status { color: #17604a; }
.address-paste-error { color: var(--danger); }
.address-paste-status:not(:empty), .address-paste-error:not(:empty) { margin-top: 0.5rem; }
@media (max-width: 76rem) {
  .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-date-filter, .filter-actions { grid-column: 1 / -1; }
  .filter-actions { justify-content: flex-end; }
  .order-grid { grid-template-columns: minmax(0, 1fr) minmax(15rem, 17.5rem); }
}
@media (max-width: 62rem) {
  .workspace { grid-template-columns: 12.75rem minmax(0, 1fr); }
  .order-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .record-head { display: none; }
  .record-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 0.65rem; }
  .mobile-label { display: block; }
  .record-list time { grid-column: 1; }
  .record-list .row-actions { grid-column: 2; }
}
@media (max-width: 47rem) {
  .workspace { display: block; }
  .sidebar { position: static; height: auto; overflow: visible; padding: 0.55rem 1rem 0.7rem; }
  .workspace-nav { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-top: 0.4rem; }
  .workspace-nav a { padding: 0.45rem 0.62rem; }
  .workspace-nav [aria-current="page"], .workspace-nav [aria-current="page"]:hover { box-shadow: inset 0 -2px #c9b6ff; }
  .sidebar-foot { display: none; }
  .workspace-bar { min-height: 3.85rem; }
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
  .hero-visual { aspect-ratio: 1.7; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; }
  .account-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 34rem) {
  .site-container { width: min(100% - 2rem, 75rem); }
  .filter-panel { grid-template-columns: minmax(0, 1fr); padding: 0.9rem; }
  .site-feature-link { display: none; }
  .site-header .brand { font-size: 0.95rem; }
  .site-header .button { font-size: 0.85rem; padding-inline: 0.65rem; }
  .hero-inner { padding-block: 2.4rem 1.4rem; }
  .hero-copy h1 { font-size: clamp(2.25rem, 10vw, 3.15rem); }
  .hero-copy .button { min-height: 2.75rem; }
  .workspace-nav { gap: 0.2rem; }
  .workspace-nav a { font-size: 0.85rem; }
  .workspace-nav .nav-icon { display: none; }
  .workspace-bar { justify-content: flex-end; }
  .workspace-location { margin-inline-end: auto; font-size: 0.9rem; }
  .header-actions { gap: 0.16rem; }
  .account-link { max-width: 6.45rem; }
  .account-link .nav-icon { display: none; }
  .page-heading, .dashboard-banner { align-items: flex-start; flex-wrap: wrap; }
  .order-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.62rem; }
  .field-row.two { grid-template-columns: minmax(0, 1fr); }
  .field-row.three { gap: 0.45rem; }
  .record-list li { grid-template-columns: minmax(0, 1fr); padding-inline: 0.95rem; }
  .record-list .row-actions, .record-list time { grid-column: 1; }
  .facts div { grid-template-columns: 6.3rem minmax(0, 1fr); }
  .waybill-box > div { flex-wrap: wrap; }
  .member-list > li, .panel-heading { padding-inline: 0.95rem; }
  .member-head { flex-wrap: wrap; }
  .member-badges { justify-content: start; }
  .login-shell { grid-template-columns: minmax(0, 1fr); }
  .login-intro { padding: 0.85rem 1.15rem; }
  .login-intro > div { display: none; }
}
@media (max-width: 23rem) {
  .workspace-location { display: none; }
  .field-row.three { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
