.portal {
  background: var(--paper);
}
[hidden] {
  display: none !important;
}

.pricing-settings {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 150px 180px auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
  padding: 20px 22px;
}
.pricing-settings h3 {
  margin: 5px 0 3px;
}
.pricing-settings .field,
.pricing-settings .form-error {
  margin: 0;
}
.percent-input > input {
  padding-left: 12px;
}
.estimate-preview {
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--orange) 7%, var(--surface));
}
.estimate-preview strong,
.estimate-preview b {
  color: var(--ink);
}
.estimate-preview span,
.estimate-preview small {
  color: var(--muted);
  line-height: 1.45;
}
.estimate-breakdown .cost-total {
  margin-top: 8px;
}

@media (max-width: 900px) {
  .pricing-settings {
    grid-template-columns: 1fr 1fr;
  }
  .pricing-settings > div:first-child,
  .pricing-settings > div:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .pricing-settings {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .pricing-settings > div:first-child,
  .pricing-settings > div:last-child {
    grid-column: auto;
  }
  .estimate-preview {
    padding: 14px;
  }
}
.full {
  width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.link-button {
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  line-height: 1.5;
}
.link-button:hover {
  text-decoration: underline;
}
.back-link {
  display: inline-block;
  color: var(--muted);
  font-size: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 20px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  min-height: 46px;
  font-weight: 400;
  font-size: 14px;
}
.field textarea {
  resize: vertical;
  min-height: 95px;
  line-height: 1.6;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #819088;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.helper {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.65;
}
.form-error {
  font-size: 13px;
  color: var(--danger);
  padding: 12px 14px;
  background: #faede8;
  border-radius: 7px;
  border: 1px solid #edc3b9;
  line-height: 1.5;
}
.form-error[hidden] {
  display: none;
}
.notice {
  padding: 20px;
  background: #fff0e8;
  border: 1px solid #f2b89e;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink);
  line-height: 1.7;
}
.notice p {
  margin: 10px 0 0;
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 36px);
  background: var(--ink);
  color: #fff;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px #173b4030;
  z-index: 100;
  font-size: 13px;
  line-height: 1.6;
}
.toast[hidden] {
  display: none;
}
.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.auth-aside {
  padding: 44px 56px;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  gap: 65px;
  position: relative;
  overflow: hidden;
}
.auth-aside:after {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background-image: linear-gradient(#ffffff0b 1px, transparent 1px), linear-gradient(90deg, #ffffff0b 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.auth-aside > .brand {
  align-self: flex-start;
}
.auth-aside h1 {
  font-size: 76px;
  font-weight: 700;
  line-height: 1.03;
  margin-bottom: 30px;
}
.auth-aside em {
  color: var(--lime);
}
.auth-aside .eyebrow {
  color: #b9cbb8;
  font-size: 9px;
}
.auth-aside > div > p:last-of-type {
  font-size: 14px;
  color: #b6c8c0;
}
.auth-route {
  display: none;
  justify-content: space-between;
  gap: 20px;
  margin-top: 55px;
  max-width: 290px;
  font-family: monospace;
  font-size: 13px;
}
.auth-route span:nth-child(2) {
  color: var(--lime);
}
.auth-route .route-plane-icon {
  color: var(--lime);
  width: 24px;
  height: 24px;
}
.auth-foot {
  font: 9px monospace;
  letter-spacing: 0.1em;
  color: #9fb9ab;
}
.auth-main {
  padding: 47px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 55px;
  min-height: 100vh;
}
.auth-card {
  max-width: 410px;
  width: 100%;
  margin-inline: auto;
}
.auth-card > .tag {
  display: inline-block;
  margin-bottom: 26px;
}
.auth-card h2 {
  font-size: 43px;
  margin-bottom: 15px;
}
.auth-card > p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 30px;
  line-height: 1.7;
}
.auth-card form > .button {
  margin-top: 8px;
}
.auth-switch {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 27px;
  font-size: 12px;
  text-align: center;
}
.auth-switch button {
  font-weight: 650;
  margin-left: 4px;
  font-size: 12px;
}
.auth-help {
  font-size: 11px !important;
  margin: 19px 0 0 !important;
  text-align: center;
}
.auth-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
}
.auth-card .notice {
  margin-top: 25px;
  font-size: 11px;
  word-break: break-word;
}
.clerk-auth-card {
  max-width: 540px;
  width: 100%;
}
#clerk-sign-in {
  display: grid;
  justify-items: stretch;
  margin: 22px 0 10px;
  min-height: 320px;
}
#clerk-sign-in > * {
  width: 100%;
}
.workspace-layout {
  display: grid;
  grid-template-columns: 226px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--ink);
  color: var(--paper);
  padding: 31px 20px 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar > .brand {
  font-size: 27px;
  padding-left: 8px;
  margin-bottom: 55px;
}
.workspace-label {
  font-size: 8px;
  letter-spacing: 0.13em;
  color: #9cb7ac;
  padding-left: 13px;
  margin-bottom: 17px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.side-link {
  background: none;
  border: none;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  color: #cad7cf;
  padding: 14px 13px;
  border-radius: var(--radius);
  font-size: 12px;
  line-height: 1.3;
  min-height: 46px;
}
.side-link > span {
  font-size: 21px;
  line-height: 1;
}
.side-link.active {
  background: var(--lime);
  color: var(--ink);
  font-weight: 650;
}
.side-link:hover:not(.active) {
  background: #294c63;
}
.sidebar-route {
  display: none;
  padding: 43px 17px;
  color: #b4cbb2;
}
.sidebar-route > span {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
}
.sidebar-route > div {
  font-family: monospace;
  color: #608175;
  margin: 12px 0;
  line-height: 1.5;
  font-size: 11px;
}
.sidebar-route > .icon {
  display: block;
  width: 24px;
  height: 24px;
  margin: 14px 0;
  color: #7bdbe2;
  transform: rotate(90deg);
}
.sidebar-route p {
  font-size: 11px;
  line-height: 1.65;
  margin: 18px 0 0;
  color: #99b5a9;
}
.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid #48655d;
  padding-top: 20px;
  margin-top: auto;
}
.avatar {
  width: 34px;
  height: 34px;
  background: #f7c5b2;
  color: var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  flex-shrink: 0;
  font-weight: 600;
}
.sidebar-user > div:last-child {
  min-width: 0;
}
.sidebar-user strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-user span {
  display: block;
  font-size: 9px;
  color: #a8beb2;
  margin-top: 5px;
}
.logout {
  border: none;
  background: none;
  color: #b3c7bb;
  font-size: 10px;
  text-align: left;
  margin-top: 20px;
  padding: 0 0 0 44px;
  min-height: 27px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.workspace-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.workspace-header {
  padding: 25px 44px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  background: color-mix(in srgb, var(--paper) 92%, white);
}
.breadcrumb {
  color: var(--muted);
  margin-left: 9px;
}
.pilot-indicator {
  font-size: 8px;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pilot-indicator .live-dot {
  width: 5px;
  height: 5px;
}
#workspace:not(.auth-main) {
  padding: 40px 44px 60px;
  outline: none;
  max-width: 1420px;
  width: 100%;
  margin-inline: auto;
}
.workspace-footer {
  padding: 23px 44px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  gap: 20px;
  margin-top: auto;
}
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 35px;
}
.page-title .eyebrow {
  font-size: 8px;
  margin-bottom: 17px;
}
.page-title h1 {
  font-size: 43px;
  margin-bottom: 13px;
  letter-spacing: -0.05em;
}
.title-dot {
  color: var(--lime);
}
.page-title p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
}
.page-title .button {
  font-size: 12px;
  white-space: nowrap;
  gap: 25px;
  min-height: 45px;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.conversation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.purchases-title {
  margin-bottom: 26px;
}
.client-workspace #workspace:not(.auth-main) {
  padding-top: 32px;
}
.page-loading {
  padding: 100px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 39px;
}
.stat-grid article {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.stat-grid article > span {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.stat-grid strong {
  display: block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.1;
  margin: 15px 0 9px;
}
.stat-grid p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.stat-grid article:first-child {
  background: #fff0e8;
  border-color: #f2b89e;
}
.list-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.list-heading h2 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.03em;
}
.list-heading button {
  font-size: 11px;
}
.filter-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.filter-tabs > button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 0 3px 12px;
  color: var(--muted);
  font-size: 12px;
}
.filter-tabs > button.active {
  border-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.filter-tabs span {
  padding: 2px 6px;
  background: #ffe2d4;
  font-size: 10px;
  border-radius: 4px;
  margin-left: 5px;
}
.purchase-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.purchase-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  text-align: left;
  color: var(--ink);
  padding: 22px 25px;
  width: 100%;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.purchase-card:hover {
  border-color: var(--lime);
  box-shadow: 5px 5px 0 #ff6b3522;
}
.purchase-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.reference {
  font-family: monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #7c8c81;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  line-height: 1.2;
  border-radius: 5px;
  padding: 7px 9px;
  background: #edf0e8;
  color: #59734c;
  white-space: nowrap;
}
.badge > span {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge-quoted {
  background: #e9efce;
  color: #607125;
}
.badge-transit,
.badge-delivery,
.badge-argentina {
  background: #e6eff4;
  color: #416977;
}
.badge-cancelled,
.badge-declined {
  background: #f2e7e4;
  color: #875850;
}
.badge-delivered {
  background: #dff0da;
  color: #436c3b;
}
.purchase-body {
  display: flex;
  gap: 17px;
  align-items: center;
  padding-block: 23px;
}
.product-icon {
  height: 49px;
  width: 49px;
  border: 1px solid #f2b89e;
  background: #fff0e8;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 25px;
  flex-shrink: 0;
}
.product-icon .icon {
  width: 25px;
  height: 25px;
}
.purchase-body h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.purchase-body p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.card-arrow {
  margin-left: auto;
  width: 22px;
  height: 22px;
}
.purchase-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid #edf0e9;
  padding-top: 15px;
  font-size: 10px;
  color: var(--muted);
}
.purchase-bottom strong {
  font-weight: 550;
  color: var(--ink);
}
.help-band {
  padding: 25px 23px;
  background: #fff0e8;
  border: 1px solid #f2b89e;
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: var(--radius);
  margin-top: 29px;
}
.help-icon {
  font-size: 25px;
}
.help-icon .icon,
.empty-symbol .icon,
.next-icon .icon,
.next-step > span > .icon {
  width: 25px;
  height: 25px;
}
.help-band strong {
  font-size: 13px;
  font-weight: 600;
}
.help-band p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.help-band > .text-link {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11px;
}
.empty {
  text-align: center;
  border: 1px dashed #cbd8c4;
  border-radius: var(--radius);
  padding: 55px 25px;
  color: var(--muted);
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  background: #ffe2d4;
  color: #b9421c;
  border-radius: 50%;
  font-size: 30px;
  margin: 0 auto 20px;
}
.empty h3,
.empty h2 {
  font-size: 23px;
  color: var(--ink);
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.empty p {
  font-size: 13px;
  max-width: 430px;
  margin-inline: auto;
  margin-bottom: 23px;
}
.empty.compact {
  padding: 30px 20px;
  border: 0;
}
.empty.compact h3 {
  font-size: 19px;
}
.empty.compact p {
  font-size: 12px;
}
.empty.compact .empty-symbol {
  width: 45px;
  height: 45px;
  font-size: 25px;
}
.empty.compact p:last-child {
  margin-bottom: 0;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 27px;
  margin-bottom: 22px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.panel h3 {
  font-size: 21px;
  letter-spacing: -0.035em;
  line-height: 1.3;
  margin-bottom: 19px;
}
.panel-heading h3 {
  margin: 0;
}
.panel-heading .tag {
  font-size: 7px;
  letter-spacing: 0.06em;
}
.form-panel {
  padding: 30px;
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr);
  gap: 27px;
  align-items: start;
}
.form-layout > *,
.form-row > *,
.form-panel,
.field {
  min-width: 0;
}
.section-label {
  font-size: 9px;
  letter-spacing: 0.1em;
  font-weight: 650;
  margin-bottom: 20px;
  display: block;
  color: var(--muted);
}
.form-aside {
  padding: 24px 12px;
}
.form-aside > .tag {
  display: inline-block;
  margin-bottom: 25px;
}
.form-aside h2 {
  font-size: 38px;
  line-height: 1.1;
}
.form-aside ol {
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-block: 25px;
}
.form-aside li {
  padding-left: 8px;
  margin-bottom: 16px;
}
.form-aside .notice {
  font-size: 12px;
}
.mode-options {
  border: 0;
  padding: 16px 0 23px;
  margin: 0;
}
.mode-options legend {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 4px;
}
.mode-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 10px;
  cursor: pointer;
}
.mode-options label:has(input:checked) {
  background: #fff0e8;
  border-color: var(--lime);
}
.mode-options input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.mode-options strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.mode-options small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.completion-guide {
  margin: -4px 0 14px;
  padding: 11px 13px;
  border-left: 3px solid var(--orange);
  background: #fff7f1;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.completion-guide strong {
  color: var(--ink);
}
.field.is-missing input {
  border-color: #e27a50;
  box-shadow: 0 0 0 1px #e27a50;
}
.address-source {
  display: flex;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 2px 0 18px;
}
.address-source legend {
  width: 100%;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 550;
}
.address-source label,
.forward-confirmation {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.45;
}
.address-source label:has(input:checked) {
  border-color: var(--lime);
  background: #fff0e8;
}
.address-source input,
.forward-confirmation input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
}
.forward-confirmation {
  margin: -10px 0 24px;
  border-color: #f2b89e;
  background: #fff7f1;
}
.manual-address-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 0 18px;
}
.manual-address-grid .field:nth-child(n + 3) {
  grid-column: span 1;
}
.manual-address-grid .field:last-child {
  grid-column: 1 / -1;
}
.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
}
.form-submit > span {
  font-size: 10px;
  color: var(--muted);
}
.detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.detail-toolbar button {
  font-size: 12px;
}
.detail-heading {
  position: relative;
  margin-bottom: 27px;
}
.product-summary {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
}
.product-summary h2 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.product-summary p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.detail-meta {
  display: flex;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.detail-heading > .badge {
  margin-top: 10px;
}
.external-link {
  font-size: 12px;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 20px;
}
.customer-notes {
  background: #f0f3f4;
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 18px 0;
  font-size: 12px;
}
.customer-notes p {
  margin: 6px 0 0;
  color: var(--muted);
}
.preserve {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.next-step {
  background: #fff0e8;
  border: 1px solid #f2b89e;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 18px;
  margin-bottom: 26px;
  align-items: center;
}
.next-step .section-label {
  margin-bottom: 8px;
  font-size: 8px;
}
.next-step p {
  font-size: 13px;
  margin: 0;
  line-height: 1.6;
}
.next-icon {
  font-size: 25px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 25px;
  align-items: start;
}
.route-progress .route-points {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: monospace;
  font-size: 10px;
  margin-bottom: 23px;
  color: var(--muted);
}
.route-points .route-plane-icon {
  width: 25px;
  height: 25px;
  color: #057684;
}
.route-progress h3 {
  font-size: 25px;
  margin-bottom: 9px;
}
.route-progress > p {
  font-size: 11px;
  color: var(--muted);
}
.payment-status {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 22px;
  font-size: 11px;
  color: #607a50;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  position: relative;
  padding: 0 0 26px 24px;
  border-left: 1px solid #d5dfce;
  margin-left: 4px;
}
.timeline li:last-child {
  border-color: transparent;
  padding-bottom: 0;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -5px;
  top: 3px;
  height: 9px;
  width: 9px;
  border: 2px solid white;
  background: #bdccb2;
  border-radius: 50%;
}
.timeline li.latest:before {
  background: #668e44;
  box-shadow: 0 0 0 3px #e8efdf;
}
.timeline time {
  font-size: 9px;
  color: var(--muted);
  line-height: 1.4;
}
.timeline p {
  font-size: 12px;
  line-height: 1.75;
  margin: 9px 0 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.timeline li.latest p {
  font-weight: 550;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 12px;
  border-bottom: 1px solid #edf0e9;
}
.cost-row > span {
  color: var(--muted);
}
.cost-row strong {
  font-weight: 500;
  white-space: nowrap;
}
.weight-summary {
  margin: 14px 0 10px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.weight-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  padding-block: 4px;
}
.weight-summary span,
.weight-summary p {
  color: var(--muted);
}
.weight-summary p {
  margin: 9px 0 0;
  font-size: 10px;
  line-height: 1.5;
}
.cost-total {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding-top: 22px;
  font-size: 13px;
  align-items: center;
}
.cost-total strong {
  font-size: 24px;
  font-weight: 550;
  letter-spacing: -0.04em;
  white-space: nowrap;
}
.quote-breakdown > .helper {
  margin-top: 16px;
  font-size: 10px;
}
.quote-conditions {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px dashed var(--line);
  font-size: 11px;
}
.quote-conditions > strong {
  font-size: 11px;
  font-weight: 650;
}
.quote-conditions > p {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.quote-conditions > .helper {
  font-size: 10px;
}
.consent {
  display: flex;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
  align-items: flex-start;
  margin-block: 22px;
}
.consent input {
  accent-color: var(--ink);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}
.withdraw {
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.withdraw > summary {
  cursor: pointer;
}
.withdraw > p {
  font-size: 11px;
  margin-top: 15px;
}
.owner-line {
  font-size: 12px;
  margin-top: 14px;
  color: var(--muted);
}
.filters {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.filters > .field {
  margin: 0;
  flex: 1;
}
.filters > .field:first-child {
  flex: 2;
}
.filters .button {
  min-height: 46px;
}
.operations-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.table-head,
.operation-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(120px, 1fr) minmax(
      100px,
      0.7fr
    ) 20px;
  gap: 20px;
  padding: 17px 21px;
  align-items: center;
}
.operation-row > .icon {
  width: 18px;
  height: 18px;
}
.table-head {
  background: #e6edf0;
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.operation-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  text-align: left;
  min-height: 85px;
}
.operation-row:last-child {
  border-bottom: 0;
}
.operation-row:hover {
  background: #fff7f2;
}
.operation-row strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.operation-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.table-price {
  font-size: 12px;
  white-space: nowrap;
}
.quote-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.quote-weight {
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.quote-weight .section-label {
  margin-bottom: 8px;
}
.field-helper {
  margin-top: -10px;
}
.amazon-assist {
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid #d5ddd8;
  border-radius: var(--radius);
  background: #f6f8f5;
}
.amazon-assist > .field {
  margin-bottom: 12px;
}
.amazon-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.amazon-actions > span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}
.amazon-button {
  min-height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  padding: 0 16px;
}
.amazon-button:disabled {
  opacity: 0.65;
}
.amazon-result {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.amazon-result[hidden] {
  display: none;
}
.amazon-result img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #fff;
}
.amazon-result strong,
.amazon-result span {
  display: block;
}
.amazon-result strong {
  color: var(--ink);
  margin-bottom: 3px;
}
.amazon-result p {
  margin: 6px 0 0;
}
.amazon-result.error {
  border-color: #edc3b9;
  background: #faede8;
  color: var(--danger);
}
.delivery-field {
  min-width: 0;
}
.delivery-field > small {
  color: var(--muted);
  font-size: 12px;
}
.delivery-full {
  width: 100%;
}
.places-control {
  display: block;
  min-height: 52px;
}
.places-control gmp-place-autocomplete {
  width: 100%;
  min-height: 52px;
  color-scheme: light;
}
.places-loading,
.places-error {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: var(--white);
}
.places-error {
  color: var(--danger);
}
.money-input {
  position: relative;
}
.money-input > span {
  position: absolute;
  top: 15px;
  left: 12px;
  font-size: 11px;
  color: var(--muted);
}
.money-input > input {
  padding-left: 46px;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.user-row:last-child {
  border: 0;
}
.user-info {
  flex: 1;
  min-width: 140px;
}
.user-info strong {
  font-size: 13px;
  font-weight: 550;
  display: block;
}
.user-info small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}
.user-actions {
  display: flex;
  gap: 12px;
}
.user-actions button {
  font-size: 10px;
}
.danger {
  color: var(--danger);
}
.invitation-result {
  overflow-wrap: anywhere;
}
.invitation-result .field {
  margin-block: 18px 0;
}
.invitation-result input {
  font-family: monospace;
  font-size: 11px;
}
.invitation-result[hidden] {
  display: none;
}
@media (min-width: 1500px) {
  #workspace:not(.auth-main) {
    padding: 48px 64px 65px;
  }
  .workspace-header,
  .workspace-footer {
    padding-inline: 64px;
  }
  .workspace-layout {
    grid-template-columns: 248px minmax(0, 1fr);
  }
}
@media (max-width: 1100px) {
  .workspace-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 13px;
  }
  .sidebar > .brand {
    font-size: 25px;
  }
  .side-link {
    font-size: 11px;
    padding-inline: 10px;
  }
  .workspace-header,
  .workspace-footer {
    padding-inline: 28px;
  }
  #workspace:not(.auth-main) {
    padding: 30px 28px 45px;
  }
  .page-title h1 {
    font-size: 35px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .form-layout {
    grid-template-columns: 1.3fr 1fr;
    gap: 18px;
  }
  .form-panel,
  .panel {
    padding: 23px;
  }
  .help-band {
    gap: 13px;
    flex-wrap: wrap;
  }
  .help-band > .text-link {
    margin-left: 38px;
  }
  .table-head,
  .operation-row {
    gap: 12px;
    padding-inline: 16px;
    grid-template-columns: minmax(0, 1.5fr) minmax(100px, 1fr) minmax(
        80px,
        0.7fr
      ) 15px;
  }
  .badge {
    font-size: 9px;
    padding: 6px;
  }
  .auth-aside {
    padding: 40px;
  }
  .auth-aside h1 {
    font-size: 66px;
  }
  .auth-main {
    padding: 40px;
  }
  .auth-card h2 {
    font-size: 37px;
  }
}
@media (min-width: 781px) and (max-height: 760px) {
  .auth-layout {
    height: 100svh;
    min-height: 0;
  }
  .auth-aside,
  .auth-main {
    height: 100svh;
    min-height: 0;
  }
  .auth-aside {
    padding: 26px 40px;
    gap: 20px;
  }
  .auth-aside h1 {
    font-size: clamp(48px, 8.2vh, 58px);
    margin-bottom: 16px;
  }
  .auth-aside > div > p:last-of-type {
    font-size: 12px;
  }
  .auth-main {
    padding: 18px 40px;
    gap: 10px;
  }
  .clerk-auth-card > .tag {
    display: none;
  }
  .clerk-auth-card h2 {
    font-size: 32px;
    margin-bottom: 6px;
  }
  .clerk-auth-card > p {
    margin-bottom: 8px;
    line-height: 1.4;
  }
  #clerk-sign-in {
    min-height: 0;
    margin: 8px 0 0;
  }
  .clerk-auth-card .auth-help {
    display: none;
  }
  .auth-bottom {
    font-size: 9px;
  }
}
@media (max-width: 780px) {
  .workspace-layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
  }
  .sidebar > .brand {
    font-size: 24px;
    margin: 0;
    padding: 0;
  }
  .sidebar > .brand img {
    width: 29px;
    height: 29px;
  }
  .sidebar nav {
    order: 3;
    flex-direction: row;
    flex: 1 0 100%;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .side-link {
    font-size: 12px;
    padding: 11px 14px;
    min-height: 40px;
  }
  .side-link > span {
    font-size: 17px;
  }
  .workspace-label,
  .sidebar-route,
  .sidebar-user {
    display: none;
  }
  .logout {
    padding: 0;
    margin: 0 0 0 auto;
    font-size: 10px;
  }
  .workspace-header {
    padding: 17px 20px;
    font-size: 10px;
  }
  .breadcrumb {
    display: none;
  }
  .pilot-indicator {
    font-size: 7px;
  }
  #workspace:not(.auth-main) {
    padding: 27px 20px 40px;
  }
  .workspace-footer {
    padding: 20px;
    font-size: 9px;
    flex-wrap: wrap;
    gap: 9px;
  }
  .page-title {
    gap: 20px;
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 26px;
  }
  .page-title h1 {
    font-size: 35px;
  }
  .page-title p:not(.eyebrow) {
    font-size: 12px;
  }
  .page-title .button {
    min-height: 43px;
  }
  .page-actions {
    width: 100%;
    justify-content: space-between;
  }
  .conversation-actions {
    width: 100%;
  }
  .conversation-actions .button {
    flex: 1 1 150px;
  }
  .stat-grid {
    gap: 10px;
    margin-bottom: 30px;
  }
  .stat-grid article {
    padding: 16px 13px;
  }
  .stat-grid article > span {
    font-size: 7px;
    letter-spacing: 0.05em;
  }
  .stat-grid strong {
    font-size: 32px;
    margin: 13px 0 8px;
  }
  .stat-grid p {
    font-size: 9px;
  }
  .list-heading h2 {
    font-size: 22px;
  }
  .purchase-card {
    padding: 18px;
  }
  .purchase-body {
    gap: 12px;
  }
  .purchase-body h3 {
    font-size: 18px;
  }
  .purchase-body p {
    font-size: 10px;
  }
  .purchase-bottom {
    font-size: 9px;
    gap: 10px;
  }
  .product-icon {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .help-band {
    padding: 20px;
  }
  .help-band > .text-link {
    margin-left: 0;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-aside {
    padding: 8px 6px;
  }
  .form-aside h2 {
    font-size: 33px;
  }
  .form-row {
    gap: 12px;
  }
  .field {
    font-size: 12px;
  }
  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }
  .product-summary h2 {
    font-size: 27px;
  }
  .product-summary p {
    font-size: 11px;
  }
  .detail-meta {
    font-size: 9px;
    gap: 10px;
  }
  .next-step {
    padding: 18px;
  }
  .next-step p {
    font-size: 12px;
  }
  .detail-grid {
    gap: 0;
  }
  .panel {
    padding: 23px;
  }
  .panel-heading {
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel-heading h3 {
    font-size: 20px;
  }
  .form-submit {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .filters {
    gap: 10px;
    flex-wrap: wrap;
  }
  .filters > .field:first-child {
    flex: 1 0 100%;
  }
  .filters > .field:nth-child(2) {
    flex: 1;
  }
  .table-head {
    display: none;
  }
  .operation-row {
    grid-template-columns: 1fr auto;
    gap: 13px;
    padding: 19px;
  }
  .operation-row > div:first-child {
    grid-column: 1/-1;
  }
  .operation-row > .icon {
    display: none;
  }
  .table-price {
    font-size: 11px;
    text-align: right;
  }
  .operation-row > .table-price {
    grid-column: 2;
  }
  .auth-layout {
    display: block;
  }
  .auth-aside {
    min-height: 0;
    padding: 23px 25px;
    gap: 0;
  }
  .auth-aside > div,
  .auth-aside > .auth-foot {
    display: none;
  }
  .auth-aside > .brand {
    font-size: 25px;
  }
  .auth-aside .brand img {
    width: 31px;
    height: 31px;
  }
  .auth-main {
    min-height: calc(100vh - 80px);
    padding: 28px 24px;
    gap: 40px;
  }
  .auth-card {
    max-width: 430px;
  }
  .auth-card h2 {
    font-size: 38px;
  }
  .auth-bottom {
    font-size: 9px;
  }
  .auth-switch,
  .auth-switch button {
    font-size: 11px;
  }
  .user-actions {
    width: 100%;
    padding-left: 46px;
  }
  .panel .cost-total strong {
    font-size: 24px;
  }
}
@media (max-width: 520px) {
  .sidebar {
    padding: calc(13px + env(safe-area-inset-top)) 16px 12px;
    gap: 12px;
  }
  .sidebar > .brand {
    font-size: 22px;
    min-height: 44px;
  }
  .sidebar nav {
    gap: 7px;
  }
  .admin-workspace .sidebar nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
  }
  .side-link {
    flex: 1 1 0;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
  }
  .side-link > span {
    font-size: 16px;
  }
  .logout {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .workspace-header {
    min-height: 52px;
    padding: 13px 16px;
  }
  #workspace:not(.auth-main) {
    padding: 25px 16px calc(38px + env(safe-area-inset-bottom));
  }
  .workspace-footer {
    padding: 18px 16px;
    line-height: 1.5;
  }
  .page-title {
    margin-bottom: 24px;
  }
  .page-title h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: .94;
  }
  .page-title .button,
  .form-submit .button {
    width: 100%;
    min-height: 50px;
  }
  .page-actions {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 12px;
  }
  .conversation-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .page-actions .link-button {
    align-self: flex-end;
  }
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stat-grid article:first-child {
    grid-column: 1 / -1;
  }
  .stat-grid article {
    min-width: 0;
    padding: 16px;
  }
  .stat-grid strong {
    font-size: 36px;
  }
  .filter-tabs {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .filter-tabs > button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 8px 10px 10px;
  }
  .purchase-card {
    padding: 16px;
  }
  .purchase-top,
  .purchase-bottom {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .purchase-body {
    align-items: flex-start;
  }
  .purchase-body h3 {
    line-height: 1.05;
  }
  .card-arrow {
    display: none;
  }
  .help-band {
    align-items: flex-start;
  }
  .help-band > div {
    flex: 1;
    min-width: 0;
  }
  .list-heading button,
  .help-band > .text-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .form-panel,
  .panel {
    padding: 20px 16px;
  }
  .form-row,
  .quote-inputs {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .amazon-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .amazon-button {
    width: 100%;
    min-height: 48px;
  }
  .mode-options label {
    min-height: 62px;
    padding: 14px;
  }
  .address-source {
    flex-direction: column;
  }
  .address-source label {
    min-height: 48px;
  }
  .manual-address-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .manual-address-grid .field,
  .manual-address-grid .field:last-child {
    grid-column: auto;
  }
  .form-aside {
    padding-inline: 0;
  }
  .form-aside h2 {
    font-size: 39px;
  }
  .detail-toolbar {
    margin-bottom: 22px;
  }
  .detail-toolbar button,
  .back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  .product-summary {
    align-items: flex-start;
  }
  .next-step {
    padding: 16px;
    align-items: flex-start;
  }
  .cost-row,
  .cost-total {
    gap: 10px;
  }
  .cost-total strong {
    font-size: 21px !important;
  }
  .filters > .field,
  .filters > .field:nth-child(2),
  .filters .button {
    flex: 1 0 100%;
    width: 100%;
  }
  .operation-row {
    padding: 16px;
  }
  .user-actions {
    padding-left: 0;
  }
  .user-actions .button {
    flex: 1;
    min-height: 44px;
  }
  .auth-aside {
    padding: 15px 18px;
  }
  .auth-main {
    min-height: calc(100svh - 69px);
    padding: 20px 18px calc(24px + env(safe-area-inset-bottom));
    gap: 28px;
  }
  .auth-main > .back-link {
    align-self: flex-start;
  }
  .auth-card h2 {
    font-size: 44px;
  }
  .clerk-auth-card > .tag {
    display: none;
  }
  .clerk-auth-card .auth-help {
    display: none;
  }
  .clerk-auth-card h2 {
    font-size: 36px;
    margin-bottom: 7px;
  }
  .auth-card > p {
    margin-bottom: 24px;
  }
  .clerk-auth-card > p {
    margin-bottom: 8px;
    line-height: 1.45;
  }
  .auth-card .field {
    margin-bottom: 16px;
  }
  #clerk-sign-in {
    min-height: 280px;
    margin: 8px 0 0;
  }
  .toast {
    bottom: calc(16px + env(safe-area-inset-bottom));
  }
}
@media (max-width: 360px) {
  .sidebar {
    padding-inline: 13px;
  }
  .side-link {
    font-size: 11px;
    gap: 7px;
  }
  #workspace:not(.auth-main) {
    padding-inline: 13px;
  }
  .pilot-indicator {
    letter-spacing: .06em;
  }
  .purchase-card,
  .form-panel,
  .panel {
    padding-inline: 14px;
  }
}
.payment-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 24px; }
.payment-panel { margin-top: 24px; }
.payment-instructions { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--surface, #f5f5f5); border-radius: 8px; }
.payment-receipt { padding-block: 20px; border-bottom: 1px solid #dedede; overflow-wrap: anywhere; }
.payment-receipt form, .payment-panel .form-panel { display: grid; gap: 16px; margin-top: 20px; }
