:root {
  --ink: #16233b;
  --ink-soft: #5b6478;
  --blue: #1e5aa8;
  --blue-dark: #163d75;
  --blue-deep: #0e2a52;
  --blue-light: #4fa8d9;
  --cream: #faf7f0;
  --cream-line: #ede6d6;
  --gold: #f4c542;
  --blue-pale: #eaf2fa;
  --white: #fff;
  --danger: #c44536;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Heebo, "Segoe UI", "David", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
}

a { color: var(--blue); font-weight: 700; text-decoration: none; }
button, input, textarea { font: inherit; }

.wrap { width: min(1080px, calc(100% - 32px)); margin-inline: auto; }

.top {
  background: var(--blue-deep);
  color: white;
}

.top-inner, .top nav, .brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-inner { justify-content: space-between; padding: 12px 0; flex-wrap: wrap; }

.brand { color: white; font-weight: 800; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.top nav a, .top nav span { color: rgba(255,255,255,.86); font-weight: 600; }
.nav-cta { background: var(--gold); color: var(--ink) !important; padding: 8px 14px; border-radius: 999px; }

.hero {
  background: linear-gradient(180deg, #0e2a52, #163d75 72%, var(--cream) 72%);
  color: white;
  padding: 48px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}

.kicker { color: var(--gold); font-weight: 700; margin: 0 0 8px; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); margin: 0 0 12px; }
.lead { font-size: 20px; line-height: 1.7; color: rgba(255,255,255,.86); max-width: 38ch; }
.hero-logo { width: min(320px, 100%); justify-self: center; mix-blend-mode: screen; }
.hero-actions, .dl { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn.primary { background: linear-gradient(135deg, var(--blue-light), var(--blue-dark)); color: white; }
.btn.primary:disabled {
  background: #c5cdd8;
  color: #f4f6f8;
  cursor: default;
}
.btn.ghost { background: white; color: var(--blue-dark); border: 1px solid var(--cream-line); }
.btn.danger { background: var(--danger); color: white; }

.demo-banner, .panel, .cards article, .auth-card, .flash {
  background: white;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 18px 20px;
}

.demo-banner { margin-top: -28px; position: relative; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; padding: 28px 0; }
.cards h2, .cards h3 { margin-top: 0; }
.band { background: white; padding: 36px 0; }
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; padding: 36px 0; align-items: center; }
details { background: white; border-radius: 14px; padding: 12px 16px; margin: 8px 0; }
.foot { padding: 28px 0 40px; color: var(--ink-soft); }

.auth-page .auth-card { margin: 40px auto 64px; max-width: 460px; }
.auth-page .nav-cta { display: none; }
.form, .auth-card form { display: grid; gap: 12px; }
.auth-help { margin-top: 16px; }
.auth-help a { font-weight: 700; }
.auth-card .error a { color: inherit; text-decoration: underline; }
.auth-ok { color: #0f7a4a; font-weight: 700; }
.legal-page h2 { margin: 22px 0 8px; font-size: 18px; }
.legal-page p { line-height: 1.65; }
.password-form { max-width: 420px; margin-top: 16px; }
label { display: grid; gap: 6px; font-weight: 600; }
input, textarea {
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
}

.app-body { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.app-body.account-app {
  --account-cube-min: 92px;
  --account-cube-gap: 10px;
  --account-cubes-pad: 18px;
  --account-tools-col: 90px;
  grid-template-columns: var(--account-tools-col) minmax(0, 1fr) 118px;
  grid-template-rows: auto minmax(0, 1fr);
}
.app-body.account-app > .app-main {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}
.account-top {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 18px;
  background: var(--blue-deep);
  color: #fff;
  min-height: 64px;
  position: relative;
  z-index: 40;
  grid-column: 1 / -1;
}
.account-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 8px 6px 4px;
  border-radius: 10px;
  flex: 0 0 auto;
}
.account-back:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.account-back svg {
  width: 18px;
  height: 18px;
}
.account-syn {
  margin: 0;
  color: var(--gold);
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-logout {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
  white-space: nowrap;
  margin-inline-start: auto;
}
.account-logout:hover {
  color: #fff;
}
.account-tools {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  gap: var(--account-cube-gap);
  padding: var(--account-cubes-pad) 10px 24px 12px;
  position: sticky;
  top: 0;
}
.account-tool {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;
  min-height: 78px;
  padding: 8px 6px;
  border-radius: 16px;
  border: 1px solid #eadfce;
  background: #f7f3ea;
  color: #6e7c90;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}
a.account-tool:hover {
  border-color: #d7e6f4;
  background: #f4f8fc;
  color: var(--blue-dark);
}
.account-tool.is-qr img {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: #fff;
}
.account-tool-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .72);
  color: #7b8aa0;
}
a.account-tool:hover .account-tool-icon {
  background: #fff;
  color: var(--blue);
}
.account-tool-icon svg {
  width: 16px;
  height: 16px;
}
.account-cubes {
  grid-column: 3;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  align-self: start;
  gap: var(--account-cube-gap);
  padding: var(--account-cubes-pad) 12px 24px;
  position: sticky;
  top: 0;
}
.week-drawer[hidden] {
  display: none !important;
}
.account-cube {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: var(--account-cube-min);
  padding: 12px 8px;
  border-radius: 18px;
  border: 1px solid var(--cream-line);
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 6px 16px rgba(14, 42, 82, 0.06);
}
.account-cube:hover,
.account-cube.on {
  border-color: var(--blue);
  color: var(--blue-dark);
  background: var(--blue-pale);
}
.account-cube-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--cream);
  color: var(--blue);
}
.account-cube.on .account-cube-icon {
  background: var(--blue);
  color: #fff;
}
.account-cube-icon svg {
  width: 22px;
  height: 22px;
}
body.week-drawer-open {
  overflow: hidden;
}
html:has(.catalog-page),
body:has(.catalog-page) { height: 100%; overflow: hidden; }
.app-body:has(.catalog-page) { height: 100vh; overflow: hidden; }
.app-body:has(.catalog-page) .app-main {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
}
.app-body.account-app:has(.catalog-page) {
  grid-template-columns: var(--account-tools-col) minmax(0, 1fr) 118px;
  grid-template-rows: auto minmax(0, 1fr);
}
.app-body.account-app:has(.catalog-page) .app-main {
  height: 100%;
  min-height: 0;
  grid-column: 2;
  grid-row: 2;
}
.app-body:has(.catalog-page) .wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 24px 0 12px;
}
html:has(.settings-desk),
body:has(.settings-desk) { height: 100%; overflow: hidden; }
.app-body:has(.settings-desk) { height: 100vh; overflow: hidden; }
.app-body.account-app:has(.settings-desk) {
  grid-template-columns: var(--account-tools-col) minmax(0, 1fr) 118px;
  grid-template-rows: auto minmax(0, 1fr);
}
.app-body.account-app:has(.settings-desk) .app-main {
  height: 100%;
  min-height: 0;
  overflow: auto;
  padding: 20px 0 28px;
  grid-column: 2;
  grid-row: 2;
  scrollbar-width: none;
}
.app-body.account-app:has(.settings-desk) .app-main::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.app-body.account-app:has(.settings-desk) .wrap {
  width: min(980px, calc(100% - 24px));
  margin-inline: auto;
  padding: 0 8px 12px 0;
}
.side { background: var(--blue-deep); color: white; padding: 22px 16px; }
.side a { display: block; color: rgba(255,255,255,.86); padding: 10px 12px; border-radius: 12px; }
.side a.on, .side a:hover { background: rgba(255,255,255,.12); color: white; }
.side.admin {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.side.admin::-webkit-scrollbar { width: 0; height: 0; display: none; }
.side.admin nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.side-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.side-group:first-of-type {
  border-top: 0;
  padding-top: 6px;
}
.side-label {
  display: block;
  padding: 2px 12px 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
}
.side.admin .side-group a { padding: 8px 12px; }
.side.admin .side-out {
  margin-top: auto;
  margin-bottom: 4px;
  border-top: 1px solid rgba(255,255,255,.16);
  border-radius: 0 0 12px 12px;
}
.side-user { color: var(--gold); font-weight: 700; }
.app-main { padding: 28px 0 64px; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.head-row h1 { margin: 0; }
.catalog-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.catalog-head {
  flex: 0 0 auto;
  background: var(--cream);
  z-index: 3;
}
.table-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
}
.table-scroll .table {
  margin: 0;
  overflow: visible;
  border-radius: 0;
}
.table { width: 100%; border-collapse: collapse; background: white; border-radius: 16px; overflow: hidden; }
.table th, .table td { padding: 12px; border-bottom: 1px solid var(--cream-line); text-align: right; }
.muted, .error { color: var(--ink-soft); }
.error { color: var(--danger); font-weight: 700; }
.stats b { font-size: 32px; display: block; }
.inline { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid-form { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.row-form { display: grid; grid-template-columns: 1fr 1.4fr 1fr auto auto; gap: 8px; margin: 10px 0; }
.check { display: flex; align-items: center; gap: 8px; }
pre { white-space: pre-wrap; background: var(--cream); padding: 12px; border-radius: 12px; }

.print-bar { display: flex; gap: 10px; align-items: center; padding: 12px; }
.kg-check {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #8aa0c2;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
  vertical-align: middle;
}
.kg-check:checked {
  background: linear-gradient(135deg, #4fa8d9, #1e5aa8);
  border-color: #163d75;
}
.kg-check:checked::after {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -54%);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.app-body:has(.labels-page) .wrap {
  width: min(1440px, calc(100% - 24px));
}
.app-body:has(.labels-admin-page) .wrap {
  width: calc(100% - 24px);
  max-width: none;
}
.labels-page { display: grid; gap: 14px; overflow-x: hidden; }
.labels-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 10px 14px;
}
.labels-toolbar h1 { margin: 0; font-size: 22px; margin-inline-end: 4px; }
.labels-spacer { flex: 1; min-width: 8px; }
.labels-start {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
}
.labels-start input {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
}
.labels-pager {
  display: flex;
  align-items: center;
  gap: 8px;
}
.labels-pager b {
  min-width: 7.5rem;
  text-align: center;
  font-size: 16px;
}
.labels-stock-bar {
  display: none;
}
.labels-stock-bar[hidden] { display: none; }
.labels-stock-bar.is-open {
  display: grid;
  position: absolute;
  inset-inline-end: 12px;
  top: 12px;
  z-index: 6;
  width: min(100% - 24px, 420px);
  max-height: min(70%, 440px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 12px 14px 14px;
  gap: 10px;
  box-shadow: 0 18px 40px rgba(14, 42, 82, 0.18);
}
.labels-stock-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.labels-stock-head h2 {
  margin: 0;
  font-size: 18px;
}
.labels-stock-head p {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.labels-stock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.labels-stock-card {
  display: grid;
  gap: 8px;
  min-width: 168px;
  padding: 10px 12px;
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  background: var(--cream);
}
.labels-stock-card.is-on {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px var(--blue-pale);
  background: #fff;
}
.labels-stock-card .check {
  font-size: 15px;
  font-weight: 800;
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), 9px);
  gap: 2px;
  justify-content: start;
}
.stock-grid i {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #c5d3e6;
}
.stock-grid i.is-free {
  background: #4fa8d9;
}
.stock-grid i.is-used {
  background: #c5d3e6;
}
.stock-grid i.is-fill {
  background: var(--blue-deep);
}
.stock-grid i.is-skip {
  background: #edf0f5;
  box-shadow: inset 0 0 0 1px #c5d3e6;
}
.labels-stock-card .btn {
  min-height: 36px;
  font-size: 13px;
}
.labels-pages-wrap {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 12px 14px 14px;
  display: grid;
  gap: 10px;
}
.labels-embed .labels-pages-wrap {
  min-height: 0;
  overflow: hidden;
  grid-template-rows: auto auto minmax(0, 1fr);
}
.labels-pages-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.labels-pages-head h2 {
  margin: 0;
  font-size: 18px;
}
.labels-pages-head p,
.labels-pages-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
}
.labels-pages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.labels-embed .labels-pages-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  min-height: 0;
  overflow: auto;
}
.labels-print-card {
  min-width: min(100%, 220px);
  flex: 1 1 220px;
  max-width: 340px;
  cursor: pointer;
}
.labels-embed .labels-print-card {
  max-width: none;
  width: auto;
  min-width: 0;
  flex: none;
  padding: 8px 9px;
  gap: 6px;
}
.labels-embed .labels-print-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 8px;
}
.labels-print-card-head b {
  font-size: 16px;
}
.labels-embed .labels-print-card-head b {
  font-size: 13px;
}
.labels-print-counts {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.labels-print-card .stock-grid {
  width: 100%;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 3px;
  justify-content: stretch;
}
.labels-embed .labels-print-card .stock-grid {
  gap: 2px;
}
.labels-print-card .stock-grid i {
  width: auto;
  height: auto;
  aspect-ratio: 63.5 / 33.9;
  border-radius: 3px;
  cursor: pointer;
}
.labels-print-card .stock-grid i.is-used {
  cursor: default;
}
.labels-page-stock {
  justify-self: start;
  padding: 2px 0;
  font-size: 13px;
  font-weight: 700;
}
.labels-embed .labels-page-stock {
  font-size: 12px;
}
.labels-page-stock.is-on {
  color: var(--blue-deep);
}
.labels-embed .labels-pager {
  display: none;
}
.labels-embed .sheet-stage {
  position: absolute;
  left: -220vw;
  top: 0;
  width: 210mm;
  pointer-events: none;
}
.labels-embed .labels-stock-card {
  cursor: pointer;
}
.labels-page:not(.labels-admin-page) .sheet-stage .label-sheet {
  display: none;
}
.labels-page:not(.labels-admin-page) .sheet-stage .label-sheet.is-on {
  display: grid;
}
.labels-form { margin: 0; }
.labels-admin-page .labels-form {
  display: grid;
  gap: 22px;
}
.labels-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.labels-admin-head h1 { margin: 0; }
.labels-admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.labels-max { margin: 0; font-size: 11px; color: var(--ink-soft); }
.labels-max b { color: var(--ink); }
.labels-admin-side {
  display: grid;
  gap: 10px;
  width: 188px;
  align-content: start;
  position: relative;
  z-index: 3;
}
.labels-admin-page .labels-card {
  padding: 8px 10px;
  gap: 6px;
}
.labels-admin-page .labels-card h2 { font-size: 13px; }
.labels-admin-page .labels-fields {
  grid-template-columns: 1fr;
  gap: 4px;
}
.labels-admin-page .labels-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.labels-admin-page .labels-field input {
  width: 54px;
  flex: 0 0 54px;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 7px;
}
.labels-admin-page .labels-checks {
  flex-direction: column;
  gap: 4px;
}
.labels-admin-page .labels-checks .check {
  font-size: 12px;
  gap: 6px;
}
.labels-admin-page .labels-field select,
.labels-admin-page .labels-field input[type="color"] {
  width: 72px;
  flex: 0 0 72px;
  height: 30px;
  padding: 3px 6px;
  border: 1px solid var(--cream-line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  font-size: 11px;
  box-sizing: border-box;
}
.labels-admin-page .labels-field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23163d75' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: left 8px center;
  padding-left: 18px;
}
.labels-admin-page .labels-field option {
  background: var(--cream);
  color: var(--ink);
}
.labels-admin-page .labels-field input[type="color"] {
  padding: 3px;
  cursor: pointer;
}
.labels-admin-page .labels-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.labels-admin-page .labels-field input[type="color"]::-webkit-color-swatch {
  border: 1px solid var(--cream-line);
  border-radius: 5px;
}
.labels-font-picker {
  position: relative;
  flex: 0 0 72px;
  width: 72px;
  height: 30px;
}
.labels-font-picker-btn {
  width: 72px;
  height: 30px;
  padding: 0 18px 0 8px;
  border: 1px solid var(--cream-line);
  border-radius: 8px;
  background: var(--cream) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23163d75' d='M0 0l5 6 5-6z'/></svg>") no-repeat left 8px center;
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.labels-font-picker.is-open .labels-font-picker-btn {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px var(--blue-pale);
}
.labels-font-picker-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 40;
  min-width: 168px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(22, 35, 59, 0.16);
}
.labels-font-picker-list li {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.labels-font-picker-list li:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
}
.labels-font-picker-list li.is-on {
  background: linear-gradient(135deg, var(--blue-light), var(--blue-dark));
  color: #fff;
}
.labels-font-select.is-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.labels-card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.labels-card h2, .labels-sheet-block h2 { margin: 0; font-size: 18px; }
.labels-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.labels-field {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
}
.labels-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
}
.labels-checks { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.labels-form.edge-x .margin-x,
.labels-form.edge-y .margin-y { opacity: 0.38; }
.labels-board {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.labels-embed .labels-board {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.4fr);
  min-height: 0;
  overflow: hidden;
}
.labels-board.labels-admin-board {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: start;
}
.labels-rails {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  min-height: 0;
  align-self: stretch;
}
.labels-embed .labels-rails {
  grid-template-rows: minmax(0, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
}
.labels-rails.is-one {
  grid-template-rows: 1fr;
}
.labels-stage-col {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: start;
}
.labels-embed .labels-stage-col {
  min-height: 0;
  overflow: hidden;
  align-content: stretch;
  grid-template-rows: minmax(0, 1fr);
}
.labels-admin-board .sheet-stage {
  width: 100%;
  min-width: 0;
}
.labels-rail {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
}
.labels-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 12px 8px;
}
.labels-mitzvot-desk {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}
.labels-pool-col {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px 10px;
}
.labels-embed .labels-pool-col {
  overflow: auto;
  align-content: start;
  grid-template-rows: none;
  grid-auto-rows: auto;
}
.labels-embed .label-pool {
  overflow: visible;
}
.labels-pool-split {
  margin: 4px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--cream-line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}
.labels-rail.is-mitzvot .labels-cat-side {
  border-end-start-radius: 16px;
}
.labels-rail[hidden] { display: none !important; }
.labels-rail h2 { margin: 0; font-size: 16px; }
.label-pool {
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: auto;
  scrollbar-width: none;
}
.label-pool::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}
.label-pool::-webkit-scrollbar-thumb {
  background: transparent;
}
.label-pool li { padding: 6px 0; }
.label-pool li + li { border-top: 1px solid #eef2f8; }
.label-pool .check { font-weight: 600; }
.sheet-stage {
  position: relative;
  overflow: hidden;
  background: transparent;
  min-width: 0;
  width: 100%;
}
.label-sheet {
  width: var(--sheet-w);
  height: var(--sheet-h);
  min-height: var(--sheet-h);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transform-origin: top center;
  background: #fff;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--w));
  grid-template-rows: repeat(var(--rows), var(--h));
  gap: var(--gapy) var(--gapx);
  padding: var(--mt) var(--mr) var(--mb) var(--ml);
  box-shadow: 0 12px 32px rgba(22, 35, 59, 0.16);
}
.sticker {
  width: var(--w);
  height: var(--h);
  position: relative;
  border: 1px dashed #c9d6e8;
  overflow: hidden;
  box-sizing: border-box;
  background: #fff;
  cursor: pointer;
  font-family: var(--ff, Heebo, Arial, sans-serif);
  color: var(--fc, #16233b);
}
.sticker-safe {
  position: absolute;
  top: var(--in-t, 0mm);
  right: var(--in-r, 0mm);
  bottom: var(--in-b, 0mm);
  left: var(--in-l, 0mm);
  overflow: hidden;
}
.sticker-qr {
  position: absolute;
  z-index: 2;
  top: var(--qr-y);
  left: var(--qr-x);
  touch-action: none;
}
.sticker-name {
  position: absolute;
  z-index: 1;
  top: var(--name-t, 0px);
  right: var(--name-r, 0px);
  bottom: var(--name-b, 2px);
  left: var(--name-l, 0px);
  min-width: 0;
  overflow: hidden;
  padding-inline: 2px;
  box-sizing: border-box;
  text-align: start;
  direction: rtl;
  touch-action: none;
}
.sticker-name-inner {
  max-width: 100%;
}
.label-sheet.is-admin .sticker-qr { cursor: grab; user-select: none; }
.label-sheet.is-admin .sticker-name-inner { cursor: ns-resize; user-select: none; }
.label-sheet.is-admin .sticker-qr:active { cursor: grabbing; }
.label-sheet.is-admin .sticker-safe { outline: 1px dashed #9eb4d4; }
.label-sheet.exporting .sticker-safe { outline: none; }
.sticker.is-empty {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #8aa0c2;
}
.sticker.is-used {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #9aa7bb;
  background: repeating-linear-gradient(-45deg, #f3f6fb, #f3f6fb 6px, #e7edf6 6px, #e7edf6 12px);
  cursor: default;
}
.sticker.on { box-shadow: inset 0 0 0 2px #4fa8d9; }
.cell-num { font-weight: 800; font-size: 12px; }
.sticker b {
  display: block;
  font-size: var(--fs);
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sticker small, .sticker code, .sticker-num {
  display: block;
  font-size: 8px;
  opacity: 0.72;
  overflow-wrap: anywhere;
}
.sticker .qr { flex: 0 0 auto; }
.sticker .qr img, .sticker .qr canvas, .sticker .qr table { display: block; }
.label-sheet.exporting .sticker { border-color: transparent; }
.label-sheet.exporting .sticker.is-empty,
.label-sheet.exporting .sticker.is-used { visibility: hidden; }
.label-sheet.is-admin .sticker {
  border-color: transparent;
  cursor: default;
}
.label-sheet.is-admin.show-grid .sticker { border: 1px solid #8aa0c2; }
.label-sheet.is-admin.show-grid.exporting .sticker {
  border: 1px solid #8aa0c2;
  visibility: visible;
}

@media (max-width: 980px) {
  .labels-board, .labels-admin-board { grid-template-columns: 1fr; }
  .labels-rails {
    grid-template-rows: minmax(180px, 240px) minmax(180px, 240px);
    height: auto !important;
  }
}
@media (max-width: 800px) {
  .hero-grid, .split, .app-body { grid-template-columns: 1fr; }
  .app-body.account-app {
    --account-cube-min: 72px;
    --account-cube-gap: 10px;
    --account-cubes-pad: 12px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }
  .app-body.account-app:has(.week-board) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  }
  .app-body.account-app:not(:has(.week-board)) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }
  .row-form { grid-template-columns: 1fr; }
  .account-top { padding: 8px 10px; }
  .account-syn { max-width: min(28vw, 120px); }
  .account-back span { display: none; }
  .account-cubes { padding: var(--account-cubes-pad) 8px; gap: var(--account-cube-gap); }
  .account-tools { padding: var(--account-cubes-pad) 6px; }
  .account-tool { min-height: 68px; padding: 6px 4px; font-size: 10px; }
  .account-cube { min-height: var(--account-cube-min); padding: 8px 4px; font-size: 10px; }
  .side.admin {
    position: static;
    height: auto;
  }
  .side:not(.admin) {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 12px 8px;
    display: grid;
    gap: 8px;
  }
  .side:not(.admin) .brand {
    gap: 8px;
  }
  .side:not(.admin) .brand img {
    width: 36px;
    height: 36px;
  }
  .side:not(.admin) .side-user {
    margin: 0;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .side:not(.admin) nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin: 0 -4px;
    padding: 0 4px 2px;
  }
  .side:not(.admin) nav::-webkit-scrollbar {
    display: none;
  }
  .side:not(.admin) nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 14px;
  }
}

@media print {
  .print-bar, .top, .foot, .side, .edit-bar,
  .labels-toolbar, .labels-rail, .labels-rails, .labels-stock-bar, .labels-pager,
  .labels-pages-wrap, .labels-card, .labels-admin-head, .labels-admin-side, .flash,
  .catalog-head, .catalog-desk { display: none !important; }
  .labels-modal-head, .labels-modal-close { display: none !important; }
  .app-body, .app-main, .wrap, .labels-page, .labels-board, .labels-stage-col, .sheet-stage,
  .labels-modal, .labels-modal-card, .labels-embed {
    display: block !important;
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    box-shadow: none !important;
    position: static !important;
    inset: auto !important;
    left: auto !important;
    opacity: 1 !important;
    clip: auto !important;
    pointer-events: auto !important;
  }
  .labels-page:not(.labels-admin-page) .sheet-stage .label-sheet,
  .label-sheet {
    display: grid !important;
    position: static !important;
    transform: none !important;
    left: auto !important;
    box-shadow: none !important;
    width: var(--sheet-w) !important;
    height: var(--sheet-h) !important;
    min-height: var(--sheet-h) !important;
    page-break-after: always;
    break-after: page;
  }
  .sheet-stage .label-sheet:last-child {
    page-break-after: auto;
    break-after: auto;
  }
  .sticker { border-color: transparent; }
  .sticker-safe { outline: none !important; }
  .sticker.is-empty,
  .sticker.is-used { visibility: hidden; }
  .label-sheet.is-admin.show-grid .sticker {
    border: 1px solid #8aa0c2 !important;
    visibility: visible !important;
  }
  @page { size: A4; margin: 0; }
}

.edit-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 0;
}
.edit-bar-inner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.edit-block { display: grid; gap: 4px; margin-bottom: 8px; }
.edit-tag { font-size: 12px; font-weight: 700; color: var(--blue); }
.landing-edit .hero .edit-tag { color: var(--gold); }
.edit-input {
  width: 100%;
  border: 1px dashed rgba(30, 90, 168, 0.45);
  background: rgba(255,255,255,.9);
}
.landing-edit .hero .edit-input {
  color: white;
  background: rgba(255,255,255,.1);
  border-color: rgba(244, 197, 66, .7);
  font: inherit;
}
.landing-edit .hero .edit-input.hero-title { font-size: clamp(32px, 6vw, 64px); font-weight: 800; }
.img-slot { display: grid; justify-items: center; gap: 8px; }
.img-edit { font-size: 13px; color: var(--gold); }
.edit-hint { font-size: 14px; }
.admin-card {
  display: block;
  background: white;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 18px 20px;
  color: inherit;
}
.admin-card h2 { margin: 0 0 8px; color: var(--blue-dark); }
.admin-card p { margin: 0; color: var(--ink-soft); font-weight: 500; }
.product-img { width: 100%; max-height: 160px; object-fit: cover; border-radius: 12px; }
.kit-line { font-size: 18px; margin: 8px 0 0; }
.product-edit, .kit-card { display: grid; gap: 10px; margin: 16px 0; }
.kit-card { grid-template-columns: 160px 1fr; align-items: start; }
.kit-card img, .addon-row img { width: 140px; height: 100px; object-fit: cover; border-radius: 12px; }
.register-wide { max-width: 720px !important; }
.addon-row { align-items: start; }
.addon-row small { display: block; color: var(--blue); }

.guide-block {
  max-width: 420px;
  margin: 0 auto 48px;
  text-align: center;
}
.guide-block h2 { margin-bottom: 8px; }
.guide-block p {
  color: var(--ink-soft);
  font-weight: 600;
  margin: 0 0 16px;
}
.guide-video {
  width: 100%;
  border-radius: 28px;
  background: #11161c;
  aspect-ratio: 9 / 16;
  box-shadow: 0 18px 40px rgba(14, 42, 82, 0.18);
}
html:has(.week-board),
body:has(.week-board) { height: 100%; overflow: hidden; }
.app-body:has(.week-board) { height: 100vh; overflow: hidden; }
.app-body.account-app:has(.week-board) {
  grid-template-columns: var(--account-tools-col) minmax(0, 1fr) 118px;
  grid-template-rows: auto auto auto minmax(0, 1fr);
}
.app-body.account-app:has(.week-board) > .app-main,
.app-body.account-app:has(.week-board) .wrap,
.app-body.account-app:has(.week-board) .week-board {
  display: contents;
}
.app-body.account-app:has(.week-board) .account-top {
  grid-column: 1 / -1;
  grid-row: 1;
}
.app-body.account-app:has(.week-board) .demo-admin-bar,
.app-body.account-app:has(.week-board) .flash {
  grid-column: 1 / -1;
  grid-row: 2;
}
.app-body.account-app:has(.week-board) .account-tools {
  grid-column: 1;
  grid-row: 3;
  align-self: stretch;
  position: static;
  padding: var(--account-cubes-pad) 10px 0 12px;
}
.app-body.account-app:has(.week-board) .week-head {
  grid-column: 2;
  grid-row: 3;
  align-self: stretch;
  padding: var(--account-cubes-pad) 10px 0;
}
.app-body.account-app:has(.week-board) .account-cubes {
  grid-column: 3;
  grid-row: 3;
  align-self: stretch;
  position: static;
  padding: var(--account-cubes-pad) 12px 0;
}
.app-body.account-app:has(.week-board) .week-list {
  grid-column: 2;
  grid-row: 4;
}
.week-head {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.week-list {
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 12px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.week-sales {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  gap: 22px 24px;
  justify-content: center;
  width: min(1020px, 100%);
}
.week-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.week-list > .week-empty,
.week-list > .week-mitzvah-panel,
.week-list > .week-remind-bar {
  width: min(1020px, 100%);
}
.week-hero {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.week-kicker {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
}
.week-hero h1 {
  margin: 0 0 2px;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.2;
}
.week-board > h1,
.page-title-row h1 {
  margin: 6px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}
.week-date {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 15px;
}
.week-hero .muted {
  margin: 0 0 8px;
}
.week-archive-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-weight: 700;
  cursor: pointer;
}
.week-archive-btn:hover,
.week-archive-btn[aria-expanded="true"] {
  border-color: var(--blue);
  color: var(--blue);
}
.week-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.week-drawer[hidden] {
  display: none;
}
.week-drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(14, 42, 82, 0.28);
  cursor: pointer;
}
.week-drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  display: flex;
  flex-direction: column;
  width: min(360px, 92vw);
  background: #fff;
  box-shadow: -12px 0 40px rgba(14, 42, 82, 0.16);
  transform: translateX(100%);
  transition: transform .2s ease;
}
.week-drawer.is-open .week-drawer-panel {
  transform: translateX(0);
}
.week-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 12px;
  border-bottom: 1px solid var(--cream-line);
}
.week-drawer-head h2 {
  margin: 0;
  font-size: 20px;
}
.week-drawer-close {
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.week-drawer-close:hover {
  background: var(--blue-pale);
  color: var(--blue-dark);
}
.week-drawer-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px;
  scrollbar-width: none;
}
.week-drawer-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.week-pick-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}
.week-pick-item {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
  text-align: start;
}
.week-pick-item:hover,
.week-pick-item.is-on {
  background: var(--blue-pale);
}
.week-pick-item[hidden] {
  display: none !important;
}
.week-pick-item b { font-size: 15px; }
.week-pick-item span {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}
.week-pick-stats {
  margin-top: 4px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  color: var(--blue-dark);
}
.week-year-label {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px 16px 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-soft);
}
.week-year-label select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}
.settings-desk {
  text-align: start;
}
.settings-head {
  margin: 0 0 18px;
}
.settings-head h1 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 32px);
  color: var(--blue-dark);
}
.settings-head .muted {
  margin: 0;
  font-size: 15px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.settings-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 20px;
  padding: 18px 18px 16px;
  box-shadow: 0 6px 16px rgba(14, 42, 82, 0.06);
}
.settings-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  color: var(--blue-dark);
}
.settings-card > .muted {
  margin: 0 0 14px;
  font-size: 14px;
}
.settings-form {
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: start;
}
.settings-form > .btn {
  margin-top: auto;
}
.settings-form label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.settings-form input:not([type="radio"]):not([type="checkbox"]),
.settings-form textarea {
  width: 100%;
  min-height: 42px;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
}
.settings-form input[type="radio"],
.settings-form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  flex: 0 0 16px;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}
.settings-form input[type="radio"]:checked,
.settings-form input[type="checkbox"]:checked {
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #fff;
}
.settings-form textarea {
  min-height: 84px;
  resize: vertical;
}
.settings-form .btn,
.settings-actions .btn {
  min-height: 42px;
  min-width: 0;
  width: fit-content;
  font-size: 15px;
  padding: 0 16px;
  justify-self: start;
}
.settings-gmail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--cream-line);
  display: grid;
  gap: 10px;
}
.settings-gmail-ok {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #146b3a;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.settings-card .form-error {
  font-size: 14px;
  padding: 10px 12px;
  margin: 0 0 8px;
}
.week-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: 720px;
  margin: auto auto 0;
}
.week-stats article, .week-stats a.week-stat {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: var(--account-cube-min);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 12px 8px;
  text-align: center;
}
.week-stats a.week-stat {
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.week-stats a.week-stat:hover, .week-stats a.week-stat.is-on {
  border-color: var(--blue);
  box-shadow: 0 8px 20px rgba(22, 35, 59, 0.08);
}
.week-stats small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}
.week-stats b {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  font-size: clamp(16px, 3.2vw, 28px);
  line-height: 1.15;
  color: var(--blue-dark);
  direction: ltr;
  unicode-bidi: isolate;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.week-mail-hint {
  max-width: 640px;
  margin: 8px auto;
  padding: 10px 14px;
  font-size: 14px;
}
.week-remind-bar {
  display: flex;
  justify-content: center;
  margin: 0 0 4px;
}
.week-remind-bar .btn {
  width: min(420px, 100%);
  min-height: 44px;
  font-size: 16px;
}
.week-empty {
  background: #fff;
  border: 1px dashed #c5d3e6;
  border-radius: 18px;
  padding: 28px 20px;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  text-align: center;
}
.week-sale {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 12px 14px 10px;
  margin: 0;
}
.week-sale.is-paid {
  background: #f3faf5;
}
.week-sale-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.week-sale-top b {
  display: block;
  font-size: 16px;
  color: var(--blue-dark);
}
.week-sale-top strong {
  display: block;
  font-size: 18px;
  margin-top: 2px;
}
.week-sale-top .muted {
  margin: 2px 0 0;
  font-size: 12px;
}
.week-badge {
  flex-shrink: 0;
  background: #fff4d6;
  color: #8a5a00;
  font-weight: 800;
  font-size: 11px;
  border-radius: 999px;
  padding: 4px 8px;
}
.week-sale.is-paid .week-badge {
  background: #d9f3e3;
  color: #146b3a;
}
.week-mitzvot {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.week-mitzvot li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  padding: 4px 0;
  border-top: 1px solid #eef2f8;
}
.week-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.week-actions .btn {
  min-height: 34px;
  min-width: 0;
  flex: 1;
  font-size: 13px;
  padding: 0 8px;
}
.week-actions form {
  flex: 1;
  display: flex;
  min-width: 0;
}
.week-mitzvah-panel {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 20px;
  padding: 8px 6px 10px;
}
.week-mitzvah-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 12px 6px;
}
.week-mitzvah-head h2 {
  margin: 0;
  font-size: 22px;
  color: var(--blue-dark);
}
.week-mitzvah-head p {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-soft);
}
.week-mitzvah-board {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.week-mitzvah-board li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eef2f8;
  border-radius: 12px;
}
.week-mitzvah-board b {
  display: block;
  font-size: 18px;
  color: var(--blue-dark);
}
.week-mitzvah-board span {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-soft);
}
.week-mitzvah-board strong {
  font-size: 18px;
  color: var(--blue);
}
.week-mitzvah-board em {
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
}
.week-mitzvah-board li.is-sold em {
  background: #d9f3e3;
  color: #146b3a;
}
.week-mitzvah-board li.is-left {
  background: #f7f9fc;
}
.week-mitzvah-board li.is-left em {
  background: #eef2f8;
  color: var(--ink-soft);
}
@media (max-width: 700px) {
  .week-mitzvah-board li {
    grid-template-columns: 1fr auto;
  }
  .week-mitzvah-board strong {
    grid-column: 2;
    grid-row: 1;
  }
}
.app-main .flash {
  font-size: 20px;
  font-weight: 800;
  border: 2px solid var(--gold);
  background: #fff8e6;
  color: var(--blue-dark);
}
.form-error {
  background: #fff1f1;
  border: 1px solid #e7b4b4;
  color: #8a1f1f;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 18px;
  font-weight: 700;
}
.mail-setup {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}
.mail-setup-label {
  display: grid;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--blue-dark);
}
.mail-setup .reg-input {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--cream-line);
  font-family: inherit;
}
.week-sale .gmail-bind-ok {
  font-size: 18px;
  margin: 4px 0 12px;
}
@media (max-width: 1100px) {
  .week-mitzvah-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .week-sales {
    width: min(680px, 100%);
    grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  }
  .week-list > .week-empty,
  .week-list > .week-mitzvah-panel,
  .week-list > .week-remind-bar {
    width: min(680px, 100%);
  }
}
@media (max-width: 800px) {
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings-langs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-body.account-app:has(.week-board) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  }
  .app-body.account-app:has(.week-board) .account-cubes {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    position: static;
    align-self: stretch;
    padding: 10px 12px 8px;
    gap: 10px;
  }
  .app-body.account-app:has(.week-board) .account-cube {
    flex: 1 1 0;
    min-width: 0;
    min-height: 72px;
    padding: 10px 8px;
    font-size: 12px;
  }
  .app-body.account-app:has(.week-board) .account-tools {
    grid-column: 1;
    grid-row: 4;
    flex-direction: row;
    position: static;
    align-self: stretch;
    padding: 0 12px 8px;
    gap: 8px;
  }
  .app-body.account-app:has(.week-board) .account-tool {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    font-size: 11px;
  }
  .app-body.account-app:has(.week-board) .week-head {
    grid-column: 1;
    grid-row: 5;
    padding-inline: 12px;
  }
  .app-body.account-app:has(.week-board) .week-list {
    grid-column: 1;
    grid-row: 6;
  }
  .app-body.account-app:has(.week-board) .demo-admin-bar,
  .app-body.account-app:has(.week-board) .flash {
    grid-column: 1;
    grid-row: 2;
  }
}
@media (max-width: 700px) {
  .week-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: none;
  }
  .week-stats article, .week-stats a.week-stat {
    min-height: var(--account-cube-min);
    padding: 8px 4px;
  }
  .week-stats small { font-size: 11px; }
  .week-stats b { font-size: clamp(13px, 4.6vw, 20px); }
  .week-sale-top { flex-direction: column; }
  .week-sales,
  .week-mitzvah-board {
    grid-template-columns: 1fr;
  }
  .week-sales,
  .week-list > .week-empty,
  .week-list > .week-mitzvah-panel,
  .week-list > .week-remind-bar {
    width: 100%;
  }
}
.luach-hero {
  background: linear-gradient(180deg, #163d75, #1e5aa8);
  color: #fff;
  border-radius: 22px;
  padding: 22px 24px 24px;
  margin: 8px 0 22px;
}
.luach-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.luach-date {
  margin: 6px 0 10px;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
}
.luach-now {
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--gold);
}
.luach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.luach-grid article {
  background: rgba(255,255,255,.1);
  border-radius: 16px;
  padding: 12px 14px;
}
.luach-grid small {
  display: block;
  opacity: .8;
  font-weight: 700;
}
.luach-grid b {
  display: block;
  font-size: 20px;
  margin: 4px 0 2px;
}
.luach-grid span { opacity: .86; font-size: 13px; }

