:root {
  color-scheme: light;
  --ink-navy: #071625;
  --deep-slate: #24313a;
  --refined-cyan: #009fc2;
  --cue-orange: #ff9f1c;
  --section-marker-orange: #fd6f05;
  --warm-paper: #f7f3ea;
  --soft-line: #d8d2c8;
  --blueprint: #2563eb;
  --organizer: #219653;
  --designer: #5a3fcf;
  --vendor-hub: #ff9f1c;
  --twu-blue: var(--ink-navy);
  --twu-gold: var(--cue-orange);
  --twu-electric: var(--blueprint);
  --twu-accessible: var(--blueprint);
  --twu-elegant: var(--deep-slate);
  --twu-academic: var(--soft-line);
  --twu-social: var(--warm-paper);
  --bg: var(--warm-paper);
  --ink: var(--ink-navy);
  --muted: #64717a;
  --line: var(--soft-line);
  --panel: #ffffff;
  --panel-soft: #fbfaf7;
  --accent: var(--refined-cyan);
  --accent-dark: #006f8a;
  --gold: var(--cue-orange);
  --rose: #c2414b;
  --blue: var(--blueprint);
  --green: var(--organizer);
  --radius: 8px;
  --shadow: 0 14px 34px rgba(7, 22, 37, 0.08);
  --shadow-soft: 0 4px 14px rgba(7, 22, 37, 0.055);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #fbfaf7 0%, var(--warm-paper) 100%);
  color: var(--ink);
  font-family: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.35;
}

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

button {
  cursor: pointer;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 7px clamp(16px, 2.2vw, 28px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-navy);
  box-shadow: 0 1px 0 rgba(7, 22, 37, 0.04), 0 7px 18px rgba(7, 22, 37, 0.045);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(205px, 20vw, 250px);
  max-width: 100%;
  height: auto;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--twu-gold);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 3px;
  font-size: clamp(1.08rem, 1.8vw, 1.38rem);
  letter-spacing: 0;
  line-height: 1.05;
}

.brand-lockup p,
.header-positioning {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.brand-tek {
  color: var(--refined-cyan);
}

.header-positioning {
  flex: 1 1 auto;
  text-align: center;
  color: var(--deep-slate);
  font-size: 0.84rem;
}

h2 {
  margin-bottom: 14px;
  font-size: 1rem;
}

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

.header-actions,
.table-toolbar,
.legend,
.row-actions {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.mobile-menu-button,
.mobile-drawer-heading,
.mobile-sidebar-backdrop,
.mobile-role-view-control,
.mobile-cue-view-switch,
.mobile-cue-cards {
  display: none;
}

.header-sign-in {
  min-height: 36px;
  border: 1px solid #007f9c;
  border-radius: var(--radius);
  background: var(--refined-cyan);
  color: #fff;
  padding: 0 16px;
  font-weight: 800;
}

.header-sign-in:hover {
  border-color: #006f8a;
  background: #008dab;
}

body:not([data-role="offline"]) .header-sign-in {
  display: none;
}

body[data-role="offline"] .mobile-menu-button {
  display: none;
}

body[data-role="offline"] .header-actions .role-badge,
body[data-role="offline"] .header-log-out {
  display: none;
}

.header-log-out {
  min-height: 30px;
  padding: 0 5px;
}

.save-status {
  display: inline-flex;
  min-height: 26px;
  min-width: 8.75rem;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.save-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(100, 113, 122, 0.55);
  content: "";
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: 999px;
  background: rgba(247, 243, 234, 0.86);
  color: var(--deep-slate);
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.role-badge[data-role="admin"],
.role-badge[data-role="editor"] {
  border-color: rgba(33, 150, 83, 0.28);
  background: rgba(33, 150, 83, 0.1);
  color: #145a35;
}

.save-status[data-tone="good"]::before {
  background: var(--organizer);
}

.save-status[data-tone="bad"] {
  color: var(--rose);
}

.save-status[data-tone="bad"]::before {
  background: var(--cue-orange);
}

body[data-role="offline"] .save-status:not([data-tone="bad"]) {
  display: none;
}

body[data-role="offline"] .save-status {
  display: none;
}

body[data-role="viewer"] .save-status {
  display: none;
}

.role-badge[data-role="viewer"] {
  border-color: rgba(0, 159, 194, 0.28);
  background: rgba(0, 159, 194, 0.1);
  color: var(--blue);
}

.primary-button,
.secondary-button,
.icon-button,
.row-actions button,
.text-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 760;
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.primary-button {
  padding: 0 16px;
  border-color: #e88c00;
  background: var(--cue-orange);
  box-shadow: 0 5px 12px rgba(255, 159, 28, 0.18);
  color: #fff;
}

.primary-button:hover {
  border-color: #c97800;
  background: #e88c00;
}

.secondary-button,
.icon-button {
  width: 100%;
  padding: 0 13px;
}

.icon-button {
  width: auto;
}

.secondary-button:hover,
.icon-button:hover,
.row-actions button:hover,
.text-button:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 159, 194, 0.1);
}

.icon-button {
  color: var(--ink-navy);
}

#saveNowBtn {
  min-height: 30px;
  border-color: rgba(255, 159, 28, 0.42);
  background: rgba(255, 159, 28, 0.1);
  color: #8a4d00;
  font-size: 0.74rem;
}

#saveNowBtn:hover {
  border-color: var(--cue-orange);
  background: rgba(255, 159, 28, 0.16);
}

#addRowBtn {
  border-color: rgba(0, 159, 194, 0.38);
  background: rgba(0, 159, 194, 0.09);
  color: var(--ink-navy);
}

#addRowBtn:hover {
  background: rgba(0, 159, 194, 0.15);
}

.template-primary-button {
  border-color: #007f9c;
  background: var(--refined-cyan);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 159, 194, 0.13);
}

.template-primary-button:hover {
  border-color: #006f8a;
  background: #008dab;
  color: #fff;
}

.template-secondary-button {
  border-color: rgba(216, 210, 200, 0.82);
  background: #fbfaf7;
  color: var(--deep-slate);
}

.template-load-message {
  min-height: 1.1em;
  margin: 0;
  color: #13724d;
  font-size: 0.74rem;
  font-weight: 720;
}

.export-action-button {
  border-color: #007f9c;
  background: var(--refined-cyan);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 159, 194, 0.16);
}

.export-action-button:hover {
  border-color: #006f8a;
  background: #008dab;
  color: #fff;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.text-button {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 4px;
}

.metadata-readout {
  display: grid;
  gap: 4px;
  padding-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
}

.metadata-readout span {
  font-weight: 800;
  text-transform: uppercase;
}

.metadata-readout strong {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
}

.print-meta {
  display: none;
}

.danger-button:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.access-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.access-panel input {
  letter-spacing: 0.05em;
}

