    :root {
      --bg: #f4f5f3;
      --panel: #ffffff;
      --panel-2: #ecefed;
      --text: #202422;
      --muted: #6d7470;
      --accent: #1f7a68;
      --accent-2: #8fa39a;
      --warning: #b7791f;
      --danger: #b42318;
      --border: #dde2df;
      --shadow-soft: 0 18px 48px rgba(18, 24, 21, 0.08);
      --shadow-subtle: 0 8px 24px rgba(18, 24, 21, 0.06);
    }

    :root[data-theme="dark"] {
      --bg: #12131a;
      --panel: #1d2029;
      --panel-2: #292d38;
      --text: #f7f3f8;
      --muted: #b7afc0;
      --accent: #4fb7a4;
      --accent-2: #7d8b86;
      --warning: #fbbf24;
      --danger: #fb7185;
      --border: #3d4150;
    }

    :root[data-theme="focus"] {
      --bg: #dfeaf2;
      --panel: #edf4f8;
      --panel-2: #cfdee8;
      --text: #172635;
      --muted: #526777;
      --accent: #2f6f98;
      --accent-2: #6f93ad;
      --warning: #9a6a17;
      --danger: #b42318;
      --border: #bfd0dc;
      --shadow-soft: 0 18px 48px rgba(23, 38, 53, 0.10);
      --shadow-subtle: 0 8px 24px rgba(23, 38, 53, 0.08);
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: var(--bg);
      color: var(--text);
      min-height: 100vh;
    }

    header {
      padding: 22px;
      border-bottom: 1px solid var(--border);
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      backdrop-filter: blur(16px);
      position: sticky;
      top: 0;
      z-index: 10;
    }

    header h1 { margin: 0 0 6px; font-size: 28px; }
    header p { margin: 0; color: var(--muted); }

    .portfolio-body {
      background: var(--bg);
    }

    .site-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 16px 22px;
      max-width: 1240px;
      margin: 0 auto;
    }

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

    .brand span {
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: var(--accent);
      color: #ffffff;
      font-weight: bold;
    }

    .site-nav {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .theme-menu {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 38px;
      padding: 6px 10px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--panel);
      color: var(--muted);
      font-size: 13px;
    }

    .theme-menu select {
      width: auto;
      min-width: 92px;
      margin: 0;
      padding: 6px 8px;
      border-radius: 999px;
      background: var(--panel-2);
    }

    .customer-theme-menu {
      margin-left: 6px;
      vertical-align: top;
    }

    .site-tab {
      min-height: 38px;
      border-radius: 999px;
      padding: 8px 14px;
    }

    .site-link,
    .back-home-link {
      display: inline-flex;
      align-items: center;
      min-height: 38px;
      padding: 8px 12px;
      border: 1px solid var(--border);
      border-radius: 999px;
      color: var(--text);
      background: transparent;
      text-decoration: none;
    }

    .site-link:hover,
    .back-home-link:hover {
      border-color: var(--accent);
    }

    .back-home-link {
      margin-bottom: 12px;
      font-size: 13px;
    }

    .site-tab.active {
      background: var(--accent);
      color: #ffffff;
      border-color: var(--accent);
      font-weight: bold;
    }

    .portfolio-main {
      display: block;
      max-width: 1180px;
      padding: 28px 18px 52px;
    }

    .portfolio-tab {
      display: none;
    }

    .portfolio-tab.active {
      display: block;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
      gap: 18px;
      align-items: stretch;
    }

    .hero-copy,
    .profile-card,
    .labs-hero,
    .project-hero {
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 28px;
      box-shadow: var(--shadow-soft);
    }

    .hero-copy h1,
    .labs-hero h1,
    .project-hero h1 {
      margin: 6px 0 12px;
      font-size: clamp(38px, 6vw, 72px);
      line-height: 0.98;
      letter-spacing: 0;
    }

    .hero-lead,
    .project-hero p {
      color: var(--text);
      font-size: 18px;
      line-height: 1.5;
      max-width: 780px;
    }

    .labs-hero {
      max-width: 980px;
      position: relative;
      overflow: hidden;
    }

    .labs-meta span {
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--panel-2);
      color: var(--text);
      padding: 6px 10px;
      font-size: 12px;
      font-weight: bold;
    }

    .labs-meta {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 18px;
    }

    .hero-actions,
    .project-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 18px;
    }

    .button-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 42px;
      padding: 10px 14px;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--panel-2);
      color: var(--text);
      text-decoration: none;
    }

    .button-link:hover {
      border-color: var(--accent);
    }

    .button-link.primary {
      background: var(--accent);
      color: #ffffff;
      border-color: var(--accent);
      font-weight: bold;
    }

    .button-link,
    button {
      font-weight: 600;
    }

    .profile-list {
      display: grid;
      gap: 12px;
      margin: 16px 0 0;
    }

    .profile-list div {
      border-top: 1px solid var(--border);
      padding-top: 12px;
    }

    .profile-list dt {
      color: var(--muted);
      font-size: 13px;
    }

    .profile-list dd {
      margin: 4px 0 0;
      font-weight: bold;
    }

    .content-section {
      margin-top: 26px;
    }

    .highlight-grid,
    .project-card-grid,
    .experience-grid,
    .project-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

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

    .project-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 18px;
    }

    .experience-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      margin-top: 14px;
    }

    .project-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      min-height: 260px;
      padding: 18px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 10px;
      box-shadow: var(--shadow-subtle);
    }

    .project-card h3,
    .project-card p {
      margin: 0;
    }

    .project-card .button-link,
    .project-card button {
      margin-top: auto;
    }

    .experience-details {
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px;
    }

    .experience-details summary {
      cursor: pointer;
      font-size: 20px;
      font-weight: bold;
    }

    .workstation-section .section-title {
      align-items: flex-end;
    }

    .workstation-section .section-title .muted {
      max-width: 520px;
    }

    .workstation-shell {
      display: grid;
      grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 0.85fr);
      grid-template-areas:
        "visual info"
        "visual list";
      gap: 16px;
      align-items: stretch;
    }

    .workstation-loading {
      grid-column: 1 / -1;
      padding: 24px;
      border: 1px solid var(--border);
      border-radius: 18px;
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      color: var(--muted);
    }

    .workstation-visual,
    .workstation-info,
    .workstation-list {
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      border: 1px solid var(--border);
      border-radius: 18px;
      box-shadow: var(--shadow-soft);
    }

    .workstation-visual {
      grid-area: visual;
      min-height: 500px;
      padding: 26px;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .pc-frame {
      position: relative;
      width: min(100%, 460px);
      aspect-ratio: 0.78;
      border: 1px solid rgba(148, 163, 184, 0.45);
      border-radius: 26px;
      background:
        linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98)),
        radial-gradient(circle at 70% 20%, rgba(79, 183, 164, 0.14), transparent 34%);
      box-shadow:
        inset 0 0 0 10px rgba(15, 23, 42, 0.72),
        0 30px 70px rgba(0,0,0,0.35);
    }

    .pc-frame::before {
      content: "";
      position: absolute;
      inset: 9%;
      border: 1px solid rgba(51, 65, 85, 0.9);
      border-radius: 18px;
      background:
        linear-gradient(90deg, transparent 48%, rgba(51, 65, 85, 0.65) 49%, rgba(51, 65, 85, 0.65) 51%, transparent 52%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.45), rgba(2, 6, 23, 0.24));
    }

    .pc-frame::after {
      content: "";
      position: absolute;
      right: 8%;
      top: 18%;
      width: 5px;
      height: 64%;
      border-radius: 999px;
      background: linear-gradient(180deg, var(--accent), var(--accent-2));
      opacity: 0.9;
      box-shadow: 0 0 24px rgba(79, 183, 164, 0.24);
    }

    .pc-glow {
      position: absolute;
      left: 20%;
      top: 18%;
      width: 44%;
      height: 58%;
      border-radius: 20px;
      background:
        radial-gradient(circle at 50% 26%, rgba(79, 183, 164, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(31, 41, 55, 0.9), rgba(15, 23, 42, 0.68));
      border: 1px solid rgba(51, 65, 85, 0.8);
    }

    .pc-label {
      position: absolute;
      left: 12%;
      top: 5%;
      color: rgba(229, 231, 235, 0.48);
      font-size: 11px;
      font-weight: bold;
      letter-spacing: 0.16em;
    }

    .pc-hotspot {
      position: absolute;
      z-index: 2;
      display: grid;
      place-items: center;
      padding: 0;
      min-height: 0;
      border-radius: 8px;
      border: 1px solid rgba(148, 163, 184, 0.38);
      background: rgba(2, 6, 23, 0.68);
      color: var(--muted);
      transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
    }

    .pc-hotspot span {
      font-size: 10px;
      font-weight: bold;
      pointer-events: none;
      white-space: nowrap;
    }

    .pc-hotspot:hover,
    .pc-hotspot.active {
      transform: translateY(-1px);
      border-color: var(--accent);
      background: rgba(79, 183, 164, 0.14);
      color: var(--text);
      box-shadow: 0 0 0 2px rgba(31, 122, 104, 0.12), 0 0 22px rgba(31, 122, 104, 0.14);
    }

    .pc-hotspot-system {
      background: transparent;
      border-style: dashed;
      color: rgba(229, 231, 235, 0.7);
      z-index: 1;
    }

    .pc-hotspot:not(.pc-hotspot-system) {
      z-index: 3;
    }

    .workstation-info {
      grid-area: info;
      padding: 18px;
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .workstation-info h3 {
      margin: 4px 0 0;
      font-size: 24px;
    }

    .workstation-info p {
      margin: 0;
      line-height: 1.45;
    }

    .workstation-purpose {
      padding: 14px;
      border: 1px solid rgba(31, 122, 104, 0.20);
      border-radius: 14px;
      background: rgba(31, 122, 104, 0.08);
    }

    .workstation-detail-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      padding: 0;
      margin: 0;
      list-style: none;
    }

    .workstation-detail-list li {
      padding: 8px 10px;
      border: 1px solid rgba(148, 163, 184, 0.22);
      border-radius: 10px;
      background: rgba(2, 6, 23, 0.56);
      color: var(--text);
      font-size: 13px;
      line-height: 1.3;
    }

    .storage-meter {
      display: grid;
      gap: 8px;
      margin-top: 10px;
    }

    .storage-meter-top {
      display: grid;
      grid-template-columns: 1fr auto 1fr;
      gap: 10px;
      align-items: center;
      color: var(--muted);
      font-size: 12px;
    }

    .storage-meter-top strong {
      color: var(--text);
      font-size: 18px;
    }

    .storage-meter-top span:last-child {
      text-align: right;
    }

    .storage-track {
      height: 12px;
      overflow: hidden;
      border: 1px solid rgba(148, 163, 184, 0.26);
      border-radius: 999px;
      background: rgba(2, 6, 23, 0.82);
    }

    .storage-track span {
      display: block;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
    }

    .workstation-purpose span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 6px;
    }

    .workstation-purpose strong {
      display: block;
      line-height: 1.35;
    }

    .workstation-list {
      grid-area: list;
      padding: 14px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }

    .component-chip {
      text-align: left;
      border-radius: 12px;
      background: var(--panel);
      min-height: 70px;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .component-chip span {
      color: var(--accent);
      font-size: 12px;
      font-weight: bold;
    }

    .component-chip strong {
      font-size: 13px;
      line-height: 1.25;
    }

    .component-chip.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(31, 122, 104, 0.12);
    }

    .admin-login-card {
      max-width: 520px;
      margin: 0 auto;
    }

    .pt-sales-hero {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
      gap: 18px;
      align-items: stretch;
      margin-bottom: 18px;
    }

    .pt-sales-copy,
    .pt-founder-card {
      border: 1px solid var(--border);
      border-radius: 18px;
      background: var(--panel);
      padding: 18px;
      box-shadow: var(--shadow-soft);
    }

    .pt-sales-copy h2 {
      margin: 6px 0 12px;
      font-size: clamp(32px, 5vw, 58px);
      line-height: 1;
    }

    .pt-founder-card {
      display: grid;
      grid-template-columns: 130px 1fr;
      gap: 14px;
      align-items: center;
    }

    .pt-founder-card img {
      width: 100%;
      aspect-ratio: 4 / 5;
      object-fit: cover;
      object-position: center top;
      border-radius: 16px;
      border: 1px solid var(--border);
    }

    .pt-login-grid {
      align-items: stretch;
    }

    .customer-login-form {
      margin-bottom: 0;
    }

    .demo-login-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin: 8px 0 12px;
    }

    .form-error {
      min-height: 20px;
      color: #fca5a5;
      margin: 4px 0 10px;
      font-size: 13px;
    }

    .form-success {
      min-height: 20px;
      color: #86efac;
      margin: 4px 0 10px;
      font-size: 13px;
    }

    .booking-request-card {
      margin-top: 14px;
    }

    .timeline {
      display: grid;
      gap: 12px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 14px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--panel);
    }

    .timeline-item span {
      color: var(--accent);
      font-weight: bold;
    }

    .timeline-item h3,
    .timeline-item p {
      margin: 0 0 8px;
    }

    .project-hero {
      margin-bottom: 18px;
    }

    main {
      display: grid;
      grid-template-columns: 280px 1fr;
      gap: 18px;
      padding: 18px;
      max-width: 1450px;
      margin: 0 auto;
    }

    .customer-main {
      display: block;
      max-width: 1120px;
    }

    .start-main {
      display: block;
      max-width: 1000px;
      padding-top: 28px;
    }

    .start-panel {
      display: grid;
      gap: 22px;
    }

    .start-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
    }

    .start-card {
      display: flex;
      flex-direction: column;
      gap: 8px;
      min-height: 190px;
      padding: 18px;
      border: 1px solid var(--border);
      border-radius: 16px;
      background: var(--panel);
      color: var(--text);
      text-decoration: none;
    }

    .start-card:hover {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(31, 122, 104, 0.12);
    }

    .start-card span,
    .eyebrow {
      color: var(--accent);
      font-size: 13px;
      font-weight: bold;
      text-transform: uppercase;
      letter-spacing: 0;
      margin: 0;
    }

    .start-card strong {
      font-size: 24px;
    }

    .start-card p {
      margin: 0;
      color: var(--text);
      line-height: 1.35;
    }

    .start-card small {
      margin-top: auto;
      color: var(--muted);
    }

    .customer-main .panel {
      margin-bottom: 18px;
    }

    .customer-tabs {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 8px;
      margin-bottom: 18px;
      position: sticky;
      top: 0;
      z-index: 5;
      padding: 8px 0;
      background: color-mix(in srgb, var(--bg) 92%, transparent);
      backdrop-filter: blur(14px);
    }

    .panel {
      background: color-mix(in srgb, var(--panel) 92%, transparent);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 18px;
      box-shadow: var(--shadow-soft);
    }

    .client-list, .nav-tabs { display: flex; flex-direction: column; gap: 10px; }

    button, input, textarea, select {
      font: inherit;
      border-radius: 8px;
      border: 1px solid var(--border);
      padding: 10px 12px;
    }

    input, textarea, select {
      width: 100%;
      background: var(--panel);
      color: var(--text);
      margin: 6px 0 12px;
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
    }

    textarea { min-height: 90px; resize: vertical; }

    button {
      background: var(--panel-2);
      color: var(--text);
      cursor: pointer;
      border: 1px solid var(--border);
      min-height: 42px;
      transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
    }

    button:hover { border-color: var(--accent); transform: translateY(-1px); }

    .primary { background: var(--accent); color: #ffffff; font-weight: bold; border: none; }
    .success { background: var(--accent-2); color: #0f160c; font-weight: bold; border: none; }
    .warning { background: var(--warning); color: #1a1000; font-weight: bold; border: none; }
    .danger { background: #fff5f5; color: var(--danger); border-color: rgba(239, 68, 68, 0.35); }
    .danger.active { background: var(--danger); color: #ffffff; }

    .client-card, .tab-button { text-align: left; padding: 12px; background: var(--panel); }
    .client-card.active, .tab-button.active {
      border-color: var(--accent);
      box-shadow: 0 0 0 2px rgba(31, 122, 104, 0.12);
    }

    .top-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
    .grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
    .macro-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }

    .calendar-shell {
      display: flex;
      flex-direction: column;
      gap: 18px;
      margin-top: 14px;
    }

    .calendar-week {
      border: 1px solid var(--border);
      border-radius: 16px;
      overflow: hidden;
      background: var(--panel);
    }

    .calendar-week-title {
      padding: 10px 12px;
      background: var(--panel-2);
      color: var(--text);
      font-weight: bold;
      border-bottom: 1px solid var(--border);
    }

    .calendar-grid {
      display: grid;
      grid-template-columns: repeat(7, 1fr);
      min-height: 170px;
    }

    .calendar-day {
      min-height: 170px;
      text-align: left;
      background: var(--panel);
      border: 0;
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      gap: 6px;
      border-radius: 0;
      padding: 10px;
    }

    .calendar-day:last-child {
      border-right: 0;
    }

    .calendar-day span {
      color: var(--muted);
      font-size: 13px;
    }

    .calendar-day strong {
      line-height: 1.25;
    }

    .calendar-day small,
    .calendar-macros {
      color: var(--muted);
      font-size: 12px;
      line-height: 1.25;
    }

    .calendar-event {
      margin-top: 4px;
      padding: 5px 7px;
      border-radius: 8px;
      background: rgba(31, 122, 104, 0.08);
      border: 1px solid rgba(31, 122, 104, 0.18);
      color: var(--text);
      font-size: 12px;
      line-height: 1.25;
    }

    .calendar-day.active {
      background: rgba(31, 122, 104, 0.08);
      box-shadow: inset 0 0 0 2px var(--accent);
    }

    .metric {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
    }

    .metric span { display: block; color: var(--muted); font-size: 13px; }
    .metric strong { font-size: 24px; }

    .section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-top: 22px;
      flex-wrap: wrap;
    }

    .card {
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 14px;
      margin-bottom: 12px;
    }

    .widget-board {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .today-hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
      gap: 18px;
      align-items: stretch;
      margin-bottom: 12px;
    }

    .today-hero h2 {
      margin: 4px 0 10px;
      font-size: clamp(30px, 5vw, 54px);
      line-height: 1;
    }

    .today-coach-note {
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 8px;
      padding: 16px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel-2);
    }

    .today-coach-note span {
      color: var(--muted);
      font-size: 12px;
      text-transform: uppercase;
      font-weight: 700;
    }

    .today-metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      margin-bottom: 12px;
    }

    .today-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
      gap: 12px;
      align-items: start;
    }

    .today-card {
      margin-bottom: 0;
    }

    .main-action-card,
    .chat-today-card {
      grid-column: span 2;
    }

    .compact-title {
      margin: 0 0 12px;
      align-items: center;
    }

    .compact-title h3,
    .compact-title p {
      margin: 0;
    }

    .today-list-row {
      padding: 10px 0;
      border-top: 1px solid var(--border);
    }

    .today-list-row:first-of-type {
      border-top: 0;
      padding-top: 0;
    }

    .today-list-row span,
    .today-list-row p {
      display: block;
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.35;
    }

    .meal-plan-lines {
      display: grid;
      gap: 8px;
    }

    .meal-plan-lines p {
      margin: 0;
      padding: 8px 0;
      border-top: 1px solid var(--border);
      line-height: 1.4;
    }

    .meal-plan-lines p:first-child {
      border-top: 0;
      padding-top: 0;
    }

    .section-toggle-list {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .section-toggle {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 8px 10px;
      border: 1px solid var(--border);
      border-radius: 999px;
      background: var(--panel-2);
      color: var(--text);
      font-size: 13px;
      cursor: pointer;
    }

    .section-toggle input {
      width: auto;
      margin: 0;
    }

    .customer-identity-row {
      align-items: center;
    }

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

    .customer-avatar {
      width: 64px;
      height: 64px;
      border-radius: 999px;
      object-fit: cover;
      border: 1px solid var(--border);
      background: var(--panel-2);
      flex: 0 0 auto;
    }

    .customer-photo-upload {
      display: block;
      margin-top: 6px;
    }

    .customer-photo-upload input {
      display: block;
      max-width: 220px;
      margin-top: 5px;
      font-size: 12px;
    }

    .today-settings-card summary,
    .nutrition-settings-card summary {
      cursor: pointer;
      font-weight: 800;
      color: var(--text);
    }

    .today-settings-card[open] summary,
    .nutrition-settings-card[open] summary {
      margin-bottom: 8px;
    }

    .calendar-mode-card select {
      max-width: 260px;
    }

    .previous-exercise-note {
      display: grid;
      gap: 4px;
      margin: 10px 0;
      padding: 10px;
      border: 1px solid var(--border);
      border-radius: 10px;
      background: var(--panel-2);
    }

    .previous-exercise-note span {
      color: var(--muted);
      font-size: 13px;
    }

    .playful-widgets .widget-card {
      animation: widget-pop 420ms ease both;
    }

    .widget-card {
      margin-bottom: 0;
      box-shadow: var(--shadow-subtle);
    }

    @keyframes widget-pop {
      from { opacity: 0; transform: translateY(10px) scale(0.985); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .widget-title-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .widget-title-row h3 {
      margin-top: 0;
    }

    .widget-actions,
    .widget-picker,
    .widget-add-row {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }

    .widget-add-row {
      align-items: center;
      margin: 10px 0;
    }

    .widget-add-row select {
      flex: 1 1 190px;
      margin: 0;
    }

    .widget-actions button {
      padding: 7px 9px;
      font-size: 13px;
    }

    .client-list-item {
      border-top: 1px solid var(--border);
      padding-top: 12px;
      margin-top: 12px;
    }

    .client-list-item span {
      display: block;
      margin-top: 4px;
    }

    .meal-check-card {
      background: linear-gradient(135deg, rgba(31, 122, 104, 0.05), rgba(143, 163, 154, 0.08));
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 12px;
    }

    .meal-check-actions,
    .chat-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 10px;
    }

    .decline-reason {
      margin-top: 10px;
      padding: 10px;
      border-radius: 12px;
      border: 1px solid rgba(239, 68, 68, 0.24);
      background: rgba(239, 68, 68, 0.07);
    }

    .chat-thread {
      display: grid;
      gap: 8px;
      max-height: 260px;
      overflow: auto;
      padding-right: 2px;
    }

    #customerMessageText {
      min-height: 58px;
      margin-bottom: 8px;
    }

    .chat-message {
      padding: 10px;
      border-radius: 14px;
      background: var(--panel-2);
      border: 1px solid var(--border);
    }

    .chat-message.to-admin {
      background: rgba(31, 122, 104, 0.08);
      border-color: rgba(31, 122, 104, 0.20);
    }

    .chat-message.self-note {
      background: rgba(54, 199, 172, 0.10);
      border-color: rgba(54, 199, 172, 0.24);
    }

    .chat-message span {
      color: var(--muted);
      font-size: 12px;
    }

    .chat-message p {
      margin: 6px 0 0;
    }

    .appointment-row {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 12px;
      border-top: 1px solid var(--border);
      padding-top: 12px;
      margin-top: 12px;
    }

    .appointment-row p {
      margin: 6px 0 0;
    }

    .exercise-guide-card {
      display: grid;
      grid-template-columns: 180px 1fr;
      gap: 16px;
      align-items: stretch;
    }

    .exercise-media-wrap {
      min-height: 160px;
    }

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

    .exercise-library-card {
      display: grid;
      grid-template-columns: 170px 1fr;
      gap: 14px;
      align-items: stretch;
    }

    .exercise-image-placeholder {
      min-height: 140px;
      border: 1px dashed var(--border);
      border-radius: 12px;
      background: var(--panel-2);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--muted);
      text-align: center;
      padding: 12px;
    }

    .exercise-media {
      width: 100%;
      min-height: 160px;
      max-height: 260px;
      object-fit: cover;
      border: 1px solid var(--border);
      border-radius: 12px;
      background: var(--panel-2);
    }

    .exercise-admin-preview {
      max-width: 220px;
      margin-bottom: 12px;
    }

    .set-log-list {
      display: grid;
      gap: 8px;
      margin: 12px 0;
    }

    .set-log-row {
      display: grid;
      grid-template-columns: 64px 1fr 1fr 1fr;
      gap: 8px;
      align-items: center;
    }

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

    .comparison-metric small {
      display: block;
      color: var(--muted);
      margin-top: 4px;
    }

    .exercise-group-section {
      margin-top: 18px;
    }

    .set-log-row span {
      color: var(--muted);
      font-size: 13px;
    }

    .set-log-row input {
      margin: 0;
    }

    .appointment-actions {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .calendar-event.pending {
      background: rgba(245, 158, 11, 0.18);
      border-color: rgba(245, 158, 11, 0.45);
    }

    .calendar-event.rejected {
      background: rgba(239, 68, 68, 0.16);
      border-color: rgba(239, 68, 68, 0.42);
    }

    .exercise-row, .data-row {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .food-row {
      display: grid;
      grid-template-columns: 1.4fr repeat(6, 0.7fr);
      gap: 10px;
    }

    .slv-result {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 0;
      border-top: 1px solid var(--border);
    }

    .muted { color: var(--muted); }
    .small { font-size: 13px; }

    .video-box { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
      overflow: hidden;
      border-radius: 12px;
    }

    th, td {
      border-bottom: 1px solid var(--border);
      padding: 10px;
      text-align: left;
      font-size: 14px;
      vertical-align: top;
    }

    th { color: var(--muted); font-weight: normal; }

    .table-input {
      min-width: 90px;
      margin: 0;
      padding: 7px 8px;
      border-radius: 8px;
      font-size: 13px;
    }

    .table-comment {
      min-width: 220px;
    }

    .pill {
      display: inline-block;
      padding: 4px 8px;
      border-radius: 999px;
      background: var(--panel-2);
      border: 1px solid var(--border);
      font-size: 12px;
      color: var(--muted);
    }

    .diff-positive { color: #86efac; }
    .diff-negative { color: #fca5a5; }

    .chart-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 14px;
      margin-top: 14px;
    }

    .chart-card {
      height: 310px;
      position: relative;
      overflow: hidden;
    }

    .chart-card h3 { margin-top: 0; }

    .chart-card canvas {
      display: block;
      width: 100%;
      height: 240px !important;
      max-height: 240px;
    }

    @media (max-width: 950px) {
      header { position: static; }
      main { grid-template-columns: 1fr; padding: 12px; }
      .panel { padding: 14px; }
      .site-header { align-items: flex-start; flex-direction: column; }
      .site-nav { justify-content: flex-start; }
      .hero-grid, .highlight-grid, .project-grid, .project-card-grid, .experience-grid { grid-template-columns: 1fr; }
      .workstation-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
          "visual"
          "info"
          "list";
      }
      .workstation-visual { min-height: 390px; }
      .grid, .grid-2, .grid-3, .macro-grid, .chart-grid, .customer-tabs, .today-hero, .today-metrics, .today-grid, .exercise-guide-card, .exercise-library-grid, .exercise-library-card, .comparison-grid, .pt-sales-hero, .start-grid { grid-template-columns: 1fr; }
      .main-action-card,
      .chat-today-card { grid-column: auto; }
      .calendar-grid { grid-template-columns: repeat(2, 1fr); }
      .calendar-day { border-right: 0; border-bottom: 1px solid var(--border); }
      .exercise-row, .data-row, .food-row { grid-template-columns: 1fr 1fr; }
    }

    @media (max-width: 550px) {
      header { padding: 16px; }
      header h1 { font-size: 23px; }
      main { padding: 10px; }
      .client-list, .nav-tabs { gap: 8px; }
      .card, .metric { padding: 12px; }
      .calendar-grid { grid-template-columns: 1fr; }
      .calendar-day { min-height: auto; }
      .customer-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .customer-tabs .tab-button {
        text-align: center;
        min-height: 46px;
      }
      .appointment-row { flex-direction: column; }
      .appointment-actions { justify-content: flex-start; }
      .exercise-row, .data-row, .food-row { grid-template-columns: 1fr; }
      .exercise-media,
      .exercise-image-placeholder {
        min-height: 220px;
      }
      .exercise-admin-preview {
        max-width: none;
      }
      .set-log-row {
        grid-template-columns: 1fr 1fr;
      }
      .set-log-row span { grid-column: 1 / -1; }
      .pt-founder-card { grid-template-columns: 96px 1fr; }
      .portfolio-main { padding: 12px 10px 36px; }
      .hero-copy, .profile-card, .labs-hero, .project-hero { padding: 16px; }
      .hero-copy h1, .labs-hero h1, .project-hero h1 { font-size: 38px; }
      .hero-lead, .project-hero p { font-size: 16px; }
      .timeline-item { grid-template-columns: 1fr; }
      .site-tab { flex: 1 1 auto; }
      .site-link { flex: 1 1 auto; justify-content: center; }
      .workstation-list { grid-template-columns: 1fr; }
      .workstation-visual { min-height: 310px; padding: 14px; }
      .workstation-detail-list { grid-template-columns: 1fr; }
    }