.year-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.archive-slot {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 10px 0;
}
.archive-slot:not(.has-rows) { opacity: .72; }
.archive-slot header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.archive-slot header span,
.archive-slot header small {
  display: block;
  color: var(--ink-soft);
  font-weight: 500;
}
.archive-slot header b { font-size: 18px; color: var(--blue-dark); }
.archive-slot .table { margin-top: 10px; }
.archive-mitzvot {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.archive-mitzvot li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}
.archive-mitzvot b { font-weight: 700; }
.archive-mitzvot span { color: var(--blue); font-weight: 700; }
.archive-mitzvot code {
  font-size: 12px;
  background: var(--blue-pale);
  color: var(--blue-dark);
  border-radius: 8px;
  padding: 2px 7px;
}

.live-table {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
}
.live-table th,
.live-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.live-table input {
  width: auto;
  min-width: 5.5rem;
  max-width: none;
  field-sizing: content;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  padding: 8px 10px;
}
.live-table input:hover,
.live-table input:focus {
  background: #fff;
  border-color: #4fa8d9;
  outline: none;
}
.live-table tr.saved input { background: #eef8f0; }
.live-table tr.err input { background: #fdeceb; }
.live-table .num-side {
  width: 44px;
  white-space: nowrap;
}
.live-table input[name="code"] {
  width: 4.5rem;
  min-width: 4.5rem;
  field-sizing: fixed;
}
.live-table input[name="tag"] { min-width: 12rem; }
.live-table thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 0 1px 0 var(--cream-line);
}
.live-table tr.is-del td {
  background: #fdeceb;
}
.live-table tr.is-gone td {
  opacity: .4;
}
.live-del-ask {
  position: fixed;
  z-index: 80;
  background: #fff;
  border: 1px solid #f0c2c2;
  box-shadow: 0 10px 28px rgba(40, 18, 18, .16);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.live-del-ask.is-note {
  border-color: #c9e4cf;
  background: #f3faf4;
}
.live-del-ask p {
  margin: 0;
  font-weight: 700;
}
.live-del-actions {
  display: flex;
  gap: 8px;
}
.live-del-actions .btn {
  padding: 8px 12px;
  font-size: 14px;
}
.live-probe {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  visibility: hidden;
  white-space: pre;
  pointer-events: none;
}
.text-btn {
  background: none;
  border: 0;
  color: var(--danger);
  font-weight: 800;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

@media (max-width: 800px) {
  .luach-grid, .year-nav { grid-template-columns: 1fr; display: grid; }
  .order-card { grid-template-columns: 1fr; }
}

.product-cubes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
  align-items: start;
  margin: 16px 0 28px;
}
.products-page,
.landing-page,
.register-admin,
.admin-flow {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
html:has(.admin-flow),
body:has(.admin-flow) { height: 100%; overflow: hidden; }
.app-body:has(.admin-flow) { height: 100vh; overflow: hidden; }
.app-body:has(.admin-flow) .side {
  height: 100vh;
  overflow: auto;
}
.app-body:has(.admin-flow) .app-main {
  height: 100vh;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  display: flex;
}
.app-body:has(.admin-flow) .wrap {
  width: min(1180px, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: 24px 0 12px;
}
.app-body:has(.register-admin) .wrap {
  width: calc(100% - 16px);
}
.products-head {
  flex: 0 0 auto;
  background: var(--cream);
  z-index: 3;
}
.products-head h1 { margin: 0; }
.products-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 0 0 28px;
}
.products-scroll > .products-subhead:first-child { margin-top: 0; }
.products-scroll > .muted { margin: 0; }
.core-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 18px;
  align-items: stretch;
}
.core-row.is-kit { grid-template-columns: 1fr; }
.how-edit {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.how-col { display: grid; gap: 8px; align-content: start; }
.faq-edit-list { display: grid; gap: 10px; }
.faq-edit-row {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--cream-line);
  border-radius: 14px;
  background: #fff;
}
.field-edit-list { display: grid; gap: 8px; margin: 0; }
.fields-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.field-col {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.field-col .reg-section { margin: 0; }
.field-edit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.8rem 32px;
  gap: 8px;
  align-items: center;
  min-height: 48px;
  height: 48px;
  padding: 0 6px 0 4px;
  border: 1px solid #e3ecf6;
  border-radius: 14px;
  background: #fff;
  box-sizing: border-box;
}
.field-edit-row.is-add {
  border-style: dashed;
  background: #fbfcfe;
}
.field-edit-row .reg-input,
.field-edit-row input.reg-input {
  height: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 10px;
  border-radius: 12px;
}
.field-edit-row .reg-input:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}
.field-edit-row:focus-within {
  border-color: #4fa8d9;
  box-shadow: 0 0 0 3px rgba(79, 168, 217, 0.16);
}
.field-req,
.field-req-slot {
  min-width: 4.8rem;
  text-align: center;
}
.field-req {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 6px 2px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--danger);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  opacity: .28;
}
.field-req:has(input:checked),
.field-req.is-on {
  opacity: 1;
}
.field-req.is-locked { cursor: default; pointer-events: none; }
.field-req input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.field-row-action { width: 32px; height: 32px; }
.register-fields { min-width: 0; }
.register-mail,
.register-mail-preview {
  min-height: 420px;
}
.cube-add-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cube-add-row .reg-input { flex: 1; min-width: 140px; }
.contact-block p { margin: 0 0 8px; }
.products-subhead {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-size: 22px;
}
.core-row .product-cube {
  min-height: 100%;
}
.cube-fields.kit-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
}
.cube-fields.kit-layout .wide { grid-column: 1 / -1; }
.kit-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}
.kit-main > label:first-child input {
  font-size: 18px;
  font-weight: 800;
}
.kit-main .kit-bundle { grid-column: 1 / -1; }
.kit-bundle {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.product-kit .desc-preview.is-side {
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100%;
}
.product-kit .desc-preview.is-side .desc-preview-body {
  height: auto;
  min-height: 140px;
}
.bundle-choices {
  display: grid;
  gap: 8px;
}
.bundle-choice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.bundle-choice:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.bundle-choice small {
  color: var(--ink-soft);
  font-weight: 600;
}
.sub-pick {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
}
.sub-pick-form { display: grid; gap: 12px; justify-items: start; }
.sub-pick-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.sub-opt {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
}
.sub-opt:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.sub-opt input { accent-color: var(--blue); }
.sub-opt b { color: var(--blue-dark); }
.sub-opt span { color: var(--ink-soft); font-size: 13px; }
.sub-opt strong { color: var(--blue); }
.admin-cubes .cube-head-end .btn { min-width: 88px; }
.admin-cubes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin: 0 0 12px;
}
.product-cube {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 16px;
  color: inherit;
  min-width: 0;
}
.product-cube.is-sub { border-color: rgba(30, 90, 168, .45); box-shadow: 0 8px 20px rgba(22, 61, 117, .08); }
.product-cube.is-add { border-style: dashed; }
.shop-cubes .product-cube img,
.shop-cubes .cube-ph {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: #eef4fb;
  display: block;
}
.cube-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
.cube-head-start { justify-self: start; }
.cube-head-end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cube-head-end .btn {
  padding: 8px 12px;
  min-height: 36px;
  min-width: 88px;
}
.cube-save.is-clean,
.cube-save:disabled {
  color: #9aa8bc;
  border-color: var(--cream-line);
  background: #f3f6fa;
  opacity: 1;
  cursor: default;
}
.cube-save.is-dirty {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  cursor: pointer;
}
.cube-del { color: #b42318; }
.cube-del:hover { border-color: #b42318; background: #fdecea; }
.cube-add {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}
.cube-add:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.sub-layout {
  grid-template-columns: 1fr 1fr;
}
.sub-layout .wide,
.sub-layout .desc-preview { grid-column: 1 / -1; }
.sub-layout > label:first-child input {
  font-size: 18px;
  font-weight: 800;
}
.cube-kind {
  font-size: 18px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0;
}
.kit-strip-bar .cube-kind {
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: .04em;
}
.cube-fields {
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
}
.product-cube .cube-fields label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.product-cube .cube-fields > label:first-child input {
  font-size: 18px;
  font-weight: 800;
}
.product-cube .cube-fields input,
.product-cube .cube-fields textarea,
.product-cube .cube-fields select {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.product-cube .cube-fields input[type="file"] { display: none; }
.product-cube p { margin: 0; color: var(--ink-soft); font-weight: 500; }
.product-cube .muted { font-size: 12px; font-weight: 500; }
.product-cube .check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.desc-preview {
  display: grid;
  gap: 8px;
}
.desc-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.desc-preview-body {
  height: 96px;
  overflow: auto;
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
}
.desc-preview-body .feat-list { margin: 0; gap: 6px; }
.desc-preview-body .feat-list li { padding: 6px 8px; font-size: 13px; }
.desc-preview-body p { font-size: 13px; line-height: 1.55; }
.desc-layer {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 82, .42);
  z-index: 43;
  display: grid;
  place-items: center;
  padding: 24px;
}
.desc-layer[hidden] { display: none; }
.desc-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}
.desc-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.desc-dialog .kit-x { position: static; }
.remind-dialog {
  width: min(680px, 100%);
  max-height: min(90vh, 860px);
}
.remind-dialog .mail-frame-host {
  min-height: 260px;
  max-height: 48vh;
  background: #f3eee6;
  border-radius: 16px;
  padding: 14px;
  overflow: auto;
}
.remind-dialog .form-error {
  margin: 0;
  font-size: 14px;
  padding: 10px 12px;
}
.remind-dialog form { display: grid; gap: 10px; }
.remind-ok {
  margin: 0;
  background: #e8f7ee;
  border: 1px solid #b7e0c5;
  color: #146b3a;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
}
.desc-draft-text {
  width: 100%;
  min-height: 160px;
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  background: #fff;
  resize: vertical;
}
.desc-modes { display: flex; gap: 6px; }
.desc-mode {
  border: 1px solid var(--cream-line);
  background: #fff;
  color: var(--blue-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.desc-mode.is-on {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}
.desc-list { display: grid; gap: 8px; }
.desc-list[hidden],
.desc-dialog textarea[hidden] { display: none; }
.desc-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 22px;
  gap: 8px;
  align-items: start;
}
.desc-row textarea {
  width: 100%;
  min-height: 40px;
  resize: none;
  overflow: hidden;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  line-height: 1.45;
  background: #fff;
}
.desc-row input {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.desc-row .feat-check { margin-top: 11px; }
.desc-row .desc-x { margin-top: 9px; }
.desc-x {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 61, 117, .88);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.desc-add {
  justify-self: start;
  border: 1.5px dashed #8aa0c2;
  background: #eaf2fa;
  color: var(--blue);
  border-radius: 10px;
  padding: 7px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.feat-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.feat-list li,
.reg-kit-list b {
  display: flex;
  align-items: center;
  gap: 10px;
}
.feat-list li {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  color: var(--ink);
  align-items: flex-start;
}
.feat-check { flex: 0 0 auto; display: block; }
.shop-cubes .feat-list { margin: 0; }
.cube-drop {
  position: relative;
  height: 150px;
  border-radius: 12px;
  background: #eaf2fa;
  border: 1.5px dashed #8aa0c2;
  overflow: hidden;
  flex: 0 0 auto;
}
.cube-drop.is-over { border-color: var(--blue); background: #dceaf8; }
.cube-drop.has-image { border-style: solid; border-color: transparent; }
.cube-file {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  width: 100%;
  height: 100%;
  font-size: 0;
  border: 0;
  padding: 0;
  background: transparent;
}
.cube-drop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.cube-drop-hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  pointer-events: none;
  padding: 12px;
  text-align: center;
}
.cube-drop.has-image .cube-drop-hint { display: none; }
.cube-drop-remove {
  position: absolute;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 2;
  display: none;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(22, 61, 117, .86);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.cube-drop.has-image .cube-drop-remove { display: inline-flex; }
.cube-drop .kit-x { display: none; }
.cube-drop.has-image .kit-x,
.cube-drop.has-image .cube-drop-remove { display: grid; }
.cube-drop .cube-lib {
  position: absolute;
  top: 8px;
  inset-inline-end: 8px;
  z-index: 2;
}
.kit-strip { display: grid; gap: 8px; }
.sub-rail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-height: 80px;
}
.sub-rail label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  background: #eaf2fa;
  border-radius: 12px;
  padding: 10px 12px;
  align-content: center;
}
.sub-rail input {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.sub-settings-btn {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 800;
  text-align: right;
  background: var(--blue-pale);
  color: var(--blue-dark);
  cursor: pointer;
}
.sub-layer {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 82, .42);
  z-index: 43;
  display: grid;
  place-items: center;
  padding: 24px;
}
.sub-layer[hidden] { display: none; }
.sub-dialog {
  width: min(560px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}
.sub-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sub-dialog .kit-x { position: static; }
.sub-plans { display: grid; gap: 8px; }
.sub-plan-head,
.sub-plan-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.2fr) 88px 88px 22px;
  gap: 8px;
  align-items: center;
}
.sub-plan-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.sub-plan-row input[type="text"],
.sub-plan-row input[type="number"] {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
}
.sub-free { margin: 0; }
.kit-strip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.kit-strip-actions { display: flex; gap: 6px; }
.kit-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cream-line);
  background: #fff;
  color: var(--blue);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}
