/*
 * The public ZeuZ SDK setup page (/zeuz-sdk/, sdk_setup.html + zeuz-sdk-setup.js).
 * It mirrors ZeuZ Studio's "Your AI agent" page (test-studio/src/components/pages/AgentSetup/),
 * using Studio's theme tokens (test-studio/src/app-themes.css) and its Geist font. Everything is
 * scoped to body.sdk-page so the sign-in approval page keeps the login look.
 */
@font-face {
    font-family: "Geist Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
        U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Geist Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
        U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.sdk-page {
    --background: oklch(0.972 0.002 260);
    --page-surface: var(--background);
    --foreground: oklch(0.235 0.01 260);
    --card: oklch(0.995 0.001 260);
    --primary: #7f28ff;
    --primary-foreground: oklch(0.99 0.002 260);
    --primary-soft: color-mix(in oklch, var(--primary) 10%, transparent);
    --muted: oklch(0.945 0.004 260);
    --muted-foreground: oklch(0.52 0.012 260);
    --success: oklch(0.55 0.15 155);
    --border: oklch(0.895 0.005 260);
    --input: oklch(0.87 0.006 260);
    --ring: var(--primary);
    --radius: 0.375rem;
    --hover-muted: color-mix(in oklch, var(--muted), black 5%);
    --outline-border: var(--border);
    --outline-bg: var(--background);
    --input-bg: transparent;
    --logo-filter: none;
    --font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
        sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    .sdk-page {
        --background: #2d2d2d;
        --page-surface: #1b1b1b;
        --foreground: oklch(0.91 0.006 260);
        --card: #31302e;
        --primary: #b58cff;
        --primary-foreground: oklch(0.16 0.01 260);
        --muted: #33312f;
        --muted-foreground: oklch(0.71 0.012 260);
        --success: oklch(0.7 0.15 155);
        --border: oklch(1 0 0 / 9%);
        --input: #383735;
        --hover-muted: color-mix(in oklch, var(--muted) 50%, transparent);
        --outline-border: var(--input);
        --outline-bg: color-mix(in oklch, var(--input) 30%, transparent);
        --input-bg: color-mix(in oklch, var(--input) 30%, transparent);
        --logo-filter: invert(1) hue-rotate(180deg);
        color-scheme: dark;
    }
}

.sdk-page,
.sdk-page *,
.sdk-page *::before,
.sdk-page *::after {
    box-sizing: border-box;
}

body.sdk-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--page-surface);
    color: var(--foreground);
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.sdk-page [hidden] {
    display: none !important;
}

/* :where keeps this reset below component colours such as .sdk-btn. */
:where(.sdk-page) :where(button, input, textarea) {
    font: inherit;
    color: inherit;
}

.sdk-page button {
    cursor: pointer;
}

.sdk-page :focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.sdk-page a {
    color: var(--primary);
}

.sdk-shell {
    display: flex;
    flex-direction: column;
    gap: 18px;
    width: 100%;
    max-width: calc(64rem + 48px);
    margin: 0 auto;
    padding: 24px;
}

.sdk-page .logo img {
    display: block;
    width: auto;
    height: 28px;
}

/* ===== Picker ===== */
.sdk-agent,
.sdk-screen {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
}

.sdk-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sdk-page h2.sdk-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.sdk-page h2.sdk-title:focus:not(:focus-visible) {
    outline: none;
}

.sdk-subtitle {
    max-width: 62ch;
    margin: 4px 0 0;
    color: var(--muted-foreground);
}

.sdk-picker {
    display: grid;
    gap: 16px;
}

.sdk-agents {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}

.sdk-agent-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 24px 10px 18px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.4);
    background: var(--card);
    font-weight: 500;
    text-align: center;
    overflow-wrap: anywhere;
    transition: border-color 0.15s;
}

.sdk-agent-card:hover {
    border-color: var(--muted-foreground);
}

.sdk-agent-card[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary-soft);
    box-shadow: 0 0 0 1px var(--primary);
}

.sdk-page .sdk-agent-card:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring);
}

/* AgentLogo: a muted tile with the mark; single-colour marks invert in dark. */
.sdk-mark {
    display: inline-grid;
    flex: none;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 18px;
    line-height: 1;
}

.sdk-mark img {
    display: block;
    width: 20px;
    height: 20px;
}

.sdk-mark img.sdk-invert {
    filter: var(--logo-filter);
}

.sdk-agent-card .sdk-mark {
    width: 52px;
    height: 52px;
    border-radius: calc(var(--radius) * 1.4);
    font-size: 26px;
}

