:root {
  --bg: #f2f4f6;
  --card: #ffffff;
  --line: #dfe4e9;
  --line-strong: #c8d1da;
  --text: #27313b;
  --muted: #6f7b87;
  --navy: #264b74;
  --navy-deep: #173451;
  --navy-soft: #edf3f8;
  --red: #c9161d;
  --red-deep: #a70f16;
  --green: #0f766e;
  --warn-bg: #fff7ed;
  --warn-line: #dc8b24;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1440px) / 2));
  background: #fff;
  color: var(--navy);
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(24, 52, 81, .06);
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  color: var(--navy);
  text-decoration: none;
}
.nav-logo {
  display: block;
  width: 118px;
  height: auto;
}
.nav-page-heading {
  display: flex;
  flex: 0 1 235px;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.nav-page-title {
  margin: 0;
  overflow: hidden;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .3px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-page-subtitle {
  margin: 2px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  letter-spacing: .1px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-desktop {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  height: 72px;
  gap: 0;
}
.nav-core {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 1px;
  height: 100%;
}
.nav-divider {
  flex: 0 0 1px;
  width: 1px;
  height: 26px;
  margin: 0 8px;
  background: #e5eaef;
}
.nav-core-link,
.nav-group-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 10px;
  color: #405264;
  background: transparent;
  border: 0;
  border-radius: 2px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease;
}
.nav-core-link:hover,
.nav-group-toggle:hover,
.nav-account-button:hover {
  color: var(--navy);
  background: #f5f8fa;
}
.nav-core-link.is-active,
.nav-core-link[aria-current="page"],
.nav-group.is-current-section > .nav-group-toggle,
.nav-group.is-open > .nav-group-toggle {
  color: var(--navy);
  background: var(--navy-soft);
  box-shadow: inset 0 -2px 0 var(--red);
}
.nav-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 72px;
}
.nav-group-toggle {
  gap: 6px;
}
.nav-caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .16s ease;
}
.nav-group.is-open .nav-caret,
.nav-account.is-open .nav-caret {
  margin-top: 3px;
  transform: rotate(225deg);
}
.nav-dropdown,
.nav-account-menu {
  position: absolute;
  z-index: 130;
  top: 58px;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  box-shadow: 0 14px 32px rgba(23, 52, 81, .16);
}
.nav-dropdown {
  left: 0;
  min-width: 205px;
}
.nav-dropdown-separator {
  height: 1px;
  margin: 4px 8px;
  background: #edf0f3;
}
.nav-menu-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #405264;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav-menu-link:hover {
  color: var(--navy);
  background: #f5f8fa;
}
.nav-menu-link[aria-current="page"] {
  color: var(--navy);
  background: var(--navy-soft);
  box-shadow: inset 3px 0 0 var(--red);
}
.nav-account-area {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 72px;
  padding-left: 12px;
  border-left: 1px solid #e5eaef;
}
.nav-account {
  position: relative;
}
.nav-account-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 230px;
  min-height: 42px;
  padding: 4px 8px 4px 4px;
  color: var(--navy);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: inherit;
  cursor: pointer;
}
.nav-account.is-open .nav-account-button {
  background: #f5f8fa;
  border-color: var(--line);
}
.nav-account-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.nav-account-label {
  min-width: 0;
  overflow: hidden;
  font-size: 11.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-account-menu {
  right: 0;
  min-width: 210px;
}
.nav-account-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 11px 11px;
  border-bottom: 1px solid #edf0f3;
}
.nav-account-summary strong {
  color: var(--navy);
  font-size: 13px;
}
.nav-account-summary span {
  color: var(--muted);
  font-size: 11px;
}
.nav-logout {
  width: 100%;
  min-height: 40px;
  margin-top: 5px;
  padding: 8px 11px;
  color: var(--red);
  background: transparent;
  border: 0;
  border-radius: 2px;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.nav-logout:hover {
  color: var(--red-deep);
  background: #fff1f1;
  border-color: transparent;
}
.nav-account-error {
  color: var(--muted);
  font-size: 11px;
}
.nav-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: none;
}
.nav-menu-button:hover {
  color: var(--red);
  background: var(--navy-soft);
  border-color: var(--line-strong);
}
.nav-menu-icon {
  display: block;
  width: 18px;
}
.nav-menu-icon span {
  display: block;
  height: 2px;
  margin: 3px 0;
  background: currentColor;
}
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(13, 31, 48, .42);
  opacity: 0;
  transition: opacity .18s ease;
}
.nav-drawer-overlay.is-open {
  opacity: 1;
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  width: min(86vw, 360px);
  overflow-y: auto;
  background: #fff;
  box-shadow: -18px 0 48px rgba(13, 31, 48, .22);
  transform: translateX(102%);
  transition: transform .2s ease;
}
.nav-drawer.is-open {
  transform: translateX(0);
}
.nav-drawer-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.nav-drawer-header strong {
  color: var(--navy);
  font-size: 15px;
}
.nav-drawer-close {
  min-height: 40px;
  padding: 7px 13px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 12px;
}
.nav-drawer-close:hover {
  color: var(--red);
  background: var(--navy-soft);
  border-color: var(--line-strong);
}
.nav-drawer-section {
  padding: 13px 15px;
  border-bottom: 1px solid #edf0f3;
}
.nav-drawer-heading {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  color: #405264;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.nav-drawer-link:hover {
  color: var(--navy);
  background: #f5f8fa;
}
.nav-drawer-link[aria-current="page"] {
  color: var(--navy);
  background: var(--navy-soft);
  box-shadow: inset 3px 0 0 var(--red);
}
.nav-drawer-account {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: auto;
  padding: 17px 18px;
  background: #fbfcfd;
  border-top: 1px solid var(--line);
}
.nav-drawer-account strong {
  color: var(--navy);
  font-size: 13px;
}
.nav-drawer-account span {
  color: var(--muted);
  font-size: 11px;
}
.nav-drawer-logout {
  min-height: 40px;
  margin-top: 10px;
  padding: 8px 12px;
  color: var(--red);
  background: #fff;
  border: 1px solid var(--red);
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
}
.nav-drawer-logout:hover {
  background: #fff1f1;
  border-color: var(--red-deep);
}
.site-header a:focus-visible,
.site-header button:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
.quote-center-nav {
  width: 100%;
  min-width: 0;
  margin: 0 0 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 3px 16px rgba(24, 52, 81, .05);
}
.quote-center-tabs {
  display: flex;
  flex-wrap: nowrap;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
.quote-center-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 24px;
  color: #52606d;
  background: #fff;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.quote-center-link:hover {
  color: var(--navy);
  background: #f7f9fb;
}
.quote-center-link[aria-current="page"] {
  color: var(--navy);
  background: var(--navy-soft);
  border-bottom-color: var(--red);
}
.quote-center-nav a:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -3px;
}
.quote-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 196px;
  gap: 18px;
  align-items: start;
}
.quote-center-content {
  min-width: 0;
}
.page-nav-slot {
  position: sticky;
  top: 90px;
  min-width: 0;
  align-self: start;
}
.page-toc {
  max-height: calc(100vh - 110px);
  padding: 12px 9px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 3px 16px rgba(24, 52, 81, .05);
  scrollbar-width: thin;
}
.page-toc-title {
  margin: 0 3px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
}
.page-toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-toc-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  color: #52606d;
  border-radius: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}
