﻿:root {
  color-scheme: light;
  --ink: #251d21;
  --muted: #6f6870;
  --line: #ded6d8;
  --soft: #f8f4f1;
  --paper: #ffffff;
  --primary: #9f243c;
  --primary-dark: #74182c;
  --primary-soft: #fff1f4;
  --teal: #126f68;
  --amber: #b67a1e;
  --blue: #255f9e;
  --gold: #c9973a;
  --plum: #2c1b26;
  --cream: #f7efe7;
  --shadow: 0 18px 45px rgba(51, 35, 43, 0.11);
  --shadow-soft: 0 8px 22px rgba(51, 35, 43, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fafb 0%, #eef2f3 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
}



/* Professional Cherry Steppers theme */
body {
  background:
    radial-gradient(circle at top left, rgba(159, 36, 60, 0.10), transparent 34rem),
    linear-gradient(180deg, #fbf8f5 0%, #f3eee9 46%, #ebe4df 100%);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(44, 27, 38, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(44, 27, 38, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 70%);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-lockup > div {
  min-width: 0;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(116, 24, 44, 0.2);
}

.auth-brand .brand-mark {
  width: 58px;
  height: 58px;
  flex-basis: 58px;
  border-radius: 16px;
}

.auth-card,
.panel,
.modal-card,
.tabs,
.form-grid,
.availability-calendar-panel,
.import-panel,
.item,
.calendar-day,
.auto-roster-panel {
  border-color: rgba(44, 27, 38, 0.12);
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(159, 36, 60, 0.18);
  box-shadow: 0 24px 70px rgba(44, 27, 38, 0.18);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--teal));
}

.app-shell {
  width: min(1240px, 100%);
}

