:root {
  --ink: #172126;
  --muted: #6d7780;
  --line: #dbe4e8;
  --page: #f3f5f7;
  --panel: #ffffff;
  --brand: #b91523;
  --brand-dark: #8d111c;
  --teal: #0e766f;
  --green: #15803d;
  --amber: #b7791f;
  --red: #be123c;
  --indigo: #315b8a;
  --shadow: 0 18px 45px rgba(23, 33, 38, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

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

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

.auth-body {
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    linear-gradient(120deg, rgba(14, 118, 111, 0.08), rgba(183, 121, 31, 0.1)),
    var(--page);
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(280px, 480px) minmax(320px, 420px);
  width: min(980px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-hero {
  min-height: 560px;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(17, 94, 89, 0.86), rgba(23, 33, 38, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Crect width='900' height='700' fill='%23f3efe7'/%3E%3Cpath d='M0 560 C200 500 310 620 520 548 C710 485 780 520 900 475 L900 700 L0 700 Z' fill='%23d8b45f' opacity='.7'/%3E%3Cpath d='M115 240 h670 v260 H115z' fill='%23ffffff' opacity='.16'/%3E%3Cpath d='M172 291 h230 v20 H172zm0 54 h430 v18 H172zm0 50 h310 v18 H172z' fill='%23ffffff' opacity='.34'/%3E%3Cpath d='M650 120 l60 40 v80 h-120 v-80z' fill='%230e766f' opacity='.55'/%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
}

.login-hero h1 {
  margin: 24px 0 12px;
  max-width: 430px;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-hero p {
  margin: 0;
  max-width: 380px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.hero-strips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-strips span,
.role-pill {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.public-enquiry-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 18px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 800;
}

.public-enquiry-link svg {
  width: 17px;
  height: 17px;
}

.public-enquiry-page {
  display: grid;
  grid-template-columns: minmax(300px, 430px) minmax(420px, 620px);
  width: min(1120px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.public-enquiry-intro {
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(rgba(141, 17, 28, 0.88), rgba(23, 33, 38, 0.88)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='700' viewBox='0 0 900 700'%3E%3Crect width='900' height='700' fill='%23eff6ff'/%3E%3Cpath d='M80 160h740v390H80z' fill='%23ffffff' opacity='.16'/%3E%3Cpath d='M148 230h250v26H148zm0 64h520v20H148zm0 56h440v20H148zm0 56h350v20H148z' fill='%23ffffff' opacity='.36'/%3E%3Ccircle cx='700' cy='220' r='72' fill='%230e766f' opacity='.55'/%3E%3C/svg%3E");
  background-size: cover;
  color: #fff;
}

.mini-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.public-enquiry-intro h1 {
  margin: 26px 0 12px;
  font-size: 39px;
  line-height: 1.08;
  letter-spacing: 0;
}

.public-enquiry-intro p {
  max-width: 360px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 16px;
  line-height: 1.45;
}

.public-enquiry-stats {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.public-enquiry-stats span {
  width: fit-content;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.public-enquiry-form {
  display: grid;
  gap: 16px;
  padding: 42px;
}

.compact-public-grid {
  gap: 14px;
}

.public-enquiry-shell {
  width: 100%;
  padding: 46px 18px 0;
  display: grid;
  place-items: center;
}

.site-body {
  min-height: 100vh;
  background: #f6f8f8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  width: 100%;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(219, 228, 232, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.site-brand strong,
.site-brand small {
  display: block;
}

.site-brand small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.site-nav,
.site-actions,
.public-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-nav a {
  padding: 9px 10px;
  color: #314047;
  font-size: 13px;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--brand);
}

.public-site {
  width: 100%;
}

.public-section,
.public-feature-row,
.public-cta {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-track-section {
  width: 100%;
  margin-top: 64px;
  scroll-margin-top: 86px;
  border-top: 1px solid #cfe1dd;
  border-bottom: 1px solid #cfe1dd;
  background: #edf8f5;
}

.public-track-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(440px, 1.15fr);
  gap: 38px;
  align-items: end;
}

.public-track-copy h2 {
  margin: 10px 0 7px;
  color: #102a43;
  font-size: 30px;
  line-height: 1.1;
}

.public-track-copy p {
  margin: 0;
  color: var(--muted);
}

.public-track-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.public-track-form label {
  display: grid;
  gap: 6px;
  color: #334047;
  font-size: 12px;
  font-weight: 800;
}

.public-track-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid #bdcfca;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.public-track-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.12);
}

.public-hero {
  min-height: calc(100vh - 76px);
  position: relative;
  padding: clamp(76px, 11vw, 132px) 0 clamp(84px, 12vw, 150px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 43, 42, 0.97) 0%, rgba(12, 43, 42, 0.88) 42%, rgba(12, 43, 42, 0.42) 68%, rgba(12, 43, 42, 0.18) 100%),
    url("../img/mrwb-hero-realistic.png") center right / cover no-repeat;
  color: #fff;
}

.public-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, #f6f8f8 0%, rgba(246, 248, 248, 0) 100%);
}

.public-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-hero-copy h1 {
  margin: 14px 0 18px;
  max-width: 620px;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.public-hero-copy p {
  max-width: 570px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--radius);
  background: #e7f4f2;
  color: #0e766f;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.public-hero-actions {
  margin-top: 28px;
  flex-wrap: wrap;
}

.public-section.split img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(23, 33, 38, 0.16);
}

.public-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.public-hero-metrics span {
  min-height: 40px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
}

.public-hero-metrics strong {
  color: #fff;
}

.public-page-hero {
  min-height: 430px;
  position: relative;
  padding: 86px 0 92px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(12, 43, 42, 0.96) 0%, rgba(12, 43, 42, 0.84) 43%, rgba(12, 43, 42, 0.34) 100%),
    url("../img/mrwb-hero-realistic.png") center right / cover no-repeat;
  color: #fff;
}

.public-page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 84px;
  background: linear-gradient(0deg, #f6f8f8 0%, rgba(246, 248, 248, 0) 100%);
}

.public-page-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.public-page-hero-copy h1 {
  max-width: 660px;
  margin: 14px 0 16px;
  color: #fff;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: 0;
}

.public-page-hero-copy p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.55;
}

.public-feature-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: -54px;
}

.public-feature-row article,
.process-grid article,
.service-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 33, 38, 0.06);
}

.public-feature-row i,
.service-grid i {
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.public-feature-row h3,
.process-grid h3,
.service-grid h3 {
  margin: 14px 0 8px;
  font-size: 18px;
}

.public-feature-row p,
.process-grid p,
.service-grid p,
.public-section p,
.public-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.awareness-banner {
  width: min(1180px, calc(100% - 36px));
  margin: 54px auto 0;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(380px, 1.05fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(31, 63, 141, 0.98), rgba(15, 52, 125, 0.98)),
    #1f3f8d;
  color: #fff;
  box-shadow: 0 24px 62px rgba(31, 63, 141, 0.28);
}

.awareness-copy h2 {
  margin: 0;
  color: #fff04a;
  font-family: "Nirmala UI", "Vrinda", "Inter", sans-serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.awareness-copy p {
  margin: 10px 0 22px;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Nirmala UI", "Vrinda", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.awareness-alerts {
  display: grid;
  gap: 14px;
}

.awareness-alerts div {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.awareness-alerts span {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.awareness-alerts .positive span {
  color: #2dd36f;
}

.awareness-alerts .negative span {
  color: #ff3f3f;
}

.awareness-alerts strong,
.awareness-benefits li {
  font-family: "Nirmala UI", "Vrinda", "Inter", sans-serif;
  font-size: 18px;
  line-height: 1.35;
}

.awareness-benefits {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: var(--radius);
  background: #d7f1f8;
  color: #132026;
}

.awareness-benefits h3 {
  margin: -22px -22px 16px;
  padding: 13px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #087da9;
  color: #fff;
  font-family: "Nirmala UI", "Vrinda", "Inter", sans-serif;
  font-size: 26px;
  text-align: center;
}

.awareness-benefits ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.public-section {
  padding: 78px 0 0;
}

.public-section.split {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(380px, 1.1fr);
  gap: 46px;
  align-items: center;
}

.public-section h2,
.public-cta h2 {
  margin: 14px 0 14px;
  color: #102a43;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.public-check-list,
.service-grid ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
}

.public-check-list li,
.service-grid li {
  position: relative;
  padding-left: 24px;
  color: #34434a;
  line-height: 1.45;
}

.public-check-list li::before,
.service-grid li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.process-grid,
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.process-grid span {
  color: var(--brand);
  font-size: 28px;
  font-weight: 900;
}

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand);
  font-weight: 900;
}

.public-cta {
  margin-top: 78px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: var(--radius);
  background: #0f3938;
  color: #fff;
}

.public-cta h2,
.public-cta p {
  color: #fff;
}

.public-cta p {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.78);
}

.public-enquiry-section {
  padding-top: 64px;
}

.public-enquiry-section .section-heading {
  width: min(1180px, calc(100% - 36px));
  max-width: none;
  margin-right: auto;
  margin-left: auto;
}

.public-enquiry-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  align-items: start;
}

.public-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.public-enquiry-form {
  display: grid;
  gap: 16px;
  padding: 30px;
}

.public-enquiry-form h3,
.public-enquiry-help h3 {
  margin: 0 0 6px;
  color: #102a43;
  font-size: 20px;
  line-height: 1.18;
}

.public-enquiry-form p,
.public-enquiry-help p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-enquiry-help {
  display: grid;
  gap: 14px;
}

.public-enquiry-help article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 36px rgba(23, 33, 38, 0.08);
}

.public-enquiry-help i {
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  color: var(--teal);
}

.site-footer {
  width: 100%;
  margin-top: 72px;
  background: #0f3938;
  color: #fff;
}

.site-footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) minmax(150px, 0.65fr) minmax(170px, 0.75fr) minmax(250px, 1fr);
  gap: 30px;
  align-items: start;
}