.page-toc-link:hover {
  color: var(--navy);
  background: #f5f8fa;
}
.page-toc-link[aria-current="location"] {
  color: var(--navy);
  background: var(--navy-soft);
  box-shadow: inset 3px 0 0 var(--red);
}
.page-toc-link:focus-visible,
[data-page-nav-focus]:focus {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
[data-page-nav-label] {
  scroll-margin-top: 96px;
}
html.nav-drawer-open,
body.nav-drawer-open {
  overflow: hidden;
}
.admin-link {
  color: var(--navy);
  text-decoration: none;
  padding: 5px 1px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease;
}
.admin-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}
.admin-link.dark {
  color: var(--navy);
  border-bottom-color: var(--navy);
  align-self: center;
}

main {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.card {
  margin-bottom: 18px;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 26px rgba(24, 52, 81, .05);
}
.card h2 {
  position: relative;
  margin: 0 0 18px;
  padding-left: 13px;
  color: var(--navy);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .3px;
}
.card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 3px;
  background: var(--red);
}
.card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 26px 0 12px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--red);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 16px 18px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .15px;
}
input, select, textarea {
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--text);
  border: 1px solid #cfd7df;
  border-radius: 2px;
  outline: none;
  font-size: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input, select { height: 40px; }
textarea {
  min-height: 76px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}
