:root {
  --bg: #eef2f7;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #516079;
  --line: #d7deea;
  --brand: #0f766e;
  --brand-2: #0b5f59;
  --danger: #b42318;
  --nav-bg: #f6f8fc;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  background:
    radial-gradient(1200px 560px at 5% -10%, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(1000px 520px at 96% -12%, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0) 60%),
    linear-gradient(165deg, #07152e 0%, #081a3b 48%, #0a2048 100%);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 560px at 5% -10%, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0) 62%),
    radial-gradient(1000px 520px at 96% -12%, rgba(96, 165, 250, 0.16) 0%, rgba(96, 165, 250, 0) 60%),
    linear-gradient(165deg, #07152e 0%, #081a3b 48%, #0a2048 100%);
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

body::before {
  width: 520px;
  height: 520px;
  left: -140px;
  top: 14vh;
  background: radial-gradient(circle at 35% 35%, rgba(125, 211, 252, 0.24) 0%, rgba(125, 211, 252, 0.06) 42%, rgba(125, 211, 252, 0) 70%);
  animation: floatOrbA 22s ease-in-out infinite alternate;
}

body::after {
  width: 420px;
  height: 420px;
  right: -110px;
  top: 52vh;
  background: radial-gradient(circle at 55% 50%, rgba(59, 130, 246, 0.26) 0%, rgba(59, 130, 246, 0.07) 45%, rgba(59, 130, 246, 0) 72%);
  animation: floatOrbB 26s ease-in-out infinite alternate;
}

.wrap {
  width: min(1180px, 94vw);
  margin: 0 auto;
  min-height: 100vh;
  padding: 12px 0 10px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.wrap.accounting-wide {
  width: min(1183px, 94vw);
}

.login-shell {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: stretch;
}

.login-panel {
  background: linear-gradient(145deg, #0f172a 0%, #172137 60%, #1a2a41 100%);
  color: #f3f8ff;
  border-radius: 22px;
  padding: 38px;
  box-shadow: 0 20px 44px rgba(8, 15, 36, 0.28);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9dc8ff;
}

.login-panel h1 {
  margin: 0;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.02;
}

.login-copy {
  margin: 14px 0 24px;
  max-width: 54ch;
  color: #d2dcee;
  font-size: 17px;
  line-height: 1.5;
}

.login-btn {
  width: 100%;
  min-width: 0;
  max-width: 360px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 14px;
  background: linear-gradient(165deg, #1ab8a8, #129281 52%, #0f766e);
  box-shadow: 0 10px 26px rgba(14, 122, 115, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.guest-login-btn {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.login-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.login-btn:active {
  transform: translateY(0);
}

.login-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  flex-wrap: nowrap;
}

.login-actions .login-btn {
  flex: 0 0 auto;
  max-width: none;
}

.guest-login-form {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
}

.guest-login-form label {
  color: #d2dcee;
  font-weight: 600;
}

.guest-login-form input {
  background: rgba(255,255,255,0.95);
}

.guest-action-icons {
  gap: 0.35rem;
}

.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dce8ff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.icon-action-svg {
  width: 1.6rem;
  height: 1.6rem;
  display: block;
  pointer-events: none;
}

.icon-action-btn:hover:not(:disabled),
.icon-action-btn:focus-visible:not(:disabled) {
  background: rgba(125, 181, 255, 0.18);
  color: #fff;
  transform: translateY(-1px);
}

.icon-action-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.icon-action-btn-danger {
  color: #ffb4b4;
}

.icon-action-btn-warning {
  color: #ffb24a;
}

.icon-action-btn-warning:hover:not(:disabled),
.icon-action-btn-warning:focus-visible:not(:disabled) {
  background: rgba(255, 145, 0, 0.18);
  color: #ffd190;
}

.icon-action-btn-success {
  color: #8fe3a5;
}

.icon-action-btn-success:hover:not(:disabled),
.icon-action-btn-success:focus-visible:not(:disabled) {
  background: rgba(34, 197, 94, 0.16);
  color: #b7f3c6;
}

.icon-action-btn-info {
  color: #8fc5ff;
}

.icon-action-btn-info:hover:not(:disabled),
.icon-action-btn-info:focus-visible:not(:disabled) {
  background: rgba(59, 130, 246, 0.16);
  color: #c5e0ff;
}

.icon-action-btn-danger:hover:not(:disabled),
.icon-action-btn-danger:focus-visible:not(:disabled) {
  background: rgba(255, 96, 96, 0.16);
  color: #ffd7d7;
}

.icon-action-disabled-wrap {
  display: inline-flex;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  vertical-align: middle;
  color: #dce8ff;
}

.status-icon img {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
}

.status-icon-danger {
  color: #ff8d8d;
}

.status-icon-warning {
  color: #ffb24a;
}

.status-icon-success {
  color: #8fe3a5;
}

.status-icon-info {
  color: #8fc5ff;
}


.login-art {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid #d7dfef;
  background: #050b1a;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 12px 34px rgba(30, 55, 92, .12);
}

.login-art-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #050b1a;
  z-index: 0;
}

.topbar {
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand strong { font-size: 17px; }

.beta-badge {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f59e0b;
  color: #111827;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

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

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-actions > * {
  margin: 0;
}

.topbar-actions .nav-btn,
.topbar-actions .gear-btn,
.topbar-actions .user-chip,
.topbar-actions .logout-btn {
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  line-height: 1 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative;
  top: 0;
}

.nav-btn,
.btn-link {
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 700;
  font-size: 14px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn {
  width: auto;
  border: 1px solid var(--line);
  color: #253148;
  background: var(--nav-bg);
}

.nav-btn.active {
  color: #fff;
  border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
}

.nav-btn.icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.header-icon {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  flex: 0 0 auto;
  pointer-events: none;
}

.user-chip .header-icon {
  margin-right: 0.45rem;
}

.nav-btn.locked {
  opacity: .65;
  cursor: not-allowed;
}

.gear-btn {
  width: 40px;
  height: 40px;
  margin-top: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--nav-bg);
  color: #253148;
  font-size: 18px;
  line-height: 1;
}

.gear-btn.active {
  color: #fff;
  border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
}

.user-chip {
  font-size: 13px;
  color: #253148;
  background: #eef3fb;
  border: 1px solid #d8e2f2;
  padding: 0 12px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu-btn {
  width: auto;
  text-align: left;
  cursor: pointer;
}

.user-menu-btn.active {
  color: #fff;
  border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin: 14px 0;
  box-shadow: 0 8px 28px rgba(16, 24, 40, 0.06);
}

.card.soft {
  background: #f8fbff;
  box-shadow: none;
}

.hidden { display: none !important; }

h2 { margin: 0 0 8px; }
h3 { margin: 10px 0; }

label { display: block; margin: 12px 0; font-weight: 600; }
.address-grid {
  display: grid;
  grid-template-columns: 1.6fr .8fr 0.8fr 1.2fr;
  gap: 10px;
}

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

.travel-transport-half-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.travel-destination-grid {
  grid-template-columns: 1.45fr 0.45fr 0.65fr 1fr 1.1fr;
}

#travelMetaForm {
  margin-top: 6px;
}

#tstep1 > .muted {
  margin: 0 0 6px;
}

.travel-route-box {
  margin-top: 12px;
  padding: 14px 14px 10px;
  border: 1px solid rgba(122, 167, 210, 0.45);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(233, 242, 250, 0.92), rgba(244, 248, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.form-hint {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(37, 49, 72, 0.78);
  font-weight: 500;
  line-height: 1.35;
}

input, textarea, button, select {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #8db9ff;
  box-shadow: 0 0 0 4px rgba(91, 157, 255, .16);
}

button {
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

button:hover { filter: brightness(.97); }
button:disabled { opacity: .6; cursor: not-allowed; }

.btn-secondary { background: linear-gradient(160deg, #5a6a86, #435270); }
.btn-danger,
.danger-link { background: linear-gradient(160deg, #c83c33, var(--danger)); }
.btn-subtle {
  width: auto;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #667085;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
}

.btn-subtle:hover {
  filter: none;
  background: rgba(248, 250, 252, 0.96);
  color: #475467;
}

.purge-completed-btn {
  margin-left: auto;
}

a.danger-link {
  color: #fff;
  text-decoration: none;
}

.logout-btn {
  width: 40px;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  margin: 0;
  align-self: center;
  border-color: rgba(185, 35, 24, 0.18);
  background: rgba(185, 35, 24, 0.10);
  color: #8f1d14;
}

.logout-btn:hover,
.logout-btn:focus-visible {
  border-color: rgba(185, 35, 24, 0.28);
  background: rgba(185, 35, 24, 0.16);
}

.logout-btn .header-icon {
  margin-right: 0;
  filter: invert(18%) sepia(43%) saturate(3618%) hue-rotate(350deg) brightness(84%) contrast(94%);
}

.logout-form {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.logout-form .logout-btn {
  margin: 0 !important;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  height: 40px;
}

.buttons-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 2px;
}

.buttons-row > * {
  flex: 0 0 auto;
  width: auto;
  margin-top: 0;
  white-space: nowrap;
}

#travelUploadForm .buttons-row {
  margin-top: 10px;
}

#travelUploadForm .buttons-row > * {
  flex: 1 1 0;
}

.review-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 16px;
}

.expense-intro-box {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 176, 219, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.92), rgba(236, 244, 252, 0.92));
}

.expense-intro-box strong {
  display: block;
  margin-bottom: 8px;
}

.expense-intro-box p {
  margin: 4px 0;
}

.expense-flow-intro {
  max-width: 1000px;
}

.cityride-intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.cityride-intro-main {
  min-width: 0;
}

.cityride-intro-box {
  margin-bottom: 16px;
}

.cityride-flow-points {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.cityride-flow-point {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.cityride-flow-point span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #0f766e, #0b5f59);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.1);
}

.cityride-flow-point p {
  margin: 4px 0 0;
}

.cityride-why-box {
  padding: 18px 18px 16px;
  border: 1px solid rgba(236, 154, 41, 0.22);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 214, 153, 0.35), transparent 38%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 245, 228, 0.96));
  box-shadow: 0 18px 34px rgba(122, 74, 12, 0.08);
}

.cityride-why-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a4d00;
}

.cityride-why-box h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.2;
  color: #5d2f00;
}

.cityride-why-points {
  display: grid;
  gap: 12px;
}

.cityride-why-point {
  padding: 12px 13px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(236, 154, 41, 0.16);
}

.cityride-why-point strong {
  display: block;
  margin-bottom: 6px;
  color: #6f3700;
}

.cityride-why-point p {
  margin: 0;
  color: #6c5a47;
}

.expense-flow-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0b5f59;
}

.expense-flow-shell {
  display: grid;
  grid-template-columns: minmax(0, 1000px) 165px;
  gap: 18px;
  align-items: start;
  justify-content: start;
}

.expense-flow-nav {
  position: sticky;
  top: 18px;
}

.expense-flow-nav-inner {
  position: relative;
  padding: 18px 0;
}

.expense-flow-nav-inner::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.18), rgba(15, 118, 110, 0.08));
}

.expense-stepper-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0;
  padding: 7px 0;
  border: 0;
  background: transparent;
  text-align: left;
  color: #516079;
  cursor: pointer;
}

.expense-stepper-btn:disabled {
  cursor: default;
}

.expense-stepper-dot {
  position: relative;
  z-index: 1;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(143, 176, 219, 0.42);
  background: linear-gradient(180deg, #f7fbff, #edf4fb);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.expense-stepper-dot img {
  width: 17px;
  height: 17px;
  display: block;
}

.expense-stepper-copy strong {
  display: block;
}

.expense-stepper-copy strong {
  color: #10233f;
  font-size: 13px;
  line-height: 1.2;
}

.expense-stepper-btn[data-state="locked"] {
  opacity: 0.48;
}

.expense-stepper-btn[data-state="locked"] .expense-stepper-dot {
  box-shadow: none;
}

.expense-stepper-btn[data-state="unlocked"]:hover .expense-stepper-dot,
.expense-stepper-btn[data-state="done"]:hover .expense-stepper-dot {
  transform: translateY(-1px);
}

.expense-stepper-btn[data-state="active"] .expense-stepper-dot {
  border-color: rgba(15, 118, 110, 0.54);
  background: linear-gradient(180deg, #0f766e, #0b5f59);
}

.expense-stepper-btn[data-state="active"] .expense-stepper-dot img,
.expense-stepper-btn[data-state="done"] .expense-stepper-dot img {
  filter: brightness(0) invert(1);
}

.expense-stepper-btn[data-state="active"] .expense-stepper-copy strong {
  color: #0b5f59;
}

.expense-stepper-btn[data-state="done"] .expense-stepper-dot {
  border-color: rgba(22, 163, 74, 0.34);
  background: linear-gradient(180deg, #22a06b, #16803c);
}

.expense-stepper-btn[data-state="done"] .expense-stepper-copy strong {
  color: #155e3b;
}

.expense-flow-content > .card {
  margin-top: 0;
}

.expense-capture-mode {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.cityride-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.cityride-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.cityride-destination-grid {
  grid-template-columns: 1.45fr 0.45fr 0.65fr 1fr;
}

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

.cityride-vehicle-card {
  display: block;
  margin: 0;
  cursor: pointer;
}

.cityride-vehicle-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cityride-vehicle-card-body {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
  text-align: center;
  min-height: 168px;
}

.cityride-vehicle-card-body img {
  width: 46px;
  height: 46px;
  display: block;
}

.cityride-vehicle-card-body strong {
  font-size: 18px;
  line-height: 1;
  color: #10233f;
}

.cityride-vehicle-card-body span {
  color: #516079;
  line-height: 1.35;
}

.cityride-vehicle-card input:checked + .cityride-vehicle-card-body {
  border-color: rgba(15, 118, 110, 0.54);
  background: linear-gradient(180deg, rgba(224, 247, 241, 0.95), rgba(238, 251, 247, 0.95));
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.cityride-vehicle-card input:checked + .cityride-vehicle-card-body img {
  filter: invert(28%) sepia(36%) saturate(1176%) hue-rotate(132deg) brightness(84%) contrast(96%);
}

.cityride-help-list {
  margin: 10px 0 12px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.capture-mode-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
  cursor: pointer;
}

.capture-mode-option input {
  width: auto;
  margin: 2px 0 0;
}

.capture-mode-option span {
  display: block;
  line-height: 1.35;
}

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

.manual-expense-form .final-confirm-check,
.manual-expense-form button {
  grid-column: 1 / -1;
}

.preview-box.preview-box-manual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  color: #516079;
  background: linear-gradient(180deg, #f8fbff, #eef4fb);
}

.preview-box-manual-note strong {
  display: block;
  margin-bottom: 8px;
  color: #1f2f47;
}

.preview-box {
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 380px;
  padding: 8px;
  background: #fff;
}

.preview-box img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: contain;
}

.preview-box iframe {
  width: 100%;
  min-height: 500px;
  border: 0;
  background: #fff;
}

.account-list { display: grid; gap: 10px; margin: 10px 0; }

.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
  font-weight: 400;
  flex-wrap: wrap;
}

.account-row input { width: auto; margin: 0; }
.account-row button { width: auto; margin: 0; }

.account-choice-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
}

.account-choice-row input[type="radio"] {
  margin-top: 3px;
}

.opt-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.opt-check input { width: auto; margin: 0; }

.table-wrap { overflow-x: auto; }

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

th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
}

#tab-accounting .card {
  padding: 22px 24px;
}

.accounting-layout {
  display: grid;
  grid-template-columns: minmax(0, 1000px) 165px;
  grid-template-areas: "content sidebar";
  gap: 18px;
  align-items: start;
  justify-content: start;
}

.profile-layout {
  margin-bottom: 14px;
}

.accounting-sidebar {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 12px;
  grid-area: sidebar;
  width: 100%;
  justify-self: stretch;
}

.accounting-content,
.profile-content {
  grid-area: content;
  min-width: 0;
  width: 100%;
}

.accounting-menu-btn {
  width: 100%;
  justify-content: flex-start;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #f8fbff;
  color: #253148;
  font-weight: 700;
}

.accounting-menu-btn.active {
  color: #fff;
  border-color: var(--brand);
  background: linear-gradient(160deg, var(--brand), var(--brand-2));
}

#tab-accounting th,
#tab-accounting td {
  padding: 7px 10px;
  vertical-align: top;
}

