:root{
  --bg:#fffafa;
  --surface:#ffffff;
  --surface-soft:#fff5f5;
  --ink:#1b1d21;
  --ink-soft:#343941;
  --muted:#68707d;
  --line:#ead8d8;
  --line-strong:#d7b4b4;
  --red:#c81e2b;
  --red-deep:#8f111b;
  --red-soft:#fff0f1;
  --accent:var(--red);
  --accent-strong:var(--red-deep);
  --accent-soft:var(--red-soft);
  --green:#8f111b;
  --green-soft:#fff0f1;
  --danger-soft:#fff1ef;
  --amber:#8f111b;
  --amber-soft:#fff5f5;
  --blue:#8f111b;
  --blue-soft:#fff5f5;
  --grey-soft:#f2f4f7;
  --shadow:0 18px 44px rgba(143,17,27,.08);
  --shadow-sm:0 8px 22px rgba(143,17,27,.06);
  --radius:16px;
  --radius-sm:10px;
  --max:1180px;
  --font-main:"Inter","SF Pro Text",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --font-sidebar-current:"Aptos","Segoe UI",Roboto,Arial,sans-serif;
}

*{box-sizing:border-box}
html{font-size:16px;-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:var(--font-main);
  font-size:14px;
  line-height:1.55;
  background:
    radial-gradient(circle at top left,rgba(200,30,43,.08),transparent 34rem),
    linear-gradient(180deg,#fff 0%,var(--bg) 56%,#fff 100%);
  color:var(--ink);
}
a{color:inherit;text-decoration:none}
h1,h2,h3,p{margin-top:0}
h1{font-size:28px;line-height:1.18;letter-spacing:0;font-weight:700}
h2{font-size:18px;line-height:1.25;font-weight:700}
h3{font-size:16px;line-height:1.3;font-weight:700}
p{color:var(--muted)}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px clamp(18px,4vw,56px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.brand{display:flex;align-items:center;gap:14px;min-width:max-content}
.brand strong{
  display:block;
  color:var(--ink);
  font-size:1.34rem;
  line-height:1.05;
  font-weight:900;
  letter-spacing:.01em;
}
.brand small{display:block;color:var(--muted);font-size:.78rem;line-height:1.25;margin-top:3px}
.logo{
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:14px;
  background:linear-gradient(145deg,var(--red) 0%,var(--red-deep) 100%);
  color:#fff;
  font-weight:900;
  font-size:1rem;
  box-shadow:0 10px 24px rgba(143,17,27,.16);
}
.topbar nav{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.topbar nav a:not(.btn){padding:10px 12px;border-radius:999px;color:var(--ink-soft);font-weight:750;font-size:.96rem}
.topbar nav a:not(.btn):hover{background:var(--accent-soft);color:var(--accent-strong)}
.language-form{margin:0}
.language-bar{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:7px 10px 7px 13px;
  border:1px solid var(--line);
  border-radius:999px;
  background:#fff;
  color:var(--ink-soft);
  font-size:.92rem;
  font-weight:850;
  box-shadow:var(--shadow-sm);
}
.language-bar span{
  color:var(--muted);
  font-size:.86rem;
  font-weight:900;
}
.language-select{
  width:auto;
  min-width:118px;
  min-height:34px;
  border:0;
  border-radius:999px;
  background:
    linear-gradient(45deg,transparent 50%,var(--red-deep) 50%) calc(100% - 16px) 50%/7px 7px no-repeat,
    linear-gradient(135deg,var(--red-deep) 50%,transparent 50%) calc(100% - 11px) 50%/7px 7px no-repeat,
    var(--accent-soft);
  color:var(--accent-strong);
  font:inherit;
  font-weight:950;
  padding:7px 34px 7px 12px;
  cursor:pointer;
}
.language-select:focus{
  outline:3px solid rgba(200,30,43,.18);
}
.language-option{
  appearance:none;
  border:0;
  background:transparent;
  color:var(--ink-soft);
  font:inherit;
  line-height:1;
  padding:5px 4px;
  min-height:auto;
  cursor:pointer;
}
.language-option:hover,
.language-option.active{
  color:var(--accent-strong);
  text-decoration:underline;
  text-underline-offset:4px;
}
.language-option.active{font-weight:950}
.menu-toggle{
  display:none;
  min-height:42px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  color:var(--accent-strong);
  padding:9px 16px;
  font-size:.96rem;
  font-weight:900;
  cursor:pointer;
}
.menu-toggle:hover{border-color:var(--accent);background:var(--accent-soft)}
.view-as-form{margin:0}
.view-as-form label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.9rem;
  color:var(--ink-soft);
}
.view-as-form select{
  min-width:145px;
  padding:9px 34px 9px 12px;
  border-radius:999px;
  font-weight:850;
}

.btn,button.btn,summary.btn{
  min-height:44px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  background:#fff;
  color:var(--ink);
  padding:10px 18px;
  font-size:.98rem;
  line-height:1.2;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  box-shadow:0 2px 0 rgba(143,17,27,.03);
}
.btn:hover{border-color:var(--accent);box-shadow:var(--shadow-sm)}
.btn.primary{
  background:linear-gradient(180deg,#df3442 0%,var(--red) 100%);
  border-color:var(--accent);
  color:#fff;
}
.btn.ghost{background:#fff;color:var(--ink)}
.btn.danger{background:var(--red);border-color:var(--red);color:#fff}

.hero{
  width:min(var(--max),calc(100% - 36px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,390px);
  gap:48px;
  align-items:center;
  padding:82px 0 56px;
}
.hero h1{
  margin:0 0 16px;
  color:var(--ink);
  font-family:Georgia,"Times New Roman",serif;
  font-weight:700;
}
.hero h2{margin:0 0 16px;color:var(--accent-strong)}
.lead{font-size:clamp(1.35rem,2vw,1.75rem);font-weight:850;color:var(--ink-soft);line-height:1.3}
.hero p:not(.eyebrow):not(.lead){font-size:1.12rem;max-width:720px}
.eyebrow{
  color:var(--accent-strong);
  font-size:.82rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.12em;
  margin-bottom:14px;
}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}
.profile-summary-actions{
  align-self:start;
  align-items:center;
  justify-content:flex-start;
  margin-top:0;
}
.profile-summary-actions .btn{
  width:auto;
  min-width:0;
  max-width:100%;
  min-height:42px;
  height:auto;
  border-radius:10px;
  padding:10px 16px;
  white-space:normal;
}
.legal-tabs{margin-bottom:18px}
.legal-document p{
  color:var(--ink-soft);
  font-size:1.06rem;
  line-height:1.8;
}
.legal-quick-links{margin-top:24px}
.legal-quick-links h2{
  font-size:1.35rem;
  color:var(--accent-strong);
  font-family:"Aptos","Segoe UI",Roboto,Arial,sans-serif;
}
.action-stack{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.action-stack details{min-width:max-content}
.breadcrumb{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin:0 0 14px;
  color:var(--muted);
  font-size:.95rem;
  font-weight:800;
}
.breadcrumb a{color:var(--accent-strong)}
.breadcrumb span:before,
.breadcrumb strong:before{content:"/";margin-right:8px;color:var(--line-strong)}
.breadcrumb strong{color:var(--ink)}
.profile-tabs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 22px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.profile-tabs a{
  min-height:40px;
  padding:9px 14px;
  border:1px solid var(--line-strong);
  border-radius:999px;
  color:var(--ink-soft);
  font-size:.94rem;
  font-weight:850;
  background:#fff;
}
.profile-tabs a.active,
.profile-tabs a:hover{background:var(--red);border-color:var(--red);color:#fff}

.passport-card,.panel,.note-card,.login-card,.install-card,.emergency-card{
  background:rgba(255,255,255,.96);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.passport-card{
  padding:28px;
  position:relative;
  overflow:hidden;
}
.passport-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(200,30,43,.10),transparent 42%);
  pointer-events:none;
}
.passport-card>*{position:relative}
.passport-card strong{display:block;font-size:1.45rem;line-height:1.25;margin:18px 0 8px}
.seal{
  display:inline-grid;
  place-items:center;
  width:78px;
  height:78px;
  border-radius:22px;
  background:var(--red-deep);
  color:#fff;
  font-size:1.5rem;
  font-weight:900;
  box-shadow:inset 0 -10px 24px rgba(255,255,255,.16);
}
.qr-box{
  display:grid;
  place-items:center;
  width:154px;
  height:154px;
  margin:22px 0 4px;
  border:10px solid var(--red-deep);
  border-radius:14px;
  background:
    linear-gradient(90deg,var(--red-deep) 10px,transparent 10px) 0 0/36px 36px,
    linear-gradient(var(--red-deep) 10px,transparent 10px) 0 0/36px 36px,
    #fff;
  color:var(--accent-strong);
  font-weight:900;
}
.qr-img{
  display:block;
  width:220px;
  height:220px;
  max-width:100%;
  margin:18px 0;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  padding:10px;
  box-shadow:var(--shadow-sm);
}

.section{
  width:min(var(--max),calc(100% - 36px));
  margin:0 auto;
  padding:48px 0;
}
.section>h2{margin-bottom:18px}
.feature-grid,.stat-grid,.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(235px,1fr));
  gap:18px;
}
.family-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:18px;
}
.family-card{
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
}
.family-card h3{
  font-size:1.35rem;
  margin:12px 0 6px;
}
.family-card p{margin-bottom:0}
.feature-grid article,.stat-grid article{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:22px;
  box-shadow:var(--shadow-sm);
}
.feature-grid article:before{
  content:attr(data-icon);
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:900;
  margin-bottom:16px;
}
.feature-grid p{font-size:.98rem}
.split{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:stretch}
.note-card,.panel{padding:24px}
.note-card strong{font-size:1.25rem}

.faq-hero{
  padding-top:72px;
  padding-bottom:28px;
}
.faq-hero h1{
  max-width:860px;
  margin-bottom:14px;
  font-family:Georgia,"Times New Roman",serif;
}
.faq-hero .lead{
  max-width:720px;
}
.faq-section{
  padding-top:18px;
}
.faq-list{
  display:grid;
  gap:12px;
}
.faq-item{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius-sm);
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}
.faq-item summary{
  display:flex;
  align-items:center;
  gap:14px;
  min-height:62px;
  padding:18px 20px;
  color:var(--ink);
  font-size:1rem;
  line-height:1.35;
  font-weight:800;
  cursor:pointer;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:after{
  content:"+";
  margin-left:auto;
  color:var(--accent-strong);
  font-size:1.35rem;
  font-weight:900;
}
.faq-item[open] summary{
  border-bottom:1px solid var(--line);
  background:var(--accent-soft);
  color:var(--accent-strong);
}
.faq-item[open] summary:after{content:"-"}
.faq-item summary span{
  flex:0 0 auto;
  display:inline-grid;
  place-items:center;
  min-width:42px;
  height:34px;
  border-radius:999px;
  background:var(--red);
  color:#fff;
  font-size:.86rem;
  font-weight:900;
}
.faq-item p{
  margin:0;
  padding:18px 20px 20px 76px;
  color:var(--ink-soft);
  font-size:1rem;
  line-height:1.75;
}
.faq-closing{
  padding-top:14px;
}
.faq-closing .note-card{
  border-color:var(--line-strong);
  background:linear-gradient(135deg,#fff, var(--surface-soft));
}
.faq-closing h2{
  color:var(--accent-strong);
  font-family:Georgia,"Times New Roman",serif;
  font-size:2rem;
}

.footer{
  display:flex;
  gap:18px;
  justify-content:space-between;
  flex-wrap:wrap;
  border-top:1px solid var(--line);
  padding:26px clamp(18px,4vw,56px);
  color:var(--muted);
  background:#fff;
}
.footer-links{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  align-items:center;
}
.footer-links a{
  color:var(--red-deep);
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:3px;
}

.login-screen,.install-body{
  min-height:calc(100vh - 102px);
  display:grid;
  place-items:center;
  padding:34px 18px;
}
.login-card,.install-card{width:min(480px,100%);padding:34px}
.login-card{width:min(760px,100%)}
.login-card h1,.install-card h1{font-family:Georgia,"Times New Roman",serif;font-size:2.45rem;margin:12px 0 4px}
.login-card p{margin-bottom:22px}
.login-methods{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:18px 0;
}
.login-method{
  display:grid;
  gap:14px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.login-method h2{font-size:1.15rem;margin:0;color:var(--ink)}
.code-panel{margin-top:16px}

label{display:grid;gap:8px;font-weight:800;color:var(--ink-soft);font-size:.98rem}
input,textarea,select{
  width:100%;
  border:1px solid var(--line-strong);
  border-radius:12px;
  padding:13px 14px;
  background:#fff;
  color:var(--ink);
  font:inherit;
  line-height:1.35;
}
select{
  appearance:none;
  background:
    linear-gradient(45deg,transparent 50%,var(--red-deep) 50%) calc(100% - 20px) 50%/7px 7px no-repeat,
    linear-gradient(135deg,var(--red-deep) 50%,transparent 50%) calc(100% - 15px) 50%/7px 7px no-repeat,
    #fff;
  padding-right:42px;
}
input[type="date"],
.date-picker{
  min-height:52px;
  color:var(--ink);
  background:#fff;
}
input[type="date"]::-webkit-calendar-picker-indicator,
.date-picker::-webkit-calendar-picker-indicator{
  cursor:pointer;
  opacity:.9;
  padding:8px;
  border-radius:10px;
  background-color:var(--red-soft);
}
textarea{min-height:104px;resize:vertical}
input:focus,textarea:focus,select:focus{
  outline:3px solid rgba(200,30,43,.18);
  border-color:var(--accent);
}
.form-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr));
  gap:18px;
  align-items:end;
}
.form-grid .btn,.form-grid button{width:max-content}
.profile-edit-form{
  display:grid;
  gap:24px;
  max-width:1120px;
}
.form-section{
  display:grid;
  gap:16px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.form-section h2{
  margin:0;
  color:var(--accent-strong);
  font-family:"Aptos","Segoe UI",Roboto,Arial,sans-serif;
  font-size:1.28rem;
  line-height:1.25;
}
.profile-edit-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(260px,1fr));
  gap:18px;
  align-items:start;
}
.profile-edit-form label{
  gap:10px;
  color:var(--ink);
  font-size:1.03rem;
}
.profile-edit-form label span{
  display:block;
  color:var(--ink-soft);
  font-size:.96rem;
  font-weight:900;
}
.profile-edit-form input,
.profile-edit-form textarea,
.profile-edit-form select{
  min-height:54px;
  border-radius:10px;
  padding:14px 16px;
  font-size:1.05rem;
  font-weight:750;
}
.profile-edit-form textarea{
  min-height:132px;
  line-height:1.55;
}
.wide-field{grid-column:1 / -1}
.form-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  padding-top:4px;
}
.error,.notice{
  padding:14px 16px;
  border-radius:12px;
  margin:12px 0 18px;
  font-weight:750;
}
.error{background:var(--danger-soft);color:var(--red);border:1px solid #ffd2cc}
.notice{background:var(--accent-soft);color:var(--accent-strong);border:1px solid var(--line-strong)}
.preview-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  margin-bottom:20px;
  padding:14px 16px;
  border:1px solid var(--line-strong);
  border-radius:16px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-weight:850;
}

