/* Variables */
:root {
  --surface-night: #fbf7ec;
  --surface-panel: #fffdf6;
  --surface-card: #ffffff;
  --surface-raised: #fff6dc;
  --surface-inset: #fbf5e4;
  --logo-navy: #0d1a2e;
  --line-quiet: #f0e7cf;
  --line-firm: #e2d3a6;
  --gold-soft: #946500;
  --gold-main: #e3a917;
  --gold-deep: #b47d05;
  --gold-ink: #2b1e02;
  --text-strong: #241b0a;
  --text-body: #4d4433;
  --text-muted: #786d56;
  --tone-green: #2c8454;
  --tone-amber: #a86e00;
  --tone-alert: #bf4238;
  --card-gutter: 18px;
  --radius-control: 7px;
  --radius-tile: 11px;
  --radius-card: 13px;
  --radius-frame: 19px;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease-settle: cubic-bezier(0.2, 0.75, 0.2, 1);
  --ease-lift: cubic-bezier(0.34, 1.32, 0.64, 1);
  --duration-touch: 160ms;
  --duration-hover: 230ms;
  --duration-panel: 380ms;
  --duration-reveal: 540ms;
  --mark-overview: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E");
  --mark-library: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4.5A1.5 1.5 0 0 1 6.5 3H19v15H6.5A1.5 1.5 0 0 0 5 19.5zM5 19.5A1.5 1.5 0 0 0 6.5 21H19v-3M9 7h6'/%3E%3C/svg%3E");
  --mark-package: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7.5L12 3l9 4.5v9L12 21l-9-4.5zM3 7.5l9 4.5 9-4.5M12 12v9'/%3E%3C/svg%3E");
  --mark-consultations: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v14H4zM4 10h16M8 3v5M16 3v5M9 14.5l2 2 4-4'/%3E%3C/svg%3E");
  --mark-tools: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.3 5.7L20 11l-5.7 2.3L12 19l-2.3-5.7L4 11l5.7-2.3zM19 17l.8 2.2L22 20l-2.2.8L19 23'/%3E%3C/svg%3E");
  --mark-clients: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8zM2 21a7 7 0 0 1 14 0M16 3.5a4 4 0 0 1 0 7.5M22 21a7 7 0 0 0-4-6.3'/%3E%3C/svg%3E");
  --mark-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18zM12 7v5l3.5 2'/%3E%3C/svg%3E");
  --mark-content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3L2 8l10 5 10-5zM2 13l10 5 10-5M2 17.5l10 5 10-5'/%3E%3C/svg%3E");
  --mark-payments: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3zM3 10h18M7 15h4'/%3E%3C/svg%3E");
  --mark-team: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6zM9 12l2 2 4-4'/%3E%3C/svg%3E");
  --mark-requirements: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h8l3 3v13H5V4zM9 10h6M9 14h6M9 18h3'/%3E%3C/svg%3E");
  --mark-settings: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.6'/%3E%3Cpath d='M4.5 20.5c1-4 4-6 7.5-6s6.500 2 7.500 6'/%3E%3C/svg%3E");
  --mark-lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 10h12v11H6zM8.5 10V7a3.5 3.5 0 0 1 7 0v3M12 14.5v3'/%3E%3C/svg%3E");
  color-scheme: light;
}

/* Base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1080px 610px at 91% -14%, rgba(249, 205, 70, 0.34), transparent 63%),
    radial-gradient(860px 540px at -9% 109%, rgba(255, 214, 92, 0.3), transparent 66%),
    var(--surface-night);
  background-attachment: fixed;
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 700;
}

.section-note strong,
.fine-print strong,
.format-price strong,
.lead-text strong,
.check-line strong,
.summary-list dd strong,
.booking-where strong,
.appointment-where strong,
.glance-detail strong,
.data-table strong {
  color: var(--text-strong);
}

a {
  color: var(--gold-soft);
}

img {
  max-width: 100%;
  display: block;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--surface-inset);
  border: 1px solid var(--line-quiet);
  border-radius: 5px;
  padding: 2px 6px;
  word-break: break-all;
}

:focus-visible {
  outline: 2px solid var(--gold-main);
  outline-offset: 3px;
}

::selection {
  background: rgba(227, 169, 23, 0.32);
  color: var(--text-strong);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--surface-night);
  transition: opacity var(--duration-panel) ease, visibility 0s linear var(--duration-panel);
  animation: loader-retire 460ms ease 2.2s forwards;
}

.loader-ring {
  position: relative;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  transition: transform 460ms var(--ease-lift), opacity 380ms ease;
}

.loader-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 18%, var(--gold-deep) 42%, var(--gold-soft) 74%, transparent 76% 100%);
  -webkit-mask: radial-gradient(circle, transparent 47px, #000 48px);
  mask: radial-gradient(circle, transparent 47px, #000 48px);
  animation: ring-turn 1.15s linear infinite;
}

.loader-ring img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(227, 169, 23, 0.4);
  background: var(--logo-navy);
}

.state-ready .page-loader {
  opacity: 0;
  visibility: hidden;
}

.state-ready .loader-ring {
  transform: scale(1.07);
  opacity: 0;
}

.state-busy .page-loader {
  animation: none;
  opacity: 0.94;
  visibility: visible;
  transition: opacity var(--duration-hover) ease;
}

.state-busy .loader-ring {
  transform: none;
  opacity: 1;
}

/* Shell */
.portal-shell {
  min-height: 100dvh;
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 18px;
  background: rgba(255, 252, 243, 0.93);
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, rgba(227, 169, 23, 0.52), rgba(226, 209, 160, 0.9) 58%) 1;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.menu-toggle {
  min-height: 42px;
  padding: 0 15px;
  border-radius: var(--radius-control);
  border: 1px solid var(--line-firm);
  background: transparent;
  color: var(--text-strong);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.side-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 18px 28px;
  background: linear-gradient(187deg, #fffefa 0%, #fdf6e1 57%, #fbf0d2 100%);
  border-bottom: 1px solid var(--line-quiet);
  box-shadow: inset -1px 0 0 rgba(227, 169, 23, 0.13), 18px 0 46px -34px rgba(122, 88, 12, 0.27);
}

.state-scripted .side-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: min(86vw, 312px);
  overflow-y: auto;
  border-bottom: 0;
  border-right: 1px solid var(--line-quiet);
  transform: translateX(-104%);
  transition: transform var(--duration-panel) var(--ease-settle);
}

