:root {
  --color-orange: #ff6b35;
  --color-orange-hover: #ff8c42;
  --color-navy: #1b2a4a;
  --color-navy-2: #2d4470;
  --color-bg: #e8edf5;
  --color-surface: #f2f5fa;
  --color-text: #374151;
  --color-text-dark: #1b2a4a;
  --color-border: #d8dee9;
  --color-red: #ef4444;
  --color-red-light: #fef2f2;
  --color-green: #2ecc8a;
  --color-green-light: #d8f5eb;
  --color-amber: #f59e0b;
  --color-amber-light: #fef9c3;
  --color-yellow: #ffd23f;
  --color-yellow-light: #fff8d8;
  --color-white: #fff;
  --font-heading: "Nunito", system-ui, sans-serif;
  --font-body: "Noto Sans JP", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-md: 0 2px 8px rgba(0, 0, 0, .08);
  --sidebar-width: 220px;
  --bottom-nav-height: 56px;
}

.secondary-link {
  display: block;
  margin-top: 14px;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.success-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius-md);
  background: var(--color-green-light);
  color: #1a8a5a;
  font-size: 14px;
}

.page-subtitle {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 14px;
}

.wizard-bar {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.wizard-step {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.wizard-step::before {
  content: "";
  position: absolute;
  top: 14px;
  right: -50%;
  z-index: 0;
  width: 100%;
  height: 2px;
  background: var(--color-border);
}

.wizard-step.done::before {
  background: var(--color-green);
}

.wizard-step:last-child::before {
  display: none;
}

.wizard-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 900;
}

.wizard-dot.active {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 0 0 4px rgba(255, 107, 53, .2);
}

.wizard-dot.done {
  background: var(--color-green);
  color: var(--color-white);
}

.wizard-dot.todo {
  background: var(--color-border);
  color: var(--color-text);
}

.wizard-label {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.wizard-label.active {
  color: var(--color-orange);
  font-weight: 700;
}

.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 20px;
}

.wizard-layout.narrow-side {
  grid-template-columns: 1fr 300px;
}

.allowance-step-layout {
  align-items: start;
}

.allowance-step-card .section-subtitle {
  margin-bottom: 16px;
}

.card-body {
  padding: 24px;
}

.section-title {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-size: 17px;
  font-weight: 900;
}

.section-subtitle {
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 13px;
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 4px 0;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

textarea.form-control {
  resize: vertical;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}

.wizard-actions.split {
  align-items: center;
  justify-content: space-between;
}

.wizard-action-group {
  display: flex;
  gap: 8px;
}

.wizard-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tip-card {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.tip-title {
  margin-bottom: 8px;
  color: #ffd23f;
  font-size: 13px;
  font-weight: 700;
}

.tip-card p {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.8;
}

.card.wizard-step1-point-card {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.card.wizard-step1-point-card .tip-title {
  margin-bottom: 8px;
  color: var(--color-yellow);
  font-size: 13px;
  font-weight: 700;
}

.card.wizard-step1-point-card p {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.8;
}

.side-title {
  margin-bottom: 8px;
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
}

.side-time {
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
}

.side-note {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 13px;
}

.progress-track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  background: var(--color-orange);
}

.definition-grid {
  margin-bottom: 20px;
}

.number-with-unit {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.number-with-unit span {
  color: var(--color-text);
  font-size: 14px;
}

.numeric-input {
  width: 104px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}

.wizard-step2-card .numeric-input {
  width: 100px;
}

.check-result {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}

.check-safe {
  background: var(--color-green-light);
  color: #1a8a5a;
}

.check-warning {
  background: #fff9e6;
  color: #8a6500;
}

.check-danger {
  background: var(--color-red-light);
  color: var(--color-red);
}

.check-empty {
  background: var(--color-surface);
  color: var(--color-text);
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}

.commute-field {
  margin-top: 10px;
}

.is-hidden {
  display: none;
}

.radio-card-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-card-list.horizontal {
  flex-direction: row;
  flex-wrap: wrap;
}

.radio-card-list.horizontal label {
  flex: 1;
  min-width: 220px;
}

.radio-card-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.radio-card-list label.is-selected {
  border: 2px solid var(--color-orange);
  background: #fff0ea;
}

.radio-card-list span {
  color: var(--color-text-dark);
  font-size: 14px;
  font-weight: 600;
}

.compliance-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.compliance-summary div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.compliance-summary span {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.compliance-summary strong {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 11px;
}

.compliance-summary strong.warning {
  background: var(--color-amber);
}

.compliance-summary strong.danger {
  background: var(--color-red);
}

.compliance-summary strong.empty {
  background: #9ca3af;
}

.card.wizard-step2-compliance-card {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.card.wizard-step2-compliance-card .tip-title {
  margin-bottom: 10px;
  color: var(--color-yellow);
  font-size: 13px;
  font-weight: 700;
}

.card.wizard-step2-compliance-card .compliance-summary {
  gap: 8px;
}

.card.wizard-step2-compliance-card .compliance-summary div {
  align-items: center;
}

.card.wizard-step2-compliance-card .compliance-summary span {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
}

.card.wizard-step2-compliance-card .compliance-summary strong {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--color-green);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
}

.wizard-step2-layout .side-title {
  margin-bottom: 8px;
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
}

.wizard-step2-layout .side-note {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.8;
}

.allowance-table-wrap {
  margin-bottom: 14px;
}

.allowance-table {
  min-width: 640px;
}

.allowance-table th,
.allowance-table td {
  white-space: nowrap;
}

.allowance-table th:not(:first-child),
.allowance-table td:not(:first-child) {
  text-align: center;
}

.position-cell {
  font-weight: 700;
}

.money-input {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.money-input span {
  color: var(--color-text-dark);
  font-size: 13px;
  font-weight: 800;
}

.money-input input {
  width: 70px;
  padding: 6px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-dark);
  font-size: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  text-align: center;
  outline: none;
}

.money-input input:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .1);
}

.btn-sm {
  min-height: 34px;
  padding: 6px 14px;
  font-size: 13px;
}

.disabled-button {
  margin-bottom: 20px;
}

.saving-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

.saving-value {
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
}

.saving-note {
  margin-top: 2px;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
}

.saving-disclaimer {
  margin-top: 10px;
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  line-height: 1.7;
}

.card.allowance-saving-card {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.card.allowance-saving-card .saving-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

.card.allowance-saving-card .saving-value {
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
}

.card.allowance-saving-card .saving-note {
  margin-top: 2px;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
}

.card.allowance-saving-card .saving-disclaimer {
  margin-top: 10px;
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  line-height: 1.7;
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.market-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.market-list span {
  color: var(--color-text);
}

.market-list strong {
  color: var(--color-text-dark);
}

.wizard-card-wide {
  max-width: 760px;
}

.wizard-step4-card {
  max-width: 760px;
}

.wizard-step4-card .section-title {
  margin-bottom: 4px;
  font-size: 17px;
  font-weight: 900;
}

.wizard-step4-card .section-subtitle {
  margin-bottom: 22px;
  font-size: 13px;
}

.wizard-step4-card .rule-grid {
  gap: 24px;
  margin-bottom: 20px;
}

.wizard-step4-card .radio-card-list {
  gap: 8px;
}

.wizard-step4-card .radio-card-list label {
  min-height: 44px;
  padding: 10px 14px;
}

.wizard-step4-card .radio-card-list span {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.wizard-step4-card .radio-card-list label.is-selected span {
  color: var(--color-navy);
  font-weight: 600;
}

.wizard-step4-card > form > .form-group {
  margin-bottom: 22px;
}

.rule-grid {
  gap: 24px;
  margin-bottom: 20px;
}

.review-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.wizard-step5-layout {
  align-items: start;
}

.summary-list {
  display: flex;
  flex-direction: column;
}

.summary-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
}

.summary-list > div:last-child {
  border-bottom: none;
}

.summary-list span {
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

.summary-list strong {
  color: var(--color-navy);
  font-size: 14px;
  text-align: right;
}

.summary-list .summary-block {
  display: block;
}

.summary-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 13px;
}

.summary-table th,
.summary-table td {
  padding: 6px 8px;
  text-align: center;
}

.summary-table th:first-child,
.summary-table td:first-child {
  text-align: left;
}

.summary-table tr:nth-child(odd) {
  background: var(--color-surface);
}

.review-actions {
  margin-top: 20px;
}

.review-actions .wizard-action-group {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.review-actions form {
  display: inline-flex;
}

.card.review-saving-card {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.review-saving-label {
  margin-bottom: 10px;
  color: var(--color-yellow);
  font-size: 12px;
  font-weight: 700;
}

.card.review-saving-card .saving-value {
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.1;
}

.card.review-saving-card .saving-note {
  margin: 4px 0 12px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.card.review-saving-card .saving-disclaimer {
  margin-top: 10px;
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  line-height: 1.7;
}

.saving-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.saving-split div {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
  text-align: center;
}

.saving-split span {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: 11px;
}

.saving-split strong {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 900;
}

.tax-check-card {
  border-color: var(--color-green);
  border-width: 2px;
}

.tax-check-card .side-title {
  margin-bottom: 8px;
  color: var(--color-green);
}

.check-list-plain {
  display: flex;
  flex-direction: column;
  gap: 6px;
  list-style: none;
}

.check-list-plain li {
  color: var(--color-text-dark);
  font-size: 13px;
}

.check-list-plain li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--color-green);
  font-weight: 900;
}

.completion-container {
  max-width: 680px;
  margin: 0 auto;
}

.completion-card {
  margin-bottom: 20px;
  text-align: center;
}

.complete-mark {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 9999px;
  background: var(--color-green-light);
  color: var(--color-green);
  font-size: 44px;
  font-weight: 900;
}

.completion-card h2 {
  margin-bottom: 8px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
}

.completion-card > p {
  margin-bottom: 24px;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.7;
}

.completion-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  text-align: left;
}

.completion-summary span {
  display: block;
  color: var(--color-text);
  font-size: 12px;
}

.completion-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--color-navy);
  font-size: 14px;
}

.completion-saving {
  margin-bottom: 24px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--color-navy);
  text-align: center;
}

.completion-saving span {
  display: block;
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .65);
  font-size: 13px;
}

.completion-saving strong {
  display: block;
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
}

.completion-saving small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, .45);
  font-size: 12px;
}

