:root {
  --bg: #e9f2ee;
  --paper: #f5faf7;
  --mint: #e9f2ee;
  --gear-hole: #e9f2ee;
  --pine: #006c3a;
  --pine-dark: #006c3a;
  --welcome-page: #f6f6f6;
  --ink: #172329;
  --muted: #5d6d74;
  --card: #ffffff;
  --line: #d5e3de;
  --gold: #f2c14e;
  --danger: #8d3030;
  --shadow: 0 0.6rem 1.6rem rgba(23, 35, 41, 0.06);
  --radius: 1.15rem;
  --nav: 3.85rem;
  --fab-size: 3.25rem;
  --fab-gap: 0.75rem;
  color-scheme: light;
  font-family: "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
:focus-visible {
  outline: 0.18rem solid var(--pine);
  outline-offset: 0.12rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.shell {
  height: 100dvh;
  max-width: 90rem;
  margin: 0 auto;
  overflow: hidden;
}
.intro { display: none; }
.device {
  position: relative;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  min-width: 0;
  overflow: hidden;
}
.demo-strip {
  margin: 0;
  padding: 0.45rem 0.9rem;
  background: #004d28;
  color: #f4fffd;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
}
.demo-strip.is-hidden-guest {
  display: none;
}
.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  background: var(--mint);
}
.topbar[hidden] { display: none !important; }
.device.device-welcome {
  background: var(--welcome-page);
}
.view.view-welcome {
  padding: 0 0 0.85rem;
  background: var(--welcome-page);
}
.welcome-body {
  padding: 0 1.125rem 1rem;
}
.welcome-hero-card {
  margin: 0 0 0.35rem;
  border-radius: 0 0 1.5625rem 1.5625rem;
  overflow: hidden;
  box-shadow: 0 0.25rem 0.35rem rgba(0, 0, 0, 0.12);
  background: #e9f2ee;
}
.welcome-hero {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 1.25rem 1.25rem 1.35rem;
  background-color: #e9f2ee;
  background-image: url("../images/ref/fristheader.png");
  background-repeat: no-repeat;
  background-size: 11.25rem 7.5rem;
  background-position: left top;
  border-radius: 0 0 1.5625rem 1.5625rem;
  text-align: center;
  overflow: hidden;
}
.welcome-hero > * {
  position: relative;
  z-index: 1;
}
.welcome-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.welcome-top-actions .icon-button-hero {
  color: var(--pine);
  min-width: 1.5rem;
  min-height: 1.5rem;
  padding: 0;
  border: 0;
  background: transparent;
}
.welcome-top-actions .icon-button-hero svg {
  width: 1.5rem;
  height: 1.5rem;
}
.top-actions .icon-button {
  color: var(--pine);
}
.icon-gear-solid .icon-gear-hole {
  fill: var(--gear-hole);
}
.icon-gear-solid .icon-gear-dot {
  fill: var(--pine);
}
.welcome-brand {
  display: grid;
  justify-items: center;
  gap: 0.3125rem;
  margin-bottom: 0.625rem;
}
.welcome-brand .logo-mark { width: 4.5rem; height: 4.5rem; }
.welcome-logo {
  display: block;
  width: min(10rem, 88vw);
  height: auto;
  max-height: 8.125rem;
  aspect-ratio: 160 / 130;
  object-fit: contain;
  margin: 0 auto;
  background: transparent;
}
.welcome-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: #111;
}
.welcome-section-head {
  padding: 1.125rem 0 0.65rem;
  margin: 0;
}
.welcome-section-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
}
.welcome-see-all {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pine);
  min-height: auto;
  padding: 0;
  border: 0;
}
.welcome-footer {
  margin: 1.5rem 0 0.35rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}
