/* Entry-only styles: unrelated profile/community/startup dialogs are untouched. */
#summary-modal[data-record-entry-ui="true"] { height:var(--record-visual-viewport-height,100dvh); bottom:auto; box-sizing:border-box; }
#summary-modal[data-record-entry-ui="true"] .modal-card {
    display:flex; flex-direction:column; max-height:calc(var(--record-visual-viewport-height,100dvh) - 24px); overflow:hidden;
    padding-top:22px; padding-bottom:0;
}
body.record-admin-active #summary-modal[data-record-entry-ui="true"][data-admin-entry-fullscreen="true"] .modal-card { height:var(--record-visual-viewport-height,100dvh)!important; max-height:var(--record-visual-viewport-height,100dvh)!important; }
#summary-modal[data-record-entry-ui="true"] #summary-modal-title { padding-right:42px; flex:none; }
#summary-modal[data-record-entry-ui="true"] #summary-modal-body { min-height:0; overflow:auto; overscroll-behavior:contain; padding-bottom:max(18px,env(safe-area-inset-bottom)); }
#summary-modal[data-record-entry-ui="true"] #record-entry-modal-footer { flex:none; display:grid; gap:8px; position:static; padding:12px 0 max(12px,env(safe-area-inset-bottom)); }
body.heart-controls-visible #summary-modal.open[data-record-entry-ui="true"] #record-entry-modal-footer { padding-top:calc(var(--heart-control-height,58px) + 22px); }
#summary-modal[data-record-entry-ui="true"] .record-entry-stack,
#summary-modal[data-record-entry-ui="true"] .record-schedule-picker,
#summary-modal[data-record-entry-ui="true"] .record-entry-screen { gap:12px; }
#summary-modal[data-record-entry-ui="true"] :is(.record-entry-card,.record-entry-btn,.record-entry-submit,.record-entry-cancel,.record-pad-submit,.record-pad-back,.health-connect-session-card) {
    min-height:48px; border-radius:12px; line-height:1.4; white-space:normal; overflow-wrap:anywhere;
}
#summary-modal[data-record-entry-ui="true"] .record-entry-fixed-actions { position:sticky; bottom:-1px; z-index:4; padding:12px 0 max(12px,env(safe-area-inset-bottom)); background:#0c0e12; }
.record-entry-help { margin:10px 0; border:1px solid #3d414c; border-radius:12px; padding:10px 12px; color:#c7cbd4; }
.record-entry-help summary { cursor:pointer; font-size:13px; min-height:26px; }
.record-entry-help summary span { display:inline-grid; place-items:center; width:21px; height:21px; margin-right:5px; border-radius:50%; background:#373c48; color:white; font-weight:800; }
.record-entry-help p { font-size:13px; line-height:1.65; margin-bottom:4px; }
.record-entry-content-label { display:block; margin:12px 0; font-weight:700; }
.record-entry-content-label small { font-weight:400; color:#b5bcc9; }
.record-entry-content-label textarea { display:block; box-sizing:border-box; width:100%; margin-top:8px; padding:12px; border:1px solid #525a6d; border-radius:10px; background:#111722; color:#fff; font:inherit; font-weight:400; resize:vertical; }
.admin-entry-draft-overlay { position:fixed; inset:0; z-index:40000; background:#000b; display:grid; place-items:center; padding:18px; }
.admin-entry-draft-overlay section { width:min(100%,420px); max-height:90dvh; overflow:auto; box-sizing:border-box; padding:24px; border:1px solid #687086; border-radius:18px; background:#131923; color:#f1f4fa; box-shadow:0 20px 80px #0009; }
.admin-entry-draft-overlay h3 { margin:0 0 14px; }
.admin-entry-draft-overlay p { line-height:1.6; }
.admin-entry-draft-overlay small { display:block; margin-bottom:18px; color:#bfc6d5; line-height:1.5; }
.admin-entry-draft-overlay button { min-height:46px; white-space:normal; }
#admin-entry-draft-status { color:#ffca80; border:1px solid #99632e; border-radius:10px; padding:10px; }