.kit-icon:hover { border-color: var(--blue-light); }
.kg-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--blue-light) var(--blue-pale);
}
.kg-scroll::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}
.kg-scroll::-webkit-scrollbar-track {
  background: var(--blue-pale);
  border-radius: 999px;
  border: 1px solid var(--cream-line);
}
.kg-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--blue-light), var(--blue-dark));
  border-radius: 999px;
}
.kg-scroll::-webkit-scrollbar-button,
.kg-scroll::-webkit-scrollbar-button:start:decrement,
.kg-scroll::-webkit-scrollbar-button:end:increment,
.kg-scroll::-webkit-scrollbar-button:horizontal:decrement,
.kg-scroll::-webkit-scrollbar-button:horizontal:increment,
.kg-scroll::-webkit-scrollbar-button:vertical:decrement,
.kg-scroll::-webkit-scrollbar-button:vertical:increment,
.kit-rail::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
}
.products-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.products-scroll::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}
.products-scroll::-webkit-scrollbar-track,
.products-scroll::-webkit-scrollbar-thumb,
.products-scroll::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
}
html, body,
.kg-scroll,
.labels-modal-card,
.labels-embed .labels-stage-col,
.labels-pages-list,
.labels-pages-wrap,
.labels-stock-bar,
.labels-cat-side,
.label-pool,
.labels-embed .labels-pool-col,
.table-scroll,
.app-main,
.files-grid,
.cat-box-body,
.cat-seasons,
.cat-side {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.kg-scroll::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar,
.app-main::-webkit-scrollbar,
.cat-box-body::-webkit-scrollbar,
.cat-seasons::-webkit-scrollbar,
.cat-side::-webkit-scrollbar,
.labels-modal-card::-webkit-scrollbar,
.labels-embed .labels-stage-col::-webkit-scrollbar,
.labels-pages-list::-webkit-scrollbar,
.labels-pages-wrap::-webkit-scrollbar,
.labels-stock-bar::-webkit-scrollbar,
.labels-cat-side::-webkit-scrollbar,
.label-pool::-webkit-scrollbar,
.labels-embed .labels-pool-col::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}
.landing-kit { min-width: 0; }
.landing-grid,
.register-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.landing-grid > .product-cube,
.register-grid > .product-cube { min-width: 0; margin: 0; }
.landing-grid .how-edit { grid-template-columns: 1fr; }
.kit-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}
.kit-rail.is-over,
.kit-add-tile.is-over { outline: 2px dashed var(--blue); border-radius: 12px; }
.kit-thumb,
.kit-add-tile {
  flex: 0 0 80px;
  width: 80px;
  height: 80px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf2fa;
  scroll-snap-align: start;
}
.kit-thumb img,
.kit-thumb video,
.kit-add-tile {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kit-add-tile {
  border: 1.5px dashed #8aa0c2;
  background: #eaf2fa;
  color: var(--blue);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 80px;
}
.kit-add-tile .cube-file { pointer-events: none; position: absolute; inset: 0; opacity: 0; }
.kit-x {
  position: absolute;
  top: 4px;
  inset-inline-start: 4px;
  z-index: 2;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 61, 117, .88);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.kit-thumb-name {
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  z-index: 2;
  border: 0;
  background: rgba(255,255,255,.94);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 5px;
  width: 100%;
}
.media-layer {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 82, .42);
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}
.media-layer[hidden] { display: none; }
.media-dialog {
  width: min(720px, 100%);
  max-height: min(80vh, 640px);
  overflow: auto;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px 20px;
  display: grid;
  gap: 12px;
}
.media-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.media-dialog .kit-x { position: static; }
.media-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}
.media-toolbar input { flex: 1; }
.media-upload { position: relative; overflow: hidden; }
.media-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.media-card {
  border: 1px solid var(--cream-line);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: right;
}
.media-card img,
.media-card video {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
  background: #eaf2fa;
}
.media-card span {
  display: block;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
}
.files-page { display: grid; gap: 16px; }
.files-head h1 { margin: 0 0 6px; }
.files-head .muted { margin: 0; }
.files-upload {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.files-pick { position: relative; overflow: hidden; }
.files-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}
.file-card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  overflow: hidden;
  display: grid;
}
.file-preview {
  display: block;
  background: #eaf2fa;
}
.file-card img,
.file-card video {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.file-name {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  padding: 8px;
  align-items: center;
}
.file-name input {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 7px 8px;
  font: inherit;
}
.file-app {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 14px 16px;
}
.file-app p { margin: 0; }
.display-layer {
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 82, .42);
  z-index: 42;
  display: grid;
  place-items: center;
  padding: 24px;
}
.display-layer[hidden] { display: none; }
.display-dialog {
  width: min(720px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 18px;
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}
.display-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.display-dialog .kit-x { position: static; }
.kit-preview {
  background: linear-gradient(180deg, #eaf2fa, #fff);
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 12px;
  min-height: 220px;
}
.kit-preview .kit-show.is-slide { height: 280px; }
.kit-preview .kit-show.is-stack { height: 250px; }
.kit-preview .kit-show.is-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
.kit-preview .kit-show.is-grid img,
.kit-preview .kit-show.is-grid video { height: 100px; }
.kit-preview .kit-show.is-collage { grid-auto-rows: 90px; }
.kit-preview .kit-show.is-collage img:first-child,
.kit-preview .kit-show.is-collage video:first-child { min-height: 188px; }
.display-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.display-mode {
  border: 1px solid var(--cream-line);
  background: #fff;
  border-radius: 12px;
  padding: 10px 8px;
  font: inherit;
  font-weight: 800;
  color: var(--blue-dark);
  cursor: pointer;
}
.display-mode:hover { border-color: var(--blue-light); }
.display-mode.is-on {
  border-color: var(--blue);
  background: var(--blue-pale);
  box-shadow: 0 0 0 2px rgba(30, 90, 168, .16);
}
.display-delay {
  display: grid;
  gap: 6px;
  font-weight: 700;
  max-width: 180px;
}
.display-delay[hidden] { display: none; }
.display-foot { display: flex; justify-content: flex-start; }
.kit-show video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kit-show.is-slide video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}
.kit-show.is-slide video.is-on { opacity: 1; }
.kit-visual { margin: 16px 0 10px; }
.kit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.kit-chips span {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.kit-show {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
}
.kit-show.is-slide {
  height: 240px;
  background: #eaf2fa;
}
.kit-stage .kit-show.is-slide { height: 180px; }
.kit-show.is-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .45s ease;
}
.kit-show.is-slide img.is-on { opacity: 1; }
.kit-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.kit-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: #c5d0e0;
  padding: 0;
  cursor: pointer;
}
.kit-dots button.on { background: var(--blue); }
.kit-show.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.kit-show.is-grid img,
.kit-show.is-grid video {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.kit-stage .kit-show.is-grid img,
.kit-stage .kit-show.is-grid video { height: 88px; }
.kit-show.is-collage {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-auto-rows: 110px;
  gap: 8px;
}
.kit-show.is-collage img,
.kit-show.is-collage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}
.kit-show.is-collage img:first-child,
.kit-show.is-collage video:first-child {
  grid-row: span 2;
  min-height: 228px;
}
.kit-stage .kit-show.is-collage { grid-auto-rows: 72px; }
.kit-stage .kit-show.is-collage img:first-child,
.kit-stage .kit-show.is-collage video:first-child { min-height: 152px; }
.kit-show.is-stack {
  height: 220px;
}
.kit-stage .kit-show.is-stack { height: 170px; }
.kit-show.is-stack img,
.kit-show.is-stack video {
  position: absolute;
  width: 58%;
  height: 78%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(14, 42, 82, .18);
  background: #fff;
}
.kit-show.is-stack img:nth-child(1),
.kit-show.is-stack video:nth-child(1) { inset-inline-start: 4%; top: 12%; transform: rotate(-7deg); z-index: 1; }
.kit-show.is-stack img:nth-child(2),
.kit-show.is-stack video:nth-child(2) { inset-inline-start: 22%; top: 6%; transform: rotate(4deg); z-index: 2; }
.kit-show.is-stack img:nth-child(3),
.kit-show.is-stack video:nth-child(3) { inset-inline-start: 40%; top: 14%; transform: rotate(-2deg); z-index: 3; }
.kit-show.is-stack img:nth-child(n+4),
.kit-show.is-stack video:nth-child(n+4) { inset-inline-start: 36%; top: 8%; transform: rotate(1deg); z-index: 4; }
.product-sub,
.product-kit {
  display: flex;
  flex-direction: column;
}
.order-tray {
  background: #fff8e8;
  border: 1px solid #f0d48a;
  border-radius: 18px;
  padding: 16px 18px 18px;
  margin: 8px 0 24px;
}
.order-tray h2 { margin: 0 0 10px; color: var(--blue-dark); }
.order-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  background: white;
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 10px;
}
.order-card p, .order-card ul { margin: 6px 0 0; }
.order-card ul { padding: 0 18px 0 0; }
.paywall {
  background: #fff8e8;
  border: 1px solid #f0d48a;
  border-radius: 18px;
  padding: 18px 20px;
  margin: 8px 0 22px;
  display: grid;
  gap: 10px;
  justify-items: start;
}
.paywall h2 { margin: 0; color: var(--blue-dark); }
.paywall p { margin: 0; }
.users-table td { vertical-align: top; }
.users-page .muted { margin: 0 0 12px; }
.users-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 16px;
}
.users-tab {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--cream-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}
.users-tab b {
  font-size: 16px;
  font-weight: 800;
  color: var(--blue-dark);
}
.users-tab small {
  color: var(--ink-soft);
  font-weight: 700;
}
.users-tab.on {
  border-color: #4fa8d9;
  background: #f3f8fd;
  box-shadow: 0 8px 20px rgba(22, 61, 117, 0.08);
}
.users-tab[href*="tab=demo"] b { color: #1e5aa8; }
.users-create { margin: 0 0 16px; }
.users-create-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 16px;
  align-items: center;
}
.users-create-body .muted { margin: 0; }
.users-create-actions {
  display: grid;
  gap: 8px;
}
.users-create-actions .btn { width: 100%; }
.users-demo-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 8px;
}
.users-mini-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) auto;
  gap: 8px;
  margin: 0 0 10px;
}
.users-mini-add input {
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.users-secret {
  direction: ltr;
  unicode-bidi: isolate;
  font-weight: 700;
  background: #f3f8fd;
  padding: 2px 7px;
  border-radius: 8px;
}
.users-reveal summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue-dark);
  list-style: none;
}
.users-reveal summary::-webkit-details-marker { display: none; }
.users-reveal[open] summary { margin-bottom: 6px; }
.users-pass-cell { min-width: 7.5rem; }
.users-creds {
  margin: 0;
  display: grid;
  gap: 10px;
}
.users-creds > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 14px;
}
.users-creds dt {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
}
.users-creds dd { margin: 0; font-weight: 700; }
.users-demo-actions form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.users-demo-grid { align-items: stretch; }
.demo-admin-bar {
  background: var(--blue-dark);
  color: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 16px;
  font-weight: 700;
}
.demo-admin-bar a {
  color: #fff;
  font-weight: 800;
}
@media (max-width: 900px) {
  .users-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .users-create-body,
  .users-demo-split { grid-template-columns: 1fr; }
  .users-mini-add { grid-template-columns: 1fr; }
}
.shop-cubes .product-cube form { margin-top: auto; }
.system-page .landing-grid { align-items: stretch; }
.system-admin { grid-column: 1 / -1; }
.smtp-box-row {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 32px;
}
.desc-dialog label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
}
.desc-dialog input,
.desc-dialog select {
  width: 100%;
  border: 1px solid var(--cream-line);
  border-radius: 10px;
  padding: 8px 10px;
  font: inherit;
  background: #fff;
}
.desc-dialog .mail-chips { margin-top: 2px; }