#tab-accounting td .buttons-row button {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin-top: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#tab-accounting td .buttons-row {
  margin-top: 0;
  padding-bottom: 0;
  overflow: visible;
  align-items: flex-start;
  gap: 10px;
}

#tab-accounting td .buttons-row .icon-action-btn {
  width: 2.16rem;
  height: 2.16rem;
}

#tab-accounting td .buttons-row .icon-action-svg {
  width: 1.22rem;
  height: 1.22rem;
}

#tab-accounting td .buttons-row .btn-secondary {
  color: #0f766e;
}

#tab-accounting td .buttons-row .btn-danger {
  color: #b42318;
}

#tab-accounting td .buttons-row button:hover {
  filter: none;
  opacity: 0.9;
}

.submission-id-type-cell {
  min-width: 120px;
}

.submission-id-type-cell strong,
.submission-id-type-cell a {
  display: inline-block;
}

.submission-id-type-cell .muted {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}

.status-stack {
  display: inline-grid;
  gap: 1px;
  white-space: normal;
  line-height: 1.15;
}

.status-stack > span:first-child {
  white-space: nowrap;
}

.status-stack .muted {
  font-size: 11px;
}

#accountingRows td:nth-child(6),
#accountingRows td:nth-child(7) {
  white-space: pre-line;
}

