:root {
  --canvas: #faf7f4;
  --paper: #ffffff;
  --paper-soft: #fffaf7;
  --ink: #281d19;
  --ink-soft: #4d403b;
  --muted: #766963;
  --faint: #9a8981;
  --line: #eee1da;
  --line-strong: #dcc8bf;
  --accent: #cf4228;
  --accent-deep: #aa3321;
  --accent-soft: #ffede5;
  --meeting: #b8442b;
  --lecture: #8c5a18;
  --learning: #1b6f5a;
  --font: "Avenir Next", "Segoe UI Variable Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  --display: "Avenir Next", "Segoe UI Variable Display", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --ease: cubic-bezier(.22, .72, .24, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(700px 360px at 85% -80px, rgba(29, 111, 90, .05), transparent 72%),
    var(--canvas);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(192, 109, 88, .22);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.g-topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px clamp(18px, 4vw, 46px);
  border-bottom: 1px solid rgba(128, 102, 89, .1);
}

.g-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.g-brand-orb {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  background: #fff;
  border: 1px solid #e5d7cf;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(73, 54, 44, .08);
}

.g-brand-orb img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.g-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.g-brand-copy b {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.g-brand-copy small {
  color: var(--muted);
  font-size: 10px;
}

.g-back {
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}

.g-back:hover {
  color: var(--accent);
}

.g-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.g-hero {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 26px;
}

.g-hero-copy {
  max-width: 470px;
}

.g-hero-kicker {
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: .08em;
}

.g-hero h1 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 580;
  letter-spacing: -.05em;
  line-height: 1.15;
}

.g-hero-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.g-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.g-track {
  position: relative;
  display: flex;
  min-height: 104px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  color: var(--ink-soft);
  text-align: left;
  background: rgba(255, 255, 255, .78);
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
}

.g-track:hover {
  background: #fff;
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.g-track.is-active {
  background: #fff;
  border-color: rgba(28, 111, 90, .34);
  box-shadow: 0 12px 26px rgba(60, 48, 42, .08);
}

.g-track-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: none;
  place-items: center;
  border-radius: 12px;
}

.g-track-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}

.g-track-icon.meeting {
  color: var(--meeting);
  background: #ffebe4;
}

.g-track-icon.lecture {
  color: var(--lecture);
  background: #fff3dd;
}

.g-track-icon.learning {
  color: var(--learning);
  background: #def3eb;
}

.g-track > span:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.g-track b {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 650;
}

.g-track small {
  color: var(--muted);
  font-size: 10px;
}

.g-track.is-active::after {
  position: absolute;
  right: 13px;
  bottom: 12px;
  left: 13px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--meeting), var(--lecture) 50%, var(--learning));
  border-radius: 2px;
  opacity: .9;
}

.g-room {
  animation: roomIn .3s var(--ease) both;
}

.g-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.g-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(77, 44, 31, .035);
}

.g-form-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 2px;
}

.g-form-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  place-items: center;
  border-radius: 12px;
}

.g-form-mark svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.55;
}

.g-form-mark.meeting {
  color: var(--meeting);
  background: #ffebe4;
}

.g-form-mark.lecture {
  color: var(--lecture);
  background: #fff3dd;
}

.g-form-mark.learning {
  color: var(--learning);
  background: #def3eb;
}

.g-form-head h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 620;
  letter-spacing: -.02em;
}

.g-form-head small {
  color: var(--muted);
  font-size: 10px;
}

.g-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g-field > span {
  color: var(--ink-soft);
  font-size: 10.5px;
  font-weight: 650;
}

.g-field textarea,
.g-field input,
.g-field select {
  width: 100%;
  color: var(--ink);
  background: #fbf8f5;
  border: 1px solid #e8dbd3;
  border-radius: 10px;
  outline: 0;
  transition: border-color .16s, box-shadow .16s;
}

.g-field textarea {
  min-height: 76px;
  padding: 10px 11px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.65;
}

.g-field input,
.g-field select {
  height: 42px;
  padding: 0 11px;
  font-size: 12px;
}