.site-footer .site-brand small,
.site-footer p,
.site-footer nav a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer p {
  margin: 12px 0 0;
  line-height: 1.55;
}

.site-footer nav,
.footer-contact {
  display: grid;
  gap: 9px;
}

.site-footer nav strong,
.footer-contact strong {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
}

.site-footer nav a {
  font-weight: 700;
}

.site-footer nav a:hover {
  color: #fff;
}

.footer-contact .btn {
  width: fit-content;
  margin-top: 8px;
}

.site-footer-bottom {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px 0 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.auth-card {
  width: 100%;
  padding: 42px;
  background: var(--panel);
}

.login-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 56px;
}

.login-card .auth-brand {
  margin-bottom: 10px;
}

.login-card label {
  gap: 8px;
}

.login-card .input-icon input {
  min-height: 44px;
  padding-left: 44px;
  background: #f8fafc;
}

.login-card .input-icon svg {
  left: 14px;
}

.login-card .btn.full {
  min-height: 46px;
  margin-top: 8px;
}

.installer-card {
  max-width: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand,
.brand,
.user-menu,
.quick-actions,
.profile-band > div,
.button-row,
.row-actions,
.form-actions,
.inline-control,
.tabbar,
.renewal-strip {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-actions form {
  display: inline-flex;
  margin: 0;
}

.icon-button.danger-icon {
  color: #b91c1c;
}

.icon-button.danger-icon:hover {
  background: #fee2e2;
  color: #991b1b;
}

.auth-brand {
  margin-bottom: 28px;
}

.auth-brand strong,
.brand strong,
.user-menu strong {
  display: block;
}

.auth-brand small,
.brand small,
.user-menu small,
td small,
label small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0;
}

.brand-mark.large {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 22px;
}

label {
  display: grid;
  gap: 6px;
  color: #2c3a40;
  font-size: 12px;
  font-weight: 700;
}

.address-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inline-check input {
  width: auto;
}

.choice-hidden {
  display: none !important;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 9px 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(185, 21, 35, 0.11);
}

input.field-invalid,
select.field-invalid,
textarea.field-invalid {
  border-color: #dc2626;
  background: #fff7f7;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

input:disabled {
  background: #eef2f3;
  color: #657078;
}

.input-icon {
  position: relative;
  display: block;
}

.input-icon svg {
  position: absolute;
  top: 50%;
  left: 12px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.input-icon input {
  padding-left: 42px;
}

.stacked-form,
.record-form {
  display: grid;
  gap: 18px;
}

.btn,
.icon-button {
  min-height: 38px;
  border: 0;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
}

.btn {
  padding: 9px 14px;
  font-size: 13px;
}

.btn svg,
.icon-button svg,
.side-nav svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}

.btn-secondary {
  background: #21343a;
  color: #fff;
}

.btn-light {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.btn.full {
  width: 100%;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 700;
}

.alert-success {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.alert-danger {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.app-body {
  display: grid;
  grid-template-columns: 286px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(185, 21, 35, 0.18), rgba(185, 21, 35, 0) 210px),
    #141a20;
  color: #fff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 12px 0 30px rgba(23, 33, 38, 0.16);
}

.brand {
  min-height: 58px;
  margin-bottom: 20px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.brand small {
  color: rgba(255, 255, 255, 0.62);
}

.side-nav {
  display: grid;
  gap: 7px;
  overflow-y: auto;
  padding-right: 2px;
}

.side-label {
  margin: 8px 0 4px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-nav a,
.side-parent {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
}

.side-nav > a.active,
.side-nav > a:hover,
.side-parent.active,
.side-parent:hover {
  background: linear-gradient(90deg, var(--brand), #d63f34);
  color: #fff;
  box-shadow: 0 10px 24px rgba(185, 21, 35, 0.26);
}

.side-group {
  border-radius: var(--radius);
}

.side-group.active {
  padding-bottom: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.side-parent .chevron {
  width: 15px;
  height: 15px;
  margin-left: auto;
  opacity: 0.68;
}

.side-subnav {
  display: none;
  margin: 6px 0 0 36px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.side-group.active .side-subnav {
  display: grid;
  gap: 4px;
}

.side-subnav a {
  min-height: 30px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
}

.side-subnav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.side-subnav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-footer {
  margin-top: auto;
}

.sidebar-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.sidebar-card > span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sidebar-card strong {
  font-size: 16px;
}

.sidebar-card .badge {
  justify-content: center;
  color: #14532d;
  background: #dcfce7;
  text-transform: uppercase;
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(23, 33, 38, 0.05);
}

.topbar p,
.panel-head p,
.profile-band p {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.topbar h1,
.panel h2,
.profile-band h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: 23px;
}

.user-menu {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.quick-actions {
  margin-left: auto;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.quick-actions a {
  min-height: 34px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-actions a:hover {
  background: #eef8f6;
}

.quick-actions svg {
  width: 16px;
  height: 16px;
}

.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--brand-dark);
  font-weight: 800;
}

.avatar.large {
  width: 66px;
  height: 66px;
  font-size: 22px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.metric-grid.compact .metric-card {
  min-height: 96px;
}

.metric-card {
  min-height: 120px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 9px 22px rgba(23, 33, 38, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(23, 33, 38, 0.1);
}

.metric-card svg {
  color: var(--brand);
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  font-size: 22px;
  letter-spacing: 0;
}

.accent-green {
  border-left-color: var(--green);
}

.accent-green svg {
  color: var(--green);
}

.accent-amber {
  border-left-color: var(--amber);
}

.accent-amber svg {
  color: var(--amber);
}

.accent-red {
  border-left-color: var(--red);
}

.accent-red svg {
  color: var(--red);
}

.accent-teal {
  border-left-color: var(--teal);
}

.accent-teal svg {
  color: var(--teal);
}

.content-grid {
  display: grid;
  gap: 20px;
}

.two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.panel,
.profile-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.06);
}

.panel {
  padding: 16px;
  margin-bottom: 16px;
}

.narrow-panel {
  max-width: 620px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.panel h2 {
  font-size: 18px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

th {
  color: #415058;
  background: #f2f6f6;
  font-size: 11px;
  text-align: left;
  text-transform: uppercase;
}

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

td strong {
  display: block;
}

.actions-col {
  width: 110px;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  text-align: center;
}

.inline-status-form {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.inline-status-form select {
  min-height: 30px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 12px;
}

.inline-status-form button {
  min-height: 30px;
  padding: 4px 9px;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.inquiry-feed {
  display: grid;
  gap: 10px;
}

.inquiry-feed article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.inquiry-feed article:last-child {
  border-bottom: 0;
}

.inquiry-feed strong {
  display: block;
  margin-bottom: 4px;
}

.inquiry-feed p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.inquiry-feed small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.inquiry-feed article > span {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.badge-active {
  background: #dcfce7;
  color: #166534;
}

.badge-expiring,
.badge-pending {
  background: #fef3c7;
  color: #92400e;
}

.badge-expired,
.badge-suspended {
  background: #ffe4e6;
  color: #9f1239;
}

.badge-inactive {
  background: #e5e7eb;
  color: #374151;
}

.badge-draft,
.badge-open,
.badge-queued {
  background: #e0f2fe;
  color: #075985;
}

.badge-submitted,
.badge-in_progress,
.badge-credit,
.badge-sent {
  background: #dcfce7;
  color: #166534;
}

.badge-approved,
.badge-finalized,
.badge-resolved {
  background: #dff5f1;
  color: var(--brand-dark);
}

.badge-cancelled,
.badge-closed,
.badge-debit,
.badge-failed {
  background: #ffe4e6;
  color: #9f1239;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.slim-filter {
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) auto;
}

.search-panel {
  margin-bottom: 18px;
  border: 1px solid #cfd6dc;
  background: #fff;
}

.search-panel h3,
.table-title {
  margin: 0;
  padding: 10px 12px;
  color: #3177b7;
  background: linear-gradient(#f7f7f7, #ececec);
  border-bottom: 1px solid #d9dee3;
  font-size: 16px;
  font-weight: 700;
}

.registration-search {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 150px auto auto;
  gap: 6px;
  padding: 12px;
}

.btn-danger {
  background: #a8231f;
  color: #fff;
}

.btn-info {
  background: #579bd1;
  color: #fff;
}

.table-title {
  color: #fff;
  background: #2f80c8;
  border-bottom: 0;
  font-size: 14px;
}

.registration-table th {
  background: linear-gradient(#f6f6f6, #e9e9e9);
}

.registration-table td {
  font-size: 12px;
}

.action-links {
  min-width: 330px;
  color: #005bad;
  white-space: nowrap;
}

.action-links form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.action-links {
  min-width: 330px;
  white-space: nowrap;
}

.action-links a {
  display: inline-flex;
  align-items: center;
}

.action-links a,
.action-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #005bad;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.action-links a:not(:last-child)::after,
.action-links form::after {
  content: "|";
  margin-left: 4px;
  color: #9aa5ad;
}

.action-links form button {
  color: #d32b20;
}

.action-links .certificate-link {
  color: #008000;
  font-weight: 900;
}

.action-links .certificate-link::after {
  content: " ✓";
}

.document-panel {
  max-width: 980px;
  margin-inline: auto;
}

.document-sheet {
  min-height: 720px;
  padding: 36px;
  border: 1px solid #d9dee3;
  background: #fff;
}

.document-a3 .document-sheet {
  min-height: 900px;
}

.certificate-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--brand);
}

.certificate-head h3 {
  margin: 0;
  font-size: 26px;
}

.certificate-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.certificate-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px 18px;
  margin-top: 28px;
}

.certificate-grid span {
  color: var(--muted);
  font-weight: 800;
}

.signature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 90px;
}

.signature-row span {
  padding-top: 14px;
  border-top: 1px solid #929da5;
  text-align: center;
  font-weight: 800;
}

.check-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.action-links .certificate-link::after {
  content: " OK";
}

.document-panel {
  max-width: 1060px;
}

.document-sheet {
  min-height: 720px;
  padding: 34px;
  border: 1px solid #cfd6dc;
  background: #fff;
  color: #111827;
  font-family: "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.35;
  box-shadow: 0 14px 34px rgba(23, 33, 38, 0.08);
}

.document-a3 .document-sheet {
  max-width: 1280px;
  min-height: 900px;
  margin-inline: auto;
  page: a3Page;
}

.document-legal .document-sheet {
  max-width: 820px;
  margin-inline: auto;
  page: legalPage;
}

.document-certificate .document-sheet {
  page: certificatePage;
}

.doc-office-head {
  text-align: center;
  text-transform: uppercase;
}

.doc-office-head.bordered {
  padding-bottom: 12px;
  border-bottom: 3px double #111827;
}

.doc-office-head h3 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.doc-office-head p {
  margin: 4px 0 0;
  font-weight: 700;
}

.certificate-title {
  width: fit-content;
  margin: 18px auto 4px;
  padding: 6px 24px;
  border: 2px solid #111827;
  text-align: center;
  text-transform: uppercase;
  font-size: 22px;
}

.act-line {
  margin: 8px 0 14px;
  text-align: center;
  font-weight: 700;
}

.certificate-intro {
  margin: 0 0 14px;
  text-align: justify;
}

.cert-topline,
.registration-details,
.truecopy-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.person-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.person-panels section,
.doc-section,
.registrar-block {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #9ca3af;
}

.person-panels h4,
.doc-section h4,
.registrar-block h4 {
  margin: 0 0 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #d1d5db;
  text-transform: uppercase;
}

.person-panels dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 6px 10px;
  margin: 0;
}

.person-panels dt {
  font-weight: 700;
}

.person-panels dd {
  margin: 0;
}

.lti-line {
  margin: 24px 0 0;
  padding-top: 6px;
  border-top: 1px solid #9ca3af;
  text-align: center;
  font-weight: 700;
}

.doc-section p,
.registrar-block p {
  margin: 5px 0;
}

.registration-details {
  flex-wrap: wrap;
}

.registrar-signature {
  width: 260px;
  margin: 70px 0 0 auto;
  padding-top: 12px;
  border-top: 1px solid #111827;
  text-align: center;
  font-weight: 700;
}

.doc-meta-grid {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 24px 0;
}

.doc-meta-grid span {
  font-weight: 700;
}

.truecopy-title {
  text-align: center;
  text-transform: uppercase;
}

.truecopy-title h3 {
  margin: 0;
  font-size: 22px;
}

.truecopy-title p {
  margin: 4px 0 14px;
  font-weight: 800;
}

.truecopy-no {
  width: 120px;
  margin: 0 auto 18px;
  padding: 8px;
  border: 2px solid #111827;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
}

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

.truecopy-table th,
.truecopy-table td {
  border: 1px solid #111827;
  padding: 10px 12px;
  font-size: 15px;
  vertical-align: top;
}

.truecopy-table th {
  width: 220px;
  background: #f3f4f6;
  color: #111827;
  text-transform: uppercase;
}

.truecopy-footer {
  margin-top: 42px;
}

.seal-box {
  width: 220px;
  padding-top: 48px;
  border-top: 1px solid #111827;
  text-align: center;
  font-weight: 800;
}

.print-note {
  margin-top: 28px;
  font-weight: 700;
}

.truecopy-register-sheet {
  width: 1123px;
  height: 1588px;
  position: relative;
  margin: 8px auto 0;
  background-image: url("../cert/1601_truecopy2_a3i.jpg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: rgb(65, 54, 54);
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-weight: bold;
  overflow: hidden;
  page: a3Page;
}

.truecopy-register-legal {
  page: legalPage;
}

.truecopy-room2 {
  position: absolute;
  top: 0;
  left: 218px;
  width: 494px;
  height: 100%;
}

.tc-field {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  text-transform: uppercase;
  line-height: 1.16;
}

.tc-reg-no {
  top: 33px;
  left: 115px;
  width: 120px;
  line-height: 1;
}

.tc-groom {
  top: 75px;
  height: 76px;
  padding: 5px 10px;
}

.tc-bride {
  top: 169px;
  height: 92px;
  padding: 5px 10px;
}

.tc-condition {
  top: 277px;
  height: 37px;
  padding: 5px 10px;
}

.tc-wakil {
  top: 581px;
  height: 74px;
  padding: 5px 10px;
}

.tc-witnesses {
  top: 672px;
  height: 153px;
  padding: 20px 10px;
  font-size: 15px;
}

.tc-marriage-date {
  top: 826px;
  height: 58px;
  padding: 17px 10px 8px;
}

.tc-mohar {
  top: 897px;
  height: 28px;
  padding: 1px 2px;
  font-size: 12px;
}

.tc-dower {
  top: 938px;
  height: 37px;
  padding: 1px 10px;
  font-size: 13px;
}

.tc-paid {
  top: 994px;
  height: 31px;
  padding: 1px 10px;
  font-size: 13px;
}

.tc-property {
  top: 1043px;
  height: 37px;
  padding: 1px 10px;
}

.tc-place {
  top: 1428px;
  height: 28px;
  padding: 1px 10px;
  font-size: 12px;
}

.tc-house {
  top: 1474px;
  height: 19px;
  padding: 1px 10px;
  font-size: 12px;
}

.tc-divorce-power {
  top: 1510px;
  height: 19px;
  padding: 1px 10px;
}

.tc-registration-date {
  top: 1544px;
  height: 19px;
  padding: 1px 10px;
}

.tc-signature {
  position: absolute;
  z-index: 2;
  width: 230px;
  overflow: hidden;
  color: #1f1f1f;
  font-family: "Times New Roman", Times, serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  padding-left: 16px;
  text-shadow: 0.35px 0 0 #1f1f1f;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(90deg);
  transform-origin: left top;
}

.tc-sign-bride {
  top: 106px;
  left: 130px;
}

.tc-sign-groom {
  top: 106px;
  left: 190px;
}

.tc-sign-wakil {
  top: 950px;
  left: 176px;
}

.tc-sign-witness-one {
  top: 956px;
  left: 110px;
}

.tc-sign-witness-two {
  top: 956px;
  left: 142px;
}

.tc-sign-registrar {
  top: 1378px;
  left: 102px;
}

.truecopy-print-note {
  width: 100%;
  color: #111827;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.certificate-bg-img {
  position: absolute;
  inset: 22px;
  z-index: 0;
  display: block;
  width: calc(100% - 44px);
  height: calc(100% - 44px);
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.exact-certificate-sheet > :not(.certificate-bg-img):not(.exact-seal):not(.exact-qr),
.divorce-certificate-sheet > :not(.certificate-bg-img):not(.divorce-registrar-sign):not(.divorce-qr) {
  position: relative;
  z-index: 1;
}

.divorce-certificate-sheet {
  width: 1060px;
  height: 1500px;
  position: relative;
  margin: 0;
  padding: 92px 86px 70px;
  background: #fffef0;
  color: #050505;
  font-family: "Times New Roman", Times, serif;
  overflow: hidden;
  isolation: isolate;
  page: divorceCertificatePage;
}

.divorce-cert-head {
  text-align: center;
  color: #070ba5;
  font-weight: 800;
}

.divorce-cert-head h1,
.divorce-cert-head h2,
.divorce-cert-head h3,
.divorce-cert-head p {
  margin: 0;
  line-height: 1.2;
}

.divorce-cert-head h2 {
  font-size: 21px;
}

.divorce-cert-head h1 {
  margin-top: 0;
  font-size: 21px;
  line-height: 24px;
}

.divorce-cert-head h3 {
  margin-top: 0;
  font-size: 19px;
  line-height: 22px;
}

.divorce-cert-head p {
  margin: 0;
}

.divorce-appointment {
  font-size: 18px;
  font-weight: bold;
  line-height: 21px;
}

.divorce-department {
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
}

.divorce-license-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 74px;
  margin-top: 2px;
  font-size: 17px;
  line-height: 22px;
  white-space: nowrap;
}

.divorce-act-line {
  color: #080b7b;
  font-size: 16px;
  font-weight: bold;
  line-height: 22px;
  white-space: nowrap;
}

.divorce-cert-meta {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 7px;
  padding: 0 10px;
  font-size: 18px;
  white-space: nowrap;
}

.divorce-cert-title {
  margin: 4px 0 0;
  color: #0971b0;
  text-align: center;
  font-size: 21px;
  line-height: 24px;
  letter-spacing: 0;
}

.divorce-cert-intro {
  max-width: none;
  margin: 8px auto;
  padding: 0 16px;
  color: #f00;
  font-size: 16px;
  font-style: italic;
  font-weight: bold;
  line-height: 19px;
  text-align: justify;
}

.divorce-party-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.divorce-party-section article {
  min-height: 162px;
  padding: 8px 12px;
}

.divorce-party-section article + article {
  border-left: 2px solid #000;
}

.divorce-party-section h3,
.divorce-khula-details h3,
.divorce-ack h3,
.divorce-registrar h3 {
  margin: 0;
  color: #0000e4;
  font-size: 19px;
  line-height: 1.15;
  text-align: center;
}

.divorce-party-section h3 {
  text-align: left;
}

.divorce-party-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 10px;
  align-items: start;
}

.divorce-party-copy.no-photo {
  grid-template-columns: minmax(0, 1fr);
}

.divorce-party-copy p {
  margin: 3px 0;
  font-size: 16px;
  line-height: 1.2;
}

.divorce-party-copy span,
.divorce-sign-text {
  font-weight: 800;
}

.divorce-party-copy span,
.divorce-sign-text span,
.divorce-details-list h4,
.divorce-details-list .divorce-label {
  color: #070ba5;
}

.divorce-details-list .divorce-label {
  font-weight: 800;
}

.divorce-party-copy strong {
  display: inline;
  font-size: 19px;
}

.divorce-certificate-khula .divorce-husband-name-line {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
}

.divorce-certificate-khula .divorce-husband-name-line span {
  flex: 0 0 auto;
}

.divorce-certificate-khula .divorce-husband-name-line strong {
  min-width: 0;
  font-size: 17px;
  white-space: nowrap;
}

.divorce-photo {
  width: 78px;
  height: 92px;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.divorce-photo-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.divorce-photo-img.empty {
  display: none;
}

.divorce-sign-text {
  margin: 7px 0 0;
  font-size: 16px;
}

.divorce-details-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  column-gap: 16px;
  row-gap: 5px;
  padding: 8px 12px;
  border-bottom: 2px solid #000;
  font-size: 15px;
  line-height: 1.2;
}

.divorce-details-list h4,
.divorce-details-list p {
  margin: 0;
}

.divorce-tafweez-list {
  border-bottom: 2px solid #000;
  font-size: 15px;
  line-height: 1.18;
}

.tafweez-person-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  column-gap: 12px;
  padding: 8px 12px;
  border-bottom: 2px solid #000;
}

.tafweez-witness-row {
  position: relative;
  display: block;
  padding-top: 30px;
}

.tafweez-witness-row h4 {
  position: absolute;
  top: 7px;
  left: 12px;
  right: 12px;
  width: calc(100% - 24px);
  font-size: 15px;
  line-height: 17px;
  white-space: nowrap;
}

.divorce-certificate-tafweez .tafweez-witness-row h4 {
  font-size: 13px;
  line-height: 15px;
  white-space: nowrap;
}

.tafweez-person-row:last-child {
  border-bottom: 0;
}

.divorce-tafweez-list h4,
.divorce-tafweez-list p {
  margin: 0 0 3px;
}

.divorce-tafweez-list h4 {
  color: #070ba5;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
}

.divorce-tafweez-list .divorce-label {
  color: #070ba5;
  font-weight: 800;
}

.divorce-tafweez-list strong {
  align-self: start;
  padding-top: 24px;
  font-size: 14px;
  white-space: nowrap;
}

.tafweez-sign-stack {
  display: grid;
  align-content: start;
  gap: 24px;
  padding-top: 38px;
}

.tafweez-witness-row .tafweez-sign-stack {
  gap: 39px;
  padding-top: 0;
}

.tafweez-witness-row .tafweez-sign-stack strong {
  padding-top: 0;
  line-height: 1.16;
  white-space: nowrap;
}

.tafweez-witness-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 318px;
  column-gap: 12px;
  align-items: start;
  margin-bottom: 4px;
}

.tafweez-witness-line:last-child {
  margin-bottom: 0;
}

.tafweez-witness-line strong {
  padding-top: 0;
  font-size: 14px;
  line-height: 1.16;
  white-space: nowrap;
}

.divorce-details-list h4 {
  font-size: 16px;
  color: #070ba5;
  font-weight: 800;
}

.divorce-details-list strong {
  padding-top: 3px;
  font-size: 15px;
}

.divorce-witness-block {
  grid-column: 1 / -1;
}

.divorce-witness-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  column-gap: 16px;
  align-items: start;
}

.divorce-witness-row strong {
  padding-top: 0;
}

.divorce-certificate-khula .divorce-details-list > strong,
.divorce-certificate-khula .divorce-witness-row > strong {
  font-size: 14px;
  line-height: 1.15;
  white-space: nowrap;
}

.divorce-certificate-khula .divorce-details-list,
.divorce-certificate-khula .divorce-witness-row {
  grid-template-columns: minmax(0, 1fr) 260px;
  column-gap: 12px;
}

.divorce-khula-details,
.divorce-ack,
.divorce-registrar {
  padding: 6px 12px;
  border-bottom: 2px solid #000;
  text-align: center;
}

.divorce-khula-details {
  padding: 8px 16px 9px;
  text-align: left;
}

.divorce-khula-details p,
.divorce-ack p,
.divorce-registrar p {
  margin: 5px 0 0;
  font-size: 15px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.divorce-ack h3,
.divorce-ack p {
  text-align: center;
}

.divorce-ack h3 {
  font-size: 18px;
  white-space: nowrap;
}

.divorce-tafweez-particulars h3 {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding-right: 14px;
  font-size: 15px;
  line-height: 17px;
  white-space: nowrap;
  text-align: left;
}

.divorce-tafweez-particulars p {
  text-align: justify;
}

.divorce-khula-details p,
.divorce-registrar p {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.divorce-khula-details h3 {
  margin-bottom: 3px;
  text-align: center;
}

.divorce-khula-details p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.divorce-khula-details .divorce-label {
  color: #070ba5;
  font-weight: 800;
}

.divorce-date-place-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  white-space: normal;
}

.divorce-date-place-line span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.divorce-date-place-line span:last-child {
  min-width: 0;
  flex: 1 1 520px;
  overflow-wrap: break-word;
}

.divorce-detail-point {
  overflow-wrap: break-word;
}

.divorce-registration-details {
  display: grid;
  grid-template-columns: 104px 96px 112px 124px 88px max-content;
  justify-content: start;
  column-gap: 16px;
  row-gap: 5px;
  align-items: baseline;
  margin-top: 6px;
}

.divorce-registration-details h3 {
  grid-column: 1 / -1;
  margin: 0;
  text-align: left;
}

.divorce-registration-details span {
  font-size: 15px;
  white-space: nowrap;
}

.divorce-ack p {
  max-width: 858px;
  margin-left: auto;
  margin-right: auto;
}

.divorce-registrar {
  border-bottom: 0;
  padding-top: 10px;
  padding-bottom: 0;
  text-align: left;
}

.divorce-registrar p {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

.divorce-registrar .divorce-label {
  color: #070ba5;
  font-weight: 800;
}

.divorce-registrar-id-line {
  display: flex;
  justify-content: flex-start;
  gap: 42px;
  flex-wrap: wrap;
}

.divorce-registrar-contact {
  display: flex;
  justify-content: flex-start;
  gap: 56px;
  flex-wrap: wrap;
}

.divorce-registrar-sign {
  position: absolute;
  right: 142px;
  bottom: 126px;
  width: 270px;
  padding-top: 15px;
  text-align: center;
  font-size: 18px;
}

.divorce-registrar-sign::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  border-top: 2px dotted #000;
}

.divorce-qr {
  position: absolute;
  left: 122px;
  bottom: 152px;
  width: 118px;
  height: 118px;
  padding: 6px;
  background: #fff;
}

.divorce-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.divorce-qr-img.empty {
  display: none;
}

.divorce-certificate-tafweez .divorce-cert-head h1 {
  font-size: 20px;
  line-height: 22px;
}

.divorce-certificate-tafweez .divorce-cert-head h3 {
  font-size: 18px;
  line-height: 20px;
}

.divorce-certificate-tafweez .divorce-appointment,
.divorce-certificate-tafweez .divorce-department {
  font-size: 17px;
  line-height: 19px;
}

.divorce-certificate-tafweez .divorce-license-line {
  margin-top: 0;
  font-size: 16px;
  line-height: 20px;
}

.divorce-certificate-tafweez .divorce-cert-title {
  margin-top: 2px;
  font-size: 20px;
  line-height: 22px;
}

.divorce-certificate-tafweez .divorce-act-line {
  font-size: 15px;
  line-height: 19px;
}

.divorce-certificate-tafweez .divorce-cert-intro {
  margin: 7px auto 8px;
  font-size: 15px;
  line-height: 18px;
}

.divorce-certificate-tafweez .divorce-cert-meta {
  margin: 7px 0 6px;
  font-size: 17px;
}

.divorce-certificate-tafweez .divorce-party-section article {
  min-height: 158px;
  padding: 8px 10px;
}

.divorce-certificate-tafweez .divorce-party-section h3,
.divorce-certificate-tafweez .divorce-khula-details h3,
.divorce-certificate-tafweez .divorce-ack h3,
.divorce-certificate-tafweez .divorce-registrar h3 {
  font-size: 18px;
}

.divorce-certificate-tafweez .divorce-party-copy p,
.divorce-certificate-tafweez .divorce-sign-text {
  font-size: 15px;
  line-height: 1.16;
}

.divorce-certificate-tafweez .divorce-tafweez-list {
  font-size: 15px;
  line-height: 1.16;
}

.divorce-certificate-tafweez .tafweez-person-row {
  padding-bottom: 8px;
}

.divorce-certificate-tafweez .divorce-tafweez-list h4 {
  font-size: 16px;
}

.divorce-certificate-tafweez .divorce-tafweez-list p {
  margin-bottom: 3px;
}

.divorce-certificate-tafweez .divorce-khula-details {
  padding-top: 8px;
  padding-bottom: 8px;
}

.divorce-certificate-tafweez .divorce-khula-details p,
.divorce-certificate-tafweez .divorce-ack p,
.divorce-certificate-tafweez .divorce-registrar p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.15;
}

.divorce-certificate-tafweez .divorce-registration-details {
  margin-top: 5px;
  row-gap: 4px;
}

.divorce-certificate-tafweez .divorce-ack {
  padding-top: 7px;
  padding-bottom: 7px;
}

.divorce-certificate-tafweez .divorce-tafweez-particulars h3 {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  padding-right: 16px;
  font-size: 15px;
  line-height: 17px;
  white-space: nowrap;
  text-align: left;
}

.divorce-certificate-tafweez .divorce-registrar {
  padding-top: 10px;
}

.divorce-certificate-tafweez .divorce-qr {
  left: 124px;
  bottom: 124px;
  width: 112px;
  height: 112px;
}

.divorce-certificate-sheet > .divorce-registrar-sign,
.divorce-certificate-sheet > .divorce-qr {
  position: absolute;
  z-index: 2;
}

.document-output-body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #000;
  font-family: "Times New Roman", Times, serif;
}

.exact-certificate-sheet {
  width: 1060px;
  height: 1500px;
  position: relative;
  margin: 0;
  background: #fffef0;
  font-family: "Times New Roman", Times, serif;
  overflow: hidden;
  isolation: isolate;
  page: certificatePage;
}

.exact-cert-spacer {
  height: 94px;
}

.exact-office {
  text-align: center;
  color: #070ba5;
  font-weight: bold;
  text-shadow: 0 0;
}

.exact-office-main {
  height: 25px;
  font-size: 21px;
  line-height: 24px;
}

.exact-office-ps {
  height: 23px;
  font-size: 19px;
  line-height: 22px;
}

.exact-office-appointed {
  height: 22px;
  font-size: 18px;
  font-weight: bold;
  line-height: 21px;
}

.exact-office-department {
  height: 21px;
  font-size: 18px;
  font-weight: bold;
  line-height: 20px;
}

.exact-office-licence {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 74px;
  font-size: 17px;
  line-height: 22px;
  white-space: nowrap;
}

.exact-cert-title {
  height: 25px;
  margin-top: 4px;
  text-align: center;
  color: #0971b0;
  font-size: 21px;
  font-weight: bold;
  text-shadow: 0 1px;
}

.exact-act-line {
  height: 24px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #080b7b;
  font-size: 17px;
  font-weight: bold;
  line-height: 22px;
  white-space: nowrap;
}

.exact-intro {
  height: 98px;
  padding: 6px 102px 0;
  color: #e20024;
  font-size: 19px;
  font-style: italic;
  font-weight: bold;
  line-height: 21px;
  text-align: justify;
}

.exact-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0;
  width: 84%;
  margin: 8px auto 0;
  padding: 0 18px;
  box-sizing: border-box;
}

.exact-meta div {
  font-size: 19px;
}

.exact-meta div:last-child {
  text-align: right;
  white-space: nowrap;
}

.exact-meta strong {
  font-size: 16px;
  white-space: nowrap;
}

.exact-party-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 84%;
  height: 332px;
  margin: 8px auto 0;
  border-top: 1px solid #000;
  border-bottom: 0;
  overflow: hidden;
}

.exact-party {
  height: 331px;
  min-height: 0;
  padding: 8px 14px 0;
  overflow: hidden;
}

.exact-party:first-child {
  border-right: 1px solid #000;
}

.exact-party h3 {
  margin: 0 0 5px;
  color: #070ba5;
  font-size: 20px;
}

.exact-party-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 8px;
  align-items: start;
}

.exact-party-fields p,
.exact-address,
.exact-section p {
  margin: 0 0 5px;
  font-size: 14px;
  line-height: 20px;
  font-weight: bold;
}

.exact-party-fields p {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.exact-party-fields span {
  flex: 0 0 auto;
  color: #070ba5;
  font-weight: bold;
  white-space: nowrap;
}

.exact-party-fields strong {
  min-width: 0;
  white-space: nowrap;
}

.exact-key-name {
  font-size: 16px;
  font-weight: 800;
}

.exact-photo-box {
  width: 100px;
  height: 100px;
  margin-top: -8px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.exact-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exact-address {
  min-height: 23px;
  padding-left: 0;
  text-align: justify;
}

.exact-label {
  color: #070ba5;
}

.exact-lti {
  min-height: 30px;
  margin-top: 6px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 10px;
  padding-left: 0;
  text-align: left;
  font-size: 14px;
  font-weight: bold;
}

.exact-lti.small {
  min-height: 30px;
  margin: 0;
  padding-left: 10px;
  align-items: flex-start;
}

.exact-lti span {
  white-space: nowrap;
}

.exact-signature-img {
  width: 150px;
  height: 28px;
  padding: 0;
  background: transparent;
  display: block;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: contrast(1.16) brightness(1.08);
}

.exact-lti.small .exact-signature-img {
  width: 116px;
  height: 30px;
}

.exact-section {
  width: 84%;
  margin: 8px auto 0;
  padding: 0 12px;
  color: #000;
  box-sizing: border-box;
}

.exact-section h3 {
  margin: 0 0 3px;
  color: #070ba5;
  font-size: 18px;
}

.exact-section p.exact-plain-line {
  font-weight: bold;
}

.exact-section p.exact-plain-line strong {
  font-weight: bold;
}

.exact-marriage-line {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  white-space: normal;
}

.exact-marriage-line span:first-child {
  flex: 0 0 auto;
  white-space: nowrap;
}

.exact-marriage-line span:last-child {
  min-width: 0;
  flex: 1 1 520px;
  overflow-wrap: break-word;
}

.exact-witness-section {
  min-height: 228px;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin-top: 0;
}

.exact-witness-section p {
  font-weight: normal;
}

.exact-witness-section .exact-label {
  font-weight: normal;
}

.exact-witness-section .exact-key-name {
  font-weight: 800;
}

.exact-sign-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 10px;
  margin-top: 8px;
}

.exact-sign-row + .exact-sign-row {
  margin-top: 10px;
}

.exact-sign-copy p {
  margin-bottom: 2px;
}

.exact-registration {
  display: grid;
  grid-template-columns: 110px 100px 120px 130px 90px max-content;
  justify-content: start;
  column-gap: 18px;
  row-gap: 4px;
  align-items: baseline;
}

.exact-registration h3 {
  grid-column: 1 / -1;
}

.exact-registrar h3 {
  width: 100%;
}

.exact-registration span {
  font-size: 15px;
  white-space: nowrap;
}

.exact-registrar p {
  font-size: 15px;
  max-width: 900px;
}

.exact-registrar-id-line {
  display: flex;
  align-items: baseline;
  gap: 30px;
  white-space: nowrap;
}

.exact-registrar-id-line span:first-child {
  margin-right: 12px;
}

.exact-office-contact-line {
  white-space: nowrap;
}

.exact-office-address-line {
  max-width: 660px;
  line-height: 18px;
  white-space: normal;
  overflow-wrap: break-word;
}

.exact-office-contact-line {
  margin-top: 1px;
}

.exact-seal {
  position: absolute;
  right: 145px;
  bottom: 106px;
  width: 250px;
  padding-top: 42px;
  display: grid;
  justify-items: center;
  gap: 3px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
}

.exact-seal::before {
  content: "";
  width: 235px;
  border-top: 1px solid #000;
  display: block;
  margin-bottom: 4px;
}

.exact-qr {
  position: absolute;
  left: 145px;
  bottom: 108px;
  width: 112px;
  height: 112px;
  padding: 6px;
  background: #fff;
}

.exact-qr-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.exact-certificate-sheet > .exact-seal,
.exact-certificate-sheet > .exact-qr {
  position: absolute;
  z-index: 2;
}

.document-actions {
  width: 1060px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 0;
  font-family: Inter, Arial, sans-serif;
}

.document-actions button,
.document-actions a {
  border: 1px solid #a3a3a3;
  border-radius: 4px;
  background: #f4f4f5;
  color: #111827;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.verify-body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(185, 21, 35, 0.08), rgba(14, 118, 111, 0.12)),
    #f5f7f8;
  color: var(--ink);
  font-family: "Inter", Arial, Helvetica, sans-serif;
}

.verify-shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0;
}

.verify-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.verify-head {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f4f8f7);
}

.verify-head p {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.verify-head h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: 0;
}

.verify-status {
  margin: 24px 28px 0;
  padding: 16px 18px;
  border-radius: var(--radius);
}

.verify-status span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.verify-status strong {
  display: block;
  font-size: 16px;
}

.verify-status.verified {
  border: 1px solid #b7e4c7;
  background: #ecfdf3;
  color: #166534;
}

.verify-status.invalid {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  color: #9f1239;
}

.verify-grid {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0;
  margin: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.verify-grid span,
.verify-grid strong {
  min-height: 42px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.verify-grid span {
  background: #f6faf9;
  color: var(--indigo);
  font-weight: 800;
}

.verify-grid strong {
  font-weight: 700;
}

.verify-grid span:nth-last-child(2),
.verify-grid strong:last-child {
  border-bottom: 0;
}

.verify-token {
  margin: 0 28px 28px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  font-size: 13px;
  word-break: break-all;
}

.verify-token strong {
  color: var(--ink);
}

.record-form {
  gap: 16px;
}

.form-section {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.form-section h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

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

.party-panel {
  min-width: 0;
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid #d7e0e5;
  border-radius: 6px;
  background: #fff;
}

.party-panel legend {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 8px;
  color: var(--brand);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.party-panel legend svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.2;
}

.party-panel-fields {
  display: grid;
  gap: 12px;
}

.party-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

.form-grid.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-grid.two-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.span-2 {
  grid-column: span 2;
}

.span-3 {
  grid-column: span 3;
}

.date-selects {
  display: grid;
  grid-template-columns: minmax(72px, 0.8fr) minmax(110px, 1fr) minmax(86px, 0.8fr);
  gap: 7px;
}

.cream-block {
  padding: 14px;
  border: 1px solid #f1dfae;
  border-radius: var(--radius);
  background: #fff8df;
}

.breadcrumb-line {
  min-height: 34px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb-line a {
  color: var(--indigo);
  font-weight: 800;
}

.breadcrumb-line svg {
  width: 14px;
  height: 14px;
}

.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0 8px;
}

.stepper::before {
  content: "";
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 4px;
  border-radius: 999px;
  background: #d6dce1;
}

.stepper span {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #89949c;
  font-size: 12px;
  font-weight: 800;
}

.stepper b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 4px solid #d6dce1;
  border-radius: 50%;
  background: #fff;
  color: #61707a;
}

.stepper span.active {
  color: var(--brand-dark);
}

.stepper span.active b {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.wizard-stepper button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #89949c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.wizard-stepper button b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 4px solid #d6dce1;
  border-radius: 50%;
  background: #fff;
  color: #61707a;
}

.wizard-stepper button.active {
  color: var(--brand-dark);
}

.wizard-stepper button.active b {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.form-section h4 {
  margin: 16px 0 10px;
  color: #31424d;
  font-size: 13px;
  text-transform: uppercase;
}

.witness-block {
  padding-top: 4px;
}

.witness-block + .witness-block {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #ecdba9;
}

.wizard-actions [data-step-prev]:disabled,
.wizard-actions [data-step-next]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.operational-form .form-section {
  background: #fffdf3;
  border-color: #f1dfae;
}

.file-field {
  display: grid;
  gap: 8px;
}

.file-field input[type="file"] {
  min-height: 42px;
  padding: 8px;
  border: 1px dashed #b9c7d0;
  border-radius: 6px;
  background: #fff;
  color: #334155;
}

.upload-preview,
.upload-hint {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.upload-preview img {
  width: 54px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  object-fit: contain;
}

.remove-upload-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
}

.remove-upload-check input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  justify-content: flex-end;
  padding: 14px 0 0;
  background: linear-gradient(rgba(244, 247, 246, 0), var(--page) 35%);
}

.inline-control input {
  flex: 1 1 auto;
}

.profile-band {
  min-height: 102px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-left: 5px solid var(--brand);
}

.profile-actions {
  display: flex;
  gap: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px 14px;
  margin: 0;
}

.detail-grid dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-grid dd {
  margin: 0;
}

.timeline {
  display: grid;
  gap: 13px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 12px;
}

.timeline-item > span {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--brand);
}

.timeline-item strong,
.timeline-item p,
.timeline-item small {
  display: block;
  margin: 0;
}

.timeline-item p {
  margin-top: 4px;
  color: var(--muted);
}

.timeline-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.tabbar {
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.tabbar a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-bottom: 0;
  color: var(--muted);
  font-weight: 800;
}

.tabbar a.active {
  color: var(--brand-dark);
  border-color: var(--line);
  background: #fff;
}

.compact-form {
  max-width: 980px;
}

.renewal-strip {
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  color: #243238;
}

.report-summary,
.install-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.install-summary {
  grid-template-columns: 1fr 1fr;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.report-summary > div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.report-summary span,
.install-summary span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: auto;
}

.mobile-only {
  display: none;
}

@media (max-width: 1120px) {
  .app-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    z-index: 10;
    width: 286px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-only {
    display: inline-flex;
  }

  .metric-grid,
  .two-col,
  .filter-bar,
  .public-hero,
  .public-section.split,
  .awareness-banner,
  .process-grid,
  .service-grid,
  .site-footer-inner,
  .public-enquiry-layout,
  .public-enquiry-page,
  .registration-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-page-hero-copy h1 {
    font-size: 48px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-footer-bottom {
    flex-direction: column;
  }
}

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

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

  .login-hero,
  .public-enquiry-intro {
    min-height: 320px;
    padding: 30px;
  }

  .login-hero h1,
  .public-enquiry-intro h1 {
    font-size: 32px;
  }

  .auth-card,
  .main {
    padding: 18px;
  }

  .topbar,
  .profile-band,
  .panel-head,
  .quick-actions,
  .user-menu {
    align-items: flex-start;
    flex-direction: column;
  }

  .metric-grid,
  .metric-grid.compact,
  .filter-bar,
  .public-hero,
  .public-feature-row,
  .public-section.split,
  .awareness-banner,
  .process-grid,
  .service-grid,
  .site-footer-inner,
  .public-enquiry-layout,
  .public-enquiry-page,
  .registration-search,
  .party-panel-grid,
  .party-field-row,
  .form-grid,
  .form-grid.four-col,
  .form-grid.three-col,
  .form-grid.two-fields,
  .profile-form-grid,
  .report-summary,
  .stepper {
    grid-template-columns: 1fr;
  }

  .span-2,
  .span-3 {
    grid-column: auto;
  }

  .stepper::before {
    display: none;
  }

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

  .action-links {
    min-width: 240px;
    white-space: normal;
  }

  .site-header {
    position: static;
    padding: 16px;
  }

  .site-actions,
  .public-hero-actions,
  .public-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .site-actions .btn,
  .public-hero-actions .btn,
  .public-cta .btn {
    width: 100%;
  }

  .public-hero {
    min-height: auto;
    padding-top: 54px;
    gap: 28px;
    background:
      linear-gradient(90deg, rgba(12, 43, 42, 0.96), rgba(12, 43, 42, 0.72)),
      url("../img/mrwb-hero-realistic.png") center / cover no-repeat;
  }

  .public-hero-copy h1 {
    font-size: 42px;
  }

  .public-page-hero {
    min-height: auto;
    padding: 54px 0 74px;
    background:
      linear-gradient(90deg, rgba(12, 43, 42, 0.96), rgba(12, 43, 42, 0.72)),
      url("../img/mrwb-hero-realistic.png") center / cover no-repeat;
  }

  .public-page-hero-copy h1 {
    font-size: 42px;
  }

  .public-page-hero-copy p {
    font-size: 16px;
  }

  .public-feature-row {
    margin-top: -34px;
  }

  .public-section {
    padding-top: 52px;
  }

  .public-enquiry-section {
    padding-top: 52px;
  }

  .public-enquiry-form,
  .public-enquiry-help article {
    padding: 20px;
  }

  .awareness-banner {
    padding: 20px;
  }

  .awareness-benefits h3 {
    font-size: 22px;
  }

  .public-cta {
    margin-top: 52px;
    padding: 24px;
  }

  .site-footer-bottom {
    flex-direction: column;
  }
}

@media print {
  @page certificatePage {
    size: A4 portrait;
    margin: 10mm;
  }

  @page legalPage {
    size: legal portrait;
    margin: 9mm;
  }

  @page a3Page {
    size: A3 portrait;
    margin: 0;
  }

  @page divorceCertificatePage {
    size: A4 portrait;
    margin: 10mm;
  }

  .sidebar,
  .topbar,
  .btn,
  .icon-button,
  .filter-bar,
  .search-panel,
  .profile-actions,
  .no-print {
    display: none !important;
  }

  .app-body {
    display: block;
  }

  .main {
    padding: 0;
  }

  .panel,
  .profile-band {
    box-shadow: none;
    break-inside: avoid;
  }

  .document-panel {
    max-width: none;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .document-sheet {
    min-height: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .truecopy-register-a3 {
    page: a3Page;
    width: 297mm;
    height: 420mm;
    margin: 0;
    box-shadow: none;
    break-after: avoid;
    break-inside: avoid;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .document-output-body {
    margin: 0;
    padding: 0;
    background: #fff;
  }

  .exact-certificate-sheet {
    margin: 0;
    box-shadow: none;
  }

  .divorce-certificate-sheet {
    width: 1029px;
    height: 1500px;
    margin: 0;
    box-shadow: none;
    background-size: 100% 100%;
    zoom: 0.698;
    break-after: avoid;
    break-inside: avoid;
    page-break-after: avoid;
    page-break-inside: avoid;
  }
}

/* Public application and tracking */
.public-application-body {
  min-height: 100vh;
  background: #eef2f3;
}

.application-site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid #d5dfe2;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(23, 33, 38, 0.06);
}

.public-application-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.public-application-shell.narrow-shell {
  width: min(820px, calc(100% - 32px));
}

.application-intro,
.application-page-heading {
  padding: 22px 0 18px;
}

.application-intro-visual {
  min-height: 330px;
  position: relative;
  margin: 12px 0 18px;
  padding: 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid #d8e2e4;
  border-bottom: 1px solid #d8e2e4;
  background: #f4f7f7;
  isolation: isolate;
}

.application-intro-image {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: 72% 50%;
  animation: applicationHeroDrift 14s ease-in-out infinite alternate;
}

.application-intro-visual > div {
  position: relative;
  z-index: 1;
  max-width: 770px;
  padding: 34px 38px;
}

.application-intro-visual h1 {
  font-size: 36px;
}

.application-intro-visual > div > p {
  max-width: 610px;
  color: #3d4b52;
}

.application-intro h1,
.application-page-heading h1,
.tracking-search-card h1,
.public-result-card h1 {
  margin: 5px 0 8px;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: 0;
}

.application-intro > div,
.application-page-heading {
  max-width: 800px;
}

.application-intro p,
.application-page-heading p,
.tracking-search-card > p,
.public-result-card > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.application-page-heading > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--teal);
  font-weight: 800;
}

.application-page-heading > a svg {
  width: 17px;
}

.eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.registrar-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
  margin: 24px 0 0;
}

.registrar-summary div {
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  background: #fff;
}

.registrar-summary dt,
.registrar-summary dd {
  margin: 0;
}

.registrar-summary dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.registrar-summary dd {
  margin-top: 5px;
  font-weight: 700;
}

.public-service-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.public-service-choice > a {
  display: flex;
  min-height: 210px;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 30px rgba(23, 33, 38, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease;
  animation: serviceChoiceReveal 520ms ease both;
}

.public-service-choice > a:nth-child(2) {
  animation-delay: 90ms;
}

.public-service-choice > a:nth-child(3) {
  animation-delay: 180ms;
}

.public-service-choice > a:nth-child(2) {
  border-top-color: var(--teal);
}

.public-service-choice > a:nth-child(3) {
  border-top-color: var(--amber);
}

.public-service-choice > a:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(23, 33, 38, 0.11);
}

.public-service-choice > a > svg {
  width: 32px;
  height: 32px;
  margin-bottom: 32px;
  color: var(--teal);
  transition: transform 180ms ease, color 180ms ease;
}

.public-service-choice > a:hover > svg {
  color: var(--brand);
  transform: translateY(-3px) rotate(-3deg);
}

.public-service-choice strong {
  font-size: 19px;
}

.public-service-choice span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--muted);
  font-weight: 700;
}

.public-service-choice span svg {
  width: 16px;
  transition: transform 180ms ease;
}

.public-service-choice > a:hover span svg {
  transform: translateX(4px);
}

@keyframes applicationHeroDrift {
  from { transform: scale(1.005) translateX(0); }
  to { transform: scale(1.035) translateX(-8px); }
}

@keyframes serviceChoiceReveal {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

.otp-card,
.tracking-search-card,
.tracking-result,
.public-result-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 38px rgba(23, 33, 38, 0.08);
}

.otp-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 22px;
  align-items: center;
}

