.personal-banner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem;margin:1rem 0;background:linear-gradient(120deg,#06283a,#09364c)}
.personal-banner strong{display:flex;align-items:center;gap:.5rem}.personal-banner p{margin:.4rem 0 0;color:#b2cbd8}.personal-batches,.personal-tools{display:flex;gap:.6rem;flex-wrap:wrap;margin:1rem 0}.personal-hash{overflow-wrap:anywhere}.personal-candidates{display:grid;gap:1rem;margin:1rem 0}.personal-candidate{border:1px solid #28576c;border-radius:12px;padding:1rem;min-width:0;background:#062638}.personal-candidate legend{padding:0 .4rem;font-weight:650}.personal-candidate label{font-size:.92rem}.personal-fields{display:grid;grid-template-columns:1fr 1.3fr 1.5fr;gap:.75rem;margin:.6rem 0}.personal-fields label{display:grid;gap:.35rem}.personal-fields input,.personal-fields select{width:100%;min-width:0;box-sizing:border-box}.personal-candidate details{margin-top:.75rem;overflow-wrap:anywhere}.personal-candidate:disabled{opacity:.65}.personal-conflict{color:#ffe6aa}.personal-conflict:empty{display:none}.personal-history{max-height:20rem;overflow:auto}.personal-history p{padding:.5rem 0;border-bottom:1px solid #204658}.body-metrics small{display:block;margin-top:.4rem;color:#9cbed0}
@media(max-width:600px){.personal-banner{align-items:stretch;flex-direction:column}.personal-fields{grid-template-columns:1fr 1fr}.personal-fields label:last-child{grid-column:1/-1}.personal-candidate{padding:.65rem}.personal-tools button{width:100%}}

/* Private history uses the existing navy/cyan CI and readable mobile type. */
.history-import{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:clamp(18px,3vw,32px);box-sizing:border-box;background:#06283b;color:#d8edf8;border:1px solid #4c8197;border-radius:20px;font-size:clamp(1rem,.95rem + .2vw,1.125rem);line-height:1.55;overflow:auto}
.history-import::backdrop{background:#00131edb;backdrop-filter:blur(5px)}
.history-import button,.history-import input{font:inherit;max-width:100%;min-height:44px}.history-import .field{display:grid;gap:8px;margin:18px 0}.history-import .field input{padding:10px;border:1px solid #4c8197;border-radius:10px;background:#001d2e;color:inherit}
.history-actions{display:flex;flex-wrap:wrap;gap:12px}.history-message{color:#83dbff;overflow-wrap:anywhere}.history-preview{padding-left:24px}.history-preview li{margin:12px 0;padding:12px;background:#0b3449;border-radius:10px}
.history-panel{margin:18px 0;font-size:1rem;line-height:1.55}.history-panel summary{cursor:pointer;padding:12px 0}.history-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:14px}.history-record{border:1px solid #315b70;padding:16px;border-radius:12px;overflow-wrap:anywhere}.history-record h3{margin-top:0}.history-record blockquote{margin:12px 0;padding-left:12px;border-left:3px solid #28b7e8}.history-media-list{display:flex;flex-wrap:wrap;gap:12px}.history-media{display:grid;gap:6px;max-width:180px;overflow-wrap:anywhere}.history-media img{width:100%;max-height:160px;object-fit:contain;border-radius:10px}.meal-image img{width:100%;height:100%;object-fit:cover;border-radius:inherit}

.entry-current{margin:20px 0;font-size:1rem;line-height:1.55}.entry-current p{color:#bad5e3}.entry-toolbar,.entry-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.entry-toolbar{margin:16px 0}.entry-toolbar label,.entry-check{display:flex;align-items:center;gap:8px;min-height:44px}.entry-toolbar input,.entry-check input{width:20px;height:20px;accent-color:#39c6f3}.entry-records{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;max-height:780px;overflow:auto}.entry-record{border:1px solid #315b70;border-radius:14px;background:#06283b;padding:18px;min-width:0;overflow-wrap:anywhere}.entry-record h3{margin:0 0 10px;color:#e7f6ff}.entry-record details{padding:6px 0}.entry-record summary{cursor:pointer;min-height:44px}.entry-current button,.entry-editor button{min-height:44px;padding:10px 16px;font:inherit;border:1px solid #578399;border-radius:10px;background:#0c3b51;color:#e5f7ff;cursor:pointer}.entry-current button:disabled,.entry-editor button:disabled{opacity:.55;cursor:wait}.entry-current button:hover,.entry-editor button:hover{background:#15546c}.entry-current button:focus-visible,.entry-editor :focus-visible{outline:3px solid #5ad5ff;outline-offset:3px}.entry-current .panel-heading{flex-wrap:wrap}.entry-undo{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px;margin:12px 0;background:#0b4151;border:1px solid #3f99af;border-radius:12px}.entry-editor{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;background:#06283b;color:#d8edf8;border:1px solid #4c8197;border-radius:20px;padding:clamp(18px,3vw,32px);font:1rem/1.55 system-ui,sans-serif;overflow:auto}.entry-editor::backdrop{background:#00131ee6;backdrop-filter:blur(5px)}.entry-editor .dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px}.entry-editor h2{font-size:1.4rem;margin:0}.entry-editor p{color:#bfdbe9}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:20px 0}.entry-editor .field{display:grid;align-content:start;gap:7px;min-width:0}.entry-editor input,.entry-editor select,.entry-editor textarea{box-sizing:border-box;width:100%;min-width:0;min-height:44px;padding:10px;border:1px solid #578399;border-radius:9px;background:#001d2e;color:#e5f7ff;font:inherit;color-scheme:dark}.entry-editor textarea{min-height:100px;resize:vertical}.entry-editor fieldset{border:1px solid #426d81;border-radius:12px;padding:12px}.entry-editor .entry-check input{width:20px;min-height:20px}.entry-editor .entry-message{color:#8ee2ff;overflow-wrap:anywhere}.entry-editor .primary{background:#087ca0;border-color:#45c7eb;font-weight:650}.entry-editor .entry-delete-confirm,.entry-editor [data-entry-ui=commit-range]{background:#693849;border-color:#d69eae}.entry-editor .entry-quality{color:#a5c7d9}.entry-selection{overflow-wrap:anywhere}.entry-selection ul{max-height:300px;overflow:auto}.entry-actions{margin-top:12px}.meal-nutrients .entry-actions .text-button{margin:0}
@media(max-width:600px){.entry-grid{grid-template-columns:minmax(0,1fr)}.entry-editor h2{font-size:1.2rem}.entry-toolbar{align-items:stretch;flex-direction:column}.entry-current .panel-heading{gap:12px}.entry-current button{flex-grow:1}.entry-records{max-height:none}.entry-record{padding:14px}}

/* Readable independently of compact dashboard root sizing. */
.entry-current{font-size:max(16px,1rem)}
.entry-editor{font-size:clamp(16px,1.15vw,18px)}
.entry-editor .field{font-size:1em}
.development-login-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;font-size:max(16px,1rem);line-height:1.5;padding:24px;border-radius:20px;background:#0a2b3e;color:#d9effb;border:1px solid #4c8ba7}
.development-login-dialog::backdrop{background:#00131dcc;backdrop-filter:blur(4px)}
.development-login-dialog h2{font-size:clamp(22px,3vw,28px);line-height:1.25}
.development-login-dialog button,.development-login-dialog a{font-size:16px;min-height:44px}
.development-login-dialog a.primary{display:inline-flex;align-items:center;padding:10px 16px;text-decoration:none;border-radius:8px}
.development-user-code{display:block;font-size:clamp(24px,5vw,36px);font-weight:700;letter-spacing:.1em;overflow-wrap:anywhere;padding:12px;background:#001e2f;border-radius:10px;user-select:all}
.development-error{color:#ffb8b8;min-height:1.5em}
.development-login-dialog .dialog-actions{display:flex;gap:10px;flex-wrap:wrap}

.development-login-dialog [data-enrolment="close"]{min-width:44px;flex-shrink:0}