@media (max-width: 1100px) {
  .admin-cubes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .core-row { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .admin-cubes { grid-template-columns: 1fr; }
  .landing-grid,
  .register-grid,
  .fields-split { grid-template-columns: 1fr; }
  .core-row .cube-fields,
  .cube-fields.kit-layout,
  .kit-main,
  .sub-layout,
  .how-edit,
  .kit-display,
  .sub-rail,
  .sub-plan-row,
  .sub-plan-head,
  .kit-show.is-collage { grid-template-columns: 1fr; }
  .kit-show.is-collage img:first-child,
  .kit-show.is-collage video:first-child { grid-row: auto; min-height: 160px; }
  .display-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.cube-fields > label.wide {
  grid-column: 1 / -1;
}

.gmail-bind {
  display: grid;
  gap: 8px;
}

.gmail-bind-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #d7e0ee;
  background: #fff;
  color: #1b2a4a;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  width: fit-content;
}

.gmail-bind-ok {
  margin: 0;
  color: #1a7f4b;
  font-size: 13px;
  font-weight: 700;
}

.app-body:has(.catalog-desk-page) .wrap {
  width: min(1280px, calc(100% - 24px));
}

.catalog-desk-page .head-row {
  justify-content: flex-start;
  gap: 12px;
}
.catalog-desk-page .catalog-head p {
  margin: 6px 0 0;
}

.catalog-desk {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.cat-box {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 20px;
  overflow: hidden;
}

.cat-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
}

.cat-box-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
}

