@font-face {
    font-family: Roobert;
    src: url("https://framerusercontent.com/assets/hE6j9bWMwD4ZMyU1wjYAm9TTVz8.woff2") format("woff2");
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Messina;
    src: url("https://framerusercontent.com/assets/gr22r609hgeJNr8WJuUrehPWqxA.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

:root {
    color-scheme: dark;
    --ink: #f7f3ff;
    --body: #d9d3e5;
    --muted: #aaa1bd;
    --purple: #813cff;
    --purple-bright: #a76bff;
    --line: #3a3151;
    --canvas: #131020;
    --warning: #f3c86a;
    --gutter: clamp(24px, 4vw, 58px);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--body); font: 15px/1.55 Messina, Arial, sans-serif; }
a { color: #c4a6ff; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--purple-bright); outline-offset: 4px; }
.skip-link { position: absolute; inset-block-start: -100px; inset-inline-start: 24px; z-index: 20; background: #fff; color: #1a1030; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { inset-block-start: 12px; }

.portal-shell { min-block-size: 100vh; background: radial-gradient(circle at 75% 0, #2b155c 0, transparent 28rem), var(--canvas); }
.portal-header { position: sticky; inset-block-start: 0; z-index: 5; background: #1a142aee; border-block-end: 1px solid #32274b; backdrop-filter: blur(18px); }
.header-inner { max-inline-size: 1440px; min-block-size: 75px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; }
.topbar-title { display: flex; align-items: center; gap: 14px; color: #aaa1bd; font-size: 14px; }
.brand { display: block; }
.brand img { display: block; inline-size: 94px; block-size: auto; filter: brightness(0) invert(1); }
.topbar-divider { block-size: 20px; inline-size: 1px; background: #514467; }

main { max-inline-size: 1440px; margin-inline: auto; padding: 48px var(--gutter) 24px; }
.page-intro { margin-block-end: 30px; }
h1, h2 { color: var(--ink); font-family: Roobert, Arial, sans-serif; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 4vw, 48px); margin: 0; }
h2 { font-size: 24px; margin: 24px 0 12px; }
p { margin: 0 0 12px; }
p:last-child { margin-block-end: 0; }
.portal-panel { background: linear-gradient(135deg, #251d38, #1e182d); border: 1px solid var(--line); border-radius: 14px; padding: 30px; margin: 22px 0; box-shadow: 0 20px 60px #08051155; }

form, input:not([type="hidden"]) { max-inline-size: 52rem; }
form > div, form + form, form + p { margin-block: 0 16px; }
form + form, form + p { margin-block-start: 16px; }
label { display: block; margin-block-end: 7px; color: var(--ink); font-size: 13px; font-weight: 600; }
input:not([type="hidden"]) { display: block; inline-size: 100%; min-block-size: 46px; padding: 10px 14px; border: 1px solid #5b4b70; border-radius: 8px; background: #191426; color: var(--ink); font: inherit; font-size: max(1rem, 1em); }
input:read-only { margin-block-end: 16px; }
button, input::file-selector-button { min-block-size: 36px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; background: var(--purple); color: #fff; font: 500 13px Roobert, Arial, sans-serif; cursor: pointer; }
button:hover, input::file-selector-button:hover { background: #7334e8; }
input::file-selector-button { margin-inline-end: 12px; }
.notice { border-inline-start: 4px solid var(--warning); padding: 14px 18px; background: #3a2e1b; border-radius: 0 8px 8px 0; }
.assets { padding: 0; list-style: none; margin: 16px 0 24px; }
.assets li { border-block-start: 1px solid var(--line); padding-block: 12px; overflow-wrap: anywhere; }
.hash { display: block; color: var(--muted); font-size: .8125rem; overflow-wrap: anywhere; }
pre { max-inline-size: 100%; overflow-x: auto; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: #191426; }

#installation-assistant, #assistant-latest { scroll-margin-block-start: 92px; }
#installation-assistant li code { overflow-wrap: anywhere; }
.assistant-conversation { max-inline-size: 52rem; display: grid; gap: 12px; margin-block: 16px; }
.assistant-conversation:empty { margin-block: 0; }
.assistant-turn { padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #191426; scroll-margin-block-start: 92px; }
.assistant-turn:nth-child(odd) { background: #2a203b; }
.assistant-turn p:first-child { color: var(--ink); margin-block-end: 5px; }
.assistant-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.assistant-compose p { color: var(--muted); font-size: .875rem; }
.assistant-compose button:disabled { opacity: .7; cursor: wait; }
.assistant-status { margin-inline-start: 10px; color: var(--ink); font-size: .875rem; }
.assistant-compose textarea {
    display: block;
    inline-size: 100%;
    margin-block-end: 12px;
    padding: 10px 14px;
    border: 1px solid #5b4b70;
    border-radius: 8px;
    background: #191426;
    color: var(--ink);
    font: inherit;
    font-size: max(1rem, 1em);
    resize: vertical;
}

.copy-field { margin: 0 0 16px; }
.copy-field figcaption { margin-block: 6px; color: var(--ink); font-size: 13px; font-weight: 600; }
.copy-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    inline-size: fit-content;
    max-inline-size: 100%;
    border: 1px solid #5b4b70;
    border-radius: 8px;
    background: #191426;
}
.copy-value code { align-self: center; padding: 10px 14px; color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.copy-action { position: relative; display: flex; border-inline-start: 1px solid #5b4b70; }
.copy-button {
    display: grid;
    place-items: center;
    min-inline-size: 44px;
    min-block-size: 44px;
    padding: 4px;
    border-radius: 0 7px 7px 0;
    background: transparent;
    color: #c4a6ff;
}
.copy-button:hover { background: #302344; color: #fff; }
.clipboard-icon {
    position: relative;
    display: block;
    inline-size: 13px;
    block-size: 15px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
}
.clipboard-icon::before {
    content: "";
    position: absolute;
    inset-block-start: -4px;
    inset-inline: 2px;
    block-size: 5px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    background: #191426;
}
.copy-button[data-copied] .clipboard-icon {
    inline-size: 8px;
    block-size: 14px;
    border-width: 0 2px 2px 0;
    border-radius: 0;
    transform: translateY(-2px) rotate(45deg);
}
.copy-button[data-copied] .clipboard-icon::before { content: none; }
.copy-status {
    position: absolute;
    inset-block-end: calc(100% + 6px);
    inset-inline-end: 0;
    z-index: 1;
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    padding: 5px 9px;
    border: 1px solid #5b4b70;
    border-radius: 6px;
    background: #302344;
    color: var(--ink);
    font-size: 13px;
}
.copy-status:not(:empty) { opacity: 1; }

@media (pointer: coarse) {
    button, input::file-selector-button, input:not([type="hidden"]) { min-block-size: 48px; }
    .copy-button { min-inline-size: 48px; min-block-size: 48px; }
}

@media (max-width: 540px) {
    :root { --gutter: 16px; }
    .header-inner { min-block-size: 67px; }
    .topbar-title { gap: 10px; }
    .brand img { inline-size: 78px; }
    main { padding-block: 26px 16px; }
    .page-intro { margin-block-end: 24px; }
    .portal-panel { padding: 18px; border-radius: 10px; }
}