.otp-card-copy {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.otp-card-copy small,
.application-section-heading small,
.public-link-card small,
.share-hub-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.otp-card-copy h2,
.application-section-heading h3,
.public-link-card h3,
.share-hub-card h3 {
  margin: 4px 0 6px;
  letter-spacing: 0;
}

.otp-card-copy p {
  margin: 0;
  color: var(--muted);
}

.otp-icon,
.share-hub-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 50%;
  background: #e7f5f3;
  color: var(--teal);
}

.otp-form {
  display: grid;
  gap: 14px;
}

.otp-form label,
.public-application-form label,
.tracking-search-card label {
  display: grid;
  gap: 5px;
  color: #334047;
  font-size: 12px;
  font-weight: 800;
}

.otp-form input,
.public-application-form input,
.public-application-form select,
.public-application-form textarea,
.tracking-search-card input,
.share-link-row input {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #ccd9de;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.public-application-form textarea {
  min-height: 62px;
  resize: vertical;
}

.public-application-form .file-field input[type="file"] {
  min-height: 38px;
  padding: 6px 8px;
}

.public-application-form .upload-hint {
  min-height: 0;
  line-height: 1.3;
}

.additional-documents,
.additional-document-list {
  display: grid;
  gap: 9px;
}

.additional-document-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr) 38px;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #e2e9ec;
  border-radius: 6px;
  background: #f8faf9;
}

