
:root {
    color-scheme: light;
    --chevron-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 18 6-6-6-6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --external-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 7h10v10M7 17 17 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --color-accent: #164e4d;
    --color-accent-hover: #1a5c5a;
    --color-accent-active: #134241;
    --color-accent-bg: rgba(22, 78, 77, 0.06);
    --color-accent-bg-strong: rgba(22, 78, 77, 0.08);
    --color-accent-border: rgba(22, 78, 77, 0.15);
    --color-accent-ring: rgba(22, 78, 77, 0.1);
    --color-accent-underline: rgba(22, 78, 77, 0.4);
    --color-text: #222;
    --color-text-secondary: #444;
    --color-text-muted: #666;
    --color-text-on-accent: #fff;
    --color-bg: #fff;
    --color-bg-hover: #fafafa;
    --color-bg-active: #f2f2f2;
    --color-skeleton: #ececec;
    --color-skeleton-hi: #f6f6f6;
    --color-border: rgb(16 38 37 / 0.09);
    --color-border-strong: #ccc;
    --color-border-row: rgb(16 38 37 / 0.06);
    --color-border-input: #d4d4d4;
    --color-border-input-hover: #bbb;
    --color-outline-input: #85d0f4;
    --color-active: #219653;
    --color-active-bg: rgba(33, 150, 83, 0.08);
    --color-error: #b42318;
    --color-error-dot: #e5484d;
    --color-error-bg: rgba(229, 72, 77, 0.08);
    --color-error-border: rgba(229, 72, 77, 0.2);
    --color-warning: #e8a713;
    --color-warning-text: #be5a11;
    --color-warning-bg: rgba(232, 167, 19, 0.08);
    --color-info: #2f6fed;
    --color-info-bg: rgba(47, 111, 237, 0.08);
    --color-neutral: #a8adb4;
    --color-success: #424242;
    --color-success-bg: rgba(61, 61, 61, 0.08);
    --radius-xs: 3px;
    --radius-ti: 6px;
    --radius-sm: 9px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-strong: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --swap-floor: 0.45;
    --font-size-h1: clamp(1.74rem, 1.25rem + 2.2vw, 2.25rem);
    --font-mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --max-width: 1264px;
    --max-width-auth: 960px;
    --bar-h: 55px;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(34, 34, 34, 0.08);
    --ink: 16 38 37;
    --ring: 0 0 0 1px rgb(var(--ink) / 0.07);
    --shadow-1: var(--ring), 0 1px 2px rgb(var(--ink) / 0.06);
    --shadow-2: var(--ring), 0 1px 2px rgb(var(--ink) / 0.04),
                0 8px 20px -6px rgb(var(--ink) / 0.12);
    --shadow-3: var(--ring), 0 2px 4px rgb(var(--ink) / 0.04),
                0 12px 24px -6px rgb(var(--ink) / 0.10),
                0 32px 64px -16px rgb(var(--ink) / 0.16);
    --shadow-3-up: var(--ring), 0 -2px 4px rgb(var(--ink) / 0.04),
                   0 -12px 24px -6px rgb(var(--ink) / 0.10),
                   0 -32px 64px -16px rgb(var(--ink) / 0.16);
    --shadow-3-left: var(--ring), -2px 0 4px rgb(var(--ink) / 0.04),
                     -12px 0 24px -6px rgb(var(--ink) / 0.10),
                     -32px 0 64px -16px rgb(var(--ink) / 0.16);
    --lit: inset 0 1px 0 rgb(255 255 255 / 0.9);
    --lit-dark: inset 0 1px 0 rgb(255 255 255 / 0.18);
    --sheen-light: linear-gradient(180deg, rgb(255 255 255 / 0.1) 0%, rgb(255 255 255 / 0) 100%);
    --sheen-dark: linear-gradient(180deg, rgb(255 255 255 / 0) 0%, rgb(var(--ink) / 0.035) 100%);
    --btn-primary-edge: #0f3d3c;
    --btn-primary-shadow: var(--lit-dark), 0 1px 2px rgb(22 78 77 / 0.35);
    --btn-primary-shadow-hover: var(--lit-dark), 0 2px 6px rgb(22 78 77 / 0.35);
    --btn-primary-shadow-active: inset 0 1px 2px rgb(0 0 0 / 0.28);
    --btn-secondary-shadow: var(--lit), 0 1px 2px rgb(var(--ink) / 0.06);
    --btn-secondary-shadow-hover: var(--lit), 0 2px 4px rgb(var(--ink) / 0.08);
    --btn-secondary-shadow-active: inset 0 1px 2px rgb(var(--ink) / 0.12);
    --seafoam: 102 160 134;     --seafoam-ink: 33 84 68;
    --cornflower: 112 136 184;  --cornflower-ink: 48 68 122;
    --amber: 244 168 20;        --amber-ink: 138 72 0;
    --brick: 200 80 74;         --brick-ink: 160 36 30;
    --slate: 140 146 152;       --slate-ink: 88 94 100;
    --aqua: 70 140 175;         --aqua-ink: 22 86 118;
    --lavender: 146 126 164;    --lavender-ink: 88 66 110;
    --cobalt: 36 56 150;        --cobalt-ink: 30 46 128;
    --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; scrollbar-width: thin;}
