:root {
  --green: #174f3b;
  --green2: #236c50;
  --raspberry: #9b1f4d;
  --burgundy: #6d1731;
  --ink: #173128;
  --muted: #66766e;
  --cream: #fff8ef;
  --white: #fff;
  --line: #e3e5dd;
  --gold: #e4c381;
  --coral: #a52b58;
  --red: #7b1833;
  --blue: #496f60;
  --shadow: 0 12px 38px rgba(20, 67, 50, 0.11);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--cream);
}
body {
  margin: 0;
  background:
    radial-gradient(circle at 92% 0, rgba(155, 31, 77, 0.1), transparent 28rem),
    radial-gradient(
      circle at 8% 100%,
      rgba(35, 108, 80, 0.08),
      transparent 32rem
    ),
    linear-gradient(145deg, #fff 0%, var(--cream) 62%, #fff 100%);
  color: var(--ink);
  font:
    16px/1.5 Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(155, 31, 77, 0.42);
  outline-offset: 2px;
}
[hidden] {
  display: none !important;
}
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: min(590px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--raspberry);
  border-radius: 26px;
  padding: clamp(28px, 7vw, 58px);
  box-shadow: 0 28px 90px rgba(24, 56, 45, 0.14);
}
.amc-link {
  display: inline-block;
  color: var(--green);
  font-weight: 900;
  text-decoration: none;
  margin-bottom: 28px;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 45px;
  height: 45px;
  border: 2px solid var(--raspberry);
  border-radius: 15px 15px 15px 5px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #287b62, #104536);
  color: var(--cream);
  font:
    800 26px Georgia,
    serif;
  box-shadow: 0 9px 22px rgba(20, 79, 64, 0.2);
}
.brand-lockup strong {
  display: block;
  font:
    700 23px Georgia,
    serif;
  line-height: 1;
}
.brand-lockup small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 5px;
}
.auth-card .brand-lockup {
  margin-bottom: 38px;
}
.eyebrow {
  margin: 0;
  color: var(--raspberry);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
}
.auth-card h1,
.page-heading h1 {
  font:
    700 clamp(34px, 6vw, 54px)/0.98 Georgia,
    serif;
  letter-spacing: -0.035em;
  color: var(--green);
  margin: 8px 0 13px;
}
.lead,
.page-heading p {
  color: var(--muted);
}
.stack-form,
.dialog-form {
  display: grid;
  gap: 17px;
}
.stack-form {
  margin-top: 28px;
}
.stack-form label,
.dialog-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: #41564d;
}
.stack-form input,
.dialog-form input,
.dialog-form textarea,
.dialog-form select,
.chat-form input {
  width: 100%;
  border: 1px solid #cad5ce;
  border-radius: 11px;
  background: #fff;
  padding: 12px 13px;
  color: var(--ink);
}
.stack-form input {
  min-height: 51px;
}
.primary,
.secondary {
  border: 0;
  border-radius: 11px;
  padding: 12px 17px;
  font-weight: 850;
}
.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(20, 79, 64, 0.18);
}
.primary:hover {
  background: #0f4336;
}
.secondary {
  background: var(--cream);
  color: var(--green);
  border: 1px solid var(--line);
}
.stack-form .primary {
  min-height: 51px;
}
.help {
  color: var(--muted);
  font-size: 14px;
}
.admin-signin {
  color: var(--green);
  font-weight: 800;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  margin: 22px 0 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}