input:hover, select:hover, textarea:hover { border-color: #b8c4cf; }
input:focus, select:focus, textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(38, 75, 116, .12);
}
input:disabled, textarea:disabled {
  background: #f1f3f5;
  color: #6f7b87;
  cursor: not-allowed;
}
label small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
label.has-value { color: var(--navy); font-weight: 700; }
label.has-value > input,
label.has-value > select,
label.has-value .customer-combobox > input {
  background: #f1f6fb;
  border-color: #8eaecc;
  color: var(--navy);
  font-weight: 700;
  box-shadow: inset 3px 0 0 var(--navy);
}
label.has-value > input:focus,
label.has-value > select:focus,
label.has-value .customer-combobox > input:focus {
  border-color: var(--navy);
  box-shadow: inset 3px 0 0 var(--navy), 0 0 0 3px rgba(38, 75, 116, .14);
}

.customer-field { position: relative; }
.customer-combobox {
  position: relative;
  margin-top: 6px;
}
.customer-combobox input {
  margin-top: 0;
  padding-right: 42px;
}
.combobox-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  background: transparent;
  color: var(--navy);
  border: 0;
  border-left: 1px solid #e2e7eb;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}
.combobox-toggle:hover {
  background: var(--navy-soft);
  color: var(--navy);
  border-color: #e2e7eb;
}
.customer-results {
  position: absolute;
  z-index: 50;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 310px;
  overflow-y: auto;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  box-shadow: 0 12px 30px rgba(23, 52, 81, .16);
}
.customer-option {
  padding: 9px 10px;
  border-bottom: 1px solid #eef1f4;
  cursor: pointer;
}
.customer-option:last-child { border-bottom: 0; }
.customer-option:hover,
.customer-option.active { background: var(--navy-soft); }
.customer-option-code {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.customer-option-name {
  margin-left: 8px;
  color: var(--text);
  font-size: 13px;
}
.customer-option-meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.customer-empty {
  padding: 16px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.line-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(90px, 1fr));
  gap: 12px;
}
.admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f3;
  flex-wrap: wrap;
}
.admin-toolbar label { min-width: 220px; }
.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--text);
}
.inline-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--navy);
}
.hint {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #edf0f3;
}
button {
  min-height: 40px;
  padding: 10px 22px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red);
  border-radius: 2px;
  box-shadow: 0 3px 9px rgba(201, 22, 29, .14);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