html { -moz-text-size-adjust: none; -webkit-text-size-adjust: none; text-size-adjust: none; scrollbar-gutter: stable;
    accent-color: var(--color-accent); }
body {
    line-height: 1.5;
    min-height: 100svh;
    -webkit-font-smoothing: antialiased;
    font-family: 'Albert Sans', system-ui, sans-serif;
    font-size: 15px;
    color: var(--color-text);
    background: var(--color-bg);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
img, picture, video, canvas {
    border-radius: var(--radius-md);
}
p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}
h1, h2, h3, h4 {
    text-wrap: balance;
}
p { text-wrap: pretty; }
::selection {
    background: rgba(22, 78, 77, 0.15);
}
ul[role="list"],
ol[role="list"] {
    list-style: none;
    padding: 0;
}
a:not([class]) {
    text-decoration-skip-ink: auto;
    color: currentColor;
}
img[loading="lazy"] {
    content-visibility: auto;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .modal-backdrop,
    .sheet-backdrop {
        transition-duration: 0.15s !important;
    }
    .modal-backdrop .modal:not(.modal-work),
    #toast {
        transition-duration: 0.15s, 0.01ms !important;
    }
}
@media (prefers-contrast: more) {
    :root {
        --color-border: #b8b8b8;
        --color-border-strong: #888;
        --color-border-row: #d4d4d4;
        --color-border-input: #8a8a8a;
        --color-border-input-hover: #666;
    }
}
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}
html {
    scrollbar-gutter: stable;
    -webkit-tap-highlight-color: transparent;
}
@media (max-width: 640px) {
    html { scrollbar-gutter: auto; }
}
#main-content:not(.htmx-swapping) > *:not(:has(.docs-layout)):not(:where(#toast)),
#docs-content:not(.htmx-swapping) > * {
    animation: page-enter 150ms var(--ease-out);
}
#main-content.htmx-swapping > *:not(:where(#toast)),
#docs-content.htmx-swapping > * {
    opacity: var(--swap-floor);
    transition: opacity 80ms linear;
}
@keyframes page-enter {
    from { opacity: var(--swap-floor); }
}
@media (prefers-reduced-motion: reduce) {
    #main-content > *,
    #docs-content > * { animation: none; }
    #main-content.htmx-swapping > *:not(:where(#toast)),
    #docs-content.htmx-swapping > * { opacity: 1; }
}
h1, h2, h3, h4 { text-wrap: balance; color: var(--color-text);}
p { overflow-wrap: break-word; color: var(--color-text-secondary); }
h1 {
    font-size: var(--font-size-h1);
    font-weight: 700;
    letter-spacing: -0.03em;
}
h2 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h3 {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h4 {
    font-weight: 600;
}
@media (max-width: 640px) {
    h1, h2, h3, h4 { hyphens: auto; }
}
p, ul>li {
    font-size: 0.9375rem;
    line-height: 1.6;
}
label {
    color: var(--color-text-secondary);
    padding-left: 8.8px;
    font-size: 12px;
}
a, button, input, select, textarea, [tabindex] {
    outline: 3px solid transparent;
    transition: outline .12s;
}
:focus-visible {
    outline-color: var(--color-outline-input);
    transition: outline 0.12s;
}
input.input--error:focus-visible {
    outline-color: var(--color-error-border);
    transition: outline 0.12s;
}
header {
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
    text-decoration: none;
}
.side-nav {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 1.5rem 12px 3px;
}
.side-nav > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.side-nav h5 {
    font-weight: 500;
    color: var(--color-text-secondary);
    padding: 0 8px;
    margin: 0;
}
.side-nav a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 8px;
    border-radius: var(--radius-ti);
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
    .side-nav a:hover {
        background: var(--color-bg-hover);
        color: var(--color-text);
        cursor: pointer;
    }
}
.side-nav a.active {
    background: var(--color-bg-active);
    color: var(--color-text);
    font-weight: 500;
}
.side-nav a svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.7;
}
.side-nav a.active svg {
    opacity: 1;
}
.side-nav a.sub {
    font-size: 0.8125rem;
    margin-left: 1.6rem;
}
.nav-user {
    height: var(--bar-h);
    flex-shrink: 0;
    padding: 0 20px;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
}
.user {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.user-name {
    font-size: 0.8125rem;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.logout {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.12s, background-color 0.12s;
    border-radius: var(--radius-ti);
    padding: 7px;
    margin: -7px;
}
.logout svg {
    width: 15px;
    height: 15px;
    opacity: 0.7;
    transition: opacity 0.12s;
}
@media (hover: hover) and (pointer: fine) {
    .logout:hover {
        color: var(--color-text);
        background-color: var(--color-bg-hover);
        background-image: var(--sheen-dark);
        box-shadow: var(--lit);
    }
    .logout:hover svg { opacity: 1; }
}
#nav-tip {
    position: fixed;
    z-index: 300;
    display: none;
    padding: 4px 8px;
    background: var(--color-text);
    color: var(--color-bg);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.02em;
    border-radius: var(--radius-ti);
    white-space: nowrap;
    pointer-events: none;
    box-shadow: var(--shadow-2);
}
:where(body.app, body.site) .modal-backdrop.is-anchored {
    background: none;
    pointer-events: none;
}
:where(body.app, body.site) .modal-backdrop.is-anchored .modal {
    position: fixed;
    width: 300px;
    max-width: calc(100vw - 12px);
    padding: 1.25rem;
    pointer-events: auto;
    transform-origin: 0 100%;
    box-shadow: var(--shadow-2), var(--lit);
    overflow: hidden;
}
.docs-prose {
    max-width: 62ch;
    font-size: 1rem;
    color: var(--color-text-secondary);
}
.sheet-body.docs-prose {
    max-width: none;
}
.docs-prose :is(p, li) {
    font-size: 1rem;
    line-height: 1.65;
}
.docs-prose > * { margin-block: 0; }
.docs-prose > * + * { margin-top: 1.125rem; }
.docs-prose > * + figure { margin-top: 1.75rem; }
.docs-prose > figure + * { margin-top: 1.75rem; }
.docs-prose > * + hr { margin-top: 2.5rem; }
.docs-prose > hr + * { margin-top: 2.5rem; }
.docs-prose > p + :is(ul, ol) { margin-top: 0.75rem; }
.docs-prose > * + a { margin-top: 0.5rem; }
.docs-prose > a + a { margin-top: 0.375rem; }
.docs-prose > h2 + * { margin-top: 1rem; }
.docs-prose > h3 + * { margin-top: 0.8125rem; }
.docs-prose > :is(h4, h5, h6) + * { margin-top: 0.625rem; }
.docs-prose > * + h2 { margin-top: 3.25rem; }
.docs-prose > * + h3 { margin-top: 2.5rem; }
.docs-prose > * + :is(h4, h5, h6) { margin-top: 2rem; }
.docs-prose > h2 + h3 { margin-top: 1.25rem; }
.docs-prose > h3 + :is(h4, h5, h6) { margin-top: 1rem; }
.docs-prose :is(h2, h3, h4, h5, h6) {
    font-weight: 600;
    line-height: 1.35;
    color: var(--color-text);
    scroll-margin-top: calc(var(--mkt-header-h, var(--bar-h)) + 1.5rem);
}
.docs-prose h2 { font-size: 1.5rem; }
.docs-prose h3 { font-size: 1.1875rem; }
.docs-prose :is(h4, h5, h6) { font-size: 1rem; }
.docs-prose :is(ul, ol) {
    padding-left: 1.25rem;
}
.docs-prose li { margin: 0; }              
.docs-prose li + li { margin-top: 0.5rem; }
.docs-prose li > :is(ul, ol) { margin-top: 0.5rem; }
.docs-prose strong {
    color: var(--color-text);
    font-weight: 600;
}
.docs-prose hr {
    border: none;
    border-top: 1px solid var(--color-border);
}
.docs-prose a {
    color: var(--color-accent);
}
.docs-prose :is(p, li) a:not(:where(.primary, .secondary)) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--color-accent-underline);
    text-underline-offset: 0.15em;
}
.docs-prose :is(p, li) a:not(:where(.primary, .secondary)):hover {
    text-decoration-color: var(--color-accent);
}
.docs-prose > a {
    display: block;
    width: fit-content;
    font-weight: 500;
    text-decoration: none;
}
.docs-prose > a::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: var(--chevron-mask) no-repeat center / contain;
    mask: var(--chevron-mask) no-repeat center / contain;
}
.docs-prose > a:hover {
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
.docs-prose code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--color-bg-hover);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xs);
    padding: 0.1em 0.35em;
}
.burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    border-radius: var(--radius-ti);
    color: var(--color-text);
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .burger:hover {
        background-color: var(--color-bg-hover);
        background-image: var(--sheen-dark);
        box-shadow: var(--lit);
    }
}
.burger-box {
    position: relative;
    width: 20px;
    height: 14px;
}
.burger-line {
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 1.5px;
    margin-top: -0.75px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.25s var(--ease-out);
    will-change: transform;
}
.burger-line:nth-child(1) { transform: translateY(-3px) rotate(0deg); }
.burger-line:nth-child(2) { transform: translateY(3px) rotate(0deg); }
.burger.is-open .burger-line:nth-child(1) { transform: translateY(0) rotate(45deg); }
.burger.is-open .burger-line:nth-child(2) { transform: translateY(0) rotate(-45deg); }
.icon-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: none;
    border-radius: var(--radius-ti);
    color: var(--color-text);
    cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
    .icon-close:hover {
        background-color: var(--color-bg-hover);
        background-image: var(--sheen-dark);
        box-shadow: var(--lit);
    }
}
.icon-close .burger-line { transition: none; }
.icon-close .burger-line:nth-child(1) { transform: rotate(45deg); }
.icon-close .burger-line:nth-child(2) { transform: rotate(-45deg); }
.drawer-scrim {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out);
}
@media (max-width: 900px) {
    .side-drawer {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 120;
        display: flex;
        flex-direction: column;
        background: var(--color-bg);
        box-shadow: var(--shadow-3);
        overflow-y: auto;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.25s var(--ease-out),
                    visibility 0s linear 0.25s;
    }
    html.drawer-open .side-drawer {
        transform: none;
        visibility: visible;
        transition: transform 0.25s var(--ease-out);
    }
    html.drawer-open .drawer-scrim {
        opacity: 1;
        pointer-events: auto;
    }
    html.drawer-open { overflow: hidden; } 
}
.side-drawer,
.side-nav {
    --nav-fade-top: 0px;
    --nav-fade-bottom: 0px;
}
.side-drawer:is(.can-scroll-up, .can-scroll-down),
.side-nav:is(.can-scroll-up, .can-scroll-down) {
    -webkit-mask-image: linear-gradient(180deg,
        transparent, #000 var(--nav-fade-top),
        #000 calc(100% - var(--nav-fade-bottom)), transparent);
    mask-image: linear-gradient(180deg,
        transparent, #000 var(--nav-fade-top),
        #000 calc(100% - var(--nav-fade-bottom)), transparent);
}
.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-ti);
    background: var(--color-accent);
    color: #fff; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ext::after {
    content: "";
    display: inline-block;
    flex: none;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--external-mask) no-repeat center / contain;
    mask: var(--external-mask) no-repeat center / contain;
}
.ext:has(> .btn-spinner)::after {
    display: none;
}
.ext:not(:is(button, a.primary, a.secondary))::after {
    margin-left: 0.2em;
    vertical-align: -0.15em;
}
button, a.secondary, a.primary {
    display: inline-flex;
    align-items: center;
    border-radius: var(--radius-ti);
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 500;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    touch-action: manipulation;
    transition: background 0.12s, border-color 0.12s, color 0.12s,
                box-shadow 0.12s, transform 0.16s var(--ease-out);
    text-decoration: none;
    color: var(--color-text);
}
a {
    border-radius: var(--radius-ti);
}
button.primary, a.primary {
    border: 1px var(--btn-primary-edge) solid;
    background-color: var(--color-accent);
    background-image: var(--sheen-light);
    box-shadow: var(--btn-primary-shadow);
    color: var(--color-text-on-accent);
    padding: 4px 12px;
}
@media (hover: hover) and (pointer: fine) {
    button.primary:hover, a.primary:hover {
        border: 1px var(--btn-primary-edge) solid;
        background-color: var(--color-accent-hover);
        box-shadow: var(--btn-primary-shadow-hover);
        text-decoration: none;
    }
}
button.primary:active, a.primary:active {
    border: 1px var(--btn-primary-edge) solid;
    background-color: var(--color-accent-active);
    box-shadow: var(--btn-primary-shadow-active);
}
button.secondary, a.secondary {
    border: 1px var(--color-border-input) solid;
    background-color: var(--color-bg);
    background-image: var(--sheen-dark);
    box-shadow: var(--btn-secondary-shadow);
}
@media (hover: hover) and (pointer: fine) {
    button.secondary:hover, a.secondary:hover {
        background-color: var(--color-bg-hover);
        border-color: var(--color-border-input-hover);
        box-shadow: var(--btn-secondary-shadow-hover);
        text-decoration: none;
    }
}
button.secondary:active, a.secondary:active {
    background-color: var(--color-bg-active);
    border-color: var(--color-border-input-hover);
    box-shadow: var(--btn-secondary-shadow-active);
}
:is(button.primary, a.primary, button.secondary, a.secondary,
    button.filter, button.view-toggle):active:not(:disabled) {
    transform: scale(0.97);
}
button.lg, a.primary.lg, a.secondary.lg {
    padding: 0.6rem 1.15rem;
    font-size: 0.9375rem;
    gap: 8px;
}
.button-set :is(button, a),
.strip-actions :is(button, a),
.app-topbar-actions :is(button, a) {
    white-space: nowrap;
    line-height: 20px;
}
:is(button, a) svg {
    flex-shrink: 0;
}
.disconnect {
    color: var(--color-error)
}
button:disabled {
    opacity: 0.5;
    cursor: default;
}
:root {
    --seg-pad: 3px;
    --seg-track: rgb(var(--ink) / 0.055);
    --seg-track-shadow: inset 0 1px 2px rgb(var(--ink) / 0.07), inset 0 0 0 1px rgb(var(--ink) / 0.03);
    --seg-thumb-shadow: var(--shadow-1), var(--lit);
}
.seg {
    --seg-x: 0px;
    --seg-w: 0px;
    --fade-l: 0px;
    --fade-r: 0px;
    position: relative;
    isolation: isolate;
    display: inline-flex;
    max-width: 100%;
    padding: var(--seg-pad);
    border-radius: calc(var(--radius-ti) + var(--seg-pad));
    background: var(--seg-track);
    box-shadow: var(--seg-track-shadow);
}
.seg::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--seg-pad);
    bottom: var(--seg-pad);
    left: 0;
    width: var(--seg-w);
    transform: translateX(var(--seg-x));
    border-radius: var(--radius-ti);
    background: #fff;
    box-shadow: var(--seg-thumb-shadow);
    opacity: 0;
}
.seg:not(:has(> button)) { display: none; }
.seg.is-ready::before { opacity: 1; }
.seg.is-live::before {
    transition: transform 0.22s var(--ease-out), width 0.22s var(--ease-out);
}
.seg.can-scroll-left,
.seg.can-scroll-right,
.seg.is-scroll {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l),
                        #000 calc(100% - var(--fade-r)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-l),
                #000 calc(100% - var(--fade-r)), transparent 100%);
}
.seg.can-scroll-left  { --fade-l: 36px; }
.seg.can-scroll-right { --fade-r: 36px; }
.seg.is-scroll::-webkit-scrollbar { display: none; }
.seg > button {
    position: relative;
    flex-shrink: 0;
    white-space: nowrap;
    border: 0;
    border-radius: var(--radius-ti);
    background: transparent;
    box-shadow: none;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), transform 0.12s var(--ease-out);
}
.seg > button.filter { padding: 4px 12px; }
.seg > button.view-toggle { padding: 4px 8px; }
@media (hover: hover) and (pointer: fine) {
    .seg > button:hover:not(:disabled) {
        background-color: rgb(var(--ink) / 0.045);
        color: var(--color-text);
    }
}
.seg > button.active,
.seg > button[aria-pressed="true"] {
    background-color: #fff;
    box-shadow: var(--seg-thumb-shadow);
    color: var(--color-text);
}
.seg.is-ready > button.active,
.seg.is-ready > button[aria-pressed="true"] {
    background-color: transparent;
    box-shadow: none;
}
.seg > button.active:hover,
.seg > button[aria-pressed="true"]:hover { background-color: #fff; }
.seg.is-ready > button.active:hover,
.seg.is-ready > button[aria-pressed="true"]:hover { background-color: transparent; }
.seg > button:not(.active):not([aria-pressed="true"]) .filter-count { color: var(--color-text-muted); }
.button-set {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap-reverse;
}
.actions-bottom {
    text-align: right;
}
.help {
    color: var(--color-accent);
    font-size: 14px; 
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 0.3rem;
    border: none;
    background: none;
    width: fit-content;
}
.help:hover {
    text-decoration: underline;
}
input, select, textarea {
    border-radius: var(--radius-ti);
    border: 1px var(--color-border-input) solid;
    padding: 4px 8px;
    transition: border-color 0.24s;
    width: 100%;
    max-width: 400px;
    height: 30.6px;
    color: var(--color-text);
    background-color: var(--color-bg);
    box-shadow: inset 0 1px 2px rgb(var(--ink) / 0.05);
}
@media (pointer: coarse) {
    input, select, textarea {
        font-size: 16px;
    }
}
select {
    padding-left: 4px;
}
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    flex: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--color-border-input);
    background-color: var(--color-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-origin: border-box;
    background-size: 100% 100%;
    cursor: pointer;
    vertical-align: -3px;
    transition: background-color 0.12s, border-color 0.12s;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    outline-offset: 1px;
}
input[type="checkbox"] {
    border-radius: 3px;
}
input[type="radio"] {
    border-radius: 50%;
}
input[type="checkbox"]:hover:not(:checked):not(:disabled),
input[type="radio"]:hover:not(:checked):not(:disabled) {
    border-color: var(--color-border-input-hover);
}
input[type="checkbox"]:checked,
input[type="checkbox"]:indeterminate,
input[type="radio"]:checked {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}
input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
input[type="checkbox"]:indeterminate {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' d='M4.5 8h7'/%3E%3C/svg%3E");
}
input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.4' fill='%23ffffff'/%3E%3C/svg%3E");
}
input[type="checkbox"]:disabled,
input[type="radio"]:disabled {
    cursor: not-allowed;
    background-color: var(--color-bg-active);
    border-color: var(--color-border);
}
input[type="checkbox"]:disabled:checked,
input[type="checkbox"]:disabled:indeterminate,
input[type="radio"]:disabled:checked {
    background-color: var(--color-neutral);
    border-color: var(--color-neutral);
}
input.input--error {
    border-color: var(--color-error);
}
textarea {
    height: auto;
    min-height: 30.6px;
}
.field-error,
.field-note {
    font-size: 13px;
    margin-top: 4px;
    margin-left: 8.8px;
}
.field-error { color: var(--color-error); }
.field-note  { color: var(--color-text-muted); }
.code-input {
    height: auto;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-indent: 0.25em;
    font-family: var(--font-mono);
}
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
#confirm-modal {
    z-index: 130;
}
.modal {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 0;
    box-shadow: var(--shadow-3), var(--lit);
    width: calc(400px + 4rem);
    max-width: calc(100vw - 2rem);
    --modal-pad: 2rem;
    padding: var(--modal-pad);
    max-height: calc(100svh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
}
.modal.modal-wide {
    width: calc(640px + 4rem);
}
@media (max-width: 640px) {
    .modal.modal-wide {
        width: 100%;
        max-width: none;
        height: 100%;
        max-height: none;
        border-radius: 0;
    }
}
.modal .section-header :is(h2, h3) {
    margin: 0;
    font-size: 1.25rem;
}
@media (max-width: 640px) {
    .modal {
        --modal-pad: 1.25rem;
        padding: var(--modal-pad);
        max-width: calc(100vw - 1.5rem);
    }
}
.modal-backdrop {
    opacity: 1;
    transition: opacity 0.18s var(--ease-out);
}
.modal-backdrop .modal {
    opacity: 1;
    transform: none;
    transition: opacity 0.18s var(--ease-out-strong),
                transform 0.18s var(--ease-out-strong);
}
@starting-style {
    .modal-backdrop {
        opacity: 0;
    }
    .modal-backdrop .modal {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
}
.modal-backdrop.is-closing {
    opacity: 0;
    transition-duration: 0.15s;
}
.modal-backdrop.is-closing .modal {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
    transition-duration: 0.15s;
}
#toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    background: rgb(26 36 35 / 0.86);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    backdrop-filter: blur(14px) saturate(1.5);
    box-shadow: var(--lit-dark), var(--shadow-2);
    color: var(--color-bg);
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out);
    z-index: 200;
}
#toast.toast--visible {
    transition-duration: 0.2s;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}
