/* Music / Journeys — 1.0.26.1002 build 001. Screen-only: print stays economical. */
@media screen {
  input[type="number"] { appearance: textfield; }
  input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
  :root { --ink: #183f4c; --muted: #466574; --sea: #146778; --line: #9cbec4; color: var(--ink); background: #f2f7f6; }
  body { background: linear-gradient(125deg,#eaf6f3 0%,#f2f7fa 58%,#f7f2e8 100%); }
  button { background: #e4f0f1; color: #214f5d; border-color: #9cbac2; box-shadow: 0 1px 2px #244e5d0a; }
  button:hover:not(:disabled) { background: #d2e6e8; border-color: #548c99; }
  button.primary { background: linear-gradient(120deg,#167366,#15617c); color: #fff; border: 1px solid #176c74; }
  button.primary:hover:not(:disabled) { background: #115c68; }
  button.danger { background: #fbe9e3; border-color: #d69d90; color: #963927; }
  button.danger:hover:not(:disabled) { background: #f6d8cf; }
  button:disabled { opacity: .65; cursor: not-allowed; }
  :focus-visible { outline: 3px solid #117c8e; outline-offset: 3px; }
  body>header:not(.header) { color: var(--ink); background: linear-gradient(110deg,#d3eeeaed,#e0eff8ed 65%,#efe8d8eb); border-bottom: 1px solid #a8c9ca; box-shadow: 0 4px 18px #326d7910; }
  body>header .brand, body>header .brand small { color: var(--ink); }
  body>header .light-link { color: #205a6a; text-decoration: underline; text-underline-offset: 4px; }
  .account button, .member-nav button { color: #214f5d; background: #dcebef; border-color: #80a7b4; }
  .workspace-nav { background: #f5faf9; }
  .library-nav button:first-child { background: #dceeea; color: #185b5c; }
  button.person-result,.dialog-close { background: #e4f0f1; border-color: #9cbac2; color: #214f5d; }
  .tabs button, #tabs button { background: #e7eff1; color: #214f5d; margin: 2px; border-radius: 7px 7px 0 0; }
  .tabs button[aria-selected=true], #tabs button[aria-selected=true] { background: #d2e9e5; color: #145b60; border-bottom-color: #197d80; }
  .service-footer { background: #e6f1f1; border-color: #9cbfc2; box-shadow: 0 -4px 16px #1c536712; }
  button.service-close { background: #eadcc3; color: #594325; border: 1px solid #b99b6b; font-weight: 650; }
  button.service-close:hover:not(:disabled) { background: #decaab; border-color: #997742; }
  .service-dialog .service-footer { gap: 8px; padding: 10px; }
  .service-dialog .service-footer button { min-height: 42px; }
  .service-dialog .service-footer strong { min-width: 150px; }

  /* Reset inherited panel/details spacing inside the allocation board only. */
  .allocation-people,.allocation-groups { padding: 12px; }
  .allocation-people>h3,.allocation-section-heading h3 { margin: 5px 0 12px; font-size: 16px; }
  .allocation-section-heading { gap: 8px; }
  .allocation-group,.resource-group { padding: 10px 12px!important; margin: 9px 0; border-left-color: #398995; background: #f3f9f9; }
  .allocation-group-header { gap: 8px; margin: 0 0 5px; }
  .allocation-group-header strong { font-size: 18px; }
  .resource-group>label { margin: 3px 0 5px; font-size: 13px; }
  .resource-group>label select { min-height: 36px; padding: 6px 9px; font-size: 14px; }
  .allocation-group .allocation-more { margin: 3px 0!important; padding: 0; border: 0; border-radius: 0; }
  .allocation-group .allocation-more>summary { margin: 0; padding: 3px 0; min-height: 24px; font-size: 12px; line-height: 1.4; color: #436573; }
  .allocation-group .allocation-more:not([open])>*:not(summary) { display: none; }
  .allocation-group .allocation-more[open] { padding-bottom: 5px; }
  .allocation-group .allocation-member { padding: 7px 0!important; gap: 3px; }
  .allocation-member-top { min-height: 30px; }
  .allocation-member-top strong,.allocation-person strong { font-size: 15px; line-height: 1.4; }
  .allocation-member-top button { min-height: 30px; padding: 4px 8px; font-size: 12px; }
  .allocation-group small,.allocation-group .subtle { font-size: 13px; line-height: 1.4; color: #466574; }
  .allocation-group>small { display: block; margin: 3px 0; }
  .allocation-member .allocation-more { margin: 0!important; }
  .allocation-group-fields { margin: 5px 0; }
  .allocation-group .allocation-preference { color: #79500e; padding: 4px 7px; margin: 2px 0; }
  .allocation-person { padding: 8px 2px; }
  .allocation-person>span { gap: 3px; }
  .allocation-person small { font-size: 12px; line-height: 1.35; }
  .allocation-person .subtle { color: #466574; }
  .allocation-group p { margin: 5px 0; }
  .allocation-footer { background: #e3efef; border-color: #9cbfc2; padding: 10px; }
  .new-allocation-group { outline: 2px solid #47a296; outline-offset: 1px; }

  /* Quiet, static refraction: only the login hero uses backdrop blur. */
  .login-page { min-height: 100vh; background: radial-gradient(ellipse at 10% 30%,#bfe9e2 0%,transparent 48%),radial-gradient(ellipse at 90% 5%,#cde6f2 0%,transparent 44%),radial-gradient(ellipse at 80% 100%,#ede1c8 0%,transparent 45%),#f2f7f5; }
  .login-page .header { padding-top: 25px; padding-bottom: 25px; }
  .login-page .brand { color: #214e58; letter-spacing: .08em; }
  .login-page .brand small { font-size: 9px; color: #436574; }
  .login-page .brand-icon { background: linear-gradient(145deg,#ffffffbd,#8ed5cba8 55%,#b3dbeea3); color: #16676e; border: 1px solid #ffffffdb; box-shadow: inset 0 1px 5px #ffffffc9,0 4px 16px #236f7620; border-radius: 15px; }
  .login-page .header-note { display: flex; gap: 10px; align-items: center; color: #466574; font-size: 12px; font-variant-numeric: tabular-nums; }
  .login-page .header-note span { border: 1px solid #bdd0cc; padding: 4px 8px; border-radius: 20px; background: #ffffff65; }
  .login-page main { background: #ffffffe0; border: 1px solid #ffffffd9; box-shadow: 0 20px 70px #31657918,inset 0 1px 1px #fff; border-radius: 28px; min-height: 710px; }
  .login-page .intro { isolation: isolate; padding: 66px 44px 30px; color: #194f59; background: radial-gradient(ellipse at 5% 10%,#d2f5eaa8,transparent 70%),linear-gradient(150deg,#a9dedab8 0%,#b5ddec91 53%,#ecdec28c 100%); }
  .login-page .intro::before,.login-page .intro::after { content: ''; position: absolute; pointer-events: none; z-index: -1; border: 1px solid #ffffff9e; border-radius: 46% 54% 62% 38%; box-shadow: inset 10px 14px 25px #ffffff80,inset -10px -8px 20px #6bafb526,0 12px 30px #4c919015; background: linear-gradient(140deg,#ffffff59,#b1d9e426 60%,#f5e5be5c); transform: rotate(-28deg); }
  .login-page .intro::before { width: 500px; height: 380px; left: -105px; top: 220px; }
  .login-page .intro::after { width: 350px; height: 460px; right: -180px; top: -120px; }
  .login-page h1 { font-size: clamp(27px,2.7vw,36px); line-height: 1.5; letter-spacing: .015em; font-weight: 650; margin: 8px 0 18px; }
  .login-page .intro>p:not(.hero-slogan) { color: #375f69; font-size: 15px; line-height: 1.9; }
  .login-page .score { margin-top: 30px; margin-bottom: 0; min-height: 195px; }
  .login-page .score-lines { opacity: .55; background: repeating-linear-gradient(to bottom,transparent 0,transparent 22px,#428da269 23px,#428da269 24px); }
  .login-page .note { color: #397d84; text-shadow: 0 2px 0 #ffffff9c; opacity: .8; }
  .login-page .intro>.hero-slogan { display: block; font-family: Georgia,'Times New Roman',serif; font-size: 30px; line-height: 1.3; font-style: italic; font-weight: 400; color: #285d66; margin: 18px 0 28px; letter-spacing: -.025em; }
  .login-page .intro-footer { border-color: #ffffff9c; color: #375f69; padding-top: 18px; font-size: 12px; letter-spacing: .08em; }
  .login-page .login-panel { padding: 42px 48px; }
  .login-page .panel-eyebrow { color: #29777c; }
  .login-page h2 { color: #254b57; }
  .login-page .role-switch { background: #e4efef; }
  .login-page .role-switch button { background: #e4efef; color: #446873; border: 1px solid transparent; }
  .login-page .role-switch button[aria-pressed=true] { background: #d1e8e3; color: #175c5d; border-color: #81b8ae; box-shadow: inset 0 1px 1px #ffffffb3,0 2px 6px #37685513; }
  .login-page .password-field button { background: #e3efef; border: 1px solid #b2c9cd; border-radius: 5px; color: #315c68; }
  .login-page .google-button { background: #eaf0f0; border-color: #b4c7cb; color: #435f69; }
  .login-page input { border-color: #afc7cb; background: #ffffffd6; }
  .login-page input:focus { border-color: #258788; box-shadow: 0 0 0 3px #298b841c; }
  .login-page footer { color: #4c6b73; }
  @supports (backdrop-filter: blur(12px)) { .login-page .intro { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
  @media(max-width:1000px) { .login-page .intro { padding: 42px 28px 25px; }.login-page .login-panel { padding: 36px 28px; }.login-page h1 { font-size: 28px; } }
  @media(max-width:700px) {
    .login-page .header { padding: 18px 22px; flex-wrap: wrap; gap: 12px; }
    .login-page .header-note { font-size: 11px; gap: 6px; }
    .login-page .brand { font-size: 18px; }
    .login-page main { min-height: 0; border-radius: 20px; }
    .login-page .intro { padding: 24px; }
    .login-page h1 { font-size: 26px; margin: 0 0 10px; }
    .login-page .intro>p:not(.hero-slogan) { display: block; font-size: 13px; line-height: 1.65; }
    .login-page .intro>.hero-slogan { font-size: 21px; margin: 17px 0 0; }
    .login-page .hero-slogan br { display: none; }
    .login-page .intro-footer { display: block; border: 0; padding: 0; margin-top: 16px; font-size: 11px; }
    .login-page .login-panel { padding: 26px 24px; }
    .login-page .intro::before { top: 60px; }
  }
  @media(max-width:600px) { .service-dialog .service-footer { display: grid; grid-template-columns: 1fr 1fr; }.service-dialog .service-footer strong { grid-column: 1/-1; }.service-dialog .service-footer button { width: 100%; min-width: 0; font-size: 13px; padding: 9px 5px; } }
}

.element-name-field{display:flex;align-items:stretch;border:1px solid #a9c6cb;border-radius:7px;overflow:hidden}.element-name-prefix{display:flex;align-items:center;padding:0 12px;background:#dcecea;color:#245863;font-weight:700;user-select:none}.element-name-field input{border:0;border-radius:0;min-width:0;flex:1}.system-nav{border-top:1px solid #b3c9cf;padding-top:12px;margin-top:24px}.system-nav h2{font-size:17px}.system-nav button{width:100%;text-align:left}

/* Tour assignment, companion constraints, people, and intake have distinct regions. */
.roster-region{border-top:5px solid #31a69b;border-radius:10px;background:#f1faf8;padding:14px 16px;margin:0 0 18px}.roster-region h2,.roster-region h3{margin-top:0}.region-parties{border-color:#d7ad62;background:#fffaf1}.region-registration{border-color:#599fc5;background:#eff8fc;margin-top:24px}.roster-list-heading{border-top:5px solid #719fc4;padding:14px 12px 0}.tour-party-card{display:flex;align-items:center;gap:12px;border:1px solid #d7c7a8;border-radius:8px;background:#fff;margin:8px 0;padding:8px}.tour-party-card .party-detail-button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;flex:1;background:#fff8e9;border-color:#e4d4b5;padding:10px 12px}.party-detail-button strong{font-size:1.05rem}.party-detail-button span{font-size:.88rem}.party-count{color:#73511c;font-weight:600}.region-registration .registration-settings{margin:0;border:0;padding:0;background:transparent}@media(max-width:650px){.tour-party-card{align-items:stretch;flex-direction:column}}

.managed-cost-summary{padding:12px 14px;background:#eef8f6;border-left:4px solid #29998f;border-radius:8px;margin:12px 0;overflow-wrap:anywhere}.managed-cost-summary h3{margin:0 0 8px}.managed-cost-summary p{margin:5px 0}.managed-cost-summary>strong{font-size:1.08rem}.person-cost{color:#156860;font-weight:600}

/* Shared member and administrator service actions: save, confirm, cancel. */
.service-footer button.service-save{background:#d1e8e3;color:#175c5d;border:1px solid #81b8ae}
.service-footer button.service-save:hover:not(:disabled){background:#bce0d7}
.service-footer button.service-confirm{background:#f4a548;color:#5f3108;border:1px solid #d58327;font-weight:700}
.service-footer button.service-confirm:hover:not(:disabled){background:#ed9634}
.service-footer button.service-cancel{background:#fbe4e4;color:#96352f;border:1px solid #d99b98}
.service-footer button.service-cancel:hover:not(:disabled){background:#f5d0d0}
.service-footer button:is(.service-save,.service-confirm,.service-cancel):disabled{opacity:.55;cursor:not-allowed}

/* Keep configuration errors visible above the scrolling allocation columns. */
.allocation-validation-summary{border:2px solid #d37260;border-left-width:6px;border-radius:8px;background:#fff0eb;padding:10px 14px;margin:0 0 12px;max-height:190px;overflow:auto}
.allocation-validation-summary[hidden]{display:none}
.allocation-validation-summary p{margin:4px 0}
.allocation-validation-summary button{display:block;width:100%;text-align:left;background:#ffe2d8;color:#842d20;border:1px solid #dfb0a5;padding:7px 10px;margin-top:6px;white-space:normal}
.allocation-group.allocation-invalid{border:2px solid #cf5949}
.allocation-member.allocation-invalid,.allocation-person.allocation-invalid{background:#ffe4df;border-left:5px solid #d05745;padding-left:9px}
.allocation-person-error{display:block;color:#8b281b;font-weight:600;white-space:normal}
.allocation-person.allocation-invalid{flex-wrap:wrap}.allocation-person>.allocation-person-error{flex-basis:100%}

.allocation-pending-note{display:flex;flex-wrap:wrap;gap:12px;align-items:center;padding:10px 14px;margin:8px 0 12px;background:#fff2d8;border-left:5px solid #d4a03e;border-radius:6px;color:#735019}.allocation-pending-note strong{flex:1;min-width:200px}

/* Make the journey entry points visible beside the supporting libraries. */
@media screen {
  .tour-navigation{margin-top:22px;padding:14px 12px 12px;border:1px solid #a9cbc7;border-top:4px solid #2b9087;border-radius:15px;background:linear-gradient(145deg,#e0f1eced,#edf6f9ed);box-shadow:0 5px 18px #225b691c,inset 0 1px 1px #ffffffb8}
  .tour-navigation .tree-heading{gap:8px;flex-wrap:wrap}
  .tour-navigation .tree-heading h2{font-size:18px;color:#155b62;line-height:1.4}
  .tour-navigation #new-tour{background:#cee8df;border-color:#83b7a9;color:#155b55;font-weight:650;min-height:38px;padding:7px 10px}
  .tour-navigation-hint{font-size:12px;line-height:1.5;color:#47696f;margin:10px 0 12px}
  .tour-navigation .tour-node{margin:10px 0 0;border:1px solid #9dbfbd;border-radius:10px;box-shadow:0 3px 9px #285e6814;background:#f7fbfa}
  .tour-navigation .tour-select{padding:12px 12px 10px;background:#f7fbfa;border-left:4px solid #6ab5a7;color:#244e57;line-height:1.45}
  .tour-navigation .tour-select:hover,.tour-navigation .tour-select:focus-visible{background:#deefea;border-left-color:#187d79}
  .tour-navigation .tour-name{display:block;font-size:14px;font-weight:700;overflow-wrap:anywhere}
  .tour-navigation .tour-select small{font-size:11px;color:#506e73;line-height:1.45;margin-top:5px}
  .tour-navigation .tour-open-hint{display:block;font-size:12px;font-weight:650;color:#1b716e;margin-top:7px}
  .tour-navigation .tour-select.selected{background:#cce8df;border-left-color:#16796f;box-shadow:inset 0 1px 3px #ffffff89}
  .tour-navigation .element-node{background:#eef6f3;border-top:1px solid #d1e4dd;padding:9px 12px 9px 21px;color:#35616b}
  .tour-navigation .element-node:hover{background:#dcefe8}
  @media(max-width:700px){.tour-navigation{margin-top:16px;padding:12px}.tour-navigation #tree{max-height:300px;padding-right:2px}}
}

/* Lifecycle and current-person impact overview, without background polling. */
.tour-phase-summary{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin-right:10px;max-width:220px}
.tour-phase-summary[hidden],.tour-header-overview[hidden]{display:none}
.tour-phase-summary small{color:#54747a;font-size:.8rem}
.tour-phase-badge{padding:7px 12px;border-radius:10px;background:#e5f2ed;color:#176c61;border:1px solid #a4cfc4;font-size:.95rem}
.tour-phase-badge.phase-preparation{background:#fff2d9;color:#8c5e14;border-color:#d8b573}
.tour-phase-badge.phase-ongoing{background:#def1fa;color:#186887;border-color:#a0c7d8}
.tour-phase-badge.phase-archived{background:#e9edef;color:#4c5f66;border-color:#b9c7cb}
.tour-header-overview{margin:12px 0 20px;padding:14px 16px;border:1px solid #b9d8d4;border-radius:16px;background:linear-gradient(125deg,#f1f8f5e8,#eaf4f7dd);box-shadow:0 4px 13px #126d7610}
.tour-overview-dates{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:.86rem;margin-bottom:12px;color:#416773}
.tour-overview-counts{display:grid;grid-template-columns:repeat(8,minmax(95px,1fr));gap:8px}
.tour-overview-count{border-left:3px solid #559cab;border-radius:9px;background:#ffffffb8;padding:9px 10px;display:flex;flex-direction:column;gap:4px;min-width:0}
.tour-overview-count span{font-size:.76rem;color:#416b75}.tour-overview-count strong{font-size:1.15rem;color:#18566a}
.tour-overview-count.tone-green{border-color:#329a7d}.tour-overview-count.tone-amber{border-color:#c69b4f;background:#fff6e8}.tour-overview-count.tone-gray{border-color:#a1b2b6}
.tour-overview-note{font-size:.78rem;color:#55727b;margin:10px 0 0;line-height:1.6}
.information-updates{padding:10px 14px;border:1px solid #aad2c9;border-radius:10px;background:#edf7f3;margin:10px 0;color:#2b7066}.information-updates p{margin:7px 0;font-size:.86rem}
.service-dialog .banner{white-space:pre-line}
@media(max-width:1250px){.tour-overview-counts{grid-template-columns:repeat(4,minmax(100px,1fr))}.editor-heading .actions{flex-wrap:wrap}}
@media(max-width:650px){.tour-overview-counts{grid-template-columns:repeat(2,minmax(100px,1fr))}.tour-phase-summary{margin-right:0}.tour-overview-dates{flex-direction:column;gap:5px}}

/* Local two-tap confirmation and asynchronous remote delivery. */
.confirmation-error{color:#8d3735;line-height:1.5}
.countdown-button[data-phase=committing]{background:#297b64;color:#fff;border-color:#20694f}
.countdown-button progress{height:6px;border:0;border-radius:8px;appearance:none;-webkit-appearance:none;background:#fff;accent-color:#d95188}
.countdown-button progress::-webkit-progress-bar{background:#fff;border-radius:8px}
.countdown-button progress::-webkit-progress-value{background:#d95188;border-radius:8px}
.countdown-button progress::-moz-progress-bar{background:#d95188;border-radius:8px}
.countdown-button[data-phase=ready] progress,.countdown-button[data-phase=committing] progress{accent-color:#268bc2}
.countdown-button[data-phase=ready] progress::-webkit-progress-value,.countdown-button[data-phase=committing] progress::-webkit-progress-value{background:#268bc2}
.countdown-button[data-phase=ready] progress::-moz-progress-bar,.countdown-button[data-phase=committing] progress::-moz-progress-bar{background:#268bc2}


/* PER state colors and compact administrator member cards. */
[data-per-status=draft]{--per-card:#fff8e6;--per-dot:#d0af55}
[data-per-status=active]{--per-card:#eaf5ee;--per-dot:#77ac91}
[data-per-status=pending]{--per-card:#fff0f4;--per-dot:#d487a2}
[data-per-status=expired]{--per-card:#f0f2dd;--per-dot:#9aa360}
[data-per-status=archived]{--per-card:#eff1f2;--per-dot:#9ca6ad}
.per-state-dot{display:inline-block;flex:0 0 auto;width:9px;height:9px;margin-right:6px;border:1px solid #77918a55;border-radius:1px;background:var(--per-dot,#d0af55);vertical-align:middle}
.compact-member-card{background:var(--per-card)!important;border-left:4px solid var(--per-dot);padding:12px 14px;font-size:80%}
.compact-members-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,520px),1fr));gap:10px}
.member-card-heading{display:flex;align-items:center;gap:8px;justify-content:space-between}
.compact-member-card h3{font-size:16px;margin:0;line-height:1.35}
.member-state-badge{font-size:11px;flex:0 0 auto;color:#345b55;border:1px solid #95b4a56b;border-radius:5px;padding:2px 6px;background:#ffffff82}
.compact-member-card .card-fact{margin:5px 0;font-size:inherit;line-height:1.45;overflow-wrap:anywhere}
.compact-member-card .person-confirmations{font-size:inherit;margin-top:5px}
.compact-member-card .registry-card-actions,.compact-family-card .registry-card-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.compact-member-card .registry-card-actions button,.compact-family-card .registry-card-actions button{font-size:inherit;min-height:34px;padding:6px 8px;flex:0 1 auto;line-height:1.25}
.compact-family-card{font-size:80%;padding:13px 15px}
.compact-family-card h3{font-size:16px;margin:0}
.compact-family-card .card-member-list{margin:7px 0;gap:4px 10px}
.compact-family-card .card-fact,.compact-family-card .card-member-list li{font-size:inherit}
.family-rules-line{white-space:nowrap;margin:5px 0;line-height:1.5}
.member-list-toolbar{display:grid;grid-template-columns:minmax(150px,1fr) minmax(130px,190px) minmax(130px,190px);gap:12px;align-items:end;margin:12px 0}
.member-list-toolbar label{font-size:12px;margin:0;display:grid;gap:5px}.member-list-toolbar select{width:100%}
.member-list-pager{display:flex;gap:12px;justify-content:center;align-items:center;margin:14px 0}
.member-list-pager[hidden]{display:none}
@media(max-width:700px){.compact-member-card,.compact-family-card{font-size:100%}.compact-member-card .registry-card-actions button,.compact-family-card .registry-card-actions button{min-height:44px;font-size:12px}.member-list-toolbar{grid-template-columns:1fr 1fr;gap:8px}.member-list-toolbar>input{grid-column:1/-1}.family-rules-line{white-space:normal}.member-state-badge{font-size:11px}.member-card-heading{align-items:flex-start}.compact-member-card h3{font-size:17px}}


/* Give desktop member actions a full row; narrow layouts wrap naturally. */
.groups-page .registry-grid.compact-members-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,620px),1fr)); }
/* Reusable source lists: compact membership, with breathing room between lists. */
.roster-picker-toolbar{display:grid;grid-template-columns:minmax(200px,2fr) repeat(2,minmax(130px,1fr));gap:12px;margin:14px 0}
.roster-picker-choices{max-height:40vh;overflow:auto;padding:8px;border:1px solid var(--border,#b4d6cd);border-radius:12px}
.roster-picker-choices label{display:flex;align-items:center;gap:8px;font-size:.92rem;padding:7px 8px}
.roster-picker-choices label[hidden]{display:none}
.roster-transfer-controls,.family-rules-edit{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:14px 0}
.family-rules-edit label{flex:1;min-width:130px}
.tour-list-transfer{display:flex;align-items:end;flex-wrap:wrap;gap:10px;padding:16px;margin:16px 0;border:1px solid #c7ddd5;border-radius:12px;background:#edf6f3}
.tour-list-transfer>h3,.tour-list-transfer>p{flex-basis:100%;margin:0}
.tour-list-transfer>label{flex:1 1 200px;min-width:0}
.tour-list-transfer select{width:100%;min-width:0}
.tour-source-block{padding:20px 0 24px;border-bottom:1px solid #c7ddd5}
.tour-source-block:last-child{border-bottom:0}
.tour-source-card{padding:18px;width:100%;min-width:0;background:#f4faf7}
.source-member-chips{display:flex;flex-wrap:wrap;gap:8px 14px;margin:12px 0}
.roster-person-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%}
.roster-person-chip button{border:0;background:transparent;box-shadow:none;padding:3px 0;min-height:24px;font-size:.93rem;text-align:left;color:inherit}
.source-family-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:14px}
.compact-source-family{padding:12px;background:#fffdf2}
.compact-source-family .party-detail-button{padding:0;min-height:30px;font-size:1rem}
.compact-source-family>.roster-person-chip{font-size:.9rem}
@media(max-width:640px){.roster-picker-toolbar{grid-template-columns:1fr 1fr}.roster-picker-toolbar input{grid-column:1/-1}.source-family-grid{grid-template-columns:1fr}.roster-transfer-controls select{width:100%}.tour-source-card{padding:14px}.roster-picker-choices label{min-height:44px}.roster-person-chip button{min-height:40px}}

/* BUILD 42: joined Tour lists share the Groups card typography and member grid. */
.tour-roster-groups .tour-source-card{background:#fff9e8;border-top-color:#d1b575}
.tour-roster-groups .group-card-heading{align-items:flex-start}
.tour-roster-groups .group-card-heading h3{min-width:0;overflow-wrap:anywhere}
.tour-roster-groups .source-family-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,285px),1fr));gap:12px}
.tour-roster-groups .compact-source-family{display:block;background:#fffdf2;border-top-color:#d9c99f;margin:0}
.tour-roster-groups .card-member-list .roster-person-chip{display:flex;align-items:flex-start;gap:0;min-width:0}
.tour-roster-groups .card-member-list .per-state-dot{margin-top:4px}
.tour-roster-groups .card-member-list .roster-person-chip button{min-width:0;min-height:0;padding:0;font:inherit;line-height:1.35;white-space:normal;overflow-wrap:anywhere}
.tour-roster-groups .card-member-list .roster-person-chip button:hover{text-decoration:underline}
.tour-roster-groups .tour-source-card details{margin:10px 0;color:#49685c;font-size:13px}
.tour-roster-groups .tour-source-card summary{cursor:pointer;padding:4px 0;line-height:1.4}
@media(max-width:640px){.tour-roster-groups .card-member-list li{min-height:36px}.tour-roster-groups .card-member-list .roster-person-chip button{min-height:26px}.tour-roster-groups .registry-card-actions button{min-height:40px}}

.passkey-login{margin:8px 0;width:100%;background:linear-gradient(120deg,#26766f,#216b7b);color:#fff}.passkey-dialog{box-sizing:border-box;width:min(540px,92vw);max-height:85dvh;overflow:auto;border:1px solid #95bdb1;border-radius:18px;background:#f3faf6;color:#2c575d;padding:24px}.passkey-dialog::backdrop{background:#48716d70;backdrop-filter:blur(6px)}.passkey-dialog label{display:block;margin:14px 0 6px}.passkey-dialog input{box-sizing:border-box;width:100%;padding:12px;background:white;border:1px solid #a6c4c1;border-radius:8px;font:inherit}.passkey-dialog button,.passkey-dialog>a{min-height:44px;margin:8px 8px 8px 0;padding:10px 14px;display:inline-flex;align-items:center;border:1px solid #a9c9c0;background:#deeee7;color:#24595e;border-radius:9px;font:inherit;max-width:100%;overflow-wrap:anywhere}.passkey-list>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #c3d8ce;margin-top:8px;font-size:.9em}

/* A source list and its companion cards share one quiet color family. */
.tour-roster-groups{background:#f5f9f8;border-top-color:#a4c1bb}
.tour-source-block{--roster-tint:#edf5f0;--roster-edge:#98b9a8;background:var(--roster-tint);border:1px solid var(--roster-edge);border-radius:15px;padding:14px;margin:18px 0}
.tour-source-block:last-child{border-bottom:1px solid var(--roster-edge)}
.tour-source-block[data-roster-tone="1"]{--roster-tint:#edf3fa;--roster-edge:#9cb5cc}
.tour-source-block[data-roster-tone="2"]{--roster-tint:#f4f0f8;--roster-edge:#b9a9cc}
.tour-source-block[data-roster-tone="3"]{--roster-tint:#faf0f0;--roster-edge:#c7a6aa}
.tour-source-block[data-roster-tone="4"]{--roster-tint:#f4f5e9;--roster-edge:#b4ba95}
.tour-source-block[data-roster-tone="5"]{--roster-tint:#eaf5f5;--roster-edge:#9abfbf}
.tour-source-block[data-roster-tone="6"]{--roster-tint:#fbf3e8;--roster-edge:#c8b398}
.tour-source-block[data-roster-tone="7"]{--roster-tint:#f5eef3;--roster-edge:#c0a6ba}
.tour-source-block[data-roster-tone="8"]{--roster-tint:#eef0f9;--roster-edge:#a7afce}
.tour-source-block[data-roster-tone="9"]{--roster-tint:#f0f5e8;--roster-edge:#a9bb97}
.tour-roster-groups .tour-source-block .group-card{background:#ffffff85;border-color:var(--roster-edge);box-shadow:none}
.tour-roster-groups .tour-source-block .compact-source-family{background:#ffffffb3;border-top-width:2px}
.tour-source-block .group-card-heading .status-tag{background:#ffffffaa;color:#45605e;border:1px solid var(--roster-edge)}
.tour-source-block .card-member-list li{background:#ffffff8c}
.roster-name-field{display:block;margin:14px 0 6px}
.roster-name-field input{display:block;margin-top:7px}
.roster-name-field input[aria-invalid=true]{border:2px solid #b34349;background:#fff5f5;box-shadow:0 0 0 3px #b3434918}
.roster-name-field input[aria-invalid=true]:focus-visible{outline:2px solid #b34349;outline-offset:2px}
dialog .roster-name-error,dialog .roster-editor-error{color:#a92c36;font-size:.95rem;line-height:1.5;font-weight:600;margin:6px 0 14px}

body.passkey-locked>*:not(.passkey-unlock){visibility:hidden!important}body.passkey-locked>.passkey-unlock{visibility:visible!important}.passkey-setup-note{margin:10px auto;padding:9px 16px;color:#315c58;background:#e7f2ec;font-size:13px}.passkey-help{font-size:13px;line-height:1.6}header #passkey-settings{--action-font-size:13px;--action-min-height:44px;min-height:44px;white-space:nowrap;flex-shrink:0;width:auto;max-width:none;font-size:13px;line-height:1.35;padding:8px 12px}@media(max-width:700px){header:has(#passkey-settings){flex-wrap:wrap;gap:8px}header #passkey-settings{max-width:180px}}

/* Statistics count drilldowns share compact member facts, not a single email list. */
dialog.statistics-people-dialog{box-sizing:border-box;width:min(1500px,96vw);max-width:96vw;max-height:92dvh;padding:24px;overflow:auto}
.statistics-people-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0}
.statistics-people-controls input{flex:1 1 310px;min-width:0;margin:0}.statistics-people-controls select{flex:0 1 185px;width:auto;margin:0}
.statistics-people-controls button{flex:0 0 auto;margin:0}
.statistics-people-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(290px,100%),1fr));gap:12px;align-items:start}
.statistics-person-card{min-width:0;border:1px solid #c9deda;border-radius:14px;padding:14px;background:rgba(236,245,242,.65);overflow-wrap:anywhere}
.statistics-person-heading{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:9px}.statistics-person-heading .member-name{font-size:1.05rem;padding:2px 0;min-height:0;border:0;box-shadow:none;background:none;text-align:left}
.statistics-person-heading .member-state-badge{margin-left:auto;font-size:.8rem;white-space:nowrap}
.statistics-person-card dl{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0 0 8px}.statistics-person-card dl div{min-width:0}.statistics-person-card dt{font-size:.8rem;color:#526d76}.statistics-person-card dd{margin:0;font-size:.95rem;color:#234552;line-height:1.4}
.statistics-person-detail{font-size:.85rem;line-height:1.45;margin:4px 0;color:#486570}
.statistics-people-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}
.statistics-people-print table th:first-child{width:4%}.statistics-people-print table th:nth-child(2){width:11%}.statistics-people-print table th:nth-child(4){width:15%}.statistics-people-print table th:nth-child(5),.statistics-people-print table th:nth-child(6){width:5%}
@media(max-width:600px){dialog.statistics-people-dialog{padding:16px;width:96vw;max-height:90dvh}.statistics-people-controls{gap:8px}.statistics-people-controls input{flex-basis:100%}.statistics-people-controls select{flex:1 1 100%}.statistics-people-controls button{flex:1 1 auto;padding:10px 12px}.statistics-person-card{padding:12px}}
@media print{body.allocation-audit-print dialog,body.allocation-audit-print dialog::backdrop{display:none!important;background:transparent!important;backdrop-filter:none!important}}

/* PER sections: common field paths, compact layout and quiet distinct tones. */
.per-section {
  --per-tint: #eef6f3; --per-edge: #a7c8bd;
  grid-column: 1 / -1; min-width: 0; margin: 8px 0 12px;
  padding: 18px; border: 1px solid var(--per-edge); border-left-width: 4px;
  border-radius: 14px; background: var(--per-tint); color: #294a50;
}
.per-section[data-per-section="membership"] { --per-tint: #edf3f8; --per-edge: #abc2d5; }
.per-section[data-per-section="reconciliation"] { --per-tint: #f3eff7; --per-edge: #c6b9d4; }
.per-section[data-per-section="diet"] { --per-tint: #f9f4e8; --per-edge: #d9c99b; }
.per-section[data-per-section="transport"] { --per-tint: #eef5f8; --per-edge: #a8c7d2; }
.per-section[data-per-section="room"] { --per-tint: #f8f0ee; --per-edge: #d6bcb7; }
.per-section[data-per-section="sensitive"], .per-section[data-per-section="notes"] { --per-tint: #f2f4f2; --per-edge: #bdc9c3; }
.per-section > h3, .per-section > summary { margin: 0 0 14px; font-size: 17px; font-weight: 650; color: #294a50; }
.profile-section.per-section { background: var(--per-tint); border-color: var(--per-edge); border-left-width: 4px; }
.per-section > .fields-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,230px),1fr)); gap: 14px 20px; }
.per-section .group { grid-column: 1/-1; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
.per-section .group > .fields-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 20px; }
.per-section .field { min-width: 0; margin: 0; }
.per-section .field > label { margin: 0 0 6px; line-height: 1.4; }
.per-section input:not([type=checkbox]), .per-section select, .per-section textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.per-section .hint { margin: 5px 0 0; line-height: 1.4; }
.per-readonly { margin: 0; padding: 10px 0 5px; line-height: 1.4; }
.per-choices, .per-section .choices { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,145px),1fr)); gap: 8px 16px; }
.per-choices label, .per-section .choices label { display: flex; align-items: center; gap: 9px; min-height: 40px; margin: 0; font-weight: 400; }
.per-choices input[type=checkbox], .per-section input[type=checkbox] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: #4c8276; }
.profile-allergy-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,200px),1fr)); align-items: start; gap: 8px 18px; }
.profile-allergy-row { min-width: 0; padding: 8px 0; }
.profile-allergy-row > label { min-height: 36px; margin: 0; }
.profile-allergy-extras { grid-template-columns: minmax(0,1fr); }
.per-allergy-records { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,265px),1fr)); align-items: start; gap: 12px; }
.per-allergy-records > h3, .per-allergy-records > .empty-rows, .per-allergy-records > button { grid-column: 1/-1; }
.per-allergy-records .repeat-row { min-width: 0; margin: 0; padding: 12px; }
.per-allergy-records .fields-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
@media(min-width:1100px) { .profile-page { max-width: 1400px; } }
@media(max-width:600px) {
  .per-section { padding: 12px; }
  .per-section .group > .fields-grid { grid-template-columns: minmax(0,1fr); }
  .per-section > .fields-grid { grid-template-columns: minmax(0,1fr); }
  .per-choices, .per-section .choices, .profile-allergy-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 12px; }
}

details.per-section:not([open]) { padding-block: 14px; }
.per-section > summary { cursor: pointer; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 20px; margin: 0; list-style: none; }
.per-section > summary::-webkit-details-marker { display: none; }
.per-section[open] > summary { margin-bottom: 16px; }
.per-section > summary .per-summary { font-size: .85rem; font-weight: 400; color: #567078; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.per-section[open] > summary .per-summary { display: none; }
.per-section[data-per-section="history"] { --per-tint: #edf1ef; --per-edge: #b7c5be; }
.per-section input[aria-invalid=true] { border: 2px solid #af444b; background: #fff2f2; }

.pending-member-review-row{align-items:center;flex-wrap:wrap}.pending-member-review-actions{display:flex;gap:8px;flex-wrap:wrap;margin-left:auto}.pending-member-review-actions button{font-size:.9em;padding:.45em .8em;min-height:40px}

/* build067: approved v1.3 presentation backport, screen only. */
/* Text insertion shortcuts share one appearance; never style action buttons. */
@media screen {
 body :is(.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples) button,
 body .finance-shortcuts select {
  font-size:13px!important;font-weight:400!important;line-height:1.45!important;
  color:#4d5b61!important;background:#f1f3f4!important;background-image:none!important;
  border:1px dashed #aab4b9!important;border-radius:6px!important;
  box-shadow:none!important;transform:none!important;text-align:left;
  padding:6px 10px!important;min-height:34px!important;height:auto!important;
  max-width:100%;white-space:normal;overflow-wrap:anywhere;
 }
 body :is(.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples) button:hover:not(:disabled) {
  background:#e6eaed!important;border-color:#788b94!important;
 }
 body :is(.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples) button:focus-visible,
 body .finance-shortcuts select:focus-visible {outline:2px solid #718b98;outline-offset:2px}
 @media(pointer:coarse){
  body :is(.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples) button,
  body .finance-shortcuts select {min-height:42px!important}
 }
}

/* Ordinary actions use the approved translucent mint glass. Tabs, game state colors
   and small text-insertion shortcuts retain their separate interaction roles. */
@media screen {
 body :is(button,input[type=button],input[type=submit],a.export-file-action):not([role=tab]):not(.member-reading-size):not(.booking-choice-toggle):not(.booking-choice-option):not(#practice-tap):not(.practice-close):not(.task-delegation-led):not(.aq-sort):not(.aq-itinerary-link):not(.member-name):not(:is([role=tablist],#tabs,.tabs,.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples,.task-board,.task-dialog,.task-delegation-inbox,.roster-person-chip,.tour-navigation #tree) *) {
  background-color:var(--site-action-fill,var(--action-glass-background,rgba(158,237,220,.62)))!important;
  background-image:var(--site-action-shine,linear-gradient(90deg,rgba(255,255,255,.58),rgba(255,255,255,.22) 68%,transparent),linear-gradient(180deg,rgba(255,255,255,.3),transparent),linear-gradient(90deg,transparent,rgba(255,255,255,.32)))!important;
  background-size:38% 1px,1px 24%,22% 1px!important;
  background-position:12px 1px,1px 9px,calc(100% - 10px) calc(100% - 2px)!important;
  background-repeat:no-repeat!important;
  color:var(--site-action-ink,#1d414a)!important;border-color:var(--site-action-line,rgba(100,177,161,.24))!important;
  text-shadow:none;font-weight:400!important;font-size:var(--action-font-size,1.1rem)!important;line-height:1.4;padding:8px 14px;min-height:var(--action-min-height,42px);
  -webkit-backdrop-filter:var(--site-action-filter,blur(7px) saturate(115%));backdrop-filter:var(--site-action-filter,blur(7px) saturate(115%));
  box-shadow:var(--site-action-shadow,var(--action-glass-shadow,inset 0 -1px 0 rgba(89,164,148,.13),0 1px 2px rgba(53,76,80,.09)))!important;
 }
 body :is(button,input[type=button],input[type=submit],a.export-file-action):not([role=tab]):not(.member-reading-size):not(.booking-choice-toggle):not(.booking-choice-option):not(#practice-tap):not(.practice-close):not(.task-delegation-led):not(.aq-sort):not(.aq-itinerary-link):not(.member-name):not(:is([role=tablist],#tabs,.tabs,.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples,.task-board,.task-dialog,.task-delegation-inbox,.roster-person-chip,.tour-navigation #tree) *):hover:not(:disabled){background-color:var(--site-action-hover,var(--action-glass-hover-background,rgba(158,237,220,.75)))!important}
 body :is(button,input[type=button],input[type=submit],a.export-file-action):not([role=tab]):not(.member-reading-size):not(.booking-choice-toggle):not(.booking-choice-option):not(#practice-tap):not(.practice-close):not(.task-delegation-led):not(.aq-sort):not(.aq-itinerary-link):not(.member-name):not(:is([role=tablist],#tabs,.tabs,.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples,.task-board,.task-dialog,.task-delegation-inbox,.roster-person-chip,.tour-navigation #tree) *):focus-visible{outline:3px solid var(--site-focus,#8fa8ac);outline-offset:2px}
}

@media screen {
 body :is(button,a.export-file-action):not([role=tab]):not(.member-reading-size):not(.booking-choice-toggle):not(.booking-choice-option):not(#practice-tap):not(.practice-close):not(.task-delegation-led):not(.aq-sort):not(.aq-itinerary-link):not(.member-name):not(:is([role=tablist],#tabs,.tabs,.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples,.task-board,.task-dialog,.task-delegation-inbox,.roster-person-chip,.tour-navigation #tree) *) :where(*){color:inherit!important;font-weight:inherit!important}
}

/* Journey hierarchy is navigation: lighter glass at each nested level. */
@media screen {
 body .tour-navigation .tour-node{padding:4px;background:rgba(245,249,249,.62);border-color:#b6c9ca;box-shadow:0 2px 7px #466e5710}
 body .tour-navigation .tour-node .tour-select{background:rgba(158,237,220,.34)!important;color:#314e56!important;border-color:rgba(158,237,220,.55)!important;border-left-color:#9eedDC!important;border-radius:7px;box-shadow:inset 0 1px 1px #ffffffb8}
 body .tour-navigation .tour-node .tour-select.selected{background:rgba(158,237,220,.44)!important;border-left-color:#72b6a6!important}
 body .tour-navigation .tour-node .tour-select:hover{background:rgba(158,237,220,.48)!important}
 body .tour-navigation .tour-node .element-node{width:calc(100% - 10px);margin:5px 0 0 10px;padding:9px 12px;background:rgba(158,237,220,.13)!important;color:#476169!important;border:1px solid rgba(158,237,220,.28)!important;border-radius:6px;box-shadow:none}
 body .tour-navigation .tour-node .element-node:hover{background:rgba(158,237,220,.22)!important}
 body .tour-navigation .tour-node :is(.tour-select,.element-node) :where(*){color:inherit!important}
}

/* Compact actions retain comfortable touch targets. */
@media screen and (pointer:coarse){
 body :is(button,input[type=button],input[type=submit],a.export-file-action):not([role=tab]):not(.member-reading-size):not(.booking-choice-toggle):not(.booking-choice-option):not(#practice-tap):not(.practice-close):not(.task-delegation-led):not(.aq-sort):not(.aq-itinerary-link):not(.member-name):not(:is([role=tablist],#tabs,.tabs,.task-canned,.finance-shortcuts,.element-input-shortcuts,.aq-samples,.task-board,.task-dialog,.task-delegation-inbox,.roster-person-chip,.tour-navigation #tree) *){min-height:44px;padding:9px 15px}
}

/* PER names open a record; keep their compact text-link presentation. */
.roster-person-chip button:hover:not(:disabled){background:transparent;border-color:transparent;box-shadow:none}

/* Identity choice uses the original glass; only the unselected tone is lighter. */
.login-page .role-switch{background:transparent}
.login-page .role-switch button{--action-min-height:44px;white-space:nowrap}
.login-page .role-switch button[aria-pressed=false]{--action-glass-background:rgba(158,237,220,.30);--action-glass-hover-background:rgba(158,237,220,.40)}

/* Preference notes follow the person; group-only notes remain in the group. */
.allocation-member .allocation-person-warning{font-size:12px;line-height:1.5;border-inline-start:2px solid #c7a264;white-space:normal;overflow-wrap:anywhere}
.allocation-warning-count{font-size:12px;background:#fff1d7;color:#785419;white-space:nowrap;margin-inline-start:auto}

/* Login keeps its full glass cover and uses a compact form below it. */
body.login-page{display:flex;flex-direction:column;gap:12px;min-height:100svh;padding-bottom:max(12px,env(safe-area-inset-bottom));--action-font-size:17px}
body.login-page .header{width:min(1000px,100%);margin:0 auto;padding:22px 20px;min-height:82px;gap:12px;flex-wrap:nowrap}
body.login-page .brand{font-size:19px;gap:10px}body.login-page .brand-icon{width:42px;height:42px;font-size:30px}body.login-page .brand small{font-size:8px;margin-top:4px}
body.login-page .header-note{display:flex;font-size:11px;gap:5px;white-space:nowrap}
body.login-page main{display:grid;width:min(960px,calc(100% - 32px));min-height:0;margin:0 auto;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);border-radius:24px}
body.login-page .intro{display:flex;padding:36px 28px}body.login-page h1{font-size:30px;line-height:1.35;margin:0 0 16px}body.login-page .score{min-height:120px;margin:16px -28px}
body.login-page .intro>.hero-slogan{display:block;font-size:27px;margin:18px 0 20px}body.login-page .intro-footer{display:flex;padding-top:14px;font-size:12px}
body.login-page .login-panel{padding:24px}body.login-page #login-view{display:grid;grid-template-columns:1fr;gap:10px}
body.login-page .panel-eyebrow{display:block;font-size:10px;line-height:1.3}body.login-page h2{font-size:28px;line-height:1.25;margin:0}body.login-page .panel-description{display:block;font-size:14px;line-height:1.4;margin:0 0 4px}
body.login-page .role-switch{padding:0;gap:8px}body.login-page #login-view button{font-size:17px;line-height:1.25;min-height:44px;padding:8px 10px;--action-min-height:44px;--action-font-size:17px}
body.login-page #passkey-login{margin:0}body.login-page #login-form{margin:0;min-width:0}
body.login-page .login-account-row{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
body.login-page #login-form label{font-size:16px!important;line-height:1.3;margin:0 0 4px}
body.login-page #login-form>label[for=password]{margin-top:10px}
body.login-page #login-form input{font-size:18px;line-height:1.25;min-height:44px;height:44px;padding:8px 12px}
body.login-page #login-form input::placeholder{font-size:15px}
body.login-page #login-form .password-field input{padding-right:68px}
body.login-page #login-form .password-field button{top:0;right:0;height:44px;min-height:44px;font-size:15px;padding:7px 10px}
body.login-page #login-form .message:empty{margin:0;height:0}body.login-page #login-form .message:not(:empty){font-size:15px;line-height:1.4;margin:8px 0}
body.login-page #submit{margin-top:10px}body.login-page .login-links{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body.login-page #login-view .forgot-password-link,body.login-page #member-signup-link{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:44px;margin:0;padding:8px;border:1px solid #a3c9bb;border-radius:8px;font-size:16px;line-height:1.25;text-align:center}
body.login-page #login-view .forgot-password-link{background:#ffffffb8}body.login-page #member-signup-link>strong{font:inherit;font-weight:650}body.login-page #member-signup-link>span{display:none}
body.login-page>.pwa-tools{display:none}
body.login-page>footer{display:flex;justify-content:center;align-items:center;gap:4px;white-space:nowrap;width:100%;margin:2px auto 0;font-size:12px;line-height:1.3;min-height:20px}
@media(max-width:700px){
 body.login-page{gap:10px}body.login-page .header{padding:18px 18px;min-height:76px}body.login-page .brand-icon{width:40px;height:40px}body.login-page main{grid-template-columns:1fr}
 body.login-page .intro{padding:22px 22px 20px;min-height:142px}body.login-page .intro .score{display:none}body.login-page h1{font-size:26px;margin:0;line-height:1.3}
 body.login-page .intro>.hero-slogan{display:block;font-size:22px;line-height:1.3;margin:18px 0 0}body.login-page .hero-slogan br{display:none}
 body.login-page .intro-footer{display:flex;padding:0;border:0;font-size:10px;line-height:1.3;margin-top:14px}
 body.login-page .login-panel{padding:20px 22px}body.login-page #login-view{gap:8px}body.login-page h2{font-size:26px}
}
@media(max-width:700px) and (min-height:890px){body.login-page .header{padding-top:26px;padding-bottom:26px}body.login-page .intro{padding-top:30px;padding-bottom:26px;min-height:166px}body.login-page .login-panel{padding-top:24px;padding-bottom:24px}body.login-page #login-view{gap:10px}}
@media(max-width:359px){body.login-page .header{padding-inline:14px}body.login-page .brand{font-size:16px;gap:7px}body.login-page .header-note{font-size:10px}body.login-page .login-panel{padding-inline:18px}body.login-page h1{font-size:24px}body.login-page .intro>.hero-slogan{font-size:20px}}
@media(min-width:360px) and (max-width:389px){body.login-page .intro>.hero-slogan{font-size:21px}}
@media(min-width:701px) and (max-height:760px){body.login-page .header{padding-block:14px;min-height:66px}body.login-page .login-panel{padding-block:18px}body.login-page .score{min-height:80px}}

/* The login brand and release belong to the main glass tile. */
body.login-page{padding-top:max(18px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom));gap:12px}
body.login-page main{flex:1;margin:0 auto;border-radius:24px}
body.login-page h1{margin:0;font-size:24px;line-height:1.25}
body.login-page h1 .brand{font-size:24px;gap:12px;letter-spacing:.08em}
body.login-page h1 .brand-icon{height:46px;width:46px;font-size:32px;border-radius:15px;flex-shrink:0}
body.login-page h1 .brand small{display:block;font-size:9px!important;line-height:1.3!important;letter-spacing:.20em;margin-top:5px}
body.login-page .intro-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;line-height:1.3;font-size:10px;letter-spacing:.06em}
body.login-page .intro-footer .header-note{display:flex;justify-content:flex-end;align-items:center;gap:5px;margin:0;padding:0;font-size:10px;letter-spacing:0;white-space:nowrap;color:#587681}
body.login-page .intro-footer .header-note span{padding:3px 6px;border-radius:14px;background:#ffffff54;border-color:#adc9cc;font-size:10px}
body.login-page>footer{margin:0 auto;font-size:11px;min-height:18px}
@media(max-width:700px){
 body.login-page main{grid-template-rows:auto 1fr;width:calc(100% - 32px)}
 body.login-page .intro{padding:24px 22px 21px;min-height:0}
 body.login-page .intro>.hero-slogan{font-size:22px;line-height:1.3;margin:23px 0 0}
 body.login-page .intro-footer{margin-top:19px;padding:0}
 body.login-page .login-panel{display:flex;align-items:center;align-self:stretch;padding:23px 22px 22px}
 body.login-page #login-view{width:100%;gap:10px}
}
/* Safari's visible toolbars leave less room; preserve the cover and touch sizes. */
@media(max-width:700px) and (max-height:800px){
 body.login-page{padding-top:max(14px,env(safe-area-inset-top));padding-bottom:max(12px,env(safe-area-inset-bottom));gap:10px}
 body.login-page .intro{padding-top:16px;padding-bottom:14px}
 body.login-page .intro>.hero-slogan{margin-top:14px}
 body.login-page .intro-footer{margin-top:14px}
 body.login-page .login-panel{padding-top:16px;padding-bottom:16px}
 body.login-page #login-view{gap:6px}
}
@media(max-width:700px) and (max-height:740px){
 body.login-page .panel-eyebrow{display:none}
 body.login-page{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:max(10px,env(safe-area-inset-bottom));gap:8px}
 body.login-page .intro{padding-top:14px;padding-bottom:12px}
 body.login-page .intro>.hero-slogan{margin-top:10px}
 body.login-page .intro-footer{margin-top:12px}
 body.login-page .login-panel{padding-top:14px;padding-bottom:14px}
}

/* Desktop: a continuous score and glass pebbles behind the whole login tile. */
@media(min-width:701px){
 body.login-page main{position:relative;isolation:isolate;background:radial-gradient(ellipse at 5% 10%,#d2f5eab8,transparent 70%),linear-gradient(150deg,#a9dedac9 0%,#c2e4edb3 53%,#ecdec2b3 100%)}
 body.login-page .intro{isolation:auto;overflow:visible;background:transparent;position:relative}
 /* The decorative score is out of flow; keep the release row at the panel bottom. */
 body.login-page .intro-footer{margin-top:auto;flex-shrink:0}
 body.login-page .intro::before{width:720px;height:480px;left:-160px;top:220px;z-index:-1;background:linear-gradient(140deg,#e1f7e55e,#94cabe38 60%,#f0e3bf60)}
 body.login-page .intro::after{width:540px;height:500px;right:-400px;top:-125px;z-index:-1}
 body.login-page .intro .score{position:absolute;top:100px;left:0;width:222.223%;height:260px;min-height:0;margin:0;z-index:-1;pointer-events:none;overflow:hidden}
 body.login-page .score .score-lines{top:95px;left:-8%;width:118%;height:118px}
 body.login-page .score .n1{left:6%;top:130px}body.login-page .score .n2{left:19%;top:95px}body.login-page .score .n3{left:32%;top:63px}body.login-page .score .n4{left:46%;top:15px}
 body.login-page main::after{content:'♫　♪';position:absolute;right:-5%;bottom:-12%;width:53%;height:43%;border:1px solid #ffffffa8;border-radius:54% 46% 38% 62%;transform:rotate(-24deg);background:linear-gradient(135deg,#c5e9d978,#8cbbad45 60%,#f0e7c57a);box-shadow:inset 12px 14px 28px #ffffff86,inset -10px -12px 24px #75a89925;z-index:-1;pointer-events:none;color:#458a9059;font:90px/2 Georgia,serif;padding:50px 60px}
 body.login-page .login-panel{align-self:stretch;display:flex;align-items:center;position:relative;background:linear-gradient(180deg,#ffffff38,#ffffff76 42%,#ffffff40);backdrop-filter:blur(10px) saturate(1.1);-webkit-backdrop-filter:blur(10px) saturate(1.1);border-left:1px solid #ffffff80}
 body.login-page #login-view{width:100%;padding:18px;border:1px solid #ffffff80;border-radius:16px;background:#ffffffa8;box-shadow:0 8px 30px #527e8308}
}

/* GenSen TW Regular is shared by login and member pages; the Latin slogan stays serif. */
body.login-page,body.login-page :is(button,input,select,textarea,label,h1,h2,h3,a,.panel-description,.auth-captcha){font-family:"CKPC Gensen TW","Microsoft JhengHei",system-ui,sans-serif!important}

/* Warm paper and dark ink. Keep status and service-category markers legible. */
@media screen {
 html[data-site-theme=contrast] {
  --ink:#1e1d1b;
  --muted:#494640;
  --sea:#194e74;
  --line:#aaa497;
  --paper:#fff;
  --warm-paper:#f4f2ed;
  --surface:#ebe8df;
  --site-focus:#1a567d;
  --site-action-fill:#ebe8df;
  --site-action-hover:#e0dbd0;
  --site-action-shine:none;
  --site-action-line:#817b6f;
  --site-action-ink:var(--ink);
  --site-action-filter:none;
  --site-action-shadow:none;
  color:var(--ink);
  background:var(--warm-paper);
 }
 html[data-site-theme=contrast] body {
  color:var(--ink);
  background:var(--warm-paper);
 }
 html[data-site-theme=contrast] body>header:not(.header),
 html[data-site-theme=contrast] body>.member-nav,
 html[data-site-theme=contrast] body>.workspace-nav,
 html[data-site-theme=contrast] #workspace>aside {
  background:var(--paper);
  border-color:var(--line);
  box-shadow:none;
 }
 html[data-site-theme=contrast] body :is(.brand,.brand small,.member-identity,.member-page-heading,.editor-heading,.fees-heading) { color:var(--ink); }
 html[data-site-theme=contrast] :is(.hint,.subtle,.quiet,.eyebrow,.member-reading-caption,.tour-navigation-hint,.field-note,.platform-description,.panel-description,.task-row-info) {
  color:var(--muted);
 }
 html[data-site-theme=contrast] :is(main,dialog) a:not([role=button]):not(.fees-payment-entry):not(.export-file-action) {
  color:var(--sea);text-decoration:underline;text-underline-offset:2px;
 }
 html[data-site-theme=contrast] :is(input:not([type=button],[type=submit],[type=checkbox],[type=radio]),select,textarea) {
  color:var(--ink);background:var(--paper);border-color:var(--site-action-line);
 }
 html[data-site-theme=contrast] :is(input,textarea)::placeholder { color:var(--muted); }
 html[data-site-theme=contrast] :is(input[type=checkbox],input[type=radio]) { accent-color:var(--sea); }
 html[data-site-theme=contrast] :focus-visible { outline-color:var(--site-focus); }
 html[data-site-theme=contrast] :is(button.primary,input[type=submit],.role-switch button[aria-pressed=true]) {
  --site-action-fill:#252421;--site-action-hover:#423f39;--site-action-ink:#fff;
 }
 html[data-site-theme=contrast] button.danger {
  --site-action-fill:#faece8;--site-action-hover:#f3dcd5;--site-action-ink:#8d2723;--site-action-line:#a1554c;
 }
 html[data-site-theme=contrast] body[data-member-page]>.member-nav>a {
  color:var(--ink);background:var(--surface);border-color:#a39c8e;
  box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
 }
 html[data-site-theme=contrast] body[data-member-page]>.member-nav>a:hover { background:#e0dbd0; }
 html[data-site-theme=contrast] body[data-member-page]>.member-nav>a[aria-current] {
  background:#252421;color:#fff;border-color:#252421;
 }
 html[data-site-theme=contrast] .member-reading-controls .member-reading-segments {
  background:var(--surface);box-shadow:inset 0 0 0 1px #8c867a;
 }
 html[data-site-theme=contrast] .member-reading-controls .member-reading-size {
  color:var(--ink);background:transparent;border-color:#a39c8e;
 }
 html[data-site-theme=contrast] .member-reading-controls .member-reading-size:hover:not([aria-checked=true]) { background:#e0dbd0; }
 html[data-site-theme=contrast] .member-reading-controls .member-reading-size[aria-checked=true] {
  color:#fff;background:#252421;
 }
 html[data-site-theme=contrast] .member-reading-controls .member-reading-size:focus-visible { outline-color:#4682ac; }
 html[data-site-theme=contrast] body :is(.tabs,#tabs) [role=tab] {
  color:var(--ink);background:var(--surface);border-color:#a39c8e;box-shadow:none;
 }
 html[data-site-theme=contrast] body :is(.tabs,#tabs) [aria-selected=true] {
  color:#fff;background:#252421;border-color:#252421;box-shadow:none;
 }
 html[data-site-theme=contrast] #tabs [data-tour-tab-group=finance] {
  --tour-tab-fill:#fff0db;--tour-tab-strong:#f4cb89;--tour-tab-line:#8c4c14;--tour-tab-ink:#542909;
 }
 html[data-site-theme=contrast] #tabs [data-tour-tab-group=ai] {
  --tour-tab-fill:#f1e7fa;--tour-tab-strong:#dfc8f2;--tour-tab-line:#704397;--tour-tab-ink:#442259;
 }
 html[data-site-theme=contrast] #tabs :is(#tab-ai-query,[data-tour-tab-group=finance],[data-tour-tab-group=ai]) {
  color:var(--tour-tab-ink);background:var(--tour-tab-fill);border-color:var(--tour-tab-line);box-shadow:none;
 }
 html[data-site-theme=contrast] #tabs :is(#tab-ai-query,[data-tour-tab-group=finance],[data-tour-tab-group=ai]):is(:hover,[aria-selected=true]) {
  background:var(--tour-tab-strong);color:var(--tour-tab-ink);
 }
 html[data-site-theme=contrast] #tabs :is(#tab-ai-query,[data-tour-tab-group=finance],[data-tour-tab-group=ai])[aria-selected=true] {
  box-shadow:inset 0 -3px 0 var(--tour-tab-line);
 }

 html[data-site-theme=contrast] body :is(
  .panel,.platform-panel,.platform-discovery,.profile-section,.companion-panel,.companion-group,
  .task-row:not(.task-deadline-soon,.task-deadline-overdue,.task-support-open),.task-dialog,
  .finance-help,.finance-empty,.finance-table-wrap,.finance-transfer-details,.finance-receipt-list,
  .allocation-people,.allocation-groups,.practice-sheet,.tour-navigation,.password-settings,
  #member-fees-workspace,#finance-panel,dialog:not(.operation-wait-dialog,.rich-text-image-viewer)
 ) {
  color:var(--ink);background:var(--paper);border-color:var(--line);box-shadow:none;
 }
 html[data-site-theme=contrast] body :is(
  .profile-footer,.service-footer,.allocation-footer,.finance-transfer-details,
  #finance-panel .finance-section,.finance-table th,.finance-table caption,
  .member-trip-detail .managed-cost-summary,.fees-balance,.fees-statistics
 ) {
  background:var(--warm-paper);border-color:var(--line);color:var(--ink);box-shadow:none;
 }
 html[data-site-theme=contrast] body[data-member-page=services] :is(
  .member-trip-lists .member-trip-section,.member-trip-lists .my-tour-card,.member-trip-detail,.member-trip-people .my-person-tour
 ) {
  color:var(--ink);background:var(--paper);border-block-color:var(--line);box-shadow:none;
 }
 html[data-site-theme=contrast] body[data-member-page=services] .member-trip-lists .member-trip-section { border-color:var(--line); }
 html[data-site-theme=contrast] body[data-member-page=services] .member-tour-select {
  --site-action-fill:transparent;--site-action-hover:var(--warm-paper);--site-action-line:transparent;
 }
 html[data-site-theme=contrast] body[data-member-page=fees] .fees-tile { background:var(--paper);border-color:var(--line); }
 html[data-site-theme=contrast] body[data-member-page=fees] .fees-tile[data-category=organization] { background:var(--warm-paper); }
 html[data-site-theme=contrast] .member-fees :is(.fees-balance h2,.fees-tile h2,.fees-entry h3,.fees-collector) { color:var(--ink); }
 html[data-site-theme=contrast] .member-fees :is(.fees-note,.fees-entry time,.fees-empty,.fees-updated) { color:var(--muted); }
 html[data-site-theme=contrast] .member-fees :is(.fees-payment-entry,.fees-report-link) {
  background:var(--surface);color:var(--ink);border-color:#8c867a;box-shadow:none;
 }
 html[data-site-theme=contrast] .member-fees .fees-report-link:hover { background:#e0dbd0; }
 html[data-site-theme=contrast] .system-nav :is(.system-nav-choir,.system-nav-maintenance) {
  --system-nav-divider:var(--line);--system-nav-heading:var(--ink);
 }
 html[data-site-theme=contrast] .system-nav .system-nav-finance {
  --site-action-fill:#f4cb89;--site-action-hover:#edb765;--site-action-line:#8c4c14;--site-action-ink:#542909;
 }
 html[data-site-theme=contrast] .allocation-dashboard .allocation-dashboard-card {
  --site-action-fill:#edf0f2;--site-action-hover:#dce2e8;--site-action-line:#78848e;
 }
 html[data-site-theme=contrast] .allocation-dashboard .allocation-dashboard-card.tone-complete {
  --site-action-fill:#daefe0;--site-action-hover:#c5e6cf;--site-action-line:#3f7654;
 }
 html[data-site-theme=contrast] .allocation-dashboard .allocation-dashboard-card.tone-pending {
  --site-action-fill:#ffe6af;--site-action-hover:#ffda8c;--site-action-line:#8e5011;
 }
 html[data-site-theme=contrast] .allocation-dashboard .allocation-dashboard-card.tone-error {
  --site-action-fill:#faddd7;--site-action-hover:#f5c7bf;--site-action-line:#913933;
 }
 html[data-site-theme=contrast] .allocation-dashboard .allocation-dashboard-card[aria-pressed=true] {
  --site-action-shadow:0 0 0 2px #264762;
 }
 html[data-site-theme=contrast] body .tour-navigation #tree .tour-select {
  color:var(--ink)!important;
 }
 html[data-site-theme=contrast] body .tour-navigation #tree .element-node {
  color:var(--ink)!important;background:var(--paper)!important;
 }
 html[data-site-theme=contrast] body .tour-navigation #tree .element-node:hover {
  background:var(--surface)!important;
 }

 html[data-site-theme=contrast] body.login-page main {
  background:var(--paper);border-color:var(--line);box-shadow:none;
 }
 html[data-site-theme=contrast] body.login-page .intro {
  background:var(--warm-paper);color:var(--ink);
 }
 html[data-site-theme=contrast] body.login-page .intro::before,
 html[data-site-theme=contrast] body.login-page .intro::after,
 html[data-site-theme=contrast] body.login-page main::after { display:none; }
 html[data-site-theme=contrast] body.login-page :is(.intro-footer,.login-panel,#login-view) { border-color:var(--line); }
 html[data-site-theme=contrast] body.login-page :is(.login-panel,#login-view) {
  background:var(--paper);box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;
 }
 html[data-site-theme=contrast] body.login-page :is(h2,.brand,.hero-slogan,.panel-eyebrow) { color:var(--ink); }
 html[data-site-theme=contrast] body.login-page :is(.intro-footer,.header-note,.panel-description) { color:var(--muted); }
 html[data-site-theme=contrast] body.login-page .brand-icon {
  background:#252421;color:#fff;border-color:#252421;box-shadow:none;
 }
 html[data-site-theme=contrast] body.login-page #login-view :is(.forgot-password-link,#member-signup-link) {
  background:var(--surface);color:var(--ink);border-color:#8c867a;
 }
}

@media print{.aq-report table{table-layout:fixed;width:100%;border-collapse:collapse;font-size:10px}.aq-report td,.aq-report th{border:1px solid #b3ccc5;padding:5px;overflow-wrap:anywhere;text-align:left;vertical-align:top}.aq-report th{background:#e5eeeb}.aq-report h1{font-size:20px}.aq-report h2{font-size:15px;margin:12px 0 7px}}

/* Only the AI query tab uses muted lavender glass. */
@media screen {
 body #tabs #tab-ai-query{background:linear-gradient(135deg,rgba(236,230,243,.86),rgba(226,218,236,.78));color:#60516f;border-color:#c4b6d2;box-shadow:inset 0 1px 1px #ffffffbf}
 body #tabs #tab-ai-query[aria-selected=true]{background:linear-gradient(135deg,rgba(222,211,235,.92),rgba(212,199,228,.85));color:#514260;border-bottom-color:#967da9}
 body #tabs #tab-ai-query:hover{background:#e1d6eb}
 body #tabs #tab-ai-query:focus-visible{outline-color:#a18ab4}
}
