    :root {
      --ui-ink: #17222f;
      --ui-muted: #66717f;
      --ui-line: #dfe4e8;
      --ui-paper: #f2f3f1;
      --ui-white: #ffffff;
      --ui-accent: #ff6b3d;
      color-scheme: light;
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body { margin: 0; color: var(--ui-ink); background: var(--ui-paper); }
    button, input, select { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(255, 107, 61, .25); outline-offset: 2px; }

    .topbar {
      position: sticky;
      z-index: 30;
      top: 0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      min-height: 64px;
      padding: 10px clamp(16px, 3vw, 42px);
      border-bottom: 1px solid rgba(23, 34, 47, .1);
      background: rgba(255, 255, 255, .88);
      backdrop-filter: blur(16px);
    }
    .brand { display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 850; letter-spacing: -.01em; }
    .brand__mark { display: block; flex: 0 0 28px; width: 28px; height: 28px; overflow: hidden; border-radius: 8px; }
    .brand__mark img { display: block; width: 100%; height: 100%; }
    .top-actions { display: flex; align-items: center; gap: 8px; }
    .saved { color: var(--ui-muted); font-size: 12px; }

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      min-height: 40px;
      padding: 9px 14px;
      border: 1px solid var(--ui-line);
      border-radius: 11px;
      color: var(--ui-ink);
      background: white;
      font-size: 12px;
      font-weight: 800;
      transition: transform .15s, border-color .15s, background .15s;
    }
    .button:hover { transform: translateY(-1px); border-color: #bdc5cc; }
    .button--dark { border-color: var(--ui-ink); color: white; background: var(--ui-ink); }
    .button--quiet { background: transparent; }
    .button svg { width: 15px; height: 15px; }

    .shell {
      display: grid;
      grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
      min-height: calc(100vh - 64px);
    }

    .panel {
      position: relative;
      z-index: 10;
      padding: 28px 24px 50px;
      border-right: 1px solid var(--ui-line);
      background: white;
    }
    .panel__intro { margin-bottom: 28px; }
    /* The keyword clause is the h1 and wears the small accent label; the readable
       line below it is a paragraph. Same rule as the site heroes, local classes
       because this page is an app shell and has no .hero to hang them on. */
    .eyebrow { margin: 0 0 8px; color: var(--ui-accent); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; line-height: 1.5; }
    .panel__title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
    .panel__intro p:last-child { margin: 8px 0 0; color: var(--ui-muted); font-size: 13px; line-height: 1.5; }

    .group { padding: 22px 0; border-top: 1px solid var(--ui-line); }
    .group:first-of-type { padding-top: 0; border-top: 0; }
    .group__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 15px; font-size: 12px; font-weight: 900; }
    .group__hint { color: var(--ui-muted); font-size: 10px; font-weight: 700; }
    .field { display: grid; gap: 7px; margin-top: 13px; }
    .field:first-child { margin-top: 0; }
    .field label, .label { color: #475362; font-size: 11px; font-weight: 800; }
    .text-input, select {
      width: 100%;
      min-height: 42px;
      padding: 10px 11px;
      border: 1px solid var(--ui-line);
      border-radius: 10px;
      color: var(--ui-ink);
      background: #fbfcfc;
      transition: border-color .15s, box-shadow .15s;
    }
    .text-input:hover, select:hover { border-color: #c4cbd1; }
    .text-input:focus, select:focus { border-color: var(--ui-accent); background: white; }
    .inline-fields { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
    .input-action { position: relative; }
    .input-action .text-input { padding-right: 42px; }
    .input-action button { position: absolute; top: 5px; right: 5px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; color: var(--ui-muted); background: transparent; font-size: 15px; }
    .input-action button:hover { color: var(--ui-ink); background: #eef1f3; }

    .choice-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .choice {
      min-width: 0;
      padding: 8px 4px 7px;
      border: 1px solid var(--ui-line);
      border-radius: 10px;
      color: var(--ui-muted);
      background: white;
      font-size: 9px;
      font-weight: 800;
    }
    .choice i { display: grid; place-items: center; width: 28px; height: 28px; margin: 0 auto 5px; color: var(--ui-ink); font-size: 11px; font-style: normal; }
    .choice.active { border-color: var(--ui-ink); color: var(--ui-ink); background: #f4f5f4; box-shadow: 0 0 0 1px var(--ui-ink); }
    .mini-symbol--block { border-radius: 7px; color: white !important; background: var(--ui-ink); }
    .mini-symbol--orbit { border: 2px solid var(--ui-ink); border-radius: 50%; }
    .mini-symbol--frame { border: 2px solid var(--ui-ink); border-right-color: transparent; border-radius: 3px; }
    .mini-symbol--spark { font-size: 22px !important; }
    .mini-symbol--none { color: #a8afb6 !important; font-size: 17px !important; }

    .segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 11px; background: #eef1f3; }
    .segmented button { min-height: 34px; padding: 7px 5px; border: 0; border-radius: 8px; color: var(--ui-muted); background: transparent; font-size: 10px; font-weight: 850; }
    .segmented button.active { color: var(--ui-ink); background: white; box-shadow: 0 2px 7px rgba(23, 34, 47, .09); }

    .range-head { display: flex; justify-content: space-between; gap: 12px; }
    .range-value { color: var(--ui-muted); font-size: 10px; font-variant-numeric: tabular-nums; }
    input[type="range"] { width: 100%; accent-color: var(--ui-ink); }
    .colour-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .colour { position: relative; display: grid; gap: 6px; color: var(--ui-muted); font-size: 9px; font-weight: 800; text-align: center; }
    .colour input { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--ui-line); border-radius: 9px; background: white; }

    .switch-list { margin-top: 14px; }
    .switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 38px; border-top: 1px solid #eef0f2; color: #475362; font-size: 11px; font-weight: 800; }
    .switch-row:first-child { border-top: 0; }
    .switch { position: relative; flex: 0 0 auto; width: 38px; height: 22px; }
    .switch input { position: absolute; opacity: 0; }
    .switch span { position: absolute; inset: 0; border-radius: 99px; background: #cbd1d6; transition: .2s; }
    .switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: .2s; }
    .switch input:checked + span { background: var(--ui-ink); }
    .switch input:checked + span::after { transform: translateX(16px); }

    .workspace { min-width: 0; padding: clamp(20px, 4vw, 52px); }
    .workspace__head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
    .workspace__head h2 { margin: 0; font-size: clamp(21px, 3vw, 31px); letter-spacing: -.04em; }
    .workspace__head p { margin: 5px 0 0; color: var(--ui-muted); font-size: 12px; }
    .canvas-switch { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--ui-line); border-radius: 11px; background: white; }
    .canvas-switch button { width: 29px; height: 29px; padding: 0; border: 2px solid white; border-radius: 8px; box-shadow: 0 0 0 1px var(--ui-line); }
    .canvas-switch button.active { box-shadow: 0 0 0 2px var(--ui-ink); }
    .canvas-switch [data-canvas="light"] { background: #f5f3ee; }
    .canvas-switch [data-canvas="dark"] { background: #121b27; }
    .canvas-switch [data-canvas="transparent"] { background-color: white; background-image: linear-gradient(45deg, #e4e7e9 25%, transparent 25%), linear-gradient(-45deg, #e4e7e9 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e4e7e9 75%), linear-gradient(-45deg, transparent 75%, #e4e7e9 75%); background-position: 0 0, 0 6px, 6px -6px, -6px 0; background-size: 12px 12px; }

    .stage {
      position: relative;
      overflow: hidden;
      display: grid;
      place-items: center;
      min-height: clamp(420px, 59vh, 670px);
      padding: clamp(34px, 7vw, 90px);
      border: 1px solid var(--ui-line);
      border-radius: 24px;
      background: #f5f3ee;
      box-shadow: 0 22px 65px rgba(23, 34, 47, .08);
      transition: background .25s;
    }
    .stage[data-canvas="dark"] { background: #121b27; }
    .stage[data-canvas="transparent"] { background-color: white; background-image: linear-gradient(45deg, #edf0f1 25%, transparent 25%), linear-gradient(-45deg, #edf0f1 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #edf0f1 75%), linear-gradient(-45deg, transparent 75%, #edf0f1 75%); background-position: 0 0, 0 18px, 18px -18px, -18px 0; background-size: 36px 36px; }
    .stage::after { content: "PRIMARY LOGO"; position: absolute; right: 20px; bottom: 17px; color: rgba(23, 34, 47, .42); font-size: 9px; font-weight: 900; letter-spacing: .14em; }
    .stage[data-canvas="dark"]::after { color: rgba(255,255,255,.38); }
    .stage-logo { position: relative; z-index: 1; display: block; width: min(100%, 820px); max-height: 390px; }
    .stage[data-canvas="dark"] .logo-primary { fill: #ffffff !important; }
    .stage[data-canvas="dark"] .logo-tagline { fill: #ffffff !important; opacity: .62 !important; }
    .stage[data-canvas="dark"] .logo-primary-stroke { stroke: #ffffff !important; }
    .stage[data-canvas="dark"] .logo-block-text { fill: #121b27 !important; }

    .export-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid var(--ui-line); border-radius: 15px; background: rgba(255,255,255,.78); }
    .export-note { color: var(--ui-muted); font-size: 11px; }
    .export-actions { display: flex; flex-wrap: wrap; gap: 7px; }

    .contexts { margin-top: 48px; }
    .contexts__head { margin-bottom: 17px; }
    .contexts__head h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
    .contexts__head p { margin: 6px 0 0; color: var(--ui-muted); font-size: 12px; }
    .context-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr; gap: 14px; }
    .context { overflow: hidden; min-height: 230px; border: 1px solid var(--ui-line); border-radius: 17px; background: white; }
    .context__label { padding: 12px 15px; border-bottom: 1px solid var(--ui-line); color: var(--ui-muted); font-size: 9px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
    .browser { margin: 17px; border: 1px solid var(--ui-line); border-radius: 10px; }
    .browser__top { display: flex; gap: 4px; padding: 7px; border-bottom: 1px solid var(--ui-line); }
    .browser__top i { width: 5px; height: 5px; border-radius: 50%; background: #ccd1d5; }
    .browser__nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; }
    .browser__logo { width: 190px; max-width: 54%; }
    .browser__logo svg { display: block; width: 100%; }
    .browser__links { display: flex; gap: 7px; }
    .browser__links i { width: 29px; height: 4px; border-radius: 9px; background: #dce1e4; }
    .browser__hero { min-height: 80px; padding: 15px; background: #f4f5f4; }
    .browser__hero i { display: block; width: 45%; height: 8px; margin-bottom: 8px; border-radius: 9px; background: #cdd3d7; }
    .browser__hero i:last-child { width: 30%; height: 5px; opacity: .7; }
    .app-preview { display: grid; place-items: center; min-height: 188px; background: #f6f7f6; }
    .app-icon { display: grid; place-items: center; width: 108px; height: 108px; overflow: hidden; border-radius: 25px; background: white; box-shadow: 0 16px 35px rgba(23,34,47,.13); }
    .app-icon svg { width: 86px; height: 86px; }
    .mono-preview { display: grid; place-items: center; min-height: 188px; padding: 30px; background: #171c22; }
    .mono-preview svg { display: block; width: min(100%, 230px); }
    .mono-preview .logo-primary, .mono-preview .logo-accent, .mono-preview .logo-tagline { fill: white !important; }
    .mono-preview .logo-primary-stroke, .mono-preview .logo-accent-stroke { stroke: white !important; }
    .mono-preview .logo-block-text { fill: #171c22 !important; }

    .toast { position: fixed; right: 22px; bottom: 22px; z-index: 99; transform: translateY(18px); padding: 12px 15px; border-radius: 11px; color: white; background: var(--ui-ink); opacity: 0; pointer-events: none; transition: .2s; font-size: 12px; font-weight: 800; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
    .toast.show { transform: translateY(0); opacity: 1; }

    @media (max-width: 980px) {
      .shell { grid-template-columns: 280px minmax(0, 1fr); }
      .context-grid { grid-template-columns: 1fr 1fr; }
      .context:first-child { grid-column: 1 / -1; }
      .stage { padding: 35px; }
    }
    @media (max-width: 760px) {
      .topbar { position: relative; }
      .saved { display: none; }
      .shell { display: block; }
      .panel { border-right: 0; border-bottom: 1px solid var(--ui-line); }
      .workspace { padding: 25px 14px 45px; }
      .stage { min-height: 350px; border-radius: 18px; }
    }
    @media (max-width: 520px) {
      .topbar { padding: 9px 12px; }
      .top-actions .button--quiet { display: none; }
      .panel { padding: 24px 17px 36px; }
      .workspace__head { align-items: start; flex-direction: column; }
      .context-grid { grid-template-columns: 1fr; }
      .context:first-child { grid-column: auto; }
      .export-bar { align-items: stretch; }
      .export-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
      .export-actions .button:last-child { grid-column: 1 / -1; }
      .stage { min-height: 300px; padding: 24px 14px; }
    }
    @media (max-width: 430px) {
      .site-header__cta { display: none; }
    }
      /* logo-maker-site-header-offset */
    .logo-maker-app > .topbar { top: 64px; }
    @media (max-width: 760px) {
      .logo-maker-app > .topbar { top: auto; }
    }
  