.additional-document-remove {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid #e4c3c6;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  cursor: pointer;
}

.additional-document-remove:hover {
  background: #fff1f2;
}

.additional-document-remove svg {
  width: 16px;
  height: 16px;
}

.additional-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}

.additional-document-actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.otp-form input:focus,
.public-application-form input:focus,
.public-application-form select:focus,
.public-application-form textarea:focus,
.tracking-search-card input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(14, 118, 111, 0.12);
}

.otp-actions,
.result-actions,
.application-detail-actions,
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.public-application-form {
  display: grid;
  gap: 10px;
}

.public-application-form .form-grid {
  gap: 10px 12px;
}

.application-form-section {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid #c8ddd9;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 3px 12px rgba(23, 33, 38, 0.035);
}

.application-form-section.verified-contact-section {
  border-left: 4px solid var(--green);
}

.application-form-section.required-document-section {
  border-left-color: var(--brand);
}

.required-document-section .application-section-heading > svg {
  color: var(--brand);
}

.required-document-grid .file-field {
  align-content: start;
}

.application-section-heading,
.public-link-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.application-section-heading {
  padding-bottom: 9px;
  border-bottom: 1px solid #e6ecef;
}

.application-section-heading h3 {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.2;
}

.application-section-heading > svg,
.public-link-card-head > svg {
  width: 25px;
  height: 25px;
  color: var(--teal);
}

