html { scrollbar-gutter: stable }
* { box-sizing: border-box }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased }
button, input, select, textarea, optgroup, option { font: inherit }
code, kbd, pre, samp { font-family: inherit }
button, select { cursor: pointer }
:is(button, select, input, textarea, a, [tabindex]):focus-visible { outline: 2px solid var(--focus); outline-offset: 3px }
button[disabled] { cursor: wait; opacity: .65 }
a { color: inherit; text-decoration: none }
[hidden] { display: none !important }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap }
.shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100dvh; padding: 24px 28px 24px 18px }
.sidebar {
  display: flex; flex-direction: column; align-self: start; position: sticky; top: 24px;
  z-index: 1; min-width: 0; min-height: calc(100dvh - 48px); padding: 4px 18px 0 0;
}
#hub-navigation { display: grid; gap: 5px }
nav button { display: flex; align-items: center; gap: 10px; min-height: 40px; background: transparent; border: 0; color: var(--muted); text-align: left; padding: 9px 12px; border-radius: 7px; font-size: .9375rem }
nav button[aria-current="page"] { background: var(--nav-active); color: var(--ink) }
nav button:hover { background: var(--line); color: var(--ink) }
.icon { flex: 0 0 auto; width: 18px; height: 18px; vertical-align: middle }
.workspace { min-width: 0; min-height: calc(100dvh - 48px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 10px #25252c08; overflow: hidden }
.shell-top { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; min-height: 58px; padding: 0 24px; background: var(--paper); border-bottom: 1px solid var(--line) }
h1,h2,h3,p { margin: 0 }
h1 { display: flex; align-items: center; border-bottom: 1px solid #2b2b2e; margin-bottom: -1px; font-size: .9375rem; font-weight: 500 }
h2 { color: var(--ink); font-size: 1.0625rem; font-weight: 500 }
h3 { color: var(--ink); font-size: .9375rem; font-weight: 500 }
.top-right { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 8px 0; font-size: .875rem }
.demo-label { align-self: center; color: var(--muted); font-size: .8125rem; white-space: nowrap }
.top-right select { max-width: 100%; min-height: 34px; color: var(--text) }
main { min-width: 0; padding: 24px }
.loading { color: var(--muted) }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--text); padding: 8px 13px; font-size: .875rem; font-weight: 400; box-shadow: 0 1px 3px #25252a05 }
.button:hover { background: var(--hover) }
.primary { border-color: #2b2b2d; border-radius: 8px; background: linear-gradient(135deg,#1c1c1e,#2e2e31); color: #fff; box-shadow: 0 3px 7px #22222720 }
.primary:hover { background: #3a3a3e }
#content { min-width: 0 }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: 0 2px 6px #28202f03; overflow: hidden }
.panel + .panel { margin-top: 18px }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px }
.panel-head p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.4 }
.field-row { display: flex; align-items: center; gap: 8px }
.field-row label { color: var(--muted); font-size: .875rem }
select,input,textarea { min-width: 0; padding: 8px 10px; border: 1px solid var(--field); border-radius: 7px; color: var(--ink); background: var(--paper) }
.table-window { overflow-x: auto }
table { width: 100%; border-collapse: collapse; color: var(--text); text-align: left; white-space: nowrap; font-size: .875rem }
th,td { padding: 13px 18px; border-top: 1px solid var(--line); text-align: left }
th:first-child, td:first-child { padding-left: 24px }
th:last-child, td:last-child { padding-right: 24px }
th { background: var(--subtle); color: var(--muted); font-size: .75rem; font-weight: 500; letter-spacing: .045em }
td:not(:first-child) { font-variant-numeric: tabular-nums }
.balance-table td:nth-child(2) { font-weight: 500; color: var(--ink) }
.balance-table tbody tr:hover { background: var(--paper) }
.date-list { display: grid; margin: 0; padding: 0; list-style: none }
.date-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); color: var(--text); font-size: .875rem }
.date-list li strong { font-weight: 500 }
.date-list span { margin-left: 8px; color: var(--muted) }
.empty { padding: 18px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem }
.status { display: inline-block; padding: 4px 7px; border-radius: 4px; color: var(--amber-ink); background: var(--amber); font-size: .8125rem; line-height: 1.4 }
.status.approved { color: var(--sage-ink); background: var(--sage) }
.status.declined { color: var(--red-ink); background: var(--red) }
.note { color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere }
.request-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 24px; border-top: 1px solid var(--line) }
.request-row p { margin-top: 5px; color: var(--muted); font-size: .875rem; line-height: 1.45 }
.request-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.settings { max-width: 880px }
.settings form { display: grid; gap: 18px; border-top: 1px solid var(--line); padding: 18px 24px }
fieldset { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px }
legend { color: var(--text); padding: 0 4px; font-size: .875rem }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px }
.checks label, .check { display: flex; gap: 7px; align-items: center; color: var(--text); font-size: .875rem }
.check input, .checks input { width: 17px; height: 17px; margin: 0; accent-color: #3b3b40 }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px }
.control { display: grid; gap: 6px; align-content: start; color: var(--muted); font-size: .875rem }
.control input,.control select,.control textarea { width: 100%; font-size: 1rem }
.control small { color: var(--muted); font-size: .8125rem; line-height: 1.4 }
.control textarea { resize: vertical }
.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px }
#notice { margin-bottom: 14px; padding: 10px 13px; border-radius: 8px; color: #f3f3f4; background: #2e2c30; font-size: .875rem }
#notice.error { background: #713e39 }
.form-error { color: var(--red-ink); font-size: .875rem; line-height: 1.4 }
.cal-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)) }
.cal-heading { padding: 10px 5px; border-top: 1px solid var(--line); background: var(--subtle); color: var(--muted); text-align: center; font-size: .8125rem }
.cal-cell { min-width: 0; min-height: 83px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px }
.cal-cell:nth-child(7n) { border-right: 0 }
.cal-cell time { display: inline-block; padding: 2px 5px; color: var(--text); font-size: .875rem }
.cal-cell.current time { border-radius: 4px; background: #2b2b2e; color: #fff }
.cal-entry { margin-top: 3px; padding: 4px; border-radius: 4px; background: var(--subtle); color: var(--text); overflow-wrap: anywhere; font-size: .8125rem; line-height: 1.3 }
html:has(dialog:modal) { overflow: hidden }
dialog { width: min(540px,calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 1px solid var(--nav-active); border-radius: 17px; background: var(--paper); color: var(--ink); box-shadow: 0 20px 70px #25132f26,0 3px 12px #25132f0d }
dialog:modal { overflow: auto; overscroll-behavior: contain }
@media (min-width: 761px) {
  #dialog:has(> #hr-employee) {
    width: min(calc(100% - 48px), clamp(640px, 72vw, 980px));
    max-height: calc(100dvh - 48px);
  }
}
dialog::backdrop { background: #19181e5c; backdrop-filter: blur(2px) }

@media (prefers-reduced-motion: no-preference) {
  dialog:modal { animation: hub-dialog-enter 100ms cubic-bezier(.2, .75, .3, 1) }
  dialog:modal::backdrop { animation: hub-backdrop-enter 100ms ease-out }
  dialog:modal[data-closing] { animation: hub-dialog-exit 100ms cubic-bezier(.7, 0, .8, .25) both }
  dialog:modal[data-closing]::backdrop { animation: hub-backdrop-exit 100ms ease-in both }
}
@keyframes hub-dialog-enter {
  from { opacity: 0; scale: .97 }
  to { opacity: 1; scale: 1 }
}
@keyframes hub-backdrop-enter {
  from { opacity: 0 }
  to { opacity: 1 }
}
@keyframes hub-dialog-exit {
  from { opacity: 1; scale: 1 }
  to { opacity: 0; scale: .97 }
}
@keyframes hub-backdrop-exit {
  from { opacity: 1 }
  to { opacity: 0 }
}
dialog[data-closing] { pointer-events: none }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line) }
.dialog-head h2 { color: var(--ink); font-size: 1.3125rem; font-weight: 400; letter-spacing: -.3px }
.close { width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 1.25rem }
.close:hover { background: var(--hover) }
.spin-on-hover { display: inline-block; transform-origin: center }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .spin-on-hover { transform: rotate(0deg); transition: transform 180ms ease-out }
  button:not(:disabled):hover > .spin-on-hover { transform: rotate(90deg) }
}
dialog form { display: grid; gap: 15px; padding: 18px 20px 0 }
dialog .actions { margin: 0 }
.estimate { padding: 9px 12px; border-radius: 6px; background: var(--subtle); color: var(--text); font-size: .875rem }
@media (max-width: 1100px) {
  .shell { grid-template-columns: 182px minmax(0,1fr); padding-inline: 18px }
  .sidebar { padding-right: 12px }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: calc(54px + env(safe-area-inset-left,0px)) minmax(0,1fr); padding: 12px max(12px,env(safe-area-inset-right,0px)) max(12px,env(safe-area-inset-bottom,0px)) 0 }
  .sidebar { top: 12px; min-height: calc(100dvh - 12px - max(12px,env(safe-area-inset-bottom,0px))); padding: 0 6px 0 calc(6px + env(safe-area-inset-left,0px)) }
  #hub-navigation button span { display: none }
  #hub-navigation button { justify-content: center; min-height: 42px; padding: 8px 0 }
  .shell-top { min-height: 58px; padding: 0 12px; flex-wrap: wrap; row-gap: 0 }
  h1 { min-height: 46px }
  .top-right { gap: 6px; flex: 1; justify-content: flex-end }
  .top-right select { max-width: min(100%, 154px); padding-inline: 5px; font-size: .8125rem }
  main { padding: 16px 12px }
  .panel-head,.request-row,.date-list li,.empty,.settings form { padding-inline: 12px }
  th,td,th:first-child,td:first-child { padding: 11px 12px }
}
@media (max-width: 490px) {
  .demo-label { display: none }
  .request-row { align-items: flex-start }
  .date-list li { flex-wrap: wrap; gap: 4px 10px }
  .settings .form-grid { grid-template-columns: minmax(0,1fr) }
}
#hub-navigation .section-active { color: var(--ink); background: var(--nav-active) }
.cal-colour-0 { background: var(--sage); color: var(--sage-ink) }
.cal-colour-1 { background: var(--blue); color: var(--blue-ink) }
.cal-colour-2 { background: var(--amber); color: var(--amber-ink) }
.cal-colour-3 { background: var(--teal); color: var(--teal-ink) }
.cal-colour-4 { background: var(--red); color: var(--red-ink) }
.cal-colour-5 { background: var(--subtle); color: var(--text) }
@media (max-width: 760px) {
  .calendar-panel .panel-head { flex-wrap: wrap; row-gap: 6px }
  .calendar-panel .field-row { gap: 4px }
  .calendar-panel .field-row .button { min-height: 32px; padding: 4px 8px }
  .cal-cell { min-height: 66px; padding: 2px }
  .cal-cell time { font-size: .75rem; padding: 2px 3px }
  .cal-entry { padding: 2px; font-size: .6875rem }
  .cal-heading { padding-inline: 1px; font-size: .6875rem }
}


