:root {
  --bg: #fff6ef;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --line: rgba(47, 62, 78, 0.12);
  --ink: #21313f;
  --muted: #596b7d;
  --brand: #1557a6;
  --accent: #ff8c42;
  --sun: #ffd84d;
  --sky: #67d2ff;
  --mint: #72e3b4;
  --pink: #ff7aa2;
  --berry: #ff5f6d;
  --violet: #7f7cff;
  --danger: #b73b3b;
  --ok: #2a7b49;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 22px 56px rgba(52, 70, 96, 0.14);
  --font-ui: "Aptos", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --motion-fast: 160ms;
  --motion-medium: 260ms;
  --motion-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shell-standard-max: 1680px;
  --shell-wide-max: 1680px;
  --shell-reading-max: 1680px;
  --shell-max: var(--shell-standard-max);
  --shell-gutter: clamp(18px, 2.6vw, 64px);
  --floating-control-right: max(18px, calc((100vw - var(--shell-max)) / 2 - 92px));
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 122, 162, 0.28), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(103, 210, 255, 0.26), transparent 24%),
    radial-gradient(circle at 82% 42%, rgba(114, 227, 180, 0.22), transparent 22%),
    radial-gradient(circle at 16% 78%, rgba(255, 216, 77, 0.24), transparent 24%),
    linear-gradient(135deg, #fff4ee 0%, #fff8cf 22%, #eefcff 52%, #f7efff 78%, #fff2f5 100%);
  background-attachment: fixed;
}

body.is-page-busy::before {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 10000;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--berry), var(--pink), var(--accent), transparent);
  background-size: 220% 100%;
  animation: page-busy-bar 0.9s linear infinite;
}

body.embedded-modal-page {
  background: transparent;
}

body.layout-wide {
  --shell-max: var(--shell-wide-max);
  --shell-gutter: clamp(18px, 2.6vw, 64px);
}

body.layout-reading {
  --shell-max: var(--shell-reading-max);
  --shell-gutter: clamp(18px, 2.6vw, 64px);
}

a {
  color: var(--brand);
  text-decoration: none;
}

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

.shell {
  width: min(var(--shell-max), calc(100% - var(--shell-gutter) * 2));
  margin: 24px auto 112px;
}

.embedded-modal-page .shell {
  width: 100%;
  margin: 0;
  padding: 0;
}

.embedded-modal-page .topbar {
  display: none;
}

.embedded-modal-page .hero-panel {
  margin-top: 0;
}

.topbar,
.panel,
.hero-panel {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.15);
}

.topbar {
  position: relative;
  z-index: 60;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 16px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 245, 232, 0.74)),
    linear-gradient(90deg, rgba(255, 122, 162, 0.12), rgba(103, 210, 255, 0.1), rgba(255, 216, 77, 0.1));
}

.topbar-brand {
  display: contents;
}

.topbar-title-row {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.topbar-brand h1 {
  min-width: 0;
}

.topbar-brand > .muted {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}

.topbar-actions,
.btn-row.topbar-actions {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
  white-space: nowrap;
}

.topbar-action-stack {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  align-self: flex-start;
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: max-content;
}

.topbar-action-stack .topbar-actions {
  grid-column: auto;
  grid-row: auto;
  margin-top: 0;
}

.topbar-primary-actions,
.topbar-admin-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.topbar-admin-actions > .btn,
.topbar-admin-actions > .btn-ghost,
.topbar-admin-actions > .btn-danger {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  flex: 0 0 auto;
}

.maintenance-entry-btn {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  flex: 0 0 auto;
}

.maintenance-entry-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--berry), var(--pink) 56%, var(--accent));
  box-shadow: 0 12px 24px rgba(255, 95, 109, 0.2);
}

.topbar-actions > .btn,
.topbar-actions > .btn-ghost,
.topbar-actions > .btn-danger,
.topbar-todo,
.topbar-birthday-star,
.topbar-exchange-rate {
  flex: 0 0 auto;
}

.topbar-actions > .btn,
.topbar-actions > .btn-ghost,
.topbar-actions > .btn-danger,
.topbar-todo-trigger,
.topbar-birthday-star,
.topbar-exchange-rate {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
}

.topbar-birthday-star {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(255, 122, 162, 0.22);
  border-radius: 999px;
  color: #fff;
  font-weight: 950;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 28%),
    linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  box-shadow: 0 14px 26px rgba(255, 95, 109, 0.2);
  white-space: nowrap;
  cursor: pointer;
}

.topbar-birthday-star span {
  font-size: 13px;
  letter-spacing: 0.02em;
}

.topbar-birthday-star strong {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  color: #b42335;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1;
}

.birthday-star-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--motion-fast) ease, display var(--motion-fast) allow-discrete;
}

.birthday-star-modal.is-open {
  display: flex;
  opacity: 1;
  animation: modal-backdrop-in var(--motion-medium) ease both;
}

.birthday-star-dialog {
  width: min(760px, 100%);
  max-height: 88vh;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(255, 216, 77, 0.22), transparent 30%),
    radial-gradient(circle at 92% 12%, rgba(255, 122, 162, 0.2), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 250, 0.96));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  animation: dialog-rise-in var(--motion-medium) var(--motion-ease) both;
}

.birthday-star-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.birthday-star-dot,
.birthday-star-shape {
  position: absolute;
  display: block;
}

.birthday-star-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--sun);
  box-shadow: 0 0 0 7px rgba(255, 216, 77, 0.16);
  animation: birthday-float 4.8s ease-in-out infinite;
}

.birthday-star-dot-a {
  left: 8%;
  top: 22%;
}

.birthday-star-dot-b {
  right: 18%;
  top: 62%;
  width: 8px;
  height: 8px;
  background: var(--sky);
  box-shadow: 0 0 0 7px rgba(103, 210, 255, 0.14);
  animation-delay: -1.4s;
}

.birthday-star-dot-c {
  left: 72%;
  bottom: 12%;
  width: 7px;
  height: 7px;
  background: var(--pink);
  box-shadow: 0 0 0 6px rgba(255, 122, 162, 0.14);
  animation-delay: -2.2s;
}

.birthday-star-shape {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, var(--sun), var(--accent));
  clip-path: polygon(50% 0%, 61% 36%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 36%);
  filter: drop-shadow(0 8px 12px rgba(255, 140, 66, 0.18));
  animation: birthday-twinkle 3.6s ease-in-out infinite;
}

.birthday-star-shape-a {
  left: 28px;
  top: 28px;
}

.birthday-star-shape-b {
  right: 118px;
  top: 24px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  animation-delay: -1s;
}

.birthday-star-shape-c {
  right: 34px;
  bottom: 34px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, var(--pink), var(--berry));
  animation-delay: -2s;
}

.birthday-star-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px 30px 24px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.08);
}

.birthday-star-head > div:first-child {
  min-width: 0;
}

.birthday-star-eyebrow {
  margin: 0 0 6px;
  color: var(--berry);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.birthday-star-head h2 {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 32px;
  line-height: 1.12;
}

.birthday-star-head .muted {
  font-size: 16px;
  line-height: 1.7;
}

.birthday-star-close {
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.birthday-star-body {
  position: relative;
  z-index: 1;
  max-height: calc(88vh - 138px);
  overflow: auto;
  padding: 22px 30px 30px;
}

.birthday-cake-scene {
  flex: 0 0 150px;
  height: 122px;
  position: relative;
  margin: -2px 4px -8px auto;
  align-self: center;
}

.birthday-cake {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 70px;
  animation: birthday-cake-bob 4.2s ease-in-out infinite;
}

.birthday-cake-layer {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 18px 18px 14px 14px;
  border: 1px solid rgba(180, 35, 53, 0.12);
}

.birthday-cake-layer-top {
  top: 10px;
  height: 28px;
  background:
    radial-gradient(circle at 22% 42%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 42%, rgba(255, 255, 255, 0.7) 0 4px, transparent 5px),
    linear-gradient(135deg, #ff8fab, #ff5f6d);
  box-shadow: inset 0 -6px 0 rgba(180, 35, 53, 0.1);
}

.birthday-cake-layer-bottom {
  top: 34px;
  height: 30px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 8px, transparent 8px 18px),
    linear-gradient(135deg, #ffd84d, #ffb347);
  box-shadow: inset 0 -7px 0 rgba(255, 140, 66, 0.16);
}

.birthday-cake-icing {
  position: absolute;
  left: 17px;
  right: 17px;
  top: 3px;
  height: 20px;
  z-index: 2;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #fff0f5);
  box-shadow: 0 5px 0 rgba(255, 255, 255, 0.76);
}

.birthday-cake-plate {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 210, 255, 0.86), rgba(114, 227, 180, 0.7));
  box-shadow: 0 10px 18px rgba(18, 58, 92, 0.1);
}

.birthday-candle {
  position: absolute;
  bottom: 78px;
  width: 12px;
  height: 38px;
  border-radius: 999px 999px 4px 4px;
  background:
    repeating-linear-gradient(45deg, #fff 0 5px, #67d2ff 5px 9px);
  box-shadow: inset 0 -3px 0 rgba(18, 58, 92, 0.08);
  animation: birthday-cake-bob 4.2s ease-in-out infinite;
}

.birthday-candle-a {
  left: 45px;
}

.birthday-candle-b {
  right: 45px;
  background:
    repeating-linear-gradient(45deg, #fff 0 5px, #ff7aa2 5px 9px);
  animation-delay: -0.2s;
}

.birthday-candle span {
  position: absolute;
  left: 50%;
  top: -17px;
  width: 15px;
  height: 19px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #fff6a8, #ff8c42 70%);
  box-shadow: 0 0 16px rgba(255, 216, 77, 0.75);
  transform: translateX(-50%) rotate(-42deg);
  animation: birthday-flame 1.2s ease-in-out infinite;
}

.birthday-star-list {
  display: grid;
  gap: 14px;
}

.birthday-star-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(241, 252, 255, 0.86)),
    linear-gradient(120deg, rgba(255, 216, 77, 0.12), rgba(255, 122, 162, 0.1));
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.birthday-star-card::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, var(--sun), var(--accent));
  clip-path: polygon(50% 0%, 61% 36%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 36%);
  opacity: 0.7;
}

