.global-search-card{background:#fff;border:1px solid #ded8cc;border-radius:18px;padding:20px;margin:22px 0;display:flex;gap:18px;align-items:end;justify-content:space-between}.global-search-card>div{display:grid;gap:4px}.global-search-card span{color:#727c76;font-size:13px}.global-search-form{display:flex;gap:10px;flex:1;max-width:720px}.global-search-form input{flex:1;min-width:0;padding:13px 14px;border:1px solid #cbc7bd;border-radius:12px;background:#fff}.patient-form-card,.patient-list-card{background:#fff;border:1px solid #ded8cc;border-radius:18px;padding:24px;margin:22px 0}.page-title-row,.form-heading,.list-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.page-title-row h1{margin:8px 0 4px}.primary-action{border:0;border-radius:12px;padding:12px 16px;background:#245344;color:#fff;font-weight:800;cursor:pointer}.patient-form{display:grid;gap:18px}.form-section{border-top:1px solid #ece6da;padding-top:16px}.form-section h3{margin:0 0 12px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.form-grid label{display:grid;gap:6px;font-weight:700}.form-grid input,.form-grid select{padding:12px 13px;border:1px solid #cbc7bd;border-radius:11px;background:#fff}.minor-section{background:#fff8ea;border:1px solid #eed5a6;border-radius:14px;padding:16px}.age-chip{background:#eef2ee;border-radius:999px;padding:7px 10px;font-weight:700}.duplicate-panel{display:flex;justify-content:space-between;gap:14px;align-items:center;background:#f3f1eb;border-radius:14px;padding:16px}.duplicate-panel p{margin:4px 0 0}.success-box,.warning-box{border-radius:12px;padding:14px}.success-box{background:#edf7ef;border:1px solid #c8e4cd}.warning-box{background:#fff2dc;border:1px solid #efc77b;display:grid;gap:7px}.form-actions{display:flex;justify-content:flex-end;gap:12px}.patient-table{width:100%;border-collapse:collapse}.patient-table th,.patient-table td{text-align:left;padding:14px 10px;border-bottom:1px solid #ece6da;white-space:nowrap}.patient-table th{font-size:12px;letter-spacing:.04em;color:#68736c}.patient-table small{display:block;color:#7a827d;font-style:italic;margin-top:4px}.patient-open-row{cursor:pointer;transition:background .15s ease}.patient-open-row:hover{background:#f7f4ed}.patient-open-row:focus-within{background:#f1eee4}.chart-link{border:0;background:transparent;padding:0;color:#1f4e40;font:inherit;font-weight:850;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.empty-state{min-height:150px;border:1px dashed #d6cfc2;border-radius:14px;display:grid;place-content:center;text-align:center;gap:8px;color:#69726c}.empty-state strong{font-size:18px}@media(max-width:820px){.global-search-card{align-items:stretch;flex-direction:column}.global-search-form{max-width:none}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.page-title-row,.form-heading,.list-heading{align-items:stretch}.page-title-row{flex-direction:column}.duplicate-panel{align-items:stretch;flex-direction:column}.form-actions{justify-content:stretch}.form-actions button{flex:1}}.legacy-review-shell{margin-top:12px;grid-column:1/-1;width:100%;min-width:0}.legacy-review-toggle{width:100%}.legacy-review-workspace{display:grid;grid-template-columns:minmax(340px,.68fr) minmax(560px,1.32fr);gap:18px;align-items:start;margin-top:12px;width:100%;min-width:0;overflow:visible}.legacy-review-panel{border:1px solid #ddd6ca;border-radius:14px;padding:16px;background:#fff;min-width:0;max-width:100%;overflow:hidden}.legacy-review-panel *{min-width:0}.legacy-review-heading{display:flex;gap:12px;align-items:flex-start;justify-content:space-between}.legacy-review-heading>div{display:flex;flex-direction:column;gap:4px}.legacy-review-heading small{color:#66706c;line-height:1.4}.legacy-review-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.legacy-review-summary span{border:1px solid #e2ddd4;border-radius:10px;padding:10px;background:#f8f6f1;font-size:12px}.legacy-review-summary strong{display:block;margin-top:4px}.legacy-source-complete-banner{display:grid;gap:5px;margin:12px 0 14px;padding:14px 16px;border:1px solid #8dbca6;border-radius:12px;background:#e9f5ee;color:#194f39}.legacy-source-complete-banner strong{font-size:16px}.legacy-source-complete-banner span,.legacy-source-complete-banner small{line-height:1.4}.legacy-source-complete-banner small{color:#4e6e60}.legacy-review-fields{margin-top:16px;min-width:0}.legacy-review-fields h4,.legacy-manual-card h4{margin:0 0 8px}.legacy-review-empty{padding:14px;border:1px dashed #d7d0c5;border-radius:10px;color:#5e6864}.legacy-review-field{border:1px solid #e2ddd4;border-radius:12px;padding:14px;margin-top:10px;display:grid;gap:10px;transition:border-color .15s ease,background .15s ease;min-width:0;max-width:100%;overflow:hidden}.legacy-review-field.is-resolved{border-color:#9fc7b5;background:#f3faf6}.legacy-review-field.is-unreadable{border-color:#d8b19f;background:#fff8f4}.legacy-review-field-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.legacy-review-field-head span{font-size:12px;color:#66706c;text-align:right;overflow-wrap:anywhere}.legacy-review-resolution-banner{padding:9px 11px;border-radius:9px;background:#e6f4ec;color:#1f5c43;font-weight:700;font-size:13px}.legacy-review-resolution-banner.unreadable{background:#fff0e8;color:#8d3f2d}.legacy-review-original{display:flex;gap:10px;align-items:baseline;min-width:0}.legacy-review-original span{font-size:12px;color:#66706c;min-width:110px}.legacy-review-original strong{overflow-wrap:anywhere}.legacy-review-field label,.legacy-manual-card label,.legacy-complete-review label{display:flex;flex-direction:column;gap:5px;font-weight:600;min-width:0;max-width:100%}.legacy-review-field input,.legacy-review-field textarea,.legacy-manual-card input,.legacy-manual-card textarea,.legacy-manual-card select,.legacy-complete-review textarea{display:block;width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:10px 12px;border:1px solid #cbc7bd;border-radius:10px;font:inherit}.legacy-review-field textarea{resize:vertical}.legacy-review-field-actions{display:flex;gap:8px;flex-wrap:wrap}.review-confirmed-button{border:1px solid #87b59f;background:#dfeee7;color:#174f39;border-radius:10px;padding:10px 14px;font:inherit;font-weight:700;cursor:default}.review-confirmed-button:disabled{opacity:1}.legacy-review-message-top{margin:12px 0 2px}.legacy-manual-card{margin-top:16px;padding:14px;border-radius:12px;background:#f7f4ee;border:1px solid #e2ddd4;min-width:0;max-width:100%;overflow:hidden}.legacy-manual-card p{margin-top:0;color:#66706c}.legacy-manual-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:12px;min-width:0}.legacy-manual-grid>*{min-width:0}.legacy-manual-span{grid-column:1/-1}.legacy-complete-review{margin-top:16px;padding-top:14px;border-top:1px solid #e2ddd4;display:grid;gap:10px}.legacy-complete-review small{color:#66706c}.legacy-complete-review-done{padding:14px;border:1px solid #9fc7b5;border-radius:12px;background:#f3faf6;color:#1f5c43}.legacy-complete-review-done strong{font-size:15px}.legacy-review-message{margin-top:12px}.legacy-inline-source-viewer{position:sticky;top:18px;border:1px solid #ddd6ca;border-radius:14px;background:#fff;overflow:hidden;min-width:0;width:100%;max-width:100%}.legacy-inline-source-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 16px;border-bottom:1px solid #e7e1d7;background:#fbfaf7}.legacy-inline-source-head>div:first-child{display:grid;gap:3px;min-width:0}.legacy-inline-source-head small{color:#66706c;overflow-wrap:anywhere}.legacy-inline-source-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.legacy-inline-source-stage{height:min(82vh,1100px);min-height:640px;background:#eceae5;display:flex;align-items:flex-start;justify-content:center;overflow:auto;padding:0}.legacy-inline-source-stage img{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;background:#fff}.legacy-inline-source-stage iframe{width:100%;height:100%;border:0;background:#fff}.legacy-inline-source-placeholder,.legacy-inline-source-error{padding:24px;text-align:center;color:#66706c;max-width:420px;line-height:1.5}.legacy-inline-source-error{color:#8d3f2d}.legacy-inline-source-security{display:block;padding:10px 14px;color:#66706c;border-top:1px solid #e7e1d7;background:#fbfaf7;line-height:1.4}@media(max-width:1180px){.legacy-review-workspace{grid-template-columns:minmax(300px,.82fr) minmax(400px,1.18fr)}.legacy-inline-source-stage{height:min(76vh,900px);min-height:540px}}@media(max-width:900px){.legacy-review-shell{grid-column:1}.legacy-review-workspace{grid-template-columns:1fr}.legacy-inline-source-viewer{position:relative;top:auto;order:-1}.legacy-inline-source-stage{height:52vh;min-height:400px}.legacy-review-summary{grid-template-columns:1fr 1fr}}@media(max-width:800px){.legacy-review-heading,.legacy-review-field-head,.legacy-inline-source-head{flex-direction:column}.legacy-review-field-head span{text-align:left}.legacy-inline-source-actions{justify-content:flex-start}.legacy-manual-grid{grid-template-columns:1fr}.legacy-manual-span{grid-column:auto}.legacy-inline-source-stage{height:48vh;min-height:350px}}.hist-clinical-review{grid-column:1/-1;width:100%;min-width:0;border-top:1px solid #e2ddd2;padding-top:12px}.hist-clinical-review>summary{cursor:pointer;font-weight:800;color:#243833}.hist-clinical-warning{margin-top:12px;border:1px solid #d6c9a7;background:#fbf7e9;border-radius:12px;padding:12px 14px;display:grid;gap:4px}.hist-clinical-warning strong{font-size:12px;letter-spacing:.08em}.hist-clinical-warning span{color:#665f4c}.hist-clinical-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-top:12px;flex-wrap:wrap}.hist-clinical-counts,.hist-clinical-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.hist-clinical-counts span{border:1px solid #ddd8cc;border-radius:999px;padding:7px 10px;background:#fff;color:#68726f;font-size:12px}.hist-clinical-counts strong{color:#243833}.hist-clinical-message{margin-top:12px}.hist-clinical-workspace{display:grid;gap:18px;margin-top:14px;width:100%;min-width:0}.hist-clinical-workspace.with-viewer{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}.hist-clinical-entry-pane{min-width:0}.hist-clinical-entry-list{display:grid;gap:10px}.hist-clinical-entry{border:1px solid #ddd8cc;border-radius:14px;background:#fff;padding:14px;display:grid;gap:12px;min-width:0}.hist-clinical-entry.resolved{border-color:#b9d4c6;background:#fbfefc}.hist-clinical-entry-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.hist-clinical-entry-head>div{display:flex;align-items:center;gap:8px}.hist-clinical-entry-head strong{text-transform:capitalize}.hist-entry-number{width:26px;height:26px;border-radius:999px;background:#eef1ed;display:inline-grid;place-items:center;font-weight:800;font-size:12px}.hist-status{font-size:11px;font-weight:800;padding:5px 8px;border-radius:999px;background:#f1eee7;color:#5d665f}.hist-status.verified,.hist-status.corrected{background:#e7f4ec;color:#315c43}.hist-status.unreadable{background:#f5ece8;color:#814b3f}.hist-values-grid,.hist-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.hist-values-grid>div{display:grid;gap:4px;border:1px solid #ebe7dd;border-radius:10px;padding:10px;background:#faf9f5;min-width:0}.hist-values-grid span{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#7a827e}.hist-values-grid strong{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.hist-span-2{grid-column:1/-1}.hist-edit-grid label{display:grid;gap:6px;font-weight:700;min-width:0}.hist-edit-grid input,.hist-edit-grid textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid #cfc9bd;border-radius:9px;padding:9px 10px;font:inherit;background:#fff}.hist-edit-grid textarea{min-height:76px;resize:vertical}.hist-review-actions,.hist-edit-actions,.hist-complete-row{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.danger-soft{border-color:#d9b7ad!important;color:#8a4536!important}.hist-complete-row{margin-top:12px}.hist-clinical-viewer{position:sticky;top:12px;border:1px solid #d7d1c5;border-radius:14px;overflow:hidden;background:#f4f1e9;min-width:0;width:100%}.hist-viewer-head{display:flex;justify-content:space-between;gap:10px;padding:10px 12px;background:#fff;border-bottom:1px solid #ddd8cc;align-items:center}.hist-viewer-head span{font-size:12px;color:#68726f;overflow-wrap:anywhere;text-align:right}.hist-clinical-viewer img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#ece8df}.hist-clinical-viewer iframe{display:block;width:100%;height:76vh;border:0;background:#fff}@media(max-width:1100px){.hist-clinical-workspace.with-viewer{grid-template-columns:1fr}.hist-clinical-viewer{position:static;order:-1}.hist-clinical-viewer img{max-height:none}}@media(max-width:650px){.hist-values-grid,.hist-edit-grid{grid-template-columns:1fr}.hist-span-2{grid-column:auto}.hist-review-actions,.hist-edit-actions,.hist-complete-row{justify-content:stretch}.hist-review-actions button,.hist-edit-actions button,.hist-complete-row button{flex:1}.hist-clinical-actions{width:100%}.hist-clinical-actions button{flex:1}}.hist-dental-review{margin-top:14px;width:100%;min-width:0;border:1px solid rgba(127,127,127,.22);border-radius:16px;background:#fff;overflow:hidden}.hist-dental-review>summary{cursor:pointer;padding:14px 16px;font-weight:800;background:#7f7f7f0a}.hist-dental-warning{display:flex;flex-direction:column;gap:3px;margin:14px 16px 0;padding:12px;border-radius:12px;border:1px solid rgba(234,179,8,.24);background:#eab30812}.hist-dental-warning strong{font-size:11px;letter-spacing:.06em}.hist-dental-warning span{font-size:12px;color:var(--muted,#6b7280)}.hist-dental-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 16px}.hist-dental-counts,.hist-dental-actions{display:flex;gap:8px;flex-wrap:wrap}.hist-dental-counts span{border:1px solid rgba(127,127,127,.16);border-radius:999px;padding:6px 9px;font-size:11px}.hist-dental-message{margin:0 16px 14px}.hist-dental-manual{margin:0 16px 14px;padding:14px;border:1px solid rgba(127,127,127,.18);border-radius:12px;background:#fafafa}.hist-dental-manual h4{margin:0 0 10px}.hist-dental-workspace{display:grid;grid-template-columns:1fr;gap:18px;padding:0 16px 16px;width:100%;min-width:0;box-sizing:border-box}.hist-dental-workspace.with-viewer{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.hist-dental-list-pane{min-width:0}.hist-dental-list{display:flex;flex-direction:column;gap:10px}.hist-dental-row{border:1px solid rgba(127,127,127,.2);border-radius:13px;padding:12px;background:#fff;min-width:0}.hist-dental-row.resolved{background:#fcfcfc}.hist-dental-row-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}.hist-dental-row-head>div:first-child{display:flex;gap:8px;align-items:center}.hist-dental-row-head>div:first-child>span{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(127,127,127,.22);font-size:11px}.hist-dental-badges{display:flex;gap:6px;flex-wrap:wrap}.hist-dental-badges span{font-size:10px;font-weight:800;border:1px solid rgba(127,127,127,.2);border-radius:999px;padding:4px 7px}.hist-dental-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hist-dental-values>div{display:flex;flex-direction:column;gap:3px;border:1px solid rgba(127,127,127,.14);border-radius:9px;padding:8px 9px;background:#fafafa;min-width:0}.hist-dental-values span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#6b7280)}.hist-dental-values strong{font-size:13px;overflow-wrap:anywhere}.hist-dental-row-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.hist-dental-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.hist-dental-edit-grid label{display:flex;flex-direction:column;gap:5px;font-size:12px;min-width:0}.hist-dental-edit-grid input,.hist-dental-edit-grid select,.hist-dental-edit-grid textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}.hist-dental-edit-grid textarea{min-height:70px}.hist-dental-edit-actions{display:flex;gap:8px;justify-content:flex-end}.span-2{grid-column:1/-1}.hist-dental-complete{display:flex;justify-content:flex-end;margin-top:12px}.hist-dental-viewer{border:1px solid rgba(127,127,127,.18);border-radius:12px;background:#fafafa;overflow:hidden;align-self:start;position:sticky;top:12px;min-width:0;width:100%}.hist-dental-viewer-head{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-bottom:1px solid rgba(127,127,127,.15)}.hist-dental-viewer-head span{font-size:11px;color:var(--muted,#6b7280)}.hist-dental-viewer img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;background:#fff}.hist-dental-viewer iframe{display:block;width:100%;height:76vh;border:0;background:#fff}@media(max-width:980px){.hist-dental-workspace.with-viewer{grid-template-columns:1fr}.hist-dental-viewer{position:static}.hist-dental-toolbar{flex-direction:column}.hist-dental-values,.hist-dental-edit-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.hist-dental-edit-actions{justify-content:flex-start}}.legacy-intake{display:grid;gap:18px}.legacy-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.legacy-heading h2{margin:4px 0 6px}.legacy-heading p{margin:0;max-width:840px;color:#68726f;line-height:1.55}.legacy-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.legacy-summary-grid article{background:#fff;border:1px solid #ddd8cc;border-radius:16px;padding:16px;display:grid;gap:6px}.legacy-summary-grid span{font-size:12px;text-transform:uppercase;letter-spacing:.04em;color:#77817d}.legacy-summary-grid strong{font-size:20px}.legacy-upload-card,.legacy-source-list-card,.legacy-chart-set-manager{background:#fff;border:1px solid #ddd8cc;border-radius:18px;padding:20px;display:grid;gap:16px}.legacy-upload-card h3,.legacy-source-list-card h3,.legacy-chart-set-manager h3{margin:0}.legacy-upload-card p,.legacy-chart-set-manager p{margin:5px 0 0;color:#68726f}.legacy-upload-card label,.legacy-form-grid label,.legacy-chart-set-form label,.legacy-organize-grid label{display:grid;gap:7px;font-weight:700}.legacy-upload-card input,.legacy-upload-card select,.legacy-chart-set-form input,.legacy-organize-grid input,.legacy-organize-grid select{width:100%;box-sizing:border-box;border:1px solid #cfc9bd;border-radius:10px;padding:11px 12px;background:#fff;font:inherit}.legacy-form-grid,.legacy-chart-set-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.legacy-span-2{grid-column:1/-1}.legacy-file-selection{border:1px dashed #cfc9bd;border-radius:12px;padding:12px 14px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;background:#f8f6f0}.legacy-file-selection span{color:#68726f}.legacy-upload-actions{display:flex;justify-content:flex-end}.legacy-message{margin:0}.legacy-list-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.legacy-list-heading>div{min-width:0}.legacy-list-heading span{color:#68726f}.legacy-empty{padding:26px;border:1px dashed #d8d2c5;border-radius:14px;text-align:center;color:#68726f;background:#faf9f5}.legacy-empty.compact{padding:16px}.legacy-chart-groups{display:grid;gap:18px}.legacy-chart-group{border:1px solid #d8d2c5;border-radius:16px;padding:16px;background:#fbfaf7;display:grid;gap:14px}.legacy-chart-group.unassigned{background:#fffaf1;border-style:dashed}.legacy-chart-group-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.legacy-chart-group-head h4{margin:3px 0 2px;font-size:20px}.legacy-chart-group-head small,.legacy-chart-group-head>span,.legacy-chart-notes{color:#68726f}.legacy-chart-notes{margin:0;padding:10px 12px;border-radius:10px;background:#f5f2eb}.legacy-source-list{display:grid;gap:12px}.legacy-source-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(220px,1fr) auto;gap:16px;align-items:center;border:1px solid #e2ddd2;border-radius:14px;padding:15px;background:#fff}.legacy-source-main,.legacy-source-statuses{display:grid;gap:5px;min-width:0}.legacy-source-title-line{display:flex;gap:9px;align-items:center;min-width:0}.legacy-source-title-line strong{overflow-wrap:anywhere}.legacy-page-order{width:28px;height:28px;border-radius:999px;background:#213a33;color:#fff!important;display:inline-grid!important;place-items:center;font-weight:800;flex:0 0 auto}.legacy-source-main span,.legacy-source-main small,.legacy-source-statuses span{color:#68726f}.legacy-source-statuses strong{color:#243833}.legacy-source-actions{display:flex;justify-content:flex-end}.legacy-content-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:4px}.legacy-content-tags span{padding:5px 8px;border-radius:999px;background:#e9f1ed;color:#31584a;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.legacy-organize-source{grid-column:1/-1;border-top:1px solid #eee8dd;padding-top:10px}.legacy-organize-source summary{cursor:pointer;font-weight:800;color:#31584a}.legacy-organize-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:12px;margin-top:14px;padding:14px;border-radius:12px;background:#f8f6f1}.legacy-organize-span{grid-column:1/-1}.legacy-organize-label{display:block;margin-bottom:8px;font-weight:800}.legacy-tag-choices{display:flex;flex-wrap:wrap;gap:8px}.legacy-tag-choices label{display:flex;flex-direction:row;align-items:center;gap:7px;padding:8px 10px;border:1px solid #d8d2c5;border-radius:999px;background:#fff;font-weight:700;cursor:pointer}.legacy-tag-choices label.selected{background:#e6f2eb;border-color:#8dbca6;color:#1f5c43}.legacy-tag-choices input{width:auto;margin:0}.legacy-organize-actions{display:flex;justify-content:flex-end}.legacy-source-row>.legacy-review-shell{grid-column:1/-1}.legacy-retention-note{margin:0;color:#68726f;font-size:13px}.legacy-retention-note:before{content:"🔒 "}@media(max-width:900px){.legacy-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-source-row{grid-template-columns:1fr}.legacy-source-actions{justify-content:flex-start}.legacy-chart-group-head{flex-direction:column}.legacy-organize-grid{grid-template-columns:1fr}.legacy-organize-span{grid-column:auto}}@media(max-width:600px){.legacy-heading{display:grid}.legacy-summary-grid,.legacy-form-grid,.legacy-chart-set-form{grid-template-columns:1fr}.legacy-span-2{grid-column:auto}.legacy-upload-card,.legacy-source-list-card,.legacy-chart-set-manager{padding:15px}.legacy-upload-actions{justify-content:stretch}.legacy-upload-actions button{width:100%}.legacy-list-heading{align-items:flex-start;flex-direction:column}.legacy-list-heading button{width:100%}.legacy-organize-actions{justify-content:stretch}.legacy-organize-actions button{width:100%}}.historical-timeline-card{display:flex;flex-direction:column;gap:16px;background:#fff;border:1px solid rgba(127,127,127,.18);border-radius:18px;padding:18px;box-shadow:0 10px 28px #463a2a0f}.historical-timeline-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.historical-timeline-head h2{margin:2px 0 6px}.historical-timeline-head p{margin:0;color:var(--muted,#6b7280);max-width:880px;line-height:1.5}.historical-timeline-head-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.historical-timeline-summary{display:flex;gap:10px;flex-wrap:wrap}.historical-timeline-summary span{border:1px solid rgba(127,127,127,.18);border-radius:999px;padding:7px 11px;font-size:12px;background:#fafafa}.historical-timeline-message{margin:0}.historical-timeline-empty{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:22px;border:1px dashed rgba(127,127,127,.28);border-radius:14px;color:var(--muted,#6b7280);background:#fff}.historical-timeline-list{display:flex;flex-direction:column;gap:14px}.historical-timeline-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;border:1px solid rgba(127,127,127,.2);border-radius:16px;padding:14px;background:#fff;box-shadow:0 4px 14px #463a2a0b}.historical-timeline-row.unreadable{border-style:dashed}.historical-timeline-marker{display:flex;justify-content:center}.historical-timeline-marker span{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;border:1px solid rgba(127,127,127,.28);font-size:12px;font-weight:700;background:#fff}.historical-timeline-content{min-width:0;display:flex;flex-direction:column;gap:12px}.historical-timeline-row-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.historical-timeline-row-head>div:first-child{display:flex;flex-direction:column;gap:3px}.historical-date{font-size:12px;color:var(--muted,#6b7280)}.historical-timeline-row-head strong{font-size:16px}.historical-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.historical-badge{font-size:10px;font-weight:800;letter-spacing:.04em;border-radius:999px;padding:5px 8px;border:1px solid rgba(127,127,127,.25)}.historical-badge.context{background:#f5f5f4}.historical-badge.verified{background:#f0fdf4}.historical-badge.corrected{background:#fffbeb}.historical-badge.unreadable{background:#fef2f2}.historical-badge.method{background:#eff6ff}.historical-values{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.historical-values>div,.historical-note{border:1px solid rgba(127,127,127,.14);border-radius:10px;padding:9px 10px;display:flex;flex-direction:column;gap:3px;background:#fafafa}.historical-values span,.historical-note span,.historical-provenance span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted,#6b7280)}.historical-values strong,.historical-note strong{font-size:13px;line-height:1.4}.historical-verification-note{font-size:12px;color:var(--muted,#6b7280);background:#fafafa;border-radius:9px;padding:8px 10px}.historical-verification-note span{font-weight:700}.historical-provenance{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:10px;align-items:center;border-top:1px solid rgba(127,127,127,.15);padding-top:10px}.historical-provenance>div{display:flex;flex-direction:column;gap:2px;min-width:0}.historical-provenance strong{font-size:12px;white-space:normal;overflow-wrap:anywhere}.historical-provenance small{font-size:11px;color:var(--muted,#6b7280);line-height:1.35}.historical-inline-source{display:flex;flex-direction:column;gap:10px;border:1px solid rgba(127,127,127,.2);border-radius:14px;padding:12px;background:#fff}.historical-inline-source-head{display:flex;justify-content:space-between;gap:12px;align-items:center}.historical-inline-source-head>div{display:flex;flex-direction:column;gap:2px;min-width:0}.historical-inline-source-head strong{font-size:13px}.historical-inline-source-head span{font-size:11px;color:var(--muted,#6b7280);overflow-wrap:anywhere}.historical-inline-source-body{min-height:520px;max-height:760px;overflow:auto;border:1px solid rgba(127,127,127,.16);border-radius:10px;background:#fff}.historical-inline-source-body img{display:block;width:100%;height:auto;object-fit:contain}.historical-inline-source-body iframe{display:block;width:100%;height:700px;border:0;background:#fff}@media(max-width:900px){.historical-timeline-card{padding:14px}.historical-timeline-head,.historical-timeline-row-head,.historical-inline-source-head{flex-direction:column;align-items:flex-start}.historical-timeline-head-actions,.historical-badges{justify-content:flex-start}.historical-values{grid-template-columns:repeat(2,minmax(0,1fr))}.historical-provenance{grid-template-columns:1fr}.historical-provenance button{justify-self:start}.historical-inline-source-body{min-height:420px}.historical-inline-source-body iframe{height:560px}}@media(max-width:560px){.historical-timeline-row{grid-template-columns:1fr}.historical-timeline-marker{justify-content:flex-start}.historical-values{grid-template-columns:1fr}.historical-inline-source-body{min-height:320px}.historical-inline-source-body iframe{height:440px}}.profile-page{max-width:1240px}.back-link{border:0;background:transparent;color:#315748;font-weight:800;padding:0;margin:0 0 18px;cursor:pointer}.profile-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:20px}.profile-title-line{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.profile-title-line h1{margin-bottom:4px}.chart-chip{background:#26332e;color:#fff;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:850;letter-spacing:.04em}.profile-actions{display:flex;gap:10px;flex-wrap:wrap}.profile-actions button:disabled{opacity:.55;cursor:not-allowed}.profile-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px}.profile-summary-grid article{background:#fff;border:1px solid #ded8cc;border-radius:18px;padding:18px;min-width:0;overflow:hidden}.profile-summary-grid span,.record-context-grid span{display:block;color:#727c76;font-size:12px;margin-bottom:7px;text-transform:uppercase;letter-spacing:.04em}.profile-summary-grid strong{display:block;font-size:17px;min-width:0;overflow-wrap:anywhere;word-break:break-word}.profile-summary-grid small{display:block;color:#727c76;margin-top:6px;line-height:1.4;min-width:0;overflow-wrap:anywhere;word-break:break-word}.profile-tabs{display:flex;gap:6px;overflow:auto;padding:6px;background:#e8e3d8;border-radius:14px;margin-bottom:20px}.profile-tab{border:0;background:transparent;color:#3d4943;padding:10px 13px;border-radius:10px;white-space:nowrap;font-weight:750;cursor:pointer}.profile-tab.active{background:#fff;color:#20342c;box-shadow:0 1px 3px #282d2a14}.profile-columns{display:grid;grid-template-columns:2fr 1fr;gap:18px}.profile-card{background:#fff;border:1px solid #ded8cc;border-radius:18px;padding:22px;min-width:0}.profile-card-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #eee8dc;padding-bottom:13px;margin-bottom:16px}.profile-card-heading>div{min-width:0}.profile-card-heading h2{margin:0;font-size:20px}.profile-card-heading span{color:#78827c;font-size:12px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px;margin:0}.detail-grid.single-column{grid-template-columns:1fr}.detail-grid div{min-width:0}.detail-grid dt{font-size:12px;color:#78827c;margin-bottom:4px}.detail-grid dd{margin:0;font-weight:700;overflow-wrap:anywhere}.detail-span,.profile-wide-card{grid-column:1/-1}.record-context-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.record-context-grid strong{font-size:14px;overflow-wrap:anywhere}.profile-placeholder{min-height:260px}.profile-placeholder p{max-width:760px}.profile-error{margin-top:18px}.edit-demographics-card{margin-bottom:20px}.edit-demographics-form{display:grid;gap:18px}.edit-section{border-top:1px solid #eee8dc;padding-top:16px}.edit-section:first-of-type{border-top:0;padding-top:0}.edit-section h3{margin:0 0 13px;font-size:15px}.edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.edit-grid label{display:grid;gap:6px;min-width:0;font-size:13px;font-weight:750}.edit-grid input,.edit-grid select{width:100%;min-width:0;padding:11px 12px;border:1px solid #cbc7bd;border-radius:10px;background:#fff;color:#1f2925}.edit-grid input:disabled{background:#f0eee8;color:#6f7772}.edit-span-2{grid-column:1/-1}.guardian-edit-section{background:#fff8ea;border:1px solid #eadfc6;border-radius:14px;padding:16px}.edit-actions{display:flex;justify-content:flex-end;gap:12px}.edit-notice{margin-top:0}.profile-save-notice{margin-top:18px}.warning-box{border-radius:12px;padding:13px 15px;background:#fff2df;border:1px solid #ebc994;overflow-wrap:anywhere}@media(max-width:1000px){.profile-summary-grid{grid-template-columns:1fr 1fr}.profile-columns{grid-template-columns:1fr}.record-context-grid{grid-template-columns:1fr 1fr}.profile-wide-card{grid-column:auto}}@media(max-width:700px){.profile-hero{flex-direction:column}.profile-summary-grid,.detail-grid,.edit-grid{grid-template-columns:1fr}.detail-span,.edit-span-2{grid-column:auto}.record-context-grid{grid-template-columns:1fr}.profile-card{padding:18px}.profile-card-heading{align-items:flex-start;flex-direction:column}.profile-tabs{margin-left:-8px;margin-right:-8px;border-radius:0}.edit-actions{justify-content:stretch}.edit-actions button{flex:1}}.audit-history-card{background:#fff;border:1px solid #ded8cc;border-radius:18px;padding:22px;margin:22px 0}.audit-heading{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.audit-heading h2{margin:6px 0}.audit-heading p{margin:0;color:#6d7771}.audit-count{margin:16px 0 10px;color:#68736c;font-size:14px}.audit-list{display:grid;gap:12px}.audit-event{border:1px solid #e7e0d4;border-radius:14px;padding:16px;background:#fbfaf7}.audit-event-top{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.audit-event-top>div{display:grid;gap:3px}.audit-event-top span{font-size:13px;color:#737d77}.audit-event-top code{font-size:12px;background:#eef2ee;padding:5px 7px;border-radius:8px;white-space:nowrap}.audit-reason{margin-top:10px;padding:10px 12px;border-radius:10px;background:#fff4df}.audit-summary{margin-top:10px;color:#56615b}.audit-change-table{display:grid;gap:8px;margin-top:12px}.audit-change-row{display:grid;grid-template-columns:minmax(140px,1.2fr) minmax(0,1fr) auto minmax(0,1fr);gap:10px;align-items:start;padding-top:8px;border-top:1px solid #ece6da}.audit-before{color:#7c635e;overflow-wrap:anywhere}.audit-after{color:#245344;font-weight:700;overflow-wrap:anywhere}.audit-arrow{color:#8a938e}.audit-empty{min-height:110px;border:1px dashed #d6cfc2;border-radius:12px;display:grid;place-content:center;text-align:center;gap:6px;color:#69726c;margin-top:16px;padding:18px}@media(max-width:760px){.audit-heading{flex-direction:column}.audit-change-row{grid-template-columns:1fr}.audit-arrow{display:none}.audit-before:before{content:"Before: ";font-weight:700;color:#666}.audit-after:before{content:"After: ";font-weight:700;color:#666}.audit-event-top{flex-direction:column}.audit-event-top code{white-space:normal}}.build1h-toolbar{margin:18px 28px 0;background:#fff;border:1px solid #ded8cc;border-radius:16px;padding:18px 20px;display:flex;justify-content:space-between;gap:18px;align-items:center}.build1h-toolbar small{display:block;margin-top:8px;color:#67736d;max-width:760px}.build1h-status-line{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}.status-pill,.record-pill{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:850;letter-spacing:.03em}.status-pill.pending_scheduling{background:#eef1ec;color:#41564d}.status-pill.historical{background:#eee8db;color:#66542e}.status-pill.needs_review{background:#fff0d8;color:#7f5700}.record-pill.current{background:#e8f4ec;color:#245344}.record-pill.archived{background:#f4e7e4;color:#7a3128}.build1h-actions{display:flex;gap:10px}.danger-outline{border-color:#b8766b!important;color:#7d342b!important}.archive-banner{margin:12px 28px 0;padding:14px 18px;border-radius:14px;background:#f8ece8;border:1px solid #e2beb5;display:grid;gap:4px;color:#68342d}.archive-action-card{margin:12px 28px 0;background:#fff;border:1px solid #ded8cc;border-radius:16px;padding:20px}.archive-action-card form{display:grid;gap:14px}.archive-action-card h2{margin:0}.archive-action-card p{margin:0;color:#66716b}.archive-action-card label{display:grid;gap:7px;font-weight:750}.archive-action-card textarea{padding:12px;border:1px solid #cbc7bd;border-radius:10px;resize:vertical}.archive-form-actions{display:flex;justify-content:flex-end;gap:10px}.danger-action{border:0;border-radius:12px;padding:12px 16px;background:#8b4439;color:#fff;font-weight:800;cursor:pointer}.danger-action:disabled{opacity:.5;cursor:not-allowed}.build1h-message{margin:12px 28px 0}@media(max-width:820px){.build1h-toolbar{margin:12px 16px 0;align-items:stretch;flex-direction:column}.archive-banner,.archive-action-card,.build1h-message{margin-left:16px;margin-right:16px}.build1h-actions button{width:100%}.archive-form-actions{justify-content:stretch}.archive-form-actions button{flex:1}}:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#1f2925;background:#f3efe6}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select{font:inherit}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f3efe6}.login-card{width:min(460px,100%);background:#fff;border:1px solid #ded8cc;border-radius:24px;padding:32px;box-shadow:0 16px 50px #2d363014}.eyebrow{font-size:12px;letter-spacing:.12em;font-weight:800;color:#68736c}.login-card h1,.content h1{font-size:38px;margin:8px 0 10px}.login-card p,.content p{line-height:1.6;color:#5f6963}.login-card form{display:grid;gap:16px;margin-top:24px}.login-card label{display:grid;gap:7px;font-weight:700}.login-card input{padding:13px 14px;border:1px solid #cbc7bd;border-radius:12px}.login-card button,.secondary,.primary-action{border:0;border-radius:11px;padding:12px 16px;font-weight:800;cursor:pointer}.login-card button,.primary-action{background:#244b3d;color:#fff}.primary-action:disabled{opacity:.45;cursor:not-allowed}.notice{margin-top:18px;background:#eef2ee;border-radius:12px;padding:12px 14px}.app-shell{min-height:100vh;display:grid;grid-template-columns:220px 1fr}aside{background:#26332e;color:#eef1ed;padding:22px 14px}.brand{font-size:22px;font-weight:900;padding:8px 10px 24px}.brand span{font-size:12px;opacity:.65}.nav{display:block;width:100%;text-align:left;border:0;background:transparent;color:#d7ddd9;padding:12px 13px;border-radius:10px;margin:2px 0;cursor:pointer}.nav.active{background:#f1eee4;color:#23312c;font-weight:800}.workspace{min-width:0}header{height:72px;background:#fff;border-bottom:1px solid #e0dbd0;display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:0 28px}header div{display:grid;text-align:right}header small{color:#727c76}.secondary{background:#ece9e1;color:#24322d}.content{padding:42px;max-width:1180px}.status-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:28px 0}.status-grid article,.next-card,.patient-form-card,.patient-list-card{background:#fff;border:1px solid #ded8cc;border-radius:18px;padding:20px}.status-grid span{display:block;color:#727c76;font-size:13px;margin-bottom:7px}.status-grid strong{font-size:18px}.next-card h2{margin-top:0}.page-title-row,.form-heading,.list-heading,.duplicate-panel,.form-actions{display:flex;align-items:center;justify-content:space-between;gap:18px}.page-title-row{margin-bottom:24px}.page-title-row p,.form-heading p,.list-heading p,.duplicate-panel p{margin:4px 0 0}.patient-form-card{margin-bottom:22px;padding:24px}.form-heading h2,.list-heading h2{margin:0}.age-chip{background:#e9efe9;border-radius:999px;padding:8px 12px;font-size:13px;font-weight:800}.patient-form{display:grid;gap:18px;margin-top:18px}.form-section{border-top:1px solid #eee8dc;padding-top:16px}.form-section h3{margin:0 0 14px;font-size:15px}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.form-grid label{display:grid;gap:7px;font-size:13px;font-weight:750}.form-grid input,.form-grid select{width:100%;padding:11px 12px;border:1px solid #cbc7bd;border-radius:10px;background:#fff}.span-2{grid-column:span 2}.minor-section{background:#fbf7ed;border:1px solid #eadfc6;border-radius:14px;padding:16px}.duplicate-panel{background:#f5f4ef;border-radius:14px;padding:14px 16px}.success-box,.warning-box{border-radius:12px;padding:13px 15px}.success-box{background:#edf5ee;border:1px solid #cfe2d2}.warning-box{background:#fff2df;border:1px solid #ebc994;display:grid;gap:7px}.form-actions{justify-content:flex-end}.patient-list-card{padding:24px}.empty-state{padding:34px;text-align:center;border:1px dashed #d8d1c5;border-radius:14px;display:grid;gap:6px;color:#647069}.patient-table-wrap{overflow:auto}.patient-table{width:100%;border-collapse:collapse;margin-top:12px}.patient-table th,.patient-table td{text-align:left;padding:12px 10px;border-bottom:1px solid #eee8dc;white-space:nowrap}.patient-table th{font-size:12px;color:#6d7771;text-transform:uppercase;letter-spacing:.05em}.patient-table td small{display:block;color:#78827c;margin-top:3px}.patient-page .notice{position:sticky;bottom:16px;box-shadow:0 8px 30px #252d281a}@media(max-width:920px){.form-grid{grid-template-columns:1fr 1fr}.span-2{grid-column:span 2}}@media(max-width:820px){.app-shell{grid-template-columns:1fr}aside{display:none}.content{padding:24px}.status-grid{grid-template-columns:1fr 1fr}.page-title-row{align-items:flex-start}.form-grid{grid-template-columns:1fr}.span-2{grid-column:span 1}.duplicate-panel{align-items:flex-start;flex-direction:column}.patient-form-card,.patient-list-card{padding:18px}}
