* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #ffffff;
  --surface: #fafafa;
  --surface-2: #f1f1f1;
  --line: #ebebeb;
  --line-strong: #d4d4d4;
  --text: #101010;
  --muted: #8c8c8c;
  --faint: #bdbdbd;
  --cta-bg: #101010;
  --cta-text: #ffffff;
  --dock-bg: rgba(255, 255, 255, 0.94);
  --mask: rgba(0, 0, 0, 0.32);
  --radius: 14px;
}

[data-theme='dark'] {
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-2: #1b1b1b;
  --line: #242424;
  --line-strong: #3a3a3a;
  --text: #f2f2f2;
  --muted: #8b8b8b;
  --faint: #4c4c4c;
  --cta-bg: #f2f2f2;
  --cta-text: #0a0a0a;
  --dock-bg: rgba(10, 10, 10, 0.94);
  --mask: rgba(0, 0, 0, 0.62);
}

html,
body {
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overscroll-behavior: none;
  transition: background 0.2s ease, color 0.2s ease;
}

#app {
  max-width: 520px;
  margin: 0 auto;
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

input,
textarea,
button,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar.lg {
  width: 76px;
  height: 76px;
  font-size: 28px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translate(-50%, 12px);
  background: var(--cta-bg);
  color: var(--cta-text);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: 0.22s ease;
  z-index: 200;
  max-width: 80vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.auth {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 28px 60px;
  overflow-y: auto;
}

.auth-brand {
  text-align: center;
  margin-bottom: 40px;
}

.auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 2px;
}

.auth-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 4px;
  margin-top: 8px;
}

.auth-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 22px;
  background: var(--surface);
}

.auth-tabs button {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 0.18s;
}

.auth-tabs button.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.5px;
}

.input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 15px;
  transition: 0.18s;
}

.input:focus {
  border-color: var(--line-strong);
  background: var(--bg);
}

.btn-primary {
  width: 100%;
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: 12px;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-top: 8px;
  transition: 0.15s;
}

.btn-primary:active {
  transform: scale(0.985);
  opacity: 0.85;
}

.btn-primary[disabled] {
  opacity: 0.35;
}

.topbar {
  padding: calc(env(safe-area-inset-top) + 18px) 20px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
}

.topbar .date-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-top: 3px;
}

.topbar .brand-mini {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--muted);
}

.page {
  flex: 1;
  overflow-y: auto;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  -webkit-overflow-scrolling: touch;
}

.page-inner {
  padding: 18px 20px 30px;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.cal-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-nav button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.cal-nav button:active {
  background: var(--surface-2);
}

.cal-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 6px;
}

.cal-week span {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 14px;
  color: var(--text);
  border: 1px solid transparent;
  transition: 0.15s;
}

.cal-cell.blank {
  pointer-events: none;
}

.cal-cell.dim {
  color: var(--faint);
}

.cal-cell.today {
  border-color: var(--line-strong);
}

.cal-cell.selected {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 700;
}

.cal-cell .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
}

.cal-cell.selected .dot {
  background: var(--cta-text);
}

.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0 12px;
}

.section-label h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.section-label span {
  font-size: 12px;
  color: var(--muted);
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.card-title + .card-title,
.type-block {
  margin-top: 18px;
}

.time-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.time-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.time-field > span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '';
  position: absolute;
  right: 15px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 34px 12px 14px;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.select:disabled {
  color: var(--faint);
}

.time-dash {
  padding-bottom: 14px;
  color: var(--muted);
}

.cost-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--muted);
}

.cost-line b {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  color: var(--text);
  transition: 0.15s;
}

.chip em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}

.chip.on {
  background: var(--cta-bg);
  border-color: var(--cta-bg);
  color: var(--cta-text);
}

.chip.on em {
  color: var(--cta-text);
  opacity: 0.6;
}

.note-input {
  width: 100%;
  margin-top: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  min-height: 70px;
  resize: none;
}

.bk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 13px 14px;
  margin-bottom: 8px;
}

.bk-time {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  min-width: 116px;
}