.birthday-star-date {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  box-shadow: 0 12px 22px rgba(255, 95, 109, 0.16);
}

.birthday-star-card strong {
  color: var(--brand);
  font-size: 20px;
}

.birthday-star-card p,
.birthday-star-empty p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.birthday-star-empty {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 216, 77, 0.2), transparent 26%),
    radial-gradient(circle at 88% 22%, rgba(255, 122, 162, 0.18), transparent 28%),
    rgba(248, 251, 255, 0.88);
  border: 1px dashed rgba(18, 58, 92, 0.14);
}

.birthday-empty-cake {
  width: 78px;
  height: 54px;
  position: relative;
  margin: 0 auto 12px;
  border-radius: 18px 18px 14px 14px;
  background:
    radial-gradient(circle at 28% 38%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    radial-gradient(circle at 62% 38%, rgba(255, 255, 255, 0.72) 0 4px, transparent 5px),
    linear-gradient(135deg, #ff8fab, #ffd84d);
  box-shadow: 0 12px 22px rgba(255, 140, 66, 0.14);
}

.birthday-empty-cake::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 8px;
  height: 24px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(45deg, #fff 0 4px, #67d2ff 4px 8px);
  transform: translateX(-50%);
}

.birthday-empty-cake span {
  position: absolute;
  left: 50%;
  top: -34px;
  width: 13px;
  height: 17px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, #fff6a8, #ff8c42 70%);
  box-shadow: 0 0 14px rgba(255, 216, 77, 0.65);
  transform: translateX(-50%) rotate(-42deg);
}

.birthday-star-empty strong {
  color: var(--brand);
  font-size: 20px;
}

@keyframes birthday-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -10px, 0);
  }
}

@keyframes birthday-twinkle {
  0%,
  100% {
    opacity: 0.58;
    transform: rotate(0deg) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: rotate(12deg) scale(1.08);
  }
}

@keyframes birthday-cake-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes birthday-flame {
  0%,
  100% {
    transform: translateX(-50%) rotate(-42deg) scale(0.92);
  }

  50% {
    transform: translateX(-50%) rotate(-38deg) scale(1.08);
  }
}

@media (max-width: 640px) {
  .birthday-star-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .birthday-cake-scene {
    grid-column: 1 / -1;
    justify-self: center;
    order: 3;
    transform: scale(0.9);
    transform-origin: center top;
    margin: 2px auto -12px;
  }

  .birthday-star-close {
    grid-column: 2;
    grid-row: 1;
  }
}

.topbar-exchange-rate {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  color: #123a5c;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(241, 252, 255, 0.86)),
    linear-gradient(120deg, rgba(33, 185, 139, 0.18), rgba(103, 210, 255, 0.12));
  border: 1px solid rgba(18, 58, 92, 0.1);
  box-shadow: 0 10px 18px rgba(33, 185, 139, 0.12);
  white-space: nowrap;
  cursor: pointer;
}

.topbar-exchange-rate span {
  color: #476478;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.topbar-exchange-rate strong {
  color: #0f7d5c;
  font-size: 17px;
  line-height: 1;
}

.topbar-exchange-rate small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.exchange-rate-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--motion-fast) ease, display var(--motion-fast) allow-discrete;
}

.exchange-rate-modal.is-open {
  display: flex;
  opacity: 1;
  animation: modal-backdrop-in var(--motion-medium) ease both;
}

.exchange-rate-dialog {
  width: min(920px, 100%);
  max-height: 88vh;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 255, 0.96)),
    linear-gradient(120deg, rgba(33, 185, 139, 0.1), rgba(103, 210, 255, 0.1), rgba(255, 216, 77, 0.1));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  animation: dialog-rise-in var(--motion-medium) var(--motion-ease) both;
}

.exchange-rate-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.08);
}

.exchange-rate-dialog-head h2 {
  margin: 4px 0 8px;
  color: var(--brand);
  font-size: 23px;
}

.exchange-rate-head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.exchange-rate-range-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 900;
}

.exchange-rate-range-button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #1457a7, #35a3ff);
  border-color: transparent;
  box-shadow: 0 12px 22px rgba(53, 163, 255, 0.18);
}

.exchange-rate-close {
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(255, 95, 109, 0.22);
}

.exchange-rate-dialog-body {
  max-height: calc(88vh - 104px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px 22px 22px;
}

.exchange-rate-view {
  display: none;
}

.exchange-rate-view.is-active {
  display: grid;
  gap: 16px;
}

.exchange-rate-chart-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(18, 58, 92, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(247, 254, 255, 0.82)),
    linear-gradient(120deg, rgba(33, 185, 139, 0.08), rgba(255, 216, 77, 0.08));
}

.exchange-rate-chart-meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 900 !important;
}

.exchange-rate-chart-meta strong {
  color: #0f7d5c;
  font-size: 24px;
}

.exchange-rate-chart-meta span:last-child {
  text-align: right;
}

.exchange-rate-chart {
  width: 100%;
  height: auto;
  overflow: visible;
}

.exchange-rate-axis {
  stroke: rgba(18, 58, 92, 0.18);
  stroke-width: 1;
}

.exchange-rate-axis-label {
  fill: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.exchange-rate-x-axis-label {
  fill: #475569;
  font-size: 10px;
  letter-spacing: -0.02em;
}

.exchange-rate-line {
  fill: none;
  stroke: url(#exchangeRateStrokeMonth);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 10px rgba(33, 185, 139, 0.16));
}

.exchange-rate-line-year {
  stroke: url(#exchangeRateStrokeYear);
  stroke-width: 3.5;
}

.exchange-rate-dot {
  fill: #fff;
  stroke: #21b98b;
  stroke-width: 3;
}

.exchange-rate-year-dot {
  stroke: #35a3ff;
  stroke-width: 2;
}

.exchange-rate-year-chart-card {
  min-height: 330px;
}

.exchange-rate-year-chart {
  margin-top: 12px;
}

.exchange-rate-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.exchange-rate-table-shell table {
  min-width: 620px;
}

.topbar-todo {
  position: relative;
  z-index: 90;
}

.topbar-todo-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px 0 16px;
  border-radius: 999px;
  cursor: pointer;
  user-select: none;
  color: #123a5c;
  font-weight: 900;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 231, 0.88)),
    linear-gradient(120deg, rgba(255, 216, 77, 0.22), rgba(103, 210, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 22px rgba(73, 89, 112, 0.1);
}

.topbar-todo-trigger::-webkit-details-marker {
  display: none;
}

.topbar-todo-trigger strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  box-shadow: 0 10px 18px rgba(255, 95, 109, 0.2);
}

.topbar-todo-panel {
  position: absolute;
  z-index: 100;
  right: 0;
  top: calc(100% + 10px);
  width: min(430px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  display: grid;
  gap: 14px;
  padding: 20px;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.96)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.08), rgba(103, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.18);
}

.topbar-todo:not([open]) .topbar-todo-panel {
  display: none;
}

.topbar-todo-head,
.topbar-todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-todo-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.topbar-todo-head strong {
  color: #123a5c;
  font-size: 22px;
}

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

.topbar-todo-item {
  min-height: 54px;
  padding: 12px 14px 12px 16px;
  border-radius: 18px;
  color: #123a5c;
  background: rgba(248, 251, 255, 0.88);
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.topbar-todo-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #314455;
  font-size: 15px;
  font-weight: 800;
}

.topbar-todo-item strong {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
}

.topbar-todo-empty {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.88);
  color: #667789;
  font-size: 15px;
  text-align: center;
}

.topbar-todo-note {
  margin: 0;
  color: #667789;
  font-size: 14px;
  line-height: 1.65;
}

.topbar h1 {
  font-size: clamp(28px, 4vw, 36px);
  letter-spacing: 0.02em;
}

.workbench-welcome-title {
  width: fit-content;
  font-size: clamp(20px, 2.59vw, 26px);
  line-height: 1.18;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #ff5f6d 0%, #ff8c42 18%, #ffd84d 36%, #21b98b 55%, #1557a6 74%, #7f7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 18px rgba(255, 95, 109, 0.12));
}

.topbar h1,
.hero-panel h1,
.panel h2,
.panel h3 {
  margin: 0;
}

.muted {
  color: var(--muted);
}

.anniversary-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 25% 20%, rgba(255, 216, 77, 0.42), transparent 28%),
    radial-gradient(circle at 75% 18%, rgba(103, 210, 255, 0.36), transparent 28%),
    rgba(20, 31, 45, 0.48);
  backdrop-filter: blur(10px);
}

