@import url("/type.css");
:root {
  font-family: "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  color: #333333;
  background: #eeeeee;
  font-synthesis: none;
  --primary: #4169e1;
  --muted: #777777;
  --line: #dddddd;
  --gold: #00bfff;
  --white: #fff;
  --red: #d32f2f;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
}
button:hover {
  background: #e9edfa;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.primary:hover {
  background: #3355bb;
}
.danger {
  color: var(--red);
}
.quiet {
  background: transparent;
  border-color: transparent;
}
.small {
  font-size: 12px;
  padding: 7px 11px;
}
a {
  color: var(--primary);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: 0.025em;
  margin-bottom: 8px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 40px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border: 1px solid var(--primary);
  font-family: serif;
  font-size: 25px;
  border-radius: 4px;
}
.brand strong {
  font-size: 13px;
  letter-spacing: 0.12em;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.15em;
  color: var(--muted);
  margin-top: 5px;
}
.nav-caption {
  margin: 0 10px 12px;
  font-size: 9px;
  letter-spacing: 0.2em;
  color: #bbbbbb;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  padding: 12px;
  border-radius: 7px;
  font-size: 13px;
  color: #dddddd;
}
.nav svg {
  width: 18px;
  height: 18px;
}
.nav:hover {
  background: #666666;
}
.nav.active {
  background: var(--primary);
  color: #fff;
}
.sidebar-foot {
  margin-top: auto;
  padding-top: 28px;
}
.gym-badge {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.avatar {
  background: #eeeeee;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.gym-badge b {
  font-size: 11px;
  display: block;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.topbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  width: 6px;
  height: 6px;
  background: #00bfff;
  border-radius: 50%;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.top-actions select {
  font-size: 12px;
  border: 0;
  background: transparent;
  width: auto;
  padding: 5px;
}
.demo-badge {
  font-size: 10px;
  background: #f2eadb;
  color: #8a6b39;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.main {
  max-width: 1560px;
  margin: auto;
  padding: 36px 40px 50px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading p {
  margin-bottom: 0;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 26px;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow {
  color: #bbbbbb;
}
.hero h2 {
  font-size: 25px;
  font-weight: 500;
  margin: 8px 0 10px;
}
.hero p {
  color: #dddddd;
  font-size: 12px;
  margin: 0;
}
.hero-art {
  font-family: serif;
  font-size: 68px;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #777777;
  align-self: center;
  opacity: 0.7;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 21px 23px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #777777;
}
.stat-top svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.stat strong {
  display: block;
  font-size: 32px;
  font-weight: 550;
  margin: 14px 0 5px;
  letter-spacing: -0.03em;
}
.stat .unit {
  font-size: 13px;
  font-weight: 400;
  margin-left: 5px;
}
.stat small {
  font-size: 11px;
  color: var(--muted);
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
  margin-bottom: 22px;
}
.grid2 .panel {
  margin-bottom: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.panel-head h2 {
  margin: 0;
  font-size: 15px;
}
.panel-head small {
  font-size: 10px;
  color: var(--muted);
}
.table-wrap {
  overflow: auto;
  width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  font-size: 12px;
}
th {
  color: #777777;
  font-size: 10px;
  font-weight: 600;
  background: #f5f5f5;
  padding: 13px 12px;
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #eeeeee;
}
tr:last-child td {
  border-bottom: 0;
}
td b {
  font-weight: 600;
}
.badge {
  display: inline-block;
  border-radius: 4px;
  font-size: 10px;
  padding: 4px 9px;
  background: #edf1ff;
  color: #4169e1;
}
.badge.warn {
  background: #f7ecdc;
  color: #986d36;
}
.badge.off {
  background: #f0f0ed;
  color: #888;
}
.badge.paid {
  background: #edf1ff;
  color: #4169e1;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 32px;
  font-size: 13px;
}
.lesson {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid #eeeeee;
}
.lesson:first-of-type {
  border-top: 0;
}
.lesson-time {
  font-size: 15px;
  font-weight: 600;
  min-width: 48px;
}
.lesson-line {
  height: 35px;
  width: 3px;
  border-radius: 2px;
  background: var(--gold);
}
.lesson b {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}
.lesson small {
  font-size: 10px;
  color: var(--muted);
}
.lesson button {
  margin-left: auto;
}
.bars {
  height: 190px;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  border-bottom: 1px solid var(--line);
  padding: 10px 5px 0;
  margin-bottom: 14px;
}
.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 8px;
}
.bar {
  background: #cbd6fa;
  width: 70%;
  min-height: 2px;
  border-radius: 4px 4px 0 0;
}
.bar.current {
  background: var(--primary);
}
.bar-col small {
  font-size: 10px;
  color: var(--muted);
  padding-bottom: 6px;
}
.legend {
  font-size: 10px;
  color: var(--muted);
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.filters input {
  max-width: 310px;
}
.filters select {
  width: auto;
  min-width: 140px;
}
.filters label {
  margin: 0;
}
.search {
  flex: 1;
  min-width: 180px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  color: #555555;
}
.field input,
.field select,
.field textarea,
input,
select,
textarea {
  border: 1px solid #cccccc;
  border-radius: 7px;
  padding: 10px 12px;
  background: #fff;
  color: #333333;
  width: 100%;
  min-height: 42px;
}
.field textarea {
  min-height: 85px;
  resize: vertical;
}
.full {
  grid-column: 1/-1;
}
.form-section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.signature {
  width: 100%;
  height: 160px;
  border: 1px dashed #bbbbbb;
  border-radius: 8px;
  background: #fafafa;
  touch-action: none;
  display: block;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
}
.check input {
  width: 18px;
  min-height: 18px;
  margin: 0;
}
.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 10px;
  min-width: 1000px;
}
.day {
  background: #f4f4f4;
  border-radius: 8px;
  padding: 12px;
}
.day h3 {
  font-size: 12px;
  margin-bottom: 18px;
}
.class-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
}
.class-card strong {
  display: block;
  font-size: 11px;
  margin: 8px 0;
}
.class-card p {
  font-size: 10px;
  color: var(--muted);
}
.class-card .time {
  font-size: 12px;
  color: var(--primary);
}
.class-card button {
  width: 100%;
  margin-top: 4px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  width: min(700px, calc(100% - 30px));
  max-height: 90vh;
  color: inherit;
}
dialog::backdrop {
  background: #22222280;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  margin: 0;
}
.error {
  color: #a94337;
  background: #fff2ed;
  padding: 12px;
  border-radius: 6px;
  font-size: 12px;
  margin: 12px 0;
}
.notice {
  background: #f6f2e6;
  padding: 12px 16px;
  font-size: 12px;
  border-radius: 7px;
  color: #786238;
  margin: 16px 0;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #4169e1;
  color: white;
  padding: 14px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #22222233;
  display: none;
  z-index: 1000;
  font-size: 13px;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: var(--primary);
  color: white;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.login-art .brand {
  color: white;
}
.login-art .brand-mark {
  border-color: #bbbbbb;
}
.login-art h1 {
  font-size: 45px;
  line-height: 1.55;
  font-weight: 400;
}
.login-art p {
  color: #cccccc;
  font-size: 13px;
  line-height: 2;
}
.login-art .huge {
  font-size: 150px;
  font-family: serif;
  color: #555555;
  align-self: flex-end;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #f5f5f5;
}
.login-card {
  width: 100%;
  max-width: 370px;
}
.login-card h2 {
  font-size: 28px;
  margin-bottom: 10px;
}
.login-card form {
  display: grid;
  gap: 20px;
  margin-top: 36px;
}
.login-card .primary {
  padding: 14px;
}
.login-help {
  font-size: 11px;
  color: #888888;
  line-height: 1.9;
  margin-top: 24px;
}
.receipt {
  background: #fff;
  padding: 35px;
  max-width: 800px;
  margin: auto;
}
.receipt img {
  max-width: 300px;
  height: 120px;
  object-fit: contain;
}
.loading {
  padding: 50px;
  color: #777777;
}
.reception-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.reception-grid button {
  padding: 28px;
  text-align: left;
  display: grid;
  gap: 15px;
}
.reception-grid strong {
  font-size: 20px;
}
.metrics-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.metrics-row strong {
  display: block;
  font-size: 25px;
  margin-top: 8px;
}
.mobile-brand {
  display: none;
}
progress {
  width: 100%;
  height: 7px;
  accent-color: var(--primary);
}
.reception-success {
  text-align: center;
  padding: 25px;
  font-size: 22px;
}
.print-only {
  display: none;
}
@media (max-width: 1150px) {
  .layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 14px;
  }
  .main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat strong {
    font-size: 27px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .hero-art {
    font-size: 60px;
  }
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand,
  .nav-caption,
  .sidebar-foot {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 6px;
  }
  .nav {
    white-space: nowrap;
    font-size: 11px;
    padding: 10px;
  }
  .nav svg {
    width: 15px;
  }
  .topbar {
    height: 54px;
    padding: 0 16px;
  }
  .topbar-left {
    font-size: 10px;
  }
  .topbar-left .crumb {
    display: none;
  }
  .top-actions {
    gap: 4px;
  }
  .main {
    padding: 22px 16px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .hero {
    padding: 22px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero-art {
    font-size: 45px;
  }
  .stats {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat {
    padding: 16px;
  }
  .stat-top {
    font-size: 10px;
  }
  .stat small {
    font-size: 10px;
  }
  .panel {
    padding: 17px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .full {
    grid-column: auto;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 30px;
    min-height: 250px;
  }
  .login-art .brand {
    margin-bottom: 24px;
  }
  .login-art h1 {
    font-size: 27px;
  }
  .login-art .huge {
    display: none;
  }
  .login-art p {
    margin: 0;
  }
  .login-form {
    padding: 30px;
  }
  .hero p {
    font-size: 10px;
  }
  .hero-art {
    display: none;
  }
  dialog {
    padding: 20px;
  }
  .bars {
    gap: 6px;
  }
  .actions {
    width: 100%;
  }
}
@media print {
  body {
    background: white;
  }
  .sidebar,
  .topbar,
  .page-heading,
  .actions,
  .filters,
  button,
  #toast,
  .no-print {
    display: none !important;
  }
  .layout {
    display: block;
  }
  .main {
    padding: 0;
    max-width: none;
  }
  .panel {
    border: 0;
    padding: 0;
  }
  .table-wrap {
    overflow: visible;
  }
  table {
    white-space: normal;
    font-size: 10px;
  }
  th,
  td {
    padding: 7px;
  }
  .print-only {
    display: block;
  }
  dialog[open] {
    position: static;
    max-height: none;
    width: 100%;
    border: 0;
  }
  .receipt {
    padding: 0;
  }
  body:has(dialog[open]) #app {
    display: none;
  }
}

/* Retain the original dojo palette: charcoal, gray, cyan, royal blue and purple. */
.sidebar {
  background: #555555;
  color: white;
}
.brand-mark {
  border-color: #cccccc;
}
.brand small,
.sidebar .muted {
  color: #cccccc;
}
.gym-badge {
  border-color: #777777;
}
.avatar {
  color: #333333;
}
.topbar {
  background: #222222;
  color: white;
  border-color: #222222;
}
.topbar-left {
  color: #dddddd;
}
.top-actions select,
.top-actions button {
  color: white;
}
.top-actions select option {
  color: #333333;
}
.hero {
  background: #333333;
}
.login-art {
  background: #222222;
}
.login-card .primary {
  background: #d32f2f;
  border-color: #d32f2f;
}
.stat:nth-child(1) .stat-top svg {
  color: #00bfff;
}
.stat:nth-child(2) .stat-top svg {
  color: #4169e1;
}
.stat:nth-child(4) .stat-top svg {
  color: #5507ff;
}
.login-art .eyebrow {
  color: #cccccc;
}