.cat-box.is-people .cat-box-head {
  background: var(--blue-deep);
}

.cat-box.is-mitzvot .cat-box-head {
  background: var(--blue-dark);
}

.cat-jump {
  display: none;
  margin-inline-start: auto;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}
.cat-jump:hover,
.cat-jump.is-on {
  background: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.cat-swap {
  display: none;
}

.cat-box-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--cream-line);
  background: var(--cream);
}

.cat-box-actions .text-btn {
  padding: 4px 8px;
}

.cat-sort {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 12px;
}

.cat-sort > span {
  color: var(--ink-soft);
  font-weight: 600;
  margin-inline-end: 4px;
  white-space: nowrap;
}

.cat-sort .text-btn {
  color: var(--ink-soft);
  font-size: 12px;
  padding: 2px 6px;
}

.cat-sort .text-btn.is-on {
  color: var(--blue-deep);
}

.cat-actions-spacer {
  flex: 1;
  min-width: 8px;
}

.cat-actions-split {
  width: 1px;
  align-self: stretch;
  margin-block: 4px;
  background: var(--cream-line);
}

.cat-bulk-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--danger);
}

.cat-bulk-del svg {
  width: 18px;
  height: 18px;
  display: block;
}

.cat-bulk-del[hidden] { display: none !important; }