.account { position: relative; margin-top: auto; padding-top: 20px; width: 100%; min-width: 0 }
.account-trigger {
  display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 7px 5px;
  border-radius: 8px; color: var(--ink); font-size: .875rem; list-style: none; cursor: pointer;
}
.account-trigger::-webkit-details-marker { display: none }
.account-trigger:hover,.account[open] .account-trigger { background: var(--nav-active) }
.account-trigger:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px }
.account-avatar {
  display: grid; place-items: center; flex: 0 0 29px; height: 29px;
  color: var(--text); background: var(--nav-active); border-radius: 50%; font-size: .6875rem;
}
.account-name { min-width: 0; overflow-wrap: anywhere }
.account-chevron {
  flex: 0 0 6px; height: 6px; margin: 3px 5px 0 auto;
  border: solid currentColor; border-width: 1px 0 0 1px; transform: rotate(45deg);
}
.account-menu {
  position: absolute; bottom: calc(100% - 14px); left: 0; width: 204px; padding: 8px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper);
  box-shadow: 0 12px 38px #24232b1a,0 2px 8px #24232b08;
}
.account-menu { font-size: .875rem; line-height: 1.35 }
.account-menu p { margin: 4px 0 0; padding: 6px 10px; color: var(--muted); font-weight: 700 }
.account-menu :is(button, a) {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
  padding: 8px 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); text-align: left; text-decoration: none;
  font: inherit; font-weight: 650; overflow-wrap: anywhere;
}
.account-menu .icon { width: 17px; height: 17px; color: var(--muted) }
@media (max-width: 760px) {
  .account-trigger { display: grid; justify-items: center; gap: 3px; padding: 4px 0 }
  .account-avatar { width: 26px; height: 26px }
  .account-name { max-width: 100%; font-size: .625rem; line-height: 1.15; text-align: center }
  .account-chevron { display: none }
  .account-menu { bottom: 0; left: calc(100% + 6px) }
}
@media (max-height: 540px) {
  .sidebar { position: relative; top: auto }
}

