:root {
  --navy: #0e1c2b;
  --ink: #1a1814;
  --muted: #6d675e;
  --line: #e7dccb;
  --paper: #f4efe6;
  --card: #fffcf8;
  --brass: #a68448;
  --gold: #c4a36a;
  --danger: #8a3030;
}
body.in-frame, .cyc-member-embed, body.in-frame *, .cyc-member-embed * { box-sizing: border-box; }
body.in-frame {
  margin: 0;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(196, 163, 106, .18), transparent 50%),
    var(--paper);
  color: var(--ink);
  font-family: Outfit, Helvetica, sans-serif;
  font-weight: 400;
}
.brand img { height: 54px; width: auto; display: block; }
.cyc-member-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 8px;
}
.cyc-member-label {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--navy);
}
.cyc-member-label::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin-top: 8px;
  background: var(--gold);
}
.member-nav { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; padding: 0; }
.member-nav button, .member-chip, .cyc-btn {
  border: 0;
  cursor: pointer;
  font-family: Outfit, Helvetica, sans-serif;
}
.member-nav button {
  background: transparent;
  color: var(--navy);
  padding: 8px 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  border-radius: 0;
}
.member-nav button.active {
  background: var(--navy);
  color: #f6efe4;
}
.member-chip {
  background: transparent;
  color: var(--brass);
  border-bottom: 1px solid var(--gold);
  border-radius: 0;
  padding: 6px 0;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 11px;
}
body.in-frame main, .cyc-member-embed main {
  display: block;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 28px 72px;
}
.cyc-hero h1, .cyc-panel h1, .login-card h1, .cyc-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: .01em;
}
.cyc-hero h1, .cyc-panel h1, .login-card h1 {
  margin: 0 0 10px;
  font-size: 40px;
  line-height: 1;
}
.cyc-card h2 { margin: 0 0 8px; font-size: 28px; }
.cyc-grid .cyc-card {
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cyc-grid .cyc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(14, 28, 43, .12);
}
.cyc-grid .cyc-card > p:last-of-type { margin-bottom: 22px; }
.cyc-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #f6efe4;
  cursor: pointer;
  font-family: Outfit, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.cyc-grid .cyc-card .cyc-action { margin-top: auto; }