.completion-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.center-link {
  text-align: center;
}

.center-link a {
  color: var(--color-text);
  font-size: 14px;
}

@media (max-width: 768px) {
  .card-body {
    padding: 16px;
  }

  .wizard-layout,
  .wizard-layout.narrow-side {
    grid-template-columns: 1fr;
  }

  .allowance-step-layout {
    display: block;
  }

  .allowance-step-layout .wizard-side {
    margin-top: 16px;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .wizard-step5-layout .wizard-side {
    margin-top: 16px;
  }

  .wizard-label {
    display: none;
  }

  .wizard-dot {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }

  .wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-actions.split,
  .wizard-action-group {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-actions .btn {
    width: 100%;
  }

  .review-actions form,
  .review-actions form .btn {
    width: 100%;
  }

  .saving-split {
    grid-template-columns: 1fr;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text-dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

strong {
  font-weight: 900;
}

button,
input {
  font-family: var(--font-body);
}

.auth-page {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  padding: 48px 44px;
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.auth-card-wide {
  max-width: 560px;
}

.brand-block {
  margin-bottom: 30px;
  text-align: center;
}

.brand-logo {
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.brand-copy {
  margin-top: 8px;
  color: var(--color-text);
  font-size: 13px;
}

.register-brand {
  margin-bottom: 26px;
}

.register-logo {
  font-size: 28px;
}

.register-title {
  margin-top: 8px;
  color: var(--color-navy);
  font-size: 20px;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 9999px;
  font-weight: 700;
  transition: background .18s, transform .18s, opacity .18s;
  white-space: nowrap;
  cursor: pointer;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: .62;
}

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(255, 107, 53, .3);
}

.btn-primary:hover {
  background: var(--color-orange-hover);
  transform: translateY(-1px);
}

.btn-success {
  background: var(--color-green);
  color: var(--color-white);
}

.btn-danger {
  background: var(--color-red);
  color: var(--color-white);
}

.btn-danger:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}

.btn-block {
  width: 100%;
  padding: 14px;
}

.btn-md {
  min-height: 42px;
  padding: 10px 20px;
  font-size: 14px;
}

.btn.disabled,
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .55;
  pointer-events: none;
}

.google-button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
}

.google-signin-host {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

#google-login-form {
  display: none;
}

.coming-soon {
  margin-top: 8px;
  color: #9ca3af;
  font-size: 11px;
  text-align: center;
}

.divider-label {
  position: relative;
  margin: 22px 0;
  text-align: center;
}

.divider-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-border);
}