.anniversary-card {
  position: relative;
  width: min(620px, 100%);
  overflow: hidden;
  padding: 48px 42px;
  border-radius: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 216, 77, 0.46), transparent 22%),
    radial-gradient(circle at 88% 16%, rgba(255, 122, 162, 0.32), transparent 24%),
    linear-gradient(135deg, rgba(255, 253, 245, 0.98), rgba(239, 252, 255, 0.96) 52%, rgba(255, 244, 248, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 36px 90px rgba(15, 23, 42, 0.24);
}

.anniversary-card h2 {
  margin: 0 0 18px;
  color: #123a5c;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: 0.04em;
}

.anniversary-card p {
  position: relative;
  margin: 0 auto 28px;
  max-width: 440px;
  color: #43576a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.55;
}

.anniversary-eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px !important;
  padding: 8px 16px;
  border-radius: 999px;
  color: #9a4c16 !important;
  background: rgba(255, 216, 77, 0.34);
  font-size: 12px !important;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.anniversary-spark {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  filter: blur(2px);
  opacity: 0.6;
}

.anniversary-spark-a {
  left: -60px;
  bottom: -50px;
  background: rgba(114, 227, 180, 0.38);
}

.anniversary-spark-b {
  right: -54px;
  top: -58px;
  background: rgba(127, 124, 255, 0.24);
}

.topbar-modules {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.module-pill,
.hero-mini-pill,
.auth-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-pill,
.hero-mini-pill {
  position: relative;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: var(--brand);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), border-color var(--motion-fast) var(--motion-ease), background var(--motion-fast) ease;
  will-change: transform;
}

.module-pill:hover,
.module-pill:focus-visible,
.hero-mini-pill:hover,
.hero-mini-pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(70, 92, 120, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.96);
  outline: none;
}

.module-pill:active,
.hero-mini-pill:active {
  transform: translateY(0) scale(0.985);
}

.module-pill {
  flex: 0 0 calc((100% - 70px) / 8);
  min-height: 58px;
  padding: 0 20px;
  font-size: 21px;
  letter-spacing: 0.04em;
}

.module-pill-notice {
  position: absolute;
  top: -7px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: linear-gradient(135deg, #ff2f4f, #d91531);
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1 !important;
  letter-spacing: 0;
  text-align: center;
  box-shadow: 0 8px 18px rgba(217, 21, 49, 0.32);
  animation: notice-pop 0.72s var(--motion-ease) both;
}

.module-pill-notice,
.rfq-status-pill .module-pill-notice,
.status-filter-card .module-pill-notice,
.data-summary-notice-button .module-pill-notice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  text-transform: none;
}

.module-pill-oa {
  min-width: 0;
  word-spacing: 0.18em;
}

.module-pill-active {
  background: linear-gradient(135deg, rgba(255, 122, 162, 0.16), rgba(103, 210, 255, 0.16), rgba(255, 216, 77, 0.18));
  color: #104b87;
}

.module-pill-disabled {
  color: #9aa6b2;
  background: rgba(226, 232, 240, 0.64);
  border-color: rgba(148, 163, 184, 0.26);
  box-shadow: none;
  cursor: not-allowed;
  user-select: none;
}

.mobile-bottom-nav,
.mobile-nav-drawer {
  display: none;
}

.mobile-nav-drawer-panel {
  width: min(520px, 100%);
}

.mobile-nav-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.mobile-nav-drawer-head h2 {
  margin: 4px 0 0;
  color: var(--brand);
  font-size: 22px;
}

.mobile-nav-eyebrow {
  margin: 0;
  color: var(--berry);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.mobile-nav-drawer-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--brand);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.mobile-nav-drawer-link.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--berry), var(--pink) 54%, var(--accent));
  box-shadow: 0 14px 28px rgba(255, 95, 109, 0.22);
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 251, 244, 0.72)),
    linear-gradient(120deg, rgba(255, 140, 66, 0.09), rgba(114, 227, 180, 0.08), rgba(127, 124, 255, 0.08));
}

.sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.9fr);
  gap: 20px;
  align-items: stretch;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 216, 77, 0.34), transparent 23%),
    radial-gradient(circle at 10% 24%, rgba(255, 122, 162, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(241, 252, 255, 0.92) 48%, rgba(250, 242, 255, 0.94) 100%);
}

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

.sales-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sales-hero-eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.sales-hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
}

.sales-hero-actions {
  margin-top: 8px;
}

.sales-hero-actions .btn,
.sales-hero-actions .btn-ghost {
  height: 52px;
  min-width: 148px;
  min-height: 52px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  white-space: nowrap;
}

.hero-hover-pill {
  min-width: 148px;
  min-height: 48px;
}

.sales-hero-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 250, 0.9)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.08), rgba(103, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.workbench-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 20px;
  align-items: stretch;
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 216, 77, 0.34), transparent 23%),
    radial-gradient(circle at 10% 24%, rgba(255, 122, 162, 0.18), transparent 18%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(241, 252, 255, 0.92) 48%, rgba(250, 242, 255, 0.94) 100%);
}

.workbench-hero-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.workbench-hero-summary-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 250, 0.9)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.08), rgba(103, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.workbench-hero-summary-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.workbench-hero-summary-title h2 {
  margin: 0;
  color: #123a5c;
  font-size: 22px;
}

.workbench-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 95, 109, 0.12);
  color: #b91c1c;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.workbench-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.workbench-hero-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--workbench-hero-stat-columns, 3), minmax(0, 1fr));
}

.workbench-hero-stat {
  display: grid;
  gap: 6px;
  min-height: 98px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.workbench-hero-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-hero-stat strong {
  color: #123a5c;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
}

.workbench-hero-note {
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(18, 58, 92, 0.08);
  color: #5f7184;
  line-height: 1.7;
  font-weight: 700;
}

.hero-panel,
.panel,
.auth-card {
  position: relative;
  overflow: hidden;
}

.workbench-read-all-button {
  position: absolute;
  right: 22px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(25, 91, 165, 0.16);
  border-radius: 999px;
  color: #0f5ea8;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(239, 248, 255, 0.9)),
    linear-gradient(120deg, rgba(103, 210, 255, 0.12), rgba(255, 216, 77, 0.1));
  box-shadow: 0 12px 26px rgba(25, 91, 165, 0.1);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) ease, opacity var(--motion-fast) ease;
}

.workbench-read-all-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(25, 91, 165, 0.14);
}

.workbench-read-all-button:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.workbench-read-all-host {
  position: relative;
  padding-bottom: 48px;
}

.workbench-read-all-host > .workbench-read-all-button {
  right: 22px;
  bottom: 18px;
}

.hero-panel > .workbench-read-all-button {
  right: 22px;
  bottom: 18px;
}

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

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

.hero-panel::after,
.panel::after,
.auth-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.28), transparent 68%);
  pointer-events: none;
}

.sales-hero-card-top span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sales-hero-card-top strong {
  font-size: 22px;
  color: var(--brand);
  word-break: break-word;
}

.sales-hero-steps {
  display: grid;
  gap: 12px;
}

.sales-step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(246, 252, 255, 0.84));
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.sales-step b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--berry), var(--violet));
  color: #fff;
  box-shadow: 0 10px 20px rgba(127, 124, 255, 0.24);
}

.sales-step span {
  color: #314455;
  line-height: 1.5;
}

.workbench-todo-card {
  align-content: start;
}

.workbench-todo-card-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.workbench-todo-card-top strong {
  font-size: 24px;
}

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

.workbench-todo-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 18px;
  color: #123a5c;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(246, 252, 255, 0.84)),
    linear-gradient(120deg, rgba(255, 216, 77, 0.16), rgba(103, 210, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.82);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.workbench-todo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(73, 89, 112, 0.12);
}

.workbench-todo-item span {
  color: #314455;
  font-weight: 700;
}

.workbench-todo-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  box-shadow: 0 12px 22px rgba(255, 95, 109, 0.22);
}

.workbench-todo-focus {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 247, 214, 0.9), rgba(255, 251, 232, 0.96));
  border: 1px solid rgba(255, 216, 77, 0.38);
}

.workbench-todo-focus span {
  color: #7c6b28;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workbench-todo-focus strong {
  color: #123a5c;
  font-size: 22px;
}

.workbench-todo-note {
  margin: 0;
  color: #667789;
  line-height: 1.55;
}

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

.compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.page-hero-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.page-hero-copy h1,
.workbench-hero-copy h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.page-hero-copy p {
  margin: 0;
  line-height: 1.7;
}

.hero-side-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 250, 0.9)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.08), rgba(103, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.hero-side-card-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-side-card-item span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-side-card-item strong {
  color: var(--brand);
  line-height: 1.5;
}

.hero-side-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-hero {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 216, 77, 0.3), transparent 22%),
    radial-gradient(circle at 16% 24%, rgba(127, 124, 255, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(255, 250, 241, 0.96), rgba(241, 252, 255, 0.92) 46%, rgba(250, 242, 255, 0.94));
}

.form-hero {
  background:
    radial-gradient(circle at 92% 16%, rgba(255, 140, 66, 0.22), transparent 22%),
    radial-gradient(circle at 12% 72%, rgba(114, 227, 180, 0.18), transparent 20%),
    linear-gradient(135deg, rgba(255, 251, 244, 0.96), rgba(242, 250, 255, 0.92) 50%, rgba(248, 241, 255, 0.94));
}