#tab-accounting th:nth-child(5),
#tab-accounting td:nth-child(5) {
  width: 120px;
}

#tab-accounting th:nth-child(6),
#tab-accounting td:nth-child(6) {
  width: 130px;
}

#tab-accounting th:nth-child(7),
#tab-accounting td:nth-child(7) {
  width: 165px;
  white-space: nowrap;
}

.sum { font-size: 18px; }
.muted { color: var(--muted); }
.status { display: inline-block; margin-top: 10px; color: var(--muted); }

.loading-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.loading-status-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(15, 118, 110, 0.2);
  border-top-color: var(--brand);
  animation: loadingSpin .8s linear infinite;
}

@keyframes loadingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.dsgvo-list { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.dsgvo-list li { color: #1e293b; line-height: 1.45; }
.privacy-note {
  color: #1e293b;
  line-height: 1.6;
  white-space: normal;
}

.readonly-info {
  padding: 0;
  white-space: pre-line;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.admin-settings-sections {
  display: grid;
  gap: 12px;
}

.admin-group-title {
  margin: 8px 0 2px;
  font-size: 15px;
  line-height: 1.3;
  color: #253148;
}

.admin-group-info {
  margin: 0 0 12px;
}

.admin-layout .card {
  padding: 22px 24px;
}

.admin-storage-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.admin-storage-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdff;
  padding: 14px;
  display: grid;
  gap: 6px;
}

.admin-storage-stat strong {
  color: #253148;
}

.admin-storage-stat span {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
}

.admin-storage-stat small {
  color: var(--muted);
  font-size: 12px;
}

#adminMailTemplateEditor {
  min-height: 420px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  line-height: 1.45;
  resize: vertical;
}

.admin-setting-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: #fbfdff;
}