.state-navigation-open .side-panel {
  transform: none;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: rgba(58, 42, 6, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.menu-backdrop[hidden] {
  display: none;
}

.state-navigation-open .menu-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.main-column {
  padding: 24px 18px 38px;
  min-width: 0;
}

.main-column > * {
  animation: content-settle var(--duration-reveal) var(--ease-settle) both;
}

.main-column > :nth-child(2) {
  animation-delay: 70ms;
}

.main-column > :nth-child(3) {
  animation-delay: 135ms;
}

.main-column > :nth-child(4) {
  animation-delay: 190ms;
}

.main-column > :nth-child(n + 5) {
  animation-delay: 230ms;
}

/* Brand */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text-strong);
  text-decoration: none;
}

.brand-lockup-center {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.logo-medallion {
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--logo-navy);
  border: 1px solid rgba(227, 169, 23, 0.58);
  box-shadow: 0 0 0 3px rgba(227, 169, 23, 0.1), 0 9px 21px -9px rgba(227, 169, 23, 0.62);
  flex: none;
}

.logo-frame {
  display: block;
  overflow: hidden;
  position: relative;
  border-radius: 21px;
  border: 1px solid rgba(227, 169, 23, 0.3);
}

.brand-words {
  display: grid;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.1;
}

.brand-tagline {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Menu */
.portal-navigation {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.menu-group-title {
  margin: 16px 12px 5px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.menu-group-owner {
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line-quiet);
}

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

.menu-link {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--duration-touch) ease, color var(--duration-touch) ease, transform var(--duration-hover) var(--ease-settle);
}

.menu-link:hover {
  background: var(--surface-raised);
  color: var(--text-strong);
  transform: translateX(3px);
}

.menu-link.state-current {
  background: linear-gradient(92deg, rgba(227, 169, 23, 0.21), rgba(227, 169, 23, 0.025) 81%);
  color: var(--gold-soft);
  box-shadow: inset 2px 0 0 var(--gold-main), 0 11px 22px -19px rgba(227, 169, 23, 0.95);
}

.menu-mark {
  width: 19px;
  height: 19px;
  flex: none;
  background: linear-gradient(160deg, var(--gold-soft), var(--gold-deep));
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
}

.menu-mark-overview {
  --mark: var(--mark-overview);
}

.menu-mark-library {
  --mark: var(--mark-library);
}

.menu-mark-package {
  --mark: var(--mark-package);
}

.menu-mark-consultations {
  --mark: var(--mark-consultations);
}

.menu-mark-tools {
  --mark: var(--mark-tools);
}

.menu-mark-requirements {
  --mark: var(--mark-requirements);
}

.menu-mark-settings {
  --mark: var(--mark-settings);
}

.menu-mark-clients {
  --mark: var(--mark-clients);
}

.menu-mark-calendar {
  --mark: var(--mark-calendar);
}

.menu-mark-content {
  --mark: var(--mark-content);
}

.menu-mark-payments {
  --mark: var(--mark-payments);
}

.menu-mark-team {
  --mark: var(--mark-team);
}

.signout-group {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding-top: 15px;
  border-top: 1px solid var(--line-quiet);
}

.signout-form {
  margin: 0;
}

.signout-button {
  padding: 10px 12px;
  border: 0;
  background: none;
  color: var(--text-body);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.signout-button:hover {
  color: var(--gold-soft);
}

.signout-everywhere {
  padding-top: 2px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.account-line {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 12px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.account-photo {
  flex: none;
  text-decoration: none;
}

.member-photo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(158deg, #ffffff, #fff4d6) padding-box,
    linear-gradient(141deg, #fff3b0, var(--gold-main) 38%, var(--gold-deep) 71%, #f6e27a) border-box;
  border: 1.5px solid transparent;
  box-shadow: 0 9px 19px -11px rgba(227, 169, 23, 0.75);
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-initial {
  font-family: var(--font-display);
  font-size: 1.14em;
  color: var(--gold-soft);
}

.member-photo-large {
  width: 96px;
  height: 96px;
  border-width: 2px;
  font-size: 2.05rem;
}

.member-photo-hero {
  width: 74px;
  height: 74px;
  border-width: 2px;
  font-size: 1.7rem;
}

.remember-note {
  display: block;
  font-size: 0.8rem;
}

/* Headings */
.page-heading {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 26px;
  padding-bottom: 19px;
  border-bottom: 1px solid;
  border-image: linear-gradient(90deg, rgba(227, 169, 23, 0.6), rgba(227, 169, 23, 0) 71%) 1;
}

.page-title {
  margin: 0;
  font-size: clamp(1.78rem, 1.27rem + 2.1vw, 2.62rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  background: linear-gradient(97deg, #33250a 4%, #8a5e00 47%, #cf9208 88%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-lead {
  margin: 7px 0 0;
  max-width: 62ch;
}

.heading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.card-title {
  margin: 0 0 13px;
  font-size: 1.2rem;
}

.card-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 14px;
  margin-bottom: 13px;
}

.card-title-line .card-title {
  margin-bottom: 0;
}

.count-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-title {
  margin: 30px 0 14px;
  font-size: 1.32rem;
}

.subsection-title {
  margin: 22px 0 10px;
  font-size: 1.06rem;
}

.minor-title {
  margin: 18px 0 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
}

.section-note {
  margin: 0 0 14px;
  font-size: 0.93rem;
  color: var(--text-muted);
}

.fine-print {
  margin: 7px 0 0;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.lead-text {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.status-text {
  font-size: 0.86rem;
  font-weight: 600;
}

.status-green {
  color: var(--tone-green);
}

.status-gold {
  color: var(--gold-soft);
}

.status-neutral {
  color: var(--text-muted);
}

.status-alert {
  color: var(--tone-alert);
}

/* Surfaces */
.surface-card {
  margin: 0 0 18px;
  padding: 21px var(--card-gutter);
  background:
    linear-gradient(167deg, #ffffff, #fffaec 61%) padding-box,
    linear-gradient(149deg, rgba(240, 190, 60, 0.46), rgba(226, 209, 160, 0.62) 31%, rgba(226, 209, 160, 0.85) 69%, rgba(227, 169, 23, 0.24)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 26px 48px -34px rgba(122, 88, 12, 0.276);
}

.inset-panel {
  margin-top: 18px;
  padding: 16px;
  background: var(--surface-inset);
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-tile);
}

.upgrade-preview {
  border-color: rgba(227, 169, 23, 0.32);
}

.attention-card {
  border-color: rgba(224, 177, 85, 0.42);
}

.split-panels {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.split-panels > .surface-card {
  margin-bottom: 0;
}

.empty-state {
  padding: 34px 20px;
  text-align: center;
  border: 1px dashed var(--line-firm);
  border-radius: var(--radius-card);
}

.empty-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text-strong);
}

.empty-text {
  max-width: 46ch;
  margin: 0 auto 14px;
  color: var(--text-muted);
}

.disclosure {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line-quiet);
}

.disclosure > summary {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--gold-soft);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.disclosure > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform var(--duration-hover) var(--ease-settle);
}

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

.disclosure > form {
  margin-top: 14px;
}

/* Controls */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color var(--duration-touch) ease, color var(--duration-touch) ease, box-shadow var(--duration-hover) ease, transform var(--duration-touch) ease;
}

.action-button:active {
  transform: translateY(1px);
}

.action-button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.action-primary {
  background: linear-gradient(174deg, #fbdc6a 0%, #ecb622 41%, #d2930a 100%);
  color: var(--gold-ink);
  border-color: rgba(255, 240, 200, 0.34);
  letter-spacing: 0.012em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.46), 0 12px 24px -16px rgba(227, 169, 23, 0.95);
}

.action-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -58%;
  width: 46%;
  background: linear-gradient(104deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-17deg);
  transition: transform 620ms var(--ease-settle);
}

.action-primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 15px 29px -14px rgba(227, 169, 23, 0.98);
  transform: translateY(-1px);
}

.action-primary:hover::after {
  transform: translateX(370%) skewX(-17deg);
}

.action-quiet {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line-firm);
}

.action-quiet:hover {
  border-color: var(--gold-deep);
  color: var(--gold-soft);
}

.action-danger {
  background: transparent;
  color: var(--tone-alert);
  border-color: rgba(227, 130, 122, 0.45);
}

.action-danger:hover {
  border-color: var(--tone-alert);
}

.action-small {
  min-height: 38px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.action-wide {
  width: 100%;
}

.text-link {
  color: var(--gold-soft);
  text-underline-offset: 3px;
}

.text-link-quiet {
  color: var(--text-muted);
}

.text-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold-soft);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.back-link {
  justify-self: start;
}

/* Forms */
.form-stack,
.stack-form {
  display: grid;
  gap: 15px;
}

.form-stack > .action-button {
  justify-self: start;
}

.form-field {
  position: relative;
  display: grid;
  align-content: start;
  gap: 6px;
}

.field-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-strong);
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #fffefb, #fffaee);
  border: 1px solid var(--line-firm);
  border-radius: 9px;
  box-shadow: inset 0 1px 3px rgba(122, 88, 12, 0.165);
  color: var(--text-strong);
  font: inherit;
  font-size: 1rem;
  transition: border-color var(--duration-touch) ease, box-shadow var(--duration-touch) ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--gold-main);
  box-shadow: inset 0 1px 3px rgba(122, 88, 12, 0.165), 0 0 0 3px rgba(227, 169, 23, 0.17), 0 9px 24px -15px rgba(227, 169, 23, 0.8);
}