.application-address-block,
.application-subsection {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e6ecef;
}

.application-address-block h4,
.application-subsection h4 {
  margin: 0 0 9px;
  color: #213139;
  font-size: 13px;
}

.address-copy-option {
  display: flex !important;
  width: fit-content;
  margin-top: 9px;
  grid-template-columns: auto 1fr;
  align-items: center;
}

.address-copy-option input,
.application-consent input {
  width: 16px;
  min-height: 16px;
}

.application-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid #bad8cf;
  border-radius: var(--radius);
  background: #f1faf7;
}

.application-consent label {
  display: flex;
  max-width: 760px;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  flex-direction: row;
}

.public-result-card {
  margin: 60px auto;
  text-align: center;
}

.public-result-card.compact-result {
  margin: 18px 0 0;
}

.result-icon {
  display: grid;
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
}

.result-icon.success {
  background: #dcfce7;
  color: var(--green);
}

.result-icon.danger {
  background: #ffe4e6;
  color: var(--red);
}

.result-icon svg {
  width: 30px;
  height: 30px;
}

.ticket-display {
  max-width: 430px;
  margin: 26px auto;
  padding: 18px;
  border: 1px dashed var(--teal);
  background: #effaf8;
}

.ticket-display small,
.tracking-result-head small,
.tracking-office small,
.application-contact-strip small,
.application-data-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.ticket-display strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
}

