:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  color: #172f39;
  background: #edf4f5;
  --surface: #fff;
  --ink: #143442;
  --accent: #006c69;
  --outline: #346e72;
  --line: #c9dade;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #009d98; outline-offset: 3px; }
.skip { position: absolute; left: 1rem; top: -8rem; z-index: 20; background: var(--surface); padding: .8rem; }
.skip:focus { top: .5rem; }
.shell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem 2rem;
  padding: .7rem clamp(1rem, 3vw, 3rem);
  color: #f0fbfd;
  background: #092532;
  border-bottom: 2px solid #0e787b;
}
.shell-brand { display: block; width: min(185px, 42vw); min-width: 116px; padding: 5px 8px; border-radius: 6px; background: #fff; }
.shell-brand img { display: block; width: 100%; height: auto; }
.shell-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.shell-header nav a, .link-button { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem .25rem; color: #f0fbfd; font-weight: 650; }
.shell-header nav form { display: contents; }
.link-button { background: transparent; border: 0; text-decoration: underline; text-underline-offset: .2em; }
.shell-main { width: min(1120px, 100% - 2rem); margin: clamp(1rem, 3vw, 3rem) auto; flex: 1; }
.shell-main h1, .shell-main h2 { color: var(--ink); line-height: 1.17; }
.shell-main h1 { font-size: clamp(1.7rem, 4vw, 3rem); margin: 0 0 .45rem; }
.shell-main h2 { margin: 0 0 .8rem; font-size: clamp(1.15rem, 2.5vw, 1.55rem); }
.panel { background: var(--surface); padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: 14px; margin: 1rem 0; box-shadow: 0 9px 24px #14344209; }
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; }
.panels > .panel { margin: 0; }
.muted { color: #486771; }
.synthetic-label { font-weight: 640; color: #245c60; font-size: .86rem; }
.inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
.shell-main button, .shell-main .action {
  min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 675; padding: .45rem .8rem; border: 1px solid #006c69;
  color: #fff; background: var(--accent); border-radius: 8px; text-decoration: none; cursor: pointer;
}
.shell-main .action.secondary { color: var(--accent); background: #f1f8f7; }
.shell-main label { display: block; font-weight: 650; margin: .55rem 0 .2rem; }
.shell-main input:not([type=hidden]), .shell-main select, .shell-main textarea {
  width: min(100%, 32rem); min-height: 44px; padding: .45rem .65rem; border: 1px solid #628186;
  border-radius: 8px; font: inherit; color: var(--ink); background: #fff; margin: 0 0 .55rem;
}
.shell-main input[type=checkbox] { width: 1.05rem; min-height: 1.05rem; margin-right: .4rem; }
.shell-main .errorlist, .shell-error { color: #8a1b29; }
.shell-main ul { margin-block: .4rem .8rem; padding-left: 1.4rem; }
.shell-main .record-list { list-style: none; padding: 0; }
.record-list > li { border-top: 1px solid var(--line); padding: .7rem 0; }
.shell-main .table-scroll { overflow-x: auto; }
.publication-status { padding: .65rem .8rem; border-left: 4px solid #925a16; color: #633d10; background: #fff3da; }
.shell-main table { width: 100%; border-collapse: collapse; }
.shell-main th, .shell-main td { padding: .55rem .65rem; border-bottom: 1px solid var(--line); text-align: start; white-space: nowrap; }
.shell-message { max-width: 1120px; padding: .75rem 1rem; background: #d7edeb; margin: .8rem auto 0; width: calc(100% - 2rem); border-radius: 8px; }
.shell-footer { background: #0a2634; color: #dcecef; padding: .85rem clamp(1rem, 3vw, 3rem); display: flex; flex-wrap: wrap; gap: .25rem 2rem; justify-content: space-between; font-size: .8rem; }
.shell-footer p { margin: .25rem 0; }
.workspace-app { flex: 1; min-height: 68vh; }
.workspace-app .workspace-heading { margin: 0; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid var(--line); font-size: .9rem; }
.workspace-app #medshift-root { min-height: 65vh; }
.setup-start { border-block-start: 4px solid var(--accent); }
.workspace-advanced { margin-top: 1.25rem; }
.workspace-advanced summary { min-height: 44px; cursor: pointer; color: var(--accent); }
.setup-page { width: min(760px, 100% - 2rem); }
.setup-page .setup-steps { display: flex; padding-inline-start: 1.3rem; margin-block: 1.1rem; gap: .55rem 2rem; flex-wrap: wrap; }
.setup-steps li { padding-inline: .15rem; color: #486771; }
.setup-steps li[aria-current] { color: var(--accent); font-weight: 750; text-decoration: underline; text-underline-offset: .3em; }
.setup-form > div { margin-block: .8rem; }
.setup-form fieldset { border: 0; padding: 0; margin: 0; min-inline-size: 0; }
.setup-form legend { font-weight: 650; }
.setup-form fieldset label { display: flex; min-height: 44px; align-items: center; gap: .4rem; margin: 0; font-weight: 500; }
.setup-form fieldset input[type=checkbox] { margin: 0; }
.setup-form #id_weekdays, .setup-form #id_eligible { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 0 .55rem; }
.setup-form #id_roster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 0 .7rem; }
.setup-form .helptext { color: #486771; font-size: .9rem; }
.setup-form .setup-actions { margin-block: 1.3rem 0; }
.identity-page { width: min(530px, 100% - 2rem); }
.identity-card h1 { font-size: clamp(1.55rem, 3.1vw, 2.45rem); }
.identity-card form button { margin-top: .65rem; }
.identity-links { display: flex; flex-wrap: wrap; column-gap: 1.15rem; margin-top: 1rem; }
.identity-links a { display: inline-flex; align-items: center; min-height: 44px; }
.identity-synthetic { font-size: .85rem; margin: .75rem 0 0; }
.identity-entry {
  margin: 0; width: 100%; padding: clamp(2rem, 7vw, 7rem) max(1.25rem, calc((100% - 1160px) / 2));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(1.2rem, 5vw, 5rem); align-items: center;
  background: linear-gradient(90deg, #041b26f2 4%, #04212bb8 48%, #04192485), url('/brand/hospital-corridor.webp') center / cover;
  color: #eefafb;
}
.identity-entry .identity-intro { max-width: 39rem; }
.identity-intro > p:first-child { color: #a1e5e3; font-weight: 720; font-size: .75rem; letter-spacing: .16em; }
.identity-headline { margin: .6rem 0; font-size: clamp(2.05rem, 4.7vw, 4.45rem); font-weight: 700; line-height: 1.06; letter-spacing: -.025em; }
.identity-headline strong { color: #69efea; }
.identity-entry .identity-card { background: #092936e8; border-color: #5da9b3; box-shadow: inset 0 0 23px #6ddce83b, 0 20px 58px #0210199e; backdrop-filter: blur(14px); margin: 0; }
.identity-entry .identity-card h1 { color: #f0fbfd; }
.identity-entry .identity-card a, .identity-entry .identity-card .helptext { color: #9af4ed; }
.identity-entry .errorlist { color: #ffbccc; }
.identity-entry .identity-card input:not([type=hidden]) { color: #eefafa; background: #091f2c; border-color: #7eacb4; }
.identity-entry .identity-card button { background: #91eee8; color: #05272f; border-color: #91eee8; width: 100%; }
@media (max-width: 800px) {
  .identity-entry { grid-template-columns: 1fr; justify-items: center; padding: 2rem 1rem; background-image: linear-gradient(#041b26e8, #04212bd0), url('/brand/hospital-corridor-compact.webp'); }
  .identity-entry .identity-card { width: min(100%, 530px); }
  .identity-intro { width: min(100%, 530px); }
}
@media (max-width: 600px) {
  .shell-header { gap: .15rem 1rem; }
  .shell-header nav { gap: .15rem .65rem; }
  .shell-header nav a, .link-button { font-size: .9rem; }
}