.text-input::placeholder {
  color: var(--text-muted);
}

.text-input[readonly] {
  opacity: 0.74;
}

textarea.text-input {
  min-height: 96px;
  resize: vertical;
}

.code-input {
  font-size: 1.3rem;
  letter-spacing: 0.32em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.select-shell {
  position: relative;
}

.select-shell::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--gold-main);
  border-bottom: 2px solid var(--gold-main);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select-shell select {
  appearance: none;
  padding-right: 42px;
}

.field-hint {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.field-pair,
.field-trio {
  display: grid;
  gap: 15px;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  cursor: pointer;
}

.check-line input {
  flex: none;
  width: 19px;
  height: 19px;
  margin: 3px 0 0;
  accent-color: var(--gold-main);
}

.check-strong span {
  font-weight: 600;
  color: var(--text-strong);
}

.check-group {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  border: 0;
}

.check-group legend {
  margin-bottom: 9px;
}

.inline-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-top: 12px;
}

.inline-fields .form-field {
  flex: 1 1 200px;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.filter-panel,
.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.filter-panel .text-input,
.search-form .text-input {
  flex: 1 1 220px;
  width: auto;
}

.filter-panel .select-shell {
  flex: 0 1 200px;
}

.file-input {
  color: var(--text-body);
  font: inherit;
}

.file-input::file-selector-button {
  margin-right: 12px;
  padding: 9px 15px;
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-control);
  background: linear-gradient(176deg, #ffffff, #fff4d4);
  color: var(--text-strong);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--duration-touch) ease;
}

.file-input::file-selector-button:hover {
  border-color: var(--gold-main);
}

.remember-line {
  font-size: 0.9rem;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 0;
}

.form-links > :only-child {
  margin-inline: auto;
}

.owner-entry {
  margin: 22px 0 0;
  font-size: 0.9rem;
  text-align: center;
}

.resend-form {
  margin-top: 14px;
}

/* Notices */
.notice {
  display: block;
  margin: 0 0 18px;
  padding: 13px 16px;
  background: var(--surface-raised);
  border-left: 3px solid var(--gold-main);
  border-radius: var(--radius-control);
  color: var(--text-strong);
}

