:root{--navy:#162025;--ink:#243039;--gold:#b49354;--pale:#f6f3ed;--border:#e1ddd3;--muted:#68747c;--white:#fff}*{box-sizing:border-box}body{margin:0;font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f9f8f5}.top{background:var(--navy);color:#fff;padding:14px max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:3px solid var(--gold)}.brand{display:flex;align-items:center;gap:15px}.brand img{max-width:82px;max-height:62px;object-fit:contain}.brandname{letter-spacing:.16em;font-weight:700;font-size:15px}.branddesc{color:#d1bd92;font-size:10px;letter-spacing:.15em;margin-top:5px}.account{font-size:13px;display:flex;align-items:center;gap:16px}.account[hidden]{display:none}main{width:min(1120px,calc(100% - 40px));margin:0 auto;min-height:calc(100vh - 160px)}.hidden{display:none!important}.login-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:72px;align-items:center;padding:100px 0}.login-hero h1{font-family:Georgia,serif;font-size:clamp(42px,5vw,64px);font-weight:400;margin:5px 0 20px;color:var(--navy)}.login-hero>p{font-size:19px;line-height:1.55;color:#5e686b}.eyebrow{font-size:11px;letter-spacing:.22em;color:var(--gold);font-weight:700}.goldline{background:var(--gold);height:3px;width:78px;margin:32px 0}.login-hero .small{font-size:14px}.panel{border:1px solid var(--border);border-radius:12px;background:white;padding:32px;box-shadow:0 10px 35px #14252d08}.login-panel h2,.admin h2{font-family:Georgia,serif;font-size:30px;font-weight:400;margin:10px 0}.muted{color:var(--muted);line-height:1.5}.login-panel form{margin-top:25px}label{display:block;font-size:13px;font-weight:650;margin:13px 0}input,select{font:inherit;color:var(--ink);width:100%;padding:12px;border-radius:7px;border:1px solid #cdd3d4;background:#fff;margin-top:7px}input:focus,select:focus{outline:2px solid #b4935480;border-color:var(--gold)}button{cursor:pointer;font:inherit}button.primary{color:#fff;background:var(--navy);border:1px solid var(--navy);border-radius:7px;padding:12px 19px;font-weight:650}button.primary:hover{background:#263a43}form .primary{width:100%;margin-top:15px}.linkbutton{border:0;background:none;color:var(--gold);font-weight:650;padding:7px 0}.top .linkbutton{color:#e2cb9e}.outline{border:1px solid #b6a783;color:#604e2c;background:white;border-radius:7px;padding:11px 16px;font-weight:650}.outline:hover{background:var(--pale)}.error{color:#a53e3e;font-size:13px;margin-top:12px}.intro{padding:55px 0 25px;display:flex;align-items:end;justify-content:space-between}.intro h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(35px,4vw,48px);margin:10px 0}.intro>div>p:last-child{color:var(--muted)}.tools{display:grid;grid-template-columns:1fr 170px;gap:15px}.tools label{margin:0}.tools input,.tools select{margin:0;background:white}.count{color:#747b7e;font-size:13px;margin:22px 0 12px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.member{display:flex;text-align:left;align-items:center;gap:13px;border:1px solid var(--border);border-radius:10px;background:#fff;padding:18px;min-height:96px;transition:border .1s}.member:hover{border-color:var(--gold)}.avatar{width:46px;height:46px;min-width:46px;border-radius:50%;background:#ede7da;display:grid;place-items:center;font-family:Georgia,serif;color:#8d754e;font-weight:bold}.member h3{font-size:15px;margin:0 0 5px}.member p{margin:2px 0;font-size:12px;color:var(--muted);line-height:1.4}.member .class{font-size:11px;color:#907342;margin-top:7px}.empty{padding:45px;color:var(--muted);text-align:center}.admin{margin:50px 0}.admin-head{display:flex;justify-content:space-between;gap:20px;align-items:center}.admin table{border-collapse:collapse;width:100%;margin-top:15px;font-size:13px}.admin th,.admin td{padding:12px 8px;border-bottom:1px solid var(--border);text-align:left}.admin th{color:var(--muted)}.admin td button{background:transparent;border:0;color:#8b6534;text-decoration:underline}.modal{position:fixed;inset:0;z-index:10;display:grid;place-items:center;padding:16px}.shade{position:absolute;inset:0;background:#091114ad}.dialog{position:relative;background:#fff;border-radius:13px;max-height:90vh;overflow:auto;width:min(640px,100%);padding:30px;box-shadow:0 20px 80px #0004}.close{position:absolute;right:17px;top:13px;font-size:26px;border:0;background:none;color:var(--muted)}.dialog h2{font-family:Georgia,serif;font-size:31px;font-weight:400;margin:2px 25px 6px 0}.detail-role{color:var(--muted);margin:0 0 20px}.details{display:grid;grid-template-columns:1fr 1fr;gap:15px}.item{border-top:1px solid var(--border);padding:13px 0}.item .lbl{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;margin-bottom:5px}.item .val{font-size:14px;overflow-wrap:anywhere}.item a{color:#8b6534}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 14px}.formgrid .full{grid-column:1/-1}.check{display:flex;align-items:start;gap:10px;font-weight:400}.check input{width:auto;margin:1px 0}.formbuttons{display:flex;gap:12px;justify-content:flex-end;margin-top:22px}.success{color:#176d50;font-size:13px}footer{text-align:center;padding:35px;color:#839096;font-size:12px}@media(max-width:800px){.login-layout{grid-template-columns:1fr;gap:25px;padding:42px 0}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.intro{padding-top:34px}}@media(max-width:540px){.brand img{max-width:60px}.brandname{font-size:12px}.branddesc{font-size:8px}.account{display:block;text-align:right}.account>span{display:none}.cards{grid-template-columns:1fr}.intro{align-items:start;gap:12px}.intro .outline{white-space:nowrap;font-size:12px}.tools{grid-template-columns:1fr}.details,.formgrid{grid-template-columns:1fr}.panel{padding:23px}.dialog{padding:24px}}
/* BTC mobile readability and layout update, 2026-11-19.
   Presentation only: no changes to authentication, Firestore or member data. */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: clip; }