.cat-mitzvot-desk {
  display: grid;
  grid-template-columns: 158px 1fr;
  flex: 1;
  min-height: 0;
}

.cat-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
  overflow: auto;
  padding: 8px 6px;
  background: var(--blue-pale);
  border-inline-end: 1px solid var(--cream-line);
}

.cat-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--blue-deep);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  cursor: pointer;
}

.cat-tab b {
  min-width: 1.4em;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cat-tab.is-on {
  background: var(--blue-deep);
  color: #fff;
}

.cat-tab.is-on b {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.cat-tab.is-drop,
.cat-tab.is-on.is-drop {
  background: var(--blue);
  color: #fff;
}

.live-table.is-cards {
  border-collapse: separate;
  border-spacing: 0 8px;
}

.live-table.is-cards tr[data-id] td {
  background: #fff;
  border-top: 2px solid var(--cream-line);
  border-bottom: 2px solid var(--cream-line);
}

.live-table.is-cards tr[data-id] td:first-child {
  border-inline-start: 2px solid var(--cream-line);
  border-start-start-radius: 14px;
  border-end-start-radius: 14px;
}

.live-table.is-cards tr[data-id] td:last-child {
  border-inline-end: 2px solid var(--cream-line);
  border-start-end-radius: 14px;
  border-end-end-radius: 14px;
}

.live-table.is-cards tr[data-id] .num-side {
  width: 46px;
  padding: 8px 6px;
  vertical-align: middle;
  text-align: center;
  background: var(--blue-pale);
  cursor: grab;
}

.live-table.is-cards tr[data-id] .num-side::before {
  content: "";
  display: block;
  width: 10px;
  height: 12px;
  margin: 0 auto 6px;
  background-image: radial-gradient(circle, var(--blue) 1.15px, transparent 1.3px);
  background-size: 5px 5px;
  background-repeat: repeat;
  opacity: .7;
}

.live-table.is-cards tr[data-id] .num-side .text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
  color: var(--blue-dark);
  cursor: grab;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 0 0 1px var(--cream-line);
}

.live-table.is-cards tr[data-id] input {
  cursor: text;
}

.live-table.is-cards tr.is-picked td {
  background: var(--blue-pale);
  border-top-color: var(--blue);
  border-bottom-color: var(--blue);
}

.live-table.is-cards tr.is-picked td:first-child {
  border-inline-start-color: var(--blue);
}

.live-table.is-cards tr.is-picked td:last-child {
  border-inline-end-color: var(--blue);
}

.live-table.is-cards tr.is-picked .num-side .text-btn {
  background: var(--blue);
  color: #fff;
  box-shadow: none;
}

.cat-drag-ghost {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--blue-deep);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(14, 42, 82, .28);
  transform: translate(-12px, -8px);
}

