:root {
  --ink: #f7fbff;
  --muted: #c7d2df;
  --line: rgba(255, 255, 255, 0.18);
  --page: #000d19;
  --panel: #101c2a;
  --topbar: #000d19;
  --accent: #f58220;
  --accent-dark: #dc5f18;
  --accent-hot: #ffae18;
  --soft: #fff1e3;
  --good: #1c7c54;
  --danger: #a83232;
  --brand-black: #030b12;
  --brand-black-2: #07131d;
  --brand-silver: #eef1f4;
  --shadow: 0 22px 52px rgba(0, 0, 0, 0.34);
}

@font-face {
  font-family: "Forge Montserrat";
  src: url("./assets/fonts/Montserrat-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
}

@font-face {
  font-family: "Forge Wide";
  src: url("./assets/fonts/Audiowide-Regular.ttf") format("truetype");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 22%),
    linear-gradient(135deg, #d9e1e4 0%, #c6d0d3 100%);
  color: var(--ink);
  font-family: "Forge Montserrat", Inter, system-ui, sans-serif;
  min-height: 100vh;
  position: relative;
}

body::before {
  background:
    radial-gradient(ellipse at 18% 86%, transparent 0 26%, rgba(255, 255, 255, 0.42) 26.2% 26.45%, transparent 26.7%),
    radial-gradient(ellipse at 92% 18%, transparent 0 24%, rgba(255, 255, 255, 0.42) 24.2% 24.45%, transparent 24.7%),
    radial-gradient(ellipse at 110% 6%, transparent 0 28%, rgba(255, 255, 255, 0.32) 28.1% 28.35%, transparent 28.6%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: fixed;
}

body.dark {
  --ink: #eef1f4;
  --muted: #aab3bd;
  --line: rgba(255, 255, 255, 0.18);
  --page: #000d19;
  --panel: #101c2a;
  --soft: rgba(245, 130, 32, 0.18);
  background:
    radial-gradient(circle at 18% 12%, rgba(245, 130, 32, 0.22), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(255, 174, 24, 0.14), transparent 30%),
    linear-gradient(135deg, #000d19 0%, #07131d 58%, #101c2a 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  min-height: 38px;
  padding: 0 14px;
}

input,
select,
textarea {
  background: rgba(12, 16, 29, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  color: #ffffff;
  min-height: 40px;
  padding: 9px 10px;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: rgba(238, 241, 244, 0.46);
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(245, 130, 32, 0.72);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.18);
  outline: 0;
}

textarea {
  resize: vertical;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #eef1f4;
  font-size: 25px;
  line-height: 1.1;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 16px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 7px;
  text-transform: uppercase;
}

.app-shell {
  background:
    radial-gradient(circle at 55% 8%, rgba(245, 130, 32, 0.1), transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(255, 255, 255, 0.04), transparent 28%),
    #0b0b17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 13, 25, 0.28);
  display: grid;
  gap: 18px;
  grid-template-columns: 210px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  margin: 48px auto;
  max-width: 1440px;
  min-height: calc(100vh - 96px);
  overflow: visible;
  padding: 28px;
  position: relative;
}

.app-shell::before {
  background:
    radial-gradient(ellipse at 20% 80%, transparent 0 34%, rgba(255, 255, 255, 0.07) 34.2% 34.45%, transparent 34.7%),
    radial-gradient(ellipse at 92% 8%, transparent 0 28%, rgba(255, 255, 255, 0.08) 28.2% 28.45%, transparent 28.7%);
  border-radius: inherit;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.topbar {
  align-items: center;
  background: transparent;
  border: 0;
  box-shadow: none;
  display: grid;
  gap: 16px;
  grid-column: 1 / -1;
  grid-template-columns: minmax(260px, auto) minmax(0, 1fr) auto auto;
  padding: 0;
  position: sticky;
  top: 28px;
  z-index: 30;
}

.page-nav,
.workspace,
.page-head,
.panel,
.mobile-menu {
  position: relative;
  z-index: 1;
}

.brand-lockup,
.top-actions,
.head-actions,
.inline-actions,
.panel-title {
  align-items: center;
  display: flex;
  gap: 10px;
}

.brand-lockup {
  gap: 18px;
  min-width: 0;
}

.site-logo {
  height: auto;
  max-width: min(440px, 100%);
  object-fit: contain;
  width: 330px;
}

.brand-copy {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.show-name {
  color: #ffffff;
  font-family: "Forge Wide", sans-serif;
  font-size: 18px;
  text-align: center;
  text-shadow: 0 2px 16px rgba(245, 130, 32, 0.2);
}

.top-actions {
  align-items: center;
  grid-column: 4;
  justify-content: flex-end;
  justify-self: end;
}

.presence-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  justify-self: end;
  min-height: 34px;
  min-width: 0;
}

.presence-pill {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #f7fbff;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  font-size: 11px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-height: 32px;
  padding: 3px;
  width: 32px;
}

.presence-pill img,
.presence-pill strong {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #111820;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 10px;
  height: 24px;
  justify-content: center;
  overflow: hidden;
  width: 24px;
}

.presence-pill img {
  object-fit: cover;
}

.presence-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-chat-panel {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  bottom: 22px;
  box-shadow: 0 24px 60px rgba(0, 13, 25, 0.28);
  color: #111820;
  display: grid;
  grid-template-rows: auto auto minmax(170px, 1fr) auto;
  max-height: min(520px, calc(100vh - 44px));
  overflow: hidden;
  position: fixed;
  right: 22px;
  width: min(380px, calc(100vw - 28px));
  z-index: 1000;
}

.direct-chat-head {
  align-items: center;
  background: #000d19;
  color: #f7fbff;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.direct-chat-person {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.direct-chat-person span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.direct-chat-person strong,
.direct-chat-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-chat-person small {
  color: #aab3bd;
  font-size: 11px;
  font-weight: 800;
}

.direct-chat-avatar,
.direct-chat-avatar strong,
.direct-chat-avatar img {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #111820;
  display: inline-flex;
  flex: 0 0 36px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  overflow: hidden;
  width: 36px;
}

.direct-chat-avatar img {
  object-fit: cover;
}

.direct-chat-messages {
  align-content: end;
  display: grid;
  gap: 8px;
  max-height: 350px;
  overflow-y: auto;
  padding: 14px;
}

.direct-chat-toggle {
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  color: #5c6d84;
  display: flex;
  font-size: 11px;
  font-weight: 900;
  gap: 8px;
  justify-content: flex-start;
  min-height: 0;
  padding: 8px 14px;
  text-transform: uppercase;
}

.direct-chat-toggle input {
  height: 15px;
  min-height: 0;
  width: 15px;
}

.direct-chat-message {
  background: #eef3f8;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  justify-self: start;
  max-width: 86%;
  padding: 9px 11px;
}

.direct-chat-message.mine {
  background: #fff1e3;
  border-color: rgba(245, 130, 32, 0.24);
  justify-self: end;
}

.direct-chat-message p {
  color: #111820;
  font-size: 13px;
  line-height: 1.35;
}

.direct-chat-message time {
  color: #718093;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-top: 4px;
}

.direct-chat-empty {
  align-self: end;
}

.direct-chat-form {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.direct-chat-form input {
  background: #f8fafc;
  color: #111820;
}

.project-create-row.is-disabled {
  opacity: 0.55;
}

.live-cursor {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate(8px, 8px);
  z-index: 999;
}

.live-cursor::before {
  border-bottom: 12px solid transparent;
  border-left: 12px solid var(--cursor-color, var(--accent));
  content: "";
  display: block;
  height: 0;
  width: 0;
}

.live-cursor span {
  background: var(--cursor-color, var(--accent));
  border-radius: 6px;
  color: #111820;
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
  max-width: 170px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-version {
  border: 1px solid rgba(245, 130, 32, 0.4);
  border-radius: 999px;
  color: #ffae18;
  font-size: 11px;
  font-weight: 900;
  min-width: 54px;
  padding: 6px 10px;
  text-align: center;
  text-transform: uppercase;
}

.top-actions .icon-btn,
.top-actions .secondary,
#settingsShortcut,
#topSignOutBtn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f7fa;
}

.top-actions .icon-btn:hover,
.top-actions .secondary:hover,
#settingsShortcut:hover,
#topSignOutBtn:hover {
  background: rgba(245, 130, 32, 0.18);
  border-color: rgba(245, 130, 32, 0.45);
}

.primary {
  background: linear-gradient(135deg, #ffae18, #f58220 52%, #dc5f18);
  box-shadow: 0 10px 24px rgba(245, 130, 32, 0.26);
  color: #090b10;
}

.primary:hover {
  background: linear-gradient(180deg, #ffc04d, #ff8c22 52%, #e75d19);
}

.secondary {
  align-items: center;
  background: rgba(238, 241, 244, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f7f9fb;
  display: inline-flex;
  justify-content: center;
}

.secondary:hover {
  background: rgba(238, 241, 244, 0.17);
}

.danger {
  background: rgba(168, 50, 50, 0.2);
  color: #ff8686;
}

.danger-action {
  border-color: rgba(255, 134, 134, 0.24);
  color: #ffc2c2;
}

.danger-action:hover {
  background: rgba(168, 50, 50, 0.28);
  border-color: rgba(255, 134, 134, 0.42);
}

.icon-btn {
  align-items: center;
  display: inline-grid;
  min-width: 38px;
  padding: 0;
  place-items: center;
  width: 38px;
}

.icon-only svg,
.page-tab-icon svg {
  display: block;
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 20px;
}

.hidden {
  display: none;
}

.mobile-menu {
  background: #1c2228;
  border: 1px solid #353b42;
  color: white;
  display: none;
  grid-column: 1 / -1;
  margin: 0;
  position: sticky;
  top: 88px;
  z-index: 29;
}

.page-nav {
  align-self: start;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: grid;
  gap: 8px;
  height: fit-content;
  max-height: calc(100vh - 140px);
  overflow: visible;
  padding: 0;
  position: sticky;
  top: 118px;
  z-index: 3000;
}

.nav-collapse-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(70, 32, 128, 0.1);
  color: #182331;
  display: inline-flex;
  font-size: 26px;
  font-weight: 900;
  height: 44px;
  justify-content: center;
  margin-bottom: 8px;
  min-height: 44px;
  padding: 0;
  width: 100%;
}

.page-tab {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 12px;
  color: rgba(238, 241, 244, 0.72);
  display: flex;
  gap: 10px;
  justify-content: flex-start;
  min-height: 44px;
  min-width: 0;
  padding: 0 16px;
  text-align: left;
}

.page-tab-icon {
  align-items: center;
  background: transparent;
  border-radius: 0;
  display: inline-flex;
  flex: 0 0 22px;
  font-size: 16px;
  height: 22px;
  justify-content: center;
  place-items: center;
  width: 22px;
}

.page-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.page-tab.active {
  background: linear-gradient(90deg, rgba(245, 130, 32, 0.95), rgba(220, 95, 24, 0.62));
  border-color: rgba(255, 174, 24, 0.42);
  box-shadow: 0 12px 26px rgba(245, 130, 32, 0.18);
  color: #ffffff;
}

.page-tab.active .page-tab-icon {
  color: #ffffff;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group-toggle {
  width: 100%;
}

.nav-group-caret {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin-left: auto;
}

.nav-submenu {
  display: grid;
  gap: 6px;
  padding-left: 18px;
}

.nav-subitem {
  min-height: 40px;
  padding-left: 18px;
}

.nav-group:not(.open) .nav-submenu {
  display: none;
}

.nav-group.active .nav-group-toggle {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 174, 24, 0.22);
  color: #ffcf8c;
}

.nav-group.open .nav-group-toggle {
  background: rgba(245, 130, 32, 0.14);
  border-color: rgba(245, 130, 32, 0.34);
  color: #ffcf8c;
}

@media (min-width: 761px) {
  body.nav-collapsed .app-shell {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  body.nav-collapsed .page-nav {
    gap: 8px;
    justify-items: center;
    max-height: none;
    padding: 8px 0;
  }

  body.nav-collapsed .nav-collapse-toggle {
    height: 42px;
    min-height: 42px;
    width: 42px;
  }

  body.nav-collapsed .page-tab {
    background: rgba(255, 255, 255, 0.78);
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 24px rgba(61, 50, 92, 0.08);
    color: #5f7288;
    font-size: inherit;
    justify-content: center;
    min-height: 46px;
    overflow: visible;
    padding: 0;
    position: relative;
    text-indent: 0;
    width: 42px;
  }

  body.nav-collapsed .page-tab-icon {
    color: currentColor;
  }

  body.nav-collapsed .page-tab:hover {
    background: rgba(255, 255, 255, 0.96);
    color: #182331;
  }

  body.nav-collapsed .page-tab.active {
    background: linear-gradient(135deg, #ffae18, #f58220 48%, #dc5f18);
    border-color: rgba(255, 174, 24, 0.42);
    box-shadow: 0 16px 28px rgba(245, 130, 32, 0.26);
    color: #ffffff;
  }

  body.nav-collapsed .page-tab-label {
    background: #000d19;
    border: 1px solid rgba(245, 130, 32, 0.28);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 13, 25, 0.22);
    color: #ffffff;
    display: block;
    font-size: 12px;
    font-weight: 800;
    left: calc(100% + 10px);
    letter-spacing: 0;
    opacity: 0;
    padding: 8px 10px;
    pointer-events: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    white-space: nowrap;
    z-index: 9999;
  }

  body.nav-collapsed .page-tab:hover .page-tab-label,
  body.nav-collapsed .page-tab:focus-visible .page-tab-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }

  body.nav-collapsed .nav-group {
    gap: 0;
    justify-items: center;
    width: 42px;
  }

  body.nav-collapsed .nav-group-toggle {
    width: 42px;
  }

  body.nav-collapsed .nav-group.active .nav-group-toggle,
  body.nav-collapsed .nav-group.open .nav-group-toggle {
    background: linear-gradient(135deg, #ffae18, #f58220 48%, #dc5f18);
    border-color: rgba(255, 174, 24, 0.42);
    box-shadow: 0 16px 28px rgba(245, 130, 32, 0.26);
    color: #ffffff;
  }

  body.nav-collapsed .nav-group-caret {
    display: none;
  }

  body.nav-collapsed .nav-submenu {
    left: calc(100% + 10px);
    gap: 8px;
    padding-left: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    z-index: 9998;
  }

  body.nav-collapsed .nav-group:not(.open) .nav-submenu {
    display: none;
  }

  body.nav-collapsed .nav-group.open .nav-submenu {
    display: grid;
  }

  body.nav-collapsed .nav-subitem {
    background: #000d19;
    border: 1px solid rgba(245, 130, 32, 0.28);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 13, 25, 0.22);
    color: #ffffff;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0 14px;
    width: 100%;
  }

  body.nav-collapsed .nav-subitem .page-tab-label {
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
  }
}

.workspace {
  min-width: 0;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.page-head,
.panel {
  background: rgba(34, 43, 60, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  color: #f7fbff;
}

.page-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px 20px;
}

.two-col {
  align-items: stretch;
  display: grid;
  gap: 16px;
  grid-template-columns: 330px minmax(0, 1fr);
}

.overview-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 16px;
}

.overview-card {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #111820;
  min-height: 96px;
  padding: 14px;
}

.overview-card span {
  color: #68727c;
  display: block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.overview-card strong {
  color: #111820;
  display: block;
  font-size: 28px;
  line-height: 1.15;
  margin-top: 6px;
}

.overview-card p {
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 6px;
}

.project-files-panel {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.project-files-panel h3,
.autosave-panel h3 {
  margin: 0;
}

.settings-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.autosave-grid {
  align-items: end;
  grid-template-columns: 220px minmax(260px, 1fr);
}

.autosave-status {
  border: 1px solid rgba(245, 130, 32, 0.55);
  border-radius: 6px;
  color: #dc5f18;
  font-weight: 900;
  min-height: 42px;
  padding: 11px 12px;
}

.panel {
  padding: 16px;
}

.page-head h2,
.panel > .panel-title h3 {
  color: #ffffff;
}

.panel-title {
  justify-content: space-between;
  margin-bottom: 14px;
}

.list-panel > .panel-title {
  display: grid;
  flex: 0 0 auto;
  gap: 10px;
  justify-items: center;
}

.list-panel {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: none;
  overflow: hidden;
  position: static;
}

.list-panel .session-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 6px;
}

.list-panel .session-list::-webkit-scrollbar {
  width: 10px;
}

.list-panel .session-list::-webkit-scrollbar-track {
  background: rgba(12, 16, 29, 0.06);
  border-radius: 999px;
}

.list-panel .session-list::-webkit-scrollbar-thumb {
  background: rgba(245, 130, 32, 0.42);
  border-radius: 999px;
}

#roomFilter,
#trackFilter,
#sessionTypeFilter {
  font-size: 13px;
  max-width: 170px;
  min-width: 170px;
  text-align: center;
}

.session-list-filters {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.session-list,
.row-stack,
.library,
.change-log {
  display: grid;
  gap: 10px;
}

.session-card,
.room-card,
.gear-item,
.package-card,
.change-card,
.flow-card {
  background: rgba(12, 16, 29, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #f7f9fb;
}

.session-card {
  cursor: pointer;
  padding: 12px;
}

.session-card.active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent), 0 0 0 2px rgba(245, 130, 32, 0.15);
}

.session-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.form-grid,
.settings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checkbox-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-option {
  align-items: center;
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 8px;
  display: flex;
  flex-direction: row;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.check-option input {
  width: auto;
}

.end-session-field::after {
  content: "";
  display: block;
  min-height: 16px;
}

.settings-section {
  margin-bottom: 16px;
}

.settings-section h3,
.settings-section .panel-title h3,
.project-files-panel h3 {
  color: #172033;
}

.session-builder-title h3 {
  color: var(--accent-dark);
}

.overtime-alert {
  display: block;
  color: #b42318;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  margin-top: 4px;
  min-height: 16px;
}

.overtime-alert:empty,
.overtime-alert[hidden] {
  display: block;
  visibility: hidden;
}

.session-diagram-block {
  border: 1px solid rgba(11, 19, 36, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.session-diagram-head {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.session-diagram-meta {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.session-diagram-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 10px;
}

.session-diagram-card {
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(195, 205, 218, 0.7);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  padding: 10px;
  min-width: 0;
}

.session-diagram-card-meta {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.session-diagram-card-meta strong {
  color: #172033;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.session-diagram-link {
  align-items: center;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 8px;
  color: #172033;
  display: inline-flex;
  cursor: pointer;
  justify-content: center;
  min-height: 72px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-decoration: none;
  width: 100%;
}

.session-diagram-link:hover {
  border-color: rgba(245, 130, 32, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.16);
}

.session-diagram-link img,
.session-diagram-link object {
  display: block;
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
}

.session-diagram-link object {
  height: 160px;
  pointer-events: none;
  width: min(260px, 78vw);
}

.session-diagram-pdf,
.session-diagram-file {
  width: min(260px, 100%);
}

.session-diagram-pdf span,
.session-diagram-file span {
  background: rgba(0, 13, 25, 0.82);
  border-radius: 6px;
  bottom: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  left: 10px;
  padding: 6px 9px;
  position: absolute;
}

.session-diagram-file {
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}

.session-diagram-file strong {
  align-items: center;
  background: rgba(245, 130, 32, 0.18);
  border: 1px solid rgba(245, 130, 32, 0.32);
  border-radius: 8px;
  color: #9a430a;
  display: inline-flex;
  font-size: 18px;
  min-height: 54px;
  padding: 0 14px;
}

.small-btn,
.inline-link-btn {
  min-height: 32px;
  padding: 0 10px;
}

.full {
  grid-column: 1 / -1;
}

.subsection {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 18px;
  padding-top: 18px;
}

.session-block-section .panel-title {
  align-items: flex-start;
}

.session-block-rows {
  display: grid;
  gap: 10px;
}

.session-block-row {
  align-items: end;
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 86px minmax(180px, 1.4fr) 110px 110px minmax(160px, 1fr) 38px;
  padding: 10px;
}

.session-block-index {
  align-self: center;
  color: #dc5f18;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.session-block-notes {
  min-width: 0;
}

.session-card-blocks {
  border-top: 1px solid rgba(195, 205, 218, 0.7);
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
}

.session-card-blocks span {
  color: #526274;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gear-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(190px, 1.2fr) 82px minmax(160px, 1fr) 38px;
}

.crew-assignment-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 1.1fr) minmax(130px, 0.9fr) minmax(130px, 0.9fr) 112px 112px minmax(120px, 0.8fr) 38px;
}

.crew-hours {
  align-items: center;
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 8px;
  color: #182331;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 10px;
}

.crew-assignment-head {
  align-items: center;
  color: #718093;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

#sessionCrewRows select,
#sessionCrewRows input,
#sessionCrewRows .crew-hours {
  font-size: 12px;
}

.crew-detail-box {
  background: rgba(246, 248, 252, 0.68);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 8px;
  padding: 12px;
}

.crew-detail-box h4 {
  color: #dc5f18;
  font-size: 13px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.crew-collapse {
  padding-top: 10px;
}

.crew-collapse summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0;
}

.crew-collapse summary::-webkit-details-marker {
  display: none;
}

.crew-collapse .collapse-title h3 {
  color: #dc5f18;
}

.crew-collapse .collapse-icon {
  align-items: center;
  background: rgba(245, 130, 32, 0.12);
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: 999px;
  color: #dc5f18;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.crew-collapse .summary-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  margin-left: auto;
}

.crew-collapse .collapse-body {
  padding-top: 12px;
}

.crew-member-card {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}

.crew-member-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  margin: 0;
  padding: 14px;
}

.crew-member-card summary::-webkit-details-marker {
  display: none;
}

.crew-member-heading {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.crew-member-heading strong {
  color: #dc5f18;
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
}

.crew-member-heading span {
  color: #0b1324;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.crew-member-meta {
  color: #6f7f98;
  display: none;
  flex: 1 1 auto;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  min-width: 0;
}

.crew-member-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crew-member-summary-actions {
  align-items: center;
  display: inline-flex;
  flex-shrink: 0;
  gap: 8px;
}

.crew-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.crew-member-card .collapse-icon {
  align-items: center;
  background: rgba(245, 130, 32, 0.12);
  border: 1px solid rgba(245, 130, 32, 0.3);
  border-radius: 999px;
  color: #dc5f18;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.room-page-head {
  margin-top: 0;
}

.room-card-grid {
  align-items: start;
  margin-top: 18px;
}

.room-builder-card {
  align-self: start;
  padding: 0;
}

.room-builder-summary {
  align-items: flex-start;
}

.room-builder-heading strong {
  color: #172033;
  font-size: 20px;
  line-height: 1.15;
  text-transform: none;
}

.room-builder-heading span {
  color: #718093;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.room-builder-fields {
  padding-top: 12px;
}

.room-summary-delete {
  flex-shrink: 0;
}

.room-builder-card:not([open]) .room-summary-delete {
  display: none;
}

.room-service-grid {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.room-service-box {
  margin-top: 2px;
}

.room-service-box .settings-grid {
  grid-template-columns: 1fr;
}

.room-service-box input {
  min-width: 0;
  width: 100%;
}

.venue-panel {
  margin-bottom: 18px;
}

.venue-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.venue-upload-btn {
  cursor: pointer;
  display: inline-flex;
}

.venue-document-list {
  display: grid;
  gap: 10px;
}

.venue-document-row {
  align-items: center;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.venue-document-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.venue-document-main strong {
  color: #172033;
  overflow-wrap: anywhere;
}

.venue-document-main span {
  color: #526274;
  font-size: 12px;
  font-weight: 700;
}

.venue-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.room-track-collapse {
  margin-bottom: 18px;
}

.room-track-collapse summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.room-track-collapse summary::-webkit-details-marker {
  display: none;
}

.crew-member-fields {
  border-top: 1px solid rgba(11, 19, 36, 0.08);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 0 14px 14px;
}

.crew-member-fields > .full,
.crew-member-fields > .crew-member-actions {
  grid-column: 1 / -1;
}

.crew-member-card input,
.crew-member-card select,
.crew-member-card textarea,
.crew-detail-box,
.crew-detail-box .settings-grid {
  min-width: 0;
}

.crew-detail-box .settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.crew-member-filter {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.crew-member-filter span {
  color: #6f7f98;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.crew-member-filter select {
  min-width: 180px;
}

#crewMembersPanel .panel-title {
  flex-wrap: wrap;
}

#crewCards {
  align-items: start;
}

#crewCards.crew-list-view {
  grid-template-columns: 1fr;
}

#crewCards.crew-list-view .crew-member-summary {
  display: grid;
  grid-template-columns: minmax(190px, 1.3fr) minmax(260px, 2fr) auto;
}

#crewCards.crew-list-view .crew-member-meta {
  align-items: center;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#crewCards.crew-list-view .crew-member-fields {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.crew-view-controls {
  align-items: center;
  background: rgba(12, 16, 29, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
}

.crew-view-btn {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  min-height: 34px;
  padding: 0;
  width: 38px;
}

.crew-view-btn svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.crew-view-btn.active,
.crew-view-btn:hover {
  background: rgba(245, 130, 32, 0.18);
  color: #ffffff;
}

.check-row {
  align-items: center;
  background: rgba(12, 16, 29, 0.54);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 24px minmax(0, 1fr) 38px;
  padding: 8px;
  text-transform: none;
}

.check-row input[type="checkbox"] {
  min-height: 18px;
  padding: 0;
}

.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.room-card,
.package-card,
.change-card {
  padding: 14px;
}

.room-card header,
.package-card header,
.change-card header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.room-card .room-fields,
.package-card .package-fields {
  display: grid;
  gap: 10px;
}

.add-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(240px, 1fr) 180px auto;
  margin-bottom: 14px;
}

.gear-item {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) 150px 38px;
  padding: 10px;
}

.flow-board {
  display: grid;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.flow-room {
  background: rgba(34, 43, 60, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow);
  min-width: 980px;
  padding: 16px;
}

.session-card .muted,
.room-card .muted,
.package-card .muted,
.change-card .muted,
.flow-card .muted,
.session-card .session-meta {
  color: rgba(238, 241, 244, 0.68);
}

.flow-line {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 0 2px;
}

.flow-card {
  border-left: 5px solid var(--accent);
  cursor: pointer;
  flex: 0 0 240px;
  padding: 12px;
}

.flow-card-room-flip {
  background: rgba(255, 174, 24, 0.18);
  border: 1px solid rgba(245, 130, 32, 0.45);
  border-left: 5px solid #f58220;
  box-shadow:
    0 0 0 1px rgba(255, 174, 24, 0.42),
    0 0 22px rgba(245, 130, 32, 0.38),
    0 16px 34px rgba(245, 130, 32, 0.26);
}

.flow-flip-badge {
  color: #dc5f18;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-top: 6px;
  text-transform: uppercase;
}

.flow-card:focus-visible {
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.28);
  outline: 0;
}

.timecard-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.timecard-workspace {
  padding: 0;
  overflow: hidden;
}

.timecard-date-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 16px 0;
}

.date-tab {
  align-items: flex-start;
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 12px;
  color: #172033;
  display: grid;
  flex: 0 0 150px;
  gap: 2px;
  justify-content: stretch;
  min-height: 66px;
  padding: 9px 11px;
  text-align: left;
}

.date-tab span,
.date-tab small {
  color: #718093;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.date-tab strong {
  color: #172033;
  font-size: 14px;
  line-height: 1.1;
}

.date-tab.active {
  background: linear-gradient(135deg, #ffae18, #f58220 52%, #dc5f18);
  border-color: rgba(245, 130, 32, 0.72);
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.22);
}

.date-tab.active span,
.date-tab.active strong,
.date-tab.active small {
  color: #111820;
}

.timecard-sheet-tools {
  align-items: end;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.timecard-sheet-tools h3 {
  color: #172033;
  font-size: 20px;
  margin-bottom: 4px;
}

.timecard-sheet-tools .tool-row {
  align-items: center;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-load-button {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  text-transform: none;
}

.import-crew-btn {
  box-shadow: 0 10px 24px rgba(245, 130, 32, 0.26);
  color: #090b10;
}

.import-crew-btn:hover {
  background: linear-gradient(180deg, #ffc04d, #ff8c22 52%, #e75d19);
}

.timecard-filters {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 16px 14px;
}

.timecard-filters label {
  color: #6a7688;
  font-size: 11px;
}

.timecard-action-panel {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  padding: 0 16px 14px;
}

.timecard-action-box {
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 14px;
  padding: 12px;
}

.timecard-action-box strong {
  color: #6a7688;
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.timecard-form-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timecard-selection-status {
  color: #6f7f98;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  min-height: 40px;
  align-items: center;
}

.timecard-stats-grid {
  background: rgba(195, 205, 218, 0.9);
  border: 1px solid rgba(195, 205, 218, 0.9);
  border-radius: 14px;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 16px 14px;
  overflow: hidden;
}

.timecard-stats-grid div {
  background: rgba(246, 248, 252, 0.94);
  padding: 11px 12px;
}

.timecard-stats-grid span {
  color: #718093;
  display: block;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timecard-stats-grid strong {
  color: #172033;
  display: block;
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
}

.timecard-table-wrap {
  border-top: 1px solid rgba(11, 19, 36, 0.08);
  overflow: hidden;
}

.timecard-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
}

.timecard-table th {
  background: #102b5d;
  color: #dceaff;
  font-size: 10px;
  font-weight: 900;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

.timecard-table th,
.timecard-table td {
  padding: 8px 8px;
  vertical-align: top;
}

.timecard-table td {
  background: rgba(248, 250, 252, 0.96);
  color: #172033;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.timecard-table tr.checked-in td {
  background: rgba(14, 80, 124, 0.14);
}

.timecard-table tr.checked-out td {
  background: rgba(16, 38, 79, 0.12);
}

.timecard-table tr.no-show td {
  background: rgba(168, 50, 50, 0.14);
}

.timecard-table .time-control button {
  min-height: 28px;
  padding-inline: 8px;
}

.timecard-table .time-control {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr);
}

.timecard-table .note-input {
  margin-top: 6px;
  min-height: 32px;
  min-width: 0;
}

.timecard-table .signature-line {
  border-bottom: 1px solid #9ca3af;
  display: block;
  height: 16px;
  width: 100%;
}

.select-all-label {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  font-weight: 850;
  white-space: nowrap;
}

.small-button {
  font-size: 11px;
  min-height: 28px;
  padding-inline: 8px;
}

.timecard-table .name-cell strong,
.timecard-table .schedule-cell strong,
.timecard-table .assignment-cell strong {
  display: block;
}

.timecard-table .subtle {
  color: #6f7f98;
  display: block;
  font-size: 11px;
  margin-top: 2px;
}

.timecard-table .hours-over {
  color: #a83232;
  font-weight: 900;
}

.timecard-table .check-label {
  color: #172033;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 7px;
  min-height: 24px;
  white-space: nowrap;
}

.timecard-table .select-col input,
.timecard-table .check-label input {
  accent-color: var(--accent);
  height: 18px;
  width: 18px;
}

.timecard-table .status-pill {
  background: #4a3512;
  color: #ffe7ae;
  display: inline-flex;
  min-height: 22px;
  min-width: 66px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  margin-top: 4px;
}

.timecard-table .compact-note-input,
.timecard-table .time-control input {
  font-size: 11px;
  min-height: 32px;
  padding: 6px 8px;
}

.timecard-table .assignment-cell,
.timecard-table .status-cell {
  display: grid;
  gap: 4px;
}

.timecard-table .select-col {
  width: 56px;
}

.timecard-table th:nth-child(2),
.timecard-table td:nth-child(2) {
  width: 19%;
}

.timecard-table th:nth-child(3),
.timecard-table td:nth-child(3) {
  width: 10%;
}

.timecard-table th:nth-child(4),
.timecard-table td:nth-child(4) {
  width: 16%;
}

.timecard-table th:nth-child(5),
.timecard-table td:nth-child(5),
.timecard-table th:nth-child(6),
.timecard-table td:nth-child(6),
.timecard-table th:nth-child(7),
.timecard-table td:nth-child(7) {
  width: 11%;
}

.timecard-table th:nth-child(8),
.timecard-table td:nth-child(8) {
  width: 8%;
}

.timecard-table th:nth-child(9),
.timecard-table td:nth-child(9) {
  width: 12%;
}

.timecard-table th:nth-child(10),
.timecard-table td:nth-child(10) {
  width: 8%;
}

@media (max-width: 1200px) {
  .timecard-filters {
    grid-template-columns: 1fr;
  }

  .timecard-action-panel {
    grid-template-columns: 1fr;
  }

  .timecard-stats-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .timecard-table th,
  .timecard-table td {
    font-size: 11px;
    padding: 7px 6px;
  }

  .timecard-table .check-label,
  .timecard-table .subtle,
  .small-button,
  .timecard-table .status-pill,
  .timecard-table .compact-note-input,
  .timecard-table .time-control input {
    font-size: 10px;
  }
}

.timecard-table .status-pill.done {
  background: #0c4c43;
  color: #bdfbe8;
}

.timecard-table .status-pill.open {
  background: #163f84;
  color: #d8e7ff;
}

.timecard-table .status-pill.warn {
  background: #63223d;
  color: #ffd1dd;
}

.modal-backdrop {
  align-items: center;
  background: rgba(0, 13, 25, 0.68);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 80;
}

.timecard-crew-picker {
  background: rgba(255, 255, 255, 0.98);
  color: #172033;
  display: grid;
  gap: 16px;
  max-height: min(720px, calc(100vh - 44px));
  max-width: 720px;
  overflow: auto;
  width: min(720px, 100%);
}

.modal-head,
.modal-actions,
.timecard-picker-controls,
.timecard-picker-actions {
  align-items: center;
  display: flex;
  gap: 12px;
}

.modal-head,
.modal-actions {
  justify-content: space-between;
}

.timecard-crew-picker h3 {
  color: #111827;
}

.timecard-picker-controls {
  align-items: end;
  justify-content: space-between;
}

.timecard-picker-controls label {
  min-width: min(260px, 100%);
}

.timecard-crew-choice-list {
  display: grid;
  gap: 8px;
}

.timecard-crew-choice {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #d6e0ea;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr);
  min-height: 54px;
  padding: 10px 12px;
  text-transform: none;
}

.timecard-crew-choice input {
  min-height: 18px;
  padding: 0;
  width: 18px;
}

.timecard-crew-choice span {
  display: grid;
  gap: 2px;
}

.timecard-crew-choice strong {
  color: #111827;
  font-size: 14px;
}

.timecard-crew-choice small {
  color: #526274;
  font-size: 12px;
  font-weight: 800;
}

.change-card {
  display: grid;
  gap: 10px;
}

.change-card textarea {
  min-height: 78px;
}

.print-tools {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 14px;
}

.column-controls {
  display: none !important;
}

.print-preview {
  background: white;
  border: 1px solid var(--line);
  color: #111820;
  margin: 0 auto;
  min-height: 11in;
  padding: 0.38in;
  width: min(100%, 8.5in);
}

.print-preview.landscape-preview {
  min-height: 8.5in;
  width: min(100%, 11in);
}

.crew-print-option[hidden],
.schedule-print-option[hidden],
.binder-print-option[hidden] {
  display: none !important;
}

.binder-builder {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding-top: 12px;
}

.binder-builder-head {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.binder-builder h3 {
  color: var(--accent);
  margin: 0 0 4px;
}

.binder-section-controls {
  display: grid;
  gap: 8px;
}

.binder-section-control {
  align-items: center;
  background: #f7f9fc;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px;
}

.binder-section-control .check-option {
  border: 0;
  padding: 0;
}

.binder-order-actions {
  display: flex;
  gap: 6px;
}

.binder-order-actions .icon-btn {
  height: 32px;
  min-height: 32px;
  width: 32px;
}

.print-page {
  color: #111820;
  font-size: 10px;
  line-height: 1.28;
}

.print-page h2 {
  border-bottom: 3px solid var(--accent);
  font-size: 18px;
  margin: 0 0 10px;
  padding-bottom: 7px;
}

.print-page h3 {
  font-size: 12px;
  margin: 10px 0 6px;
}

.binder-title-page {
  align-content: center;
  border: 2px solid var(--accent);
  box-sizing: border-box;
  break-after: page;
  break-inside: avoid;
  display: grid;
  height: calc(11in - 0.85in);
  max-height: calc(11in - 0.85in);
  min-height: calc(11in - 0.85in);
  overflow: hidden;
  page-break-after: always;
  page-break-inside: avoid;
  padding: 0.45in;
  text-align: center;
}

.binder-title-page h1 {
  color: #111820;
  font-size: 28px;
  margin: 0 0 8px;
}

.binder-title-page h2 {
  border: 0;
  color: var(--accent);
  font-size: 14px;
  margin: 0;
  padding: 0;
}

.binder-title-hero {
  border-bottom: 1px solid rgba(11, 19, 36, 0.08);
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.binder-title-grid {
  display: grid;
  gap: 8px;
  margin: 0;
  text-align: left;
}

.binder-title-grid div {
  border-bottom: 1px solid #d8e0e8;
  display: grid;
  gap: 6px;
  grid-template-columns: 132px minmax(0, 1fr);
  padding: 4px 0;
}

.binder-title-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

.binder-date-grid {
  align-content: start;
  background: rgba(245, 130, 32, 0.07);
  border: 1px solid rgba(245, 130, 32, 0.18);
  border-radius: 14px;
  display: grid;
  gap: 0;
  padding: 12px 14px;
  text-align: left;
}

.binder-date-grid h3 {
  color: #dc5f18;
  font-size: 12px;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.binder-date-grid div {
  border-bottom: 1px solid rgba(11, 19, 36, 0.08);
  display: grid;
  gap: 6px;
  grid-template-columns: 148px minmax(0, 1fr);
  padding: 4px 0;
}

.binder-date-grid div:last-child {
  border-bottom: 0;
}

.binder-toc {
  margin: 10px 0 0;
  padding: 0;
}

.binder-toc li {
  list-style: none;
  margin: 0;
}

.binder-toc a {
  align-items: center;
  border-bottom: 1px solid #d8e0e8;
  color: #172033;
  display: grid;
  font-weight: 800;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 0;
  text-decoration: none;
}

.binder-toc span {
  color: var(--accent);
  font-size: 8px;
  text-transform: uppercase;
}

.compact-binder-toc {
  columns: 2;
  column-gap: 24px;
}

.compact-binder-toc li {
  break-inside: avoid;
  page-break-inside: avoid;
}

.crew-binder-toc {
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 8px;
}

.crew-binder-toc h3 {
  color: var(--accent);
  margin-top: 0;
}

.binder-back-link {
  color: var(--accent);
  font-size: 8px;
  font-weight: 900;
  margin-left: 6px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.binder-page {
  page-break-before: always;
  break-before: page;
}

.print-meta {
  font-size: 10px;
  margin: 0 0 10px;
}

.print-table {
  border-collapse: collapse;
  font-size: 9px;
  margin: 8px 0 14px;
  width: 100%;
}

.print-table th,
.print-table td {
  border: 1px solid #c9d2dc;
  padding: 5px;
  text-align: left;
  vertical-align: top;
}

.overview-matrix th:first-child {
  width: 170px;
}

.overview-session-box {
  background: #fff6ed;
  border: 1px solid rgba(245, 130, 32, 0.42);
  border-radius: 6px;
  break-inside: avoid;
  display: grid;
  gap: 3px;
  margin-bottom: 5px;
  page-break-inside: avoid;
  padding: 5px;
}

.overview-matrix tr,
.overview-matrix td,
.overview-matrix th {
  break-inside: avoid;
  page-break-inside: avoid;
}

.schedule-overview-page {
  padding-bottom: 0.5in;
}

.schedule-print-footer {
  background: #ffffff;
  border-top: 2px solid var(--accent);
  color: #111820;
  display: grid;
  font-size: 8px;
  gap: 2px;
  line-height: 1.25;
  margin-top: 14px;
  padding-top: 7px;
}

.schedule-print-footer strong {
  color: #172033;
  font-size: 9px;
}

.schedule-print-footer span {
  color: #4b5563;
}

.overview-session-box strong {
  color: #172033;
}

.overview-session-box span {
  color: #4b5563;
  display: block;
  font-size: 8px;
  font-weight: 800;
}

.overview-session-box em {
  color: #4b5563;
  display: block;
  font-size: 8px;
  font-style: normal;
  line-height: 1.25;
}

.gantt-day {
  break-inside: avoid;
  margin: 12px 0 16px;
  page-break-inside: avoid;
}

.gantt-day h3 {
  color: #dc5f18;
  font-size: 12px;
  margin: 0 0 7px;
}

.gantt-chart {
  border: 1px solid #c9d2dc;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.gantt-room-head,
.gantt-time-head,
.gantt-room-label,
.gantt-room-lane {
  border-bottom: 1px solid #d8e0e8;
}

.gantt-room-head,
.gantt-room-label {
  background: #f3f6fa;
  border-right: 1px solid #c9d2dc;
  color: #172033;
  font-weight: 900;
  padding: 6px;
}

.gantt-time-head {
  background: #f8fafc;
  min-height: 28px;
  position: relative;
}

.gantt-time-head span {
  color: #4b5563;
  font-size: 7px;
  font-weight: 800;
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.gantt-room-lane {
  min-height: 42px;
  overflow: hidden;
  position: relative;
}

.gantt-grid-line {
  background: rgba(201, 210, 220, 0.7);
  bottom: 0;
  position: absolute;
  top: 0;
  width: 1px;
}

.gantt-session-block {
  background: #fff6ed;
  border: 1px solid rgba(245, 130, 32, 0.62);
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  box-sizing: border-box;
  color: #172033;
  display: grid;
  gap: 1px;
  min-height: 30px;
  overflow: hidden;
  padding: 4px 5px;
  position: absolute;
  top: 6px;
}

.gantt-session-block strong {
  font-size: 8px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gantt-session-block span {
  color: #4b5563;
  font-size: 7px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-print-table {
  table-layout: fixed;
}

.crew-print-group {
  break-inside: avoid;
  page-break-inside: avoid;
}

.crew-travel-card {
  break-inside: avoid;
  border: 1px solid #d8e0e8;
  border-radius: 8px;
  margin: 0 0 10px;
  padding: 8px;
  page-break-inside: avoid;
}

.crew-travel-card h3 {
  color: #172033;
  margin-top: 0;
}

.crew-travel-card .print-table {
  margin-bottom: 0;
}

.crew-travel-card th {
  width: 110px;
}

.badge {
  background: var(--soft);
  border: 1px solid rgba(245, 130, 32, 0.25);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.toggle-line {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-self: start;
  text-transform: none;
  width: fit-content;
}

.toggle-line input {
  width: auto;
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
    padding: 14px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .show-name,
  .top-actions {
    justify-content: flex-start;
    text-align: left;
  }

  #showNameDisplay {
    left: auto;
    max-width: 100%;
    pointer-events: auto;
    position: static;
    transform: none;
  }

  .mobile-menu {
    display: block;
    margin: 14px 0;
  }

  .side-nav {
    display: none;
    margin-bottom: 14px;
    position: static;
  }

  .nav-collapse-toggle {
    display: none;
  }

  .side-nav.open {
    display: grid;
  }

  .two-col,
  .overview-strip,
  .form-grid,
  .settings-grid,
  .checkbox-grid,
  .print-tools,
  .add-strip {
    grid-template-columns: 1fr;
  }

  .gear-row {
    grid-template-columns: 1fr 80px 1fr 38px;
  }

  .crew-assignment-row {
    grid-template-columns: 1fr;
  }
}

/* BoothForge live UI parity layer */
body {
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 174, 24, 0.28), transparent 28%),
    radial-gradient(circle at 82% 16%, rgba(245, 130, 32, 0.24), transparent 34%),
    radial-gradient(circle at 70% 90%, rgba(174, 181, 188, 0.28), transparent 30%),
    linear-gradient(135deg, #000d19 0%, #07131d 46%, #dfe6ea 100%);
  color: #182331;
}

body::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 12% 86%, rgba(245, 130, 32, 0.14), transparent 26%),
    radial-gradient(circle at 88% 18%, rgba(255, 174, 24, 0.12), transparent 24%);
}

.app-shell {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 30px;
  box-shadow: 0 38px 90px rgba(70, 32, 128, 0.28);
  color: #182331;
  gap: 32px;
  padding: 34px;
}

.topbar {
  background: #000d19;
  border: 1px solid rgba(245, 130, 32, 0.28);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(61, 50, 92, 0.12);
  padding: 22px 24px;
  top: 0;
}

.site-logo {
  filter: drop-shadow(0 8px 18px rgba(0, 13, 25, 0.16));
  width: 300px;
}

.top-show-name,
.show-name {
  color: #eef1f4;
  text-shadow: none;
}

#showNameDisplay {
  left: 50%;
  max-width: min(420px, 38vw);
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  text-align: center;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  white-space: nowrap;
}

.actions .secondary,
.top-actions .secondary,
.top-actions .icon-btn,
#settingsShortcut,
.mobile-menu {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  color: #eef1f4;
}

.actions .secondary:hover,
.top-actions .secondary:hover,
.top-actions .icon-btn:hover,
#settingsShortcut:hover {
  background: rgba(245, 130, 32, 0.18);
  border-color: rgba(245, 130, 32, 0.48);
}

.page-nav {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(61, 50, 92, 0.1);
  padding: 18px;
}

.page-tab {
  color: #718093;
}

.page-tab:hover {
  background: rgba(255, 255, 255, 0.64);
  color: #182331;
}

.page-tab.active {
  background: linear-gradient(135deg, #ffae18, #f58220 48%, #dc5f18);
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 28px rgba(245, 130, 32, 0.26);
  color: #ffffff;
}

.page-head,
.panel,
.flow-room,
.editor-panel,
.list-panel,
.room-card,
.package-card,
.change-card,
.print-preview {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(61, 50, 92, 0.14);
  color: #182331;
}

.page-head h2,
.panel h3,
.panel-title h3,
.room-card h3,
.package-card h3,
.change-card h3,
h2,
h3 {
  color: #172033;
}

.session-builder-title h3 {
  color: #dc5f18;
}

.session-type-control {
  align-items: flex-start;
  color: #718093;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 900;
  gap: 4px;
  letter-spacing: 0;
  min-width: 150px;
  text-transform: uppercase;
}

.session-builder-title .inline-actions {
  align-items: flex-end;
}

.session-type-control select {
  min-height: 38px;
  min-width: 150px;
}

label,
.muted,
.session-meta {
  color: #718093;
}

input,
textarea,
select {
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(195, 205, 218, 0.9);
  color: #182331;
}

input::placeholder,
textarea::placeholder {
  color: #8c98a6;
}

.secondary {
  background: #eef3f8;
  border: 1px solid #d6e0ea;
  color: #182331;
}

.secondary:hover {
  background: #ffffff;
}

.primary,
.icon-btn:not(.secondary),
.icon-button {
  background: linear-gradient(135deg, #ffae18, #f58220 52%, #dc5f18);
  box-shadow: 0 12px 24px rgba(245, 130, 32, 0.24);
  color: #111820;
}

.session-card,
.gear-item,
.check-row,
.overview-card,
.flow-card {
  background: rgba(246, 248, 252, 0.9);
  border-color: rgba(211, 220, 230, 0.9);
  color: #182331;
}

.session-card.active {
  background: #fff6ed;
  border-color: rgba(245, 130, 32, 0.78);
  color: #dc5f18;
}

.session-card .muted,
.room-card .muted,
.package-card .muted,
.change-card .muted,
.flow-card .muted,
.session-card .session-meta {
  color: #718093;
}

.subsection {
  border-color: rgba(211, 220, 230, 0.9);
}

@media (min-width: 941px) {
  .app-shell {
    display: grid;
    gap: 30px;
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .topbar {
    grid-column: 1 / -1;
    grid-template-columns: minmax(290px, 1fr) minmax(180px, auto) minmax(260px, 1fr);
  }

  .page-nav {
    align-content: start;
    align-self: stretch;
    display: grid;
    gap: 12px;
    grid-column: 1;
    justify-content: stretch;
  }

  .workspace {
    grid-column: 2;
  }

  .two-col {
    grid-template-columns: 210px minmax(0, 1fr);
  }
}

@media (max-width: 940px) {
  .app-shell {
    border-radius: 0;
    display: block;
    margin: 0;
    padding: 34px;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-lockup,
  .top-actions {
    justify-content: center;
  }

  .mobile-menu {
    background: rgba(245, 130, 32, 0.18);
    border-color: rgba(245, 130, 32, 0.38);
    color: #182331;
    display: block;
    margin: 0 0 14px;
    width: 100%;
  }

  .side-nav {
    display: none;
    margin-bottom: 14px;
    position: static;
  }

  .side-nav.open {
    display: grid;
  }

  .nav-collapse-toggle {
    display: none;
  }

  .two-col {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .overview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .two-col,
  .overview-strip,
  .form-grid,
  .settings-grid,
  .print-tools,
  .add-strip {
    grid-template-columns: 1fr;
  }

}

@page {
  margin: 0.35in 0.35in 0.5in;
  size: letter portrait;

  @bottom-center {
    color: #718093;
    content: counter(page);
    font: 8pt Arial, sans-serif;
  }
}

@media print {
  html,
  body {
    background: #fff;
    color: #111820;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
  }

  body::before,
  .app-shell::before {
    display: none !important;
  }

  .topbar,
  .side-nav,
  .mobile-menu,
  .page-head,
  .print-tools {
    display: none !important;
  }

  .app-shell,
  .workspace,
  .page,
  #printPage {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
    display: block !important;
    height: auto !important;
    margin: 0 !important;
    max-width: none;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .page:not(#printPage) {
    display: none !important;
  }

  .print-preview {
    border: 0 !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    min-height: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    page-break-after: auto !important;
    break-after: auto !important;
    width: 100% !important;
  }

  .print-page {
    font-size: 8.5pt;
    margin: 0 !important;
    min-height: 0 !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .print-page > :last-child,
  .print-table:last-child,
  .crew-print-group:last-child,
  .crew-travel-card:last-child {
    margin-bottom: 0 !important;
    page-break-after: auto !important;
    break-after: auto !important;
  }

  .binder-title-page {
    height: calc(11in - 0.85in) !important;
    max-height: calc(11in - 0.85in) !important;
    min-height: calc(11in - 0.85in) !important;
  }

  .print-table {
    font-size: 7.5pt;
  }

  .print-table th,
  .print-table td {
    padding: 3pt;
  }

  .overview-session-box,
  .overview-matrix tr,
  .overview-matrix td,
  .overview-matrix th {
    break-inside: avoid !important;
    page-break-inside: avoid !important;
  }

  .schedule-overview-page {
    padding-bottom: 0.56in !important;
  }

  .schedule-print-footer {
    bottom: 0.18in;
    left: 0.35in;
    margin: 0;
    padding-top: 5pt;
    position: fixed;
    right: 0.35in;
  }
}

.editor-panel .session-builder-title h3 {
  color: #dc5f18 !important;
}

.editor-panel .overtime-alert {
  display: block !important;
  min-height: 16px;
  visibility: visible;
}

.editor-panel .overtime-alert:empty,
.editor-panel .overtime-alert[hidden] {
  display: block !important;
  visibility: hidden;
}

.session-time-hidden {
  pointer-events: none;
  visibility: hidden;
}

.session-field-hidden {
  display: none !important;
}

.auth-gate {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
}

.auth-shell {
  background:
    radial-gradient(circle at 55% 8%, rgba(245, 130, 32, 0.1), transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(255, 255, 255, 0.04), transparent 28%),
    #0b0b17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 13, 25, 0.28);
  display: grid;
  gap: 18px;
  max-width: 1440px;
  min-height: calc(100vh - 96px);
  padding: 28px;
  width: min(1440px, 100%);
}

.auth-topbar {
  grid-template-columns: minmax(360px, 1fr) minmax(220px, auto) minmax(180px, 1fr);
  position: relative;
  top: 0;
}

.auth-brand-lockup {
  min-height: 140px;
}

.auth-cloud-logo {
  max-width: min(520px, 100%);
  width: 420px;
}

.auth-top-name {
  text-align: center;
}

.auth-panel {
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 860px;
  padding: 28px;
  width: min(860px, 100%);
}

.auth-panel h2,
.auth-panel h3,
.project-card strong {
  color: #111827;
}

.auth-product-brand {
  align-items: center;
  display: flex;
  gap: 14px;
  margin-bottom: 4px;
}

.auth-showforge-logo {
  display: block;
  height: auto;
  max-width: 250px;
  width: 220px;
}

.auth-brand-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-brand-pill,
.auth-admin-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 7px 12px;
  text-transform: uppercase;
}

.auth-brand-pill {
  background: rgba(245, 130, 32, 0.12);
  border: 1px solid rgba(245, 130, 32, 0.18);
  color: #c65b16;
}

.auth-admin-pill {
  background: rgba(0, 13, 25, 0.08);
  border: 1px solid rgba(0, 13, 25, 0.12);
  color: #0f172a;
}

.role-pill {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  padding: 5px 9px;
  text-transform: uppercase;
}

.role-pill.owner {
  background: rgba(245, 130, 32, 0.12);
  border-color: rgba(245, 130, 32, 0.18);
  color: #c65b16;
}

.role-pill.admin {
  background: rgba(245, 130, 32, 0.2);
  border-color: rgba(245, 130, 32, 0.35);
  color: #8a3c09;
}

.role-pill.super_admin {
  background: rgba(0, 13, 25, 0.12);
  border-color: rgba(0, 13, 25, 0.2);
  color: #0f172a;
}

.role-pill.member {
  background: rgba(15, 23, 42, 0.05);
  color: #5c6d84;
}

.auth-form,
.project-create-row,
.project-picker-toolbar {
  display: grid;
  gap: 14px;
}

.auth-create-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form-actions,
.project-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.auth-config-banner,
.cloud-status-box {
  background: #fff4e8;
  border: 1px solid rgba(245, 130, 32, 0.24);
  border-radius: 12px;
  color: #8a3c09;
  padding: 14px 16px;
}

.auth-status {
  color: #8a3c09;
  font-size: 14px;
  font-weight: 700;
  min-height: 20px;
}

.project-list {
  display: grid;
  gap: 14px;
}

.project-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 18px;
}

.project-card.active {
  border-color: rgba(245, 130, 32, 0.45);
  box-shadow: 0 16px 28px rgba(245, 130, 32, 0.16);
}

.project-card-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-picker-toolbar {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.project-create-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.empty-state {
  background: #ffffff;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.danger-btn {
  background: rgba(168, 50, 50, 0.12);
  border: 1px solid rgba(168, 50, 50, 0.24);
  color: #a83232;
}

.danger-btn:hover {
  background: rgba(168, 50, 50, 0.18);
}

.cloud-access-panel {
  display: grid;
  gap: 16px;
}

.project-access-add {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 220px) auto;
}

.project-access-list {
  display: grid;
  gap: 10px;
}

.project-access-row {
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px 16px;
}

.project-access-person {
  display: grid;
  gap: 4px;
}

.project-access-person strong {
  color: #15233a;
  font-size: 14px;
}

.project-access-person span {
  color: #6a798d;
  font-size: 12px;
}

.project-access-actions {
  display: flex;
  gap: 8px;
}

.project-access-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.readonly-note {
  color: #6a798d;
  font-size: 12px;
  font-weight: 700;
}

.cloud-status-box {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cloud-status-box .settings-actions {
  justify-content: flex-start;
}

.profile-settings-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.admin-shell {
  background:
    radial-gradient(circle at 55% 8%, rgba(245, 130, 32, 0.1), transparent 30%),
    radial-gradient(circle at 18% 92%, rgba(255, 255, 255, 0.04), transparent 28%),
    #0b0b17;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: 0 34px 90px rgba(0, 13, 25, 0.28);
  display: grid;
  gap: 18px;
  margin: 48px auto;
  max-width: 1440px;
  min-height: calc(100vh - 96px);
  padding: 28px;
  position: relative;
  width: min(1440px, calc(100% - 48px));
  z-index: 1;
}

.admin-topbar {
  position: relative;
  top: 0;
}

.admin-dashboard {
  display: grid;
  gap: 18px;
}

.admin-denied-panel {
  background: rgba(255, 255, 255, 0.96);
  color: #1e293b;
}

.admin-denied-panel h2 {
  color: #111827;
}

.admin-status-bar,
.admin-stats article,
.admin-row-card {
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 8px;
  color: #172033;
}

.admin-status-bar {
  padding: 12px 14px;
}

.admin-status-bar .muted,
.admin-panel .muted,
.admin-row-card .readonly-note {
  color: #526274;
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-stats article {
  display: grid;
  gap: 4px;
  padding: 16px;
}

.admin-stats strong {
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.admin-stats span {
  color: #526274;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-panel {
  background: rgba(255, 255, 255, 0.96);
  color: #172033;
}

.admin-panel h3 {
  color: #111827;
}

.admin-panel .panel-title {
  align-items: end;
  gap: 14px;
}

.admin-panel .panel-title input {
  max-width: 320px;
}

.admin-grant-row {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) auto;
  margin-bottom: 14px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row-card {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 14px;
}

.admin-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-row-main strong {
  color: #111827;
  overflow-wrap: anywhere;
}

.admin-row-main span {
  color: #526274;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.admin-row-meta,
.admin-row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-backup-list {
  display: grid;
  gap: 10px;
}

.project-backup-row {
  align-items: center;
  background: rgba(248, 250, 252, 0.86);
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.project-backup-row div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.project-backup-row strong {
  color: #172033;
}

.project-backup-row span {
  color: #526274;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.profile-avatar-preview {
  align-items: center;
  background: rgba(245, 130, 32, 0.14);
  border: 1px solid rgba(245, 130, 32, 0.24);
  border-radius: 18px;
  color: #dc5f18;
  display: flex;
  font-size: 28px;
  font-weight: 900;
  height: 96px;
  justify-content: center;
  overflow: hidden;
  width: 96px;
}

.profile-avatar-preview img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-actions {
  grid-column: 2;
  justify-content: flex-start;
}

body.auth-gate-open .app-shell {
  display: none;
}

@media (max-width: 900px) {
  .auth-gate {
    padding: 24px 16px;
  }

  .auth-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .project-create-row,
  .project-picker-toolbar,
  .project-card,
  .auth-create-grid {
    grid-template-columns: 1fr;
  }

  .project-access-add,
  .project-access-row,
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    grid-column: auto;
  }

  .project-access-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Responsive device polish layer */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.app-shell,
.auth-shell,
.auth-panel,
.auth-panel-copy,
.auth-product-brand,
.auth-form,
.workspace,
.page,
.panel,
.page-head,
.topbar,
.two-col,
.card-grid,
.form-grid,
.settings-grid,
.room-fields,
.package-fields,
.project-card,
.project-access-row,
.timecard-workspace,
.print-preview {
  min-width: 0;
}

.top-actions,
.head-actions,
.settings-actions,
.inline-actions,
.auth-form-actions,
.project-card-actions {
  min-width: 0;
}

@media (min-width: 1441px) {
  .app-shell {
    max-width: 1560px;
  }

  .two-col {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    gap: 22px;
    grid-template-columns: 180px minmax(0, 1fr);
    padding: 24px;
  }

  .topbar {
    grid-template-columns: minmax(210px, auto) minmax(0, 1fr) auto auto;
    padding: 18px;
  }

  .site-logo {
    width: min(260px, 100%);
  }

  .top-show-name,
  .show-name {
    font-size: 15px;
  }

  .top-actions {
    flex-wrap: wrap;
  }

  .page-nav {
    padding: 14px;
  }

  .page-tab {
    padding: 0 12px;
  }

  .two-col {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .form-grid,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crew-assignment-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gear-row {
    grid-template-columns: minmax(180px, 1fr) 80px minmax(150px, 1fr) 38px;
  }

  .print-preview.landscape-preview {
    width: 100%;
  }
}

@media (max-width: 940px) {
  body {
    background:
      radial-gradient(circle at 24% 8%, rgba(255, 174, 24, 0.24), transparent 30%),
      linear-gradient(135deg, #000d19 0%, #dfe6ea 100%);
  }

  .app-shell {
    border-radius: 0;
    box-shadow: none;
    display: block;
    margin: 0;
    max-width: none;
    min-height: 100vh;
    padding: 20px;
    width: 100%;
  }

  .topbar {
    gap: 14px;
    grid-template-columns: 1fr;
    justify-items: center;
    margin-bottom: 18px;
    position: relative;
    top: 0;
  }

  .brand-lockup,
  .top-actions {
    justify-content: center;
    width: 100%;
  }

  .site-logo {
    width: min(300px, 82vw);
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(4, 42px) minmax(150px, 1fr);
    justify-items: stretch;
  }

  #settingsShortcut {
    min-width: 0;
    width: 100%;
  }

  .mobile-menu {
    border-radius: 14px;
    display: block;
    margin: 0 0 14px;
    position: relative;
    top: 0;
    width: 100%;
  }

  .side-nav {
    display: none;
    margin-bottom: 18px;
    max-height: none;
    position: static;
    top: auto;
  }

  .side-nav.open {
    display: grid;
  }

  .nav-collapse-toggle {
    display: none;
  }

  .workspace {
    width: 100%;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }

  .head-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    width: 100%;
  }

  .head-actions button,
  .settings-actions button,
  .auth-form-actions button {
    width: 100%;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .list-panel {
    max-height: none;
    overflow: visible;
    position: static;
  }

  .session-list {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }

  #roomFilter,
  #trackFilter,
  #sessionTypeFilter {
    max-width: none;
    min-width: 0;
    width: 100%;
  }

  .session-list-filters {
    width: 100%;
  }

  .form-grid,
  .settings-grid,
  .checkbox-grid,
  .print-tools,
  .add-strip,
  .timecard-filters,
  .timecard-action-panel,
  .project-access-add,
  .project-access-row,
  .admin-grant-row,
  .admin-row-card,
  .autosave-grid,
  .binder-builder-head {
    grid-template-columns: 1fr;
  }

  .admin-shell {
    margin: 14px auto;
    min-height: calc(100vh - 28px);
    padding: 14px;
    width: calc(100% - 20px);
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-panel .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-panel .panel-title input {
    max-width: none;
  }

  .project-files-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    justify-content: stretch;
    width: 100%;
  }

  .crew-assignment-row,
  .session-block-row,
  .gear-row,
  .gear-item {
    grid-template-columns: 1fr;
  }

  .crew-member-card summary,
  .room-builder-summary {
    align-items: stretch;
    flex-direction: column;
  }

  #crewCards.crew-list-view .crew-member-summary,
  #crewCards.crew-list-view .crew-member-fields {
    grid-template-columns: 1fr;
  }

  #crewCards.crew-list-view .crew-member-meta {
    grid-template-columns: 1fr;
  }

  .crew-member-summary-actions,
  .crew-member-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .room-summary-delete {
    align-self: flex-start;
  }

  .flow-board {
    overflow-x: auto;
  }

  .flow-room {
    min-width: min(760px, 92vw);
  }

  .print-preview,
  .print-preview.landscape-preview {
    min-height: 0;
    overflow-x: auto;
    padding: 18px;
    width: 100%;
  }

  .auth-shell {
    width: 100%;
  }

  .auth-topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .project-picker-toolbar,
  .project-create-row,
  .project-card,
  .auth-create-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body {
    min-width: 320px;
  }

  .app-shell {
    padding: 14px;
  }

  .topbar {
    border-radius: 18px;
    padding: 16px;
  }

  .top-actions {
    grid-template-columns: repeat(4, minmax(38px, 1fr));
  }

  #settingsShortcut {
    grid-column: 1 / -1;
  }

  .page-head,
  .panel,
  .flow-room,
  .room-card,
  .package-card,
  .change-card,
  .print-preview {
    border-radius: 16px;
  }

  .page-head {
    padding: 16px;
  }

  .page-head h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  h2 {
    font-size: 23px;
    line-height: 1.15;
  }

  .panel {
    padding: 14px;
  }

  .session-builder-title {
    align-items: stretch;
    flex-direction: column;
  }

  .session-builder-title .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .session-type-control,
  .session-type-control select {
    min-width: 0;
    width: 100%;
  }

  .session-list {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .timecard-grid {
    grid-template-columns: 1fr;
  }

  .add-strip {
    margin-bottom: 12px;
  }

  .timecard-sheet-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .timecard-sheet-tools .tool-row,
  .timecard-form-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .timecard-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timecard-table-wrap {
    overflow-x: visible;
  }

  .timecard-table,
  .timecard-table thead,
  .timecard-table tbody,
  .timecard-table tr,
  .timecard-table th,
  .timecard-table td {
    display: block;
    width: 100% !important;
  }

  .timecard-table thead {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px !important;
  }

  .timecard-table tr {
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(195, 205, 218, 0.9);
    padding: 10px 12px;
  }

  .timecard-table td {
    background: transparent !important;
    border: 0;
    padding: 6px 0;
  }

  .timecard-table td::before {
    color: #718093;
    content: attr(data-label);
    display: block;
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 3px;
    text-transform: uppercase;
  }

  .timecard-table .select-col::before {
    content: "Select";
  }

  .timecard-table .time-control {
    grid-template-columns: 1fr;
  }

  .flow-room {
    min-width: min(620px, 88vw);
  }

  .flow-card {
    flex-basis: 210px;
  }

  .project-access-actions,
  .project-card-actions {
    width: 100%;
  }

  .direct-chat-panel {
    bottom: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 480px) {
  .app-shell {
    padding: 10px;
  }

  .site-logo {
    width: min(250px, 78vw);
  }

  .auth-gate {
    padding: 12px;
  }

  .auth-shell {
    border-radius: 20px;
    padding: 16px;
  }

  .auth-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .auth-product-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .auth-showforge-logo,
  .auth-cloud-logo {
    width: min(220px, 100%);
  }

  .top-show-name,
  .show-name {
    font-size: 13px;
    line-height: 1.25;
  }

  .top-actions {
    gap: 8px;
  }

  .top-actions .icon-btn {
    min-width: 38px;
    width: 100%;
  }

  button {
    min-height: 42px;
  }

  .head-actions,
  .settings-actions,
  .auth-form-actions {
    grid-template-columns: 1fr;
  }

  .page-head h2 {
    font-size: 22px;
  }

  .crew-member-heading span,
  .room-builder-heading strong {
    font-size: 18px;
  }

  .session-diagram-meta,
  .project-access-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .timecard-stats-grid {
    grid-template-columns: 1fr;
  }

  .flow-room {
    min-width: min(540px, 86vw);
  }

  .flow-card {
    flex-basis: 190px;
  }
}

/* Mobile app layout */
body.mobile-layout {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 174, 24, 0.22), transparent 34%),
    linear-gradient(180deg, #000d19 0%, #dfe6ea 48%, #eef3f8 100%);
}

body.mobile-layout .app-shell {
  background: rgba(247, 250, 252, 0.94);
  min-height: 100svh;
  padding-bottom: 92px;
}

body.mobile-layout .topbar {
  border-radius: 0 0 20px 20px;
  margin: -14px -14px 14px;
  padding: 14px;
  position: sticky;
  top: 0;
  z-index: 60;
}

body.mobile-layout .brand-lockup {
  justify-content: center;
}

body.mobile-layout .site-logo {
  width: min(230px, 72vw);
}

body.mobile-layout #showNameDisplay {
  font-size: 14px;
  left: auto;
  max-width: 100%;
  order: 2;
  pointer-events: auto;
  position: static;
  transform: none;
  white-space: normal;
}

body.mobile-layout .presence-strip {
  justify-content: center;
  order: 3;
  width: 100%;
}

body.mobile-layout .top-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  order: 4;
  width: 100%;
}

body.mobile-layout #settingsShortcut {
  grid-column: 1 / -1;
}

body.mobile-layout #topSignOutBtn {
  min-width: 0;
}

body.mobile-layout .mobile-menu {
  display: none;
}

@media (max-width: 720px) {
  body.mobile-layout .side-nav {
    align-items: stretch;
    background: rgba(0, 13, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px 18px 0 0;
    bottom: 0;
    box-shadow: 0 -14px 34px rgba(0, 13, 25, 0.28);
    display: flex;
    gap: 6px;
    left: 0;
    margin: 0;
    max-height: none;
    overflow-x: auto;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: auto;
    z-index: 5000;
  }

  body.mobile-layout .side-nav.open {
    display: flex;
  }

  body.mobile-layout .page-tab,
  body.mobile-layout .nav-group-toggle {
    align-items: center;
    border-radius: 12px;
    flex: 0 0 72px;
    flex-direction: column;
    font-size: 10px;
    gap: 4px;
    justify-content: center;
    min-height: 58px;
    padding: 6px 4px;
    text-align: center;
  }

  body.mobile-layout .page-tab-icon {
    flex-basis: 20px;
    height: 20px;
    width: 20px;
  }

  body.mobile-layout .page-tab-icon svg {
    height: 18px;
    width: 18px;
  }

  body.mobile-layout .page-tab-label {
    line-height: 1.05;
    white-space: normal;
  }

  body.mobile-layout .nav-group {
    display: flex;
    flex: 0 0 72px;
    position: relative;
  }

  body.mobile-layout .nav-group-caret {
    display: none;
  }

  body.mobile-layout .nav-submenu {
    background: rgba(0, 13, 25, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    bottom: calc(100% + 8px);
    box-shadow: 0 -12px 28px rgba(0, 13, 25, 0.22);
    display: none;
    gap: 6px;
    left: 0;
    padding: 8px;
    position: absolute;
    width: 130px;
  }

  body.mobile-layout .nav-group.open .nav-submenu {
    display: grid;
  }

  body.mobile-layout .nav-subitem {
    flex: 0 0 auto;
    min-height: 42px;
    width: 100%;
  }

  body.mobile-layout .page-head {
    gap: 12px;
    margin-bottom: 12px;
  }

  body.mobile-layout .head-actions,
  body.mobile-layout .inline-actions,
  body.mobile-layout .settings-actions,
  body.mobile-layout .venue-upload-actions,
  body.mobile-layout .project-access-actions,
  body.mobile-layout .venue-document-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.mobile-layout .inline-actions > *,
  body.mobile-layout .head-actions > *,
  body.mobile-layout .settings-actions > *,
  body.mobile-layout .venue-upload-actions > *,
  body.mobile-layout .project-access-actions > * {
    width: 100%;
  }

  body.mobile-layout .two-col,
  body.mobile-layout .overview-strip,
  body.mobile-layout .form-grid,
  body.mobile-layout .settings-grid,
  body.mobile-layout .checkbox-grid,
  body.mobile-layout .crew-member-fields,
  body.mobile-layout .room-fields,
  body.mobile-layout .package-fields,
  body.mobile-layout .gear-row,
  body.mobile-layout .crew-assignment-row,
  body.mobile-layout .session-block-row,
  body.mobile-layout .project-access-add,
  body.mobile-layout .project-access-row,
  body.mobile-layout .venue-document-row,
  body.mobile-layout .project-backup-row,
  body.mobile-layout .admin-grant-row,
  body.mobile-layout .admin-row-card {
    grid-template-columns: 1fr;
  }

  body.mobile-layout .crew-assignment-head {
    display: none;
  }

  body.mobile-layout .list-panel {
    max-height: none;
    overflow: visible;
    padding: 12px;
    position: static;
  }

  body.mobile-layout .session-list {
    display: flex;
    gap: 10px;
    margin: 0 -12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 12px 4px;
    scroll-snap-type: x proximity;
  }

  body.mobile-layout .session-card {
    flex: 0 0 min(82vw, 320px);
    scroll-snap-align: start;
  }

  body.mobile-layout .panel-title {
    align-items: stretch;
    flex-direction: column;
  }

  body.mobile-layout .room-service-grid,
  body.mobile-layout .crew-collapse .summary-actions,
  body.mobile-layout .crew-member-summary-actions,
  body.mobile-layout .crew-member-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  body.mobile-layout .room-service-grid > *,
  body.mobile-layout .crew-member-actions > *,
  body.mobile-layout .crew-member-summary-actions > * {
    width: 100%;
  }

  body.mobile-layout .icon-btn {
    min-width: 44px;
  }

  body.mobile-layout input,
  body.mobile-layout select,
  body.mobile-layout textarea,
  body.mobile-layout button {
    font-size: 16px;
    min-height: 44px;
  }

  body.mobile-layout label {
    font-size: 11px;
  }

  body.mobile-layout .session-diagram-link {
    width: 100%;
  }

  body.mobile-layout .session-diagram-card-meta {
    grid-template-columns: 1fr;
  }

  body.mobile-layout .timecard-table-wrap,
  body.mobile-layout .print-preview,
  body.mobile-layout .flow-board {
    margin-left: -14px;
    margin-right: -14px;
    width: calc(100% + 28px);
  }
}

@media (min-width: 761px) and (max-width: 940px) {
  #schedulePage .two-col {
    align-items: stretch;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  #schedulePage .list-panel {
    align-self: stretch;
    overflow: hidden;
  }
}

@media (max-width: 760px) {
  #schedulePage .list-panel {
    min-height: 70vh;
  }
}
