:root {
  --bg: #fbf7f0;
  --surface: #ffffff;
  --surface-subtle: #f6efe6;
  --ink: #132338;
  --muted: #5a534a;
  --primary: #163a5f;
  --primary-soft: #eef3f8;
  --navy: #163a5f;
  --navy-soft: #eef3f8;
  --crimson: #b82925;
  --crimson-soft: #fceeeb;
  --terracotta: #b82925;
  --terracotta-soft: #fceeeb;
  --gold: #b87314;
  --gold-bright: #d99b26;
  --gold-bg: #fdf4e0;
  --gold-border: #efd8a7;
  --green: #166534;
  --green-soft: #e8f6ee;
  --border: #e6dac6;
  --amber: #8c5319;
  --amber-soft: #faecd8;
  --red: #b91c1c;
  --red-soft: #fef2f2;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: "Inter", "Noto Sans", "Noto Sans Oriya", "Noto Sans Devanagari", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #e5ddd0;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

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

button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

a {
  color: var(--primary);
  text-underline-offset: 4px;
}

button svg,
a svg {
  flex-shrink: 0;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.app-shell {
  position: relative;
  max-width: 480px;
  margin: auto;
  height: 100dvh;
  min-height: 320px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 48px rgba(26, 37, 54, 0.08);
}

.ikat-ribbon {
  height: 5px;
  flex-shrink: 0;
  background: repeating-linear-gradient(
    90deg,
    var(--crimson) 0px,
    var(--crimson) 18px,
    var(--gold-bright) 18px,
    var(--gold-bright) 24px,
    var(--primary) 24px,
    var(--primary) 42px,
    var(--gold-bright) 42px,
    var(--gold-bright) 48px
  );
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(12px + var(--safe-top)) 18px 12px;
  background: var(--surface);
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
  z-index: 4;
}

.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
  min-height: 48px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--crimson-soft) 0%, var(--gold-bg) 100%);
  border: 1px solid var(--gold-border);
  color: var(--crimson);
  border-radius: 13px;
  flex-shrink: 0;
}

.brand-mark .icon {
  width: 26px;
  height: 26px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.brand-copy strong {
  font-size: 1.125rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  transition: background 0.15s;
}

.icon-button:hover {
  background: var(--surface-subtle);
}

.avatar {
  width: 42px;
  height: 42px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
}

.avatar .icon {
  width: 20px;
  height: 20px;
}

.language-button {
  min-height: 40px;
  min-width: 48px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 0.75rem;
}

.language-button .icon {
  width: 16px;
  height: 16px;
  color: var(--terracotta);
}

#app-main {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  outline: none;
  scrollbar-width: thin;
}

.page {
  padding: 18px 18px 28px;
  animation: appear 0.18s ease-out;
}

.bottom-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px 10px calc(8px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  z-index: 4;
}

.nav-item {
  min-height: 54px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  justify-content: center;
  text-decoration: none;
  position: relative;
  line-height: 1.3;
  padding-top: 4px;
}

.nav-item[aria-current=page] {
  color: var(--crimson);
  font-weight: 700;
}

.nav-item[aria-current=page]::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--crimson);
}

.nav-item .icon {
  width: 21px;
  height: 21px;
}

.nav-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--terracotta);
  border-radius: 50%;
  top: 8px;
  left: calc(50% + 12px);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--terracotta);
  margin: 0 0 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.eyebrow .icon {
  width: 15px;
  height: 15px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: 1.4375rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

h2 {
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.45;
}

h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
  margin-bottom: 6px;
}

p {
  line-height: 1.65;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

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

.subtitle {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 14px;
}

.small {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--muted);
}