.sdk-agent-card .sdk-mark img {
    width: 30px;
    height: 30px;
}

.sdk-other {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.sdk-other label {
    font-weight: 500;
}

.sdk-other input {
    width: 100%;
    max-width: 280px;
    height: 32px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--input-bg);
}

.sdk-other input::placeholder {
    color: var(--muted-foreground);
}

.sdk-page .sdk-other input:focus-visible {
    outline: none;
    border-color: var(--primary);
}

.sdk-foot {
    display: flex;
    justify-content: flex-end;
    padding-top: 6px;
}

/* ===== "No coding agent?" one-line install, server-rendered in the pick screen ===== */
.sdk-terminal {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.4);
    background: var(--card);
}

.sdk-terminal > summary {
    padding: 10px 14px;
    border-radius: inherit;
    color: var(--muted-foreground);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.sdk-terminal > summary:hover {
    color: var(--foreground);
}

.sdk-terminal[open] > summary {
    border-bottom: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.4) calc(var(--radius) * 1.4) 0 0;
}

.sdk-terminal-body {
    padding: 12px 14px 14px;
    font-size: 14px;
    line-height: 1.5;
}

.sdk-terminal-body p {
    margin: 0 0 10px;
}

.sdk-terminal-body .sdk-terminal-label {
    margin: 12px 0 4px;
    font-weight: 500;
}

.sdk-terminal-body pre {
    margin: 0;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--foreground);
    font-family: var(--font-mono);
    font-size: 12.5px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.sdk-legal {
    max-width: 78ch;
    margin: 0 auto;
    color: color-mix(in oklch, var(--muted-foreground) 70%, transparent);
    font-size: 12px;
    line-height: 1.33;
    text-align: center;
}

/* ===== Buttons (Studio's Button: default, outline, ghost) ===== */
.sdk-btn {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid color-mix(in oklch, var(--border) 10%, transparent);
    border-radius: calc(var(--radius) * 1.8);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 500;
    white-space: nowrap;
}

.sdk-btn:hover {
    background: color-mix(in oklch, var(--primary), black 8%);
}

.sdk-btn-outline {
    border-color: var(--outline-border);
    background: var(--outline-bg);
    color: var(--foreground);
}

.sdk-btn-ghost {
    border-color: transparent;
    background: none;
    color: var(--foreground);
}

.sdk-btn-outline:hover,
.sdk-btn-ghost:hover {
    background: var(--hover-muted);
}

.sdk-btn svg {
    width: 16px;
    height: 16px;
}

/* ===== Walkthrough ===== */
.sdk-walkhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.sdk-walkhead h2.sdk-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sdk-walk {
    display: grid;
    align-items: start;
    gap: 16px;
}

.sdk-steps {
    display: flex;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
}

.sdk-steps li {
    flex: none;
}

.sdk-steps button {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    width: 100%;
    padding: 8px 9px;
    border: 0;
    border-radius: calc(var(--radius) * 0.8);
    background: none;
    color: var(--muted-foreground);
    text-align: left;
}

.sdk-steps .sdk-current {
    background: var(--muted);
}

.sdk-n {
    display: grid;
    flex: none;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.sdk-n svg {
    width: 12px;
    height: 12px;
}

.sdk-current .sdk-n {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--primary-foreground);
}

.sdk-done .sdk-n {
    border-color: transparent;
    background: var(--primary-soft);
    color: var(--primary);
}

.sdk-step-text {
    min-width: 0;
}

.sdk-step-text b {
    display: block;
    color: var(--foreground);
    font-weight: 500;
}

.sdk-step-text small {
    display: none;
    font-size: 12.5px;
}

.sdk-stagebox {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.sdk-stage {
    position: relative;
    height: 330px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: color-mix(in oklch, var(--muted) 60%, transparent);
    font-size: 12px;
    line-height: 1.33;
}

.sdk-prog {
    height: 3px;
    overflow: hidden;
    border-radius: 2px;
    background: var(--border);
}

.sdk-prog i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--primary);
}

