:root {
  color-scheme: light;
  --ink: #172a3d;
  --muted: #6b7b8d;
  --blue: #1767c2;
  --border: #dce5ef;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background: #f3f6fa;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-tap-highlight-color: transparent;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}
.app-shell .heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.app-shell .heading-title { min-width: 0; }
.app-shell .heading h1 { margin: 2px 0 0; color: #172a3d; font-size: 23px; font-weight: 750; line-height: 1.2; letter-spacing: -.025em; }
.app-shell .eyebrow { margin: 0; color: #8090a1; font-size: 10px; font-weight: 800; letter-spacing: .13em; }
.app-shell .brand-mark, .app-shell .back {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #e3eaf2;
  border-radius: 14px;
  background: #fff;
  color: #1b65b5;
  box-shadow: 0 3px 12px #203b5a0a;
  text-decoration: none;
}
.app-shell .brand-mark { background: #1767c2; border-color: #1767c2; color: white; font-size: 21px; font-weight: 850; }
.app-shell .back { font-size: 32px; line-height: 1; }
.app-shell .success-banner:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #80cba5;
  border-radius: 16px;
  background: #e8f8ef;
  color: #155c39;
}
.app-shell .success-icon { font-size: 28px; font-weight: 800; }
.app-shell .success-banner h2 { margin: 0; font-size: 18px; }
.app-shell .success-banner p { margin: 4px 0 0; font-size: 14px; }
.app-shell .welcome-card {
  position: relative;
  overflow: hidden;
  min-height: 166px;
  padding: 25px;
  border-radius: 24px;
  background: linear-gradient(125deg, #155bb2 0%, #2988d2 100%);
  color: #fff;
  box-shadow: 0 12px 25px #196bb329;
}
.app-shell .hero-kicker { margin: 0 0 12px; color: #d3eaff; font-size: 10px; font-weight: 800; letter-spacing: .15em; }
.app-shell .welcome-card h2 { position: relative; z-index: 1; margin: 0; color: #fff; font-size: 25px; font-weight: 750; overflow-wrap: anywhere; }
.app-shell .hero-copy { position: relative; z-index: 1; margin: 7px 0 0; color: #e2f1ff; font-size: 14px; }
.app-shell .hero-decoration { position: absolute; right: -15px; bottom: -50px; color: #ffffff19; font-size: 190px; line-height: 1; }
.app-shell .section-heading { margin: 28px 2px 15px; }
.app-shell .section-title { margin: 0; color: #1b2c3d; font-size: 17px; font-weight: 750; line-height: 1.35; }
.app-shell .section-subtitle, .app-shell .page-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.app-shell .page-subtitle { margin: -13px 0 19px; }
.app-shell .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.app-shell .tile {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 165px;
  padding: 17px;
  border: 1px solid #e5ebf2;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 5px 20px #25486709;
}
.app-shell .tile:active { transform: scale(.98); background: #f8fbff; }
.app-shell .tile-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 15px; font-size: 21px; }
.app-shell .tile-icon-blue { background: #e8f2ff; }
.app-shell .tile-icon-orange { background: #fff0e3; }
.app-shell .tile-icon-green { background: #e7f7ee; }
.app-shell .tile-title { margin-top: 15px; color: #1c3045; font-size: 14px; font-weight: 750; line-height: 1.3; }
.app-shell .tile-caption { margin-top: 4px; color: #8391a1; font-size: 12px; }
.app-shell .tile-arrow { position: absolute; top: 16px; right: 16px; color: #98a9ba; font-size: 17px; }
.app-shell .panel { margin: 0 0 14px; padding: 20px; border: 1px solid #e5ebf2; border-radius: 20px; background: #fff; box-shadow: 0 5px 20px #25486708; }
.app-shell .login-panel { margin-top: 48px; padding: 28px 22px; text-align: center; }
.app-shell .login-panel h2 { margin: 16px 0 4px; font-size: 22px; font-weight: 750; }
.app-shell .login-panel .muted { margin: 0 0 26px; color: var(--muted); font-size: 14px; }
.app-shell .login-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 22px; background: #e9f3ff; font-size: 28px; }
.app-shell #login-form { text-align: left; }
.app-shell #login-form select { margin-bottom: 17px; }
.app-shell .form-panel { padding: 19px; }
.app-shell .card-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.app-shell .section-number { display: grid; place-items: center; width: 32px; height: 32px; margin: 0; border-radius: 10px; background: #e9f3ff; color: #1767c2; font-size: 12px; font-weight: 800; }
.app-shell .field { margin: 0 0 17px; }
.app-shell .field:last-child { margin-bottom: 0; }
.app-shell label { display: block; margin: 0 0 7px; color: #344a5f; font-size: 13px; font-weight: 700; }
.app-shell input:not([type="radio"]):not([type="hidden"]),
.app-shell select, .app-shell textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #d6e0ea;
  border-radius: 12px;
  background: #f9fbfd;
  color: #172a3d;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.app-shell textarea { min-height: 98px; resize: vertical; }
.app-shell input:focus-visible, .app-shell select:focus-visible, .app-shell textarea:focus-visible { border-color: #287bd0; box-shadow: 0 0 0 3px #287bd023; }
.app-shell .phone-input { display: flex; align-items: stretch; min-height: 48px; overflow: hidden; border: 1px solid #d6e0ea; border-radius: 12px; background: #f9fbfd; }
.app-shell .phone-input:focus-within { border-color: #287bd0; box-shadow: 0 0 0 3px #287bd023; }
.app-shell .phone-prefix { display: flex; align-items: center; flex: none; padding: 0 13px; border-right: 1px solid #d6e0ea; color: #344a5f; font-size: 15px; font-weight: 700; }
.app-shell .phone-input input:not([type="radio"]):not([type="hidden"]) { flex: 1; width: 0; min-height: 46px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.app-shell input[type="file"] { padding: 8px; color: #607387; font-size: 13px; }
.app-shell input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 11px; border: 0; border-radius: 8px; background: #e4effb; color: #175b9f; font-weight: 700; }
.app-shell .choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.app-shell .choice { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; min-height: 48px; margin: 0; padding: 8px 4px; border: 1px solid #e1e9f1; border-radius: 11px; background: #f9fbfd; color: #46596c; font-size: 12px; font-weight: 650; text-align: center; cursor: pointer; }
.app-shell .choice:has(input:checked) { border-color: #287bd0; background: #eaf4ff; color: #145a9e; box-shadow: 0 0 0 1px #287bd0; }
.app-shell .choice input { width: 15px; height: 15px; margin: 0; accent-color: #1767c2; }
.app-shell .app-button, .gm-style .map-card .app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.app-shell .app-button.primary, .gm-style .map-card .app-button.primary { background: #1767c2; color: #fff; box-shadow: 0 5px 12px #1767c22e; }
.app-shell .app-button.secondary, .gm-style .map-card .app-button.secondary { border-color: #cfe0f2; background: #eaf3fd; color: #175caa; }
.app-shell .app-button.full { width: 100%; margin: 6px 0 0; min-height: 54px; }
.app-shell .download-timemark { gap: 10px; margin: 0 0 8px; }
.app-shell .download-timemark[hidden] { display: none; }
.app-shell .button-logo { width: 24px; height: 24px; flex: none; border-radius: 6px; }
.app-shell .app-button:active, .gm-style .map-card .app-button:active { transform: scale(.98); }
.app-shell .app-button:disabled { opacity: .55; cursor: wait; box-shadow: none; }
.app-shell .app-button:focus-visible, .app-shell .tile:focus-visible, .app-shell .back:focus-visible, .gm-style .map-card .app-button:focus-visible { outline: 3px solid #69aef1; outline-offset: 3px; }
.app-shell .map { width: 100%; height: 320px; margin: 13px 0 0; overflow: hidden; border: 1px solid #e2eaf2; border-radius: 14px; background: #edf2f7; }
.app-shell .helper-text { margin: 8px 0; color: #6d7f91; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.app-shell .map-legend { display: flex; align-items: center; gap: 6px; margin: -2px 0 15px; color: #748496; font-size: 12px; }
.app-shell .legend-mine { color: #1769aa; }
.app-shell .legend-other { margin-left: 9px; color: #dc7028; }
.app-shell .customer-select { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid #cfe0f2; border-radius: 12px; background: #eef5fc; color: #175caa; font: inherit; font-size: 14px; font-weight: 700; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.app-shell .customer-select-arrow { flex: none; font-size: 24px; line-height: 1; }
.app-shell .customer-select:focus-visible, .app-shell .map-close:focus-visible { outline: 3px solid #69aef1; outline-offset: 3px; }
.app-shell .customer-map-dialog { position: fixed; inset: 0; width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #f3f6fa; color: var(--ink); }
.app-shell .customer-map-dialog::backdrop { background: #172a3d80; }
.app-shell .map-dialog-content { display: flex; flex-direction: column; height: 100%; padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); }
.app-shell .map-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-shell .map-dialog-header h2 { margin: 0; font-size: 20px; font-weight: 750; }
.app-shell .map-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d6e0ea; border-radius: 12px; background: white; color: #172a3d; font-size: 18px; cursor: pointer; }
.app-shell .map-dialog-content .app-button { align-self: flex-start; }
.app-shell .map-dialog-content .app-button.full { align-self: stretch; margin-top: 12px; }
.app-shell .map-dialog-content .map { flex: 1 1 0; min-height: 150px; height: auto; }
.app-shell .map-dialog-content .notice { margin-bottom: 0; }
.app-shell .notice { margin: 12px 0; padding: 12px 14px; border: 1px solid #d5e5f4; border-radius: 12px; background: #eef6ff; color: #28547b; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.app-shell .notice:empty { display: none; }
.gm-style .map-card { display: grid; gap: 9px; min-width: 170px; max-width: 230px; padding: 3px; color: #172a3d; font-family: system-ui, sans-serif; }
.gm-style .map-card strong { font-size: 15px; }
.gm-style .map-card p { margin: 0; color: #607387; font-size: 12px; }
.gm-style .map-card .card-photo { display: block; width: 100%; max-height: 110px; object-fit: cover; border-radius: 10px; }
.gm-style .map-card .app-button { min-height: 42px; }
@media (max-width: 350px) {
  .app-shell { padding-right: 14px; padding-left: 14px; }
  .app-shell .tile { padding: 14px; }
  .app-shell .choice { font-size: 11px; }
}
