:root {
  color-scheme: light;
  --bg: #edf1ee;
  --paper: #fffdf8;
  --surface: #ffffff;
  --surface-2: #f5f7f3;
  --ink: #18201d;
  --muted: #64716a;
  --line: #d9ded7;
  --deep: #172722;
  --teal: #0d766d;
  --teal-soft: #dff1ed;
  --cobalt: #315f8f;
  --red: #b54843;
  --gold: #b87a24;
  --violet: #69558e;
  --shadow: 0 22px 56px rgba(24, 32, 29, 0.14);
  --soft-shadow: 0 12px 30px rgba(24, 32, 29, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(13, 118, 109, 0.12), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(181, 72, 67, 0.09), transparent 26%),
    linear-gradient(180deg, #f7f8f4 0%, var(--bg) 100%);
  color: var(--ink);
}

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

button {
  min-height: 42px;
  padding: 0 15px;
  color: #ffffff;
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

button:hover {
  background: #095e57;
}

button.secondary {
  color: var(--teal);
  background: var(--teal-soft);
  border-color: #b8d9d2;
}

button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

button.active,
.nav-button.active,
.filter-button.active {
  color: #ffffff;
  background: var(--deep);
  border-color: var(--deep);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: 0;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  font-size: 1rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.dp-app {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(217, 222, 215, 0.88);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-block p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.project-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  color: #ffffff;
  background: var(--deep);
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
}

.module-nav,
.status-strip,
.filter-row,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-button,
.filter-button {
  min-height: 38px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.status-strip {
  justify-content: flex-end;
}

.status-strip span {
  min-height: 34px;
  padding: 8px 10px;
  color: var(--deep);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 900;
}

.view {
  display: none;
  margin-top: 16px;
}

.view.active {
  display: block;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(340px, 1.12fr) minmax(320px, 0.88fr);
  grid-template-areas:
    "hero control"
    "hero profile"
    "protocol profile";
  gap: 16px;
}

.hero-board,
.control-card,
.profile-card,
.protocol-card,
.program-card,
.library-card,
.booking-card,
.mentor-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.hero-board {
  grid-area: hero;
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto;
  overflow: hidden;
  min-height: 640px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(23, 39, 34, 0.95), rgba(28, 48, 55, 0.92)),
    var(--deep);
  border-color: rgba(23, 39, 34, 0.9);
  box-shadow: var(--shadow);
}

.workdesk-board {
  display: block;
  min-height: auto;
  background: var(--deep);
}

.workdesk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(23, 39, 34, 0.96);
}

.workdesk-head h2 {
  color: #ffffff;
  font-size: 1.35rem;
}

.workdesk-head .secondary {
  color: #dff1ed;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.workdesk-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #121a17;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.workdesk-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.desktop-hotspot {
  position: absolute;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2px;
  min-height: 0;
  padding: 9px;
  color: #ffffff;
  text-align: left;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.12);
}

.desktop-hotspot span,
.desktop-hotspot small {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 7px;
  background: rgba(23, 39, 34, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  line-height: 1.1;
}

.desktop-hotspot span {
  font-size: 0.82rem;
  font-weight: 950;
}

.desktop-hotspot small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 850;
}

.desktop-hotspot:hover,
.desktop-hotspot:focus-visible {
  color: #ffffff;
  background: rgba(13, 118, 109, 0.18);
  border-color: rgba(147, 228, 213, 0.86);
  box-shadow: 0 0 0 3px rgba(147, 228, 213, 0.18), 0 16px 34px rgba(0, 0, 0, 0.2);
  outline: none;
}

.hotspot-library {
  left: 8.3%;
  top: 11.3%;
  width: 21%;
  height: 20.2%;
}

.hotspot-diagnostics {
  left: 8.3%;
  top: 32.6%;
  width: 21%;
  height: 17.6%;
}

.hotspot-brief {
  left: 8.3%;
  top: 51.8%;
  width: 21%;
  height: 17.8%;
}

.hotspot-core {
  left: 33.2%;
  top: 9.2%;
  width: 34.1%;
  height: 57.4%;
  align-items: center;
  justify-content: center;
  border-radius: 46% 52% 42% 48%;
  background: rgba(255, 255, 255, 0.035);
}

.hotspot-core span {
  background: rgba(13, 118, 109, 0.78);
}

.hotspot-programs {
  left: 69.9%;
  top: 11.3%;
  width: 19.5%;
  height: 21.2%;
}

.hotspot-practices {
  left: 69.9%;
  top: 34.1%;
  width: 19.5%;
  height: 13.8%;
}

.hotspot-booking {
  left: 69.9%;
  top: 63.8%;
  width: 19.5%;
  height: 20.4%;
}

.hotspot-protocol {
  left: 25.8%;
  top: 66.2%;
  width: 42.4%;
  height: 22.7%;
  align-items: center;
}

.hero-copy {
  padding: 28px 28px 12px;
}

.hero-copy h2 {
  max-width: 680px;
  font-size: 3.1rem;
  line-height: 0.98;
}

.hero-copy p {
  max-width: 610px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
  line-height: 1.55;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.hero-board .eyebrow {
  color: #93e4d5;
}

.hero-art {
  display: grid;
  place-items: center;
  padding: 8px 20px 16px;
}

.hero-art img {
  display: block;
  width: min(100%, 760px);
  height: auto;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.26));
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-stats div {
  min-height: 86px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.hero-stats span,
.score-grid span,
.practice-list span,
.booking-form span {
  color: var(--muted);
}

.hero-stats span {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-stats strong {
  display: block;
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.control-card {
  grid-area: control;
  padding: 20px;
}

.profile-card {
  grid-area: profile;
  padding: 20px;
}

.protocol-card {
  grid-area: protocol;
  padding: 20px;
}

.card-head {
  margin-bottom: 16px;
}

.signal-list {
  display: grid;
  gap: 13px;
}

.signal-row {
  display: grid;
  grid-template-columns: minmax(128px, 1fr) minmax(120px, 1.1fr) 38px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.signal-row span {
  color: var(--muted);
  font-size: 0.91rem;
}

.signal-row strong {
  text-align: right;
  font-size: 0.91rem;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--teal);
}

.button-row {
  margin-top: 18px;
}

.score-orbit {
  --score: 67;
  display: grid;
  place-items: center;
  width: min(100%, 250px);
  aspect-ratio: 1;
  margin: 8px auto 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--surface) 0 53%, transparent 54%),
    conic-gradient(var(--teal) calc(var(--score) * 1%), #e4e8e2 0);
}

.score-orbit div {
  display: grid;
  place-items: center;
  width: 66%;
  aspect-ratio: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.score-orbit strong {
  font-size: 3rem;
  line-height: 1;
}

.score-orbit span {
  color: var(--muted);
  font-weight: 800;
}

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

.score-grid div {
  padding: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.score-grid span {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 800;
}

.score-grid strong {
  font-size: 1.45rem;
}

.profile-note {
  margin-top: 14px;
  padding: 14px;
  color: #ffffff;
  background: var(--deep);
  border-radius: 8px;
  line-height: 1.5;
}

.practice-list {
  display: grid;
  gap: 10px;
}

.practice-list label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  padding: 11px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.practice-list input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.practice-list span {
  line-height: 1.42;
}

.protocol-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.protocol-footer span {
  color: var(--teal);
  font-weight: 900;
}

.section-head {
  max-width: 760px;
  margin: 8px 0 16px;
}

.section-head h2 {
  font-size: 2.1rem;
}

.section-head p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.program-grid,
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.program-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  padding: 20px;
}

.program-card.featured {
  color: #ffffff;
  background: var(--deep);
  border-color: var(--deep);
  box-shadow: var(--shadow);
}

.program-card.featured p,
.program-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.program-card h3 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.program-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.program-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.25rem;
}

.program-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  padding-left: 18px;
}

.program-card li {
  color: var(--muted);
  line-height: 1.35;
}

.program-card button {
  margin-top: auto;
}

.plan-label {
  align-self: flex-start;
  padding: 7px 9px;
  color: var(--deep);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.76rem;
  font-weight: 900;
}

.featured .plan-label {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.program-card.group {
  border-top: 4px solid var(--cobalt);
}

.program-card.free {
  border-top: 4px solid var(--teal);
}

.program-card.skills {
  border-top: 4px solid var(--gold);
}

.filter-row {
  margin-bottom: 14px;
}

.library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-card {
  min-height: 210px;
  padding: 20px;
}

.library-card.hidden {
  display: none;
}

.library-card span {
  color: var(--red);
  font-weight: 950;
}

.library-card h3 {
  margin-top: 24px;
  font-size: 1.18rem;
}

.library-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(360px, 1.08fr);
  gap: 16px;
}

.booking-card,
.mentor-card {
  padding: 22px;
}

.booking-form {
  display: grid;
  gap: 13px;
}

.booking-form label {
  display: grid;
  gap: 7px;
}

.booking-form span {
  font-size: 0.86rem;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.booking-form textarea {
  resize: vertical;
  min-height: 126px;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 118, 109, 0.13);
}

.mentor-card {
  display: flex;
  flex-direction: column;
  min-height: 520px;
  color: #ffffff;
  background:
    linear-gradient(145deg, rgba(23, 39, 34, 0.96), rgba(49, 95, 143, 0.88)),
    var(--deep);
  border-color: rgba(23, 39, 34, 0.85);
}

.mentor-card .eyebrow {
  color: #f2c879;
}

.mentor-card h2 {
  max-width: 560px;
  font-size: 2rem;
}

.mentor-card p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.74);
  line-height: 1.6;
}