.admin-setting-item label {
  margin: 0;
}

.admin-setting-item .muted {
  margin: 8px 0 0;
  font-size: 12px;
}

.admin-role-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.admin-role-entries {
  display: grid;
  gap: 8px;
}

.admin-role-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.admin-role-entry input {
  margin: 0;
}

.admin-role-add-btn,
.admin-role-remove-btn {
  width: auto;
  margin: 0;
}

.admin-setting-key {
  opacity: 0.72;
  word-break: break-word;
}

pre {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  overflow: auto;
  white-space: pre-wrap;
}

#signaturePad,
#travelSignaturePad {
  width: 100%;
  max-width: 920px;
  height: 220px;
  background: #fff;
  border: 2px dashed #b9c7df;
  border-radius: 12px;
  touch-action: none;
}


.final-confirm-check {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.final-confirm-check input {
  width: auto;
  margin: 3px 0 0;
}

.final-confirm-check span {
  line-height: 1.45;
  color: #0f172a;
}

#step2hospitality .readonly-info {
  padding: 0;
  display: grid;
  gap: 4px;
}

#step2hospitality h3 {
  margin: 0;
}

#step2hospitality label {
  margin: 0;
}

#step2hospitality input,
#step2hospitality textarea {
  margin-top: 1px;
}