.bk-type {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bk-price {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bk-tag {
  font-size: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  flex: none;
}

.bk-item.mine {
  border-color: var(--line-strong);
  background: var(--bg);
}

.bk-item.mine .bk-tag {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.bk-empty {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 18px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.6;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  background: var(--mask);
  z-index: 90;
  animation: fade 0.18s ease;
}

.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  z-index: 100;
  animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rise {
  from { transform: translate(-50%, 100%); }
  to { transform: translate(-50%, 0); }
}

.sheet-grip {
  width: 36px;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
  margin: 0 auto 16px;
}

.sheet-title {
  font-size: 16px;
  font-weight: 600;
}

.sheet-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 18px;
}

.sheet-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.btn-ghost {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 0;
  color: var(--text);
  font-size: 14px;
}

.btn-solid {
  flex: 2;
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: 12px;
  padding: 13px 0;
  font-size: 14px;
  font-weight: 600;
}

.dock {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  height: calc(64px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--dock-bg);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  z-index: 60;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  transition: 0.15s;
}

.dock-item.active {
  color: var(--text);
}

.dock-main {
  justify-self: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -18px;
  box-shadow: 0 0 0 6px var(--bg);
}

.composer {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 14px 14px 10px;
  margin-bottom: 18px;
}

.composer textarea {
  width: 100%;
  min-height: 58px;
  resize: none;
  font-size: 14px;
  line-height: 1.6;
}

.composer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.composer-bar span {
  font-size: 11px;
  color: var(--muted);
}

.composer-bar button {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
}

.composer-bar button[disabled] {
  opacity: 0.35;
}

.post {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 15px;
  margin-bottom: 10px;
}

.post-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.post-name {
  font-size: 13px;
  font-weight: 600;
}

.post-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.post-body {
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}

.post-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.act {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  transition: 0.15s;
}

.act.on {
  color: var(--text);
  font-weight: 600;
}

.act svg {
  width: 16px;
  height: 16px;
}

.page-head-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
}

.page-head-line h2 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.page-head-line em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}

.empty {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 46px 0;
  letter-spacing: 1px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 20px 18px;
}

.profile-info h2 {
  font-size: 18px;
  font-weight: 600;
}

.profile-info p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.profile-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
  letter-spacing: 0.5px;
}

.rows {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 16px;
  background: var(--surface);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.row:last-child {
  border-bottom: none;
}

.row-label {
  font-size: 14px;
}

.row-value {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.seg {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
}

.seg button {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  transition: 0.15s;
}

.seg button.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
}

.logout {
  width: 100%;
  margin-top: 22px;
  padding: 14px 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  font-size: 14px;
  color: var(--text);
}

.detail {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  z-index: 80;
  display: flex;
  flex-direction: column;
  animation: slide 0.2s ease;
}

@keyframes slide {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(env(safe-area-inset-top) + 14px) 18px 12px;
  border-bottom: 1px solid var(--line);
}

.detail-head button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-head h2 {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
}

.detail-head button.del-btn {
  width: auto;
  height: auto;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
}

.detail-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px 24px;
}

.comment {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.comment-main {
  flex: 1;
}

.comment-name {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 5px;
  word-break: break-word;
  white-space: pre-wrap;
}

.comment-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.comment-bar {
  display: flex;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.comment-bar input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 14px;
}

.comment-bar button {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-radius: 999px;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
}

.hidden {
  display: none !important;
}

.admin {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  z-index: 85;
  display: flex;
  flex-direction: column;
  animation: slide 0.2s ease;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.admin-tabs button {
  flex: 1;
  padding: 8px 0;
  font-size: 12.5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.15s;
}

.admin-tabs button.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.admin-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px calc(28px + env(safe-area-inset-bottom));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 14px;
}

.stat-card b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}

.stat-card span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.5px;
}

.bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 96px;
  margin-top: 14px;
}

