/* Prescribers Control. Colour tokens match Create's (light and dark); the dark top strip uses the shared --pz-* tokens from prescribers-ui.css. Every class is .ctl-*. No inline style is used anywhere (CSP). */
:root {
  --paper: #f6f6f2; --surface: #ffffff; --sunken: #f0f1ec; --ink: #0a1530; --ink-2: #2b3550; --muted: #5d6476; --hairline: #e3e4de; --rule: #c9ccd2;
  --blue: #2563eb; --blue-soft: #e8efff; --blue-ink: #1b4fc4; --ok: #1d6b41; --ok-soft: #e4f3ea; --warn: #8a5a00; --warn-soft: #fbf1dc; --bad: #b3261e; --bad-soft: #fbe7e5;
  --on-strong: #ffffff; --shadow: 0 1px 2px rgba(10, 21, 48, 0.06), 0 2px 8px rgba(10, 21, 48, 0.04);
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --mono: ui-monospace, "SF Mono", Menlo, monospace; --r: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0b142d; --surface: #111c3a; --sunken: #0e1833; --ink: #eef1f8; --ink-2: #d5dbea; --muted: #a3abc0; --hairline: #22305a; --rule: #33426e;
    --blue: #7aa2ff; --blue-soft: #1a2a55; --blue-ink: #a9c2ff; --ok: #7fd3a2; --ok-soft: #163626; --warn: #ffcf70; --warn-soft: #3a2f12; --bad: #ff8a80; --bad-soft: #3d1a1a; --on-strong: #0b142d; --shadow: none; color-scheme: dark; }
}
html[data-theme="dark"] { --paper: #0b142d; --surface: #111c3a; --sunken: #0e1833; --ink: #eef1f8; --ink-2: #d5dbea; --muted: #a3abc0; --hairline: #22305a; --rule: #33426e;
  --blue: #7aa2ff; --blue-soft: #1a2a55; --blue-ink: #a9c2ff; --ok: #7fd3a2; --ok-soft: #163626; --warn: #ffcf70; --warn-soft: #3a2f12; --bad: #ff8a80; --bad-soft: #3d1a1a; --on-strong: #0b142d; --shadow: none; color-scheme: dark; }
* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); }
.ctl-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; padding: 6px max(16px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); background: var(--pz-navy); color: var(--pz-on-navy); }
.ctl-brand { font-weight: 600; letter-spacing: -0.01em; } .ctl-brand i { font-style: normal; color: var(--pz-on-navy-mute); } .ctl-brand b { margin-left: 8px; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 13px; }
.ctl-who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--pz-on-navy-mute); } .ctl-who[hidden] { display: none; } .ctl-who code { font: 12px var(--mono); color: var(--pz-on-navy); }
.ctl-main { flex: 1; width: 100%; max-width: 960px; margin: 0 auto; padding: 28px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); display: grid; gap: 18px; align-content: start; }
.ctl-foot { padding: 14px 16px 22px; text-align: center; font-size: 12.5px; color: var(--muted); }
h1 { margin: 0; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; } h2 { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ctl-lede { margin: 4px 0 0; color: var(--muted); max-width: 62ch; } .ctl-quiet { color: var(--muted); margin: 0; }
.ctl-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ctl-btn { appearance: none; font: inherit; font-weight: 600; font-size: 13.5px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.ctl-btn:hover { border-color: var(--blue); } .ctl-btn.primary { background: var(--ink); border-color: var(--ink); color: var(--on-strong); } .ctl-btn.small { padding: 4px 12px; font-size: 12.5px; } .ctl-btn.quiet { background: transparent; border-color: transparent; color: var(--blue-ink); }
.ctl-top .ctl-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.2); color: var(--pz-on-navy); }
.ctl-btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.ctl-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ctl-center { max-width: 460px; margin: 12vh auto 0; padding: 28px; display: grid; gap: 14px; text-align: left; }
.ctl-banner { padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--rule); background: var(--sunken); font-size: 14px; } .ctl-banner.warn { background: var(--warn-soft); border-color: var(--warn); color: var(--ink); } .ctl-banner.bad { background: var(--bad-soft); border-color: var(--bad); }
.ctl-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.ctl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--sunken); color: var(--ink-2); border: 1px solid var(--hairline); }
.ctl-pill.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; } .ctl-pill.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; } .ctl-pill.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; } .ctl-pill.blue { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.ctl-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ctl-person-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 14px 18px; border-bottom: 1px solid var(--hairline); }
.ctl-name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; } .ctl-name.none { color: var(--muted); font-weight: 500; } .ctl-sub { display: block; font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.ctl-edit { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .ctl-edit input { font: inherit; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--rule); background: var(--paper); color: var(--ink); min-width: 0; width: min(260px, 100%); }
.ctl-acct { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--hairline); } .ctl-acct:first-of-type { border-top: 0; }
.ctl-app { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); } .ctl-ref { font-weight: 600; overflow-wrap: anywhere; }
.ctl-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ctl-auths { grid-column: 2 / -1; font-size: 13px; color: var(--ink-2); } .ctl-auths summary { cursor: pointer; color: var(--muted); } .ctl-auths ul { margin: 6px 0 0; padding-left: 18px; }
.ctl-skel { height: 92px; border-radius: var(--r); background: var(--sunken); }
@media (max-width: 640px) { .ctl-acct { grid-template-columns: minmax(0, 1fr); } .ctl-chips { justify-content: flex-start; } .ctl-auths { grid-column: 1; } h1 { font-size: 22px; } }
@media (prefers-reduced-motion: no-preference) { .ctl-skel { animation: ctl-pulse 1.4s ease-in-out infinite; } @keyframes ctl-pulse { 50% { opacity: 0.55; } } }