.calendar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px }
.cal-holiday {
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 650;
}

.section-toolbar {
  container-type: inline-size;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px 16px; margin-bottom: 16px;
}
#time-off-navigation { display: flex; flex-wrap: wrap; gap: 4px }
#time-off-navigation button { font-size: .875rem }
.section-toolbar #primary { min-height: 40px; margin-inline-start: auto; white-space: nowrap }
@container (max-width: 36rem) {
  .section-toolbar #time-off-navigation {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    width: 100%; gap: 3px; padding: 3px;
    background: var(--paper); border: 1px solid var(--line); border-radius: 11px;
  }
  .section-toolbar #time-off-navigation button {
    justify-content: center; text-align: center; min-width: 0;
    min-height: 44px; padding: 6px 4px; line-height: 1.2;
  }
  .section-toolbar #primary {
    width: 100%; min-height: 44px; margin-inline-start: 0;
    box-shadow: none; white-space: normal;
  }
}

.hr-toolbar { justify-content: flex-start; align-items: center }
.hr-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px 24px; margin: 0; padding: 0 24px 20px }
.hr-details dt { color: var(--muted); font-size: .875rem; margin-bottom: 4px }
.hr-details dd { margin: 0; overflow-wrap: anywhere }
.training-name { min-width: 156px; max-width: 290px; white-space: normal; overflow-wrap: anywhere }
.training-name small { display: block; margin-top: 4px; color: var(--muted) }
.status.neutral { color: var(--text); background: var(--line) }
.form-actions { flex-wrap: wrap; justify-content: flex-end }
.form-choices { display: grid }
.form-choices input { flex-shrink: 0 }
.employee-forms small, .form-choices small { display: block; margin-top: 4px; color: var(--muted) }
.employee-forms li > div, .form-choices span { min-width: 0; overflow-wrap: anywhere }