.wide-button {
  width: 100%;
  min-height: 51px;
}
.auth-back {
  margin-top: 18px;
}
.price-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 14px 16px;
  margin: 22px 0 8px;
  border: 1px solid #efd1dc;
  border-radius: 13px;
  background: linear-gradient(135deg, #fff, #fff2f7);
  color: var(--burgundy);
}
.price-line b {
  font: 700 28px Georgia, serif;
}
.price-line span {
  color: var(--muted);
}
.status-text {
  min-height: 1.3em;
  color: var(--red);
  font-weight: 750;
}
.status-text.success {
  color: #227151;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  grid-template-rows: 78px minmax(0, 1fr);
  grid-template-areas: "top top" "side main";
}
.topbar {
  grid-area: top;
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 260px minmax(250px, 540px) 1fr;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 3px solid var(--raspberry);
  backdrop-filter: blur(14px);
}
.search {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cream);
  border: 1px solid #e1e7e2;
  border-radius: 12px;
  padding: 0 14px;
  color: #77857e;
}
.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}
.user-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
  color: var(--muted);
  font-size: 14px;
}
.user-tools b {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
  padding: 8px;
}
.sidebar {
  grid-area: side;
  position: sticky;
  top: 78px;
  height: calc(100vh - 78px);
  background: linear-gradient(180deg, var(--green), #0e382a);
  border-right: 4px solid var(--burgundy);
  color: #fff;
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-button {
  border: 0;
  background: transparent;
  color: #d3e5de;
  border-radius: 12px;
  min-height: 47px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-weight: 780;
}
.sidebar .nav-button.active {
  background: var(--cream);
  color: var(--burgundy);
}
.nav-button span {
  font-size: 19px;
}
.privacy {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}
.privacy b,
.privacy span {
  display: block;
}
.privacy span {
  margin-top: 5px;
  color: #bdd2ca;
  font-size: 13px;
}
.main-panel {
  grid-area: main;
  min-width: 0;
}
.billing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 30px;
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--raspberry);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.billing-card h2 {
  color: var(--green);
  font: 700 30px Georgia, serif;
  margin: 13px 0 3px;
}
.billing-card p,
.billing-price span {
  color: var(--muted);
  margin: 0;
}
.billing-price {
  display: grid;
  text-align: right;
}
.billing-price b {
  color: var(--burgundy);
  font: 700 32px Georgia, serif;
}
.status-pill.active,
.status-pill.trialing,
.status-pill.legacy {
  background: #e1f3e9;
  color: var(--green);
}
.status-pill.invited,
.status-pill.pending {
  background: #fff0d2;
  color: #7b5310;
}
.status-pill.past-due,
.status-pill.canceled,
.status-pill.unpaid {
  background: #f7dfe7;
  color: var(--burgundy);
}
.view {
  display: none;
  max-width: 1260px;
  margin: auto;
  padding: 42px clamp(23px, 5vw, 72px) 90px;
}
.view.active {
  display: block;
}
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.page-heading h1 {
  font-size: clamp(34px, 4vw, 50px);
}
.page-heading p {
  margin: 0;
}
.language-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--green);
  box-shadow: inset 0 4px 0 var(--raspberry);
  color: #dbece6;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}
.language-strip span {
  padding: 12px 9px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}