.notice p {
  margin: 0;
}

.notice-success {
  border-left-color: var(--tone-green);
}

.notice-error {
  border-left-color: var(--tone-alert);
}

.notice-warning {
  border-left-color: var(--tone-amber);
}

.notice-link {
  text-decoration: none;
}

.secret-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 11px 0 7px;
}

.secret-value {
  flex: 1 1 260px;
  width: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* Public */
.public-shell {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 468px);
  align-content: center;
  justify-content: center;
  gap: 21px;
  padding: 34px 18px 26px;
  overflow: hidden;
}

.public-shell::before,
.public-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.public-shell::before {
  top: -41vmax;
  left: -33vmax;
  width: 96vmax;
  height: 96vmax;
  border: 1px solid rgba(227, 169, 23, 0.42);
  outline: 1px solid rgba(227, 169, 23, 0.2);
  outline-offset: 17px;
  box-shadow: inset 0 0 137px rgba(249, 205, 70, 0.14);
}

.public-shell::after {
  right: -47vmax;
  bottom: -52vmax;
  width: 104vmax;
  height: 104vmax;
  border: 1px solid rgba(180, 125, 5, 0.3);
  outline: 1px solid rgba(227, 169, 23, 0.17);
  outline-offset: 23px;
}

.public-stage {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  animation: content-settle 720ms var(--ease-settle) both;
}

.stage-ring {
  position: relative;
  display: grid;
  padding: 3px;
  margin-bottom: 13px;
  border-radius: 23px;
  overflow: hidden;
  background: rgba(227, 169, 23, 0.24);
  box-shadow: 0 27px 52px -25px rgba(180, 125, 5, 0.62), 0 0 0 7px rgba(227, 169, 23, 0.07);
}

.stage-ring::before {
  content: "";
  position: absolute;
  inset: -45%;
  background: conic-gradient(transparent 0 58%, rgba(227, 169, 23, 0.95) 76%, rgba(227, 169, 23, 0.2) 89%, transparent);
  animation: ring-turn 6.4s linear infinite;
}

.stage-ring .logo-frame img {
  display: block;
  width: 78px;
  height: 78px;
}

.stage-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.86rem, 1.36rem + 2.3vw, 2.74rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.014em;
  background: linear-gradient(97deg, #33250a 6%, #8a5e00 49%, #cf9208 89%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.public-card {
  position: relative;
  z-index: 1;
  padding: 30px 24px 27px;
  background:
    linear-gradient(163deg, rgba(255, 255, 255, 0.97), rgba(255, 250, 235, 0.98) 64%) padding-box,
    linear-gradient(147deg, rgba(240, 190, 60, 0.85), rgba(227, 169, 23, 0.2) 29%, rgba(226, 209, 160, 0.9) 63%, rgba(227, 169, 23, 0.5)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-frame);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 38px 74px -39px rgba(122, 88, 12, 0.36), 0 0 61px -33px rgba(227, 169, 23, 0.55);
  animation: content-settle var(--duration-reveal) var(--ease-settle) 140ms both;
}

.public-title {
  margin: 0 0 8px;
  font-size: 1.52rem;
  letter-spacing: -0.01em;
  text-align: center;
}

.public-card > .lead-text {
  text-align: center;
}

.public-card .action-wide {
  min-height: 52px;
  font-size: 1.04rem;
}

.passkey-panel {
  display: grid;
  gap: 13px;
}

.passkey-status {
  min-height: 1.3em;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 46px;
  padding: 21px var(--card-gutter) 23px;
  border-radius: var(--radius-card);
  background: linear-gradient(171deg, #33280f, #231b09 68%);
  box-shadow: 0 22px 41px -29px rgba(122, 88, 12, 0.6);
  text-align: center;
  font-size: 0.86rem;
  color: #cbbd97;
}

.public-shell .site-footer {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.public-shell .credit-name {
  display: block;
}

.footer-copyright {
  margin: 0 0 6px;
}

.builder-credit {
  margin: 0;
}

.credit-name {
  background: linear-gradient(90deg, #f6e27a, #c9a227, #fff3b0, #b8860b, #f6e27a);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
  text-decoration: none;
  animation: credit-sheen 6.5s linear infinite;
}

/* Overview */
.welcome-band {
  position: relative;
  display: grid;
  gap: 15px;
  margin-bottom: 19px;
  padding: 23px var(--card-gutter);
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius-frame);
  background:
    radial-gradient(520px 260px at 96% -32%, rgba(249, 205, 70, 0.5), transparent 67%) padding-box,
    linear-gradient(158deg, #ffffff, #fff5d8 71%) padding-box,
    linear-gradient(143deg, #f6d24e, rgba(226, 209, 160, 0.75) 34%, rgba(226, 209, 160, 0.5) 63%, #e3a917) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 31px 55px -37px rgba(122, 88, 12, 0.55);
}

.welcome-band::after {
  content: "";
  position: absolute;
  inset: auto -7% -61% 46%;
  height: 170%;
  background: linear-gradient(112deg, transparent 41%, rgba(255, 255, 255, 0.75) 50%, transparent 59%);
  transform: translateX(-130%);
  animation: welcome-sheen 7.4s var(--ease-settle) 1.1s infinite;
  pointer-events: none;
}

.welcome-person {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}

.welcome-band .page-title {
  font-size: clamp(1.6rem, 1.18rem + 1.9vw, 2.38rem);
}

.welcome-line {
  margin: 5px 0 0;
  color: var(--text-body);
}

.welcome-line strong {
  color: var(--gold-soft);
}

.welcome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.figure-row {
  list-style: none;
  margin: 0 0 19px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.figure-tile {
  display: grid;
  gap: 3px;
  padding: 17px var(--card-gutter) 16px;
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-card);
  background: linear-gradient(176deg, #ffffff, #fffaec);
  box-shadow: 0 19px 33px -27px rgba(122, 88, 12, 0.5);
  text-decoration: none;
  transition: transform var(--duration-hover) var(--ease-lift), border-color var(--duration-hover) ease;
}

a.figure-tile:hover {
  transform: translateY(-3px);
  border-color: var(--gold-main);
}

.figure-value {
  font-family: var(--font-display);
  font-size: 1.93rem;
  line-height: 1.05;
  color: var(--text-strong);
}

.figure-value small {
  font-size: 0.52em;
  color: var(--text-muted);
}

.figure-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.overview-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.overview-grid > .surface-card {
  margin-bottom: 0;
}

.appointment-time {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-strong);
}

.appointment-hours {
  margin: 0 0 8px;
  color: var(--gold-soft);
  font-weight: 500;
}

.appointment-where {
  margin: 0 0 14px;
}

.lesson-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text-strong);
}

.progress-meter {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 7px;
  background: var(--line-quiet);
  overflow: hidden;
  appearance: none;
}

.progress-meter::-webkit-progress-bar {
  background: var(--line-quiet);
  border-radius: 7px;
}

.progress-meter::-webkit-progress-value {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  border-radius: 7px;
}

.progress-meter::-moz-progress-bar {
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  border-radius: 7px;
}

.progress-caption {
  margin: 9px 0 14px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.package-glance {
  display: grid;
  gap: 4px;
  padding: 19px var(--card-gutter);
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(227, 169, 23, 0.06), transparent 62%);
  text-decoration: none;
  transition: border-color var(--duration-hover) ease;
}

.package-glance:hover {
  border-color: var(--gold-deep);
}

.glance-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-strong);
}