#step2hospitality .muted {
  margin: 0;
}

#step2hospitality .hospitality-block {
  margin-bottom: 8px;
}

#step2hospitality .final-confirm-check {
  margin-top: 0;
  padding: 0;
  gap: 6px;
  border: 0;
  background: transparent;
}

#step2hospitality .final-confirm-check input {
  margin-top: 0;
}

#step2hospitality .form-hint {
  margin-top: 0;
  line-height: 1.25;
}

#step2hospitality .readonly-info > div {
  display: grid;
  gap: 2px;
}

#pdfPreviewWrap {
  margin-top: 18px;
  display: block;
  overflow: auto;
  max-height: 70vh;
}

#pdfPreviewFrame {
  width: min(900px, 100%);
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

#pdfPreviewImage {
  width: min(900px, 100%);
  height: auto;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transform-origin: top left;
  display: block;
}

.final-submit-btn {
  margin-top: 16px;
  width: 100%;
  white-space: pre-line;
  text-align: left;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #2f7a3f;
  background: #1f8b3f;
  color: #fff;
  font-weight: 700;
  line-height: 1.4;
}

.final-submit-btn:hover {
  background: #177133;
}

.final-submit-btn:disabled {
  background: #9aa4b2;
  border-color: #8792a2;
  cursor: not-allowed;
}