.panel {
  border-radius: var(--radius-lg);
  padding: 22px;
}

.panel-spaced {
  margin-top: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-header p {
  margin: 6px 0 0;
}

.flash-stack {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: transparent;
  backdrop-filter: none;
  animation: flash-stack-fade 0.18s ease-out;
}

.auth-shell-login .flash-stack {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.58), rgba(248, 250, 255, 0.92));
  backdrop-filter: blur(14px) saturate(1.04);
}

.flash-dialog {
  width: min(520px, 100%);
  overflow: hidden;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 216, 77, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(250, 252, 255, 0.96));
  box-shadow: 0 24px 60px rgba(25, 49, 73, 0.14);
  animation: flash-dialog-rise 0.22s ease-out;
}

.flash-dialog-head {
  padding: 22px 24px 8px;
}

.flash-dialog-head span {
  display: block;
  margin-bottom: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flash-dialog-head h2 {
  margin: 0;
  color: #123a5c;
  font-size: 24px;
}

.flash-dialog-list {
  display: grid;
  gap: 10px;
  padding: 10px 24px 18px;
}

.flash {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 850;
  line-height: 1.65;
}

.flash-success {
  background: linear-gradient(135deg, rgba(114, 227, 180, 0.2), rgba(103, 210, 255, 0.13));
  border-color: rgba(114, 227, 180, 0.28);
  color: #245f39;
}

.flash-error {
  background: linear-gradient(135deg, rgba(255, 122, 162, 0.2), rgba(255, 140, 66, 0.13));
  border-color: rgba(255, 95, 109, 0.28);
  color: #7b2222;
}

.flash-dialog-actions {
  display: flex;
  justify-content: center;
  padding: 0 24px 24px;
}

.flash-dialog-actions .btn {
  min-width: 132px;
}

@keyframes flash-stack-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes flash-dialog-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.centered-action {
  justify-content: center;
}

.btn,
.btn-ghost,
.btn-danger,
.btn-safe,
.btn-link,
.btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 18px;
  border: 0;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) ease, filter var(--motion-fast) ease;
  will-change: transform;
}

.btn:hover,
.btn-ghost:hover,
.btn-danger:hover,
.btn-safe:hover,
.btn-link:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn-ghost:active,
.btn-danger:active,
.btn-safe:active,
.btn-link:active {
  transform: translateY(0) scale(0.985);
  filter: saturate(0.98);
}

.btn.is-loading,
.btn-ghost.is-loading,
.btn-danger.is-loading,
.btn-safe.is-loading,
.btn-link.is-loading {
  pointer-events: none;
  opacity: 0.82;
}

.btn.is-loading::before,
.btn-ghost.is-loading::before,
.btn-danger.is-loading::before,
.btn-safe.is-loading::before,
.btn-link.is-loading::before {
  content: "";
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.55em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: spin-soft 0.72s linear infinite;
}

.btn {
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  color: #fff;
  box-shadow: 0 14px 26px rgba(255, 95, 109, 0.22);
}

.btn-safe {
  background: linear-gradient(135deg, #22c55e, #2ecc71 54%, #72e3b4);
  color: #fff;
  box-shadow: 0 14px 26px rgba(34, 197, 94, 0.2);
}

.btn-ghost,
.btn-link {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(251, 255, 255, 0.82));
  color: var(--brand);
  border: 1px solid rgba(103, 210, 255, 0.2);
}

.btn-disabled,
.btn:disabled,
.btn-ghost:disabled,
.btn-danger:disabled,
.btn-safe:disabled {
  color: #8a96a3;
  background: rgba(226, 232, 240, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.28);
  cursor: not-allowed;
  box-shadow: none;
}

.btn.hero-hover-pill,
.btn-ghost.hero-hover-pill {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(251, 255, 255, 0.92));
  color: var(--brand);
  border: 1px solid rgba(103, 210, 255, 0.2);
  box-shadow: 0 10px 22px rgba(82, 99, 126, 0.08);
}

.data-summary-notice-button,
.status-filter-card,
.rfq-status-pill {
  position: relative;
}

.btn.hero-hover-pill:hover,
.btn.hero-hover-pill:focus-visible,
.btn-ghost.hero-hover-pill:hover,
.btn-ghost.hero-hover-pill:focus-visible {
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(255, 95, 109, 0.22);
}

.btn.hero-hover-pill.secondary-nav-pill-active,
.btn-ghost.hero-hover-pill.secondary-nav-pill-active {
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(255, 95, 109, 0.22);
}

.btn-danger {
  background: linear-gradient(135deg, rgba(255, 240, 243, 0.95), rgba(255, 246, 235, 0.92));
  color: var(--danger);
  border: 1px solid rgba(255, 95, 109, 0.18);
}

.btn,
.btn-ghost,
.btn-danger {
  font-weight: 700;
}

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

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

.card-grid-soft .stat-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 250, 0.84)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.07), rgba(103, 210, 255, 0.07));
  box-shadow: 0 14px 28px rgba(70, 92, 120, 0.08);
}

.sales-stats-grid {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.sales-stat-card {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 251, 244, 0.84)),
    linear-gradient(120deg, rgba(255, 216, 77, 0.08), rgba(103, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 30px rgba(65, 88, 118, 0.08);
  transition: transform var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease), border-color var(--motion-medium) ease;
}

.sales-stat-card:hover,
.sales-stat-card:focus-within,
.card-grid-soft .stat-card:hover,
.stat-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(65, 88, 118, 0.12);
}

.sales-stat-card-primary {
  background: linear-gradient(135deg, #ff7aa2 0%, #ffb347 38%, #67d2ff 72%, #7f7cff 100%);
  color: #fff;
}

.sales-stat-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.sales-stat-card-primary span,
.sales-stat-card-primary p,
.sales-stat-card-primary strong {
  color: #fff;
}

.sales-stat-card strong {
  display: block;
  font-size: 30px;
  color: var(--brand);
  margin-bottom: 10px;
}

.sales-stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stat-card,
.info-card {
  padding: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(250, 255, 255, 0.82));
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  transition: transform var(--motion-medium) var(--motion-ease), box-shadow var(--motion-medium) var(--motion-ease), border-color var(--motion-medium) ease;
}

.status-filter-card {
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
  box-shadow: 0 12px 24px rgba(70, 92, 120, 0.08);
}

.status-filter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(70, 92, 120, 0.12);
}

.status-filter-card-active {
  transform: translateY(-2px);
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.34), transparent 28%),
    linear-gradient(135deg, #ff5f6d 0%, #ff7aa2 48%, #ff9f43 100%);
  border-color: rgba(255, 95, 109, 0.7);
  box-shadow: 0 20px 36px rgba(255, 95, 109, 0.26);
}

.status-filter-card-active::after {
  content: "当前筛选";
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: #d91531;
  background: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.status-filter-card-active span,
.status-filter-card-active strong {
  color: #fff;
}

.status-filter-card-active strong {
  text-shadow: 0 2px 10px rgba(110, 20, 28, 0.22);
}

.stat-card span,
.info-card span {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.stat-card strong {
  font-size: 28px;
  color: var(--brand);
}

.table-shell {
  overflow: auto;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(251, 255, 255, 0.9)),
    linear-gradient(90deg, rgba(255, 216, 77, 0.05), rgba(103, 210, 255, 0.05));
}

.sales-panel {
  overflow: hidden;
}

.sales-record-summary {
  align-self: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 250, 0.84));
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

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

.market-price-table {
  min-width: 0;
  table-layout: fixed;
}

.market-price-table th,
.market-price-table td {
  padding: 8px 10px;
  vertical-align: middle;
}

.market-price-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

.market-price-table th:nth-child(1),
.market-price-table td:nth-child(1) {
  width: 92px;
}

.market-price-table th:nth-child(2),
.market-price-table td:nth-child(2) {
  width: 240px;
  white-space: normal;
  word-break: break-word;
}

.market-price-table th:nth-child(3),
.market-price-table td:nth-child(3) {
  width: 180px;
  white-space: normal;
  word-break: break-word;
}

.market-price-table th:nth-child(4),
.market-price-table th:nth-child(5),
.market-price-table th:nth-child(6),
.market-price-table td:nth-child(4),
.market-price-table td:nth-child(5),
.market-price-table td:nth-child(6) {
  width: 110px;
  text-align: center;
}

.market-price-readonly {
  display: inline-flex;
  min-height: 32px;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: 12px;
  background: rgba(245, 248, 255, 0.95);
  color: var(--ink);
  font-weight: 700;
}

.market-price-readonly-note {
  justify-content: center;
  color: var(--muted);
  font-weight: 600;
}

.market-trend-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  align-items: center;
}

.market-trend-field,
.market-trend-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.88)),
    linear-gradient(120deg, rgba(255, 95, 109, 0.08), rgba(103, 210, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 26px rgba(70, 92, 120, 0.12);
}

.market-trend-field span,
.market-trend-chip span {
  color: #314455;
  font-size: 15px;
  font-weight: 900;
}

.market-trend-field select {
  min-height: 34px;
  padding: 0 28px 0 12px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
}

.market-trend-select {
  font-weight: 900;
}

.market-trend-chip strong {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 20px;
  font-weight: 900;
}

.market-update-summary {
  display: inline-flex;
  min-width: 190px;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  text-align: center;
  color: #123a5c;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background:
    radial-gradient(circle at 88% 10%, rgba(255, 216, 77, 0.32), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 255, 0.92));
  border: 1px solid rgba(103, 210, 255, 0.28);
  box-shadow: 0 16px 30px rgba(18, 58, 92, 0.13);
}