#toast.toast--error {
    background: rgb(160 36 30 / 0.9);
    color: #fff;
}
.banner,
.errors,
.modal-hold,
.reattach-card,
.action-row.tier-critical,
.action-row.tier-warning,
.action-row.tier-info,
.guide-step.is-current:not(:where(.is-urgent)),
.guide-step.is-urgent,
.docs-mockup-banner,
.docs-mockup-alert {
    --t: var(--cornflower);
    --ti: var(--cornflower-ink);
    border: 0;
    border-radius: var(--radius-md);
    color: rgb(var(--ti));
    background:
        var(--grain),
        linear-gradient(118deg, rgb(255 255 255 / 0.42) 0%, rgb(255 255 255 / 0) 46%),
        radial-gradient(70% 120% at 72% 100%, rgb(var(--t) / 0.22), transparent 70%),
        linear-gradient(165deg,
            color-mix(in srgb, rgb(var(--t)) 12%, #fff),
            color-mix(in srgb, rgb(var(--t)) 24%, #fff));
    background-size: 160px, auto, auto, auto;
    background-blend-mode: soft-light, normal, normal, normal;
    box-shadow:
        inset 0 0 0 1px rgb(255 255 255 / 0.55),
        inset 0 1px 0 rgb(255 255 255 / 0.95),
        inset 0 -10px 18px -14px rgb(var(--t) / 0.5),
        0 0 0 1px rgb(var(--t) / 0.26),
        0 1px 2px rgb(var(--ink) / 0.06);
}
.banner p,
.modal-hold p { color: inherit; }
.modal-hold,
.reattach-card,
.action-row.tier-warning,
.guide-step.is-urgent,
.banner.warning,
.docs-mockup-banner.is-warning,
.docs-mockup-alert.is-warning { --t: var(--amber); --ti: var(--amber-ink); }
.errors,
.action-row.tier-critical,
.banner.error { --t: var(--brick); --ti: var(--brick-ink); }
.banner.positive,
.guide-step.is-current:not(:where(.is-urgent)) { --t: var(--seafoam); --ti: var(--seafoam-ink); }
.modal-hold--info,
.action-row.tier-info,
.banner.info,
.docs-mockup-banner.is-info,
.docs-mockup-alert.is-info { --t: var(--cornflower); --ti: var(--cornflower-ink); }
@keyframes spin {
    to { transform: rotate(360deg); }
}
.btn-spinner {
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    flex-shrink: 0;
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}
.skeleton {
    background: linear-gradient(90deg, var(--color-bg-active) 25%, var(--color-border) 50%, var(--color-bg-active) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: var(--radius-ti);
}
:root {
    --table-row-h: 52px;     
    --gap-tight:   0.25rem;  
    --gap-row:     0.5rem;   
    --gap-bind:    1rem;     
    --gap-open:    1.5rem;   
    --gap-section: 3rem;     
}
a.has-tail .link-tail {
    white-space: nowrap;
}
a.has-tail .link-tail::after {
    content: "";
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.2em;
    background-color: currentColor;
    -webkit-mask: var(--chevron-mask) no-repeat center / contain;
    mask: var(--chevron-mask) no-repeat center / contain;
}
.docs-prose > a.has-tail::after {
    content: none;
}
