:root {
  color: #1d1d1f;
  background: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: #0071e3; text-decoration: none; }

.auth, .guest {
  max-width: 420px;
  margin: 8vh auto;
  padding: 0 20px 40px;
}
.guest { max-width: 560px; }
h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.sub { color: #6e6e73; margin: 0 0 24px; }
.card {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 16px;
}
label { display: block; margin-bottom: 12px; }
label span, .label { display: block; color: #6e6e73; font-size: 13px; margin-bottom: 4px; }
input, select, textarea {
  width: 100%;
  border: 0;
  background: #f5f5f7;
  border-radius: 12px;
  padding: 12px 14px;
}
textarea { min-height: 88px; resize: vertical; }
table.plan textarea { min-height: 72px; }
table input, table select { min-width: 88px; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
.btn {
  border: 0;
  background: #0071e3;
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
}
.btn.secondary { background: #e8e8ed; color: #1d1d1f; }
.btn.small { padding: 6px 12px; }
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { padding: 28px 18px; }
.side nav { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; }
.side button {
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 8px 12px;
}
.side button.on { background: #fff; }
.nav-label { color: #6e6e73; font-size: 12px; margin: 16px 12px 4px; }
.side-name { margin: 8px 0 0; }
.search { display: flex; gap: 8px; margin-bottom: 16px; }
.search input { max-width: 320px; }
.back { margin-bottom: 12px; }
.actions { white-space: nowrap; }
.actions .btn { margin-right: 6px; }
.split { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.split.desk { grid-template-columns: 280px 1fr; }
.panel { max-width: 560px; }
.panel h2, .card h2 { font-size: 22px; margin: 0 0 12px; }
.check-line { display: flex; gap: 8px; align-items: center; }
.check-line input { width: auto; }
.sessions { display: flex; flex-direction: column; gap: 8px; }
.session { display: flex; flex-direction: column; align-items: flex-start; width: 100%; border: 0; background: #f5f5f7; border-radius: 12px; padding: 10px 12px; }
.session.on { background: #e8f1ff; }
.session span, .session em { color: #6e6e73; font-size: 13px; font-style: normal; }
.thread .bubble { display: flex; margin: 8px 0; }
.thread .bubble.out { justify-content: flex-end; }
.thread .bubble span { max-width: 80%; background: #f5f5f7; border-radius: 14px; padding: 8px 12px; white-space: pre-wrap; }
.thread .bubble.out span { background: #0071e3; color: #fff; }
.main { padding: 32px 32px 64px; }
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 18px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #f0f0f2; vertical-align: top; }
th { color: #6e6e73; font-weight: 500; font-size: 13px; }
td input { width: 110px; padding: 8px 10px; }
.error { color: #b42318; }
.ok { color: #067647; }
.banner { background: #fff4e5; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; }
.cover { width: 100%; height: 220px; object-fit: cover; border-radius: 18px; background: #e8e8ed; }
.price { font-size: 28px; font-weight: 600; }
.muted { color: #6e6e73; }
.checks { display: flex; gap: 12px; flex-wrap: wrap; }
.checks label { display: flex; gap: 6px; align-items: center; }
.checks input { width: auto; }
@media (max-width: 800px) {
  .shell { grid-template-columns: 1fr; }
  .side { padding-bottom: 0; }
  .side nav { flex-direction: row; flex-wrap: wrap; }
  .split, .split.desk { grid-template-columns: 1fr; }
  .nav-label { width: 100%; }
  .main { padding: 20px 16px 48px; }
  h1 { font-size: 32px; }
  table { display: block; overflow-x: auto; }
}