.market-trend-up {
  color: #d91531;
  background-color: rgba(217, 21, 49, 0.1);
}

.market-trend-down {
  color: #16a56a;
  background-color: rgba(22, 165, 106, 0.1);
}

.market-trend-stable {
  color: #1677d2;
  background-color: rgba(22, 119, 210, 0.1);
}

.market-price-input-wrap {
  display: inline-flex;
  min-height: 32px;
  width: 100%;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgba(209, 217, 230, 0.95);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  font-weight: 800;
}

.market-price-input {
  min-height: 32px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 700;
  appearance: textfield;
  -moz-appearance: textfield;
}

.market-price-input:focus {
  outline: none;
}

.market-price-input::-webkit-outer-spin-button,
.market-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.market-price-submit-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 247, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.82);
}

th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.08);
  text-align: left;
  vertical-align: top;
}

th {
  background: linear-gradient(90deg, rgba(255, 216, 77, 0.16), rgba(103, 210, 255, 0.14), rgba(127, 124, 255, 0.12));
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) td {
  background: rgba(252, 248, 255, 0.62);
}

.sales-customer-cell {
  display: grid;
  gap: 6px;
}

.sales-customer-cell strong {
  color: var(--brand);
}

.sales-customer-cell span {
  color: var(--muted);
  font-size: 13px;
}

.sales-row-actions {
  gap: 8px;
}

.admin-processing-table td {
  vertical-align: middle;
}

.admin-processing-table .sales-row-actions {
  align-items: center;
}

.admin-reject-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--motion-fast) ease, display var(--motion-fast) allow-discrete;
}

.admin-reject-modal.is-open {
  display: flex;
  opacity: 1;
  animation: modal-backdrop-in var(--motion-medium) ease both;
}

.admin-reject-dialog {
  width: min(560px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 238, 0.96)),
    linear-gradient(120deg, rgba(255, 95, 109, 0.1), rgba(103, 210, 255, 0.08));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  animation: dialog-rise-in var(--motion-medium) var(--motion-ease) both;
}

.maintenance-manage-modal {
  position: fixed;
  inset: 0;
  z-index: 3600;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
  opacity: 0;
}

.maintenance-manage-modal.is-open {
  display: flex;
  opacity: 1;
  animation: modal-backdrop-in var(--motion-medium) ease both;
}

.maintenance-manage-dialog {
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  padding: 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(circle at 96% 4%, rgba(114, 227, 180, 0.18), transparent 28%),
    radial-gradient(circle at 4% 96%, rgba(255, 95, 109, 0.14), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 238, 0.96));
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
  animation: dialog-rise-in var(--motion-medium) var(--motion-ease) both;
}

.maintenance-manage-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.maintenance-manage-head h2,
.maintenance-manage-card h3 {
  margin: 0;
  color: #123a5c;
}

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

.maintenance-manage-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.maintenance-manage-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.maintenance-manage-card form {
  display: grid;
  gap: 14px;
}

.maintenance-manage-action {
  min-height: 46px;
  width: 100%;
  font-weight: 950;
}

.maintenance-state-danger {
  color: var(--danger);
}

.maintenance-state-normal {
  color: #15803d;
}

.maintenance-mini-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  word-break: break-all;
}

@media (max-width: 860px) {
  .maintenance-manage-grid {
    grid-template-columns: 1fr;
  }

  .maintenance-manage-head {
    display: grid;
  }
}

.admin-reject-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.08);
}

.admin-reject-dialog-header h2 {
  margin: 4px 0 0;
  color: var(--brand);
  font-size: 22px;
}

.admin-reject-close {
  flex: 0 0 auto;
  padding: 9px 14px;
}

.admin-reject-dialog-body {
  padding: 18px 22px 22px;
}

.admin-reject-dialog-body textarea {
  min-height: 128px;
  resize: vertical;
}

.pi-preview-modal,
.ci-pl-preview-modal,
.stamp-review-preview-modal,
.admin-processing-preview-modal {
  opacity: 0;
  transition: opacity var(--motion-fast) ease, display var(--motion-fast) allow-discrete;
}

.pi-preview-modal.is-open,
.ci-pl-preview-modal.is-open,
.stamp-review-preview-modal.is-open,
.admin-processing-preview-modal.is-open {
  opacity: 1;
  animation: modal-backdrop-in var(--motion-medium) ease both;
}

.pi-preview-dialog,
.ci-pl-preview-dialog,
.stamp-review-preview-dialog,
.admin-processing-preview-dialog {
  animation: dialog-rise-in var(--motion-medium) var(--motion-ease) both;
}

.rfq-file-preview-dialog {
  width: min(1180px, 96vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
}

.rfq-file-preview-dialog.is-office-preview {
  width: min(1560px, 98vw);
  max-height: 94vh;
}

.rfq-file-preview-body {
  overflow: auto;
}

.rfq-file-preview-dialog.is-office-preview .rfq-file-preview-body {
  padding: 10px;
}

.rfq-file-preview-frame {
  width: 100%;
  min-height: 72vh;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

.rfq-file-preview-shell-with-actions {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.rfq-file-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(21, 87, 166, 0.1);
}

.rfq-file-preview-toolbar strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rfq-file-preview-frame-office {
  min-height: calc(94vh - 102px);
  border-radius: 14px;
}

.rfq-file-preview-shell-with-actions .rfq-file-preview-frame-office {
  min-height: calc(94vh - 158px);
}

.rfq-file-preview-rendered-pages {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 100%;
  min-height: calc(94vh - 102px);
  gap: 12px;
}

.rfq-file-preview-pages {
  display: grid;
  justify-items: center;
  gap: 18px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(248, 251, 255, 0.96), rgba(238, 244, 251, 0.94));
}

.rfq-file-preview-page-image {
  width: min(100%, 1120px);
  margin: 0;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.rfq-file-preview-page-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(33, 54, 84, 0.16);
}

.rfq-file-preview-page-image figcaption {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.rfq-file-preview-shell-office {
  min-width: max-content;
}

.rfq-file-preview-shell-office.rfq-file-preview-rendered-pages {
  min-width: 100%;
}

.rfq-file-preview-unavailable {
  min-height: calc(94vh - 102px);
  display: grid;
  place-items: center;
  padding: 28px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 140, 66, 0.16), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(103, 210, 255, 0.14), transparent 24%),
    rgba(255, 255, 255, 0.94);
}

.rfq-file-preview-unavailable-card {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px;
  border: 1px solid rgba(21, 87, 166, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(52, 70, 96, 0.12);
  text-align: center;
}

.rfq-file-preview-unavailable-card strong {
  color: var(--ink);
  font-size: 18px;
}

.rfq-file-preview-unavailable-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rfq-file-preview-inline-office {
  min-width: 100%;
  min-height: calc(94vh - 102px);
  overflow: auto;
  border-radius: 14px;
  background: #fff;
}

.rfq-office-html-document {
  width: max-content;
  min-width: 100%;
  padding: 14px;
  color: #111827;
  font-size: 13px;
  line-height: 1.5;
}

.rfq-office-spreadsheet-document table {
  width: max-content;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  background: #fff;
}

.rfq-office-spreadsheet-document th,
.rfq-office-spreadsheet-document td {
  border: 1px solid #d7e0ea !important;
  padding: 4px 9px !important;
  white-space: nowrap !important;
  line-height: 1.45 !important;
}

.rfq-office-spreadsheet-document colgroup,
.rfq-office-spreadsheet-document col {
  min-width: 72px;
}

.rfq-file-preview-table table {
  min-width: 720px;
}

.rfq-file-preview-doc {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  color: #123a5c;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.rfq-file-preview-doc p {
  margin: 0;
  line-height: 1.65;
}

.admin-reject-error {
  margin: 8px 0 0;
  color: var(--danger);
  font-weight: 700;
}

.admin-reject-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.sales-row-actions form {
  margin: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.new-item-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--berry), var(--pink) 52%, var(--accent));
  color: #fff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  box-shadow: 0 10px 18px rgba(215, 25, 32, 0.18);
}

.new-item-badge.is-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  pointer-events: none;
}

.new-item-badge.is-corner + * {
  margin-top: 18px;
}

.new-item-title-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.status-draft {
  color: #8a5b00;
  background: rgba(255, 216, 77, 0.28);
}

.status-submitted {
  color: #14598a;
  background: rgba(103, 210, 255, 0.24);
}

.status-generated {
  color: #0f766e;
  background: rgba(45, 212, 191, 0.2);
}

.status-quoted {
  color: var(--ok);
  background: rgba(114, 227, 180, 0.24);
}

.status-expired {
  color: #9f1239;
  background: rgba(255, 122, 162, 0.2);
}

.status-approved {
  color: var(--ok);
  background: rgba(114, 227, 180, 0.24);
}

.status-completed {
  color: var(--ok);
  background: rgba(114, 227, 180, 0.24);
}

.status-rejected {
  color: #9a3412;
  background: rgba(251, 146, 60, 0.18);
}

.status-frozen,
.status-deleted {
  color: var(--danger);
  background: rgba(183, 59, 59, 0.12);
}

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

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

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

