@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #172b4d;
  --navy-2: #22406e;
  --navy-3: #3a5a8c;
  --gold: #a26f29;
  --gold-bright: #e0b062;
  --gold-ink: #7a5116;
  --gold-deep: #8a5c1c;
  --gold-tint: #f8eedb;
  --gold-line: #e8d3ac;
  --canvas: #f3f5f9;
  --surface: #fff;
  --line: #dce1ea;
  --line-soft: #e8ecf2;
  --line-strong: #c3cbd9;
  --field: #8a95a8;
  --hover: #f1f4f9;
  --ink: #172b4d;
  --ink-2: #34415c;
  --muted: #546075;
  --ok: #17673f;
  --ok-tint: #e2f3e9;
  --ok-line: #bfe0cc;
  --bad: #b3261e;
  --bad-tint: #fdecea;
  --bad-line: #f1bdb8;
  --bad-ink: #7f1a14;
  --font:
    "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    sans-serif;
  --display:
    "Bricolage Grotesque", "Figtree", ui-sans-serif, system-ui, sans-serif;
  --t-xs: 0.8125rem;
  --t-sm: 0.875rem;
  --t-base: 0.9375rem;
  --t-md: 1.0625rem;
  --t-lg: 1.375rem;
  --t-xl: clamp(1.625rem, 1.3rem + 1vw, 2rem);
  --radius: 10px;
  --radius-card: 14px;
  --sidebar: 248px;
  --topbar: 60px;
  font-family: var(--font);
  font-size: 100%;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  color-scheme: light;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-size: var(--t-base);
  background: var(--canvas);
  overflow-wrap: break-word;
}
button,
input,
select,
textarea {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: inherit;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h2 {
  font-size: var(--t-md);
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 4px;
}
h3 {
  font-size: var(--t-base);
  font-weight: 650;
  line-height: 1.4;
}
p {
  line-height: 1.55;
}
small {
  font-size: var(--t-xs);
  color: var(--muted);
}
b,
strong {
  font-weight: 650;
}
code {
  font-size: var(--t-xs);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 300;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: top 0.15s;
}
.skip-link:focus {
  top: 12px;
}
.muted {
  color: var(--muted);
}
.block {
  display: block;
  margin-top: 2px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.tabular {
  font-variant-numeric: tabular-nums;
}
.positive {
  color: var(--ok);
}
.negative {
  color: var(--bad);
}
.loading {
  padding: 100px 20px;
  text-align: center;
  color: var(--muted);
}
.mobile-only,
.phone-only {
  display: none !important;
}
.mobile-planner,
.mobile-bottom {
  display: none;
}

.sage,
.peach,
.purple,
.blue {
  background: var(--tint);
  color: var(--on);
}
.sage {
  --h: #1f7a6d;
  --hd: #5cc8b5;
  --tint: #e0f1ee;
  --on: #124840;
}
.peach {
  --h: #b4552d;
  --hd: #f2936a;
  --tint: #fbe8de;
  --on: #6c2e12;
}
.purple {
  --h: #6b53b0;
  --hd: #ab97ea;
  --tint: #ece8f8;
  --on: #3d2a7e;
}
.blue {
  --h: #2f65b0;
  --hd: #82b2f0;
  --tint: #e1ecf9;
  --on: #17407a;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--radius);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  transition:
    background-color 0.12s,
    border-color 0.12s;
}
.btn:hover {
  background: var(--hover);
  border-color: #a9b4c7;
}
.btn:active {
  background: #e6ebf3;
}
.btn.primary,
.btn.dark {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.btn.primary:hover,
.btn.dark:hover {
  background: var(--navy-2);
  border-color: var(--navy-2);
}
.btn.small {
  min-height: 34px;
  padding: 0 12px;
  font-size: var(--t-xs);
}
.btn.text-btn {
  border-color: transparent;
  background: none;
  padding: 0 8px;
  color: var(--navy);
}
.btn.text-btn:hover {
  background: var(--hover);
  border-color: transparent;
  text-decoration: underline;
}
.btn.danger {
  color: var(--bad);
}
.btn.danger:hover {
  background: var(--bad-tint);
  border-color: var(--bad-line);
}
.btn.primary.danger {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff;
}
.btn.primary.danger:hover {
  background: #8f1d17;
  border-color: #8f1d17;
}
.btn.icon-btn {
  width: 40px;
  padding: 0;
  background: transparent;
  border-color: transparent;
}
.btn.icon-btn:hover {
  background: var(--hover);
}
.btn.small.icon-btn {
  width: 34px;
}
.btn.icon-btn.bordered {
  border-color: var(--line-strong);
  background: var(--surface);
}
.btn.icon-btn.bordered:hover {
  background: var(--hover);
}
.flip svg {
  transform: rotate(180deg);
}
.wide {
  width: 100%;
}
.saving .btn {
  pointer-events: none;
  opacity: 0.7;
  cursor: progress;
}

input,
select,
textarea {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--field);
  border-radius: var(--radius);
  padding: 0 12px;
  min-height: 42px;
  min-width: 0;
  font-size: var(--t-base);
}
textarea {
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
select {
  appearance: none;
  padding-right: 34px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23546075' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
input::placeholder,
textarea::placeholder {
  color: #6b7589;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--navy);
}
input[type="checkbox"] {
  accent-color: var(--navy);
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
}
input[readonly] {
  background: var(--canvas);
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 16px;
}
label > input,
label > select,
label > textarea {
  font-weight: 400;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-error,
.inline-error {
  color: var(--bad);
  font-size: var(--t-sm);
  line-height: 1.5;
  margin: 8px 0;
}
.form-error:empty,
.inline-error:empty {
  display: none;
}
.help-text {
  font-size: var(--t-xs);
  color: var(--muted);
  line-height: 1.55;
}
.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--t-xs);
  line-height: 1.55;
  background: var(--canvas);
  color: var(--ink-2);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 8px;
}
.form-hint svg {
  margin-top: 2px;
  color: var(--navy-3);
}
.form-card {
  padding: 24px;
}
.form-card h2 {
  margin-bottom: 14px;
}
.form-card p {
  font-size: var(--t-sm);
}
.check-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.check-options label,
label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 500;
}
label.checkbox {
  margin-bottom: 16px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0 0 16px;
  padding: 12px 14px;
}
legend {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
  padding: 0 6px;
}

.avatar {
  border-radius: 50%;
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--t-xs);
  font-weight: 700;
  flex-shrink: 0;
  background: var(--tint, var(--line-soft));
  color: var(--on, var(--ink-2));
}
.avatar.me {
  background: var(--gold-tint);
  color: var(--navy);
}
.avatar.open {
  background: var(--surface);
  border: 1.5px dashed var(--gold);
  color: var(--gold-ink);
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.person > span:last-child {
  min-width: 0;
}
.person b {
  display: block;
  font-size: var(--t-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.person small {
  display: block;
  margin-top: 1px;
}
.person .avatar {
  height: 34px;
  width: 34px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 3px 10px;
  background: #e9edf4;
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge.published,
.badge.approved,
.badge.active,
.badge.read {
  background: var(--ok-tint);
  color: var(--ok);
}
.badge.pending,
.badge.awaiting_colleague {
  background: var(--gold-tint);
  color: var(--gold-ink);
}
.badge.rejected {
  background: var(--bad-tint);
  color: var(--bad);
}
.badge.draft {
  background: repeating-linear-gradient(
    135deg,
    #eef1f6,
    #eef1f6 4px,
    #e2e7ef 4px,
    #e2e7ef 5px
  );
}
.tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  padding: 2px 9px;
  border-radius: 6px;
  font-size: var(--t-xs);
  font-weight: 600;
}
.dept-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 7px;
  background: var(--h);
}
.sub-count {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--muted);
  background: var(--canvas);
  border-radius: 999px;
  padding: 1px 9px;
  margin-left: 6px;
  vertical-align: middle;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  background: var(--navy);
  color: #d3dbe9;
  padding: 16px 12px 12px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar > .brand {
  flex-shrink: 0;
  display: block;
  background: #fff;
  border-radius: 12px;
  padding: 5px 14px;
  margin-bottom: 10px;
}
.brand .crewvia-wordmark {
  display: block;
  width: 100%;
  max-width: 158px;
  height: auto;
  margin: 0 auto;
}
.workspace {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 4px;
  padding: 6px 10px;
  border: 1px solid #ffffff24;
  background: #ffffff0a;
  color: #fff;
  border-radius: 12px;
  text-align: left;
}
.workspace:hover {
  background: #ffffff14;
}
.workspace > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.workspace b {
  display: block;
  font-size: var(--t-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace small {
  display: block;
  color: #aebbd2;
}
.workspace-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--gold-tint);
  color: var(--navy);
  border-radius: 9px;
  font-weight: 700;
  font-size: var(--t-xs);
}
.sidebar nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: #4d6286 transparent;
}
.nav-label {
  font-size: var(--t-xs);
  font-weight: 600;
  color: #a5b4cc;
  padding: 0 12px;
  margin: 12px 0 2px;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  color: #d3dbe9;
  text-align: left;
  font-size: var(--t-sm);
  font-weight: 500;
}
.nav-item:hover {
  background: #ffffff12;
  color: #fff;
}
.nav-item.selected {
  background: #ffffff1c;
  color: #fff;
  font-weight: 600;
}
.nav-item.selected::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--gold-bright);
}
.nav-item svg {
  opacity: 0.9;
}
.nav-item:focus-visible,
.workspace:focus-visible,
.profile:focus-visible {
  outline-color: var(--gold-bright);
  outline-offset: -2px;
}
.nav-count {
  margin-left: auto;
  background: var(--gold-bright);
  color: var(--navy);
  font-size: var(--t-xs);
  font-weight: 700;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  text-align: center;
}
.sidebar-bottom {
  flex-shrink: 0;
  padding-top: 8px;
  border-top: 1px solid #ffffff1f;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 8px;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: #fff;
  text-align: left;
}
.profile:hover {
  background: #ffffff12;
}
.profile > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.profile b {
  display: block;
  font-size: var(--t-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile small {
  display: block;
  color: #aebbd2;
}
.scrim {
  display: none;
}
@media (max-height: 820px) {
  .workspace {
    display: none;
  }
  .nav-item {
    min-height: 34px;
  }
  .nav-label {
    margin-top: 8px;
  }
}

.app-main {
  margin-left: var(--sidebar);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.topbar-title {
  font-family: var(--display);
  font-size: var(--t-md);
  font-weight: 650;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.local-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--gold-ink);
  background: var(--gold-tint);
  border-radius: 999px;
  padding: 3px 11px;
  white-space: nowrap;
}
.local-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.location-select {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 38px;
  padding-left: 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
}
.location-select select {
  border: 0;
  background-color: transparent;
  min-height: 36px;
  padding-left: 4px;
  font-size: var(--t-sm);
  font-weight: 600;
  max-width: 220px;
}
.location-select select:focus-visible {
  outline-offset: 2px;
  border-radius: 6px;
}
.bell {
  position: relative;
}
.bell-count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--surface);
}
main {
  flex: 1;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 32px 48px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  border-top: 1px solid var(--line);
  font-size: var(--t-xs);
  color: var(--muted);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
}
.page-heading h1 {
  font-family: var(--display);
  font-size: var(--t-xl);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 4px;
}
.page-heading p {
  margin: 0;
  color: var(--muted);
  font-size: var(--t-base);
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.filters,
.planning-toolbar,
.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 16px;
}
.toolbar .spacer {
  flex: 1;
}
.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-left: auto;
}
.toolbar > label {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.toolbar > label > input {
  width: auto;
}
.filter-end {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-left: auto;
}
.filter-end select {
  min-height: 40px;
  font-size: var(--t-sm);
  font-weight: 500;
}
.week-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.week-nav {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.week-nav .btn.icon-btn {
  width: 38px;
  min-height: 38px;
}
.week-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 148px;
  padding: 0 6px;
  line-height: 1.25;
}
.week-label b {
  font-size: var(--t-sm);
}
.week-label span {
  font-size: var(--t-xs);
  color: var(--muted);
}
.segmented {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: #e6eaf2;
  padding: 3px;
  border-radius: var(--radius);
  gap: 2px;
}
.segmented::-webkit-scrollbar {
  display: none;
}
.segmented .btn {
  flex-shrink: 0;
  min-height: 34px;
  padding: 0 14px;
  background: none;
  border: 0;
  color: var(--ink-2);
  font-weight: 600;
}
.segmented .btn:hover {
  background: #ffffff80;
}
.segmented .sub-count {
  background: #172b4d14;
  color: var(--ink-2);
  padding: 0 8px;
}
.segmented .btn.active .sub-count {
  background: var(--gold-tint);
  color: var(--gold-ink);
}
.segmented .btn.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 1px 2px #172b4d26;
}
.search-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--field);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
}
.search-input:focus-within {
  outline: 2px solid var(--gold);
  border-color: var(--navy);
}
.search-input input {
  border: 0;
  background: none;
  width: 150px;
  min-height: 38px;
  padding: 0 0 0 8px;
  font-size: var(--t-sm);
}
.search-input input:focus-visible {
  outline: 0;
}
details.menu {
  position: relative;
}
details.menu > summary {
  list-style: none;
  cursor: pointer;
}
details.menu > summary::-webkit-details-marker {
  display: none;
}
details.menu[open] > summary {
  background: var(--hover);
  border-color: #a9b4c7;
}
.menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 36px #172b4d29;
  padding: 6px;
}
.menu-list .btn {
  justify-content: flex-start;
  width: 100%;
  border: 0;
  background: none;
  font-weight: 500;
  border-radius: 8px;
}
.menu-list .btn:hover {
  background: var(--hover);
}
.menu-list hr {
  margin: 6px 0;
}
.bulk-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.bulk-bar > span {
  flex: 1;
  font-size: var(--t-sm);
  min-width: 200px;
}
.bulk-bar .btn {
  background: transparent;
  color: #fff;
  border-color: #ffffff59;
}
.bulk-bar .btn:hover {
  background: #ffffff1f;
}
.bulk-bar .btn.primary {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--navy);
}
.bulk-bar .btn.primary:disabled {
  opacity: 0.55;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
  overflow: hidden;
}
.stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  background: var(--surface);
  padding: 18px 22px 16px;
  min-width: 0;
}
.stat-label {
  display: block;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.125rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.stat em {
  font-family: var(--font);
  font-style: normal;
  font-size: var(--t-base);
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}
.stat small {
  display: block;
  margin-top: 6px;
}
.stat.warm {
  background: var(--gold-tint);
}
.stat.warm strong {
  color: var(--gold-ink);
}
.stat.warm small {
  color: var(--gold-ink);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 12px;
}
.card-head h2 {
  margin-bottom: 2px;
}
.card-head p {
  font-size: var(--t-sm);
  color: var(--muted);
  margin: 0;
}
.card-head > svg {
  color: var(--muted);
  margin-top: 2px;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 6px 16px;
  font-size: var(--t-xs);
  color: var(--ink-2);
  align-items: center;
  flex-wrap: wrap;
}
.legend > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  background: var(--h, var(--navy-2));
}
.legend i.green {
  background: var(--navy-2);
}
.legend i.pale {
  background: var(--gold-tint);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.legend i.hatch {
  background: repeating-linear-gradient(
    135deg,
    #fff,
    #fff 2px,
    #aab4c6 2px,
    #aab4c6 3px
  );
  box-shadow: inset 0 0 0 1px #8a95a8;
}
.legend i.open {
  background: #fff;
  box-shadow: inset 0 0 0 1.5px var(--gold);
  border-radius: 4px;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.empty > svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--navy-3);
  margin-bottom: 12px;
}
.empty h3 {
  color: var(--ink);
  margin-bottom: 4px;
}
.empty p {
  font-size: var(--t-sm);
  margin: 0 auto;
  max-width: 46ch;
}
.empty .btn {
  margin-top: 16px;
}
.info-banner {
  display: flex;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-3);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
  color: var(--ink-2);
}
.info-banner svg {
  margin-top: 2px;
  color: var(--navy-3);
}
.info-banner b {
  display: block;
  font-size: var(--t-base);
  color: var(--ink);
}
.info-banner p {
  font-size: var(--t-sm);
  margin: 4px 0 0;
  color: var(--muted);
}
.info-banner .btn {
  margin-top: 12px;
  margin-right: 8px;
}
details.conflict-banner {
  background: var(--bad-tint);
  border: 1px solid var(--bad-line);
  border-left: 4px solid var(--bad);
  color: var(--bad-ink);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: var(--t-sm);
}
details.conflict-banner > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
}
details.conflict-banner > summary::-webkit-details-marker {
  display: none;
}
details.conflict-banner > summary .hint {
  margin-left: auto;
  font-weight: 500;
  font-size: var(--t-xs);
}
details.conflict-banner[open] > summary .hint {
  display: none;
}
details.conflict-banner ul {
  margin: 10px 0 0;
  padding-left: 30px;
  line-height: 1.6;
}

