
  body { margin: 0; padding: 0; background: #fff; }
  nav.nav-root { display: none !important; }
  body > div > footer, body > div > nav { display: none !important; }
  footer { display: none !important; }
  [role="group"][aria-label*="accessibility"] { display: none !important; }
  .accessibility-controls, [class*="a11y"] { display: none !important; }

  /* Plus pattern background (same as homepage) */
  .plus-bg-browser {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 8v16M8 16h16' stroke='%23000' stroke-width='.5' fill='none'/%3E%3C/svg%3E");
  }

  .agent-live.svelte-137v58f {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background: #fff;
    color: #171717;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    position: relative;
    z-index: 1;
  }

  /* Header */
  .header.svelte-137v58f {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #1e1e1e;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    height: 48px;
  }
  .header-left.svelte-137v58f { display: flex; align-items: center; gap: 12px; }
  .header-right.svelte-137v58f { display: flex; align-items: center; gap: 4px; }

  .header-logo-link.svelte-137v58f { text-decoration: none; display: flex; align-items: center; }

  .model-selector.svelte-137v58f {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 8px;
    border: 1px solid #2e2e2e;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 150ms ease;
  }
  .model-selector.svelte-137v58f:hover { background: rgba(255,255,255,0.07); }
  .model-name.svelte-137v58f { font-size: 0.8125rem; font-weight: 500; color: #ccc; }

  .live-dot.svelte-137v58f {
    width: 7px; height: 7px; border-radius: 50%;
    background: #444; flex-shrink: 0; margin-right: 6px;
    transition: background 300ms ease;
  }
  .live-dot-on.svelte-137v58f { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }

  .hdr-icon-btn.svelte-137v58f {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 8px;
    color: #555; cursor: pointer; transition: all 150ms ease;
    font-family: inherit;
  }
  .hdr-icon-btn.svelte-137v58f:hover { background: rgba(255,255,255,0.06); color: #ccc; }

  .header-ascii.svelte-137v58f {
    font-family: monospace;
    font-size: 0.22rem;
    line-height: 1.15;
    font-weight: bold;
    letter-spacing: -0.05em;
    white-space: pre;
    color: rgba(255,255,255,0.45);
    margin: 0;
    transition: color 150ms ease;
  }
  .header-logo-link.svelte-137v58f:hover .header-ascii:where(.svelte-137v58f) { color: rgba(255,255,255,0.75); }


  .error-bar.svelte-137v58f {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 20px;
    background: #fff0f0;
    color: #dc2626;
    border-bottom: 1px solid #fecaca;
    font-size: 0.8125rem;
    flex-shrink: 0;
  }
  .error-dismiss.svelte-137v58f {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 2px 6px;
  }

  /* Start screen */
  .start-screen.svelte-137v58f {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    overflow-y: auto;
    background: #fff;
  }

  .start-card.svelte-137v58f { text-align: center; max-width: 600px; width: 100%; }

  .start-ascii.svelte-137v58f {
    font-family: monospace;
    font-size: clamp(0.3rem, 1.2vw, 0.6rem);
    line-height: 1.15;
    font-weight: bold;
    letter-spacing: -0.05em;
    white-space: pre;
    color: #171717;
    margin: 0 0 20px;
    display: inline-block;
  }

  .start-title.svelte-137v58f {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: #171717;
    margin: 0 0 16px;
  }

  .start-desc.svelte-137v58f {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #525252;
    max-width: 480px;
    margin: 0 auto 28px;
  }

  /* (unused) .loops-remaining { color: #171717; font-size: 0.8125rem; font-weight: 600; }*/

  /* (unused) .starter-prompts { margin-top: 8px; }*/
  /* (unused) .starter-label {
    font-size: 0.6875rem;
    color: #a3a3a3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 10px;
    font-weight: 600;
  }*/
  /* (unused) .starter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    max-width: 560px;
    margin: 0 auto;
  }*/
  /* (unused) .starter-btn {
    text-align: left;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 10px 14px;
    color: #525252;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1.4;
    font-family: inherit;
  }*/
  /* (unused) .starter-btn:hover { border-color: #171717; color: #171717; background: #fafafa; }*/

  .start-cta.svelte-137v58f {
    display: inline-block;
    padding: 14px 40px;
    background: #171717;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 150ms ease;
    font-family: inherit;
  }
  .start-cta.svelte-137v58f:hover { background: #333; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }

  /* (unused) .start-error { color: #dc2626; font-size: 0.875rem; margin-top: 12px; }*/

  /* Buttons */
  .btn.svelte-137v58f {
    font-size: 0.8125rem;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #e5e5e5;
    background: #fff;
    color: #171717;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: inherit;
  }
  .btn.svelte-137v58f:hover { background: #fafafa; border-color: #d4d4d4; }
  .btn.svelte-137v58f:disabled { opacity: 0.4; cursor: not-allowed; }
  .btn-sm.svelte-137v58f { font-size: 0.75rem; padding: 4px 10px; }
  /* (unused) .btn-lg { font-size: 0.9375rem; padding: 10px 28px; }*/
  .btn-primary.svelte-137v58f { background: #171717; border-color: #171717; color: #fff; }
  .btn-primary.svelte-137v58f:hover { background: #333; border-color: #333; }
  .btn-danger.svelte-137v58f { background: #fff0f0; border-color: #fecaca; color: #dc2626; }
  .btn-danger.svelte-137v58f:hover { background: #fee2e2; }
  /* (unused) .btn-outline { background: transparent; border: 1px solid #e5e5e5; color: #525252; }*/
  /* (unused) .btn-outline:hover { border-color: #d4d4d4; color: #171717; }*/

  .limit-reached-btns.svelte-137v58f { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

  /* Split Panel -- horizontal: browser left, chat right */
  .split-panel.svelte-137v58f { flex: 1; display: flex; flex-direction: row; overflow: hidden; min-height: 0; }
  .panel.svelte-137v58f { display: flex; flex-direction: column; overflow: hidden; }
  .right-panel.svelte-137v58f { flex: 1; min-width: 0; background: #fff; }
  .left-panel.svelte-137v58f { width: 360px; flex-shrink: 0; background: #141414; border-left: 1px solid #2a2a2a; display: flex; flex-direction: column; position: relative; }
  .left-panel.caution.svelte-137v58f::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-137v58f-caution-border-in 0.4s ease;
  }
  @keyframes svelte-137v58f-caution-border-in { from { opacity: 0; } to { opacity: 1; } }

  .chat-messages.svelte-137v58f {
    flex: 1;
    overflow-y: auto;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #141414;
  }
  .chat-empty.svelte-137v58f {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
  }
  .chat-greeting.svelte-137v58f {
    font-size: 1.0625rem; font-weight: 500; color: #444; margin: 0; text-align: center;
  }
  .chat-empty-label.svelte-137v58f { font-size: 0.9375rem; color: #555; margin: 0; }

  .tool-block.svelte-137v58f {
    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%;
  }
  .tool-block-label.svelte-137v58f { color: #444; }
  .tool-block-line.svelte-137v58f { color: #d4a843; }

  .chat-msg.svelte-137v58f { padding: 10px 12px; border-radius: 12px; max-width: 92%; font-size: 0.875rem; }
  .chat-msg.user.svelte-137v58f { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.07); align-self: flex-end; }
  .chat-msg.assistant.svelte-137v58f { background: transparent; border: none; align-self: flex-start; padding-left: 0; }
  .msg-header.svelte-137v58f { display: flex; justify-content: space-between; margin-bottom: 4px; align-items: center; }
  .msg-role.svelte-137v58f { font-size: 0.5rem; font-weight: 700; color: #444; text-transform: uppercase; letter-spacing: 0.06em; }
  .msg-time.svelte-137v58f { font-size: 0.5rem; color: #333; }
  .msg-body.svelte-137v58f { line-height: 1.55; color: #ccc; white-space: pre-wrap; word-break: break-word; }

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

  .tool-log.svelte-137v58f { border-top: 1px solid #222; background: #111; flex-shrink: 0; max-height: 100px; overflow-y: auto; }
  .tool-log-header.svelte-137v58f {
    display: flex; justify-content: space-between; align-items: center;
    padding: 4px 12px; font-size: 0.5625rem; color: #444; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.06em;
  }
  .tool-log-clear.svelte-137v58f { background: none; border: none; color: #444; cursor: pointer; font-size: 0.5625rem; font-family: inherit; }
  .tool-log-entries.svelte-137v58f { padding: 4px 0; }
  .tool-entry.svelte-137v58f { display: flex; gap: 8px; padding: 2px 12px; font-size: 0.6875rem; }
  .tool-name.svelte-137v58f { color: #d4a843; font-family: 'SF Mono', monospace; flex-shrink: 0; }
  .tool-params.svelte-137v58f { color: #444; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .input-bar.svelte-137v58f {
    background: #1a1a1a;
    border-top: 1px solid #2a2a2a;
    padding: 10px 12px 8px;
    flex-shrink: 0;
  }
  .input-bar-top.svelte-137v58f { margin-bottom: 8px; }
  .chat-input.svelte-137v58f {
    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;
  }
  .chat-input.svelte-137v58f::-moz-placeholder { color: #3a3a3a; }
  .chat-input.svelte-137v58f::placeholder { color: #3a3a3a; }
  .chat-input.svelte-137v58f:disabled { opacity: 0.35; }
  .input-bar-bottom.svelte-137v58f {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .act-pill.svelte-137v58f {
    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: #666;
    cursor: pointer; font-family: inherit; transition: all 150ms ease; white-space: nowrap;
  }
  .act-pill.svelte-137v58f:hover { background: rgba(255,255,255,0.07); color: #999; }
  .input-icons.svelte-137v58f { display: flex; align-items: center; gap: 3px; }
  .input-icon-btn.svelte-137v58f {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: none; border: none; border-radius: 7px; color: #444;
    cursor: pointer; transition: all 150ms ease; font-family: inherit;
  }
  .input-icon-btn.svelte-137v58f:hover { color: #888; background: rgba(255,255,255,0.05); }
  .send-btn.svelte-137v58f {
    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;
  }
  .send-btn.svelte-137v58f:hover:not(:disabled) { background: #e0b84e; transform: scale(1.06); }
  .send-btn.svelte-137v58f:disabled { opacity: 0.25; cursor: not-allowed; transform: none; }
  .send-spinner.svelte-137v58f {
    width: 13px; height: 13px; border: 2px solid rgba(26,16,0,0.3);
    border-top-color: #1a1000; border-radius: 50%;
    animation: svelte-137v58f-spin-s 0.7s linear infinite;
  }
  @keyframes svelte-137v58f-spin-s { to { transform: rotate(360deg); } }
  .input-disclaimer.svelte-137v58f {
    font-size: 0.5625rem; color: #333; margin: 6px 0 0; text-align: center; line-height: 1.4;
  }

  /* (unused) .limit-reached { padding: 16px; text-align: center; }*/
  /* (unused) .limit-reached p { color: #525252; font-size: 0.875rem; margin: 0 0 12px; }*/
  /* (unused) .limit-reached .btn { display: inline-block; margin: 4px; }*/


  /* Browser Panel */
  .browser-toolbar.svelte-137v58f {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 12px; background: #f5f5f5; border-bottom: 1px solid #e5e5e5;
    flex-shrink: 0; gap: 12px;
  }
  .url-bar.svelte-137v58f {
    flex: 1; display: flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 6px; padding: 4px 10px; min-width: 0;
  }
  .url-text.svelte-137v58f {
    font-size: 0.75rem; color: #525252; white-space: nowrap; overflow: hidden;
    text-overflow: ellipsis; font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
  }
  .toolbar-actions.svelte-137v58f { display: flex; gap: 6px; flex-shrink: 0; }
  .control-hint.svelte-137v58f { font-size: 0.6875rem; color: #a3a3a3; }

  .canvas-container.svelte-137v58f {
    flex: 1; position: relative; background: #f0f0f0;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
  }
  .browser-canvas.svelte-137v58f { max-width: 100%; max-height: 100%; -o-object-fit: contain; object-fit: contain; outline: none; cursor: pointer; }
  .browser-canvas.svelte-137v58f:focus { outline: 2px solid rgba(23,23,23,0.2); outline-offset: -2px; }

  .canvas-overlay.svelte-137v58f {
    position: absolute; inset: 0; background: rgba(0,0,0,0.75);
    display: flex; align-items: center; justify-content: center;
  }
  .overlay-content.svelte-137v58f { text-align: center; color: #e5e5e5; font-size: 0.875rem; }
  .overlay-content.svelte-137v58f p:where(.svelte-137v58f) { margin: 0 0 12px; }

  .spinner.svelte-137v58f { width: 28px; height: 28px; border: 2px solid #e5e5e5; border-top-color: #171717; border-radius: 50%; animation: svelte-137v58f-spin 0.8s linear infinite; margin: 0 auto 12px; }
  .spinner-lg.svelte-137v58f { width: 40px; height: 40px; border-width: 3px; }
  @keyframes svelte-137v58f-spin { to { transform: rotate(360deg); } }

  /* Email overlay */
  .email-overlay.svelte-137v58f {
    position: fixed; inset: 0; z-index: 100; display: flex; align-items: center;
    justify-content: center; background: rgba(0,0,0,0.5);
  }
  .email-card.svelte-137v58f {
    background: #fff; border: 1px solid #e5e5e5; border-radius: 12px;
    padding: 32px; max-width: 400px; width: 100%; margin: 0 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  }
  .email-card.svelte-137v58f h2:where(.svelte-137v58f) { color: #171717; font-size: 1.125rem; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.02em; }
  .email-card.svelte-137v58f p:where(.svelte-137v58f) { color: #525252; font-size: 0.8125rem; margin: 0 0 20px; line-height: 1.5; }
  .email-input.svelte-137v58f {
    width: 100%; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px;
    padding: 10px 14px; color: #171717; font-size: 0.875rem; outline: none;
    box-sizing: border-box; margin-bottom: 8px; font-family: inherit;
    transition: border-color 0.15s;
  }
  .email-input.svelte-137v58f:focus { border-color: #171717; }
  .email-input.svelte-137v58f::-moz-placeholder { color: #a3a3a3; }
  .email-input.svelte-137v58f::placeholder { color: #a3a3a3; }
  .email-submit.svelte-137v58f {
    width: 100%; background: #171717; color: #fff; border: none; border-radius: 8px;
    padding: 11px; font-size: 0.875rem; font-weight: 600; cursor: pointer; margin-bottom: 12px;
    font-family: inherit; transition: background 150ms ease;
  }
  .email-submit.svelte-137v58f:hover { background: #333; }
  .email-submit.svelte-137v58f:disabled { opacity: 0.5; cursor: not-allowed; }
  .email-fine.svelte-137v58f { color: #a3a3a3; font-size: 0.6875rem; text-align: center; }
  .email-error.svelte-137v58f { color: #dc2626; font-size: 0.75rem; margin-bottom: 8px; }

  .caution-banner.svelte-137v58f {
    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);
  }
  .caution-inner.svelte-137v58f { display: flex; align-items: center; gap: 7px; }
  .caution-text.svelte-137v58f { font-size: 0.6875rem; color: #b8912e; line-height: 1.4; }
  .caution-link.svelte-137v58f {
    background: none; border: none; color: #d4a843; font-size: 0.6875rem;
    font-family: inherit; cursor: pointer; padding: 0;
    text-decoration: underline; text-underline-offset: 2px;
  }
  .caution-link.svelte-137v58f:hover { color: #e0b84e; }
  .caution-x.svelte-137v58f {
    background: none; border: none; color: #555; cursor: pointer;
    padding: 4px; border-radius: 4px; display: flex; align-items: center;
    font-family: inherit; flex-shrink: 0; transition: color 150ms ease;
  }
  .caution-x.svelte-137v58f:hover { color: #aaa; }

  /* ---- Mobile ---- */
  @media (max-width: 768px) {
    .split-panel.svelte-137v58f { flex-direction: column; }
    .left-panel.svelte-137v58f { width: 100%; border-left: none; border-top: 1px solid #2a2a2a; height: 44vh; flex-shrink: 0; }
    .right-panel.svelte-137v58f { flex: 1; min-height: 160px; }
    .header.svelte-137v58f { height: 44px; padding: 0 12px; }
    .model-name.svelte-137v58f { font-size: 0.75rem; }
    .chat-input.svelte-137v58f { font-size: 0.875rem; }
  }

  @media (max-width: 480px) {
    .header-ascii.svelte-137v58f { font-size: 0.14rem; }
  }

  /* ---- Toolbar chrome dots ---- */
  .tb-chrome-dots.svelte-137v58f { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
  .cdot.svelte-137v58f { width: 8px; height: 8px; border-radius: 50%; }
  .cdot-r.svelte-137v58f { background: #ff5f57; }
  .cdot-y.svelte-137v58f { background: #febc2e; }
  .cdot-g.svelte-137v58f { background: #28c840; }

  /* ---- Interactive URL bar ---- */
  .url-bar-input-wrap.svelte-137v58f { cursor: text; }
  .url-bar-focused.svelte-137v58f { border-color: #171717 !important; }
  .url-text-input.svelte-137v58f {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.75rem;
    color: #171717;
    font-family: 'SF Mono', Monaco, Menlo, Consolas, monospace;
    min-width: 0;
  }
  .url-text-input.svelte-137v58f::-moz-placeholder { color: #a3a3a3; }
  .url-text-input.svelte-137v58f::placeholder { color: #a3a3a3; }
  .url-text-clickable.svelte-137v58f { cursor: text; flex: 1; min-width: 0; }
  .url-text-clickable.svelte-137v58f:hover { color: #171717; }

  /* Browser loading state */
  .browser-loading.svelte-137v58f {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    color: #525252;
    font-size: 0.875rem;
    gap: 12px;
  }
  .browser-loading.svelte-137v58f p:where(.svelte-137v58f) { margin: 0; color: #525252; }