.signed-out-gate {
  display: grid;
  min-height: calc(100vh - 62px);
  place-items: center;
  padding: 42px 20px;
  background:
    linear-gradient(rgba(0, 159, 194, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 159, 194, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfaf7, var(--warm-paper));
  background-size: 32px 32px, 32px 32px, auto;
}

.signed-out-card {
  width: min(100%, 510px);
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(7, 22, 37, 0.1);
  padding: clamp(28px, 5vw, 42px);
}

.signed-out-eyebrow {
  margin-bottom: 9px;
  color: var(--refined-cyan);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.signed-out-card h1,
.login-dialog h1,
.getting-started-dialog h1 {
  margin-bottom: 12px;
  color: var(--ink-navy);
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.12;
}

.signed-out-card > p:not(.signed-out-eyebrow),
.login-dialog > p:not(.signed-out-eyebrow) {
  margin-bottom: 9px;
  color: var(--deep-slate);
}

.signed-out-support {
  color: var(--muted) !important;
  font-size: 0.88rem;
}

.signed-out-action {
  min-width: 128px;
  margin-top: 14px;
  border-color: #007f9c;
  background: var(--refined-cyan);
  box-shadow: 0 5px 14px rgba(0, 159, 194, 0.17);
}

.signed-out-action:hover {
  border-color: #006f8a;
  background: #008dab;
}

.signed-out-storage-warning {
  margin-top: 22px;
}

.login-dialog-backdrop {
  position: fixed;
  z-index: 1000;
  display: grid;
  inset: 0;
  place-items: center;
  overflow-y: auto;
  background: rgba(7, 22, 37, 0.52);
  padding: 22px;
}

.login-dialog {
  position: relative;
  width: min(100%, 420px);
  border: 1px solid rgba(216, 210, 200, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(7, 22, 37, 0.22);
  padding: 30px;
}

.login-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.login-dialog-close:hover {
  color: var(--ink-navy);
}

.login-form {
  margin-top: 20px;
}

.login-form .primary-button {
  width: 100%;
  margin-top: 4px;
  border-color: #007f9c;
  background: var(--refined-cyan);
}

.login-form .primary-button:hover {
  border-color: #006f8a;
  background: #008dab;
}

.getting-started-backdrop {
  position: fixed;
  z-index: 1100;
  display: grid;
  inset: 0;
  place-items: center;
  overflow-y: auto;
  background: rgba(7, 22, 37, 0.58);
  padding: 22px;
}

body.getting-started-open {
  overflow: hidden;
}

.getting-started-dialog {
  position: relative;
  display: flex;
  width: min(100%, 590px);
  min-height: 430px;
  max-height: calc(100dvh - 44px);
  flex-direction: column;
  overflow-y: auto;
  border: 1px solid rgba(216, 210, 200, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(7, 22, 37, 0.28);
  padding: clamp(26px, 5vw, 42px);
}

.getting-started-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 30px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 4px 7px;
  font-size: 0.72rem;
  font-weight: 750;
}

.getting-started-close:hover {
  color: var(--ink-navy);
}

.getting-started-progress {
  height: 4px;
  margin: 3px 48px 9px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(216, 210, 200, 0.7);
}

.getting-started-progress span {
  display: block;
  width: 12.5%;
  height: 100%;
  border-radius: inherit;
  background: var(--refined-cyan);
  transition: width 180ms ease;
}

.getting-started-count {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.getting-started-dialog h1 {
  max-width: 500px;
  margin-top: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.15;
}

.getting-started-body {
  margin: 0;
  color: var(--deep-slate);
  font-size: 1rem;
  line-height: 1.55;
}

.getting-started-action-cue {
  margin-top: 22px;
  border-left: 4px solid var(--refined-cyan);
  border-radius: 0 7px 7px 0;
  background: rgba(0, 159, 194, 0.055);
  padding: 12px 14px;
}

.getting-started-action-cue span {
  display: block;
  margin-bottom: 4px;
  color: var(--refined-cyan);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.getting-started-action-cue p {
  margin: 0;
  color: var(--ink-navy);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.4;
}

.getting-started-access-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.getting-started-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 28px;
}

.getting-started-actions button {
  min-width: 112px;
}

.getting-started-actions .primary-button {
  border-color: #007f9c;
  background: var(--refined-cyan);
  color: #fff;
}

.spreadsheet-import-backdrop {
  position: fixed;
  z-index: 1200;
  display: grid;
  inset: 0;
  place-items: center;
  overflow-y: auto;
  background: rgba(7, 22, 37, 0.62);
  padding: 22px;
}

body.spreadsheet-import-open {
  overflow: hidden;
}

.spreadsheet-import-dialog {
  position: relative;
  width: min(100%, 1120px);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  border: 1px solid rgba(216, 210, 200, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(7, 22, 37, 0.3);
  padding: clamp(24px, 4vw, 38px);
}

.spreadsheet-import-dialog h1 {
  margin: 0 42px 8px 0;
  color: var(--ink-navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.spreadsheet-import-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.3rem;
}

.spreadsheet-import-intro {
  margin: 0 0 20px;
  color: var(--deep-slate);
}

.spreadsheet-drop-zone {
  display: grid;
  min-height: 132px;
  place-content: center;
  gap: 6px;
  border: 2px dashed rgba(0, 123, 151, 0.45);
  border-radius: 8px;
  background: rgba(0, 159, 194, 0.045);
  color: var(--ink-navy);
  text-align: center;
  cursor: pointer;
}

.spreadsheet-drop-zone:hover,
.spreadsheet-drop-zone:focus,
.spreadsheet-drop-zone.is-dragging {
  border-color: var(--refined-cyan);
  outline: none;
  background: rgba(0, 159, 194, 0.1);
}

.spreadsheet-drop-zone span,
.spreadsheet-import-message {
  color: var(--muted);
  font-size: 0.82rem;
}

.spreadsheet-import-message {
  min-height: 1.3em;
  margin: 10px 0;
}

.spreadsheet-import-message[data-tone="bad"] { color: var(--rose); }
.spreadsheet-import-message[data-tone="good"] { color: #256746; }

.spreadsheet-import-fields {
  display: grid;
  grid-template-columns: minmax(240px, 2fr) repeat(3, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.spreadsheet-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.spreadsheet-import-summary div {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--warm-paper);
  padding: 10px 12px;
}

.spreadsheet-import-summary dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.spreadsheet-import-summary dd {
  margin: 3px 0 0;
  color: var(--ink-navy);
  font-weight: 760;
}

.spreadsheet-import-warnings {
  margin-bottom: 14px;
  border-left: 4px solid #d28a22;
  background: #fff7e8;
  padding: 10px 12px;
}

.spreadsheet-import-warnings p { margin: 3px 0; font-size: 0.78rem; }

.spreadsheet-preview-table-wrap {
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.spreadsheet-preview-table {
  width: max(100%, 1050px);
  border-collapse: collapse;
  font-size: 0.74rem;
}

.spreadsheet-preview-table th,
.spreadsheet-preview-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 9px;
  text-align: left;
  vertical-align: top;
}

.spreadsheet-preview-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  background: var(--ink-navy);
  color: #fff;
}

.spreadsheet-import-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.sidebar-import-event { width: 100%; }

@media (max-width: 760px) {
  .spreadsheet-import-backdrop { padding: 10px; }
  .spreadsheet-import-dialog { max-height: calc(100dvh - 20px); padding: 22px 16px; }
  .spreadsheet-import-fields,
  .spreadsheet-import-summary { grid-template-columns: 1fr; }
  .spreadsheet-import-actions { flex-direction: column-reverse; }
  .spreadsheet-import-actions button { width: 100%; }
}

.publication-preview-backdrop {
  position: fixed;
  z-index: 1250;
  display: grid;
  inset: 0;
  place-items: center;
  overflow-y: auto;
  background: rgba(7, 22, 37, 0.66);
  padding: 22px;
}

body.publication-preview-open {
  overflow: hidden;
}

.publication-preview-dialog {
  position: relative;
  width: min(100%, 1040px);
  max-height: calc(100dvh - 44px);
  overflow-y: auto;
  border: 1px solid rgba(216, 210, 200, 0.94);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(7, 22, 37, 0.32);
  padding: clamp(24px, 4vw, 38px);
}

.publication-preview-dialog > h1 {
  margin: 0 44px 7px 0;
  color: var(--ink-navy);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.publication-preview-dialog > p {
  color: var(--deep-slate);
}

.publication-preview-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
}

.publication-preview-close:focus-visible,
.publication-preview-actions button:focus-visible {
  outline: 3px solid var(--section-marker-orange);
  outline-offset: 2px;
}

.publication-field-contract {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.publication-field-contract section {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--warm-paper);
  padding: 13px 15px;
}

.publication-field-contract h2 {
  margin: 0 0 7px;
  color: var(--ink-navy);
  font-size: 0.78rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.publication-field-contract ul {
  margin: 0;
  padding-left: 19px;
  color: var(--deep-slate);
  font-size: 0.78rem;
  line-height: 1.55;
}

.publication-preview-revision,
.publication-preview-message {
  min-height: 1.3em;
  color: var(--muted);
  font-size: 0.78rem;
}

.publication-preview-content {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publication-preview-content > h2 {
  margin: 0;
  padding: 20px;
  color: var(--ink-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 4vw, 2.4rem);
}

.publication-preview-day > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  background: var(--ink-navy);
  color: #fff;
}

.publication-preview-day h3,
.publication-preview-day header p {
  margin: 0;
}

.publication-preview-day h3 {
  font-size: 0.95rem;
}

.publication-preview-day header p {
  color: #dce8f0;
  font-size: 0.72rem;
  text-align: right;
}

.publication-preview-rows {
  display: grid;
}

.publication-preview-cue {
  display: grid;
  grid-template-columns: minmax(175px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 10px 13px;
  font-size: 0.78rem;
}

.publication-preview-presenter {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.publication-preview-timing {
  color: var(--ink-navy);
  font-weight: 760;
}

.publication-preview-section {
  border-bottom: 1px solid rgba(7, 22, 37, 0.38);
  background: var(--section-marker-orange);
  color: var(--ink-navy);
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 850;
}

.publication-preview-empty {
  margin: 0;
  padding: 12px 13px;
  color: var(--muted);
  font-size: 0.78rem;
}

.publication-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@media (max-width: 760px) {
  .publication-preview-backdrop { padding: 10px; }
  .publication-preview-dialog { max-height: calc(100dvh - 20px); padding: 22px 16px; }
  .publication-field-contract { grid-template-columns: 1fr; }
  .publication-preview-day > header { display: block; }
  .publication-preview-day header p { margin-top: 3px; text-align: left; }
  .publication-preview-cue { grid-template-columns: 1fr; gap: 3px; }
  .publication-preview-presenter { grid-column: 1; }
  .publication-preview-actions { flex-direction: column-reverse; }
  .publication-preview-actions button { width: 100%; }
}

.login-message {
  min-height: 1.2em;
  margin: 10px 0 0;
  color: var(--rose);
  font-size: 0.78rem;
}

.storage-warning {
  border-color: rgba(255, 159, 28, 0.45);
  background: #fff6e4;
}

.storage-warning h2 {
  margin-bottom: 8px;
  color: var(--ink-navy);
}

.storage-warning p {
  margin-bottom: 0;
  color: var(--deep-slate);
  font-size: 0.86rem;
  line-height: 1.3;
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.sidebar-collapsed .control-panel {
  display: none;
}

.control-panel {
  display: flex;
  position: sticky;
  top: 0;
  min-height: calc(100vh - 56px);
  max-height: 100vh;
  flex-direction: column;
  gap: 0;
  align-self: start;
  overflow-y: auto;
  border-right: 1px solid rgba(216, 210, 200, 0.92);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 12px 24px;
  scrollbar-color: rgba(100, 113, 122, 0.28) transparent;
  scrollbar-width: thin;
}

.sidebar-collapse-button,
.sidebar-show-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 4px 7px;
  font-size: 0.7rem;
  font-weight: 760;
}

.sidebar-collapse-button {
  align-self: flex-end;
  margin: -5px 0 8px;
}

.sidebar-show-button {
  display: none;
  width: max-content;
  margin: -5px 0 10px;
}

.app-shell.sidebar-collapsed .sidebar-show-button {
  display: inline-flex;
}

.sidebar-collapse-button span,
.sidebar-show-button span {
  color: var(--refined-cyan);
  font-size: 1rem;
  line-height: 0.8;
}

.sidebar-collapse-button:hover,
.sidebar-show-button:hover {
  border-color: rgba(0, 159, 194, 0.22);
  background: rgba(0, 159, 194, 0.055);
  color: var(--ink-navy);
}

.sidebar-collapse-button:focus-visible,
.sidebar-show-button:focus-visible {
  outline: 3px solid rgba(0, 159, 194, 0.18);
  outline-offset: 2px;
}

.panel-section {
  padding: 16px;
  border: 1px solid rgba(216, 210, 200, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.sidebar-primary {
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(216, 210, 200, 0.76);
}

.sidebar-cue-actions {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.sidebar-context-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 6px;
}

.sidebar-add-cue {
  border-color: rgba(0, 159, 194, 0.34);
  background: rgba(0, 159, 194, 0.075);
  color: var(--ink-navy);
}

.sidebar-context-actions .secondary-button {
  min-height: 31px;
  padding: 4px 7px;
  color: var(--deep-slate);
  font-size: 0.69rem;
  line-height: 1.15;
}

.sidebar-context-actions .secondary-button:disabled {
  border-color: rgba(216, 210, 200, 0.62);
  background: rgba(247, 243, 234, 0.48);
  color: rgba(100, 113, 122, 0.58);
}

.sidebar-primary label {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.sidebar-new-event {
  width: 100%;
  min-height: 42px;
  border-color: #007f9c;
  background: var(--refined-cyan);
  box-shadow: 0 5px 12px rgba(0, 159, 194, 0.16);
}

.sidebar-new-event:hover {
  border-color: #006f8a;
  background: #008dab;
}

.sidebar-navigation {
  display: grid;
  gap: 4px;
  padding: 12px 0;
}

.sidebar-workspace-link {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  background: rgba(0, 159, 194, 0.085);
  color: var(--ink-navy);
  padding: 9px 13px;
  font-size: 0.82rem;
  font-weight: 820;
  text-decoration: none;
}

.sidebar-workspace-link::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--refined-cyan);
  content: "";
}

.sidebar-workspace-link:hover {
  background: rgba(0, 159, 194, 0.13);
}

.sidebar-workspace-link:focus-visible {
  outline: 3px solid rgba(0, 159, 194, 0.18);
  outline-offset: 2px;
}

.sidebar-workspace-link-icon {
  color: var(--refined-cyan);
  font-size: 1.05rem;
  line-height: 1;
}

.sidebar-disclosure {
  border: 0;
  border-radius: 7px;
  background: transparent;
}

.sidebar-nav-row {
  position: relative;
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  border-radius: 7px;
  color: var(--deep-slate);
  cursor: pointer;
  list-style: none;
  padding: 9px 30px 9px 13px;
  font-size: 0.82rem;
  font-weight: 780;
}

.sidebar-nav-row::-webkit-details-marker {
  display: none;
}

.sidebar-nav-row::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.sidebar-nav-row::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.16s ease;
}

.sidebar-disclosure[open] > .sidebar-nav-row {
  background: rgba(0, 159, 194, 0.085);
  color: var(--ink-navy);
}

.sidebar-disclosure[open] > .sidebar-nav-row::before {
  background: var(--refined-cyan);
}

.sidebar-disclosure[open] > .sidebar-nav-row::after {
  transform: translateY(-20%) rotate(225deg);
}

.sidebar-nav-row:hover {
  background: rgba(7, 22, 37, 0.035);
}

.sidebar-nav-row:focus-visible {
  outline: 3px solid rgba(0, 159, 194, 0.18);
  outline-offset: 2px;
}

.sidebar-panel-body {
  margin: 2px 4px 7px 12px;
  border-left: 1px solid rgba(0, 159, 194, 0.18);
  background: rgba(247, 250, 250, 0.7);
  padding: 12px 12px 13px;
}

.sidebar-disclosure:not([open]) > .sidebar-panel-body,
.list-card:not([open]) > .list-card-body,
.about-builder-card:not([open]) > div,
.help-faq-card:not([open]) > div {
  display: none;
}

.sidebar-panel-label,
.sidebar-utility-heading {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-panel-body > .secondary-button + .secondary-button {
  margin-top: 7px;
}

.sidebar-panel-body .panel-subsection {
  margin-top: 13px;
}

.quiet-danger-button {
  margin-top: 14px;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
}

.sidebar-spacer {
  min-height: 18px;
  flex: 1 1 auto;
}

.sidebar-utilities {
  display: grid;
  gap: 10px;
  padding: 10px 2px 0;
}

.about-builder-card,
.help-faq-card {
  border: 0;
  background: transparent;
}

.about-builder-card > summary,
.help-faq-card > summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  list-style: none;
  padding: 5px 2px;
}

.about-builder-card > summary::-webkit-details-marker,
.help-faq-card > summary::-webkit-details-marker {
  display: none;
}

.about-builder-card > div,
.help-faq-card > div {
  padding: 8px 2px 2px;
}

.help-faq-card h3 {
  margin: 10px 0 3px;
  color: var(--deep-slate);
  font-size: 0.72rem;
  line-height: 1.3;
}

.help-faq-card h3:first-child {
  margin-top: 0;
}

.help-faq-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.help-faq-card p:last-child {
  margin-bottom: 0;
}

.getting-started-link {
  width: 100%;
  min-height: 32px;
  justify-content: flex-start;
  margin-bottom: 9px;
  border: 1px solid rgba(0, 159, 194, 0.2);
  border-radius: 6px;
  background: rgba(0, 159, 194, 0.045);
  color: var(--ink-navy);
  padding: 5px 8px;
  text-align: left;
  font-weight: 780;
}

.storage-warning {
  border: 1px solid rgba(255, 159, 28, 0.34);
  border-radius: 7px;
  background: rgba(255, 246, 228, 0.52);
  padding: 9px 10px;
}

.storage-warning .sidebar-utility-heading {
  margin-bottom: 4px;
  color: #8a5a18;
}

.storage-warning p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.workspace {
  padding: 18px clamp(14px, 2.2vw, 30px) 30px;
}

.event-empty-state {
  max-width: 620px;
  margin: clamp(44px, 10vh, 110px) auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.event-empty-state h1 {
  margin: 7px 0 10px;
  color: var(--ink-navy);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}

.event-empty-state > p:not(.signed-out-eyebrow) {
  max-width: 480px;
  margin: 0 auto 22px;
  color: var(--muted);
}

.workspace.no-events .table-toolbar,
.workspace.no-events .summary-strip,
.workspace.no-events .workspace-exports,
.workspace.no-events .day-tabs,
.workspace.no-events .mobile-cue-view-switch,
.workspace.no-events .mobile-cue-cards,
.workspace.no-events .table-scroll-hint,
.workspace.no-events .table-wrap,
.workspace.no-events .print-footer {
  display: none;
}

.event-panel {
  border-top: 0;
}

.panel-section h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  color: var(--ink-navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0;
}

.panel-section > h2::before,
.section-title-row h2::before,
.section-title-row .panel-heading::before {
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: var(--refined-cyan);
  content: "";
}

.panel-subsection {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.panel-subsection h3 {
  margin: 0 0 10px;
  color: var(--deep-slate);
  font-size: 0.7rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.days-manager {
  display: grid;
  gap: 10px;
}

.days-manager-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.days-manager-heading h3 {
  margin: 0;
}

.days-manager-list {
  display: grid;
  gap: 9px;
}

.day-manager-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(118px, 0.8fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(216, 210, 200, 0.78);
  border-radius: 6px;
  background: rgba(247, 243, 234, 0.58);
}

.day-manager-item label {
  margin: 0;
}

.day-manager-location,
.day-manager-notes,
.day-manager-actions {
  grid-column: 1 / -1;
}

.day-manager-item input,
.day-manager-item textarea {
  min-width: 0;
}

.day-manager-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.day-manager-actions .text-button {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.72rem;
}

.panel-section .secondary-button + .secondary-button {
  margin-top: 8px;
}

.panel-section .secondary-button + .field-helper {
  display: block;
  margin-top: 10px;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-title-row h2 {
  margin-bottom: 0;
}

.panel-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.list-card-header {
  position: relative;
  cursor: pointer;
  list-style: none;
}

.list-card-header::-webkit-details-marker {
  display: none;
}

.list-card-header::after {
  position: absolute;
  top: 50%;
  right: 2px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.16s ease;
}

details[open] > .list-card-header::after {
  transform: translateY(-20%) rotate(225deg);
}

.list-card-header:focus-visible {
  border-radius: 5px;
  outline: 3px solid rgba(0, 159, 194, 0.18);
  outline-offset: 3px;
}

.preview-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  border: 1px solid rgba(0, 159, 194, 0.34);
  border-radius: 999px;
  background: rgba(0, 159, 194, 0.1);
  color: var(--ink-navy);
  padding: 0 7px;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.build-assist-card:not(.sidebar-disclosure) {
  border-top: 3px solid rgba(0, 159, 194, 0.62);
  background: linear-gradient(180deg, rgba(0, 159, 194, 0.045), #fff 42%);
  border-color: rgba(0, 159, 194, 0.28);
  box-shadow: none;
}

.collapsible-summary-copy {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.collapsible-panel-body {
  margin-top: 12px;
  border-top: 1px solid rgba(0, 159, 194, 0.16);
  padding-top: 12px;
}

.build-assist-card p,
.about-builder-card p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.42;
}

.build-assist-card p:last-child,
.about-builder-card p:last-child {
  margin-bottom: 0;
}

.build-assist-input {
  min-height: 66px;
  margin-top: 2px;
  resize: none;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  border-style: dashed;
  cursor: pointer;
}

.build-assist-input::placeholder {
  color: rgba(36, 49, 58, 0.58);
}

.panel-section.about-builder-card {
  border-color: rgba(7, 22, 37, 0.1);
  background: #fbfaf7;
  box-shadow: none;
}

.about-builder-card p:last-child {
  color: var(--ink-navy);
  font-weight: 800;
}

.assist-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.assist-chip {
  min-height: 26px;
  border: 1px solid rgba(0, 159, 194, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink-navy);
  padding: 0 9px;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.15;
  white-space: normal;
}

.assist-preview-note {
  margin: 8px 0 0;
  font-size: 0.69rem;
  font-weight: 700;
}

.assist-chip:hover {
  border-color: rgba(0, 159, 194, 0.54);
  background: rgba(0, 159, 194, 0.08);
}

.assist-message {
  margin-top: 10px;
  border-left: 3px solid var(--cue-orange);
  background: rgba(255, 246, 228, 0.82);
  padding: 9px 10px;
  color: var(--ink);
}

.list-manager {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.list-card {
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: var(--radius);
  background: #fdfcf9;
  overflow: hidden;
}

.list-card + .list-card {
  margin-top: 12px;
}

.list-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f5ef;
  padding: 10px 34px 10px 12px;
}

.list-card:not([open]) > .list-card-header {
  border-bottom-color: transparent;
}

.list-card-title {
  color: var(--ink-navy);
  font-size: 0.8rem;
  font-weight: 800;
}

.list-card-body {
  padding: 11px 12px 12px;
}

.list-card-description {
  margin: 0 0 10px;
}

.list-count {
  flex: 0 0 auto;
  color: var(--muted);
  border: 1px solid rgba(216, 210, 200, 0.9);
  border-radius: 999px;
  background: #fff;
  padding: 3px 7px;
  font-size: 0.64rem;
  font-weight: 750;
  text-transform: none;
  white-space: nowrap;
  margin-top: 2px;
}

.managed-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 220px;
  margin-bottom: 10px;
  padding: 1px;
  overflow-y: auto;
  scrollbar-color: rgba(100, 113, 122, 0.34) transparent;
}

.managed-option {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--deep-slate);
  padding: 2px 4px 2px 8px;
  font-size: 0.69rem;
  font-weight: 650;
}

.managed-option.is-custom {
  border-color: rgba(0, 159, 194, 0.3);
  background: #f3fbfd;
}

.managed-option.is-hidden-default {
  border-style: dashed;
  background: #f7f4ee;
  color: var(--muted);
}

.managed-option-note {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.managed-option-label {
  padding-right: 3px;
}

.managed-option-button {
  min-height: 20px;
  border: 0;
  border-left: 1px solid rgba(216, 210, 200, 0.8);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  padding: 0 5px;
  font-size: 0.61rem;
  font-weight: 800;
}

.managed-option-button:hover {
  border-left-color: var(--refined-cyan);
  background: rgba(0, 159, 194, 0.07);
  color: var(--ink-navy);
}

.managed-option-button.danger-button:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.list-edit-helper {
  margin-bottom: 12px;
}

.hidden-options-wrap {
  margin: 0 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}

.hidden-options-wrap h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hidden-options-wrap .managed-list {
  margin-bottom: 0;
}

.sharing-owner-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0 0 12px;
  font-size: 0.72rem;
}

.sharing-owner-row dt {
  color: var(--muted);
  font-weight: 750;
}

.sharing-owner-row dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.sharing-list {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.sharing-assignment {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  padding: 7px 8px;
}

.sharing-assignment strong,
.sharing-assignment small {
  display: block;
  overflow-wrap: anywhere;
}

.sharing-assignment small {
  color: var(--muted);
  font-size: 0.65rem;
}

.sharing-assignment button {
  min-height: 28px;
  padding: 4px 7px;
  font-size: 0.66rem;
}

.sharing-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.field-helper[data-tone="warning"] {
  color: #9a5a00;
}

.field-helper[data-tone="good"] {
  color: var(--green);
}

label {
  display: grid;
  gap: 6px;
  margin-bottom: 11px;
  color: var(--deep-slate);
  font-size: 0.76rem;
  font-weight: 730;
}

label:last-child {
  margin-bottom: 0;
}

.field-helper {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 580;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(194, 190, 183, 0.92);
  border-radius: 7px;
  background: #fff;
  color: var(--deep-slate);
  padding: 7px 9px;
  line-height: 1.2;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

textarea {
  min-width: 0;
  min-height: 44px;
  line-height: 1.25;
  overflow: auto;
  resize: none;
  text-overflow: clip;
}

td textarea {
  display: block;
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--refined-cyan);
  box-shadow: 0 0 0 3px rgba(0, 159, 194, 0.12);
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-bottom: 4px;
  font-size: 0.76rem;
}

.toggle-row input {
  width: 18px;
  min-height: 18px;
}

.workspace {
  min-width: 0;
}

.print-footer {
  display: none;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(88px, 1fr));
  gap: 1px;
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 6px 18px rgba(7, 22, 37, 0.055);
}

.summary-strip div {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.95);
}

.summary-strip span {
  display: block;
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--ink-navy);
  font-size: 0.9rem;
  line-height: 1.2;
}

.table-toolbar {
  justify-content: space-between;
  gap: 18px;
  padding: 2px 4px 10px;
}

.table-toolbar h2 {
  margin: 0 0 3px;
  font-size: 1.32rem;
  font-weight: 820;
  line-height: 1.15;
  color: var(--ink-navy);
}

.table-toolbar p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.table-toolbar-tools {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}


/* Screen-only personal column preferences: never alter print, PDF, or exports. */
.column-visibility-control { position: relative; flex: none; }
.column-visibility-control > button { min-height: 36px; font-size: 0.76rem; }
.columns-menu[hidden] { display: none !important; }
.columns-menu {
 position: absolute; right: 0; top: calc(100% + 5px); z-index: 30;
 width: min(270px, 85vw); max-height: min(75vh, 510px); overflow-y: auto;
 padding: 12px; border: 1px solid var(--line); border-radius: 8px;
 background: #fff; box-shadow: 0 10px 28px rgba(7,22,37,.16);
}
.columns-list { display: grid; gap: 2px; margin-bottom: 10px; }
.column-menu-option { display: flex; align-items: center; gap: 8px; min-height: 30px; margin: 0; font-size: .75rem; cursor: pointer; }
.column-menu-option input {
 width: 18px; min-height: 18px; padding: 0; flex: 0 0 18px;
}
@media screen {
 body.column-hidden-day #rosTable .col-day { display: none !important; }
 body.column-hidden-start #rosTable .col-start { display: none !important; }
 body.column-hidden-duration #rosTable .col-duration { display: none !important; }
 body.column-hidden-segment #rosTable .col-segment { display: none !important; }
 body.column-hidden-cue #rosTable .col-cue { display: none !important; }
 body.column-hidden-department #rosTable .col-department { display: none !important; }
 body.column-hidden-owner #rosTable .col-owner { display: none !important; }
 body.column-hidden-location #rosTable .col-location { display: none !important; }
 body.column-hidden-media-asset #rosTable .col-media-asset { display: none !important; }
 body.column-hidden-internal-notes #rosTable .col-internal-notes { display: none !important; }
 body.column-hidden-client-notes #rosTable .col-client-notes { display: none !important; }
 body.column-hidden-status #rosTable .col-status { display: none !important; }
}

.table-view-controls {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 10px;
}

.table-view-controls label {
  margin: 0;
}

.table-view-controls > label:first-child {
  width: 180px;
}

.table-view-controls .toggle-row {
  min-height: 36px;
  white-space: nowrap;
}

.workspace-exports {
  margin: 16px 0 12px;
  overflow: hidden;
  border: 1px solid rgba(7, 22, 37, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(7, 22, 37, 0.05);
}

.workspace-exports-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px 10px;
  background: rgba(7, 22, 37, 0.025);
  cursor: pointer;
  list-style: none;
}

.workspace-exports[open] .workspace-exports-heading {
  border-bottom: 1px solid rgba(7, 22, 37, 0.09);
}

.workspace-exports-heading::-webkit-details-marker {
  display: none;
}

.workspace-exports-heading:focus-visible {
  outline: 2px solid var(--refined-cyan);
  outline-offset: -2px;
}

.workspace-exports-heading h2 {
  margin: 0;
  color: var(--ink-navy);
  font-size: 1rem;
  font-weight: 830;
}

.workspace-exports-heading p {
  flex: 1 1 auto;
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.3;
}

.workspace-exports-toggle {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin: 0 3px 2px 8px;
  border-right: 2px solid var(--deep-slate);
  border-bottom: 2px solid var(--deep-slate);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.workspace-exports:not([open]) .workspace-exports-toggle {
  margin-bottom: -2px;
  transform: rotate(-45deg);
}

.workspace-export-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
}

.workspace-export-lane {
  display: flex;
  min-width: 0;
  min-height: 270px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(0, 159, 194, 0.22);
  border-radius: 8px;
  background: linear-gradient(155deg, rgba(0, 159, 194, 0.075), rgba(255, 255, 255, 0.94) 62%);
  padding: 14px;
}

.workspace-export-lane + .workspace-export-lane {
  border-top-width: 1px;
}

.workspace-export-card-heading {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.workspace-export-card-heading > div {
  min-width: 0;
}

.workspace-export-card-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0, 159, 194, 0.12);
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.workspace-export-lane h3 {
  margin: 1px 0 3px;
  color: var(--ink-navy);
  font-size: 0.98rem;
  font-weight: 830;
  line-height: 1.2;
}

.workspace-export-card-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.packet-export-card {
  border-color: rgba(90, 63, 207, 0.2);
  background: linear-gradient(155deg, rgba(90, 63, 207, 0.07), rgba(255, 255, 255, 0.94) 62%);
}

.packet-export-card .workspace-export-card-icon {
  background: rgba(90, 63, 207, 0.11);
  color: var(--designer);
}

.live-publication-lane {
  border-color: rgba(253, 111, 5, 0.24);
  background: linear-gradient(155deg, rgba(253, 111, 5, 0.075), rgba(255, 255, 255, 0.94) 62%);
}

.live-publication-lane .workspace-export-card-icon {
  background: rgba(253, 111, 5, 0.11);
  color: var(--section-marker-orange);
}

.live-publication-status {
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 1px solid rgba(7, 22, 37, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--deep-slate);
  padding: 10px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.live-publication-status-message {
  margin: 0;
}

.live-publication-copy-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-height: 28px;
  margin-top: auto;
  padding-top: 5px;
}

.live-publication-copy-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 3px 5px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.live-publication-copy-button[hidden] {
  display: none;
}

.live-publication-copy-button:hover {
  background: rgba(7, 22, 37, 0.075);
}

.live-publication-copy-button:focus-visible {
  outline: 3px solid var(--section-marker-orange);
  outline-offset: 2px;
}

.live-publication-copy-button svg {
  width: 15px;
  height: 15px;
}

.live-publication-copy-feedback {
  min-width: 11rem;
  min-height: 1.4em;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.4;
  text-align: right;
}

.live-publication-copy-feedback[data-state="good"] {
  color: #145a35;
}

.live-publication-copy-feedback[data-state="bad"] {
  color: var(--danger);
}

.live-publication-controls {
  margin-top: auto;
}

.live-publication-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  text-decoration: none;
}

.live-publication-link:focus-visible {
  outline: 3px solid var(--section-marker-orange);
  outline-offset: 2px;
}

.live-publication-status {
  min-height: 66px;
}

.live-publication-status[data-state="published"] {
  border-color: rgba(33, 150, 83, 0.2);
  background: rgba(33, 150, 83, 0.075);
  color: #145a35;
}

.live-publication-status[data-state="unpublished"] {
  border-color: rgba(7, 22, 37, 0.16);
  background: rgba(7, 22, 37, 0.045);
  color: var(--deep-slate);
}

.workspace-export-controls {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 0;
}

.workspace-export-controls [hidden] {
  display: none !important;
}

.workspace-export-controls label {
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}

.workspace-export-controls #presenterPacketPresenterLabel {
  max-width: none;
}

.workspace-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
}

.workspace-export-actions .secondary-button {
  width: auto;
  min-width: 0;
  flex: 1 1 112px;
  white-space: nowrap;
}

.packet-export-card .workspace-export-actions .export-action-button {
  flex: 0 0 auto;
}

.live-publication-lane .workspace-export-actions .secondary-button {
  min-width: max-content;
}

.builder-helper {
  margin: -4px 4px 12px;
  color: var(--deep-slate);
  font-size: 0.86rem;
  font-weight: 650;
}

.legend {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.legend:empty {
  display: none;
}

.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
  border-radius: 999px;
  vertical-align: -1px;
}

.stage { background: var(--refined-cyan); }
.av { background: var(--blueprint); }
.ops { background: var(--cue-orange); }
.talent { background: var(--designer); }

.table-scroll-hint {
  margin: 0 4px 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-align: right;
}

.day-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 8px;
  padding: 3px 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.day-tab {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--deep-slate);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 760;
  cursor: pointer;
}

.day-tab:hover {
  border-color: rgba(0, 159, 194, 0.22);
  background: rgba(0, 159, 194, 0.06);
}

.day-tab[aria-selected="true"] {
  border-color: rgba(0, 159, 194, 0.34);
  background: rgba(0, 159, 194, 0.11);
  color: var(--ink-navy);
  box-shadow: inset 3px 0 0 var(--refined-cyan);
}

.day-tab-add {
  color: var(--refined-cyan);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 12px 32px rgba(7, 22, 37, 0.085);
  scrollbar-color: rgba(0, 159, 194, 0.38) rgba(216, 210, 200, 0.32);
  scrollbar-width: thin;
}

table {
  width: 100%;
  min-width: 2054px;
  border-collapse: collapse;
  table-layout: fixed;
}

th {
  background: #eef6f8;
  color: var(--ink-navy);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-align: left;
  text-transform: uppercase;
}

@media screen {
  th {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom-color: #173746;
    background: #102b3a;
    color: #fff;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.08);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.045em;
  }

  th.col-media-asset,
  th.col-internal-notes,
  th.col-client-notes,
  th.actions-col {
    background: #102b3a;
    color: rgba(255, 255, 255, 0.82);
  }

  th.col-cue {
    box-shadow:
      inset 0 3px 0 var(--refined-cyan),
      inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  }

  tbody tr {
    transition: background-color 0.14s ease;
  }

  tbody tr:hover td {
    background: #f3fafb;
  }

  tbody tr.day-group-row td {
    position: relative;
    z-index: 1;
    padding: 8px 10px;
    border-top: 1px solid #071625;
    border-bottom: 1px solid #071625;
    background: #071625;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 820;
    letter-spacing: 0.015em;
  }

  tbody tr:hover input,
  tbody tr:hover select,
  tbody tr:hover textarea,
  tbody tr:hover .owner-presenter-display {
    border-color: rgba(0, 159, 194, 0.32);
  }

  td.col-media-asset,
  td.col-internal-notes,
  td.col-client-notes,
  td.actions-col {
    background-color: #fcfbf8;
  }

  td input,
  td select,
  td textarea,
  .owner-presenter-display {
    border-color: rgba(205, 201, 193, 0.58);
    background: rgba(255, 255, 255, 0.62);
    box-shadow: none;
  }

  td input:hover,
  td select:hover,
  td textarea:hover,
  .owner-presenter-display:hover {
    border-color: rgba(100, 113, 122, 0.42);
  }

  td input:focus,
  td select:focus,
  td textarea:focus {
    border-color: var(--refined-cyan);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 159, 194, 0.12);
  }

  .owner-input,
  .owner-presenter-display {
    border-color: rgba(0, 159, 194, 0.2);
    color: var(--ink-navy);
    font-weight: 680;
  }

  .media-asset-input,
  .internal-notes-input,
  .client-notes-input {
    min-height: 38px;
    border-color: rgba(216, 210, 200, 0.52);
    background: rgba(247, 246, 243, 0.68);
    color: #56616a;
  }

  .media-asset-input:focus,
  .internal-notes-input:focus,
  .client-notes-input:focus {
    background: #fff;
    color: var(--deep-slate);
  }
}

th,
td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

td {
  background: #fff;
}

tr:nth-child(even) td {
  background: #faf9f5;
}

tr:nth-child(even) input,
tr:nth-child(even) select,
tr:nth-child(even) textarea {
  background: rgba(251, 251, 250, 0.72);
}

tr:nth-child(odd) input,
tr:nth-child(odd) select,
tr:nth-child(odd) textarea {
  background: rgba(255, 255, 255, 0.72);
}

tr.filtered {
  display: none;
}

.end-col {
  display: none;
}

body.compact th,
body.compact td {
  padding-top: 5px;
  padding-bottom: 5px;
}

.time-cell {
  width: 90px;
  padding-top: 17px;
  color: var(--ink-navy);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  white-space: nowrap;
}

.col-day {
  width: 110px;
}

th.col-start,
th.end-col {
  width: 90px;
}

th.col-duration {
  width: 76px;
}

th.col-segment {
  width: 100px;
}

th.col-cue {
  width: 235px;
}

th.col-department {
  width: 122px;
}

th.col-owner {
  width: 155px;
}

th.col-location {
  width: 145px;
}

th.col-media-asset {
  width: 205px;
}

th.col-internal-notes,
th.col-client-notes {
  width: 250px;
}

th.col-status {
  width: 110px;
}

th.reorder-col {
  width: 44px;
}

th.actions-col {
  width: 180px;
}

body.single-day-view .col-day {
  display: none;
}

.duration-input {
  max-width: 72px;
}

.cue-input {
  min-width: 96px;
}

.wide-input {
  min-width: 215px;
}

@media screen {
  .cue-input {
    border-color: rgba(0, 159, 194, 0.28);
    background: #f7fcfd;
    color: var(--ink-navy);
    font-weight: 780;
  }

  .cue-input:focus {
    border-color: var(--refined-cyan);
    background: #fff;
  }
}

.owner-input,
.location-input {
  min-width: 132px;
}

.owner-presenter-display {
  display: none;
  min-width: 132px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f6f3;
  color: var(--ink);
  padding: 8px 10px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-owner.has-presenter .owner-presenter-display {
  display: block;
}

.col-owner.has-presenter .owner-input {
  display: none;
}

.department-input {
  min-width: 108px;
  border-left-width: 5px;
}

.department-input[data-dept="Production"] { border-left-color: var(--refined-cyan); }
.department-input[data-dept="AV"] { border-left-color: var(--blueprint); }
.department-input[data-dept="Events"] { border-left-color: var(--cue-orange); }
.department-input[data-dept="Talent"] { border-left-color: var(--designer); }
.department-input[data-dept="Catering"] { border-left-color: var(--green); }
.department-input[data-dept="Security"] { border-left-color: #607074; }
.department-input[data-dept="Stakeholder"] { border-left-color: #7c569b; }
.department-input[data-dept="Pres"] { border-left-color: var(--ink-navy); }
.department-input[data-dept="Provost"] { border-left-color: #375d7d; }
.department-input[data-dept="Marketing"] { border-left-color: #a45d2d; }
.department-input[data-dept="Chapel"] { border-left-color: #6d5d9f; }
.department-input[data-dept="Custodial"] { border-left-color: #607d3b; }
.department-input[data-dept="Facilities"] { border-left-color: #6f7477; }
.department-input[data-dept="Student Life"] { border-left-color: #d27a2c; }
.department-input[data-dept="Advancement"] { border-left-color: #9b3f68; }
.department-input[data-dept="Alumni"] { border-left-color: #7b5a2e; }
.department-input[data-dept="OTR"] { border-left-color: #4a7c8a; }
.department-input[data-dept="P&C"] { border-left-color: #8d6b8f; }
.department-input[data-dept="Richmond"] { border-left-color: #2f6f62; }
.department-input[data-dept="Ottawa"] { border-left-color: #9a5b45; }
.department-input[data-dept="Stream"] { border-left-color: var(--blue); }
.department-input[data-dept="Camera"] { border-left-color: var(--blueprint); }
.department-input[data-dept="Livestream"] { border-left-color: var(--blue); }

.status-input {
  min-width: 94px;
}

.print-rendered-value {
  display: none;
}

@media screen {
  .status-input {
    border-left-width: 4px;
    font-weight: 750;
  }

  .status-input[data-status="planned"] {
    border-left-color: #8a9299;
    background: #fbfbfa;
  }

  .status-input[data-status="ready"],
  .status-input[data-status="approved"],
  .status-input[data-status="final"],
  .status-input[data-status="done"] {
    border-left-color: var(--green);
    background: #f5faf2;
  }

  .status-input[data-status="hold"],
  .status-input[data-status="needs-review"],
  .status-input[data-status="issue"] {
    border-left-color: var(--cue-orange);
    background: #fff7e8;
  }

  .status-input[data-status="live"] {
    border-left-color: var(--refined-cyan);
    background: #f0fbfd;
  }

  .status-input[data-status="skipped"],
  .status-input[data-status="cancelled"],
  .status-input[data-status="canceled"] {
    border-left-color: var(--rose);
    background: #fff6f7;
  }
}

.actions-col {
  width: 158px;
}

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

.row-actions button {
  min-height: 29px;
  padding: 0 4px;
  border-color: rgba(216, 210, 200, 0.72);
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.69rem;
}

.details-row {
  grid-column: 1 / -1;
}

.row-move-menu {
  position: relative;
  min-width: 0;
}

.row-move-menu.is-open {
  z-index: 12;
}

.row-move-menu-trigger {
  width: 100%;
  white-space: nowrap;
}

.row-move-menu-trigger span {
  margin-left: 2px;
  font-size: 0.62rem;
}

.row-move-menu-popover {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 20;
  display: grid;
  width: max-content;
  min-width: 126px;
  gap: 3px;
  padding: 5px;
  border: 1px solid rgba(7, 22, 37, 0.24);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(7, 22, 37, 0.18);
}

.row-move-menu-popover[hidden] {
  display: none;
}

.row-move-menu.opens-up .row-move-menu-popover {
  top: auto;
  bottom: calc(100% + 4px);
}

.row-move-menu-popover button {
  width: 100%;
  min-height: 34px;
  padding: 5px 10px;
  text-align: left;
  white-space: nowrap;
}

.row-move-menu-popover button:disabled {
  opacity: 0.48;
}

th.reorder-col,
td.row-grip {
  position: sticky;
  left: 0;
  text-align: center;
}

th.reorder-col {
  z-index: 3;
}

td.row-grip {
  z-index: 1;
  width: 44px;
  padding: 4px;
  vertical-align: middle;
}

.row-grip-button {
  display: inline-grid;
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(7, 22, 37, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--deep-slate);
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1;
}

.row-grip-button:hover,
.row-grip-button:focus-visible {
  border-color: var(--refined-cyan);
  color: var(--ink-navy);
  box-shadow: 0 0 0 3px rgba(0, 159, 194, 0.14);
}

.drag-row {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.drag-row:active,
body.row-drag-active .drag-row {
  cursor: grabbing;
}

body.row-drag-active {
  cursor: grabbing;
}

@media screen {
  #tableBody tr.row-drop-before > td {
    border-top: 3px solid var(--refined-cyan);
  }

  #tableBody tr.row-drop-after > td {
    border-bottom: 3px solid var(--refined-cyan);
  }

  #tableBody tr.section-marker-row.row-drop-before > td {
    border-top-color: var(--ink-navy);
  }

  #tableBody tr.section-marker-row.row-drop-after > td {
    border-bottom-color: var(--ink-navy);
  }

  #tableBody tr.day-group-row.day-drop-target td,
  .day-tab.day-drop-target,
  .mobile-cue-day-header.day-drop-target {
    outline: 3px solid var(--refined-cyan);
    outline-offset: -3px;
  }

  .mobile-cue-card.row-drop-before,
  .mobile-section-marker.row-drop-before {
    box-shadow: 0 -4px 0 var(--refined-cyan);
  }

  .mobile-cue-card.row-drop-after,
  .mobile-section-marker.row-drop-after {
    box-shadow: 0 4px 0 var(--refined-cyan);
  }

  .mobile-section-marker.row-drop-before {
    box-shadow: 0 -4px 0 var(--ink-navy);
  }

  .mobile-section-marker.row-drop-after {
    box-shadow: 0 4px 0 var(--ink-navy);
  }
}

@media screen {
  #tableBody tr.section-marker-row > td {
    padding: 3px 6px;
    border-top-color: rgba(7, 22, 37, 0.42);
    border-bottom-color: rgba(7, 22, 37, 0.42);
    background: var(--section-marker-orange);
  }

  #tableBody tr.section-marker-row > td:first-child {
    box-shadow: inset 4px 0 0 var(--ink-navy);
  }

  #tableBody tr.section-marker-row > td.section-marker-concealed {
    color: transparent;
    pointer-events: none;
  }

  #tableBody tr.section-marker-row > td.section-marker-concealed > * {
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
  }

  #tableBody tr.section-marker-row .day-input,
  #tableBody tr.section-marker-row .segment-input,
  #tableBody tr.section-marker-row .internal-notes-input,
  #tableBody tr.section-marker-row .status-input {
    height: 28px;
    min-height: 28px;
    padding: 2px 5px;
    border-color: rgba(7, 22, 37, 0.34);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink-navy);
    font-size: 0.72rem;
    font-weight: 760;
    line-height: 1.1;
  }

  #tableBody tr.section-marker-row .internal-notes-input {
    resize: none;
  }

  #tableBody tr.section-marker-row .day-input:focus,
  #tableBody tr.section-marker-row .segment-input:focus,
  #tableBody tr.section-marker-row .internal-notes-input:focus,
  #tableBody tr.section-marker-row .status-input:focus {
    border-color: var(--ink-navy);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(7, 22, 37, 0.22);
  }

  #tableBody tr.section-marker-row .row-actions {
    gap: 3px;
  }

  #tableBody tr.section-marker-row .row-actions button:not(.details-row) {
    min-height: 28px;
    padding: 0 3px;
    border-color: rgba(7, 22, 37, 0.34);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink-navy);
    font-size: 0.66rem;
    font-weight: 760;
  }

  #tableBody tr.section-marker-row .row-grip-button {
    border-color: rgba(7, 22, 37, 0.46);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink-navy);
  }

  #tableBody tr.selected-row > td:first-child {
    box-shadow: inset 4px 0 0 var(--refined-cyan);
  }

  #tableBody tr.section-marker-row.selected-row > td:first-child {
    box-shadow: inset 4px 0 0 var(--ink-navy);
  }

  #tableBody tr.selected-row > td {
    border-top-color: rgba(0, 159, 194, 0.34);
    border-bottom-color: rgba(0, 159, 194, 0.34);
  }

  .details-row {
    border-color: rgba(0, 159, 194, 0.24);
    background: #f5fbfc;
    color: var(--ink-navy);
    font-weight: 760;
  }

  .row-actions button:not(.details-row):hover {
    color: var(--ink-navy);
  }

  .row-actions .delete-row:hover {
    border-color: rgba(194, 65, 75, 0.48);
    background: #fff6f7;
    color: var(--rose);
    box-shadow: 0 0 0 3px rgba(194, 65, 75, 0.08);
  }

  .details-row.has-cue-details {
    border-color: rgba(255, 159, 28, 0.68);
    background: #fff8ec;
    color: #7a4900;
    box-shadow: inset 3px 0 0 var(--cue-orange);
  }

  body.compact input,
  body.compact select {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.compact textarea {
    min-height: 34px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.compact .owner-presenter-display {
    min-height: 32px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  body.compact .row-actions {
    gap: 3px;
  }

  body.compact .row-actions button {
    min-height: 25px;
    padding: 0 3px;
    font-size: 0.65rem;
  }

  body.compact .time-cell {
    padding-top: 13px;
  }
}

.cue-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 20;
  display: flex;
  width: min(520px, 100vw);
  height: 100vh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 36px rgba(7, 22, 37, 0.16);
}

.cue-detail-panel[hidden] {
  display: none;
}

.packet-print-area {
  display: none;
}

.cue-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 22px 18px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(0, 159, 194, 0.1), transparent 54%),
    var(--panel-soft);
}

.cue-detail-header h2 {
  margin-bottom: 4px;
  color: var(--ink-navy);
}

.cue-detail-header p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.cue-detail-body {
  display: grid;
  gap: 18px;
  overflow: auto;
  padding: 20px 22px 28px;
}

.cue-detail-body section {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.cue-detail-body section:last-child {
  border-bottom: 0;
}

.cue-detail-body h3 {
  margin: 0 0 14px;
  color: var(--ink-navy);
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cue-detail-body textarea {
  min-height: 116px;
  resize: vertical;
}

.cue-detail-body #detailScriptText {
  min-height: 190px;
}

.detail-toggle {
  justify-content: flex-start;
}

.internal-hidden .col-internal-notes {
  display: none;
}

body[data-view="client"] .col-department,
body[data-view="client"] .col-owner,
body[data-view="client"] .col-status,
body[data-view="client"] .col-media-asset,
body[data-view="client"] .col-internal-notes,
body[data-view="client"] .reorder-col,
body[data-view="client"] .row-grip,
body[data-view="client"] .actions-col,
body[data-view="client"] .row-actions {
  display: none;
}

body[data-view="talent"] .col-department,
body[data-view="talent"] .col-owner,
body[data-view="talent"] .col-status,
body[data-view="talent"] .col-media-asset,
body[data-view="talent"] .col-internal-notes,
body[data-view="talent"] .reorder-col,
body[data-view="talent"] .row-grip,
body[data-view="talent"] .actions-col,
body[data-view="talent"] .row-actions,
body[data-view="print"] .col-department,
body[data-view="print"] .col-owner,
body[data-view="print"] .col-status,
body[data-view="print"] .col-media-asset,
body[data-view="print"] .col-internal-notes,
body[data-view="print"] .reorder-col,
body[data-view="print"] .row-grip,
body[data-view="print"] .actions-col,
body[data-view="print"] .row-actions {
  display: none;
}

body[data-view="client"] th.col-cue,
body[data-view="talent"] th.col-cue,
body[data-view="print"] th.col-cue {
  width: 300px;
}

body[data-view="client"] th.col-client-notes,
body[data-view="talent"] th.col-client-notes,
body[data-view="print"] th.col-client-notes {
  width: 360px;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .workspace-export-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .packet-export-card .workspace-export-actions {
    flex-direction: column;
  }

  .packet-export-card .workspace-export-actions .secondary-button {
    width: 100%;
    flex-basis: auto;
  }

  .live-publication-lane {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media screen and (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: fixed;
    z-index: 70;
    display: flex;
    inset: 0 auto 0 0;
    width: min(88vw, 340px);
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    border-right: 1px solid rgba(216, 210, 200, 0.96);
    border-bottom: 0;
    background: #fff;
    box-shadow: 18px 0 44px rgba(7, 22, 37, 0.18);
    padding-top: max(14px, env(safe-area-inset-top));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  body.mobile-sidebar-open {
    overflow: hidden;
  }

  body.mobile-sidebar-open .control-panel {
    transform: translateX(0);
  }

  .app-shell.sidebar-collapsed .control-panel {
    display: flex;
  }

  .mobile-drawer-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 10px;
    padding: 0 2px 10px;
    border-bottom: 1px solid rgba(216, 210, 200, 0.82);
    color: var(--ink-navy);
    font-size: 0.82rem;
  }

  .mobile-drawer-close {
    min-height: 34px;
    border: 1px solid rgba(216, 210, 200, 0.9);
    border-radius: 6px;
    background: #fff;
    color: var(--deep-slate);
    padding: 4px 10px;
    font-size: 0.74rem;
    font-weight: 800;
  }

  .mobile-sidebar-backdrop {
    position: fixed;
    z-index: 60;
    display: block;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(7, 22, 37, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  body.mobile-sidebar-open .mobile-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-button {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(0, 159, 194, 0.28);
    border-radius: 6px;
    background: rgba(0, 159, 194, 0.07);
    color: var(--ink-navy);
    padding: 4px 9px;
    font-size: 0.72rem;
    font-weight: 800;
  }

  .mobile-menu-button span {
    color: var(--refined-cyan);
    font-size: 0.9rem;
  }

  .sidebar-collapse-button,
  .sidebar-show-button {
    display: none !important;
  }

  .sidebar-spacer {
    min-height: 0;
  }

  .workspace {
    padding-top: 16px;
  }

  .mobile-role-view-control {
    display: grid;
  }

  .table-view-controls > label {
    flex: 1 1 180px;
  }

  .day-tabs {
    position: sticky;
    z-index: 8;
    top: 0;
    margin-inline: -4px;
    padding: 6px 4px;
    border-block: 1px solid rgba(216, 210, 200, 0.78);
    background: rgba(247, 243, 234, 0.96);
    backdrop-filter: blur(10px);
  }

  .workspace-export-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-publication-lane {
    grid-column: 1 / -1;
    min-height: 0;
  }
}

@media screen and (max-width: 760px) {
  .table-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-header {
    min-height: 56px;
    gap: 8px;
    padding: 7px 10px;
  }

  .brand-logo {
    width: min(178px, 46vw);
  }

  .header-actions {
    gap: 5px;
    width: auto;
    flex-wrap: nowrap;
  }

  .header-actions button {
    flex: 0 0 auto;
  }

  .header-log-out {
    padding-inline: 3px;
    font-size: 0.7rem;
  }

  .role-badge,
  .save-status {
    font-size: 0.68rem;
  }

  .role-badge {
    min-height: 25px;
    padding-inline: 7px;
  }

  .save-status {
    min-height: 24px;
  }

  .signed-out-gate {
    min-height: calc(100vh - 58px);
    padding: 24px 14px;
  }

  .signed-out-card,
  .login-dialog {
    padding: 24px;
  }

  .login-dialog-backdrop {
    padding: 14px;
  }

  .getting-started-backdrop {
    align-items: stretch;
    padding: 10px;
  }

  .getting-started-dialog {
    width: 100%;
    min-height: min(620px, calc(100dvh - 20px));
    max-height: calc(100dvh - 20px);
    margin: auto 0;
    padding:
      max(24px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }

  .getting-started-body {
    font-size: 0.94rem;
  }

  .getting-started-actions {
    position: sticky;
    bottom: 0;
    margin-inline: -4px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 20%);
    padding: 32px 4px 0;
  }

  .getting-started-actions button {
    min-width: 0;
    flex: 1 1 0;
  }

  .table-toolbar-tools {
    width: 100%;
    align-items: flex-start;
  }

  .table-view-controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .columns-menu {
    right: auto;
    left: 0;
  }

  .table-view-controls > label,
  .table-view-controls > label:first-child {
    width: auto;
    min-width: min(100%, 150px);
    flex: 1 1 150px;
  }

  .table-view-controls .toggle-row {
    flex: 0 0 auto;
  }

  .summary-strip {
    display: grid;
    grid-auto-columns: minmax(112px, 0.72fr);
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
  }

  .summary-strip div {
    min-height: 66px;
    padding: 10px 12px;
    border-right: 1px solid rgba(216, 210, 200, 0.82);
    border-bottom: 0;
  }

  .summary-strip div:last-child {
    border-right: 0;
  }

  .workspace-export-lanes {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .workspace-export-lane,
  .live-publication-lane {
    grid-column: 1;
    min-height: 0;
  }

  .workspace-export-card-heading {
    align-items: center;
  }

  .workspace-exports-heading {
    align-items: center;
    flex-wrap: wrap;
  }

  .workspace-exports-heading p {
    order: 3;
    width: 100%;
    flex-basis: 100%;
  }

  .workspace-exports-toggle {
    margin-left: auto;
  }

  .workspace-export-actions {
    flex-direction: column;
  }

  .workspace-export-actions .secondary-button,
  .workspace-export-actions .live-publication-link {
    width: 100%;
    flex-basis: auto;
  }

  .live-publication-copy-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .live-publication-copy-feedback {
    min-width: 0;
  }

  .legend {
    justify-content: flex-start;
  }

  .cue-detail-panel {
    width: 100vw;
    height: 100dvh;
    border-left: 0;
  }

  .cue-detail-header {
    position: sticky;
    z-index: 2;
    top: 0;
    padding:
      max(14px, env(safe-area-inset-top))
      max(14px, env(safe-area-inset-right))
      13px
      max(14px, env(safe-area-inset-left));
  }

  .cue-detail-body {
    padding:
      16px
      max(14px, env(safe-area-inset-right))
      max(28px, calc(18px + env(safe-area-inset-bottom)))
      max(14px, env(safe-area-inset-left));
  }
}

@media screen and (max-width: 600px) {
  .mobile-cue-view-switch {
    display: inline-flex;
    width: fit-content;
    margin: 10px 0 8px;
    padding: 3px;
    border: 1px solid rgba(216, 210, 200, 0.92);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.74);
  }

  .mobile-cue-view-switch button {
    min-width: 76px;
    min-height: 32px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    padding: 5px 12px;
    font-size: 0.76rem;
    font-weight: 800;
  }

  .mobile-cue-view-switch button[aria-pressed="true"] {
    background: var(--ink-navy);
    color: #fff;
    box-shadow: 0 2px 6px rgba(7, 22, 37, 0.14);
  }

  body[data-mobile-cue-view="cards"] .mobile-cue-cards {
    display: grid;
    gap: 10px;
  }

  body[data-mobile-cue-view="cards"] .table-scroll-hint,
  body[data-mobile-cue-view="cards"] .table-wrap {
    display: none;
  }

  .mobile-cue-card {
    position: relative;
    display: grid;
    gap: 8px;
    border: 1px solid rgba(216, 210, 200, 0.9);
    border-radius: 8px;
    background: #fff;
    padding: 12px 12px 12px 58px;
    box-shadow: 0 4px 13px rgba(7, 22, 37, 0.055);
    outline: none;
  }

  .mobile-cue-card::before,
  .mobile-section-marker::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    border-radius: 8px 0 0 8px;
    background: transparent;
    content: "";
  }

  .mobile-cue-card.selected-card,
  .mobile-section-marker.selected-card {
    border-color: rgba(0, 159, 194, 0.52);
    box-shadow: 0 0 0 2px rgba(0, 159, 194, 0.1);
  }

  .mobile-cue-card.selected-card::before,
  .mobile-section-marker.selected-card::before {
    background: var(--refined-cyan);
  }

  .mobile-cue-card:focus-visible,
  .mobile-section-marker:focus-visible {
    outline: 3px solid rgba(0, 159, 194, 0.2);
    outline-offset: 2px;
  }

  .mobile-cue-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-cue-timing {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 5px 9px;
    color: var(--ink-navy);
    font-variant-numeric: tabular-nums;
  }

  .mobile-cue-timing strong {
    font-size: 0.9rem;
  }

  .mobile-cue-timing span {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
  }

  .mobile-cue-status {
    flex: 0 0 auto;
    border-left: 3px solid #8a9299;
    border-radius: 5px;
    background: #f5f5f3;
    color: var(--deep-slate);
    padding: 4px 7px;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .mobile-cue-status[data-status="ready"],
  .mobile-cue-status[data-status="approved"],
  .mobile-cue-status[data-status="final"],
  .mobile-cue-status[data-status="done"] {
    border-left-color: var(--green);
    background: #f2f9ef;
  }

  .mobile-cue-status[data-status="hold"],
  .mobile-cue-status[data-status="needs-review"],
  .mobile-cue-status[data-status="issue"] {
    border-left-color: var(--cue-orange);
    background: #fff7e8;
  }

  .mobile-cue-status[data-status="live"] {
    border-left-color: var(--refined-cyan);
    background: #effafd;
  }

  .mobile-cue-section {
    margin: 0;
    color: var(--refined-cyan);
    font-size: 0.7rem;
    font-weight: 820;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .mobile-cue-card h3 {
    margin: -2px 0 0;
    color: var(--ink-navy);
    font-size: 1rem;
    line-height: 1.22;
  }

  .mobile-cue-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 12px;
    margin: 0;
  }

  .mobile-cue-field {
    min-width: 0;
  }

  .mobile-cue-field dt {
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
  }

  .mobile-cue-field dd {
    margin: 0;
    color: var(--deep-slate);
    font-size: 0.78rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }

  .mobile-cue-note {
    grid-column: 1 / -1;
    padding-top: 7px;
    border-top: 1px solid rgba(216, 210, 200, 0.68);
  }

  .mobile-cue-note dd {
    color: #536069;
    font-size: 0.75rem;
  }

  .mobile-cue-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
    padding-top: 2px;
  }

  .mobile-cue-actions button {
    min-height: 38px;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .mobile-cue-actions .row-move-menu {
    min-width: 94px;
    flex: 0 0 auto;
  }

  .mobile-cue-actions .row-move-menu-trigger {
    min-height: 38px;
  }

  .mobile-card-grip {
    position: absolute;
    top: 12px;
    left: 8px;
    z-index: 1;
    width: 40px;
    min-width: 40px;
    min-height: 44px;
  }

  .mobile-cue-actions .mobile-cue-details {
    flex-basis: 100%;
  }

  .mobile-cue-details {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .mobile-cue-day-header {
    margin: 4px 0 0;
    border-radius: 6px;
    background: var(--ink-navy);
    color: #fff;
    padding: 8px 10px;
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.01em;
  }

  .mobile-section-marker {
    position: relative;
    display: grid;
    gap: 1px;
    border: 1px solid rgba(7, 22, 37, 0.42);
    border-radius: 7px;
    background: var(--section-marker-orange);
    padding: 8px 10px 8px 58px;
    outline: none;
  }

  .mobile-section-marker > .mobile-section-marker-label {
    color: var(--refined-cyan);
    font-size: 0.66rem;
    font-weight: 820;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }

  .mobile-section-marker strong {
    color: var(--ink-navy);
    font-size: 0.9rem;
  }

  .mobile-section-marker {
    border-color: rgba(7, 22, 37, 0.42);
    background: var(--section-marker-orange);
  }

  .mobile-section-marker > .mobile-section-marker-label {
    color: var(--ink-navy);
  }

  .mobile-section-marker.selected-card {
    border-color: var(--ink-navy);
    box-shadow: 0 0 0 2px rgba(7, 22, 37, 0.18);
  }

  .mobile-section-marker.selected-card::before {
    background: var(--ink-navy);
  }

  .mobile-section-marker:focus-visible {
    outline-color: rgba(7, 22, 37, 0.42);
  }

  .mobile-cue-empty {
    margin: 0;
    border: 1px dashed rgba(216, 210, 200, 0.95);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    padding: 18px;
    text-align: center;
  }

  body[data-view="client"] .mobile-cue-actions,
  body[data-view="talent"] .mobile-cue-actions,
  body[data-view="print"] .mobile-cue-actions {
    display: none;
  }

  body[data-view="client"] .mobile-card-grip,
  body[data-view="talent"] .mobile-card-grip,
  body[data-view="print"] .mobile-card-grip {
    display: none;
  }

  body[data-view="client"] .mobile-cue-card,
  body[data-view="talent"] .mobile-cue-card,
  body[data-view="print"] .mobile-cue-card {
    padding-left: 12px;
  }

  body[data-view="client"] .mobile-section-marker,
  body[data-view="talent"] .mobile-section-marker,
  body[data-view="print"] .mobile-section-marker {
    padding-left: 10px;
  }
}

@media screen and (max-width: 520px) {
  .role-badge {
    display: none;
  }

  .save-status {
    min-width: 10px;
    width: 10px;
    overflow: hidden;
    gap: 0;
    font-size: 0;
  }

  .brand-logo {
    width: min(145px, 44vw);
  }
}

@media print {
  @page {
    size: letter landscape;
    margin: 0.25in;
  }

  @page presenter-safe-packet {
    size: letter portrait;
    margin: 0.95in 0.7in 0.7in;
  }

  body {
    /* Print safety rule: client PDFs must never run to the physical page edge. */
    margin: 0;
    padding: 0;
    background: #fff;
    color: #111;
    font-size: 9px;
    line-height: 1.18;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .app-header,
  .control-panel,
  .mobile-menu-button,
  .mobile-sidebar-backdrop,
  .mobile-cue-view-switch,
  .mobile-cue-cards,
  .sidebar-show-button,
  .signed-out-gate,
  .event-empty-state,
  .login-dialog-backdrop,
  .getting-started-backdrop,
  .spreadsheet-import-backdrop,
  .publication-preview-backdrop,
  .workspace-exports,
  .day-tabs,
  .table-view-controls,
  .table-scroll-hint,
  .cue-detail-panel,
  .builder-helper,
  .legend,
  .row-actions,
  .actions-col,
  .row-grip,
  .reorder-col {
    display: none;
  }

  .app-shell {
    display: block;
    padding: 0.24in 0.34in 0.26in;
  }

  .workspace {
    display: flex;
    min-height: calc(8.5in - 1in);
    flex-direction: column;
  }

  .summary-strip,
  .table-wrap {
    border-color: #c9c6bf;
    border-radius: 4px;
    box-shadow: none;
  }

  .summary-strip {
    order: 2;
    width: 100%;
    grid-template-columns: 0.85fr 0.85fr 1.35fr 0.8fr 0.8fr 0.55fr;
    margin: 0 0 9px;
  }

  .summary-strip div {
    padding: 6px 8px;
  }

  .summary-strip span {
    color: #4f5355;
    font-size: 6.5px;
    letter-spacing: 0.03em;
  }

  .summary-strip strong {
    font-size: 9.5px;
    line-height: 1.1;
  }

  .table-toolbar {
    order: 1;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 7px;
    border-bottom: 2.5px solid var(--twu-blue);
  }

  .table-toolbar::before {
    content: "Event ArchiTek Builder";
    display: block;
    margin-bottom: 2px;
    color: var(--twu-gold);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .table-toolbar h2,
  #tableMeta {
    display: none;
  }

  .table-toolbar .print-meta {
    display: grid;
    gap: 2px;
    margin-top: 2px;
    color: #555;
    font-size: 7.8px;
    line-height: 1.18;
  }

  .table-toolbar .print-meta span:first-child {
    color: var(--twu-blue);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.05;
  }

  .table-toolbar .print-meta span:last-child {
    color: #555;
    font-size: 7.6px;
  }

  .table-wrap {
    order: 3;
    width: 100%;
    margin: 0;
    overflow: visible;
  }

  table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 8.2px;
  }

  th {
    background: var(--twu-blue);
    color: #fff;
    font-size: 6.5px;
    line-height: 1.1;
  }

  th,
  td {
    padding: 4.5px 5.5px;
    line-height: 1.16;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    vertical-align: middle;
  }

  td {
    background: #fff;
  }

  tr:nth-child(even) td {
    background: #eef6ff;
  }

  body[data-output-mode="internal"] .col-client-notes,
  body[data-output-mode="av"] .col-client-notes,
  body[data-output-mode="stage"] .col-media-asset,
  body[data-output-mode="stage"] .col-client-notes,
  .actions-col {
    display: none;
  }

  .day-group-row td {
    padding: 5px 6px;
    border-top: 1.5px solid #071625;
    border-bottom: 1px solid #071625;
    background: #071625 !important;
    color: #fff;
    font-size: 7.2px;
    font-weight: 800;
  }

  .col-day {
    display: none;
  }

  body[data-output-mode="client"] .col-department,
  body[data-output-mode="client"] .col-owner,
  body[data-output-mode="client"] .col-media-asset,
  body[data-output-mode="client"] .col-internal-notes,
  body[data-output-mode="client"] .col-status,
  body[data-output-mode="talent"] .col-department,
  body[data-output-mode="talent"] .col-owner,
  body[data-output-mode="talent"] .col-media-asset,
  body[data-output-mode="talent"] .col-internal-notes,
  body[data-output-mode="talent"] .col-status {
    display: none;
  }

  body[data-output-mode="internal"] th.col-start,
  body[data-output-mode="av"] th.col-start,
  body[data-output-mode="stage"] th.col-start {
    width: 5.5%;
  }

  body[data-output-mode="internal"] th.col-duration,
  body[data-output-mode="av"] th.col-duration,
  body[data-output-mode="stage"] th.col-duration {
    width: 4%;
  }

  body[data-output-mode="internal"] th.col-segment,
  body[data-output-mode="av"] th.col-segment {
    width: 10%;
  }

  body[data-output-mode="internal"] th.col-cue,
  body[data-output-mode="av"] th.col-cue {
    width: 16%;
  }

  body[data-output-mode="internal"] th.col-department,
  body[data-output-mode="av"] th.col-department {
    width: 7.5%;
  }

  body[data-output-mode="internal"] th.col-owner,
  body[data-output-mode="av"] th.col-owner {
    width: 15%;
  }

  body[data-output-mode="internal"] th.col-location,
  body[data-output-mode="av"] th.col-location {
    width: 12%;
  }

  body[data-output-mode="internal"] th.col-media-asset,
  body[data-output-mode="av"] th.col-media-asset {
    width: 8.5%;
  }

  body[data-output-mode="internal"] th.col-internal-notes,
  body[data-output-mode="av"] th.col-internal-notes {
    width: 15%;
  }

  body[data-output-mode="internal"] th.col-status,
  body[data-output-mode="av"] th.col-status,
  body[data-output-mode="stage"] th.col-status {
    width: 5%;
  }

  body[data-output-mode="stage"] th.col-segment {
    width: 11%;
  }

  body[data-output-mode="stage"] th.col-cue {
    width: 20%;
  }

  body[data-output-mode="stage"] th.col-department {
    width: 8%;
  }

  body[data-output-mode="stage"] th.col-owner {
    width: 17%;
  }

  body[data-output-mode="stage"] th.col-location {
    width: 15%;
  }

  body[data-output-mode="stage"] th.col-internal-notes {
    width: 14%;
  }

  body[data-output-mode="client"] th.col-start,
  body[data-output-mode="talent"] th.col-start {
    width: 8%;
  }

  body[data-output-mode="client"] th.col-duration,
  body[data-output-mode="talent"] th.col-duration {
    width: 7%;
  }

  body[data-output-mode="client"] th.col-segment,
  body[data-output-mode="talent"] th.col-segment {
    width: 16%;
  }

  body[data-output-mode="client"] th.col-cue,
  body[data-output-mode="talent"] th.col-cue {
    width: 30%;
  }

  body[data-output-mode="client"] th.col-location,
  body[data-output-mode="talent"] th.col-location {
    width: 17%;
  }

  body[data-output-mode="client"] th.col-client-notes,
  body[data-output-mode="talent"] th.col-client-notes {
    width: 22%;
  }

  .time-cell {
    width: auto;
    padding-top: 3.5px;
    font-size: 7.2px;
  }

  .print-footer {
    order: 4;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 0.12in;
    border-top: 1px solid #cfcdc9;
    color: #666;
    font-size: 7.5px;
  }

  .print-value-cell > input,
  .print-value-cell > select,
  .print-value-cell > textarea,
  .print-value-cell > .owner-presenter-display {
    display: none !important;
  }

  .print-value-cell > .print-rendered-value {
    display: block;
    width: 100%;
    min-height: 0;
    border: 0;
    background: transparent;
    color: #111;
    padding: 0;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
  }

  .print-rendered-value a,
  body.packet-printing .packet-field a {
    color: #075f82;
    text-decoration: underline;
    text-underline-offset: 1px;
  }

  .col-owner,
  .col-department,
  .col-location,
  .col-media-asset {
    vertical-align: top;
  }

  .col-department,
  .col-department .print-rendered-value {
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .col-status,
  .col-status .print-rendered-value {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .col-owner.has-presenter .owner-input,
  .col-owner.has-presenter .owner-presenter-display {
    display: none !important;
  }

  input,
  select,
  textarea {
    border: 0;
    background: transparent !important;
    color: #111;
    padding: 0;
    min-height: 0;
    min-width: 0;
    width: auto;
    max-width: 100%;
  }

  textarea {
    min-width: 0;
    min-height: 0;
    resize: none;
  }

  body.packet-printing .app-header,
  body.packet-printing .app-shell,
  body.packet-printing .cue-detail-panel {
    display: none !important;
  }

  body.packet-printing .packet-print-area {
    display: block;
    padding: 0.34in 0.34in 0.26in;
  }

  body.packet-presenter-safe-printing .packet-print-area {
    page: presenter-safe-packet;
    box-sizing: border-box;
    width: auto;
    max-width: 6.85in;
    margin: 0 auto;
    padding: 0.04in 0 0;
  }

  body.packet-printing .packet-document {
    color: #111;
    font-size: 9.4px;
    line-height: 1.32;
  }

  body.packet-printing .packet-header {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2.5px solid var(--twu-blue);
  }

  body.packet-printing .packet-header .eyebrow {
    margin-bottom: 3px;
    color: var(--twu-gold);
    font-size: 7px;
  }

  body.packet-printing .packet-header h1 {
    margin: 0 0 4px;
    color: var(--twu-blue);
    font-size: 18px;
    line-height: 1.05;
  }

  body.packet-printing .packet-subtitle,
  body.packet-printing .packet-meta {
    margin: 0;
    color: #555;
    font-size: 8.2px;
  }

  body.packet-printing .packet-presenter-safe {
    font-size: 11.5px;
    line-height: 1.48;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.packet-printing .packet-presenter-safe .packet-top-spacer {
    height: 0.28in;
  }

  body.packet-printing .packet-presenter-safe .packet-header {
    margin-bottom: 20px;
    padding-bottom: 14px;
  }

  body.packet-printing .packet-presenter-safe .packet-header h1 {
    margin-bottom: 10px;
    font-size: 22px;
    line-height: 1.08;
  }

  body.packet-printing .packet-metadata-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0 0 9px;
    border: 1px solid #cfcdc9;
    border-radius: 4px;
    overflow: hidden;
  }

  body.packet-printing .packet-metadata-list div {
    padding: 7px 8px;
    border-right: 1px solid #cfcdc9;
    border-bottom: 1px solid #cfcdc9;
    background: #f7f6f3;
  }

  body.packet-printing .packet-metadata-list div:nth-child(3n) {
    border-right: 0;
  }

  body.packet-printing .packet-metadata-list div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  body.packet-printing .packet-metadata-list dt {
    margin: 0 0 2px;
    color: #555;
    font-size: 8.8px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.packet-printing .packet-metadata-list dd {
    margin: 0;
    color: #111;
    font-size: 10.5px;
    font-weight: 700;
  }

  body.packet-printing .packet-intro {
    max-width: 7.2in;
    margin: 0;
    color: #2d2a2b;
    font-size: 11.5px;
    line-height: 1.45;
  }

  body.packet-printing .packet-summary {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    margin-bottom: 12px;
    border: 1px solid #cfcdc9;
    border-radius: 4px;
    overflow: hidden;
  }

  body.packet-printing .packet-summary div {
    padding: 6px 8px;
    border-right: 1px solid #cfcdc9;
    background: #f7f6f3;
  }

  body.packet-printing .packet-summary div:last-child {
    border-right: 0;
  }

  body.packet-printing .packet-summary span {
    display: block;
    color: #555;
    font-size: 6.7px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.packet-printing .packet-summary strong {
    display: block;
    margin-top: 2px;
    color: #2d2a2b;
    font-size: 9.2px;
  }

  body.packet-printing .packet-order,
  body.packet-printing .packet-script-sections {
    margin-top: 12px;
  }

  body.packet-printing .packet-day-heading {
    margin: 10px 0 5px;
    color: #315783;
    font-size: 10px;
    font-weight: 800;
  }

  body.packet-printing .packet-order h2,
  body.packet-printing .packet-script-sections h2 {
    margin: 0 0 7px;
    color: var(--twu-blue);
    font-size: 12px;
  }

  body.packet-printing .packet-presenter-safe .packet-order h2,
  body.packet-printing .packet-presenter-safe .packet-script-sections h2 {
    margin-bottom: 9px;
    font-size: 15px;
    line-height: 1.15;
  }

  body.packet-printing .packet-presenter-safe .packet-order {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1.5px solid #cfcdc9;
  }

  body.packet-printing .packet-presenter-safe .packet-script-sections {
    padding-top: 0;
  }

  body.packet-printing .packet-order-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 8.2px;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table {
    font-size: 9.2px;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th:nth-child(1),
  body.packet-printing .packet-presenter-safe .packet-order-table td:nth-child(1) {
    width: 13%;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th:nth-child(2),
  body.packet-printing .packet-presenter-safe .packet-order-table td:nth-child(2) {
    width: 12%;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th:nth-child(3),
  body.packet-printing .packet-presenter-safe .packet-order-table td:nth-child(3) {
    width: 34%;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th:nth-child(4),
  body.packet-printing .packet-presenter-safe .packet-order-table td:nth-child(4) {
    width: 25%;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th:nth-child(5),
  body.packet-printing .packet-presenter-safe .packet-order-table td:nth-child(5) {
    width: 16%;
  }

  body.packet-printing .packet-order-table th,
  body.packet-printing .packet-order-table td {
    padding: 4px 5px;
    border: 1px solid #cfcdc9;
    line-height: 1.2;
    vertical-align: top;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th,
  body.packet-printing .packet-presenter-safe .packet-order-table td {
    padding: 4px 5px;
    line-height: 1.24;
  }

  body.packet-printing .packet-order-table th {
    border-color: var(--twu-blue);
    background: var(--twu-blue);
    color: #fff;
    font-size: 6.8px;
    text-transform: uppercase;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table th {
    font-size: 8.5px;
    background: #315783;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table td {
    border-color: #d9d6d1;
  }

  body.packet-printing .packet-presenter-safe .packet-order-table tr:nth-child(even) td {
    background: #f7fbff;
  }

  body.packet-printing .packet-document:not(.packet-presenter-safe) .packet-order-table tr:nth-child(even) td {
    background: #eef6ff;
  }

  body.packet-printing .packet-cue-section {
    break-inside: auto;
    margin-top: 13px;
    padding-top: 10px;
    border-top: 1px solid #cfcdc9;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-section {
    break-inside: auto;
    page-break-inside: auto;
    margin-top: 14px;
    padding: 13px 14px 11px;
    border: 1px solid #cfcdc9;
    border-left: 4px solid var(--twu-gold);
    border-radius: 4px;
    background: #fff;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-card-short {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-card-long {
    break-inside: auto;
    page-break-inside: auto;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-intro {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-start {
    break-after: avoid;
    page-break-after: avoid;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-card-short .packet-cue-start {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-card-long .packet-cue-start {
    break-inside: auto;
    page-break-inside: auto;
  }

  body.packet-printing .packet-cue-heading {
    break-after: avoid;
    page-break-after: avoid;
  }

  body.packet-printing .packet-cue-heading h3 {
    margin: 0 0 6px;
    color: var(--twu-blue);
    font-size: 13px;
    line-height: 1.12;
  }

  body.packet-printing .packet-presenter-safe .packet-cue-heading h3 {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.16;
  }

  body.packet-printing .packet-field-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
  }

  body.packet-printing .packet-presenter-safe .packet-field-grid {
    display: block;
    margin-bottom: 10px;
  }

  body.packet-printing .packet-presenter-safe .packet-field-grid .packet-field {
    display: grid;
    grid-template-columns: 1.45in minmax(0, 1fr);
    column-gap: 8px;
    margin-bottom: 5px;
  }

  body.packet-printing .packet-field {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 7px;
  }

  body.packet-printing .packet-field-full {
    display: block;
  }

  body.packet-printing .packet-field span {
    display: block;
    margin-bottom: 2px;
    color: #555;
    font-size: 6.7px;
    font-weight: 800;
    text-transform: uppercase;
  }

  body.packet-printing .packet-presenter-safe .packet-field span {
    color: var(--twu-blue);
    font-size: 9px;
    text-transform: none;
  }

  body.packet-printing .packet-presenter-safe .packet-field span::after {
    content: ":";
  }

  body.packet-printing .packet-field strong {
    display: block;
    color: #111;
    font-size: 9.2px;
    font-weight: 500;
    white-space: pre-wrap;
    overflow-wrap: break-word;
  }

  body.packet-printing .packet-presenter-safe .packet-field strong {
    font-size: 11.5px;
  }

  body.packet-printing .packet-field-prominent strong {
    color: var(--twu-blue);
    font-size: 10.2px;
    font-weight: 800;
  }

  body.packet-printing .packet-presenter-safe .packet-field-prominent strong {
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
  }

  body.packet-printing .packet-presenter-safe .packet-field-full {
    break-inside: auto;
    page-break-inside: auto;
    margin-top: 8px;
    padding-top: 7px;
    border-top: 1px solid #e4e1dc;
  }

  body.packet-printing .packet-presenter-safe .packet-field-full span {
    break-after: avoid;
    page-break-after: avoid;
  }

  body.packet-printing .packet-presenter-safe .packet-field-lead {
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: avoid;
    page-break-after: avoid;
  }

  body.packet-printing .packet-presenter-safe .packet-field-continuation {
    display: block;
    margin-top: 3px;
  }

  body.packet-printing .packet-presenter-safe .packet-field-full strong {
    font-size: 11.8px;
    font-weight: 400;
    line-height: 1.55;
  }

  body.packet-printing .packet-marker strong {
    color: #8b2f45;
    font-weight: 800;
  }

  body.packet-printing .packet-empty {
    color: #555;
    font-style: italic;
  }
}