.result-actions {
  justify-content: center;
}

.tracking-search-card form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 24px;
  align-items: end;
}

.tracking-result {
  margin-top: 18px;
}

.tracking-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.tracking-result-head h2 {
  margin: 4px 0 5px;
}

.tracking-result-head p {
  margin: 0;
  color: var(--muted);
}

.public-status-timeline {
  display: grid;
  gap: 0;
  padding: 28px 4px;
}

.public-status-timeline article {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 13px;
  min-height: 82px;
  color: #8a949a;
}

.public-status-timeline article:not(:last-child)::before {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 15px;
  width: 2px;
  background: #dbe4e8;
  content: "";
}

.public-status-timeline article.complete:not(:last-child)::before {
  background: var(--teal);
}

.public-status-timeline article > span {
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 2px solid #cbd5d9;
  border-radius: 50%;
  background: #fff;
}

.public-status-timeline article.complete > span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.public-status-timeline article.current strong {
  color: var(--teal);
}

.public-status-timeline strong,
.public-status-timeline small {
  display: block;
}

.public-status-timeline small {
  margin-top: 4px;
}

.public-status-timeline p {
  margin: 5px 0 0;
  color: var(--muted);
}

.tracking-office {
  display: flex;
  gap: 13px;
  padding: 16px;
  align-items: flex-start;
  background: #f5f7f8;
}