.info-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.info-dialog.hidden {
  display: none;
}

.info-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 21, 46, 0.68);
  backdrop-filter: blur(4px);
}

.info-dialog-card {
  position: relative;
  width: min(760px, 96vw);
  max-height: min(82vh, 900px);
  overflow: auto;
  padding: 22px 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(151, 185, 255, 0.28);
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.98), rgba(233, 241, 252, 0.98));
  box-shadow: 0 24px 60px rgba(6, 17, 39, 0.32);
}

.info-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.info-dialog-head h3 {
  margin: 0;
  font-size: 22px;
  color: #10233f;
}

.info-dialog-head .icon-action-btn {
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.4rem;
}

.info-dialog-body {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  color: #12263f;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(144, 173, 214, 0.38);
  border-radius: 14px;
  padding: 18px;
}

.info-dialog-pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
}

.info-dialog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}

.info-dialog-table th,
.info-dialog-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(144, 173, 214, 0.32);
  text-align: left;
  vertical-align: top;
}

.info-dialog-table th {
  width: 38%;
  font-weight: 700;
  color: #274162;
}

.info-dialog-table tr:last-child th,
.info-dialog-table tr:last-child td {
  border-bottom: 0;
}

.info-dialog-amount {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.info-copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.info-copy-btn {
  position: relative;
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  padding: 0;
}

.info-copy-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translate(-50%, 6px);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fbff;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.info-copy-btn.is-copied .info-copy-tooltip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.site-footer {
  margin: 8px 0 4px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  color: #344767;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-sep {
  margin: 0 8px;
  color: #98a2b3;
}

.footer-credit {
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.6;
}

.footer-credit a {
  color: inherit;
}

@keyframes floatOrbA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate3d(70px, -35px, 0) scale(1.08); opacity: 0.72; }
  100% { transform: translate3d(140px, -10px, 0) scale(0.96); opacity: 0.86; }
}

@keyframes floatOrbB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.82; }
  50% { transform: translate3d(-85px, -40px, 0) scale(1.06); opacity: 0.68; }
  100% { transform: translate3d(-130px, 30px, 0) scale(0.94); opacity: 0.8; }
}

@media (max-width: 980px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { min-height: 180px; }
  .review-grid { grid-template-columns: 1fr; }
  .cityride-intro-layout { grid-template-columns: 1fr; }
  .expense-flow-shell { grid-template-columns: 1fr; }
  .accounting-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "sidebar"
      "content";
  }
  .accounting-sidebar {
    position: static;
  }
  .expense-flow-nav { position: static; }
  .expense-flow-nav-inner::before { display: none; }
  .expense-stepper-btn { grid-template-columns: 48px minmax(0, 1fr); }
  .expense-stepper-dot { width: 48px; height: 48px; }
  .expense-capture-mode { grid-template-columns: 1fr; }
  .cityride-start-grid { grid-template-columns: 1fr; }
  .cityride-link-grid { grid-template-columns: 1fr; }
  .cityride-vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manual-expense-form { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .wrap { width: min(1180px, 96vw); padding-top: 14px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .brand { justify-content: center; }
  .topbar-actions { flex-wrap: wrap; }
  .nav-btn, .btn-link { flex: 1 1 auto; text-align: center; }
  .user-chip { max-width: 100%; }
  .address-grid { grid-template-columns: 1fr; }
  .login-panel { padding: 24px; }
}
