@import url("/tokens.css");
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
a {
  color: var(--accent);
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -1.8px;
  line-height: 1.12;
  font-weight: 500;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
  font-weight: 500;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
button,
.button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 11px 18px;
  border-radius: 9px;
  min-height: 46px;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
button:hover,
.button:hover {
  background: var(--hover);
  border-color: #6c716c;
}
.primary {
  background: var(--accent);
  color: #20211e;
  border-color: var(--accent);
}
.primary:hover {
  background: #e5c6a0;
}
.danger {
  color: #f1aaa0;
  border-color: #81514a;
}
.quiet {
  background: transparent;
}
.text-button {
  border: 0;
  background: none;
  padding: 5px;
  min-height: 44px;
  color: var(--accent);
}
:focus-visible {
  outline: 3px solid #e6c79c;
  outline-offset: 4px;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  min-height: 46px;
  border: 1px solid #5c615d;
  border-radius: 7px;
  background: #1d201f;
  color: var(--text);
}
input[type="checkbox"] {
  width: 21px;
  min-height: 21px;
  accent-color: var(--accent);
  flex: none;
}
input[type="file"] {
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
label {
  display: block;
  font-size: 13px;
  color: #d1d6d0;
  margin-bottom: 14px;
}
label > input,
label > select,
label > textarea {
  margin-top: 6px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check input {
  margin: 0;
}
.check small {
  display: block;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin: 0 0 20px;
}
legend {
  padding: 0 8px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.grow {
  flex: 1;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stack > * + * {
  margin-top: 20px;
}
.shell {
  max-width: 1600px;
  margin: auto;
  display: grid;
  grid-template-columns: 224px 1fr;
  min-height: 100dvh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
}
.wordmark {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  color: var(--text);
  text-decoration: none;
}
.wordmark span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--accent);
  margin-top: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--accent);
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  margin-right: 8px;
  color: var(--accent);
  font-size: 20px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  margin-top: 46px;
}
.nav-link {
  color: var(--muted);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 14px;
  min-height: 46px;
}
.nav-link[aria-current="page"] {
  background: #30342f;
  color: var(--text);
}
.nav-icon {
  font:
    18px/1 ui-monospace,
    monospace;
  width: 22px;
  text-align: center;
}
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.avatar {
  height: 36px;
  width: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #32382f;
  color: var(--accent);
}
.workspace {
  min-width: 0;
  padding: 0 46px 64px;
}
.topbar {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 34px;
  gap: 10px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}
.status {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: #b9c8a7;
}
.page-title {
  margin-bottom: 28px;
}
.page-title p {
  color: var(--muted);
  margin-top: 12px;
  max-width: 600px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 26px;
  min-width: 0;
}
.hero {
  padding: 32px;
  background: #2c332e;
  border: 1px solid #4a564c;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.hero h2 {
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: -1.4px;
  max-width: 450px;
  margin: 19px 0;
}
.hero p {
  max-width: 490px;
  color: #c1ccc0;
}
.hero-line {
  height: 2px;
  width: 72px;
  background: var(--accent);
  margin-bottom: 26px;
}
.hero .primary {
  margin-top: 8px;
}
.metric {
  font:
    38px/1.3 ui-rounded,
    "Arial Narrow",
    sans-serif;
  letter-spacing: -1px;
  color: var(--text);
  margin: 6px 0;
}
.metric small {
  font:
    13px/1.4 -apple-system,
    sans-serif;
  letter-spacing: 0;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 22px;
}
.day {
  display: grid;
  justify-items: center;
  border: 1px solid var(--line);
  padding: 12px 4px;
  border-radius: 9px;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.day b {
  font-size: 17px;
  color: var(--text);
  font-weight: 500;
}
.day.today {
  border-color: var(--accent);
  background: #36382f;
}
.day-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #555c55;
}
.day-dot.planned {
  background: var(--accent);
}
.day-dot.done {
  background: #b5c5ac;
  box-shadow: 0 0 0 3px #b5c5ac22;
}
.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 22px 0;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list > li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.list > li:last-child {
  border: 0;
}
.list h3,
.list p {
  margin-bottom: 4px;
}
.number {
  font:
    14px ui-monospace,
    monospace;
  color: var(--accent);
  min-width: 26px;
}
.badge {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent);
  border: 1px solid #605c4f;
  padding: 3px 8px;
  border-radius: 5px;
}
.notice {
  border-left: 2px solid var(--accent);
  padding: 10px 15px;
  background: #d3b48b0a;
  color: #d3d7cf;
  font-size: 13px;
  margin: 16px 0;
}
.empty {
  padding: 25px 0;
  color: var(--muted);
}
.chart {
  width: 100%;
  height: 120px;
  display: block;
  color: var(--accent);
}
.chat-log {
  max-height: 520px;
  overflow: auto;
  padding: 2px 4px 16px;
}
.bubble {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  max-width: 90%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.user {
  margin-left: auto;
  background: #343a33;
}
.bubble.coach {
  background: #242927;
}
.bubble small {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.photo-grid img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: contain;
  background: #151716;
  border-radius: 7px;
}
.photo-grid figure {
  margin: 0;
}
.photo-grid figcaption {
  font-size: 12px;
}
.photo-grid .row {
  gap: 5px;
}
.photo-grid button {
  padding: 6px 9px;
  font-size: 12px;
}
video {
  width: 100%;
  max-height: 430px;
  object-fit: contain;
  background: #101211;
  border-radius: 10px;
  aspect-ratio: 16/10;
}
.call-stage {
  position: relative;
}
.call-caption {
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.set-list {
  display: grid;
  gap: 8px;
}
.set-row {
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line);
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  gap: 8px;
}
.onboarding {
  max-width: 780px;
  margin: 50px auto;
  padding: 0 24px 60px;
}
.onboarding .wordmark {
  margin-bottom: 40px;
  display: block;
}
.onboarding h1 {
  margin-bottom: 18px;
}
.onboarding form {
  margin-top: 30px;
}
.onboarding .card {
  padding: 28px;
}
.days {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.days label {
  display: flex;
  align-items: center;
  gap: 6px;
}
details {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 15px;
}
summary {
  cursor: pointer;
  color: var(--muted);
  padding: 8px 0;
  min-height: 44px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 11px 7px;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--muted);
  font-weight: 400;
}
.table-wrap {
  overflow-x: auto;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #e6e7df;
  color: #20231f;
  padding: 12px 22px;
  border-radius: 9px;
  box-shadow: 0 8px 30px #0005;
  z-index: 100;
  max-width: min(90vw, 600px);
  display: none;
}
#toast.show {
  display: block;
}
.error {
  color: #f2aaa0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 15px;
  z-index: 1000;
  background: var(--accent);
  color: #111;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
dialog {
  max-width: 540px;
  width: calc(100% - 32px);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 28px;
}
dialog::backdrop {
  background: #000b;
}
.loading {
  padding: 60px;
}
.offline {
  color: #e5bf8e;
}
.reminder {
  display: none;
}
.session-head {
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 2;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.small-gap {
  gap: 8px;
}
.install-hint {
  font-size: 12px;
  color: var(--muted);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (min-width: 1200px) {
  .home-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  }
}
@media (max-width: 1000px) {
  .workspace {
    padding: 0 25px 50px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 28px 15px;
  }
  .grid.three {
    grid-template-columns: 1fr;
  }
  .hero h2 {
    font-size: 34px;
  }
}
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    z-index: 20;
    background: #1c1f1ef5;
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .sidebar > .wordmark,
  .sidebar-footer {
    display: none;
  }
  .sidebar nav {
    margin: 0;
    display: flex;
    overflow-x: auto;
    gap: 0;
    padding: 6px 8px;
    scrollbar-width: thin;
  }
  .nav-link {
    flex-direction: column;
    gap: 3px;
    min-width: 70px;
    padding: 7px 10px;
    font-size: 10px;
    min-height: 58px;
    border-radius: 7px;
  }
  .nav-icon {
    font-size: 19px;
  }
  .workspace {
    padding: 0 20px 120px;
  }
  .topbar {
    height: 74px;
    margin-bottom: 27px;
  }
  .topbar .status {
    max-width: 170px;
  }
  .grid,
  .grid.three {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 21px;
  }
  .hero {
    padding: 26px;
  }
  .hero h2 {
    font-size: 35px;
  }
  .week {
    gap: 5px;
  }
  .day {
    padding: 10px 3px;
  }
  h1 {
    font-size: 35px;
  }
  .page-title {
    margin-bottom: 24px;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bubble {
    max-width: 96%;
  }
  .onboarding {
    margin-top: 30px;
  }
  #toast {
    bottom: 100px;
  }
  .row > button {
    max-width: 100%;
  }
  .session-head {
    top: 0;
  }
  .metric {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card,
  .hero {
    animation: appear 0.35s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(5px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