.glance-detail {
  font-size: 0.93rem;
  color: var(--text-body);
}

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

.ledger-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-tile);
  color: var(--text-strong);
  text-decoration: none;
  transition: border-color var(--duration-hover) ease;
}

.ledger-link:hover {
  border-color: var(--gold-deep);
}

.ledger-number {
  min-width: 34px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-item {
  display: grid;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-quiet);
}

.schedule-when {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.schedule-person {
  font-size: 0.95rem;
}

/* Package */
.balance-line {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-quiet);
}

.balance-flexible {
  margin-top: 12px;
  padding: 14px;
  border-bottom: 0;
  border-radius: 9px;
  background: rgba(227, 169, 23, 0.05);
}

.balance-figure {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 78px;
}

.balance-left {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--gold-soft);
}

.balance-total {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.balance-label {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.balance-note {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checklist,
.owner-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist-item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-quiet);
}

.check-mark {
  position: relative;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border: 1.5px solid var(--line-firm);
  border-radius: 5px;
}

.checklist-item.state-done .check-mark {
  background: var(--gold-main);
  border-color: var(--gold-main);
}

.checklist-item.state-done .check-mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--gold-ink);
  border-bottom: 2px solid var(--gold-ink);
  transform: rotate(45deg);
}

.checklist-label {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.checklist-detail {
  margin: 3px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.checklist-state {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

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

.timeline li {
  position: relative;
  padding-left: 17px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-deep);
}

.timeline-date {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.ledger-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ledger-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-quiet);
  font-size: 0.93rem;
}

.ledger-list strong {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.offer-grid {
  display: grid;
  gap: 14px;
}

.upgrade-offer {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: var(--surface-inset);
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-card);
}

.upgrade-offer .action-button {
  justify-self: start;
}

.offer-name {
  margin: 0;
  font-size: 1.2rem;
}

.offer-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-soft);
}

.plain-list {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 19px;
}

.plain-list li::marker {
  color: var(--gold-deep);
}

.problem-list {
  margin: 12px 0 0;
  padding-left: 19px;
  color: var(--tone-alert);
}

/* Consultations */
.booking-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.booking-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-quiet);
}

.booking-item:last-child {
  border-bottom: 0;
}

.booking-item > .action-button {
  margin-left: auto;
}

.booking-list-past {
  opacity: 0.8;
}

.booking-date {
  flex: none;
  width: 54px;
  padding: 7px 0;
  text-align: center;
  background: var(--surface-raised);
  border-radius: 9px;
}

.date-number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.1;
  color: var(--text-strong);
}

.date-month {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.booking-body {
  flex: 1 1 220px;
  min-width: 0;
}

.booking-when {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.booking-where {
  margin: 3px 0 0;
  font-size: 0.93rem;
}

.format-options {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
}

.format-option {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-tile);
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--duration-touch) ease, background-color var(--duration-touch) ease;
}

.format-option:hover {
  border-color: var(--gold-deep);
}

.format-option.state-selected {
  border-color: var(--gold-main);
  background: rgba(227, 169, 23, 0.07);
}

.format-price {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.format-option.state-selected .format-price {
  color: var(--gold-soft);
}

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

.weekday-card {
  padding: 13px 14px;
  background: var(--surface-inset);
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-tile);
}

.weekday-label {
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--text-strong);
}

.slot-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-control);
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
  transition: border-color var(--duration-touch) ease, color var(--duration-touch) ease, transform var(--duration-touch) ease;
}

.slot-option:hover {
  border-color: var(--gold-main);
  color: var(--gold-soft);
  transform: translateY(-1px);
}

.confirm-sheet {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.summary-list {
  display: grid;
  margin: 0;
}

.summary-list div {
  display: grid;
  gap: 2px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-quiet);
}

.summary-list dt {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-list dd {
  margin: 0;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.summary-compact div {
  padding: 7px 0;
}

.commitment-text {
  margin: 0;
  padding: 13px 15px;
  background: rgba(224, 177, 85, 0.08);
  border-left: 3px solid var(--tone-amber);
  border-radius: var(--radius-control);
  color: var(--text-strong);
  font-weight: 500;
}

.commitment-token {
  background: rgba(227, 169, 23, 0.08);
  border-left-color: var(--gold-main);
}

.venue-group {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.venue-option {
  display: flex;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line-firm);
  border-radius: 9px;
  cursor: pointer;
}

.venue-option input {
  accent-color: var(--gold-main);
}

.venue-option span {
  display: grid;
  gap: 2px;
}

.venue-option strong {
  color: var(--text-strong);
}

/* Library */
.course-card .lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 3px;
}

.lesson-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 9px;
  color: var(--text-body);
  text-decoration: none;
  transition: background-color var(--duration-touch) ease;
}