.allowances-panel { container-type: inline-size }
.allowance-head, .employee-allowance-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .85fr) minmax(0, 1fr) 4.5rem;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 24px;
  border-top: 1px solid var(--line);
}
.allowance-head { background: var(--surface); color: var(--text); font-size: .8125rem; font-weight: 650 }
.employee-allowance-row h3 { font-size: .9375rem; overflow-wrap: anywhere }
.employee-allowance-row .control input { max-width: 6rem; font-variant-numeric: tabular-nums }
.employee-hourly { display: grid; justify-items: start; gap: 3px; color: var(--muted); font-size: .875rem }
.employee-hourly strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums }
.allowance-mobile-label { display: none }
.allowance-context { margin-top: 4px; color: var(--muted); font-size: .875rem }
.employee-hourly small, .employee-save p { color: var(--muted); font-size: .8125rem }
.employee-save { text-align: right }
.employee-save p:not(:empty) { margin-top: 4px; overflow-wrap: anywhere }
@container (max-width: 630px) {
  .allowance-head { display: none }
  .employee-allowance-row { grid-template-columns: repeat(2, minmax(0,1fr)); padding-inline: 16px }
  .employee-allowance-row h3 { grid-column: 1 / -1 }
  .employee-allowance-row .control input { max-width: none }
  .allowance-mobile-label { display: block }
  .employee-save { align-self: end }
}