.tiny {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero {
  position: relative;
  padding: 20px 18px;
  overflow: hidden;
  border: 1px solid #eadbc4;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffdf9 0%, #f5e6cf 100%);
  margin-bottom: 16px;
  box-shadow: 0 2px 10px rgba(166, 75, 42, 0.06);
}

.hero h1 {
  max-width: 280px;
  position: relative;
  z-index: 1;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 6px;
}

.hero .subtitle {
  max-width: 270px;
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  margin-bottom: 14px;
}

.hero .btn {
  position: relative;
  z-index: 1;
}

.hero-illustration {
  position: absolute;
  width: 140px;
  height: 120px;
  right: -8px;
  bottom: -6px;
  opacity: 0.85;
  color: var(--terracotta);
  pointer-events: none;
}

.hero-illustration svg {
  width: 100%;
  height: 100%;
}

.tile-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.tile-icon .icon {
  width: 21px;
  height: 21px;
}

.tile-crimson {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.tile-emerald {
  background: var(--green-soft);
  color: var(--green);
}

.tile-gold {
  background: var(--gold-bg);
  color: var(--gold);
}

.tile-indigo {
  background: var(--primary-soft);
  color: var(--primary);
}

.portfolio-toolbar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.portfolio-search {
  min-height: 44px;
  font-size: 0.8125rem;
  padding: 9px 13px;
}

.filter-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.chip {
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.chip[aria-pressed=true] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.chip-alert {
  background: var(--crimson-soft);
  border-color: #f3c6c3;
  color: var(--crimson);
}

.chip-alert[aria-pressed=true] {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #ffffff;
}

.khata-group {
  padding: 4px 14px 10px;
  margin-bottom: 12px;
}

.khata-group > summary {
  min-height: 54px;
  gap: 10px;
}

.khata-group > summary strong {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-right: auto;
  min-width: 0;
  flex: 1;
}

.khata-group-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.khata-group-list .parcel-card {
  margin-bottom: 0;
  background: var(--bg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.45;
  text-align: center;
  transition: background 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(29, 53, 87, 0.2);
}

.btn-secondary {
  background: var(--surface);
  border-color: #d6cbb9;
  color: var(--ink);
}

.btn-green {
  background: var(--primary);
  color: var(--surface);
}

.btn-quiet {
  color: var(--primary);
  background: transparent;
}

.btn-danger {
  background: var(--red-soft);
  color: var(--red);
  border-color: #fecaca;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.full {
  width: 100%;
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.button-row .btn {
  flex: 1 1 135px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 10px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(26, 37, 54, 0.03);
}

.stat-number {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--muted);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 20px 0 10px;
}

.section-heading h2 {
  margin: 0;
}

.section-heading .icon-button {
  width: 44px;
  height: 44px;
  margin: -8px -6px -8px 0;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(26, 37, 54, 0.03);
}

.parcel-card {
  width: 100%;
  text-align: left;
  color: var(--ink);
  padding: 15px 16px;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.parcel-card:hover {
  border-color: #d1c2ac;
  box-shadow: 0 4px 12px rgba(26, 37, 54, 0.06);
}

.parcel-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

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

.parcel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.parcel-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.parcel-location .icon {
  width: 14px;
  height: 14px;
  color: var(--terracotta);
}

.parcel-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.parcel-number {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.5;
}

.parcel-owner {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.parcel-uid {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  font-variant-numeric: tabular-nums;
}

.parcel-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
}

.parcel-bottom .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
}

.badge-neutral {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge-warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.badge-error {
  color: var(--red);
  background: var(--red-soft);
}

.badge .icon {
  width: 13px;
  height: 13px;
}

.empty-state {
  text-align: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 26px 20px;
  margin-bottom: 14px;
}

.empty-art {
  width: 54px;
  height: 54px;
  background: var(--terracotta-soft);
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--terracotta);
}

.empty-art .icon {
  width: 26px;
  height: 26px;
}

.empty-state h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}

.empty-state p {
  font-size: 0.8125rem;
  color: var(--muted);
  max-width: 320px;
  margin: 0 auto 16px;
}

.note {
  border-radius: 14px;
  padding: 13px 15px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 12px 0;
}

.note>.icon {
  flex-shrink: 0;
  width: 19px;
  height: 19px;
  margin-top: 2px;
  color: var(--terracotta);
}

.note p {
  font-size: 0.8125rem;
  margin: 0;
  line-height: 1.6;
  color: var(--ink);
}

.note strong {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 2px;
  color: var(--ink);
}

.note-warning {
  background: var(--amber-soft);
  border-color: #eed2b3;
}

.note-warning>.icon {
  color: var(--amber);
}

.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #fecaca;
  border-left: 4px solid var(--red);
  background: var(--red-soft);
  color: #991b1b;
  padding: 13px 15px;
  border-radius: 12px;
  margin: 12px 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.6;
}

.error-banner>.icon {
  width: 18px;
  height: 18px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 2px;
}

.offline-banner {
  background: var(--amber-soft);
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 10px 18px;
  line-height: 1.5;
  flex-shrink: 0;
  border-bottom: 1px solid var(--gold-border);
}

.footer-note {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 20px 12px 0;
}

.search-card .segmented {
  margin-top: 0;
}

.search-card .form-hint:last-child {
  margin-bottom: 0;
  text-align: center;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 14px 0;
}

.segmented button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 44px;
  border-radius: 9px;
  padding: 8px 10px;
}

.segmented button[aria-selected=true] {
  color: var(--surface);
  background: var(--primary);
  box-shadow: 0 1px 4px rgba(29, 53, 87, 0.18);
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin: 13px 0 6px;
}

label .optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}