.language-strip b {
  display: block;
  color: #ffdce9;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.stats-grid article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 5px 20px rgba(24, 56, 45, 0.04);
}
.stats-grid i {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-style: normal;
  font-size: 21px;
}
.stats-grid i.coral {
  background: #fce7ef;
  color: var(--coral);
}
.stats-grid i.gold {
  background: var(--cream);
  color: var(--green);
}
.stats-grid i.blue {
  background: #e8f3ed;
  color: var(--blue);
}
.stats-grid b {
  display: block;
  font:
    700 28px Georgia,
    serif;
}
.stats-grid span {
  color: var(--muted);
  font-size: 14px;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 13px;
}
.section-heading h2,
.panel h2 {
  font:
    700 24px Georgia,
    serif;
  margin: 0;
}
.section-heading p,
.panel > p {
  color: var(--muted);
  margin: 3px 0 0;
  font-size: 14px;
}
.pickup-list {
  display: grid;
  gap: 12px;
}
.pickup-card {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 5px 23px rgba(24, 56, 45, 0.04);
}
.pickup-card.closed {
  opacity: 0.85;
}
.pickup-time {
  display: grid;
  place-content: center;
  text-align: center;
  background: var(--cream);
  color: #285345;
}
.pickup-time b {
  font-size: 19px;
}
.pickup-time small {
  color: #74817b;
  text-transform: uppercase;
  font-weight: 800;
}
.pickup-body {
  padding: 18px 20px;
  min-width: 0;
}
.pickup-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.pickup-top h3 {
  margin: 0;
  font-size: 19px;
}
.pickup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}
.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 850;
}
.pill {
  background: #edf2ee;
  color: #597067;
}
.pill.split {
  background: #f8e4ec;
  color: var(--raspberry);
}
.status-pill.scheduled {
  background: #f4efe1;
  color: #816a33;
}
.status-pill.hit {
  background: #e4f4ea;
  color: #237349;
}
.status-pill.cream {
  background: #f8e4ec;
  color: var(--raspberry);
}
.status-pill.hole {
  background: #f5dce5;
  color: var(--burgundy);
}
.status-pill.in-the-box {
  background: var(--green);
  color: #fff;
}
.pickup-body > p {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: #51635b;
  overflow-wrap: anywhere;
}
.pickup-body > p.muted {
  color: #7a8781;
}
.pickup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid #edf0ed;
}
.assigned {
  font-size: 13px;
  color: #53655d;
  font-weight: 750;
}
.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}
.small-button {
  border: 1px solid #cad5ce;
  background: #fff;
  color: var(--green);
  border-radius: 9px;
  padding: 8px 11px;
  font-weight: 800;
  font-size: 13px;
}
.small-button.cream {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}
.small-button.hole {
  color: var(--red);
  border-color: #e4c9c2;
}
.empty {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #cbd6cf;
  border-radius: 17px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.6);
}
.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.calendar-day {
  padding: 14px 8px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.calendar-day.blocked {
  background: #f9e8ef;
}
.calendar-day small,
.calendar-day b,
.calendar-day span {
  display: block;
}
.calendar-day b {
  font:
    700 24px Georgia,
    serif;
  margin: 4px 0;
}
.calendar-day span {
  font-size: 12px;
  color: var(--green);
  font-weight: 800;
}
.calendar-day.blocked span {
  color: var(--red);
}
.schedule-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}
.block-list,
.day-list,
.team-list,
.thanks-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.block-row,
.day-row,
.team-row,
.thank-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.block-row {
  background: #fff3f7;
  border-color: #eccbd8;
}
.block-row div,
.day-row div,
.team-row div,
.thank-row div {
  min-width: 0;
  flex: 1;
}
.block-row b,
.day-row b,
.team-row b,
.thank-row b {
  display: block;
}
.block-row span,
.day-row span,
.team-row span,
.thank-row span {
  color: var(--muted);
  font-size: 14px;
}
.delete {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--red);
  font-size: 20px;
}
.chat-board {
  height: min(650px, calc(100vh - 240px));
  min-height: 480px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 19px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.message-list {
  flex: 1;
  overflow: auto;
  padding: 23px;
}
.message {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 11px;
  margin-bottom: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 13px;
}
.message header {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.message header small {
  color: #87928d;
}
.bubble {
  display: inline-block;
  margin-top: 5px;
  padding: 10px 13px;
  border-radius: 3px 14px 14px 14px;
  background: var(--cream);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.chat-form {
  display: flex;
  gap: 9px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: var(--cream);
}
.chat-form input {
  flex: 1;
  min-width: 0;
}
.thanks-list,
.team-list {
  margin-top: 0;
}
.thank-row,
.team-row {
  box-shadow: 0 4px 16px rgba(24, 56, 45, 0.035);
}
.thank-icon,
.team-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background: #f8e4ec;
  color: var(--raspberry);
  font-weight: 900;
}
.thank-row .small-button {
  margin-left: auto;
}
.letter {
  white-space: pre-wrap;
  background: var(--cream);
  border: 1px solid #ead7de;
  border-radius: 14px;
  padding: 25px;
  line-height: 1.7;
  max-height: 53vh;
  overflow: auto;
  font-family: Georgia, serif;
}
dialog {
  width: min(650px, calc(100% - 24px));
  border: 0;
  border-top: 5px solid var(--raspberry);
  border-radius: 21px;
  padding: 0;
  box-shadow: 0 28px 100px rgba(16, 39, 31, 0.25);
}
dialog::backdrop {
  background: rgba(9, 27, 21, 0.57);
  backdrop-filter: blur(3px);
}
.dialog-form {
  padding: 24px;
}
.dialog-form header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.dialog-form h2 {
  margin: 4px 0 0;
  font:
    700 28px Georgia,
    serif;
}
.close {
  border: 0;
  background: transparent;
  font-size: 28px;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-grid .wide {
  grid-column: 1/-1;
}
.dialog-form label small {
  font-weight: 500;
  color: var(--muted);
}
.dialog-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.check {
  display: flex !important;
  grid-template-columns: 20px 1fr;
  align-items: center;
}
.check input {
  width: 18px;
}
.time-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mobile-nav {
  display: none;
}
.toast,
#toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 80;
  max-width: min(90vw, 520px);
  padding: 11px 16px;
  border-radius: 11px;
  background: var(--green);
  border-top: 4px solid var(--raspberry);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: 0.22s;
}
.toast.show,
#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (max-width: 950px) {
  .language-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .schedule-grid {
    grid-template-columns: 1fr;
  }
  .topbar {
    grid-template-columns: 220px minmax(220px, 1fr) auto;
  }
  .user-tools > span {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
    padding-bottom: 73px;
  }
  .topbar {
    height: 68px;
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }
  .topbar .search {
    display: none;
  }
  .topbar .brand-mark {
    width: 38px;
    height: 38px;
  }
  .topbar .brand-lockup strong {
    font-size: 20px;
  }
  .topbar .brand-lockup small {
    font-size: 10px;
  }
  .user-tools .text-button {
    display: none;
  }
  .sidebar {
    display: none;
  }
  .view {
    padding: 27px 16px 44px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 36px;
  }
  .page-heading > .primary {
    position: fixed;
    right: 17px;
    bottom: 86px;
    z-index: 25;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }
  .page-heading > .primary::first-letter {
    font-size: 24px;
  }
  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    height: 73px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
    background: rgba(255, 255, 255, 0.96);
    border-top: 3px solid var(--raspberry);
    backdrop-filter: blur(13px);
    padding: 6px;
  }
  .mobile-nav .nav-button {
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    min-height: 59px;
    padding: 4px;
    color: #6b7972;
    font-size: 11px;
  }
  .mobile-nav .nav-button.active {
    color: var(--burgundy);
    background: #f8e4ec;
  }
  .language-strip {
    grid-template-columns: 1fr 1fr;
  }
  .language-strip span {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .language-strip span:last-child {
    grid-column: 1/-1;
  }
  .stats-grid {
    gap: 8px;
  }
  .stats-grid article {
    padding: 12px 9px;
    gap: 8px;
  }
  .stats-grid i {
    width: 35px;
    height: 35px;
  }
  .stats-grid b {
    font-size: 23px;
  }
  .stats-grid span {
    font-size: 11px;
  }
  .pickup-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .pickup-body {
    padding: 15px;
  }
  .pickup-top,
  .pickup-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .stage-actions {
    justify-content: flex-start;
  }
  .calendar-strip {
    overflow-x: auto;
    grid-template-columns: repeat(7, 82px);
  }
  .chat-board {
    height: calc(100vh - 235px);
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .wide {
    grid-column: auto;
  }
  .thank-row,
  .team-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .billing-card {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .billing-price {
    text-align: left;
  }
  .thank-row .small-button {
    margin-left: 55px;
  }
  .dialog-form {
    padding: 20px;
  }
  .dialog-form footer {
    flex-direction: column-reverse;
  }
  .dialog-form footer button {
    width: 100%;
  }
}
@media (max-width: 420px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid article:last-child {
    grid-column: 1/-1;
  }
  .user-tools b {
    display: none;
  }
  .pickup-top {
    gap: 8px;
  }
  .language-strip span {
    font-size: 12px;
  }
}
