
  html { scroll-behavior: smooth; }
  body { background: #fff; }
  footer { display: none !important; }

  .skip-link.svelte-1uha8ag {
    position: absolute;
    top: -100%;
    left: 8px;
    z-index: 9999;
    background: #000;
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: top 0.1s;
  }
  .skip-link.svelte-1uha8ag:focus { top: 8px; }

  /* ---- Embedded Live Browser Demo ---- */
  .demo-section-inner.svelte-1uha8ag {
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .demo-wrapper.svelte-1uha8ag {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 64px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    background: #fff;
    margin: 0 16px 16px;
  }

  .demo-browser-panel.svelte-1uha8ag {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e5e5;
  }

  .demo-toolbar.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    background: #f5f5f5;
    border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0;
  }

  .demo-chrome-dots.svelte-1uha8ag { display: flex; gap: 5px; flex-shrink: 0; }
  .demo-cdot.svelte-1uha8ag {
    width: 12px; height: 12px; border-radius: 50%; border: none;
    cursor: pointer; padding: 0; flex-shrink: 0; position: relative;
    display: flex; align-items: center; justify-content: center;
    transition: filter 0.12s ease;
  }
  .demo-cdot.svelte-1uha8ag:hover { filter: brightness(0.85); }
  .demo-cdot-r.svelte-1uha8ag { background: #ff5f57; }
  .demo-cdot-y.svelte-1uha8ag { background: #febc2e; }
  .demo-cdot-g.svelte-1uha8ag { background: #28c840; }
  .cdot-icon.svelte-1uha8ag {
    width: 8px; height: 8px; display: block;
    visibility: hidden; opacity: 0; transform: scale(0);
    transition: opacity 0.1s ease, transform 0.1s ease;
    pointer-events: none; flex-shrink: 0;
  }
  .demo-chrome-dots.svelte-1uha8ag:hover .cdot-icon:where(.svelte-1uha8ag) {
    visibility: visible; opacity: 1; transform: scale(1);
  }
  .demo-chat-panel.demo-chat-hidden.svelte-1uha8ag { display: none; }

  .demo-url-bar.svelte-1uha8ag {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 4px 10px;
    min-width: 0;
    transition: border-color 0.15s;
  }
  .demo-url-focused.svelte-1uha8ag { border-color: #a3a3a3; }

  .demo-url-text.svelte-1uha8ag {
    font-size: 0.6875rem;
    color: #525252;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'SF Mono', Monaco, Menlo, monospace;
    cursor: text;
    flex: 1;
  }
  .demo-url-input.svelte-1uha8ag {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.6875rem;
    color: #171717;
    font-family: 'SF Mono', Monaco, Menlo, monospace;
    background: transparent;
    min-width: 0;
  }

  .demo-toolbar-right.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-size: 0.625rem;
    color: #a3a3a3;
  }

  .demo-conn-dot.svelte-1uha8ag {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d4d4d4;
    flex-shrink: 0;
  }
  .demo-conn-live.svelte-1uha8ag {
    background: #16a34a;
    box-shadow: 0 0 4px rgba(22,163,74,0.4);
    animation: svelte-1uha8ag-demo-conn-pulse 2s ease-in-out infinite;
  }
  @keyframes svelte-1uha8ag-demo-conn-pulse {
    0%, 100% { box-shadow: 0 0 4px rgba(22,163,74,0.4); }
    50% { box-shadow: 0 0 8px rgba(22,163,74,0.8); }
  }
  .demo-conn-label.svelte-1uha8ag { font-size: 0.625rem; color: #666; }

  /* -- Brand bar (logo + tabs + CTA row) -- */
  .demo-brand-bar.svelte-1uha8ag {
    display: flex; align-items: center; gap: 0;
    background: #161616; border-bottom: 1px solid #2a2a2a;
    padding: 0 10px 0 14px; flex-shrink: 0; min-height: 42px;
  }
  .demo-brand-art.svelte-1uha8ag {
    font-family: monospace;
    font-size: 0.32rem;
    line-height: 1.15;
    font-weight: bold;
    letter-spacing: -0.05em;
    white-space: pre;
    color: #d4a843;
    margin: 0 16px 0 0; padding: 0;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    flex-shrink: 0;
    align-self: center;
  }
  .demo-tabs-area.svelte-1uha8ag {
    display: flex; align-items: flex-end; gap: 2px;
    flex: 1; overflow-x: auto; overflow-y: hidden;
    padding-top: 6px; scrollbar-width: none; min-height: 36px;
  }
  .demo-tabs-area.svelte-1uha8ag::-webkit-scrollbar { display: none; }
  .demo-cta-btn.svelte-1uha8ag {
    flex-shrink: 0; margin-left: 10px;
    padding: 5px 14px; background: #d4a843; color: #1a1000;
    border: none; border-radius: 20px; font-size: 0.6875rem;
    font-weight: 700; text-decoration: none; white-space: nowrap;
    cursor: pointer; transition: background 120ms ease;
    font-family: inherit;
  }
  .demo-cta-btn.svelte-1uha8ag:hover { background: #ddb94e; }

  /* -- Tabs -- */
  .demo-tab.svelte-1uha8ag {
    display: flex; align-items: center; gap: 6px;
    background: #222; border: 1px solid #333; border-bottom: none;
    border-radius: 7px 7px 0 0; padding: 5px 10px 6px;
    min-width: 90px; max-width: 160px; font-size: 0.75rem;
    color: #888; cursor: pointer; white-space: nowrap;
    transition: background 120ms ease, color 120ms ease;
    line-height: 1;
  }
  .demo-tab.svelte-1uha8ag:hover { background: #2a2a2a; color: #bbb; border-color: #3a3a3a; }
  .demo-tab.demo-tab-active.svelte-1uha8ag {
    background: #d4a843; color: #1a1000;
    border-color: #d4a843; font-weight: 600;
  }
  .demo-tab.demo-tab-active.svelte-1uha8ag:hover { background: #ddb94e; }
  .demo-tab-title.svelte-1uha8ag { flex: 1; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
  .demo-tab-close.svelte-1uha8ag {
    flex-shrink: 0; width: 16px; height: 16px; line-height: 16px;
    text-align: center; border-radius: 4px; font-size: 0.6875rem;
    cursor: pointer; transition: background 120ms ease, color 120ms ease;
    opacity: 0.5;
  }
  .demo-tab-close.svelte-1uha8ag:hover { background: rgba(0,0,0,0.2); opacity: 1; }
  .demo-tab-active.svelte-1uha8ag .demo-tab-close:where(.svelte-1uha8ag) { color: #1a1000; }
  .demo-tab-active.svelte-1uha8ag .demo-tab-close:where(.svelte-1uha8ag):hover { background: rgba(0,0,0,0.15); opacity: 1; }
  .demo-tab-new.svelte-1uha8ag {
    flex-shrink: 0; width: 28px; height: 28px; background: transparent;
    border: 1px solid #333; border-radius: 6px; color: #555;
    cursor: pointer; font-size: 1.125rem; font-weight: 300; line-height: 26px;
    text-align: center; transition: background 120ms ease, color 120ms ease;
    margin-left: 2px;
  }
  .demo-tab-new.svelte-1uha8ag:hover { background: #252525; color: #d4a843; border-color: #444; }

  .demo-canvas-area.svelte-1uha8ag {
    flex: 1;
    position: relative;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }

  .demo-canvas.svelte-1uha8ag {
    max-width: 100%;
    max-height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    outline: none;
    cursor: pointer;
    display: block;
  }
  .demo-canvas-control.svelte-1uha8ag { cursor: crosshair; }

  .demo-canvas-overlay.svelte-1uha8ag {
    position: absolute;
    inset: 0;
    background: rgba(240,240,240,0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.875rem;
    color: #525252;
  }

  .demo-loading.svelte-1uha8ag {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #525252;
    font-size: 0.875rem;
    padding: 24px;
    text-align: center;
  }

  .demo-error-text.svelte-1uha8ag { color: #dc2626; font-size: 0.8125rem; }

  .demo-start-btn.svelte-1uha8ag {
    padding: 10px 28px;
    background: #171717;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease;
  }
  .demo-start-btn.svelte-1uha8ag:hover { background: #333; }

  .demo-spinner.svelte-1uha8ag {
    width: 28px;
    height: 28px;
    border: 2px solid #e5e5e5;
    border-top-color: #171717;
    border-radius: 50%;
    animation: svelte-1uha8ag-demo-spin 0.8s linear infinite;
  }
  @keyframes svelte-1uha8ag-demo-spin { to { transform: rotate(360deg); } }

  /* ---- Dark chat panel ---- */
  .demo-chat-panel.svelte-1uha8ag {
    width: 380px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #1d1d1d;
    border-left: 1px solid #2e2e2e;
    position: relative;
  }

  .demo-chat-panel.demo-chat-caution.svelte-1uha8ag::after {
    content: '';
    position: absolute;
    inset: 6px;
    border: 3px dashed rgba(234, 179, 8, 0.92);
    border-radius: 10px;
    pointer-events: none;
    z-index: 10;
    animation: svelte-1uha8ag-demo-caution-in 0.4s ease;
  }
  @keyframes svelte-1uha8ag-demo-caution-in { from { opacity: 0; } to { opacity: 1; } }

  .demo-caution-banner.svelte-1uha8ag {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; flex-shrink: 0; gap: 8px;
    background: rgba(212,168,67,0.1);
    border-bottom: 1px solid rgba(212,168,67,0.25);
  }
  .demo-caution-inner.svelte-1uha8ag { display: flex; align-items: center; gap: 7px; }
  .demo-caution-text.svelte-1uha8ag { font-size: 0.6875rem; color: #b8912e; line-height: 1.4; }

  .demo-chat-messages.svelte-1uha8ag {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #1d1d1d;
  }

  .demo-chat-empty.svelte-1uha8ag {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
  }
  .demo-chat-greeting.svelte-1uha8ag {
    font-size: 1.0625rem; font-weight: 500; color: #a0a0a0; margin: 0; text-align: center;
  }
  .demo-chat-empty-label.svelte-1uha8ag { font-size: 0.9375rem; color: #888; margin: 0; }

  /* (unused) .demo-tool-block {
    font-family: 'SF Mono', monospace; font-size: 0.6875rem;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; padding: 8px 12px;
    display: flex; flex-direction: column; gap: 2px;
    color: #555; max-width: 92%;
  }*/
  /* (unused) .demo-tool-block-label { color: #444; }*/
  /* (unused) .demo-tool-block-line { color: #d4a843; }*/

  .demo-chat-msg.svelte-1uha8ag { padding: 10px 12px; border-radius: 12px; max-width: 92%; font-size: 0.875rem; }
  .demo-chat-msg.demo-user.svelte-1uha8ag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.07); align-self: flex-end; }
  .demo-chat-msg.demo-assistant.svelte-1uha8ag { background: transparent; border: none; align-self: flex-start; padding-left: 0; }
  .demo-msg-header.svelte-1uha8ag { display: flex; justify-content: space-between; margin-bottom: 4px; align-items: center; }
  .demo-msg-role.svelte-1uha8ag { font-size: 0.5rem; font-weight: 700; color: #666; text-transform: uppercase; letter-spacing: 0.06em; }
  .demo-msg-time.svelte-1uha8ag { font-size: 0.5rem; color: #555; }
  .demo-msg-body.svelte-1uha8ag { line-height: 1.55; color: #ccc; white-space: pre-wrap; word-break: break-word; }
  .demo-msg-markdown.svelte-1uha8ag { white-space: normal; }
  .demo-msg-markdown h1, .demo-msg-markdown h2, .demo-msg-markdown h3 { color: #e0e0e0; font-weight: 600; margin: 10px 0 4px; font-size: 0.9rem; }
  .demo-msg-markdown h1 { font-size: 1rem; }
  .demo-msg-markdown strong { color: #e0e0e0; }
  .demo-msg-markdown ul, .demo-msg-markdown ol { padding-left: 18px; margin: 4px 0; }
  .demo-msg-markdown li { margin: 2px 0; }
  .demo-msg-markdown p { margin: 6px 0; }
  .demo-msg-markdown hr { border: none; border-top: 1px solid #333; margin: 8px 0; }
  .demo-msg-markdown table { border-collapse: collapse; width: 100%; font-size: 0.8rem; margin: 8px 0; }
  .demo-msg-markdown th { background: #1a1a1a; color: #aaa; text-align: left; padding: 4px 8px; border: 1px solid #333; }
  .demo-msg-markdown td { padding: 4px 8px; border: 1px solid #2a2a2a; }
  .demo-msg-markdown code { background: #1a1a1a; padding: 1px 4px; border-radius: 3px; font-family: monospace; font-size: 0.8em; color: #94d1a8; }
  .demo-msg-markdown em { color: #aaa; }

  .demo-status-text.svelte-1uha8ag {
    font-size: 0.8125rem;
    color: #d4a843;
    opacity: 0.9;
    font-style: italic;
  }

  .demo-step-list.svelte-1uha8ag {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .demo-step-done.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: 0.55;
    font-size: 0.775rem;
  }
  .demo-step-active.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.775rem;
  }
  .demo-step-num.svelte-1uha8ag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #3a3a3a;
    color: #aaa;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  /* (unused) .demo-step-active .demo-step-num {
    background: #dbff6e;
    color: #111;
  }*/
  .demo-step-label.svelte-1uha8ag {
    color: #ccc;
    line-height: 1.3;
  }
  .demo-step-active.svelte-1uha8ag .demo-step-label:where(.svelte-1uha8ag) {
    color: #f0f0f0;
  }
  .demo-step-spinner.svelte-1uha8ag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #555;
    border-top-color: #dbff6e;
    animation: svelte-1uha8ag-demo-spin 0.7s linear infinite;
    flex-shrink: 0;
  }
  @keyframes svelte-1uha8ag-demo-spin {
    to { transform: rotate(360deg); }
  }

  .demo-streaming-body.svelte-1uha8ag {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
    color: #ccc;
  }
  .demo-streaming-body.svelte-1uha8ag::after {
    content: '\25AE';
    opacity: 0.7;
    animation: svelte-1uha8ag-demo-cursor-blink 0.7s step-end infinite;
    margin-left: 1px;
    font-size: 0.75em;
  }
  @keyframes svelte-1uha8ag-demo-cursor-blink {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0; }
  }

  .demo-thinking.svelte-1uha8ag { display: flex; gap: 4px; padding: 4px 0; }
  .demo-think-dot.svelte-1uha8ag {
    width: 6px; height: 6px; border-radius: 50%; background: #555;
    animation: svelte-1uha8ag-demo-think-pulse 1.4s ease-in-out infinite;
  }
  .demo-think-dot.svelte-1uha8ag:nth-child(2) { animation-delay: 0.2s; }
  .demo-think-dot.svelte-1uha8ag:nth-child(3) { animation-delay: 0.4s; }
  @keyframes svelte-1uha8ag-demo-think-pulse {
    0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
    40% { opacity: 1; transform: scale(1); }
  }

  .demo-input-bar.svelte-1uha8ag {
    background: #222;
    border-top: 1px solid #2e2e2e;
    padding: 10px 12px 8px;
    flex-shrink: 0;
    position: relative;
  }
  .demo-input-bar-top.svelte-1uha8ag { margin-bottom: 8px; }
  .demo-chat-textarea.svelte-1uha8ag {
    width: 100%; background: transparent; border: none; outline: none;
    font-size: 0.9375rem; color: #e0e0e0; font-family: inherit;
    resize: none; line-height: 1.5; min-height: 44px; padding: 0;
    box-sizing: border-box;
  }
  .demo-chat-textarea.svelte-1uha8ag::-moz-placeholder { color: #3a3a3a; }
  .demo-chat-textarea.svelte-1uha8ag::placeholder { color: #3a3a3a; }
  .demo-chat-textarea.svelte-1uha8ag:disabled { opacity: 0.35; }
  .demo-input-bar-bottom.svelte-1uha8ag {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .demo-act-pill.svelte-1uha8ag {
    display: flex; align-items: center; gap: 5px;
    padding: 5px 10px; background: rgba(255,255,255,0.04);
    border: 1px solid #2e2e2e; border-radius: 20px;
    font-size: 0.6875rem; font-weight: 500; color: #888;
    cursor: pointer; font-family: inherit; transition: all 150ms ease; white-space: nowrap;
  }
  .demo-act-pill.svelte-1uha8ag:hover { background: rgba(255,255,255,0.07); color: #bbb; }
  .demo-act-pill-confirm.svelte-1uha8ag { border-color: #d4a843; color: #d4a843; background: rgba(212,168,67,0.08); }
  .demo-act-pill-confirm.svelte-1uha8ag:hover { background: rgba(212,168,67,0.14); }
  .demo-input-icons.svelte-1uha8ag { display: flex; align-items: center; gap: 3px; }
  .demo-input-icon-btn.svelte-1uha8ag {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 7px; color: #555;
    cursor: pointer; transition: all 150ms ease; font-family: inherit;
  }
  .demo-input-icon-btn.svelte-1uha8ag:hover { color: #999; background: rgba(255,255,255,0.06); }
  .demo-input-icon-btn.svelte-1uha8ag:disabled { opacity: 0.3; cursor: not-allowed; }
  .demo-icon-active.svelte-1uha8ag { color: #d4a843 !important; background: rgba(212,168,67,0.1) !important; }
  .demo-attach-bar.svelte-1uha8ag {
    display: flex; align-items: center; gap: 6px; padding: 8px 12px;
    background: rgba(255,255,255,0.03); border-top: 1px solid #1e1e1e;
    border-bottom: 1px solid #1e1e1e;
  }
  .demo-attach-input.svelte-1uha8ag {
    flex: 1; background: rgba(255,255,255,0.05); border: 1px solid #2e2e2e;
    border-radius: 6px; padding: 6px 10px; font-size: 0.75rem; color: #ccc;
    font-family: inherit; outline: none;
  }
  .demo-attach-input.svelte-1uha8ag:focus { border-color: #d4a843; }
  .demo-attach-submit.svelte-1uha8ag {
    padding: 6px 12px; background: #d4a843; border: none; border-radius: 6px;
    font-size: 0.75rem; font-weight: 600; color: #1a1000; cursor: pointer;
    font-family: inherit; transition: background 150ms;
  }
  .demo-attach-submit.svelte-1uha8ag:hover:not(:disabled) { background: #e0b84e; }
  .demo-attach-submit.svelte-1uha8ag:disabled { opacity: 0.4; cursor: not-allowed; }
  .demo-attach-cancel.svelte-1uha8ag {
    padding: 6px 10px; background: none; border: 1px solid #2e2e2e; border-radius: 6px;
    font-size: 0.75rem; color: #666; cursor: pointer; font-family: inherit; transition: all 150ms;
  }
  .demo-attach-cancel.svelte-1uha8ag:hover { border-color: #444; color: #999; }
  .demo-attach-err.svelte-1uha8ag { font-size: 0.7rem; color: #e57373; }
  .demo-send-btn.svelte-1uha8ag {
    width: 34px; height: 34px; border-radius: 50%; background: #d4a843;
    border: none; color: #1a1000; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: all 150ms ease; font-family: inherit;
  }
  .demo-send-btn.svelte-1uha8ag:hover:not(:disabled) { background: #e0b84e; transform: scale(1.06); }
  .demo-send-btn.svelte-1uha8ag:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }
  .demo-send-spinner.svelte-1uha8ag {
    width: 13px; height: 13px; border: 2px solid rgba(26,16,0,0.3);
    border-top-color: #1a1000; border-radius: 50%;
    animation: svelte-1uha8ag-demo-spin-s 0.7s linear infinite;
  }
  @keyframes svelte-1uha8ag-demo-spin-s { to { transform: rotate(360deg); } }
  .demo-input-disclaimer.svelte-1uha8ag {
    font-size: 0.5625rem; color: #555; margin: 6px 0 0; text-align: center; line-height: 1.4;
  }

  /* ---- Email gate modal ---- */
  .demo-gate-backdrop.svelte-1uha8ag {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(0,0,0,0.6);
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
  }
  .demo-gate-modal.svelte-1uha8ag {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 16px;
    padding: 40px 36px; max-width: 420px; width: 100%; margin: 0 16px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.2);
    text-align: center;
  }
  .demo-gate-eyebrow.svelte-1uha8ag {
    font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: #a3a3a3; margin: 0 0 12px;
  }
  .demo-gate-title.svelte-1uha8ag {
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em;
    color: #171717; margin: 0 0 8px; line-height: 1.15;
  }
  .demo-gate-sub.svelte-1uha8ag {
    font-size: 0.875rem; color: #525252; margin: 0 0 24px; line-height: 1.5;
  }
  .demo-gate-error.svelte-1uha8ag {
    font-size: 0.8125rem; color: #dc2626; margin: 0 0 10px;
  }
  .demo-gate-input.svelte-1uha8ag {
    width: 100%; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
    padding: 12px 14px; color: #171717; font-size: 0.9375rem; outline: none;
    box-sizing: border-box; margin-bottom: 10px; font-family: inherit;
    transition: border-color 0.15s; text-align: left;
  }
  .demo-gate-input.svelte-1uha8ag:focus { border-color: #171717; }
  .demo-gate-input.svelte-1uha8ag::-moz-placeholder { color: #a3a3a3; }
  .demo-gate-input.svelte-1uha8ag::placeholder { color: #a3a3a3; }
  /* (unused) .demo-gate-btn {
    width: 100%; background: #171717; color: #fff; border: none; border-radius: 8px;
    padding: 13px; font-size: 0.9375rem; font-weight: 600; cursor: pointer;
    font-family: inherit; transition: background 150ms ease; margin-bottom: 16px;
  }*/
  /* (unused) .demo-gate-btn:hover { background: #333; }*/
  /* (unused) .demo-gate-btn:disabled { opacity: 0.5; cursor: not-allowed; }*/
  .demo-gate-fine.svelte-1uha8ag { font-size: 0.8125rem; color: #a3a3a3; margin: 0; }
  .demo-gate-link.svelte-1uha8ag { color: #171717; text-decoration: underline; text-underline-offset: 2px; }

  /* ---- Pricing modal (limit reached) ---- */
  .demo-pricing-modal.svelte-1uha8ag {
    max-width: 560px;
    padding: 36px 32px 28px;
  }
  .demo-pricing-cards.svelte-1uha8ag {
    display: flex;
    gap: 10px;
    margin: 16px 0 12px;
  }
  .demo-pricing-card.svelte-1uha8ag {
    flex: 1;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
  }
  .demo-pricing-card-featured.svelte-1uha8ag {
    border-color: #171717;
    background: #fafafa;
  }
  .demo-pricing-badge.svelte-1uha8ag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #171717;
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .demo-pricing-name.svelte-1uha8ag {
    font-size: 0.875rem;
    font-weight: 700;
    color: #171717;
  }
  .demo-pricing-price.svelte-1uha8ag {
    font-size: 1.375rem;
    font-weight: 800;
    color: #171717;
    line-height: 1;
  }
  .demo-pricing-per.svelte-1uha8ag {
    font-size: 0.75rem;
    font-weight: 400;
    color: #737373;
  }
  .demo-pricing-limit.svelte-1uha8ag {
    font-size: 0.6875rem;
    color: #737373;
    line-height: 1.3;
  }
  .demo-pricing-btn.svelte-1uha8ag {
    margin-top: 6px;
    padding: 8px 10px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #171717;
    cursor: pointer;
    font-family: inherit;
    transition: background 150ms ease;
  }
  .demo-pricing-btn.svelte-1uha8ag:hover:not(:disabled) { background: #ebebeb; }
  .demo-pricing-btn.svelte-1uha8ag:disabled { opacity: 0.5; cursor: not-allowed; }
  .demo-pricing-btn-featured.svelte-1uha8ag {
    background: #171717;
    border-color: #171717;
    color: #fff;
  }
  .demo-pricing-btn-featured.svelte-1uha8ag:hover:not(:disabled) { background: #333; }
  .demo-gate-reset.svelte-1uha8ag {
    font-size: 0.75rem;
    color: #737373;
    margin: 0 0 6px;
    text-align: center;
  }
  @media (max-width: 520px) {
    .demo-pricing-cards.svelte-1uha8ag { flex-direction: column; }
    .demo-pricing-modal.svelte-1uha8ag { padding: 28px 18px 22px; }
  }

  @media (max-width: 900px) {
    .demo-wrapper.svelte-1uha8ag { flex-direction: column; }
    .demo-browser-panel.svelte-1uha8ag { border-right: none; border-bottom: 1px solid #e5e5e5; height: 260px; flex-shrink: 0; }
    .demo-chat-panel.svelte-1uha8ag { width: 100%; height: 260px; flex-shrink: 0; }
    /* When chat is hidden on mobile column layout, browser panel expands */
    .demo-wrapper.svelte-1uha8ag:has(.demo-chat-hidden:where(.svelte-1uha8ag)) .demo-browser-panel:where(.svelte-1uha8ag) { height: auto; flex: 1; }
  }

  @media (max-width: 768px) {
    .demo-section-inner.svelte-1uha8ag { padding: 0 4px; }
    .demo-brand-art.svelte-1uha8ag { display: none; }
    .demo-cta-btn.svelte-1uha8ag { display: none; }
  }

  @media (max-width: 600px) {
    .demo-wrapper.svelte-1uha8ag { border-radius: 12px; }
    .demo-browser-panel.svelte-1uha8ag { height: 200px; }
    .demo-chat-panel.svelte-1uha8ag { height: 220px; }
    .demo-chrome-dots.svelte-1uha8ag { display: none; }
    .demo-toolbar.svelte-1uha8ag { padding: 6px 8px; gap: 6px; }
  }

  @media (max-width: 480px) {
    .demo-browser-panel.svelte-1uha8ag { height: 180px; }
    .demo-chat-panel.svelte-1uha8ag { height: 200px; }
    .demo-input-bar.svelte-1uha8ag { padding: 8px 8px 6px; }
  }

  /* ---- Quick-action chips ---- */
  .demo-chips.svelte-1uha8ag {
    display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
    margin-top: 16px;
  }
  .demo-chip.svelte-1uha8ag {
    padding: 6px 14px; background: rgba(255,255,255,0.05);
    border: 1px solid #333; border-radius: 20px; font-size: 0.75rem;
    color: #888; cursor: pointer; font-family: inherit;
    transition: all 150ms ease;
  }
  .demo-chip.svelte-1uha8ag:hover { background: rgba(255,255,255,0.1); color: #bbb; border-color: #555; }

  /* ---- Skills dropdown ---- */
  .skills-menu.svelte-1uha8ag {
    position: absolute;
    bottom: 100%;
    left: 0; right: 0;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
  }
  .skills-item.svelte-1uha8ag {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 8px 12px;
    background: none; border: none; border-bottom: 1px solid #222;
    cursor: pointer; text-align: left; font-family: inherit;
    transition: background 100ms;
  }
  .skills-item.svelte-1uha8ag:last-child { border-bottom: none; }
  .skills-item.svelte-1uha8ag:hover, .skills-item-active.svelte-1uha8ag { background: #252525; }
  .skills-item-name.svelte-1uha8ag {
    font-size: 0.75rem; font-weight: 700; color: #d4a843;
    min-width: 80px; font-family: monospace;
  }
  .skills-item-prompt.svelte-1uha8ag {
    font-size: 0.75rem; color: #666; flex: 1; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap;
  }
  .skills-item-del.svelte-1uha8ag {
    background: none; border: none; color: #444; cursor: pointer;
    font-size: 0.75rem; padding: 2px 6px; border-radius: 3px;
    transition: color 100ms; font-family: inherit; flex-shrink: 0;
  }
  .skills-item-del.svelte-1uha8ag:hover { color: #e57373; }

  /* ---- Cron pills ---- */
  .cron-pills.svelte-1uha8ag {
    display: flex; flex-wrap: wrap; gap: 4px; padding-bottom: 6px;
  }
  .cron-pill.svelte-1uha8ag {
    display: flex; align-items: center; gap: 5px;
    background: rgba(212,168,67,0.1); border: 1px solid rgba(212,168,67,0.3);
    border-radius: 20px; padding: 3px 8px 3px 10px;
    font-size: 0.6875rem; color: #d4a843;
  }
  .cron-pill-name.svelte-1uha8ag { font-weight: 600; }
  .cron-pill-interval.svelte-1uha8ag { color: #a87d30; }
  .cron-pill-del.svelte-1uha8ag {
    background: none; border: none; color: #a87d30; cursor: pointer;
    font-size: 0.6875rem; padding: 0 2px; font-family: inherit;
    transition: color 100ms;
  }
  .cron-pill-del.svelte-1uha8ag:hover { color: #e57373; }

  /* ---- Cron panel ---- */
  .cron-panel.svelte-1uha8ag {
    background: #1e1e1e; border-top: 1px solid #2e2e2e;
    padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 8px;
    flex-shrink: 0;
  }
  .cron-panel-header.svelte-1uha8ag {
    display: flex; align-items: center; justify-content: space-between;
  }
  .cron-panel-title.svelte-1uha8ag { font-size: 0.75rem; font-weight: 600; color: #aaa; }
  .cron-panel-close.svelte-1uha8ag {
    background: none; border: none; color: #555; cursor: pointer;
    font-size: 0.8rem; padding: 2px 6px; font-family: inherit;
    border-radius: 4px; transition: color 100ms;
  }
  .cron-panel-close.svelte-1uha8ag:hover { color: #999; }
  .cron-input.svelte-1uha8ag, .cron-textarea.svelte-1uha8ag {
    background: rgba(255,255,255,0.05); border: 1px solid #2e2e2e;
    border-radius: 6px; padding: 7px 10px; font-size: 0.8125rem;
    color: #ccc; font-family: inherit; outline: none; resize: none;
  }
  .cron-input.svelte-1uha8ag:focus, .cron-textarea.svelte-1uha8ag:focus { border-color: #d4a843; }
  .cron-interval-row.svelte-1uha8ag {
    display: flex; align-items: center; gap: 8px;
  }
  .cron-interval-label.svelte-1uha8ag { font-size: 0.75rem; color: #666; }
  .cron-interval-input.svelte-1uha8ag {
    width: 60px; background: rgba(255,255,255,0.05); border: 1px solid #2e2e2e;
    border-radius: 6px; padding: 5px 8px; font-size: 0.8125rem; color: #ccc;
    font-family: inherit; outline: none; text-align: center;
  }
  .cron-interval-input.svelte-1uha8ag:focus { border-color: #d4a843; }
  .cron-add-btn.svelte-1uha8ag {
    margin-left: auto; padding: 5px 14px; background: #d4a843;
    border: none; border-radius: 6px; font-size: 0.75rem; font-weight: 700;
    color: #1a1000; cursor: pointer; font-family: inherit; transition: background 150ms;
  }
  .cron-add-btn.svelte-1uha8ag:hover:not(:disabled) { background: #e0b84e; }
  .cron-add-btn.svelte-1uha8ag:disabled { opacity: 0.4; cursor: not-allowed; }
  .cron-badge.svelte-1uha8ag {
    position: absolute; top: -3px; right: -3px;
    width: 13px; height: 13px; border-radius: 50%; background: #d4a843;
    color: #1a1000; font-size: 0.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
  }

  /* ---- Image attach ---- */
  .demo-image-bar.svelte-1uha8ag {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    align-items: center;
    flex-wrap: wrap;
  }
  .demo-image-upload-btn.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
  }
  .demo-image-upload-btn.svelte-1uha8ag:hover { background: #333; }
  .demo-image-capture-btn.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 6px;
    color: #ccc;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background 0.15s;
  }
  .demo-image-capture-btn.svelte-1uha8ag:hover:not(:disabled) { background: #333; }
  .demo-image-capture-btn.svelte-1uha8ag:disabled { opacity: 0.5; cursor: not-allowed; }
  .demo-attached-img-row.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0 4px;
  }
  .demo-attached-img-label.svelte-1uha8ag { font-size: 0.75rem; color: #888; }
  .demo-attached-img-thumb.svelte-1uha8ag {
    width: 40px;
    height: 40px;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 4px;
    border: 1px solid #3a3a3a;
  }
  .demo-attached-img-del.svelte-1uha8ag {
    background: none;
    border: none;
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    padding: 2px 6px;
    line-height: 1;
    font-family: inherit;
  }
  .demo-attached-img-del.svelte-1uha8ag:hover { color: #ccc; }
  .demo-msg-img-thumb.svelte-1uha8ag {
    max-width: 200px;
    max-height: 150px;
    border-radius: 6px;
    margin-top: 6px;
    display: block;
    border: 1px solid #3a3a3a;
  }

  /* ---- Auth status dot ---- */
  .demo-auth-status.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 5px;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
    margin-right: 8px;
    flex-shrink: 0;
  }
  .demo-auth-dot.svelte-1uha8ag {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c0392b;
    flex-shrink: 0;
    transition: background 0.3s;
  }
  .demo-auth-dot.demo-auth-dot-on.svelte-1uha8ag { background: #27ae60; box-shadow: 0 0 5px rgba(39,174,96,0.5); }
  .demo-auth-label.svelte-1uha8ag {
    font-size: 0.68rem;
    color: #aaa;
    white-space: nowrap;
  }
  .demo-auth-link.svelte-1uha8ag {
    color: #aaa;
    text-decoration: none;
  }
  .demo-auth-link.svelte-1uha8ag:hover { color: #d4a843; }


  /* ---- Saved logins panel ---- */
  .logins-panel.svelte-1uha8ag {
    background: #1c1c1c;
    border-top: 1px solid #2a2a2a;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .logins-panel-header.svelte-1uha8ag {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logins-panel-title.svelte-1uha8ag { font-size: 0.72rem; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: 0.04em; }
  .logins-panel-close.svelte-1uha8ag {
    background: none;
    border: none;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0 4px;
    font-family: inherit;
    line-height: 1;
  }
  .logins-panel-close.svelte-1uha8ag:hover { color: #999; }
  .logins-list.svelte-1uha8ag {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 140px;
    overflow-y: auto;
  }
  .login-item.svelte-1uha8ag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #252525;
    border: 1px solid #2e2e2e;
    border-radius: 6px;
    padding: 5px 8px;
    gap: 6px;
  }
  .login-item-info.svelte-1uha8ag {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .login-item-label.svelte-1uha8ag { font-size: 0.78rem; font-weight: 600; color: #d4a843; white-space: nowrap; }
  .login-item-type.svelte-1uha8ag { font-size: 0.68rem; color: #666; background: #1a1a1a; border-radius: 3px; padding: 1px 4px; }
  .login-item-user.svelte-1uha8ag { font-size: 0.72rem; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
  .login-item-actions.svelte-1uha8ag { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
  .login-use-btn.svelte-1uha8ag {
    font-size: 0.68rem;
    padding: 2px 7px;
    background: #2a2a2a;
    border: 1px solid #3a3a3a;
    border-radius: 4px;
    color: #ccc;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
  }
  .login-use-btn.svelte-1uha8ag:hover { background: #333; color: #d4a843; }
  .login-del-btn.svelte-1uha8ag {
    background: none;
    border: none;
    color: #555;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 1px 4px;
    font-family: inherit;
    line-height: 1;
  }
  .login-del-btn.svelte-1uha8ag:hover { color: #e57373; }
  .logins-form.svelte-1uha8ag {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  .logins-input.svelte-1uha8ag {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 0.75rem;
    padding: 5px 8px;
    font-family: inherit;
    outline: none;
    width: 100%;
    box-sizing: border-box;
  }
  .logins-input.svelte-1uha8ag:focus { border-color: #d4a843; }
  .logins-row.svelte-1uha8ag {
    display: flex;
    gap: 5px;
  }
  .logins-select.svelte-1uha8ag {
    background: #141414;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    color: #e0e0e0;
    font-size: 0.75rem;
    padding: 4px 6px;
    font-family: inherit;
    outline: none;
    flex-shrink: 0;
  }
  .logins-select.svelte-1uha8ag:focus { border-color: #d4a843; }
  .logins-error.svelte-1uha8ag { font-size: 0.72rem; color: #e57373; margin: 0; }
  .logins-add-btn.svelte-1uha8ag {
    background: #d4a843;
    color: #111;
    border: none;
    border-radius: 5px;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    align-self: flex-start;
    transition: background 0.15s;
  }
  .logins-add-btn.svelte-1uha8ag:hover:not(:disabled) { background: #c4983a; }
  .logins-add-btn.svelte-1uha8ag:disabled { opacity: 0.5; cursor: not-allowed; }