.field span,
.section-label {
  font-size: 13px;
  font-weight: 700;
  color: #314455;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(127, 124, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(127, 124, 255, 0.12);
}

input[readonly],
textarea[readonly] {
  background: rgba(244, 248, 255, 0.94);
  color: #536373;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.bank-info-preview {
  max-width: 460px;
  max-height: 160px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  font: inherit;
  color: var(--ink);
}

.seal-preview-image {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 58, 92, 0.08);
  box-shadow: 0 10px 22px rgba(82, 99, 126, 0.08);
}

.subsection {
  margin-top: 18px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 251, 244, 0.58)),
    linear-gradient(120deg, rgba(255, 140, 66, 0.05), rgba(103, 210, 255, 0.05));
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.78);
}

.subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 14px;
}

.subsection-header p {
  margin: 6px 0 0;
}

.item-list {
  display: grid;
  gap: 12px;
}

.item-card {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 254, 255, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(82, 99, 126, 0.08);
}

.item-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 1.2fr 100px 90px 90px;
  gap: 12px;
  align-items: end;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.5fr 1.2fr 90px 80px 150px 1fr;
  gap: 12px;
  align-items: end;
}

.order-item-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.5fr 1.15fr 90px 90px 140px 1.2fr 96px;
  gap: 12px;
  align-items: end;
}

.processing-pi-grid {
  display: grid;
  grid-template-columns: 58px 1.5fr 2.7fr 130px 110px 140px 84px;
  gap: 12px;
  align-items: end;
}

.processing-pi-total {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.item-grid input,
.item-grid select,
.item-grid textarea,
.pricing-grid input,
.pricing-grid select,
.pricing-grid textarea,
.order-item-grid input,
.order-item-grid select,
.order-item-grid textarea {
  font-size: inherit;
  line-height: inherit;
}

.processing-pi-action {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.processing-pi-action .btn-ghost {
  width: 100%;
  min-height: 34px;
}

.processing-pi-grid textarea {
  min-height: 34px;
  border-radius: 10px;
  resize: none;
  overflow: hidden;
  line-height: 1.2;
  padding-top: 7px;
  padding-bottom: 7px;
  text-align: center;
}

.pi-commercial-terms-grid textarea {
  min-height: 34px;
  height: 34px;
  resize: none;
  overflow: hidden;
  line-height: 1.25;
  padding-top: 6px;
  padding-bottom: 6px;
}

.pi-commercial-terms-grid textarea[readonly] {
  background: rgba(244, 248, 255, 0.94);
  color: #123a5c;
  cursor: default;
}

.pi-commercial-term-fixed {
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(244, 248, 255, 0.94);
  color: #123a5c;
  line-height: 1.25;
}

.pi-commercial-term-fixed select {
  width: auto;
  min-height: 30px;
  margin: 0 4px;
  padding: 4px 28px 4px 10px;
  border-radius: 10px;
  font-weight: 700;
  background: #fff;
}

.pi-entry-title-line {
  width: 100%;
  border-top: 2px solid rgba(18, 58, 92, 0.14);
}

.pi-confirmed-title {
  margin: 14px 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #123a5c;
  letter-spacing: 0.08em;
  text-align: center;
}

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

.pi-signature-box {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(18, 58, 92, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pi-signature-box strong {
  color: #123a5c;
  letter-spacing: 0.04em;
}

.pi-signature-line {
  height: 54px;
  border-bottom: 1px solid rgba(18, 58, 92, 0.28);
}

.preview-frame {
  margin-top: 18px;
  border-radius: 24px;
  border: 1px solid rgba(18, 58, 92, 0.08);
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
}

.pi-export-cache,
.pdf-export-cache {
  position: absolute;
  left: -10000px;
  top: 0;
  width: 1120px;
  pointer-events: none;
}

.inline-note {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(18, 58, 92, 0.06);
  color: var(--muted);
}

.auth-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.auth-shell-login {
  background:
    radial-gradient(circle at 13% 18%, rgba(255, 140, 66, 0.15), transparent 20%),
    radial-gradient(circle at 86% 16%, rgba(103, 210, 255, 0.17), transparent 22%),
    radial-gradient(circle at 12% 84%, rgba(255, 122, 162, 0.15), transparent 24%),
    radial-gradient(circle at 88% 82%, rgba(114, 227, 180, 0.13), transparent 22%);
}

.auth-card {
  z-index: 2;
  width: min(840px, 100%);
  padding: clamp(42px, 5vw, 58px);
  border-radius: 46px;
  background:
    radial-gradient(circle at 16% 16%, rgba(255, 216, 77, 0.22), transparent 24%),
    radial-gradient(circle at 86% 18%, rgba(103, 210, 255, 0.2), transparent 25%),
    radial-gradient(circle at 18% 86%, rgba(255, 122, 162, 0.16), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 247, 250, 0.84)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.1), rgba(103, 210, 255, 0.08), rgba(255, 216, 77, 0.08));
}

.login-auth-card {
  display: grid;
  justify-items: center;
  width: min(780px, 100%);
  padding: clamp(44px, 5vw, 62px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 247, 250, 0.78)),
    linear-gradient(120deg, rgba(255, 122, 162, 0.08), rgba(103, 210, 255, 0.08), rgba(255, 216, 77, 0.07));
  box-shadow: 0 28px 68px rgba(52, 70, 96, 0.18);
}

.auth-card > * {
  position: relative;
  z-index: 2;
}

.auth-card form {
  display: grid;
  gap: 22px;
}

.login-tech-sky {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.login-tech-float {
  position: absolute;
  overflow: visible;
  opacity: 0.92;
  filter: drop-shadow(0 20px 28px rgba(65, 88, 118, 0.12));
  animation: login-tech-drift 13s ease-in-out infinite;
}

.login-tech-float rect {
  fill: rgba(255, 255, 255, 0.74);
  stroke: rgba(255, 255, 255, 0.9);
  stroke-width: 3;
}

.login-tech-float path {
  fill: none;
  stroke: rgba(21, 87, 166, 0.34);
  stroke-width: 6;
  stroke-linecap: round;
}

.login-tech-ssd rect:nth-of-type(2),
.login-tech-ssd rect:nth-of-type(3) {
  fill: rgba(103, 210, 255, 0.34);
  stroke: transparent;
}

.login-tech-ssd circle {
  fill: rgba(255, 95, 109, 0.74);
  stroke: rgba(255, 255, 255, 0.82);
  stroke-width: 5;
}

.login-tech-ram rect:first-of-type {
  fill: rgba(114, 227, 180, 0.34);
}

.login-tech-ram rect:not(:first-of-type) {
  fill: rgba(255, 255, 255, 0.72);
  stroke: rgba(21, 87, 166, 0.1);
}

.login-tech-chip rect:first-of-type {
  fill: rgba(255, 216, 77, 0.42);
}

.login-tech-chip rect:nth-of-type(2) {
  fill: rgba(255, 122, 162, 0.54);
}

.login-tech-ssd-a {
  left: clamp(24px, 7vw, 116px);
  top: 12%;
  width: clamp(132px, 14vw, 214px);
  transform: rotate(-9deg);
}

.login-tech-ssd-b {
  right: clamp(24px, 8vw, 126px);
  bottom: 11%;
  width: clamp(118px, 13vw, 196px);
  transform: rotate(10deg);
  animation-delay: -4s;
}

.login-tech-ram-a {
  right: clamp(16px, 5vw, 86px);
  top: 18%;
  width: clamp(142px, 17vw, 246px);
  transform: rotate(8deg);
  animation-delay: -2.3s;
}

.login-tech-ram-b {
  left: clamp(14px, 4vw, 76px);
  bottom: 14%;
  width: clamp(138px, 16vw, 236px);
  transform: rotate(-8deg);
  animation-delay: -7.2s;
}

.login-tech-chip-a {
  left: clamp(120px, 17vw, 300px);
  bottom: 6%;
  width: clamp(76px, 8vw, 124px);
  transform: rotate(13deg);
  animation-delay: -5.1s;
}

.login-tech-chip-b {
  right: clamp(130px, 18vw, 320px);
  top: 8%;
  width: clamp(68px, 7vw, 108px);
  transform: rotate(-14deg);
  animation-delay: -8.4s;
}

.login-tech-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--sun), var(--accent));
  box-shadow: 0 0 0 8px rgba(255, 216, 77, 0.12);
  clip-path: polygon(50% 0%, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0% 50%, 38% 35%);
  animation: login-tech-twinkle 4.2s ease-in-out infinite;
}

.login-tech-spark-a {
  left: 27%;
  top: 16%;
}

.login-tech-spark-b {
  right: 25%;
  bottom: 18%;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  animation-delay: -1.1s;
}

.login-tech-spark-c {
  left: 12%;
  top: 62%;
  animation-delay: -2.4s;
}

.login-tech-spark-d {
  right: 10%;
  top: 54%;
  background: linear-gradient(135deg, var(--pink), var(--berry));
  animation-delay: -3.2s;
}

.auth-brand-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.auth-badge {
  background: linear-gradient(135deg, rgba(255, 122, 162, 0.18), rgba(103, 210, 255, 0.18), rgba(255, 216, 77, 0.18));
  color: #104b87;
  border: 1px solid rgba(255, 255, 255, 0.86);
}

.auth-module-list {
  justify-content: flex-end;
}

.auth-lead {
  margin: 12px 0 0;
  line-height: 1.75;
}