.signs-toolbar nav { display: flex; gap: 4px; flex-wrap: wrap }
.signs-toolbar nav button { min-height: 36px; padding: 7px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; cursor: pointer }
.signs-toolbar nav button:hover, .signs-toolbar nav button[aria-current="page"] { background: var(--line); color: var(--ink) }
.sign-list { margin: 0; padding: 0; list-style: none }
.sign-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); overflow-wrap: anywhere }
.sign-row h3 { margin-bottom: 5px; font-size: 1rem }
.sign-name { margin-bottom: 4px }
.sign-meta { color: var(--muted); font-size: .875rem; line-height: 1.4 }
.sign-notes { margin-top: 8px; white-space: pre-wrap; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden }
.sign-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; flex-shrink: 0 }
.sign-stock { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px }
.sign-photos { display: grid; gap: 8px; margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0 }
.sign-photos legend { padding-inline: 4px; font-weight: 600; font-size: .875rem }
.sign-photos ul { display: grid; grid-template-columns: repeat(auto-fill,minmax(95px,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none }
.sign-photos img { display: block; width: 100%; border-radius: 6px; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line) }
.sign-photos li label { display: flex; align-items: center; gap: 4px; margin-top: 5px; font-size: .875rem }
.sign-photos input[type="file"] { width: 100%; max-width: 100%; font-size: .875rem }
@media (max-width: 600px) {
  .sign-row { flex-direction: column; gap: 10px; padding: 14px 12px }
  .signs-toolbar { flex-wrap: wrap }
  .signs-toolbar .button, .sign-row .button { min-height: 44px }
  .signs-form-grid { grid-template-columns: minmax(0,1fr) }
}
.sign-photos #pending-sign-photos { display: block }
#pending-sign-photos li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-block: 5px; font-size: .875rem; overflow-wrap: anywhere }

.sign-fields { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px }
.sign-fields legend { padding-inline: 4px; font-weight: 600; font-size: .875rem }
.sign-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 0 24px 16px }
.sign-filters > .control { min-width: 145px }
.sign-filters > .control:first-child { flex: 1 1 230px }
.quote-group > h3 { background: var(--subtle); margin: 0; padding: 10px 24px; border-top: 1px solid var(--line); font-size: .875rem }
.quote-line { display: grid; grid-template-columns: minmax(0,2fr) minmax(0, .75fr) minmax(0,1fr) auto; align-items: end; gap: 8px; margin-bottom: 10px }
.quote-remove { min-width: 38px }
.quote-tax { max-width: 120px }
.quote-photo-option { display: flex; gap: 8px; align-items: center; font-size: .875rem }
.sign-totals { justify-self: end; width: min(100%, 230px); margin: 0 0 0 auto; font-variant-numeric: tabular-nums }
.sign-totals > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 5px 0 }
.sign-totals > div:last-child { border-top: 1px solid #ccc }
.sign-totals dd { margin: 0 }
.sign-print { display: none }
@media (max-width: 600px) {
  .sign-filters { padding-inline: 12px }
  .quote-group > h3 { padding-inline: 12px }
  .quote-line { grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto; padding-bottom: 8px; border-bottom: 1px solid var(--line) }
  .quote-line > label:first-child { grid-column: 1 / -1 }
}
@media print {
  @page { margin: 15mm }
  body:has(.sign-print) { color-scheme: light; display: block; margin: 0; padding: 0; background: white; color: #111 }
  body:has(.sign-print) > :not(.sign-print) { display: none !important }
  .sign-print { display: block !important; font: 11pt/1.45 Figtree }
  .sign-print header { display: flex; justify-content: space-between; align-items: start; gap: 12px; border-bottom: 1px solid #aaa; padding-bottom: 12px }
  .sign-print header p { text-align: right }
  .sign-print h1 { margin: 0; font-size: 19pt }
  .sign-print h2 { margin: 0 0 4px; font-size: 13pt }
  .sign-print section, .sign-print table { margin-block: 16px }
  .sign-print th, .sign-print td { padding: 6px 8px; border-bottom: 1px solid #ccc; background: white; color: #111; text-align: right }
  .sign-print th:first-child, .sign-print td:first-child { text-align: left }
  .sign-print-scope { white-space: pre-wrap }
  .sign-print-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px }
  .sign-print-photos img { width: 100%; height: 55mm; object-fit: contain; break-inside: avoid }
}

/* Preview sign-in */
.login-screen { display: grid; place-items: center; min-height: 100dvh; padding: clamp(20px, 6vw, 100px); background: var(--surface) }
.login-card { display: grid; grid-template-columns: 1.68fr 1fr; width: min(1200px, 100%); min-height: min(675px, calc(100dvh - 80px)); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 22px 60px #2424280c, 0 3px 12px #24242804; overflow: hidden }
.login-welcome { display: flex; flex-direction: column; justify-content: space-between; padding: 42px 46px; background: linear-gradient(135deg, #1c1c1e, #2e2e31); color: #fdfdfe }
.login-brand { display: grid; gap: 7px }
.login-brand strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -.04em }
.login-brand span { color: #bcbcc2; font-size: .875rem }
.login-welcome h1 { display: block; align-self: center; border: 0; margin: 48px 0; font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 400; line-height: 1.5; letter-spacing: -.025em; text-align: center }
.login-brand-footer { color: #bcbcc2; font-size: .875rem }
.login-panel { display: grid; place-items: center; padding: 64px clamp(28px, 4vw, 64px) }
.login-form-wrap { width: 100%; max-width: 340px }
#login-form { display: grid; gap: 22px }
#login-form .control { gap: 12px; color: var(--text); font-size: .875rem }
#login-form input { min-height: 50px; padding: 13px 16px; background: var(--paper); box-shadow: 0 1px 3px #24242804 }
#login-form input:disabled { opacity: 1; color: var(--text); -webkit-text-fill-color: var(--text); cursor: default }
#login-form input::placeholder { color: var(--muted); opacity: 1 }
.login-submit { width: 100%; min-height: 50px; margin-top: 2px; font-size: .9375rem }
.login-submit:disabled { opacity: 1; cursor: default }
.login-forgot { justify-self: center; min-height: 28px; margin-top: -8px; padding: 4px; border: 0; background: transparent; color: var(--text); font-size: .875rem }
.login-forgot:hover { text-decoration: underline }
.login-preview-note { margin-top: 22px; color: var(--muted); font-size: .875rem; line-height: 1.55; text-align: center }
.login-divider { display: flex; align-items: center; gap: 20px; margin: 26px 0; color: var(--muted); font-size: .875rem }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line) }
.login-demo { width: 100%; min-height: 50px; font-size: .9375rem }
.login-profiles { display: grid; gap: 14px }
.login-profiles select { min-height: 46px }
.login-profiles .button { min-height: 46px }
.login-status { margin-top: 15px; font-size: .875rem; line-height: 1.5; color: var(--text) }
.login-status:empty { display: none }
.account-menu :is(#profile-options, #app-access-menu:not([hidden])) + .account-sign-out {
  margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0; padding-top: 10px;
}
@media (max-width: 760px) {
  .login-screen { padding: 24px 16px }
  .login-card { grid-template-columns: 1fr; width: min(480px, 100%); min-height: 0; border-radius: 16px }
  .login-welcome { min-height: 230px; padding: 26px 28px }
  .login-welcome h1 { margin: 30px 0 12px; font-size: 1.25rem; min-height: 0 }
  .login-brand-footer { display: none }
  .login-panel { padding: 34px 28px }
}

.workspace:has(.calendar-panel),
.workspace:has(.calendar-panel) main,
.workspace:has(.calendar-panel) #content,
.calendar-panel {
  display: flex;
  flex-direction: column;
}
.workspace:has(.calendar-panel) main,
.workspace:has(.calendar-panel) #content,
.calendar-panel,
.calendar-panel .cal-grid { flex: 1 }
.calendar-panel .cal-grid {
  grid-template-rows: auto;
  grid-auto-rows: minmax(min-content, 1fr);
}
.calendar-panel .cal-cell { min-height: clamp(30px, 8dvh, 66px) }

.employee-greeting { padding: 26px 24px 8px; background: var(--paper); color: var(--ink); font-size: 1.5rem; font-weight: 500; letter-spacing: -.035em; line-height: 1.35; overflow-wrap: anywhere }
@media (max-width: 760px) {
  .employee-greeting { padding: 20px 12px 6px; font-size: 1.25rem }
}

.request-date-button { justify-content: space-between; min-width: 0; text-align: left }
.request-date-button .icon { width: 15px; height: 15px }
#request-date-picker { width: min(380px, calc(100% - 28px)) }
#request-date-picker::backdrop { background: #19181e30; backdrop-filter: none }
.picker-month { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 4px }
.picker-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; padding: 8px 16px 16px }
.picker-weekday { padding-block: 5px; text-align: center; color: var(--muted); font-size: .75rem }
.picker-grid .picker-day { padding: 4px; min-height: 36px; box-shadow: none }
.picker-day[aria-current="date"] { border-color: var(--focus) }
.picker-day[aria-pressed="true"] { background: var(--action); color: var(--action-ink) }
.picker-day:disabled { opacity: .35; cursor: default }

.approval-steps { display: grid; gap: 12px }
.approval-steps .form-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end }

.assigned-leave-approvals { margin-bottom: 18px }