.divider-label span {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group.compact {
  margin-bottom: 8px;
}

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

.form-label-required::after {
  content: " *";
  color: var(--color-red);
}

.form-help {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 11px;
  line-height: 1.6;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text-dark);
  font-size: 14px;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.form-control:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, .1);
}

.form-control::placeholder {
  color: #b0b8c8;
}

.form-control.is-error {
  border-color: var(--color-red);
}

.form-error {
  margin-top: 4px;
  color: var(--color-red);
  font-size: 12px;
}

.warning-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1.5px solid #ffd23f;
  border-radius: var(--radius-md);
  background: #fff9e6;
  color: #8a6500;
  font-size: 14px;
  line-height: 1.7;
}

.error-banner {
  margin-bottom: 16px;
  padding: 12px 16px;
  border: 1.5px solid var(--color-red);
  border-radius: var(--radius-md);
  background: var(--color-red-light);
  color: var(--color-red);
  font-size: 14px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.form-actions {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  margin-top: 20px;
}

.btn-action {
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 9999px;
}

.remember-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
}

.text-link,
.register-link a {
  color: var(--color-orange);
  font-weight: 700;
}

.text-link {
  font-size: 13px;
}

.login-button {
  font-size: 15px;
}

.register-link {
  margin-top: 20px;
  color: var(--color-text);
  font-size: 14px;
  text-align: center;
}

