@charset "UTF-8";
:root {
  --primary: #30277e;
  --primary-hover: #423693;
  --navy: #1c2448;
  --accent: #ddd6ff;
  --surface: #f5f6fb;
  --white: #fff;
  --muted: #58617b;
  --line: #dde0ee;
  --red: #a43b37;
  --soft: #eeedf8;
  --success: #206046;
  --success-bg: #e7f3ec;
  --violet: #6652b8;
  --radius: 18px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--navy);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--primary);
  padding: 0.65rem 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
button:hover,
.button:hover {
  background: #f0eff9;
  border-color: #9c99be;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.primary:hover {
  background: var(--primary-hover);
  color: white;
}
.accent-button {
  background: var(--accent);
  color: var(--primary);
  border-color: var(--accent);
}
.ghost {
  background: transparent;
}
input,
select,
textarea {
  min-height: 46px;
  border: 1px solid #aaaec5;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  width: 100%;
  background: white;
  color: var(--navy);
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--primary);
}
:focus-visible {
  outline: 3px solid #8773dc;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
  margin-bottom: 0.8rem;
}
h2 {
  font-size: 1.4rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.06rem;
  line-height: 1.4;
}
p {
  margin-bottom: 1rem;
}
small,
.small {
  font-size: 0.875rem;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
}
.skip {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 100;
  background: white;
  padding: 1rem;
}
.skip:focus {
  top: 1rem;
}
.topbar {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.4rem;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  min-height: 90px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand strong {
  display: block;
  letter-spacing: -0.035em;
  font-size: 1.3rem;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.top-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.role-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.role-control label {
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}
.role-control select {
  font-size: 0.875rem;
  min-width: 174px;
  max-width: 220px;
}
.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.6rem;
  border: 1px solid #cecae4;
  border-radius: 5px;
  font-size: 0.7rem;
  color: var(--primary);
  letter-spacing: 0.06em;
  font-weight: 700;
  white-space: nowrap;
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: calc(100vh - 90px);
}
.sidebar {
  padding: 1.8rem 1.2rem;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.sidebar .eyebrow {
  color: var(--muted);
  padding: 0 0.6rem;
  margin: 0;
}
.nav {
  display: grid;
  gap: 0.3rem;
}
.nav a {
  padding: 0.65rem 0.8rem;
  min-height: 44px;
  font-size: 0.875rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.nav a:hover {
  background: var(--surface);
}
.nav a.active {
  background: var(--primary);
  color: white;
}
.nav-icon {
  width: 20px;
  font-size: 1rem;
  opacity: 0.8;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: grid;
  gap: 0.65rem;
}
.sidebar-bottom button {
  font-size: 0.8rem;
  justify-content: flex-start;
}
.aside-note {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.6rem;
  line-height: 1.6;
}
.main {
  padding: 2.2rem clamp(1rem, 3.1vw, 3rem);
  min-width: 0;
  max-width: 1700px;
  width: 100%;
  margin: auto;
}
.breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.7rem;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  margin-bottom: 1.6rem;
}
.page-heading p {
  margin: 0;
  max-width: 700px;
  color: var(--muted);
}
.page-heading .eyebrow {
  color: var(--primary);
  margin-bottom: 0.7rem;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-width: 0;
}
.panel.soft {
  background: var(--soft);
}
.panel.dark {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
.panel.dark .muted {
  color: #e1dff2;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 1.2rem;
}
.stack {
  display: grid;
  gap: 1.2rem;
}
.section {
  margin-top: 2rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-title h2 {
  margin: 0;
}
.section-title a {
  font-size: 0.875rem;
  text-decoration: underline;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.stat {
  padding: 1.25rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
}
.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
}
.stat-value {
  font-size: 1.8rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.stat small {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 5px;
  padding: 0.3rem 0.55rem;
  background: #e6efe7;
  color: #225242;
  white-space: normal;
}
.badge.warn {
  background: #fff1d7;
  color: #765014;
}
.badge.danger {
  background: #f8e8e5;
  color: #96332e;
}
.badge.neutral {
  background: #eef0f2;
  color: #4e5b63;
}
.hero {
  background: var(--primary);
  border-radius: 22px;
  overflow: hidden;
  color: white;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  min-height: 410px;
}
.hero-copy {
  padding: clamp(1.6rem, 3.3vw, 3.3rem);
  align-self: center;
}
.hero .eyebrow {
  color: var(--accent);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 750;
  font-size: clamp(2.8rem, 4.4vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  max-width: 680px;
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: #e3e1f6;
  max-width: 530px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.hero .actions {
  margin-top: 1.7rem;
}
.hero .ghost {
  color: white;
  border-color: #9c93d1;
}
.hero .ghost:hover {
  background: #423693;
}
.hero-visual {
  position: relative;
  padding: 2.5rem 2.5rem 2.5rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
}
.money-card {
  border: 1px solid #b8b3d6;
  background: #ffffff;
  color: var(--primary);
  border-radius: 18px;
  padding: 1.7rem;
  transform: rotate(-3deg);
  box-shadow: 0 22px 40px #20175e33;
}
.money-card .value {
  font-size: 3rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 0.6rem 0;
}
.money-card .line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.money-card hr {
  border: 0;
  border-top: 1px solid #dddaed;
  margin: 1.1rem 0;
}
.flow-receipt {
  background: #e7f3ec;
  border: 1px solid #9cc3ad;
  border-radius: 12px;
  color: var(--success);
  padding: 1rem 1.25rem;
  width: 85%;
  margin-left: auto;
  position: relative;
}
.flow-receipt strong {
  display: block;
}
.flow-receipt small {
  color: #206046;
}
.principles {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0.2rem;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  font-weight: 600;
}
.principles span:before {
  content: "✓";
  margin-right: 0.5rem;
  color: var(--success);
}
.package-card {
  border-top: 3px solid var(--primary);
}
.package-symbol {
  background: var(--soft);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  color: var(--primary);
}
.price {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0.75rem 0;
}
.price small {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
}
.package-card p {
  font-size: 0.875rem;
  color: var(--muted);
}
.package-card .badge {
  margin-top: 0.6rem;
}
.step-list {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}
.step-num {
  background: var(--soft);
  color: var(--primary);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 0.8rem;
}
.step-list p {
  margin: 0;
  font-size: 0.875rem;
}
.step-list strong {
  font-size: 0.95rem;
}
.wallet-value {
  font-size: 3.4rem;
  line-height: 1.2;
  letter-spacing: -0.05em;
  margin: 0.8rem 0;
}
.wallet-details {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid #8478b7;
  margin: 1.4rem 0;
  padding-top: 1rem;
  font-size: 0.875rem;
}
.wallet-details strong {
  display: block;
  color: var(--accent);
  font-size: 1.2rem;
}
.progress {
  width: 100%;
  height: 9px;
  accent-color: var(--primary);
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #e0e2f0;
}
.progress::-webkit-progress-bar {
  background: #e0e2f0;
  border-radius: 10px;
}
.progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 10px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}
.member-card {
  background: var(--navy);
  color: white;
  position: relative;
  border: 0;
}
.member-card .eyebrow {
  color: var(--accent);
}
.member-card .avatar {
  background: var(--accent);
  color: var(--navy);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.member-card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.1rem 0;
}
.member-card-head h3 {
  margin: 0;
}
.member-card p {
  font-size: 0.8rem;
  color: #e1e5f4;
}
.card-code {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid #697299;
  padding-top: 1rem;
}
.qr {
  flex-shrink: 0;
  width: 65px;
  height: 65px;
  background: repeating-conic-gradient(var(--navy) 0% 25%, #fff 0% 50%) 0 / 11px
    11px;
  border: 7px solid white;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.field label {
  font-size: 0.875rem;
  font-weight: 600;
}
.field .hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  font-size: 0.9rem;
  margin: 0.7rem 0;
}
.check label {
  cursor: pointer;
}
.callout {
  background: #f0eff9;
  border-left: 3px solid #6652b8;
  border-radius: 0 10px 10px 0;
  padding: 1rem;
  font-size: 0.875rem;
  margin: 1rem 0;
}
.callout.warn {
  background: #fff4e0;
  border-color: #b47a23;
}
.callout p:last-child {
  margin-bottom: 0;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}
th {
  background: #eef0f8;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  color: #535d7b;
  font-weight: 700;
}
td,
th {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border: 0;
}
td .actions {
  min-width: 140px;
}
td button {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
}
.table-wrap code {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}
.empty {
  text-align: center;
  padding: 2rem;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border: 0;
}
.row p {
  margin: 0;
  font-size: 0.875rem;
}
.row strong {
  font-size: 0.95rem;
}
.receipt-amount {
  font-weight: 600;
  white-space: nowrap;
}
.positive {
  color: var(--success);
}
.negative {
  color: var(--red);
}
.tour {
  background: #efedfa;
  border: 1px solid #c6bee5;
  border-radius: 12px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
.tour h2 {
  font-size: 1.1rem;
  margin: 0.2rem 0 0.5rem;
}
.tour p {
  font-size: 0.875rem;
  margin: 0;
  max-width: 800px;
}
.tour .actions {
  align-self: center;
}
.tour .eyebrow {
  color: #4c3c91;
}
.timeline {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.timeline span {
  font-size: 0.75rem;
  border: 1px solid var(--line);
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}
.timeline .done {
  background: var(--success-bg);
  color: var(--success);
  border-color: #a8c9b5;
}
.timeline .current {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.voucher {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  background: white;
}
.voucher-top {
  padding: 1.25rem;
  background: #eeedf8;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.voucher-body {
  padding: 1.25rem;
}
.voucher code {
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.voucher .muted {
  font-size: 0.875rem;
}
.restricted {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1rem;
}
.restricted summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: underline;
}
.restricted p {
  padding: 0.7rem;
  border-radius: 8px;
  background: #eef0f8;
}
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.5rem 0;
}
.flow > div {
  background: var(--soft);
  border: 1px solid #d5d0e8;
  border-radius: 12px;
  padding: 1.3rem;
}
.flow strong {
  display: block;
  margin: 0.6rem 0;
}
.flow p {
  font-size: 0.85rem;
  margin: 0;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr 30px;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.8rem;
  margin: 1rem 0;
}
.footer {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.7;
}
.footer strong {
  color: var(--primary);
}
#notice {
  position: fixed;
  bottom: 1.3rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: white;
  border-radius: 12px;
  padding: 1rem 1.3rem;
  z-index: 30;
  max-width: min(620px, calc(100vw - 2rem));
  width: max-content;
  box-shadow: 0 8px 35px #1c244833;
  display: none;
}
#notice.show {
  display: block;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.6rem;
  max-width: min(520px, calc(100% - 2rem));
  color: var(--navy);
}
dialog::backdrop {
  background: #30277e80;
}
.loading {
  padding: 3rem;
}
.toolbar {
  display: flex;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.toolbar .field {
  margin: 0;
  flex: 1;
  min-width: 160px;
}
.pilot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.pilot > div {
  padding: 1.3rem;
  border-top: 2px solid var(--accent);
  background: white;
}
.pilot .eyebrow {
  color: var(--muted);
}
.pilot h3 {
  margin: 0.6rem 0;
}
.money-flow {
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  background: var(--soft);
  padding: 1.2rem;
  line-height: 2;
}
.mono {
  font-family: monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}
details pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.75rem;
  max-width: 500px;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1550px) {
  .main {
    padding: 3rem 4rem;
  }
  .hero {
    min-height: 460px;
  }
}
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .topbar {
    padding: 1rem 1.4rem;
  }
  .topbar .demo-badge {
    display: none;
  }
  .grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0.8rem 1rem;
    align-items: flex-start;
    gap: 0.8rem;
    flex-wrap: wrap;
  }
  .brand strong {
    font-size: 1.12rem;
  }
  .brand small {
    font-size: 0.62rem;
  }
  .top-actions {
    flex: 1;
    justify-content: flex-end;
  }
  .top-actions > .button {
    display: none;
  }
  .role-control {
    display: block;
  }
  .role-control label {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.7rem;
  }
  .role-control select {
    min-width: 0;
    width: 165px;
    font-size: 0.8rem;
  }
  .layout {
    display: block;
  }
  .sidebar {
    padding: 0.5rem 0.8rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }
  .sidebar > .eyebrow,
  .sidebar-bottom,
  .aside-note {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    gap: 0.3rem;
  }
  .nav a {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.6rem 0.8rem;
  }
  .nav-icon {
    display: none;
  }
  .main {
    padding: 1.3rem 1rem;
  }
  .breadcrumb {
    margin-bottom: 1.2rem;
  }
  .page-heading {
    display: block;
  }
  .page-heading > .button {
    margin-top: 1rem;
  }
  .hero {
    border-radius: 16px;
  }
  .hero-copy {
    padding: 1.7rem 1.4rem;
  }
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero .actions {
    align-items: stretch;
  }
  .hero .actions > * {
    flex: 1;
  }
  .principles {
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
  }
  .tour {
    grid-template-columns: 1fr;
  }
  .tour .actions {
    justify-content: flex-start;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .flow {
    grid-template-columns: 1fr 1fr;
  }
  .pilot {
    grid-template-columns: 1fr;
  }
  .section-title {
    align-items: flex-start;
  }
  .panel {
    padding: 1.2rem;
  }
  .wallet-value {
    font-size: 2.8rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
  .table-wrap th,
  .table-wrap td {
    padding: 0.8rem;
  }
  .stats {
    gap: 0.65rem;
  }
  .stat {
    padding: 1rem;
  }
  .stat-value {
    font-size: 1.6rem;
  }
}
@media (max-width: 480px) {
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .role-control {
    width: 100%;
    display: flex;
    align-items: center;
  }
  .role-control select {
    flex: 1;
    max-width: none;
    width: auto;
  }
  .top-actions > .button {
    display: inline-flex;
    font-size: 0.75rem;
    padding: 0.5rem;
  }
  .grid,
  .grid.four {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.55rem;
  }
  .hero .actions {
    flex-direction: column;
  }
  .hero .eyebrow {
    font-size: 0.65rem;
  }
  .flow {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 2rem;
  }
  .wallet-details {
    flex-wrap: wrap;
  }
  .tour .actions button {
    padding: 0.5rem 0.7rem;
  }
  .badge {
    font-size: 0.7rem;
  }
  .bar-row {
    grid-template-columns: 1.1fr 1fr 20px;
  }
  .breadcrumb {
    flex-wrap: wrap;
  }
  .brand {
    gap: 0.6rem;
  }
  .money-flow {
    font-size: 0.95rem;
  }
  .stat-label {
    font-size: 0.75rem;
  }
  .stat-value {
    font-size: 1.45rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
@media print {
  .topbar,
  .sidebar,
  .tour,
  .actions,
  .footer {
    display: none;
  }
  .layout {
    display: block;
  }
  .main {
    padding: 0;
  }
  .panel,
  .stat {
    break-inside: avoid;
  }
}

.hero .money-card p {
  color: var(--muted);
}

@media (max-width: 480px) {
  .top-actions > .button {
    display: none;
  }
  .top-actions,
  .role-control {
    min-width: 0;
  }
  .role-control select {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .top-actions {
    flex: 1 1 100%;
  }
  .role-control {
    width: 100%;
  }
}

.topbar,
.top-actions,
.role-control {
  flex-wrap: wrap;
}
.stat-value,
h1,
h2,
h3 {
  overflow-wrap: anywhere;
}
.top-actions {
  min-width: 0;
}
.role-control select {
  max-width: 100%;
}

.role-control select {
  width: auto;
  max-width: 220px;
}
@media (max-width: 480px) {
  .role-control select {
    max-width: none;
  }
}

/* Get Ready R1: faithful supplied logo and presentation-only refinements. */
.brand {
  min-width: 0;
  max-width: 100%;
  flex-shrink: 1;
  gap: 0.8rem;
}
.brand-logo {
  display: block;
  width: 60px;
  height: auto;
  aspect-ratio: 149/126;
  object-fit: contain;
  flex: 0 0 auto;
  background: #fff;
}
.brand-copy {
  min-width: 0;
  max-width: 340px;
}
.brand strong {
  font-size: 1.18rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--primary);
}
.brand strong span {
  display: inline;
}
.brand small {
  font-size: 0.75rem;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 0.25rem;
}
.card-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.card-logo {
  display: block;
  width: 57px;
  height: auto;
  aspect-ratio: 149/126;
  object-fit: contain;
  background: white;
  border: 5px solid white;
  border-radius: 8px;
  flex-shrink: 0;
}
.card-brand .eyebrow {
  margin: 0;
  line-height: 1.65;
}
.hero h1 {
  font-size: clamp(2.35rem, 3.7vw, 3.9rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}
.hero .hero-promise {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-top: 1.2rem;
  margin-bottom: 0.65rem;
}
.hero .eyebrow {
  line-height: 1.7;
}
.hero .money-card .line:first-child {
  font-size: 0.95rem;
}
.accent-button:hover {
  background: #ede9ff;
  border-color: #ede9ff;
  color: var(--primary);
}
.package-card > .badge {
  background: var(--soft);
  color: var(--primary);
}
.voucher-top {
  align-items: flex-start;
}
.voucher-top .eyebrow {
  color: var(--primary);
  margin-bottom: 0.35rem;
}
.voucher-top .small {
  margin-bottom: 0.7rem;
}
.footer-brand {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
}
@media (max-width: 760px) {
  .brand-copy {
    max-width: 300px;
  }
  .brand-logo {
    width: 52px;
  }
  .hero h1 {
    font-size: 2.7rem;
  }
}
@media (max-width: 480px) {
  .brand {
    width: 100%;
    gap: 0.65rem;
  }
  .brand-logo {
    width: 48px;
  }
  .brand strong {
    font-size: 1.07rem;
  }
  .brand small {
    font-size: 0.73rem;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .card-brand {
    flex-wrap: wrap;
  }
  .brand-copy {
    flex: 1;
  }
}

/* Operational status hues stay independent of the brand palette. */
.badge[data-state="dormant"],
.badge[data-state="cancelled"],
.badge[data-state="inactive"],
.badge[data-state^="Paused"] {
  background: #eef0f2;
  color: #4e5b63;
}

/* At the narrowest sizes, keep currency values intact rather than wrapping a final digit. */
@media (max-width: 360px) {
  .stats {
    grid-template-columns: 1fr;
  }
}

/* R2: compact navigation and a single global utility area. */
[hidden] {
  display: none !important;
}
.topbar {
  min-height: 76px;
  padding: 0.8rem 2rem;
  gap: 0.6rem;
}
.topbar .demo-badge {
  display: inline-flex;
  white-space: normal;
}
.demo-utilities {
  background: #eeedf8;
  border-bottom: 1px solid #d3cfe8;
  padding: 0.55rem 2rem;
}
.utility-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.utility-content button {
  font-size: 0.8rem;
  padding: 0.45rem 0.75rem;
}
.utility-note {
  font-size: 0.75rem;
  color: var(--muted);
}
.demo-utilities > summary,
.navigation-disclosure > summary {
  color: var(--primary);
  font-weight: 700;
}
.demo-utilities > summary span,
.navigation-disclosure > summary span {
  font-size: 0.8rem;
  font-weight: 400;
  margin-left: 0.5rem;
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 0.65rem 0;
  overflow-wrap: anywhere;
}
summary:focus-visible {
  outline-offset: 2px;
}
@media (min-width: 761px) {
  .demo-utilities > summary,
  .navigation-disclosure > summary,
  .lifecycle-disclosure > summary {
    display: none;
  }
}
.footer {
  padding-top: 1rem;
  margin-top: 2rem;
}
.footer p {
  margin: 0.35rem 0;
}
.footer details {
  max-width: 900px;
}
.footer summary {
  font-size: 0.8rem;
}
/* Semantic statuses use both a symbol and a written label. */
.badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  border: 1px solid transparent;
}
.badge.success {
  background: #e6efe7;
  color: #225242;
  border-color: #bbd1c2;
}
.badge.warn,
.package-card > .badge.warn {
  background: #fff1d7;
  color: #765014;
  border-color: #e6c991;
}
.badge.danger {
  background: #f8e8e5;
  color: #96332e;
  border-color: #dfb8b4;
}
.badge.neutral {
  background: #eef0f2;
  color: #4e5b63;
  border-color: #cbd0d4;
}
.badge.info {
  background: #e9f0fa;
  color: #2a4f7d;
  border-color: #bdcde4;
}
/* A continuous, numbered lifecycle replaces floating status pills. */
.voucher-progress {
  margin: 1.25rem 0;
}
.lifecycle {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem 0.4rem;
  padding: 0;
  list-style: none;
  margin: 0.5rem 0 1.25rem;
}
.lifecycle li {
  min-width: 0;
  font-size: 0.75rem;
  color: var(--muted);
  position: relative;
  padding-right: 0.35rem;
}
.stage-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.5rem;
  border: 1px solid #a9adc3;
  border-radius: 50%;
  background: white;
  font-weight: 700;
  position: relative;
  z-index: 1;
}
.lifecycle li:before {
  content: "";
  position: absolute;
  top: 14px;
  height: 1px;
  left: 28px;
  right: -0.4rem;
  background: #b9bdcf;
}
.lifecycle li:nth-child(5n):before {
  display: none;
}
.lifecycle .done {
  color: var(--success);
}
.lifecycle .done .stage-number {
  color: var(--success);
  border-color: #a8c9b5;
  background: var(--success-bg);
}
.lifecycle .current {
  color: var(--primary);
  font-weight: 700;
}
.lifecycle .current .stage-number {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.progress-compact {
  display: none;
}
.when-open {
  display: none;
}
details[open] > summary .when-open {
  display: inline;
}
details[open] > summary .when-closed {
  display: none;
}
/* Group related operational measures, with primary values given more weight. */
.metric-groups {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.metric-group {
  padding: 1.25rem;
}
.metric-group h2 {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.metric-group .stats {
  margin: 0;
  gap: 0.7rem;
}
.metric-group .stat {
  border: 0;
  border-radius: 8px;
  padding: 1rem;
  background: var(--surface);
}
.metric-group .stat-value {
  font-size: 1.5rem;
}
.metric-group .stat:first-child {
  border-left: 3px solid var(--primary);
  background: var(--soft);
}
.metric-group .stat:first-child .stat-value {
  font-size: 1.9rem;
  color: var(--primary);
}
.cohorts .stats {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.allocation-balance {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--soft);
  border-radius: 10px;
  padding: 1rem;
  color: var(--primary);
}
.allocation-balance span {
  font-size: 0.8rem;
}
.allocation-balance strong {
  font-size: 2rem;
}
.choice-amounts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}
.choice-amounts .field {
  align-content: start;
}
.choice-amounts label {
  min-height: 3em;
}
input[readonly] {
  background: var(--surface);
  color: var(--muted);
}
.allocation-summary {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #a8c9b5;
  border-radius: 8px;
  color: var(--success);
  background: var(--success-bg);
  font-size: 0.875rem;
}
.allocation-summary.invalid {
  background: #fff1d7;
  border-color: #e6c991;
  color: #765014;
}
.transaction-actions {
  margin-top: 0.6rem;
}
.empty {
  text-align: left;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px dashed #bcc0d2;
  border-radius: 10px;
  font-size: 0.9rem;
}
.record-card {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.record-card:last-child {
  border-bottom: 0;
}
.record-card dl {
  margin: 0;
}
.record-card dl > div {
  margin-bottom: 0.6rem;
}
.record-card dt {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.record-card dd {
  margin: 0;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.record-details > summary {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.85rem;
}
.record-details[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.75rem;
}
.record-details pre {
  max-width: 100%;
}
.record-card form {
  margin-top: 0.5rem;
}
@media (max-width: 1100px) {
  .cohorts .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .utility-note {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }
  .brand {
    width: 100%;
  }
  .brand-logo {
    width: 42px;
  }
  .brand strong {
    font-size: 1.05rem;
  }
  .brand small {
    font-size: 0.7rem;
  }
  .topbar .demo-badge {
    font-size: 0.6rem;
    padding: 0.18rem 0.4rem;
    margin-left: calc(42px + 0.65rem);
  }
  .demo-utilities {
    padding: 0 1rem;
  }
  .demo-utilities > summary {
    font-size: 0.8rem;
  }
  .demo-utilities > summary span {
    display: inline;
    font-size: 0.75rem;
  }
  .utility-content {
    display: grid;
    padding: 0.5rem 0 1rem;
    gap: 0.6rem;
  }
  .utility-content .role-control {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
  .utility-content .role-control select {
    width: 100%;
    max-width: none;
  }
  .utility-content .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .utility-content .actions button:first-child {
    grid-column: 1/-1;
  }
  .sidebar {
    padding: 0 1rem;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .eyebrow {
    display: none;
  }
  .navigation-disclosure {
    width: 100%;
  }
  .navigation-disclosure > summary {
    font-size: 0.85rem;
  }
  .navigation-disclosure .nav {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    white-space: normal;
    gap: 0.2rem;
    padding: 0.4rem 0 0.8rem;
  }
  .navigation-disclosure .nav a {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    flex-shrink: 1;
  }
  .main {
    padding: 1.15rem 1rem;
  }
  .breadcrumb {
    margin-bottom: 1rem;
  }
  .breadcrumb > span:first-child {
    display: none;
  }
  .page-heading {
    margin-bottom: 1.25rem;
  }
  .page-heading .eyebrow {
    margin-bottom: 0.5rem;
  }
  .progress-compact {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.4rem;
  }
  .progress-compact > div {
    min-width: 0;
    border-top: 2px solid var(--line);
    padding: 0.55rem 0.3rem;
  }
  .progress-compact small {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
  }
  .progress-compact strong {
    display: block;
    font-size: 0.75rem;
    overflow-wrap: anywhere;
    font-weight: 600;
  }
  .progress-compact .current {
    border-color: var(--primary);
    background: var(--soft);
    border-radius: 0 0 6px 6px;
    color: var(--primary);
  }
  .lifecycle-disclosure > summary {
    font-size: 0.8rem;
    color: var(--primary);
  }
  .lifecycle {
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 0.25rem;
  }
  .lifecycle li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 46px;
  }
  .stage-number {
    flex-shrink: 0;
    margin: 0;
  }
  .lifecycle li:before,
  .lifecycle li:nth-child(5n):before {
    display: block;
    left: 14px;
    top: 28px;
    bottom: -14px;
    height: auto;
    width: 1px;
  }
  .lifecycle li:last-child:before {
    display: none;
  }
  .metric-group {
    padding: 1rem;
  }
  .metric-group .stats,
  .cohorts .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-group .stat:first-child {
    grid-column: 1/-1;
  }
  .metric-group .stat {
    padding: 0.8rem;
  }
  .metric-group .stat-value {
    font-size: 1.3rem;
  }
  .metric-group .stat:first-child .stat-value {
    font-size: 1.8rem;
  }
  .choice-amounts {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choice-amounts label {
    min-height: 0;
  }
  .transaction-actions {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: white;
    border-top: 1px solid var(--line);
    padding: 0.6rem 0 max(0.6rem, env(safe-area-inset-bottom));
    width: 100%;
  }
  .transaction-actions > button {
    width: 100%;
  }
  .voucher {
    overflow: clip;
  }
  .actions:has(> .transaction-actions) {
    align-items: stretch;
  }
  #notice {
    bottom: 5rem;
    font-size: 0.85rem;
  }
}
@media (max-width: 360px) {
  .metric-group .stats {
    grid-template-columns: 1fr;
  }
  .demo-utilities > summary span {
    display: block;
    margin-left: 1rem;
  }
}
@media print {
  .demo-utilities {
    display: none;
  }
  .transaction-actions {
    position: static;
  }
}

@media (min-width: 1280px) {
  .lifecycle {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
  .lifecycle li:nth-child(5):before {
    display: block;
  }
}

@media (max-width: 760px) {
  .transaction-actions {
    position: static;
  }
  .transaction-actions.sticky-ready {
    position: sticky;
  }
}
