:root {
  color-scheme: light;
  --bg: #f3f7f5;
  --surface: #ffffff;
  --surface-strong: #eef5f1;
  --ink: #17211d;
  --muted: #63716c;
  --line: #dbe4df;
  --green: #1f8a5f;
  --green-deep: #176c50;
  --gold: #f2c94c;
  --red: #d94b42;
  --red-deep: #b73730;
  --blue: #315f8f;
  --shadow: 0 10px 24px rgba(23, 33, 29, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

a {
  color: inherit;
}

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

button,
.primary-button,
.secondary-button,
.danger-button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button,
button {
  background: var(--green-deep);
  color: #fff;
}

.secondary-button {
  background: var(--surface-strong);
  color: var(--green-deep);
}

.danger-button {
  background: #fff1ef;
  color: var(--red-deep);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(246, 248, 247, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.03rem;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 0;
}

.brand-logo {
  width: 96px;
  height: 48px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-drawer {
  position: relative;
}

.menu-drawer summary {
  min-height: 44px;
  border-radius: 8px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 900;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.menu-drawer summary::-webkit-details-marker {
  display: none;
}

.menu-icon {
  position: relative;
  width: 18px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.menu-icon::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  border-top: 3px solid currentColor;
}

.side-nav {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: min(280px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(23, 33, 29, 0.2);
}

.side-nav a {
  min-height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 12px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 850;
  text-decoration: none;
}

.side-nav a[aria-current="page"] {
  background: var(--ink);
  color: #fff;
}

.nav-notification {
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #cf4138;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.side-nav .menu-sign-out {
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  background: #fff1ef;
  color: var(--red-deep);
}

.page {
  width: min(100%, 940px);
  margin: 0 auto;
  padding: 16px 16px 88px;
}

.notice,
.error {
  margin-bottom: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 750;
}

.notice {
  background: #e6f4ed;
  color: #15583e;
}

.error {
  background: #fff1ef;
  color: var(--red-deep);
}

.login-panel {
  width: min(100%, 420px);
  margin: 8vh auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-help {
  margin: 1rem 0 0;
  text-align: center;
}

.login-help a {
  color: var(--green-dark);
  font-weight: 700;
}

.login-mark {
  width: min(250px, 72vw);
  height: auto;
  margin-bottom: 18px;
}

.login-mark img {
  display: block;
  width: 100%;
  height: auto;
}

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

h1 {
  margin-bottom: 10px;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 4px;
  font-size: 1rem;
  letter-spacing: 0;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--green-deep);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dashboard-hero {
  min-height: 204px;
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px;
  border-radius: 8px;
  background: #14231d;
  border: 1px solid #14231d;
  border-left: 7px solid #14a35f;
  box-shadow: 0 16px 36px rgba(20, 35, 29, 0.18);
}

.dashboard-hero h1 {
  max-width: 620px;
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 2.25rem;
}

.dashboard-kicker,
.section-kicker {
  margin-bottom: 8px;
  color: #67dda3;
  font-size: 0.75rem;
  font-weight: 920;
  text-transform: uppercase;
}

.dashboard-hero-side {
  display: grid;
  gap: 10px;
}

.dashboard-today {
  display: grid;
  gap: 2px;
  color: #ffffff;
}

.dashboard-today span {
  color: #8faf9f;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-today strong {
  font-size: 0.96rem;
}

.assistant-cta {
  width: 100%;
  min-height: 54px;
  border-radius: 8px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #ffffff;
  color: #14231d;
  text-decoration: none;
  font-weight: 900;
}

.assistant-cta-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: block;
  position: relative;
  background: var(--green);
  flex: 0 0 auto;
}

.assistant-cta-icon::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 6px;
  width: 10px;
  height: 14px;
  border: 3px solid #ffffff;
  border-radius: 10px;
}

.assistant-cta-icon::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 20px;
  width: 12px;
  height: 6px;
  border-bottom: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
  border-radius: 0 0 10px 10px;
}

.dashboard-section {
  margin-top: 26px;
}

.sunday-command-center {
  margin-top: 0;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
  padding: 18px;
  background: #eaf4ef;
}

.sunday-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.sunday-heading h2,
.sunday-heading p {
  margin-bottom: 0;
}

.sunday-heading .section-kicker {
  color: var(--green-deep);
}

.sunday-date {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 1px;
}

.sunday-date span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.sunday-date strong {
  color: var(--green-deep);
  font-size: 0.94rem;
}

.dashboard-metrics,
.hub-action-grid,
.dashboard-alerts {
  display: grid;
  gap: 10px;
}

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

.dashboard-metric {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(23, 33, 29, 0.06);
}

.dashboard-metric span,
.dashboard-metric small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
}

.dashboard-metric strong {
  color: var(--green-deep);
  font-size: 1.55rem;
  line-height: 1.1;
}

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

.hub-action {
  min-height: 94px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 15px 14px 15px 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  background: #ffffff;
  text-decoration: none;
  box-shadow: 0 7px 18px rgba(23, 33, 29, 0.07);
}

.hub-action-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.hub-action-copy strong {
  font-size: 1.08rem;
  font-weight: 920;
}

.hub-action small {
  color: var(--muted);
  font-weight: 720;
}

.hub-action-accent {
  align-self: stretch;
  width: 7px;
  min-height: 54px;
  border-radius: 6px;
  background: var(--tool-color, var(--green));
}

.hub-action-arrow {
  color: var(--tool-color, var(--green-deep));
  font-size: 1.7rem;
  font-weight: 500;
}

.hub-action.attendance { --tool-color: #6d55a0; }
.hub-action.groups { --tool-color: #b57a2f; }
.hub-action.inventory { --tool-color: #1f8a5f; }
.hub-action.order { --tool-color: #c4473f; }
.hub-action.giving { --tool-color: #087889; }
.hub-action.insights { --tool-color: #536b8a; }
.hub-action.admin { --tool-color: #252d32; }
.hub-action.serving { --tool-color: #24718a; }
.hub-action.connections { --tool-color: #8d6438; }
.hub-action.projects { --tool-color: #9a5a3a; }

.hub-action:hover,
.hub-action:focus-visible,
.dashboard-metric:hover,
.dashboard-metric:focus-visible {
  border-color: var(--tool-color, #9fc7b3);
  transform: translateY(-1px);
}

@media (max-width: 420px) {
  .hub-action {
    grid-template-columns: 6px minmax(0, 1fr);
    gap: 10px;
    padding: 13px 12px;
  }

  .hub-action-arrow {
    display: none;
  }
}

.dashboard-alert.connections { border-left-color: #76522c; }

.group-week-picker,
.group-add-form,
.group-trend-controls {
  margin-bottom: 0;
}

.group-count-grid,
.group-summary-grid,
.group-week-list,
.group-manage-list {
  display: grid;
  gap: 10px;
}

.group-count-field {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  align-items: center;
  gap: 12px;
  background: #f8faf9;
}

.group-count-field span {
  color: var(--ink);
  font-weight: 850;
}

.group-count-field input {
  min-width: 0;
  text-align: center;
  font-size: 1.12rem;
  font-weight: 850;
}

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

.group-summary-grid article {
  min-height: 94px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 5px;
  background: var(--surface);
}

.group-summary-grid span,
.group-week-heading span,
.group-manage-row span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
}

.group-summary-grid strong {
  color: var(--green-deep);
  font-size: 1.42rem;
}

.group-change.up strong { color: #16734d; }
.group-change.down strong { color: var(--red-deep); }
.group-change.neutral strong { color: var(--muted); font-size: 1rem; }

.group-week-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.group-week-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}

.group-week-heading div {
  display: grid;
  gap: 2px;
}

.group-week-heading div:last-child {
  text-align: right;
}

.group-week-heading strong {
  font-size: 1.18rem;
}

.group-week-breakdown {
  border-top: 1px solid var(--line);
}

.group-week-breakdown div {
  min-height: 43px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.group-week-breakdown span {
  color: var(--muted);
  font-weight: 760;
}

.group-management summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
}

.group-management summary span {
  color: var(--green-deep);
}

.group-add-form {
  margin-top: 12px;
}

.group-manage-list {
  margin-top: 12px;
}

.group-manage-row {
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  background: var(--surface);
}

.group-manage-row > div {
  display: grid;
  gap: 3px;
}

.dashboard-alert {
  min-height: 58px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 780;
}

.dashboard-alert.order { border-left-color: var(--red); }
.dashboard-alert.attendance { border-left-color: #5f4b8b; }
.dashboard-alert.inventory { border-left-color: var(--gold); }
.dashboard-alert.serving { border-left-color: #1d4f5f; }

.dashboard-alert strong {
  color: var(--muted);
  font-size: 1.45rem;
}

.dashboard-all-clear {
  margin: 0;
  border: 1px solid #bddccb;
  border-radius: 8px;
  padding: 14px;
  background: #edf8f1;
  color: #225e43;
  font-weight: 780;
}

.floating-assistant {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 30;
  min-height: 54px;
  border-radius: 999px;
  padding: 10px 14px 10px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f151d;
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 21, 29, 0.24);
  text-decoration: none;
  font-weight: 950;
}

.floating-assistant .assistant-cta-icon {
  width: 28px;
  height: 28px;
}

.order-count {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.order-count strong {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #fff1ef;
  color: var(--red-deep);
  font-size: 1.55rem;
}

.order-count span {
  color: var(--muted);
  font-weight: 750;
}

.action-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.big-action {
  min-height: 104px;
  border-radius: 8px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.big-action span {
  font-size: 1.3rem;
  font-weight: 900;
}

.big-action small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.big-action.quick {
  background: #244f45;
}

.big-action.voice {
  background: #18212f;
}

.big-action.kid {
  background: var(--green-deep);
}

.big-action.hospitality {
  background: var(--blue);
}

.big-action.general {
  background: #000000;
  color: #ffffff;
}

.big-action.general small {
  color: rgba(255, 255, 255, 0.86);
}

.big-action.order {
  background: var(--red-deep);
}

.big-action.attendance {
  background: #5f4b8b;
}

.big-action.giving {
  background: #0b5d69;
}

.big-action.insights {
  background: #334155;
}

.big-action.serving {
  background: #1d4f5f;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.status-strip div {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  background: var(--surface);
}

.status-strip strong {
  font-size: 1.28rem;
}

.status-strip small {
  color: var(--muted);
  font-weight: 800;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-ok {
  background: var(--green);
}

.dot-low {
  background: var(--gold);
}

.dot-order {
  background: var(--red);
}

.page-heading,
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.page-heading h1,
.section-title h2 {
  margin-bottom: 0;
}

.admin-subtitle {
  margin-top: 16px;
}

.admin-subtitle h3 {
  margin: 0;
  font-size: 1rem;
}

.section-title a,
.section-title span,
.back-link {
  color: var(--green-deep);
  font-weight: 850;
  text-decoration: none;
}

.section-block,
.area-group,
.admin-add {
  margin-top: 18px;
}

.area-group h2 {
  margin: 0 0 10px;
}

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

.item-card,
.order-card,
.admin-item,
.attendance-card,
.card-form,
.quantity-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.item-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  text-decoration: none;
}

.item-card p,
.order-card p,
.admin-item p,
.attendance-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.item-card-side {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 8px;
  text-align: right;
}

.status {
  min-width: 62px;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  padding: 5px 9px;
  font-size: 0.76rem;
  font-weight: 950;
}

.status-ok {
  background: #dff4e8;
  color: #12613f;
}

.status-low {
  background: #fff3bd;
  color: #715100;
}

.status-order {
  background: #ffe0dd;
  color: #9f2821;
}

.filter-bar,
.stack-form,
.card-form {
  display: grid;
  gap: 12px;
}

.filter-bar {
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.attendance-lookup,
.giving-lookup {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cbd7d1;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 650;
}

textarea {
  resize: vertical;
}

.card-form {
  padding: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.attendance-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.attendance-grid.small {
  grid-template-columns: 1fr 1fr;
}

.giving-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.form-grid label:first-child {
  grid-column: 1 / -1;
}

.quantity-panel {
  margin-bottom: 14px;
  padding: 16px;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.quantity-panel span,
.quantity-panel small {
  color: var(--muted);
  font-weight: 850;
}

.usage-grid {
  display: grid;
  gap: 10px;
}

.usage-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 3px;
  background: var(--surface);
  box-shadow: 0 8px 18px rgba(23, 33, 29, 0.05);
}

.usage-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.usage-grid strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.usage-grid small {
  color: var(--muted);
  font-weight: 760;
}

.stepper {
  width: 100%;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  gap: 10px;
}

.stepper button {
  width: 64px;
  height: 58px;
  padding: 0;
  font-size: 2rem;
  line-height: 1;
}

.stepper strong {
  min-height: 58px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  font-size: 2rem;
}

.order-card,
.admin-item,
.attendance-card {
  padding: 14px;
  display: grid;
  gap: 12px;
}

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

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

.attendance-metrics span,
.total-pill {
  min-height: 56px;
  border-radius: 8px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.attendance-metrics strong {
  display: block;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1;
}

.attendance-breakdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  background: #fff;
}

.attendance-breakdown div {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.attendance-breakdown div:last-child {
  border-bottom: 0;
}

.attendance-breakdown span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 820;
}

.attendance-breakdown strong {
  color: var(--ink);
  font-size: 1.05rem;
}

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

.average-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  min-height: 126px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 18px;
  text-align: center;
}

.average-card span,
.average-card small {
  color: var(--muted);
  font-weight: 820;
}

.average-card strong {
  color: var(--green-deep);
  font-size: 2.4rem;
  line-height: 1;
}

.trend-grid {
  display: grid;
  gap: 12px;
}

.trend-controls {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
}

.trend-controls button {
  min-height: 46px;
}

.trend-view .trend-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.trend-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.trend-card-title {
  display: grid;
  gap: 2px;
}

.trend-card h3,
.trend-card p {
  margin: 0;
}

.trend-card-title p,
.trend-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 780;
}

.trend-chart {
  width: 100%;
  height: auto;
  min-height: 188px;
  overflow: visible;
}

.trend-grid-line {
  stroke: #d7e2dd;
  stroke-width: 1;
}

.trend-line {
  fill: none;
  stroke: var(--green-deep);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-line-previous {
  stroke: #5f4b8b;
  stroke-width: 3;
}

.trend-point-previous .trend-dot {
  fill: #5f4b8b;
}

.trend-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

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

.trend-key {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--green-deep);
}

.trend-key-previous {
  background: #5f4b8b;
}

.trend-year-comparison {
  border-left: 4px solid var(--line);
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  background: var(--surface-strong);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.trend-year-comparison strong {
  color: var(--ink);
  font-size: 1rem;
}

.trend-year-comparison.up {
  border-left-color: #18794e;
}

.trend-year-comparison.down {
  border-left-color: #b42318;
}

.trend-hit-area {
  fill: transparent;
  cursor: pointer;
}

.trend-dot {
  fill: var(--green);
  stroke: #ffffff;
  stroke-width: 2;
  pointer-events: none;
}

.trend-point:focus {
  outline: none;
}

.trend-point:focus .trend-dot,
.trend-point:hover .trend-dot,
.trend-point.is-active .trend-dot {
  fill: var(--ink);
  stroke: var(--green-soft);
  stroke-width: 4;
}

.trend-tooltip {
  position: absolute;
  z-index: 3;
  min-width: 90px;
  max-width: 180px;
  transform: translate(-50%, -100%);
  border-radius: 7px;
  padding: 8px 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 900;
  text-align: center;
  pointer-events: none;
}

.trend-tooltip[hidden] {
  display: none;
}

.trend-y-label,
.trend-x-label {
  fill: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.trend-empty {
  min-height: 188px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-strong);
  color: var(--muted);
  font-weight: 850;
}

.total-pill {
  min-width: 94px;
  padding: 8px 12px;
  color: var(--green-deep);
  text-align: center;
}

.order-card form,
.admin-actions form {
  margin: 0;
}

.order-card button,
.order-card .primary-button {
  width: 100%;
}

.admin-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-actions button,
.admin-actions a {
  width: 100%;
}

.user-role-list {
  margin-top: 12px;
}

.admin-disclosure {
  margin-top: 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}

.admin-disclosure > summary,
.admin-user > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
}

.admin-disclosure > summary::-webkit-details-marker,
.admin-user > summary::-webkit-details-marker {
  display: none;
}

.admin-disclosure > summary::before,
.admin-user > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-right: 2px;
}

.admin-disclosure[open] > summary::before,
.admin-user[open] > summary::before {
  transform: rotate(45deg);
}

.admin-disclosure > summary span,
.admin-user > summary span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-disclosure > summary small,
.admin-user > summary small {
  margin-left: auto;
  max-width: 48%;
  text-align: right;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.admin-user {
  border-bottom: 1px solid var(--line);
}

.admin-user-content {
  padding: 4px 0 18px;
}

.admin-user-content .admin-actions {
  margin-top: 12px;
}

.admin-disclosure .backup-actions {
  margin-top: 12px;
}

.user-role-item {
  align-items: start;
}

.user-role-form {
  display: grid;
  gap: 10px;
}

.user-role-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.role-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.role-picker legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.role-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 6px;
}

.role-options .role-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 0.9rem;
  font-weight: 600;
}

.role-option input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  flex: 0 0 auto;
}

.role-option span {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

.backup-actions a {
  width: 100%;
}

.help-text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
}

.attendance-entry-locked .primary-button,
.giving-entry-locked .primary-button {
  width: 100%;
  margin-top: 14px;
}

.attendance-start-form,
.giving-start-form {
  margin-top: 10px;
}

.selected-date-row {
  min-height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 3px;
  background: var(--surface-strong);
}

.selected-date-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.selected-date-row strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.selected-date-row a {
  color: var(--green-deep);
  font-weight: 850;
  text-decoration: none;
}

.saved-services {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.saved-service-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: var(--surface-strong);
}

.saved-service-row div {
  display: grid;
  gap: 4px;
}

.saved-service-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.saved-service-row .secondary-button {
  width: 100%;
}

.giving-summary-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 4px;
  background: #0b5d69;
  color: #ffffff;
  margin-bottom: 12px;
}

.attendance-range-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.attendance-range-highlights article {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.attendance-range-highlights span,
.attendance-range-breakdown span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.attendance-range-highlights strong {
  color: var(--green-deep);
  font-size: 1.55rem;
}

.seat-recommendation {
  margin-bottom: 12px;
  border-radius: 8px;
  padding: 16px;
  display: grid;
  gap: 8px;
  background: #123f35;
  color: #ffffff;
}

.seat-recommendation div {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.seat-recommendation span {
  font-size: 0.84rem;
  font-weight: 850;
}

.seat-recommendation strong {
  font-size: 2rem;
  line-height: 1;
}

.seat-recommendation p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 720;
}

.attendance-range-breakdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: #fff;
}

.attendance-range-breakdown div {
  min-height: 62px;
  padding: 10px 12px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.attendance-range-breakdown div:nth-child(2n) {
  border-right: 0;
}

.attendance-range-breakdown div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.attendance-change {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  font-weight: 850;
}

.attendance-change.up {
  color: #18794e;
}

.attendance-change.down {
  color: #b42318;
}

.attendance-change.neutral {
  color: var(--muted);
}

.giving-summary-total span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 850;
}

.giving-summary-total strong {
  font-size: 1.65rem;
}

.giving-average-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.giving-average-summary article {
  border: 2px solid #d6e8e5;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 5px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.giving-average-summary span {
  color: #0b5d69;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.giving-average-summary strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.giving-average-summary small {
  color: var(--muted);
  font-weight: 820;
}

.giving-breakdown-title {
  margin: 6px 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.giving-category-summary,
.giving-breakdown {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  overflow: hidden;
  background: #fff;
}

.giving-category-summary div,
.giving-breakdown div {
  min-height: 52px;
  padding: 10px 12px;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
}

.giving-category-summary div:last-child,
.giving-breakdown div:last-child {
  border-bottom: 0;
}

.giving-category-summary span,
.giving-breakdown span,
.giving-total span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.giving-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.giving-total {
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 2px;
  background: var(--surface-strong);
}

.giving-total strong {
  font-size: 1.28rem;
}

.giving-total small {
  color: var(--muted);
  font-weight: 800;
}

.insights-action {
  margin-top: 12px;
}

.insights-action button {
  width: 100%;
}

.insight-snapshot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.insight-snapshot div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 4px;
  background: var(--surface-strong);
}

.insight-snapshot span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.insight-snapshot strong {
  font-size: 1.16rem;
  overflow-wrap: anywhere;
}

.insight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-weight: 720;
}

.ai-insight-grid {
  display: grid;
  gap: 8px;
}

.ai-insight-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green-deep);
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.ai-insight-card summary,
.local-insights-panel summary {
  min-height: 64px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.ai-insight-card summary::-webkit-details-marker,
.local-insights-panel summary::-webkit-details-marker {
  display: none;
}

.ai-insight-card summary > span:first-child,
.local-insights-panel summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ai-insight-card summary strong {
  margin: 0;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.2;
}

.ai-insight-card summary small,
.local-insights-panel summary small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-insight-card[open] summary small {
  display: none;
}

.ai-insight-card p {
  margin: 0;
  padding: 0 14px 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 680;
  line-height: 1.45;
}

.details-action {
  flex: 0 0 auto;
  color: var(--green-deep);
  font-size: 0.76rem;
  font-weight: 850;
}

details[open] > summary .details-action {
  color: var(--muted);
}

.local-insights-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.local-insights-body {
  padding: 0 14px 14px;
}

.ai-insight-giving {
  border-left-color: var(--blue);
}

.ai-insight-inventory {
  border-left-color: var(--red);
}

.ai-insight-groups {
  border-left-color: #6a4c93;
}

.ai-insight-serving {
  border-left-color: #087f8c;
}

.ai-insight-next {
  border-left-color: #b7791f;
}

.insight-note {
  display: grid;
  gap: 10px;
}

.insight-note p {
  margin: 0;
  color: var(--ink);
  font-weight: 720;
  line-height: 1.5;
}

.admin-add {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.admin-add summary {
  min-height: 54px;
  padding: 14px;
  cursor: pointer;
  font-weight: 900;
}

.admin-add .card-form {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.serving-grid,
.guide-layout {
  display: grid;
  gap: 12px;
}

.serving-card,
.guide-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.serving-card {
  min-height: 92px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.serving-card h2 {
  margin-bottom: 4px;
}

.serving-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.serving-card span {
  border-radius: 999px;
  padding: 8px 10px;
  background: var(--surface-strong);
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.connection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.connection-card h2,
.connection-card p {
  margin-top: 0;
}

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

.connection-mark {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #2f7d6b;
  color: #fff;
  font-weight: 950;
}

.connection-error {
  border-left: 5px solid var(--red);
  grid-template-columns: 1fr;
}

.connection-steps {
  margin: 14px 0;
  padding-left: 24px;
  color: var(--ink);
  font-weight: 720;
}

.connection-steps li + li {
  margin-top: 8px;
}

.serving-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.serving-metric {
  min-height: 90px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  align-content: center;
  gap: 2px;
  background: var(--surface);
}

.serving-metric span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.serving-metric strong {
  font-size: 1.6rem;
}

.serving-metric.pending { border-top-color: var(--gold); }
.serving-metric.needed,
.serving-metric.declined { border-top-color: var(--red); }

.serving-coverage-section {
  display: grid;
  gap: 12px;
}

.invitation-banner {
  margin-bottom: 16px;
  border: 1px solid #dccb7d;
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #fff9df;
}

.invitation-banner > div {
  display: grid;
  gap: 3px;
}

.invitation-banner strong {
  font-size: 1.08rem;
}

.invitation-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.invitation-eyebrow {
  color: #6b5200;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.invitation-send-button {
  width: 100%;
}

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

.coverage-team {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.coverage-team > summary {
  min-height: 68px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.coverage-team > summary::-webkit-details-marker,
.coverage-position > summary::-webkit-details-marker {
  display: none;
}

.coverage-team > summary > span:first-child {
  display: grid;
  gap: 2px;
}

.coverage-team > summary small {
  color: var(--muted);
  font-weight: 740;
}

.team-need {
  border-radius: 999px;
  padding: 6px 9px;
  background: #fff0ee;
  color: var(--red-deep);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.team-need.clear {
  background: #eaf6ef;
  color: var(--green-deep);
}

.coverage-rows {
  border-top: 1px solid var(--line);
}

.coverage-row {
  min-height: 62px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coverage-row + .coverage-row {
  border-top: 1px solid var(--line);
}

.coverage-position {
  border-top: 1px solid var(--line);
}

.coverage-position:first-child {
  border-top: 0;
}

.coverage-position > summary {
  min-height: 62px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.coverage-position > summary > span:first-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.coverage-position > summary small {
  color: var(--muted);
  font-weight: 720;
}

.position-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--surface-strong);
  color: var(--green-deep);
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.coverage-people {
  border-top: 1px solid var(--line);
  background: #f8faf9;
}

.coverage-person {
  min-height: 54px;
  padding: 9px 14px 9px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coverage-person + .coverage-person {
  border-top: 1px solid var(--line);
}

.coverage-person strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.coverage-row > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.coverage-row strong,
.coverage-row span {
  overflow-wrap: anywhere;
}

.coverage-row > div span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.open-position {
  background: #fff8f6;
}

.coverage-count,
.volunteer-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}

.coverage-actions {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  gap: 7px;
}

.schedule-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-deep);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  text-decoration: none;
}

.schedule-position-card {
  margin-bottom: 14px;
  border: 1px solid #cfe1d8;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: #eaf4ef;
}

.schedule-position-card div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.schedule-position-card span,
.schedule-review-note span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.schedule-position-card strong {
  overflow-wrap: anywhere;
}

.serving-schedule-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.schedule-review-note {
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  padding: 11px 12px;
  display: grid;
  gap: 3px;
  background: #fff9df;
}

.schedule-button-row {
  display: grid;
  gap: 8px;
}

@media (min-width: 640px) {
  .invitation-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .invitation-send-button {
    width: auto;
  }
}

.coverage-count,
.volunteer-status.declined {
  background: #ffe9e6;
  color: var(--red-deep);
}

.volunteer-status.confirmed {
  background: #e6f5ec;
  color: var(--green-deep);
}

.volunteer-status.pending {
  background: #fff5cf;
  color: #6b5200;
}

.empty-state.compact {
  margin: 0;
  padding: 14px;
}

.guide-section {
  padding: 16px;
}

.guide-section h2 {
  margin-bottom: 10px;
}

.guide-section p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 720;
  line-height: 1.5;
}

.setup-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-checklist li {
  min-height: 46px;
  border-radius: 8px;
  padding: 10px 12px 10px 38px;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--surface-strong);
  color: var(--ink);
  font-weight: 780;
}

.setup-checklist li::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--green-deep);
  border-radius: 4px;
  background: #fff;
}

.setup-checklist .setup-empty {
  padding-left: 12px;
  color: var(--muted);
}

.setup-checklist .setup-empty::before {
  display: none;
}

.guide-visual {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--surface-strong);
}

.guide-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.serving-guide-form {
  margin-bottom: 14px;
}

.checkbox-row {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-strong);
  color: var(--ink);
}

.checkbox-row input {
  width: 20px;
  min-height: 20px;
  flex: 0 0 auto;
}

.activity-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
}

.activity-list span,
.activity-list small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
  color: var(--muted);
  text-align: center;
}

.connection-heading {
  align-items: stretch;
  flex-direction: column;
}

.connection-heading .secondary-button {
  width: 100%;
}

.connection-form {
  gap: 14px;
}

.consent-check {
  min-height: 48px;
  grid-template-columns: 24px 1fr;
  align-items: center;
  color: var(--ink);
}

.consent-check input {
  width: 22px;
  min-height: 22px;
  margin: 0;
}

.connection-note {
  margin-top: -4px;
}

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

.connection-card {
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.connection-card.complete {
  border-left-color: var(--green);
}

.connection-card h3,
.connection-card p {
  margin: 0;
}

.connection-card-main {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.connection-card-main a {
  overflow-wrap: anywhere;
  color: var(--green-deep);
  font-weight: 750;
  text-decoration: none;
}

.connection-statuses,
.connection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-status {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.integration-status.synced,
.integration-status.complete {
  background: #dff4e8;
  color: #12613f;
}

.integration-status.waiting {
  background: #fff3bd;
  color: #715100;
}

.integration-status.error,
.connection-error {
  color: var(--red-deep);
}

.integration-status.error {
  background: #ffe0dd;
}

.connection-error {
  padding-top: 6px;
  font-size: 0.86rem;
  font-weight: 750;
}

.connection-history > summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.connection-history[open] > summary {
  margin-bottom: 12px;
}

.mode-pill {
  min-height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: var(--surface-strong);
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.quick-update-form textarea {
  min-height: 190px;
}

.quick-examples {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.quick-examples article,
.quick-message,
.quick-review-card,
.quick-attendance-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.quick-examples article {
  padding: 14px;
  display: grid;
  gap: 4px;
}

.quick-examples span,
.quick-review-card p,
.quick-review-numbers span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.quick-message {
  margin-bottom: 14px;
  padding: 14px;
}

.invite-link-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.invite-link-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.quick-message strong {
  display: block;
  margin-bottom: 6px;
}

.quick-message ul,
.quick-change-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-message li {
  color: var(--muted);
  font-weight: 750;
}

.quick-review-card {
  min-height: 84px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-review-numbers {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  text-align: right;
}

.quick-review-numbers strong {
  color: var(--green-deep);
  font-size: 1.2rem;
}

.quick-attendance-review {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.quick-attendance-review h3 {
  margin-bottom: 0;
}

.quick-change-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.quick-change-list li {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.quick-change-list li:last-child {
  border-bottom: 0;
}

.quick-change-list span {
  color: var(--muted);
  font-weight: 820;
}

.review-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.quick-save-form {
  margin: 0;
}

.quick-save-form button,
.review-actions a {
  width: 100%;
}

.voice-panel {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  overflow: hidden;
}

.voice-panel > * {
  min-width: 0;
  max-width: 100%;
}

.voice-panel h2 {
  margin-bottom: 0;
}

.voice-panel p {
  max-width: 560px;
  margin-bottom: 0;
}

.voice-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #18212f;
  box-shadow: 0 16px 32px rgba(24, 33, 47, 0.18);
}

.voice-mark span {
  width: 42px;
  height: 58px;
  border-radius: 24px;
  display: block;
  border: 8px solid #ffffff;
  border-top-width: 12px;
  position: relative;
}

.voice-mark span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  width: 32px;
  height: 18px;
  border-bottom: 7px solid #ffffff;
  border-left: 7px solid #ffffff;
  border-right: 7px solid #ffffff;
  border-radius: 0 0 20px 20px;
  transform: translateX(-50%);
}

.voice-actions,
.voice-review-form {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 10px;
}

.voice-next-step {
  position: sticky;
  top: 76px;
  z-index: 5;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(23, 33, 29, 0.1);
}

.voice-next-step[hidden] {
  display: none;
}

.voice-next-step strong {
  color: var(--ink);
  font-size: 0.86rem;
  text-align: left;
}

.voice-next-step-ready {
  border-color: rgba(23, 108, 80, 0.45);
  box-shadow: 0 16px 34px rgba(23, 108, 80, 0.16);
}

.voice-status {
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  background: var(--surface-strong);
  color: var(--green-deep);
  font-weight: 850;
}

.voice-repeat {
  width: 100%;
}

.voice-repeat[hidden] {
  display: none;
}

.voice-conversation {
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.voice-conversation[hidden] {
  display: none;
}

.voice-conversation > strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.voice-log {
  width: 100%;
  min-width: 0;
  max-height: min(52vh, 520px);
  overflow-x: hidden;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  align-content: start;
  overscroll-behavior: contain;
}

.voice-log:empty {
  display: none;
}

.voice-log-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  background: #fff;
  text-align: left;
}

.voice-log-assistant,
.voice-log-ready {
  border-left: 4px solid var(--green);
}

.voice-log-you {
  margin-left: 20px;
  background: #f3f7f5;
}

.voice-log-row strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.voice-log-row span {
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.voice-item-review-list {
  display: grid;
  gap: 10px;
}

.voice-item-review {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.voice-item-review p {
  margin: 0;
  color: var(--muted);
  font-weight: 760;
}

.voice-item-review-header {
  display: grid;
  gap: 3px;
}

.voice-item-review-header span,
.voice-item-review-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.voice-item-review-header strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.voice-item-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.voice-item-review-grid div {
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 2px;
  background: var(--surface-strong);
}

.voice-item-review-grid strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.voice-save-all {
  margin-top: 14px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

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

.inventory-heading,
.attendance-heading,
.scan-page-heading {
  align-items: stretch;
  flex-direction: column;
}

.inventory-heading .heading-actions,
.attendance-heading .heading-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.attendance-heading .heading-actions {
  grid-template-columns: 1fr;
}

.inventory-scan-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  display: grid;
  justify-items: center;
  gap: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.inventory-scan-panel h2,
.inventory-scan-panel p,
.inventory-photo-preview {
  margin: 0;
}

.scan-camera-icon {
  width: 58px;
  height: 44px;
  border: 4px solid var(--green-deep);
  border-radius: 8px;
  position: relative;
  background: var(--surface-strong);
}

.scan-camera-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 4px solid var(--green-deep);
  border-radius: 50%;
  position: absolute;
  left: 16px;
  top: 9px;
  background: #fff;
}

.scan-camera-icon::after {
  content: "";
  width: 22px;
  height: 8px;
  border-radius: 4px 4px 0 0;
  position: absolute;
  left: 14px;
  top: -10px;
  background: var(--green-deep);
}

.inventory-scan-form {
  width: 100%;
  display: grid;
  gap: 12px;
}

.attendance-photo-context {
  display: grid;
  gap: 10px;
  text-align: left;
}

.attendance-kids-count {
  display: grid;
  gap: 10px;
}

.attendance-kids-result {
  border: 1px solid #b9d9c8;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  background: #edf8f1;
}

.attendance-kids-result span,
.attendance-kids-result small {
  color: var(--muted);
  font-weight: 760;
}

.attendance-kids-result strong {
  color: var(--green-deep);
  font-size: 1.8rem;
}

.attendance-count-guidance {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 720;
}

.photo-source-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.photo-source-picker legend {
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 850;
}

.photo-source-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.photo-source-option {
  position: relative;
  min-height: 104px;
  border: 2px solid #9fc7b3;
  border-radius: 8px;
  padding: 16px 12px;
  display: grid;
  align-content: center;
  gap: 4px;
  background: #f4faf7;
  color: var(--green-deep);
  text-align: center;
  cursor: pointer;
}

.photo-source-option:hover,
.photo-source-option:focus-within {
  border-color: var(--green);
  background: #eaf6ef;
  box-shadow: 0 0 0 3px rgba(18, 122, 82, 0.12);
}

.photo-source-option strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.photo-source-option small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.photo-source-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  cursor: pointer;
}

.photo-source-option:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.58;
}

.inventory-photo-preview,
.inventory-scan-review-photo {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.inventory-photo-preview img,
.inventory-scan-review-photo img {
  width: 100%;
  max-height: 420px;
  border-radius: 6px;
  display: block;
  object-fit: contain;
  background: #eef2f0;
}

.inventory-scan-review-photo {
  margin: 0 0 14px;
}

.inventory-scan-review-photo figcaption {
  padding: 8px 4px 2px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
}

.inventory-scan-status {
  color: var(--green-deep);
  font-weight: 850;
}

.inventory-scan-status.is-error {
  color: var(--red-deep);
}

.scan-save-note {
  margin: 0;
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff8dc;
  color: var(--ink);
  font-weight: 760;
}

.inventory-scan-privacy {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.scan-summary {
  margin: 0 0 14px;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  background: #eaf4ef;
  color: var(--ink);
  font-weight: 760;
}

.inventory-scan-review-list,
.inventory-scan-review-form {
  display: grid;
  gap: 12px;
}

.inventory-scan-review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.inventory-scan-review-card h3,
.inventory-scan-review-card p {
  margin: 0;
}

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

.scan-include-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  grid-template-columns: none;
  gap: 9px;
  color: var(--ink);
}

.scan-include-row input {
  width: 22px;
  min-height: 22px;
  margin: 0;
}

.scan-confidence {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.confidence-high {
  background: #dff4e8;
  color: #12613f;
}

.confidence-medium {
  background: #fff3bd;
  color: #715100;
}

.confidence-low {
  background: #ffe0dd;
  color: #9f2821;
}

.scan-observation-note {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.scan-review-fields {
  display: grid;
  gap: 10px;
}

.scan-new-item-fields {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: grid;
  gap: 10px;
}

.scan-new-item-fields > strong {
  color: var(--green-deep);
}

.project-create-panel summary,
.project-add-task summary,
.project-settings summary,
.archived-projects summary {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-weight: 900;
}

.project-create-panel summary span,
.project-add-task summary span,
.project-settings summary span,
.archived-projects summary span {
  color: var(--muted);
  font-size: 0.8rem;
}

.project-form,
.project-task-form {
  margin-top: 12px;
}

.my-tasks-banner {
  min-height: 68px;
  margin-bottom: 16px;
  border: 1px solid #bad7ca;
  border-left: 6px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #edf7f2;
  color: var(--ink);
  text-decoration: none;
}

.my-tasks-banner > span:first-child {
  display: grid;
  gap: 2px;
}

.my-tasks-banner strong {
  font-size: 1.05rem;
}

.my-tasks-banner small {
  color: var(--muted);
  font-weight: 720;
}

.my-tasks-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--green-deep);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.project-overview-editor {
  border-top: 1px solid var(--line);
  border-left: 0;
  margin-top: 24px;
}

.optional-label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 720;
}

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

.project-summary-card {
  border: 1px solid var(--line);
  border-left: 6px solid #9a5a3a;
  border-radius: 8px;
  padding: 15px;
  display: grid;
  gap: 10px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.project-summary-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.project-summary-top h3 {
  margin: 4px 0 2px;
  font-size: 1.18rem;
}

.project-summary-top p,
.project-summary-card small {
  margin: 0;
  color: var(--muted);
  font-weight: 730;
}

.project-summary-top > strong,
.project-completion > strong {
  color: #9a5a3a;
  font-size: 1.55rem;
}

.project-state {
  color: #286043;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-state.completed {
  color: #536b8a;
}

.project-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 5px;
  background: #e5e9e7;
}

.project-progress span {
  display: block;
  min-width: 0;
  height: 100%;
  background: #2d7b58;
}

.archived-project-list {
  border-top: 1px solid var(--line);
}

.archived-project-list a {
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 820;
}

.archived-project-list small {
  color: var(--muted);
}

.project-detail-heading {
  display: block;
  margin-bottom: 20px;
}

.project-detail-heading h1 {
  font-size: 28px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  margin: 10px 0 8px;
}

.project-detail-heading .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}

.project-assignment-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.project-assignment-fields > label { min-width: 0; }
.project-assignment-fields input[type=date] {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 46px;
}

.project-assignees { min-width: 0; }
.project-assignees > summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.project-assignees > summary span { color: var(--muted); font-weight: 400; }
.project-assignees .role-options { max-height: 240px; overflow: auto; margin-top: 8px; }
.project-add-task > summary,
.project-overview-editor > summary { font-size: 16px; font-weight: 650; }
.project-add-task > summary::after { content: "+"; font-size: 24px; font-weight: 400; }
.project-add-task[open] > summary::after { content: "-"; }
.project-task-form { margin-top: 8px; }
.project-task-form.card-form { padding: 0; border: 0; background: none; box-shadow: none; }
.project-task-form > label,
.project-assignment-fields > label { align-content: start; }

@media (min-width: 700px) {
  .project-assignment-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .project-detail-heading h1 { font-size: 32px; }
}

.project-description {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
}

.project-completion {
  margin-top: 8px;
}

.project-completion span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.project-board-section {
  margin: 20px 0;
}

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

.creative-request-list { display: grid; gap: 12px; }
.creative-request-list .project-task-card { margin: 0; }
.creative-request-card { gap: 0; padding: 18px; box-shadow: none; }
.creative-request-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; }
.creative-request-heading h4 { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.creative-request-card .creative-request-type { margin-bottom: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.creative-request-state { padding: 5px 8px; border-radius: 4px; background: #f0f2f1; color: #42544b; font-size: 12px; font-weight: 650; white-space: nowrap; }
.creative-request-state.is-done { background: #e6f3e9; color: #286043; }
.creative-request-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin: 18px 0; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.creative-request-facts dt, .creative-request-card h5 { margin: 0 0 6px; font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.creative-request-facts dd { margin: 0; font-size: 14px; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.creative-request-facts dd.is-overdue { color: var(--red-deep); }
.creative-request-facts dd span { display: block; font-size: 12px; font-weight: 500; }
.creative-request-card .creative-request-instructions p { color: var(--ink); font-size: 15px; font-weight: 400; line-height: 1.6; overflow-wrap: anywhere; }
.creative-request-references { margin-top: 18px; }
.creative-request-references .request-reference-links { margin: 0; }
.creative-request-delivery { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.creative-request-card .creative-empty-file { font-size: 14px; font-weight: 400; }
.creative-request-delivery .graphic-file-list { margin: 0 0 12px; }
.creative-request-delivery .project-task-edit { margin-top: 12px; padding-top: 0; border: 0; }
.creative-request-delivery .project-task-edit > summary { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 6px; background: #edf5f0; font-size: 14px; font-weight: 650; }
.creative-complete-form { margin-top: 16px; }
.creative-complete-form button { min-height: 46px; width: 100%; }
.creative-request-options { margin-top: 16px; border-top: 1px solid var(--line); }
.creative-request-options > .project-task-edit > summary,
.creative-request-options > .task-responsibilities > summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.creative-request-options > .project-task-edit > summary::after { content: "+"; font-size: 18px; }
.creative-request-options > .project-task-edit[open] > summary::after { content: "-"; }
.creative-request-options .project-task-edit, .creative-request-options .task-responsibilities { margin-top: 0; border-top: 0; }
@media (min-width: 700px) { .creative-complete-form button { width: auto; min-width: 140px; } }
.creative-completed { margin-top: 20px; border-top: 1px solid var(--line); }
.creative-completed > summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 700; }
.creative-completed > summary span { color: var(--muted); margin-left: 8px; }
.request-reference-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0; }
.request-reference-links a { overflow-wrap: anywhere; min-height: 44px; display: inline-flex; align-items: center; }
.project-form [hidden] { display: none; }

.project-column {
  min-width: 0;
  border-top: 5px solid #c28a3a;
  padding: 10px;
  background: #f2f4f3;
}

.task-responsibilities { margin-top: 12px; border-top: 1px solid var(--line); }
.task-responsibilities summary { cursor: pointer; padding: 12px 0; min-height: 44px; }
.task-responsibilities summary span { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }
.task-responsibilities ul { list-style: none; padding: 0; margin: 0; }
.task-responsibilities li { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.task-responsibilities p { margin: 4px 0; color: var(--muted); }
.task-responsibilities .stack-form { margin-bottom: 12px; }
.my-task-status-form[hidden], .project-task-status-form[hidden] { display: none; }

.project-column-done {
  border-top-color: #2d7b58;
}

.project-column-heading {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-column-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.project-column-heading span {
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: var(--muted);
  font-weight: 900;
}

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

.project-column-empty {
  margin: 0;
  padding: 18px 10px;
  color: var(--muted);
  text-align: center;
  font-weight: 720;
}

.project-task-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  display: grid;
  gap: 10px;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(23, 33, 29, 0.06);
}

.project-task-card h4,
.project-task-card p {
  margin: 0;
}

.project-task-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.project-task-meta {
  display: grid;
  gap: 5px;
}

.project-task-owner,
.project-task-due {
  color: #315c4a;
  font-size: 0.78rem;
  font-weight: 830;
}

.project-task-due.overdue {
  color: var(--red-deep);
}

.project-task-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.project-task-status-form select,
.project-task-status-form button {
  min-height: 44px;
}

.project-task-status-form button {
  border: 0;
  border-radius: 7px;
  padding: 0 13px;
  background: #e9f3ed;
  color: var(--green-deep);
  font-weight: 900;
}

.project-task-edit {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.project-task-edit summary {
  min-height: 38px;
  cursor: pointer;
  color: var(--green-deep);
  font-weight: 850;
}

.project-task-edit form + form,
.project-archive-form {
  margin-top: 12px;
}

.my-task-list {
  display: grid;
  gap: 12px;
}

.my-task-card {
  border: 1px solid var(--line);
  border-left: 5px solid #24718a;
  border-radius: 8px;
  padding: 14px;
  display: grid;
  gap: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.my-task-card.is-new {
  border-left-color: #cf4138;
  background: #fffdfb;
}

.my-task-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}

.my-task-heading a {
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.my-task-heading h3,
.my-task-card p {
  margin: 4px 0 0;
}

.my-task-card p {
  color: var(--muted);
  line-height: 1.45;
}

.new-task-label {
  display: block;
  width: max-content;
  margin-bottom: 5px;
  border-radius: 999px;
  padding: 4px 7px;
  background: #ffe0dd;
  color: var(--red-deep);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.my-task-due {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
  text-align: right;
}

.my-task-status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.my-task-status-form button {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  background: var(--green-deep);
  color: #ffffff;
  font-weight: 900;
}

.completed-task-section summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 900;
}

@media (min-width: 680px) {
  .inventory-heading,
  .attendance-heading,
  .scan-page-heading {
    align-items: center;
    flex-direction: row;
  }

  .inventory-heading .heading-actions,
  .attendance-heading .heading-actions {
    width: auto;
    display: flex;
  }

  .attendance-photo-context {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attendance-kids-count {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
  }
  .connection-heading {
    align-items: flex-end;
    flex-direction: row;
  }

  .connection-heading .secondary-button {
    width: auto;
  }

  .connection-form {
    grid-template-columns: repeat(3, 1fr);
  }

  .connection-form .consent-check,
  .connection-form .primary-button {
    grid-column: 1 / -1;
  }

  .connection-form .primary-button {
    width: auto;
    justify-self: start;
  }

  .connection-card {
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
  }

  .connection-statuses {
    justify-content: flex-end;
  }

  .page {
    padding: 24px 24px 96px;
  }

  .brand-logo {
    width: 112px;
  }

  .dashboard-hero {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .dashboard-hero h1 {
    font-size: 3rem;
  }

  .assistant-cta {
    width: auto;
    min-width: 190px;
  }

  .action-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hub-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1.5fr 1fr auto;
    align-items: end;
  }

  .giving-lookup {
    grid-template-columns: 1fr 1fr auto;
  }

  .attendance-lookup {
    grid-template-columns: 1fr;
  }

  .attendance-lookup-range {
    grid-template-columns: 1fr 1fr auto;
  }

  .attendance-start-form,
  .giving-start-form,
  .group-week-picker,
  .group-add-form {
    grid-template-columns: 1fr auto;
  }

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

  .group-summary-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .group-trend-controls {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

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

  .project-detail-heading {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .project-completion {
    text-align: left;
  }

  .project-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .form-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .attendance-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .giving-average-summary {
    grid-template-columns: repeat(3, 1fr);
  }

  .attendance-range-highlights {
    grid-template-columns: repeat(3, 1fr);
  }

  .attendance-range-breakdown {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attendance-range-breakdown div:nth-child(2n) {
    border-right: 1px solid var(--line);
  }

  .attendance-range-breakdown div:nth-child(3n) {
    border-right: 0;
  }

  .attendance-range-breakdown div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .usage-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .insight-snapshot {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .serving-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .schedule-button-row {
    grid-template-columns: auto 1fr;
  }

  .insights-action button {
    width: auto;
  }

  .attendance-breakdown {
    grid-template-columns: repeat(3, 1fr);
  }

  .attendance-breakdown div {
    border-right: 1px solid var(--line);
  }

  .attendance-breakdown div:nth-child(3n) {
    border-right: 0;
  }

  .attendance-breakdown div:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

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

  .trend-controls {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }

  .backup-actions,
  .quick-examples,
  .review-actions,
  .voice-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .scan-review-fields {
    grid-template-columns: minmax(0, 2fr) minmax(140px, 1fr);
  }

  .backup-actions {
    grid-template-columns: repeat(4, 1fr);
  }

  .attendance-entry-locked .primary-button,
  .giving-entry-locked .primary-button {
    width: auto;
  }

  .selected-date-row {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }

  .saved-service-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .saved-service-row .secondary-button {
    width: auto;
  }

  .form-grid label:first-child {
    grid-column: auto;
  }

  .order-card,
  .admin-item,
  .attendance-card,
  .giving-card {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .order-card button {
    width: auto;
  }

  .admin-actions {
    min-width: 220px;
  }
}
.drive-settings { margin-top: 24px; padding-top: 20px; border-top: 1px solid #dce5e1; }
.drive-settings h3 { font-size: 18px; }
.drive-settings .backup-actions form { margin: 0; }
.graphic-file-list { list-style: none; margin: 12px 0; padding: 0; }
.graphic-file-list li { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid #dce5e1; }
.graphic-file-list a { min-width: 0; overflow-wrap: anywhere; flex: 1; font-weight: 600; }
.graphic-file-list small { flex-shrink: 0; color: #64756e; }
.graphic-upload-form { margin-top: 16px; min-width: 0; }
.graphic-upload-form input[type=file] { max-width: 100%; min-width: 0; }
.graphic-upload-form fieldset { min-width: 0; border: 1px solid #dce5e1; border-radius: 6px; padding: 12px; }
.graphic-recipients { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 12px; max-height: 240px; overflow: auto; }
.graphic-recipients .graphic-recipient { display: flex; align-items: center; min-height: 44px; gap: 10px; font-size: 15px; font-weight: 400; }
.graphic-recipient input[type=checkbox] { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
.graphic-recipient span { overflow-wrap: anywhere; min-width: 0; }