.auth-disclaimer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: #aaa;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.error-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 107, 53, .18), transparent 32rem),
    linear-gradient(135deg, var(--color-navy), var(--color-navy-2));
}

.error-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-card {
  width: min(100%, 560px);
  padding: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.error-brand {
  margin-bottom: 26px;
}

.error-logo {
  display: inline-block;
}

.error-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  min-height: 42px;
  margin-bottom: 16px;
  border-radius: 9999px;
  background: var(--color-orange);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.error-title {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.35;
}

.error-message {
  margin: 12px auto 0;
  max-width: 440px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.8;
}

.error-support {
  margin: 22px 0 0;
  text-align: left;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.error-disclaimer {
  margin-top: 28px;
}

.auth-help-text {
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.8;
}

.legal-page {
  min-height: 100vh;
  background: var(--color-bg);
}

.legal-shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.legal-card {
  padding: 36px;
}

.legal-kicker {
  margin-bottom: 6px;
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 900;
}

.legal-card h1 {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
}

.legal-updated {
  margin-bottom: 24px;
  color: #9ca3af;
  font-size: 13px;
}

.legal-card h2 {
  margin: 28px 0 10px;
  color: var(--color-navy);
  font-size: 17px;
  font-weight: 900;
}

.legal-card p,
.legal-card li {
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.9;
}

.legal-card ul {
  margin: 10px 0 0 1.2em;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.step-dot {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--color-border);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 900;
}

.step-dot.active,
.step-dot.done {
  background: var(--color-orange);
  color: var(--color-white);
}

.step-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
}

.step-line.active {
  background: var(--color-orange);
}

.step-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--color-text);
  font-size: 11px;
}

.step-labels .active {
  color: var(--color-orange);
  font-weight: 700;
}

.plan-heading {
  margin-bottom: 12px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.plan-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 2px solid var(--color-orange);
  border-radius: var(--radius-lg);
  background: #fff0ea;
}

.billing-plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px;
  border: 1.5px solid var(--color-green);
  border-radius: var(--radius-md);
  background: var(--color-green-light);
}

.billing-plan-card span,
.billing-plan-card small {
  display: block;
  color: var(--color-text);
  font-size: 12px;
}

.billing-plan-card strong {
  display: block;
  margin: 3px 0;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.plan-name {
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 900;
}

.plan-price {
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
}

.plan-price span {
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
}

.plan-badge {
  flex: none;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
}

.plan-features {
  color: var(--color-text);
  font-size: 13px;
  line-height: 2;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--color-text);
  font-size: 13px;
  cursor: pointer;
}

.terms-label input {
  margin-top: 2px;
}

.terms-label a {
  color: var(--color-orange);
}

.terms-error {
  margin: -12px 0 16px;
}

.completion-panel {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: #d8f5eb;
  color: #1a8a5a;
}

.completion-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #2ecc8a;
  color: var(--color-white);
  font-size: 24px;
  font-weight: 900;
}

.completion-title {
  margin-bottom: 4px;
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 900;
}

.completion-panel p {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.7;
}

.placeholder-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.placeholder-card {
  width: min(720px, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.placeholder-card h1 {
  margin-bottom: 8px;
  color: var(--color-navy);
  font-size: 26px;
  font-weight: 900;
}

.placeholder-card p {
  color: var(--color-text);
  line-height: 1.7;
}

.eyebrow {
  margin-bottom: 4px;
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 20px 12px;
  background: var(--color-navy);
}

.sidebar-logo {
  padding: 10px 8px 24px;
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: .5px;
}

.sidebar-logo span {
  color: var(--color-white);
}

.nav-section {
  padding: 10px 12px 4px;
  color: rgba(255, 255, 255, .35);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  font-weight: 500;
  transition: background .18s, color .18s;
}

.nav-item:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--color-white);
}

.nav-item.active {
  background: var(--color-orange);
  color: var(--color-white);
  font-weight: 700;
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .08);
}

.sidebar-footer-plan {
  color: rgba(255, 255, 255, .5);
  font-size: 11px;
}

.sidebar-footer-name {
  margin-top: 2px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
}

.sidebar-footer-company {
  margin-top: 1px;
  color: rgba(255, 255, 255, .4);
  font-size: 11px;
}

.main-content {
  min-width: 0;
  flex: 1;
  margin-left: var(--sidebar-width);
  padding: 32px;
}