.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: var(--t-sm);
  text-align: left;
  white-space: nowrap;
}
th {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--muted);
  background: #f8f9fc;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  white-space: nowrap;
}
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 20px;
}
th:last-child,
td:last-child {
  padding-right: 20px;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfd;
}
tr.clickable {
  cursor: pointer;
}
.row-link {
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  border-radius: 6px;
}
.row-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
td > .row-actions {
  justify-content: flex-end;
}
.note-cell {
  max-width: 220px;
  white-space: normal;
  color: var(--muted);
  font-size: var(--t-xs);
}
.list-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-size: var(--t-sm);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row b {
  font-size: var(--t-sm);
}
.list-row > svg {
  color: var(--muted);
}
.date-tile {
  width: 48px;
  min-width: 48px;
  padding: 6px 0 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
  text-align: center;
  line-height: 1.15;
}
.date-tile small {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.date-tile b {
  font-family: var(--display);
  font-size: var(--t-md);
}
.date-tile.today {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.date-tile.today small {
  color: #d6dfee;
}

.action-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.action-strip > .strip-label {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink-2);
  margin-right: 4px;
}
.action-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 8px;
  background: var(--surface);
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--ink);
}
.action-chip:hover {
  background: var(--gold-tint);
}
.action-chip > b {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold-deep);
  color: #fff;
  font-size: var(--t-xs);
  padding: 0 8px;
}
.action-strip.clear {
  background: var(--ok-tint);
  border: 1px solid var(--ok-line);
  color: var(--ok);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: var(--t-sm);
  font-weight: 600;
}
.setup-guide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--gold-line);
  border-left: 4px solid var(--gold);
  border-radius: 12px;
  background: var(--gold-tint);
  margin-bottom: 20px;
}
.setup-guide h2 {
  margin: 0 0 2px;
  font-size: var(--t-base);
}
.setup-guide p {
  margin: 0;
  color: var(--gold-ink);
  font-size: var(--t-sm);
}
.setup-guide .row-actions {
  flex-shrink: 0;
}
.setup-steps {
  padding-left: 22px;
  margin: 0;
}
.setup-steps li {
  padding: 12px 0 12px 4px;
  border-bottom: 1px solid var(--line-soft);
}
.setup-steps li p {
  margin: 2px 0 8px;
  color: var(--muted);
  font-size: var(--t-sm);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.dashboard-grid > .card {
  display: flex;
  flex-direction: column;
}
.bar-chart {
  flex: 1;
  min-height: 250px;
  padding: 8px 20px 16px;
  display: flex;
  gap: 12px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}
.bar-col > span {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.bar-pair {
  flex: 1;
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  justify-content: center;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 100% 25%;
}
.bar-pair i {
  display: block;
  background: var(--navy-2);
  border-radius: 5px 5px 0 0;
  width: min(24px, 40%);
  min-height: 2px;
}
.bar-pair i + i {
  background: var(--gold-tint);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.bar-col > b {
  font-size: var(--t-xs);
  font-weight: 600;
  margin-top: 10px;
  padding: 2px 9px;
  border-radius: 999px;
}
.bar-col > small {
  margin-top: 2px;
}
.bar-col .today-label {
  background: var(--navy);
  color: #fff;
}
.chart-note {
  margin: 0 20px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--t-sm);
  color: var(--muted);
  flex-wrap: wrap;
}
.chart-note .btn {
  margin-left: auto;
}
.message-preview {
  display: block;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: none;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
}
.message-preview:hover {
  background: #fafbfd;
}
.message-preview h3 {
  margin-bottom: 4px;
}
.message-preview p {
  color: var(--muted);
  font-size: var(--t-sm);
  margin: 0;
}
.message-preview small {
  display: block;
  margin-bottom: 4px;
}

.planner {
  overflow: hidden;
}
.planner-scroll {
  overflow: auto;
  max-height: max(440px, calc(100dvh - 250px));
}
.schedule-grid {
  display: grid;
  grid-template-columns: 216px repeat(7, minmax(126px, 1fr));
  min-width: 1100px;
}
.schedule-head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f8f9fc;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
  padding: 12px 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--t-sm);
  color: var(--muted);
  font-weight: 500;
}
.schedule-head b {
  font-size: var(--t-md);
  font-weight: 650;
  color: var(--ink);
  min-width: 30px;
  text-align: center;
  padding: 2px 6px;
  border-radius: 8px;
}
.schedule-head.current-day {
  background: var(--gold-tint);
  box-shadow: inset 0 3px 0 var(--gold);
  color: var(--gold-ink);
}
.schedule-head.current-day b {
  background: var(--navy);
  color: #fff;
}
.schedule-head.employee-head {
  left: 0;
  z-index: 5;
  justify-content: space-between;
  border-left: 0;
  padding-left: 20px;
  text-transform: none;
}
.employee-head > span {
  background: var(--line-soft);
  color: var(--ink-2);
  font-size: var(--t-xs);
  font-weight: 600;
  padding: 1px 9px;
  border-radius: 999px;
}
.employee-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 20px;
  border-bottom: 1px solid var(--line-soft);
  min-height: 80px;
  background: var(--surface);
  min-width: 0;
}
.employee-cell > span:not(.avatar):not(.open-icon) {
  min-width: 0;
  flex: 1;
}
.employee-cell b {
  display: block;
  font-size: var(--t-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.employee-cell small {
  display: block;
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}
.employee-cell small.over-contract {
  color: var(--gold-ink);
  font-weight: 600;
}
.employee-cell small.over-max {
  color: var(--bad);
  font-weight: 600;
}
.load-track {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 4px;
  margin-top: 5px;
  background: var(--line-soft);
  border-radius: 4px;
  overflow: hidden;
}
.load-track i {
  display: block;
  height: 100%;
  background: var(--navy-3);
  border-radius: 4px;
}
.over-contract + .load-track i {
  background: var(--gold);
}
.over-max + .load-track i {
  background: var(--bad);
}
.schedule-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 80px;
  padding: 6px;
  border-bottom: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.schedule-cell.current-column {
  background: #fbf7ee;
}
.schedule-cell.unavailable {
  background: repeating-linear-gradient(
    135deg,
    #f7f8fb,
    #f7f8fb 6px,
    #eceff5 6px,
    #eceff5 7px
  );
}
.schedule-cell.drag-over {
  background: var(--gold-tint);
  box-shadow: inset 0 0 0 2px var(--gold);
}
.open-row {
  background: #fbf7ee;
}
.open-icon {
  width: 34px;
  height: 34px;
  border: 1.5px dashed var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-ink);
  flex-shrink: 0;
}
.off-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--muted);
  text-align: center;
}
.add-cell {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 26px;
  height: 26px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--navy);
  font-size: 16px;
  line-height: 1;
  opacity: 0;
}
.schedule-cell:hover .add-cell,
.add-cell:focus-visible {
  opacity: 1;
}
.add-cell:hover {
  background: var(--navy);
  color: #fff;
}
.schedule-cell:not(:has(.shift)):not(:has(.off-label)) .add-cell {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
}
.schedule-cell:not(:has(.shift)):not(:has(.off-label)) .add-cell:hover {
  background: #172b4d0d;
  color: var(--navy);
}
.schedule-total {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 8px 6px;
  background: #f8f9fc;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line-soft);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
}
.schedule-total.total-label {
  left: 0;
  z-index: 5;
  align-items: flex-start;
  padding-left: 20px;
  border-left: 0;
  font-weight: 600;
  color: var(--ink-2);
}
.schedule-total small {
  font-weight: 600;
}
.schedule-total small.short {
  color: var(--gold-ink);
}
.schedule-total small.enough {
  color: var(--ok);
}
.planner-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 14px 0 4px;
  font-size: var(--t-xs);
  color: var(--muted);
  gap: 8px 16px;
}