.g-field textarea:focus,
.g-field input:focus,
.g-field select:focus {
  border-color: #c17a63;
  box-shadow: 0 0 0 3px rgba(193, 122, 99, .1);
}

.g-field textarea::placeholder,
.g-field input::placeholder {
  color: #ac978d;
}

.g-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.g-run {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(51, 35, 28, .12);
  transition: filter .16s, transform .16s, opacity .16s;
}

.g-run:hover {
  filter: brightness(.94);
  transform: translateY(-1px);
}

.g-run:active {
  transform: translateY(0) scale(.985);
}

.g-run:disabled {
  opacity: .55;
  cursor: wait;
  transform: none;
}

.g-run.meeting {
  background: var(--meeting);
}

.g-run.lecture {
  background: var(--lecture);
}

.g-run.learning {
  background: var(--learning);
}

.g-form-note {
  margin: -2px 0 0;
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.6;
}

.g-output {
  min-width: 0;
}

.g-card {
  padding: 17px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.g-card + .g-card {
  margin-top: 11px;
}

.g-card h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 630;
}

.g-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.g-cast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.g-cast {
  position: relative;
  padding: 13px;
  overflow: hidden;
  background: #fffaf7;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.g-cast::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: var(--accent);
}

.g-cast b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}

.g-cast small {
  display: block;
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.g-cast blockquote {
  margin: 0 0 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.6;
}

.g-cast .g-cast-question {
  color: var(--accent-deep);
  font-size: 10.5px;
  font-weight: 600;
}

.g-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.g-list li {
  position: relative;
  padding: 9px 10px 9px 25px;
  color: var(--ink-soft);
  background: #fbf8f5;
  border: 1px solid #efe4dd;
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.65;
}

.g-list li::before {
  position: absolute;
  top: 14px;
  left: 11px;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
}

.g-list b {
  color: var(--ink);
  font-weight: 650;
}

.g-quote {
  position: relative;
  padding: 12px 14px;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid #f0cdbf;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.7;
}

.g-danger {
  padding: 10px 13px;
  color: #873620;
  background: #fff0e9;
  border: 1px solid #eec6b8;
  border-radius: 11px;
  font-size: 11.5px;
}

.g-danger b {
  font-weight: 680;
}

.g-segment-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.g-segment {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 12px;
  background: #fbf8f5;
  border: 1px solid #efe4dd;
  border-radius: 11px;
}

.g-segment .g-segment-time {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--lecture);
  background: #fff3dd;
  border-radius: 10px;
  font-size: 10.5px;
  font-weight: 700;
}

.g-segment-copy b {
  display: block;
  color: var(--ink);
  font-size: 12.5px;
}

.g-segment-copy small {
  color: var(--muted);
  font-size: 10px;
}

.g-segment-points {
  margin: 5px 0 0;
  padding-left: 15px;
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.65;
}

.g-question-picks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.g-question-pick {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  color: var(--ink-soft);
  text-align: left;
  background: #fbf8f5;
  border: 1px solid #efe4dd;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.g-question-pick:hover {
  border-color: #dfc0ae;
}

.g-question-pick b {
  color: var(--lecture);
  font-size: 10px;
  white-space: nowrap;
}

.g-rehearse-pit {
  margin-top: 16px;
  padding: 17px 18px 15px;
  background: #fffdf8;
  border: 1px solid #ebd3bd;
  border-radius: 16px;
}

.g-pit-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.g-pit-head small {
  color: var(--lecture);
  font-size: 9.5px;
  font-weight: 680;
  letter-spacing: .06em;
}

.g-pit-head h3 {
  margin: 1px 0 0;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 620;
}

.g-quiet {
  padding: 6px 10px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 10.5px;
  cursor: pointer;
}

.g-student-question {
  margin: 12px 0 0;
  padding: 11px 13px;
  color: var(--ink-soft);
  background: #fff8ed;
  border-left: 3px solid var(--lecture);
  border-radius: 4px 11px 11px 4px;
  font-size: 12.5px;
  line-height: 1.65;
}