.page-header {
  margin-bottom: 24px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.greeting {
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 14px;
}

.page-title {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-grid {
  margin-bottom: 24px;
}

.card {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.kpi-card {
  padding: 20px 22px;
}

.kpi-label {
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 12px;
}

.kpi-value {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 900;
}

.kpi-note {
  margin-top: 4px;
  color: var(--color-text);
  font-size: 12px;
}

.text-green {
  color: var(--color-green);
}

.text-orange {
  color: var(--color-orange);
}

.text-amber {
  color: var(--color-amber);
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--color-border);
}

.card-header h2 {
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 700;
}

.card-header a {
  color: var(--color-orange);
  font-size: 13px;
  font-weight: 700;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead tr {
  background: var(--color-navy);
}

.data-table thead th {
  padding: 12px 16px;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.data-table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}

.data-table tbody tr:hover td {
  background: var(--color-surface);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table span {
  color: var(--color-text);
  font-size: 12px;
}

.amount {
  color: var(--color-orange);
  font-weight: 900;
  text-align: right;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
}

.badge-green {
  background: var(--color-green-light);
  color: #1a8a5a;
}

.badge-amber {
  background: var(--color-amber-light);
  color: #92400e;
}

.badge-navy {
  background: var(--color-border);
  color: var(--color-navy);
}

.muted-text {
  color: #9ca3af;
  font-size: 13px;
}

.empty-table {
  padding: 28px 16px !important;
  color: var(--color-text);
  text-align: center;
}

.trip-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.trip-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.trip-filter-tabs,
.trip-filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 9999px;
  background: var(--color-white);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

.filter-tab.active {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

.trip-month-select {
  width: 150px;
}

.trip-search-input {
  width: 220px;
}

.trip-list-table form {
  margin: 0;
}

.trip-list-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.trip-evidence-count {
  display: inline-flex !important;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: var(--color-green-light);
  color: #047857 !important;
  font-weight: 700;
}

.pagination-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 13px;
}

.pagination-actions {
  display: flex;
  gap: 6px;
}

.policy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.policy-current-card {
  margin-bottom: 20px;
  padding: 20px 24px;
  border-color: var(--color-green);
  border-width: 2px;
}

.policy-current-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.policy-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-navy);
}

.policy-title-line strong {
  font-family: var(--font-heading);
  font-size: 20px;
}

.policy-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.policy-metrics {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.policy-metrics span {
  display: block;
  color: var(--color-text);
  font-size: 12px;
}

.policy-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--color-navy);
  font-size: 14px;
}

.policy-metrics .text-orange {
  color: var(--color-orange);
}

.policy-metrics .text-green {
  color: var(--color-green);
}

.section-heading {
  margin: 0 0 12px;
  color: var(--color-navy);
  font-size: 16px;
  font-weight: 900;
}

.empty-state {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  padding: 36px 24px;
  text-align: center;
}

.empty-state.compact {
  gap: 4px;
  padding: 28px 20px;
}

.empty-state strong {
  color: var(--color-navy);
  font-size: 18px;
}

.empty-state span {
  max-width: 560px;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.7;
}

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

.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.simulator-field {
  margin-bottom: 20px;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--color-orange);
}

.slider-value {
  min-width: 88px;
  color: var(--color-orange);
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 900;
  text-align: right;
}

.tax-rate-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tax-rate-buttons .btn {
  min-width: 128px;
  flex-direction: column;
  line-height: 1.25;
}

.tax-rate-buttons span {
  font-size: 10px;
  font-weight: 500;
}

.simulator-warning {
  margin-bottom: 0;
  font-size: 12px;
}

.simulator-results {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.simulator-total-card {
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.simulator-total {
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 900;
  line-height: 1.1;
}

.simulator-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.simulator-metric {
  margin-top: 4px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
}

.simulator-roi-card {
  border-color: var(--color-orange);
  border-width: 2px;
}

.roi-value {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 900;
}

.settings-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
}

.settings-content {
  min-width: 0;
}

.sp-settings-select {
  display: none;
  margin-bottom: 16px;
}

.settings-menu {
  height: fit-content;
  padding: 12px;
}

.settings-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 4px;
  padding: 10px 12px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.settings-menu-item.active {
  background: var(--color-orange);
  color: var(--color-white);
}

.settings-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--color-border);
  color: var(--color-navy);
  font-size: 18px;
  font-weight: 900;
}

.settings-subtitle {
  margin: 22px 0 12px;
  padding-left: 10px;
  border-left: 3px solid var(--color-orange);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 700;
}

.settings-media-box,
.settings-profile-box,
.settings-info-box,
.payment-method-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.settings-media-box {
  margin-bottom: 4px;
}

.settings-media-box p,
.settings-help {
  margin-top: 6px;
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.7;
}

.settings-logo-placeholder {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  font-size: 32px;
}

.settings-avatar {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
}

.settings-profile-box {
  margin-bottom: 16px;
}

.settings-profile-box strong,
.settings-profile-box span,
.settings-info-box small,
.settings-info-box strong,
.payment-method-box strong,
.payment-method-box span {
  display: block;
}