.tracking-office > svg {
  color: var(--brand);
}

.tracking-office p {
  margin: 4px 0 0;
  color: var(--muted);
}

/* MR public link and application inbox */
.share-hub-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 22px;
  padding: 22px;
  align-items: center;
  border: 1px solid #b9d8d3;
  border-left: 4px solid var(--teal);
  background: #f2faf8;
}

.share-hub-card > div:first-child {
  display: flex;
  gap: 14px;
}

.share-hub-card p {
  margin: 0;
  color: var(--muted);
}

.share-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(4, 40px);
  gap: 7px;
  align-items: center;
}

.share-link-row.compact {
  grid-template-columns: minmax(0, 1fr) 40px;
}

.share-link-row .icon-button {
  width: 40px;
  height: 40px;
}

.whatsapp-button {
  color: #128c4b;
}

.public-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.public-link-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.share-actions {
  margin-top: 14px;
}

.share-actions .btn {
  flex: 1;
  min-width: 90px;
}

.application-detail-head {
  gap: 22px;
}

.application-detail-actions {
  justify-content: flex-end;
}

.application-contact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.application-contact-strip > div {
  min-width: 0;
  padding: 14px;
  background: #f8fafb;
}

.application-contact-strip strong,
.application-contact-strip a {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.application-contact-strip a {
  color: var(--teal);
  font-weight: 700;
}

.application-data-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
}