.cyc-action::after {
  content: "→";
  font-size: 16px;
  letter-spacing: 0;
  transition: transform .2s ease;
}
.cyc-action:hover {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 8px 18px rgba(14, 28, 43, .08);
}
.cyc-action:hover::after { transform: translateX(5px); }
.cyc-action:active { transform: translateY(1px); }
.cyc-action:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.cyc-lede, .cyc-note, .cyc-card p, .cyc-meta { color: var(--muted); line-height: 1.55; }
.cyc-lede { max-width: 62ch; margin-top: 0; }
.cyc-tag {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
}
.cyc-grid, .event-grid, .cyc-zones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  width: 100%;
  margin-top: 22px;
}
.cyc-card, .cyc-panel, .login-card {
  display: block;
  float: none;
  width: auto;
  min-width: 0;
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  box-shadow: 0 18px 40px rgba(14, 28, 43, .06);
  padding: 26px 26px 22px;
  margin: 0 0 18px;
}
.cyc-split { display: block; width: 100%; }
.login-wrap { min-height: 62vh; display: grid; place-items: center; }
.login-card { width: min(460px, 100%); padding: 36px 34px 30px; }
body.in-frame label, .cyc-member-embed label {
  display: block;
  float: none;
  width: auto;
  margin: 16px 0 6px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
body.in-frame input:not([type="checkbox"]), body.in-frame select,
.cyc-member-embed input:not([type="checkbox"]), .cyc-member-embed select {
  display: block;
  width: 100%;
  max-width: 100%;
  float: none;
  padding: 12px 14px;
  border: 1px solid #e4d8c6;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
}
body.in-frame input:focus, body.in-frame select:focus {
  outline: 1px solid var(--gold);
  border-color: var(--gold);
}
.cyc-btn {
  margin-top: 18px;
  background: var(--navy);
  color: #f7f1e7;
  padding: 12px 18px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 500;
  border-radius: 0;
}
.cyc-btn.ghost { background: transparent; color: var(--navy); border: 1px solid #d9cbb6; }
.cyc-btn.ghost.on { background: var(--navy); color: #f7f1e7; border-color: var(--navy); }
.statement-switch { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.statement-switch .cyc-btn { margin-top: 0; }
.cyc-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 8px 0 16px; }
.cyc-totals div { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--gold); }
.cyc-totals span { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass); }
.cyc-totals strong { display: block; margin-top: 6px; font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; font-weight: 500; color: var(--navy); }
.cyc-table-scroll.statement-table { max-height: none; overflow: visible; border: 0; }
body.in-frame td.num, body.in-frame th.num, .cyc-member-embed td.num, .cyc-member-embed th.num { text-align: right; white-space: nowrap; }
.cyc-sum td { color: var(--muted); }
.cyc-total td { color: var(--navy); font-weight: 500; border-bottom: 0; }
.autopay { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.autopay .couple-check { margin-top: 0; }
.autopay .cyc-note { margin: 10px 0 0; }
.cyc-btn.danger { background: transparent; color: var(--danger); border: 1px solid #e4c8c8; }
.cyc-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cyc-row strong { display: block; font-weight: 500; color: var(--navy); }
.cyc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cyc-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 5px 8px;
  background: #f3eadc;
  color: var(--navy);
}
.cyc-pill.confirmed { background: #e7f0e8; }
.cyc-pill.seated { background: #e7eef5; }
.cyc-pill.cancelled { background: #f8e8e8; color: var(--danger); }
.cyc-error { color: var(--danger); min-height: 1.2em; }
.cyc-balance {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  line-height: 1;
  margin: 6px 0 4px;
  color: var(--navy);
}
.cyc-search { margin: 8px 0 16px; }
.cyc-table-scroll {
  width: 100%;
  max-height: 560px;
  overflow: auto;
  border: 1px solid var(--line);
  background: #fff;
}
.cyc-table-scroll table { border-collapse: separate; border-spacing: 0; }
.cyc-table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--card);
  box-shadow: inset 0 -1px 0 var(--line);
}
body.in-frame table, .cyc-member-embed table { width: 100%; border-collapse: collapse; table-layout: fixed; }
body.in-frame th, body.in-frame td, .cyc-member-embed th, .cyc-member-embed td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
  vertical-align: top;
}
body.in-frame th, .cyc-member-embed th {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
}
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; width: 100%; }
.event-card { padding: 0; overflow: hidden; }
.event-card button { display: block; width: 100%; margin: 0; padding: 0; background: transparent; color: inherit; text-align: left; }
.event-card img, .event-fallback { width: 100%; height: 170px; object-fit: cover; display: block; background: #efe6d8; }
.event-card div { padding: 16px 18px 18px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 14px; }
.cal-head h2 { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 32px; font-weight: 500; color: var(--navy); }
.cal-head .cyc-btn { margin-top: 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-names { margin-bottom: 6px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); text-align: center; }
.cal-day { min-height: 96px; padding: 8px; background: #fff; border: 1px solid var(--line); }
.cal-day.cal-out { background: transparent; border-color: transparent; }
.cal-day.cal-today { border-color: var(--navy); box-shadow: inset 0 2px 0 var(--gold); }
.cal-num { display: block; margin-bottom: 6px; font-size: 13px; color: var(--navy); }
.cal-event {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 4px 6px;
  border: 0;
  background: var(--navy);
  color: #f6efe4;
  text-align: left;
  font-family: Outfit, Helvetica, sans-serif;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-event:hover { background: #1c3348; }
.cal-event.on { outline: 2px solid var(--gold); outline-offset: 1px; }
.event-hero { width: 100%; max-height: 440px; object-fit: cover; margin: 14px 0 8px; }
.event-thumb { width: 84px; height: 84px; object-fit: cover; }
.who { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.who-person {
  flex: 1 0 100%;
  width: 100%;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.who-person-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.who-chip, .who-hit {
  border: 1px solid #e4d8c6;
  background: #fff;
  color: var(--navy);
  padding: 7px 10px;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 0;
}
.who-chip { display: inline-flex; align-items: center; gap: 8px; }
.who-chip > button:not(.who-remove) { border: 0; background: transparent; color: inherit; padding: 0; letter-spacing: 0; text-transform: none; font-size: 14px; }
.who-chip.on { background: #fff; color: var(--navy); border-color: var(--navy); }
.couple-pair { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; min-width: 0; }
.table-size {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: #fff;
}
.table-size span {
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
}
.table-size strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
}
body.in-frame .couple-check, .cyc-member-embed .couple-check {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--navy);
  background: #fff;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--navy);
  cursor: pointer;
}
body.in-frame .couple-check:has(input:disabled), .cyc-member-embed .couple-check:has(input:disabled) {
  border-color: #c9bfb0;
  color: var(--muted);
  cursor: not-allowed;
}
body.in-frame .couple-check input[type="checkbox"],
.cyc-member-embed .couple-check input[type="checkbox"] {
  appearance: auto !important;
  -webkit-appearance: checkbox !important;
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  height: 18px !important;
  padding: 0 !important;
  margin: 0 !important;
  flex: 0 0 18px;
  accent-color: #0e1c2b;
  cursor: pointer;
}
body.in-frame .couple-check input[type="checkbox"]:disabled,
.cyc-member-embed .couple-check input[type="checkbox"]:disabled {
  cursor: not-allowed;
}
.who-hit-row, .who-person .who-hit { border: 0; background: transparent; padding: 0; text-align: left; }
.couple-toggle, .who-remove {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  background: #fff;
  color: var(--navy);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 10px;
}
.couple-toggle.on { background: var(--navy); color: #f7f1e7; border-color: var(--navy); }
.who-remove { border-color: #e4c8c8; color: var(--danger); }
.who-hit { display: block; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; }
.who-save { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.who-save input { flex: 1; }
.who-save .cyc-btn { margin-top: 0; }
.cyc-book-tools { display: flex; gap: 12px; align-items: end; }
.site-header { background: var(--navy); color: #fff; }
.utility { display: flex; justify-content: flex-end; gap: 18px; padding: 8px 28px; background: #09141f; color: #d9d1c5; font-size: 12px; }
.nav-bar { display: flex; align-items: center; gap: 28px; padding: 14px 28px; }
.public-nav { display: flex; gap: 22px; }
.public-nav a { color: #fff; text-decoration: none; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 28px; background: var(--navy); color: #efe8dc; }
@media (max-width: 800px) {
  .public-nav, .cyc-member-label::after { display: none; }
  .cyc-member-bar, body.in-frame main { padding-left: 16px; padding-right: 16px; }
  .cyc-hero h1, .cyc-panel h1 { font-size: 32px; }
  .cyc-totals { grid-template-columns: 1fr; }
  .cyc-totals strong { font-size: 28px; }
  .cal-day { min-height: 68px; padding: 4px; }
  .cal-num { font-size: 11px; margin-bottom: 4px; }
  .cal-event { font-size: 10px; padding: 3px 4px; }
  .cal-head h2 { font-size: 24px; }
  .cal-names { letter-spacing: .04em; font-size: 9px; }
}
