.access-layout,
.account-view {
  --dossier-dark:#171c23;
  --dossier-red:#a92334;
  --dossier-line:#d8dfe4;
  --dossier-focus:#b12539;
  margin-top:clamp(18px,4vw,48px);
}
.access-layout {
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  align-items:stretch;
  gap:clamp(16px,3vw,32px);
  max-width:1020px;
  margin-inline:auto;
}
.access-cover,
.account-head {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  color:#fff;
  border-radius:18px;
  background:linear-gradient(130deg,#283440,#161d26 78%);
}
.access-cover {
  display:flex;
  align-items:flex-end;
  min-height:295px;
}
.access-cover:not(.has-service)::before {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:repeating-linear-gradient(135deg,transparent 0 34px,#ffffff0a 34px 35px);
}
.access-cover.has-service {background:#29343b;}
.access-photo,
.access-cover.has-service::after {position:absolute;inset:0;width:100%;height:100%;}
.access-photo {z-index:-2;object-fit:cover;}
.access-cover.has-service::after {
  content:"";
  z-index:-1;
  background:linear-gradient(0deg,#10161cf5 0%,#10161ccf 31%,#10161c40 72%,transparent);
}
.access-copy {width:100%;padding:clamp(22px,3.8vw,52px);}
.access-copy h1,
.account-head h1 {
  margin:0;
  color:#fff;
  font-size:clamp(1.95rem,4.2vw,3.3rem);
  line-height:1.04;
  letter-spacing:-.05em;
  overflow-wrap:anywhere;
}
.access-copy p,
.account-head p {
  margin:.7em 0 0;
  color:#e4e9ec;
  max-width:37ch;
}
.access-copy .access-selection {margin-top:16px;}
.access-selection strong {color:white;}
.access-copy a {display:inline-flex;align-items:center;min-height:44px;color:white;}
.access-layout .portal-auth {width:100%;max-width:none;padding:clamp(20px,3.8vw,44px);}
.portal-auth .help-links {margin:14px 0 0;gap:0 20px;}
.portal-auth .help-links :is(button,a) {display:inline-flex;align-items:center;min-height:44px;}
.portal-auth form {gap:16px;}
.portal-auth [type=submit] {width:100%;}
.account-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  padding:clamp(20px,3vw,36px);
}
.account-head h1 {font-size:clamp(1.8rem,4vw,2.85rem);}
.account-head p {max-width:none;overflow-wrap:anywhere;}
.account-head .button.secondary {border-color:#65707c;color:white;background:#ffffff0b;}
.account-head .button.secondary:hover {color:#fff;border-color:#c3ccd2;background:#323d49;}
.account-view .account-tabs {margin:12px 0 22px;gap:4px;padding-block:4px 9px;border-color:var(--dossier-line);}
.account-tabs a {color:#27343c;font-size:.94rem;}
.account-tabs a[aria-current=page] {background:#252f39;color:white;}
.account-nav-select {display:none;}
.account-view .panel,
.access-layout .panel {
  color:#202a33;
  background:#fff;
  border:1px solid var(--dossier-line);
  border-radius:16px;
  box-shadow:0 3px 14px #1c344509;
}
.account-view :is(.grid,.panel)+.stacked {margin-top:16px;}
.account-view :is(.panel,.record) :is(h2,h3) {color:#202a33;}
.account-view .panel form {margin-top:16px;}
.account-view :is(input:not([type=checkbox]),textarea,select),
.portal-auth input {
  border-color:#abb7c1;
  color:#202a33;
  background-color:white;
  font-size:max(1rem,16px);
}
.account-view .button:not(.secondary),.portal-auth .button {background:var(--dossier-red);border-color:var(--dossier-red);color:#fff;}
.account-view .button:not(.secondary):hover,.portal-auth .button:hover {background:#871c2b;}
.account-view :is(input,textarea,select):focus-visible,
.access-layout :is(input,textarea,select):focus-visible {outline-color:var(--dossier-focus);}
.account-view .account-choices {min-inline-size:0;padding:0;border:0;}
.account-choices legend {padding:0;font-size:1.08rem;font-weight:750;}
.account-choices .choice-status {margin:3px 0 12px;color:#51616d;font-size:.92rem;}
.choice-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
.choice-tile {
  position:relative;
  display:flex;
  flex-direction:column;
  gap:0;
  min-width:0;
  border:1px solid #c8d1d8;
  border-radius:11px;
  overflow:hidden;
  background:white;
  color:#27313b;
  cursor:pointer;
}
.choice-tile:hover {border-color:#758491;}
.choice-tile:focus-within {outline:3px solid var(--dossier-focus);outline-offset:2px;}
.choice-tile:has(:checked) {border-color:var(--dossier-red);background:#fff3f4;box-shadow:inset 0 0 0 1px var(--dossier-red);}
.choice-tile input[type=checkbox] {
  position:absolute;
  z-index:1;
  top:5px;
  right:5px;
  padding:0;
  margin:0;
  width:22px;
  height:22px;
  border-radius:4px;
  box-shadow:0 1px 5px #15212f55;
  accent-color:var(--dossier-red);
}
.choice-tile img {width:100%;height:auto;aspect-ratio:2.55;object-fit:cover;background:#e1e6e9;}
.choice-tile span {padding:8px 10px 10px;line-height:1.22;font-weight:700;overflow-wrap:anywhere;}
@media (max-width:760px) {
  .access-layout {grid-template-columns:minmax(0,1fr);gap:12px;}
  .access-cover {min-height:0;}
  .access-cover.has-service {min-height:165px;}
  .access-cover.has-service::after {background:linear-gradient(95deg,#10161cf0,#10161cbd 45%,#10161c27 90%);}
  .access-copy {padding:18px 22px;}
  .access-copy p {max-width:42ch;}
  .access-copy .access-selection {margin:.6em 0 0;}
  .account-view .account-tabs {display:none;}
  .account-nav-select {display:grid;gap:4px;margin:12px 0 16px;color:#364550;font-weight:600;}
  .account-nav-select select {width:100%;font-weight:650;}
  .choice-grid {grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:520px) {
  .choice-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  .choice-tile img {aspect-ratio:2.15;}
  .choice-tile span {padding:7px 8px 9px;font-size:.94rem;}
  .account-head .button.secondary {min-height:40px;padding-inline:12px;}
  .account-head p {font-size:.92rem;}
}
.choice-with-info { min-width:0; display:flex; flex-direction:column; }
.choice-with-info .choice-tile { flex:1; }
.choice-detail { align-self:flex-start; display:inline-flex; align-items:center; min-height:44px; padding:4px 2px; font-size:.92rem; color:#852234; }