.application-data-item {
  min-width: 0;
  padding: 13px 14px;
  background: #fff;
}

.application-data-item strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.application-photo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.application-photo-row figure {
  margin: 0;
}

.application-photo-row img {
  width: 130px;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.application-photo-row figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.application-document-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.application-document-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.application-document-heading > svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.application-document-heading small,
.application-document-heading h3 {
  display: block;
  margin: 0;
}

.application-document-heading small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

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

.application-document-list > a {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  gap: 9px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.application-document-list > a:hover {
  border-color: #9ec8c2;
  background: #f2faf8;
}

.application-document-list > a > svg:first-child {
  color: var(--teal);
}

.application-document-list > a svg {
  width: 16px;
  height: 16px;
}

.application-document-list > a span,
.application-document-list > a strong,
.application-document-list > a small {
  display: block;
  min-width: 0;
}

.application-document-list > a strong,
.application-document-list > a small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-document-list > a small {
  margin-top: 2px;
  color: var(--muted);
}

.application-filter {
  grid-template-columns: minmax(220px, 1.4fr) minmax(170px, 1fr) minmax(170px, 1fr) auto auto;
}

.btn-small {
  min-height: 34px;
  padding: 7px 10px;
}

@media (max-width: 900px) {
  .public-track-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
  }

  .public-service-choice,
  .public-link-grid,
  .application-data-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .share-hub-card,
  .otp-card {
    grid-template-columns: 1fr;
  }

  .application-contact-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .application-document-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .public-track-section {
    margin-top: 44px;
  }

  .public-track-inner {
    width: min(100% - 32px, 1180px);
    padding: 26px 0;
  }

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

  .public-track-form .btn {
    width: 100%;
  }

  .application-site-header {
    position: static;
    padding: 12px 16px;
  }

  .application-site-header .btn {
    padding: 9px;
    font-size: 0;
  }

  .application-site-header .btn svg {
    margin: 0;
  }

  .public-application-shell {
    width: min(100% - 24px, 1160px);
    padding: 14px 0 32px;
  }

  .application-intro h1,
  .application-page-heading h1,
  .tracking-search-card h1,
  .public-result-card h1 {
    font-size: 28px;
  }

  .application-intro-visual {
    min-height: 400px;
    margin-top: 6px;
  }

  .application-intro-image {
    opacity: 0.28;
    object-position: 66% center;
  }

  .application-intro-visual > div {
    padding: 24px 18px;
  }

  .public-service-choice,
  .public-link-grid,
  .application-data-grid,
  .registrar-summary,
  .application-contact-strip,
  .tracking-search-card form,
  .application-filter {
    grid-template-columns: 1fr;
  }

  .public-service-choice > a {
    min-height: 170px;
  }

  .public-service-choice > a > svg {
    margin-bottom: 20px;
  }

  .otp-card,
  .tracking-search-card,
  .tracking-result,
  .public-result-card {
    padding: 19px;
  }

  .application-form-section {
    padding: 14px;
  }

  .public-application-form input,
  .public-application-form select,
  .public-application-form textarea {
    min-height: 42px;
  }

  .additional-document-row {
    grid-template-columns: minmax(0, 1fr) 42px;
  }

  .additional-document-row > label:first-child {
    grid-column: 1 / -1;
  }

  .additional-document-remove {
    width: 42px;
    height: 42px;
  }

  .application-consent,
  .tracking-result-head,
  .application-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .share-link-row {
    grid-template-columns: minmax(0, 1fr) repeat(2, 40px);
  }

  .share-link-row .whatsapp-button,
  .share-link-row a:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-intro-image,
  .public-service-choice > a {
    animation: none;
  }

  .public-service-choice > a,
  .public-service-choice > a > svg,
  .public-service-choice span svg {
    transition: none;
  }
}