body.cat-dragging,
body.cat-dragging .live-table.is-cards tr[data-id] .num-side,
body.cat-dragging .live-table.is-cards tr[data-id] .num-side .text-btn {
  cursor: grabbing;
}

.cat-box.is-picking tr[data-id] {
  user-select: none;
}

.cat-box-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.cat-box .table-scroll {
  border: 0;
  border-radius: 0;
  flex: 1;
}

.cat-box.is-people .cat-box-body {
  padding: 8px 10px;
}

.cat-seasons {
  min-height: 0;
}

.cat-season { display: none; }

.cat-season.is-on { display: block; }

.cat-box.is-mitzvot.is-all .cat-season {
  display: none;
}

.cat-box.is-mitzvot.is-all .cat-season:has(tr[data-id]) {
  display: block;
}

.cat-box.is-mitzvot.is-all .cat-season::before {
  content: attr(data-tag);
  display: block;
  padding: 10px 12px 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--blue-dark);
}

.cat-box.is-mitzvot.is-all .cat-inbox::before {
  content: "חדשות";
}

.cat-season .live-table {
  width: 100%;
  overflow: visible;
  border-radius: 0;
}

.live-table.is-people,
.live-table.is-season {
  width: 100%;
}

.live-table.is-people td,
.live-table.is-season td {
  white-space: normal;
  padding: 8px 10px;
  vertical-align: top;
}

.cat-line,
.cat-stack {
  display: flex;
  gap: 8px;
}

.cat-stack { flex-direction: column; gap: 4px; }

.cat-person,
.cat-mitzvah { width: 100%; }

.cat-line > input { flex: 1; min-width: 0; }

.live-table.is-people input[name="email"],
.live-table.is-people input[name="phone"],
.live-table.is-season input[name="note"] {
  font-size: 13px;
  color: var(--ink-soft);
  min-width: 0;
  width: 100%;
}

.live-table.is-people input[name="first_name"],
.live-table.is-people input[name="last_name"],
.live-table.is-season input[name="name"] {
  min-width: 0;
  width: 100%;
  font-weight: 700;
}

.cat-hidden { display: none; }

.labels-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(14, 42, 82, 0.46);
  display: none;
  padding: 18px;
}

.labels-modal.is-open,
.labels-modal:not([hidden]) {
  display: flex;
}

.labels-modal[hidden] { display: none !important; }

.labels-modal-card {
  margin: auto;
  width: min(1360px, 100%);
  max-height: calc(100vh - 36px);
  height: calc(100vh - 36px);
  overflow: hidden;
  background: var(--cream);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(14, 42, 82, 0.28);
  display: flex;
  flex-direction: column;
}

.labels-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