input,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #d6cbb9;
  border-radius: 12px;
  background: var(--surface);
  padding: 11px 14px;
  color: var(--ink);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 53, 87, 0.12);
}

input::placeholder {
  color: #9c9284;
}

select:disabled {
  opacity: 0.6;
  background: var(--surface-subtle);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.plain-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-hint {
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 8px 0 12px;
}

form .btn.full {
  margin-top: 16px;
}

details {
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 4px 15px;
  background: var(--surface);
  margin: 10px 0;
  box-shadow: 0 1px 4px rgba(26, 37, 54, 0.02);
}

summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: "›";
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.15s;
}

details[open]>summary:after {
  transform: rotate(90deg);
}

details>p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
}

details>.btn {
  margin-bottom: 12px;
}

details pre {
  font: inherit;
  font-size: 0.75rem;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 8px 0 14px;
  color: var(--ink);
}

.loading-card {
  text-align: center;
  padding: 28px 20px;
}

.spinner {
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
  display: block;
  margin: 0 auto 14px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(26, 37, 54, 0.45);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.loading-modal {
  width: min(100%, 340px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(26, 37, 54, 0.22);
}

.loading-modal h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.spinner-lg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  position: relative;
}

.spinner-lg:before,
.spinner-lg:after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  animation: spin 0.95s linear infinite;
}

.spinner-lg:after {
  inset: 9px;
  border-top-color: var(--terracotta);
  border-bottom-color: var(--terracotta);
  animation-direction: reverse;
  animation-duration: 1.35s;
}

.loading-stay {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
}

.skeleton {
  height: 108px;
  border-radius: 16px;
  background: linear-gradient(100deg, #EFE8DC 30%, #F8F3EB 50%, #EFE8DC 70%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  margin-bottom: 12px;
}

.detail-back {
  min-height: 44px;
  margin: -8px 0 4px -10px;
}

.detail-heading {
  margin: 0 0 14px;
}

.detail-heading h1 {
  font-size: 1.4375rem;
  margin: 6px 0 8px;
  overflow-wrap: anywhere;
}

.status-card {
  background: var(--surface);
  border-color: var(--border);
}

.status-card p {
  font-size: 0.8125rem;
  margin: 8px 0;
}

.status-card .btn {
  margin-top: 6px;
}

.check-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}

.check-times>div {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
}

.check-times span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 3px;
}

.check-times strong {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.record-table {
  margin: 0;
}

.record-table>div {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
  border-top: 1px solid var(--border);
  padding: 10px 0;
  gap: 10px;
  align-items: baseline;
}

.record-table dt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.6;
}

.record-table dd {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  min-width: 0;
}

.record-parties {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.85;
  margin: 6px 0 14px;
  padding: 12px 14px;
  background: var(--crimson-soft);
  border: 1px solid #f4d0cd;
  border-left: 3.5px solid var(--crimson);
  border-radius: 12px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.map-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 14px;
}

.map-info-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.map-info-row div strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
}

.map-info-row div span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.timeline-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  padding-bottom: 20px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 4px;
}

.timeline-item:not(:last-child):before {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 2px;
  border-left: 1.5px solid var(--border);
}

.timeline-marker {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid #bbf7d0;
  background: var(--green-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--green);
}

.timeline-marker .icon {
  width: 14px;
  height: 14px;
}

.timeline-marker.warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: #eed2b3;
}

.timeline-marker.error {
  color: var(--red);
  background: var(--red-soft);
  border-color: #fecaca;
}

.timeline-body {
  padding-top: 3px;
  min-width: 0;
}