button:hover {
  background: var(--red-deep);
  border-color: var(--red-deep);
}
button.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
  box-shadow: none;
}
button.secondary:hover {
  background: var(--navy-soft);
  color: var(--navy-deep);
}
button:disabled,
button:disabled:hover {
  background: #c5ccd3;
  border-color: #c5ccd3;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}
.link-btn {
  min-height: auto;
  padding: 2px 4px;
  background: transparent;
  color: var(--navy);
  border: 0;
  box-shadow: none;
  font-size: 12px;
  font-weight: 600;
}
.link-btn:hover {
  background: transparent;
  color: var(--red);
}

.message {
  min-height: 18px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.message.err { color: var(--red); }
.reset-panel {
  margin-top: 18px;
  padding: 18px;
  background: var(--navy-soft);
  border: 1px solid #cbd8e5;
  border-left: 3px solid var(--navy);
  border-radius: 2px;
}
.reset-panel h3 { margin-top: 0; }
.reset-target {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 12px;
}
.reset-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px 18px;
  max-width: 720px;
}
.reset-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top-color: rgba(38, 75, 116, .15);
}
.settings-main { width: min(1040px, 100%); }
.settings-note {
  margin: 0 0 18px;
  padding: 13px 16px;
  color: #52606d;
  background: var(--navy-soft);
  border: 1px solid #cbd8e5;
  border-left: 3px solid var(--red);
  font-size: 13px;
  line-height: 1.7;
}
.settings-note strong {
  color: var(--navy);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 20px;
}
.settings-grid .wide {
  grid-column: 1 / -1;
}
.settings-actions {
  justify-content: space-between;
  flex-wrap: wrap;
}
.settings-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.push-config-warning {
  margin: 0 0 16px;
  padding: 11px 13px;
  color: #7a4300;
  background: var(--warn-bg);
  border: 1px solid #e8c99c;
  border-left: 3px solid var(--warn-line);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.65;
}
.push-table-wrap {
  margin-top: 18px;
}
.push-delivery-table {
  min-width: 1080px;
}
.push-actions {
  white-space: nowrap;
}
.push-actions .link-btn {
  margin-right: 7px;
}
.push-error-cell {
  min-width: 180px;
  max-width: 300px;
  white-space: normal;
  word-break: break-word;
}
.push-error-text {
  margin-top: 3px;
  color: var(--red);
  font-size: 10px;
  line-height: 1.45;
}
.push-guide {
  overflow-wrap: anywhere;
}
.push-guide-intro {
  margin: 0 0 14px;
  color: #52606d;
  font-size: 12px;
  line-height: 1.75;
}
.push-guide-intro p {
  margin: 0;
}
.push-guide-checklist,
.push-guide-daily {
  padding: 15px 17px;
  background: #f8fafc;
  border: 1px solid #dbe4ec;
  border-left: 3px solid var(--navy);
  border-radius: 2px;
}
.push-guide-checklist h3,
.push-guide-daily h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 13px;
}
.push-guide-checklist ol,
.push-guide-steps,
.push-guide-troubleshooting,
.push-guide-daily ul {
  margin: 0;
  padding-left: 22px;
  font-size: 12px;
  line-height: 1.75;
}
.push-guide-checklist li + li,
.push-guide-steps li + li,
.push-guide-troubleshooting li + li,
.push-guide-daily li + li {
  margin-top: 5px;
}
.push-guide-callout {
  margin-top: 13px;
  padding: 10px 12px;
  color: #73310e;
  background: #fff8ef;
  border: 1px solid #edd2ae;
  border-left: 3px solid var(--warn-line);
  font-size: 11.5px;
  line-height: 1.7;
}
.push-guide-callout strong {
  color: #8b3c0b;
}
.push-guide code,
.push-provider-hint code {
  padding: 1px 4px;
  color: var(--navy-deep);
  background: #f1f5f9;
  border-radius: 2px;
  font-family: Consolas, "Courier New", monospace;
  font-size: .92em;
  overflow-wrap: anywhere;
}
.push-guide-details {
  margin-top: 11px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
}
.push-guide-details > summary {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 42px 10px 14px;
  color: var(--navy);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  list-style: none;
  user-select: none;
}
.push-guide-details > summary::-webkit-details-marker {
  display: none;
}
.push-guide-details > summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-right: 9px;
  color: var(--navy);
  background: var(--navy-soft);
  border: 1px solid #c8d7e4;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.push-guide-details[open] > summary::before {
  content: "−";
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}
.push-guide-details > summary:hover {
  background: #f7fafc;
}
.push-guide-details > summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: -2px;
}
.push-guide-details[open] > summary {
  background: var(--navy-soft);
  border-bottom: 1px solid #cbd8e5;
}
.push-guide-body {
  padding: 14px 16px 16px;
  font-size: 12px;
  line-height: 1.75;
}
.push-guide-note {
  margin-top: 14px;
  padding: 12px 14px;
  color: #52606d;
  background: #f7f9fb;
  border: 1px solid #e0e7ee;
  border-left: 3px solid var(--red);
  font-size: 11.5px;
  line-height: 1.7;
}
.push-guide-note h4 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 12px;
}
.push-guide-note ul {
  margin: 0;
  padding-left: 20px;
}
.push-guide-note li + li {
  margin-top: 5px;
}
.push-guide-troubleshooting {
  padding-left: 22px;
}
.push-guide-daily {
  margin-top: 14px;
  border-left-color: var(--red);
}
.push-provider-hint {
  margin: 14px 0 0;
  padding: 10px 13px;
  color: #455565;
  background: var(--navy-soft);
  border: 1px solid #cbd8e5;
  border-left: 3px solid var(--navy);
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.65;
}
.push-provider-hint[data-provider="wecom"] {
  background: #f4f9f7;
  border-color: #c8dfd6;
  border-left-color: var(--green);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.status-sent {
  color: #0d6546;
  background: #ecf8f2;
  border-color: #b8ddcf;
}
.status-pending,
.status-processing {
  color: var(--navy);
  background: var(--navy-soft);
  border-color: #c5d5e4;
}
.status-retry_wait {
  color: #8a5100;
  background: #fff7e8;
  border-color: #e7c998;
}
.status-failed {
  color: var(--red-deep);
  background: #fff1f1;
  border-color: #ecc1c1;
}
.status-cancelled {
  color: #687583;
  background: #f3f5f7;
  border-color: #d8dee5;
}
.danger-text {
  color: var(--red);
}
.danger-text:hover {
  color: var(--red-deep);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 18px;
}
.filter-grid .wide {
  grid-column: span 2;
}
.filter-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-check {
  align-self: end;
  min-height: 40px;
  padding: 8px 0 0;
}
.filter-hint {
  color: var(--muted);
  font-size: 11px;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}
.metric-card {
  min-height: 96px;
  padding: 16px 18px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-top: 3px solid #c6d2dc;
  border-radius: 2px;
}
.metric-card.accent {
  border-top-color: var(--navy);
}
.metric-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.metric-card strong {
  color: var(--navy);
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.metric-card.accent strong {
  color: var(--red);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-head h2 {
  margin-bottom: 0;
}
.management-table {
  min-width: 1180px;
}
.quote-actions-cell {
  min-width: 170px;
  white-space: nowrap;
}
.quote-actions-cell .link-btn {
  display: inline-block;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}
.pagination button {
  min-height: 34px;
  padding: 6px 14px;
}
.analytics-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.analytics-layout .card {
  margin-bottom: 0;
}
.chart-legend {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-bar {
  width: 14px;
  height: 8px;
  background: var(--navy);
}
.legend-line {
  width: 16px;
  height: 2px;
  background: var(--red);
}
.chart-shell {
  overflow-x: auto;
  padding: 8px 6px 2px;
  background: #fbfcfd;
  border: 1px solid #e8edf1;
}
#trendChart {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}
.chart-grid-line {
  stroke: #dfe6ec;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.chart-axis-text {
  fill: var(--muted);
  font-family: inherit;
  font-size: 11px;
}
.chart-y-label {
  font-variant-numeric: tabular-nums;
}
.chart-bar {
  fill: #365f89;
  opacity: .9;
}
.chart-bar:hover {
  opacity: 1;
}
.chart-profit-line {
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart-profit-point {
  fill: #fff;
  stroke: var(--red);
  stroke-width: 2;
}
.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ranking-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f3;
}
.ranking-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ranking-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  color: var(--text);
  font-size: 13px;
}
.ranking-head strong {
  color: var(--navy);
}
.ranking-head span {
  color: var(--text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ranking-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}
.ranking-bar-track {
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  background: #edf2f6;
  border-radius: 2px;
}
.ranking-bar {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--navy), #5c89ae);
}
.hidden { display: none !important; }

.result-card { border-top: 3px solid var(--red); }
.result-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.quote-no {
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}
.quote-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.quote-sheet-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--navy);
  border-radius: 2px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.quote-sheet-link:hover {
  color: var(--red);
  border-color: var(--red);
}
.summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.summary > div {
  min-height: 92px;
  padding: 16px 18px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-top: 2px solid #d6e0e8;
  border-radius: 2px;
}
.summary > div:nth-child(2) { border-top-color: #8eb5d2; }
.summary > div:nth-child(3) { border-top-color: var(--navy); }
.summary > div:last-child { border-top-color: var(--red); }
.summary span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}
.summary strong {
  color: var(--navy);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.summary > div:last-child strong { color: var(--red); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid #e8edf1;
  border-radius: 2px;
}
th, td {
  padding: 10px 9px;
  border-bottom: 1px solid #edf1f4;
  text-align: left;
}
th {
  background: #f4f7f9;
  color: #4d5b68;
  font-weight: 700;
  letter-spacing: .2px;
}
tbody tr:hover td { background: #fbfcfd; }
td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.total-row td {
  background: #f7f9fb;
  color: var(--navy);
  font-weight: 700;
}
.result-details {
  margin-top: 22px;
  border-top: 1px solid #edf0f3;
}
.result-details > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px 11px 0;
  color: var(--navy);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2px;
  list-style: none;
  user-select: none;
}
.result-details > summary::-webkit-details-marker { display: none; }
.result-details > summary::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  background: var(--red);
}
.result-details > summary::after {
  content: "▾";
  position: absolute;
  right: 3px;
  top: 50%;
  color: var(--muted);
  font-size: 12px;
  transform: translateY(-50%);
  transition: transform .18s ease;
}
.result-details:not([open]) > summary::after {
  transform: translateY(-50%) rotate(-90deg);
}
.result-details > summary:hover { color: var(--red); }
.result-details[open] > summary { margin-bottom: 7px; }
.result-details .table-wrap { margin-top: 0; }
.muted-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}
.empty {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}
.warnings {
  margin-bottom: 14px;
  padding: 11px 13px;
  background: var(--warn-bg);
  border: 1px solid #f0c38e;
  border-left: 3px solid var(--warn-line);
  border-radius: 2px;
  color: #85530e;
  font-size: 12px;
  line-height: 1.65;
}

.login-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 42px 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(38, 75, 116, .035) 25%, transparent 25%) 0 0 / 34px 34px,
    linear-gradient(315deg, rgba(38, 75, 116, .035) 25%, transparent 25%) 0 0 / 34px 34px,
    #f4f6f8;
}
.login-shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  width: min(1080px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 22px 70px rgba(23, 52, 81, .14);
}
.login-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 50px 52px;
  overflow: hidden;
  background: #f7f9fa;
  border-top: 4px solid var(--red);
}
.login-showcase::after {
  content: "HDS";
  position: absolute;
  right: -12px;
  bottom: -50px;
  color: rgba(38, 75, 116, .045);
  font-size: 230px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.login-logo {
  position: relative;
  z-index: 1;
  width: 230px;
  max-width: 78%;
  height: auto;
}
.login-showcase-copy {
  position: relative;
  z-index: 1;
  margin: 50px 0;
}
.login-eyebrow {
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}
.login-showcase h1 {
  margin: 16px 0 0;
  color: var(--navy);
  font-size: clamp(36px, 4.4vw, 54px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.15;
}
.login-showcase-en {
  margin-top: 10px;
  color: #7f8a94;
  font-size: 17px;
  letter-spacing: .4px;
}
.login-rule {
  width: 58px;
  height: 4px;
  margin-top: 24px;
  background: var(--red);
}
.login-showcase-footer {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 1.4px;
}
.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 560px;
  padding: 52px 48px;
  border-top: 4px solid var(--navy);
}
.login-card h1 {
  margin: 0;
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
}
.login-card-sub {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 12px;
}
.login-card form label { margin-bottom: 18px; }
.login-card input { height: 44px; }
.login-card button {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
}
.login-footer {
  margin: 26px 0 0;
  padding-top: 16px;
  border-top: 1px solid #edf0f3;
  color: #8a949e;
  font-size: 10px;
  letter-spacing: 1.2px;
}

@media (max-width: 1050px) {
  .form-grid { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .line-grid { grid-template-columns: repeat(3, 1fr); }
  .summary { grid-template-columns: repeat(2, 1fr); }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1023px) {
  .quote-center-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .page-nav-slot { display: none; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-showcase {
    min-height: auto;
    padding: 38px 34px;
  }
  .login-showcase-copy { margin: 36px 0; }
  .login-showcase::after { font-size: 170px; bottom: -34px; }
  .login-card {
    min-height: auto;
    padding: 38px 34px;
    border-top-width: 1px;
    border-top-color: var(--line);
  }
}

@media (max-width: 620px) {
  main { padding: 16px 14px 44px; }
  .card { padding: 18px 16px; }
  .card h2 { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .reset-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-grid .wide { grid-column: span 1; }
  .filter-actions { justify-content: flex-start; }
  .analytics-layout { grid-template-columns: 1fr; }
  .line-grid { grid-template-columns: repeat(2, 1fr); }
  .summary { grid-template-columns: 1fr; }
  .login-wrap { padding: 18px 12px; }
  .login-showcase, .login-card { padding: 30px 24px; }
  .login-showcase h1 { font-size: 34px; }
  .push-guide-checklist,
  .push-guide-daily {
    padding: 13px 14px;
  }
  .push-guide-details > summary {
    padding-right: 34px;
    padding-left: 12px;
  }
  .push-guide-body {
    padding: 12px 13px 14px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header {
    gap: 8px;
    padding-right: 16px;
    padding-left: 16px;
  }
  .nav-logo { width: 98px; }
  .nav-page-heading { display: none; }
  .nav-core-link,
  .nav-group-toggle {
    padding: 0 7px;
    font-size: 12px;
  }
  .nav-divider { margin: 0 4px; }
  .nav-account-area { padding-left: 8px; }
  .nav-account-button { max-width: 205px; gap: 6px; }
  .nav-account-label { max-width: 145px; }
}

@media (max-width: 767px) {
  .site-header {
    min-height: 64px;
    gap: 8px;
    padding: 0 12px;
  }
  .nav-logo { width: 92px; }
  .nav-page-heading {
    display: flex;
    flex: 1 1 auto;
  }
  .nav-page-title { font-size: 16px; }
  .nav-page-subtitle { display: none; }
  .nav-desktop { display: none; }
  .nav-account-area {
    height: auto;
    padding-left: 0;
    border-left: 0;
  }
  .nav-account-button {
    max-width: none;
    gap: 4px;
    padding: 2px;
  }
  .nav-account-label,
  .nav-account .nav-caret { display: none; }
  .nav-menu-button { display: inline-flex; }
  .nav-account-menu { top: 48px; }
  .quote-center-nav { margin-bottom: 14px; }
  .quote-center-link {
    min-height: 44px;
    padding: 0 20px;
  }
  main { padding: 18px 14px 48px; }
}

@media print {
  .page-nav-slot { display: none !important; }
  .quote-center-layout { display: block; }
  [data-page-nav-label] { scroll-margin-top: 0; }
}