.settings-profile-box strong {
  margin-bottom: 2px;
  color: var(--color-navy);
  font-size: 15px;
}

.settings-profile-box span,
.payment-method-box span {
  margin-bottom: 10px;
  color: var(--color-text);
  font-size: 13px;
}

.settings-info-box {
  margin-bottom: 14px;
}

.settings-info-box > span {
  font-size: 18px;
}

.settings-info-box small {
  color: var(--color-text);
  font-size: 12px;
}

.settings-info-box strong,
.payment-method-box strong {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.settings-actions-bordered {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.account-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.account-danger-zone strong {
  display: block;
  color: var(--color-red);
  font-size: 14px;
  font-weight: 900;
}

.account-danger-zone span {
  display: block;
  margin-top: 2px;
  color: var(--color-text);
  font-size: 12px;
}

.settings-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--color-navy);
}

.settings-tip-card > span {
  flex-shrink: 0;
  font-size: 24px;
}

.settings-tip-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-yellow);
  font-size: 13px;
}

.settings-tip-card p {
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  line-height: 1.7;
}

.tax-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.tax-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  font-size: 20px;
}

.tax-info {
  min-width: 0;
  flex: 1;
}

.tax-name {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.tax-meta {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 12px;
}

.empty-panel {
  padding: 18px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
}

.toggle {
  position: relative;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
}

.toggle input {
  width: 0;
  height: 0;
  opacity: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: var(--color-border);
  cursor: pointer;
  transition: background .2s;
}

.toggle-track::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
  transition: transform .2s;
}

.toggle input:checked + .toggle-track {
  background: var(--color-green);
}

.toggle input:checked + .toggle-track::before {
  transform: translateX(22px);
}

.toggle.disabled .toggle-track {
  cursor: not-allowed;
  opacity: .45;
}

.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  padding: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: border-color .18s;
}

.notify-item:hover {
  border-color: var(--color-navy);
}

.notify-item-body {
  min-width: 0;
  flex: 1;
}

.notify-item-title {
  margin-bottom: 3px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.notify-item-desc {
  color: var(--color-text);
  font-size: 12px;
  line-height: 1.6;
}

.notify-select {
  width: 160px;
  margin-top: 8px;
  padding: 6px 32px 6px 10px;
  font-size: 13px;
}

.inline-pill {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 9999px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 400;
}

.plan-current {
  margin-bottom: 14px;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: var(--color-navy);
  color: var(--color-white);
}

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

.plan-current-header span,
.plan-current-grid span {
  display: block;
  color: rgba(255, 255, 255, .6);
  font-size: 12px;
}

.plan-current-header strong {
  display: block;
  margin-top: 4px;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 900;
}

.plan-current-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.plan-current-grid > div {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .1);
}

.plan-current-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--color-white);
  font-size: 15px;
  font-weight: 700;
}

.plan-current-grid small {
  font-size: 11px;
  font-weight: 400;
}

.plan-upgrade {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px 20px;
  border: 1.5px solid var(--color-yellow);
  border-radius: var(--radius-md);
  background: var(--color-yellow-light);
}

.plan-upgrade > span {
  flex-shrink: 0;
  font-size: 28px;
}

.plan-upgrade div {
  flex: 1;
}

.plan-upgrade strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-navy);
  font-size: 14px;
}

.plan-upgrade p {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.6;
}

.payment-method-box {
  margin-bottom: 20px;
  border: 1.5px solid var(--color-border);
}

.payment-method-box div:nth-child(2) {
  flex: 1;
}

.payment-card-icon {
  width: 44px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--color-navy);
  font-size: 18px;
}

.invoice-list {
  margin-bottom: 20px;
}

.invoice-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
}

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

.invoice-row div {
  flex: 1;
}

.invoice-row strong,
.invoice-row span {
  display: block;
}

.invoice-row strong {
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 600;
}

.invoice-row span {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 12px;
}

.danger-zone {
  margin-top: 24px;
  padding: 20px;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-md);
  background: #fff5f5;
}

.danger-zone strong {
  display: block;
  margin-bottom: 8px;
  color: var(--color-red);
  font-size: 14px;
  font-weight: 700;
}

.danger-zone p {
  margin-bottom: 16px;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.8;
}

.settings-list {
  display: flex;
  flex-direction: column;
}

.settings-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.settings-list-row.no-border {
  border-bottom: none;
}

.settings-list-row strong,
.settings-list-row span {
  display: block;
}

.settings-list-row strong {
  color: var(--color-navy);
  font-size: 14px;
}

.settings-list-row span {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 12px;
}

.tax-invite-list {
  margin-top: 18px;
}

.invite-url {
  display: block;
  margin-top: 6px;
  padding: 6px 8px;
  overflow-wrap: anywhere;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-dark);
  font-size: 12px;
}

