/* Shared visual authority: STYLES.md. No frontend build pipeline required. */
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../../fonts/OpenSans-latin.woff2') format('woff2'); }
@font-face { font-family: 'Patua One'; font-style: normal; font-weight: 400; font-display: swap; src: url('../../fonts/PatuaOne-latin.woff2') format('woff2'); }
:root {
  --pwa-teal: #075161; --pwa-mint: #00d9ae; --pwa-ink: #12333b;
  --app-muted: #4f747e; --app-border: #d9e7ea; --app-pale: #eef7f8;
  --app-header-height: 64px; --app-keyboard-inset: 0px;
}
html { min-height: 100%; }
body.pwa-shell { margin: 0; min-height: 100vh; height: auto !important; padding-top: var(--app-header-height); background: linear-gradient(160deg,#349fb7 0%,#69bac0 55%,#b3e6d7 100%) fixed !important; color: var(--pwa-ink); font: 400 16px/1.6 'Open Sans',system-ui,sans-serif; }
.pwa-shell *, .pwa-shell *::before, .pwa-shell *::after { box-sizing: border-box; }
.pwa-shell [hidden] { display: none !important; }
.pwa-shell :focus-visible { outline: 3px solid #349fb7; outline-offset: 3px; }
.pwa-shell h1 { font: 400 40px/1.15 'Patua One',Georgia,serif; color: var(--pwa-teal); margin: 0 0 16px; }
.pwa-shell h2, .pwa-shell h3, .pwa-shell h4, .pwa-shell h5 { color: var(--pwa-ink); font-family: 'Open Sans',system-ui,sans-serif; }
.pwa-shell h2 { font-size: 24px; font-weight: 700; line-height: 1.3; }
.pwa-shell a { color: var(--pwa-teal); }
.app-muted, .pwa-shell .text-muted, .pwa-shell .text-secondary { color: var(--app-muted) !important; }
.pwa-shell .text-primary { color: var(--pwa-teal) !important; }
.pwa-shell .bg-primary { background-color: var(--pwa-teal) !important; }
.pwa-shell .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 8px; white-space: normal; font: 700 16px/1.35 'Open Sans',system-ui,sans-serif; box-shadow: none; }
.pwa-shell .btn-primary, .pwa-shell .btn-dark { min-height: 48px; background: #00b894; border: 1px solid #00b894; color: #063c43; }
.pwa-shell .btn-primary:hover, .pwa-shell .btn-dark:hover { background: #00a985; border-color: #00a985; color: #052f35; }
.pwa-shell .btn-secondary, .pwa-shell .btn-outline-dark { background: white; border: 1px solid #349fb7; color: var(--pwa-teal) !important; }
.pwa-shell .btn-secondary:hover, .pwa-shell .btn-outline-dark:hover { background: #eef7f8; }
.pwa-shell .btn:disabled { background: #d9e7ea; border-color: #d9e7ea; color: #4f747e; opacity: 1; cursor: not-allowed; }
.pwa-shell input, .pwa-shell select, .pwa-shell textarea { font: inherit; }
.pwa-shell .form-control, .pwa-shell .form-select, .pwa-shell select:not([multiple]) { min-height: 44px; padding: 10px 12px; border: 1px solid var(--app-border); border-radius: 8px; background-color: #eef7f8; color: var(--pwa-ink); font-size: 16px; max-width: 100%; }
.pwa-shell input[type='checkbox'], .pwa-shell input[type='radio'] { accent-color: #075161; }
.app-icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-icon { display: block; width: 26px; height: 26px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; top: -100px; left: 32px; z-index: 100000010; background: white; padding: 8px; }
.skip-link:focus { top: 8px; }
.app-header { position: fixed; inset: 0 0 auto; z-index: 1060; height: var(--app-header-height); background: #075161; color: white; box-shadow: 0 2px 8px #07516122; }
.app-header-inner { height: 100%; max-width: 1200px; margin: auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pwa-shell .app-brand { display: flex; align-items: center; gap: 10px; min-width: 0; color: white; font-size: 22px; font-weight: 700; letter-spacing: -.6px; text-decoration: none; }
.app-brand img { width: 32px; height: 32px; object-fit: contain; }
.app-menu-toggle { display: grid; place-items: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: white; cursor: pointer; }
.app-menu-toggle:hover { background: #ffffff16; }
.app-header-back { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: white; cursor: pointer; }
.app-header-back .app-icon { width: 21px; height: 26px; }
.app-authenticated .app-header-back { flex-basis: 52px; width: 52px; }
.app-authenticated .app-menu-toggle { width: 52px; }
.app-header-back:hover { background: #ffffff16; }
.app-header-back + .app-brand { margin-right: auto; }
.app-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-menu-toggle .app-icon { width: 26px; height: 26px; }
.pwa-shell .app-header :focus-visible { outline-color: #ffd259; outline-offset: 0; }
.app-desktop-nav { display: flex; gap: 8px; margin-left: auto; }
.pwa-shell .app-desktop-nav a { color: #e7f3f4; padding: 10px 12px; border-radius: 7px; font-weight: 700; text-decoration: none; }
.pwa-shell .app-desktop-nav a[aria-current] { color: #00d9ae; background: #ffffff0c; }
.app-menu { position: fixed; z-index: 1070; right: max(24px,calc((100vw - 1152px)/2)); top: calc(var(--app-header-height) + 8px); width: min(320px,calc(100% - 64px)); max-height: calc(100dvh - var(--app-header-height) - var(--pwa-bottom-navigation-clearance) - 24px); overflow-y: auto; background: white; border-radius: 8px; box-shadow: 0 18px 44px #12333b40; }
.pwa-shell .app-menu > a, .app-menu > button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; margin: 0; padding: 12px 16px; border: 0; border-bottom: 1px solid #e5eef0; background: white; color: #3d4e58; text-align: left; text-decoration: none; font: 600 16px/1.35 'Open Sans',system-ui,sans-serif; cursor: pointer; }
.pwa-shell .app-menu > a:hover, .app-menu > button:hover { background: #eef7f8; }
.app-menu-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: #e9f6f7; color: #075161; }
.app-menu-icon .app-icon { width: 21px; height: 21px; stroke-width: 1.8; }
.app-menu-divider { height: 8px; background: #e9f6f7; }
.pwa-shell .app-main { display: block; width: calc(100% - 88px); max-width: 1120px; min-width: 0; margin: 0 auto; padding-top: 32px; height: auto; max-height: none; overflow: visible; min-height: calc(100dvh - 160px); }
.app-main > * { min-width: 0; max-width: 100%; }
.pwa-shell .container { width: 100%; max-width: 100%; margin-inline: 0; padding-inline: 0 !important; }
.pwa-shell .app-main > .container { padding-block: 0 32px !important; overflow: visible !important; }
.pwa-shell .app-sidebar, .pwa-shell .sidebar { display: none !important; }
.pwa-shell .nav-padding { padding-left: 0 !important; }
.pwa-shell .topbar { position: static; width: 100% !important; flex-wrap: wrap; gap: 8px; padding: 16px !important; margin-bottom: 24px; border: 1px solid #d9e7ea; border-radius: 12px; }
.pwa-shell .topbar > * { margin: 0 !important; min-width: 0; }
.pwa-shell .topbar .text-end { text-align: left !important; }
.pwa-shell .row { margin-inline: 0; }
.pwa-shell .jumbotron { padding-block: 24px; background: transparent; }
.pwa-shell .app-main .position-fixed { position: static !important; }
.pwa-shell .card, .pwa-shell div.col .location, .pwa-shell div.col .bundle { border: 1px solid #d9e7ea; border-radius: 12px; background: white; box-shadow: 0 5px 18px #07516112; }
.pwa-shell div.col .location.active { border: 2px solid #00b894; }
.pwa-shell .app-main .card { padding: 24px !important; }
.pwa-shell .btn-group { flex-wrap: wrap; max-width: 100%; }
.pwa-shell .btn-group .btn { white-space: normal; }
.pwa-shell .pagination { flex-wrap: wrap; gap: 4px; }
.pwa-shell .page-link { color: #075161; background: white; border-color: #d9e7ea; }
.pwa-shell .page-item.active .page-link { background: #075161; border-color: #075161; color: white; }
.pwa-shell img, .pwa-shell iframe, .pwa-shell video { max-width: 100%; }
.pwa-shell table { display: block; overflow-x: auto; max-width: 100%; }
.pwa-shell pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.app-document-scroll { overflow-x: auto; max-width: 100%; }
.app-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 20px; color: #075161; font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.app-beta { padding: 2px 7px; background: #00d9ae; color: #075161; border-radius: 4px; font-size: 11px; letter-spacing: .4px; }
.welcome-layout { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 64px; padding: 48px 16px; }
.pwa-shell .welcome-intro h1 { font-size: 48px; }
.welcome-lead { max-width: 32ch; margin: 0 0 24px; font-size: 20px; line-height: 1.6; }
.welcome-steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.welcome-steps li { display: flex; gap: 12px; align-items: flex-start; }
.welcome-step-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: #075161; background: #ffffff65; border-radius: 12px; }
.welcome-steps strong, .welcome-steps div > span { display: block; }
.welcome-steps div > span { font-size: 16px; color: #164653; line-height: 1.6; }
.signin-card { padding: 32px; background: white; border: 1px solid #d9e7ea; border-radius: 12px; box-shadow: 0 16px 40px #07516124; scroll-margin-top: 88px; }
.signin-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #e9f6f7; color: #075161; margin-bottom: 20px; }
.signin-card h2 { margin: 0 0 12px; }
.signin-card p { margin-bottom: 24px; }
.signin-consent { display: flex; gap: 10px; align-items: flex-start; margin: 24px 0; font-size: 16px; line-height: 1.6; }
.signin-consent input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; cursor: pointer; }
.signin-consent label { cursor: pointer; }
.app-text-link { display: inline; border: 0; padding: 0; background: transparent; color: #075161; text-decoration: underline; font: inherit; cursor: pointer; }
.pwa-shell .signin-button { width: 100%; justify-content: space-between; }
.signin-card .signin-hint { font-size: 12px; color: #4f747e; text-align: center; margin: 16px 0 0; }
.app-footer { width: calc(100% - 64px); max-width: 1120px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: auto; padding: 24px 0 !important; font-size: 12px; color: #164653; }
.app-footer button { border: 0; background: transparent; color: inherit; padding: 10px; min-height: 44px; text-decoration: underline; }
.app-page-intro { margin-bottom: 24px; }
.app-page-intro h1 { margin-bottom: 8px; }
.app-page-intro p { margin: 0; }
.app-empty { padding: 24px; margin: 16px 0; border: 1px solid #d9e7ea; background: white; border-radius: 12px; }
.app-empty > .app-icon { color: #349fb7; width: 36px; height: 36px; margin-bottom: 16px; }
.app-empty h2 { font-size: 20px; }
.app-empty p { color: #4f747e; }
.pwa-shell .modal { z-index: 1055; padding: 0 !important; overflow: hidden; }
.pwa-shell .modal-backdrop { background: #12333b; }
.pwa-shell .modal-dialog { position: fixed; margin: 0; left: var(--app-sheet-left,44px); width: var(--app-sheet-width,calc(100% - 88px)); max-width: none; top: var(--app-sheet-top,80px); bottom: var(--app-sheet-bottom,24px); height: auto; min-height: 0; display: flex; align-items: flex-end; pointer-events: none; }
.pwa-shell .modal-content { max-height: 100%; min-height: 0; pointer-events: auto; border: 2px solid #ffd259; border-radius: 8px; overflow: hidden; box-shadow: 0 16px 40px #12333b45; }
.pwa-shell .modal-header { min-height: 64px; gap: 12px; padding: 10px 16px; background: #075161; color: white; flex-shrink: 0; border: 0; }
.pwa-shell .modal-title { color: white; font: 700 20px/1.3 'Open Sans',system-ui,sans-serif; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pwa-shell .modal-header .btn-close { flex-shrink: 0; width: 44px; height: 44px; min-height: 44px; min-width: 44px; padding: 0; margin: 0; opacity: 1; filter: invert(1) grayscale(1) brightness(2); background-size: 32px; }
.pwa-shell .modal-body { padding: 20px 16px; overflow: auto; overscroll-behavior: contain; min-height: 0; font-size: 16px; }
.pwa-shell .modal-footer { flex-shrink: 0; gap: 10px; padding: 12px 16px; border-top: 2px solid #ffd259; }
.pwa-shell .modal-footer > * { margin: 0; }
.pwa-shell .modal-dialog-centered::before { display: none; }
.pwa-shell .modal .modal-padding { padding: 20px 16px; }
.pwa-shell .handoff-tool-panel { border-color: #ffd259; font-family: 'Open Sans',system-ui,sans-serif; }
.pwa-shell .handoff-tool-panel h2 { color: white; font: 700 20px/1.3 'Open Sans',system-ui,sans-serif; }
.pwa-shell .handoff-tool-panel header button { display: grid; place-items: center; background: transparent; border: 0; color: white; }
.pwa-shell .handoff-tool-panel footer button { border: 1px solid #349fb7; border-radius: 8px; background: white; color: #075161; font-family: inherit; font-weight: 700; }
.pwa-shell .handoff-tool-panel footer [data-install-confirm], .pwa-shell .handoff-tool-panel footer [type='submit'] { background: #00b894; border-color: #00b894; color: #063c43; }
.pwa-shell .handoff-rail .app-icon { width: 22px; height: 22px; margin: auto; }
:root { --app-rail-bottom: max(88px, calc(max(var(--pwa-bottom-navigation-clearance), var(--app-keyboard-inset)) + 24px)); }
.pwa-shell .handoff-rail--install { bottom: calc(var(--app-rail-bottom) + 48px); }
.pwa-shell .handoff-rail--sms, .pwa-shell .cohouse-userway-trigger, .app-accessibility { bottom: var(--app-rail-bottom); }
.pwa-shell .handoff-rail--sms { background: #00d9ae; color: #075161; border-color: #00d9ae; }
.app-accessibility { position: fixed; left: 0; width: 30px; height: 44px; padding: 0; display: grid; place-items: center; z-index: 100000008; border: 2px solid #1b77e8; border-left: 0; border-radius: 0 8px 8px 0; background: white; color: #1b77e8; }
.app-accessibility .app-icon { width: 22px; height: 22px; }
.pwa-shell .cohouse-bugherd-feedback, .pwa-shell .app-feedback { top: clamp(80px,calc(50svh - 16px),calc(100dvh - max(var(--pwa-bottom-navigation-clearance),var(--app-keyboard-inset)) - 170px)); }
.app-feedback { position: fixed; left: 0; width: 30px; height: 96px; z-index: 100000008; padding: 8px 0; border: 0; border-radius: 0 8px 8px 0; background: #8b7fd4; color: white; font: 700 12px 'Open Sans',sans-serif; display: grid; place-items: center; }
.app-feedback span { writing-mode: vertical-rl; transform: rotate(180deg); }
.pwa-shell .cohouse-bugherd-feedback, .pwa-shell .cohouse-userway-trigger { width: 30px; min-width: 30px; max-width: 30px; }
.pwa-shell .app-contact-menu { top: auto; transform: none; border: 0; border-radius: 8px; overflow-y: auto; box-shadow: 0 18px 42px rgba(7,81,97,.24); }
.app-contact-choices { display: flex; flex-direction: column; }
.pwa-shell .app-contact-action { display: flex; align-items: center; flex-shrink: 0; gap: 16px; width: 100%; min-height: 64px; margin: 0; padding: 12px 20px; border: 0; border-bottom: 1px solid rgba(7,81,97,.1); border-radius: 0; background: white; color: #3d4e58; text-align: left; text-decoration: none; font: inherit; }
.app-contact-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 50%; background: #eaf7f8; color: #075161; }
.app-contact-icon .app-icon { width: 23px; height: 23px; }
.app-contact-action > span { min-width: 0; }
.app-contact-action strong, .app-contact-action small { display: block; }
.app-contact-action strong { font-size: 22px; font-weight: 600; line-height: 1.2; }
.app-contact-action small { margin-top: 3px; font-size: 19px; line-height: 1.25; color: #647780; overflow-wrap: anywhere; }
.app-contact-action:disabled { cursor: default; }
.app-contact-action:not(:disabled):hover { background: #eaf7f8; }
.pwa-shell .app-contact-menu .app-contact-note { flex-shrink: 0; margin: 0; padding: 12px 20px; background: #eaf7f8; color: #647780; font-size: 19px; line-height: 1.3; }
@media (max-width: 767px) {
  .pwa-shell .app-contact-action { min-height: 48px; gap: 11px; padding: 11px 13px; }
  .app-contact-icon { width: 34px; height: 34px; flex-basis: 34px; }
  .app-contact-icon .app-icon { width: 19px; height: 19px; }
  .app-contact-action strong { font-size: 15px; }
  .app-contact-action small { margin-top: 2px; font-size: 13px; line-height: 1.2; }
  .pwa-shell .app-contact-menu .app-contact-note { padding: 9px 13px; font-size: 13px; }
}

.app-offline-status { position: fixed; top: 72px; left: 32px; right: 32px; z-index: 100000009; background: #fff3cd; color: #513e00; padding: 8px 12px; border: 1px solid #997400; border-radius: 8px; }
.handoff-page-actions .app-action-buttons { display: flex; gap: 10px; }
.handoff-page-actions .app-action-buttons > * { flex: 1; min-width: 0; }
@media (min-width:1024px) {
  .pwa-shell .modal-dialog { --app-sheet-max: 500px; align-items: center; width: min(var(--app-sheet-width),var(--app-sheet-max)); left: calc(var(--app-sheet-left) + max(0px,(var(--app-sheet-width) - var(--app-sheet-max))/2)); }
  .pwa-shell .modal-dialog.modal-lg { --app-sheet-max: 800px; }
  .pwa-shell .handoff-tool-panel { top: calc(50% + 32px); max-height: calc(100dvh - 128px); }
}
@media (max-width:1023px) {
  :root { --pwa-bottom-navigation-clearance: 0px; }
  body.pwa-shell { padding-bottom: calc(var(--pwa-bottom-navigation-clearance) + 24px) !important; }
  html.app-authenticated { --pwa-bottom-navigation-clearance: 82px; }
  .app-header-inner { padding: 0 16px; gap: 8px; }
  .app-authenticated .app-header-inner { padding-inline: 8px; }
  .pwa-shell .app-brand { font-size: 18px; gap: 8px; }
  .app-brand img { width: 28px; height: 28px; }
  .app-desktop-nav { display: none; }
  .app-menu { right: 32px; }
  .app-menu[data-menu-anchor='bottom'] { top: auto; bottom: var(--app-menu-bottom, 70px); max-height: calc(100dvh - var(--app-header-height) - var(--app-menu-bottom, 70px) - 16px); }
  .pwa-shell .app-main { width: calc(100% - 64px); max-width: 540px; padding-top: 24px; overflow-wrap: anywhere; }
  .pwa-shell h1, .pwa-shell .welcome-intro h1 { font-size: 32px; }
  .pwa-shell .row { margin-inline: 0; row-gap: 16px; }
  .pwa-shell .row > [class*='col-'] { width: 100%; padding-inline: 0; }
  .pwa-shell .app-main [class*='row-cols-'] > * { width: 100%; max-width: 100%; }
  .pwa-shell .app-main .col { min-width: 0; }
  .pwa-shell .app-main .card { padding: 16px !important; flex-direction: column !important; align-items: stretch !important; gap: 16px; }
  .pwa-shell .app-main .bg-white.rounded { padding: 16px !important; }
  .pwa-shell .collapse.ms-5 { margin-left: 12px !important; }
  .welcome-layout { display: block; padding: 0; }
  .welcome-lead { font-size: 16px; margin-bottom: 20px; }
  .app-eyebrow { margin-bottom: 12px; }
  .welcome-steps { gap: 12px; margin-bottom: 24px; }
  .welcome-steps div > span { display: none; }
  .welcome-steps li { align-items: center; font-size: 16px; }
  .welcome-step-icon { width: 32px; height: 32px; border-radius: 8px; }
  .welcome-step-icon .app-icon { width: 20px; height: 20px; }
  .signin-card { padding: 20px 16px; }
  .signin-card h2 { font-size: 20px; }
  .signin-icon { display: none; }
  .signin-card p { margin-bottom: 16px; }
  .signin-consent { margin: 20px 0; }
  .app-footer { padding-block: 16px !important; }
  .pwa-shell .handoff-bottom-stack [data-bottom-navigation] { background: rgba(7,81,97,.78); backdrop-filter: blur(6px); border-top: 2px solid #ffd259; }
  .pwa-shell .handoff-bottom-stack .app-bottom-nav { display: grid; grid-template-columns: 52px repeat(var(--app-workspace-items,2),minmax(0,1fr)) 52px; align-items: stretch; min-height: 68px; padding-inline: 8px; border-bottom: 2px solid #ffd259; }
  .app-bottom-nav[data-workspace-items='3'] { --app-workspace-items: 3; }
  .pwa-shell .app-bottom-nav > a, .pwa-shell .app-bottom-nav > button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 58px; padding: 5px 2px; color: #ffffffd1; background: transparent; border: 0; text-align: center; text-decoration: none; font: 700 12px/1.15 'Open Sans',system-ui,sans-serif; cursor: pointer; }
  .pwa-shell .app-bottom-nav > a { flex: 1; }
  .pwa-shell .app-bottom-nav .app-nav-edge { flex: 0 0 44px; }
  .pwa-shell .app-bottom-nav .app-nav-menu { flex-basis: 52px; }
  .app-bottom-nav > a > span, .app-bottom-nav .app-nav-label { display: flex; align-items: center; justify-content: center; min-height: 1.15em; white-space: nowrap; }
  .app-bottom-nav .app-nav-menu > span:not(.app-nav-label) { display: grid; place-items: center; }
  .pwa-shell .app-bottom-nav > a[aria-current], .pwa-shell .app-bottom-nav button[aria-expanded='true'] { color: #00d9ae; }
  .pwa-shell .app-bottom-nav .app-icon { width: 26px; height: 26px; }
  .pwa-shell .app-bottom-nav .app-nav-edge:first-child .app-icon { width: 21px; }
  .pwa-shell .handoff-page-actions { padding-block: 10px; }
  .app-main :is(input,textarea,select,.invalid-feedback,[role='alert']) { scroll-margin-block: 88px calc(var(--pwa-bottom-navigation-clearance) + 24px); }
  .app-wizard-inline-actions { display: none; }
}
@media (max-width:359px) {
  .app-authenticated .app-brand { font-size: 16px; gap: 6px; }
  .app-authenticated .app-brand img { width: 24px; height: 24px; }
}
@media (prefers-reduced-motion:reduce) {
  .pwa-shell *, .pwa-shell *::before, .pwa-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

#aboutModal .modal-body, #tosModal .modal-body { font-size: 18px; }

.app-bundle-list .app-empty { margin: 0; }

.pwa-shell .nav-dark .nav-link { width: 100%; color: #075161; text-align: left; }
.pwa-shell .nav-dark .nav-link.active { background: #075161; color: white; }
.pwa-shell .button-box { padding-top: 20px; }
.pwa-shell .button-box > .d-flex { flex-wrap: wrap; gap: 8px; }
#confirmation-copy { margin-bottom: 16px; padding: 10px 12px; background: #eef7f8; color: #075161; border-radius: 8px; }
nav.pagination-bar { margin-bottom: 16px; }

.app-menu-close-icon .app-icon { width: 32px; height: 32px; }
.pwa-shell .btn-outline-primary { background: white; border-color: #349fb7; color: #075161; }
.pwa-shell .btn-check:checked + .btn-outline-dark, .pwa-shell .btn-check:checked + .btn-outline-primary { background: #075161; border-color: #075161; color: white !important; }
.pwa-shell .btn-check:focus-visible + .btn { outline: 3px solid #349fb7; outline-offset: 2px; }
.pwa-shell .btn-warning { background: #ffd259; border-color: #ffd259; color: #075161; }
.pwa-shell .btn-danger, .pwa-shell .btn-outline-danger { min-height: 46px; padding: 10px 20px; border: 1px solid #ead5d8; border-radius: 8px; background: white; color: #a1374b; font: 700 16px/1.6 'Open Sans',system-ui,sans-serif; }
.pwa-shell :is(.btn-danger,.btn-outline-danger):not(:disabled):not(.disabled):hover { background: #fff6f7; border-color: #d8b2bb; color: #a1374b; }
.pwa-shell :is(.btn-danger,.btn-outline-danger):not(:disabled):not(.disabled):active { background: #fbecef; border-color: #a1374b; color: #a1374b; }
.pwa-shell :is(.btn-danger,.btn-outline-danger):focus-visible { outline-color: #a1374b; }
.pwa-shell :is(.btn-danger,.btn-outline-danger):disabled, .pwa-shell :is(.btn-danger,.btn-outline-danger).disabled { background: white; border-color: #ead5d8; color: #a1374b; opacity: .55; cursor: not-allowed; }
.pwa-shell .modal-body .col-form-label, .pwa-shell .modal-body .form-label { display: block; padding: 0; margin-bottom: 8px; color: #4f747e; font-weight: 600; }
.pwa-shell .modal-body select:not([multiple]) { width: 100%; }

/* Compact agreement context and document actions. */
.app-bundle-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; font-size: 12px; color: var(--app-muted); }
.app-breadcrumbs { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 32px; flex: 1; color: white; font-size: 14px; font-weight: 700; line-height: 1.4; }
.pwa-shell .app-breadcrumbs a { color: white; text-decoration: none; }
.pwa-shell .app-breadcrumbs a:hover { text-decoration: underline; }
.pwa-shell .app-breadcrumbs a:focus-visible { outline-color: #ffd259; }
.app-breadcrumb-home { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; }
.app-breadcrumb-home svg { display: block; width: 22px; height: 22px; flex-shrink: 0; }
.app-breadcrumb-separator { flex-shrink: 0; color: #c8e0e5; }
.app-breadcrumbs [aria-current='page'] { color: #ffd259; }
.app-breadcrumbs > a, .app-breadcrumbs > [aria-current='page']:last-child { flex-shrink: 0; }
.app-breadcrumbs .app-breadcrumb-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-breadcrumbs > .app-breadcrumb-title[aria-current='page'] { flex-shrink: 1; }
.app-bundle-date { flex-shrink: 0; white-space: nowrap; color: #eef7f8; }
.app-document-surface { min-width: 0; padding: 32px; margin-bottom: 24px; border: 1px solid var(--app-border); border-radius: 12px; background: white; overflow-wrap: anywhere; scroll-margin-top: 88px; }
.app-bundle-toolbar { display: flex; align-items: stretch; justify-content: flex-start; gap: 8px; margin-bottom: 16px; }
.app-bundle-toolbar > :is(a,button) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--app-border); border-radius: 8px; background: white; color: var(--pwa-teal); font: 700 16px/1.35 'Open Sans',sans-serif; text-decoration: none; }
.app-bundle-toolbar > :is(a,button):hover { background: #eef7f8; }
.app-choice-list { display: grid; gap: 12px; }
.pwa-shell .app-choice { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 16px; border: 1px solid var(--app-border); border-radius: 8px; background: white; color: var(--pwa-ink); text-decoration: none; text-align: left; font: 600 16px/1.5 'Open Sans',sans-serif; overflow-wrap: anywhere; }
.app-choice > span:last-child { min-width: 0; }
.pwa-shell .app-choice:hover { background: #eef7f8; }
.pwa-shell .app-choice:is([aria-current='page'],[aria-pressed='true']) { border-color: #00b894; background: #eef7f8; }
.app-choice-indicator { display: grid; place-items: center; flex: 0 0 24px; color: #075161; }
.app-choice:not([aria-current='page']):not([aria-pressed='true']) .app-choice-indicator { visibility: hidden; }
.app-reference-link { display: inline-block; margin-top: 20px; padding-block: 8px; }
@media (max-width:1023px) {
  .app-bundle-toolbar { display: none; }
  .app-bundle-meta { flex-wrap: wrap; gap: 4px; margin-bottom: 16px; }
  .app-breadcrumbs { flex-basis: 100%; }
  .app-document-surface { padding: 20px 16px; }
  .pwa-shell .handoff-bottom-stack .app-context-nav { display: flex; align-items: stretch; min-height: 64px; padding: 0 8px; }
  .pwa-shell .app-context-nav > :is(a,button) { display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 62px; padding: 6px 2px; border: 0; background: transparent; color: #ffffffd1; font: 700 12px/1.15 'Open Sans',sans-serif; text-decoration: none; text-align: center; }
  .app-context-nav .app-icon { width: 24px; height: 24px; }
  .app-context-nav > :is(a,button):hover { color: #00d9ae; }
}

/* Contact dropdown is rail-anchored on desktop as well as mobile. */
.pwa-shell .handoff-tool-panel.app-contact-menu { top: auto; transform: none; }

/* Shared link field and action, kept together inside the export sheet. */
.pwa-shell .app-copy-control { display: flex; align-items: stretch; gap: 4px; min-width: 0; padding: 4px; border: 2px solid #349fb7; border-radius: 8px; background: white; }
.pwa-shell .app-copy-control:focus-within { outline: 3px solid #349fb7; outline-offset: 2px; }
.pwa-shell .app-copy-control .form-control { flex: 1 1 0; min-width: 0; width: 0; max-width: none; border: 0; background: white; }
.pwa-shell .app-copy-control [data-bundle-copy] { flex: 0 0 auto; min-width: 80px; min-height: 48px; margin: 0; padding: 10px 16px; border: 0; border-radius: 6px; color: white; white-space: nowrap; }

.signin-alternatives { display: grid; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--app-border); }
.signin-card .signin-alternatives p { margin: 0; font-size: 14px; text-align: center; }
.signin-alternatives .btn { width: 100%; }

@media (max-width: 1023px) and (max-height: 960px) {
  .welcome-intro > .app-eyebrow, .welcome-steps, .signin-card > p.app-muted { display: none; }
  .pwa-shell .welcome-intro h1 { font-size: 28px; margin-bottom: 8px; }
  .welcome-lead { margin-bottom: 16px; }
  .signin-consent { margin-block: 16px; }
  .signin-alternatives { gap: 8px; margin-top: 16px; padding-top: 12px; }
}

/* One checkbox treatment for native fields, consent and crispy-generated forms. */
.pwa-shell .app-checkbox-row, .pwa-shell .form-check { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-left: 0; }
.pwa-shell .form-check-label { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; }
.pwa-shell .app-checkbox-row > label, .pwa-shell .form-check-label { flex: 1; min-width: 0; margin: 0; padding: 0; color: var(--pwa-ink); font: inherit; cursor: pointer; }
.pwa-shell input[type='checkbox']:not(.btn-check) { appearance: none; -webkit-appearance: none; position: static; float: none; flex: 0 0 24px; width: 24px; height: 24px; min-width: 24px; min-height: 24px; margin: 2px 0 0; padding: 0; border: 2px solid #9bbcc5; border-radius: 3px; background: white; cursor: pointer; }
.pwa-shell input[type='checkbox']:not(.btn-check):checked { border-color: #075161; background-color: #00d9ae; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='%23075161' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-size: 100%; background-position: center; background-repeat: no-repeat; }
.pwa-shell input[type='checkbox']:not(.btn-check):indeterminate { border-color: #075161; background: #00d9ae linear-gradient(#075161,#075161) center / 12px 3px no-repeat; }
.pwa-shell input[type='checkbox']:not(.btn-check):disabled { opacity: .5; cursor: not-allowed; }
@media (forced-colors: active) {
  .pwa-shell input[type='checkbox']:not(.btn-check) { appearance: auto; -webkit-appearance: auto; }
}
