/* prefs.css — l23 Settings (04-Nov-2026): the Look settings, from the attributes prefs.php prints on <html>, and the Settings screen. */
html[data-ts="s"] { zoom: .92; } html[data-ts="l"] { zoom: 1.1; } html[data-ts="xl"] { zoom: 1.22; }
html[data-accent="blue"] { --accent: #1f5fbf; --accent-d: #174a96; --accent-2: #e7effb; }
html[data-accent="green"] { --accent: #2e7d4f; --accent-d: #22613d; --accent-2: #e5f3ea; }
html[data-accent="purple"] { --accent: #6a3fa0; --accent-d: #52307d; --accent-2: #f0e9f8; }
html[data-accent="maroon"] { --accent: #8c2f39; --accent-d: #6e242c; --accent-2: #f8e8ea; }
@media (min-width: 1025px) {   /* Compact only on computers: phones keep full-size tap targets (UI_STANDARD U3) */
  html[data-density="compact"] body { line-height: 1.35; }
  html[data-density="compact"] button, html[data-density="compact"] input, html[data-density="compact"] select { min-height: 28px; }
  html[data-density="compact"] button { padding: 3px 11px; }
  html[data-density="compact"] td, html[data-density="compact"] th { padding-top: 3px; padding-bottom: 3px; }
}
/* the screen (?p=prefs) */
.pf { max-width: 860px; }
.pf .pfbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.pf .pfbar input[type=search] { flex: 1 1 240px; min-height: 44px; font-size: 15px; }
.pf .pfwho { display: inline-flex; gap: 8px; }
.pf .pfwho button { border: 1px solid var(--field); background: #fff; color: var(--ink); min-height: 44px; font-weight: 600; }
.pf .pfwho button.on { background: var(--accent); color: #fff; }
.pf .pfg { background: var(--card); border: 1px solid var(--line2); border-radius: var(--radius); margin: 0 0 14px; }
.pf .pfg > h2 { font-size: 15px; margin: 0; padding: 12px 14px 2px; } .pf .pfg > p { margin: 0; padding: 0 14px 6px; }
.pf .pfr { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 12px 14px; border-top: 1px solid var(--line2); align-items: center; }
.pf .pfr b { font-size: 14px; } .pf .pfr .muted { display: block; margin-top: 2px; }
.pf .pfc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pf .pfc button { min-height: 44px; min-width: 44px; background: #fff; color: var(--ink); border: 1px solid var(--field); font-weight: 600; }
.pf .pfc button.on { background: var(--accent-2); border-color: var(--accent); color: var(--accent-d); }
.pf .pfm { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 12px; }
.pf .pfm label { display: flex; gap: 8px; align-items: center; min-height: 44px; font-size: 14px; font-weight: 400; color: var(--ink); }
.pf .pfm h3 { grid-column: 1 / -1; font-size: 13px; margin: 8px 0 0; color: var(--muted, #5b6770); }
.pf .pfm input { width: 20px; min-height: 20px; }
.pf .pfchip { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 1px; }
.pf .pfchip.new { background: var(--warn); color: #7a5300; } .pf .pfchip.chg { background: var(--accent-2); color: var(--accent-d); }
.pf .pfreset { background: none; border: 0; color: var(--accent); padding: 0 4px; min-height: 32px; font-weight: 600; text-decoration: underline; }
.pf .pfsaved { color: var(--ok); font-size: 12px; font-weight: 600; }
.pf .pfask { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 14px; } .pf .pfask input { flex: 1 1 260px; min-height: 44px; }
.pf .pfask button { min-height: 44px; }
@media (max-width: 600px) { .pf .pfr { grid-template-columns: 1fr; } .pf .pfc { justify-content: flex-start; } }

/* Ward & OPD (lane E, 22-Nov-2026) */
.pfsub{margin:1.1rem 0 .3rem;font-size:1rem}
.pfi input,.pfi textarea{min-height:44px;width:100%;max-width:22rem;box-sizing:border-box;font:inherit;padding:.5rem .6rem;border:1px solid #c9d3d8;border-radius:8px}
.pfi textarea{font-family:ui-monospace,Menlo,monospace;font-size:.85rem}
.pfi input:disabled,.pfi textarea:disabled{background:#f2f4f5;color:#5a6b73}
.pfval{padding:.5rem 0}
.pfhist{padding-left:1.1rem;margin:.3rem 0}.pfhist li{margin:.35rem 0}