.app-layout{
  display:grid;
  grid-template-columns:304px minmax(0,1fr);
  min-height:calc(100vh - 155px);
}
.sidebar{
  background:linear-gradient(180deg,#071827 0%,#0b2238 52%,#06111d 100%);
  color:#fff;
  padding:0;
  display:flex;
  flex-direction:column;
  min-height:calc(100vh - 86px);
  border-right:1px solid rgba(255,255,255,.08);
}
.sidebar-inner{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:100%;
  padding:22px 18px;
}
.sidebar-brand{
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 6px 18px;
  border-bottom:1px solid rgba(255,255,255,.12);
  margin-bottom:4px;
}
.sidebar-brand-mark{
  display:inline-grid;
  place-items:center;
  width:42px;
  height:42px;
  border-radius:12px;
  background:linear-gradient(145deg,#df3442 0%,#8f111b 100%);
  color:#fff;
  font-weight:950;
  box-shadow:0 12px 22px rgba(0,0,0,.18);
}
.sidebar-brand strong{
  display:block;
  padding:0;
  font-size:1rem;
  line-height:1.1;
  color:#fff;
}
.sidebar-brand small{
  display:block;
  margin-top:4px;
  color:#9fb1c5;
  font-size:.82rem;
  font-weight:800;
}
.sidebar-nav{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.sidebar strong{font-size:1.08rem;padding:0 12px 12px;color:#fff}
.sidebar a{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:11px 12px;
  border-radius:12px;
  color:#dbe7f3;
  font-weight:800;
  font-size:.96rem;
  line-height:1.25;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease;
}
.sidebar a:hover,
.sidebar a.active{
  background:#2563eb;
  color:#fff;
  box-shadow:0 10px 20px rgba(37,99,235,.22);
}
.sidebar a:hover:not(.active){background:rgba(255,255,255,.10);color:#fff}
.sidebar-icon{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:inline-grid;
  place-items:center;
  color:currentColor;
  opacity:.96;
}
.sidebar-icon svg{
  width:21px;
  height:21px;
  display:block;
  fill:currentColor;
}
.sidebar-label{
  min-width:0;
  overflow-wrap:anywhere;
}
.sidebar-section{display:block;width:100%}
.sidebar-section-title{
  min-height:48px;
  padding:13px 14px;
  border-radius:12px;
  color:#fff;
  font-weight:900;
  font-size:1rem;
  background:rgba(255,255,255,.10);
}
.sidebar-group{display:block;width:100%}
.sidebar-group summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:11px;
  min-height:46px;
  padding:11px 12px;
  border-radius:12px;
  color:#dbe7f3;
  font-weight:900;
  font-size:.96rem;
  line-height:1.25;
  cursor:pointer;
  user-select:none;
}
.sidebar-group summary::-webkit-details-marker{display:none}
.sidebar-group summary:hover{background:rgba(255,255,255,.10);color:#fff}
.sidebar-group[open] summary{background:rgba(255,255,255,.08);color:#fff}
.sidebar-group.active summary{background:#1d4ed8;color:#fff}
.sidebar-arrow{
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(-45deg);
  transition:transform .18s ease;
  flex:0 0 auto;
  margin-left:auto;
}
.sidebar-group[open] .sidebar-arrow{transform:rotate(45deg)}
.sidebar-submenu{
  display:grid;
  gap:5px;
  padding:7px 0 9px 32px;
}
.sidebar .sidebar-submenu a{
  min-height:40px;
  padding:9px 10px;
  border-left:2px solid rgba(159,177,197,.22);
  border-radius:10px;
  font-size:.9rem;
  color:#b8c8d8;
}
.sidebar .sidebar-submenu a:hover,
.sidebar .sidebar-submenu a.active{
  border-left-color:#93c5fd;
  background:rgba(37,99,235,.20);
  color:#fff;
  box-shadow:none;
}
.sidebar .sidebar-submenu .sidebar-icon{
  width:18px;
  height:18px;
  flex-basis:18px;
}
.sidebar .sidebar-submenu .sidebar-icon svg{
  width:17px;
  height:17px;
}
.sidebar-bottom{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:auto;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.12);
}
.sidebar-security-badge{
  display:flex;
  align-items:flex-start;
  gap:9px;
  padding:11px 12px;
  border:1px solid rgba(147,197,253,.28);
  border-radius:12px;
  color:#bfdbfe;
  background:rgba(37,99,235,.12);
  font-size:.82rem;
  font-weight:850;
  line-height:1.3;
}
.content{padding:38px;min-width:0}
.content>h1{font-family:"Aptos","Segoe UI",Roboto,Arial,sans-serif;font-size:clamp(1.95rem,3vw,2.55rem);line-height:1.14;margin-bottom:24px;letter-spacing:0;font-weight:850}
.stat-grid article span{display:block;color:var(--muted);font-size:.95rem;font-weight:800}
.stat-grid article strong{display:block;color:var(--ink);font-size:2.3rem;line-height:1.1;margin-top:8px}

.client-welcome-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:24px;
  align-items:center;
  margin-bottom:22px;
  padding:30px;
  border:1px solid #d8e6fb;
  border-radius:18px;
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.16),transparent 18rem),
    linear-gradient(135deg,#ffffff 0%,#f4f8ff 100%);
  box-shadow:0 18px 40px rgba(15,35,65,.08);
}
.client-welcome-card h2{
  margin:7px 0 8px;
  font-size:clamp(1.85rem,3vw,2.6rem);
  line-height:1.12;
  color:#0f172a;
}
.client-welcome-card p{
  max-width:620px;
  margin-bottom:16px;
  color:#405064;
  font-size:1.08rem;
}
.dashboard-kicker{
  display:inline-block;
  color:#2563eb;
  font-size:.82rem;
  font-weight:950;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.medical-id-illustration{
  justify-self:end;
  display:grid;
  gap:16px;
  place-items:center;
  width:190px;
  min-height:180px;
  padding:22px;
  border-radius:24px;
  background:#fff;
  border:1px solid #d9e5f8;
  box-shadow:0 18px 36px rgba(37,99,235,.12);
}
.medical-id-illustration span{
  display:grid;
  place-items:center;
  width:58px;
  height:58px;
  border-radius:18px;
  background:#1d4ed8;
  color:#fff;
  font-weight:950;
  font-size:1.15rem;
}
.mini-qr-grid,
.dashboard-qr-preview{
  width:92px;
  height:92px;
  border-radius:10px;
  background:
    linear-gradient(90deg,#0f172a 8px,transparent 8px) 0 0/22px 22px,
    linear-gradient(#0f172a 8px,transparent 8px) 0 0/22px 22px,
    #fff;
  border:8px solid #0f172a;
}
.verify-callout-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:18px;
  align-items:center;
  margin-bottom:22px;
  padding:22px;
  border:1px solid #fed7aa;
  border-radius:18px;
  background:#fff7ed;
  box-shadow:var(--shadow-sm);
}
.verify-callout-card h2{font-size:1.45rem;margin-bottom:4px}
.verify-callout-card p{margin:0;color:#5b6472;font-size:1rem}
.card-icon-circle{
  display:inline-grid;
  place-items:center;
  width:48px;
  height:48px;
  border-radius:16px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.88rem;
  font-weight:950;
  flex:0 0 auto;
}
.status-card-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:22px;
}
.dashboard-status-card{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:start;
  padding:20px;
  border:1px solid #dce6f5;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,35,65,.06);
}
.dashboard-status-card p{
  margin-bottom:3px;
  color:#64748b;
  font-size:.98rem;
  font-weight:850;
}
.dashboard-status-card strong{
  display:block;
  min-height:30px;
  color:#0f172a;
  font-size:1.22rem;
  line-height:1.25;
  overflow-wrap:anywhere;
}
.dashboard-status-card .btn{
  grid-column:1 / -1;
  justify-self:start;
  min-height:42px;
  padding:9px 15px;
}
.dashboard-card-actions{
  grid-column:1 / -1;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.dashboard-card-actions .btn{
  grid-column:auto;
  justify-self:auto;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  margin-top:10px;
  padding:5px 11px;
  border-radius:999px;
  font-size:.84rem;
  line-height:1.15;
  font-weight:950;
  background:#eef2f7;
  color:#475569;
}
.status-pill.verified,
.status-pill.active{
  background:#dcfce7;
  color:#166534;
}
.status-pill.pending,
.status-pill.pending_verification{
  background:#fef3c7;
  color:#92400e;
}
.status-pill.unverified,
.status-pill.neutral{
  background:#f1f5f9;
  color:#475569;
}
.status-pill.rejected{
  background:#fee2e2;
  color:#991b1b;
}
.dashboard-main-grid{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr);
  gap:18px;
  align-items:stretch;
  margin-bottom:22px;
}
.dashboard-main-grid.compact{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
}
.dashboard-large-card,
.dashboard-qr-card{
  padding:24px;
  border:1px solid #dce6f5;
  border-radius:18px;
  background:#fff;
  box-shadow:0 10px 26px rgba(15,35,65,.06);
}
.card-header-row{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}
.card-header-row h2,
.dashboard-qr-card h2{
  margin:4px 0 0;
  font-size:1.55rem;
  line-height:1.2;
  color:#0f172a;
}
.summary-metric-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.summary-metric-grid div{
  padding:16px;
  border:1px solid #e2e8f0;
  border-radius:16px;
  background:#f8fafc;
}
.summary-metric-grid span{
  display:block;
  color:#64748b;
  font-size:.95rem;
  font-weight:850;
  margin-bottom:6px;
}
.summary-metric-grid strong{
  display:block;
  color:#0f172a;
  font-size:1.2rem;
  line-height:1.25;
}
.dashboard-qr-card{
  display:grid;
  gap:18px;
  align-content:start;
}
.dashboard-qr-card p{
  margin:8px 0 4px;
  color:#475569;
  font-size:1rem;
}
.dashboard-qr-preview{
  width:132px;
  height:132px;
  border-width:10px;
}
.activity-list{
  display:grid;
  gap:12px;
}
.activity-list div{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#f8fafc;
}
.activity-dot{
  width:11px;
  height:11px;
  margin-top:7px;
  border-radius:999px;
  background:#2563eb;
  box-shadow:0 0 0 5px #dbeafe;
}
.activity-list p{margin:0}
.activity-list strong{
  display:block;
  color:#0f172a;
  font-size:1rem;
}
.activity-list small{
  display:block;
  margin-top:3px;
  color:#64748b;
  font-size:.9rem;
  font-weight:750;
}
.quick-action-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.quick-action-grid .btn{
  min-height:48px;
}

body :where(input,select,textarea,button){
  font-family:var(--font-main);
}
.sidebar,
.sidebar *{
  font-family:var(--font-sidebar-current);
}
.content>h1,
.section>h1,
.login-card h1,
.install-card h1,
.hero h1{
  font-family:var(--font-main);
  font-size:clamp(26px,2.4vw,28px);
  line-height:1.2;
  font-weight:700;
  letter-spacing:0;
}
.content h2,
.section h2,
.panel h2,
.note-card h2,
.dashboard-large-card h2,
.dashboard-qr-card h2,
.login-method h2,
.smid-choice-card h2,
.navigator-card h2{
  font-family:var(--font-main);
  font-size:18px;
  line-height:1.3;
  font-weight:700;
  letter-spacing:0;
}
.content h3,
.section h3,
.panel h3,
.note-card h3,
.family-card h3,
.navigator-card h3{
  font-size:16px;
  line-height:1.35;
  font-weight:700;
}
.content p,
.section p,
.panel p,
.note-card p,
.dashboard-large-card p,
.dashboard-qr-card p,
.family-card p,
.legal-document p,
.navigator-card p,
label,
input,
select,
textarea,
td{
  font-size:14px;
  line-height:1.55;
  font-weight:500;
}
.btn,
button.btn,
summary.btn,
input[type="submit"],
button{
  font-family:var(--font-main);
  font-size:14px;
  line-height:1.25;
  font-weight:600;
}
th{
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}
.badge,
.gender-badge,
.status-pill,
.fine,
.activity-list small,
.summary-list small,
.brand small,
.dashboard-kicker,
.language-bar span{
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}
.dashboard-status-card strong,
.stat-grid article strong,
.summary-metric-grid strong,
dd{
  font-size:clamp(22px,2vw,24px);
  line-height:1.2;
  font-weight:700;
}
.passport-card strong,
.note-card strong,
.activity-list strong,
.family-card strong,
.card-title{
  font-size:16px;
  line-height:1.35;
  font-weight:700;
}

.table-wrap{
  overflow:auto;
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
}
table{width:100%;border-collapse:separate;border-spacing:0}
th,td{text-align:left;border-bottom:1px solid var(--line);padding:15px 16px;vertical-align:top}
th{
  background:#fff5f5;
  color:var(--ink-soft);
  font-size:.88rem;
  text-transform:uppercase;
  letter-spacing:.04em;
}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fffafa}

details{position:relative;display:inline-block}
summary.btn{list-style:none;user-select:none}
summary.btn::-webkit-details-marker{display:none}
details[open] summary.btn{background:var(--accent-soft);border-color:var(--accent)}
details[open]{
  z-index:9;
}
details[open] > form,
details[open] > a.btn{
  display:flex;
}
details > form,
details > a.btn{
  width:220px;
  margin-top:7px;
  justify-content:flex-start;
}
details > form .btn{width:100%;justify-content:flex-start}
td details[open]{
  display:block;
  min-width:230px;
}
td details > a.btn,
td details > form{
  box-shadow:none;
}
td details > form{
  margin-bottom:0;
}
.inline-edit{
  display:block;
  margin-top:8px;
}
.inline-edit > .inline-form{
  width:min(320px, 100%);
  gap:10px;
}
.inline-edit select{
  min-width:180px;
}

.support-panel .lead{
  max-width:760px;
}
.support-button-grid,
.support-contact-grid,
.support-reminder-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
  margin-top:16px;
}
.support-button-grid .btn,
.support-contact-grid .btn{
  min-height:48px;
  justify-content:center;
  font-size:1rem;
}
.support-reminder-grid article{
  padding:16px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  background:#fffafa;
}
.support-reminder-grid span{
  display:block;
  color:var(--muted);
  font-size:.9rem;
  font-weight:700;
  margin-bottom:6px;
}
.support-reminder-grid strong{
  overflow-wrap:anywhere;
}
.support-ticket-form{
  margin-top:18px;
}
.support-faq-list{
  margin-top:16px;
}

.smid-simple-card{
  display:grid;
  gap:22px;
  max-width:920px;
}
.smid-simple-header h1{
  margin:10px 0 6px;
}
.smid-simple-header p{
  color:var(--muted);
  font-weight:700;
}
.smid-number-display{
  display:grid;
  gap:8px;
  padding:26px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fffafa;
}
.smid-number-display span{
  color:var(--accent-strong);
  font-size:15px;
  font-weight:900;
  letter-spacing:.08em;
}
.smid-number-display strong{
  color:var(--ink);
  font-size:clamp(34px,5vw,58px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:.04em;
}
.smid-number-display.compact{
  padding:18px;
}
.smid-number-display.compact strong{
  font-size:clamp(24px,3.4vw,34px);
}
.smid-simple-grid,
.smid-action-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(190px,1fr));
  gap:14px;
}
.smid-simple-grid article{
  padding:18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
}
.smid-simple-grid span{
  display:block;
  margin-bottom:8px;
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.smid-simple-grid strong{
  font-size:22px;
  font-weight:900;
}
.smid-action-grid .btn{
  min-height:54px;
  justify-content:center;
  font-size:1rem;
}
.smid-module-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
  margin-top:18px;
}
.smid-module-card{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.smid-module-card dl{
  display:grid;
  gap:10px;
  margin:0;
}
.smid-module-card dl div{
  display:grid;
  gap:4px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}
.smid-module-card dt{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
}
.smid-module-card dd{
  margin:0;
  color:var(--ink);
  font-size:15px;
  font-weight:800;
}
.smid-qr-card{
  display:grid;
  justify-items:center;
  gap:12px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
}
.smid-qr-card input{
  width:min(720px,100%);
  text-align:center;
}
.digital-card-preview{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  max-width:720px;
  padding:28px;
  border-radius:24px;
  border:1px solid var(--line-strong);
  background:linear-gradient(135deg,#fff 0%,#fff7f7 100%);
  box-shadow:var(--shadow);
}
.digital-card-preview>div:first-child{
  display:grid;
  gap:8px;
}
.digital-card-preview span{
  color:var(--accent-strong);
  font-size:13px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.digital-card-preview strong{
  font-size:26px;
  line-height:1.15;
  font-weight:900;
}
.digital-card-preview em{
  width:max-content;
  padding:7px 12px;
  border-radius:999px;
  background:#ecfff3;
  color:#166534;
  font-style:normal;
  font-weight:800;
}

.badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 11px;
  border-radius:999px;
  background:var(--accent-soft);
  color:var(--accent-strong);
  font-size:.85rem;
  font-weight:900;
}
.badge.verified{
  background:#eaf3ff;
  color:#1559b7;
  border:1px solid #8bbcff;
}
.badge.pending{
  background:#fff8df;
  color:#92400e;
  border:1px solid #f0d28b;
}
.badge.rejected{
  background:#fff1f1;
  color:#9f1239;
  border:1px solid #efb4b4;
}
.badge.danger{background:var(--red);border-color:var(--red);color:#fff}
.gender-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 11px;
  border-radius:999px;
  font-size:.86rem;
  font-weight:900;
  border:1px solid transparent;
  line-height:1.2;
}
.gender-badge.male{
  background:#eaf5ff;
  color:#15557f;
  border-color:#cfe7f8;
}
.gender-badge.female{
  background:#fff0f6;
  color:#8a1f4c;
  border-color:#f5cfe0;
}
.emergency-page{padding:28px;display:grid;place-items:center}
.emergency-card{width:min(800px,100%);padding:30px}
dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px}
dt{color:var(--muted);font-weight:800;font-size:.9rem}
dd{margin:0;font-size:1.18rem;font-weight:900}
.fine{font-size:.86rem;color:var(--muted)}

.navigator-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
.navigator-hero h2,
.navigator-card h2{
  margin:10px 0 8px;
  font-size:1.65rem;
}
.navigator-hero p{
  max-width:760px;
  color:var(--muted);
  font-weight:700;
}
.safety-list{
  min-width:min(320px,100%);
  margin:0;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fffafa;
  color:var(--ink-soft);
  font-weight:850;
}
.safety-list li{margin:6px 0}
.navigator-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}
.navigator-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  padding:22px;
}
.navigator-card h3{
  margin:18px 0 7px;
  font-size:1.03rem;
}
.navigator-card p{
  color:var(--ink-soft);
  font-weight:650;
}
.summary-list{
  display:grid;
  gap:10px;
  margin:14px 0 18px;
}
.summary-list div{
  display:grid;
  grid-template-columns:minmax(160px,1.1fr) auto minmax(180px,1.4fr);
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fffafa;
}
.summary-list span{
  color:var(--accent-strong);
  font-weight:900;
}
.summary-list small{
  color:var(--muted);
  font-weight:750;
}
.navigator-alert-list{
  display:grid;
  gap:10px;
  margin:14px 0 0;
  padding:0;
  list-style:none;
}
.navigator-alert-list li{
  display:grid;
  gap:4px;
  padding:13px 14px;
  border-left:4px solid var(--red);
  border-radius:12px;
  background:#fff5f5;
}
.navigator-alert-list span{
  color:var(--ink-soft);
  font-weight:700;
}
.navigator-form{
  display:grid;
  gap:14px;
  margin-top:12px;
}
.navigator-form textarea{
  min-height:170px;
  resize:vertical;
}
.navigator-result{
  margin-top:16px;
  padding:16px;
  border:1px solid var(--line-strong);
  border-radius:16px;
  background:var(--accent-soft);
}
.navigator-result strong{
  display:block;
  color:var(--accent-strong);
  font-size:1.12rem;
  margin-bottom:6px;
}
.navigator-result ul{
  margin:8px 0 0;
  padding-left:20px;
  color:var(--ink-soft);
  font-weight:750;
}

.smid-choice-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  align-items:start;
}
.smid-choice-card{
  display:grid;
  gap:14px;
  min-height:320px;
}
.smid-choice-card h2{
  font-family:"Aptos","Segoe UI",Roboto,Arial,sans-serif;
  font-size:1.55rem;
  margin-bottom:0;
}
.smid-check-form{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:12px;
  align-items:end;
}

/* Approved Swiss Medical ID typography. Keep sidebar menu unchanged. */
body,
body :where(input,select,textarea,button){
  font-family:var(--font-main);
}
.sidebar,
.sidebar *{
  font-family:var(--font-sidebar-current);
}
.content>h1,
.section>h1,
.login-card h1,
.install-card h1,
.hero h1{
  font-family:var(--font-main);
  font-size:clamp(26px,2.4vw,28px);
  line-height:1.2;
  font-weight:700;
  letter-spacing:0;
}
.content h2,
.section h2,
.panel h2,
.note-card h2,
.dashboard-large-card h2,
.dashboard-qr-card h2,
.login-method h2,
.smid-choice-card h2,
.navigator-card h2,
.legal-quick-links h2{
  font-family:var(--font-main);
  font-size:18px;
  line-height:1.3;
  font-weight:700;
  letter-spacing:0;
}
.content h3,
.section h3,
.panel h3,
.note-card h3,
.family-card h3,
.navigator-card h3{
  font-size:16px;
  line-height:1.35;
  font-weight:700;
}
.content p,
.section p,
.panel p,
.note-card p,
.dashboard-large-card p,
.dashboard-qr-card p,
.family-card p,
.legal-document p,
.navigator-card p,
.hero p,
.lead,
label,
input,
select,
textarea,
td{
  font-size:14px;
  line-height:1.55;
  font-weight:500;
}
.topbar nav a:not(.btn),
.language-bar,
.language-select,
.view-as-form label,
.view-as-form select{
  font-size:14px;
}
.btn,
button.btn,
summary.btn,
input[type="submit"],
button{
  font-family:var(--font-main);
  font-size:14px;
  line-height:1.25;
  font-weight:600;
}
th{
  font-size:12px;
  line-height:1.35;
  font-weight:700;
}
.badge,
.gender-badge,
.status-pill,
.fine,
.activity-list small,
.summary-list small,
.brand small,
.dashboard-kicker,
.language-bar span{
  font-size:12px;
  line-height:1.35;
  font-weight:400;
}
.dashboard-status-card strong,
.stat-grid article strong,
.summary-metric-grid strong,
dd{
  font-size:clamp(22px,2vw,24px);
  line-height:1.2;
  font-weight:700;
}
.passport-card strong,
.note-card strong,
.activity-list strong,
.family-card strong,
.card-title{
  font-size:16px;
  line-height:1.35;
  font-weight:700;
}

.profile-header-card{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px;
  margin-bottom:16px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
}
.profile-photo-frame{
  width:82px;
  height:82px;
  flex:0 0 82px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border-radius:50%;
  border:2px solid #f0d9d9;
  background:#fff4f4;
  color:#9d1c21;
  font-size:28px;
  font-weight:800;
}
.profile-photo-frame.large{
  width:300px;
  height:300px;
  min-width:300px;
  min-height:300px;
  max-width:300px;
  max-height:300px;
  flex:0 0 300px;
  aspect-ratio:1 / 1;
  font-size:72px;
}
.profile-photo-frame img{
  width:100%;
  height:100%;
  max-width:100%;
  max-height:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
  display:block;
}
.profile-info-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.profile-info-list div{
  padding:12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffafa;
}
.profile-info-list dt{
  margin-bottom:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}
.my-profile-card-grid{
  display:grid;
  gap:16px;
}
.readonly-badge-field{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffafa;
}
.profile-info-list dd{
  margin:0;
  font-size:14px;
  line-height:1.45;
  font-weight:600;
}
.profile-picture-tools{
  display:flex;
  align-items:center;
  gap:18px;
}
.profile-picture-tools form{
  margin-top:10px;
}
.section-heading-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:#fffafa;
  color:var(--text);
  white-space:nowrap;
}
.status-good{
  border-color:#b7dfc8;
  background:#ecfff3;
  color:#166534;
}
.status-warn{
  border-color:#f0d28b;
  background:#fff8df;
  color:#92400e;
}
.status-danger{
  border-color:#efb4b4;
  background:#fff1f1;
  color:#9f1239;
}
.status-muted{
  border-color:#dedede;
  background:#f7f7f7;
  color:#626262;
}
.verification-status-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}
.verification-status-grid div{
  padding:13px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffafa;
}
.verification-status-grid span{
  display:block;
  margin-bottom:5px;
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
}
.verification-status-grid strong{
  display:block;
  overflow-wrap:anywhere;
  font-size:14px;
}
.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.identity-upload-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:16px 0;
}
.identity-upload-card{
  display:grid;
  gap:10px;
  padding:15px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fffafa;
}
.identity-upload-card input[type=file]{
  width:100%;
}
.identity-preview{
  display:grid;
  gap:8px;
}
.identity-preview img{
  max-width:100%;
  max-height:180px;
  border:1px solid var(--line);
  border-radius:8px;
  object-fit:contain;
  background:#fff;
}
.identity-pdf-preview{
  padding:12px;
  border:1px dashed #d9b9b9;
  border-radius:8px;
  background:#fff;
  color:var(--muted);
  font-size:13px;
}
.document-review-list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
}
.doctor-directory-grid{
  display:grid;
  gap:16px;
}
.doctor-card,
.doctor-profile-header{
  display:grid;
  grid-template-columns:auto 1fr;
  align-items:start;
  gap:18px;
}
.doctor-photo{
  width:92px;
  height:92px;
  border-radius:50%;
  object-fit:cover;
  border:1px solid var(--line);
  background:#fff7f7;
  color:var(--brand);
  display:grid;
  place-items:center;
  font-weight:800;
}
.doctor-photo.large{
  width:140px;
  height:140px;
  font-size:28px;
}
.doctor-profile-public{
  max-width:1180px;
}
.badge.verified{
  background:#eaf6ff;
  color:#0c5d95;
  border-color:#c8e7ff;
}

