:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #12213c;
  background: #f6f8fa;
  font-synthesis: none;
  --ink: #12213c;
  --navy: #09151f;
  --green: #008b61;
  --green-hover: #00734f;
  --positive: #e8f6ef;
  --muted: #667483;
  --line: #e3e8ed;
  --surface: #fff;
  --warning: #fff5df;
  --danger: #b42336;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --radius: 12px;
  --shadow: 0 4px 20px #14263b06;
  --sidebar: 256px;
  --bar: 72px;
  --font-small: 13px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
button:hover,
.button:hover {
  background: var(--green-hover);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.secondary {
  background: #fff;
  color: var(--ink);
  border-color: #d5dce3;
}
.secondary:hover {
  background: #edf3f4;
}
.small {
  min-height: 36px;
  font-size: 12px;
  padding: 8px 12px;
}
.text-button,
.icon-button {
  color: var(--green);
  background: transparent;
  padding: 8px;
  min-height: 40px;
}
.text-button:hover,
.icon-button:hover {
  background: var(--positive);
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #148cf5;
  outline-offset: 3px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  display: block;
  width: 128px;
  height: auto;
}
.brand > span {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 2px;
  border-left: 1px solid #7b88984d;
  padding: 10px 0 10px 12px;
}
.topbar {
  height: 80px;
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 0 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar nav {
  display: flex;
  gap: 8px;
}
main {
  max-width: 1320px;
  padding: 40px 32px 72px;
  margin: auto;
  min-height: 75vh;
}
h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 16px;
  font-weight: 700;
}
h1 {
  font-size: 40px;
  letter-spacing: -1.5px;
}
h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 17px;
  letter-spacing: -0.2px;
}
p {
  line-height: 1.65;
  margin: 0 0 16px;
  font-size: 14px;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.tiny {
  font-size: 11px;
}
.lead {
  font-size: 17px;
  color: var(--muted);
  max-width: 520px;
}
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 48px 0;
}
.hero h1 {
  font-size: clamp(40px, 4vw, 64px);
  line-height: 1.08;
  letter-spacing: -2px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green);
}
.stage {
  background: linear-gradient(145deg, #dbeae4, #edf3f8);
  padding: 32px;
  border-radius: 24px;
  min-height: 360px;
  display: grid;
  align-items: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.grid.two,
.split,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.stack {
  display: grid;
  gap: 24px;
}
.panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  box-shadow: var(--shadow);
}
.panel > p {
  color: var(--muted);
}
.panel.soft {
  background: #edf6f2;
}
.section-head,
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 32px 0 24px;
}
.section-head h2,
.section-head h3 {
  margin: 0;
}
.section-head.compact {
  margin: 0 0 20px;
  gap: 8px;
}
.page-title {
  margin: 0 0 32px;
}
.page-title h1 {
  font-size: 32px;
  margin: 0 0 8px;
  letter-spacing: -1px;
}
.page-title p:last-child {
  margin: 0;
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.location {
  display: inline-flex;
  align-items: center;
  background: var(--positive);
  color: #24614f;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  margin-bottom: 16px;
}
.pill {
  display: inline-flex;
  padding: 5px 10px;
  background: #eef2f5;
  border-radius: 6px;
  color: #536578;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.5;
}
.state-active,
.state-available,
.state-published {
  background: #e5f5eb;
  color: #147043;
}
.state-pending,
.state-draft {
  background: var(--warning);
  color: #82570b;
}
.state-expired,
.state-inactive,
.state-hidden {
  background: #f0f1f3;
  color: #596473;
}
.state-redeemed {
  background: #e9edff;
  color: #4158a2;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}
.summary.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.stat b {
  display: block;
  font-size: 36px;
  line-height: 1.3;
  margin: 16px 0 8px;
  font-weight: 700;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.stat-top svg {
  color: var(--green);
  background: var(--positive);
  box-sizing: content-box;
  padding: 8px;
  border-radius: 8px;
}
.stat small {
  color: var(--muted);
  font-size: 11px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.05fr 1fr;
  gap: 24px;
}
.dashboard-grid h3 {
  font-size: 15px;
}
.dashboard-grid .text-button {
  font-size: 11px;
  white-space: nowrap;
}
.dashboard-lower {
  margin-top: 24px;
}
.subscription-panel {
  background: linear-gradient(120deg, #eaf5ef, #fff);
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-row > div {
  flex: 1;
  min-width: 0;
}
.activity-row strong {
  font-size: 13px;
}
.activity-row small,
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.visit-check {
  color: var(--green);
  background: var(--positive);
  padding: 4px;
  border-radius: 50%;
}
.quick-action {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  padding: 16px 12px;
  margin-top: 12px;
}
.quick-action svg:first-child {
  color: var(--green);
}
.quick-action svg:last-child {
  width: 14px;
  margin-left: auto;
}
.quick-action:hover {
  background: var(--positive);
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  background: #ffffff15;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  font-weight: 650;
  font-size: 15px;
  color: #fff;
}
.avatar.light {
  background: #eaf3ef;
  color: #147052;
  border: 0;
}
.person-cell {
  display: flex;
  gap: 12px;
  align-items: center;
}
.person-cell strong {
  font-weight: 600;
}
.table-wrap {
  overflow: auto;
  margin-top: 24px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
th {
  background: #f7f9fb;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
td {
  min-width: 100px;
}
td .actions {
  flex-wrap: nowrap;
}
tbody tr:hover {
  background: #fafcfb;
}
tr:last-child td {
  border-bottom: 0;
}
.filter-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 0 0 24px;
  min-width: 440px;
}
.filter-bar label {
  margin: 0;
}
.search-field {
  position: relative;
  flex: 1;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: var(--muted);
}
.search-field input {
  padding-left: 40px;
}
.filter-state {
  font-size: 0;
}
.filter-state select {
  font-size: 13px;
}
.filter-bar [data-results] {
  white-space: nowrap;
  font-size: 11px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 20px;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 12px;
  border: 1px solid #d8dfe5;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: #8a97a4;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #21a983;
  outline-offset: 2px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--green);
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin: 0 0 20px;
}
legend {
  font-size: 12px;
}
.checks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.checks label,
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.checks label {
  margin: 0;
}
.form-wide {
  max-width: 720px;
  margin: 24px auto;
}
.form-grid {
  gap: 0 20px;
}
.notice {
  padding: 16px 20px;
  background: var(--warning);
  border: 1px solid #f1dfb8;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 24px;
  color: #725c2e;
}
.inline-error {
  color: var(--danger) !important;
  background: #fff0f0;
  padding: 12px;
  border-radius: 8px;
}
.empty {
  text-align: center;
  padding: 40px 16px;
  color: var(--muted);
}
.empty > .icon {
  width: 36px;
  height: 36px;
  color: #96afa3;
  margin-bottom: 16px;
}
.empty h3 {
  font-size: 16px;
}
.empty p {
  font-size: 13px;
  margin: 0;
}
.rule-number {
  font-size: 36px;
  letter-spacing: -1px;
  font-weight: 700;
  margin: 20px 0 12px;
}
.rule-number small {
  font-size: 13px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
meter {
  width: 100%;
  height: 12px;
  accent-color: var(--green);
  margin: 12px 0 20px;
}
meter::-webkit-meter-bar {
  background: #e5ede8;
  border: 0;
}
meter::-webkit-meter-optimum-value {
  background: var(--green);
}
.reward-text {
  display: flex;
  gap: 8px;
  align-items: start;
  color: var(--ink) !important;
}
.reward-text svg {
  color: var(--green);
}
.progress-card .section-head {
  margin-bottom: 16px;
}
.visit-stamps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0;
}
.visit-stamp {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 2px dashed #b6c7be;
  border-radius: 50%;
  color: #667a70;
  font-size: 13px;
  font-weight: 700;
}
.visit-stamp.earned {
  border: 2px solid var(--green);
  background: var(--positive);
  color: var(--green);
}
.progress-next {
  font-weight: 700;
  line-height: 1.5;
}
.competition-callout {
  padding: 12px 14px;
  border-radius: 9px;
  background: var(--positive);
  line-height: 1.5;
}
details {
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
summary {
  cursor: pointer;
}
details p {
  font-size: 12px;
  margin-top: 12px;
}
.benefit {
  border-top: 3px solid var(--green);
}
.benefit h3 {
  margin: 16px 0;
  line-height: 1.5;
}
.rule-explain {
  font-size: 12px !important;
}
.digital-card {
  background:
    radial-gradient(ellipse at 90% 0, #18434570, transparent 60%),
    linear-gradient(125deg, #14242e, #080f18);
  color: white;
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 16px 32px #10243220;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
}
.digital-card:after {
  content: "";
  position: absolute;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 58%,
    #ffffff04 58%,
    #ffffff04 61%,
    transparent 61%
  );
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 12px;
}
.card-head .brand img {
  width: 120px;
}
.card-kind {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: #bac6ce;
}
.card-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}
.card-person h3 {
  color: white;
  font-size: 26px;
  line-height: 1.25;
  margin: 12px 0 8px;
}
.card-person .eyebrow {
  color: #c3d1d6;
  letter-spacing: 1px;
  font-size: 11px;
}
.card-person .avatar {
  width: 52px;
  height: 52px;
}
.card-id {
  font-size: 9px;
  color: #9eb3bf;
  overflow-wrap: anywhere;
  font-family: ui-monospace, monospace;
  margin-bottom: 16px;
}
.card-code {
  text-align: center;
}
.card-code small {
  display: block;
  color: #bbc9d3;
  font-size: 9px;
  max-width: 190px;
  line-height: 1.5;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #ffffff1a;
  padding-top: 20px;
  margin-top: 24px;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #c5d4d9;
}
.qr {
  display: block;
  width: 184px;
  height: 184px;
  max-width: 100%;
  background: #fff;
  border-radius: 8px;
  margin: 16px auto;
  object-fit: contain;
}
.digital-card .qr {
  margin: 0 auto 8px;
}
.qr.large {
  width: 248px;
  height: 248px;
}
.sample-mark {
  width: 120px;
  height: 120px;
  display: grid;
  place-items: center;
  background: #ffffff08;
  border: 1px solid #ffffff20;
  border-radius: 16px;
  margin-bottom: 16px;
}
.sample-mark svg {
  width: 48px;
  height: 48px;
  color: #68cfa8;
}
.member-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 24px;
  align-items: center;
  margin: 0 0 24px;
  padding: 26px 30px;
  border-radius: 16px;
  background: linear-gradient(110deg, #0c2027, #20533f);
  color: white;
}
.member-spotlight .eyebrow {
  color: #9bdec0;
}
.member-spotlight h2 {
  margin: 6px 0;
  color: white;
}
.member-spotlight p:last-child {
  margin-bottom: 0;
  color: #e0eee7;
}
.member-spotlight-prize {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid #ffffff38;
  border-radius: 12px;
  background: #ffffff12;
}
.member-spotlight-prize svg {
  flex: 0 0 22px;
  color: #a8e1bd;
}
.member-spotlight-prize span {
  display: grid;
  gap: 5px;
  color: #c5e2d1;
  font-size: 12px;
}
.member-spotlight-prize strong {
  color: white;
  font-size: 15px;
  line-height: 1.4;
}
.member-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 24px;
  align-items: start;
}
.member-card-home {
  max-width: 760px;
}
.member-card-home > .muted {
  margin: 16px 0;
}
@media (max-width: 760px) {
  .member-spotlight {
    grid-template-columns: 1fr;
    padding: 22px;
  }
}
.member-hero > div > .muted {
  margin: 16px 0;
}
.install-panel {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid #cbded1;
  border-radius: 14px;
  background: linear-gradient(145deg, #f0f8e9, #fff);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.install-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #173d38;
  color: #c8ef8e;
  font-size: 27px;
  font-weight: 900;
  font-style: italic;
}
.install-copy {
  min-width: 0;
  flex: 1;
}
.install-panel h3 {
  margin: 4px 0 10px;
  font-size: 19px;
}
.install-panel p {
  margin: 0 0 12px;
  color: #455f56;
  font-size: 14px;
  line-height: 1.5;
}
.install-panel .eyebrow {
  color: #23704c;
  font-size: 10px;
}
.install-panel button {
  width: 100%;
  margin: 2px 0 16px;
}
.install-panel .tiny {
  margin-bottom: 0;
  font-size: 12px;
}
.install-guide {
  margin: 12px 0 14px;
  border: 1px solid #c7ddca;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.install-guide summary {
  padding: 12px 14px;
  cursor: pointer;
  color: #15543a;
  font-weight: 700;
  list-style-position: inside;
}
.install-guide ol {
  list-style: none;
  margin: 0;
  padding: 0 14px 14px;
}
.install-guide li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 9px 0;
  border-top: 1px solid #e5eee6;
  color: #30483e;
  font-size: 13px;
  line-height: 1.45;
}
.install-step {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dff0cc;
  color: #20583a;
  font-size: 12px;
  font-weight: 800;
}
.wallet-panel {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.wallet-panel h3 {
  margin: 0 0 8px;
  font-size: 17px;
}
.wallet-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.wallet-heading h3 { margin: 2px 0 0; }
.wallet-heading .eyebrow { margin: 0; font-size: 10px; }
.wallet-icon {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: #ebf1f3;
  color: #355865;
  font-size: 25px;
}
.wallet-status {
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 99px;
  background: #edf2f3;
  color: #537079;
  font-size: 11px;
  white-space: nowrap;
}
.wallet-panel p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.wallet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wallet-options > * {
  flex: 1 1 190px;
  white-space: normal;
  text-align: center;
}
.card-inspection:not(:empty) {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid #b6dccc;
  border-radius: 14px;
  background: #f0f8f4;
  line-height: 1.5;
}
.attendance-assist>p:not(.eyebrow){line-height:1.5;color:var(--muted)}
.attendance-assist form{display:grid;gap:16px}
.attendance-scan-button{display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:72px;text-align:left}
.attendance-scan-button .icon{width:30px;height:30px;flex:none}
.attendance-scan-button span{display:grid;gap:3px}
.attendance-scan-button small{font-size:12px;opacity:.85;font-weight:400}
.attendance-choice{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:13px}
.attendance-choice:before,.attendance-choice:after{content:"";height:1px;background:#d9e2df;flex:1}
.attendance-reader-more{padding:12px 14px;border:1px solid #d9e2df;border-radius:12px;background:#f7faf8}
.attendance-reader-more summary{cursor:pointer;font-size:13px;font-weight:600}
.attendance-reader-more[open]{display:grid;gap:12px}
.attendance-reader-more label{margin-top:12px}
.attendance-assist [data-save-visit]{width:100%;min-height:50px}
.printed-reception-entry{margin-top:24px;padding:20px;border:1px solid #cfe0d6;border-radius:16px;background:#f1f8f3}
.printed-reception-entry h3{margin:0 0 8px}
.printed-reception-entry p{margin:0 0 16px;line-height:1.5;color:var(--muted)}
.printed-reception-entry button{width:100%;min-height:48px}
dialog.printed-reception-dialog{width:min(94vw,580px);max-height:94dvh;padding:24px;overflow-y:auto;border:0;border-radius:22px}
.printed-reception-content{display:grid;gap:16px}
.printed-reception-poster{text-align:center;padding:22px;border:2px solid #173e33;border-radius:16px;background:#fff;color:#173e33}
.printed-reception-poster .eyebrow{margin:0;color:#356b4d}
.printed-reception-poster h2{margin:10px 0;color:#173e33}
.printed-reception-poster p{line-height:1.45}
.printed-reception-poster img{display:block;width:min(100%,360px);aspect-ratio:1;object-fit:contain;margin:12px auto}
.printed-reception-poster small{display:block;max-width:360px;margin:auto;line-height:1.45}
.printed-reception-state{display:grid;gap:5px;padding:16px;border-radius:12px;background:#fff2dc;color:#694400}
.printed-reception-state.is-active{background:#e6f5e8;color:#24513a}
.printed-reception-controls{display:flex;flex-wrap:wrap;gap:10px}
.printed-reception-controls button{flex:1 1 180px;min-height:48px}
.card-inspection > div { display: grid; gap: 3px; }
.card-inspection .eyebrow { margin: 0; color: #136647; }
.card-inspection strong { font-size: 18px; }
.card-inspection span:not(.inspection-icon):not(.inline-spinner), .card-inspection small { color: var(--muted); }
.card-inspection .inspection-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
}
.card-inspection.already-visited, .card-inspection.is-warning {
  border-color: #e7c778;
  background: #fff6df;
}
.card-inspection.already-visited .inspection-icon, .card-inspection.is-warning .inspection-icon {
  color: #754c0a;
  background: #f4d888;
}
.card-inspection.already-visited .eyebrow, .card-inspection.is-warning .eyebrow { color: #754c0a; }
.inline-spinner {
  display: inline-block;
  flex: none;
  width: 22px;
  height: 22px;
  border: 3px solid #c8ded4;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.qr-idle, .qr-loading, .qr-error {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  margin-top: 20px;
  padding: 24px;
  border: 1px dashed #c9d8d3;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}
.qr-idle .icon, .qr-error .icon { width: 34px; height: 34px; }
.qr-idle p, .qr-error p { margin: 0; }
.qr-loading strong { color: var(--ink); }
.qr-loading small { color: var(--muted); }
.qr-skeleton {
  display: block;
  width: min(180px, 55vw);
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(110deg, #e7efeb 20%, #f9fcfa 45%, #e7efeb 70%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
@keyframes shimmer { to { background-position-x: -200%; } }
.qr-ready { display: grid; justify-items: center; gap: 8px; margin-top: 20px; text-align: center; }
.qr-ready .eyebrow { margin: 0; color: var(--green); }
.qr-ready .code { margin: 2px 0; }
.qr-ready .muted { margin: 0; }
.qr-error { border-color: #e7c778; background: #fff6df; color: #754c0a; }
.scanner-loading:before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  border: 2px solid #cadbd4;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: -3px;
}
.member-hero .panel {
  height: 100%;
}
.code {
  font-size: 32px;
  letter-spacing: 6px;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.countdown {
  color: #155941;
  background: var(--positive);
  padding: 14px 16px;
  border-radius: 12px;
  margin-top: 18px;
}
.countdown-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 650;
}
.countdown-top strong {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  line-height: 1;
}
.countdown-track {
  height: 6px;
  margin-top: 10px;
  border-radius: 99px;
  background: #cbe8d9;
  overflow: hidden;
}
.countdown-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .8s linear;
}
.expiring .countdown {
  color: #956313;
  background: var(--warning);
}
.expiring .countdown-track { background: #f2dfb5; }
.expiring .countdown-track span { background: #aa7718; }
.qr-expired {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 28px 20px;
  border: 1px solid #ecd8aa;
  border-radius: 16px;
  background: var(--warning);
  color: #785a1c;
  text-align: center;
}
.qr-expired .icon { width: 34px; height: 34px; }
.qr-expired strong { color: #785a1c; font-size: 18px; }
.qr-expired p { margin: 0 0 8px; }
.visit-result {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #e7f6ed;
  border: 1px solid #bddfcf;
  padding: 24px;
  border-radius: 12px;
  margin-bottom: 24px;
}
.visit-entry {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.visit-scan-button {
  width: 100%;
  min-height: 58px;
  font-size: 16px;
}
.visit-manual {
  display: flex;
  align-items: end;
  gap: 12px;
}
.visit-manual label {
  flex: 1;
  margin: 0;
}
.visit-manual input {
  letter-spacing: 0.08em;
}
.visit-ready {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid #b7ddca;
  border-radius: 16px;
  background: #eaf7f0;
}
.visit-ready-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: white;
  background: var(--green);
}
.visit-ready .eyebrow {
  margin: 0 0 4px;
  color: #166d4b;
}
.visit-ready h3 {
  margin: 0 0 8px;
}
.visit-ready p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 6px;
}
.visit-ready p .icon {
  width: 17px;
  height: 17px;
}
.visit-ready small {
  color: var(--muted);
}
.visit-confirm {
  width: 100%;
}
.visit-confirm[hidden] {
  display: none;
}
.visit-preview-error {
  padding: 14px 16px;
  border-radius: 10px;
  color: var(--danger);
  background: #fff0f1;
}
.visit-result .result-icon {
  background: var(--green);
  color: white;
  padding: 16px;
  border-radius: 50%;
}
.visit-result h2 {
  margin: 4px 0 8px;
}
.visit-result p {
  margin: 0;
  color: #286549;
  font-size: 13px;
}
.visit-result.duplicate {
  background: var(--warning);
  border-color: #ecd8aa;
}
.visit-result.duplicate .result-icon { background: #9b6c15; }
.visit-result.duplicate .eyebrow { font-weight: 800; letter-spacing: .08em; }
.visit-result strong { display: block; margin-top: 8px; color: #286549; }
.visit-result.duplicate strong { color: #785a1c; }
.visit-result.duplicate p {
  color: #785a1c;
}
.wizard-nav {
  display: flex;
  padding: 0;
  margin: 0 0 32px;
  gap: 12px;
  list-style: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.wizard-nav li {
  font-size: 10px;
  color: var(--muted);
  flex: 1;
}
.wizard-nav span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  background: #eef2f5;
  color: var(--muted);
  margin-bottom: 8px;
}
.wizard-nav .current {
  color: var(--green);
  font-weight: 700;
}
.wizard-nav .current span,
.wizard-nav .done span {
  background: var(--green);
  color: #fff;
}
.wizard-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}
.wizard-step {
  min-height: 240px;
}
.wizard-step [name="type"] {
  min-height: 60px;
}
.wizard-panel {
  align-self: start;
}
.wizard-step h3 {
  font-size: 22px;
}
dl {
  font-size: 13px;
  line-height: 1.6;
  margin: 24px 0;
}
dt {
  font-weight: 600;
  margin-top: 16px;
}
dd {
  margin: 4px 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.mono {
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.public-preview {
  background: var(--navy);
  padding: 32px;
  border-radius: 12px;
  margin-top: 32px;
  color: #fff;
}
.public-preview h2 {
  color: white;
}
.public-preview .eyebrow {
  color: #aabcc5;
}
.settings-grid,
.public-settings {
  grid-template-columns: minmax(0, 840px);
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.settings-grid h3 {
  margin-top: 24px;
}
.settings-grid h3:first-child {
  margin-top: 0;
}
.workspace .topbar {
  display: none;
}
.workspace main {
  max-width: none;
  margin-left: var(--sidebar);
  padding: 104px 32px 64px;
  min-height: 100vh;
}
.workspace footer {
  margin-left: var(--sidebar);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar);
  background: var(--navy);
  color: #c4ccd4;
  z-index: 20;
  padding: 32px 16px 20px;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.sidebar-brand {
  padding: 0 16px 28px;
}
.studio-switch {
  display: flex;
  gap: 12px;
  padding: 20px 12px;
  border-top: 1px solid #ffffff13;
  border-bottom: 1px solid #ffffff13;
  margin-bottom: 28px;
  align-items: center;
}
.studio-switch strong {
  font-size: 12px;
  color: #fff;
  display: block;
  overflow-wrap: anywhere;
}
.studio-switch small {
  display: block;
  font-size: 10px;
  color: #8e9ba8;
  margin-top: 4px;
}
.studio-avatar {
  display: grid;
  place-items: center;
  background: #1c2c36;
  border-radius: 8px;
  min-width: 36px;
  height: 36px;
  color: #81c6a5;
  font-size: 12px;
  font-weight: 650;
}
.studio-picker {
  font-size: 10px;
  margin: 0 12px 16px;
}
.studio-picker select {
  font-size: 12px;
  background: #17242e;
  color: white;
  border-color: #263c49;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #83919e;
  padding: 0 16px;
  margin-bottom: 12px;
}
.sidebar nav {
  display: grid;
  gap: 6px;
}
.sidebar nav button, .sidebar nav a {
  justify-content: flex-start;
  background: transparent;
  color: #a9b5c1;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  width: 100%;
  gap: 12px;
}
.sidebar nav button:hover, .sidebar nav a:hover {
  background: #ffffff09;
  color: #fff;
}
.sidebar nav button.selected, .sidebar nav a.selected {
  background: var(--green);
  color: white;
  font-weight: 600;
}
.sidebar-bottom {
  border-top: 1px solid #ffffff13;
  margin-top: auto;
  padding: 24px 8px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sidebar-bottom > div {
  min-width: 0;
  flex: 1;
}
.sidebar-bottom strong {
  font-size: 11px;
  color: #fff;
}
.sidebar-bottom small {
  display: block;
  overflow-wrap: anywhere;
  font-size: 10px;
  margin-top: 4px;
}
.sidebar-bottom .avatar {
  width: 32px;
  height: 32px;
  font-size: 10px;
}
.sidebar-bottom button {
  font-size: 11px;
  color: #b7c5d1;
  min-height: 32px;
  padding: 4px;
}
.workspace-bar {
  height: var(--bar);
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: fixed;
  top: 0;
  left: var(--sidebar);
  right: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  font-size: 13px;
}
.workspace-brand-pair,
.workspace-fitnity-brand,
.workspace-studio-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}
.workspace-brand-pair { gap: 12px; }
.workspace-fitnity-brand { gap: 7px; flex: none; }
.workspace-fitnity-brand img { display: block; width: 88px; height: auto; }
.workspace-fitnity-brand strong { font-size: 11px; letter-spacing: 2px; }
.workspace-brand-divider { color: #a4b2b7; font-size: 19px; }
.workspace-studio-brand { gap: 8px; }
.workspace-studio-brand img,
.workspace-studio-initials { width: 32px; height: 32px; flex: none; border-radius: 9px; object-fit: contain; background: #f1f5f3; }
.workspace-studio-initials { display: grid; place-items: center; color: #315d4e; font-size: 11px; font-weight: 800; }
.workspace-studio-brand strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.public-link {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}
.menu-toggle {
  display: none;
}
.bottom-nav {
  display: none;
}
.workspace #demo {
  position: fixed;
  right: 16px;
  bottom: 8px;
  z-index: 25;
  max-width: calc(100% - 280px);
}
.demo-bar {
  background: #fff0bf;
  color: #695515;
  font-size: 10px;
  padding: 8px 16px;
  text-align: center;
  border-radius: 6px;
}
.demo-bar a {
  text-decoration: underline;
  margin-left: 8px;
}
dialog {
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 16px;
  max-width: 520px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  overflow: auto;
  color: var(--ink);
  box-shadow: 0 24px 80px #07172130;
}
dialog::backdrop {
  background: #08152199;
  backdrop-filter: blur(4px);
}
.mobile-qr-dialog {
  max-width: 620px;
  padding: 28px;
}
.mobile-qr-sheet h2 { margin: 4px 0 10px; }
.mobile-qr-sheet > .muted { margin: 0 32px 20px 0; }
.mobile-qr-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mobile-qr-choices > section { border: 1px solid var(--line); border-radius: 16px; padding: 16px; background: #f8fbf9; }
.mobile-qr-choices h3 { margin: 12px 0 6px; font-size: 17px; }
.mobile-qr-choices p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.mobile-qr-choices label { font-size: 12px; }
.mobile-qr-choices input, .mobile-qr-choices select { margin-top: 5px; }
.mobile-qr-choices button { width: 100%; margin-top: 10px; }
.mobile-qr-choice-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #e0f1e9; color: #087354; }
.mobile-qr-result { text-align: center; }
.mobile-qr-result:not(:empty) { margin-top: 18px; padding: 18px; border: 1px solid #b6d5c4; border-radius: 16px; background: #fff; }
.mobile-qr-result .qr { margin: 0 auto; }
@media (max-width: 600px) {
  .mobile-qr-dialog { width: calc(100% - 20px); padding: 22px 16px; }
  .mobile-qr-choices { grid-template-columns: 1fr; }
}
.close {
  position: absolute;
  right: 12px;
  top: 12px;
  padding: 4px;
  font-size: 24px;
  background: #fff;
  color: var(--muted);
  z-index: 3;
  min-width: 36px;
  min-height: 36px;
  line-height: 1;
}
.close:hover {
  background: #edf1f3;
}
.detail-dialog {
  max-width: 1120px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.detail-grid .actions {
  margin-top: 20px;
}
.detail-grid .table-wrap {
  max-height: 320px;
}
.detail-grid .digital-card {
  padding: 24px;
}
.coupon-dialog {
  max-width: 480px;
  padding: 0;
}
.coupon-header {
  padding: 40px 32px 28px;
  background: var(--navy);
  color: white;
}
.coupon-header p {
  color: #b8c8d0;
  font-size: 12px;
  margin: 20px 0 0;
}
.coupon-header h2 {
  color: #fff;
  margin-top: 16px;
}
.coupon-body {
  padding: 24px 32px;
  text-align: center;
}
.coupon-body > h3 {
  margin-top: 20px;
}
.coupon-body dl {
  text-align: left;
  border-top: 1px dashed var(--line);
  padding-top: 8px;
}
.coupon-body p {
  font-size: 13px;
}
.coupon-dialog .close {
  background: #20303d;
  color: #fff;
}
#auth {
  max-width: 1000px;
  padding: 0;
  overflow: auto;
}
#auth[open] {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-art {
  background:
    radial-gradient(ellipse at 0 100%, #13524560, transparent), var(--navy);
  padding: 56px 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-art > img {
  width: 168px;
  height: auto;
  margin-bottom: 12px;
}
.auth-art > .eyebrow {
  color: #94aeb9;
  margin-bottom: 64px;
}
.auth-art h2 {
  color: white;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1px;
}
.auth-art p {
  color: #97b0bb;
  font-size: 12px;
  margin-top: 24px;
}
.auth-fields {
  padding: 64px 40px 40px;
}
.auth-fields h2 {
  font-size: 28px;
  margin-bottom: 12px;
}
.auth-fields > p {
  color: var(--muted);
  font-size: 13px;
}
.auth-fields form {
  margin-top: 28px;
}
.auth-fields form > button {
  width: 100%;
}
.otp-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.otp-tools p {
  width: 100%;
  margin: 12px 0 0;
  font-size: 11px;
}
#verify-form input {
  font-size: 28px;
  letter-spacing: 14px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  height: 64px;
  padding-left: 24px;
}
#auth-message {
  font-size: 13px;
  margin: 16px 0;
  color: var(--danger);
}
#camera {
  width: 100%;
  border-radius: 12px;
  background: #08131c;
}
#toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  background: var(--navy);
  color: white;
  border-radius: 10px;
  padding: 16px 24px;
  z-index: 100;
  box-shadow: 0 8px 32px #0003;
  font-size: 13px;
  display: none;
}
#toast.visible {
  display: block;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.loading:before {
  content: "";
  display: block;
  width: 32px;
  height: 32px;
  margin: 0 auto 24px;
  border: 3px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
footer {
  padding: 24px 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  background: white;
  z-index: 100;
}
.skip-link:focus {
  width: auto;
  height: auto;
  padding: 16px;
  clip-path: none;
}
.mail-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.print-only,
#print-area {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  :root {
    --sidebar: 288px;
  }
  .workspace main {
    padding-left: 40px;
    padding-right: 40px;
  }
  .workspace-bar {
    padding-left: 40px;
    padding-right: 40px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 224px;
  }
  .workspace main {
    padding-left: 24px;
    padding-right: 24px;
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .sidebar .brand img {
    width: 108px;
  }
  .sidebar .brand {
    gap: 8px;
  }
  .sidebar .brand > span {
    padding-left: 8px;
    font-size: 9px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
  .quick-actions {
    grid-column: 1/-1;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
  .quick-actions h3 {
    width: 100%;
  }
  .quick-action {
    flex: 1;
    min-width: 180px;
    margin: 0;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-top svg {
    padding: 6px;
    width: 16px;
    height: 16px;
  }
  .member-hero {
    grid-template-columns: 1fr;
  }
  .member-hero .digital-card {
    max-width: 720px;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-grid .digital-card {
    max-width: 680px;
  }
}
@media (max-width: 900px) {
  :root {
    --sidebar: 248px;
  }
  .workspace main {
    margin-left: 0;
    min-height: 100svh;
    padding-top: 84px;
  }
  .workspace-bar {
    left: 0;
    padding: 0 24px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  .nav-open .sidebar {
    transform: translateX(0);
    box-shadow: 0 0 0 100vmax #07152166;
  }
  .nav-open .workspace-bar {
    z-index: 25;
  }
  .nav-open .workspace-bar .menu-toggle {
    position: fixed;
    left: 264px;
    background: white;
  }
  .menu-toggle {
    display: inline-flex;
    padding: 8px;
    margin-right: 12px;
  }
  .workspace-bar > span {
    margin-right: auto;
  }
  .member-workspace .workspace-bar .public-link { display: none; }
  .workspace-brand-pair { gap: 8px; flex: 1; }
  .workspace-fitnity-brand img { width: 76px; }
  .workspace-fitnity-brand strong { font-size: 9px; letter-spacing: 1.4px; }
  .workspace-studio-brand img,
  .workspace-studio-initials { width: 29px; height: 29px; }
  .workspace footer {
    display: none;
  }
  .workspace #demo {
    position: static;
    max-width: none;
    margin-top: 72px;
  }
  .workspace #demo:empty {
    display: none;
  }
  .workspace:has(#demo:not(:empty)) main {
    padding-top: 32px;
  }
  .workspace .bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
    background: #fffffff2;
    border-top: 1px solid #dce7e6;
    box-shadow: 0 -10px 30px #102c3020;
    backdrop-filter: blur(18px);
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  }
  .workspace .bottom-nav button, .workspace .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 54px;
    margin: 0 2px;
    padding: 6px 2px;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: #647782;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
  }
  .workspace .bottom-nav .icon {
    width: 22px;
    height: 22px;
  }
  .workspace .bottom-nav button.selected, .workspace .bottom-nav a.selected {
    color: #087354;
    background: #e6f3ed;
  }
  .workspace .bottom-nav .bottom-primary {
    align-self: start;
    margin-top: -22px;
    min-height: 70px;
    color: #0d5140;
    background: transparent;
    font-weight: 800;
  }
  .workspace .bottom-nav .bottom-primary .icon {
    box-sizing: content-box;
    width: 27px;
    height: 27px;
    padding: 12px;
    border: 4px solid #fff;
    border-radius: 18px;
    background: #b8ef63;
    box-shadow: 0 5px 18px #1c584836;
  }
  .workspace main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .workspace #toast {
    bottom: calc(95px + env(safe-area-inset-bottom));
  }
  .nav-open .bottom-nav {
    z-index: 19;
    pointer-events: none;
    filter: brightness(.8);
  }
  .hero {
    gap: 24px;
  }
  .hero .digital-card {
    padding: 24px;
  }
  .hero .card-layout {
    grid-template-columns: 1fr;
  }
  .hero .card-code {
    display: none;
  }
  .hero h1 {
    font-size: 40px;
  }
  .stage {
    padding: 20px;
  }
  .auth-art {
    padding: 40px 28px;
  }
  .auth-fields {
    padding: 56px 28px 32px;
  }
  .auth-art h2 {
    font-size: 30px;
  }
}
@media (max-width: 600px) {
  .topbar {
    padding: 0 20px;
    height: 72px;
  }
  .brand img {
    width: 104px;
  }
  .brand > span {
    font-size: 9px;
  }
  .topbar nav .button,
  .topbar nav button {
    font-size: 11px;
    padding: 8px 12px;
  }
  main,
  .workspace main {
    padding: 24px 16px 48px;
  }
  .workspace main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
  .workspace:not(:has(#demo:not(:empty))) main {
    padding-top: 84px;
  }
  .workspace-bar {
    padding: 0 16px;
  }
  .workspace-bar > span {
    font-size: 11px;
  }
  .workspace-bar .muted {
    display: none;
  }
  .workspace-bar-actions .public-link { display:none; }
  .workspace-account summary { max-width:150px; }
  .public-link {
    font-size: 10px;
  }
  .public-link svg {
    width: 16px;
  }
  .page-title {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .page-title > .button,
  .page-title > button {
    width: 100%;
  }
  .grid,
  .grid.two,
  .split,
  .form-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .summary,
  .summary.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .summary .stat:last-child:nth-child(odd) {
    grid-column: 1/-1;
  }
  .stat b {
    font-size: 30px;
    margin: 12px 0 8px;
  }
  .stat-top {
    gap: 4px;
    font-size: 10px;
  }
  .stat-top svg {
    width: 14px;
    height: 14px;
    padding: 4px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel {
    padding: 20px;
  }
  .section-head {
    gap: 12px;
    align-items: center;
  }
  .section-head h2 {
    font-size: 21px;
  }
  .section-head > .muted {
    font-size: 10px;
    text-align: right;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 16px 0 32px;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero .lead {
    font-size: 15px;
  }
  .stage {
    min-height: 300px;
  }
  .hero .card-layout {
    grid-template-columns: 1fr auto;
  }
  .hero .card-code {
    display: block;
  }
  .hero .card-kind {
    display: none;
  }
  .hero .digital-card h3 {
    font-size: 22px;
  }
  .hero .sample-mark {
    width: 80px;
    height: 80px;
  }
  .hero .card-code small {
    max-width: 80px;
  }
  .digital-card {
    padding: 24px;
    border-radius: 16px;
  }
  .card-head {
    margin-bottom: 24px;
  }
  .card-head .brand img {
    width: 106px;
  }
  .card-head .brand > span {
    font-size: 9px;
  }
  .card-kind {
    display: none;
  }
  .card-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .card-person .eyebrow {
    margin-bottom: 12px;
  }
  .card-person .avatar {
    display: none;
  }
  .card-person h3 {
    font-size: 26px;
  }
  .card-person .card-id {
    max-width: 240px;
    margin: 8px auto 12px;
  }
  .digital-card .qr {
    width: 216px;
    height: 216px;
  }
  .card-code small {
    max-width: none;
    font-size: 11px;
  }
  .card-bottom {
    font-size: 7px;
  }
  .member-hero {
    gap: 16px;
  }
  .member-hero .panel {
    margin-top: 0;
  }
  .member-hero .actions > * {
    flex: 1;
  }
  .filter-bar {
    min-width: 0;
    flex-wrap: wrap;
    gap: 12px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .filter-state {
    flex: 1;
  }
  .filter-state select {
    min-height: 40px;
  }
  .filter-bar [data-results] {
    margin-left: auto;
  }
  .table-wrap {
    padding: 16px;
  }
  .table-wrap table {
    min-width: 540px;
  }
  .table-wrap .filter-bar {
    position: sticky;
    left: 0;
  }
  .form-wide {
    margin: 0;
  }
  .notice {
    font-size: 12px;
    padding: 16px;
  }
  .wizard-nav {
    gap: 4px;
  }
  .wizard-nav li {
    font-size: 9px;
  }
  .wizard-nav span {
    width: 24px;
    height: 24px;
  }
  .wizard-controls {
    gap: 8px;
  }
  .wizard-controls button {
    font-size: 12px;
  }
  .visit-result {
    gap: 16px;
    padding: 20px;
  }
  .visit-manual {
    display: grid;
  }
  .visit-manual .secondary {
    width: 100%;
  }
  .visit-result .result-icon {
    padding: 12px;
  }
  .visit-result p {
    font-size: 12px;
  }
  .visit-result h2 {
    font-size: 22px;
  }
  .quick-actions {
    display: block;
  }
  .quick-action {
    margin-top: 12px;
  }
  .dashboard-lower {
    margin-top: 24px;
  }
  dialog {
    padding: 24px 20px;
    width: calc(100% - 24px);
  }
  .detail-dialog {
    padding-top: 48px;
  }
  .detail-grid .table-wrap {
    padding: 0;
  }
  .detail-grid .digital-card {
    padding: 24px;
  }
  .detail-dialog .grid {
    grid-template-columns: 1fr;
  }
  #auth[open] {
    display: block;
  }
  .auth-art {
    padding: 24px;
    min-height: 120px;
  }
  .auth-art img {
    width: 124px;
    margin: 0;
  }
  .auth-art > .eyebrow {
    margin: 8px 0 0;
    font-size: 9px;
  }
  .auth-art h2,
  .auth-art p {
    display: none;
  }
  .auth-fields {
    padding: 28px 24px;
  }
  .auth-fields h2 {
    font-size: 26px;
  }
  .auth-fields form {
    margin-top: 24px;
  }
  #verify-form input {
    letter-spacing: 10px;
    font-size: 26px;
  }
  .auth-fields .notice {
    font-size: 11px;
  }
  .coupon-dialog {
    padding: 0;
  }
  .coupon-header {
    padding: 32px 24px;
  }
  .coupon-body {
    padding: 24px;
  }
  .coupon-header h2 {
    font-size: 24px;
  }
  .demo-bar {
    font-size: 9px;
    padding: 8px 12px;
  }
  footer {
    padding: 24px 16px;
    font-size: 8px;
  }
  #toast {
    bottom: 20px;
    padding: 14px 18px;
    width: max-content;
    max-width: calc(100% - 32px);
  }
  .loading {
    padding: 64px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: 85.6mm 53.98mm;
    margin: 0;
  }
  body > * {
    display: none !important;
  }
  body > #print-area {
    display: block !important;
  }
  #print-area .digital-card,
  #print-area .print-back {
    display: block !important;
    width: 85.6mm;
    height: 53.98mm;
    max-width: 85.6mm;
    padding: 4mm;
    border-radius: 3mm;
    margin: 0;
    box-shadow: none;
    break-inside: avoid;
    background: #0b1721 !important;
    color: white !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    overflow: hidden;
  }
  #print-area .digital-card:has(+ .print-back) {
    break-after: page;
  }
  #print-area .brand img {
    width: 27mm;
  }
  #print-area .brand > span {
    font-size: 6pt;
    padding: 1mm 0 1mm 2mm;
  }
  #print-area .brand {
    gap: 2mm;
  }
  #print-area .card-head {
    margin-bottom: 3mm;
  }
  #print-area .card-kind {
    display: none;
  }
  #print-area .card-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 29mm;
    gap: 3mm;
    text-align: left;
  }
  #print-area .card-person .avatar,
  #print-area .card-person .pill,
  #print-area .card-bottom {
    display: none;
  }
  #print-area .card-person h3 {
    font-size: 11pt;
    line-height: 1.2;
    margin: 2mm 0;
  }
  #print-area .eyebrow {
    font-size: 6pt;
    line-height: 1.4;
    margin: 0;
  }
  #print-area .card-id {
    font-size: 5pt;
    line-height: 1.4;
    margin: 2mm 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  #print-area .qr {
    width: 29mm;
    height: 29mm;
    border-radius: 1mm;
    margin: 0;
  }
  #print-area .card-code small {
    font-size: 5pt;
    margin-top: 1mm;
    line-height: 1.2;
  }
  #print-area .print-back h3 {
    font-size: 10pt;
    color: white;
    margin: 4mm 0 2mm;
  }
  #print-area .print-back ol {
    padding-left: 5mm;
    font-size: 7pt;
    line-height: 1.7;
    margin: 2mm 0;
  }
  #print-area .print-back p {
    font-size: 6pt;
    color: #d4e0e4;
    line-height: 1.4;
    margin: 2mm 0;
  }
}
.onboarding {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 0;
  min-height: 640px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.onboarding-aside {
  background: var(--navy);
  padding: 40px 32px;
  color: #bbcad3;
}
.onboarding-aside h2 {
  font-size: 32px;
  color: white;
  line-height: 1.15;
  margin: 64px 0 24px;
}
.onboarding-aside p {
  font-size: 13px;
}
.onboarding-aside ol {
  padding-left: 20px;
  line-height: 2.5;
  font-size: 12px;
  margin: 40px 0;
}
.onboarding-content {
  padding: 40px;
  min-width: 0;
}
.onboarding-content > .panel {
  border: 0;
  padding: 0;
  box-shadow: none;
}
.onboarding-content > .notice {
  margin-top: 24px;
}
.studio-choice {
  display: block;
  transition: box-shadow 0.15s;
}
.studio-choice:hover {
  border-color: var(--green);
  box-shadow: 0 4px 16px #008b6115;
}
.studio-choice h3 {
  margin: 20px 0 8px;
}
.studio-choice p {
  font-size: 12px;
  color: var(--muted);
}
.new-study {
  border-style: dashed;
}
.rule-type-choices {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.rule-type-choice {
  text-align: left;
  justify-content: flex-start;
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 20px 16px;
}
.rule-type-choice small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  margin-top: 6px;
}
.rule-type-choice > svg {
  color: var(--green);
  margin-right: 8px;
}
.rule-type-choice:hover,
.rule-type-choice.chosen {
  background: var(--positive);
  border-color: var(--green);
}
#auth-message {
  color: var(--muted);
}
@media (max-width: 900px) {
  .onboarding {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .onboarding-content {
    padding: 32px;
  }
  .onboarding-aside {
    padding: 32px 24px;
  }
  .onboarding-aside .brand img {
    width: 100px;
  }
}
@media (max-width: 600px) {
  .onboarding {
    grid-template-columns: 1fr;
  }
  .onboarding-aside {
    padding: 24px;
  }
  .onboarding-aside h2,
  .onboarding-aside ol,
  .onboarding-aside p {
    display: none;
  }
  .onboarding-content {
    padding: 24px;
  }
  .onboarding-content h1 {
    font-size: 28px;
  }
  .rule-type-choice {
    font-size: 13px;
  }
  .rule-type-choice small {
    font-size: 11px;
  }
}
.mobile-print {
  display: none;
}
@media (max-width: 900px) {
  .sidebar {
    visibility: hidden;
  }
  .nav-open .sidebar {
    visibility: visible;
  }
}
@media (max-width: 600px) {
  .member-workspace .page-title > [data-action="print"] {
    display: none;
  }
  .mobile-print {
    display: inline-flex;
    margin: 0 0 16px;
  }
  .member-workspace .page-title {
    margin-bottom: 24px;
  }
}
@media print {
  dialog::backdrop {
    display: none !important;
  }
}

/* Studio creation: use the available width without an oversized single-column form. */
main:has(.onboarding-create) {
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
}
body:has(.onboarding-create) > footer {
  display: none;
}
.onboarding-create {
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100dvh - 80px);
  border: 0;
  border-radius: 0;
}
.onboarding-create .onboarding-aside {
  padding: 32px 24px;
}
.onboarding-create .onboarding-aside h2 {
  margin-top: 40px;
}
.onboarding-create .onboarding-content {
  padding: 24px 32px;
}
.onboarding-create .onboarding-content > p:first-child {
  margin-top: 0;
}
.onboarding-create .onboarding-content > .notice {
  margin: 16px 0 24px;
  padding: 12px 16px;
}
.onboarding-create form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  align-items: start;
}
.onboarding-create form > * {
  min-width: 0;
  margin: 0;
}
.onboarding-create label {
  overflow-wrap: anywhere;
}
.onboarding-create select {
  max-width: 100%;
  text-overflow: ellipsis;
}
.onboarding-create #studio-slug-status.slug-unavailable {
  color: var(--danger);
}
.onboarding-create label:has([name="core_organization_id"]),
.onboarding-create label:has(textarea),
.onboarding-create form > .error,
.onboarding-create form > [role="alert"],
.onboarding-create form > button {
  grid-column: 1 / -1;
}
.onboarding-create form > button {
  justify-self: end;
  min-width: 180px;
}
.onboarding-create .check {
  align-self: center;
  line-height: 1.5;
}
.onboarding-create .check input {
  flex: 0 0 18px;
}
@media (max-width: 1000px) {
  .onboarding-create {
    grid-template-columns: minmax(0, 1fr);
  }
  .onboarding-create .onboarding-aside {
    padding: 16px 24px;
  }
  .onboarding-create .onboarding-aside h2,
  .onboarding-create .onboarding-aside p,
  .onboarding-create .onboarding-aside ol {
    display: none;
  }
}
@media (max-width: 600px) {
  main:has(.onboarding-create) {
    padding: 0;
  }
  .onboarding-create .onboarding-content {
    padding: 20px 16px;
  }
  .onboarding-create form {
    grid-template-columns: minmax(0, 1fr);
  }
  .onboarding-create form > button {
    width: 100%;
    min-width: 0;
  }
}

.session-indicator {
  align-self: center;
  font-size: 12px;
  color: var(--green);
  white-space: nowrap;
}
.account-welcome { overflow-wrap: anywhere; }
body:has(.onboarding-create) .topbar,
body:has(.account-welcome) .topbar { height: auto; min-height: 80px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
.topbar nav { align-items: center; flex-wrap: wrap; }
@media (max-width: 600px) {
  .topbar:has(.session-indicator) { height: auto; min-height: 80px; gap: 12px; flex-wrap: wrap; padding-block: 12px; }
  .topbar:has(.session-indicator) nav { width: 100%; justify-content: flex-end; }
  .session-indicator { margin-right: auto; }
}

/* Creation shares one app shell: full-height sidebar and an in-panel account bar. */
body:has(.onboarding-create) > .topbar { display: none; }
.onboarding-create { min-height: 100dvh; }
.onboarding-create .onboarding-content { padding: 0; }
.onboarding-header {
  min-height: 72px;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.onboarding-header p { margin: 0; font-size: 13px; }
.onboarding-header nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.onboarding-mobile-brand { display: none; }
.onboarding-body { padding: 24px 32px 32px; }
.onboarding-body > .panel { border: 0; box-shadow: none; padding: 0; }
.onboarding-body > .notice { margin: 0 0 24px; padding: 12px 16px; }
@media (max-width: 1000px) {
  .onboarding-create .onboarding-aside { display: none; }
  .onboarding-create { align-content: start; }
  .onboarding-mobile-brand { display: inline-flex; }
  .onboarding-header > p { display: none; }
  .onboarding-header { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .onboarding-header { padding: 16px; }
  .onboarding-header nav { width: 100%; }
  .onboarding-body { padding: 20px 16px 24px; }
}

/* Account navigation is shared by Home, My studios and Create studio. */
.account-shell .account-sidebar { display: flex; flex-direction: column; gap: 8px; padding: 24px 16px; }
.account-brand { padding: 8px; margin-bottom: 24px; }
.account-sidebar .account-nav-label { display: block; margin: 16px 12px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: #8ea3b1; }
.account-menu { display: grid; gap: 6px; }
.account-menu a { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 44px; border-radius: 8px; font-size: 14px; color: #c4ccd4; }
.account-menu a span { min-width: 0; overflow-wrap: anywhere; }
.account-menu a:hover { background: #ffffff10; color: white; }
.account-menu a[aria-current="page"] { background: #008b6133; color: #77e3bc; box-shadow: inset 3px 0 #00b67c; }
.account-sidebar-footer { margin-top: auto; padding: 24px 8px 8px; border-top: 1px solid #ffffff18; display: flex; align-items: center; gap: 12px; }
.account-sidebar-footer div { min-width: 0; }
.account-sidebar-footer strong { display: block; color: white; font-size: 12px; }
.account-sidebar-footer small { display: block; overflow-wrap: anywhere; font-size: 11px; margin-top: 4px; }
.account-shell .onboarding-body { background: var(--surface); }
.account-shell .account-empty { max-width: 680px; padding: 32px; border: 1px solid var(--line); border-radius: 12px; }
.account-empty > .icon { width: 40px; height: 40px; color: var(--green); margin-bottom: 16px; }
.account-empty p { line-height: 1.7; }
@media (max-width: 1000px) {
  .account-shell .onboarding-content { display: contents; }
  .account-shell .onboarding-header { order: 0; }
  .account-shell .account-sidebar { order: 1; padding: 8px 16px; gap: 8px; }
  .account-shell .onboarding-body { order: 2; }
  .account-sidebar .account-brand,
  .account-sidebar .account-nav-label,
  .account-sidebar-footer { display: none; }
  .account-menu { display: flex; flex-wrap: wrap; gap: 4px; }
  .account-menu a { font-size: 12px; padding: 10px; gap: 6px; }
  .account-studios { border-top: 1px solid #ffffff18; padding-top: 8px; }
}
@media (max-width: 600px) {
  .account-shell .account-sidebar { padding-inline: 6px; }
  .account-shell .account-empty { padding: 20px; }
}

.account-sidebar .account-menu-help {
  display: block;
  margin: 0 12px 8px;
  color: #aebfc9;
  font-size: 11px;
  line-height: 1.5;
}
.account-pending-menu button {
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  min-height: 40px;
  gap: 12px;
  border: 0;
  background: transparent;
  color: #91a2ae;
  font-size: 13px;
  font-weight: 400;
  text-align: left;
}
.account-pending-menu button:disabled { opacity: 1; cursor: not-allowed; }
.menu-pending-mark { margin-left: auto; color: #70838f; }
@media (max-width: 1000px) {
  .account-sidebar .account-menu-help { margin: 4px 10px; }
  .account-pending-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-pending-menu button { min-width: 0; font-size: 12px; gap: 8px; }
}

/* Incremental Growth views inherit existing panels, forms, typography and navigation. */
[data-g-form] { display:grid; gap:16px; max-width:680px; margin-block:24px; }
[data-g-form] button, [data-g-action] { min-height:44px; }
[data-g-message]:not(:empty) { padding:16px; border-left:4px solid var(--accent, #008c68); background:#edf7f3; color:#17283d; }
[data-g-token] code { display:block; overflow-wrap:anywhere; margin:16px 0; }
[data-g-results] { overflow-wrap:anywhere; }
/* Keep identity and account controls visible as the authorized menu grows. */
.sidebar { overflow:hidden; }
.sidebar nav { flex:1; min-height:0; overflow-y:auto; }
.sidebar > .sidebar-brand, .sidebar > .studio-switch, .sidebar > .nav-label, .sidebar-bottom { flex-shrink:0; }

.sidebar nav a,.bottom-nav a{text-decoration:none}
.sidebar nav a{display:flex;align-items:center}.sidebar nav a svg{flex-shrink:0}.clear-rule-builder small{display:block;color:var(--muted);font-size:13px;line-height:1.5;margin-top:6px;font-weight:400}.rule-options{display:grid;gap:10px;margin:20px 0}.rule-options button{text-align:left;display:block;background:#fff;border:1px solid var(--line);color:var(--ink);padding:16px;white-space:normal}.rule-options button strong{display:block;font-size:16px}.rule-options button span{display:block;font-size:13px;line-height:1.5;margin-top:6px;font-weight:400}.rule-options button[aria-pressed=true]{border:2px solid var(--green);background:#eef7f2}.rule-builder-step h3{font-size:21px}.clear-rule-builder .checks{flex-wrap:wrap;gap:12px}.clear-rule-builder .checks label{min-width:100px}.rule-form-error{color:#a12626}.rule-calculation{padding:16px;background:#eef7f2;border-radius:10px;line-height:1.6}.rule-builder-step dl{display:grid;gap:8px}.rule-builder-step dt{font-weight:700}.rule-builder-step dd{margin:0 0 12px;line-height:1.5}.clear-rule-builder .wizard-controls{flex-wrap:wrap}.clear-rule-builder .wizard-controls button{white-space:normal}.clear-rule-builder .wizard-controls button[type=submit]{flex:1}
.rule-example{margin:18px 0 24px;padding:20px;border:1px solid #dce9e4;border-radius:18px;background:linear-gradient(145deg,#f7fbf8,#eef7f2);color:#163b31}.rule-example-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.rule-example-heading .eyebrow{margin:0;color:#45685c;font-size:12px}.rule-example-badge{padding:5px 9px;border-radius:999px;background:#fff;border:1px solid #d7e6dc;color:#4e665b;font-size:11px;font-weight:700}.rule-example-scenes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.rule-example-scene{min-width:0;display:flex;flex-direction:column;gap:10px;padding:17px;border:1px solid #d8e8dc;border-radius:14px;background:#fff}.rule-example-scene>strong{font-size:15px;line-height:1.35}.rule-example-scene>b{font-size:14px}.rule-example-scene>small{margin-top:auto;color:#597067;font-size:12px;line-height:1.45}.rule-example-number{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e5f5e9;color:#176c4a;font-size:12px;font-weight:800}.rule-example-stamps{display:flex;gap:5px;flex-wrap:wrap;margin:5px 0}.rule-example-stamps span{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:#dcf3e3;color:#17734c;font-weight:800}.rule-example-stamps:not(.complete) span:last-child{background:#fff;border:1px dashed #97b6a3;color:#729481}.rule-example-calendar{display:grid;grid-template-columns:repeat(5,16px);gap:6px;margin:4px 0}.rule-example-calendar i{width:16px;height:16px;border-radius:5px;background:#e6ece9}.rule-example-calendar i.done{background:#35aa73}.rule-example-meter{height:13px;margin:17px 0 5px;border-radius:999px;background:#e4ebe7;overflow:hidden}.rule-example-meter span{display:block;height:100%;border-radius:inherit;background:#35aa73}.rule-example-ranking{display:grid;gap:5px;margin:4px 0}.rule-example-ranking span{display:flex;gap:6px;align-items:center;padding:7px 9px;border-radius:7px;background:#f2f7f4;font-size:12px}.rule-example-ranking span b{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#c9ead5;color:#175a3b}.rule-example-ranking span strong{margin-left:auto}.rule-example-reward{background:#0f4035;color:#fff;border-color:#0f4035}.rule-example-reward .rule-example-number{background:#2a6a50;color:#fff}.rule-example-reward>small{color:#d3e8da}.rule-example-gift{display:grid;place-items:center;width:48px;height:48px;margin:4px 0;border-radius:15px;background:#b9f174;color:#164b32;font-size:30px;line-height:1}@media(max-width:720px){.rule-example{padding:14px}.rule-example-scenes{grid-template-columns:1fr}.rule-example-scene{min-height:0}.rule-example-scene>small{margin-top:0}}
.card-help { display: grid; gap: 24px; }
.card-help-hero { background: linear-gradient(135deg, #edf6f2, #f7f9fb); }
.card-help-hero h2 { margin: 8px 0; }
.card-help-focus { border-color: #b8decf; background: #f3faf6; }
.card-help-focus h2 { margin: 7px 0; }
.card-help-focus .button { margin-top: 8px; }
.card-help-progress { max-width: 520px; margin: 20px 0; }
.card-help-progress strong { display: block; margin-bottom: 8px; }
.card-help-progress [role="progressbar"] { height: 9px; border-radius: 99px; overflow: hidden; background: #dce4e2; }
.card-help-progress [role="progressbar"] span { display: block; height: 100%; background: #237a60; border-radius: inherit; }
.card-help-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.card-help-steps { padding: 0; margin: 24px 0; list-style: none; }
.card-help-step { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.card-help-step-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #66747b; font-weight: 700; }
.card-help-step[data-state="done"] .card-help-step-number { background: #237a60; }
.card-help-step-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-help-step h3 { margin: 0; font-size: 1.06rem; }
.card-help-step p { margin: 6px 0 10px; color: var(--muted); }
.card-help-badge { padding: 4px 9px; border-radius: 99px; background: #e9edf0; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.card-help-step[data-state="done"] .card-help-badge { background: #dcefe6; color: #195943; }
.card-help-step[data-state="pending"] .card-help-badge { background: #fff0d9; color: #79500e; }
.card-help-guides details { padding: 15px 0; border-top: 1px solid var(--line); }
.card-help-guides summary { cursor: pointer; font-weight: 700; }
.card-help-guides details p { color: var(--muted); }
.card-help-nudge { border: 1px solid #b8decf; border-left: 4px solid var(--green); border-radius: 10px; background: #f3faf6; padding: 18px 20px; margin: 16px 0; }
.card-help-nudge h3 { margin: 5px 0; font-size: 18px; }
.card-help-nudge p { margin: 5px 0 12px; color: var(--muted); }
.card-help-nudge .actions { align-items: center; flex-wrap: wrap; }
.card-help-nudge .actions > a:not(.button) { color: var(--green); font-weight: 650; }
@media (max-width: 900px) { .card-help-layout { grid-template-columns: 1fr; } }

/* Student entry and enrollment: scoped to the public study experience. */
.student-entry > .topbar,.student-entry > footer{display:none}
.student-entry #app{width:100%;max-width:none;margin:0;padding:0;background:#f6f7f5;min-height:100svh}
.student-access{--page-primary:#142d35;--page-primary-text:#fff;--page-button:#006b56;--page-button-text:#fff;max-width:1160px;margin:auto;padding:28px 40px 20px;color:#182c32;overflow-wrap:anywhere}
.student-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding-bottom:30px}
.student-brand{min-width:0;text-decoration:none;color:inherit}
.student-header .study-logo{display:block;max-width:180px;max-height:60px}
.student-header>a:last-child{display:flex;gap:8px;align-items:center;flex-shrink:0;color:#465a5d;font-size:14px;text-decoration:none}
.student-access-grid{display:grid;grid-template-columns:1fr 1fr;border-radius:26px;overflow:hidden;background:#fff;border:1px solid #dce4e0;box-shadow:0 18px 55px #233e3010}
.student-intro{background:var(--page-primary);color:var(--page-primary-text);padding:54px 42px;display:flex;flex-direction:column;align-items:flex-start}
.student-intro .eyebrow{color:inherit;opacity:.8;font-size:11px;letter-spacing:.15em}
.student-intro h1{font-size:clamp(32px,3.5vw,46px);line-height:1.1;letter-spacing:-.04em;margin:18px 0}
.student-intro>p:not(.eyebrow){font-size:17px;line-height:1.65;max-width:360px;opacity:.9}
.student-benefits{display:grid;gap:18px;margin:24px 0 38px;font-size:15px}
.student-benefits span{display:flex;align-items:center;gap:12px}
.student-benefits svg{width:21px;height:21px;opacity:.85}
.student-signature{display:flex;gap:8px;align-items:center;margin-top:auto;padding-top:25px;border-top:1px solid currentColor;font-size:12px;opacity:.75;width:100%}
.student-form-panel{padding:48px 40px}
.student-form-panel .eyebrow{color:#596b66;font-size:11px}
.student-form-panel h2{font-size:28px;line-height:1.16;letter-spacing:-.035em;margin:14px 0}
.student-form-panel>p:not(.eyebrow),.student-register p{color:#566761;font-size:15px;line-height:1.6}
.student-form-panel form{display:grid;gap:15px;margin-top:25px}
.student-form-panel label,.enroll-fields label{display:grid;gap:8px;font-size:14px;font-weight:600}
.student-form-panel input,.enroll-fields input{width:100%;min-width:0;min-height:50px;background:#fff;border:1px solid #bccbc3;border-radius:9px;font-size:16px;color:#182c32}
.student-form-panel button,.student-form-panel .button,.enroll-fields button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:50px;border-radius:10px;background:var(--page-button,#006b56);color:var(--page-button-text,#fff);font-size:15px;width:100%}
.student-form-panel small,.enroll-fields small{font-size:12px;line-height:1.6;color:#566761;font-weight:400}
.student-register{margin-top:28px;padding-top:23px;border-top:1px solid #e0e7e2}
.student-register h3{font-size:16px;margin:0 0 5px}
.student-register p{font-size:13px;margin:0 0 15px}
.student-form-panel .button.secondary{background:#fff;color:#223c32;border:1px solid #bccbc3}
.student-rules{display:block;text-align:center;margin-top:20px;color:#52665b;font-size:12px}
.student-powered{text-align:center;margin:22px 0 0;color:#63746a;font-size:11px;letter-spacing:.03em}
.student-enrollment{max-width:1000px;margin:30px auto;display:grid;grid-template-columns:.85fr 1.15fr;border:1px solid #dce4e0;border-radius:22px;background:#fff;color:#182c32;overflow:hidden;box-shadow:0 14px 40px #233e3010}
.enroll-intro{background:#f0f5f1;padding:36px 30px}
.enroll-intro h2{font-size:30px;line-height:1.15;letter-spacing:-.035em;margin:14px 0}
.enroll-intro>p:not(.eyebrow){font-size:15px;line-height:1.5;margin:0}
.enroll-intro .eyebrow{font-size:11px;color:#52665b}
.student-enrollment .enrollment-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:26px 0;padding:0;color:#52665b;font-size:12px}
.student-enrollment .enrollment-steps li{min-width:0;display:grid;justify-items:center;gap:7px;padding:0;background:none;text-align:center}
.student-enrollment .enrollment-steps [aria-current]{color:#182c32;font-weight:700}
.enroll-step-mark{display:grid;place-items:center;width:32px;height:32px;border:1px solid #c5d4cc;border-radius:50%;background:#fff;font-size:13px;font-weight:700;color:#52665b}
.enrollment-steps .is-done .enroll-step-mark{border-color:#216b55;background:#e0f0e7;color:#15543f}
.enrollment-steps [aria-current] .enroll-step-mark{border-color:#15543f;background:#15543f;color:#fff}
.enroll-policy{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid #cbded2;border-radius:14px;background:#fff;font-size:13px;line-height:1.45}
.enroll-policy>.icon{width:22px;height:22px;flex:none;color:#216b55}
.enroll-policy div{display:grid;gap:4px}
.enroll-policy strong{color:#173e33}
.enroll-policy span{color:#4c6259}
.enroll-fields{padding:36px 30px}
.enroll-fields h3{margin:0;font-size:21px}
.enroll-fields form{display:grid;gap:17px}
.enroll-fields form>p{font-size:12px;line-height:1.65;margin:0}
.enroll-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 16px}
.enroll-full{grid-column:1/-1}
.enroll-verified{display:flex;align-items:flex-start;gap:10px;margin:20px 0 10px;padding:13px 14px;border:1px solid #b8ddc7;border-radius:12px;background:#eaf7ee;color:#174c37;font-size:13px}
.enroll-verified>.icon{width:20px;height:20px;flex:none}
.enroll-verified div{display:grid;gap:2px;min-width:0}
.enroll-verified span{overflow-wrap:anywhere}
.enroll-not-sent{margin:0 0 18px;font-size:13px;line-height:1.5;color:#364f45}
.enroll-signin{display:inline-block;margin-top:22px;color:#244e3e;font-size:13px}
#auth.public-auth .auth-art{background:var(--page-primary);color:var(--page-primary-text)}
#auth.public-auth .auth-art h2,#auth.public-auth .auth-art p{color:inherit}
#auth.public-auth .auth-fields> .eyebrow{max-width:85%;overflow-wrap:anywhere}
#auth.public-auth #verify-form input{font-size:26px;letter-spacing:.2em}
@media(max-width:700px){
 .student-access{padding:20px 20px 22px}
 .student-header{padding-bottom:22px;gap:16px}
 .student-header .study-wordmark{font-size:20px;letter-spacing:0}
 .student-header .study-logo{max-width:150px;max-height:44px}
 .student-header>a:last-child{font-size:12px}
 .student-access-grid{grid-template-columns:1fr;border-radius:20px}
 .student-intro{padding:26px 24px 22px}
 .student-intro h1{font-size:32px;margin:10px 0 12px}
 .student-intro>p:not(.eyebrow){font-size:14px;margin:0;line-height:1.55}
 .student-intro .eyebrow{font-size:10px;margin:0}
 .student-benefits{display:flex;flex-wrap:wrap;gap:10px 16px;font-size:11px;margin:20px 0 0}
 .student-benefits span{gap:6px}
 .student-benefits svg{width:16px;height:16px}
 .student-signature{display:none}
 .student-form-panel{padding:26px 24px}
 .student-form-panel>.eyebrow{display:none}
 .student-form-panel h2{font-size:25px;margin:0 0 10px}
 .student-form-panel>p:not(.eyebrow){font-size:14px;margin:0}
 .student-form-panel form{margin-top:20px}
 .student-register{margin-top:23px;padding-top:20px}
 .student-enrollment{grid-template-columns:1fr;margin:20px 14px;border-radius:18px}
 .enroll-intro{padding:23px 22px 20px}
 .enroll-fields{padding:25px 22px}
 .enroll-intro h2{font-size:27px;margin:9px 0 8px}
 .enroll-intro>p:not(.eyebrow){font-size:14px}
 .student-enrollment .enrollment-steps{margin:17px 0;gap:5px}
 .enroll-policy{padding:12px;font-size:12px}
 .enroll-verified{margin-top:16px}
 .enroll-grid{grid-template-columns:1fr}
 #auth.public-auth{width:calc(100% - 24px);max-height:calc(100dvh - 24px);border-radius:18px}
 #auth.public-auth .auth-art{padding:18px 24px;min-height:0}
 #auth.public-auth .auth-art img{max-width:130px;max-height:38px;margin:0;object-fit:contain}
 #auth.public-auth .auth-art .eyebrow{display:none}
 #auth.public-auth .auth-fields{padding:30px 24px}
}
@media(prefers-reduced-motion:reduce){.student-entry *{scroll-behavior:auto}}
.student-intro h1{color:inherit}
@media(max-width:380px){
 .student-access{padding:18px 14px}
 .student-intro{padding:24px 20px}
 .student-intro h1{font-size:28px}
 .student-benefits{display:none}
 .student-form-panel{padding:24px 20px}
 .student-form-panel h2{font-size:23px}
 .student-form-panel button{font-size:14px;padding:12px}
 .student-access .student-enrollment{margin:0}
}

/* Coupon desk: read first, review the benefit, then explicitly confirm delivery. */
.coupon-desk{display:grid;gap:24px}
.coupon-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.coupon-stats>div{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #dce4e8;border-radius:14px;padding:20px 22px}
.coupon-stats span{font-size:14px;color:#526174}
.coupon-stats strong{font-size:30px;letter-spacing:-.04em;color:#172c43;line-height:1}
.coupon-stats>div:first-child{background:#eaf6f0;border-color:#bcdece}
.coupon-stats>div:first-child strong{color:#006848}
.coupon-workbench{display:grid;grid-template-columns:1fr 1.1fr;gap:24px;align-items:stretch}
.coupon-workbench>.panel{margin:0;padding:28px;min-width:0}
.coupon-reader h2{font-size:26px;letter-spacing:-.035em;margin:8px 0 14px}
.coupon-reader>p:not(.eyebrow){font-size:15px;line-height:1.6;color:#536475;margin:0 0 24px}
.coupon-reader .eyebrow,.coupon-result .eyebrow,.coupon-review-idle .eyebrow{font-size:11px;letter-spacing:.12em;color:#536475}
.coupon-camera,.coupon-usb{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;width:100%;font-size:15px}
.coupon-usb{margin-top:12px}
#coupon-manual{border-top:1px solid #e1e7eb;margin-top:24px;padding-top:19px}
#coupon-manual summary{font-size:13px;font-weight:600;color:#405c72;cursor:pointer;line-height:1.5;padding:3px 0}
#coupon-manual form{margin-top:20px;display:grid;gap:14px}
#coupon-manual label{font-size:14px;margin:0}
#coupon-manual input{font-size:16px;min-height:48px;width:100%;min-width:0;margin-bottom:0}
#coupon-reader-help{font-size:13px;color:#536475;line-height:1.6;margin:0}
#coupon-manual button{min-height:46px}
.coupon-qr-tip{display:flex;align-items:flex-start;gap:10px;background:#f2f6f9;border-radius:10px;padding:15px;margin-top:22px;color:#526579}
.coupon-qr-tip svg{flex-shrink:0;width:20px;height:20px;margin-top:2px}
.coupon-qr-tip p{margin:0;font-size:12px;line-height:1.65}
.coupon-workbench .coupon-review{border:1px solid #cbded5;background:#fbfdfb;display:flex;align-items:center;justify-content:center}
.coupon-review-idle{text-align:center;max-width:390px;padding:24px 6px}
.coupon-review-idle>svg{width:52px;height:52px;color:#759487;margin-bottom:22px}
.coupon-review-idle h3{font-size:22px;letter-spacing:-.025em;margin:15px 0}
.coupon-review-idle>p:not(.eyebrow){font-size:15px;line-height:1.65;color:#617166}
.coupon-review-idle>span:not(.reader-spinner){display:block;font-size:12px;color:#617166;margin-top:26px}
.coupon-result{width:100%;overflow-wrap:anywhere}
.coupon-result h3{font-size:25px;letter-spacing:-.03em;line-height:1.25;margin:18px 0 22px}
.coupon-result>svg{width:40px;height:40px;margin-bottom:20px;color:#00865d}
.coupon-result dl{display:grid;gap:16px;margin:24px 0;padding:22px 0;border-top:1px solid #dce8e0;border-bottom:1px solid #dce8e0}
.coupon-result dl>div{display:grid;grid-template-columns:100px 1fr;gap:12px}
.coupon-result dt{font-size:13px;color:#66766c}
.coupon-result dd{margin:0;font-size:15px;font-weight:650;color:#213c32}
.coupon-result form>p,.coupon-result>p:not(.eyebrow){font-size:14px;line-height:1.65}
.coupon-result form>button{width:100%;min-height:52px}
.coupon-result .text-button{margin-top:14px}
.coupon-blocked{padding:16px;background:#fff2dd;color:#6f4918;border-radius:10px}
.coupon-error h3,.coupon-error>svg{color:#922c32}
.coupon-error>p{color:#6f4448}
.coupon-result.delivered{padding:14px 0}
.coupon-result.already-delivered>svg{color:#976015}
.coupon-history.panel{margin:0;padding:26px;min-width:0}
.coupon-history .section-head{margin:0 0 12px}
.coupon-history h2{font-size:23px;margin:5px 0 0;letter-spacing:-.025em}
.coupon-history>.muted{font-size:13px;line-height:1.65;max-width:820px;margin:0 0 20px}
.coupon-history .table-wrap{border:0;border-radius:0}
.coupon-history .filter-bar{margin-bottom:18px;gap:12px;flex-wrap:wrap}
.coupon-history .search-field{flex:1;min-width:220px}
.coupon-table{width:100%;font-size:14px}
.coupon-table th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;padding:14px 12px;background:#f3f6f8;color:#536475}
.coupon-table td{padding:18px 12px;vertical-align:top;white-space:normal}
.coupon-table td:nth-child(2){min-width:180px;max-width:300px}
.coupon-table td>strong{display:block;font-size:14px;line-height:1.55}
.coupon-table td small{display:block;font-size:12px;line-height:1.5;color:#687989;margin-top:5px}
.coupon-table .person-cell{align-items:center;gap:10px;min-width:150px}
.coupon-table .person-cell strong{font-size:14px}
.coupon-mail-state{font-size:12px;color:#647485;line-height:1.5}
.coupon-table .button{white-space:nowrap}
.coupon-mail-note{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;color:#657689;margin:18px 0 0}
.coupon-mail-note svg{flex-shrink:0;width:17px;height:17px}
.coupon-empty{text-align:center;padding:30px 18px}
.coupon-empty h3{font-size:20px}
.coupon-empty p{font-size:14px;color:#657689}
[data-coupon-no-results]{padding:22px;background:#f4f7f9;border-radius:10px;color:#526579;font-size:14px;line-height:1.6}
@media(max-width:1100px){.coupon-workbench{grid-template-columns:1fr}.coupon-review-idle{padding:18px 0}.coupon-stats>div{padding:18px}}
@media(max-width:700px){
 .coupon-desk{gap:18px}
 .coupon-stats{gap:8px}
 .coupon-stats>div{padding:14px 12px;flex-direction:column;align-items:flex-start;gap:10px}
 .coupon-stats span{font-size:11px;line-height:1.45}
 .coupon-stats strong{font-size:26px}
 .coupon-workbench{gap:16px}
 .coupon-workbench>.panel{padding:22px 18px}
 .coupon-reader h2{font-size:24px}
 .coupon-camera,.coupon-usb{font-size:14px;padding:12px}
 .coupon-review-idle h3{font-size:21px}
 .coupon-review-idle>svg{width:38px;height:38px;margin-bottom:12px}
 .coupon-result h3{font-size:23px}
 .coupon-result dl>div{grid-template-columns:1fr;gap:4px}
 .coupon-history.panel{padding:20px 16px}
 .coupon-history .section-head{align-items:flex-start;gap:10px}
 .coupon-history .section-head h2{font-size:21px}
 .coupon-history .pill{white-space:nowrap}
 .coupon-history .filter-bar{display:grid;grid-template-columns:1fr;align-items:stretch}
 .coupon-history .search-field{min-width:0}
 .coupon-history .filter-state{display:flex;align-items:center;gap:12px}
 .coupon-history .filter-state select{flex:1}
 .coupon-history .table-wrap{overflow:visible}
 .coupon-table,.coupon-table tbody{display:block;min-width:0}
 .coupon-table thead{display:none}
 .coupon-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px;padding:18px 0;border-bottom:1px solid #dce4e8}
 .coupon-table tbody tr[hidden]{display:none}
 .coupon-table td{padding:0;border:0;min-width:0!important;max-width:none!important;font-size:13px}
 .coupon-table td:before{content:attr(data-label);display:block;font-size:10px;text-transform:uppercase;color:#637487;letter-spacing:.06em;margin-bottom:6px}
 .coupon-table td:nth-child(1),.coupon-table td:nth-child(2),.coupon-table td:last-child,.coupon-table td[colspan]{grid-column:1/-1}
 .coupon-table td:first-child:before,.coupon-table td:last-child:before,.coupon-table td[colspan]:before{display:none}
 .coupon-table td:last-child .button{width:100%;justify-content:center}
}

/* Coupon desk: read first, review the benefit, then explicitly confirm delivery. */
.coupon-desk{display:grid;gap:24px}
.coupon-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.coupon-stats>div{display:flex;align-items:center;justify-content:space-between;gap:14px;background:#fff;border:1px solid #dce4e8;border-radius:14px;padding:20px 22px}
.coupon-stats span{font-size:14px;color:#526174}
.coupon-stats strong{font-size:30px;letter-spacing:-.04em;color:#172c43;line-height:1}
.coupon-stats>div:first-child{background:#eaf6f0;border-color:#bcdece}
.coupon-stats>div:first-child strong{color:#006848}
.coupon-workbench{display:grid;grid-template-columns:1fr 1.1fr;gap:24px;align-items:stretch}
.coupon-workbench>.panel{margin:0;padding:28px;min-width:0}
.coupon-reader h2{font-size:26px;letter-spacing:-.035em;margin:8px 0 14px}
.coupon-reader>p:not(.eyebrow){font-size:15px;line-height:1.6;color:#536475;margin:0 0 24px}
.coupon-reader .eyebrow,.coupon-result .eyebrow,.coupon-review-idle .eyebrow{font-size:11px;letter-spacing:.12em;color:#536475}
.coupon-camera,.coupon-usb{display:flex;align-items:center;justify-content:center;gap:10px;min-height:52px;width:100%;font-size:15px}
.coupon-usb{margin-top:12px}
#coupon-manual{border-top:1px solid #e1e7eb;margin-top:24px;padding-top:19px}
#coupon-manual summary{font-size:13px;font-weight:600;color:#405c72;cursor:pointer;line-height:1.5;padding:3px 0}
#coupon-manual form{margin-top:20px;display:grid;gap:14px}
#coupon-manual label{font-size:14px;margin:0}
#coupon-manual input{font-size:16px;min-height:48px;width:100%;min-width:0;margin-bottom:0}
#coupon-reader-help{font-size:13px;color:#536475;line-height:1.6;margin:0}
#coupon-manual button{min-height:46px}
.coupon-qr-tip{display:flex;align-items:flex-start;gap:10px;background:#f2f6f9;border-radius:10px;padding:15px;margin-top:22px;color:#526579}
.coupon-qr-tip svg{flex-shrink:0;width:20px;height:20px;margin-top:2px}
.coupon-qr-tip p{margin:0;font-size:12px;line-height:1.65}
.coupon-workbench .coupon-review{border:1px solid #cbded5;background:#fbfdfb;display:flex;align-items:center;justify-content:center}
.coupon-review-idle{text-align:center;max-width:390px;padding:24px 6px}
.coupon-review-idle>svg{width:52px;height:52px;color:#759487;margin-bottom:22px}
.coupon-review-idle h3{font-size:22px;letter-spacing:-.025em;margin:15px 0}
.coupon-review-idle>p:not(.eyebrow){font-size:15px;line-height:1.65;color:#617166}
.coupon-review-idle>span:not(.reader-spinner){display:block;font-size:12px;color:#617166;margin-top:26px}
.coupon-result{width:100%;overflow-wrap:anywhere}
.coupon-result h3{font-size:25px;letter-spacing:-.03em;line-height:1.25;margin:18px 0 22px}
.coupon-result>svg{width:40px;height:40px;margin-bottom:20px;color:#00865d}
.coupon-result dl{display:grid;gap:16px;margin:24px 0;padding:22px 0;border-top:1px solid #dce8e0;border-bottom:1px solid #dce8e0}
.coupon-result dl>div{display:grid;grid-template-columns:100px 1fr;gap:12px}
.coupon-result dt{font-size:13px;color:#66766c}
.coupon-result dd{margin:0;font-size:15px;font-weight:650;color:#213c32}
.coupon-result form>p,.coupon-result>p:not(.eyebrow){font-size:14px;line-height:1.65}
.coupon-result form>button{width:100%;min-height:52px}
.coupon-result .text-button{margin-top:14px}
.coupon-blocked{padding:16px;background:#fff2dd;color:#6f4918;border-radius:10px}
.coupon-error h3,.coupon-error>svg{color:#922c32}
.coupon-error>p{color:#6f4448}
.coupon-result.delivered{padding:14px 0}
.coupon-result.already-delivered>svg{color:#976015}
.coupon-history.panel{margin:0;padding:26px;min-width:0}
.coupon-history .section-head{margin:0 0 12px}
.coupon-history h2{font-size:23px;margin:5px 0 0;letter-spacing:-.025em}
.coupon-history>.muted{font-size:13px;line-height:1.65;max-width:820px;margin:0 0 20px}
.coupon-history .table-wrap{border:0;border-radius:0}
.coupon-history .filter-bar{margin-bottom:18px;gap:12px;flex-wrap:wrap}
.coupon-history .search-field{flex:1;min-width:220px}
.coupon-table{width:100%;font-size:14px}
.coupon-table th{font-size:11px;letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;padding:14px 12px;background:#f3f6f8;color:#536475}
.coupon-table td{padding:18px 12px;vertical-align:top;white-space:normal}
.coupon-table td:nth-child(2){min-width:180px;max-width:300px}
.coupon-table td>strong{display:block;font-size:14px;line-height:1.55}
.coupon-table td small{display:block;font-size:12px;line-height:1.5;color:#687989;margin-top:5px}
.coupon-table .person-cell{align-items:center;gap:10px;min-width:150px}
.coupon-table .person-cell strong{font-size:14px}
.coupon-mail-state{font-size:12px;color:#647485;line-height:1.5}
.coupon-table .button{white-space:nowrap}
.coupon-mail-note{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.6;color:#657689;margin:18px 0 0}
.coupon-mail-note svg{flex-shrink:0;width:17px;height:17px}
.coupon-empty{text-align:center;padding:30px 18px}
.coupon-empty h3{font-size:20px}
.coupon-empty p{font-size:14px;color:#657689}
[data-coupon-no-results]{padding:22px;background:#f4f7f9;border-radius:10px;color:#526579;font-size:14px;line-height:1.6}
@media(max-width:1100px){.coupon-workbench{grid-template-columns:1fr}.coupon-review-idle{padding:18px 0}.coupon-stats>div{padding:18px}}
@media(max-width:700px){
 .coupon-desk{gap:18px}
 .coupon-stats{gap:8px}
 .coupon-stats>div{padding:14px 12px;flex-direction:column;align-items:flex-start;gap:10px}
 .coupon-stats span{font-size:11px;line-height:1.45}
 .coupon-stats strong{font-size:26px}
 .coupon-workbench{gap:16px}
 .coupon-workbench>.panel{padding:22px 18px}
 .coupon-reader h2{font-size:24px}
 .coupon-camera,.coupon-usb{font-size:14px;padding:12px}
 .coupon-review-idle h3{font-size:21px}
 .coupon-review-idle>svg{width:38px;height:38px;margin-bottom:12px}
 .coupon-result h3{font-size:23px}
 .coupon-result dl>div{grid-template-columns:1fr;gap:4px}
 .coupon-history.panel{padding:20px 16px}
 .coupon-history .section-head{align-items:flex-start;gap:10px}
 .coupon-history .section-head h2{font-size:21px}
 .coupon-history .pill{white-space:nowrap}
 .coupon-history .filter-bar{display:grid;grid-template-columns:1fr;align-items:stretch}
 .coupon-history .search-field{min-width:0}
 .coupon-history .filter-state{display:flex;align-items:center;gap:12px}
 .coupon-history .filter-state select{flex:1}
 .coupon-history .table-wrap{overflow:visible}
 .coupon-table,.coupon-table tbody{display:block;min-width:0}
 .coupon-table thead{display:none}
 .coupon-table tbody tr{display:grid;grid-template-columns:1fr 1fr;gap:15px 12px;padding:18px 0;border-bottom:1px solid #dce4e8}
 .coupon-table tbody tr[hidden]{display:none}
 .coupon-table td{padding:0;border:0;min-width:0!important;max-width:none!important;font-size:13px}
 .coupon-table td:before{content:attr(data-label);display:block;font-size:10px;text-transform:uppercase;color:#637487;letter-spacing:.06em;margin-bottom:6px}
 .coupon-table td:nth-child(1),.coupon-table td:nth-child(2),.coupon-table td:last-child,.coupon-table td[colspan]{grid-column:1/-1}
 .coupon-table td:first-child:before,.coupon-table td:last-child:before,.coupon-table td[colspan]:before{display:none}
 .coupon-table td:last-child .button{width:100%;justify-content:center}
}
.coupon-history .filter-state{font-size:12px;color:#536475}
.coupon-review .reader-spinner{display:block;width:36px;height:36px;border:3px solid #d4e7de;border-top-color:#00865d;border-radius:50%;margin:0 auto 22px;animation:coupon-loading .8s linear infinite}
@keyframes coupon-loading{to{transform:rotate(360deg)}}
@media(max-width:700px){.coupon-history .table-wrap{padding:0}.coupon-history .table-wrap table{min-width:0}.coupon-history .filter-bar{min-width:0}.coupon-history .filter-bar [data-results]{margin-left:0}}
@media(prefers-reduced-motion:reduce){.coupon-review .reader-spinner{animation:none}}

/* Approved student rule views: navy/lime, real current-month data. */
.student-rules{font-family:system-ui,-apple-system,sans-serif}
.sr-picker{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px}.sr-picker a{padding:10px 15px;border-radius:24px;background:var(--sr-panel);color:var(--sr-lime);font-size:13px;text-decoration:none;overflow-wrap:anywhere;min-height:44px}
.sr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,330px),1fr));gap:22px;align-items:start}
.sr-card{background:var(--sr-bg);color:var(--sr-text);border-radius:26px;padding:25px 21px;max-width:430px;width:100%;margin:0 auto;scroll-margin-top:100px;overflow-wrap:anywhere;font:400 14px/1.5 system-ui,-apple-system,sans-serif;box-sizing:border-box}
.sr-card *{box-sizing:border-box}.sr-card header{display:block;position:static;background:none;padding:0;border:0}.sr-card h2{font-size:29px;line-height:1.14;letter-spacing:-1px;font-weight:650;margin:0 0 10px;color:var(--sr-text)}
.sr-card .sr-eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--sr-lime);font-weight:600;margin:0 0 7px}.sr-rule-name{font-weight:550;font-size:14px;margin:0 0 7px;color:var(--sr-text)}.sr-subtitle{font-size:13px;color:var(--sr-muted);margin:0 0 23px}
.sr-hero{background:var(--sr-panel);border-radius:22px;padding:22px 18px;margin-bottom:17px}.sr-overline{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:11px;color:var(--sr-muted);flex-wrap:wrap}.sr-overline>span:first-child{text-transform:capitalize}.sr-pill{border-radius:20px;background:var(--sr-soft);color:var(--sr-lime);font-size:10px;padding:4px 8px}
.sr-number{font-size:50px;line-height:1.1;letter-spacing:-2px;font-weight:600;margin:17px 0}.sr-number small{font-size:19px;color:var(--sr-muted);letter-spacing:-.3px;font-weight:400}
.sr-stamps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:20px 0 15px}.sr-stamp{aspect-ratio:1;border:1px dashed #607085;border-radius:50%;display:grid;place-items:center;color:var(--sr-muted);font-size:13px}.sr-stamp.sr-done{border:0;background:var(--sr-lime);color:var(--sr-on-accent)}.sr-stamp .icon{width:19px;height:19px}
.sr-hero p{margin:0;color:var(--sr-muted);font-size:12px}.sr-hero p strong{color:var(--sr-text);font-weight:550}
.sr-reward{display:flex;gap:13px;align-items:center;padding:5px 0 19px}.sr-gift{flex-shrink:0;width:43px;height:43px;background:var(--sr-soft);border-radius:14px;display:grid;place-items:center;color:var(--sr-lime)}.sr-reward small{display:block;font-size:10px;letter-spacing:1px;color:var(--sr-muted);margin-bottom:3px}.sr-reward strong{display:block;font-weight:550;font-size:15px}
.sr-note{display:flex;align-items:flex-start;gap:9px;border-top:1px solid var(--sr-line);padding-top:16px;font-size:12px;color:var(--sr-muted)}.sr-note .icon{flex-shrink:0;margin-top:2px;color:var(--sr-lime);width:16px;height:16px}
.sr-action{background:var(--sr-button);color:var(--sr-on-button);border:0;border-radius:13px;width:100%;min-height:47px;margin-top:20px;font-weight:600;display:flex;justify-content:center;align-items:center;gap:8px;text-decoration:none;padding:10px}.sr-action:hover{background:var(--sr-button);color:var(--sr-on-button);filter:brightness(1.08)}
.sr-details{margin-top:14px;font-size:12px;color:var(--sr-muted)}.sr-details summary{min-height:44px;padding:10px 0;cursor:pointer}.sr-details p{margin:5px 0 12px;color:var(--sr-muted)}
.sr-ring-row{display:flex;gap:18px;align-items:center;margin:18px 0}.sr-ring{height:116px;width:116px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--sr-lime) var(--sr-progress),var(--sr-track) 0);display:grid;place-items:center}.sr-ring>div{width:96px;height:96px;border-radius:50%;background:var(--sr-panel);display:flex;align-items:center;justify-content:center;flex-direction:column}.sr-ring strong{font-size:30px;letter-spacing:-1px;line-height:1.2;font-weight:600}.sr-ring small{font-size:10px;color:var(--sr-muted)}.sr-ring-copy{min-width:0}.sr-ring-copy strong{font-size:25px;display:block;letter-spacing:-.7px;font-weight:550}.sr-ring-copy span{font-size:11px;color:var(--sr-muted);display:block}
.sr-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:18px 0 12px;text-align:center}.sr-calendar>span{font-size:11px;min-height:28px;display:flex;align-items:center;justify-content:center;gap:1px}.sr-calendar small{font-size:8px}.sr-calendar .sr-weekday{font-size:10px;color:var(--sr-muted);min-height:15px}.sr-calendar .sr-attended{background:var(--sr-lime);border-radius:50%;color:var(--sr-on-accent);font-weight:650}.sr-calendar .sr-excluded{color:#8b9aae;text-decoration:line-through}.sr-legend{font-size:10px;color:var(--sr-muted);display:flex;gap:13px;flex-wrap:wrap}
.sr-podium{display:flex;align-items:flex-end;justify-content:center;gap:9px;margin:20px 0 17px;height:116px}.sr-place{width:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:14px 14px 5px 5px;background:var(--sr-track);height:84px;color:var(--sr-text)}.sr-place-1{height:111px;background:var(--sr-soft);color:var(--sr-lime)}.sr-place-3{height:66px;background:var(--sr-track)}.sr-place strong{font-size:25px;line-height:1;font-weight:550}.sr-place small{font-size:9px}.sr-places{text-align:center}
.sr-track{height:7px;border-radius:10px;background:var(--sr-track);margin:12px 0}.sr-track span{display:block;height:100%;border-radius:10px;background:var(--sr-lime)}.sr-progress-label{display:flex;justify-content:space-between;font-size:12px;margin-top:20px}.sr-message{background:var(--sr-soft);border-radius:12px;padding:13px;margin-top:15px;font-size:12px;color:var(--sr-text)}
body.student-rules-home{background:var(--sr-bg);color:var(--sr-text)}body.student-rules-home .page-title h1{color:var(--sr-text)}body.student-rules-home .page-title .muted{color:var(--sr-muted)}body.student-rules-home .page-title .eyebrow{color:var(--sr-lime)}body.student-rules-home .workspace-bar{background:var(--sr-panel);color:var(--sr-text);border-color:var(--sr-line)}body.student-rules-home .workspace-fitnity-brand img{filter:brightness(0) invert(1)}body.student-rules-home .bottom-nav{background:var(--sr-panel);border-color:var(--sr-line)}body.student-rules-home .bottom-nav a,body.student-rules-home .bottom-nav button{color:var(--sr-muted)}body.student-rules-home .bottom-nav .selected{color:var(--sr-lime)}body.student-rules-home .empty{color:var(--sr-muted)}
@media(max-width:600px){.student-rules-home .sr-card{max-width:430px;padding:20px 9px;border-radius:0}.student-rules-home .sr-grid{gap:30px}.student-rules-home .page-title{margin-bottom:16px}.student-rules-home .page-title h1{font-size:23px}.sr-picker{margin-bottom:10px}}
@media(max-width:360px){.sr-ring-row{gap:11px}.sr-hero{padding:18px 13px}.sr-card h2{font-size:27px}.sr-ring{width:108px;height:108px}.sr-ring>div{width:88px;height:88px}.sr-ring-copy strong{font-size:22px}}
body.student-rules-home .bottom-nav a.selected,body.student-rules-home .bottom-nav button.selected{background:var(--sr-soft);color:var(--sr-lime)}body.student-rules-home .bottom-nav .bottom-primary .icon{background:var(--sr-button);color:var(--sr-on-button);border-color:var(--sr-panel)}body.student-rules-home .public-link{color:var(--sr-muted)}body.student-rules-home .workspace-bar .icon-button{background:var(--sr-panel);color:var(--sr-text)}

/* Rules administration: readable configuration and persistent action results. */
.admin-rules-list{min-width:0}.admin-rules-list>.section-head{margin:0 0 2px}.admin-rules-list>.section-head h2{font-size:20px;margin:0}.admin-rule-card{background:#fff;border:1px solid #dce5e9;border-radius:22px;padding:24px;min-width:0;overflow-wrap:anywhere;box-shadow:0 5px 20px #15364205;scroll-margin-top:100px}.admin-rule-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.admin-rule-type{font-size:12px;font-weight:700;letter-spacing:.4px;color:#36576a}.admin-rule-state{font-size:11px;padding:5px 10px;border-radius:20px;background:#eff2f5;color:#566574}.admin-rule-state.is-current{background:#e4f4eb;color:#166344}.admin-rule-card h3{font-size:22px;line-height:1.2;letter-spacing:-.6px;margin:0 0 6px}.admin-rule-period{font-size:13px;color:#61737e;text-transform:capitalize;margin:0 0 18px}.admin-rule-goal{display:flex;gap:16px;align-items:center;justify-content:space-between;background:#f3f6f8;padding:18px;border-radius:16px}.admin-rule-goal small{display:block;font-size:10px;letter-spacing:1px;color:#526773}.admin-rule-goal strong{display:block;font-size:40px;line-height:1.15;letter-spacing:-1.5px;font-weight:650;margin:7px 0 3px}.admin-rule-goal>div>span{font-size:12px;color:#526773;display:block}.admin-rule-stamps{display:flex;gap:5px;flex-wrap:wrap;max-width:110px;justify-content:flex-end}.admin-rule-stamps span{display:grid;place-items:center;width:28px;height:28px;border:1px dashed #8ea7ad;border-radius:50%;font-size:11px;color:#56707a}.admin-rule-ring{width:72px;height:72px;border-radius:50%;background:conic-gradient(#529077 var(--goal),#dce6e7 0);position:relative;flex-shrink:0}.admin-rule-ring:after{content:"";position:absolute;inset:9px;border-radius:50%;background:#f3f6f8}.admin-rule-podium{display:flex;align-items:flex-end;gap:4px;flex-shrink:0}.admin-rule-podium span{display:grid;place-items:center;width:27px;height:34px;border-radius:6px 6px 0 0;background:#dfe9e6;color:#376a53;font-weight:700;font-size:12px}.admin-rule-podium span:nth-child(2){height:49px;background:#d4e9da}.admin-rule-podium span:last-child{height:27px}.admin-rule-prize{padding:21px 0 17px}.admin-rule-prize small{display:block;font-size:10px;letter-spacing:1px;color:#6a7b83;margin-bottom:6px}.admin-rule-prize strong{font-size:16px;font-weight:600;line-height:1.5}.admin-rule-delivery{display:flex;flex-direction:column;gap:4px;border-top:1px solid #e4eaed;padding-top:15px}.admin-rule-delivery span{font-size:13px;font-weight:650;color:#245d45}.admin-rule-delivery small{font-size:12px;color:#637581}.admin-rule-card details{font-size:13px;color:#526773;margin-top:10px}.admin-rule-card summary{padding:12px 0;min-height:44px;cursor:pointer}.admin-rule-card details p{font-size:12px;line-height:1.6;margin:4px 0 10px}
.rule-feedback-dialog{padding:32px;max-width:470px;border:0;border-radius:26px;background:#fff;color:#152b35}.rule-feedback{padding-top:8px}.rule-feedback-icon{display:grid;place-items:center;width:58px;height:58px;background:#e6f5eb;color:#187348;border-radius:19px;margin-bottom:22px}.rule-feedback-icon .icon{width:30px;height:30px}.rule-feedback.is-warning .rule-feedback-icon{background:#fff1da;color:#8c590d}.rule-feedback .eyebrow{font-size:10px;color:#58707c;letter-spacing:1.4px}.rule-feedback h2{font-size:28px;line-height:1.15;letter-spacing:-.8px;margin:8px 0 15px}.rule-feedback p{font-size:15px;line-height:1.6;overflow-wrap:anywhere}.rule-feedback .rule-feedback-detail{background:#f2f6f7;border-radius:14px;padding:16px;font-size:13px;color:#48616e}.rule-feedback-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px}.rule-feedback-actions>*{flex:1;min-height:46px;text-align:center}.rule-feedback-dialog .close{position:absolute;right:14px;top:14px;min-width:44px;min-height:44px}
@media(max-width:600px){.rule-feedback-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;border-radius:26px 26px 0 0;padding:28px 22px calc(22px + env(safe-area-inset-bottom));box-sizing:border-box}.rule-feedback-dialog:before{content:"";display:block;height:4px;width:38px;border-radius:5px;background:#d6e0e5;margin:-14px auto 22px}.rule-feedback h2{font-size:25px}.admin-rule-card{padding:20px;border-radius:20px}.admin-rule-card h3{font-size:21px}.admin-rule-goal{padding:16px}.admin-rule-stamps{max-width:95px}.rule-feedback-actions{flex-direction:column}}
.rule-feedback-headline{display:block;color:#185a3c;font-size:23px;line-height:1.3;letter-spacing:-.5px;margin:18px 0 12px}

/* Student app: one studio palette on every screen, compact challenge-first home. */
body.member-workspace{--ink:var(--sr-text);--muted:var(--sr-muted);--line:var(--sr-line);--surface:var(--sr-panel);--green:var(--sr-lime);--positive:var(--sr-soft);background:var(--sr-bg);color:var(--sr-text);color-scheme:dark}
body.member-workspace .workspace-bar,body.member-workspace .bottom-nav,body.member-workspace .sidebar{background:var(--sr-panel);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace .workspace-fitnity-brand img{filter:brightness(0) invert(1)}
body.member-workspace .workspace-bar .menu-toggle{background:var(--sr-soft);border-color:var(--sr-line);color:var(--sr-text)}
body.member-workspace .public-link,body.member-workspace .muted,body.member-workspace .tiny{color:var(--sr-muted)}
body.member-workspace .page-title h1,body.member-workspace .panel h2,body.member-workspace .panel h3{color:var(--sr-text)}
body.member-workspace .page-title .eyebrow{color:var(--sr-lime)}
body.member-workspace .panel,body.member-workspace .wallet-panel,body.member-workspace .install-panel,body.member-workspace .visit-location-card{background:var(--sr-panel);border-color:var(--sr-line);color:var(--sr-text);border-radius:22px}
body.member-workspace .wallet-panel p,body.member-workspace .install-panel p,body.member-workspace .wallet-heading small{color:var(--sr-muted)}
body.member-workspace .wallet-icon,body.member-workspace .install-icon,body.member-workspace .avatar.light{background:var(--sr-soft);color:var(--sr-lime)}
body.member-workspace .notice,body.member-workspace .pill,body.member-workspace .wallet-status{background:var(--sr-soft);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace main button,body.member-workspace main .button{background:var(--sr-button);color:var(--sr-on-button);border-color:var(--sr-button)}
body.member-workspace main button.secondary,body.member-workspace main .button.secondary{background:var(--sr-panel);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace main button:disabled{opacity:.55}
body.member-workspace input,body.member-workspace select,body.member-workspace textarea{background:var(--sr-bg);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace input::placeholder{color:var(--sr-muted)}
body.member-workspace label,body.member-workspace dt,body.member-workspace dd{color:var(--sr-text)}
body.member-workspace .table-wrap,body.member-workspace th,body.member-workspace td{background:var(--sr-panel);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace .bottom-nav a,body.member-workspace .bottom-nav button{color:var(--sr-muted)}
body.member-workspace .bottom-nav a.selected,body.member-workspace .bottom-nav button.selected,body.member-workspace .sidebar nav a.selected{background:var(--sr-soft);color:var(--sr-lime)}
body.member-workspace .bottom-nav .bottom-primary{color:var(--sr-lime)}
body.member-workspace .bottom-nav .bottom-primary .icon{background:var(--sr-button);color:var(--sr-on-button);border-color:var(--sr-panel)}
body.member-workspace dialog{background:var(--sr-panel);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace dialog h2,body.member-workspace dialog h3{color:var(--sr-text)}
body.member-workspace dialog .close{background:var(--sr-soft);color:var(--sr-text)}
body.member-workspace dialog .secondary{background:var(--sr-soft);color:var(--sr-text);border-color:var(--sr-line)}
body.member-workspace .qr{background:#fff;color:#111;color-scheme:light}
body.member-workspace .member-home-heading{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.member-workspace .sr-card{padding:12px 21px 18px;text-align:left}
body.member-workspace .sr-card header{text-align:left;margin:0 0 13px;padding:0;min-height:0}
body.member-workspace .sr-card .sr-eyebrow{font-size:10px;margin:0 0 5px;letter-spacing:1.2px}
body.member-workspace .sr-card h2{font-size:21px;line-height:1.2;letter-spacing:-.4px;margin:0;text-transform:none}
body.member-workspace .sr-hero{padding:18px;margin-bottom:14px}
body.member-workspace .sr-number{font-size:45px;margin:13px 0}
body.member-workspace .sr-stamps{margin:16px 0 12px}
body.member-workspace .sr-reward{padding:0 0 14px}
body.member-workspace .sr-note{padding-top:13px}
body.member-workspace .sr-action{margin-top:16px}
body.member-workspace .sr-details{margin-top:7px}
body.member-workspace .sr-picker{margin-bottom:8px}
@media(max-width:600px){body.member-workspace .sr-card{padding:8px 4px 18px}body.member-workspace .workspace-bar{min-height:60px}body.member-workspace .page-title{margin-bottom:16px}body.member-workspace .sr-grid{gap:18px}body.member-workspace .sr-hero{border-radius:20px}body.member-workspace .member-card-home{color:var(--sr-text)}}
body.member-workspace .visit-ready,body.member-workspace .visit-result{background:var(--sr-soft);border-color:var(--sr-line);color:var(--sr-text)}
body.member-workspace .visit-ready .eyebrow{color:var(--sr-lime)}
body.member-workspace .visit-ready-icon,body.member-workspace .visit-result .result-icon{background:var(--sr-button);color:var(--sr-on-button)}
body.member-workspace .coupon-header{background:var(--sr-bg);color:var(--sr-text)}
body.member-workspace .coupon-header p{color:var(--sr-muted)}
body.member-workspace .member-card-home .digital-card{background:linear-gradient(125deg,var(--sr-panel),var(--sr-bg));color:var(--sr-text);border:1px solid var(--sr-line)}
body.member-workspace .member-card-home .digital-card .pill{background:var(--sr-soft);color:var(--sr-text)}
body.member-workspace .install-panel h3,body.member-workspace .wallet-panel h3{color:var(--sr-text)}
body.member-workspace .sidebar nav a{color:var(--sr-muted)}
body.member-workspace .sidebar-bottom,body.member-workspace .studio-switch{border-color:var(--sr-line)}
body.member-workspace .sidebar-bottom .text-button{color:var(--sr-muted)}

/* Student challenges: one viewport-sized slide, native horizontal swipe. */
body.student-rules-home .student-rules{max-width:700px;margin:0 auto;min-width:0}
body.student-rules-home .sr-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 6px;color:var(--sr-text)}
body.student-rules-home .sr-gallery-controls button{width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--sr-line);border-radius:14px;background:var(--sr-panel);color:var(--sr-text);font-size:27px;line-height:1}
body.student-rules-home .sr-gallery-controls button:disabled{opacity:.3}
body.student-rules-home .sr-gallery-controls>span{text-align:center;font-size:12px;line-height:1.4}
body.student-rules-home .sr-gallery-controls small{display:block;color:var(--sr-muted);font-size:10px}
body.student-rules-home .sr-gallery-track{display:flex;gap:14px;align-items:stretch;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;height:var(--sr-gallery-height,calc(100dvh - 205px));min-height:180px;max-width:100%;position:relative}
body.student-rules-home .sr-gallery-track::-webkit-scrollbar{display:none}
body.student-rules-home .sr-gallery-track>.sr-card{flex:0 0 100%;width:100%;max-width:none;height:100%;margin:0;padding:8px 6px 10px;scroll-snap-align:start;scroll-snap-stop:always;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:thin;display:flex;flex-direction:column;gap:0}
body.student-rules-home .sr-card header{margin-bottom:10px;flex-shrink:0}
body.student-rules-home .sr-card h2{font-size:20px}
body.student-rules-home .sr-hero{padding:14px 16px;margin-bottom:12px;flex-shrink:0}
body.student-rules-home .sr-ring-row{margin:12px 0;gap:16px;justify-content:center}
body.student-rules-home .sr-ring{width:86px;height:86px}
body.student-rules-home .sr-ring>div{width:70px;height:70px}
body.student-rules-home .sr-ring strong{font-size:25px}
body.student-rules-home .sr-ring-copy strong{font-size:23px}
body.student-rules-home .sr-calendar{margin:9px 0 7px;gap:3px}
body.student-rules-home .sr-calendar>span{min-height:22px;font-size:11px}
body.student-rules-home .sr-calendar .sr-weekday{min-height:15px;font-size:10px}
body.student-rules-home .sr-stamps{grid-template-columns:repeat(5,minmax(0,46px));justify-content:center;margin:14px 0 12px}
body.student-rules-home .sr-number{text-align:center;margin:12px 0;font-size:43px}
body.student-rules-home .sr-podium{height:86px;margin:12px 0}
body.student-rules-home .sr-place{height:64px}.student-rules-home .sr-place-1{height:83px}.student-rules-home .sr-place-3{height:50px}
body.student-rules-home .sr-progress-label{margin-top:12px}
body.student-rules-home .sr-message{margin-top:10px;padding:10px}
body.student-rules-home .sr-reward{padding-bottom:10px;gap:10px;flex-shrink:0}
body.student-rules-home .sr-reward strong{font-size:14px;line-height:1.35}
body.student-rules-home .sr-gift{width:35px;height:35px;border-radius:11px}
body.student-rules-home .sr-note{padding-top:10px;font-size:11px;line-height:1.5;flex-shrink:0}
body.student-rules-home .sr-action{margin-top:12px;min-height:44px;padding:9px;font-size:13px;flex-shrink:0}
body.student-rules-home .sr-details{margin-top:4px;flex-shrink:0}
body.student-rules-home .sr-details summary{min-height:36px;padding:8px 0;font-size:11px}
@media(max-width:900px){body.student-rules-home main{padding-top:76px;padding-bottom:calc(82px + env(safe-area-inset-bottom));min-height:100dvh}body.student-rules-home .sr-gallery-track{height:var(--sr-gallery-height,calc(100dvh - 205px))}}
@media(max-height:740px){body.student-rules-home .sr-ring-row{margin:8px 0}body.student-rules-home .sr-calendar>span{min-height:19px}body.student-rules-home .sr-hero{padding:12px;margin-bottom:9px}body.student-rules-home .sr-note{font-size:11px}body.student-rules-home .sr-reward{padding-bottom:8px}body.student-rules-home .sr-card header{margin-bottom:8px}}

/* Separate rule list, creation wizard and addressable detail. */
.rule-index-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:24px}.rule-filters{display:flex;gap:6px;flex-wrap:wrap}.rule-filters a{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;text-decoration:none;color:var(--muted,#526773);min-height:44px}.rule-filters a[aria-current]{background:#e5f2ed;color:#14583f;font-weight:700}.rule-filters a span{font-size:12px;background:#fff;border:1px solid #dce5e7;border-radius:20px;padding:2px 7px}.rule-index-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:18px;align-items:stretch}.rule-summary{background:#fff;border:1px solid #dce5e7;border-radius:22px;padding:24px;display:flex;flex-direction:column;min-width:0}.rule-summary h2{font-size:23px;line-height:1.2;margin:18px 0 6px;overflow-wrap:anywhere}.rule-summary h2 a{color:inherit;text-decoration:none}.rule-summary h2 a:hover{text-decoration:underline}.rule-summary-period{font-size:14px;color:#627783;margin:0 0 20px;text-transform:capitalize}.rule-summary-goal{display:grid;gap:4px;background:#f3f6f7;border-radius:14px;padding:17px}.rule-summary-goal strong{font-size:25px;line-height:1.2;letter-spacing:-.6px}.rule-summary-goal span{font-size:13px;color:#526773}.rule-summary-prize{padding:20px 0;flex:1;overflow-wrap:anywhere}.rule-summary-prize small{font-size:10px;letter-spacing:1.5px;color:#627783}.rule-summary-prize p{font-size:17px;font-weight:650;line-height:1.4;margin:8px 0 0}.rule-summary footer{border-top:1px solid #e1e8eb;padding-top:16px;display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap;font-size:12px}.rule-summary footer a{font-weight:700;color:#14583f;min-height:44px;display:inline-flex;align-items:center}.rule-summary footer>span{color:#526773}.rule-back{display:inline-flex;min-height:44px;align-items:center;margin-bottom:14px;font-weight:600}.rule-create-page{max-width:960px;margin:0 auto;padding:clamp(18px,3vw,36px)}.rule-detail-page{max-width:800px;margin:0 auto}.rule-detail-page .admin-rule-card{padding:clamp(20px,3vw,32px)}.rule-detail-page .admin-rule-goal{padding:22px}.rule-detail-page .admin-rule-goal strong{font-size:44px}.rule-detail-page .admin-rule-stamps span{display:grid;place-items:center}.rule-detail-page .admin-rule-podium span{display:flex;justify-content:center;align-items:flex-start;padding-top:5px}.rule-example-disclosure{border:1px solid #dce5e7;border-radius:14px;padding:14px;margin:18px 0}.rule-example-disclosure summary{cursor:pointer;font-weight:600;min-height:28px}.rule-create-page .rule-example{margin:16px 0 0;padding:16px}.rule-create-page .rule-example-scene{padding:16px;gap:12px}.rule-create-page .rule-example-scene>strong{font-size:17px}.rule-create-page .rule-example-scene small{font-size:13px}.rule-create-page .rule-example-stamps{display:flex;flex-wrap:wrap;gap:6px}.rule-create-page .rule-example-stamps span{width:32px;height:32px;font-size:18px}.rule-index-empty{grid-column:1/-1}.rule-index a:focus-visible,.rule-back:focus-visible{outline:3px solid #197757;outline-offset:4px}@media(max-width:600px){.rule-index-toolbar>.button{width:100%;justify-content:center;order:-1}.rule-filters{width:100%;gap:3px}.rule-filters a{padding:10px 8px;font-size:12px;gap:4px}.rule-summary{padding:20px}.rule-detail-page .admin-rule-goal strong{font-size:38px}.rule-create-page .rule-example-scenes{grid-template-columns:1fr}.rule-create-page .rule-example-scene{min-height:0}}
.rule-create-page>h2.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Rule controls: component actions do not inherit the global workspace footer. */
.rule-summary-actions{width:100%;margin-top:auto;padding-top:16px;border-top:1px solid #e1e8eb;display:grid;gap:12px;text-align:left;letter-spacing:normal}.rule-summary-actions>span{font-size:13px;color:#526773}.rule-summary-actions>.button{display:flex;width:100%;justify-content:center;align-items:center;min-height:46px;white-space:normal;text-align:center;font-size:14px;letter-spacing:normal}.rule-index .rule-summary{padding:22px;gap:0}.rule-index .rule-summary h2{margin-top:14px}.rule-summary-prize{padding:16px 0}.rule-config{margin-top:24px;border:1px solid #dce5e7;background:white;border-radius:18px;padding:20px}.rule-config>summary{font-weight:700;cursor:pointer;min-height:30px}.rule-config .rule-detail-page{margin-top:20px}.rc-dashboard{--rc-accent:#008967;--rc-light:#e5f5ef;color:#162740}.rc-hero{padding:28px;border-radius:24px;background:#123d36;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:24px}.rc-hero .eyebrow{color:#b8ddce;font-size:11px}.rc-hero h2{font-size:30px;line-height:1.1;margin:12px 0 22px;overflow-wrap:anywhere}.rc-reward{display:grid;gap:6px;margin:0}.rc-reward span{font-size:12px;color:#b8ddce}.rc-reward strong{font-size:18px;overflow-wrap:anywhere}.rc-goal{display:grid;gap:6px;min-width:160px;text-align:center;padding:20px;border-radius:18px;background:#ffffff0d}.rc-goal>strong{font-size:48px;line-height:1;color:#bdec94}.rc-goal span,.rc-goal small{font-size:13px}.rc-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0}.rc-metrics>div{display:grid;gap:6px;background:white;border:1px solid #dce5e7;border-radius:16px;padding:18px}.rc-metrics strong{font-size:30px;line-height:1}.rc-metrics span{font-size:12px;color:#526773}.rc-explanation{font-size:13px;line-height:1.6;color:#526773;background:#eaf3ef;padding:16px;border-radius:14px}.rc-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:28px 0 18px}.rc-toolbar>div{margin-right:auto}.rc-toolbar h3{margin:0;font-size:23px}.rc-toolbar p{font-size:12px;color:#526773;margin:6px 0 0}.rc-toolbar .button,.rc-toolbar button{font-size:13px;min-height:44px}.rc-filters{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:16px}.rc-filters label{font-size:13px}.rc-count{font-size:12px;color:#526773}.rc-rows{display:grid;gap:10px}.rc-row{display:grid;grid-template-columns:minmax(140px,1fr) minmax(180px,1.5fr) minmax(130px,.75fr);gap:24px;align-items:center;background:white;border:1px solid #dce5e7;border-radius:18px;padding:20px}.rc-student{display:grid;gap:6px;overflow-wrap:anywhere}.rc-student small,.rc-progress small,.rc-earned small{font-size:12px;color:#526773}.rc-progress{display:grid;gap:8px}.rc-stamps{display:flex;gap:5px;flex-wrap:wrap}.rc-stamps span{width:26px;height:26px;display:grid;place-items:center;border:1px dashed #abc6bc;border-radius:50%;font-size:11px;color:#627783}.rc-stamps .done{background:var(--rc-accent);border-style:solid;border-color:var(--rc-accent);color:white}.rc-bar{height:12px;border-radius:20px;background:#e6efeb;overflow:hidden}.rc-bar>span{display:block;height:100%;background:var(--rc-accent);border-radius:inherit}.rc-progress-ring{display:flex;align-items:center;gap:16px}.rc-progress-ring>span:last-child{display:grid;gap:6px;font-size:14px}.rc-ring{width:66px;height:66px;flex-shrink:0;border-radius:50%;background:conic-gradient(var(--rc-accent) var(--fill),#e6efeb 0);display:grid;place-items:center;position:relative}.rc-ring:before{content:'';position:absolute;inset:7px;border-radius:50%;background:white}.rc-ring b{position:relative;font-size:14px}.rc-earned{display:grid;gap:5px;font-size:12px}.rc-earned strong{color:#10764e}.rc-empty{padding:28px;border:1px dashed #b9cbc5;border-radius:16px;text-align:center;color:#526773}@media(max-width:750px){.rc-hero{padding:20px;gap:16px}.rc-hero h2{font-size:24px}.rc-goal{min-width:100px;padding:12px}.rc-goal>strong{font-size:36px}.rc-metrics{grid-template-columns:repeat(2,1fr)}.rc-metrics>div:last-child{grid-column:1/-1}.rc-row{grid-template-columns:1fr;gap:14px}.rc-earned{padding-top:12px;border-top:1px solid #e6efeb}.rc-filters{grid-template-columns:1fr}.rc-toolbar>.button,.rc-toolbar>button{flex:1}.rc-toolbar>div{width:100%}}
.rule-summary-goal{position:relative;min-height:116px;padding-right:100px;align-content:center}.rule-summary-goal>strong{font-size:23px}.rule-list-stamps{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:grid;grid-template-columns:repeat(3,21px);gap:4px}.rule-list-stamps i{display:grid;place-items:center;width:21px;height:21px;border:1px dashed #8eafa2;border-radius:50%;font-size:10px;font-style:normal;color:#517e6d}.rule-list-ring{position:absolute;right:18px;top:50%;transform:translateY(-50%);width:62px;height:62px;border-radius:50%;background:conic-gradient(#168768 var(--fill),#dce9e4 0)}.rule-list-ring:after{content:'';position:absolute;inset:8px;background:#f3f6f7;border-radius:50%}.rule-list-podium{position:absolute;right:14px;top:50%;transform:translateY(-50%);height:62px;display:flex;gap:4px;align-items:flex-end}.rule-list-podium i{width:20px;height:38px;display:flex;justify-content:center;padding-top:4px;font-size:11px;font-style:normal;color:#276552;background:#c5dfd4;border-radius:4px 4px 0 0}.rule-list-podium i:nth-child(2){height:58px;background:#168768;color:white}.rule-list-podium i:nth-child(3){height:28px}

/* Keep calendar days circular at every viewport height; scroll instead of flattening weeks. */
body.student-rules-home .sr-calendar{grid-template-rows:20px;grid-auto-rows:auto;align-items:center;align-content:start;row-gap:5px;column-gap:3px;margin:12px 0 10px}
body.student-rules-home .sr-calendar>span:not(.sr-weekday){inline-size:min(100%,34px);block-size:auto;min-height:0;aspect-ratio:1;justify-self:center;font-size:12px;line-height:1;flex-shrink:0}
body.student-rules-home .sr-calendar>.sr-weekday{min-height:20px;line-height:1;font-size:10px;align-self:center}
body.student-rules-home .sr-calendar .sr-attended{border-radius:50%;gap:2px}
body.student-rules-home .sr-calendar small{font-size:9px;line-height:1}
body.student-rules-home .sr-legend{line-height:1.4;row-gap:6px}

/* Compact student chrome and move attendance totals out of the calendar. */
body.student-rules-home .sr-card header.sr-attendance-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 14px}
.sr-attendance-heading .sr-title{min-width:0}
.sr-attendance-summary{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;white-space:nowrap}
.sr-attendance-summary strong{font-size:28px;line-height:1.1;font-weight:650;letter-spacing:-.7px;color:var(--sr-lime)}
.sr-attendance-summary span{font-size:11px;line-height:1.5;color:var(--sr-muted)}
.sr-attendance-goal{grid-column:1/-1;margin:0;font-size:11px;line-height:1.5;color:var(--sr-muted)}
body.student-rules-home .sr-gallery-controls{gap:6px;margin-bottom:2px}
body.student-rules-home .sr-gallery-controls button{font-size:20px;border:0;border-radius:10px;background:transparent;width:44px;height:44px;min-height:44px}
body.student-rules-home .sr-gallery-controls>span{font-size:11px;line-height:1.25}
body.student-rules-home .sr-gallery-controls small{font-size:10px}
@media(max-width:900px){
 body.member-workspace .workspace-bar{height:52px;min-height:52px;padding:0 12px}
 body.member-workspace .workspace-bar .menu-toggle{width:44px;height:44px;min-height:44px;margin-right:6px;padding:10px}
 body.member-workspace .workspace-fitnity-brand img{width:66px}
 body.member-workspace .workspace-brand-pair{gap:6px}
 body.member-workspace .workspace-studio-brand img,body.member-workspace .workspace-studio-initials{width:25px;height:25px}
 body.member-workspace .bottom-nav{padding:3px 6px calc(3px + env(safe-area-inset-bottom));align-items:center}
 body.member-workspace .bottom-nav a,body.member-workspace .bottom-nav button{min-height:46px;padding:3px 2px;gap:3px;font-size:10px}
 body.member-workspace .bottom-nav .icon{width:20px;height:20px}
 body.member-workspace .bottom-nav .bottom-primary{margin-top:0;min-height:46px;align-self:center}
 body.member-workspace .bottom-nav .bottom-primary .icon{width:20px;height:20px;padding:0;border:0;border-radius:5px;box-shadow:none}
 body.member-workspace.workspace main,body.member-workspace.workspace:not(:has(#demo:not(:empty))) main{padding-top:60px;padding-bottom:calc(64px + env(safe-area-inset-bottom))}
 body.student-rules-home .sr-card h2{font-size:18px}
 body.student-rules-home .sr-hero{padding:12px;margin-bottom:10px}
}

/* Share spare height across each challenge graphic; never squash its contents. */
body.student-rules-home .sr-card>.sr-hero{flex-grow:1;flex-shrink:0;display:flex;flex-direction:column;justify-content:space-between}
body.student-rules-home .sr-hero>*{flex-shrink:0}
body.student-rules-home .sr-hero>.sr-overline:first-child{margin-bottom:8px}
body.student-rules-home .sr-hero>.sr-stamps{width:100%;align-self:center}
body.student-rules-home .sr-hero>.sr-calendar{width:100%}
body.student-rules-home .sr-podium .sr-place-1{height:83px}
body.student-rules-home .sr-podium .sr-place-2{height:64px}
body.student-rules-home .sr-podium .sr-place-3{height:50px}
body.student-rules-home .sr-card>.sr-details summary{min-height:44px}

/* Brand lockup: a quiet divider, natural logo proportions and a compact product label. */
body.member-workspace .workspace-brand-pair{gap:12px;flex:1;min-width:0;align-items:center}
body.member-workspace .workspace-fitnity-brand{flex:0 0 auto;flex-direction:column;align-items:flex-start;justify-content:center;gap:2px}
body.member-workspace .workspace-fitnity-brand img{width:78px;height:auto;max-height:23px;object-fit:contain;object-position:left center;flex-shrink:0}
body.member-workspace .workspace-fitnity-brand strong{font-size:8px;line-height:1;letter-spacing:2.5px;font-weight:600}
body.member-workspace .workspace-brand-divider{display:block;flex:0 0 1px;width:1px;height:27px;background:var(--sr-line);font-size:0}
body.member-workspace .workspace-studio-brand{flex:1;min-width:0;gap:7px}
body.member-workspace .workspace-studio-brand img{display:block;width:48px;height:32px;max-width:48px;object-fit:contain;flex:0 0 48px;background:transparent;border-radius:0}
body.member-workspace .workspace-studio-initials{width:32px;height:32px;background:var(--sr-soft);color:var(--sr-lime)}
body.member-workspace .workspace-studio-brand strong{font-size:12px;line-height:1.2;letter-spacing:0}
body.member-workspace .workspace-bar .menu-toggle{flex-shrink:0}
@media(max-width:360px){body.member-workspace .workspace-brand-pair{gap:8px}body.member-workspace .workspace-fitnity-brand img{width:70px}body.member-workspace .workspace-studio-brand{gap:5px}body.member-workspace .workspace-studio-brand img{width:36px;max-width:36px;flex-basis:36px}}

/* Generated reception QR takes priority over setup on mobile. */
dialog.challenge-presentation{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;border:0;border-radius:0;background:#fff;color:#14263e;padding:calc(12px + env(safe-area-inset-top)) 18px calc(12px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
.challenge-presentation[open]{display:flex;flex-direction:column;gap:12px}
.challenge-presentation>.close{position:static;align-self:flex-end;flex-shrink:0;min-width:72px;min-height:44px;padding:8px 14px;font-size:14px;border-radius:12px}
.challenge-presentation .challenge-presentation-heading{position:static;background:none;border:0;padding:0;text-align:center;flex-shrink:0}
.challenge-presentation-heading .eyebrow{margin:0 0 4px;font-size:11px;overflow-wrap:anywhere}
.challenge-presentation-heading h2{margin:0;font-size:20px;line-height:1.2}
.challenge-presentation [data-presented-qr]{flex:1;display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:0}
.challenge-presentation .qr-ready{order:0;margin:0;gap:8px}
.challenge-presentation .qr-ready>.eyebrow{display:none}
.challenge-presentation .qr-ready .qr{display:block;width:min(78vw,calc(100dvh - 300px),420px);min-width:160px;max-width:100%;height:auto;aspect-ratio:1;object-fit:contain;background:#fff;margin:0;padding:0;border:0;border-radius:0}
.challenge-presentation .qr-ready .code{font-size:clamp(24px,7vw,36px);letter-spacing:.12em;line-height:1.25}
.challenge-presentation .qr-ready .muted{font-size:12px;line-height:1.4;max-width:330px}
.challenge-presentation .countdown{order:1;width:min(100%,360px);box-sizing:border-box;align-self:center;margin:0;padding:10px 12px;flex-shrink:0}
.challenge-presentation .qr-loading,.challenge-presentation .qr-error,.challenge-presentation .qr-expired{margin:0;min-height:180px;flex-shrink:0}
@media(max-height:460px) and (orientation:landscape){.challenge-presentation[open]{gap:4px}.challenge-presentation .challenge-presentation-heading{display:none}.challenge-presentation [data-presented-qr]{display:grid;grid-template-columns:1fr 1fr;align-items:center}.challenge-presentation .qr-ready{grid-template-columns:auto 1fr;grid-column:1/-1;column-gap:20px}.challenge-presentation .qr-ready .qr{grid-row:1/3;width:min(45vw,calc(100dvh - 150px))}.challenge-presentation .countdown{grid-column:1/-1}}

/* Persistent attendance receipt, only after the server confirms the result. */
dialog.visit-celebration{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;border:0;border-radius:0;background:var(--sr-bg,#152635);color:var(--sr-text,#fff);padding:calc(12px + env(safe-area-inset-top)) 22px calc(18px + env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain}
.visit-celebration[open]{display:flex;flex-direction:column}
.visit-celebration>.close{position:static;align-self:flex-end;flex-shrink:0;width:44px;height:44px;min-height:44px;font-size:25px}
.visit-celebration-content{width:min(100%,460px);margin:auto;display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 0;flex-shrink:0}
.visit-celebration-mark{display:grid;place-items:center;width:112px;height:112px;border-radius:50%;background:var(--sr-lime,#b8ef63);color:var(--sr-on-accent,#152635);margin-bottom:26px;box-shadow:0 0 0 12px var(--sr-soft,#284039)}
.visit-celebration-mark .icon{width:62px;height:62px;stroke-width:2.5}
.visit-celebration .eyebrow{color:var(--sr-lime,#b8ef63);font-size:11px;letter-spacing:1.4px;margin:0 0 12px}
.visit-celebration h2{font-size:clamp(26px,7vw,36px);line-height:1.13;letter-spacing:-.7px;margin:0 0 16px;overflow-wrap:anywhere}
.visit-celebration-message{font-size:15px;line-height:1.5;color:var(--sr-muted,#b8c6cc);margin:0 0 22px}
.visit-celebration-receipt{display:grid;gap:5px;width:100%;padding:16px;box-sizing:border-box;border-radius:16px;background:var(--sr-panel,#243747);font-size:13px;overflow-wrap:anywhere}
.visit-celebration-receipt span{color:var(--sr-muted,#b8c6cc)}
.visit-celebration-notice{font-size:12px;line-height:1.4;color:var(--sr-muted,#b8c6cc)}
.visit-celebration-notice:empty{display:none}
.visit-celebration-actions{display:grid;gap:10px;width:100%;margin-top:22px}
.visit-celebration-actions>*{min-height:48px;display:flex;align-items:center;justify-content:center;text-decoration:none;border-radius:13px;box-sizing:border-box}
.visit-celebration-actions>a{background:var(--sr-button,#b8ef63);color:var(--sr-on-button,#152635)}
.admin-visit-result{--sr-bg:#102d27;--sr-panel:#214239;--sr-text:#fff;--sr-muted:#d1e2d8;--sr-lime:#c7ef83;--sr-soft:#315247;--sr-on-accent:#173629}
.admin-visit-result h2{color:#fff}
.admin-visit-result .visit-celebration-actions>button{border:0;background:#c7ef83;color:#173629;font-size:16px;font-weight:700}
.visit-celebration .is-new .visit-celebration-mark{animation:attendance-celebrate .65s ease-out both}
@keyframes attendance-celebrate{0%{opacity:0;transform:scale(.6) rotate(-12deg)}65%{opacity:1;transform:scale(1.08) rotate(3deg)}100%{opacity:1;transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){.visit-celebration .is-new .visit-celebration-mark{animation:none}}
@media(max-height:650px){.visit-celebration-content{padding:8px 0}.visit-celebration-mark{width:76px;height:76px;margin-bottom:18px}.visit-celebration-mark .icon{width:44px;height:44px}.visit-celebration-message{margin-bottom:12px}.visit-celebration-actions{margin-top:14px}}

.visit-celebration-actions>[data-confirm-visit]{background:var(--sr-button,#b8ef63);color:var(--sr-on-button,#152635);border:0;font-weight:650;font-size:16px}
.visit-celebration [data-confirm-error]:empty{display:none}

.member-approval{width:min(100% - 32px,520px);box-sizing:border-box;margin:clamp(24px,8vh,80px) auto;padding:clamp(24px,6vw,42px);border:1px solid #dce4e0;border-radius:22px;background:#fff;color:#182c32;box-shadow:0 14px 40px #233e3010;text-align:center}
.member-approval-icon{width:72px;height:72px;margin:0 auto 20px;display:grid;place-items:center;border-radius:50%;background:#e4efe8;color:#244e3e}
.member-approval-icon .icon{width:36px;height:36px}
.member-approval .eyebrow{color:#52665b;font-size:11px}
.member-approval h1{font-size:clamp(27px,7vw,36px);line-height:1.15;margin:12px 0 18px}
.member-approval>p:not(.eyebrow){line-height:1.55}
.member-approval-details{display:grid;gap:5px;padding:16px;margin:24px 0;border-radius:14px;background:#f0f5f1;overflow-wrap:anywhere}
.member-approval-details span,.member-approval-help{color:#52665b}
.member-approval-actions{display:grid;gap:10px;margin-top:22px}
.member-approval-actions>*{min-height:48px;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
body.member-approval-view{background:#eaf2ed}
body.member-approval-view>.topbar,body.member-approval-view>#workspace-nav,body.member-approval-view>footer{display:none}
body.member-approval-view #app{max-width:none;min-height:100dvh;padding:16px;box-sizing:border-box;display:grid;place-items:center}
.member-approval-pending{display:flex;flex-direction:column;width:min(100%,480px);min-height:min(760px,calc(100dvh - 32px));margin:0;padding:24px 28px;border-color:#d8e5dc;border-radius:28px;box-shadow:0 24px 70px #173e3320}
.member-approval-header{display:flex;align-items:center;justify-content:space-between;gap:16px;text-align:left;font-size:12px;font-weight:650;color:#52665b}
.member-approval-header img{width:94px;max-height:34px;object-fit:contain;object-position:left center}
.member-approval-header span{max-width:55%;overflow-wrap:anywhere;text-align:right}
.member-approval-main{display:flex;flex-direction:column;align-items:center;flex:1;justify-content:center;padding:22px 0 12px}
.member-approval-pending .eyebrow{margin:0 0 10px;letter-spacing:.16em;color:#24654b}
.member-approval-pending h1{margin:0 0 10px;font-size:clamp(30px,7vw,38px);letter-spacing:-.035em}
.member-approval-lead{max-width:340px;margin:0;color:#4b6257;font-size:14px;line-height:1.5}
.member-approval-art{position:relative;display:grid;place-items:center;width:186px;height:186px;margin:25px 0 20px}
.member-approval-ring{position:relative;display:grid;place-items:center;width:100%;height:100%;border-radius:50%;background:conic-gradient(#276e52 0 74%,#d5eada 74% 100%);box-shadow:0 0 0 8px #f2f8f3}
.member-approval-ring:before{content:"";position:absolute;inset:14px;border-radius:50%;background:#fff}
.member-approval-ring .icon{position:relative;width:80px;height:80px;color:#247753;stroke-width:2.5}
.member-approval-wait{position:absolute;right:-1px;bottom:2px;display:grid;place-items:center;width:48px;height:48px;border:5px solid #fff;border-radius:50%;background:#eac36a;color:#4c390f;box-shadow:0 3px 12px #173e3320}
.member-approval-wait .icon{width:22px;height:22px}
.member-approval-state{max-width:370px}
.member-approval-pill{display:inline-block;padding:7px 11px;border-radius:999px;background:#fff2d6;color:#71510e;font-size:10px;letter-spacing:.1em;font-weight:800}
.member-approval-state h2{margin:12px 0 8px;color:#182c32;font-size:21px;line-height:1.2}
.member-approval-state p{margin:0;color:#52665b;font-size:13px;line-height:1.5}
.member-approval-timeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;margin:26px 0 0;padding:0;list-style:none}
.member-approval-timeline li{display:grid;justify-items:center;align-content:start;gap:7px;color:#76847b;font-size:11px}
.member-approval-timeline li span{display:grid;place-items:center;width:28px;height:28px;border:1px solid #c9d7cf;border-radius:50%;background:#fff;font-size:12px;font-weight:700}
.member-approval-timeline li .icon{width:16px;height:16px}
.member-approval-timeline .is-complete{color:#21654b}
.member-approval-timeline .is-complete span{background:#e4f3e9;border-color:#a9d1b7}
.member-approval-timeline .is-current{color:#71510e}
.member-approval-timeline .is-current span{background:#fff2d6;border-color:#e5c476}
.member-approval-footer{display:flex;flex-direction:column;align-items:center;width:100%;border-top:1px solid #e3ebe5;padding:15px 0 0;letter-spacing:normal}
.member-approval-footer>p:first-child{margin:0 0 12px;color:#52665b;font-size:12px}
.member-approval-footer button{width:100%;min-height:50px;border-radius:14px;background:#236f54;color:#fff;font-size:15px;font-weight:700}
.member-approval-footer a{display:inline-block;margin-top:10px;color:#24523f;font-size:13px}
.member-approval-updated{min-height:0;margin:8px 0 0;color:#4b6257;font-size:12px;line-height:1.4}
.member-approval-updated:empty{display:none}
@media(max-width:520px){body.member-approval-view #app{padding:10px}.member-approval-pending{min-height:calc(100dvh - 20px);padding:21px 20px;border-radius:24px}.member-approval-art{width:156px;height:156px;margin:20px 0 16px}.member-approval-ring .icon{width:68px;height:68px}.member-approval-state h2{font-size:20px}.member-approval-timeline{margin-top:20px}}

/* Podium medals remain recognizable independently of the studio accent. */
body.student-rules-home .sr-podium{gap:6px;border-bottom:2px solid var(--sr-podium-base,#dce4ed);padding:0 6px 3px;height:90px;align-self:center;width:min(100%,290px);box-sizing:border-box}
body.student-rules-home .sr-podium .sr-place{width:82px;max-width:32%;flex-shrink:1;border:1px solid #ffffff99;border-bottom:0;border-radius:8px 8px 0 0;color:var(--sr-podium-ink,#172331);gap:4px;box-shadow:inset 0 3px 0 #ffffff66,inset -4px 0 0 #00000012}
body.student-rules-home .sr-podium .sr-place-1{background:var(--sr-podium-first,#f2d28c);height:83px}
body.student-rules-home .sr-podium .sr-place-2{background:var(--sr-podium-second,#dce4ed);height:64px}
body.student-rules-home .sr-podium .sr-place-3{background:var(--sr-podium-third,#dba77e);height:50px}
body.student-rules-home .sr-podium .sr-place strong{font-size:29px;line-height:1;font-weight:750;color:var(--sr-podium-ink,#172331)}
body.student-rules-home .sr-podium .sr-place small{font-size:9px;line-height:1;letter-spacing:.5px;font-weight:650;color:var(--sr-podium-ink,#172331)}
body.student-rules-home .sr-podium .sr-place .icon{display:none}

/* The active reception poster overrides the card-sized print layout. */
@media print{body:has(>.printed-reception-dialog[open])>*:not(.printed-reception-dialog){display:none!important}body>dialog.printed-reception-dialog[open]{position:static!important;display:block!important;width:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;box-shadow:none;overflow:visible}dialog.printed-reception-dialog .close,dialog.printed-reception-dialog [data-printed-status],dialog.printed-reception-dialog .printed-reception-content>.muted{display:none!important}.printed-reception-poster{margin:0 auto;width:160mm;max-width:100%;border:2px solid #173e33;break-inside:avoid}.printed-reception-poster img{width:95mm;max-width:100%}}

/* Confirm activation and explain the actual notification state to studio staff. */
.member-activation-dialog{max-width:490px;padding:34px;border:0;border-radius:26px;background:#fff;color:#172b35}
.member-activation-dialog .close{position:absolute;right:14px;top:14px;min-width:44px;min-height:44px}
.member-activation-body{padding-top:4px}
.member-activation-icon{display:grid;place-items:center;width:66px;height:66px;margin-bottom:20px;border-radius:21px;background:#e8f4ed;color:#176848}
.member-activation-icon .icon{width:33px;height:33px}
.member-activation-icon.is-success{background:#dff4e8;color:#08734b}
.member-activation-body .eyebrow{font-size:11px;letter-spacing:1.6px;color:#436657}
.member-activation-body h2{margin:8px 0 12px;font-size:clamp(25px,4vw,31px);line-height:1.15;letter-spacing:-.7px;color:#142b37}
.member-activation-body>p:not(.eyebrow){line-height:1.55}
.member-activation-person{display:flex;align-items:center;gap:13px;margin:24px 0 18px;padding:15px;border:1px solid #d9e8e0;border-radius:17px;background:#f7fbf8}
.member-activation-person .avatar{flex:none}
.member-activation-person strong,.member-activation-person small{display:block;overflow-wrap:anywhere}
.member-activation-person small{margin-top:3px;color:#5d7076}
.member-activation-mail{display:flex;align-items:flex-start;gap:11px;margin:0;padding:15px;border-radius:14px;background:#edf4f6;color:#36525e;font-size:14px}
.member-activation-mail .icon{flex:none;width:20px;height:20px}
.member-activation-mail.is-result{margin-top:22px;background:#eaf6ee;color:#245540}
.member-activation-error{margin-top:16px;color:#a32d2d;font-weight:600}
.member-activation-actions{display:flex;gap:10px;margin-top:25px}
.member-activation-actions button{flex:1;min-height:48px}
@media(max-width:600px){.member-activation-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;box-sizing:border-box;border-radius:26px 26px 0 0;padding:30px 22px calc(24px + env(safe-area-inset-bottom))}.member-activation-actions{flex-direction:column-reverse}}
.belonging-profile,.birthday-settings{margin-top:1.25rem}
.belonging-animal{display:flex;align-items:center;gap:1.25rem;padding:1rem;border-radius:1rem;background:#eef7f1}
.belonging-animal img{width:108px;height:108px;object-fit:contain;flex:none}
.belonging-animal strong{font-size:1.35rem}
.belonging-animal p{margin:.3rem 0}
.belonging-badges{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.75rem}
.belonging-badge{display:flex;gap:.75rem;border:1px solid #dce8df;border-radius:.8rem;padding:1rem}
.belonging-badge>span{font-size:1.5rem;color:#548c58}
.belonging-badge p{margin:.25rem 0}
.belonging-badge small{color:#52665a}
.belonging-months{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.65rem}
.belonging-months>div{display:grid;gap:.2rem;border-radius:.75rem;background:#f4f8f5;padding:.8rem}
@media(max-width:480px){.belonging-animal{align-items:flex-start}.belonging-animal img{width:76px;height:76px}}
.badge-hero{padding:clamp(1.3rem,3vw,2.5rem);border-radius:24px;background:linear-gradient(135deg,#173c35,#2f7765);color:#fff;margin-bottom:1.25rem}
.badge-hero h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:.3rem 0}.badge-hero p{max-width:68ch}.badge-hero .eyebrow,.badge-hero small{color:#e0f3e8}.badge-hero button{background:#fff;color:#173c35}
.badge-estimates{display:flex;flex-wrap:wrap;gap:.8rem;margin:1rem 0}.badge-estimates span{display:flex;flex-direction:column;min-width:8rem;padding:.7rem 1rem;border:1px solid #ffffff66;border-radius:14px}.badge-estimates strong{font-size:1.5rem}
.badge-section{margin-bottom:1.25rem}.badge-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.85rem}.badge-tile{display:flex;gap:.75rem;align-items:flex-start;padding:1rem;border:1px solid #d9e6dc;border-radius:16px;background:#f8fbf8}.badge-tile.earned{background:#eef8ef;border-color:#8fc59d}.badge-tile.locked{opacity:.8}.badge-tile p{margin:.25rem 0 .45rem}.badge-tile small{color:#315c4a}.badge-symbol{display:grid;place-items:center;flex:none;width:2.3rem;height:2.3rem;border-radius:50%;background:#e0eedc;color:#27684e;font-size:1.3rem}.badge-tile .badge-switch{margin-left:auto;display:flex;flex-direction:column;gap:.3rem;align-items:center;font-size:.78rem;white-space:nowrap}
.badge-backfill{font-weight:600}

/* Insignias: catálogo y colección basados en las pantallas aprobadas. */
#app:has(.badge-admin) > .page-title{display:none}
.badge-workspace{--badge-ink:#101b3b;--badge-muted:#61708e;--badge-line:#dce5f1;color:var(--badge-ink)}
.badge-page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:4px 0 22px}
.badge-page-heading h2{font-size:clamp(2rem,3.4vw,3rem);letter-spacing:-.045em;line-height:1.08;margin:.25rem 0 .45rem;color:#091638}
.badge-page-heading p:not(.badge-kicker){font-size:1.03rem;color:var(--badge-muted);margin:0}
.badge-kicker{font-size:.73rem;font-weight:800;letter-spacing:.16em;color:#536985;margin:0}
.badge-client-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;border:1px solid var(--badge-line);border-radius:12px;background:#fff;padding:12px 15px;font-weight:750;box-shadow:0 3px 14px #17315d08}
.badge-client-link:hover{border-color:#8bb5d1;color:#075d92}
.badge-status{display:flex;gap:16px;align-items:center;background:linear-gradient(110deg,#e7f7f1,#effaf4);border:1px solid #bfe9d6;border-radius:16px;padding:19px 22px;margin-bottom:20px}
.badge-status-icon{display:grid;place-items:center;flex:none;width:46px;height:46px;border-radius:50%;background:#079669;color:#fff;font-size:1.3rem;font-weight:900;box-shadow:0 0 0 8px #b8e9d9}
.badge-status strong{font-size:1.05rem;color:#12644b}.badge-status p{margin:4px 0 0;color:#4d6981}
.badge-tabs{display:grid;grid-template-columns:repeat(4,1fr);padding:4px;background:#edf2f8;border:1px solid #dae4ee;border-radius:14px;gap:4px;margin-bottom:18px}
.badge-tabs button{min-width:0;min-height:44px;padding:9px;background:transparent;color:#52627e;border:none;border-radius:10px;font-weight:700;box-shadow:none}
.badge-tabs button:hover{background:#f7faff;color:#153369}.badge-tabs button.selected{background:#fff;color:#1152cf;box-shadow:0 2px 8px #25375619;position:relative}
.badge-tabs button.selected:after{content:"";position:absolute;bottom:0;left:8%;width:84%;height:2px;background:#3063ff;border-radius:2px}
.badge-admin-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);gap:18px;align-items:start}
.badge-catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.badge-option{display:flex;min-width:0;align-items:center;gap:10px;background:#fff;border:1px solid var(--badge-line);border-radius:16px;padding:15px;min-height:116px;box-shadow:0 2px 12px #20365a06}
.badge-option.selected{border-color:#75a0ff;background:#f5f9ff;box-shadow:0 0 0 1px #75a0ff}
.badge-option-main{min-width:0;min-height:0;flex:1;display:flex;align-items:center;justify-content:flex-start;gap:13px;padding:0;background:none;border:0;border-radius:0;box-shadow:none;color:inherit;text-align:left}
.badge-option-main:hover{background:none;color:inherit}.badge-option-main:focus-visible,.badge-tabs button:focus-visible,.badge-toggle input:focus-visible+.badge-toggle-track{outline:3px solid #70a1ff;outline-offset:3px}
.badge-art{display:grid;place-items:center;flex:none;width:62px;height:62px;border-radius:50%;background:#e2f5ec;color:#078563}
.badge-art svg{width:35px;height:35px}.badge-art.blue{background:#e5efff;color:#2561e6}.badge-art.violet{background:#efe7ff;color:#6935cf}.badge-art.amber{background:#fff0ce;color:#d38a00}.badge-art.coral{background:#ffede5;color:#e36937}
.badge-option-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.badge-option-copy strong{font-size:1rem;line-height:1.18;color:#101b3b}.badge-option-copy>span{color:#65728c;font-size:.87rem;line-height:1.3}.badge-option-copy small{align-self:flex-start;color:#56709a;background:#f0f4fa;border-radius:99px;padding:3px 9px;font-size:.72rem;font-weight:650}
.badge-toggle{display:inline-flex;align-items:center;gap:10px;position:relative;font-size:.88rem;font-weight:750;cursor:pointer;color:#0c6b52}.badge-toggle input{position:absolute;opacity:0;width:1px;height:1px}.badge-toggle-track{display:inline-block;width:49px;height:29px;flex:none;background:#d7dee9;border-radius:99px;position:relative;transition:background .16s}.badge-toggle-track:before{content:"";position:absolute;left:3px;top:3px;width:23px;height:23px;border-radius:50%;background:#fff;box-shadow:0 1px 4px #1b2b4b33;transition:transform .16s}.badge-toggle input:checked+.badge-toggle-track{background:#079668}.badge-toggle input:checked+.badge-toggle-track:before{transform:translateX(20px)}.badge-toggle input:disabled+.badge-toggle-track{opacity:.55;cursor:not-allowed}
.badge-recommend{grid-column:1/-1;display:flex;gap:14px;justify-content:space-between;align-items:center;background:#f0f6ff;border:1px solid #d6e5ff;border-radius:16px;padding:18px}.badge-recommend strong{color:#15417a}.badge-recommend p{margin:3px 0 0;color:#62718b;font-size:.87rem}.badge-recommend button{white-space:nowrap;background:#078c66}
.badge-detail{background:#fff;border:1px solid var(--badge-line);border-radius:18px;padding:23px;box-shadow:0 5px 25px #2236570a;position:sticky;top:15px}.badge-detail h3{font-size:1.3rem;letter-spacing:-.025em;margin:3px 0}.badge-detail h4{font-size:.94rem;margin:23px 0 5px;color:#17213f}.badge-detail>p,.badge-detail-extra>p{color:#65738e;line-height:1.45;margin:3px 0}.badge-detail-heading{display:flex;align-items:center;gap:14px;padding-bottom:18px;border-bottom:1px solid #e6edf4}.badge-detail-heading .badge-art{width:70px;height:70px}.badge-detail-heading .badge-art svg{width:40px;height:40px}.badge-detail .badge-kicker{letter-spacing:.08em;font-size:.66rem}.badge-rule-note{background:#f2f7ff;border-radius:10px;padding:10px 12px;margin-top:14px!important;font-size:.86rem}.badge-detail-extra{border-top:1px solid #e6edf4;margin-top:22px}.badge-detail-extra form{display:grid;gap:12px;margin-top:14px}.badge-detail-extra label{display:grid;gap:6px;color:#334464;font-size:.82rem;font-weight:700}.badge-detail-extra input,.badge-detail-extra textarea{width:100%;border:1px solid #d8e2ee;border-radius:9px;padding:10px;background:#fff;color:#15213f}.badge-detail-extra button{justify-self:start}.badge-form-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px}.badge-estimate-preview{display:grid;gap:4px;background:#eaf8f0;border-radius:12px;margin-top:15px;padding:13px;color:#12684a}.badge-estimate-preview span{font-weight:700}.badge-estimate-preview small{color:#42685d}.badge-detail-action{border-top:1px solid #e6edf4;margin-top:24px;padding-top:20px;display:grid;gap:9px}.badge-detail-action small{color:#687895}
.badge-collection .badge-status{margin-bottom:18px}.badge-collection-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.badge-collection-stats span{display:grid;gap:1px;background:#fff;border:1px solid #deebf3;border-radius:13px;padding:14px;color:#66758d;font-size:.8rem}.badge-collection-stats strong{font-size:1.5rem;color:#0e7459}.badge-estimates-note{font-size:.78rem;color:#718096;margin:7px 0 24px}.badge-collection-section{margin:22px 0 28px}.badge-collection-section-title{display:flex;align-items:center;gap:13px;margin-bottom:13px}.badge-collection-section-title>span{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#e0f6ee;color:#079668;font-size:1.2rem}.badge-collection-section-title h3{margin:0;font-size:1.2rem}.badge-collection-section-title p{margin:2px 0;color:#67768e}.badge-collection-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:13px}.badge-collection-card{text-align:center;background:#fff;border:1px solid #e2e9f1;border-radius:17px;padding:20px 15px;box-shadow:0 4px 16px #1e34530a}.badge-collection-card .badge-art{width:82px;height:82px;margin:0 auto 12px;border:5px solid #ffffff;box-shadow:0 0 0 3px currentColor}.badge-collection-card .badge-art svg{width:44px;height:44px}.badge-collection-card h4{font-size:1.02rem;margin:4px 0}.badge-collection-card p{color:#64728a;font-size:.85rem;margin:5px 0 12px}.badge-earned{display:inline-flex;padding:6px 11px;border-radius:99px;background:#e1f7ec;color:#087350;font-size:.78rem;font-weight:800}.badge-collection-card.pending .badge-art{filter:saturate(.7);opacity:.85}.badge-progress{height:8px;border-radius:99px;background:#e5ebf3;overflow:hidden;margin:14px 3px 8px}.badge-progress span{display:block;height:100%;background:#039b6c;border-radius:inherit}.badge-collection-card small{color:#71809a}.badge-empty{grid-column:1/-1;background:#fff;border:1px dashed #d7e4ee;border-radius:15px;padding:22px;color:#65738e}
@media(max-width:1050px){.badge-admin-layout{grid-template-columns:1fr}.badge-detail{position:static}.badge-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.badge-page-heading{display:block}.badge-page-heading h2{font-size:2rem}.badge-client-link{margin-top:14px}.badge-status{padding:16px}.badge-tabs{grid-template-columns:repeat(2,1fr)}.badge-catalog{grid-template-columns:1fr}.badge-option{min-height:100px}.badge-recommend{display:grid}.badge-recommend button{width:100%;white-space:normal}.badge-collection-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.badge-collection-stats span{padding:10px;font-size:.68rem}.badge-collection-stats strong{font-size:1.15rem}}

@media(max-width:650px){.badge-tabs{display:flex;overflow-x:auto;grid-template-columns:none;scrollbar-width:thin}.badge-tabs button{flex:0 0 auto;min-width:125px}}

/* Client Growth: approved profile and collection references, real data only. */
.client-growth-profile{max-width:920px;margin:auto;display:grid;gap:20px;color:#101b38}.client-animal-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;min-height:260px;padding:30px;border:1px solid #d8e9ed;border-radius:25px;background:radial-gradient(ellipse at 77% 35%,#ffdfc3 0,transparent 34%),linear-gradient(135deg,#edf3ff,#def9eb 64%,#e8dfff);box-shadow:0 8px 25px #17375508}.client-animal-hero h2{font-size:clamp(1.7rem,4vw,2.8rem);line-height:1.1;margin:12px 0}.client-animal-hero p:not(.eyebrow){color:#506781;line-height:1.5}.client-animal-hero small{color:#64758a}.client-animal-hero img{width:100%;max-height:250px;object-fit:contain;filter:drop-shadow(0 12px 10px #06382015)}.client-animal-placeholder{font-size:8rem;text-align:center;color:#0a936b}.client-profile-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.client-profile-stats>*,.client-profile-panel{background:#fff;border:1px solid #e5edf3;border-radius:22px;padding:22px;box-shadow:0 6px 20px #15334b06}.client-profile-stats a{text-decoration:none;color:inherit}.client-profile-stats span{display:grid;place-items:center;width:45px;height:45px;border-radius:50%;color:#008963;background:#e1f8f0;font-size:1.5rem}.client-profile-stats p{color:#6a7b93;font-size:.9rem;margin:13px 0 5px}.client-profile-stats strong{font-size:1.9rem}.client-section-link{display:flex;align-items:center;justify-content:space-between;text-decoration:none;color:inherit}.client-profile-panel h2{font-size:1.25rem;margin:0 0 15px}.client-section-link>span{font-size:1.5rem}.client-badge-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 20px}.client-badge-preview>div{text-align:center;display:grid;justify-items:center;gap:14px}.client-badge-preview strong{font-size:.9rem}.client-badge-preview .badge-art{width:75px;height:75px}.client-text-link{color:#007d5b;font-weight:700}.client-community-count{font-size:1.2rem;color:#75849b}.client-community-count strong{font-size:2.4rem;color:#14223e}.client-birthday-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d9f2e8;border-radius:22px;padding:24px;background:linear-gradient(120deg,#eafff5,#fff)}.client-birthday-panel h2{font-size:1.2rem}.client-rewards-link{display:flex;justify-content:space-between;padding:20px 24px;background:#008f68;color:white;border-radius:18px;text-decoration:none;font-weight:800}.client-account-details summary{cursor:pointer;font-weight:700}.client-account-details dl{overflow-wrap:anywhere}.client-reward-tabs,.client-badge-filters{display:flex;gap:5px;padding:5px;border-radius:15px;background:#edf3f9;margin:0 0 24px}.client-reward-tabs a,.client-badge-filters button{flex:1;text-align:center;text-decoration:none;border:0;border-radius:11px;background:transparent;color:#556783;padding:14px 10px;font:inherit;font-weight:700;box-shadow:none}.client-reward-tabs a[aria-current],.client-badge-filters button[aria-pressed=true]{background:#00966b;color:white;box-shadow:0 3px 8px #00745218}.client-medal{position:relative;display:inline-block;margin:8px auto 14px}.badge-collection-card .client-medal .badge-art,.client-badge-preview .badge-art{border:6px solid #ffffff6b;background:radial-gradient(circle at 28% 20%,#ffffffa0,transparent 45%),linear-gradient(145deg,#28dba3,#00885f);color:#e1fff1;box-shadow:inset 0 0 0 3px #ffffff50,inset 0 -8px 15px #003e623b,0 0 0 4px #8be7c8,0 8px 15px #174b6220}.badge-collection-card .client-medal .badge-art.blue,.client-badge-preview .badge-art.blue{background:radial-gradient(circle at 28% 20%,#ffffff90,transparent 45%),linear-gradient(145deg,#22bfff,#4430e5);box-shadow:inset 0 0 0 3px #ffffff60,inset 0 -8px 15px #15207345,0 0 0 4px #a6c8ff,0 8px 15px #174b6220}.badge-collection-card .client-medal .badge-art.violet,.client-badge-preview .badge-art.violet{background:linear-gradient(135deg,#dc87ff,#7224d1)}.client-medal-lock{position:absolute;bottom:0;right:-7px;border:3px solid white;border-radius:50%;background:#8999b0;color:white;width:30px;height:30px;font-weight:900}.badge-collection{max-width:920px;margin:auto}.badge-collection-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.badge-collection-section[hidden]{display:none}.client-reward-tabs a:focus-visible,.client-badge-filters button:focus-visible{outline:3px solid #006c51;outline-offset:3px}
@media(max-width:650px){.client-animal-hero{padding:20px;min-height:230px}.client-animal-hero img{min-width:0}.client-profile-stats{gap:9px}.client-profile-stats>*{padding:14px 10px;border-radius:17px}.client-profile-stats strong{font-size:1.5rem}.client-profile-stats p{font-size:.74rem}.client-profile-panel{padding:20px}.client-badge-preview{gap:8px}.client-badge-preview .badge-art{width:60px;height:60px}.client-badge-preview strong{font-size:.76rem}.badge-collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.badge-collection-card{padding:18px 10px}.client-badge-filters button{font-size:.8rem;padding:12px 5px}.client-birthday-panel{flex-direction:column;align-items:stretch}.client-reward-tabs{margin-top:5px}}

.client-profile-stats svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8}.client-medal-lock svg{width:18px;height:18px;margin:3px;fill:none;stroke:currentColor;stroke-width:2}

/* Published studio branding for client Growth; medal categories keep their identity. */
.client-animal-hero{background:radial-gradient(ellipse at 77% 35%,var(--cg-soft),transparent 55%),linear-gradient(135deg,var(--cg-soft-primary),var(--cg-soft));border-color:var(--cg-line)}
.client-animal-hero h2,.client-animal-placeholder,.client-profile-stats strong,.client-community-count strong,.client-text-link,.client-account-details a{color:var(--cg-link)}
.client-profile-stats span,.badge-collection .badge-earned,.badge-collection-section-title>span{background:var(--cg-soft);color:var(--cg-link)}
.client-profile-panel,.client-profile-stats>*,.badge-collection-card,.badge-collection-stats span{border-color:var(--cg-line)}
.client-birthday-panel{background:linear-gradient(120deg,var(--cg-soft),#fff);border-color:var(--cg-line)}
.client-rewards-link,.client-birthday-panel .button,.client-reward-tabs a[aria-current],.client-badge-filters button[aria-pressed=true],.badge-collection button:not([data-action="badge-filter"]){background:var(--cg-button);color:var(--cg-on-button)}
.client-reward-tabs,.client-badge-filters{background:var(--cg-soft-primary)}
.client-reward-tabs a:focus-visible,.client-badge-filters button:focus-visible{outline-color:var(--cg-link)}
.client-growth-profile .badge-progress,.badge-collection .badge-progress{background:var(--cg-track)}
.client-growth-profile .badge-progress span,.badge-collection .badge-progress span{background:var(--cg-link)}
.badge-collection-stats strong{color:var(--cg-link)}

/* Native values keep progress accurate under the production style CSP. */
progress.badge-progress{display:block;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:calc(100% - 6px);border:0;color:var(--cg-link,#039b6c);background:var(--cg-track,#e5ebf3)}
progress.badge-progress::-webkit-progress-bar{background:var(--cg-track,#e5ebf3);border-radius:99px}
progress.badge-progress::-webkit-progress-value{background:var(--cg-link,#039b6c);border-radius:99px}
progress.badge-progress::-moz-progress-bar{background:var(--cg-link,#039b6c);border-radius:99px}

/* Growth celebration studio: controls stay outside the exported story. */
.story-trigger{display:block;width:100%;margin-top:16px;background:var(--cg-soft,#f5e8e5);color:var(--cg-link,#322039);border:1px solid var(--cg-line,#decac7);border-radius:12px;padding:12px;font-size:.85rem;white-space:normal}.client-animal-hero .story-trigger{width:auto}.story-settings{margin-bottom:20px}.story-settings summary{cursor:pointer;font-weight:700}.story-settings form{display:grid;gap:12px;margin-top:18px}.story-settings input:not([type=checkbox]){width:100%}.client-animal-journey{display:flex;gap:12px;overflow-x:auto;padding:8px 2px 16px}.client-animal-journey article{flex:0 0 150px;display:grid;justify-items:center;align-content:start;gap:8px;text-align:center;background:var(--cg-soft);border-radius:16px;padding:16px}.client-animal-journey img{width:100px;height:100px;object-fit:contain}.client-animal-journey span,.client-animal-journey small{font-size:.8rem}.client-animal-journey strong{text-transform:capitalize}.story-open{overflow:hidden}.story-studio{width:min(1100px,96vw);max-width:1100px;height:94dvh;max-height:94dvh;border:1px solid var(--cg-line);border-radius:24px;padding:24px;background:#faf7f4;color:#231c25;overflow:auto}.story-studio::backdrop{background:#17121ed9;backdrop-filter:blur(5px)}.story-studio-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.story-studio-header h2{margin:4px 0;font-size:1.6rem}.story-studio-header [data-close]{background:#ece5e5;color:#241c25;border:0;border-radius:50%;width:44px;height:44px;padding:0;font-size:20px}.story-studio-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,1fr);gap:32px;align-items:start}.story-studio canvas{display:block;width:100%;height:auto;max-height:74dvh;aspect-ratio:9/16;object-fit:contain;border-radius:16px}.story-studio-controls{display:grid;gap:14px;padding:20px 0}.story-studio-controls h3{font:500 1.8rem Georgia;margin:0}.story-studio-controls p{margin:0;line-height:1.5}.story-studio-controls button,.story-studio-controls .button{min-height:46px;background:var(--cg-button,#e7b8b1);color:var(--cg-on-button,#231c25);border:1px solid var(--cg-line);border-radius:12px;text-align:center;padding:12px;cursor:pointer;white-space:normal}.story-studio-controls .secondary,.story-mode button{background:#fff;color:#322039}.story-mode{display:flex;gap:8px;flex-wrap:wrap}.story-mode>*{flex:1}.story-mode button[aria-pressed=true]{outline:2px solid var(--cg-link)}.story-studio-controls fieldset{border:1px solid var(--cg-line);border-radius:12px;display:grid;gap:12px;padding:16px}.story-studio-controls fieldset[hidden]{display:none}.story-studio-controls input[type=range]{display:block;width:100%;padding:0;min-height:30px;accent-color:var(--cg-link)}.story-studio [data-story-status]{font-size:.85rem;min-height:2.5em}.story-studio :focus-visible{outline:3px solid var(--cg-link);outline-offset:3px}
@media(max-width:650px){.story-studio{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:16px 16px max(24px,env(safe-area-inset-bottom))}.story-studio-layout{grid-template-columns:1fr;gap:14px}.story-studio canvas{max-height:64dvh}.story-studio-controls{padding:0}.story-studio-header{margin-bottom:12px}.story-studio-header h2{font-size:1.3rem}.client-profile-panel .client-section-link{flex-wrap:wrap;gap:8px}}

/* Owner story settings: a visible, compact setup card with a real save state. */
.badge-admin .story-settings{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(320px,1.2fr);gap:32px;padding:24px;border:1px solid #dfe6ec;border-radius:20px;background:#fff;box-shadow:0 4px 18px #22365705;margin:0 0 24px;color:#17213f}
.story-settings-intro{display:grid;grid-template-columns:44px 1fr;column-gap:14px;align-content:start}.story-settings-icon{width:44px;height:44px;border-radius:13px;background:#e9f6f0;color:#08775b;display:grid;place-items:center}.story-settings-icon svg{width:25px;height:25px}.story-settings-intro .badge-kicker{font-size:10px;letter-spacing:.1em;color:#08775b;margin:0 0 7px}.story-settings-intro h3{font-size:20px;line-height:1.25;letter-spacing:-.025em;margin:0 0 8px;color:#17213f}.story-settings-intro p:not(.badge-kicker){font-size:13px;line-height:1.5;margin:0;color:#63728a;max-width:330px}.story-settings-benefits{grid-column:2;list-style:none;padding:0;margin:17px 0 0;display:grid;gap:8px;font-size:12px;color:#55677d}.story-settings-benefits li::before{content:'✓';margin-right:8px;color:#08775b;font-weight:700}
.story-settings .story-settings-form{display:grid;gap:18px;margin:0;padding:0;min-width:0}.story-settings-enable{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-bottom:17px;border-bottom:1px solid #edf0f4}.story-settings-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-size:14px;font-weight:700;color:#17213f}.story-settings-state{font-size:10px;font-weight:650;line-height:1.4;padding:4px 8px;border-radius:99px;background:#f0f3f6;color:#65738a;white-space:nowrap}.story-settings-state[data-state=on]{background:#e6f6ee;color:#067354}.story-settings-state[data-state=pending]{background:#fff3d9;color:#85600e}.story-settings-enable p{margin:6px 0 0;font-size:12px;line-height:1.5;color:#6a788c}
.story-settings .story-settings-switch{display:block;position:relative;flex:0 0 48px;width:48px;min-height:44px;margin:0;cursor:pointer}.story-settings-switch input{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;margin:0!important;opacity:0;z-index:1;cursor:pointer}.story-settings-switch>span{position:absolute;top:9px;left:0;width:48px;height:26px;border-radius:99px;background:#c3cdd8;transition:background .15s}.story-settings-switch>span::after{content:'';position:absolute;left:3px;top:3px;width:20px;height:20px;border-radius:50%;background:white;box-shadow:0 1px 4px #192c4033;transition:transform .15s}.story-settings-switch input:checked+span{background:#008968}.story-settings-switch input:checked+span::after{transform:translateX(22px)}.story-settings-switch input:focus-visible+span{outline:3px solid #346caf;outline-offset:4px}.story-settings-switch input:disabled+span{opacity:.55}
.story-settings-instagram>label{display:flex;gap:8px;align-items:center;margin:0 0 8px;font-size:13px;font-weight:650;color:#24334b}.story-settings-instagram>label>span{font-size:11px;font-weight:400;color:#7a8799}.story-settings-handle{display:flex;align-items:center;border:1px solid #dce3ec;border-radius:11px;background:#fff;max-width:380px;overflow:hidden}.story-settings-handle:focus-within{border-color:#008968;outline:2px solid #00896825}.story-settings-handle>span{padding:0 0 0 14px;color:#8490a0;font-size:17px}.story-settings .story-settings-handle input{width:100%;min-width:0;min-height:44px;margin:0;border:0;border-radius:0;outline:none;box-shadow:none;padding:10px 12px 10px 7px;background:transparent;font-size:14px;color:#17213f}.story-settings-instagram>p{font-size:11px;line-height:1.6;color:#758299;margin:7px 0 0;max-width:390px}
.story-settings-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:2px}.story-settings-footer [data-story-settings-status]{margin:0;font-size:11px;line-height:1.5;color:#7a8799;flex:1}.story-settings-footer [data-state=saved]{color:#08775b}.story-settings-footer [data-state=error]{color:#a02e35}.story-settings .story-settings-footer button{width:auto;min-height:42px;flex:0 0 auto;padding:10px 18px;margin:0;border:0;border-radius:10px;background:#087b5d;color:#fff;font-size:12px;font-weight:700;white-space:nowrap}.story-settings-footer button:disabled{opacity:.65;cursor:wait}.story-settings-footer button:focus-visible{outline:3px solid #346caf;outline-offset:3px}
@media(max-width:800px){.badge-admin .story-settings{grid-template-columns:1fr;gap:22px;padding:20px}.story-settings-intro p:not(.badge-kicker){max-width:none}.story-settings-benefits{display:flex;gap:8px 14px;flex-wrap:wrap;font-size:11px;margin-top:12px}.story-settings-handle{max-width:none}}
@media(max-width:420px){.story-settings-footer{align-items:stretch;flex-direction:column;gap:12px}.story-settings .story-settings-footer button{width:100%}.story-settings-intro h3{font-size:18px}.story-settings-benefits{grid-column:1/-1}.story-settings-label{font-size:13px}}

/* Use the same PNG for the visible preview and the exported story. */
body.member-workspace dialog.story-studio{background:#faf7f4;color:#231c25;border-color:var(--cg-line)}
body.member-workspace dialog.story-studio h2,body.member-workspace dialog.story-studio h3{color:#231c25}
body.member-workspace dialog.story-studio .secondary{background:white;color:#322039;border-color:var(--cg-line)}
.story-preview-frame{position:relative;display:flex;align-items:flex-start;justify-content:center;min-width:0;min-height:200px;border-radius:16px;overflow:hidden;background:#eee8e4}
.story-preview-frame [data-story-preview]{display:block;width:auto;max-width:100%;height:auto;max-height:74dvh;aspect-ratio:9/16;object-fit:contain;border-radius:16px}
.story-preview-frame [data-preview-loading]{position:absolute;inset:45% 15px auto;text-align:center;color:#5b5360;font-size:14px;background:#ffffffed;padding:14px;border-radius:12px}
.story-preview-frame [data-preview-loading][hidden]{display:none}
@media(max-width:650px){.story-preview-frame [data-story-preview]{max-height:64dvh}}

/* Card automation workspace: scoped editor, preview and approval. */
.auto-workspace{min-width:0}
.auto-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}
.auto-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:750;color:var(--muted)}
.auto-heading h2{margin:8px 0 10px}.auto-heading p{max-width:660px;color:var(--muted);line-height:1.6;margin:0}
.auto-status{display:inline-flex;white-space:nowrap;border:1px solid var(--line);border-radius:20px;padding:5px 10px;font-size:12px;font-weight:650;color:var(--muted);background:#f6f8fa}
.auto-status.is-active{background:var(--positive);color:#146349;border-color:#b9decd}
.auto-guide{display:flex;gap:24px;padding:18px 20px;background:#f4f7fa;border-radius:10px;margin:24px 0;color:var(--muted);font-size:13px;line-height:1.6}.auto-guide strong{color:var(--ink);white-space:nowrap}
.auto-rule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.auto-rule{border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0;overflow:hidden}
.auto-rule>summary{display:block;cursor:pointer;padding:22px;list-style:none}.auto-rule>summary::-webkit-details-marker{display:none}.auto-rule>summary:focus-visible{outline:3px solid var(--green);outline-offset:-4px}
.auto-rule-top,.auto-rule-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.auto-channel{font-size:12px;letter-spacing:.06em;text-transform:uppercase;font-weight:750;color:var(--green)}
.auto-rule-title{display:block;font-size:21px;letter-spacing:-.03em;margin:16px 0 7px}.auto-rule-description{display:block;color:var(--muted);font-size:14px;line-height:1.6}.auto-rule-bottom{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;color:var(--muted);font-size:12px}.auto-edit{font-weight:700;color:var(--ink);white-space:nowrap}
.auto-rule[open]{grid-column:1/-1;border-color:#9fbeb1}.auto-rule[open]>summary{background:#f7faf9;border-bottom:1px solid var(--line)}.auto-rule[open] .auto-edit{color:var(--green)}
.auto-editor{padding:24px}.auto-editor form{max-width:none;width:100%;margin:0;display:block}.auto-edit-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:32px}.auto-editor fieldset{border:0;padding:0;margin:0 0 24px;min-width:0}.auto-editor legend{display:flex;align-items:center;gap:10px;font-weight:700;margin:0 0 20px;padding:0;font-size:15px}.auto-editor legend>span{display:inline-grid;place-items:center;border-radius:50%;width:26px;height:26px;background:#edf3f0;color:#23684d;font-size:12px}
.auto-editor label{margin:0 0 14px;display:grid;gap:7px;font-size:13px;font-weight:650}.auto-editor textarea{resize:vertical;min-height:120px}.auto-hours{display:grid;grid-template-columns:1fr 1fr;gap:16px}.auto-help{font-size:12px;color:var(--muted);line-height:1.6;margin:8px 0 16px}.auto-preview{padding:24px;background:#f1f4f8;border-radius:12px;align-self:start;min-width:0}.auto-preview>p{font-size:13px;color:var(--muted);line-height:1.6}.auto-message{margin:22px 0;background:white;border-radius:16px;padding:20px;box-shadow:0 8px 28px #12213c0c;overflow-wrap:anywhere}.auto-message.is-email{border-radius:6px;border-top:3px solid var(--green)}.auto-preview-brand{display:block;font-size:10px;letter-spacing:.08em;color:var(--muted);margin-bottom:16px}.auto-message strong{display:block;font-size:16px;line-height:1.5}.auto-message p{white-space:pre-wrap;font-size:14px;line-height:1.6;margin:8px 0 0}
.auto-editor .auto-approval{border-top:1px solid var(--line);padding-top:20px}.auto-editor .auto-check{display:flex;align-items:flex-start;gap:12px;background:#f6f8fa;padding:15px;border-radius:8px;font-weight:450;line-height:1.6}.auto-check input[type=checkbox]{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0}.auto-check small{display:block;color:var(--muted);font-size:12px}.auto-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.auto-actions button{width:auto}.auto-actions .auto-help{margin:0;margin-left:auto}.auto-unavailable{background:var(--warning);padding:14px;border-radius:8px;font-size:13px}.auto-editor [data-error]:not(:empty){color:var(--danger);font-size:14px}
.auto-results{display:flex;justify-content:space-between;gap:24px;margin-top:28px;padding-top:24px;border-top:1px solid var(--line)}.auto-results h3{font-size:15px;margin:0 0 6px}.auto-results p{font-size:12px;color:var(--muted);margin:0;line-height:1.6}.auto-results dl{display:flex;gap:32px;margin:0}.auto-results dt{font-size:12px;color:var(--muted)}.auto-results dd{margin:5px 0 0;font-size:24px;font-weight:700}.auto-feedback:empty{display:none}.auto-feedback:not(:empty){padding:14px;background:var(--positive);border-radius:8px;color:#146349}
.auto-suggestions{margin-top:24px}.auto-suggestions summary{cursor:pointer;font-weight:700;min-height:44px;line-height:1.6}.auto-suggestions summary small{font-weight:400;color:var(--muted);margin-left:12px}.auto-suggestions form{max-width:none;display:grid;grid-template-columns:1fr 1fr auto;align-items:end;gap:16px}.auto-suggestions form label{margin:0}.auto-suggestions form button{width:auto}.auto-suggestions .table-wrap{margin-top:24px}.auto-policy-states{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.auto-suggestions p{font-size:14px;color:var(--muted);line-height:1.7}
@media(max-width:900px){.auto-edit-grid{grid-template-columns:1fr}.auto-guide{flex-direction:column;gap:8px}.auto-suggestions form{grid-template-columns:1fr}.auto-results{flex-direction:column}}
@media(max-width:600px){.auto-heading{flex-direction:column;gap:16px}.auto-rule-grid{grid-template-columns:1fr}.auto-rule>summary,.auto-editor{padding:18px}.auto-rule-bottom{align-items:flex-start;flex-direction:column}.auto-preview{padding:18px}.auto-results dl{justify-content:space-between;gap:12px}.auto-actions button{width:100%}.auto-actions .auto-help{margin-left:0}.auto-suggestions summary small{display:block;margin-left:0}}

/* Client tab bar: stable touch targets and room above the iPhone home area. */
@media (max-width:900px) {
  body.member-workspace { --member-nav-inset: max(10px, env(safe-area-inset-bottom, 0px)); }
  body.member-workspace .bottom-nav {
    padding:8px max(6px, env(safe-area-inset-right, 0px)) var(--member-nav-inset) max(6px, env(safe-area-inset-left, 0px));
    align-items:stretch;
  }
  body.member-workspace .bottom-nav a,
  body.member-workspace .bottom-nav button,
  body.member-workspace .bottom-nav .bottom-primary {
    min-height:54px; padding:5px 2px; gap:5px; font-size:11px; line-height:1.2;
    align-self:stretch; min-width:0; margin:0 2px;
  }
  body.member-workspace .bottom-nav .icon,
  body.member-workspace .bottom-nav .bottom-primary .icon { width:22px; height:22px; flex-shrink:0; }
  body.member-workspace .bottom-nav span { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  body.member-workspace.workspace main,
  body.member-workspace.workspace:not(:has(#demo:not(:empty))) main { padding-bottom:calc(78px + var(--member-nav-inset)); }
}
@media (max-width:900px) and (display-mode:standalone) {
  body.member-workspace { --member-nav-inset:max(20px, env(safe-area-inset-bottom, 0px)); }
}

.pwa-update-banner{position:fixed;z-index:120;top:max(12px,env(safe-area-inset-top,0px));right:16px;width:min(390px,calc(100vw - 32px));padding:18px;border:1px solid #bdcfca;border-radius:14px;background:#fff;color:#12213c;box-shadow:0 12px 40px #09151f35}
.pwa-update-banner strong{font-size:16px}.pwa-update-banner p{font-size:13px;line-height:1.5;color:#526273;margin:8px 0 14px}.pwa-update-banner>div{display:flex;gap:8px;flex-wrap:wrap}.pwa-update-banner button{flex:1;font-size:13px;min-height:44px}

/* Premium badges: one metal system, with the studio's published palette for UI accents. */
.badge-collection{--badge-bg:var(--sr-bg,#152635);--badge-panel:var(--sr-panel,#25384b);--badge-line:var(--sr-line,#46576c);--badge-text:var(--sr-text,#f5f7fa);--badge-muted:var(--sr-muted,#b9c5d5);--badge-accent:var(--sr-lime,#a9d3ef);max-width:1060px;color:var(--badge-text);padding:24px;border-radius:24px;background:var(--badge-bg)}
.badge-collection-intro h2{font-size:clamp(2rem,5vw,3rem);line-height:1.06;margin:6px 0 8px;color:var(--badge-text)}.badge-collection-intro>p:not(.badge-kicker){color:var(--badge-muted);margin:0 0 20px}.badge-collection .badge-kicker,.badge-card-category{font-size:.69rem;letter-spacing:.16em;text-transform:uppercase;color:var(--badge-accent);font-weight:800}.badge-overall{display:grid;grid-template-columns:1fr auto;gap:8px;color:var(--badge-text)}.badge-overall>span{color:var(--badge-muted)}.badge-overall progress{grid-column:1/-1;width:100%;height:9px;accent-color:var(--badge-accent)}
.badge-collection .client-badge-filters{margin:24px 0 14px;background:var(--badge-panel);border:1px solid var(--badge-line);padding:4px}.badge-collection .client-badge-filters button{min-height:48px;color:var(--badge-muted);background:transparent;border:0}.badge-collection .client-badge-filters button[aria-pressed=true]{background:var(--badge-accent);color:var(--sr-on-accent,#102030)}.badge-collection .client-badge-filters span{display:inline-block;margin-left:4px;padding:1px 6px;border-radius:99px;background:#ffffff28}
.badge-collection .badge-collection-stats span{background:var(--badge-panel);color:var(--badge-muted);border-color:var(--badge-line)}.badge-collection .badge-collection-stats strong{color:var(--badge-text)}.badge-collection .badge-estimates-note{color:var(--badge-muted);margin:9px 0 22px}.badge-collection .badge-collection-section{margin:18px 0 26px}.badge-collection .badge-collection-section-title{justify-content:space-between;border-bottom:1px solid var(--badge-line);padding-bottom:8px}.badge-collection .badge-collection-section-title h3{color:var(--badge-text)}.badge-collection .badge-collection-section-title small{color:var(--badge-muted)}
.badge-collection .badge-collection-card{padding:0;text-align:left;background:var(--badge-panel);border-color:var(--badge-line);border-radius:18px;overflow:hidden}.badge-collection .badge-collection-card.earned{border-color:var(--badge-accent);background:linear-gradient(130deg,var(--badge-panel),var(--badge-bg))}.badge-collection .badge-card-open{display:grid;grid-template-columns:94px minmax(0,1fr) auto;align-items:center;gap:14px;width:100%;min-height:132px;padding:14px;color:var(--badge-text);background:transparent;border:0;text-align:left;cursor:pointer}.badge-collection .badge-card-open:focus-visible{outline:3px solid var(--badge-accent);outline-offset:-4px}.badge-collection .badge-card-copy{display:grid;gap:5px;min-width:0}.badge-collection .badge-card-copy strong{font-size:1rem;color:var(--badge-text)}.badge-collection .badge-card-copy>span:not(.badge-card-category):not(.badge-earned){font-size:.82rem;line-height:1.35;color:var(--badge-muted)}.badge-collection .badge-card-copy small{color:var(--badge-muted)}.badge-collection .badge-earned{display:inline-block;width:max-content;max-width:100%;background:#0e7f6970;color:#e9fff5;border-radius:8px;font-size:.7rem}.badge-card-chevron{font-size:1.5rem;color:var(--badge-muted)}
.badge-art{box-sizing:border-box;display:grid;place-items:center;width:76px;height:76px;border-radius:50%;color:#152332;background:radial-gradient(circle at 32% 25%,#fafafa,#aab5c1 44%,#475869 78%,#dbe2e8 98%);border:3px solid #a9b5c2;box-shadow:inset 0 0 0 3px #263849aa,inset 0 0 0 7px #e2e8ed70,inset 0 8px 12px #1727366b,0 7px 14px #0005}.badge-art svg{width:43%;height:43%;filter:drop-shadow(0 1px 1px #fff8)}.badge-collection-card.earned .badge-art,.badge-client-detail .earned .badge-art{background:radial-gradient(circle at 32% 25%,#fff9df,#d1b586 44%,#705a40 80%,#eee0be 98%);border-color:#ead9b5;color:#302719}.badge-collection-card.progress .badge-art{box-shadow:inset 0 0 0 3px #263849aa,inset 0 0 0 7px #e2e8ed70,0 0 0 3px var(--badge-accent),0 7px 14px #0005}.badge-collection-card.locked .badge-art{filter:grayscale(.55);opacity:.72}.badge-collection .client-medal{display:block;width:76px;height:76px;margin:0}.badge-collection .client-medal .badge-art,.client-badge-preview .badge-art{width:76px;height:76px;border-width:3px;box-shadow:inset 0 0 0 3px #263849aa,inset 0 0 0 7px #e2e8ed70,inset 0 8px 12px #1727366b,0 7px 14px #0005;background:radial-gradient(circle at 32% 25%,#fafafa,#aab5c1 44%,#475869 78%,#dbe2e8 98%);color:#152332}.badge-collection-card.earned .client-medal .badge-art{background:radial-gradient(circle at 32% 25%,#fff9df,#d1b586 44%,#705a40 80%,#eee0be 98%);border-color:#ead9b5;color:#302719}.client-medal-state{position:absolute;right:-3px;bottom:-3px;width:26px;height:26px;display:grid;place-items:center;border-radius:50%;font-weight:900;background:#607387;color:#fff;border:2px solid var(--badge-panel)}.earned .client-medal-state{background:#13a989;color:#061f1b}.progress .client-medal-state{background:var(--badge-accent);color:#102030}.badge-collection-card .badge-progress{height:6px;margin:5px 0 0;width:100%;accent-color:var(--badge-accent)}.badge-collection-card .badge-progress::-webkit-progress-value{background:var(--badge-accent)}.badge-collection-card .badge-progress::-moz-progress-bar{background:var(--badge-accent)}.badge-collection-card.featured{grid-column:1/-1}.badge-collection-card.featured .story-trigger{margin:0 14px 14px;width:calc(100% - 28px);min-height:44px;background:var(--cg-button);color:var(--cg-on-button)}.badge-collection .badge-empty{background:var(--badge-panel);border-color:var(--badge-line);color:var(--badge-muted)}
.badge-client-detail{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;box-sizing:border-box;border:0;border-radius:0;overflow:auto;background:var(--sr-bg,#152635);color:var(--sr-text,#fff);padding:calc(16px + env(safe-area-inset-top)) max(18px,calc((100vw - 700px)/2)) calc(28px + env(safe-area-inset-bottom))}.badge-client-detail::backdrop{background:#091321cc}.badge-client-detail .badge-detail-bar{display:flex;justify-content:space-between;align-items:center;gap:10px}.badge-client-detail .badge-detail-bar button{min-height:44px;background:transparent;color:inherit;border:1px solid var(--sr-line);border-radius:12px;padding:8px 14px}.badge-client-detail .badge-detail-bar span{font-size:.72rem;letter-spacing:.18em;font-weight:800}.badge-detail-body{text-align:center}.badge-detail-medal{display:grid;place-items:center;margin:30px auto 18px}.badge-client-detail .badge-art{width:min(48vw,220px);height:min(48vw,220px)}.badge-detail-body h2{font-size:clamp(2rem,8vw,3.3rem);line-height:1.07;margin:10px 0;color:inherit}.badge-detail-body>p:not(.badge-kicker){color:var(--sr-muted);line-height:1.5}.badge-detail-fact{text-align:left;display:grid;gap:8px;padding:20px;margin:28px 0;border:1px solid var(--sr-line);background:var(--sr-panel);border-radius:16px}.badge-detail-fact span{color:var(--sr-muted)}.badge-detail-fact .badge-progress{margin:6px 0}.badge-detail-body [data-share]{width:100%;min-height:52px;border:0;border-radius:12px;background:var(--sr-button);color:var(--sr-on-button);font:inherit;font-weight:800}.badge-client-detail :focus-visible{outline:3px solid var(--sr-lime);outline-offset:3px}
@media(max-width:650px){.badge-collection{padding:16px 12px;border-radius:0;margin:-10px -12px}.badge-collection .badge-collection-grid{grid-template-columns:1fr;gap:10px}.badge-collection .badge-card-open{grid-template-columns:76px minmax(0,1fr) 12px;gap:10px;min-height:114px;padding:12px}.badge-collection .badge-collection-stats span{padding:10px 8px}.badge-collection .badge-collection-stats strong{font-size:1.08rem}.badge-collection .client-badge-filters button{font-size:.75rem;padding:8px 3px}.badge-collection .client-badge-filters span{display:block;margin:2px auto 0;width:max-content}.badge-collection .badge-card-copy strong{font-size:.97rem}}
@media(prefers-reduced-motion:reduce){.badge-collection *,.badge-client-detail *{scroll-behavior:auto;animation:none!important;transition:none!important}}
/* Story controls stay reachable while the exported PNG remains visible above. */
.story-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.story-primary-actions button{width:100%;font-weight:800}.story-studio-controls [data-story-status]{min-height:1.5em;color:#42546a}.story-studio-controls .tiny{font-size:.72rem;line-height:1.35}
@media(max-width:650px){.story-studio{padding:calc(12px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom));overflow:auto}.story-studio-layout{gap:10px}.story-preview-frame{min-height:0}.story-preview-frame [data-story-preview]{max-height:37dvh}.story-studio-controls{gap:8px}.story-studio-controls h3{font-size:1.12rem}.story-studio-controls>p:not(.tiny){font-size:.8rem}.story-primary-actions{position:sticky;bottom:0;z-index:2;background:#faf7f4;padding:8px 0 calc(4px + env(safe-area-inset-bottom));box-shadow:0 -8px 16px #faf7f4}.story-primary-actions button{min-height:48px}.story-studio-controls [data-pick-camera]{min-height:44px}}
.badge-collection button.badge-card-open{background:transparent;color:var(--badge-text)}
.badge-collection .badge-collection-card .client-medal .badge-art,.client-badge-preview .badge-art.blue,.client-badge-preview .badge-art.violet{background:radial-gradient(circle at 32% 25%,#fafafa,#aab5c1 44%,#475869 78%,#dbe2e8 98%);box-shadow:inset 0 0 0 3px #263849aa,inset 0 0 0 7px #e2e8ed70,inset 0 8px 12px #1727366b,0 7px 14px #0005;color:#152332}
.badge-collection .badge-collection-card.earned .client-medal .badge-art{background:radial-gradient(circle at 32% 25%,#fff9df,#d1b586 44%,#705a40 80%,#eee0be 98%);border-color:#ead9b5;color:#302719}
.badge-client-detail .badge-art{background:radial-gradient(circle at 32% 25%,#fafafa,#aab5c1 44%,#475869 78%,#dbe2e8 98%);border-color:#a9b5c2;color:#152332}
.badge-client-detail .badge-detail-medal.earned .badge-art{background:radial-gradient(circle at 32% 25%,#fff9df,#d1b586 44%,#705a40 80%,#eee0be 98%);border-color:#ead9b5;color:#302719}

/* Story setup is published with the studio design; the member sees the same portrait format. */
.story-admin-form{display:grid;gap:14px}.story-admin-form>p{margin:0;line-height:1.5}.story-admin-form h3{margin:0}.story-admin-form .image-field-preview{max-height:190px;object-fit:contain}.story-admin-preview{position:relative;isolation:isolate;width:min(100%,330px);aspect-ratio:9/16;margin:14px auto;border-radius:22px;overflow:hidden;background:linear-gradient(155deg,var(--story-preview-bg,#173750),#111b2d);color:#fff;box-shadow:0 18px 36px #13223d38}.story-admin-preview>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.story-admin-shade{position:absolute;inset:0;background:linear-gradient(180deg,#071625ce,#071625a3 45%,#071625ed)}.story-admin-content{position:relative;z-index:1;height:100%;display:flex;flex-direction:column;align-items:center;text-align:center;padding:28px 22px;box-sizing:border-box}.story-admin-brand{min-height:47px;display:grid;place-items:center;font-weight:800}.story-admin-brand img{max-width:130px;max-height:48px;object-fit:contain}.story-admin-content p{font:600 13px/1.4 Arial;letter-spacing:.13em;margin:32px 0 14px}.story-admin-medal{width:144px;height:144px;flex:none;display:grid;place-items:center;border-radius:50%;border:7px double #f1dcae;background:radial-gradient(circle at 30% 25%,#fff6dc,#bfa16f 58%,#6a5440);color:#302719;font-size:76px;box-shadow:0 12px 25px #0006}.story-admin-content h4{font:600 26px Georgia;margin:22px 0 4px}.story-admin-content small{font-size:9px;letter-spacing:.14em}.story-admin-content strong{margin-top:auto;font-size:13px;letter-spacing:.12em}.story-admin-form [data-clear-story-image]{width:auto;justify-self:start}
.story-admin-medal svg{width:64%;height:64%;filter:drop-shadow(0 2px 2px #38291e55)}
@media(max-width:650px){.story-studio{width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;margin:0;padding:calc(12px + env(safe-area-inset-top)) 16px calc(18px + env(safe-area-inset-bottom))}.story-studio-header{margin-bottom:12px}.story-studio-header h2{font-size:1.4rem}.story-preview-frame{width:100%;background:transparent;overflow:visible;min-height:0}.story-preview-frame [data-story-preview]{width:min(100%,340px);max-width:100%;max-height:none;height:auto;box-shadow:0 14px 28px #15223535}.story-studio-layout{gap:8px}.story-studio-controls{padding:14px 0}.story-studio-controls h3{font-size:1.25rem}.story-mode{display:grid;grid-template-columns:1fr 1fr}.story-mode button{min-height:50px}.story-primary-actions{margin-top:6px}}

.visit-progress{width:100%;text-align:left;margin:0 0 18px}
.visit-progress h3{text-align:center;font-size:22px;margin:0 0 8px;color:inherit}
.visit-progress-list{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:5px 0 12px}.visit-progress-list>.visit-progress-card{flex:0 0 100%;box-sizing:border-box;scroll-snap-align:start;min-width:0}.visit-progress-hint{text-align:center;font-size:12px;color:var(--sr-muted,#b8c6cc)}
.visit-celebration-content:has(.visit-progress) .visit-celebration-mark{width:60px;height:60px;margin-bottom:14px}.visit-celebration-content:has(.visit-progress) .visit-celebration-mark .icon{width:40px;height:40px}.visit-celebration-content:has(.visit-progress) h2{font-size:28px}.visit-celebration-content:has(.visit-progress) .visit-celebration-message{margin-bottom:12px}
.visit-progress-card{border:1px solid var(--sr-muted,#b8c6cc);background:var(--sr-panel,#243747);border-radius:20px;padding:16px}
.visit-progress-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:15px}
.visit-progress-card header>span{background:var(--sr-lime,#b8ef63);color:var(--sr-on-accent,#152635);border-radius:20px;padding:6px 9px;font-size:12px;white-space:nowrap}
.visit-progress-count{font-size:22px;margin:12px 0}.visit-progress-count strong{font-size:32px}.visit-progress-count small{font-size:13px}
.visit-progress-card>p:last-of-type{font-size:14px;line-height:1.4;margin-bottom:5px}.visit-progress-card>small,.visit-progress-empty{font-size:12px;line-height:1.5;color:var(--sr-muted,#b8c6cc)}
.visit-progress-stamps{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.visit-progress-stamps>span{width:38px;height:38px;display:grid;place-items:center;border:1px dashed var(--sr-muted,#b8c6cc);border-radius:50%}
.visit-progress-stamps .done{background:var(--sr-lime,#b8ef63);color:var(--sr-on-accent,#152635);border:1px solid transparent}
.visit-progress-stamps .new{animation:visit-stamp .8s ease-out both;box-shadow:0 0 0 4px var(--sr-soft,#284039)}
.visit-progress-track{height:10px;background:var(--sr-bg,#152635);border-radius:20px;overflow:hidden;margin:14px 0}
.visit-progress-track>span{display:block;height:100%;background:var(--sr-lime,#b8ef63);transform-origin:left;transform:scaleX(var(--to));animation:visit-fill 1s ease-out both}
@keyframes visit-stamp{0%{transform:scale(.5) rotate(-20deg);opacity:0}65%{transform:scale(1.18) rotate(5deg);opacity:1}100%{transform:scale(1) rotate(0)}}
@keyframes visit-fill{from{transform:scaleX(var(--from))}to{transform:scaleX(var(--to))}}
@media(prefers-reduced-motion:reduce){.visit-progress-stamps .new,.visit-progress-track>span{animation:none}}

body.member-workspace dialog.visit-celebration:has(.visit-progress){background:var(--sr-bg,#152635)}
.visit-celebration-content:has(.visit-progress){padding:8px 0}
.visit-celebration-content:has(.visit-progress) h2{font-size:25px;margin-bottom:10px}
.visit-celebration-content:has(.visit-progress) .visit-celebration-message{font-size:14px;line-height:1.4}
.visit-celebration-content:has(.visit-progress) .visit-celebration-receipt{padding:10px;font-size:12px;gap:3px}
.visit-celebration-content:has(.visit-progress) .visit-celebration-actions{margin-top:12px;gap:8px}
.visit-progress-card{align-self:flex-start}
.visit-progress-hint{margin:0 0 8px}

.studio-menu{display:grid;gap:3px}.studio-menu-group{border:0;margin:0;padding:0}.studio-menu-group summary{display:flex;gap:12px;align-items:center;padding:10px 14px;border-radius:10px;cursor:pointer;color:#dce6eb;font-size:14px;font-weight:600;list-style:none}.studio-menu-group summary::-webkit-details-marker{display:none}.studio-menu-group summary:hover,.studio-menu-group[open]>summary{background:#ffffff12}.studio-menu-chevron{margin-left:auto}.studio-menu-group[open] .studio-menu-chevron{transform:rotate(180deg)}.studio-menu-group>div{margin:4px 0 8px 24px;border-left:1px solid #ffffff30;padding-left:8px}.sidebar .studio-menu-group a{font-size:13px;padding:10px;gap:6px}.studio-plan-tag{font-size:10px;margin-left:auto;border:1px solid #ffffff50;padding:2px 6px;border-radius:20px;color:inherit}.studio-menu-footer{margin-top:14px;padding-top:14px;border-top:1px solid #ffffff25}.studio-menu-footer p{font-size:12px;padding:0 14px;color:#c4d0d6}.studio-menu-footer strong{display:block;font-size:15px;color:white;margin-top:5px}.studio-menu summary:focus-visible{outline:2px solid #c8ed78;outline-offset:2px}.studio-feature-preview{max-width:800px;padding:clamp(20px,4vw,42px);border:1px solid var(--line);border-radius:24px;background:white}.studio-feature-preview h2{font-size:clamp(24px,4vw,34px);line-height:1.15;max-width:580px}.studio-feature-preview p{line-height:1.6;color:#526273}.studio-feature-example{padding:28px;margin:24px 0;background:#edf5f1;border:1px solid #c9dfd4;border-radius:18px;display:grid;gap:20px}.studio-feature-example>span{font-size:12px;color:#466556}.studio-feature-example>strong{font-size:20px;line-height:1.4;color:#173e33}.studio-example-bars{display:flex;gap:8px;align-items:end;height:50px}.studio-example-bars i{width:22%;height:45%;background:#b3d0c1;border-radius:6px}.studio-example-bars i:nth-child(2){height:70%}.studio-example-bars i:nth-child(3){height:100%;background:#25674d}.studio-feature-preview .button{margin:8px 8px 0 0}

.growth-list-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:22px}
.growth-list-heading h2{margin-top:0}
.growth-list-heading p{margin-bottom:0}
.growth-list-heading .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.growth-row-summary{display:block;max-width:340px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:5px}
.growth-row-actions{display:flex;flex-wrap:wrap;gap:6px;min-width:170px}
.growth-row-actions button{min-height:38px;padding:7px 10px}
.growth-form-dialog{width:min(100% - 24px,560px);padding:28px}
.growth-dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.growth-dialog-heading h2{margin:0}
.growth-form-dialog form{display:grid;gap:15px;margin-top:20px}
.growth-form-dialog label{display:grid;gap:7px}
.growth-form-dialog textarea{min-height:150px}
.growth-form-dialog [data-g-message]:empty{display:none}
@media(max-width:600px){.growth-list-heading{display:block}.growth-list-heading .actions{justify-content:flex-start;margin-top:16px}.growth-form-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:88dvh;border-radius:22px 22px 0 0;padding:24px 20px calc(22px + env(safe-area-inset-bottom))}.growth-row-actions{min-width:0}.growth-record-list .table-wrap{overflow:visible}.growth-record-list table,.growth-record-list tbody,.growth-record-list tr,.growth-record-list td{display:block;width:100%}.growth-record-list thead{display:none}.growth-record-list tbody{display:grid;gap:12px}.growth-record-list tr{padding:16px;border:1px solid var(--line);border-radius:16px;background:#fff}.growth-record-list td{padding:4px 0;border:0}.growth-record-list td:first-child strong{font-size:16px}.growth-record-list td:last-child{padding-top:12px}.growth-row-summary{max-width:100%}}

/* Communication: one task per screen, review next to the action. */
.comm-workspace{max-width:900px}.comm-workspace header p{max-width:640px;color:#526273}.comm-workspace form{display:grid;gap:18px;max-width:680px}.comm-workspace fieldset{border:0;margin:0;padding:0;display:grid;gap:14px}.comm-workspace legend{font-size:18px;font-weight:700;margin-bottom:12px}.comm-workspace textarea{min-height:150px}.comm-member-list{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:8px}.comm-member-list label{display:flex;align-items:center;gap:12px;padding:10px;margin:0;font-weight:500}.comm-member-list input{width:20px;min-height:20px;flex:0 0 20px}.comm-workspace [hidden]{display:none!important}.comm-history{display:grid;gap:12px}.comm-history article{border:1px solid var(--line);border-radius:14px;padding:18px;display:flex;align-items:center;justify-content:space-between;gap:16px}.comm-history article p{margin:6px 0 0;color:#526273}.comm-review{width:min(600px,calc(100% - 24px));max-height:90dvh;overflow:auto;box-sizing:border-box;border:0;border-radius:22px;padding:28px}.comm-review::backdrop{background:#101c32a8}.comm-review h2{font-size:25px}.comm-counts{display:flex;gap:28px;margin:20px 0}.comm-counts strong{font-size:34px}.comm-counts small{display:block;font-size:13px;font-weight:500}.comm-message-preview{background:#f3f7f5;border:1px solid #d1e3d9;padding:20px;border-radius:14px;margin:20px 0}.comm-message-preview p{white-space:pre-wrap;overflow-wrap:anywhere}.comm-review [role=alert],.comm-workspace [role=alert]{color:#a12626}.comm-workspace hr{margin:28px 0}.auto-schedule{border:1px solid var(--line);border-radius:12px;padding:14px}.auto-schedule summary{cursor:pointer;font-weight:600}.auto-schedule[open] summary{margin-bottom:18px}@media(max-width:600px){.comm-history article{align-items:stretch;flex-direction:column}.comm-review{padding:20px}.comm-review .actions{display:grid}.comm-counts{gap:18px}.comm-counts strong{font-size:28px}}

.auto-rule[hidden]{display:none!important}.auto-occasions{margin:20px 0 12px}.comm-consent{margin-top:24px}.comm-consent summary{cursor:pointer;font-weight:600}
.auto-occasions button[aria-pressed=true]{background:#08664e;color:#fff;border:1px solid #08664e;opacity:1}.auto-occasions button[aria-pressed=false]{background:#fff;color:#184b3e;border:1px solid #a4c2b6;opacity:1}

/* Versioned acceptance and optional communications. */
.card-legal{border:1px solid #d8dfe3;border-radius:16px;padding:20px;margin:20px 0;min-width:0}.card-legal legend{font-weight:700;padding:0 8px}.card-legal-documents details{border-bottom:1px solid #d8dfe3;padding:12px 0}.card-legal-documents summary{cursor:pointer;font-weight:600}.card-legal-text{white-space:pre-wrap;overflow-wrap:anywhere;max-height:380px;overflow:auto;padding:16px 4px;font-size:14px;line-height:1.65}.card-legal .card-legal-check{display:flex;align-items:flex-start;gap:12px;margin:18px 0;font-weight:400}.card-legal-check input[type=checkbox]{width:20px;height:20px;min-width:20px;margin:3px 0;accent-color:var(--cg-link,#01456f)}.card-legal-check small{display:block;margin-top:5px}.card-legal-gate{max-width:760px;margin:24px auto}.card-legal p{font-size:14px;line-height:1.5}.card-legal-gate h1{font-size:clamp(24px,4vw,36px)}

/* Visit-count cards only. Attendance calendars, podiums and other modules retain their styles. */
body.student-rules-home .student-rules[data-visit-active]{display:flex;flex-direction:column}
body.student-rules-home .student-rules[data-visit-active]>.sr-gallery-controls{order:2;justify-content:center;gap:16px;margin:10px 0 0}
.sv-gallery-dots{display:none}
body.student-rules-home [data-visit-active] .sv-gallery-dots{display:flex;justify-content:center;gap:8px;margin:0 0 6px}
.sv-gallery-dots i{width:7px;height:7px;border-radius:50%;background:var(--sr-line,#607085)}
.sv-gallery-dots i.is-current{background:var(--sr-lime,#b5c6e8)}
body.student-rules-home .sr-gallery-track>.sr-card.sr-visit-card{box-sizing:border-box;flex-basis:88%;width:88%;padding:22px;border:1px solid var(--cg-line,#dbe4ee);border-radius:26px;background:#fff;color:var(--cg-link,#01456f);gap:0;scrollbar-width:thin}
body.student-rules-home .sr-gallery-track>.sr-visit-card:only-child{flex-basis:100%;width:100%}
body.student-rules-home .sr-visit-card>.sv-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin:0 0 22px;flex-shrink:0}
body.student-rules-home .sr-visit-card .sv-heading h2{font-size:13px;line-height:1.4;letter-spacing:.08em;text-transform:uppercase;color:var(--cg-link,#01456f);overflow-wrap:anywhere}
.sr-visit-card .sv-heading>span{font-size:10px;line-height:1.4;flex-shrink:0;max-width:46%;padding:6px 9px;background:var(--cg-soft,#eef4fa);border-radius:10px;color:#14283c;text-transform:uppercase;text-align:center}
.sr-visit-card .sv-intro{flex-shrink:0}
.sr-visit-card .sv-eyebrow{font-size:9px;letter-spacing:.12em;margin:0 0 8px;font-weight:650}
body.student-rules-home .sr-visit-card .sv-intro h3{font-size:clamp(32px,9.8vw,46px);line-height:1.06;letter-spacing:-.035em;margin:0 0 12px;color:var(--cg-link,#01456f);overflow-wrap:anywhere}
.sr-visit-card .sv-intro h3 strong{display:block;font-weight:800}
.sr-visit-card .sv-intro>p:not(.sv-eyebrow){font-size:14px;line-height:1.5;margin:0;color:#44556a}
.sr-visit-card .sv-stamps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin:26px 0 12px;flex-shrink:0}
.sr-visit-card .sv-count-1{grid-template-columns:minmax(0,62px)}.sr-visit-card .sv-count-2{grid-template-columns:repeat(2,minmax(0,62px))}.sr-visit-card .sv-count-3{grid-template-columns:repeat(3,minmax(0,62px))}.sr-visit-card .sv-count-4{grid-template-columns:repeat(4,minmax(0,62px))}
.sv-stamp{display:grid;place-items:center;aspect-ratio:1;border:2px solid var(--cg-line,#dbe4ee);border-radius:50%;color:#64748b;font-size:18px;font-weight:650;box-sizing:border-box}
.sv-stamp.sv-earned{background:var(--cg-link,#01456f);border-color:var(--cg-link,#01456f);color:#fff}
.sv-stamp.sv-latest{outline:4px solid var(--cg-soft-primary,#e8f0f6);box-shadow:0 0 0 6px var(--cg-soft,#eff5fa)}
.sv-stamp.sv-next{border-style:dashed;border-color:var(--cg-link,#01456f);color:var(--cg-link,#01456f)}
.sv-stamp .icon{width:55%;height:55%;max-width:30px;max-height:30px}
.sr-visit-card .sv-count-label{font-size:12px;line-height:1.4;color:#44556a;margin:0 0 20px;flex-shrink:0}
.sr-visit-card .sv-reward{display:flex;align-items:center;gap:12px;padding:16px;border-radius:18px;background:var(--cg-soft,#eef4fa);color:#14283c;margin-top:auto;flex-shrink:0}
.sv-reward .sv-gift{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;background:#ffffffb3;border-radius:50%}.sv-gift .icon{width:24px;height:24px}
.sv-reward small{display:block;font-size:9px;letter-spacing:.09em;margin-bottom:5px}.sv-reward strong{display:block;font-size:17px;line-height:1.3;overflow-wrap:anywhere}
body.student-rules-home .sr-visit-card .sv-action{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;margin-top:14px;padding:10px 12px;border-radius:15px;background:var(--cg-link,#01456f);color:#fff;font-size:14px;font-weight:700;text-decoration:none;flex-shrink:0;text-align:center}
.sv-action .icon{width:20px;height:20px;flex-shrink:0}.sv-action:focus-visible{outline:3px solid var(--cg-link,#01456f);outline-offset:3px}
.sr-visit-card .sv-details{margin-top:8px;flex-shrink:0;color:#44556a}.sv-details summary{padding:12px 0;min-height:44px;box-sizing:border-box;font-size:12px;cursor:pointer}.sv-details p{font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.sv-long-goal{display:flex;align-items:center;gap:12px;margin:24px 0 12px;flex-shrink:0}.sv-long-goal progress{appearance:none;width:100%;height:12px;border:0;border-radius:20px;overflow:hidden;background:var(--cg-track,#dbe4ee);accent-color:var(--cg-link,#01456f)}.sv-long-goal progress::-webkit-progress-bar{background:var(--cg-track,#dbe4ee)}.sv-long-goal progress::-webkit-progress-value{background:var(--cg-link,#01456f)}.sv-long-goal progress::-moz-progress-bar{background:var(--cg-link,#01456f)}.sv-long-goal>span{color:var(--cg-link,#01456f)}
@media(min-width:700px){body.student-rules-home .sr-gallery-track>.sr-card.sr-visit-card{padding:28px}.sr-visit-card .sv-stamps{gap:16px;max-width:420px}.sv-reward strong{font-size:20px}}
@media(max-width:360px),(max-height:740px){body.student-rules-home .sr-gallery-track>.sr-card.sr-visit-card{padding:17px}body.student-rules-home .sr-visit-card>.sv-heading{margin-bottom:14px}.sr-visit-card .sv-stamps{gap:7px;margin-top:20px}.sr-visit-card .sv-reward{padding:12px}.sv-reward strong{font-size:15px}}

.member-studios-page{max-width:1080px;margin:0 auto;padding:clamp(24px,5vw,64px) 20px 80px}.member-studios-heading{margin-bottom:28px}.member-studios-heading h1{margin:6px 0 10px}.member-studios-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:18px}.member-studio-card{display:flex;flex-direction:column;gap:18px;min-height:260px;padding:24px;border:1px solid #dce6e2;border-radius:24px;background:#fff;color:#172b27;text-decoration:none;box-shadow:0 8px 30px #1029230d;transition:transform .15s,box-shadow .15s}.member-studio-card:hover,.member-studio-card:focus-visible{transform:translateY(-3px);box-shadow:0 14px 36px #10292322}.member-studio-art{display:grid;place-items:center;width:76px;height:76px;border-radius:20px;background:var(--studio-color,#101a20);color:#fff;font-size:26px;font-weight:800;overflow:hidden}.member-studio-art img{width:100%;height:100%;object-fit:contain;background:#fff}.member-studio-copy{display:grid;gap:5px}.member-studio-copy strong{font-size:22px;line-height:1.2}.member-studio-copy small{font-size:13px;color:#5d7069}.member-studio-open{display:flex;gap:8px;align-items:center;margin-top:auto;font-weight:700}.member-studios-empty{max-width:650px;margin:32px auto;padding:30px}.member-studios-link{align-self:flex-start;white-space:nowrap}.member-studios-return{text-align:center;margin:18px auto}@media(max-width:650px){.member-studios-page{padding:24px 16px 100px}.member-studio-card{min-height:210px}.member-studios-link{margin-top:12px}}

.member-studio-card{padding:0;gap:0;overflow:hidden}.member-studio-preview{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:164px;padding:18px 20px;border-bottom:5px solid var(--studio-accent);background-color:var(--studio-primary);background-image:linear-gradient(120deg,#09151fbb,#09151f77);color:#fff;isolation:isolate}.member-studio-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.35;z-index:-1}.member-studio-preview-top{display:flex;align-items:start;justify-content:space-between;gap:12px}.member-studio-logo,.member-studio-initials{display:grid;place-items:center;width:70px;height:70px;padding:8px;border-radius:14px;background:#fff;object-fit:contain;color:var(--studio-primary);font-size:22px;font-weight:800}.member-studio-card-label{letter-spacing:.22em;font-size:12px;font-weight:800}.member-studio-preview-bottom{font-size:18px;font-weight:800;line-height:1.2;text-shadow:0 1px 5px #09151f88}.member-studio-copy{padding:18px 22px 0}.member-studio-open{padding:14px 22px 20px}

.card-help-first-week { overflow: hidden; background: linear-gradient(155deg, #f3faf6 0%, #fff 42%, #f5f8f8 100%); }
.card-help-first-week-header { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.card-help-first-week-header h2 { margin: 6px 0; }
.card-help-first-week-header p:last-child { color: var(--muted); max-width: 630px; }
.card-help-first-week-count { min-width: 92px; border-radius: 18px; background: #173b36; color: white; padding: 13px 16px; text-align: center; }
.card-help-first-week-count strong { display: block; font-size: 1.55rem; line-height: 1; }
.card-help-first-week-count span { display: block; font-size: .72rem; margin-top: 5px; }
.card-help-trial { border-radius: 12px; padding: 14px 16px; margin: 18px 0; background: #e5f2eb; color: #174a3d; }
.card-help-trial a { font-weight: 700; }
.card-help-journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0; margin: 22px 0 12px; list-style: none; counter-reset: none; }
.card-help-journey-card { position: relative; min-width: 0; border: 1px solid #dce6e2; border-radius: 16px; padding: 18px; background: white; box-shadow: 0 4px 14px #153c2a0a; }
.card-help-journey-card[data-state="done"] { border-color: #9bcfb7; }
.card-help-journey-index { position: absolute; right: 15px; top: 15px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #284a45; font-size: .8rem; font-weight: 700; }
.card-help-journey-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 17px; background: #dff1e9; color: #18614a; font-size: 2rem; line-height: 1; }
.card-help-journey-card:nth-child(2) .card-help-journey-icon { background: #e5eff8; color: #205178; }
.card-help-journey-card:nth-child(3) .card-help-journey-icon { background: #fdf0dc; color: #87550e; }
.card-help-journey-card:nth-child(4) .card-help-journey-icon { background: #f4e9f8; color: #663b79; }
.card-help-journey-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card-help-journey-card p { margin: 0 0 16px; color: var(--muted); font-size: .88rem; line-height: 1.5; min-height: 6.8em; }
.card-help-journey-card .card-help-badge { display: inline-block; }
.card-help-journey-card a { display: block; margin-top: 13px; font-weight: 700; color: #145a46; }
.card-help-journey-note { margin-bottom: 0; font-size: .85rem; }
.card-help-home-entry { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; background: linear-gradient(105deg, #ecf8f0, #f8fbf9); border-color: #c5e4d1; }
.card-help-home-entry h2 { margin: 4px 0; }
.card-help-home-entry p:last-child { margin-bottom: 0; color: var(--muted); }
.card-help-home-entry .button { white-space: nowrap; margin-left: auto; }
.card-help-home-symbol { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border-radius: 18px; background: #d5efdf; color: #176247; font-size: 2rem; }
.card-help-real-heading { max-width: 720px; }
.card-help-real-heading h2 { margin: 5px 0 8px; }
.card-help-real-heading p:last-child { color: var(--muted); }
.card-help-real-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.card-help-real-grid figure { display: grid; grid-template-rows: minmax(0, 260px) auto; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #f0f5f4; }
.card-help-real-image { display: block; height: 260px; overflow: hidden; }
.card-help-real-grid img { display: block; width: 100%; height: 260px; object-fit: contain; object-position: center top; }
.card-help-real-grid figcaption { display: grid; gap: 4px; padding: 15px; background: white; }
.card-help-real-grid figcaption span { color: var(--muted); font-size: .88rem; }
@media (max-width: 1100px) { .card-help-journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-help-journey-card p { min-height: 0; } }
@media (max-width: 600px) { .card-help-first-week-header { flex-direction: column; } .card-help-journey { grid-template-columns: 1fr; } .card-help-journey-card { display: grid; grid-template-columns: 56px 1fr; gap: 0 15px; } .card-help-journey-icon { grid-row: 1 / 3; } .card-help-journey-card > div { grid-column: 2; } .card-help-home-entry { align-items: flex-start; flex-wrap: wrap; } .card-help-home-entry .button { margin-left: 0; width: 100%; text-align: center; } .card-help-real-grid { grid-template-columns: 1fr; } }


/* Reception check-in: one persistent, self-contained decision at a time. */
dialog.reception-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-width:480px;max-height:calc(100dvh - 24px);padding:36px 24px 24px;border:1px solid #dce5e9;border-radius:20px;background:#fff;color:#15283c;overflow:auto;box-shadow:0 24px 90px #081d3440}
.reception-dialog::backdrop{background:#10283bbb;backdrop-filter:blur(3px)}
.reception-dialog .close{position:absolute;right:12px;top:10px;width:40px;height:40px;padding:0;background:transparent;color:#526779;border:0;font-size:28px}
.reception-content{text-align:center}.reception-content h2{font-size:clamp(24px,5.5vw,30px);line-height:1.18;margin:12px 0 22px;letter-spacing:-.6px;color:#15283c}.reception-content .eyebrow{color:#08796e;margin:12px 0 0;font-size:11px}
.reception-mark{display:grid;place-items:center;width:80px;height:80px;border-radius:50%;margin:8px auto 18px;background:#e5f7f3;color:#007e70}.reception-mark .icon{width:40px;height:40px}.reception-success .reception-mark{background:#008577;color:white;animation:reception-pop .3s ease-out}.reception-duplicate .reception-mark,.reception-inactive .reception-mark,.reception-cancelled .reception-mark{background:#fff0cc;color:#8c5900}.reception-error .reception-mark{background:#fff0eb;color:#a33421}
.reception-person{display:flex;gap:16px;align-items:center;text-align:left;border:1px solid #dce5e9;border-radius:12px;padding:18px}.reception-avatar{display:grid;place-items:center;flex:0 0 58px;height:58px;border-radius:50%;background:#e3eaf2;font-size:22px;font-weight:700;color:#203d55}.reception-person strong{display:block;font-size:22px;line-height:1.2;overflow-wrap:anywhere}.reception-person div>span{display:inline-block;font-size:12px;margin-top:8px;padding:4px 9px;background:#ecf4f3;border-radius:20px;color:#17685b}
.reception-details{display:flex;flex-wrap:wrap;gap:10px 16px;text-align:left;padding:16px;border:1px solid #dce5e9;border-top:0;border-radius:0 0 12px 12px;font-size:13px;color:#40576c}.reception-details span{display:flex;align-items:center;gap:6px}.reception-details .icon{width:18px;height:18px}.reception-person:has(+.reception-details){border-radius:12px 12px 0 0}
.reception-notice{padding:15px;border-radius:10px;background:#edf6fa;color:#294c60;font-size:14px;line-height:1.55;text-align:left;margin:16px 0}.reception-success .reception-notice{background:#e8f7f1;color:#145c4b}.reception-duplicate .reception-notice,.reception-inactive .reception-notice,.reception-cancelled .reception-notice{background:#fff7e8;color:#79510e}
.reception-actions{display:grid;gap:8px;margin-top:20px}.reception-actions button{min-height:48px;width:100%;background:#007f73;color:white;border:0;border-radius:9px;font-size:15px;font-weight:700;padding:12px}.reception-actions button.secondary{background:transparent;color:#00756a}.reception-dialog [role=alert]{color:#a33421;font-size:14px;line-height:1.5}.reception-dialog [data-refresh-notice]{font-size:13px;line-height:1.5}.reception-dialog [role=alert]:empty,.reception-dialog [data-refresh-notice]:empty{display:none}.reception-dialog button:disabled{opacity:.55;cursor:wait}
@keyframes reception-pop{from{transform:scale(.8);opacity:.5}to{transform:scale(1);opacity:1}}
@media(max-width:540px){dialog.reception-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:28px 20px 16px;border-radius:18px}.reception-mark{width:68px;height:68px;margin-bottom:12px}.reception-person{padding:14px}.reception-content h2{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.reception-success .reception-mark{animation:none}}

/* Profile surfaces own their contrast tokens instead of inheriting the dark shell. */
body.member-workspace .client-growth-profile{--ink:var(--cg-text,#172331);--muted:var(--cg-muted,#526273);color:var(--cg-text,#172331);color-scheme:light}
body.member-workspace .client-profile-panel,body.member-workspace .client-profile-stats>*{background:var(--cg-surface,#fff);color:var(--cg-text,#172331)}
body.member-workspace .client-growth-profile :is(h2,h3,h4,dt,dd,summary){color:var(--cg-text,#172331)}
body.member-workspace .client-growth-profile :is(.muted,.tiny,.eyebrow),body.member-workspace .client-animal-hero p:not(.eyebrow),body.member-workspace .client-animal-hero small,body.member-workspace .client-profile-stats p,body.member-workspace .client-community-count{color:var(--cg-muted,#526273)}
body.member-workspace .client-growth-profile :is(.client-text-link,.client-section-link,.client-account-details a),body.member-workspace .client-animal-hero h2,body.member-workspace .client-community-count strong{color:var(--cg-link,#01456f)}
body.member-workspace .client-growth-profile .client-rewards-link{background:var(--cg-button);color:var(--cg-on-button)}
body.member-workspace .client-growth-profile .story-trigger{background:var(--cg-soft);color:var(--cg-link);border-color:var(--cg-line)}

/* Catalogs: records first, creation in an accessible native modal. */
.catalog-add{margin:0 0 18px;min-height:44px}
.catalog-modal{width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;border:1px solid var(--line,#dce4e7);border-radius:24px;overflow:auto;overscroll-behavior:contain}
.catalog-modal::backdrop{background:rgb(10 24 40 / .65);backdrop-filter:blur(3px)}
.catalog-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.catalog-modal-heading h2{font-size:24px;margin:0}.catalog-modal-heading button{min-height:44px;flex-shrink:0}
.catalog-modal>.panel{padding:0;margin:0;border:0;box-shadow:none;background:transparent}
.catalog-modal form{margin:0}.catalog-modal .inline-error{position:sticky;top:0;background:var(--surface,#fff);padding:12px;z-index:2}
.catalog-modal .comm-member-list{max-height:32dvh;overflow:auto}
@media(max-width:600px){.catalog-modal{padding:18px;width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:20px}.catalog-modal-heading h2{font-size:21px}}

.catalog-rule-modal{width:min(1040px,calc(100vw - 24px))}

/* Mobile catalog actions stay in the card; modal fields scroll independently. */
.catalog-modal[open]{display:flex;flex-direction:column;overflow:hidden;max-height:calc(100dvh - 32px)}
.catalog-modal-heading{flex-shrink:0}
.catalog-modal-content{min-height:0;overflow:hidden}
.catalog-modal-content:not(form){display:flex;flex-direction:column}
.catalog-modal-content>p{flex-shrink:0}
.catalog-modal form{display:flex;flex-direction:column;min-height:0;overflow:hidden;max-width:none;gap:0}
.catalog-modal-fields{min-height:0;overflow:auto;overscroll-behavior:contain;padding:2px 4px 12px;display:flex;flex-direction:column;gap:16px}
.catalog-modal-footer{flex-shrink:0;padding:14px 0 0;border-top:1px solid var(--line,#dce4e7);background:var(--surface,#fff)}
.catalog-modal-footer .wizard-controls,.catalog-modal-footer .actions{margin:0;padding:0;border:0;flex-wrap:wrap}
.catalog-modal-footer button{min-height:44px}
@media(max-width:700px){
 .catalog-table-wrap{overflow:visible;padding:12px}
 .catalog-table-wrap table.catalog-table{display:block;min-width:0;width:100%}
 .catalog-table thead{display:none}
 .catalog-table tbody{display:grid;gap:12px;width:100%}
 .catalog-table tbody tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:16px;border:1px solid var(--line,#dce4e7);border-radius:16px;background:#fff;min-width:0}
 .catalog-table tbody tr[hidden]{display:none!important}
 .catalog-table td{display:block;min-width:0;padding:0;border:0;overflow-wrap:anywhere;white-space:normal}
 .catalog-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;margin-bottom:6px}
 .catalog-table td:first-child::before,.catalog-table .catalog-row-actions::before{display:none}
 .catalog-table td[colspan],.catalog-table .catalog-row-actions{grid-column:1/-1}
 .catalog-table td[colspan]::before{display:none}
 .catalog-table .catalog-row-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--line,#dce4e7)}
 .catalog-table td .actions{display:flex;flex-wrap:wrap;gap:8px;width:100%}
 .catalog-table .catalog-row-actions button,.catalog-table .catalog-row-actions .button{flex:1 1 120px;min-height:44px;white-space:normal;margin:0}
 .catalog-table .person-cell{align-items:flex-start;gap:8px;min-width:0}.catalog-table .person-cell>div{min-width:0}.catalog-table .person-cell small{overflow-wrap:anywhere}
 .catalog-modal[open]{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);margin:auto;padding:16px;width:calc(100vw - 16px)}
 .catalog-modal-content,.catalog-modal-content form{flex:1}
 .catalog-modal-heading{margin-bottom:12px}.catalog-modal-fields{flex:1}
 .catalog-modal-footer{padding-bottom:env(safe-area-inset-bottom,0px)}
 .catalog-modal-footer>button{width:100%}.catalog-modal-footer .actions>button,.catalog-modal-footer .wizard-controls>button{flex:1;min-width:0;white-space:normal}
 .comm-history .actions{display:flex;flex-wrap:wrap;gap:8px}.comm-history .actions>button{flex:1 1 130px;min-height:44px;white-space:normal}
}

/* Reception poster: paper composition, independent of the membership-card layout. */
.printed-reception-poster{display:flex;flex-direction:column;gap:22px;padding:28px;background:#fff;color:#162c28;border:1px solid #cbd8d3;border-radius:18px;text-align:center}
.reception-poster-heading{border-bottom:1px solid #cbd8d3;padding-bottom:18px}
.printed-reception-poster .reception-poster-studio{font-size:27px;font-weight:800;line-height:1.15;margin:0;overflow-wrap:anywhere}
.printed-reception-poster .reception-poster-location{font-size:14px;margin:7px 0 0;color:#4a5e57}
.printed-reception-poster .eyebrow{font-size:11px;letter-spacing:.18em;color:#355b4c}
.printed-reception-poster h2{font-size:38px;line-height:1.05;letter-spacing:-.035em;margin:12px 0;color:#162c28}
.reception-poster-title>p:last-child{margin:0;font-size:14px;color:#4a5e57}
.printed-reception-poster .reception-poster-qr{width:min(100%,300px);height:auto;margin:0 auto 10px;background:white;object-fit:contain;border-radius:0}
.reception-poster-code>strong{font-size:13px;display:block}
.reception-poster-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0;margin:0;list-style:none}
.reception-poster-steps li{display:grid;justify-items:center;gap:8px;font-size:13px;line-height:1.4}
.reception-poster-steps b{display:grid;place-items:center;border:1px solid #859b91;border-radius:50%;width:28px;height:28px;font-size:14px}
.reception-poster-footer{border-top:1px solid #cbd8d3;padding-top:18px;display:grid;justify-items:center;gap:10px}
.printed-reception-poster .brand{color:#162c28;display:flex;align-items:center;justify-content:center;gap:8px}
.printed-reception-poster .brand img{width:85px;height:auto;aspect-ratio:auto;margin:0}
.printed-reception-poster .brand>span{font-size:10px;letter-spacing:.2em}
.reception-poster-footer p{font-size:11px;line-height:1.5;margin:0;color:#4a5e57}
@media print{
 html:has(.printed-reception-dialog[open]),body:has(.printed-reception-dialog[open]){background:#fff!important;margin:0!important;padding:0!important;height:auto!important;overflow:visible!important}
 body>dialog.printed-reception-dialog[open]{inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;padding:0!important;margin:0!important;overflow:visible!important;color:#162c28!important;background:#fff!important}
 .printed-reception-content{display:block!important}
 .printed-reception-poster{box-sizing:border-box;width:100%;max-width:190mm;height:250mm;margin:0 auto;padding:10mm;gap:6mm;border:1pt solid #a9bbb3;border-radius:0;break-inside:avoid;break-after:avoid;box-shadow:none}
 .reception-poster-heading{padding-bottom:5mm}
 .printed-reception-poster .reception-poster-studio{font-size:25pt}
 .printed-reception-poster .reception-poster-location{font-size:12pt;margin-top:2mm}
 .printed-reception-poster .eyebrow{font-size:9pt}
 .printed-reception-poster h2{font-size:34pt;margin:3mm 0;line-height:1.05}
 .reception-poster-title>p:last-child{font-size:11pt}
 .printed-reception-poster .reception-poster-qr{width:88mm;height:88mm;max-width:none;margin:0 auto 3mm}
 .reception-poster-code>strong{font-size:11pt}
 .reception-poster-steps{gap:4mm}.reception-poster-steps li{font-size:11pt;gap:2mm}.reception-poster-steps b{width:7mm;height:7mm;font-size:10pt}
 .reception-poster-footer{margin-top:auto;padding-top:4mm;gap:3mm}.reception-poster-footer p{font-size:9pt}
 .printed-reception-poster .brand img{width:28mm;height:auto;max-width:28mm}.printed-reception-poster .brand>span{font-size:9pt}
}

@media print{
 @page reception-poster{size:A4 portrait;margin:10mm}
 body:has(>.printed-reception-dialog[open]),body>dialog.printed-reception-dialog[open]{page:reception-poster}
}
.printed-reception-poster .reception-poster-footer{display:grid!important;text-align:center;letter-spacing:normal;width:100%;padding:18px 0 0;margin:0;background:transparent}
@media print{.printed-reception-poster .reception-poster-footer{margin-top:auto;padding:4mm 0 0}}

.card-launch-checklist { background: linear-gradient(115deg, #eaf7ee, #fff); border-color: #c5e4d1; margin-bottom: 20px; }
.card-launch-intro { margin-bottom: 22px; }
.card-launch-intro h2 { margin: 4px 0 8px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.12; }
.card-launch-intro p:last-child { margin: 0; color: var(--muted); }
.card-launch-focus { padding: clamp(20px, 3vw, 30px); border: 1px solid #b9dcc7; border-radius: 16px; background: #fff; }
.card-launch-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.card-launch-heading h3 { margin: 4px 0 8px; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.card-launch-heading p { max-width: 650px; line-height: 1.5; }
.card-launch-trial { margin: 16px 0 0; font-weight: 700; color: #185b43; }
.card-launch-upcoming { margin-top: 14px; padding: 19px 21px; border: 1px solid #d4e5d9; border-radius: 14px; background: #f9fcf9; }
.card-launch-upcoming .eyebrow { margin-bottom: 7px; }
.card-launch-upcoming h3 { margin: 0 0 7px; font-size: 1.1rem; }
.card-launch-upcoming p:not(.eyebrow) { max-width: 750px; margin: 0 0 10px; color: var(--muted); line-height: 1.5; }
.card-launch-upcoming a { color: #145a46; font-weight: 750; }
.card-launch-count { flex: none; border-radius: 99px; padding: 8px 12px; background: #d9efe1; color: #185b43; font-size: .82rem; font-weight: 750; }
.card-launch-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 22px 0 12px; }
.card-launch-steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; border: 1px solid #d8e5db; background: #fff; border-radius: 10px; padding: 10px; font-size: .82rem; }
.card-launch-steps li[data-state="done"] { border-color: #9bcfb7; }
.card-launch-steps li > span:first-child { color: #217754; font-weight: 800; }
.card-launch-steps small { grid-column: 2; color: var(--muted); }
.card-launch-checklist > .muted { margin-bottom: 0; font-size: .8rem; }

.student-header .student-brand{display:flex;align-items:center;justify-content:center;min-height:58px;min-width:116px;max-width:220px;padding:10px 14px;border-radius:12px;background:var(--page-primary);color:var(--page-primary-text)}
.student-header .student-brand .study-logo{max-width:100%;max-height:44px}
.student-enrollment .enroll-intro h1{font-size:30px;line-height:1.15;letter-spacing:-.035em;margin:14px 0;color:#182c32}
.student-enrollment .enrollment-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
.enroll-code-notice{display:grid;gap:4px;margin:0 0 18px;padding:14px 16px;border:1px solid #b8d8c8;border-radius:12px;background:#fff;color:#234336;font-size:13px;line-height:1.45}
.enroll-code-notice a{color:#155638;font-weight:700}
.enroll-code-first{padding:13px;border:1px solid #bdd8c9;border-radius:12px;background:#f4faf6}
.enroll-fields h2{margin:0;font-size:21px;color:#182c32}
.enroll-fields-note{margin:9px 0 19px;font-size:13px;color:#52665b}

/* Keep launch steps readable after the selective production overlay. */
@media (max-width: 700px) { .card-launch-heading { flex-direction: column; } .card-launch-focus { padding: 18px; } .card-launch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card-launch-checklist .actions .button { flex: 1 1 100%; text-align: center; } }
/* Attendance API: compact technical help on demand. */
.integration-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.integration-title p{margin-bottom:0}.integration-title>button{flex:none;min-height:44px}
.integration-help-dialog{box-sizing:border-box;width:min(760px,calc(100vw - 32px));max-width:760px;max-height:calc(100dvh - 32px);padding:28px;border:1px solid #d9e6e1;border-radius:22px;background:#fff;color:#142b39;overflow:auto;box-shadow:0 22px 80px #071b2840}
.integration-help-dialog::backdrop{background:#0b1d2eb3;backdrop-filter:blur(3px)}
.integration-help-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.integration-help-heading h2{margin:5px 0 8px;font-size:27px}.integration-help-heading p:last-child{margin:0;color:#536674;line-height:1.5}.integration-help-heading>button{flex:none;min-height:40px}
.integration-help-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:24px 0;padding:0;list-style:none;counter-reset:integration-step}.integration-help-steps li{position:relative;display:grid;gap:4px;min-width:0;padding:15px 15px 15px 55px;border:1px solid #e1e9e7;border-radius:13px;background:#f8fbfa;counter-increment:integration-step}.integration-help-steps li:before{content:counter(integration-step);position:absolute;top:15px;left:15px;display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#dcefe5;color:#176447;font-weight:800}.integration-help-steps strong{font-size:14px}.integration-help-steps span{font-size:13px;line-height:1.5;color:#526778}
.integration-help-tech{padding:19px;border:1px solid #dce9e3;border-radius:15px;background:#fff}.integration-help-tech h3{margin:0 0 14px;font-size:18px}.integration-help-line{display:grid;gap:6px;margin:12px 0}.integration-help-line>span{font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#547165}.integration-help-line code,.integration-help-tech pre{display:block;max-width:100%;box-sizing:border-box;padding:11px 13px;border:1px solid #dde6e7;border-radius:9px;background:#f4f7f8;color:#18384a;font-size:12px;line-height:1.5;overflow-wrap:anywhere}.integration-help-tech>p{font-size:13px;line-height:1.5;color:#526778}.integration-help-pickers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:17px 0}.integration-help-pickers label{min-width:0;font-size:13px;font-weight:700}.integration-help-pickers select{width:100%;margin-top:5px}.integration-help-tech details{border-top:1px solid #e3eae7;padding-top:13px}.integration-help-tech summary{color:#176447;font-weight:800;cursor:pointer}.integration-help-tech pre{max-height:210px;white-space:pre;overflow:auto}.integration-help-warning{padding:11px 13px;border-radius:9px;background:#fff7e7;color:#654b19!important}.integration-help-downloads{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 10px}.integration-help-downloads button{flex:1;min-width:180px;min-height:44px}.integration-help-tech>small{display:block;color:#647785;line-height:1.45}
@media(max-width:600px){.integration-title{flex-direction:column}.integration-title>button{width:100%}.integration-help-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:92dvh;padding:23px 17px calc(18px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}.integration-help-heading h2{font-size:23px}.integration-help-steps{grid-template-columns:1fr;gap:8px;margin:18px 0}.integration-help-pickers{grid-template-columns:1fr}.integration-help-downloads{flex-direction:column}}
/* Attendance integration hub: show progress and the next action before technical controls. */
.integration-hub{display:grid;gap:18px}.integration-hub-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.integration-hub-heading h2{margin:3px 0 6px}.integration-hub-heading p:last-child{margin:0;color:#657685}.integration-payment-link{flex:none;min-height:44px;display:inline-flex;align-items:center}
.integration-progress,.integration-connections{margin:0}.integration-progress-head,.integration-connections-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.integration-progress-head h3,.integration-connections-head h3{margin:0 0 5px}.integration-progress-head p,.integration-connections-head p{margin:0;color:#617482}.integration-state{display:inline-flex;align-items:center;gap:7px;flex:none;padding:7px 11px;border-radius:99px;background:#fff4dc;color:#725317;font-size:12px;font-weight:800;line-height:1.25}.integration-state:before{content:"";width:7px;height:7px;flex:none;border-radius:50%;background:currentColor}.integration-state.is-ready{background:#e4f3e9;color:#176547}.integration-state.is-revoked{background:#eef1f2;color:#5c6971}
.integration-progress-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:22px 0;padding:0;list-style:none}.integration-progress-steps li{display:flex;gap:10px;min-width:0;padding:14px;border:1px solid #e2e9e6;border-radius:12px;background:#fbfcfc}.integration-progress-steps li>span{display:grid;place-items:center;flex:none;width:27px;height:27px;border-radius:50%;background:#fff0d1;color:#73551c;font-weight:800}.integration-progress-steps li.is-complete>span{background:#e0f0e6;color:#136745}.integration-progress-steps strong{display:block;font-size:14px;line-height:1.35}.integration-progress-steps small{display:block;margin-top:3px;color:#637686;font-size:12px;line-height:1.35}
.integration-next{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 17px;border-radius:12px;background:#f0f8f2}.integration-next strong,.integration-next small{display:block}.integration-next strong{color:#1c5238}.integration-next small{margin-top:3px;color:#50715d;font-size:13px}.integration-next>button{flex:none;background:#137c50;color:#fff;border-color:#137c50;min-height:44px}.integration-next.is-ready{background:#eef8f2}
.integration-connections-head>button{flex:none;min-height:44px}.integration-token:empty{display:none}.integration-token:not(:empty){padding:16px;margin-top:16px;border:1px solid #b7ddc5;border-radius:11px;background:#effaf2}.integration-token code{display:block;overflow-wrap:anywhere}.integration-connection-list{display:grid;gap:12px;margin-top:17px}.integration-connection{padding:16px;border:1px solid #e2e9e6;border-radius:13px;background:#fff}.integration-connection-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.integration-connection h4{margin:0 0 4px;font-size:17px}.integration-connection-head p,.integration-connection>p{margin:0;color:#647784;font-size:13px}.integration-connection>p{margin-top:10px}.integration-connection-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:13px}.integration-connection-actions button{min-height:42px}.integration-credential-options{margin-top:12px;padding-top:11px;border-top:1px solid #e5ece9}.integration-credential-options summary{color:#536a61;font-size:13px;font-weight:700}.integration-credential-options p{margin:8px 0;color:#657783;font-size:13px}.integration-credential-options button{margin:4px 8px 0 0}.integration-empty{margin:16px 0 0;color:#667782}
.integration-form-note{color:#586d7a;font-size:14px;line-height:1.5}.integration-mappings-dialog{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.integration-mapping-rows{display:grid;gap:8px;margin:14px 0}.integration-mapping-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid #e0e9e6;border-radius:10px}.integration-mapping-row strong,.integration-mapping-row small{display:block}.integration-mapping-row small{margin-top:3px;color:#627686}.integration-mapping-row code{overflow-wrap:anywhere}.integration-mapping-row button{flex:none;min-height:40px}
@media(max-width:760px){.integration-progress-steps{grid-template-columns:1fr}.integration-hub-heading,.integration-progress-head,.integration-connections-head{flex-wrap:wrap}.integration-next{align-items:flex-start}.integration-payment-link{width:100%;justify-content:center}}
@media(max-width:600px){.integration-hub{gap:12px}.integration-progress,.integration-connections{padding:18px}.integration-hub-heading{padding:0 2px}.integration-progress-head .integration-state{margin-top:2px}.integration-progress-steps{margin:16px 0}.integration-next{flex-direction:column}.integration-next>button{width:100%}.integration-connections-head>button{width:100%}.integration-connection-head{flex-direction:column}.integration-connection-actions button{flex:1;min-width:145px}.integration-mappings-dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:90dvh;border-radius:20px 20px 0 0}.integration-mapping-row{align-items:flex-start;flex-direction:column}.integration-mapping-row button{width:100%}}
.integration-token-dialog{width:min(520px,calc(100vw - 24px))}.integration-token-dialog h2{margin:0 0 8px}.integration-token-dialog p{line-height:1.5;color:#596f78}.integration-token-dialog code{display:block;padding:15px;border-radius:10px;border:1px solid #b8d9c6;background:#eff9f2;color:#153f2b;font-size:14px;overflow-wrap:anywhere;user-select:all}.integration-token-dialog .actions{display:flex;gap:8px;margin:16px 0}.integration-token-dialog .actions button{flex:1;min-height:44px}

.workspace-bar-actions { display:flex; align-items:center; justify-content:flex-end; gap:20px; min-width:0; margin-left:auto; }
.workspace-account { position:relative; flex:none; }
.workspace-account summary { display:flex; align-items:center; gap:9px; min-height:44px; max-width:220px; padding:5px 8px; border-radius:10px; cursor:pointer; list-style:none; font-weight:700; color:var(--ink); }
.workspace-account summary::-webkit-details-marker { display:none; }
.workspace-account summary:hover,.workspace-account[open] summary { background:#eef5f1; }
.workspace-account summary:focus-visible,.workspace-account-dropdown a:focus-visible,.workspace-account-dropdown button:focus-visible { outline:3px solid var(--green); outline-offset:2px; }
.workspace-account-avatar { display:grid; place-items:center; flex:0 0 32px; width:32px; height:32px; border-radius:50%; background:#dcefe6; color:#155f46; font-size:11px; font-weight:800; }
.workspace-account-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.workspace-account-chevron { color:var(--muted); font-size:18px; }
.workspace-account-dropdown { position:absolute; top:calc(100% + 7px); right:0; width:min(260px,calc(100vw - 24px)); padding:8px; border:1px solid var(--line); border-radius:12px; background:white; box-shadow:0 14px 35px #10292326; z-index:30; }
.workspace-account-dropdown p { margin:5px 9px 8px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.workspace-account-dropdown a,.workspace-account-dropdown button { display:flex; align-items:center; gap:10px; width:100%; min-height:42px; padding:9px 11px; border:0; border-radius:8px; background:transparent; color:var(--ink); text-decoration:none; font:inherit; font-size:14px; text-align:left; cursor:pointer; }
.workspace-account-dropdown a:hover,.workspace-account-dropdown button:hover { background:#f0f6f3; }
.workspace-account-dropdown svg { width:18px; height:18px; }
.account-profile { max-width:680px; margin:24px auto; }
.account-profile h1 { margin:6px 0 10px; }
.account-profile-identity { display:flex; align-items:center; gap:16px; padding:18px; margin:25px 0; border:1px solid var(--line); border-radius:13px; background:#f7faf8; }
.account-profile-identity .workspace-account-avatar { width:52px; height:52px; flex-basis:52px; font-size:17px; }
.account-profile-identity strong,.account-profile-identity span { display:block; overflow-wrap:anywhere; }
.account-profile-identity span { color:var(--muted); font-size:13px; margin-top:3px; }
.account-profile form { display:grid; gap:16px; }
.account-profile form button { justify-self:start; }

.sync-journey { display:grid; gap:20px; }
.sync-journey [hidden] { display:none !important; }
.sync-intro h2 { margin:4px 0 8px; }
.sync-intro p:last-child { margin:0; color:var(--muted); }
.sync-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.sync-choices button { display:grid; justify-items:start; gap:5px; min-height:110px; padding:16px; border:1px solid var(--line); border-radius:12px; background:#fff; color:var(--ink); text-align:left; cursor:pointer; }
.sync-choices button[aria-pressed="true"] { border:2px solid #2d8b63; background:#eff8f3; padding:15px; }
.sync-choices .sync-choice-icon { display:grid; place-items:center; width:42px; height:42px; border-radius:12px; background:#dcefe5; color:#186a49; }
.sync-choice-icon svg { width:24px; height:24px; }
.sync-choices strong { font-size:15px; }
.sync-choices small { color:var(--muted); line-height:1.35; }
.sync-steps { display:flex; gap:8px; flex-wrap:wrap; margin:4px 0 18px; }
.sync-steps span { padding:7px 11px; border-radius:20px; background:#eef3f0; color:#335347; font-size:12px; font-weight:700; }
.sync-manager { padding:18px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.sync-manager>summary { cursor:pointer; font-size:18px; font-weight:750; }
.sync-manager>summary small { display:block; margin-top:4px; color:var(--muted); font-size:13px; font-weight:400; }
.sync-manager-body { display:grid; gap:18px; margin-top:20px; }
.sync-manager-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.sync-manager-heading h3 { margin:0; }
.sync-manager-body>.integration-hub { border-top:1px solid var(--line); padding-top:20px; }
.sync-manager-body>.integration-hub .integration-payment-link { display:none; }
.sync-manager-body .integration-hub-heading h3 { margin:0 0 5px; }
.sync-manager-body .integration-connections-head h4 { margin:0 0 5px; font-size:18px; }
.integration-progress>summary { cursor:pointer; font-weight:700; }
.integration-progress[open]>summary { margin-bottom:18px; }
.sync-contract { margin:18px 0; padding:16px; border:1px solid var(--line); border-radius:12px; background:#f8fbf9; }
.sync-contract summary { cursor:pointer; font-weight:750; }
.sync-contract pre { max-height:360px; overflow:auto; padding:15px; border-radius:9px; background:#10221d; color:#e8f6ef; font-size:12px; line-height:1.5; }
.sync-journey [data-sync-config] { display:grid; gap:14px; max-width:760px; }
.sync-note { color:var(--muted); font-size:13px; line-height:1.45; }
.sync-test-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.sync-test-actions [role="status"] { font-size:13px; }
.sync-result { padding:18px; border:1px solid #add8bd; border-radius:12px; background:#f3faf5; }
.sync-success { color:#155f41; font-weight:800; }
.sync-counts { display:flex; gap:28px; margin:18px 0; }
.sync-counts>div { display:grid; gap:2px; }
.sync-counts strong { font-size:30px; line-height:1; }
.sync-counts span { color:var(--muted); font-size:12px; }
.sync-result td small { display:block; color:var(--muted); }
.sync-accept,.sync-auto { display:flex; align-items:center; gap:10px; }
.sync-source { padding:16px; margin-top:12px; border:1px solid var(--line); border-radius:12px; }
.sync-source h4 { margin:0 0 8px; }
.sync-source-url { overflow-wrap:anywhere; }
.sync-source button { margin-right:8px; }
@media(max-width:700px){.sync-choices{grid-template-columns:1fr}.sync-choices button{min-height:76px}.sync-counts{gap:20px}}

/* The whole studio sidebar scrolls as one menu. */
.sidebar:has(.studio-menu){overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
.sidebar:has(.studio-menu) nav{flex:none;min-height:auto;overflow:visible}
/* Growth custom domain: keep DNS values readable on narrow screens. */
.studio-domain{box-sizing:border-box;width:min(100%,820px);max-width:820px;min-width:0}
.studio-domain-status{min-width:0;margin:24px 0;padding:20px 22px;border:1px solid #d5e5de;border-radius:16px;background:#f3f8f5}
.studio-domain-status.is-waiting{border-color:#d9dfb6;background:#f8faed}
.studio-domain-status.is-active{border-color:#a7d9bc;background:#ecf8f0}
.studio-domain-status>strong{display:block;font-size:19px;color:#173f33}
.studio-domain-status p{margin:8px 0 0;line-height:1.5}
.studio-domain-address{font-weight:700;overflow-wrap:anywhere}
.studio-domain-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 28px;padding:0;list-style:none;counter-reset:domain-step}
.studio-domain-steps li{min-width:0;padding:12px;border:1px solid #dae5df;border-radius:12px;color:#596b65;background:#f8faf9;font-size:12px;line-height:1.4}
.studio-domain-steps li::before{counter-increment:domain-step;content:counter(domain-step);display:inline-grid;place-items:center;width:22px;height:22px;margin-right:6px;border:1px solid currentColor;border-radius:50%;font-weight:700}
.studio-domain-steps li.done{background:#eaf6ef;border-color:#b7dac4;color:#1b6548}
.studio-domain-steps li.current{background:#edf5e0;border-color:#bed698;color:#315d25;font-weight:700}
.studio-domain-records{display:grid;gap:16px;min-width:0;margin:26px 0}
.studio-domain-record{min-width:0;padding:20px;border:1px solid #d9e4df;border-radius:16px;background:#f8faf9}
.studio-domain-record h3{margin:0 0 16px;font-size:17px}
.studio-domain-field{min-width:0;margin-top:15px}
.studio-domain-field>span{display:block;margin-bottom:6px;color:#52655e;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.studio-domain-field>div{display:flex;align-items:flex-start;gap:10px;min-width:0}
.studio-domain-field code{display:block;flex:1;min-width:0;box-sizing:border-box;padding:12px 14px;border:1px solid #d7e3dc;border-radius:10px;background:#fff;color:#143a2f;font-size:13px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;word-break:break-word;user-select:all}
.studio-domain-field .studio-domain-copy{flex:none;min-height:43px;margin:0;padding:8px 12px;font-size:12px}
.studio-domain-feedback{padding:13px 16px;margin:18px 0 0;border:1px solid #a7d9bc;border-radius:11px;background:#ecf8f0;color:#194a35;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.studio-domain-feedback.is-error{border-color:#e6b3aa;background:#fff0ed;color:#8c2e26}
@media(max-width:760px){.studio-domain-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.studio-domain{margin:12px auto}.studio-domain-status,.studio-domain-record{padding:16px}.studio-domain-field>div{flex-direction:column}.studio-domain-field code,.studio-domain-field .studio-domain-copy{width:100%}}
.studio-domain-record-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.studio-domain-record-heading h3{margin:0}
.studio-domain-check{margin:0;padding:5px 9px;border-radius:20px;background:#fff3dd;color:#775012;font-size:12px;font-weight:700}
.studio-domain-check.is-ok{background:#e1f3e8;color:#1b6548}
.studio-domain-check.is-unknown{background:#e9edf1;color:#52616b}

/* Legal acceptance stays readable regardless of the studio's dark theme. */
body .card-legal-gate{background:#fff;color:#12213c;padding:24px;max-width:760px}
body .card-legal-gate :is(h1,p,span,label,legend,small,summary,.card-legal-text){color:#12213c}
body .card-legal-gate :is(.eyebrow,small){color:#526273}
body .card-legal-gate button{background:#01456f;color:#fff}
body .card-legal-gate button.secondary{background:#eef3f6;color:#12213c}
body .card-legal-gate [role=alert]{color:#b42336}
body .card-legal-gate input:focus-visible,body .card-legal-gate summary:focus-visible{outline:3px solid #01456f;outline-offset:3px}
@media(max-width:600px){body .card-legal-gate{margin:16px auto;padding:20px}body .card-legal-gate .card-legal{padding:14px}body .card-legal-gate button{min-height:48px;white-space:normal}}