.sdk-ctl {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.sdk-ctl-group {
    display: flex;
    gap: 4px;
}

/* Studio's md breakpoint: steps beside the stage, every title and the current detail shown. */
@media (min-width: 768px) {
    .sdk-walk {
        grid-template-columns: minmax(210px, 270px) minmax(0, 1fr);
    }

    .sdk-steps {
        flex-direction: column;
    }

    .sdk-steps .sdk-current small {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .sdk-steps button:not(.sdk-current) .sdk-step-text {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}

/* ===== Scenes. Base styles are each scene's final state; motion only without reduced motion. ===== */
.sdk-scene {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    --d: 3.4s;
}

.sdk-scene[data-ms="3200"] {
    --d: 3.2s;
}

.sdk-scene[data-ms="4000"] {
    --d: 4s;
}

.sdk-scene[data-ms="8000"] {
    --d: 8s;
}

.sdk-scene.sdk-on {
    display: flex;
}

.sdk-cursor {
    position: absolute;
    top: 55%;
    left: 55%;
    z-index: 5;
    width: 18px;
    height: 18px;
    pointer-events: none;
    --dx: -170px;
    --dy: 90px;
}

.sdk-cursor path {
    fill: var(--foreground);
    stroke: var(--card);
    stroke-width: 1.5;
}

.sdk-swap {
    display: grid;
}

.sdk-swap > * {
    grid-area: 1 / 1;
}

.sdk-swap > .sdk-bf {
    opacity: 0;
}

.sdk-tgt {
    position: relative;
}

@keyframes sdk-cur {
    0% { translate: var(--dx) var(--dy); }
    52% { translate: 0 0; scale: 1; }
    60% { scale: 0.8; }
    68%, 100% { translate: 0 0; scale: 1; }
}

@keyframes sdk-bf {
    0%, 60% { opacity: 1; }
    66%, 100% { opacity: 0; }
}

@keyframes sdk-af {
    0%, 60% { opacity: 0; }
    66%, 100% { opacity: 1; }
}

@keyframes sdk-pop {
    0%, 60% { opacity: 0; scale: 0.94; }
    70%, 100% { opacity: 1; scale: 1; }
}

@keyframes sdk-rise {
    from { opacity: 0; translate: 0 8px; }
}

@keyframes sdk-press {
    0%, 80% { scale: 1; }
    87% { scale: 0.93; }
    94%, 100% { scale: 1; }
}

@keyframes sdk-fill {
    from { width: 0; }
    to { width: 100%; }
}

@media (prefers-reduced-motion: no-preference) {
    .sdk-scene.sdk-on .sdk-cursor { animation: sdk-cur var(--d) both; }
    .sdk-scene.sdk-on .sdk-bf { animation: sdk-bf var(--d) both; }
    .sdk-scene.sdk-on .sdk-af { animation: sdk-af var(--d) both; }
    .sdk-scene.sdk-on .sdk-pop { animation: sdk-pop var(--d) both; }
    .sdk-scene.sdk-on .sdk-late { animation: sdk-press var(--d) both; }
    .sdk-scene.sdk-on .sdk-msg { animation: sdk-rise 0.45s both; animation-delay: calc(var(--i) * 0.95s); }
    .sdk-prog i.sdk-run { animation: sdk-fill var(--d) linear both; }
}

.sdk-panel {
    width: min(440px, 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--card);
}

.sdk-panel.sdk-narrow {
    width: min(340px, 100%);
}

.sdk-phead {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 500;
}

.sdk-phead .sdk-mark {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    font-size: 12px;
}

.sdk-phead .sdk-mark img {
    width: 12px;
    height: 12px;
}

.sdk-pbody {
    padding: 12px;
}

.sdk-dim,
.sdk-empty,
.sdk-ph {
    color: var(--muted-foreground);
}

.sdk-prompt {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

/* The copy scene's prompt box: padding drawn by the shadow so the clamp shows no fifth line. */
.sdk-prompt.sdk-boxed {
    margin: 9px 10px;
    border-radius: 1px;
    background: var(--muted);
    box-shadow: 0 0 0 9px var(--muted);
    color: var(--muted-foreground);
}

.sdk-prompt.sdk-pasted {
    color: var(--foreground);
}

.sdk-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.sdk-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 11px;
    border-radius: calc(var(--radius) * 0.8);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 500;
    white-space: nowrap;
}

.sdk-chip.sdk-okc {
    background: var(--primary-soft);
    color: var(--primary);
}

.sdk-dock {
    position: absolute;
    bottom: 16px;
    left: 50%;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.4);
    background: var(--card);
    translate: -50% 0;
}

.sdk-app {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--muted);
    color: var(--muted-foreground);
    font-size: 11px;
}

.sdk-app.sdk-hot {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.sdk-app .sdk-mark {
    background: transparent;
}

.sdk-deskwin {
    margin-bottom: 70px;
}

.sdk-aw {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    min-height: 210px;
}

.sdk-side {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px;
    border-right: 1px solid var(--border);
}

.sdk-newchat {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 0.8);
    font-weight: 500;
    text-align: center;
}

.sdk-newchat.sdk-active {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary);
}