.mentor-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.mentor-list span {
  padding: 11px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  font-weight: 850;
}

.request-preview {
  margin-top: auto;
  padding: 16px;
  color: rgba(255, 255, 255, 0.86);
  white-space: pre-wrap;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  line-height: 1.48;
}

.mobile-action-bar {
  display: none;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  width: min(360px, calc(100% - 32px));
  padding: 13px 14px;
  color: #ffffff;
  background: var(--deep);
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .app-header {
    grid-template-columns: 1fr;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .studio-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "control"
      "profile"
      "protocol";
  }

  .hero-board {
    min-height: auto;
  }

  .program-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dp-app {
    width: min(100% - 18px, 560px);
    padding-bottom: 86px;
  }

  .app-header {
    position: static;
    padding: 12px;
  }

  .brand-block {
    align-items: flex-start;
  }

  .project-mark {
    width: 50px;
    height: 50px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .brand-block p {
    font-size: 0.9rem;
  }

  .module-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .module-nav button {
    min-height: 40px;
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .hero-copy {
    padding: 22px 18px 8px;
  }

  .workdesk-head {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .workdesk-head h2 {
    font-size: 1.25rem;
  }

  .desktop-hotspot {
    padding: 5px;
  }

  .desktop-hotspot span {
    padding: 4px 5px;
    font-size: 0.58rem;
  }

  .desktop-hotspot small {
    display: none;
  }

  .hero-copy h2,
  .section-head h2,
  .mentor-card h2 {
    font-size: 1.72rem;
  }

  .hero-copy p {
    font-size: 0.96rem;
  }

  .hero-art {
    padding: 4px 10px 12px;
  }

  .hero-stats,
  .score-grid,
  .program-grid,
  .library-grid,
  .booking-layout,
  .mentor-list {
    grid-template-columns: 1fr;
  }

  .control-card,
  .profile-card,
  .protocol-card,
  .booking-card,
  .mentor-card {
    padding: 16px;
  }

  .signal-row {
    grid-template-columns: 1fr 38px;
  }

  .signal-row input {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .program-card {
    min-height: 0;
  }

  .mobile-action-bar {
    display: none;
  }
}
