:root{--brand-primary:#10b981;--brand-primary-hover:#059669;--brand-secondary:#ef4444;--brand-secondary-hover:#dc2626;--brand-dark:#111827;--brand-surface:#1f2937;--brand-surface-light:#fff;--brand-border:#cbdad1;--brand-text:#19332d;--brand-text-muted:#4b6358;--brand-accent:#f59e0b;color:var(--brand-text);font-synthesis:none;text-rendering:optimizelegibility;background:#f4f6f5;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,select,textarea{font:inherit}.shell{place-items:center;min-height:100vh;padding:2rem;display:grid}.app-layout{flex-direction:column;min-height:100vh;display:flex}.app-header{background:#fff;border-bottom:1px solid #cbdad1;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 2rem;display:flex}.header-brand{align-items:center;gap:.75rem;display:flex}.brand-title{color:#176744;letter-spacing:-.02em;margin:0;font-size:1.25rem;font-weight:800}.header-user{align-items:center;gap:1rem;font-size:.9rem;display:flex}.header-user-info{flex-direction:column;align-items:flex-end;display:flex}.header-user-name{color:#19332d;font-weight:700}.header-user-email{color:#687e74;font-size:.8rem}.app-main{flex-direction:column;flex:1;gap:1.75rem;width:100%;max-width:68rem;margin:0 auto;padding:2rem 1.5rem;display:flex}.card{background:#fff;border:1px solid #cbdad1;border-radius:1.5rem;width:min(100%,42rem);padding:clamp(2rem,6vw,4rem);box-shadow:0 1.5rem 4rem #19332d14}.panel-card{background:#fff;border:1px solid #cbdad1;border-radius:1rem;padding:1.75rem;box-shadow:0 4px 12px #19332d0a}.panel-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;margin-bottom:1.25rem;display:flex}.panel-title{color:#19332d;margin:0;font-size:1.35rem;font-weight:750}.eyebrow{color:#217a57;letter-spacing:.14em;text-transform:uppercase;margin:0 0 1rem;font-size:.75rem;font-weight:750}h1{text-wrap:balance;margin:0;font-size:clamp(2rem,6vw,3.5rem);line-height:1.02}.badge{text-transform:uppercase;letter-spacing:.05em;border-radius:2rem;align-items:center;padding:.25rem .6rem;font-size:.75rem;font-weight:700;display:inline-flex}.badge-admin{color:#0369a1;background:#e0f2fe;border:1px solid #bae6fd}.badge-professional{color:#15803d;background:#dcfce7;border:1px solid #bbf7d0}.badge-active,.badge-published{color:#166534;background:#dcfce7}.badge-inactive,.badge-suspended,.badge-archived{color:#991b1b;background:#fee2e2}.badge-draft{color:#92400e;background:#fef3c7}.badge-habit{color:#065f46;background:#ecfdf5;border:1px solid #a7f3d0}.badge-metric{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.badge-task{color:#6b21a8;background:#faf5ff;border:1px solid #e9d5ff}.badge-content{color:#92400e;background:#fffbeb;border:1px solid #fde68a}.badge-paused{color:#92400e;background:#fef3c7;border:1px solid #fde68a}.badge-completed{color:#1e40af;background:#eff6ff;border:1px solid #bfdbfe}.badge-cancelled,.badge-abandoned,.badge-expired{color:#991b1b;background:#fee2e2;border:1px solid #fecaca}.notice-banner{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:.75rem;padding:1rem 1.25rem;font-size:.9rem;line-height:1.5}.notice-banner-warning{color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:.75rem;padding:1rem 1.25rem;font-size:.9rem;line-height:1.5}.sign-in-form{gap:1.25rem;margin-top:2rem;display:grid}.field{gap:.45rem;display:grid}.field label{color:#2e443c;font-size:.85rem;font-weight:700}.field input,.field select,.field textarea{color:#19332d;background:#fff;border:1px solid #9cb2a7;border-radius:.65rem;min-height:2.75rem;padding:.65rem .85rem}.field textarea{resize:vertical;min-height:4.5rem}.field input:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #217a5740}button{color:#fff;cursor:pointer;background:#217a57;border:0;border-radius:.65rem;justify-content:center;align-items:center;gap:.5rem;min-height:2.5rem;padding:.6rem 1.15rem;font-weight:750;display:inline-flex}button:hover:not(:disabled){background:#176744}button:disabled{cursor:wait;opacity:.65}.secondary-button{color:#1b6248;background:#e8f2ec}.secondary-button:hover:not(:disabled){background:#d5e6dc}.action-button-primary{color:#fff;background:#217a57;border-radius:.5rem;min-height:2rem;padding:.35rem .75rem;font-size:.8rem}.action-button-primary:hover:not(:disabled){background:#176744}.action-button-danger{color:#991b1b;background:#fee2e2;border-radius:.5rem;min-height:2rem;padding:.35rem .75rem;font-size:.8rem}.action-button-danger:hover:not(:disabled){background:#fecaca}.action-button-success{color:#15803d;background:#dcfce7;border-radius:.5rem;min-height:2rem;padding:.35rem .75rem;font-size:.8rem}.action-button-success:hover:not(:disabled){background:#bbf7d0}.action-button-neutral{color:#2e443c;background:#f0f4f1;border-radius:.5rem;min-height:2rem;padding:.35rem .75rem;font-size:.8rem}.action-button-neutral:hover:not(:disabled){background:#e2ebe5}.form-error{color:#a12b2b;margin:.75rem 0 0;font-size:.9rem;line-height:1.4}.org-table{border-collapse:collapse;width:100%;margin-top:1rem}.org-table th{text-align:left;color:#556c62;text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid #e2ece6;padding:.75rem 1rem;font-size:.8rem}.org-table td{border-bottom:1px solid #e8f0eb;padding:.9rem 1rem;font-size:.95rem}.org-table tr:hover td{background:#f9fbf9}.create-form-container{background:#f8faf8;border:1px solid #dbe6df;border-radius:.75rem;margin-bottom:1.5rem;padding:1.25rem}.form-row{grid-template-columns:1fr 1fr;gap:1rem;display:grid}.form-actions{justify-content:flex-end;gap:.75rem;margin-top:1rem;display:flex}.grid-cards{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.25rem;display:grid}.feature-placeholder{text-align:center;color:#687e74;border:2px dashed #cbdad1;border-radius:.75rem;padding:1.5rem}.feature-placeholder h3{color:#19332d;margin:0 0 .5rem}.workspace-tabs{border-bottom:2px solid #cbdad1;gap:.5rem;padding-bottom:0;display:flex}.tab-button{color:#556c62;cursor:pointer;background:0 0;border:0;border-bottom:3px solid #0000;border-radius:.5rem .5rem 0 0;margin-bottom:-2px;padding:.65rem 1.25rem;font-size:.95rem;font-weight:700}.tab-button:hover:not(:disabled){color:#176744;background:#eef4f0}.tab-button.active{color:#176744;background:#fff;border-bottom-color:#217a57}.toolbar-container{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1.25rem;display:flex}.toolbar-filters{flex-wrap:wrap;align-items:center;gap:.75rem;display:flex}.toolbar-filters input{min-width:260px}.modal-overlay{z-index:100;background:#0f1f1a73;justify-content:center;align-items:center;padding:1.5rem;display:flex;position:fixed;inset:0}.modal-card{background:#fff;border:1px solid #cbdad1;border-radius:1.25rem;width:min(100%,38rem);max-height:90vh;padding:2rem;overflow-y:auto;box-shadow:0 20px 40px #0003}.modal-header{border-bottom:1px solid #e8f0eb;justify-content:space-between;align-items:flex-start;margin-bottom:1.5rem;padding-bottom:1rem;display:flex}.modal-title{color:#19332d;margin:0;font-size:1.4rem}.detail-grid{grid-template-columns:1fr 1fr;gap:1.25rem;display:grid}.detail-item{flex-direction:column;gap:.25rem;display:flex}.detail-label{text-transform:uppercase;letter-spacing:.05em;color:#687e74;font-size:.75rem;font-weight:700}.detail-value{color:#19332d;font-size:1rem;font-weight:600}.table-actions{align-items:center;gap:.5rem;display:flex}.program-designer{flex-direction:column;gap:1.5rem;display:flex}.designer-header{border-bottom:1px solid #e8f0eb;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;padding-bottom:1.25rem;display:flex}.stage-card{background:#fbfdfc;border:1px solid #dbe6df;border-radius:.85rem;flex-direction:column;gap:1rem;padding:1.25rem;display:flex}.stage-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.stage-title-group{align-items:center;gap:.75rem;display:flex}.stage-number-badge{color:#fff;background:#176744;border-radius:50%;justify-content:center;align-items:center;width:1.75rem;height:1.75rem;font-size:.8rem;font-weight:800;display:flex}.activities-list{flex-direction:column;gap:.5rem;margin-left:.5rem;display:flex}.activity-item{background:#fff;border:1px solid #e2ece6;border-radius:.6rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 1rem;display:flex}.activity-info{flex-wrap:wrap;align-items:center;gap:.65rem;display:flex}.activity-form{background:#f3f7f4;border:1px dashed #cbdad1;border-radius:.65rem;margin-top:.5rem;padding:1rem}.enrollments-container{flex-direction:column;gap:1rem;margin-top:1.5rem;display:flex}.enrollments-list{flex-direction:column;gap:.75rem;display:flex}.enrollment-card{background:#fff;border:1px solid #dbe6df;border-radius:.75rem;flex-direction:column;gap:.75rem;padding:1rem;display:flex}.enrollment-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;display:flex}.enrollment-title-group{align-items:center;gap:.5rem;display:flex}.enrollment-meta{color:#556c62;flex-wrap:wrap;gap:1rem;font-size:.85rem;display:flex}.enroll-form-card{background:#f3f7f4;border:1px solid #cbdad1;border-radius:.75rem;margin-bottom:1rem;padding:1.25rem}@media (width<=640px){.shell{padding:1rem}.card{border-radius:1rem;padding:1.5rem}.app-header{padding:1rem}.form-row,.detail-grid{grid-template-columns:1fr}.toolbar-container{flex-direction:column;align-items:stretch}.toolbar-filters input{min-width:100%}}.brand-header-wrap{align-items:center;gap:.75rem;display:flex}.brand-logo-img{object-fit:cover;border:1px solid #fff3;border-radius:8px;width:38px;height:38px;box-shadow:0 2px 6px #00000026}.brand-badge-sports{color:#fff;background:linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));text-transform:uppercase;letter-spacing:.06em;border-radius:9999px;padding:.2rem .55rem;font-size:.7rem;font-weight:700;display:inline-block}.portal-container{width:100%;max-width:860px;margin:0 auto;padding:1.5rem 1rem}.portal-banner{color:#fff;background:linear-gradient(135deg,#111827 0%,#1e293b 100%);border-radius:1rem;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1.25rem;margin-bottom:1.5rem;padding:1.75rem;display:flex;box-shadow:0 4px 12px #0000001a}.portal-banner h1{letter-spacing:-.02em;margin:0 0 .4rem;font-size:1.5rem;font-weight:800}.portal-banner p{color:#94a3b8;margin:0;font-size:.95rem}.portal-progress-card{background:#ffffff14;border:1px solid #ffffff1f;border-radius:.75rem;min-width:220px;padding:1rem 1.25rem}.portal-progress-header{justify-content:space-between;margin-bottom:.5rem;font-size:.85rem;font-weight:600;display:flex}.portal-progress-track{background:#fff3;border-radius:9999px;width:100%;height:8px;overflow:hidden}.portal-progress-fill{background:linear-gradient(90deg, var(--brand-primary), #34d399);border-radius:9999px;height:100%;transition:width .4s ease-in-out}.portal-date-bar{border:1px solid var(--brand-border);background:#fff;border-radius:.75rem;justify-content:space-between;align-items:center;margin-bottom:1.5rem;padding:.85rem 1.25rem;display:flex;box-shadow:0 1px 3px #00000008}.portal-date-selector{align-items:center;gap:.75rem;display:flex}.portal-date-selector input[type=date]{border:1px solid var(--brand-border);color:var(--brand-text);background:#f8fafc;border-radius:.5rem;padding:.4rem .75rem;font-weight:600}.portal-activities-list{flex-direction:column;gap:1rem;display:flex}.portal-activity-card{border:1px solid var(--brand-border);background:#fff;border-radius:.85rem;justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem;transition:all .2s;display:flex;box-shadow:0 1px 3px #00000008}.portal-activity-card:hover{border-color:#94a3b8;box-shadow:0 3px 8px #0000000f}.portal-activity-card.is-completed{border-left:5px solid var(--brand-primary);background:#fcfdfd}.portal-activity-info{flex:1}.portal-activity-title{align-items:center;gap:.6rem;margin:0 0 .35rem;font-size:1.05rem;font-weight:700;display:flex}.portal-activity-desc{color:var(--brand-text-muted);margin:0;font-size:.88rem;line-height:1.4}.portal-activity-meta{color:#64748b;align-items:center;gap:.75rem;margin-top:.4rem;font-size:.78rem;display:flex}.portal-activity-actions{align-items:center;gap:.75rem;display:flex}.btn-checkin-completed{color:#065f46;cursor:pointer;background:#ecfdf5;border:1px solid #a7f3d0;border-radius:.5rem;align-items:center;gap:.4rem;padding:.55rem 1rem;font-weight:700;transition:all .2s;display:flex}.btn-checkin-completed:hover{background:#d1fae5}.btn-checkin-pending{background:var(--brand-primary);color:#fff;cursor:pointer;border:none;border-radius:.5rem;padding:.55rem 1.1rem;font-weight:700;transition:all .2s;box-shadow:0 2px 4px #10b98140}.btn-checkin-pending:hover{background:var(--brand-primary-hover);transform:translateY(-1px)}.btn-checkin-metric{align-items:center;gap:.5rem;display:flex}.metric-input{border:1px solid var(--brand-border);text-align:right;border-radius:.5rem;width:90px;padding:.45rem .6rem;font-weight:700}.portal-empty-state{text-align:center;border:1px dashed var(--brand-border);color:var(--brand-text-muted);background:#fff;border-radius:1rem;padding:3rem 1.5rem}.subtab-nav{border-bottom:2px solid #e5e7eb;gap:.5rem;margin-bottom:1.5rem;display:flex}.subtab-button{color:var(--brand-text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;margin-bottom:-2px;padding:.65rem 1rem;font-size:.95rem;font-weight:600;transition:all .2s}.subtab-button:hover{color:var(--brand-text)}.subtab-button.active{color:var(--brand-primary);border-bottom-color:var(--brand-primary)}.confidential-banner{color:#92400e;background:#fef3c7;border:1px solid #f59e0b;border-radius:.5rem;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem 1rem;font-size:.88rem;font-weight:500;display:flex}.confidential-note-card{background:#fffbeb;border:1px solid #fde68a;border-radius:.5rem;margin-bottom:.75rem;padding:1rem}.confidential-note-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;font-size:.85rem;display:flex}.badge-note-category{text-transform:uppercase;border-radius:9999px;padding:.2rem .5rem;font-size:.75rem;font-weight:700;display:inline-block}.badge-note-clinical{color:#b91c1c;background:#fee2e2}.badge-note-follow_up{color:#4338ca;background:#e0e7ff}.badge-note-general{color:#374151;background:#f3f4f6}.feedback-banner{color:#065f46;background:#ecfdf5;border:1px solid #10b981;border-radius:.5rem;align-items:center;gap:.5rem;margin-bottom:1rem;padding:.75rem 1rem;font-size:.88rem;font-weight:500;display:flex}.feedback-card{border:1px solid var(--brand-border);border-left:4px solid var(--brand-primary);background:#fff;border-radius:.5rem;margin-bottom:.75rem;padding:1rem;box-shadow:0 1px 3px #0000000d}.feedback-card-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.badge-feedback-status{border-radius:9999px;align-items:center;gap:.25rem;padding:.25rem .6rem;font-size:.78rem;font-weight:700;display:inline-flex}.badge-feedback-published{color:#92400e;background:#fef3c7}.badge-feedback-acknowledged{color:#065f46;background:#d1fae5}.followup-container{flex-direction:column;gap:1.5rem;display:flex}.followup-stats{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;display:grid}.followup-stat-card{border:1px solid var(--brand-border);background:#fff;border-radius:.75rem;flex-direction:column;gap:.35rem;padding:1.25rem;display:flex}.followup-stat-title{color:var(--brand-text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.85rem;font-weight:600}.followup-stat-value{color:var(--brand-text);font-size:1.75rem;font-weight:800}.badge-review-required{color:#991b1b;background:#fee2e2;border-radius:9999px;padding:.25rem .6rem;font-size:.75rem;font-weight:700}.badge-review-ok{color:#4b5563;background:#f3f4f6;border-radius:9999px;padding:.25rem .6rem;font-size:.75rem;font-weight:600}.progress-stats-grid{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem;margin-bottom:1.5rem;display:grid}.progress-stat-card{border:1px solid var(--brand-border);background:#fff;border-radius:.65rem;flex-direction:column;gap:.25rem;padding:1rem;display:flex}.progress-stat-label{color:var(--brand-text-muted);text-transform:uppercase;font-size:.82rem;font-weight:600}.progress-stat-number{color:var(--brand-dark);font-size:1.65rem;font-weight:800}.adherence-chart-container{border:1px solid var(--brand-border);background:#fff;border-radius:.65rem;margin-bottom:1.5rem;padding:1.25rem}.adherence-bars-row{align-items:flex-end;gap:.4rem;height:120px;padding-top:1rem;display:flex;overflow-x:auto}.adherence-bar-col{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:.35rem;min-width:28px;height:100%;display:flex}.adherence-bar-fill{border-radius:4px 4px 0 0;width:100%;min-height:4px;transition:height .3s}.adherence-bar-date{color:var(--brand-text-muted);white-space:nowrap;font-size:.7rem}.adherence-bar-pct{color:var(--brand-dark);font-size:.68rem;font-weight:700}.metric-series-card{border:1px solid var(--brand-border);background:#fff;border-radius:.65rem;margin-bottom:1rem;padding:1.25rem}.metric-series-header{justify-content:space-between;align-items:center;margin-bottom:.75rem;display:flex}.metric-points-list{flex-wrap:wrap;gap:.5rem;display:flex}.metric-point-badge{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:.5rem;flex-direction:column;align-items:center;padding:.4rem .7rem;font-size:.85rem;display:flex}.file-upload-card{border:1px dashed var(--brand-border);background:#f9fafb;border-radius:.65rem;margin-bottom:1.5rem;padding:1.25rem}.file-list{flex-direction:column;gap:.75rem;display:flex}.file-item-card{border:1px solid var(--brand-border);background:#fff;border-radius:.65rem;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.25rem;display:flex}.file-item-info{flex-direction:column;gap:.25rem;display:flex}.file-item-name{color:var(--brand-dark);word-break:break-all;font-size:.95rem;font-weight:700}.file-item-meta{color:var(--brand-text-muted);align-items:center;gap:.6rem;font-size:.78rem;display:flex}.badge-file-category{text-transform:uppercase;border-radius:4px;padding:.2rem .5rem;font-size:.72rem;font-weight:600}.badge-file-diet_plan{color:#065f46;background:#ecfdf5}.badge-file-document{color:#334155;background:#f1f5f9}.badge-file-lab_result{color:#1e40af;background:#eff6ff}.badge-file-progress_photo{color:#9d174d;background:#fdf2f8}.badge-visibility-patient{color:#166534;background:#f0fdf4;border-radius:4px;padding:.15rem .45rem;font-size:.72rem;font-weight:600}.badge-visibility-private{color:#92400e;background:#fef3c7;border-radius:4px;padding:.15rem .45rem;font-size:.72rem;font-weight:600}.btn-file-download{border:1px solid var(--brand-border);color:var(--brand-dark);cursor:pointer;background:#fff;border-radius:.45rem;align-items:center;gap:.35rem;padding:.45rem .85rem;font-size:.82rem;font-weight:600;text-decoration:none;transition:all .2s;display:inline-flex}.btn-file-download:hover{background:#f8fafc;border-color:#94a3b8}.readiness-grid{grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem;margin-top:1rem;margin-bottom:2rem;display:grid}.readiness-card{border:1px solid var(--brand-border);background:#fff;border-radius:.75rem;flex-direction:column;gap:.5rem;padding:1.25rem;display:flex;box-shadow:0 1px 3px #0000000d}.readiness-card.status-ok{border-left:4px solid #10b981}.readiness-card.status-warn{border-left:4px solid #f59e0b}.readiness-card.status-fail{border-left:4px solid #ef4444}.readiness-header{justify-content:space-between;align-items:center;display:flex}.readiness-title{color:var(--brand-dark);font-size:.95rem;font-weight:700}.readiness-message{color:var(--brand-text-muted);font-size:.85rem;line-height:1.4}.readiness-latency{color:#6b7280;margin-top:auto;font-size:.75rem}.audit-table-wrapper{margin-top:1rem;overflow-x:auto}.audit-table{border-collapse:collapse;text-align:left;width:100%;font-size:.85rem}.audit-table th{color:#475569;background:#f8fafc;border-bottom:2px solid #e2e8f0;padding:.75rem 1rem;font-weight:700}.audit-table td{vertical-align:top;border-bottom:1px solid #f1f5f9;padding:.75rem 1rem}.audit-action-badge{color:#334155;background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;padding:.2rem .5rem;font-family:monospace;font-size:.75rem;font-weight:600;display:inline-block}.audit-action-badge.action-patient{color:#047857;background:#ecfdf5;border-color:#a7f3d0}.audit-action-badge.action-file{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}.audit-action-badge.action-portal{color:#7e22ce;background:#faf5ff;border-color:#e9d5ff}.audit-action-badge.action-program{color:#b45309;background:#fffbeb;border-color:#fde68a}.audit-details-cell{color:#475569;white-space:pre-wrap;word-break:break-all;background:#f8fafc;border-radius:4px;max-width:320px;padding:.35rem .5rem;font-family:monospace;font-size:.75rem;overflow-x:auto}.consent-notice-box{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:.75rem;align-items:flex-start;gap:.75rem;margin-bottom:1.5rem;padding:1rem 1.25rem;display:flex}.consent-notice-icon{font-size:1.25rem;line-height:1}.consent-notice-text{color:#166534;font-size:.85rem;line-height:1.45}.consent-notice-title{margin-bottom:.25rem;font-weight:700}
