:root {
  --ink: #151515;
  --charcoal: #232323;
  --muted: #686868;
  --line: #dedede;
  --paper: #ffffff;
  --wash: #f4f6f8;
  --blue: #2e629d;
  --blue-deep: #285589;
  --blue-soft: #eaf2fa;
  --gold: #f3ad2b;
  --gold-soft: #fff6df;
  --green: #2f7d59;
  --danger: #b83333;
  --shadow: 0 20px 60px rgba(20, 28, 38, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: "Source Sans 3", "Lato", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  color: var(--paper);
  background: var(--charcoal);
  border-bottom: 5px solid var(--gold);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 108px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  width: 220px;
  max-width: 42vw;
  height: auto;
  display: block;
}

.header-copy h1,
.status-copy h2,
.section-heading h2,
.dialog-head h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.header-copy h1 {
  font-size: 32px;
  line-height: 1.05;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-family: "Crimson Text", Georgia, serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1;
}

.header-action,
.primary-button,
.secondary-button,
.icon-only {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.header-action {
  color: var(--paper);
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.7);
  padding: 0 18px;
}

.primary-button {
  color: var(--paper);
  background: var(--blue);
  padding: 0 18px;
}

.secondary-button {
  color: var(--blue-deep);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 0 18px;
}

.icon-only {
  width: 44px;
  padding: 0;
  color: var(--ink);
  background: var(--wash);
}

.header-action svg,
.primary-button svg,
.secondary-button svg,
.icon-only svg,
.tool-button svg,
.photo-delete svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.app-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: 0 12px 34px rgba(20, 28, 38, 0.08);
  overflow: hidden;
}

.app-switch {
  min-height: 58px;
  border: 0;
  color: var(--charcoal);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.app-switch.is-active {
  color: var(--paper);
  background: var(--blue-deep);
}

.app-switch svg {
  width: 19px;
  height: 19px;
}

.app-workspace {
  display: none;
}

.app-workspace.is-active {
  display: block;
}

.status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.status-copy h2 {
  font-size: 30px;
  line-height: 1.1;
}

.date-line {
  margin: 8px 0 0;
  color: var(--muted);
}

.progress-wrap {
  display: grid;
  grid-template-columns: 88px minmax(120px, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 250px;
}

.progress-ring {
  --progress: 0deg;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) var(--progress), #d9e2ec 0deg);
  position: relative;
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--paper);
}

.progress-ring span {
  position: relative;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  font-size: 19px;
}

.progress-wrap strong,
.progress-wrap span {
  display: block;
}

.progress-wrap strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