.settings-toggle {
  min-width: 48px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: var(--color-border);
  color: var(--color-text);
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.settings-toggle.is-on {
  background: var(--color-green-light);
  color: #1a8a5a;
}

.plan-status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  border: 2px solid var(--color-green);
  border-radius: var(--radius-md);
  background: var(--color-green-light);
}

.plan-status-card span,
.plan-status-card small {
  display: block;
}

.plan-status-card span {
  color: #1a8a5a;
  font-size: 12px;
  font-weight: 700;
}

.plan-status-card strong {
  display: block;
  margin-top: 2px;
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 22px;
}

.plan-status-card small {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 13px;
}

.trip-apply-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
}

.trip-form-column,
.trip-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.map-placeholder,
.upload-placeholder,
.evidence-upload-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 118px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  text-align: center;
}

.evidence-upload-box {
  justify-content: flex-start;
  min-height: 92px;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.evidence-upload-box:hover {
  border-color: var(--color-orange);
  background: #fff7ed;
}

.evidence-upload-box input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.evidence-upload-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--color-orange);
  color: var(--color-white);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.evidence-upload-copy {
  min-width: 0;
}

.map-placeholder strong,
.upload-placeholder strong,
.evidence-upload-box strong,
.map-placeholder span,
.upload-placeholder span,
.evidence-upload-copy,
.evidence-upload-copy span {
  display: block;
}

.map-placeholder strong,
.upload-placeholder strong,
.evidence-upload-box strong {
  color: var(--color-navy);
  font-size: 14px;
}

.map-placeholder span,
.upload-placeholder span,
.evidence-upload-copy span {
  font-size: 12px;
}

.evidence-upload-box strong + span {
  margin-top: 4px;
}

.evidence-selected-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.evidence-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
}

.evidence-selected-item strong {
  min-width: 0;
  overflow: hidden;
  color: var(--color-navy);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.evidence-selected-item span {
  flex: 0 0 auto;
  color: var(--color-muted);
  font-size: 12px;
}

.trip-map-status {
  justify-content: flex-start;
  min-height: auto;
  padding: 14px 16px;
  border-style: solid;
  background: #eff6ff;
  color: #1e40af;
  text-align: left;
}

.trip-map-status-content {
  width: 100%;
}

.trip-map-status strong {
  display: block;
  margin-bottom: 6px;
  color: #1e40af;
  font-size: 14px;
  font-weight: 900;
}

.trip-map-status span {
  color: #475569;
  line-height: 1.7;
}

.trip-map-status p {
  margin: 10px 0 0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.trip-map-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.trip-map-result-grid div {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .72);
}

.trip-map-result-grid small,
.trip-map-result-grid span {
  display: block;
}

.trip-map-result-grid small {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.trip-map-result-grid span {
  margin-top: 2px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 900;
}

.trip-map-status[data-state="loading"] {
  background: #fff7ed;
  border-color: #fed7aa;
}

.trip-map-status[data-state="success"] {
  background: var(--color-green-light);
  border-color: #bbf7d0;
}

.trip-map-status[data-state="success"] strong,
.trip-map-status[data-state="success"] .trip-map-result-grid span {
  color: #047857;
}

.trip-map-status[data-state="warning"] {
  background: #fef3c7;
  border-color: #fbbf24;
}

.trip-map-status[data-state="warning"] strong,
.trip-map-status[data-state="warning"] .trip-map-result-grid span {
  color: #92400e;
}

.trip-map-status[data-state="error"] {
  background: #fef2f2;
  border-color: #fecaca;
}

.trip-map-status[data-state="error"] strong {
  color: var(--color-red);
}

.pac-container {
  z-index: 10000;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  color: var(--color-navy);
  font-family: var(--font-base);
}

.trip-calc-card {
  overflow: hidden;
  border-color: var(--color-navy);
  background: var(--color-navy);
}

.trip-calc-body {
  padding: 20px;
}

.trip-calc-body > span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, .65);
  font-size: 12px;
}

.trip-calc-body div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}

.trip-calc-body small {
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
}

.trip-calc-body strong {
  color: var(--color-white);
  font-size: 13px;
}

.trip-calc-body .trip-total {
  align-items: center;
  margin-top: 10px;
  margin-bottom: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.trip-total small {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 900;
}

.trip-total strong {
  color: var(--color-green);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
}

.trip-policy-note {
  padding: 10px 20px;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .45);
  font-size: 11px;
}

.check-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-item {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
}

.check-item.safe {
  background: var(--color-green-light);
}

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

.check-item strong {
  color: var(--color-navy);
  font-size: 13px;
}

.check-item span {
  margin-top: 2px;
  color: var(--color-text);
  font-size: 11px;
}