.timeline-body h3 {
  font-size: 0.875rem;
  margin: 0 0 3px;
  font-weight: 600;
}

.timeline-body p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 3px 0;
  line-height: 1.5;
}

.timeline-body button {
  border: 0;
  background: none;
  min-height: 36px;
  color: var(--primary);
  font-weight: 600;
  padding: 2px 0;
  text-align: left;
  font-size: 0.8125rem;
}

.change-row {
  padding: 10px 12px;
  margin-top: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.change-row strong {
  display: block;
  font-size: 0.8125rem;
  margin-bottom: 6px;
}

.change-row p {
  font-size: 0.8125rem;
  color: var(--ink);
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.change-row p span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.step {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child {
  border-bottom: 0;
}

.step>span {
  font-size: 0.8125rem;
  font-weight: 700;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--terracotta-soft);
  color: var(--terracotta);
  flex-shrink: 0;
}

.sheet {
  border: 0;
  border-radius: 22px;
  padding: 0;
  margin: auto;
  width: min(calc(100% - 24px), 440px);
  max-height: 88dvh;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 20px 56px rgba(26, 37, 54, 0.25);
}

.sheet::backdrop {
  background: rgba(26, 37, 54, 0.45);
  backdrop-filter: blur(3px);
}

.sheet-body {
  padding: 20px 22px calc(26px + var(--safe-bottom));
  overflow-y: auto;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.sheet-header h2 {
  font-size: 1.25rem;
  margin: 0;
}

.sheet-header .icon-button {
  margin: -4px -8px -4px 0;
}

.sheet-handle {
  height: 4px;
  width: 36px;
  border-radius: 3px;
  background: #d6cbb9;
  margin: 10px auto -4px;
}

.language-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin: 10px 0;
  background: var(--surface);
  padding: 14px 16px;
  min-height: 60px;
  color: var(--ink);
}

.language-option strong {
  font-size: 1rem;
  font-weight: 600;
}

.language-option small {
  display: block;
  text-align: left;
  font-size: 0.75rem;
  margin-top: 2px;
  color: var(--muted);
}

.language-option[aria-pressed=true] {
  border-color: var(--terracotta);
  background: var(--terracotta-soft);
}

.account-address {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.875rem;
  margin: 10px 0 16px;
}

.fee {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin: 14px 0;
}

.toast {
  position: fixed;
  bottom: calc(88px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 36px);
  max-width: 420px;
  padding: 13px 16px;
  background: var(--ink);
  color: #ffffff;
  border-radius: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.55;
  z-index: 20;
  box-shadow: 0 8px 28px rgba(26, 37, 54, 0.25);
  pointer-events: none;
}

[hidden] {
  display: none !important;
}

html[lang=or] h1,
html[lang=hi] h1 {
  font-size: 1.375rem;
  line-height: 1.5;
  letter-spacing: 0;
}

html[lang=or] .hero h1,
html[lang=hi] .hero h1 {
  font-size: 1.375rem;
  line-height: 1.5;
}

html[lang=or] p,
html[lang=or] .btn,
html[lang=or] .small,
html[lang=or] .record-table dt,
html[lang=or] .record-table dd {
  line-height: 1.75;
}

@media (min-width: 481px) {
  .app-shell {
    border-left: 1px solid #dfd5c5;
    border-right: 1px solid #dfd5c5;
  }
}

@media (min-width: 768px) {
  .app-shell {
    max-width: 920px;
  }

  .topbar {
    padding-left: 32px;
    padding-right: 32px;
  }

  .page {
    padding: 28px 32px 36px;
  }

  .bottom-nav {
    grid-template-columns: repeat(4, minmax(0, 160px));
    justify-content: center;
    gap: 8px;
  }

  .hero {
    padding: 26px 30px;
  }

  .hero h1,
  .hero .subtitle {
    max-width: 540px;
  }

  .stats {
    gap: 14px;
  }

  .sheet {
    width: min(100%, 520px);
    border-radius: 22px;
    margin: auto;
  }
}

@media (max-width: 359px) {
  .page {
    padding: 16px 14px 24px;
  }

  .topbar {
    padding-left: 14px;
    padding-right: 12px;
  }

  .hero {
    padding: 18px 15px;
  }

  .hero h1 {
    font-size: 1.25rem;
  }

  .btn {
    font-size: 0.8125rem;
    padding: 10px 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats {
    gap: 6px;
  }

  .stat {
    padding: 10px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

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

@keyframes appear {
  from {
    opacity: 0.65;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

h1,
h2,
h3,
.badge,
.btn,
.stat-label,
.record-table dt {
  overflow-wrap: anywhere;
}

/* Official cadastral image; its local survey coordinates are never treated as GPS. */
.parcel-map-card figure {
  margin: 12px 0;
}

.map-viewport {
  width: 100%;
  aspect-ratio: 1;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
}

.parcel-map {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

.parcel-map.map-zoomed {
  width: 200%;
}

.parcel-map-card figcaption {
  font-size: 0.75rem;
  line-height: 1.6;
  margin-top: 8px;
  color: var(--muted);
}

.source-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.source-card {
  padding: 4px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin: 0;
  box-shadow: 0 2px 6px rgba(26, 37, 54, 0.03);
  overflow: hidden;
}

.source-card>summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 58px;
  min-width: 0;
}

.source-card>summary strong {
  font-size: 0.875rem;
  font-weight: 700;
  margin-right: auto;
  color: var(--ink);
  line-height: 1.35;
  min-width: 0;
  flex: 1;
}

.source-card .badge {
  font-size: 0.6875rem;
  max-width: 38%;
  min-width: 0;
  white-space: normal;
  text-align: right;
  flex-shrink: 1;
}

.source-card[open] {
  padding-bottom: 16px;
}

.source-card .button-row {
  margin-top: 10px;
}

.source-result {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 12px;
}

.source-result h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.source-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.source-meta-row .tiny {
  margin: 0;
}

.source-result .btn {
  margin: 6px 4px 0 0;
}

.source-result pre {
  max-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.source-captcha {
  display: block;
  max-width: 100%;
  min-height: 48px;
  margin: 16px 0;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
}

.information-heading .btn {
  width: 100%;
}

.dd-card {
  overflow: hidden;
}

.dd-card>summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 54px;
  min-width: 0;
}

.dd-card>summary strong {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-right: auto;
  min-width: 0;
  flex: 1;
}

.dd-card[open]>summary {
  margin-bottom: 10px;
}

textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid #d6cbb9;
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  resize: vertical;
  outline: none;
}

.source-table {
  max-width: 100%;
  max-height: 340px;
  overflow: auto;
  margin: 10px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.source-table table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.75rem;
}

.source-table th,
.source-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  min-width: 90px;
  max-width: 220px;
  overflow-wrap: anywhere;
}

.source-table th {
  background: var(--surface-subtle);
  font-weight: 600;
  color: var(--ink);
}

.dd-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.dd-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  text-align: left;
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  line-height: 1.55;
  min-height: 52px;
}

.dd-item>span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dd-item[aria-pressed=true] {
  border-color: var(--green);
  background: var(--green-soft);
}

.dd-box {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid #c5b69f;
  border-radius: 7px;
  display: grid;
  place-items: center;
  margin-top: 1px;
  background: var(--terracotta-soft);
  color: var(--surface);
}

.dd-item[aria-pressed=true] .dd-box {
  background: var(--green);
  border-color: var(--green);
}

.dd-box .icon {
  width: 14px;
  height: 14px;
}

.auth-providers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  font-size: 0.75rem;
  color: var(--muted);
}

.auth-divider:before,
.auth-divider:after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--border);
}

.refer-card {
  margin-top: 16px;
  border-color: #e6d4bd;
  background: linear-gradient(180deg, #ffffff 0%, #fbf5eb 100%);
}

.refer-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.refer-head h2 {
  margin-bottom: 4px;
}

.refer-head p {
  margin-bottom: 0;
}

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

.refer-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  min-width: 0;
}

.refer-chip span {
  overflow-wrap: anywhere;
}

.refer-chip .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.refer-whatsapp {
  background: #e8f6ee;
  border-color: #b7e2c7;
  color: #14532d;
}

.refer-facebook {
  background: #eef3f8;
  border-color: #c7d7ea;
  color: #163a5f;
}

.refer-sms {
  background: #fdf4e0;
  border-color: #ead19c;
  color: #8a5308;
}

.refer-copy {
  background: #fceeeb;
  border-color: #ebc5be;
  color: #961f1b;
}

.refer-more {
  grid-column: 1 / -1;
}