.progress-wrap span {
  color: var(--muted);
  font-size: 14px;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.date-picker {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  padding: 0 14px;
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.date-picker input {
  width: 144px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  outline: 0;
}

.date-picker select {
  width: 100%;
  min-width: 190px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 14px;
  outline: 0;
}

.checklist-shell {
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.section-heading {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.dialog-head h2 {
  font-size: 22px;
  line-height: 1.1;
}

.saved-indicator {
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.checklist {
  display: grid;
}

.task-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.task-row:last-child {
  border-bottom: 0;
}

.task-row.is-done {
  background: linear-gradient(90deg, rgba(47, 125, 89, 0.09), rgba(255, 255, 255, 0));
}

.check-button {
  width: 48px;
  height: 48px;
  border: 2px solid #b9c6d4;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
}

.check-button[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green);
}

.check-mark {
  width: 16px;
  height: 26px;
  border: solid var(--paper);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg) translate(-2px, -2px);
  opacity: 0;
}

.check-button[aria-pressed="true"] .check-mark {
  opacity: 1;
}

.task-content {
  min-width: 0;
}

.task-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.task-title {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 20px;
  line-height: 1.25;
}

.task-row.is-done .task-title {
  color: var(--green);
}

.task-detail {
  margin: 7px 0 0;
  color: #4a4a4a;
}

.category-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  padding: 4px 10px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.task-tools {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.note-input {
  min-height: 44px;
  flex: 1 1 260px;
  max-width: 560px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  resize: vertical;
}

.tool-button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue-deep);
  background: var(--gold-soft);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.photo-list {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.photo-thumb {
  width: 132px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  position: relative;
}

.photo-thumb img {
  display: block;
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: var(--wash);
}

.photo-thumb figcaption {
  min-height: 34px;
  padding: 6px 8px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.photo-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--paper);
  background: rgba(20, 20, 20, 0.78);
  display: grid;
  place-items: center;
}

.task-dialog {
  width: min(980px, calc(100% - 28px));
  max-height: min(840px, calc(100% - 28px));
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
}

.task-dialog::backdrop {
  background: rgba(21, 21, 21, 0.6);
}

.dialog-card {
  background: var(--paper);
}

.dialog-head,
.dialog-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 22px;
}

.dialog-head {
  border-bottom: 1px solid var(--line);
}

.dialog-actions {
  border-top: 1px solid var(--line);
}

.task-editor {
  display: grid;
  gap: 14px;
  padding: 22px;
  max-height: 58vh;
  overflow: auto;
}

.editor-row {
  display: grid;
  grid-template-columns: 44px minmax(150px, 0.8fr) minmax(220px, 1.1fr) minmax(260px, 1.4fr) 92px;
  gap: 10px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--wash);
}

.editor-order {
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 800;
  text-align: center;
  padding-top: 12px;
}

.editor-field {
  display: grid;
  gap: 6px;
}

.editor-field label {
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.editor-field input,
.editor-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 10px;
}

.editor-field textarea {
  min-height: 76px;
  resize: vertical;
}

.editor-buttons {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.editor-mini {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-deep);
  background: var(--paper);
  display: grid;
  place-items: center;
}

.editor-mini.delete {
  color: var(--danger);
}

.empty-state {
  padding: 40px 26px;
  color: var(--muted);
}

.service-hub {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.service-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 26px;
  border-top: 6px solid var(--gold);
  border-bottom: 1px solid var(--line);
}

.service-hero h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 30px;
  line-height: 1.1;
  text-transform: uppercase;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.week-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.week-button {
  color: var(--blue-deep);
  background: var(--paper);
  border: 1px solid var(--line);
}

.service-date-picker {
  min-width: min(360px, 48vw);
}

.service-link[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.service-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-card {
  min-height: 128px;
  display: grid;
  align-content: start;
  gap: 5px;
  background: var(--paper);
  padding: 20px;
}

.stat-card svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.stat-label {
  color: var(--muted);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 31px;
  line-height: 1;
}

.stat-card small,
.muted-line {
  color: var(--muted);
  font-size: 14px;
}

.workspace-tabs {
  display: flex;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.tab-button {
  min-width: 132px;
  min-height: 58px;
  flex: 1 0 auto;
  border: 0;
  color: var(--charcoal);
  background: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.tab-button.is-active {
  color: var(--paper);
  background: var(--blue-deep);
}

.tab-button svg {
  width: 18px;
  height: 18px;
}

.service-panel {
  display: none;
}

.service-panel.is-active {
  display: block;
}

.compact-heading {
  min-height: 74px;
  padding: 18px 22px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  padding: 22px;
}

.ops-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 18px;
}

.ops-panel.wide {
  grid-column: 1 / -1;
}

.ops-panel h3,
.team-group h3,
.setup-card h3 {
  margin: 0 0 14px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 15px;
  text-transform: uppercase;
}

.song-list,
.drive-list,
.change-list,
.priority-list,
.team-list {
  display: grid;
  gap: 10px;
}

.song-item,
.drive-file,
.change-item,
.priority-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 14px;
}

.song-item strong,
.drive-file strong,
.change-item strong,
.priority-item strong {
  display: block;
}

.change-kind {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  margin-bottom: 8px;
  color: var(--blue-deep);
  background: var(--blue-soft);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.song-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.song-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.song-copy,
.drive-file-copy {
  min-width: 0;
}

.song-duration {
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.drive-file {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.drive-file svg {
  width: 22px;
  height: 22px;
  color: var(--blue);
}

.drive-download {
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.drive-expected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.drive-expected strong,
.drive-expected span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.drive-expected strong {
  background: transparent;
  color: var(--muted);
  padding-left: 0;
}

.priority-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.priority-item svg {
  width: 22px;
  height: 22px;
  color: var(--green);
}

.service-order {
  display: grid;
  background: #fbfcfd;
}

.order-grid {
  display: grid;
  grid-template-columns: 46px minmax(260px, 1fr) minmax(220px, 0.62fr);
  gap: 12px;
  align-items: start;
}

.order-row {
  position: relative;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.order-row.has-change {
  box-shadow: inset 5px 0 0 var(--gold);
}

.order-row:last-child {
  border-bottom: 0;
}

.order-index {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--paper);
  background: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.order-title-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-cue h3,
.setup-card h3 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.25;
}

.order-meta,
.order-details,
.setup-card p {
  margin: 6px 0 0;
  color: #4a4a4a;
}

.order-cue,
.order-timing,
.order-checks {
  min-width: 0;
}

.order-cue {
  grid-column: 2;
}

.order-details {
  font-size: 14px;
}

.order-timing {
  grid-column: 2;
}

.order-checks {
  grid-column: 3;
  grid-row: 1 / span 2;
}

.order-timing,
.order-checks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.order-checks {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.order-length {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
}

.mini-pill {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #5b4210;
  padding: 4px 9px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.booth-action {
  color: var(--blue-deep);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.25;
}

.team-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 22px;
}

.team-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfd;
  padding: 16px;
}

.team-group.is-soundbooth {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.team-person {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 10px;
}

.team-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: var(--paper);
  object-fit: cover;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
}

.status-pill {
  border-radius: 999px;
  padding: 4px 9px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-C {
  color: #ffffff;
  background: var(--green);
}

.status-U {
  color: #5b4210;
  background: var(--gold-soft);
  border: 1px solid #e4c577;
}

.status-D {
  color: #ffffff;
  background: var(--danger);
}

.stage-setup-panel,
.mic-layout-panel {
  margin-top: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stage-setup-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.setup-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  background: #fbfcfd;
  padding: 18px;
}

.setup-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.setup-icon svg {
  width: 22px;
  height: 22px;
}

.setup-count {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
}

.setup-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #333333;
  font-size: 14px;
}

.setup-list li + li {
  margin-top: 5px;
}

.mic-layout-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
}

.mic-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #fbfcfd;
  padding: 18px;
}

.mic-card h3 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.2;
}

.mic-card p {
  margin: 5px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.mic-card strong {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  padding: 4px 9px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
}

.mic-swatch {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 28, 38, 0.18);
  background: #aeb8c2;
}

.mic-red .mic-swatch {
  background: #c9282d;
}

.mic-green .mic-swatch {
  background: #2f7d59;
}

.mic-assign .mic-swatch {
  background:
    linear-gradient(135deg, transparent 47%, rgba(0, 0, 0, 0.22) 48%, rgba(0, 0, 0, 0.22) 52%, transparent 53%),
    #e5e9ee;
}

.compact-empty {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

:focus-visible {
  outline: 3px solid rgba(243, 173, 43, 0.8);
  outline-offset: 3px;
}

@media (max-width: 920px) {
  .header-inner,
  .status-panel,
  .service-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .service-hero {
    display: grid;
  }

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

  .service-actions {
    justify-content: flex-start;
  }

  .week-controls {
    width: 100%;
  }

  .service-date-picker {
    flex: 1 1 auto;
  }

  .progress-wrap {
    width: 100%;
  }

  .service-stat-grid,
  .overview-grid,
  .stage-setup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-grid {
    grid-template-columns: 42px minmax(0, 1fr) minmax(140px, auto);
  }

  .order-timing {
    grid-column: 2;
    grid-row: auto;
  }

  .order-checks {
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: flex-start;
  }

  .editor-row {
    grid-template-columns: 36px 1fr;
  }

  .editor-field,
  .editor-buttons {
    grid-column: 2;
  }

  .editor-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 0;
    padding: 18px 0;
    gap: 14px;
  }

  .brand img {
    width: 178px;
    max-width: 100%;
  }

  .header-copy h1 {
    font-size: 25px;
  }

  .status-panel,
  .service-hero,
  .section-heading,
  .task-row {
    padding: 18px;
  }

  .status-copy h2,
  .service-hero h2 {
    font-size: 24px;
  }

  .service-stat-grid,
  .overview-grid,
  .team-board,
  .stage-setup-summary {
    grid-template-columns: 1fr;
  }

  .service-actions,
  .service-actions .primary-button,
  .service-actions .secondary-button,
  .service-actions .service-link {
    width: 100%;
  }

  .service-actions .primary-button,
  .service-actions .secondary-button,
  .service-actions .service-link {
    justify-content: center;
  }

  .drive-file {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .drive-download {
    grid-column: 2;
  }

  .stat-card {
    min-height: 106px;
  }

  .workspace-tabs {
    justify-content: flex-start;
  }

  .app-switcher {
    grid-template-columns: 1fr;
  }

  .tab-button {
    min-width: 118px;
  }

  .team-board,
  .overview-grid {
    padding: 16px;
  }

  .order-row {
    padding: 16px;
  }

  .order-grid {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .order-timing,
  .order-checks {
    grid-column: 2;
    grid-row: auto;
  }

  .order-index {
    min-width: 30px;
    height: 30px;
  }

  .team-person {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .status-pill {
    grid-column: 2;
    width: max-content;
  }

  .task-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
  }

  .check-button {
    width: 42px;
    height: 42px;
  }

  .task-top,
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .saved-indicator {
    white-space: normal;
  }

  .task-title {
    font-size: 18px;
  }

  .date-picker,
  .primary-button,
  .secondary-button,
  .header-action,
  .service-actions {
    width: 100%;
  }

  .service-actions .primary-button,
  .service-actions .secondary-button {
    width: 100%;
  }

  .date-picker {
    justify-content: space-between;
  }

  .date-picker input {
    width: 148px;
  }

  .dialog-head,
  .dialog-actions,
  .task-editor {
    padding: 16px;
  }
}

@media print {
  .site-header,
  .app-switcher,
  .status-actions,
  .service-actions,
  .workspace-tabs,
  .task-tools,
  .photo-delete,
  .task-dialog {
    display: none;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  main {
    width: 100%;
    margin: 0;
  }

  .status-panel,
  .service-hub,
  .checklist-shell,
  .stage-setup-panel,
  .mic-layout-panel {
    box-shadow: none;
    border-color: #999999;
  }

  .service-panel {
    display: block;
    break-inside: avoid;
  }

  .app-workspace {
    display: block;
  }
}