.auth-tip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.auth-tip-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 252, 255, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.auth-tip-card strong {
  color: var(--brand);
  font-size: 20px;
}

.auth-tip-card span {
  color: var(--muted);
  line-height: 1.6;
}

.auth-form {
  margin-top: 28px;
}

.auth-form .field {
  gap: 12px;
}

.auth-form .field span {
  font-size: 17px;
  font-weight: 800;
}

.auth-form input {
  min-height: 66px;
  padding: 15px 22px;
  border-radius: 22px;
  font-size: 20px;
}

.login-email-field {
  position: relative;
  z-index: 5;
}

.login-email-suggest-wrap {
  position: relative;
}

.login-email-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  display: none;
  max-height: 238px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(18, 58, 92, 0.12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(33, 49, 63, 0.18);
}

.login-email-suggestions.is-open {
  display: grid;
  gap: 4px;
}

.login-email-suggestion {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #21313f;
  font-size: 15px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.login-email-suggestion:hover,
.login-email-suggestion:focus-visible {
  outline: none;
  background: linear-gradient(135deg, rgba(255, 245, 232, 0.95), rgba(238, 252, 255, 0.95));
  color: var(--brand);
}

.login-email-suggestion-empty {
  padding: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.password-field-wrap {
  position: relative;
}

.password-field-wrap input {
  padding-right: 78px;
}

.password-eye-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 50px;
  height: 50px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(18, 58, 92, 0.12);
  border-radius: 18px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 252, 255, 0.94));
  color: #123a5c;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(18, 58, 92, 0.12);
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
  transform: translateY(-50%);
}

.password-eye-btn:hover {
  border-color: rgba(255, 122, 162, 0.42);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(255, 247, 250, 0.98));
  color: var(--brand);
}

.password-eye-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-btn svg circle {
  fill: currentColor;
  stroke: none;
}

.password-eye-btn .is-hidden {
  display: none;
}

.auth-title {
  margin: 0;
  text-align: center;
  font-size: clamp(48px, 5.8vw, 72px);
  line-height: 1.05;
}

.login-auth-card .auth-title {
  font-size: clamp(46px, 5vw, 64px);
}

.login-auth-subtitle {
  width: min(620px, 100%);
  margin: 10px auto 0;
  color: rgba(33, 49, 63, 0.66);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.65;
  text-align: center;
}

.login-maintenance-banner {
  width: min(680px, 100%);
  margin: 18px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 245, 232, 0.96), rgba(255, 236, 220, 0.9));
  border: 1px solid rgba(255, 140, 66, 0.28);
  color: #9a4711;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.65;
  text-align: center;
}

.login-auth-card .auth-form {
  width: min(720px, 100%);
  gap: 16px;
  margin: 28px auto 0;
}

.auth-submit {
  width: 100%;
  min-height: 72px;
  margin-top: 12px;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 20px 34px rgba(255, 95, 109, 0.24);
}

.maintenance-notice-card {
  display: grid;
  justify-items: center;
  text-align: center;
}

.maintenance-illustration {
  position: relative;
  width: 150px;
  height: 112px;
  margin-bottom: 18px;
}

.maintenance-gear {
  position: absolute;
  display: block;
  border-radius: 28px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 28%, transparent 29%),
    conic-gradient(from 12deg, var(--berry), var(--sun), var(--sky), var(--mint), var(--berry));
  box-shadow: 0 18px 38px rgba(52, 70, 96, 0.16);
  animation: maintenance-float 4.8s ease-in-out infinite;
}

.maintenance-gear-large {
  left: 16px;
  top: 12px;
  width: 82px;
  height: 82px;
}

.maintenance-gear-small {
  right: 18px;
  bottom: 8px;
  width: 54px;
  height: 54px;
  animation-delay: -1.4s;
}

.maintenance-spark {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--sun), var(--accent));
  clip-path: polygon(50% 0%, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0% 50%, 38% 35%);
  animation: login-tech-twinkle 4.2s ease-in-out infinite;
}

.maintenance-spark-a {
  right: 12px;
  top: 8px;
}

.maintenance-spark-b {
  left: 2px;
  bottom: 14px;
  background: linear-gradient(135deg, var(--sky), var(--mint));
  animation-delay: -1.8s;
}

.maintenance-eyebrow {
  margin: 0 0 10px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.maintenance-title {
  font-size: clamp(38px, 5vw, 58px);
}

.maintenance-subtitle {
  margin-top: 14px;
}

.maintenance-status-panel {
  width: min(620px, 100%);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 28px 0 20px;
}

.maintenance-status-panel div {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 252, 255, 0.9));
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.maintenance-status-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.maintenance-status-panel strong {
  color: var(--brand);
  font-size: 18px;
}

.maintenance-login-link {
  min-width: 180px;
}

.maintenance-admin-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

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

.account-card {
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 249, 244, 0.84)),
    linear-gradient(120deg, rgba(255, 216, 77, 0.05), rgba(103, 210, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 30px rgba(65, 88, 118, 0.08);
}

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

.admin-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

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

.summary-box {
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 254, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 22px rgba(82, 99, 126, 0.06);
}

.summary-box span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.quote-history-link {
  font-weight: 700;
}

.empty-state {
  padding: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 247, 250, 0.84));
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.82);
}

.sales-empty-state {
  display: grid;
  gap: 14px;
  text-align: center;
  padding: 28px 22px;
}

.sales-empty-state strong {
  font-size: 22px;
  color: var(--brand);
}

.sales-empty-state p {
  margin: 0;
  line-height: 1.7;
}

.quote-shell {
  display: grid;
  gap: 20px;
}

.processing-doc-grid {
  display: grid;
  gap: 20px;
}