.lesson-link:hover {
  background: var(--surface-raised);
}

.lesson-number {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-firm);
  border-radius: 50%;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.lesson-link.state-done .lesson-number {
  background: var(--gold-main);
  border-color: var(--gold-main);
  color: var(--gold-ink);
}

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

.library-grid,
.tool-grid {
  display: grid;
  gap: 14px;
}

.library-card,
.tool-card {
  display: grid;
  gap: 7px;
  align-content: start;
  padding: 18px;
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-card);
  background: var(--surface-card);
  color: var(--text-body);
  text-decoration: none;
  transition: border-color var(--duration-hover) ease, transform var(--duration-hover) var(--ease-settle);
}

.library-card:hover,
.tool-card:hover {
  border-color: var(--gold-deep);
  transform: translateY(-2px);
}

.tool-card {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px 17px;
  padding: 19px var(--card-gutter);
  background:
    linear-gradient(161deg, #ffffff, #fff8e4 66%) padding-box,
    linear-gradient(146deg, rgba(240, 190, 60, 0.52), rgba(226, 209, 160, 0.6) 33%, rgba(226, 209, 160, 0.85) 71%, rgba(227, 169, 23, 0.3)) border-box;
  border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 24px 44px -32px rgba(122, 88, 12, 0.27);
}

.tool-card:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 28px 48px -29px rgba(122, 88, 12, 0.285), 0 0 43px -27px rgba(227, 169, 23, 0.7);
}

.tool-figure {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(227, 169, 23, 0.22), rgba(227, 169, 23, 0.04) 68%, rgba(227, 169, 23, 0));
}

.tool-figure img {
  width: 88px;
  height: 88px;
  transition: transform 430ms var(--ease-lift);
}

.tool-card:hover .tool-figure img {
  transform: translateY(-3px) rotate(-3deg);
}

.tool-words {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.library-title,
.tool-name {
  font-family: var(--font-display);
  font-size: 1.13rem;
  color: var(--text-strong);
}

.library-summary,
.tool-summary {
  font-size: 0.92rem;
}

.tool-card-locked {
  background: var(--surface-inset);
  border: 1px dashed var(--line-firm);
  box-shadow: none;
  color: var(--text-muted);
}

.tool-card-locked:hover {
  border-color: var(--line-firm);
  box-shadow: none;
  transform: none;
}

.tool-card-locked .tool-figure img,
.tool-card-locked:hover .tool-figure img {
  filter: grayscale(1);
  opacity: 0.5;
  transform: none;
}

.tool-card-locked .tool-name {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-body);
}

.lock-mark {
  width: 16px;
  height: 16px;
  flex: none;
  background: var(--gold-deep);
  -webkit-mask: var(--mark-lock) center / contain no-repeat;
  mask: var(--mark-lock) center / contain no-repeat;
}

.tool-requirement {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.tool-open {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-soft);
}

.reading-card {
  display: grid;
  gap: 18px;
}

.video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.reading-text {
  max-width: 68ch;
  font-size: 1.02rem;
  line-height: 1.72;
}

.reading-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

/* Agency */
.setup-steps {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
}

.setup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line-quiet);
  border-radius: 9px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.setup-number {
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-firm);
  border-radius: 50%;
  font-size: 0.8rem;
}

.setup-step.state-done {
  border-color: rgba(127, 191, 152, 0.36);
  color: var(--text-strong);
}

.setup-step.state-done .setup-number {
  background: var(--tone-green);
  border-color: var(--tone-green);
  color: var(--surface-night);
}

.record-layout {
  display: grid;
  gap: 18px;
  align-items: start;
}

.record-main,
.record-side {
  min-width: 0;
}

.owner-checklist {
  display: grid;
  gap: 10px;
}

.owner-check {
  padding: 13px 14px;
  background: var(--surface-inset);
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-tile);
}

.owner-check.state-done {
  border-color: rgba(127, 191, 152, 0.3);
}

.owner-check-form {
  display: grid;
  gap: 10px;
}

.owner-check-form > .action-button {
  justify-self: start;
}

.owner-check-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.history-list {
  list-style: none;
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.table-shell {
  margin: 0 0 18px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.data-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.data-table tbody,
.data-table tr,
.data-table td {
  display: block;
}

.data-table tr {
  margin-bottom: 10px;
  padding: 8px 13px;
  background: var(--surface-card);
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-tile);
}

.data-table td {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px;
  padding: 7px 0;
}

.data-table td::before {
  content: attr(data-label);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.compact-table td {
  padding: 5px 0;
}

.table-primary-link {
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: none;
}

.table-primary-link:hover {
  color: var(--gold-soft);
}

.table-secondary {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-muted);
}

.detail-cell {
  font-size: 0.84rem;
  color: var(--text-muted);
  word-break: break-word;
}

.action-cell .inline-form {
  margin: 0 8px 8px 0;
}

.month-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 6px 10px;
}

.month-title {
  margin: 0;
  text-align: center;
  font-size: 1.24rem;
}

.month-step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-control);
  background: var(--surface-inset);
  transition: border-color var(--duration-hover) var(--ease-settle), transform var(--duration-touch) var(--ease-lift);
}

.month-step:hover {
  border-color: var(--gold-main);
  transform: translateY(-1px);
}

.month-arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--gold-soft);
  border-right: 2px solid var(--gold-soft);
  transform: translateX(-2px) rotate(45deg);
}

.month-arrow.arrow-back {
  transform: translateX(2px) rotate(-135deg);
}

.month-today {
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--gold-soft);
  text-underline-offset: 4px;
}

