  @font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../assets/cormorant-garamond-500.woff2") format("woff2");
  }
  @font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../assets/cormorant-garamond-600.woff2") format("woff2");
  }
  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html, body { height: 100%; }
  body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", "Helvetica Neue", sans-serif;
    background:
      radial-gradient(900px 420px at 8% -10%, rgba(255, 255, 255, 0.75), transparent 55%),
      var(--bg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  button, input { font: inherit; color: inherit; }
  button { cursor: pointer; }
  :focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
  svg.i { width: 16px; height: 16px; display: block; }
  .kicker {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--cyan);
  }
  h1, h2, h3, p { margin: 0; }

  .topbar {
    height: 58px;
    flex: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
    background: var(--topbar);
    color: var(--topbar-ink);
    position: relative;
    z-index: 30;
  }
  .top-start {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-self: start;
    min-width: 0;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: 0;
    color: inherit;
    padding: 0;
  }
  .mark {
    width: 100%;
    height: 40px;
    /*border-radius: 50%;*/
    object-fit: cover;
    display: block;
  }
  .brand-name {
    font-family: "Cormorant Garamond", Palatino, Georgia, serif;
    letter-spacing: -0.02em;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
  }
  .brand small {
    display: block;
    letter-spacing: 0.16em;
    font-size: 11px;
    text-transform: uppercase;
    color: #d2c2b4;
    font-family: "Segoe UI", sans-serif;
    font-weight: 500;
  }
  .nav { display: flex; align-items: center; justify-content: center; gap: 4px; }
  .nav-btn, .text-btn {
    background: none;
    border: 0;
    color: #f3ece6;
    letter-spacing: 0.14em;
    font-size: 11px;
    text-transform: uppercase;
    padding: 8px 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .nav-btn[aria-current="page"] {
    color: #e7d0b8;
    box-shadow: inset 0 -2px 0 #e0c2a4;
  }
  .top-actions { justify-self: end; display: flex; align-items: center; gap: 6px; }
  .icon-btn, .avatar-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(248, 244, 240, 0.22);
    background: transparent;
    color: #f8f4f0;
    display: grid;
    place-items: center;
  }
  .avatar-btn { font-size: 11px; letter-spacing: 0.06em; }
  .menu { position: relative; }
  .menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 190px;
    padding: 6px;
    background: var(--panel-2);
    color: var(--ink);
    border-radius: 12px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    z-index: 40;
  }
  .menu.align-end .menu-panel { left: auto; right: 0; }
  .menu.is-open .menu-panel { display: block; }
  .menu-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
    color: var(--ink);
  }
  .menu-item:hover, .menu-item[aria-current="true"] { background: var(--hover); }

  .stage {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-columns: 228px minmax(360px, 1.12fr) minmax(270px, 0.92fr) minmax(310px, 1.02fr);
    gap: 12px;
    padding: 12px 12px 0;
  }
  body.is-sandbox-closed .stage {
    grid-template-columns: 228px minmax(360px, 1.12fr) minmax(270px, 0.92fr);
  }
  body.is-sandbox-closed .col-sandbox { display: none; }
  body.is-video-focus .stage { grid-template-columns: 1fr; }
  body.is-video-focus .col-catalog,
  body.is-video-focus .col-chat,
  body.is-video-focus .col-sandbox,
  body.is-video-focus .reopen { display: none; }
  .card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }
  .card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 12px 8px;
  }
  .card-title, .sandbox-title {
    font-family: "Cormorant Garamond", Palatino, Georgia, serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--head);
  }
  .card-title {
    margin-top: 2px;
    letter-spacing: 0.03em;
  }
  .ghost {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: var(--well);
    display: grid;
    place-items: center;
    flex: none;
  }
  .cat-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; width: 100%;}
  .count {
    min-width: 28px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--well);
    color: var(--cyan-2);
    font-size: 11px;
    font-weight: 700;
  }
  .catalog { flex: 1; min-height: 0; overflow: auto; padding: 0 8px 8px; display: flex; flex-direction: column; gap: 4px; }
  .col-catalog .catalog {
    scrollbar-width: thin;
    scrollbar-color: var(--cyan) var(--well-2);
  }
  .col-catalog .catalog::-webkit-scrollbar { width: 8px; height: 8px; }
  .col-catalog .catalog::-webkit-scrollbar-track {
    background: var(--well-2);
    border-radius: 999px;
  }
  .col-catalog .catalog::-webkit-scrollbar-thumb {
    background: var(--cyan);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .col-catalog .catalog::-webkit-scrollbar-thumb:hover {
    background: var(--cyan-2);
    border: 2px solid transparent;
    background-clip: padding-box;
  }
  .product {
    display: grid;
    grid-template-columns: 42px 1fr 14px;
    gap: 8px;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 7px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
  }
  .product:hover { background: var(--card-hover); }
  .product.is-selected {
    border-color: var(--active-line);
    background: linear-gradient(180deg, var(--active-hi), var(--active-lo));
  }
  .thumb {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--thumb);
    display: grid;
    place-items: center;
  }
  .thumb svg { width: 30px; height: 30px; }
  .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
  .thumb img.contain { object-fit: contain; object-position: center; background: #fff; }
  .pname { font-size: 12.5px; font-weight: 600; line-height: 1.25; }
  .chev { width: 14px; height: 14px; color: var(--muted); opacity: 0; }
  .product.is-selected .chev { opacity: 1; }

  .video-frame {
    position: relative;
    flex: 1;
    min-height: 200px;
    margin: 0 12px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--video);
  }
  .avatar-slot, .avatar-slot svg, .avatar-slot img { width: 100%; height: 100%; display: block; }
  .avatar-slot { position: absolute; inset: 0; }
  .avatar-slot svg, .avatar-slot img { object-fit: cover; }
  .pip {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 150px;
    height: 108px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 8px 18px rgba(40, 30, 20, 0.18);
    background: #efe2d4;
  }
  .pip svg, .pip img { width: 100%; height: 100%; display: block; object-fit: cover; }
  .chips {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .chips p {
    margin: 0;
    background: rgba(20, 16, 14, 0.72);
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
  }
  .video-hud {
    position: absolute;
    z-index: 2;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.2), transparent);
  }
  .hud-cluster {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
  }
  .live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
  }
  .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.35); display: block; }
  .hud-controls { display: flex; align-items: center; gap: 8px; }
  .invite-wrap { position: relative; }
  .invite-panel {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(100% + 10px);
    z-index: 20;
    width: 240px;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel-2);
    color: var(--ink);
    box-shadow: 0 8px 18px rgba(70, 50, 40, 0.12);
  }
  .invite-wrap.is-open .invite-panel { display: grid; }
  .invite-panel p { margin: 0; font-size: 12px; line-height: 1.35; color: var(--ink); }
  .invite-panel input {
    height: 36px;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--well);
    color: var(--ink);
    padding: 0 10px;
    font-size: 14px;
  }
  .invite-send {
    height: 36px;
    border: 0;
    border-radius: 12px;
    background: var(--cyan);
    color: var(--send-ink);
    font-size: 14px;
    font-weight: 700;
  }
  .round-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(8px);
  }
  .round-btn[aria-pressed="true"] { background: rgba(0, 0, 0, 0.6); }
  button .off { display: none; }
  button[aria-pressed="true"] .on { display: none; }
  button[aria-pressed="true"] .off { display: block; }

  .steps { padding: 10px 12px 12px; }
  .cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .cta {
    display: grid;
    grid-template-columns: 18px 1fr 12px;
    gap: 8px;
    align-items: center;
    min-height: 46px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, var(--cta-hi), var(--cta-lo));
    text-align: left;
    font-size: 12px;
    color: var(--ink);
    box-shadow: var(--bevel, none);
  }
  .cta svg { width: 16px; height: 16px; color: var(--cyan); }
  .cta:hover { border-color: var(--active-line); background: var(--hover); }

  .thread { flex: 1; min-height: 0; overflow: auto; padding: 4px 0 8px; }
  .msg { display: flex; gap: 8px; margin: 8px 12px; align-items: flex-end; }
  .msg.user { flex-direction: row-reverse; }
  .face {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex: none;
    background: var(--thumb);
  }
  .face svg, .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .bubble {
    max-width: 86%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.45;
  }
  .bubble p { margin: 0; }
  .msg.user .bubble { background: linear-gradient(180deg, var(--user-hi), var(--user-lo)); color: var(--user-ink); border-radius: 14px 14px 4px 14px; }
  .msg.expert .bubble { background: var(--agent-bg); color: var(--agent-ink); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; }
  .time { display: block; margin-top: 6px; font-size: 10px; color: var(--muted); }
  .composer {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border-top: 1px solid var(--line);
  }
  .composer input {
    flex: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--composer);
    color: var(--ink);
  }
  .send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: var(--cyan);
    color: var(--send-ink);
    display: grid;
    place-items: center;
    flex: none;
  }

  .sandbox-body { flex: 1; min-height: 0; overflow: auto; padding: 0 12px 12px; }
  .sandbox-title {
    margin-top: 3px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 12px; }
  .metric {
    background: var(--well);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 4px;
    text-align: center;
  }
  .metric b { display: block; font-size: 12px; }
  .metric span {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .spec-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 12px; }
  .spec-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .spec-line span { color: var(--muted); }
  .spec-line b { font-weight: 600; text-align: right; }
  .preview {
    position: relative;
    margin-top: 6px;
    min-height: 168px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--well-2);
    border: 1px solid var(--line);
    display: grid;
    place-items: center;
  }
  .preview-stage { width: 86%; transition: transform 0.25s ease; }
  .preview-stage svg { width: 100%; height: auto; display: block; }
  .preview-stage img { width: 100%; height: 168px; object-fit: contain; display: block; }
  .zoom-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 8px;
    display: flex;
    justify-content: center;
    gap: 6px;
  }
  .zoom-bar button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--hud);
    color: var(--ctrl-ink);
    display: grid;
    place-items: center;
  }
  .block-label { margin: 12px 0 8px; }
  .care { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .care article { text-align: center; font-size: 10px; line-height: 1.35; color: var(--muted); }
  .care svg { width: 20px; height: 20px; color: var(--rose); margin-bottom: 4px; }
  .care b { display: block; font-size: 10.5px; color: var(--ink); font-weight: 650; }
  .gallery {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 8px;
    align-items: center;
  }
  .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .thumbs button, .arrow {
    border: 1px solid var(--line);
    background: var(--well);
    border-radius: 8px;
    padding: 0;
    display: grid;
    place-items: center;
  }
  .thumbs button { aspect-ratio: 1; overflow: hidden; }
  .thumbs button.is-selected { border-color: var(--rose); box-shadow: inset 0 0 0 1px var(--rose); }
  .thumbs svg, .thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; display: block; }
  .thumbs img.contain { object-fit: contain; object-position: center; background: #fff; }
  .arrow { width: 28px; height: 28px; border-radius: 50%; }

  .checkout {
    flex: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    height: 72px;
    margin: 12px;
    padding: 0 16px;
    overflow: hidden;
    border: 1px solid rgba(180, 160, 140, 0.35);
    border-radius: 12px;
    background: var(--panel);
    box-shadow:
      inset 0 1px 0 #fff,
      inset 0 -1px 4px rgba(70, 50, 40, 0.06),
      0 1px 0 rgba(70, 50, 40, 0.08),
      0 2px 0 rgba(70, 50, 40, 0.04);
    backdrop-filter: blur(18px);
  }
  .pay-note {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding-right: 12px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.35;
  }
  .pay-note svg { width: 16px; height: 16px; flex: none; }
  .pay-btn {
    min-width: 500px;
    height: 44px;
    border: 1px solid rgba(183, 110, 121, 0.55);
    border-radius: 6px;
    color: #4a302c;
    letter-spacing: 0.14em;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(45deg, #f4e7dc, transparent);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.45),
      0 1px 0 rgba(138, 90, 72, 0.35),
      0 3px 10px rgba(70, 50, 40, 0.16);
  }
  .pay-btn:hover { filter: brightness(1.03); }
  .pay-btn svg { width: 16px; height: 16px; }
  .pay-methods {
    margin: 0;
    padding: 0;
    list-style: none;
    justify-self: end;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    color: var(--muted);
  }
  .pay-methods li {
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .pay-methods svg { height: 20px; width: auto; display: block; }

  .reopen {
    display: none;
    position: fixed;
    z-index: 25;
    right: 0;
    top: 46%;
    border: 1px solid var(--line);
    border-right: 0;
    background: var(--well);
    color: var(--ink);
    border-radius: 12px 0 0 12px;
    padding: 12px 8px;
    writing-mode: vertical-rl;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 10px;
    font-weight: 700;
    box-shadow: var(--shadow);
  }
  body.is-sandbox-closed .reopen { display: block; }

  .rollover {
    position: fixed;
    z-index: 80;
    max-width: 280px;
    padding: 10px 12px;
    background: var(--cyan);
    color: var(--send-ink);
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
  }
  .rollover::after {
    content: "";
    position: absolute;
    left: var(--tip-arrow, 50%);
    transform: translateX(-50%);
    border: 7px solid transparent;
  }
  .rollover:not(.is-below)::after {
    top: 100%;
    border-top-color: var(--cyan);
  }
  .rollover.is-below::after {
    bottom: 100%;
    border-bottom-color: var(--cyan);
  }
  .rollover-title { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: inherit; }
  .rollover-body { margin: 0; color: inherit; }
  .toast {
    position: fixed;
    z-index: 70;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%) translateY(8px);
    background: var(--tip-bg);
    color: var(--tip-ink);
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
  .sheet { border: 0; border-radius: 16px; padding: 0; width: min(440px, calc(100% - 32px)); box-shadow: 0 24px 60px rgba(40, 30, 20, 0.28); }
  .sheet::backdrop { background: rgba(20, 16, 14, 0.45); }
  .sheet form { padding: 18px; }
  .sheet h3 { font-size: 20px; margin: 4px 0 8px; font-family: Palatino, Georgia, serif; font-weight: 500; }
  .sheet p { color: var(--muted); font-size: 14px; line-height: 1.45; }
  .slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
  .slot {
    border: 1px solid var(--line);
    background: var(--well);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
  }
  .slot:hover { border-color: var(--rose); }
  .sheet-actions { display: flex; justify-content: flex-end; margin-top: 16px; }
  .sheet-close {
    border: 0;
    background: var(--cyan);
    color: var(--send-ink);
    border-radius: 999px;
    padding: 8px 14px;
  }
  .noscript {
    margin: 8px 12px;
    padding: 8px 10px;
    background: var(--well);
    border-radius: 8px;
  }
  @media (max-width: 1400px) {
    .checkout {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      height: auto;
      min-height: 0;
      overflow: visible;
      padding: 6px 10px;
      gap: 6px 12px;
    }
    .pay-note { flex: 1 1 9rem; font-size: 10px; line-height: 1.25; gap: 5px; padding-right: 0; }
    .pay-note svg { width: 10px; height: 10px; }
    .pay-btn {
      flex: 0 1 auto;
      min-width: 0;
      height: 26px;
      padding: 0 11px;
      gap: 5px;
      font-size: 9px;
      letter-spacing: 0.1em;
      border-radius: 5px;
    }
    .pay-btn svg { width: 10px; height: 10px; }
    .pay-methods { flex: 1 1 8rem; flex-wrap: wrap; gap: 7px; }
    .pay-methods li { height: 16px; }
    .pay-methods svg { height: 12px; max-width: 2.4rem; }
  }
  @media (max-width: 1180px) {
    body { overflow: auto; height: auto; }
    .stage { min-width: 1180px; height: 780px; flex: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
  }