.g-rehearse-pit > textarea {
  width: 100%;
  min-height: 88px;
  margin-top: 10px;
  padding: 10px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e8dbd3;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
}

.g-pit-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.g-pit-hint {
  color: var(--faint);
  font-size: 9.5px;
  line-height: 1.55;
}

.g-review {
  margin-top: 13px;
  padding: 13px 14px;
  background: #f6f8f2;
  border: 1px solid #dce6d8;
  border-radius: 12px;
}

.g-score {
  display: inline-flex;
  min-width: 48px;
  height: 34px;
  align-items: center;
  justify-content: center;
  color: var(--learning);
  background: #e2f0e8;
  border-radius: 9px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 650;
}

.g-review h4 {
  margin: 12px 0 5px;
  color: var(--ink);
  font-size: 11.5px;
}

.g-review p {
  margin: 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.7;
}

.g-review .g-good {
  color: var(--learning);
}

.g-review .g-gap {
  color: var(--meeting);
}

.g-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.g-route-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 620;
}

.g-route-head small {
  color: var(--muted);
  font-size: 10px;
}

.g-progress {
  height: 7px;
  margin: 0 0 14px;
  overflow: hidden;
  background: #efe5de;
  border-radius: 999px;
}

.g-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--learning);
  border-radius: inherit;
  transition: width .3s var(--ease);
}

.g-stage {
  position: relative;
  padding: 13px 14px 13px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.g-stage + .g-stage {
  margin-top: 8px;
}

.g-stage::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--learning);
  border-radius: 4px 0 0 4px;
}

.g-stage.is-done {
  background: #f6faf7;
  border-color: #d6e4da;
}

.g-stage.is-done::before {
  background: #79a993;
}

.g-stage-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.g-stage-check {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--learning);
}

.g-stage-head b {
  color: var(--ink);
  font-size: 12.5px;
}

.g-stage-head small {
  display: block;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.5;
}

.g-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 8px 0 0 25px;
}

.g-stage-action {
  padding: 4px 8px;
  color: var(--ink-soft);
  background: #fbf8f5;
  border: 1px solid #ece1da;
  border-radius: 7px;
  font-size: 9.5px;
}

.g-stage-milestone {
  margin: 8px 0 0 25px;
  color: var(--learning);
  font-size: 9.5px;
  font-weight: 650;
}

.g-stage-checkline {
  margin: 5px 0 0 25px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.5;
}

.g-stage-stuck {
  margin: 8px 0 0 25px;
  padding: 0;
  color: var(--meeting);
  background: transparent;
  border: 0;
  font-size: 9.5px;
  font-weight: 650;
  cursor: pointer;
}

.g-reroute {
  margin-top: 12px;
  padding: 14px 15px;
  background: #fff8f4;
  border: 1px solid #eed9cc;
  border-radius: 13px;
}

.g-reroute h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 12px;
}

.g-reroute p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.g-reroute textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e8dbd3;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.6;
  resize: vertical;
}

.g-reroute button {
  margin-top: 8px;
}

.g-loading {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  background: var(--paper);
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  font-size: 12px;
}

.g-loading::before {
  width: 12px;
  height: 12px;
  content: "";
  border: 2px solid #dfcbc2;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: gSpin .8s linear infinite;
}

.g-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: min(360px, calc(100vw - 36px));
  padding: 9px 13px;
  color: #fff;
  background: rgba(42, 32, 28, .92);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(42, 32, 28, .22);
  font-size: 11px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s, transform .2s;
  pointer-events: none;
}

.g-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes roomIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 900px) {
  .g-hero {
    grid-template-columns: 1fr;
  }

  .g-workbench {
    grid-template-columns: 1fr;
  }

  .g-form {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .g-shell {
    width: min(100% - 20px, 1180px);
  }

  .g-tracks {
    grid-template-columns: 1fr;
  }

  .g-track {
    min-height: 70px;
  }

  .g-cast-grid {
    grid-template-columns: 1fr;
  }

  .g-field-grid {
    grid-template-columns: 1fr;
  }

  .g-pit-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
