:root {
  --navy: #0f3157;
  --navy-deep: #09233f;
  --blue: #1c659f;
  --sky: #dceefa;
  --teal: #2b8c85;
  --gold: #e1aa50;
  --ink: #172a3d;
  --muted: #607286;
  --line: #dbe3ea;
  --soft: #f4f7fa;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(15, 49, 87, 0.13);
  --radius: 22px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 280px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

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

.skip-link:focus {
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  clip: auto;
  margin: 0;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy);
  border-radius: 8px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(219, 227, 234, 0.8);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.portal-header .header-inner {
  width: 100%;
  max-width: none;
  padding-right: max(clamp(22px, 3vw, 48px), env(safe-area-inset-right));
  padding-left: max(clamp(22px, 3vw, 48px), env(safe-area-inset-left));
}

.portal-footer .footer-inner {
  width: 100%;
  max-width: none;
  padding-right: max(clamp(22px, 3vw, 48px), env(safe-area-inset-right));
  padding-left: max(clamp(22px, 3vw, 48px), env(safe-area-inset-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-archive-logo {
  display: block;
  width: 62px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
  transform: translate(-3px, -2px);
}

.brand-mark {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy), var(--blue));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(28, 101, 159, 0.2);
}

.brand-mark svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  max-width: 270px;
  overflow: hidden;
  color: var(--navy-deep);
  font-size: 17px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: #3a4b5d;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--blue);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: 180ms ease;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 12%, rgba(158, 215, 241, 0.28), transparent 34%),
    linear-gradient(105deg, #092f52 0%, #155f8c 54%, #5ba8cf 100%);
}

.hero::before {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 120px;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(220, 238, 248, 0) 0%,
    rgba(220, 238, 248, 0.2) 35%,
    rgba(220, 238, 248, 0.68) 72%,
    #dceef8 100%
  );
}

.hero::after {
  position: absolute;
  right: -10%;
  bottom: -170px;
  width: 720px;
  height: 400px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 600px;
  align-items: center;
  gap: 80px;
  grid-template-columns: 1.2fr 0.8fr;
  padding-block: 84px;
}

.hero-shape {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.hero-shape-one {
  top: 85px;
  right: 7%;
  width: 420px;
  height: 420px;
}

.hero-shape-two {
  top: 160px;
  right: 13%;
  width: 260px;
  height: 260px;
}

.hero h1 {
  margin: 0;
  font-size: 70px;
  font-size: clamp(42px, 5vw, 70px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.hero-title-group,
.hero-title-group strong {
  display: block;
}

.hero-title-group + .hero-title-group {
  margin-top: 15px;
}

.hero-title-group strong {
  color: var(--white);
  font-size: inherit;
  line-height: 1;
}

.hero-title-accent strong {
  color: #8bc9eb;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.hero-description {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 18px;
  white-space: pre-line;
}

.update-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #61d19c;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(97, 209, 156, 0.12);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
}

.overview-item {
  display: grid;
  min-height: 72px;
  align-items: center;
  gap: 16px;
  grid-template-columns: 50px 1fr 20px;
  padding: 19px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: padding 180ms ease, background 180ms ease;
}

.overview-item:hover,
.overview-item:focus-visible {
  padding-inline: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.overview-item:last-child {
  padding-bottom: 2px;
  border-bottom: 0;
}

.overview-icon,
.service-icon {
  display: grid;
  place-items: center;
  font-weight: 800;
  border-radius: 12px;
}

.overview-icon {
  width: 50px;
  height: 50px;
  color: #c7eaff;
  background: transparent;
  border: 0;
  border-radius: 0;
  transform: translateY(4px);
}

.overview-icon img {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.overview-icon-business {
  transform: translateY(2px);
}

.overview-copy {
  display: flex;
  min-height: 50px;
  flex-direction: column;
  justify-content: center;
}

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

.overview-item strong {
  font-size: 14px;
  line-height: 1.35;
}

.overview-item span:not(.overview-icon) {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.overview-copy span {
  margin-top: 3px;
}

.overview-item span.overview-arrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 25px;
  line-height: 1;
  transition: transform 180ms ease, color 180ms ease;
}

.overview-item:hover .overview-arrow,
.overview-item:focus-visible .overview-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

.section {
  padding-block: 100px;
}

.section-soft {
  background: var(--soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2,
.logistics-section-heading h1 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 42px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.subpage-back-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  color: var(--navy);
  background: #f3f8fb;
  border: 1px solid #cfe1ec;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease;
}

.subpage-back-link:hover,
.subpage-back-link:focus-visible {
  background: #e7f3fa;
  border-color: #91bed6;
}

.header-login-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  color: #ffffff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 49, 87, 0.15);
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-login-link:hover,
.header-login-link:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.section-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}

.service-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #cfe4f0;
  background: linear-gradient(135deg, #ffffff, #eef7fc);
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 49, 87, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.service-card-featured {
  grid-column: span 2;
}

.invoice-section-heading {
  margin-bottom: 28px;
}

.invoice-section {
  background:
    radial-gradient(circle at 88% 12%, rgba(91, 168, 207, 0.18), transparent 28%),
    linear-gradient(180deg, #dceef8 0%, #f2f7fa 42%, #ffffff 100%);
}

.invoice-info-grid {
  display: block;
  width: min(100%, 440px);
}

.invoice-info-card {
  width: 100%;
  overflow: hidden;
  background: linear-gradient(115deg, #ffffff 0%, #f4faff 52%, #e7f4fb 100%);
  border: 1px solid #cfe4f0;
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(15, 73, 113, 0.08);
}

.invoice-info-row {
  display: grid;
  min-width: 0;
  align-items: center;
  gap: 14px;
  grid-template-columns: 100px 218px 52px;
  padding: 16px 20px;
  border-bottom: 1px solid #dce9f0;
}

.invoice-info-row:last-child {
  border-bottom: 0;
}

.invoice-info-row > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.invoice-info-row strong {
  min-width: 0;
  color: var(--navy-deep);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.invoice-info-row button {
  min-width: 52px;
  min-height: 34px;
  flex: 0 0 auto;
  padding: 5px 10px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #b9d4e4;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.invoice-info-row button:hover,
.invoice-info-row button:focus-visible {
  color: var(--navy);
  background: #eaf4fb;
  border-color: #7fb4d1;
}

.invoice-info-row button.copy-failed {
  color: #a4463e;
  background: #fff4f2;
  border-color: #d9a5a0;
}

.service-icon {
  width: 48px;
  height: 48px;
  color: var(--blue);
  background: var(--sky);
}

.service-icon-image {
  width: 52px;
  height: 52px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.service-icon-image img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-card h3 {
  margin: 21px 0 8px;
  color: var(--navy-deep);
  font-size: 18px;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.project-search {
  margin-top: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #cfe1ec;
  border-radius: 14px;
}

.project-search-label {
  display: block;
  margin-bottom: 9px;
  color: var(--navy-deep);
  font-size: 14px;
  font-weight: 700;
}

.project-search-control {
  position: relative;
  display: flex;
  align-items: center;
}

.project-search-control svg {
  position: absolute;
  left: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 1.8;
  pointer-events: none;
}

.project-search-control input {
  width: 100%;
  min-height: 50px;
  padding: 11px 70px 11px 44px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfd8e7;
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.project-search-control input::placeholder {
  color: #8a99a8;
}

.project-search-control input:focus {
  border-color: #5fa5cf;
  box-shadow: 0 0 0 4px rgba(95, 165, 207, 0.14);
}

.project-search-control input::-webkit-search-cancel-button {
  display: none;
}

.project-search-clear {
  position: absolute;
  right: 7px;
  min-height: 36px;
  padding: 0 10px;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.project-search-clear:hover,
.project-search-clear:focus-visible {
  background: #edf6fb;
}

.project-search-status {
  margin-top: 9px !important;
  font-size: 12px !important;
}

.project-search-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.project-search-results[hidden],
.project-category-tree[hidden] {
  display: none;
}

.project-search-company {
  overflow: hidden;
  background: #f7fbfd;
  border: 1px solid #d6e6ef;
  border-radius: 12px;
}

.project-search-company-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 13px;
  background: #eaf4fb;
  border-bottom: 1px solid #d6e6ef;
}

.project-search-company-heading strong {
  color: var(--navy-deep);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.project-search-contracts {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.project-search-empty {
  display: grid;
  gap: 3px;
  padding: 22px 16px;
  text-align: center;
  background: #f8fbfd;
  border: 1px dashed #bfd8e7;
  border-radius: 11px;
}

.project-search-empty strong {
  color: var(--navy-deep);
  font-size: 14px;
}

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

.project-category-tree {
  margin-top: 14px;
}

.service-children {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.service-children span {
  padding: 6px 11px;
  color: var(--navy);
  background: #edf5fa;
  border: 1px solid #d6e6ef;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.service-child-link {
  display: flex;
  min-height: 52px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 13px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #d6e6ef;
  border-radius: 10px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.service-child-link:hover,
.service-child-link:focus-visible {
  background: #f7fbfd;
  border-color: #9fc6dc;
  transform: translateY(-2px);
}

.service-child-link > span {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.file-link-copy strong,
.file-link-copy em,
.file-link-flag {
  display: block;
}

.file-link-copy strong {
  color: var(--navy-deep);
  font-size: 13px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.file-link-copy em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
}

.file-link-flag {
  width: fit-content;
  max-width: 100%;
  margin-top: 7px;
  padding: 4px 7px;
  color: #9a3f16;
  background: #fff1e7;
  border: 1px solid #f2b68c;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.service-child-link small {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.project-file-item {
  cursor: default;
}

.project-file-actions {
  display: inline-flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.project-file-action {
  display: inline-flex;
  min-width: 52px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.project-file-preview {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #b9d4e4;
}

.project-file-preview:hover,
.project-file-preview:focus-visible {
  color: var(--blue);
  background: #edf6fb;
  border-color: #74afd0;
}

.project-file-download {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.project-file-download:hover,
.project-file-download:focus-visible {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.form-category {
  width: 100%;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dce9f0;
  border-radius: 13px;
}

.form-category-heading {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease;
}

.form-category-heading::-webkit-details-marker {
  display: none;
}

.form-category-heading:hover {
  background: #f7fbfd;
}

.form-category-heading strong {
  color: var(--navy-deep);
  font-size: 14px;
}

.form-category-meta {
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 0 !important;
  color: var(--muted);
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.form-category-meta b {
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.form-category[open] > .form-category-heading {
  background: #eaf4fb;
  border-bottom: 1px solid #dce9f0;
}

.form-category[open] > .form-category-heading .form-category-meta b {
  transform: rotate(180deg);
}

.form-file-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fbfd;
}

.form-category .form-category {
  border-radius: 10px;
  box-shadow: none;
}

.form-category .form-category .form-category-heading {
  min-height: 52px;
}

.form-category-parent > .form-file-list {
  background: #f4f9fc;
}

.logistics-section {
  background: #ffffff;
}

.logistics-subpage {
  min-height: calc(100vh - 180px);
  background: var(--soft);
}

.document-subpage {
  min-height: calc(100vh - 180px);
}

.document-subpage-grid {
  grid-template-columns: minmax(0, 1fr);
}

.document-subpage-grid .service-card-featured {
  grid-column: auto;
}

.logistics-section-heading {
  align-items: center;
}

.logistics-section-heading > div > p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.local-storage-note {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  color: #566c7d !important;
  background: #f3f8fb;
  border: 1px solid #d5e6ef;
  border-radius: 10px;
  font-size: 12px !important;
}

.local-storage-note span {
  color: #5aa6cf;
  font-size: 9px;
}

.logistics-workspace {
  display: grid;
  gap: 20px;
}

.logistics-list-panel {
  order: 1;
}

.logistics-form-panel {
  order: 2;
}

.logistics-form-panel,
.logistics-list-panel {
  overflow: hidden;
  padding: 28px;
  background: linear-gradient(135deg, #ffffff, #f3f9fc);
  border: 1px solid #cfe4f0;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 49, 87, 0.055);
}

.logistics-list-panel {
  background: #ffffff;
}

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

.logistics-panel-heading h1,
.logistics-panel-heading h3,
.logistics-panel-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 20px;
}

.logistics-panel-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.logistics-form {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  scroll-margin-top: 90px;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
}

.form-field label span {
  margin-left: 4px;
  color: #688092;
  font-size: 10px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea,
.logistics-filters input,
.logistics-filters select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfd6e3;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-field textarea {
  display: block;
  min-height: 90px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.logistics-filters input:focus,
.logistics-filters select:focus {
  border-color: #5fa5cf;
  box-shadow: 0 0 0 4px rgba(95, 165, 207, 0.14);
}

.form-field input::placeholder,
.form-field textarea::placeholder,
.logistics-filters input::placeholder {
  color: #8a99a8;
}

.weight-input {
  position: relative;
}

.weight-input input {
  padding-right: 42px;
}

.weight-input > span {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--muted);
  font-size: 13px;
  transform: translateY(-50%);
  pointer-events: none;
}

.logistics-form-actions {
  display: flex;
  gap: 10px;
}

.logistics-entry-container {
  max-width: 980px;
}

.logistics-entry-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.button-primary,
.button-secondary {
  min-height: 44px;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.button-primary {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
}

.button-secondary {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid #bfd6e3;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: #edf6fb;
  border-color: #8ebbd3;
}

.logistics-form-status {
  min-height: 20px;
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.logistics-form-status.status-success {
  color: #277567;
}

.logistics-form-status.status-error {
  color: #a83f36;
}

.logistics-attachment-field {
  scroll-margin-top: 92px;
  padding: 20px;
  background: linear-gradient(110deg, #ffffff 0%, #f6fbfd 66%, #edf7fc 100%);
  border: 1px solid #cfe3ee;
  border-radius: 12px;
}

.logistics-attachment-heading {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.logistics-attachment-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 17px;
}

.logistics-attachment-heading p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

#logistics-attachment-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.logistics-file-picker {
  display: inline-flex !important;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 8px 16px;
  color: #ffffff !important;
  background: linear-gradient(135deg, #176998, #2388bd);
  border: 1px solid #176998;
  border-radius: 9px;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.logistics-file-picker:hover,
.logistics-file-picker:focus-visible,
#logistics-attachment-input:focus-visible + .logistics-file-picker {
  box-shadow: 0 7px 18px rgba(23, 105, 152, 0.2);
  transform: translateY(-1px);
}

.logistics-attachment-note {
  margin: 13px 0 0;
  color: #738696;
  font-size: 11px;
  line-height: 1.6;
}

.logistics-attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.logistics-attachment-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  background: #ffffff;
  border: 1px solid #d7e6ee;
  border-radius: 9px;
}

.logistics-attachment-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.logistics-attachment-copy strong {
  color: var(--navy-deep);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.logistics-attachment-copy span {
  color: var(--muted);
  font-size: 11px;
}

.logistics-attachment-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 5px;
}

.logistics-attachment-actions button {
  min-height: 32px;
  padding: 5px 9px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #bfd6e3;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.logistics-attachment-actions button:hover,
.logistics-attachment-actions button:focus-visible {
  background: #edf6fb;
  border-color: #79b0ce;
}

.logistics-attachment-actions button.record-delete {
  color: #a14b44;
  border-color: #e3c4c0;
}

.logistics-attachment-empty {
  margin: 14px 0 0;
  padding: 16px;
  color: var(--muted);
  border: 1px dashed #c7dce8;
  border-radius: 9px;
  font-size: 12px;
  text-align: center;
}

.logistics-list-heading {
  align-items: center;
}

.logistics-filters {
  display: grid;
  width: min(100%, 680px);
  gap: 9px;
  grid-template-columns: auto minmax(260px, 1fr) 130px;
}

.finance-filters {
  width: 100%;
  grid-template-columns: auto minmax(260px, 1fr) 130px 140px 120px;
}

.finance-query-actions {
  display: flex;
  gap: 9px;
}

.finance-association-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 17px;
  color: #155f8c;
  background: linear-gradient(135deg, #ffffff 0%, #edf7fc 100%);
  border: 1px solid #b9d7e7;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.finance-association-link:hover,
.finance-association-link:focus-visible {
  color: #0f5079;
  border-color: #73adcb;
  box-shadow: 0 7px 18px rgba(23, 105, 152, 0.12);
  transform: translateY(-1px);
}

.finance-association-status {
  margin: 12px 0 0;
  padding: 10px 13px;
  color: #155f8c;
  background: linear-gradient(100deg, #edf7fc 0%, #f8fcfe 70%, #ffffff 100%);
  border: 1px solid #c9e1ed;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.65;
}

.finance-company-container {
  max-width: 1160px;
}

.finance-company-workspace {
  align-items: start;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
}

.finance-company-form {
  display: grid;
  gap: 18px;
}

.finance-company-groups {
  display: grid;
  gap: 12px;
}

.finance-company-group {
  padding: 18px;
  background: linear-gradient(115deg, #ffffff 0%, #f7fbfd 64%, #edf7fc 100%);
  border: 1px solid #d2e4ee;
  border-radius: 12px;
}

.finance-company-group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.finance-company-group-heading h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 16px;
}

.finance-company-group-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.finance-company-group-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
}

.finance-company-group-actions button {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #bfd6e3;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.finance-company-group-actions button:hover,
.finance-company-group-actions button:focus-visible {
  background: #edf6fb;
  border-color: #79b0ce;
}

.finance-company-group-actions button.record-delete {
  color: #a14b44;
  border-color: #e3c4c0;
}

.finance-company-group-actions button.record-delete:hover,
.finance-company-group-actions button.record-delete:focus-visible {
  background: #fff4f2;
  border-color: #d79b95;
}

.finance-company-members {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}

.finance-company-member {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 5px 10px;
  color: #245c82;
  background: #ffffff;
  border: 1px solid #c8deea;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.4;
}

.finance-list-heading {
  align-items: stretch;
  flex-direction: column;
}

.logistics-new-record-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  color: #ffffff;
  background: linear-gradient(135deg, #176998, #2388bd);
  border: 1px solid #176998;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.logistics-new-record-link:hover,
.logistics-new-record-link:focus-visible {
  color: #ffffff;
  background: linear-gradient(135deg, #125b87, #1d7dab);
  box-shadow: 0 7px 18px rgba(23, 105, 152, 0.2);
  transform: translateY(-1px);
}

.logistics-search-control {
  position: relative;
}

.logistics-search-control svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
  pointer-events: none;
}

.logistics-search-control input {
  padding-left: 40px;
}

.logistics-table-wrap {
  min-width: 0;
}

.finance-table-wrap {
  overflow-x: auto;
  border: 1px solid #d8e6ee;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.company-record-groups {
  display: grid;
  gap: 14px;
}

.company-record-group {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d2e4ee;
  border-radius: 13px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.company-record-group[open] {
  border-color: #add0e3;
  box-shadow: 0 9px 24px rgba(15, 73, 113, 0.07);
}

.company-record-group summary {
  display: grid;
  min-height: 70px;
  align-items: center;
  gap: 10px 18px;
  grid-template-columns: minmax(0, 1fr) auto auto 18px;
  padding: 16px 20px;
  background: linear-gradient(110deg, #ffffff 0%, #f1f8fc 62%, #e5f3fa 100%);
  cursor: pointer;
  list-style: none;
}

.company-record-group summary::-webkit-details-marker {
  display: none;
}

.company-record-group summary::after {
  content: "›";
  color: #4f8fb4;
  font-size: 24px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform 180ms ease;
}

.company-record-group[open] summary::after {
  transform: rotate(90deg);
}

.company-record-name {
  min-width: 0;
  color: var(--navy-deep);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.company-record-count {
  padding: 5px 10px;
  color: #155f8c;
  background: #e5f2f9;
  border: 1px solid #c3deec;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.company-record-breakdown {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.company-record-table-wrap {
  overflow-x: auto;
  border-top: 1px solid #dce9f0;
  -webkit-overflow-scrolling: touch;
}

.logistics-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  font-size: 12px;
}

.finance-table {
  min-width: 1360px;
}

.finance-voucher-type {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.finance-voucher-payment {
  color: #8a5a20;
  background: #fff3df;
  border: 1px solid #ead0a7;
}

.finance-voucher-receipt {
  color: #176b62;
  background: #e5f5f1;
  border: 1px solid #b7dfd7;
}

.finance-category-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 3px 9px;
  color: #275f91;
  background: #e7f2fa;
  border: 1px solid #bad7e9;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.finance-amount {
  color: #155f8c;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.logistics-table th,
.logistics-table td {
  padding: 13px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e4edf2;
}

.logistics-table th {
  color: #546b7d;
  background: #f0f7fb;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.logistics-table td {
  max-width: 200px;
  color: #344a5c;
  overflow-wrap: anywhere;
}

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

.logistics-table tbody tr:hover {
  background: #f9fcfd;
}

.plate-number {
  color: var(--navy-deep);
  white-space: nowrap;
}

.direction-badge {
  display: inline-flex;
  min-width: 42px;
  min-height: 25px;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.direction-in {
  color: #176b62;
  background: #e5f5f1;
  border: 1px solid #b7dfd7;
}

.direction-out {
  color: #275f91;
  background: #e7f2fa;
  border: 1px solid #bad7e9;
}

.record-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.record-actions {
  display: inline-flex;
  gap: 5px;
  white-space: nowrap;
}

.record-actions button {
  min-height: 32px;
  padding: 5px 9px;
  color: var(--blue);
  background: #ffffff;
  border: 1px solid #bfd6e3;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.record-actions button:hover,
.record-actions button:focus-visible {
  background: #edf6fb;
  border-color: #79b0ce;
}

.record-actions button.record-delete {
  color: #a14b44;
  border-color: #e3c4c0;
}

.record-actions button.record-delete:hover,
.record-actions button.record-delete:focus-visible {
  background: #fff4f2;
  border-color: #d79b95;
}

.logistics-empty {
  display: grid;
  min-height: 170px;
  place-content: center;
  gap: 3px;
  padding: 30px;
  text-align: center;
}

.logistics-empty[hidden] {
  display: none;
}

.logistics-empty strong {
  color: var(--navy-deep);
  font-size: 14px;
}

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

.site-footer {
  padding: 34px 0 calc(34px + env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-brand-group {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
}

.footer-company-names {
  display: inline-flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  text-align: left;
}

.footer-company-en {
  margin: 0 !important;
  color: #748696;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1.45;
}

.footer-logo-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 18px;
}

.footer-archive-logo {
  display: block;
  width: 92px;
  height: 50px;
  object-fit: contain;
  object-position: center;
}

.footer-affiliate-logo {
  display: block;
  width: 118px;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

.footer-company-website {
  align-self: center;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(28, 101, 159, 0.35);
  text-underline-offset: 3px;
}

.footer-company-website:hover,
.footer-company-website:focus-visible {
  color: var(--navy-deep);
  text-decoration-color: currentColor;
}

.footer-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.footer-update-note {
  color: var(--muted);
}

.footer-usage-label {
  font-size: 14px;
}

.login-page {
  min-height: 100vh;
  background: #f2f7fa;
}

.login-main {
  position: relative;
  overflow: hidden;
  background-color: #f8fafb;
  background: linear-gradient(
    90deg,
    #092945 0%,
    #0e3554 12%,
    #174766 24%,
    #285f7d 38%,
    #457d98 52%,
    #6f9caf 64%,
    #9fbcca 75%,
    #cadce4 84%,
    #e8f0f3 92%,
    #f8fafb 97%,
    #ffffff 100%
  );
}

.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: calc(100vh - 230px);
  align-items: center;
  gap: clamp(50px, 9vw, 120px);
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 0.72fr);
  padding-block: 64px;
}

.login-intro {
  max-width: 520px;
  padding-left: clamp(24px, 4vw, 58px);
  color: #ffffff;
}

.login-brand-title {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
}

.login-brand-logo {
  display: block;
  width: clamp(96px, 10vw, 132px);
  height: clamp(68px, 8vw, 92px);
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.login-intro h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.12;
  white-space: nowrap;
}

.login-card {
  width: 100%;
  max-width: 480px;
  justify-self: end;
  padding: 34px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(200, 221, 232, 0.95);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(7, 35, 63, 0.2);
}

.login-card-heading h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: 28px;
  line-height: 1.2;
}

.login-card-heading p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.login-preview-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  padding: 10px 12px;
  color: #687b8b;
  background: #f3f8fb;
  border: 1px solid #d7e6ee;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.55;
}

.login-preview-note span {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #5aa6cf;
  font-size: 8px;
}

.login-form {
  display: grid;
  gap: 17px;
  margin-top: 22px;
}

.login-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 700;
}

.login-field input {
  width: 100%;
  min-height: 50px;
  padding: 11px 13px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #bfd5e2;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  outline: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.login-field input::placeholder {
  color: #8b9ba8;
}

.login-field input:focus {
  border-color: #5fa5cf;
  box-shadow: 0 0 0 4px rgba(95, 165, 207, 0.14);
}

.login-password-control {
  position: relative;
}

.login-password-control input {
  padding-right: 64px;
}

.login-password-control button {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 48px;
  min-height: 36px;
  padding: 4px 8px;
  color: var(--blue);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.login-password-control button:hover,
.login-password-control button:focus-visible {
  background: #edf6fb;
}

.login-field-error {
  display: block;
  min-height: 17px;
  margin-top: 3px;
  color: #a4463e;
  font-size: 11px;
  line-height: 1.4;
}

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border: 0;
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(15, 49, 87, 0.19);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  box-shadow: 0 15px 30px rgba(15, 49, 87, 0.25);
  transform: translateY(-1px);
}

.login-status {
  min-height: 20px;
  margin: -7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.login-status-error {
  color: #a4463e;
}

.login-status-preview {
  color: #277567;
}

.login-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.login-home-link:hover,
.login-home-link:focus-visible {
  color: var(--navy-deep);
}

.login-footer {
  padding: 19px 0 calc(19px + env(safe-area-inset-bottom));
  color: var(--muted);
  background: #ffffff;
  border-top: 1px solid #e1ebf0;
  font-size: 12px;
}

.login-footer p {
  margin: 0;
}

.back-to-top {
  position: fixed;
  z-index: 50;
  right: calc(24px + env(safe-area-inset-right));
  bottom: calc(24px + var(--footer-overlap, 0px) + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  color: var(--white);
  border: 0;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 49, 87, 0.23);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 180ms ease;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid #64b8e6;
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-panel {
    max-width: 620px;
  }

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

}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
    box-shadow: 0 16px 30px rgba(15, 49, 87, 0.08);
  }

  .main-nav.open {
    display: grid;
  }

  .main-nav a {
    min-height: 48px;
    padding: 12px 4px;
  }

  .main-nav a::after {
    display: none;
  }

  .hero,
  .hero-grid {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 68px;
  }

  .hero-description {
    font-size: 16px;
  }

  .section {
    padding-block: 72px;
  }

  .section-heading {
    display: block;
    margin-bottom: 30px;
  }

  .section-heading > p {
    margin-top: 14px;
  }

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

  .service-card-featured {
    grid-column: auto;
  }

  .service-card {
    min-height: 0;
  }

  .service-card:hover {
    transform: none;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 5px;
  }

  .footer-meta {
    justify-items: start;
    margin-top: 5px;
    text-align: left;
  }
}

@media (max-width: 480px) {
  html {
    scroll-padding-top: 78px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
  }

  .brand strong {
    max-width: 180px;
    font-size: 15px;
  }

  .brand small {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .hero-grid {
    gap: 38px;
    padding-block: 52px;
  }

  .hero h1 {
    font-size: 40px;
    letter-spacing: -0.035em;
  }

  .hero-title-group + .hero-title-group {
    margin-top: 10px;
  }

  .hero-description {
    margin-top: 20px;
    font-size: 15px;
  }

  .update-note {
    align-items: center;
    margin-top: 0;
    line-height: 1.5;
  }

  .status-dot {
    flex: 0 0 8px;
    margin-top: 0;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 17px;
  }

  .overview-item {
    gap: 12px;
    grid-template-columns: 44px minmax(0, 1fr) 16px;
    padding-block: 16px;
  }

  .overview-icon {
    width: 44px;
    height: 44px;
  }

  .overview-icon img {
    width: 38px;
    height: 38px;
  }

  .overview-copy {
    min-width: 0;
    min-height: 44px;
  }

  .overview-copy span {
    overflow-wrap: anywhere;
  }

  .section {
    padding-block: 56px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .logistics-section-heading h1 {
    font-size: 28px;
  }

  .section-heading > p {
    font-size: 14px;
  }

  .service-grid {
    gap: 14px;
  }

  .service-card {
    padding: 21px;
    border-radius: 15px;
  }

  .service-card h3 {
    margin-top: 16px;
  }

  .service-children {
    margin-top: 16px;
  }

  .project-search {
    margin-top: 18px;
    padding: 14px;
  }

  .project-search-control input {
    min-height: 48px;
    padding-left: 42px;
    font-size: 14px;
  }

  .project-search-company-heading {
    align-items: flex-start;
  }

  .form-category-heading {
    gap: 10px;
    padding: 13px 14px;
  }

  .form-file-list {
    padding: 10px;
  }

  .service-child-link {
    gap: 10px;
    padding: 10px 11px;
  }

  .project-file-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-file-actions {
    width: 100%;
  }

  .project-file-action {
    flex: 1 1 0;
    min-height: 38px;
  }

  .file-link-copy {
    min-width: 0;
  }

  .service-child-link small {
    flex: 0 0 auto;
  }

  .footer-inner {
    font-size: 12px;
  }

  .footer-usage-label {
    font-size: 13px;
  }

  .footer-affiliate-logo {
    width: 106px;
  }

  .footer-logo-row {
    gap: 14px;
  }

  .footer-archive-logo {
    width: 82px;
    height: 46px;
  }

  .back-to-top {
    right: calc(14px + env(safe-area-inset-right));
    bottom: calc(14px + var(--footer-overlap, 0px) + env(safe-area-inset-bottom));
  }
}

@media (max-width: 360px) {
  .container {
    width: min(calc(100% - 20px), var(--container));
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-panel,
  .service-card {
    padding: 18px;
  }

  .overview-item {
    gap: 9px;
  }

  .form-category-meta {
    gap: 3px;
  }
}

@media (max-width: 900px) {
  .logistics-list-heading {
    display: block;
  }

  .logistics-filters {
    width: 100%;
    margin-top: 16px;
  }

  .finance-company-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .logistics-section-heading {
    display: block;
  }

  .local-storage-note {
    margin-top: 16px !important;
  }

  .logistics-form-panel,
  .logistics-list-panel {
    padding: 21px;
  }

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

  .form-field-wide {
    grid-column: auto;
  }

  .logistics-filters {
    grid-template-columns: 1fr;
  }

  .finance-query-actions {
    flex-wrap: wrap;
  }

  .finance-query-actions > a {
    flex: 1 1 150px;
  }

  .company-record-group summary {
    grid-template-columns: minmax(0, 1fr) auto 18px;
    padding: 15px 16px;
  }

  .company-record-name {
    grid-column: 1;
    grid-row: 1;
  }

  .company-record-count {
    grid-column: 2;
    grid-row: 1;
  }

  .company-record-group summary::after {
    grid-column: 3;
    grid-row: 1;
  }

  .company-record-breakdown {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .logistics-table-wrap {
    overflow: visible;
    border: 0;
    border-radius: 0;
  }

  .logistics-table,
  .logistics-table tbody,
  .logistics-table tr,
  .logistics-table td {
    display: block;
    width: 100%;
  }

  .logistics-table {
    min-width: 0;
  }

  .logistics-table thead {
    display: none;
  }

  .logistics-table tbody {
    display: grid;
    gap: 12px;
  }

  .logistics-table tbody tr {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8e6ee;
    border-radius: 11px;
    box-shadow: 0 6px 18px rgba(15, 49, 87, 0.04);
  }

  .logistics-table td {
    display: grid;
    max-width: none;
    gap: 12px;
    grid-template-columns: 78px minmax(0, 1fr);
    padding: 10px 12px;
    border-bottom: 1px solid #edf2f5;
  }

  .logistics-table td::before {
    content: attr(data-label);
    color: #718394;
    font-size: 11px;
    font-weight: 700;
  }

  .logistics-table tbody tr:last-child td,
  .logistics-table td:last-child {
    border-bottom: 0;
  }

  .logistics-table tbody tr:hover {
    background: #ffffff;
  }

  .record-actions {
    width: 100%;
  }

  .record-actions button {
    flex: 1 1 0;
  }

  .logistics-empty {
    border: 1px dashed #c7dce8;
    border-radius: 11px;
  }
}

@media (max-width: 480px) {
  .logistics-section-heading > div > p {
    font-size: 14px;
  }

  .local-storage-note {
    align-items: flex-start;
    line-height: 1.5;
  }

  .logistics-form-panel,
  .logistics-list-panel {
    padding: 18px;
    border-radius: 15px;
  }

  .logistics-panel-heading h1,
  .logistics-panel-heading h3,
  .logistics-panel-heading h2 {
    font-size: 18px;
  }

  .logistics-form-actions {
    display: grid;
  }

  .logistics-attachment-field {
    padding: 16px;
  }

  .logistics-attachment-heading,
  .logistics-attachment-item {
    align-items: stretch;
    flex-direction: column;
  }

  .logistics-file-picker {
    width: 100%;
  }

  .logistics-attachment-actions {
    width: 100%;
  }

  .logistics-attachment-actions button {
    flex: 1 1 0;
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .finance-company-group {
    padding: 15px;
  }

  .finance-company-group-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .finance-company-group-actions {
    width: 100%;
  }

  .finance-company-group-actions button {
    flex: 1 1 0;
  }

  .logistics-table td {
    grid-template-columns: 68px minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .subpage-back-link {
    width: 42px;
    padding-inline: 0;
    justify-content: center;
  }

  .back-link-label {
    display: none;
  }
}

@media (max-width: 720px) {
  .login-main {
    background: linear-gradient(
      90deg,
      #092945 0%,
      #103954 13%,
      #1b4c68 26%,
      #30657f 40%,
      #4f8099 54%,
      #78a0b2 66%,
      #a5c0cc 77%,
      #cddde4 86%,
      #e9f0f3 93%,
      #f8fafb 97%,
      #ffffff 100%
    );
  }

  .login-layout {
    min-height: auto;
    gap: 42px;
    grid-template-columns: 1fr;
    padding-block: 50px;
  }

  .login-intro {
    max-width: 560px;
    padding-left: 18px;
  }

  .login-intro h1 {
    font-size: 48px;
  }

  .login-brand-logo {
    width: 106px;
    height: 74px;
  }

  .login-card {
    max-width: 560px;
    justify-self: center;
  }
}

@media (max-width: 480px) {
  .header-login-link {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 12px;
  }

  .login-layout {
    gap: 35px;
    padding-block: 40px;
  }

  .login-intro h1 {
    margin-top: 0;
    font-size: 40px;
  }

  .login-brand-title {
    gap: 8px;
  }

  .login-brand-logo {
    width: 82px;
    height: 60px;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 17px;
  }

  .login-card-heading h2 {
    font-size: 24px;
  }

}

@media (max-width: 720px) {
  .invoice-info-row {
    grid-template-columns: 82px minmax(0, 1fr) auto;
  }
}

@media (max-width: 480px) {
  .invoice-info-row {
    gap: 6px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
  }

  .invoice-info-row > span {
    grid-column: 1 / -1;
  }

  .invoice-info-row strong {
    font-size: 14px;
  }
}

@media (hover: none) {
  .overview-item:hover {
    padding-inline: 0;
    background: transparent;
  }

  .service-child-link:hover {
    background: #ffffff;
    border-color: #d6e6ef;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