main, .panel, .brand, .member, .member > div:last-child, .intro > div, .dialog { min-width: 0; }
.member h3, .member p, .member .class, .detail-role, .item .val { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#admin-members { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
#admin-members table { min-width: 580px; }
button, input, select { touch-action: manipulation; }
@media (max-width: 800px) {
  .top { padding: 14px 20px; }
  main { width: min(100% - 32px, 680px); }
  .login-layout { gap: 24px; padding: 36px 0 48px; }
  .login-hero h1 { font-size: clamp(34px, 8vw, 47px); line-height: 1.12; }
  .login-hero > p { font-size: 17px; }
  .intro { align-items: flex-start; padding: 32px 0 22px; }
  .intro h1 { font-size: clamp(32px, 7vw, 43px); line-height: 1.13; }
  .cards { gap: 12px; }
  .member { min-height: 100px; padding: 16px; }
  .member h3 { font-size: 17px; line-height: 1.3; }
  .member p { font-size: 14px; line-height: 1.45; }
  .member .class { font-size: 13px; }
  .count { font-size: 14px; }
  .dialog { max-height: calc(100dvh - 24px); }
  .item .lbl { font-size: 12px; }
  .item .val { font-size: 16px; line-height: 1.45; }
  label { font-size: 15px; }
  input, select { font-size: 16px; min-height: 46px; }
  button.primary, button.outline { min-height: 44px; }
  .linkbutton { min-height: 44px; }
  .admin-head { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .top { padding: 12px 16px; gap: 10px; }
  .brand { gap: 10px; }
  .brand img { max-width: 54px; max-height: 52px; }
  .brandname { font-size: 13px; letter-spacing: .08em; }
  .branddesc { font-size: 9px; letter-spacing: .065em; line-height: 1.4; }
  .account { flex-shrink: 0; font-size: 14px; }
  .account .linkbutton { padding: 10px 0 10px 8px; }
  main { width: calc(100% - 28px); }
  .login-layout { padding: 28px 0 42px; gap: 18px; }
  .login-hero h1 { font-size: clamp(32px, 9vw, 40px); margin-bottom: 12px; }
  .login-hero > p { font-size: 16px; line-height: 1.5; }
  .login-hero .goldline { margin: 18px 0; }
  .panel { padding: 22px 18px; }
  .login-panel h2 { font-size: 28px; }
  .intro { flex-direction: column; align-items: stretch; gap: 12px; padding: 28px 0 20px; }
  .intro h1 { font-size: clamp(31px, 8.5vw, 39px); margin: 7px 0; }
  .intro > div > p:last-child { font-size: 15px; line-height: 1.5; margin: 0; }
  .intro .outline { width: 100%; white-space: normal; font-size: 15px; }
  .tools { gap: 12px; }
  .tools label { font-size: 14px; }
  .tools input, .tools select { padding: 13px 12px; }
  .count { margin: 20px 0 12px; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .member { padding: 16px; gap: 15px; min-height: 100px; width: 100%; }
  .avatar { width: 52px; height: 52px; min-width: 52px; font-size: 17px; }
  .member h3 { font-size: 18px; margin-bottom: 5px; }
  .member p { font-size: 15px; }
  .member .class { font-size: 13px; margin-top: 6px; }
  .modal { padding: 8px; align-items: center; }
  .dialog { width: 100%; padding: 25px 18px 22px; max-height: calc(100dvh - 16px); border-radius: 12px; }
  .dialog h2 { font-size: 27px; line-height: 1.2; }
  .detail-role { font-size: 15px; line-height: 1.5; }
  .details, .formgrid { grid-template-columns: minmax(0, 1fr); }
  .item { padding: 14px 0; }
  .formbuttons { flex-wrap: wrap; }
  .formbuttons button { flex: 1 1 auto; }
  .check { font-size: 15px; line-height: 1.5; }
  .check input { min-height: auto; width: 20px; height: 20px; flex-shrink: 0; }
  .admin { margin: 32px 0; }
  .admin h2 { font-size: 27px; }
  .admin-head { align-items: stretch; }
  .admin-head .outline { width: 100%; }
  footer { line-height: 1.5; padding: 28px 16px; }
}

/* BTC mobile directory card typography refinement, 2026-11-20.
   Applies to directory records only, not member detail popups or desktop. */
@media (min-width: 541px) and (max-width: 800px) {
  .member h3 { font-size: 20px; line-height: 1.3; }
  .member p { font-size: 16px; line-height: 1.5; }
  .member .class { font-size: 15px; line-height: 1.4; }
}
@media (max-width: 540px) {
  .member { padding: 19px 17px; min-height: 116px; gap: 15px; }
  .member h3 { font-size: 21px; line-height: 1.25; margin-bottom: 6px; }
  .member p { font-size: 17px; line-height: 1.42; }
  .member .class { font-size: 15px; line-height: 1.4; margin-top: 7px; }
  .avatar { width: 55px; height: 55px; min-width: 55px; font-size: 18px; }
}

/* BTC mobile header readability refinement, 2026-11-20.
   Larger club title, descriptor, logo and sign-out control on phones only. */
@media (min-width: 541px) and (max-width: 800px) {
  .brand img { max-width: 74px; max-height: 65px; }
  .brandname { font-size: 19px; letter-spacing: .10em; line-height: 1.25; }
  .branddesc { font-size: 12px; letter-spacing: .09em; line-height: 1.35; }
  .account { font-size: 16px; }
}
@media (max-width: 540px) {
  .top { padding: 14px 16px; gap: 8px; }
  .brand { gap: 10px; }
  .brand img { max-width: 60px; max-height: 60px; }
  .brandname { font-size: 17px; line-height: 1.22; letter-spacing: .055em; }
  .branddesc { font-size: 11px; line-height: 1.35; letter-spacing: .045em; margin-top: 5px; }
  .account { flex-shrink: 0; font-size: 15px; }
  .account .linkbutton { font-size: 15px; }
}
@media (max-width: 360px) {
  .top { padding-left: 12px; padding-right: 12px; }
  .brand { gap: 8px; }
  .brand img { max-width: 48px; max-height: 50px; }
  .brandname { font-size: 15px; letter-spacing: .035em; }
  .branddesc { font-size: 10px; letter-spacing: .02em; }
  .account, .account .linkbutton { font-size: 14px; }
}

/* BTC mobile logo enlargement, 2026-11-20.
   Allow a taller header while retaining the established desktop layout. */
@media (min-width: 541px) and (max-width: 800px) {
  .top { padding-top: 18px; padding-bottom: 18px; }
  .brand img { width: 104px; max-width: 104px; max-height: 105px; height: auto; flex-shrink: 0; }
}
@media (max-width: 540px) {
  .top { padding-top: 18px; padding-bottom: 18px; }
  .brand { min-width: 0; gap: 9px; }
  .brand img { width: 92px; max-width: 92px; max-height: 96px; height: auto; flex-shrink: 0; }
}
@media (max-width: 360px) {
  .brand img { width: 74px; max-width: 74px; max-height: 79px; }
  .brand { gap: 7px; }
}

/* BTC mobile profile-detail readability, 2026-11-20.
   Larger text within opened member profiles; desktop and directory cards unchanged. */
@media (min-width: 541px) and (max-width: 800px) {
  .dialog .detail-role { font-size: 18px; line-height: 1.45; }
  .dialog .item .lbl { font-size: 13px; line-height: 1.4; }
  .dialog .item .val { font-size: 18px; line-height: 1.55; }
}
@media (max-width: 540px) {
  .dialog h2 { font-size: 31px; line-height: 1.18; }
  .dialog .detail-role { font-size: 18px; line-height: 1.5; }
  .dialog .item { padding: 17px 0; }
  .dialog .item .lbl { font-size: 14px; line-height: 1.35; letter-spacing: .075em; margin-bottom: 8px; }
  .dialog .item .val { font-size: 19px; line-height: 1.5; overflow-wrap: anywhere; }
  .dialog .item a { overflow-wrap: anywhere; }
}

/* BTC centered mobile logo header, 2026-11-20.
   Mobile only; keeps existing markup and desktop presentation intact. */
@media (max-width: 800px) {
  .top {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 49px 16px 24px;
    text-align: center;
  }
  .top .brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 0;
  }
  .top .brand img {
    display: block;
    width: min(184px, 64vw);
    max-width: 100%;
    max-height: none;
    height: auto;
    flex-shrink: 0;
  }
  .top .brandname { display: none; }
  .top .branddesc {
    margin-top: 0;
    color: #d1bd92;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: .13em;
  }
  .top .account:not([hidden]) {
    position: absolute;
    top: 7px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    font-size: 14px;
    text-align: right;
  }
  .top .account .linkbutton { padding: 8px 0 8px 8px; }
}
@media (max-width: 360px) {
  .top .brand img { width: min(168px, 60vw); }
  .top .branddesc { font-size: 12px; letter-spacing: .095em; }
  .top .account:not([hidden]) { right: 12px; }
}

/* BTC History link, 2026-11-20. Accessible to signed-in members in app navigation.
   Note: static PDF URL itself is publicly accessible on Firebase Hosting. */
.intro-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.intro-actions .history-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; min-height: 44px; }
.intro-actions .history-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 540px) {
  .intro-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); width: 100%; gap: 10px; }
  .intro-actions .history-link, .intro-actions #my-profile { width: 100%; min-width: 0; padding: 12px 8px; font-size: 15px; text-align: center; white-space: normal; }
}