.welcome-login {
  width: 100%;
  max-width: none;
  margin: 0.625rem auto 0;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 700;
  font-size: 1rem;
  min-height: 3.875rem;
  border-radius: 0.9375rem;
  background: var(--pine);
  box-shadow: none;
}
.welcome-services-wrap {
  overflow: hidden;
  margin: 0 0 0.15rem;
}
.welcome-services {
  gap: 0.25rem;
  margin: 0 0.25rem;
}
.welcome-services.welcome-services-hscroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 9.8125rem;
  grid-template-rows: repeat(2, 9.375rem);
  grid-template-columns: unset;
  align-content: start;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline-end: 0.75rem;
  padding-bottom: 0.25rem;
  max-height: calc(9.375rem * 2 + 0.25rem);
}
.welcome-services.welcome-services-hscroll::-webkit-scrollbar {
  display: none;
}
.welcome-services.welcome-services-hscroll .tile.tile-public {
  width: 9.8125rem;
  max-width: 9.8125rem;
  min-height: 9.375rem;
  height: 9.375rem;
  scroll-snap-align: start;
}
.welcome-services .tile.tile-public {
  min-height: 9.375rem;
  padding: 0.65rem 0.35rem 0.55rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  border: 0;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.2;
  color: #000;
  border-radius: 1rem;
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.08);
}
.welcome-services .service-icon-slot {
  width: 3.75rem;
  height: 3.75rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.welcome-services .service-icon {
  width: 2.55rem;
  height: 2.55rem;
  color: var(--pine);
  display: block;
}
.welcome-services .service-icon-img {
  width: 3.75rem;
  height: 3.75rem;
  max-width: 100%;
  object-fit: contain;
}
.device.device-welcome .device-footer,
.device.device-login .device-footer,
.device.device-public .device-footer {
  display: none;
}
.device.device-login {
  background: #f0f0f0;
}
.device.device-public {
  background: var(--welcome-page);
}
.view.view-login {
  padding: 0;
  background: #f0f0f0;
}
.view.view-public {
  padding: 0;
  background: var(--welcome-page);
}
.absher-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 1.25rem 1.25rem 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pine);
}
.absher-back svg {
  width: 1.75rem;
  height: 1.75rem;
}
.login-screen {
  padding: 0 1.25rem 2rem;
  max-width: 32rem;
  margin: 0 auto;
}
.login-logo {
  display: block;
  width: 9.375rem;
  height: auto;
  margin: 0.625rem auto 0;
  object-fit: contain;
}
.topbar-dual-logo,
.absher-home-logo {
  width: 8.75rem;
  height: auto;
  max-height: 3.75rem;
  object-fit: contain;
}
.absher-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}
.topbar-app {
  background: #e9f2ee;
  border-bottom: 0;
  padding: 0.65rem 1rem;
}
.view.view-verify,
.view.view-loading {
  padding: 0;
  background: #f5f5f5;
}
.verify-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0.75rem 2rem;
  background: #f5f5f5;
}
.otp-notif {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: min(100%, 28rem);
  margin: 0.35rem auto 0.25rem;
  padding: 0.75rem;
  border-radius: 0.875rem;
  background: #1c1c1c;
  color: #fff;
  box-shadow: 0 0.45rem 1rem rgba(0, 0, 0, 0.28);
  text-align: start;
  animation: otp-notif-cycle 5.8s ease forwards;
}
.otp-notif-copy {
  flex: 1;
  min-width: 0;
}
.otp-notif-copy strong {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
}
.otp-notif-copy p {
  margin: 0.1rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #cccccc;
}
.otp-notif-copy small {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.68rem;
  color: #999999;
}
.otp-notif-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}
@keyframes otp-notif-cycle {
  0% { transform: translateY(-130%); opacity: 0; }
  10% { transform: translateY(0); opacity: 1; }
  78% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(-140%); opacity: 0; visibility: hidden; }
}
.verify-inner {
  width: min(100%, 24rem);
  text-align: center;
  padding-top: 0.35rem;
}
.verify-logo {
  width: 11.25rem;
  height: auto;
  margin: 0.4rem auto 0.5rem;
}
.verify-title {
  margin: 0.4rem 0 0.75rem;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
}
.verify-body {
  margin: 0;
  color: #555555;
  font-size: 1.05rem;
  line-height: 1.35;
}
.verify-sms {
  margin: 0.25rem 0 1rem;
  color: #555555;
  font-size: 0.875rem;
}
.otp-absher {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
}
.otp-box {
  width: 4.125rem;
  height: 4.375rem;
  border: 1.5px solid #cccccc;
  border-radius: 0.625rem;
  background: #fff;
  text-align: center;
  font-size: 1.375rem;
  font-weight: 700;
  color: #1a1a1a;
}
.otp-box:focus {
  outline: none;
  border-width: 2px;
  border-color: #1b8b4b;
}
.otp-autofill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.25rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-align: start;
  color: #222;
}
.otp-autofill svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}
.otp-autofill strong,
.otp-autofill small {
  display: block;
  line-height: 1.2;
}
.otp-autofill strong {
  font-size: 0.92rem;
}
.otp-autofill small {
  font-size: 0.75rem;
  font-weight: 500;
  color: #777;
}
@media (prefers-reduced-motion: reduce) {
  .otp-notif { animation: none; }
}
.loading-absher {
  min-height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  background: #fff;
}
.loading-absher-logo {
  width: 4.5rem;
  height: 4.5rem;
  object-fit: contain;
}
.loading-absher-text {
  margin: 0;
  font-size: 1rem;
  color: #111;
}
.view.view-home {
  padding: 0;
  background: #f3f7f5;
}
.home-absher {
  padding: 0 0 4.5rem;
  min-height: 100%;
}
.home-upper {
  padding: 1rem 0.625rem 0.85rem;
  background: #f2f2f2;
}
.absher-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
.profile-photo {
  width: 3.375rem;
  height: 3.375rem;
  border-radius: 0.5rem;
  object-fit: cover;
  object-position: center top;
  flex: 0 0 auto;
  background: #e8ecea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
.profile-copy {
  min-width: 0;
  flex: 1;
}
.profile-name {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  color: #1a1a1a;
}
.profile-id-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #666666;
}
.absher-section-head {
  margin-bottom: 0.55rem;
}
.absher-section-head h2 {
  color: #111;
  font-size: 1rem;
  font-weight: 800;
}
.absher-see-all {
  color: #1b8b4b;
  font-weight: 700;
  font-size: 0.875rem;
  min-height: auto;
  padding: 0;
}
.absher-docs-scroll {
  grid-auto-columns: minmax(9.5rem, 46%);
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.absher-doc-card {
  position: relative;
  min-height: 5.75rem;
  border: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  text-align: start;
  padding: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}
.absher-doc-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -0.5rem;
  bottom: -0.25rem;
  width: 4.5rem;
  height: 4.5rem;
  opacity: 0.14;
  background: url("../images/ref/logohrader-clean.png") center / contain no-repeat;
  pointer-events: none;
}
.absher-doc-card.resident {
  background: linear-gradient(135deg, #f7efd4 0%, #efe3bc 100%);
}
.absher-doc-card.license {
  background: linear-gradient(135deg, #dceef0 0%, #c8e3e8 100%);
}
.absher-doc-label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 800;
  color: #333;
}
.home-doc-tip {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  font-size: 0.68rem;
  line-height: 1.4;
  color: #555;
  margin: 0.35rem 0 0;
}
.home-doc-tip .login-info-icon svg {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.1rem;
}
.home-quick-band {
  margin-top: 1.5rem;
  padding: 1.5rem 1rem 1rem;
  background-color: #e5f0ec;
  background-image: url("../images/ref/fristheader.png");
  background-repeat: no-repeat;
  background-size: 11.25rem 7.5rem;
  background-position: left top;
  border-radius: 0;
  flex: 1;
}
.home-quick-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.quick-access-title {
  color: #1a1a1a;
  font-size: 1.125rem;
  font-weight: 800;
  margin: 0 0 0.65rem;
}
.home-vehicle-tile,
.home-weapons-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  min-height: 4.75rem;
  padding: 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: start;
  color: inherit;
}
.home-weapons-tile {
  min-height: auto;
  margin-top: 0.35rem;
  border-radius: 1rem;
  gap: 0.875rem;
}
.home-weapons-tile .home-wide-icon-sm {
  flex: 0 0 auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(87%) saturate(1200%) hue-rotate(128deg) brightness(95%) contrast(101%);
}
.home-wide-icon {
  flex: 0 0 auto;
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  padding: 0.25rem;
}
.home-vehicle-tile .wide-copy {
  flex: 1;
  min-width: 0;
}
.home-vehicle-tile .wide-copy strong,
.home-weapons-tile .wide-copy strong {
  display: block;
  font-size: 1rem;
  color: #1a1a1a;
}
.home-weapons-tile .wide-copy strong {
  font-size: 1.125rem;
}
.home-vehicle-tile .wide-copy small,
.home-weapons-tile .wide-copy small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #666;
  line-height: 1.35;
}
.home-weapons-tile .wide-copy small {
  font-size: 0.9375rem;
  color: #7a7a7a;
}
.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.tile-home-quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 8.125rem;
  padding: 0.75rem 0.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #1a1a1a;
}
.home-quick-icon {
  width: 3.4375rem;
  height: 3.4375rem;
  object-fit: contain;
}
.tile-home-quick svg {
  width: 3.4375rem;
  height: 3.4375rem;
  color: var(--pine);
}
.tile-home-quick span {
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}
.icon-button-notify {
  position: relative;
}
.icon-button-notify::after {
  content: "";
  position: absolute;
  top: 0.55rem;
  inset-inline-end: 0.6rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #e53935;
  border: 1.5px solid #e9f2ee;
}
.device.device-home-tab .topbar-app {
  background: #e9f2ee;
}
.view.view-more,
.view.view-tab-app {
  background: #fff;
  padding: 0 1rem 1rem;
}
.view.view-home.view-tab-app {
  background: #f2f2f2;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.view.view-home.view-tab-app .home-absher {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.more-absher {
  padding: 0 0 1.25rem;
}
.more-title {
  margin: 0.35rem 0 0.65rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}