@media(max-width:880px){
  body{font-size:14px}
  .topbar{align-items:flex-start;flex-direction:column}
  .topbar nav{width:100%;justify-content:flex-start}
  .language-bar{width:100%;justify-content:space-between;border-radius:14px}
  .language-select{flex:1;min-width:0}
  .view-as-form,.view-as-form label,.view-as-form select{width:100%}
  .hero,.split,.app-layout{grid-template-columns:1fr}
  .login-methods{grid-template-columns:1fr}
  .hero{padding:44px 0 34px}
  .passport-card{max-width:420px}
  .content{padding:22px 18px}
  .menu-toggle{display:inline-flex}
  .sidebar{
    display:none;
    min-height:auto;
    border-right:0;
  }
  .sidebar-inner{padding:16px;gap:10px}
  body.sidebar-open .sidebar{display:flex}
  .sidebar a{padding:11px 12px}
  .sidebar-brand{padding-bottom:14px}
  .form-grid{grid-template-columns:1fr}
  .profile-edit-form{padding:18px}
  .form-section{padding:16px}
  .profile-edit-grid{grid-template-columns:1fr}
  .wide-field{grid-column:auto}
  .form-grid .btn,.form-grid button{width:100%}
  .form-actions .btn,.form-actions button{width:100%}
  th,td{padding:13px 12px}
  details > form,details > a.btn{width:100%}
  .navigator-hero{display:grid}
  .navigator-grid{grid-template-columns:1fr}
  .summary-list div{grid-template-columns:1fr}
  .navigator-card{padding:18px}
  .smid-choice-grid,
  .smid-check-form{grid-template-columns:1fr}
  .client-welcome-card,
  .dashboard-main-grid,
  .dashboard-main-grid.compact,
  .verify-callout-card{grid-template-columns:1fr}
  .client-welcome-card{padding:24px}
  .medical-id-illustration{justify-self:start;width:100%;min-height:150px}
  .status-card-grid{grid-template-columns:1fr}
  .summary-metric-grid{grid-template-columns:1fr}
  .card-header-row{display:grid}
  .card-header-row .btn,
  .verify-callout-card .btn,
  .dashboard-status-card .btn,
  .dashboard-qr-card .btn,
  .quick-action-grid .btn{width:100%}
  .quick-action-grid{grid-template-columns:1fr}
  .faq-item summary{align-items:flex-start;padding:16px}
  .faq-item p{padding:16px}
  .faq-item summary span{min-width:38px;height:32px}
  .profile-header-card,
  .profile-picture-tools{align-items:flex-start;flex-direction:column}
  .profile-photo-frame.large{
    width:220px;
    height:220px;
    min-width:220px;
    min-height:220px;
    max-width:220px;
    max-height:220px;
    flex:0 0 220px;
  }
  .profile-info-list{grid-template-columns:1fr}
  .profile-picture-tools .actions{align-items:stretch;flex-direction:column}
  .section-heading-row{display:grid}
  .verification-status-grid,
  .identity-upload-grid{grid-template-columns:1fr}
  .doctor-card,
  .doctor-profile-header{grid-template-columns:1fr}
  .doctor-photo.large{width:112px;height:112px}
}