.trip-disclaimer {
  padding: 0;
  text-align: left;
}

.trip-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.trip-back-link {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.trip-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.trip-detail-main,
.trip-detail-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.trip-detail-grid div,
.trip-detail-note {
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.trip-detail-grid span,
.trip-detail-note span {
  display: block;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
}

.trip-detail-grid strong {
  display: block;
  margin-top: 5px;
  overflow-wrap: anywhere;
  color: var(--color-navy);
  font-size: 14px;
}

.trip-detail-note {
  margin-top: 12px;
}

.trip-detail-note p {
  margin-top: 6px;
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.evidence-gallery {
  display: grid;
  gap: 14px;
}

.evidence-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.evidence-preview {
  min-height: 180px;
  background: var(--color-surface);
}

.evidence-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.evidence-file-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  min-height: 180px;
  color: var(--color-text);
}

.evidence-file-placeholder strong {
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 900;
}

.evidence-file-placeholder span {
  font-size: 12px;
}

.evidence-card-body {
  min-width: 0;
  padding: 16px;
}

.evidence-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.evidence-card-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-navy);
  font-size: 15px;
  font-weight: 900;
}

.evidence-card-title span {
  flex: 0 0 auto;
  color: var(--color-text);
  font-size: 12px;
}

.evidence-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.evidence-meta-list,
.evidence-exif-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.evidence-meta-list div,
.evidence-exif-list div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.evidence-meta-list dt,
.evidence-exif-list dt {
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
}

.evidence-meta-list dd,
.evidence-exif-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-navy);
  font-size: 12px;
  font-weight: 700;
}

.hash-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  line-height: 1.6;
}

.evidence-exif-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
}

.evidence-exif-details summary {
  color: var(--color-orange);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.evidence-empty-meta {
  margin-top: 12px;
}

.evidence-warning {
  margin: 0;
}

.check-item.attention {
  background: var(--color-amber-light);
}

.disclaimer {
  margin-top: 20px;
  padding: 0 16px;
  color: #9ca3af;
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
}

.sp-topbar,
.sp-bottom-nav {
  display: none;
}

@media (max-width: 640px) {
  .auth-card {
    padding: 36px 24px;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trip-map-result-grid {
    grid-template-columns: 1fr;
  }

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

  .form-actions {
    display: flex;
  }
}

@media (max-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .simulator-layout {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .trip-apply-layout {
    grid-template-columns: 1fr;
  }

  .trip-detail-layout {
    grid-template-columns: 1fr;
  }

  .trip-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
  }

  .main-content {
    margin-left: 0;
    padding: 16px 14px;
    padding-bottom: calc(var(--bottom-nav-height) + 16px);
  }

  .sp-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--color-navy);
  }

  .sp-topbar-title {
    flex: 1;
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
  }

  .sp-bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: 100%;
    height: var(--bottom-nav-height);
    display: flex;
    border-top: 1px solid var(--color-border);
    background: var(--color-white);
  }

  .sp-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #9ca3af;
    font-size: 10px;
    font-weight: 600;
  }

  .sp-nav-item.active {
    color: var(--color-orange);
  }

  .dashboard-header {
    align-items: stretch;
    flex-direction: column;
  }

  .policy-header,
  .policy-current-top,
  .trip-detail-header {
    align-items: stretch;
    flex-direction: column;
  }

  .trip-list-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .trip-list-actions .btn,
  .trip-list-actions form,
  .trip-list-actions button {
    width: 100%;
  }

  .trip-detail-grid {
    grid-template-columns: 1fr;
  }

  .evidence-card {
    grid-template-columns: 1fr;
  }

  .evidence-preview {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .evidence-card-title {
    flex-direction: column;
    gap: 4px;
  }

  .evidence-meta-list div,
  .evidence-exif-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .policy-actions {
    flex-direction: column;
  }

  .page-title {
    font-size: 20px;
  }

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

  .table-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .simulator-result-grid {
    grid-template-columns: 1fr;
  }

  .slider-row {
    align-items: stretch;
    flex-direction: column;
  }

  .slider-value {
    min-width: 0;
    text-align: left;
  }

  .settings-menu {
    display: none;
  }

  .sp-settings-select {
    display: block;
  }

  .settings-layout {
    display: block;
  }

  .settings-section.is-hidden {
    display: block;
    margin-top: 16px;
  }

  .settings-media-box,
  .settings-profile-box,
  .settings-info-box,
  .payment-method-box,
  .plan-upgrade,
  .tax-item,
  .invoice-row {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions {
    justify-content: stretch;
  }

  .settings-actions .btn,
  .danger-zone .btn,
  .payment-method-box .btn {
    width: 100%;
  }

  .plan-current-grid {
    grid-template-columns: 1fr;
  }

  .notify-select {
    width: 100%;
  }
}