.sdk-ghostline {
    height: 7px;
    border-radius: 4px;
    background: var(--muted);
}

.sdk-main {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 9px;
    min-width: 0;
    padding: 12px;
}

.sdk-main.sdk-tall {
    min-height: 200px;
}

.sdk-empty {
    margin: auto;
}

.sdk-frow {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 5px;
}

.sdk-frow.sdk-sel {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 500;
}

.sdk-frow em {
    margin-left: auto;
    color: var(--muted-foreground);
    font-size: 11px;
    font-style: normal;
    font-weight: 400;
}

.sdk-fold {
    flex: none;
    width: 14px;
    height: 11px;
    border-radius: 2px;
    background: color-mix(in oklch, var(--muted-foreground) 55%, transparent);
}

.sdk-comp {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 9px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.sdk-comp .sdk-swap {
    flex: 1;
    min-width: 0;
}

.sdk-ph {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sdk-page kbd {
    padding: 1px 5px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--card);
    color: var(--foreground);
    font-family: var(--font-mono);
    font-size: 10.5px;
}

.sdk-send {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
}

.sdk-send svg {
    width: 14px;
    height: 14px;
}

.sdk-tag {
    align-self: flex-start;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 9999px;
    color: var(--muted-foreground);
    font-size: 11px;
}

.sdk-chat {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px;
}

.sdk-msg {
    max-width: 88%;
    padding: 6px 9px;
    border-radius: var(--radius);
    background: var(--muted);
}

.sdk-msg.sdk-me {
    align-self: flex-end;
    background: var(--primary-soft);
}

.sdk-opts {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.sdk-opt {
    padding: 1px 8px;
    border: 1px solid var(--border);
    border-radius: 9999px;
    background: var(--card);
    font-size: 11px;
}

.sdk-opt.sdk-rec {
    border-color: var(--primary);
    color: var(--primary);
}

.sdk-msg.sdk-good {
    color: var(--success);
    font-weight: 500;
}

@media (min-width: 640px) {
    .sdk-aw {
        grid-template-columns: 120px minmax(0, 1fr);
    }
}

/* ===== Setup guide for AI agents: the prompt and guide, server-rendered, in one <details> ===== */
.sdk-guide-box {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.4);
    background: var(--card);
}

.sdk-guide-box > summary {
    padding: 12px 16px;
    border-radius: inherit;
    color: var(--muted-foreground);
    font-weight: 500;
    cursor: pointer;
}

.sdk-guide-box[open] > summary {
    border-bottom: 1px solid var(--border);
    border-radius: calc(var(--radius) * 1.4) calc(var(--radius) * 1.4) 0 0;
}

.sdk-guide-box .content {
    padding: 16px 20px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.sdk-guide-box .content + .content {
    border-top: 1px solid var(--border);
}

.sdk-guide-box .welcome-text {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.sdk-guide-box .welcome-sub {
    margin: 0 0 12px;
    color: var(--muted-foreground);
}

.sdk-guide-box label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.sdk-guide-box textarea,
.sdk-guide-box pre {
    width: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--muted);
    color: var(--foreground);
}

.sdk-guide-box textarea {
    min-height: 8rem;
    field-sizing: content;
    resize: vertical;
}

.sdk-guide-box pre,
.sdk-guide-box code {
    font-family: var(--font-mono);
    font-size: 12.5px;
}

.sdk-guide-box pre {
    white-space: pre-wrap;
}

.sdk-guide-box .sdk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.sdk-guide-box .sdk-button {
    height: 36px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: calc(var(--radius) * 1.8);
    background: var(--primary);
    color: var(--primary-foreground);
    font-weight: 500;
}

.sdk-guide-box .sdk-button:hover {
    background: color-mix(in oklch, var(--primary), black 8%);
}

.sdk-guide-box .sdk-status {
    color: var(--muted-foreground);
}

.sdk-guide-box .sdk-step {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.sdk-guide-box .sdk-step h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
}

.sdk-guide-box .sdk-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.sdk-guide-box .sdk-modes > div {
    padding: 10px 12px;
    border-radius: var(--radius);
    background: var(--muted);
}

.sdk-guide-box .sdk-modes dt {
    font-weight: 600;
}

.sdk-guide-box .sdk-modes dd {
    margin: 4px 0 0;
    font-size: 13px;
}

@media (max-width: 600px) {
    .sdk-shell {
        padding: 16px;
    }

    .sdk-guide-box .sdk-modes {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 420px) {
    .sdk-agents {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sdk-dock {
        gap: 6px;
        padding: 8px;
    }
}