.topbar {
  margin: 4px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(44, 27, 38, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.topbar h1 {
  color: var(--plum);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  letter-spacing: 0;
}

.eyebrow {
  color: var(--primary);
  font-weight: 800;
}

.tabs {
  padding: 8px;
  border: 1px solid rgba(44, 27, 38, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.tab {
  background: transparent;
  color: #5d525b;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.tab:hover {
  background: #f4ecee;
  color: var(--primary-dark);
}

.tab.active {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  box-shadow: 0 8px 18px rgba(159, 36, 60, 0.22);
}

.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 18px rgba(159, 36, 60, 0.18);
}

.primary:hover {
  background: linear-gradient(135deg, #b82c47, var(--primary-dark));
}

.secondary,
.ghost,
.icon-btn {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(44, 27, 38, 0.16);
  color: var(--plum);
}

.secondary:hover,
.ghost:hover,
.icon-btn:hover {
  border-color: rgba(159, 36, 60, 0.34);
  background: var(--primary-soft);
}

.panel {
  border: 1px solid rgba(44, 27, 38, 0.10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.form-grid,
.import-panel,
.availability-calendar-panel,
.auto-roster-panel {
  background: linear-gradient(180deg, #fffdfa, var(--soft));
}

.field input,
.field select,
.field textarea {
  border-color: rgba(44, 27, 38, 0.18);
  background: #fffdfa;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(159, 36, 60, 0.13);
}

.item,
.calendar-day,
.roster-admin-table-wrap,
.user-table {
  box-shadow: 0 8px 20px rgba(51, 35, 43, 0.04);
}

.status-pill.ok,
.tag.good {
  background: #e7f6ef;
  color: var(--teal);
}

.tag.warn,
.status-pill.warn {
  background: #fff7e8;
  color: #9a6314;
}

.tag.bad,
.status-pill.bad {
  background: #fff1f4;
  color: var(--primary-dark);
}.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.8rem;
}
.app-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 16px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.05;
}

h2 {
  font-size: 1.25rem;
}

.eyebrow {
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.toolbar,
.section-heading,
.subnav,
.publish-actions,
.month-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar,
.section-heading {
  justify-content: space-between;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-menu-toggle, {
  display: none;
}

.tab,
.ghost,
.secondary,
.primary,
.icon-btn {
  min-height: 42px;
  border-radius: 8px;
  font-weight: 700;
}

.tab {
  background: #e9edf0;
  color: #384049;
}

.tab.active {
  background: var(--ink);
  color: white;
}

.primary {
  background: var(--primary);
  color: white;
  padding: 0 16px;
}

.primary:hover {
  background: var(--primary-dark);
}

.secondary,
.ghost {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0 14px;
}

.icon-btn {
  width: 42px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 1.5rem;
  line-height: 1;
}

.panel {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.panel.active {
  display: block;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 36, 39, 0.42);
}

.modal-card {
  display: grid;
  gap: 12px;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-card .section-heading {
  margin-bottom: 0;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.section-heading {
  margin-bottom: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 16px;
}

.field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: end;
  min-height: 42px;
  color: var(--ink);
  font-weight: 700;
}

.check-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.field span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 9px 10px;
}

.field-hint {
  color: var(--muted);
  display: inline;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
}
.field-help {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.field select[multiple] {
  min-height: 132px;
}

.field option:disabled {
  color: #a9b0b7;
}

.compact {
  min-width: 170px;
}

.wide {
  grid-column: span 2;
}

.form-action {
  align-self: end;
}

.hidden,
body.authenticated #authGate {
  display: none !important;
}

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


.availability-calendar-panel {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.availability-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.availability-calendar-header h3 {
  margin: 0;
}

.availability-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.availability-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.legend-dot.unavailable {
  background: var(--primary);
}

.legend-dot.recurring {
  background: var(--amber);
}

.legend-dot.partial {
  background: var(--blue);
}

.availability-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.availability-weekday {
  min-height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.availability-day {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 82px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--ink);
  text-align: left;
}

.availability-day:not(.empty):hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(179, 38, 58, 0.12);
}

.availability-day.empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
}

.availability-day.today {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  outline-offset: -2px;
}

.availability-day.unavailable {
  border-color: #b3263a;
  background: #fff1f3;
}

.availability-day.recurring:not(.unavailable) {
  border-color: #d99838;
  background: #fff8ea;
}

.availability-day.partial:not(.unavailable) {
  border-color: #7ba7df;
}

.availability-day.partial::after,
.availability-day.recurring::before {
  content: "";
  position: absolute;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.availability-day.recurring::before {
  top: 7px;
  background: var(--amber);
}

.availability-day.partial::after {
  top: 19px;
  background: var(--blue);
}

.availability-day-number {
  font-size: 1rem;
  font-weight: 800;
}

.availability-day-status {
  max-width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.availability-day.unavailable .availability-day-status {
  color: var(--primary-dark);
}

.availability-day.recurring:not(.unavailable) .availability-day-status {
  color: #7c4b08;
}

.availability-day-status.available {
  color: #73808a;
  font-weight: 600;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-tile {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

.dashboard-tile strong {
  font-size: 2rem;
  line-height: 1;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.subsection-heading {
  margin-bottom: 10px;
}

.calendar-list + .subsection-heading {
  margin-top: 18px;
}

.subsection-heading h3 {
  margin: 0;
}

.quick-link-grid {
  display: grid;
  gap: 8px;
}

.quick-link {
  justify-content: flex-start;
  text-align: left;
}

.user-list {
  margin-bottom: 16px;
}

.user-list-heading {
  margin-bottom: 10px;
}

.user-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.user-table-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.6fr) minmax(180px, 1.4fr) minmax(190px, 1.4fr) minmax(130px, 0.9fr) minmax(100px, 0.8fr) minmax(90px, 0.7fr) minmax(100px, 0.7fr) minmax(190px, 1.4fr);
  gap: 12px;
  align-items: center;
  min-width: 1080px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

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

.user-table-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-name-cell,
.user-skills-cell {
  display: grid;
  gap: 4px;
}

.user-name-cell {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.color-dot {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-top: 2px;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.contact-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.instance-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.instance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 260px);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.instance-select select {
  min-height: 94px;
}

.instance-controls {
  display: grid;
  gap: 10px;
}


.roster-calendar-view {
  display: grid;
  gap: 12px;
}

.roster-calendar-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.roster-calendar-title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.roster-calendar-weekdays,
.roster-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.roster-calendar-weekdays {
  gap: 1px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roster-calendar-weekdays span {
  padding: 0 8px 6px;
}

.roster-calendar-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}

.roster-calendar-cell {
  min-height: 210px;
  padding: 8px;
  background: white;
  display: grid;
  grid-template-rows: auto minmax(160px, 1fr);
  gap: 8px;
}

.roster-calendar-cell.outside {
  background: #f8fafb;
  color: var(--muted);
}

.roster-calendar-cell.today {
  box-shadow: inset 0 0 0 2px rgba(179, 38, 58, 0.26);
}

.roster-calendar-date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 900;
}

.roster-calendar-date small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roster-calendar-events {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
}

.roster-calendar-events.timed {
  position: relative;
  min-height: calc(var(--calendar-day-span, 840) * 0.34px);
  padding-left: 0;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(60px * 0.34 - 1px),
      rgba(44, 27, 38, 0.08) calc(60px * 0.34)
    );
}

.roster-calendar-empty {
  color: var(--muted);
  font-size: 0.74rem;
}

.roster-calendar-event {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--event-color, var(--blue)) 75%, white);
  border-left: 4px solid var(--event-color, var(--blue));
  border-radius: 7px;
  background: color-mix(in srgb, var(--event-color, var(--blue)) 88%, white);
  color: var(--event-text, white);
  padding: 7px 8px;
  text-align: left;
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.roster-calendar-events.timed .roster-calendar-event {
  position: absolute;
  top: clamp(0px, calc((var(--event-start, 540) - var(--calendar-day-start, 540)) * 0.34px), calc(var(--calendar-day-span, 840) * 0.34px - 44px));
  min-height: clamp(32px, calc(var(--event-duration, 60) * 0.34px), 180px);
  left: var(--event-left, 0%);
  width: var(--event-width, 100%);
  right: auto;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.12);
}

.roster-calendar-event:hover,
.roster-calendar-event:focus-visible {
  border-color: color-mix(in srgb, var(--event-color, var(--blue)) 88%, #111827);
  outline: none;
  box-shadow: 0 12px 26px rgba(17, 24, 39, 0.2);
}

.roster-calendar-event.unassigned {
  border-left-color: #b45309;
}

.roster-calendar-event.published {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), 0 10px 20px rgba(17, 24, 39, 0.12);
}

.roster-calendar-time {
  color: color-mix(in srgb, var(--event-text, white) 76%, transparent);
  font-size: 0.72rem;
  font-weight: 800;
}

.roster-calendar-name,
.roster-calendar-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roster-calendar-name {
  font-weight: 900;
  font-size: 0.84rem;
}

.roster-calendar-meta {
  color: color-mix(in srgb, var(--event-text, white) 76%, transparent);
  font-size: 0.72rem;
}

@media (max-width: 760px) {
  .roster-calendar-weekdays {
    display: none;
  }

  .roster-calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 0;
    background: transparent;
    gap: 8px;
    overflow: visible;
  }

  .roster-calendar-cell {
    min-height: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
  }

  .roster-calendar-events.timed {
    min-height: auto;
    background: transparent;
    display: grid;
    gap: 6px;
  }

  .roster-calendar-events.timed .roster-calendar-event {
    position: relative;
    top: auto;
    min-height: 0;
    left: auto;
    width: 100%;
    right: auto;
  }

  .roster-calendar-cell.outside {
    display: none;
  }

  .roster-calendar-date {
    display: grid;
    justify-items: center;
    justify-content: center;
    gap: 2px;
  }

  .roster-calendar-date span {
    font-size: 1.15rem;
  }
}
.roster-admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.roster-admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.roster-admin-table th,
.roster-admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.roster-admin-table th {
  background: var(--soft);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.roster-admin-row {
  cursor: pointer;
}

.roster-admin-row:hover,
.roster-admin-row.expanded {
  background: #fbfcfd;
}

.roster-admin-row:focus-visible {
  outline: 2px solid rgba(179, 38, 58, 0.35);
  outline-offset: -2px;
}

.roster-admin-expanded-row td {
  padding: 0;
  background: #fbfcfd;
}

.roster-table-actions {
  white-space: nowrap;
}

.compact-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
}

.icon-action {
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1rem;
  line-height: 1;
}

.icon-action span {
  display: block;
  transform: translateY(-1px);
}

.icon-action:hover {
  transform: translateY(-1px);
}
.publish-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  vertical-align: middle;
}

.publish-status span:first-child {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1;
}

.publish-status.published {
  background: #e7f6ef;
  color: var(--teal);
}

.publish-status.published span:first-child {
  background: var(--teal);
  color: white;
}

.publish-status.draft {
  background: #fff7e8;
  color: var(--amber);
}

.publish-status.draft span:first-child {
  background: white;
  border: 1px solid currentColor;
}
.tag-row .publish-status,
.item-title .publish-status:first-child {
  margin-left: 0;
}

.collapsed-allocation {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.collapsed-allocation-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
}
.auto-roster-panel {
  display: grid;
  gap: 12px;
  margin: 12px 0 14px;
  padding: 14px;
  border: 1px solid #d7dde7;
  border-radius: 8px;
  background: #f8fafc;
}

.auto-roster-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.auto-roster-heading h3 {
  margin: 2px 0 4px;
}

.auto-roster-list {
  display: grid;
  gap: 8px;
}

.auto-roster-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.auto-roster-item.suggested {
  border-color: #b9d8c8;
  background: #f4fbf7;
}

.auto-roster-item.blocked {
  border-color: #f5c2c7;
  background: #fff8f9;
}
.auto-roster-actions {
  justify-content: flex-start;
  margin-top: 2px;
}

.auto-roster-actions button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 0.82rem;
}

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.item-title {
  font-weight: 800;
  margin-bottom: 5px;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

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

.map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

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

.map-preview {
  width: 100%;
  min-height: 210px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.publish-actions {
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.publish-check {
  align-self: center;
}

.danger {
  background: #fff1f2;
  color: #a5152b;
  border: 1px solid #fecdd3;
  min-height: 36px;
  border-radius: 8px;
  padding: 0 10px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.8rem;
  font-weight: 800;
}

.tag {
  background: #eef2f5;
  color: #39424d;
}

.tag.good {
  background: #e7f6ef;
  color: var(--teal);
}

.staff-tag {
  border: 1px solid currentColor;
  background: white;
}

.tag.warn,
.status-pill.warn {
  background: #fff7e8;
  color: var(--amber);
}

.tag.bad,
.status-pill.bad {
  background: #fff1f2;
  color: #a5152b;
}

.status-pill.ok {
  background: #e8f1ff;
  color: var(--blue);
}

.notice,
.empty-state {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  margin-bottom: 12px;
}

.notice:empty {
  display: none;
}

.calendar-day {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.clickable-card {
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.clickable-card:hover,
.clickable-card:focus-visible {
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(31, 78, 121, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.date-badge {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 72px;
  border-radius: 8px;
  background: #f1f5f6;
  font-weight: 900;
}

.date-badge span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 16px;
}

.detail-main {
  display: grid;
  gap: 12px;
}

.detail-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.detail-card h3 {
  margin: 0 0 12px;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 12px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-list dd {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-notes {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-notes p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  word-break: break-word;
}


.email-preview {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.email-preview > strong {
  display: block;
  margin-bottom: 8px;
}

.email-preview-body {
  display: grid;
  gap: 10px;
  max-width: 720px;
  color: var(--ink);
  line-height: 1.5;
}

.email-preview-body p {
  margin: 0;
}

.email-roster-items {
  display: grid;
  gap: 10px;
}

.email-roster-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.email-event-time {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 800;
}

.detail-map {
  min-width: 0;
}

@media (max-width: 560px) {
  .detail-card {
    padding: 12px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-list dt {
    font-size: 0.72rem;
  }

  .detail-notes {
    margin-top: 12px;
    padding-top: 10px;
  }

  .detail-notes p {
    font-size: 0.94rem;
  }
}
@media (max-width: 820px) {
  .topbar,
  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tabs {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .dashboard-grid,
  .dashboard-layout,
  .detail-page,
  .detail-list div {
    grid-template-columns: 1fr;
  }

  .wide {
    grid-column: span 1;
  }

  .item,
  .contact-row,
  .instance-row,
  .calendar-day {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 460px) {
  
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  font-size: 1.8rem;
}
.app-shell {
    padding: 12px;
  }

  .panel {
    padding: 12px;
  }

  .tabs {
    gap: 6px;
  }

  .tab {
    font-size: 0.9rem;
  }
}

.item.muted {
  opacity: 0.62;
}

.inline-notice {
  align-self: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.import-row .publish-check {
  align-self: start;
  margin-top: 2px;
}

.import-workspace {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

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

.import-panel .subsection-heading {
  margin-bottom: 10px;
}

.compact-grid {
  grid-template-columns: minmax(220px, 2fr) auto;
}

.import-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
}

.import-row .tag-row {
  margin-top: 8px;
}

.admin-roster-controls {
  align-items: end;
  flex-wrap: wrap;
}

.location-group {
  display: grid;
  gap: 12px;
}

.location-heading {
  padding: 8px 2px 0;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.venue-event-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.venue-event-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.diagnostic-detail {
  white-space: pre-wrap;
  overflow-x: auto;
  margin: 10px 0 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #39424d;
  font-size: 0.78rem;
}


@media (max-width: 640px) {
  .availability-calendar-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .availability-calendar-header .month-actions {
    width: 100%;
    justify-content: space-between;
  }

  .availability-calendar {
    gap: 4px;
  }

  .availability-weekday {
    min-height: 22px;
    font-size: 0.68rem;
  }

  .availability-day {
    min-height: 58px;
    padding: 6px 4px;
    border-radius: 6px;
  }

  .availability-day-number {
    font-size: 0.88rem;
  }

  .availability-day-status {
    font-size: 0.62rem;
  }

  .availability-day-status.available {
    display: none;
  }

  .availability-day.partial::after,
  .availability-day.recurring::before {
    right: 4px;
    width: 6px;
    height: 6px;
  }

  .availability-day.recurring::before {
    top: 5px;
  }

  .availability-day.partial::after {
    top: 14px;
  }
}

@media (max-width: 760px) {
  .roster-admin-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .roster-admin-table,
  .roster-admin-table thead,
  .roster-admin-table tbody,
  .roster-admin-table tr,
  .roster-admin-table th,
  .roster-admin-table td {
    display: block;
    min-width: 0;
  }

  .roster-admin-table thead {
    display: none;
  }

  .roster-admin-row {
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
  }

  .roster-admin-table td {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 8px;
    padding: 9px 10px;
    border-bottom: 1px solid var(--line);
  }

  .roster-admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
  }

  .roster-table-actions {
    white-space: normal;
    justify-content: flex-start;
  }

  .icon-action {
    width: 36px;
    min-width: 36px;
    height: 36px;
    min-height: 36px;
  }

  .roster-admin-expanded-row {
    margin: -10px 0 10px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 8px 8px;
    background: #fbfcfd;
  }

  .roster-admin-expanded-row td {
    display: block;
  }

  .roster-admin-expanded-row td::before {
    display: none;
  }

  .collapsed-allocation-controls {
    grid-template-columns: 1fr;
  }
  .auto-roster-heading,
  .auto-roster-item {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .auto-roster-heading .actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .app-shell {
    padding: 10px;
  }

  .topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 0 12px;
    background: linear-gradient(180deg, #f8fafb 0%, rgba(248, 250, 251, 0.96) 100%);
  }

  .topbar > div:first-child {
    min-width: 0;
  }

  .topbar h1 {
    font-size: 1.2rem;
    line-height: 1.15;
  }

  .topbar .eyebrow,
  #viewerField,
  #saveStatus,
  #signOut {
    display: none !important;
  }

  .topbar .toolbar {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
  }

  #authStatus:not(.hidden) {
    display: inline-flex;
    max-width: 44vw;
    min-height: 34px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .mobile-menu-toggle:not(.hidden) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
  }

  .tabs {
    display: none;
    margin: 0 0 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
  }

  .app-shell.nav-open .tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .tabs .tab {
    width: 100%;
    text-align: left;
  }
#home.active {
    display: flex;
    flex-direction: column;
  }

  #home > .section-heading,
  #dashboardTiles {
    display: none;
  }

  .dashboard-layout {
    display: contents;
  }

  .dashboard-layout > section:first-child {
    order: 1;
  }

  .dashboard-layout > section:last-child {
    order: 2;
    margin-top: 18px;
  }

  .dashboard-layout > section:first-child .subsection-heading:first-child {
    margin-top: 0;
  }
}


#eventForm.modal-card {
  width: min(920px, 100%);
}

.compact-check {
  min-height: 38px;
  align-self: end;
}

.roster-admin-row.focused {
  box-shadow: inset 3px 0 0 var(--primary);
}

.allocation-summary-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  width: min(340px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 120px));
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.allocation-summary-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.allocation-summary-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.allocation-summary-content {
  display: grid;
  gap: 10px;
}

.allocation-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.allocation-summary-table th,
.allocation-summary-table td {
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.allocation-summary-table th:last-child,
.allocation-summary-table td:last-child {
  width: 72px;
  text-align: right;
  font-weight: 800;
}

@media (max-width: 760px) {
  .allocation-summary-panel {
    position: static;
    width: auto;
    max-height: none;
    margin-bottom: 12px;
  }

  .allocation-summary-heading {
    grid-template-columns: 1fr;
  }
}

.allocation-summary-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.allocation-summary-panel.minimized {
  width: min(280px, calc(100vw - 36px));
  max-height: none;
}

.allocation-summary-panel.minimized .allocation-summary-heading {
  margin-bottom: 6px;
}

.allocation-summary-panel.minimized .field {
  display: none;
}

.allocation-summary-heading > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: start;
}

.allocation-summary-heading > div .eyebrow {
  grid-column: 1 / -1;
}

.allocation-summary-heading > div h3 {
  min-width: 0;
}

.allocation-summary-heading > div .icon-btn {
  width: 34px;
  height: 34px;
  min-height: 34px;
}

.staff-tag {
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.allocation-summary-panel.minimized {
  padding: 10px 12px;
}

.allocation-summary-panel.minimized .allocation-summary-content {
  display: none;
}

.allocation-summary-panel.minimized .allocation-summary-heading {
  grid-template-columns: 1fr;
  gap: 0;
}

.allocation-summary-panel {
  position: fixed;
  padding-top: 16px;
}

.allocation-summary-heading {
  padding-right: 38px;
}

#allocationSummaryToggle {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  line-height: 1;
  font-size: 1rem;
  font-weight: 900;
  border-radius: 6px;
}

.allocation-summary-heading > div {
  display: block;
}

.allocation-summary-heading > div .eyebrow {
  margin-right: 0;
}

.allocation-summary-heading > div h3 {
  padding-right: 0;
}

.allocation-summary-heading > div .icon-btn {
  width: 28px;
  height: 28px;
  min-height: 28px;
}

.allocation-summary-panel.minimized {
  padding: 12px 46px 12px 12px;
}

.allocation-summary-panel.minimized .allocation-summary-heading {
  padding-right: 0;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .allocation-summary-panel {
    display: none !important;
  }
}

.roster-admin-row.unassigned {
  background: #fff8e8;
  box-shadow: inset 4px 0 0 var(--amber);
}

.roster-admin-row.unassigned:hover,
.roster-admin-row.unassigned.expanded {
  background: #fff3d6;
}

.roster-admin-row.unassigned.focused {
  box-shadow: inset 4px 0 0 var(--primary), inset 8px 0 0 rgba(170, 101, 13, 0.32);
}

@media (max-width: 760px) {
  .roster-admin-row.unassigned {
    border-color: rgba(170, 101, 13, 0.42);
  }
}







@media (max-width: 640px) {
  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .auth-brand .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }

  .topbar {
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
  }

  .topbar .brand-lockup {
    gap: 9px;
  }

  .tabs {
    background: rgba(255, 255, 255, 0.96);
  }
}

/* Final theme polish */
.auth-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(159, 36, 60, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(44, 27, 38, 0.18);
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--gold), var(--teal));
}

.topbar {
  margin: 4px 0 14px;
  padding: 16px 18px;
  border: 1px solid rgba(44, 27, 38, 0.10);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.panel {
  border: 1px solid rgba(44, 27, 38, 0.10);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.tabs {
  padding: 8px;
  border: 1px solid rgba(44, 27, 38, 0.10);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 640px) {
  .topbar {
    margin: 0 0 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.94);
  }
}

/* Navigation refresh */
.tabs {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.tabs::-webkit-scrollbar {
  height: 8px;
}

.tabs::-webkit-scrollbar-thumb {
  background: rgba(159, 36, 60, 0.22);
  border-radius: 999px;
}

.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #5d525b;
  scroll-snap-align: start;
  white-space: nowrap;
}

.tab::before {
  content: attr(data-nav-icon);
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 7px;
  background: rgba(44, 27, 38, 0.07);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.tab:hover {
  border-color: rgba(159, 36, 60, 0.18);
  background: #fff7f2;
  color: var(--primary-dark);
}

.tab.active {
  border-color: rgba(159, 36, 60, 0.28);
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  box-shadow: 0 8px 18px rgba(159, 36, 60, 0.22);
}

.tab.active::before {
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

@media (max-width: 640px) {
  .tabs {
    overflow: visible;
  }

  .app-shell.nav-open .tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .tabs .tab {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 12px 0 10px;
    border-color: rgba(44, 27, 38, 0.10);
    background: #fffdfa;
  }

  .tabs .tab.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  }
}

/* Grouped navigation */
.tabs {
  display: flex;
  gap: 7px;
  align-items: center;
  overflow: visible;
}

.nav-group {
  position: relative;
  flex: 0 0 auto;
}

.nav-group summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px 0 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #5d525b;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "▾";
  color: var(--muted);
  font-size: 0.72rem;
}

.nav-group[open] summary,
.nav-group:has(.tab.active) summary,
.nav-group summary:hover {
  border-color: rgba(159, 36, 60, 0.18);
  background: #fff7f2;
  color: var(--primary-dark);
}

.nav-group-icon {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 4px;
  border-radius: 7px;
  background: rgba(44, 27, 38, 0.07);
  color: var(--primary-dark);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(44, 27, 38, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(51, 35, 43, 0.16);
}

.nav-menu .tab {
  width: 100%;
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .tabs {
    overflow: visible;
  }

  .app-shell.nav-open .tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .nav-group,
  .nav-group summary,
  .nav-menu {
    width: 100%;
  }

  .nav-group summary {
    min-height: 44px;
    border-color: rgba(44, 27, 38, 0.10);
    background: #fffdfa;
  }

  .nav-menu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
    background: #fbf7f4;
  }
}



/* Feedback */
.feedback-card textarea {
  min-height: 140px;
}

.feedback-message {
  margin-top: 10px;
  white-space: pre-wrap;
  line-height: 1.5;
}

.feedback-item .actions {
  min-width: 150px;
}

#openFeedback {
  min-height: 38px;
}

@media (max-width: 640px) {
  #openFeedback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 10px;
  }
}