.month-tally {
  margin: 13px 0 17px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.month-tally strong {
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.month-weekdays,
.month-week,
.month-legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.month-weekdays,
.month-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.month-weekdays {
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--text-muted);
}

.month-grid {
  display: grid;
  gap: 4px;
}

.month-week {
  animation: content-settle 460ms var(--ease-settle) both;
}

.month-week:nth-child(2) {
  animation-delay: 45ms;
}

.month-week:nth-child(3) {
  animation-delay: 95ms;
}

.month-week:nth-child(4) {
  animation-delay: 150ms;
}

.month-week:nth-child(5) {
  animation-delay: 210ms;
}

.month-week:nth-child(6) {
  animation-delay: 275ms;
}

.day-link {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-height: 58px;
  padding: 7px 2px 6px;
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-control);
  background: var(--surface-inset);
  color: var(--text-body);
  text-decoration: none;
  transition: border-color var(--duration-hover) var(--ease-settle), background-color var(--duration-hover) var(--ease-settle), transform var(--duration-touch) var(--ease-lift);
}

a.day-link:hover {
  border-color: var(--gold-deep);
  background: var(--surface-raised);
  transform: translateY(-2px);
}

.day-number {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}

.day-marks {
  display: flex;
  gap: 3px;
  min-height: 7px;
}

.slot-mark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid transparent;
}

.slot-mark.state-open {
  background: var(--tone-green);
}

.slot-mark.state-booked {
  background: var(--gold-main);
}

.slot-mark.state-held {
  border-color: var(--tone-amber);
}

.slot-mark.state-blocked {
  background: var(--tone-alert);
}

.slot-mark.state-past {
  background: var(--line-firm);
}

.day-note {
  display: none;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.month-day.state-outside .day-link {
  opacity: 0.38;
}

.month-day.state-closed .day-link {
  background: transparent;
  border-style: dashed;
}

.month-day.state-closed .day-number {
  color: var(--text-muted);
}

.month-day.state-past .day-number {
  color: var(--text-muted);
}

.month-day.state-today .day-number {
  background: var(--gold-main);
  color: var(--gold-ink);
}

.month-day.state-selected .day-link {
  border-color: var(--gold-main);
  background: rgba(227, 169, 23, 0.09);
  box-shadow: 0 0 0 1px var(--gold-main), 0 9px 22px rgba(122, 88, 12, 0.102);
}

.month-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 17px;
  margin-top: 15px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.month-legend li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.day-panel {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line-quiet);
}

.day-heading {
  margin: 0 0 11px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-strong);
}

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

.grid-slot {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-control);
  font-size: 0.84rem;
}

.grid-time {
  font-weight: 600;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.grid-text {
  color: var(--text-muted);
  overflow-wrap: anywhere;
}

.grid-slot.state-booked {
  border-color: rgba(227, 169, 23, 0.46);
  background: rgba(227, 169, 23, 0.07);
}

.grid-slot.state-booked .grid-text {
  color: var(--gold-soft);
}

.grid-slot.state-held {
  border-style: dashed;
  border-color: var(--tone-amber);
}

.grid-slot.state-blocked {
  background: repeating-linear-gradient(135deg, rgba(122, 88, 12, 0.05) 0 6px, transparent 6px 12px);
}

.grid-slot.state-blocked .grid-text {
  color: var(--tone-alert);
}

.grid-slot.state-past {
  opacity: 0.45;
}

.grid-slot.state-open .grid-text {
  color: var(--tone-green);
}

.pending-list,
.review-list,
.recovery-list,
.course-list,
.venue-list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
}

.pending-card,
.review-card,
.recovery-card {
  margin-bottom: 0;
}

.course-list li,
.venue-list li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-quiet);
}

.item-editor {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
  background: var(--surface-inset);
  border: 1px solid var(--line-quiet);
  border-radius: var(--radius-tile);
}

.settings-grid {
  align-items: start;
}

/* Date Picker */
.date-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  width: min(300px, calc(100vw - 36px));
  padding: 14px;
  background: var(--surface-raised);
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 46px -18px rgba(122, 88, 12, 0.225);
  opacity: 0;
  transform: translateY(-7px) scale(0.97);
  transform-origin: top left;
  transition: opacity 210ms ease, transform 320ms var(--ease-lift);
}

.date-popover.state-open {
  opacity: 1;
  transform: none;
}

.date-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.date-step {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-control);
  background: none;
  color: var(--text-strong);
  font: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.date-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--text-strong);
}

.date-weekdays,
.date-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-weekdays {
  margin-bottom: 6px;
  font-size: 0.76rem;
  text-align: center;
  color: var(--text-muted);
}

.date-option {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  background: none;
  color: var(--text-body);
  font: inherit;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

.date-option:hover:not(:disabled) {
  border-color: var(--line-firm);
  color: var(--text-strong);
}

.date-option.state-today {
  border-color: var(--gold-deep);
}

.date-option.state-selected {
  background: var(--gold-main);
  color: var(--gold-ink);
  font-weight: 700;
}

.date-option:disabled {
  color: rgba(143, 138, 127, 0.34);
  cursor: not-allowed;
}

/* Confirm Dialog */
.confirm-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
}

.confirm-layer[hidden] {
  display: none;
}

.confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(58, 42, 6, 0.46);
  opacity: 0;
  transition: opacity 260ms ease;
}

.confirm-dialog {
  position: relative;
  width: min(100%, 420px);
  padding: 24px;
  background: var(--surface-raised);
  border: 1px solid var(--line-firm);
  border-radius: 16px;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 240ms ease, transform 430ms var(--ease-lift);
}

.confirm-layer.state-open .confirm-backdrop {
  opacity: 1;
}

.confirm-layer.state-open .confirm-dialog {
  opacity: 1;
  transform: none;
}

.confirm-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.confirm-text {
  margin: 0 0 20px;
}

.confirm-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

/* Keyframes */
@keyframes loader-retire {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes ring-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes content-settle {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
}

@keyframes welcome-sheen {
  0%,
  58% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(150%);
  }
}

@keyframes credit-sheen {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 300% 50%;
  }
}

.checklist-item.state-locked {
  grid-template-columns: 22px 1fr;
  align-items: start;
}