.processing-doc-panel {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.processing-doc-panel > .panel-header {
  padding: 0 0 16px;
}

@media (max-width: 1100px) {
  .card-grid,
  .sales-stats-grid,
  .form-grid,
  .form-grid-3,
  .summary-list,
  .account-meta,
  .admin-two-col,
  .sales-hero,
  .compact-hero,
  .auth-tip-grid {
    grid-template-columns: 1fr;
  }

  .login-tech-ssd-a,
  .login-tech-ram-a {
    opacity: 0.36;
  }

  .login-tech-chip-a,
  .login-tech-chip-b,
  .login-tech-spark-c,
  .login-tech-spark-d {
    display: none;
  }

  .item-grid,
  .pricing-grid,
  .order-item-grid,
  .processing-pi-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --shell-gutter: 12px;
    --floating-control-right: 12px;
  }

  body:not(.embedded-modal-page) {
    padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  }

  .shell {
    width: min(100% - 18px, 100%);
    margin: 10px auto 32px;
  }

  .auth-shell {
    padding: 18px 12px 80px;
  }

  .auth-card {
    padding: 32px 20px;
    border-radius: 32px;
  }

  .login-auth-card {
    padding: 34px 20px;
    border-radius: 32px;
  }

  .login-auth-card .auth-title {
    font-size: clamp(38px, 12vw, 52px);
  }

  .login-auth-card .auth-form {
    margin-top: 22px;
  }

  .login-tech-float {
    opacity: 0.24;
  }

  .login-tech-ssd-b,
  .login-tech-ram-b,
  .login-tech-spark-b {
    display: none;
  }

  .login-tech-ssd-a {
    left: -44px;
    top: 9%;
    width: 132px;
  }

  .login-tech-ram-a {
    right: -58px;
    bottom: 7%;
    top: auto;
    width: 150px;
  }

  .topbar {
    position: sticky;
    top: 8px;
    z-index: 1150;
    grid-template-columns: 1fr;
    align-items: flex-start;
    padding: 14px;
    border-radius: 24px;
    margin-bottom: 14px;
  }

  .topbar-title-row {
    gap: 8px;
  }

  .topbar-brand h1 {
    font-size: clamp(25px, 7vw, 34px);
  }

  .topbar-brand > .muted {
    font-size: 12px;
    line-height: 1.5;
    word-break: break-word;
  }

  .topbar-actions {
    grid-column: 1;
    grid-row: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topbar-action-stack {
    grid-column: 1;
    grid-row: 3;
    justify-self: stretch;
    justify-items: start;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .topbar-action-stack .topbar-actions {
    grid-column: auto;
    grid-row: auto;
    width: auto;
    overflow: visible;
    padding-bottom: 0;
  }

  .topbar-primary-actions,
  .topbar-admin-actions {
    justify-content: flex-start;
  }

  .topbar-title-row {
    grid-column: 1;
    grid-row: 1;
  }

  .topbar-brand > .muted {
    grid-column: 1;
    grid-row: 2;
  }

  .topbar-modules {
    display: none;
  }

  .module-pill {
    flex: 1 1 calc(50% - 10px);
    min-height: 48px;
    padding: 0 14px;
    font-size: 17px;
  }

  .topbar-todo {
    width: auto;
  }

  .topbar-todo-trigger {
    width: auto;
    justify-content: center;
  }

  .topbar-todo-panel {
    left: 0;
    right: auto;
    width: min(390px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
  }

  .auth-brand-row {
    flex-direction: column;
  }

  .auth-module-list {
    justify-content: flex-start;
  }

  .btn-row,
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row.topbar-actions {
    flex-direction: row;
    align-items: center;
  }

  .sales-record-summary {
    width: 100%;
    text-align: center;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1250;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 7px;
    width: min(560px, calc(100vw - 18px));
    min-height: 62px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 24px;
    background:
      radial-gradient(circle at 12% 18%, rgba(255, 216, 77, 0.22), transparent 30%),
      rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 46px rgba(33, 49, 63, 0.18);
    backdrop-filter: blur(18px) saturate(1.16);
    transform: translateX(-50%);
  }

  .mobile-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 0 8px;
    border: 0;
    border-radius: 17px;
    color: #123a5c;
    background: transparent;
    font-size: 12px;
    font-weight: 950;
    line-height: 1.15;
    text-align: center;
    cursor: pointer;
  }

  .mobile-nav-item.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--berry), var(--pink) 56%, var(--accent));
    box-shadow: 0 12px 22px rgba(255, 95, 109, 0.24);
  }

  .mobile-nav-item .module-pill-notice {
    top: -5px;
    right: -2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 1 !important;
  }

  .mobile-nav-more {
    appearance: none;
    -webkit-appearance: none;
  }

  .mobile-nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 1400;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 10px calc(88px + env(safe-area-inset-bottom, 0px));
    background: rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(8px);
  }

  .mobile-nav-drawer.is-open {
    display: flex;
    animation: modal-backdrop-in var(--motion-medium) ease both;
  }

  .mobile-nav-drawer-panel {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    background:
      radial-gradient(circle at 88% 12%, rgba(103, 210, 255, 0.18), transparent 30%),
      linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 247, 238, 0.94));
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
    animation: dialog-rise-in var(--motion-medium) var(--motion-ease) both;
  }

  .mobile-nav-drawer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .system-version-badge {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .back-to-top-button {
    bottom: calc(128px + env(safe-area-inset-bottom, 0px));
  }

  .panel,
  .hero-panel {
    padding: 16px;
    border-radius: 22px;
  }

  .panel-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .panel-header h2,
  .hero-panel h2 {
    font-size: clamp(22px, 6vw, 30px);
  }

  input,
  select,
  textarea,
  .btn,
  .btn-ghost,
  .btn-danger,
  .btn-link,
  .btn-disabled {
    min-height: 48px;
    font-size: 16px;
  }

  textarea {
    min-height: 116px;
  }

  .table-shell:has(table[data-mobile-card="1"]),
  .table-wrap:has(table[data-mobile-card="1"]) {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  table[data-mobile-card="1"] {
    display: block;
    min-width: 0;
    width: 100%;
    border-collapse: separate;
  }

  table[data-mobile-card="1"] thead,
  table[data-mobile-card="1"] colgroup {
    display: none;
  }

  table[data-mobile-card="1"] tbody,
  table[data-mobile-card="1"] tr,
  table[data-mobile-card="1"] td {
    display: block;
    width: 100%;
  }

  table[data-mobile-card="1"] tr {
    margin-bottom: 12px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 20px;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 254, 255, 0.9)),
      linear-gradient(120deg, rgba(255, 122, 162, 0.06), rgba(103, 210, 255, 0.06));
    box-shadow: 0 12px 26px rgba(52, 70, 96, 0.08);
  }

  table[data-mobile-card="1"] td {
    display: grid;
    grid-template-columns: minmax(86px, 34%) minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 4px;
    border-bottom: 1px solid rgba(18, 58, 92, 0.08);
    text-align: right;
    word-break: break-word;
  }

  table[data-mobile-card="1"] td:last-child {
    border-bottom: 0;
  }

  table[data-mobile-card="1"] td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
    text-align: left;
  }

  table[data-mobile-card="1"] td:not([data-label]) {
    grid-template-columns: 1fr;
    text-align: left;
  }

  table[data-mobile-card="1"] td:not([data-label])::before {
    display: none;
  }

  table[data-mobile-card="1"] .btn-row,
  table[data-mobile-card="1"] .sales-row-actions {
    justify-content: flex-end;
    gap: 8px;
  }

  .admin-reject-modal,
  .birthday-star-modal,
  .exchange-rate-modal {
    padding: 10px;
  }

  .admin-reject-dialog,
  .birthday-star-dialog,
  .exchange-rate-dialog,
  .rfq-file-preview-dialog,
  .rfq-file-preview-dialog.is-office-preview,
  .pi-preview-dialog,
  .ci-pl-preview-dialog,
  .stamp-review-preview-dialog,
  .admin-processing-preview-dialog {
    width: min(100%, calc(100vw - 20px));
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
  }

  .admin-reject-dialog-header {
    position: sticky;
    top: 0;
    z-index: 3;
    padding: 16px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
  }

  .admin-reject-dialog-body,
  .birthday-star-dialog,
  .exchange-rate-dialog-body {
    overflow: auto;
    padding: 16px;
  }

  .admin-reject-dialog-body > .btn-row:last-child,
  .admin-reject-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 14px -16px -16px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96));
    backdrop-filter: blur(12px);
  }

  .rfq-file-preview-body,
  .rfq-file-preview-inline-office,
  .rfq-file-preview-rendered-pages,
  .rfq-file-preview-unavailable {
    min-height: calc(100dvh - 132px);
  }

  .rfq-file-preview-frame,
  .rfq-file-preview-frame-office,
  .stamp-review-preview-frame,
  .admin-processing-preview-frame {
    min-height: calc(100dvh - 156px);
    border-radius: 14px;
  }

  .rfq-file-preview-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

.form-grid-password {
  align-items: start;
}

.form-grid-password .password-field-wrap input {
  padding-right: 58px;
}

.form-grid-password .password-eye-btn {
  right: 8px;
  width: 38px;
  height: 38px;
  border-radius: 13px;
}

.form-grid-password .password-eye-btn svg {
  width: 21px;
  height: 21px;
}

.form-actions-single {
  grid-column: 1 / -1;
}

.system-version-badge {
  position: fixed;
  right: var(--floating-control-right);
  bottom: 14px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(18, 58, 92, 0.14);
  border-radius: 999px;
  color: #123a5c;
  background:
    radial-gradient(circle at 90% 12%, rgba(255, 216, 77, 0.28), transparent 34%),
    rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 28px rgba(18, 58, 92, 0.14);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.back-to-top-button {
  position: fixed;
  right: var(--floating-control-right);
  bottom: 54px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #fff;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, var(--berry), var(--pink) 54%, var(--accent));
  box-shadow: 0 14px 30px rgba(255, 95, 109, 0.22);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: transform var(--motion-fast) var(--motion-ease), box-shadow var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) ease;
}

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

.back-to-top-button:hover,
.back-to-top-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(255, 95, 109, 0.28);
  outline: none;
}

.motion-reveal {
  will-change: transform, opacity;
}

.stat-card strong.is-counting,
.sales-stat-card strong.is-counting,
.module-pill-notice.is-counting,
.topbar-exchange-rate strong.is-counting {
  font-variant-numeric: tabular-nums;
}

@keyframes page-busy-bar {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes dialog-rise-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes notice-pop {
  0% {
    opacity: 0;
    transform: translateY(4px) scale(0.72);
  }
  58% {
    opacity: 1;
    transform: translateY(-1px) scale(1.08);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes spin-soft {
  to { transform: rotate(360deg); }
}

@keyframes login-tech-drift {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 10px -14px;
  }
}

@keyframes login-tech-twinkle {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(0.82) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.16) rotate(20deg);
  }
}

@keyframes maintenance-float {
  0%,
  100% {
    transform: translateY(0) rotate(-4deg);
  }

  50% {
    transform: translateY(-8px) rotate(5deg);
  }
}

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

  .back-to-top-button,
  .back-to-top-button.is-visible,
  .btn:hover,
  .btn-ghost:hover,
  .btn-danger:hover,
  .btn-link:hover,
  .module-pill:hover,
  .module-pill:focus-visible,
  .hero-mini-pill:hover,
  .hero-mini-pill:focus-visible,
  .sales-stat-card:hover,
  .sales-stat-card:focus-within,
  .card-grid-soft .stat-card:hover,
  .stat-card:hover,
  .info-card:hover {
    transform: none !important;
  }
}

.embedded-modal-page .back-to-top-button,
.embedded-modal-page .system-version-badge {
  display: none;
}

@media (max-width: 720px) {
  .shell {
    margin-bottom: 124px;
  }

  .system-version-badge,
  .back-to-top-button {
    right: 12px;
  }
}

.announcement-attachments,
.announcement-attachment-uploader {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.9);
  border: 1px solid rgba(18, 58, 92, 0.1);
}

.announcement-attachments > strong,
.announcement-attachment-uploader-copy strong {
  color: #123a5c;
  font-weight: 900;
}

.announcement-attachment-uploader {
  outline: none;
  cursor: text;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.announcement-attachment-uploader:hover,
.announcement-attachment-uploader:focus-within,
.announcement-attachment-uploader:focus {
  border-color: rgba(215, 25, 32, 0.26);
  box-shadow: 0 14px 28px rgba(215, 25, 32, 0.1);
  transform: translateY(-1px);
}

.announcement-attachment-uploader-copy,
.announcement-attachment-preview {
  display: grid;
  gap: 4px;
  line-height: 1.55;
}

.announcement-attachment-actions,
.announcement-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.announcement-upload-pill {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.announcement-upload-pill input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.announcement-attachment-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(18, 58, 92, 0.08);
}

.announcement-attachment-name {
  max-width: min(360px, 54vw);
  overflow: hidden;
  color: #314455;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