.more-absher .search {
  margin: 0 0 1rem;
  border-radius: 0.65rem;
  background: #eef1f0;
  min-height: 2.75rem;
  padding-inline-start: 2.35rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%23888' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 0.85rem center;
}
.other-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.tile-other {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  min-height: 7.25rem;
  padding: 1rem 0.55rem 0.85rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.other-icon-slot {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
}
.other-icon-slot .service-icon,
.other-icon-slot svg {
  width: 2.75rem;
  height: 2.75rem;
  color: var(--pine);
}
.other-icon-img {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
}
.tile-other-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: #222;
}
.more-no-match {
  margin-top: 1rem;
  text-align: center;
}
.tabbar button[aria-current="page"] svg {
  color: var(--pine);
}
.login-heading {
  margin: 0.625rem 0 0.75rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
}
.login-demo-hint {
  margin: 0 0 1rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #444;
}
.login-form {
  display: grid;
  gap: 0.625rem;
}
.login-field {
  position: relative;
}
.login-field-label {
  position: absolute;
  z-index: 1;
  top: 0.1875rem;
  inset-inline-start: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111;
  pointer-events: none;
}
.login-input {
  width: 100%;
  min-height: 3.75rem;
  padding: 1.125rem 0.75rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.625rem;
  background: #fff;
  font-size: 0.875rem;
}
.login-input:focus {
  outline: none;
  border-color: #00875a;
  border-width: 2px;
  padding: calc(1.125rem - 1px) calc(0.75rem - 1px) calc(0.5rem - 1px);
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
}
.login-remember input {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: #00875a;
}
.login-info {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-inline: 0;
}
.login-info-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
}
.login-info p {
  margin: 0;
  font-size: 0.625rem;
  line-height: 1.35;
  color: #444;
}
.login-submit {
  margin-top: 2.5rem;
  min-height: 3.4375rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--pine);
}
.login-forgot {
  display: block;
  margin: 1.25rem auto 0;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--pine);
  min-height: auto;
}
.login-error:not(:empty) {
  margin-top: 0.5rem;
}
.public-screen {
  position: relative;
  padding: 0 1.125rem 1.25rem;
}
.public-lang {
  position: absolute;
  top: 1.15rem;
  inset-inline-end: 1rem;
  display: flex;
  gap: 0.35rem;
}
.lang-chip {
  color: var(--pine);
  font-weight: 700;
  min-height: auto;
  padding: 0.2rem 0.35rem;
}
.public-heading {
  margin: 3rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111;
}
.view.view-public .search {
  border-radius: 0.625rem;
  background: #fff;
  border: 1px solid #ddd;
}
.public-grid.welcome-services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.welcome-powered {
  display: block;
  width: min(100%, 22.5rem);
  height: auto;
  max-height: 4.375rem;
  margin: 0 auto;
  object-fit: contain;
}
.welcome-services .tile.tile-public > span:last-child {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  min-height: 2.35rem;
  white-space: pre-line;
}
.topbar h1 {
  flex: 1 1 8rem;
  min-width: 0;
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  overflow-wrap: anywhere;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.brand strong { display: block; font-size: 1.05rem; }
.brand small { display: block; color: var(--muted); }
.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}
.icon-button, .text-button {
  border: 0;
  background: transparent;
  color: var(--pine-dark);
  min-height: 2.75rem;
  min-width: 2.75rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}