.labels-modal .labels-embed {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.labels-modal .labels-board {
  min-height: 0;
  overflow: hidden;
}

.labels-modal-head h2 { margin: 0 0 4px; font-size: 24px; }
.labels-modal-head p { margin: 0; color: var(--ink-soft); font-weight: 600; }

body.labels-modal-open { overflow: hidden; }

@media (max-width: 980px) {
  .catalog-desk { grid-template-columns: 1fr; }
  .cat-mitzvot-desk { grid-template-columns: 140px 1fr; }
}

@media (max-width: 800px) {
  .app-body.account-app:not(:has(.week-board)) .account-cubes {
    grid-column: 1;
    grid-row: 2;
    flex-direction: row;
    position: static;
    align-self: stretch;
    padding: 10px 12px 8px;
    gap: 10px;
  }
  .app-body.account-app:not(:has(.week-board)) .account-cube {
    flex: 1 1 0;
    min-width: 0;
    min-height: 72px;
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 16px;
  }
  .app-body.account-app:not(:has(.week-board)) .account-cube-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .app-body.account-app:not(:has(.week-board)) .account-tools {
    grid-column: 1;
    grid-row: 3;
    flex-direction: row;
    position: static;
    align-self: stretch;
    padding: 0 12px 10px;
    gap: 8px;
  }
  .app-body.account-app:not(:has(.week-board)) .account-tool {
    flex: 1 1 0;
    min-width: 0;
    min-height: 56px;
    font-size: 11px;
  }
  .app-body.account-app:not(:has(.week-board)) > .app-main {
    grid-column: 1;
    grid-row: 4;
    min-width: 0;
  }
  .cat-jump {
    display: inline-flex;
    align-items: center;
  }
  .cat-swap {
    display: flex;
    gap: 6px;
    margin-inline-start: auto;
  }
  .cat-swap-btn {
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    background: var(--blue-pale);
    color: var(--blue-dark);
    cursor: pointer;
  }
  .cat-swap-btn.is-on {
    background: var(--blue-deep);
    color: #fff;
  }
  .catalog-desk.is-people .cat-box.is-mitzvot,
  .catalog-desk.is-mitzvot .cat-box.is-people {
    display: none;
  }
  html:has(.catalog-page),
  body:has(.catalog-page) {
    height: 100%;
    overflow: hidden;
  }
  .app-body:has(.catalog-page) {
    height: 100dvh;
    overflow: hidden;
  }
  .app-body.account-app:has(.catalog-page) {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }
  .app-body:has(.catalog-page) .app-main,
  .app-body.account-app:has(.catalog-page) .app-main {
    height: 100%;
    min-height: 0;
    overflow: hidden;
    display: flex;
    padding: 0 0 12px;
    grid-column: 1;
    grid-row: 4;
  }
  .app-body:has(.catalog-page) .wrap,
  .app-body.account-app:has(.catalog-page) .wrap {
    height: 100%;
    min-height: 0;
    width: min(1280px, calc(100% - 20px));
    padding: 8px 0 8px;
  }
  .catalog-page {
    flex: 1;
    min-height: 0;
    height: auto;
  }
  .catalog-desk {
    grid-template-columns: 1fr;
    flex: 1;
    min-height: 0;
  }
  .catalog-head {
    position: sticky;
    top: 0;
    z-index: 6;
    padding-bottom: 8px;
    background: var(--cream);
  }
  .cat-box {
    min-height: 0;
    height: 100%;
    scroll-margin-top: 0;
  }
  .app-body.account-app:has(.settings-desk) {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    grid-template-columns: 1fr;
  }
  .app-body.account-app:has(.settings-desk) .app-main {
    height: auto;
    overflow: visible;
    padding: 8px 0 28px;
    grid-column: 1;
    grid-row: 4;
  }
  .app-body.account-app:has(.settings-desk) .wrap {
    width: min(980px, calc(100% - 20px));
    padding: 0 0 12px;
  }
  .cat-jump {
    display: inline-flex;
    align-items: center;
  }
  .cat-box-actions {
    flex-wrap: wrap;
    row-gap: 6px;
    padding: 8px 10px;
  }
  .cat-sort {
    flex: 1 1 100%;
    justify-content: flex-start;
  }
  .cat-actions-spacer {
    display: none;
  }
  .cat-mitzvot-desk {
    grid-template-columns: 1fr;
  }
  .cat-side {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    border-inline-end: 0;
    border-bottom: 1px solid var(--cream-line);
    padding: 8px;
    gap: 6px;
  }
  .cat-tab {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .live-table.is-people,
  .live-table.is-season {
    width: 100%;
    table-layout: fixed;
  }
  .cat-line {
    flex-wrap: wrap;
  }
}

body.landing {
  background: #f4efe4;
}
body.landing .top {
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(14, 42, 82, 0.18);
}
body.landing .wrap { width: min(1120px, calc(100% - 36px)); }
body.landing .home-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 64px 0 80px;
  background:
    radial-gradient(900px 380px at 12% 0%, rgba(244, 197, 66, 0.22), transparent 58%),
    radial-gradient(700px 320px at 100% 80%, rgba(79, 168, 217, 0.22), transparent 55%),
    linear-gradient(165deg, #0b2244 0%, #163d75 55%, #1e5aa8 100%);
}
body.landing .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .42;
}
body.landing .home-hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% center;
  mix-blend-mode: screen;
  filter: saturate(0.85);
}
body.landing .home-hero > .wrap { position: relative; z-index: 1; }
body.landing .home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: center;
}
body.landing .home-hero-copy {
  width: min(640px, 100%);
}
body.landing .home-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(244, 197, 66, 0.16);
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
}
body.landing .home-kicker.is-ink {
  background: #f4eee3;
  color: #8a6a12;
}
body.landing .home-title {
  margin: 0 0 16px;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
}
body.landing .home-lead {
  margin: 0;
  max-width: 36ch;
  font-size: 20px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 500;
}
body.landing .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
body.landing .btn.home-gold {
  background: var(--gold);
  color: var(--blue-deep);
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(244, 197, 66, 0.28);
}
body.landing .btn.home-gold:hover { filter: brightness(1.04); }
body.landing .btn.home-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
}
body.landing .btn.home-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
body.landing .home-flow {
  position: relative;
  margin: 4px 0 0;
  width: 100%;
}
body.landing .home-flow-stage {
  display: grid;
}
body.landing .home-flow-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  opacity: 0;
  transform: scale(.32);
  transform-origin: right center;
  pointer-events: none;
}
body.landing .home-flow-slide.is-on {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  z-index: 1;
}
body.landing .home-flow-slide.is-in {
  z-index: 1;
  animation: home-flow-in 1.55s cubic-bezier(.16, 1, .3, 1) forwards;
}
body.landing .home-flow-slide.is-out {
  z-index: 2;
  animation: home-flow-out 1s ease-in forwards;
}
@keyframes home-flow-in {
  from { opacity: 0; transform: scale(.32); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes home-flow-out {
  0% { opacity: 1; transform: scale(1); }
  42% { opacity: 1; transform: scale(1.38); }
  100% { opacity: 0; transform: scale(1.55); }
}
body.landing .home-flow-when {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}
body.landing .home-flow-slide[data-tone="sky"] .home-flow-when { color: #9fe7ff; }
body.landing .home-flow-slide[data-tone="cream"] .home-flow-when { color: #fff3d2; }
body.landing .home-flow-title {
  margin: 0;
  max-width: none;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.02em;
  color: #fff;
  white-space: nowrap;
}
body.landing .home-flow-slide[data-tone="gold"] .home-flow-title { color: var(--gold); }
body.landing .home-flow-slide[data-tone="sky"] .home-flow-title { color: #9fe7ff; }
body.landing .home-flow-slide[data-tone="cream"] .home-flow-title { color: #fff3d2; }
body.landing .home-flow-nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
body.landing .home-flow-dot {
  width: 28px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
body.landing .home-flow-dot.is-on {
  background: var(--gold);
}
body.landing .home-flow[data-step="2"] .home-flow-dot.is-on { background: #9fe7ff; }
body.landing .home-flow[data-step="3"] .home-flow-dot.is-on { background: #fff3d2; }
body.landing .home-flow.is-static .home-flow-stage {
  display: grid;
  gap: 16px;
  min-height: 0;
}
body.landing .home-flow.is-static .home-flow-slide {
  position: static;
  opacity: 1;
  transform: none;
  pointer-events: auto;
  animation: none;
}
body.landing .home-flow.is-static .home-flow-title,
body.landing .home-flow.is-static .home-flow-when {
  animation: none;
  opacity: 1;
  transform: none;
}
body.landing .home-section { padding: 72px 0; }
body.landing .home-head { text-align: center; margin: 0 auto 32px; max-width: 40ch; }
body.landing .home-head h2 {
  margin: 0 0 8px;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--blue-dark);
}
body.landing .home-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 500;
}
body.landing .home-stage { padding: 36px 0 64px; }
body.landing .home-stage-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 340px);
  background: rgba(255, 252, 247, 0.78);
  border: 1px solid var(--cream-line);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(14, 42, 82, 0.06);
  min-height: 0;
}
body.landing .home-stage-card.is-solo,
body.landing .home-stage-card.is-media-only {
  grid-template-columns: 1fr;
}
body.landing .home-stage-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
body.landing .home-stage-bg video,
body.landing .home-stage-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.landing .home-stage-bg video {
  filter: blur(22px) saturate(0.8);
  transform: scale(1.14);
  opacity: .28;
}
body.landing .home-kit-card .home-stage-bg img {
  opacity: .55;
}
body.landing .home-stage-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,252,247,.55), rgba(255,252,247,.82));
}
body.landing .home-kit-card .home-stage-bg::after {
  background: linear-gradient(180deg, rgba(255,252,247,.38), rgba(255,252,247,.7));
}
body.landing .home-kit-card .home-kicker {
  font-size: 13px;
  margin-bottom: 10px;
}
body.landing .home-kit-products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
body.landing .home-kit-item {
  flex: 0 0 calc((100% - 16px) / 3);
  max-width: calc((100% - 16px) / 3);
  margin: 0;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--cream-line);
  border-radius: 12px;
  overflow: hidden;
}
body.landing .home-kit-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4eee3;
}
body.landing .home-kit-item.is-app img {
  object-fit: contain;
  padding: 6px;
}
body.landing .home-kit-item figcaption {
  padding: 6px 8px 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-dark);
  text-align: center;
  line-height: 1.3;
}
body.landing .home-guide-card {
  overflow: hidden;
  border: 1px solid var(--cream-line);
  border-radius: 28px;
  background: #11161c;
  box-shadow: 0 18px 40px rgba(14, 42, 82, 0.06);
}
body.landing .home-guide-card .home-stage-media {
  min-height: 0;
}
body.landing .home-guide-card .home-stage-media video {
  min-height: 420px;
}
body.landing .home-guide-card .home-stage-more {
  padding: 14px 16px 16px;
  background: #fff;
  margin-top: 0;
}
body.landing .home-stage-copy,
body.landing .home-stage-media { position: relative; z-index: 1; }
body.landing .home-stage-copy {
  padding: 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
body.landing .home-stage-copy h2 {
  margin: 0 0 8px;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--blue-dark);
}
body.landing .home-stage-copy .feat-list { margin: 0 0 22px; width: 100%; }
body.landing .home-stage-copy p {
  margin: 0 0 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  font-size: 17px;
}
body.landing .home-stage-copy .home-kit-visual { width: 100%; margin: 8px 0 16px; }
body.landing .home-stage-media {
  margin: 0;
  background: #eadfd0;
  min-height: 100%;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
body.landing .home-guide-bubble {
  position: absolute;
  top: 4.2%;
  left: 50%;
  z-index: 5;
  width: min(78%, 340px);
  margin: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
body.landing .home-guide-cue {
  margin: 0;
  padding: 11px 16px 13px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.35;
  color: #0e2a52;
  background: #fffef8;
  border: 2px solid #f4c542;
  border-radius: 22px;
  box-shadow: 0 12px 28px rgba(14, 42, 82, 0.18);
  min-height: 0;
}
body.landing .home-guide-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: #fffef8;
  border-inline-end: 2px solid #f4c542;
  border-bottom: 2px solid #f4c542;
  transform: rotate(45deg);
}
body.landing .home-guide-bubble.is-pop .home-guide-cue {
  animation: home-cue-pop 0.55s cubic-bezier(0.18, 1.35, 0.32, 1) both;
}
@keyframes home-cue-pop {
  0% { transform: translateY(8px) scale(0.84); opacity: 0; }
  62% { transform: translateY(-3px) scale(1.04); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
body.landing .home-stage-media video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  pointer-events: none;
}
body.landing .home-stage-media video::-webkit-media-controls {
  display: none !important;
}
body.landing .home-stage-sound {
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(14, 42, 82, 0.58);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
body.landing .home-stage-sound svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.landing .home-stage-sound .icon-on,
body.landing .home-stage-sound.is-on .icon-off {
  display: none;
}
body.landing .home-stage-sound.is-on .icon-on {
  display: block;
}
body.landing .home-stage-more {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}
body.landing .home-stage-more .home-video {
  margin: 0;
  background: rgba(255,255,255,.72);
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  overflow: hidden;
}
body.landing .home-stage-more video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #11161c;
}
body.landing .home-stage-more figcaption {
  padding: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
}
body.landing .home-price {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 800;
}
body.landing .home-faq { background: #fff; }
body.landing .home-q {
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  padding: 0;
  margin: 0 0 10px;
}
body.landing .home-q summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-weight: 800;
  color: var(--blue-dark);
}
body.landing .home-q summary::-webkit-details-marker { display: none; }
body.landing .home-q p {
  margin: 0;
  padding: 0 18px 16px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-weight: 500;
}
body.landing .home-foot {
  background: var(--blue-deep);
  color: #fff;
  padding: 56px 0 64px;
}
body.landing .home-foot-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: start;
}
body.landing .home-foot h2 {
  margin: 0 0 18px;
  font-family: "Frank Ruhl Libre", Heebo, serif;
  font-size: clamp(26px, 4vw, 36px);
}
body.landing .home-foot h3 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--gold);
}
body.landing .home-contact p { margin: 0 0 8px; color: rgba(255,255,255,.82); font-weight: 500; line-height: 1.6; }
body.landing .home-contact a { color: #fff; }

@media (max-width: 800px) {
  body.landing .home-hero { padding: 40px 0 52px; }
  body.landing .home-hero-grid,
  body.landing .home-stage-card,
  body.landing .home-foot-grid {
    grid-template-columns: 1fr;
  }
  body.landing .home-hero-bg video { object-position: 20% center; }
  body.landing .home-flow-title { white-space: normal; }
  body.landing .home-section { padding: 48px 0; }
  body.landing .home-stage-card { min-height: 0; }
  body.landing .home-stage-copy { padding: 16px 14px 18px; }
  body.landing .home-stage-media video { min-height: 280px; }
  body.landing .home-guide-card .home-stage-media video { min-height: 240px; }
  body.landing .home-kit-item figcaption { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  body.landing .home-flow-slide,
  body.landing .home-flow-title,
  body.landing .home-flow-when {
    animation: none !important;
    transition: none !important;
    filter: none !important;
  }
}

.guide-lessons { display: grid; gap: 28px; padding-bottom: 40px; }
.guide-lessons-head h1 { margin: 0 0 6px; }
.guide-lessons-head p { margin: 0; }
.guide-lessons-group h2 {
  margin: 0 0 12px;
  font-size: 18px;
  color: var(--blue-dark);
}
.guide-lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.guide-lesson {
  margin: 0;
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 16px;
  overflow: hidden;
}
.guide-lesson header { padding: 12px 14px 8px; }
.guide-lesson h3 { margin: 0; font-size: 16px; color: var(--blue-dark); }
.guide-lesson header .muted { margin: 4px 0 0; font-size: 12px; }
.guide-lesson video {
  display: block;
  width: 100%;
  background: #11161c;
  max-height: 360px;
}
.guide-lesson.is-phone video {
  max-width: 280px;
  max-height: 520px;
  margin-inline: auto;
}
a.account-tool.on {
  background: rgba(244, 197, 66, 0.22);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: 8px;
}
.lang-switch a {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 999px;
}
.lang-switch a.is-on {
  background: rgba(244, 197, 66, 0.22);
  color: var(--gold);
}
.settings-choice {
  display: grid;
  gap: 6px;
}
.settings-choice-label {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink-soft);
}
.settings-choice-note {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
}
.settings-picks {
  display: grid;
  gap: 8px;
}
.settings-langs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}
.settings-currencies {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 4px;
}
.settings-form .settings-picks label,
.settings-picks label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1.5px solid var(--cream-line);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.settings-picks label.is-on,
.settings-picks label:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-pale);
}
.settings-sym {
  font-weight: 800;
  min-width: 1.1em;
  text-align: center;
}
html[dir="ltr"] body.landing .home-hero-copy,
html[dir="ltr"] body.landing .home-title,
html[dir="ltr"] body.landing .home-flow-title,
html[dir="ltr"] body.landing .home-head,
html[dir="ltr"] body.landing .home-q {
  text-align: left;
}
html[dir="ltr"] body.landing .home-flow-when {
  text-align: left;
}