.shift {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  min-height: 54px;
  padding: 7px 8px 7px 12px;
  border: 0;
  border-radius: 8px;
  background-color: var(--tint, var(--line-soft));
  color: var(--on, var(--ink));
  box-shadow: inset 4px 0 0 var(--h, var(--navy-3));
  text-align: left;
  font-size: var(--t-xs);
  line-height: 1.3;
  transition: box-shadow 0.12s;
}
.shift[draggable="true"] {
  cursor: grab;
}
.shift:hover {
  box-shadow:
    inset 4px 0 0 var(--h, var(--navy-3)),
    0 0 0 1.5px var(--h, var(--navy-3));
}
.shift-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  white-space: nowrap;
}
.shift b {
  font-size: var(--t-sm);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.shift small {
  color: inherit;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shift-check {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-deep);
  color: #fff;
  box-shadow: 0 0 0 2px var(--surface);
}
.draft-shift {
  background-image: repeating-linear-gradient(
    135deg,
    transparent 0,
    transparent 5px,
    #ffffff99 5px,
    #ffffff99 7px
  );
}
.shift.conflict-shift {
  background-color: var(--bad-tint);
  color: var(--bad-ink);
  box-shadow:
    inset 4px 0 0 var(--bad),
    0 0 0 1.5px var(--bad);
}
.shift-issue {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 650;
  opacity: 1 !important;
}
.shift[aria-pressed="true"] {
  box-shadow:
    inset 4px 0 0 var(--h, var(--navy-3)),
    0 0 0 3px var(--gold);
  background-color: var(--gold-tint);
}
.open-row .shift {
  background-color: var(--surface);
  box-shadow:
    inset 4px 0 0 var(--h, var(--navy-3)),
    inset 0 0 0 1.5px var(--gold-line);
}

.availability-table th,
.availability-table td {
  padding: 12px 8px;
}
.availability-table th:first-child,
.availability-table td:first-child {
  padding-left: 20px;
}
.availability {
  border: 1.5px dashed var(--line-strong);
  background: var(--surface);
  border-radius: 10px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 104px;
  color: var(--muted);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.25;
}
.availability:hover {
  background: var(--hover);
}
.availability.unset {
  border-color: transparent;
  background: none;
  min-height: 56px;
  justify-content: center;
}
.availability.unset span {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.availability.unset:hover,
.availability.unset:focus-visible {
  border-color: var(--line-strong);
  background: var(--hover);
}
.availability.yes {
  background: var(--ok-tint);
  color: var(--ok);
  border: 1.5px solid var(--ok-line);
}
.availability.no {
  background: var(--bad-tint);
  color: var(--bad);
  border: 1.5px solid var(--bad-line);
}
.stack {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.shift-line {
  text-align: right;
  white-space: nowrap;
}
.shift-line small {
  display: block;
}
.mini-progress {
  height: 5px;
  border-radius: 5px;
  background: var(--line-soft);
  width: 100px;
  margin-top: 6px;
  overflow: hidden;
}
.mini-progress i {
  height: 100%;
  display: block;
  background: var(--navy-3);
}
.board {
  max-width: 780px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.board-message .card-head {
  align-items: center;
}
.message-body {
  padding: 4px 20px 16px;
}
.message-body h2 {
  font-family: var(--display);
  font-size: var(--t-lg);
  line-height: 1.25;
  margin-bottom: 10px;
}
.message-body p {
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 68ch;
}
.board-footer {
  border-top: 1px solid var(--line-soft);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--t-xs);
  color: var(--muted);
}
.message-full {
  line-height: 1.7;
  max-width: 68ch;
}

.mywork-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.hero-shift {
  position: relative;
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 24px 24px 22px 28px;
  margin-bottom: 20px;
  box-shadow: inset 6px 0 0 var(--hd, var(--gold-bright));
  display: grid;
  gap: 6px;
}
.hero-shift.idle {
  box-shadow: none;
  padding-left: 24px;
}
.hero-when {
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--gold-bright);
}
.hero-time {
  font-family: var(--display);
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-meta {
  color: #d3dcec;
  font-size: var(--t-base);
}
.hero-meta small {
  display: block;
  color: #b4c1d9;
  margin-top: 2px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.hero-actions label {
  margin: 0;
  flex: 1;
  min-width: 170px;
  max-width: 260px;
  color: #d3dcec;
  font-weight: 500;
  font-size: var(--t-xs);
}
.hero-actions select {
  min-height: 44px;
  border-color: transparent;
}
.hero-actions .btn {
  min-height: 46px;
  padding: 0 20px;
  background: transparent;
  color: #fff;
  border-color: #ffffff66;
}
.hero-actions .btn:hover {
  background: #ffffff1f;
}
.hero-actions .btn.primary {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--navy);
}
.hero-actions .btn.primary:hover {
  background: #ecc17c;
}
.hero-actions .btn:focus-visible {
  outline-color: #fff;
}
.hero-note {
  font-size: var(--t-xs);
  color: #b4c1d9;
  margin: 6px 0 0;
}
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.quick-actions .btn {
  min-height: 48px;
  min-width: 0;
  justify-content: flex-start;
  gap: 10px;
  white-space: normal;
  text-align: left;
}
.quick-actions .btn svg {
  color: var(--navy-3);
}
.clock-list {
  margin-top: 20px;
}
.clock-list > h2 {
  padding: 18px 20px 4px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.integration-panel {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
}
.integration-panel .list-row {
  padding: 10px 0;
}
.integration-panel h3 {
  margin-bottom: 4px;
}
.integration-logo {
  width: 34px;
  height: 34px;
  background: var(--gold-tint);
  color: var(--gold-ink);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.attention-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.audit-row {
  display: flex;
  gap: 14px;
  padding: 10px 20px;
  font-size: var(--t-sm);
}
.audit-row > i {
  width: 8px;
  height: 8px;
  background: var(--navy-3);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}
.audit-row p {
  color: var(--ink-2);
  margin: 1px 0;
}

.security-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
  align-items: start;
}
.security-section {
  margin: 20px 0;
}
.security-grid textarea {
  width: 100%;
  font-size: var(--t-sm);
}
.security-grid hr {
  margin: 20px 0;
}
.security-state {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--gold-tint);
  color: var(--gold-ink);
  border: 1px solid var(--gold-line);
  border-radius: 12px;
  margin: 20px 0;
}
.security-state.enabled {
  background: var(--ok-tint);
  color: var(--ok);
  border-color: var(--ok-line);
}
.security-state small {
  display: block;
  color: inherit;
  margin-top: 2px;
}
.agent-cell {
  white-space: normal;
  max-width: 220px;
  min-width: 160px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: var(--t-xs);
}
.account-row {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.account-row small {
  display: block;
  margin: 2px 0 8px;
}
.secret-key {
  display: block;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  overflow-wrap: anywhere;
  user-select: all;
  font-size: var(--t-md);
  line-height: 1.6;
  letter-spacing: 1px;
}
.recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}
.recovery-codes code {
  padding: 10px;
  background: var(--canvas);
  font-size: var(--t-sm);
  border-radius: 8px;
  user-select: all;
}
.operation-entry {
  padding: 20px;
  border-bottom: 1px solid var(--line-soft);
}
.operation-entry h3 {
  margin: 8px 0 4px;
}
.operation-entry .message-full {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.btn.task-check {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 2px solid var(--field);
  border-radius: 8px;
}
.btn.task-check.done {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.task-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.team-grid > .empty {
  grid-column: 1 / -1;
}
.team-grid > .card.operation-entry {
  border-bottom: 1px solid var(--line);
}

.modal-open {
  overflow: hidden;
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: #101e38a6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  padding: 24px;
  animation: fade 0.16s ease;
}
.modal {
  width: 560px;
  max-width: 100%;
  max-height: calc(100dvh - 48px);
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 24px 80px #0b152b59;
  overflow: hidden;
  animation: rise 0.18s ease;
}
.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px 14px 14px 24px;
  flex-shrink: 0;
}
.modal header h2 {
  font-family: var(--display);
  font-size: var(--t-lg);
  letter-spacing: -0.01em;
  margin: 0;
}
.modal-body {
  padding: 20px 24px 6px;
  overflow-y: auto;
  min-height: 0;
  flex: 1;
}
.modal-body > p {
  font-size: var(--t-base);
  color: var(--ink-2);
}
.modal-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 14px 24px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
  flex-shrink: 0;
}
.detail-shift .person {
  margin-bottom: 16px;
}
.detail-shift h2 {
  font-family: var(--display);
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.detail-shift p {
  color: var(--ink-2);
  margin-bottom: 6px;
}
.shift-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--canvas);
  font-size: var(--t-sm);
}
.shift-preview.invalid {
  background: var(--bad-tint);
  color: var(--bad-ink);
}
.shift-preview.valid {
  background: var(--ok-tint);
  color: var(--ok);
}
#toast {
  position: fixed;
  left: calc(50% + var(--sidebar) / 2);
  bottom: 28px;
  transform: translate(-50%, 16px);
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 36px #0b152b47;
  padding: 12px 18px;
  border-radius: 12px;
  z-index: 200;
  font-size: var(--t-sm);
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  max-width: min(560px, 92vw);
}
#toast svg {
  color: var(--gold-bright);
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: var(--bad);
}
#toast.error svg {
  color: #fff;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.login-story {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  color: #fff;
  min-height: 100vh;
}
.login-story .brand {
  display: block;
  width: 252px;
  max-width: 100%;
  background: #fff;
  border-radius: 14px;
  padding: 8px 18px;
}
.login-pitch h1 {
  font-family: var(--display);
  font-size: clamp(2.75rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 18px;
}
.login-pitch p {
  color: #cfd9ea;
  font-size: var(--t-md);
  line-height: 1.6;
  max-width: 44ch;
  margin-bottom: 32px;
}
.login-story > small {
  color: #a9b8d2;
}
.login-roster {
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px 0 0 16px;
  width: calc(100% + 56px);
  padding: 16px 0 16px 16px;
  box-shadow: 0 24px 60px #0b152b66;
  display: grid;
  grid-template-columns: 44px repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.login-roster > .day {
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  padding-bottom: 2px;
}
.login-roster > .day.today {
  color: var(--gold-ink);
}
.login-roster .avatar {
  width: 32px;
  height: 32px;
  align-self: center;
  font-size: 12px;
}
.login-roster .shift {
  min-height: 44px;
  padding: 5px 6px 5px 10px;
  pointer-events: none;
}
.login-roster .shift b {
  font-size: var(--t-xs);
}
.login-roster .shift.open {
  background-color: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--gold);
  color: var(--gold-ink);
}
.login-roster .slot {
  min-height: 44px;
}

.login-form {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px;
  background: var(--canvas);
}
.login-form > div {
  width: 380px;
  max-width: 100%;
}
.login-form h2 {
  font-family: var(--display);
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  margin-bottom: 6px;
}
.login-form .muted {
  margin-bottom: 28px;
}
.login-form form input {
  min-height: 46px;
}
.login-form .btn.primary {
  min-height: 48px;
  margin-top: 4px;
}
.demo-hint {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 24px;
}
.demo-hint p {
  font-size: var(--t-sm);
  color: var(--muted);
  margin: 4px 0 12px;
}
.demo-hint > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.demo-hint > small {
  display: block;
  margin-top: 12px;
}
.password-gate {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--canvas);
}
.password-gate .gate-logo {
  display: block;
  width: 190px;
  height: auto;
}
.password-gate > .card {
  width: 460px;
  max-width: 100%;
  padding: 32px;
}
.password-gate h1 {
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.password-gate .btn.text-btn {
  margin-top: 8px;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}
@keyframes sheet {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (min-width: 1600px) {
  main {
    padding: 36px 44px 56px;
  }
  .topbar,
  footer {
    padding-left: 44px;
    padding-right: 44px;
  }
  .schedule-grid {
    grid-template-columns: 236px repeat(7, minmax(140px, 1fr));
  }
}
@media (max-width: 1280px) {
  :root {
    --sidebar: 224px;
  }
  main {
    padding: 24px 24px 40px;
  }
  .topbar,
  footer {
    padding-left: 24px;
    padding-right: 24px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .settings-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .local-pill {
    display: none;
  }
}
@media (max-width: 1100px) {
  .dashboard-grid,
  .mywork-grid {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .mobile-only {
    display: inline-flex !important;
  }
  .sidebar {
    --sidebar: 280px;
    width: 280px;
    transform: translateX(-100%);
    visibility: hidden;
    transition:
      transform 0.2s,
      visibility 0s 0.2s;
    box-shadow: 20px 0 60px #0b152b40;
    z-index: 60;
  }
  .sidebar.mobile-open {
    transform: none;
    visibility: visible;
    transition: transform 0.2s;
  }
  .sidebar.mobile-open + .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: #101e3880;
  }
  .app-main {
    margin-left: 0;
  }
  #toast {
    left: 50%;
  }
  .topbar {
    padding: 0 16px;
  }
}
@media (max-width: 760px) {
  :root {
    --topbar: 56px;
  }
  .phone-only {
    display: inline-flex !important;
  }
  .topbar-left .local-pill,
  .topbar-right > .avatar {
    display: none;
  }
  .topbar-left {
    flex: 1;
  }
  .topbar-title.phone-only {
    display: block !important;
    flex: 1;
    min-width: 0;
  }
  .card:has(.stack-table) {
    background: none;
    border: 0;
    border-radius: 0;
    overflow: visible;
  }
  .toolbar .segmented {
    display: flex;
    width: 100%;
  }
  .toolbar .segmented .btn {
    flex: 1 1 0;
    padding: 0 6px;
  }
  .toolbar .segmented .sub-count {
    display: none;
  }
  .location-select svg {
    display: none;
  }
  .location-select {
    padding-left: 0;
  }
  .location-select select {
    max-width: 150px;
    padding-left: 12px;
  }
  main {
    padding: 20px 16px 24px;
  }
  .page-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-bottom: 16px;
  }
  .heading-actions {
    justify-content: flex-start;
  }
  .heading-actions .btn.primary {
    flex: 1;
  }
  .filters,
  .planning-toolbar,
  .toolbar {
    gap: 10px;
  }
  .week-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .week-nav {
    flex: 1;
  }
  .week-label {
    flex: 1;
  }
  .filter-end {
    width: 100%;
    margin: 0;
  }
  .filter-end > * {
    flex: 1;
  }
  .search-input input {
    width: 100%;
  }
  .toolbar .spacer {
    display: none;
  }
  .toolbar-group {
    width: 100%;
    margin-left: 0;
  }
  .toolbar-group > select,
  .toolbar-group > .search-input {
    flex: 1 1 140px;
  }
  .toolbar-group > details.menu,
  .toolbar-group > .btn.primary {
    flex: 1 1 120px;
  }
  .toolbar-group > details.menu > summary {
    width: 100%;
  }
  .toolbar > .btn.primary,
  .toolbar > details.menu {
    flex: 1;
  }
  .toolbar > details.menu > summary {
    width: 100%;
  }
  .stats,
  .stats.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 14px 16px;
  }
  .stat strong {
    font-size: 1.75rem;
  }
  .stats.three .stat:last-child {
    grid-column: 1 / -1;
  }
  .card-head {
    padding: 16px 16px 10px;
  }
  .list-row {
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .setup-guide {
    flex-direction: column;
    align-items: flex-start;
  }
  .action-chip {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .action-strip > .strip-label {
    flex-basis: 100%;
  }
  .desktop-planner,
  .planner-bar .segmented {
    display: none;
  }
  .planner-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn,
  .btn.small {
    min-height: 44px;
  }
  .btn.icon-btn,
  .btn.small.icon-btn {
    width: 44px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    min-height: 46px;
  }
  .team-grid,
  .settings-grid,
  .security-grid,
  .form-grid,
  .recovery-codes {
    grid-template-columns: 1fr;
  }
  .account-row {
    flex-wrap: wrap;
  }
  .mywork-grid {
    grid-template-columns: 1fr;
  }
  .hero-shift {
    padding: 20px 18px 18px 22px;
    border-radius: 16px;
  }
  .hero-actions label {
    max-width: none;
    flex-basis: 100%;
  }
  .hero-actions .btn {
    flex: 1;
  }
  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }
  .bar-chart {
    gap: 4px;
    padding: 8px 12px 14px;
  }
  .bar-pair i {
    width: 40%;
  }
  .bar-col > small {
    display: none;
  }
  .message-body {
    padding: 4px 16px 14px;
  }
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .modal {
    width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    animation: sheet 0.22s ease;
  }
  .modal header {
    padding-left: 18px;
  }
  .modal-body {
    padding: 16px 18px 4px;
  }
  .modal-footer {
    padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  }
  .modal-footer .grow {
    display: none;
  }
  .modal-footer .btn {
    flex: 1 1 auto;
  }
  .modal .list-row {
    flex-wrap: wrap;
  }
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 0;
    padding: 24px 20px 28px;
    gap: 20px;
  }
  .login-story .brand {
    width: 200px;
  }
  .login-pitch p,
  .login-roster,
  .login-story > small {
    display: none;
  }
  .login-pitch h1 {
    font-size: 2.5rem;
    margin: 0;
  }
  .login-form {
    padding: 28px 20px 40px;
    align-items: flex-start;
  }
  footer {
    padding: 16px;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 76px;
  }
  .mobile-bottom {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 35;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px #172b4d12;
  }
  .mobile-bottom button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    border: 0;
    border-radius: 12px;
    background: none;
    color: var(--muted);
    font-size: var(--t-xs);
    font-weight: 600;
  }
  .mobile-bottom button[aria-current] {
    color: var(--navy);
    background: var(--gold-tint);
  }
  .mobile-planner {
    display: block;
  }
  .day-picker {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    padding: 8px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
  }
  .day-picker button {
    padding: 8px 0 6px;
    min-height: 68px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--muted);
    border-radius: 12px;
    font-weight: 500;
  }
  .day-picker button span {
    font-size: var(--t-xs);
  }
  .day-picker button[aria-pressed="true"] {
    background: var(--navy);
    color: #fff;
  }
  .day-picker button.today:not([aria-pressed="true"]) b {
    color: var(--gold-ink);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 4px;
  }
  .day-picker b {
    font-family: var(--display);
    font-size: var(--t-md);
    color: inherit;
  }
  .day-picker small {
    color: inherit;
    opacity: 0.85;
  }
  .day-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
  }
  .day-summary span {
    color: var(--muted);
    font-size: var(--t-sm);
  }
  .day-shift {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(140px, 46%);
    align-items: center;
    gap: 12px;
    border-top: 1px solid var(--line-soft);
    padding: 12px 16px;
  }
  .day-shift > div > small {
    display: block;
    margin-top: 6px;
  }
  .day-shift .shift {
    min-height: 64px;
  }
  .day-add {
    padding: 16px;
  }
  .stack-table {
    white-space: normal;
  }
  .stack-table thead {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .stack-table,
  .stack-table tbody,
  .stack-table tr,
  .stack-table td {
    display: block;
    width: 100%;
  }
  .stack-table tbody {
    padding: 0;
  }
  .stack-table tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: var(--surface);
  }
  .stack-table tr:last-child {
    margin-bottom: 0;
  }
  .stack-table td,
  .stack-table th:first-child,
  .stack-table td:first-child,
  .stack-table td:last-child {
    padding: 6px 0;
    border: 0;
  }
  .stack-table td[data-label] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: right;
  }
  .stack-table td[data-label]::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: var(--t-xs);
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
  }
  .stack-table td.cell-person {
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line-soft);
  }
  .stack-table td.cell-actions {
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid var(--line-soft);
  }
  .stack-table td.cell-actions .row-actions {
    justify-content: stretch;
  }
  .stack-table td.cell-actions .btn {
    flex: 1;
  }
  .stack-table td.cell-actions .btn.icon-btn {
    flex: 0 0 44px;
  }
  .stack-table td.note-cell {
    max-width: none;
  }
  .stack-table td:empty {
    display: none;
  }
  .stack-table td.cell-availability {
    padding: 4px 0;
  }
  .stack-table td.cell-availability .availability {
    flex: 0 0 58%;
    min-width: 0;
  }
  .stack-table .availability {
    flex-direction: row;
    justify-content: center;
    min-height: 48px;
  }
  .stack-table .availability.unset {
    border-color: var(--line-strong);
    border-style: dashed;
  }
  .stack-table .availability.unset span {
    position: static;
    width: auto;
    height: auto;
    clip-path: none;
  }
}