/* Club history: editorial long-form layout, BTC charcoal / gold / cream. */
.history-page{--history-navy:#162025;--history-gold:#b49354;--history-paper:#f9f8f5;padding-bottom:72px}
.history-topnav{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:24px 0 20px;font-size:11px;letter-spacing:.13em;color:var(--muted);font-weight:700}
.history-back{border:0;background:none;padding:10px 0;color:#86632b;font-size:15px;font-weight:700;text-align:left}
.history-back:hover{text-decoration:underline}
.history-hero{border-radius:12px;background:#162025;color:#fff;padding:clamp(34px,6vw,76px);margin-bottom:26px;position:relative;overflow:hidden}
.history-hero:after{content:' ';width:300px;height:300px;border:1px solid #b4935440;border-radius:50%;position:absolute;right:-140px;top:-150px;pointer-events:none}
.history-kicker{font-size:12px;letter-spacing:.25em;color:#d2b576;font-weight:700}
.history-hero h1{font:normal clamp(42px,6.6vw,80px)/1.08 Georgia,serif;letter-spacing:-.025em;margin:25px 0 28px}
.history-hero h1 em{font-weight:400;color:#d5b978}
.history-hero-rule{width:76px;height:3px;background:var(--history-gold);margin-bottom:24px}
.history-deck{font-size:clamp(17px,2vw,22px);line-height:1.55;color:#e0e1dd;max-width:630px;margin:0 0 30px}
.history-hero-meta{display:flex;gap:22px;flex-wrap:wrap;font-size:11px;letter-spacing:.18em;font-weight:700;color:#d2b576}
.history-content{display:grid;grid-template-columns:170px minmax(0,1fr);gap:clamp(24px,5vw,70px);align-items:start}
.history-jump{position:sticky;top:20px;padding:17px 0;color:#816536}
.history-jump>span{font-size:11px;letter-spacing:.14em;font-weight:800}
.history-year-links{display:grid;grid-template-columns:repeat(2,1fr);gap:7px 14px;margin-top:18px}
.history-year-links a{font-size:14px;text-decoration:none;color:#655c4d;padding:5px 0}
.history-year-links a:hover,.history-year-links a:focus{color:#a47d3e;text-decoration:underline}
.history-entries{min-width:0}
.history-year{position:relative;padding:32px 0 55px;border-bottom:1px solid #e0ddd5;scroll-margin-top:15px}
.history-year:first-child{padding-top:6px}
.history-year-head{display:flex;align-items:center;gap:22px;margin-bottom:28px}
.history-year-number{font:normal 47px/1 Georgia,serif;color:#172329;letter-spacing:-.04em}
.history-year-rule{height:1px;background:#bd9b5d;flex:1}
.history-story{max-width:770px}
.history-story p{font:normal clamp(17px,1.35vw,19px)/1.8 Georgia,'Times New Roman',serif;color:#303739;margin:0 0 20px}
.history-roster{background:#f0ece3;border-left:3px solid #b49354;border-radius:0 8px 8px 0;padding:22px 25px;margin-top:26px}
.history-roster-title{font-size:11px;letter-spacing:.17em;color:#8b6b38;font-weight:800;margin-bottom:13px}
.history-roster ul{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;margin:0;padding:0}
.history-roster li{font-size:15px;line-height:1.5;color:#263034}
.history-none{font:italic 16px Georgia,serif;color:#6d6d64;margin:0}
.history-note{margin:16px 0 0;font-size:13px;line-height:1.6;color:#6b6c6a}
.history-end{text-align:center;padding:65px 20px}
.history-end-mark{font-size:27px;color:#b49354}
.history-end p{font:italic 31px Georgia,serif;margin:12px 0 25px}
.history-page a:focus-visible,.history-page button:focus-visible{outline:3px solid #b49354;outline-offset:3px}
@media(max-width:800px){.history-content{grid-template-columns:1fr;gap:4px}.history-jump{position:static;padding:12px 0 20px}.history-year-links{display:flex;flex-wrap:wrap;gap:7px}.history-year-links a{border:1px solid #ddd3c0;padding:6px 10px;border-radius:20px;font-size:13px}.history-topnav span{display:none}}
@media(max-width:540px){.history-page{padding-bottom:25px}.history-hero{padding:33px 24px}.history-hero h1{font-size:42px}.history-deck{font-size:18px}.history-story p{font-size:18px;line-height:1.75}.history-year{padding:28px 0 42px}.history-year-number{font-size:42px}.history-roster{padding:19px}.history-roster ul{grid-template-columns:1fr}.history-roster li{font-size:16px}.history-topnav{padding:15px 0}.history-year-head{margin-bottom:20px}}

/* BTC History: match Edit My Profile, retain gold text */
.intro-actions .history-link {
  background: #FFFFFF;
  color: #B8924B;
  border: 1px solid #b6a783;
  border-radius: 7px;
  padding: 11px 16px;
  font-weight: 650;
  box-shadow: none;
  transition: none;
}

.intro-actions .history-link:hover {
  background: var(--pale);
  color: #B8924B;
  transform: none;
}

/* Secure startup feedback: visible even if Firebase's ES module fails to load. */
.startup-status{padding:clamp(38px,8vw,88px) 0;max-width:650px;margin:0 auto}
.startup-box{background:#fff;border:1px solid var(--border);border-radius:12px;padding:clamp(24px,5vw,38px);box-shadow:0 10px 35px #14252d08}
.startup-box h2{font-family:Georgia,serif;font-size:clamp(26px,5vw,34px);font-weight:400;margin:12px 0;color:var(--navy)}
.startup-box>p:not(.eyebrow){color:var(--muted);font-size:17px;line-height:1.55}
.startup-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin-top:22px}
.startup-actions .outline{min-height:44px}
@media(max-width:540px){.startup-status{padding:30px 0}.startup-actions .outline{width:100%}}

/* BTC signed-out homepage redesign | wallpaper from BTC Logo Guidelines page 4 */
/* These rules apply ONLY while member app and members-only history are hidden. */
body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top {
  min-height: 246px;
  padding: 30px 20px 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top .brand {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top .brand img {
  width: min(350px, 76vw);
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
}
body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top .brandname,
body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top .branddesc { display:none; }
/* Keep the signed-out page simple: wallpaper, white sign-in card, no directory teaser. */
body:has(#login:not(.hidden)) main {
  width: 100%;
  max-width: none;
  min-height: calc(100svh - 270px);
  margin: 0;
  padding: 0 20px;
  background-color: #302b2a;
  background-image: url('/assets/btc-wallpaper.webp');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}
body:has(#login:not(.hidden)) .login-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-height: calc(100svh - 270px);
  padding: 60px 0 72px;
}
body:has(#login:not(.hidden)) .login-hero { display: none; }
body:has(#login:not(.hidden)) .login-panel {
  width: min(440px, 100%);
  max-width: 100%;
  padding: clamp(26px, 4vw, 38px);
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dfd5c1;
  box-shadow: 0 18px 52px rgba(0,0,0,.30);
}
body:has(#login:not(.hidden)) footer { display: none; }
@media (max-width: 800px) {
  body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top {
    min-height: 260px;
    padding: 28px 18px 32px;
  }
  body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top .brand img {
    width: min(290px, 77vw);
    max-width: 100%;
  }
  body:has(#login:not(.hidden)) main { background-size: cover; padding: 0 18px; }
  body:has(#login:not(.hidden)) .login-layout { min-height: calc(100svh - 260px); padding: 38px 0 50px; }
}
@media (max-width: 400px) {
  body:not(:has(#app:not(.hidden))):not(:has(#btc-history-page:not(.hidden))) .top .brand img {
    width: min(260px, 80vw);
  }
}