.text-button { width: auto; padding: 0 0.8rem; font-weight: 700; }
.icon-button svg, .tabbar svg, .tile svg, .fab svg { width: 1.45rem; height: 1.45rem; }
.top-actions { display: flex; margin-inline-start: auto; }

.view {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1rem 1.2rem;
}
.device.has-tabs .view {
  padding-bottom: calc(var(--nav) + var(--fab-size) + var(--fab-gap) + 1rem);
}
.view.no-tabs { padding-bottom: 1.2rem; }
.view h2 { margin: 0.2rem 0 0.8rem; font-size: clamp(1.35rem, 3vw, 1.8rem); }

.hero, .card, .tile, .doc-card, .person, .notice, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero { padding: 1.1rem; margin-bottom: 1rem; }
.hero p { color: var(--muted); line-height: 1.45; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.9rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
}
.btn-primary { background: var(--pine); color: white; width: 100%; }
.btn-ghost { background: white; color: var(--pine-dark); border-color: var(--line); width: 100%; }
.btn-line { background: transparent; color: var(--pine-dark); width: auto; padding-inline: 0; }
.stack { display: grid; gap: 0.7rem; }
.section-head, .row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.section-head h2, .section-head h3 { margin: 0; }

.h-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(8.5rem, 46%);
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; }
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.2rem), 1fr));
  gap: 0.75rem;
}
.tile {
  min-height: 8.2rem;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.7rem;
  text-align: start;
  color: var(--ink);
}
.tile span, .person strong, .doc-card strong { overflow-wrap: anywhere; }
.tile svg { color: var(--pine); }
.tile-wide { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; }
.wide-copy { display: grid; gap: 0.2rem; }
.wide-copy small, .muted, .footer-note { color: var(--muted); line-height: 1.45; }
.search {
  width: 100%;
  min-height: 2.9rem;
  border: 0;
  border-radius: 999px;
  background: #e6ecea;
  padding: 0.55rem 0.95rem;
  margin: 0.2rem 0 0.9rem;
}
.person {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem;
  margin-bottom: 0.7rem;
}
.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--pine-dark);
  font-weight: 800;
  flex: 0 0 auto;
}
.is-blurred { filter: blur(5px); }
.profile-card { display: flex; gap: 0.85rem; align-items: center; padding: 0.95rem; margin-bottom: 1rem; }
.mini-docs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 0.7rem; }
.mini-doc {
  min-height: 5.5rem;
  border: 0;
  border-radius: 1rem;
  padding: 0.85rem;
  text-align: start;
  font-weight: 800;
}
.mini-doc.resident { background: #f4eccf; }
.mini-doc.license { background: #d9eef0; }
.notice { padding: 0.85rem 1rem; margin-bottom: 0.9rem; display: flex; gap: 0.7rem; align-items: flex-start; }
.preferred-band {
  background: var(--mint);
  margin: 0.4rem -1rem 0;
  padding: 0.9rem 1rem 1rem;
}
.doc-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  margin-bottom: 0.9rem;
}
.ribbon {
  display: inline-block;
  background: var(--gold);
  color: #3d3010;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}
.doc-card dl { display: grid; grid-template-columns: minmax(6rem, 40%) 1fr; gap: 0.35rem 0.6rem; margin: 0.8rem 0 0; }
.doc-card dt { color: var(--muted); }
.doc-card dd { margin: 0; overflow-wrap: anywhere; }
.watermark {
  position: absolute;
  inset: 38% -10%;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(0, 104, 55, 0.12);
  transform: rotate(-16deg);
  pointer-events: none;
}

.field { display: grid; gap: 0.3rem; margin-bottom: 0.75rem; }
.field span { font-weight: 700; }
.field input, .search-select-button, .date-field input {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: white;
  padding: 0.55rem 0.75rem;
}
.ltr-field { direction: ltr; text-align: left; }
.password-row { display: flex; gap: 0.4rem; }
.password-row input { flex: 1; }
.error { min-height: 1.1rem; margin: 0; color: var(--danger); font-size: 0.86rem; }
.lock-note { color: var(--danger); }
.check { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0.4rem 0 0.8rem; }
.sample-box { background: var(--mint); border-radius: var(--radius); padding: 0.9rem; margin: 0.9rem 0; }
.otp {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  max-width: 22rem;
  margin: 0.8rem 0;
}
.otp input {
  min-height: 3.4rem;
  text-align: center;
  font-size: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
}
.panel { padding: 0.9rem; margin-bottom: 0.8rem; }
.radio-row, .switch-row {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.switch { position: relative; width: 2.8rem; height: 1.6rem; flex: 0 0 auto; }
.switch input { position: absolute; inset: 0; opacity: 0; }
.switch i {
  position: absolute;
  inset: 0;
  background: #c5d4d0;
  border-radius: 999px;
}
.switch i::after {
  content: "";
  position: absolute;
  top: 0.16rem;
  inset-inline-start: 0.16rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s ease;
}
.switch input:checked + i { background: var(--pine); }
.switch input:checked + i::after { transform: translateX(1.2rem); }
[dir="rtl"] .switch input:checked + i::after { transform: translateX(-1.2rem); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; background: #e6ecea; padding: 0.3rem; border-radius: 999px; }
.segmented button { border: 0; background: transparent; min-height: 2.5rem; border-radius: 999px; font-weight: 700; }
.segmented button[aria-pressed="true"] { background: var(--pine); color: white; }
.success { background: #e5f6ea; border-radius: 0.8rem; padding: 0.7rem 0.8rem; }

.search-select { position: relative; }
.search-select-panel {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  top: calc(100% + 0.25rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  padding: 0.45rem;
}
.search-select-panel ul { list-style: none; margin: 0.4rem 0 0; padding: 0; max-height: 12rem; overflow: auto; }
.search-select-panel li button { width: 100%; text-align: start; border: 0; background: transparent; min-height: 2.5rem; border-radius: 0.6rem; }
.search-select-panel li button:hover, .search-select-panel li button[aria-selected="true"] { background: var(--mint); }
.date-field { display: flex; gap: 0.4rem; position: relative; }
.date-field input { flex: 1; }

.device-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 6;
  padding-bottom: env(safe-area-inset-bottom);
  background: white;
}
.device-footer:not(.has-tabs) {
  display: none;
}
.device-footer.has-tabs {
  display: block;
}
.tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: white;
  border-top: 1px solid var(--line);
  min-height: var(--nav);
}
.tabbar button {
  border: 0;
  background: transparent;
  color: #9aa0a6;
  min-height: var(--nav);
  padding: 0.35rem 0.15rem 0.3rem;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.12rem;
}
.tab-icon {
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}
.tabbar span {
  font-size: 0.75rem;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  font-weight: 500;
}
.tabbar button[aria-current="page"] { color: #006c3a; font-weight: 700; }
.tabbar button[aria-current="page"] span { font-weight: 700; }
.fab {
  position: absolute;
  inset-inline-end: 1rem;
  bottom: calc(100% + var(--fab-gap));
  width: var(--fab-size);
  height: var(--fab-size);
  border: 0;
  border-radius: 50%;
  background: var(--pine);
  color: white;
  display: grid;
  place-items: center;
  box-shadow: 0 0.4rem 1rem rgba(0, 104, 55, 0.35);
  z-index: 7;
}
.chat {
  position: absolute;
  inset-inline: 0.7rem;
  bottom: calc(100% + 0.35rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  z-index: 6;
  display: flex;
  flex-direction: column;
  max-height: min(70dvh, 28rem);
}
.chat header, .confirm header { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem 0.4rem 0.8rem; }
.chat-log { overflow: auto; padding: 0.2rem 0.8rem 0.6rem; display: grid; gap: 0.45rem; }
.bubble { margin: 0; padding: 0.55rem 0.7rem; border-radius: 0.8rem; background: var(--mint); line-height: 1.4; }
.bubble.user { background: #e7eef8; }
.chat-form { display: flex; gap: 0.4rem; padding: 0.6rem; }
.chat-form input { flex: 1; min-width: 0; min-height: 2.7rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 0.8rem; }
.logout-button {
  width: 100%;
  margin: 0 0 0.9rem;
  background: white;
  color: #9b2c2c;
  border: 1px solid var(--line);
  font-weight: 800;
}
.logout-link { color: #9b2c2c; font-weight: 800; }
.confirm {
  position: absolute;
  inset: auto 0.75rem calc(env(safe-area-inset-bottom) + 0.75rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: 0 0.8rem 2rem rgba(23, 35, 41, 0.18);
  z-index: 8;
  padding-bottom: 0.8rem;
}
.confirm p { margin: 0 0.9rem 0.8rem; }
.loading-screen, .empty { text-align: center; padding: 2rem 0.5rem; }
.empty svg, .loading-screen .logo-mark { width: 4rem; height: 4rem; margin: 0 auto 0.6rem; color: var(--ink); }
.footer-note { font-size: 0.82rem; margin-top: 1.2rem; }

.profile-card-button {
  width: 100%;
  text-align: start;
  cursor: pointer;
}
.absher-docs-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}
.absher-doc-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.85rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.absher-doc-thumb.is-empty {
  min-height: 6.5rem;
  display: flex;
  align-items: flex-end;
  padding: 0.7rem;
  background: linear-gradient(160deg, #f7f4ea, #e7f3ee);
  color: #143;
  font-weight: 700;
}
.absher-doc-thumb img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.view.view-documents {
  background: #f2f2f2;
  padding: 0 0 1rem;
}
.view.view-my-profile,
.view.view-plain {
  background: #f5f5f5;
  padding: 0;
}
.plain-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  padding-bottom: 1rem;
}
.plain-screen-grey { background: #f5f5f5; }
.plain-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  background: transparent;
}
.plain-head h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.plain-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 1rem;
  gap: 0.45rem;
}
.plain-empty svg {
  width: 3rem;
  height: 3rem;
  padding: 1rem;
  box-sizing: content-box;
  background: #efefef;
  border-radius: 1.25rem;
}
.plain-empty strong {
  margin-top: 0.8rem;
  font-size: 1.05rem;
  color: #1a1a1a;
}
.plain-empty p {
  margin: 0;
  max-width: 18rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #8a8a8a;
}
.view.view-vehicles { background: #fff; }
.viol-screen {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #f5f5f5;
}
.viol-head {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 3.5rem;
  padding: 0 1rem;
  background: #f5f5f5;
}
.viol-head h1 {
  position: absolute;
  left: 3rem;
  right: 3rem;
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.3;
}
.viol-tabs {
  display: flex;
  background: #fff;
  min-height: 3rem;
}
.viol-tab {
  position: relative;
  flex: 1;
  border: 0;
  background: transparent;
  color: #9a9a9a;
  font-size: 0.95rem;
  font-weight: 500;
  min-height: 3rem;
}
.viol-tab.is-on {
  color: #4caf7d;
  font-weight: 700;
}
.viol-tab.is-on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: #4caf7d;
}
.viol-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 2rem 3rem;
}
.viol-icon {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}
.viol-icon-plate {
  width: 6rem;
  height: 6rem;
  border-radius: 1rem;
  background: #e0e0e0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.viol-icon-plate img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.viol-empty strong {
  margin-top: 1.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
}
.viol-empty p {
  margin: 0.5rem 0 0;
  max-width: 16rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #888;
}
.vehicles-absher {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.vehicles-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
}
.vehicles-head h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
}
.vehicles-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.25rem 1rem 0;
  padding: 0.875rem;
  background: #e8e8e8;
  border-radius: 0.75rem;
  color: #8a8a8a;
  font-size: 0.875rem;
}
.vehicles-search svg { flex: 0 0 auto; }
.vehicles-label {
  margin: 1.25rem 1rem 0;
  font-size: 1.25rem;
  color: #333;
}
.vehicles-list { flex: 1; }
.vehicles-services {
  margin-top: auto;
  background: #e5f5ea;
  padding: 1rem 0 1.1rem;
}
.vehicles-services h2 {
  margin: 0 1rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  color: #333;
}
.vehicles-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0 1rem 0.25rem;
  -webkit-overflow-scrolling: touch;
}
.vehicles-card {
  flex: 0 0 10rem;
  width: 10rem;
  min-height: 9.375rem;
  background: #fff;
  border: 0;
  border-radius: 0.75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #333;
}
.vehicles-card img {
  width: 4.375rem;
  height: 4.375rem;
  object-fit: contain;
}
.vehicles-card span {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}
.view.view-info { background: #f5f5f5; }
.personal-info { min-height: 100%; background: #f5f5f5; }
.info-page-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1.25rem 1rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.info-page-head h1 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.info-list { padding: 0.5rem 0 1rem; }
.info-card {
  margin: 0 0.75rem 0.65rem;
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}
.info-head {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 4.6rem;
  padding: 1rem;
  border: 0;
  background: #fff;
  color: #1a1a1a;
  text-align: start;
  gap: 0.95rem;
}
.info-head span {
  flex: 1;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
}
.info-avatar {
  width: 2.625rem;
  height: 2.625rem;
  border-radius: 0.625rem;
  object-fit: cover;
  object-position: center 18%;
  flex: 0 0 auto;
}
.info-glyph {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex: 0 0 auto;
}
.info-arrow { width: 1.5rem; height: 1.5rem; flex: 0 0 auto; }
.info-body { border-top: 0; }
.info-row {
  padding: 0.875rem 1rem;
  border-top: 1px solid #eee;
}
.info-label {
  display: block;
  font-size: 1rem;
  color: #1a1a1a;
}
.info-value {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9375rem;
  color: #888;
  line-height: 1.4;
}
.hajj-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 1.25rem;
  background: #fbeaea;
  color: #d32f2f;
  font-size: 0.8125rem;
  font-weight: 700;
}
.hajj-pill i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}
.hajj-pill.is-ok {
  background: #c5e4d2;
  color: #024d22;
}
.btn-outline-green,
.btn-solid-green {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  margin: 0.75rem 1rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.btn-outline-green {
  border: 1.5px solid #006c3a;
  background: #fff;
  color: #006c3a;
}
.btn-solid-green {
  margin-top: auto;
  border: 0;
  background: #1b8b4b;
  color: #fff;
}
.auth-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 10rem;
  height: 10rem;
  margin: 0.6rem 1.85rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
}
.auth-card img { width: 4.5rem; height: 4.5rem; object-fit: contain; }
.auth-card span { font-size: 0.875rem; line-height: 1.3; text-align: center; }
.auth-step-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0.5rem 0 0.75rem;
  color: #666;
  font-size: 0.85rem;
}
.auth-dots { display: flex; gap: 0.35rem; }
.auth-dots i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d0d0d0;
}
.auth-dots i.is-on { background: #1b8b4b; }
.auth-step-title {
  margin: 0 1rem 0.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
}
.identity-card {
  margin: 0 1rem;
  padding: 1rem 0.9rem 0.4rem;
  border-radius: 0.85rem;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.identity-card h3 {
  margin: 0 0 0.75rem;
  text-align: center;
  font-size: 1rem;
}
.identity-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: transparent;
  text-align: start;
  color: #222;
}
.identity-radio {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  border: 2px solid #1b8b4b;
  border-radius: 50%;
}
.identity-option.is-on .identity-radio {
  background: radial-gradient(circle, #1b8b4b 0 0.38rem, #fff 0.42rem 100%);
}
.identity-copy strong,
.identity-copy small {
  display: block;
  line-height: 1.45;
}
.identity-copy strong { font-size: 0.92rem; font-weight: 600; }
.identity-copy small { margin-top: 0.15rem; font-size: 0.78rem; color: #666; }
.documents-absher {
  padding: 0.35rem 1rem 1.5rem;
}
.documents-meta {
  margin: 0.35rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #666;
  line-height: 1.45;
}
.documents-block {
  margin-top: 1.25rem;
}
.documents-block-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a1a1a;
}
.digital-card-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.875rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.digital-card-image {
  display: block;
  width: 100%;
  height: auto;
}
.topbar .absher-back-top {
  color: var(--pine);
  min-width: 2.5rem;
  padding: 0;
}
.topbar .absher-back-top svg {
  width: 1.35rem;
  height: 1.35rem;
}
.topbar h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--pine-dark);
}
.my-profile-absher {
  padding: 0 0 5.5rem;
  background: #f5f5f5;
}
.profile-page-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem 3.75rem;
  background: #ddebe0;
}
.profile-page-head h1 {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
}
.profile-back {
  width: 1.875rem;
  height: 1.875rem;
  border: 0;
  background: transparent;
  color: #1a1a1a;
  display: grid;
  place-items: center;
  padding: 0;
}
.profile-back svg { width: 1.5rem; height: 1.5rem; }
.profile-head-spacer { width: 1.875rem; height: 1.875rem; }
.profile-hero-wrap {
  position: relative;
  margin: -2.5rem 1rem 0;
  padding-top: 2.5rem;
}
.profile-hero-card {
  margin: 0;
  padding: 3.35rem 1.25rem 1rem;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.profile-avatar-slot {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  width: 5.25rem;
  height: 5.25rem;
  margin-left: -2.625rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
.profile-avatar-anim,
.profile-avatar-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-avatar-anim {
  object-fit: contain;
  padding: 0.45rem;
  background: #fff;
}
.profile-avatar-photo {
  opacity: 0;
  object-position: center 18%;
}
.profile-avatar-slot.is-ready .profile-avatar-photo {
  opacity: 1;
  transition: opacity 0.35s ease;
}
.profile-avatar-slot.is-ready .profile-avatar-anim {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.profile-hero-name {
  display: block;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  text-transform: uppercase;
}
.profile-id-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: #555;
}
.profile-copy-id {
  border: 0;
  background: transparent;
  padding: 0;
  width: 1.25rem;
  height: 1.25rem;
}
.profile-copy-id img { width: 1.25rem; height: 1.25rem; object-fit: contain; }
.profile-details-link {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  border: 0;
  background: transparent;
  color: #1b5e20;
  font-size: 1.05rem;
  font-weight: 500;
}
.profile-square-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 1rem 0;
}
.profile-square-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 7.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  color: #333;
}
.profile-square-tile img { width: 3rem; height: 3rem; object-fit: contain; }
.profile-square-tile span { font-size: 1rem; font-weight: 700; }
.profile-row-list {
  margin: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.profile-row-tile {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 1rem;
  border: 0;
  background: #fff;
  color: #111;
  text-align: start;
}
.profile-row-tile img { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.profile-row-tile span { font-size: 1rem; font-weight: 700; }
.profile-row-line {
  display: block;
  height: 1px;
  margin: 0 1rem;
  background: #e0e0e0;
}
.profile-travel-card {
  display: block;
  width: calc(100% - 2rem);
  margin: 0.25rem 1rem 0;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.profile-travel-card img {
  display: block;
  width: 100%;
  height: 9.4rem;
  object-fit: cover;
}
.profile-labor-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: calc(100% - 2rem);
  margin: 1.1rem 1rem 0;
  padding: 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  text-align: start;
  color: #1a1a1a;
}
.profile-labor-icon { width: 2.5rem; height: 2.5rem; object-fit: contain; }
.profile-labor-row span { flex: 1; font-size: 1.125rem; font-weight: 700; }
.profile-chevron { width: 1.25rem; height: 1.25rem; object-fit: contain; }
.doc-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.doc-lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.72);
}
.doc-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(100%, 28rem);
  max-height: min(92dvh, 40rem);
  overflow: auto;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.5rem;
}
.doc-lightbox-close {
  display: block;
  margin-inline-start: auto;
  margin-bottom: 0.35rem;
}
.doc-lightbox-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.login-admin {
  display: block;
  margin: 0.35rem auto 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--pine);
  min-height: auto;
}
.view-admin {
  padding: 0.75rem 0.85rem 1.5rem;
}
.admin-screen h1 {
  margin: 0;
  font-size: 1.35rem;
}
.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.admin-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.admin-mini {
  min-height: 2.25rem;
  padding: 0.25rem 0.7rem;
  font-size: 0.85rem;
}
.admin-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.55rem;
  margin-bottom: 0.7rem;
  position: sticky;
  top: 0;
  z-index: 4;
  background: var(--bg);
}
.admin-tab {
  flex: 0 0 auto;
  min-height: 2.4rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  color: var(--ink);
}
.admin-tab.is-on {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.admin-panel[hidden] { display: none !important; }
.admin-save-bar {
  position: sticky;
  bottom: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0 0.2rem;
  background: var(--bg);
}
.admin-save-bar .error { flex: 1 1 12rem; margin: 0; }
.admin-span { grid-column: 1 / -1; }
.search-select-button { text-align: start; }
.admin-form .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 0.8rem;
}
.admin-hint {
  margin: -0.2rem 0 0.6rem;
  font-size: 0.8rem;
}
.sheet-screen {
  min-height: 100%;
  background: #f5f5f5;
  padding: 0.6rem 1rem 1.2rem;
}
.sheet-back { margin-bottom: 0.35rem; }
.sheet-card {
  background: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
}
.sheet-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 0;
  background: #fff;
  text-align: start;
}
.sheet-head strong { font-size: 1.05rem; color: #1a1a1a; }
.sheet-toggle { cursor: pointer; }
.sheet-chevron { margin-inline-start: auto; }
.sheet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
}
.sheet-row span { display: block; color: #1a1a1a; font-size: 1rem; }
.sheet-row strong { display: block; margin-top: 0.2rem; color: #999; font-weight: 400; font-size: 0.95rem; }
.sheet-copy { border: 0; background: transparent; padding: 0.2rem; }
.sheet-line { height: 1px; margin: 0 1rem; background: #f0f0f0; }
.sheet-balance { padding: 1rem; }
.sheet-balance span { display: block; color: #1a1a1a; }
.sheet-balance strong { display: block; margin-top: 0.25rem; color: #8a8a8a; font-size: 1.15rem; }
.sheet-empty { position: relative; }
.empty-dialog {
  margin-top: 18vh;
  padding: 1.6rem 1.2rem;
  text-align: center;
  background: #fff;
  border-radius: 1rem;
}
.empty-dialog strong { display: block; margin-top: 0.8rem; font-size: 1.35rem; }
.empty-dialog p { margin: 0.45rem 0 0; color: #777; }
.record-card {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.8rem;
  background: linear-gradient(180deg, #f7f3e4, #fff);
  border: 1px solid #d7e5da;
}
.record-card img {
  width: 4.5rem;
  height: 5.4rem;
  object-fit: cover;
  border-radius: 0.35rem;
}
.record-name {
  display: block;
  margin-bottom: 0.35rem;
}
.record-row {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.2rem 0;
  font-size: 0.82rem;
}
.record-row span { color: #667; }
.record-thumb {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 0.7rem;
  text-align: start;
  background: linear-gradient(160deg, #f4efe0, #d9efe4);
  color: #143;
}
.record-thumb strong {
  font-size: 0.72rem;
  line-height: 1.2;
}
.record-list { padding: 0.8rem; }
.admin-block {
  margin: 1rem 0;
  padding-top: 0.4rem;
  border-top: 1px solid var(--line);
}
.admin-block h2 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.05rem;
}
.admin-record {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
  margin-bottom: 0.7rem;
  padding: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.admin-photo {
  width: 4.5rem;
  height: 5.4rem;
  object-fit: cover;
  border-radius: 0.35rem;
  margin-bottom: 0.5rem;
}
.admin-notice {
  margin: 0 0 0.7rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  background: #e7f6ee;
  color: #0d5c32;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  min-width: 36rem;
}
.table-wrap th,
.table-wrap td {
  text-align: start;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 0.9rem;
}
.table-wrap th {
  background: #f4faf7;
  white-space: nowrap;
}
.row-actions,
.table-wrap td .text-button,
.table-wrap td .btn {
  margin-inline-end: 0.25rem;
}
.filter-btn {
  border: 0;
  background: transparent;
  color: var(--pine);
  cursor: pointer;
  font-size: 0.75rem;
  margin-inline-start: 0.2rem;
  min-width: 1.5rem;
  min-height: 1.5rem;
}
.filter-panel {
  position: fixed;
  z-index: 30;
  width: min(16.5rem, calc(100vw - 1rem));
  max-height: min(24rem, calc(100dvh - 2rem));
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
  padding: 0.6rem;
}
.filter-panel input[type="search"] {
  width: 100%;
  margin-bottom: 0.45rem;
  min-height: 2rem;
}
.filter-panel label {
  display: block;
  font-size: 0.85rem;
  margin: 0.2rem 0;
}
.filter-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.35rem 0 0.5rem;
}
.filter-tools button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 0.4rem;
  min-height: 2rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
}
.date-picker-proxy {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
@media (min-width: 40rem) {
  .admin-form .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 64rem) {
  .shell {
    display: flex;
    justify-content: center;
    max-width: none;
    background: #e7f3ef;
  }
  .intro { display: none !important; }
  .device {
    width: min(100%, 28rem);
    border-inline-start: 0;
    box-shadow: 0 0 0 1px var(--line);
  }
  .shell.shell-admin {
    display: block;
    background: var(--bg);
  }
  .shell.shell-admin .device {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    box-shadow: none;
  }
  .shell.shell-admin .view-admin {
    padding: 1.25rem 1.5rem 2rem;
  }
  .shell.shell-admin .admin-form .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 22rem) {
  .view:not(.view-welcome) { padding-inline: 0.7rem; }
  .tile-grid:not(.welcome-services) { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .demo-strip, .device-footer, .fab, .chat, .splash, .intro { display: none !important; }
  .device, .view { overflow: visible; height: auto; }
}