@media print {
  @page {
    size: A4 landscape;
    margin: 10mm;
  }
  :root {
    --sidebar: 0px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body {
    background: #fff;
    font-size: 11px;
  }
  .sidebar,
  .topbar,
  .scrim,
  footer,
  .mobile-bottom,
  .filters,
  .toolbar,
  .heading-actions,
  .bulk-bar,
  .action-strip,
  .setup-guide,
  .add-cell,
  .planner-footer .help-text,
  #toast,
  .skip-link,
  details.conflict-banner {
    display: none !important;
  }
  .app-main {
    margin: 0;
  }
  main {
    padding: 0;
    max-width: none;
  }
  .page-heading {
    margin-bottom: 8px;
  }
  .card {
    border-radius: 0;
  }
  .desktop-planner {
    display: block !important;
  }
  .mobile-planner {
    display: none !important;
  }
  .planner-scroll {
    max-height: none;
    overflow: visible;
  }
  .schedule-grid {
    min-width: 0;
    grid-template-columns: 130px repeat(7, 1fr);
  }
  .schedule-head,
  .employee-cell,
  .schedule-total {
    position: static;
  }
  .employee-cell {
    min-height: 0;
    padding: 4px 6px;
  }
  .employee-cell .avatar {
    display: none;
  }
  .schedule-cell {
    min-height: 0;
    padding: 3px;
  }
  .shift {
    min-height: 0;
    padding: 3px 4px 3px 8px;
    break-inside: avoid;
  }
  .shift b {
    font-size: 11px;
  }
  .shift small {
    font-size: 9px;
  }
  .employee-cell b {
    white-space: normal;
  }
  tr,
  .schedule-cell {
    break-inside: avoid;
  }
}
