:root{--nexus-form-brand: var(--portal-brand);--nexus-form-on-brand: var(--portal-on-brand);--nexus-form-surface: var(--portal-surface);--nexus-form-line: var(--portal-line);--nexus-form-ink: var(--portal-ink);--nexus-form-muted: var(--portal-muted);--nexus-form-surface-alt: var(--portal-surface-alt);--nexus-form-brand-soft: var(--portal-brand-soft);--nexus-form-pending-soft: var(--portal-pending-soft);--nexus-form-pending: var(--portal-pending)}.portal-app{display:grid;grid-template-rows:auto 1fr auto;min-height:100dvh;min-height:100vh}.portal-topbar{background:var(--portal-surface);border-bottom:1px solid var(--portal-line);padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.portal-topbar__brand{color:var(--portal-brand);display:flex;align-items:center;flex-shrink:0}.portal-topbar__wordmark{display:block;max-width:140px}.portal-topbar__actions{display:flex;align-items:center;gap:12px}.portal-active-patient{background:var(--portal-brand-soft);border:1px solid var(--portal-brand);color:var(--portal-ink);border-radius:999px;padding:4px 12px;font-size:14px;cursor:pointer;min-height:32px}.portal-avatar-btn{width:44px;height:44px;border-radius:50%;border:1px solid var(--portal-line);background:var(--portal-brand-soft);color:var(--portal-brand);font-weight:600;cursor:pointer}.portal-notification-btn{position:relative;min-width:44px;min-height:44px;border:1px solid var(--portal-line);border-radius:999px;background:var(--portal-surface);color:var(--portal-ink);font:inherit;font-size:14px;padding:8px 12px;cursor:pointer}.portal-notification-badge{position:absolute;top:-6px;right:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--portal-error);color:var(--portal-surface);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;border:2px solid var(--portal-surface)}.portal-avatar-menu{position:absolute;right:16px;top:60px;background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:8px;box-shadow:0 6px 24px #00000014;padding:8px;min-width:200px;z-index:50}.portal-avatar-menu button{display:block;width:100%;text-align:left;background:none;border:0;padding:10px 12px;border-radius:6px;font-size:15px;cursor:pointer;color:var(--portal-ink);min-height:44px}.portal-avatar-menu button:hover,.portal-avatar-menu button:focus-visible{background:var(--portal-surface-alt)}.portal-main{padding:24px 16px;max-width:640px;margin:0 auto;width:100%;min-width:0}@media(min-width:640px){.portal-main{padding:28px 24px;max-width:720px}}@media(min-width:1024px){.portal-main{padding:32px;max-width:1080px}}.portal-bottomnav{background:var(--portal-surface);border-top:1px solid var(--portal-line);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;position:sticky;bottom:0}.portal-bottomnav__item{background:none;border:0;padding:14px 4px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:15px;font-weight:500;color:var(--portal-muted);cursor:pointer;min-height:56px}.portal-bottomnav__item[aria-current=page]{color:var(--portal-brand);font-weight:600}.portal-card{background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:12px;padding:20px;margin-bottom:16px;min-width:0;max-width:100%}.portal-page--narrow{max-width:480px;margin-inline:auto}.portal-page--form{max-width:640px;margin-inline:auto}.portal-form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}.portal-back-link{margin:0 0 4px -8px}.portal-form{min-width:0;max-width:100%}.portal-heading{font-size:24px;font-weight:700;margin:0 0 8px;color:var(--portal-ink)}@media(min-width:1024px){.portal-heading{font-size:28px}}.portal-subheading{font-size:18px;font-weight:600;margin:0 0 8px;color:var(--portal-ink)}@media(min-width:1024px){.portal-subheading{font-size:20px}}.portal-text{margin:0 0 12px;color:var(--portal-ink);line-height:1.5}.portal-text--muted{color:var(--portal-muted)}.portal-text--footnote{font-size:13px;line-height:1.5;margin-top:16px}.portal-form-field{display:flex;flex-direction:column;gap:6px;margin-bottom:16px;min-width:0}.portal-form-field label{font-size:14px;font-weight:600;color:var(--portal-ink)}.portal-form-field input,.portal-form-field textarea{width:100%;min-width:0;padding:12px;border:1px solid var(--portal-line);border-radius:8px;font-size:16px;font-family:inherit;background:var(--portal-surface);color:var(--portal-ink);min-height:44px}.portal-form-field input:focus-visible,.portal-form-field textarea:focus-visible{border-color:var(--portal-brand);outline:3px solid var(--portal-brand);outline-offset:0}.portal-form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin-bottom:16px}.portal-field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:600;color:var(--portal-ink)}.portal-field input{padding:12px;border:1px solid var(--portal-line);border-radius:8px;font-size:16px;font-family:inherit;background:var(--portal-surface);color:var(--portal-ink);min-height:44px}.portal-field input:focus-visible{border-color:var(--portal-brand);outline:3px solid var(--portal-brand);outline-offset:0}.portal-btn{display:inline-flex;align-items:center;justify-content:center;padding:12px 20px;border:0;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;background:var(--portal-brand);color:#fff;min-height:44px;min-width:44px}.portal-btn:hover:not(:disabled){background:var(--portal-brand-strong)}.portal-btn:disabled{background:var(--portal-line);color:var(--portal-muted);cursor:not-allowed}.portal-btn--secondary{background:var(--portal-surface);color:var(--portal-brand);border:1px solid var(--portal-brand)}.portal-btn--secondary:hover:not(:disabled){background:var(--portal-brand-soft);color:var(--portal-brand-strong)}.portal-btn--link{background:none;color:var(--portal-brand);text-decoration:underline;padding:4px 8px;min-height:44px}.portal-btn--link:hover:not(:disabled){background:none;color:var(--portal-brand-strong)}.portal-card-image .portal-btn--link:not(:disabled){color:var(--portal-brand-strong)}.portal-otp-row{display:flex;gap:8px;justify-content:center;margin:16px 0}.portal-otp-cell{width:44px;height:56px;text-align:center;font-size:24px;font-weight:700;border:1px solid var(--portal-line);border-radius:8px;background:var(--portal-surface);color:var(--portal-ink)}.portal-otp-cell:focus-visible{border-color:var(--portal-brand);outline:3px solid var(--portal-brand)}.portal-error-banner{background:var(--portal-error-soft);border:1px solid var(--portal-error);color:var(--portal-error);border-radius:8px;padding:12px;margin-bottom:16px}.portal-status-banner{background:var(--portal-brand-soft);border:1px solid var(--portal-brand);color:var(--portal-brand);border-radius:8px;padding:12px;margin-bottom:16px}.portal-modal-backdrop{position:fixed;inset:0;background:#00000073;display:flex;align-items:center;justify-content:center;padding:16px;z-index:100}.portal-modal{background:var(--portal-surface);border-radius:16px;padding:24px;max-width:480px;width:100%;box-shadow:0 12px 32px #0000002e}.portal-empty-state{text-align:center;padding:32px 16px;color:var(--portal-muted)}.portal-link-button{background:none;border:0;padding:4px 8px;color:var(--portal-brand);text-decoration:underline;cursor:pointer;font-size:inherit;font-family:inherit;min-height:44px}.portal-list{list-style:none;padding:0;margin:0}.portal-list>li{border-bottom:1px solid var(--portal-line);padding:0}.portal-list>li:last-child{border-bottom:0}.portal-list-item{appearance:none;display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;padding:12px 8px;cursor:pointer;text-decoration:none;min-height:56px}.portal-list-item__title{font-size:16px;font-weight:600;color:var(--portal-ink)}.portal-list-item__meta{font-size:14px;color:var(--portal-muted)}.portal-checklist-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.portal-checklist-list__item{border:1px solid var(--portal-line);border-radius:8px}.portal-checklist-list__action{appearance:none;display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;border-radius:8px;padding:12px 16px;cursor:pointer;min-height:56px}.portal-checklist-list__action:hover,.portal-checklist-list__action:focus-visible{background:var(--portal-surface-alt)}.portal-checklist-list__label{display:flex;flex-direction:column;gap:2px;font-weight:600;color:var(--portal-ink)}.portal-checklist-list__arrow{flex-shrink:0;font-size:20px;color:var(--portal-brand)}.portal-checkbox-row{display:flex;align-items:center;gap:8px;padding:8px 0;font-size:16px;color:var(--portal-ink);min-height:44px}.portal-checkbox-row input[type=checkbox],.portal-checkbox-row input[type=radio]{width:20px;height:20px;margin:0;flex:0 0 auto}.portal-checkbox-row span,.portal-form-field label,.portal-text{min-width:0;overflow-wrap:anywhere}.portal-modal__actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:flex-start;margin-top:12px}.portal-form-field select{width:100%;min-width:0;padding:12px;border:1px solid var(--portal-line);border-radius:8px;font-size:16px;font-family:inherit;background:var(--portal-surface);color:var(--portal-ink);min-height:44px}.portal-form-field select:focus-visible{border-color:var(--portal-brand);outline:3px solid var(--portal-brand);outline-offset:0}.portal-policy-view{margin:0 0 12px;padding:0}.portal-policy-view__row{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--portal-line)}.portal-policy-view__row dt{font-size:14px;color:var(--portal-muted);font-weight:600}.portal-policy-view__row dd{font-size:16px;color:var(--portal-ink);margin:0}.portal-policy-view__row:last-of-type{border-bottom:0}.portal-card-images{margin-top:16px}.portal-card-images__grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.portal-card-image{border:1px solid var(--portal-line);border-radius:8px;padding:12px;background:var(--portal-surface-alt)}.portal-card-image__img{width:100%;max-height:220px;object-fit:contain;border-radius:6px;background:var(--portal-surface);border:1px solid var(--portal-line)}.portal-signature-pad{width:100%;margin:12px 0;min-width:0;max-width:100%}.portal-signature-pad__canvas{display:block;width:100%;height:var(--pad-height, 200px);background:#fff;border:1px dashed var(--portal-line);border-radius:6px;touch-action:none;cursor:crosshair}.portal-signature-pad__canvas--disabled{cursor:not-allowed}.portal-signature-pad__actions{display:flex;justify-content:flex-end;margin-top:8px;flex-wrap:wrap}@media(max-width:480px){.portal-main{padding:16px 12px}.portal-card{padding:16px}.portal-form-actions .portal-btn{width:100%}}.portal-card--inline{margin:8px 0;padding:12px}.portal-consent-body{background:var(--portal-surface-alt);border:1px solid var(--portal-line);border-radius:8px;padding:16px;font-size:15px;line-height:1.6;color:var(--portal-ink);overflow-wrap:anywhere}.portal-consent-body__heading{margin:20px 0 8px;font-size:16px;font-weight:600;line-height:1.4;color:var(--portal-ink)}.portal-consent-body__heading:first-child{margin-top:0}.portal-consent-body__paragraph{margin:0 0 12px;max-width:68ch;white-space:pre-wrap;overflow-wrap:anywhere}.portal-consent-body__paragraph:last-child{margin-bottom:0}.portal-text--preformatted{white-space:pre-wrap}.portal-gloss{color:var(--portal-muted);font-style:italic}.portal-spacer-top-12{margin-top:12px}.portal-spacer-top-16{margin-top:16px}.portal-visually-hidden-input{position:absolute;left:-9999px;width:1px;height:1px}.portal-file-input--hidden{display:none}.portal-square-card-container{min-height:90px}.portal-dashboard-grid{display:grid;grid-template-columns:1fr;gap:12px;margin:8px 0 24px}@media(min-width:640px){.portal-dashboard-grid{grid-template-columns:repeat(2,1fr);gap:16px}}@media(min-width:1024px){.portal-dashboard-grid{grid-template-columns:repeat(3,1fr);gap:20px}}.portal-dashboard-tile{width:100%;display:flex;align-items:flex-start;gap:16px;text-align:left;padding:16px;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface);color:var(--portal-ink);cursor:pointer;font:inherit;min-height:88px}@media(min-width:640px){.portal-dashboard-tile{padding:20px;min-height:120px;gap:18px}}@media(min-width:1024px){.portal-dashboard-tile{padding:28px;min-height:160px;gap:20px}}.portal-dashboard-tile:hover:not(:disabled){background:var(--portal-surface-alt);border-color:var(--portal-brand)}.portal-dashboard-tile:focus-visible{outline:3px solid var(--portal-brand);outline-offset:2px;border-color:var(--portal-brand)}.portal-dashboard-tile--disabled,.portal-dashboard-tile:disabled{opacity:.65;cursor:not-allowed;background:var(--portal-surface-alt)}.portal-dashboard-tile__icon{flex:0 0 auto;width:40px;height:40px;border-radius:8px;display:flex;align-items:center;justify-content:center;background:var(--portal-brand-soft);color:var(--portal-ink)}@media(min-width:1024px){.portal-dashboard-tile__icon{width:48px;height:48px;border-radius:10px}}.portal-dashboard-tile__body{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1 1 auto}.portal-dashboard-tile__title{font-size:16px;font-weight:600;color:var(--portal-ink);display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap}@media(min-width:640px){.portal-dashboard-tile__title{font-size:18px}}@media(min-width:1024px){.portal-dashboard-tile__title{font-size:20px}}.portal-dashboard-tile__description{font-size:14px;font-weight:400;color:var(--portal-muted);line-height:1.45}@media(min-width:1024px){.portal-dashboard-tile__description{font-size:15px;line-height:1.5}}.portal-dashboard-tile__badge{font-size:12px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--portal-brand-soft);color:var(--portal-ink);text-transform:none;letter-spacing:0}.portal-chip{display:inline-block;align-self:flex-start;padding:2px 10px;border-radius:999px;font-size:13px;font-weight:600;border:1px solid currentColor}.portal-chip--pending{background:var(--portal-pending-soft);color:var(--portal-pending)}.portal-chip--accepted{background:var(--portal-ok-soft);color:var(--portal-ok)}.portal-chip--returned{background:var(--portal-error-soft);color:var(--portal-error)}.portal-chip--withdrawn{background:var(--portal-surface-alt);color:var(--portal-muted)}.portal-note-approvals{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:2px}
