:root {
  --bg: #f4f1ea;
  --paper: #fffdf8;
  --ink: #1f2933;
  --muted: #5c6770;
  --line: #e4d9c8;
  --navy: #1e3a4c;
  --accent: #0f766e;
  --accent-2: #c45c26;
  --hot: #b42318;
  --sold: #067647;
  --cold: #667085;
  --renewal: #175cd3;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--accent); }
.topbar {
  position: relative;
  z-index: 40;
  background: var(--navy);
  color: #fff;
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand { font-weight: 800; letter-spacing: 0.02em; color: #fff; text-decoration: none; font-size: 1.15rem; -webkit-user-drag: none; user-select: none; }
.brand span { color: #7dd3c7; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.2rem 0;
}
.nav a {
  color: #d7e2e8;
  text-decoration: none;
  margin-left: 0.85rem;
  font-size: 0.92rem;
  -webkit-user-drag: none;
  user-select: none;
}
.nav a:hover, .nav a.active { color: #fff; }
.dash-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.dash-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 1px 0 rgba(31, 41, 51, 0.04);
  -webkit-user-drag: none;
  user-select: none;
}
.dash-tab:hover { background: #f7f1e8; color: var(--navy); }
.dash-tab.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: none;
}
.dash-tab.is-on:hover { background: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .dash-tabs { gap: 0.4rem; }
  .dash-tab {
    min-height: 2.6rem;
    padding: 0.5rem 0.35rem;
    font-size: 0.82rem;
    border-radius: 10px;
  }
}
.nav .org-switch {
  display: inline-block;
  margin-left: 1rem;
  vertical-align: middle;
}
.nav .org-switch select {
  width: auto;
  max-width: 16rem;
  padding: 0.28rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #163444;
  border-color: #3d6578;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.wrap { max-width: 1100px; margin: 1.5rem auto 3rem; padding: 0 1rem; overflow: visible; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.card:has(> .card-tab-bar) {
  position: relative;
  margin-top: 1.65rem;
  padding-top: 1.35rem;
  overflow: visible;
}
.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.org-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}
.org-card-top > .btn {
  flex: 0 0 auto;
  margin-left: auto;
}
.impersonate-bar {
  position: relative;
  z-index: 41;
  background: var(--accent-2);
  color: #fff;
  padding: 0.55rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.impersonate-bar a {
  color: #fff;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-user-drag: none;
  user-select: none;
}
.impersonate-bar a:hover { filter: brightness(1.08); }
.files-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: flex-end;
  justify-content: flex-start;
  margin: 0 0 0.85rem;
}
.files-toolbar p {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.65rem 0.85rem;
}
.files-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.files-toolbar select,
.files-toolbar input[type="date"] {
  min-width: 10rem;
}
.files-toolbar .btn { margin: 0; }
.files-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}
.files-usage {
  display: grid;
  grid-template-columns: minmax(11rem, 13rem) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: center;
  margin: 1rem 0 0.35rem;
}
.files-pie-wrap {
  position: relative;
  width: 11.5rem;
  height: 11.5rem;
  margin: 0 auto;
}
.files-pie { width: 100%; height: 100%; display: block; }
.files-pie-center {
  position: absolute;
  inset: 28%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}
.files-pie-center strong {
  font-size: 0.95rem;
  line-height: 1.15;
}
.files-pie-center span {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.files-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.files-legend li {
  display: grid;
  grid-template-columns: 0.75rem minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.88rem;
}
.files-legend-total {
  color: var(--muted);
  font-size: 0.82rem;
  padding-bottom: 0.35rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
}
.files-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 2px;
  display: block;
}
.files-disk-note { margin-top: 0.65rem; }
.files-match {
  font-size: 1rem;
  margin: 0 0 0.85rem;
}
.files-missing {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
.files-missing li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.9rem;
}
.files-orphans {
  max-height: 18rem;
  overflow: auto;
  margin-bottom: 0.85rem;
}
.files-orphans li span:nth-child(2) {
  flex: 1 1 12rem;
  word-break: break-word;
}
.files-district {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.files-district-pick label { margin: 0; }
.files-district-current {
  display: grid;
  grid-template-columns: minmax(9rem, 11rem) 1fr;
  gap: 0.85rem 1.1rem;
  align-items: start;
  margin-top: 0.35rem;
}
.files-district-current .tax-cert-thumb { height: 200px; }
.files-district-current .tax-cert-thumb iframe {
  width: 200%;
  height: 360px;
  transform: scale(0.5);
}
.files-district-replace { margin-top: 0.65rem; }
.files-district-replace summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent);
}
.files-district-replace form { margin-top: 0.55rem; }
.files-district li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 1rem;
  font-size: 0.95rem;
}
.files-district .sub { display: block; margin: 0.15rem 0 0; }
.files-district a { font-weight: 700; }
.files-district-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.files-district-actions form { margin: 0; }
.files-district-form { margin-top: 0.35rem; }
@media (max-width: 640px) {
  .files-usage { grid-template-columns: 1fr; }
  .files-district-current { grid-template-columns: 1fr; }
}
.grow { flex: 1; min-width: 180px; }
.org-list-head { margin-bottom: 0.85rem; }
.org-list-head h1 { margin: 0 0 0.25rem; }
.org-list-head .sub { margin: 0; }
.org-toolbar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}
.card > form.org-filter-bar,
form.org-filter-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.75rem;
  margin: 0;
}
.org-filter-bar .org-filter-q {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.org-filter-bar .org-filter-status {
  flex: 0 0 11rem;
  width: 11rem;
  max-width: 11rem;
}
.org-filter-bar .btn,
.org-toolbar > .btn {
  flex: 0 0 auto;
  width: auto;
  white-space: nowrap;
}
h1 { margin: 0 0 0.25rem; font-size: 1.55rem; }
.sub { color: var(--muted); margin: 0 0 1rem; }
.login-brand {
  margin: 1.5rem 0 0;
  text-align: center;
}
.login-brand a { display: inline-block; }
.login-brand img {
  max-width: 220px;
  height: auto;
  display: block;
  margin: 0 auto;
}
label { display: block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.3rem; }
input, select, textarea {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #d0c4b0;
  border-radius: 8px;
  font: inherit;
  background: #fff;
}
textarea { min-height: 80px; }
.grid { display: grid; gap: 0.85rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.btn {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
}
.btn.secondary { background: #e8efe9; color: var(--navy); }
.btn.danger { background: #b42318; }
.btn.small { font-size: 0.8rem; padding: 0.35rem 0.65rem; }
.btn-add-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--sold);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.btn-add-plus:hover { filter: brightness(1.08); color: #fff; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin-bottom: 1rem; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0.85rem; }
.stat b { display: block; font-size: 1.4rem; }
.stat span { color: var(--muted); font-size: 0.8rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.65rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
.users-unjoined {
  border-color: #c45c26;
}
tr.user-row-unjoined td {
  background: #f6e8ef;
}
tr.user-row-unjoined td:first-child {
  box-shadow: inset 3px 0 0 #d4a3b8;
}
.users-table {
  font-size: 0.82rem;
  table-layout: fixed;
  width: 100%;
}
.users-table th,
.users-table td {
  padding: 0.4rem 0.45rem;
  vertical-align: middle;
}
.users-table .col-name {
  width: 16%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.users-table .col-name a {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.users-table .col-contact {
  width: 34%;
}
.user-contact {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}
.user-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-phone {
  flex: 0 0 auto;
  white-space: nowrap;
}
.users-table .col-org {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.users-table .col-login {
  width: 5.75rem;
  white-space: nowrap;
}
.users-table .col-acts {
  width: 11.5rem;
}
.users-table .col-acts .row-actions {
  flex-wrap: wrap;
  max-width: none;
}
.users-table .col-acts .row-actions a,
.users-table .col-acts .row-actions button {
  font-size: 0.82rem;
}
.list-expand-scroll:has(.users-table) {
  overflow-x: hidden;
}
.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}
.badge.hot { background: #fee4e2; color: var(--hot); }
.badge.cold { background: #f2f4f7; color: var(--cold); }
.badge.sold { background: #dcfae6; color: var(--sold); }
.badge.renewal { background: #d1e9ff; color: var(--renewal); }
.contact-block { border: 1px dashed var(--line); padding: 0.85rem; border-radius: 8px; margin-bottom: 0.75rem; background: #fbf7f0; }
#add-user-panel.card-add-panel { margin: 0.25rem 0 1rem; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); }
.flash { background: #ecfdf3; color: #067647; padding: 0.7rem 0.9rem; border-radius: 8px; margin-bottom: 1rem; }
.check { display: flex; align-items: center; gap: 0.4rem; margin-top: 1.4rem; }
.sale-form .check,
.card > form .check { margin-top: 0.35rem; }
.check input { width: auto; }
.case-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  margin: 0.75rem 0;
  align-items: start;
}
.case-option input { width: auto; margin-top: 0.35rem; }
.case-option .sub { margin: 0.2rem 0 0; }
.quote-display {
  background: #f6faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}
.quote-line, .quote-total, .quote-profit {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.3rem 0;
}
.quote-total, .quote-profit { font-weight: 700; }
.quote-profit { color: var(--sold); }
.quote-summary-products .order-product-pick { cursor: default; }
.quote-summary-products .order-product-qty {
  margin: 0.55rem 0 0;
  font-weight: 700;
  color: var(--navy);
}
.quote-finances {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}
.quote-finances th,
.quote-finances td {
  padding: 0.28rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.quote-finances th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 700;
}
.quote-finances .num { text-align: right; white-space: nowrap; }
.quote-finances .is-total td,
.quote-finances .is-profit td {
  border-bottom: 0;
  font-weight: 700;
  padding-top: 0.45rem;
}
.quote-finances .is-profit td { color: var(--sold); }
.quote-product { margin: 0 0 0.85rem; }
.quote-product .sub { margin: 0.25rem 0 0.35rem; }
.pay-list > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.35rem 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.pay-list > div:first-child { border-top: 0; padding-top: 0.15rem; }
.pay-list-label {
  font-weight: 800;
  font-size: 0.92rem;
}
.pay-note {
  margin: 0 0 0.55rem;
  color: var(--hot);
  font-weight: 700;
}
.pay-list p { margin: 0.35rem 0; }
.pay-address {
  display: block;
  margin: 0.25rem 0 0.65rem;
  padding: 0.45rem 0.65rem;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-style: normal;
  line-height: 1.4;
}
@media (max-width: 640px) {
  .pay-list > div { grid-template-columns: 1fr; gap: 0.2rem; }
  .org-summary { grid-template-columns: 1fr; gap: 0.15rem 0; }
  .org-summary dt { margin-top: 0.35rem; }
  .org-head { grid-template-columns: 1fr; }
}
.product-thumb {
  width: 72px;
  height: 72px;
  max-width: 72px;
  max-height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.product-page-card { padding-bottom: 1rem; }
.product-page-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.2rem;
}
.product-page-head h1 { margin: 0; }
.product-page-card > .sub { margin: 0 0 0.15rem; }
.product-tiers-heading { margin: 1.1rem 0 0.55rem; font-size: 0.95rem; }
.product-card { padding: 1.2rem 1.35rem 1rem; }
.product-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0 0 1rem;
}
.product-card-head .product-thumb {
  width: 4.5rem;
  height: 4.5rem;
  max-width: 4.5rem;
  max-height: 4.5rem;
  flex: 0 0 4.5rem;
  margin-top: 0.1rem;
}
.product-card-copy { flex: 1; min-width: 0; }
.product-stat-tiles {
  display: flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  margin-left: auto;
  align-items: stretch;
}
.product-sold-tile {
  flex: 0 0 auto;
  min-width: 6.5rem;
  max-width: 8.5rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbf7f0;
  text-align: right;
}
.product-stock-tile {
  background: #eef6f2;
  border-color: #9ec9b8;
}
.product-sold-tile b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.product-sold-tile span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}
.product-card-copy h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
}
.product-card-copy .sub {
  margin: 0 0 0.55rem;
  line-height: 1.5;
  max-width: 40rem;
}
.product-retail {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.product-card-head .row-actions {
  flex: 0 0 auto;
  margin-top: 0.15rem;
}
.product-tiers { margin: 0; }
.product-tiers th,
.product-tiers td {
  padding: 0.5rem 1.25rem 0.5rem 0;
  vertical-align: baseline;
}
.product-tiers th:last-child,
.product-tiers td:last-child { padding-right: 0; }
.product-tiers tbody tr:last-child td { border-bottom: 0; padding-bottom: 0.15rem; }
.account-facts {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0.75rem 0 1.15rem;
}
.account-facts dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.account-facts dd { margin: 0; }
.convert-facts { grid-template-columns: 9.25rem 1fr; }
.convert-date-dd.is-warn { color: #9a3412; }
.convert-date-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.convert-date-flag {
  position: relative;
  margin: 0.55rem 0 0;
  max-width: 28rem;
  padding: 0.65rem 0.8rem;
  background: #fff4e5;
  border: 1px solid var(--accent-2);
  border-radius: 8px;
  color: #9a3412;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.convert-date-flag::before,
.convert-date-flag::after {
  content: "";
  position: absolute;
  left: 1.35rem;
  width: 0;
  height: 0;
  border: 7px solid transparent;
}
.convert-date-flag::before {
  top: -7px;
  border-top: 0;
  border-bottom-color: var(--accent-2);
}
.convert-date-flag::after {
  top: -5px;
  border-top: 0;
  border-bottom-color: #fff4e5;
}
.welcome-org-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.convert-date-picker { margin: 0.65rem 0 0; max-width: 16rem; }
.convert-date-picker label { display: block; }
.org-summary {
  display: grid;
  grid-template-columns: 8.25rem 1fr;
  gap: 0.45rem 1rem;
  margin: 0.85rem 0 0.35rem;
  align-items: start;
}
.org-summary dt {
  font-weight: 800;
  margin: 0;
}
.org-users-dt {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.7rem;
}
.org-users-dt .btn.small {
  padding: 0.05rem 0.45rem;
  line-height: 1.2;
  min-width: 1.55rem;
}
.org-summary dd {
  margin: 0;
  font-weight: 400;
}
.org-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 1fr);
  gap: 1rem 2rem;
  align-items: stretch;
  margin-top: 0.35rem;
}
.org-notes {
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: text;
}
.org-notes h3 {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.org-notes p {
  margin: 0;
  flex: 1;
}
.org-notes-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.org-notes textarea {
  flex: 1;
  min-height: 8rem;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  resize: vertical;
  font: inherit;
  line-height: 1.45;
  cursor: text;
}
.org-notes textarea:focus {
  outline: none;
}
.org-notes-status {
  margin-top: 0.35rem;
  min-height: 1.1em;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.card-add-panel {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 0.9rem 0.35rem;
  background: #fbf7f0;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.import-roster-help { max-width: 42rem; }
.import-roster-help p { margin: 0 0 0.45rem; }
.inline-edit-row > td {
  padding: 0;
  background: #fbf7f0;
}
.inline-edit {
  padding: 0.85rem 0.9rem 0.35rem;
}
.attach-order-list {
  list-style: none;
  margin: 0.4rem 0 0.75rem;
  padding: 0;
}
.attach-order-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--line);
}
.attach-order-list li:last-child { border-bottom: 0; }
.kickoff-live, .kickoff-video, .kickoff-when { margin: 0 0 1rem; }
.sale-form .kickoff-live,
.sale-form .kickoff-video,
.sale-form .kickoff-when { margin: 0; }
.kickoff-help {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted, #5a5a5a);
}
.kickoff-help li { margin: 0.28rem 0; }
.kickoff-help-one { margin-top: 0.35rem; }
.sale-form .sub { display: block; margin: 0.25rem 0 0; }
@media (max-width: 720px) {
  .org-head { grid-template-columns: 1fr; }
}
.org-user-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.org-user-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0.45rem 0 0;
}
.org-user-list li:first-child { margin-top: 0; }
.org-user-list li:last-child { margin-bottom: 0; }
.org-user-list a + .badge { margin-left: 0.2rem; vertical-align: middle; }
.org-user-list .inline-edit {
  flex-basis: 100%;
  margin-top: 0.35rem;
}
#org-users .card-add-panel { margin: 0 0 0.65rem; }
.tax-cert-preview {
  max-width: 22rem;
  height: 280px;
  margin: 0.5rem 0 0.85rem;
}
.tax-cert-preview iframe {
  width: 200%;
  height: 500px;
  transform: scale(0.5);
}
.account-hero {
  display: grid;
  grid-template-columns: 1fr minmax(12rem, 15rem);
  gap: 1.25rem 1.5rem;
  align-items: start;
}
.account-hero .account-facts { margin-bottom: 0; }
.account-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tax-cert-window {
  position: relative;
  min-width: 12rem;
  max-width: 16rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.8rem;
}
#fundraisers,
#quotes,
.quotes-strip,
.has-nudge { position: relative; }
#fundraisers {
  margin-top: 1.65rem;
  padding-top: 1.35rem;
}
.card-tab-bar {
  position: absolute;
  left: 1.1rem;
  top: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  z-index: 2;
  max-width: calc(100% - 2.2rem);
}
.card-tab-bar .card-tab,
h1.card-tab,
h2.card-tab {
  margin: 0;
  padding: 0.22rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
  font-family: inherit;
  max-width: 100%;
}
.card-tab-bar .btn-add-plus {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 1.2rem;
}
.add-fundraiser-prompt {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
#fundraisers:has(.nudge-under-plus) {
  padding-top: 5.1rem;
}
.nudge {
  --nudge-shadow: drop-shadow(0 2px 3px rgba(30, 58, 76, 0.16)) drop-shadow(0 6px 12px rgba(30, 58, 76, 0.14));
  --nudge-tail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 34'%3E%3Cpath fill='%23000' d='M1.2 5.2c3.4 6.6 3.4 16.8 0 23.6 7.2-4.4 14.4-8.4 20-11.8C15.6 13.8 8.4 9.6 1.2 5.2z'/%3E%3C/svg%3E");
  --nudge-tail-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath fill='%23000' d='M5.2 1.2c6.6 3.4 16.8 3.4 23.6 0-4.4 7.2-8.4 14.4-11.8 20C13.8 15.6 9.6 8.4 5.2 1.2z'/%3E%3C/svg%3E");
  --nudge-tail-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 22'%3E%3Cpath fill='%23000' d='M5.2 20.8c6.6-3.4 16.8-3.4 23.6 0-4.4-7.2-8.4-14.4-11.8-20C13.8 6.4 9.6 13.6 5.2 20.8z'/%3E%3C/svg%3E");
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 10.5rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: var(--accent-2);
  color: #fff;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.3;
  filter: var(--nudge-shadow);
  z-index: 3;
}
.nudge:hover {
  color: #fff;
  filter: brightness(1.05) var(--nudge-shadow);
}
.nudge a {
  color: #fff;
  text-decoration: underline;
  font-weight: 800;
}
.nudge a:hover { color: #fff; }
.nudge-num {
  position: absolute;
  top: -0.5rem;
  left: -0.45rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(30, 58, 76, 0.2);
}
.nudge-dismiss {
  flex: 0 0 auto;
  margin: 0;
}
.nudge-dismiss button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.nudge-dismiss button:hover,
.nudge-dismiss button:focus-visible {
  background: rgba(0, 0, 0, 0.18);
  outline: none;
}
.nudge-arrow {
  position: absolute;
  width: 18px;
  height: 26px;
  background: var(--accent-2);
  pointer-events: none;
  -webkit-mask: var(--nudge-tail) center / 100% 100% no-repeat;
  mask: var(--nudge-tail) center / 100% 100% no-repeat;
}
.nudge-right {
  position: absolute;
  left: calc(100% + 1.15rem);
  top: 1.15rem;
}
.nudge-right .nudge-arrow {
  left: -16px;
  top: 0.85rem;
  transform: scaleX(-1);
}
.nudge-left {
  position: absolute;
  right: calc(100% + 1.15rem);
  top: 0.85rem;
  flex-direction: row-reverse;
  text-align: right;
}
.nudge-left .nudge-arrow {
  right: -16px;
  top: 0.85rem;
}
.nudge-left.nudge-align-tab {
  top: 0;
  transform: translateY(-50%);
}
.nudge-left.nudge-align-tab .nudge-arrow {
  top: 50%;
  transform: translateY(-50%);
}
.nudge-wide {
  width: 15.75rem;
  align-items: flex-start;
}
.nudge.nudge-under-plus {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 50%;
  width: max-content;
  max-width: min(22rem, calc(100vw - 2.4rem));
  margin: 0;
  padding: 0.7rem 1rem;
  flex-direction: row;
  text-align: left;
  transform: translateX(-50%);
  white-space: nowrap;
}
.nudge.nudge-under-plus .nudge-arrow {
  left: 50%;
  right: auto;
  top: -13px;
  bottom: auto;
  width: 26px;
  height: 16px;
  transform: translateX(-50%);
  -webkit-mask: var(--nudge-tail-up) center / 100% 100% no-repeat;
  mask: var(--nudge-tail-up) center / 100% 100% no-repeat;
}
@media (max-width: 540px) {
  .nudge.nudge-under-plus {
    width: 15.5rem;
    white-space: normal;
  }
  #fundraisers:has(.nudge-under-plus) {
    padding-top: 6.35rem;
  }
}
.nudge-wide:has(.nudge-dismiss) {
  width: 17.25rem;
}
.nudge-in-tile,
.nudge-point-down {
  margin: 0 0 1.05rem;
  flex-direction: row;
  text-align: left;
}
.nudge-in-tile .nudge-arrow,
.nudge-point-down .nudge-arrow {
  left: 1.15rem;
  right: auto;
  top: auto;
  bottom: -13px;
  width: 26px;
  height: 16px;
  transform: none;
  -webkit-mask-image: var(--nudge-tail-down);
  mask-image: var(--nudge-tail-down);
}
@media (max-width: 1680px) {
  .nudge-right,
  .nudge-left {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: none;
    margin: 0 0 1.1rem;
    flex-direction: row;
    text-align: left;
    transform: none;
  }
  .nudge-right .nudge-arrow,
  .nudge-left .nudge-arrow,
  .nudge-left.nudge-align-tab .nudge-arrow {
    left: 1.15rem;
    right: auto;
    top: auto;
    bottom: -13px;
    width: 26px;
    height: 16px;
    transform: none;
    -webkit-mask-image: var(--nudge-tail-down);
    mask-image: var(--nudge-tail-down);
  }
  .nudge-dismiss { margin-left: auto; }
}
.tax-cert-window .btn { width: 100%; text-align: center; margin-top: 0.5rem; }
.tax-cert-window .nudge-in-tile + .btn { margin-top: 0.15rem; }
.tax-cert-window h3 { margin: 0 0 0.5rem; font-size: 0.95rem; }
.tax-cert-thumb {
  display: block;
  height: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.tax-cert-thumb iframe {
  width: 180%;
  height: 280px;
  border: 0;
  transform: scale(0.55);
  transform-origin: top left;
  pointer-events: none;
}
.tracker-nav { display: flex; flex-wrap: wrap; gap: 0.75rem 1.1rem; margin: 0.75rem 0 0; }
.tracker-nav a { font-weight: 700; text-decoration: none; }
.tracker-nav a.active { color: var(--navy); }
.tracker-head { position: relative; }
.sale-card { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; position: relative; }
.sale-card:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.sale-card:has(.wrap-it-tab) { padding-bottom: 1.85rem; }
.sale-card .row { margin-bottom: 0.85rem; }
.sale-card .sub { margin-top: 0; }
.wrap-it-tab {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 4;
  margin: 0;
}
.wrap-it-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #046c3d;
  border-radius: 999px;
  padding: 0.62rem 1.35rem;
  background: var(--sold);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(6, 118, 71, 0.28);
}
.wrap-it-btn:hover {
  background: #05663d;
}
.wrap-it-sparkle {
  display: inline-block;
  font-size: 1.05rem;
  line-height: 1;
  animation: wrap-twinkle 1.15s ease-in-out infinite;
}
.wrap-it-sparkle-late { animation-delay: 0.45s; }
@keyframes wrap-twinkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.4; transform: scale(1.35) rotate(18deg); }
}
#fundraiser-history {
  scroll-margin-top: 1.25rem;
}
#fundraiser-history .past-fundraisers {
  margin-top: 0;
}
.sale-delivery {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.sale-dates-range {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sale-dates-part .sub {
  margin: 0;
  display: block;
}
.sale-dates-hero {
  margin: 0.1rem 0 0;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.sale-delivery.is-missing {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--muted);
}
.past-fundraisers {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.history-heading {
  margin: 1.15rem 0 0;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy);
}
.past-sale-facts {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.2rem 0.85rem;
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}
.past-sale-facts dt {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}
.past-sale-facts dd {
  margin: 0;
}
.past-fundraisers > li {
  border-top: 1px solid var(--line);
  padding: 0.7rem 0;
}
.past-fundraisers > li:first-child { border-top: 0; padding-top: 0; }
.past-sale-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: baseline;
}
.past-fundraisers .sub { margin: 0; }
.nested-history {
  list-style: disc;
  margin: 0.4rem 0 0 1.25rem;
  padding: 0;
  width: 100%;
  flex-basis: 100%;
}
.nested-history > li {
  display: list-item;
  border: 0;
  padding: 0.18rem 0;
  margin: 0;
}
.nested-history .nested-history {
  margin-top: 0.2rem;
}
.nested-history .sub { display: inline; margin-left: 0.25rem; }
.saved-quotes .nested-history {
  margin-left: 1.5rem;
  flex-basis: 100%;
}
.saved-quotes .inline-edit { flex-basis: 100%; }
.inset-row .quotes-strip { margin: 0.15rem 0 0.85rem; }
.inset-row td {
  padding-top: 0.7rem;
  background: transparent;
}
.fundraiser-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.fundraiser-tile {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem 0.85rem 2.35rem;
  min-width: 0;
}
.fundraiser-tile .nudge-in-tile,
.tax-cert-window .nudge-in-tile {
  width: auto;
  max-width: none;
}
.fundraiser-tile h4 {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fundraiser-tile p { margin: 0 0 0.55rem; }
.fundraiser-tile .tile-form p { margin: 0; }
.fundraiser-tile .sub { display: block; margin-top: 0.2rem; }
.tile-form,
.letter-request-form,
.sale-form,
.card > form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card > form[hidden] { display: none; }
.tile-form > input[type="hidden"],
.letter-request-form > input[type="hidden"],
.sale-form > input[type="hidden"],
.card > form > input[type="hidden"] {
  display: none;
}
.tile-form > p,
.letter-request-form > p,
.sale-form > p,
.card > form > p {
  margin: 0;
}
.kickoff-schedule:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.kickoff-schedule > p { margin: 0; }
.sale-name-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.sale-name { margin: 0; font-size: 1.35rem; }
.person-title {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.person-edit-link {
  margin-left: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}
.person-title .person-edit-link { margin-left: 0; }
.missing,
.tile-form label.missing,
.fundraiser-tile h4.missing {
  color: var(--hot);
  font-weight: 800;
}
.order-tile-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.55rem;
}
.order-tile-line img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.order-tile-line strong,
.order-tile-line span { display: block; }
.order-tile-line span { color: var(--muted); font-size: 0.9rem; font-weight: 400; }
.order-tile-line .order-tile-name {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 400;
}
.fundraiser-tile .sale-delivery {
  font-weight: 400;
}
.delivery-checks { margin: 0.35rem 0 0; }
.delivery-checks .check {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}
.delivery-checks .check:has(input:not(:checked)) {
  font-weight: 400;
  color: var(--muted);
}
.order-note {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
}
.fundraiser-tile.is-summary .tile-value {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}
.fundraiser-tile.is-summary .order-note {
  margin: 0 0 0.55rem;
}
.fundraiser-tile.is-summary .order-tile-line strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}
.fundraiser-tile.is-summary .sale-dates-part .tile-value,
.fundraiser-tile.is-summary .sale-dates-part .order-note {
  margin: 0.1rem 0 0;
}
.prep-heading {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.prep-done {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  z-index: 2;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  border-radius: 50%;
  background: var(--sold);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}
.fundraiser-tile.is-summary { padding-bottom: 2.35rem; }
.fundraiser-tile:not(.is-locked) .kickoff-flag { display: none; }
.fundraiser-tile.is-locked .tile-form .kickoff-live { display: none; }
.kickoff-flag {
  margin: 0.4rem 0 0;
}
.kickoff-flag .check {
  margin: 0;
  font-weight: 700;
}
.admin-sale-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.admin-sale-head .sale-name { margin: 0; }
.admin-sale-actions { flex-shrink: 0; }
.dropoff-strip {
  margin: 0.85rem 0 0;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.dropoff-strip h4 {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dropoff-strip > .sub { margin: 0 0 0.55rem; }
.alan-tasks-form textarea {
  width: 100%;
  min-height: 8.5rem;
  margin: 0 0 0.55rem;
  font: inherit;
  line-height: 1.45;
}
.alan-tasks-form.is-delivered textarea {
  color: var(--muted);
}
.alan-tasks-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 0.15rem;
}
.alan-tasks-actions .check { margin: 0; }
.admin-sales .sale-card .sale-todos {
  margin: 0 0 0.85rem;
}
.dropoff-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dropoff-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.2rem 0;
}
.dropoff-row .check { flex: 1; margin: 0; font-weight: 700; }
.dropoff-list li.is-done .check { color: var(--muted); text-decoration: line-through; }
.dropoff-add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.65rem 0 0;
}
.dropoff-add input[type="text"] {
  flex: 1;
  min-width: 12rem;
  max-width: 24rem;
}
.admin-sales .sale-card .quotes-strip { margin-top: 0.85rem; }
.admin-sales .sale-card .fundraiser-tiles { margin-top: 0.85rem; }
.admin-sales { overflow: visible; }
.admin-sales .sale-card { margin-bottom: 1.35rem; }
.fundraiser-tile.is-locked .tile-form { display: none; }
.fundraiser-tile:not(.is-locked) .tile-summary { display: none; }
.tile-summary p { margin: 0 0 0.35rem; }
.tile-summary > p:not(.sub) {
  font-weight: 800;
  color: var(--navy);
}
.tile-summary > p.sale-delivery {
  font-weight: 400;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.2;
}
.sale-dates-big {
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 0 0 0.35rem;
}
.tile-summary .sub {
  font-weight: 400;
  color: var(--muted);
}
.tile-summary .sub.tile-copy {
  font-weight: 400;
  color: var(--muted);
}
.fundraiser-tile.is-locked .tile-form .tile-save { display: none; }
.tile-confirm { margin: 0.55rem 0 0; }
.tile-confirmed { color: var(--sold) !important; }
.tile-summary > p.kickoff-loc-label {
  margin: 0.45rem 0 0.1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.tile-summary .sub.tile-wait,
.fundraiser-tile > .sub.tile-wait {
  margin-top: 0.85rem;
}
.tile-edit,
.letter-change {
  position: absolute;
  right: 2.5rem;
  bottom: 0.55rem;
  margin: 0;
}
.tile-edit,
a.tile-edit,
.letter-change button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}
.tracker-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.tracker-strip .btn { justify-self: start; }
.fundraisers-head {
  display: flex;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.75rem;
}
.fundraisers-head h2,
.fundraisers-head .sale-name { margin: 0; flex: 0 0 auto; }
.fundraisers-head .tracker-strip {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem 1.15rem;
}
.fundraisers-head .tracker-strip-stat { flex: 1; min-width: 0; }
.fundraisers-head .tracker-strip .btn {
  margin-left: auto;
  justify-self: end;
  flex: 0 0 auto;
}
@media (max-width: 800px) {
  .fundraisers-head { flex-wrap: wrap; }
  .fundraisers-head .tracker-strip { flex-basis: 100%; }
}
.tracker-strip-stat { min-width: 0; }
.tracker-strip-stat b {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
}
.tracker-strip-stat span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}
@media (max-width: 540px) {
  .tracker-strip { grid-template-columns: 1fr 1fr; }
}
.tile-form label {
  display: block;
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}
.tile-form input[type="date"],
.tile-form input[type="time"],
.tile-form select,
.tile-form input[type="text"],
.tile-form input:not([type]) {
  width: 100%;
}
.tile-stat {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
@media (max-width: 900px) {
  .fundraiser-tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .fundraiser-tiles { grid-template-columns: 1fr; }
}
.sale-todos {
  background: #fff7ed;
  border: 1px solid #f4d0a8;
  border-radius: 8px;
  padding: 0.65rem 0.85rem 0.55rem;
  margin: 0 0 0.85rem;
}
.sale-todos-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.sale-todos ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
}
.sale-todos li {
  margin: 0.15rem 0;
  font-weight: 700;
  color: var(--navy);
}
.sale-todos a { color: var(--navy); }
.dash-hero {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  align-items: start;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.dash-hero.dash-hero-six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.dash-hero.dash-hero-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-hero-stat b {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.dash-hero-stat b a { color: inherit; text-decoration: none; }
.dash-hero-stat b a:hover { text-decoration: underline; }
.dash-hero-stat span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}
.dash-hero-stat .hero-dates {
  display: inline-block;
  white-space: nowrap;
}
.dash-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 1rem;
}
.dash-workflow {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.dash-col {
  min-width: 0;
  margin-bottom: 0;
}
.dash-col h2:not(.card-tab),
.dash-col .dash-col-title:not(.card-tab) {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--navy);
  padding-bottom: 0.45rem;
  border-bottom: 3px solid var(--accent);
}
.dash-col[data-col="orders"] .dash-col-title { border-bottom-color: #8bb89a; }
.dash-col[data-col="letters"] .dash-col-title { border-bottom-color: #d4a3b8; }
.dash-col[data-col="kickoff"] .dash-col-title { border-bottom-color: #c98984; }
.dash-task-kind {
  display: inline-block;
  margin: 0 0.35rem 0.2rem 0;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #e8efe9;
  color: #3d6b4f;
  vertical-align: middle;
}
.dash-task-kind-letter { background: #f6e8ee; color: #7a4a5f; }
.dash-task-kind-kickoff { background: #f6e4e2; color: #8a4a45; }
.dash-task-kind-quote { background: #e8eef6; color: #3d5a78; }
.dash-tab-link {
  display: inline-block;
  padding: 0.18rem 0.7rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.dash-tab-link:hover { color: var(--navy); }
.dash-fr-compact-list .dash-fr-compact {
  align-items: flex-start;
}
.dash-fr-compact .badge { margin-right: 0.35rem; }
.dash-fr-compact .dash-fr-checks {
  padding-top: 0.15rem;
  flex-wrap: wrap;
}
.dash-fr-open { color: #b42318; font-weight: 700; }
.helpful-resources h2:not(.card-tab) {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.return-inventory-block h2:not(.card-tab) {
  margin: 0 0 0.45rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.return-inventory-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 0;
}
.return-inventory-tile {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eef6f2;
}
.return-inventory-tile img {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
  flex: 0 0 3.25rem;
}
.return-inventory-tile b {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.return-inventory-tile span {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}
.return-inventory-notify { margin: 0.75rem 0 0; }
.return-inventory-verify { margin: 0.85rem 0 0; }
.return-inventory-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  margin: -1.5rem -1rem 1.1rem;
  padding: 0.38rem 1.15rem;
  background: #eef6f2;
  border-bottom: 1px solid #c5ddd4;
}
.return-inventory-band .check {
  margin: 0;
  font-size: 0.9rem;
}
.return-inventory-band .btn.small {
  padding: 0.22rem 0.7rem;
}
.resource-filter-rows {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.resource-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
}
.resource-filters[hidden],
.resource-empty[hidden],
.resource-card.is-off,
.resource-card[hidden],
.resource-timing-field[hidden],
.resource-save-btn[hidden] {
  display: none !important;
}
.resource-filters button {
  margin: 0;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.resource-filters button.is-on {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr));
  gap: 0.85rem;
}
.resource-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.resource-card.is-row-hidden {
  display: none !important;
}
.resource-expand {
  margin-top: 0.85rem;
}
.resource-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  background: #f3eee6;
  overflow: hidden;
}
.resource-thumb.is-canva {
  background: #fff;
}
.resource-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resource-thumb.is-file {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.resource-card-body {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}
.resource-cat {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.resource-card-body h3 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}
.resource-card-body h3 a {
  color: var(--navy);
  text-decoration: none;
}
.resource-card-body h3 a:hover { text-decoration: underline; }
.resource-card-body form { margin: 0.45rem 0 0; }
.resource-edit {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.resource-edit label { margin: 0; }
.resource-edit input,
.resource-edit select {
  width: 100%;
  font-size: 0.85rem;
}
.resource-edit-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.resource-save-status {
  margin-right: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.resource-edit-actions .btn { margin: 0; }
.resource-card-body .is-danger {
  padding: 0;
  border: 0;
  background: none;
  color: var(--hot, #b42318);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
}
.dash-col h3 {
  margin: 0.85rem 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-col h3:first-of-type { margin-top: 0.35rem; }
.dash-col .sub { margin: 0 0 0.65rem; }
.dash-col .empty { padding: 0.5rem 0; text-align: left; }
.dash-col-scroll {
  height: calc(6 * 3.85rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}
.dash-todo {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-todo li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.dash-todo li:last-child { border-bottom: 0; }
.dash-todo-main { min-width: 0; }
.dash-todo-main a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.dash-todo-main a:hover { text-decoration: underline; }
.dash-todo-main .sub { display: block; margin: 0.15rem 0 0; }
.dash-todo-done { margin: 0; flex: 0 0 auto; }
.dash-todo-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 0 0 auto;
}
.dash-todo-snooze { max-width: none; }
.dash-todo-snooze button { color: var(--muted); font-weight: 600; }
.dash-todo-snooze button:hover { color: var(--navy); }
.dash-todo li.is-priority .dash-todo-main a,
.sale-todos li.is-priority a,
.sale-todos li.is-priority,
.dash-spotlight tr.is-priority td:first-child a {
  color: #b42318;
}
.dash-todo li.is-priority {
  background: #fff6f5;
  margin: 0 -0.35rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  border-radius: 8px;
}
.tile-priority {
  color: #b42318 !important;
  font-weight: 700;
}
.list-expand:not(.is-expanded) [data-search].is-overflow {
  display: none !important;
}
.list-expand:not(.is-expanded) .list-expand-scroll {
  max-height: calc(2.35rem + 6 * 3.05rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.list-expand.is-expanded .list-expand-scroll {
  max-height: none;
  overflow: visible;
}
.list-expand-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
}
.col-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0.35rem 0 0.1rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
}
.col-expand[hidden] { display: none; }
.col-expand-icon {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.list-expand.is-expanded .col-expand-icon {
  transform: rotate(-135deg);
  margin-top: 0.35rem;
}
.col-expand:hover .col-expand-icon { filter: brightness(0.7); }
@media (max-width: 1100px) {
  .dash-hero { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-hero.dash-hero-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dash-hero.dash-hero-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .status-board { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .dash-hero { grid-template-columns: 1fr 1fr; }
  .dash-hero.dash-hero-six { grid-template-columns: 1fr 1fr; }
  .dash-hero.dash-hero-three { grid-template-columns: 1fr; }
  .dash-cols,
  .dash-workflow { grid-template-columns: 1fr; }
  .status-board { grid-template-columns: 1fr 1fr; }
}
.status-board-hint { margin: 0.15rem 0 0.55rem; }
.status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 1.5rem;
}
.status-board-col {
  min-width: 0;
  margin-bottom: 0;
}
.status-board-filter,
.col-filter {
  display: block;
  width: 100%;
  margin: 0 0 0.65rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.status-board-filter::placeholder,
.col-filter::placeholder { color: #8a96a3; }
.status-board-filter:focus,
.col-filter:focus {
  outline: 0;
  border-color: rgba(31, 41, 51, 0.28);
  background: #fff;
}
.dash-col .col-filter {
  background: #fff;
}
.status-board-list {
  height: calc(6 * 3.45rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.2rem;
}
.status-board-col.is-over {
  outline: 2px dashed rgba(30, 58, 76, 0.35);
  outline-offset: -2px;
}
.status-board-col[data-status="sold"] {
  background: #e7f3ea;
  border-color: #c5ddd0;
}
.status-board-col[data-status="renewal"] {
  background: #f6e8ef;
  border-color: #e4c8d5;
}
.status-board-col[data-status="hot"] {
  background: #f4e4e2;
  border-color: #e2c4c0;
}
.status-board-col[data-status="cold"] {
  background: #e6eef6;
  border-color: #c5d4e4;
}
.status-board-col[data-status="sold"] .dash-col-title { border-bottom-color: #8bb89a; color: #3d6b4f; }
.status-board-col[data-status="renewal"] .dash-col-title { border-bottom-color: #d4a3b8; color: #7a4a5f; }
.status-board-col[data-status="hot"] .dash-col-title { border-bottom-color: #c98984; color: #8a4a45; }
.status-board-col[data-status="cold"] .dash-col-title { border-bottom-color: #8aa4c0; color: #3d5a78; }
.status-board-col[data-status="sold"] .status-board-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: #c5ddd0;
}
.status-board-col[data-status="renewal"] .status-board-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: #e4c8d5;
}
.status-board-col[data-status="hot"] .status-board-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: #e2c4c0;
}
.status-board-col[data-status="cold"] .status-board-card {
  background: rgba(255, 255, 255, 0.72);
  border-color: #c5d4e4;
}
.status-board-count {
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--muted);
}
.card-tab .status-board-count {
  letter-spacing: 0.02em;
  color: var(--muted);
}
.status-board-card {
  cursor: grab;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin: 0 0 0.4rem;
}
.status-board-card.is-dragging { opacity: 0.45; }
.status-board-card a {
  display: block;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.status-board-card a:hover { text-decoration: underline; }
.status-board-card .sub {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}
.status-board-col .empty { padding: 0.35rem 0; text-align: left; }
@media (max-width: 640px) {
  .status-board { grid-template-columns: 1fr; }
}
.dash-fundraisers {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.dash-fr {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.85rem 0.95rem;
}
.dash-fr.is-started {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 0.85rem;
  padding: 0.45rem 0.75rem;
}
.dash-fr-details {
  min-width: 0;
}
.dash-fr-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  cursor: pointer;
  list-style: none;
}
.dash-fr-line::-webkit-details-marker { display: none; }
.dash-fr-line::marker { content: ''; }
.dash-fr-line::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  flex-shrink: 0;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  margin-top: 0.45rem;
  margin-right: 0.15rem;
}
.dash-fr-details[open] .dash-fr-line::before {
  transform: rotate(45deg);
  margin-top: 0.35rem;
}
.dash-fr-line-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
  min-width: 0;
}
.dash-fr-line-name {
  color: var(--navy);
  font-size: 0.95rem;
}
.dash-fr-line .sub {
  margin: 0;
  font-size: 0.82rem;
}
.dash-fr-line-sponsor {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.75rem;
}
.dash-fr-line-sponsor strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.dash-fr-checks {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.12rem;
}
.dash-fr-check { margin: 0; }
.dash-fr-check .check {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.dash-fr-check .check input { width: auto; }
.dash-fr-details[open] .dash-fr-grid {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.dash-fr-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 1.15fr) minmax(11rem, 1fr) minmax(12rem, 1.2fr);
  gap: 0.75rem 1.15rem;
  align-items: start;
}
.dash-fr-grid h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-fr-grid p { margin: 0 0 0.35rem; }
.dash-fr-name {
  margin: 0.4rem 0 0.15rem;
  font-size: 1.12rem;
}
.dash-fr-name a { color: var(--navy); text-decoration: none; }
.dash-fr-name a:hover { text-decoration: underline; }
.dash-fr-org { margin: 0; font-weight: 700; }
.dash-fr .sale-delivery { margin-top: 0; margin-bottom: 0.35rem; }
.dash-fr .order-tile-line { margin-bottom: 0.4rem; }
.dash-fr .order-tile-line img { width: 40px; height: 40px; }
.dash-fr .sale-todos { margin: 0.8rem 0 0; }
.dash-fr-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  text-align: right;
}
.dash-fr-contact p {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
  margin: 0;
}
.dash-fr-contact strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.dash-fr-contact span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
@media (max-width: 800px) {
  .dash-fr-grid { grid-template-columns: 1fr; }
  .dash-fr.is-started {
    grid-template-columns: 1fr;
    row-gap: 0.35rem;
  }
  .dash-fr-checks { padding-top: 0; }
}
.tier-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 1rem; }
.tier-tabs a {
  display: inline-block;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  background: #e8efe9;
  color: var(--navy);
}
.tier-tabs a.active { background: var(--accent); color: #fff; }
.saved-quotes { list-style: none; margin: 0; padding: 0; }
.saved-quotes li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.saved-quotes li:first-child { border-top: 0; }
.saved-quotes .sub { display: block; margin: 0.2rem 0 0; }
.saved-quote-actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.convert-quote-form {
  flex-basis: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1rem;
  margin: 0.15rem 0 0;
  padding: 0.55rem 0.7rem;
  background: #eef6f2;
  border: 1px solid #c5ddd4;
  border-radius: 10px;
}
.convert-quote-form .sub { margin: 0; }
.convert-quote-form .check { margin: 0; }
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0;
  max-width: 22rem;
}
.row-actions .sep {
  color: var(--muted);
  padding: 0 0.4rem;
  font-weight: 400;
}
.row-actions a,
.row-actions button {
  display: inline;
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}
.row-actions a:hover,
.row-actions button:hover {
  color: var(--navy);
  text-decoration: underline;
  filter: none;
}
.row-actions .is-danger {
  color: var(--hot);
}
.row-actions .is-danger:hover { color: var(--hot); }
.row-actions form {
  display: inline;
  margin: 0;
}
.letter-prize-list { display: grid; gap: 0.75rem; margin: 0 0 0.75rem; }
.letter-prize-row {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.letter-prize-main {
  display: grid;
  grid-template-columns: minmax(12rem, 1.3fr) minmax(14rem, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}
.letter-prize-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.65rem 0.85rem;
  align-items: end;
}
.letter-prize-photo p { margin: 0; }
.letter-prize-current { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .letter-prize-main,
  .letter-prize-photo { grid-template-columns: 1fr; }
}
.letter-prizes {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
}
.letter-examples {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
}
.letter-examples a {
  display: inline-block;
  text-decoration: none;
}
.letter-examples a::before {
  content: "• ";
}
.quote-tile-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  margin: 0.35rem 0 0.55rem;
}
.quote-tile-actions a {
  font-size: 0.88rem;
  font-weight: 700;
}
.letter-preview {
  position: relative;
  width: 100%;
  max-width: 11.5rem;
  aspect-ratio: 8.5 / 11;
  margin: 0 0 0.55rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(31, 41, 51, 0.08);
}
.kickoff-guide-thumb {
  max-width: 6.25rem;
  margin: 0.4rem 0 0.15rem;
}
.letter-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  border: 0;
  transform: scale(0.25);
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}
.letter-preview-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.letter-preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0.75rem;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}
.video-preview {
  aspect-ratio: 16 / 9;
  max-width: 13rem;
  background: #1f2933;
}
.video-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-preview-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 2.1rem;
  height: 2.1rem;
  margin: -1.05rem 0 0 -1.05rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: none;
}
.video-preview-play::after {
  content: "";
  position: absolute;
  left: 0.82rem;
  top: 0.58rem;
  border-style: solid;
  border-width: 0.48rem 0 0.48rem 0.72rem;
  border-color: transparent transparent transparent #fff;
}
.fundraiser-tile.has-video-preview .kickoff-help { display: none; }
.letter-modal:not([open]) {
  display: none;
}
.letter-modal[open] {
  display: block;
}
.letter-modal {
  box-sizing: border-box;
  width: min(52rem, calc(100vw - 2.5rem));
  max-width: calc(100vw - 2.5rem);
  max-height: min(90vh, 48rem);
  overflow: auto;
  padding: 1.75rem 1.9rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(31, 41, 51, 0.28);
}
.letter-modal::backdrop {
  background: rgba(31, 41, 51, 0.55);
}
.letter-modal h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
}
.letter-modal label {
  display: block;
  margin: 0 0 0.35rem;
  font-weight: 700;
}
.letter-modal .sub {
  margin: 0 0 1rem;
  font-size: 1rem;
}
.letter-modal input[type="text"],
.letter-modal input[type="url"],
.letter-modal input[type="file"],
.letter-modal select,
.letter-modal textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
}
.letter-modal textarea {
  min-height: 7rem;
}
.letter-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
}
.dash-delivery-list {
  margin: 0 0 1rem;
  max-height: 16rem;
  overflow: auto;
}
.tile-form textarea {
  width: 100%;
  min-height: 4.5rem;
}
.return-request-form {
  flex: 1 0 100%;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin: 0.25rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px dashed var(--line);
}
.return-request-form[hidden] {
  display: none;
}
.return-qty[hidden] {
  display: none !important;
}
.return-request-form p { margin: 0; }
.return-request-form label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 0.2rem; }
.return-request-form .check { font-weight: 700; margin: 0.2rem 0; }
.return-request-form input[type="text"],
.return-request-form input[type="tel"],
.return-request-form input[type="number"],
.return-request-form select,
.return-request-form textarea {
  width: 100%;
  max-width: 28rem;
}
.return-qty { margin: 0 0 0.55rem 1.4rem !important; }
.quotes-strip {
  margin-top: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.quotes-strip h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.quotes-strip .quotes-strip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.quotes-strip > .nudge-right {
  top: 2.45rem;
}
.due-ok { color: var(--sold); font-weight: 700; }
.due-soon { color: var(--accent-2); font-weight: 700; }
.due-late { color: var(--hot); font-weight: 700; }
.sale-dates { margin: 0 0 1.1rem; }
.sale-dates h3 { margin: 0 0 0.35rem; font-size: 1rem; }
@media (max-width: 700px) {
  .account-hero { grid-template-columns: 1fr; }
  .product-card-head { flex-wrap: wrap; }
}
.order-products {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.85rem;
  margin: 0.75rem 0 1rem;
}
.order-product {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.8rem 0.9rem;
  min-width: 0;
}
.order-product.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.18);
}
.order-product-pick { cursor: pointer; display: block; }
.order-product-pick input { width: auto; margin: 0 0 0.45rem; }
.order-product img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  background: #fff;
  margin: 0 0 0.55rem;
}
.order-product h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.order-product p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.4; }
.order-product .qty-input { display: none; margin-top: 0.75rem; }
.order-product .qty-input.is-open { display: block; }
.followup-box {
  display: none;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem 1rem;
  margin: 0 0 1rem;
}
.followup-box.is-open { display: block; }
.followup-box h3 { margin: 0 0 0.35rem; }
.conditional { display: none; margin-top: 0.85rem; }
.conditional.is-open { display: block; }
@media (max-width: 800px) {
  .grid-2, .grid-3, .grid-4, .stats, .order-products { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; }
  .nav { justify-content: flex-start; }
  .nav a { margin-left: 0; margin-right: 0.8rem; }
}

.wrap:has(.cal-grid-card) { max-width: 1240px; }
.cal-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}
.cal-head-row h1 { margin: 0; }
.cal-month-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.cal-month-nav h2 { margin: 0; font-size: 1.15rem; }
.card.cal-head > form#cal-filters {
  display: block;
  flex-direction: row;
  gap: 0;
}
.cal-filters {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 1.15rem;
  width: 100%;
  margin: 0.75rem 0 0;
}
.cal-filter {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  width: auto;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  white-space: nowrap;
}
.cal-filter input {
  width: auto;
  margin: 0;
  flex: 0 0 auto;
}
.cal-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
  background: var(--muted);
}
.cal-dot-kickoff { background: var(--accent); }
.cal-dot-start { background: var(--navy); }
.cal-dot-end { background: var(--accent-2); }
.cal-dot-delivery { background: var(--sold); }
.cal-dot-warehouse { background: var(--accent-2); }
.cal-dot-vacation { background: var(--hot); }
.card.cal-head > form.cal-block-form {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.75rem;
  margin: 0.85rem 0 0;
}
.cal-block-form label {
  margin: 0;
  font-size: 0.75rem;
}
.cal-block-form input,
.cal-block-form select {
  width: auto;
  min-width: 8.5rem;
  margin-top: 0.2rem;
}
.cal-block-form input[name="note"] { min-width: 11rem; }
.cal-block-form .btn { margin-bottom: 0.1rem; }
.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.cal-weekdays {
  gap: 1px;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.cal-grid {
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.cal-cell {
  min-height: 7.5rem;
  background: var(--paper);
  padding: 0.35rem 0.4rem 0.5rem;
}
.cal-cell.is-pad { background: #f3eee6; min-height: 2rem; }
.cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-cell.is-warehouse { background: #fff4e5; }
.cal-cell.is-vacation { background: #fde8e8; }
.cal-cell.is-warehouse.is-vacation {
  background: linear-gradient(180deg, #fde8e8 0 50%, #fff4e5 50% 100%);
}
.cal-daynum {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.cal-events { list-style: none; margin: 0; padding: 0; }
.cal-ev { margin: 0 0 0.28rem; }
.cal-ev a,
.cal-ev .cal-ev-inner {
  display: block;
  padding: 0.2rem 0.3rem;
  border-radius: 5px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.25;
  font-size: 0.72rem;
  font-weight: 700;
}
.cal-ev-kickoff a { background: #e7f6f3; }
.cal-ev-start a { background: #e8eef2; }
.cal-ev-end a { background: #f8ebe3; }
.cal-ev-delivery a { background: #e6f4ec; }
.cal-ev-warehouse .cal-ev-inner {
  background: #c45c26;
  color: #fff;
}
.cal-ev-vacation .cal-ev-inner {
  background: #b42318;
  color: #fff;
}
.cal-ev-warehouse .cal-ev-kind,
.cal-ev-vacation .cal-ev-kind,
.cal-ev-warehouse .cal-ev-org,
.cal-ev-vacation .cal-ev-org {
  color: inherit;
}
.cal-ev.is-wrapped a { opacity: 0.65; }
.cal-ev-del {
  display: block;
  margin: 0.15rem 0 0;
}
.cal-ev-del button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.9;
}
.cal-ev-kind {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.cal-ev-detail { display: block; font-weight: 600; color: var(--muted); }
.cal-list td { vertical-align: top; }
.email-item {
  border-top: 1px solid var(--line);
  padding: 1rem 0 0.25rem;
  margin-top: 0.85rem;
}
.email-item:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.email-item-head { margin-bottom: 0.25rem; }
.email-on { font-size: 1rem; }
.email-state {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.email-state.is-on { color: var(--sold); }
.email-item textarea { width: 100%; font: inherit; }
.email-due { margin: 0.5rem 0 1rem; padding-left: 1.1rem; }
.email-cron { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: 0.8rem; }
@media (max-width: 800px) {
  .cal-cell { min-height: 4.5rem; }
  .cal-ev-detail, .cal-ev-kind { display: none; }
}