.bar-col {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.bar {
  width: 100%;
  background: var(--cta-bg);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  opacity: 0.88;
}

.bar-col span {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}

.admin-month {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.admin-month b {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.admin-month button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.admin-item:last-child {
  border-bottom: none;
}

.ai-main {
  flex: 1;
  min-width: 0;
}

.ai-line {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.ai-line b {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ai-line .price {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.ai-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  letter-spacing: 0.5px;
  flex: none;
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.mini-btn {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  color: var(--text);
  white-space: nowrap;
}

.mini-btn.solid {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
}

.bar.zero {
  background: var(--line-strong);
  opacity: 1;
}

.my-bk {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
}

.my-bk.past {
  opacity: 0.55;
}

.my-main {
  flex: 1;
  min-width: 0;
}

.my-line1 {
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}

.my-line2 {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-cancel {
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11.5px;
  color: var(--text);
}

.my-tag {
  flex: none;
  font-size: 11.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

.guide {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  background: var(--bg);
  z-index: 86;
  display: flex;
  flex-direction: column;
  animation: slide 0.2s ease;
}

.guide-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px calc(30px + env(safe-area-inset-bottom));
}

.guide-addr {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  padding: 16px 16px 15px;
}

.guide-addr span {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1.5px;
}

.guide-addr b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 7px;
}

.guide-addr p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 8px;
}

.guide-step {
  margin-top: 20px;
}

.guide-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.guide-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}

.guide-step-head p {
  font-size: 14px;
  line-height: 1.55;
  padding-top: 2px;
}

.guide-step img {
  width: 100%;
  display: block;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.pay-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.pay-amount span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.pay-amount b {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pay-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 12px 14px;
}

.pay-qr {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.pay-qr-item {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.pay-qr-box {
  aspect-ratio: 3 / 4;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.pay-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.pay-qr-item span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

.btn-solid[disabled] {
  opacity: 0.4;
}

.pay-chip {
  flex: none;
  font-size: 11.5px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  white-space: nowrap;
}

.pay-chip.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.recon-filter {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}

.recon-filter button {
  flex: 1;
  padding: 7px 0;
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.recon-filter button.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.admin-tabs button {
  font-size: 12px;
}

.seg-tabs {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 18px;
  background: var(--surface);
}

.seg-tabs button {
  flex: 1;
  padding: 9px 0;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: 0.15s;
}

.seg-tabs button.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
}

.seg-small {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.seg-small button {
  flex: 1;
  padding: 8px 0;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.seg-small button.on {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.equip-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
}

.equip-thumb {
  width: 58px;
  height: 58px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-2);
  flex: none;
}

.equip-thumb.sm {
  width: 44px;
  height: 44px;
  border-radius: 8px;
}

.equip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.equip-info {
  flex: 1;
  min-width: 0;
}

.equip-name {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equip-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.equip-reason {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.equip-status {
  flex: none;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.equip-status.approved {
  background: var(--cta-bg);
  color: var(--cta-text);
  border-color: var(--cta-bg);
  font-weight: 600;
}

.equip-status.pending {
  border-style: dashed;
  color: var(--text);
}

.upload-box {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--bg);
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
}

.upload-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-box span {
  font-size: 11px;
  color: var(--muted);
}

.equip-hero {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  display: block;
}

.equip-detail-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-top: 14px;
}

.equip-detail-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}

.equip-desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text);
  margin-top: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.equip-booked {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.6;
}

.auth-foot {
  text-align: center;
  margin-top: 18px;
}

.auth-foot button {
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forgot-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 6px 0 2px;
}

.forgot-qr img {
  width: 190px;
  max-width: 62%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}

.forgot-qr span {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.pay-chip.exempt {
  border-style: dashed;
  color: var(--muted);
  background: transparent;
}

.status-opt {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 13px 15px;
  margin-bottom: 8px;
}

.status-opt.on {
  border-color: var(--cta-bg);
}

.so-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}

.so-desc {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.5;
}

.pay-chip.partial {
  border-color: var(--text);
  color: var(--text);
  font-weight: 600;
}

.sheet-actions .btn-ghost,
.sheet-actions .btn-solid {
  min-width: 0;
  padding-left: 0;
  padding-right: 0;
  font-size: 14px;
}

.chips-4 {
  grid-template-columns: repeat(4, 1fr);
}

.chips-4 .chip {
  padding-left: 0;
  padding-right: 0;
}

.chips-2 {
  grid-template-columns: repeat(2, 1fr);
}

.claim-hint {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 8px;
}

.admin-tabs {
  gap: 6px;
  padding: 12px 14px;
}

.admin-tabs button {
  font-size: 11.5px;
  padding: 8px 0;
}

.bk-time {
  font-size: 13.5px;
  min-width: 132px;
}

.bk-main {
  flex: 1;
  min-width: 0;
}

.bk-main .bk-time {
  min-width: 0;
  font-size: 14px;
}

.bk-sub {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:root {
  --dot-red: #e0463e;
  --dot-gray: #c6cbd3;
}

[data-theme='dark'] {
  --dot-red: #ff6f66;
  --dot-gray: #565b63;
}

.pay-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  display: block;
}

.pay-dot.red {
  background: var(--dot-red);
}

.pay-dot.gray {
  background: var(--dot-gray);
}

.cal-cell .dot {
  width: 5px;
  height: 5px;
}

.cal-cell .dot.red {
  background: var(--dot-red);
}

.cal-cell.selected .dot.red {
  background: var(--dot-red);
}

.tour-layer {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.tour-hole {
  position: absolute;
  border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62);
  transition: all 0.18s ease;
}

.tour-tip {
  position: absolute;
  left: 20px;
  right: 20px;
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px 18px 14px;
  pointer-events: auto;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.28);
}

.tour-kind {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--muted);
}

.tour-title {
  font-size: 16px;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

.tour-text {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
}

.tour-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.tour-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
}

.tour-text .tour-red {
  color: var(--dot-red);
}

.tour-text .tour-red b {
  color: var(--dot-red);
  font-weight: 700;
  background: rgba(224, 70, 62, 0.12);
  padding: 0 3px;
  border-radius: 4px;
}

.lb {
  margin-bottom: 10px;
}

.lb-top {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.lb-bar {
  height: 6px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  margin-bottom: 3px;
}

.lb-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.25s ease;
}

.lb-bar.in i {
  background: var(--cta-bg);
}

.lb-bar.out i {
  background: var(--dot-red);
}

.price.minus {
  color: var(--dot-red);
}

.ledger-add {
  margin-bottom: 10px;
}