.checklist-item.state-locked .lock-mark {
  margin-top: 4px;
}

.checklist-item.state-locked .checklist-label {
  color: var(--text-muted);
  font-weight: 500;
}

.checklist-item.state-locked .checklist-detail {
  color: var(--gold-deep);
  font-weight: 600;
}

.locked-inclusions {
  background:
    linear-gradient(167deg, #fbf7ec, #f6efdc 61%) padding-box,
    linear-gradient(149deg, rgba(226, 209, 160, 0.7), rgba(226, 209, 160, 0.85)) border-box;
}

.requirements-glance {
  margin-top: 13px;
}

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

.requirement-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  padding: 21px var(--card-gutter);
  background:
    linear-gradient(167deg, #ffffff, #fffaec 61%) padding-box,
    linear-gradient(149deg, rgba(240, 190, 60, 0.46), rgba(226, 209, 160, 0.62) 31%, rgba(226, 209, 160, 0.85) 69%, rgba(227, 169, 23, 0.24)) border-box;
  border: 1px solid transparent;
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 26px 48px -34px rgba(122, 88, 12, 0.276);
}

.requirement-number {
  font-family: var(--font-display);
  font-size: 1.62rem;
  line-height: 1;
  background: linear-gradient(162deg, #f3c530, var(--gold-main) 52%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.requirement-kind {
  margin: 0 0 3px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.requirement-title {
  margin: 0;
  font-size: 1.24rem;
}

.requirement-note {
  margin: 8px 0 0;
  max-width: 68ch;
}

.requirement-preview {
  display: block;
  margin-top: 14px;
  max-width: 520px;
  overflow: hidden;
  border: 1px solid var(--line-firm);
  border-radius: var(--radius-tile);
  background: var(--surface-inset);
}

.requirement-preview img,
.requirement-preview video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.requirement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}

.requirement-dot {
  width: 9px;
  height: 9px;
  margin: 8px 0 0 5px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--gold-soft), var(--gold-deep));
}

.requirement-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-quiet);
}

.photo-setting {
  display: grid;
  gap: 17px;
  justify-items: start;
  margin-bottom: 12px;
}

.client-photo-line {
  margin: 0 0 14px;
}

/* Media Queries */
@media (min-width: 480px) {
  .format-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-list div {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 14px;
  }

  .public-card {
    padding: 38px 40px 34px;
  }
}

@media (min-width: 768px) {
  .welcome-band {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: 29px var(--card-gutter);
  }

  .figure-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
  }

  .photo-setting {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 23px;
  }

  .requirement-card {
    padding: 25px var(--card-gutter);
    gap: 21px;
  }

  .main-column {
    padding: 32px 30px 46px;
  }

  :root {
    --card-gutter: 27px;
  }

  .surface-card {
    padding: 25px var(--card-gutter);
  }

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

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

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

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

  .checklist-item {
    grid-template-columns: 22px minmax(0, 1fr) auto;
  }

  .checklist-state {
    grid-column: auto;
    justify-content: flex-end;
  }

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

  .library-grid,
  .tool-grid,
  .offer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .month-header {
    grid-template-columns: 38px minmax(0, 1fr) 38px auto;
  }

  .month-today {
    grid-column: auto;
  }

  .month-weekdays,
  .month-week,
  .month-grid {
    gap: 7px;
  }

  .day-link {
    justify-items: start;
    min-height: 86px;
    padding: 9px 10px;
  }

  .day-note {
    display: block;
  }

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

  .setup-steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }

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

  .table-shell {
    overflow-x: auto;
    border: 1px solid var(--line-quiet);
    border-radius: var(--radius-card);
    background: var(--surface-card);
  }

  .data-table thead {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    display: table-header-group;
  }

  .data-table tbody {
    display: table-row-group;
  }

  .data-table tr {
    display: table-row;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
  }

  .data-table th {
    padding: 11px 14px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--line-firm);
    white-space: nowrap;
  }

  .data-table td {
    display: table-cell;
    padding: 12px 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--line-quiet);
  }

  .data-table td::before {
    content: none;
  }

  .data-table tr:last-child td {
    border-bottom: 0;
  }

  .compact-table td {
    padding: 8px 10px;
  }

  .surface-card .table-shell {
    background: none;
  }
}

@media (min-width: 1024px) {
  .portal-shell {
    display: grid;
    grid-template-columns: 278px minmax(0, 1fr);
  }

  .mobile-header,
  .menu-backdrop {
    display: none;
  }

  .side-panel,
  .state-scripted .side-panel {
    position: sticky;
    top: 0;
    width: auto;
    height: 100dvh;
    overflow-y: auto;
    transform: none;
    border-bottom: 0;
    border-right: 1px solid var(--line-quiet);
  }

  .main-column {
    padding: 40px 46px 54px;
    max-width: 1220px;
  }

  .overview-grid,
  .split-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .record-layout {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .day-link {
    min-height: 98px;
    padding: 11px 13px;
  }

  .day-number {
    font-size: 0.96rem;
  }

  .record-side .field-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .record-side .summary-list div {
    grid-template-columns: 76px minmax(0, 1fr);
  }
}

@media (min-width: 1280px) {
  .weekday-grid,
  .library-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .welcome-band::after {
    animation: none;
  }

  .main-column > *,
  .public-card,
  .public-stage,
  .stage-ring::before,
  .credit-name,
  .month-week {
    animation: none;
  }

  .action-primary::after {
    transition: none;
  }

  .month-step,
  .day-link {
    transition: none;
  }

  .page-loader {
    animation: loader-retire 1ms linear 1.2s forwards;
  }

  .loader-ring::before {
    animation: none;
  }

  .side-panel,
  .state-scripted .side-panel,
  .menu-backdrop,
  .date-popover,
  .confirm-dialog,
  .confirm-backdrop,
  .loader-ring,
  .library-card,
  .tool-card,
  .slot-option,
  .action-button {
    transition: none;
  }

  .action-primary:hover,
  .slot-option:hover,
  .library-card:hover,
  .tool-card:hover {
    transform: none;
  }
}
