@font-face {
    font-family: Geist;
    src: url("geist.woff2") format("woff2");
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
}
@font-face {
    font-family: RelayIcons;
    src: url("lucide.woff2?v=2") format("woff2");
    font-display: block;
}

:root {
    color-scheme: light;
    --ink: #202031;
    --muted: #626477;
    --purple: #6944df;
    --purple-deep: #5930cb;
    --line: #e3e4ec;
    --canvas: #f8f9fc;
    --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    --radius: 15px;
    --shadow: 0 2px 5px rgba(31, 30, 57, .025);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
html { scroll-padding-top: 88px; }
body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}
::selection { background: #ded3ff; color: #281945; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #916afb; outline-offset: 3px; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { border: 0; background: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, dl, dd { margin: 0; }
h1, h2, h3, strong, b { font-weight: 650; }
h1, h2, h3 { line-height: 1.35; }
button, .btn, .main-nav a, .client-nav a, .text-link, .settings-nav a {
    transition: background-color .16s, border-color .16s, color .16s, box-shadow .16s, transform .16s;
}
code, pre { font-family: var(--mono); }
.icon { font: normal 1em/1 RelayIcons; display: inline-block; flex: 0 0 auto; }
.wrap { width: min(1200px, calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 10; background: white; padding: 8px 15px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* Navigation */
.site-header {
    position: sticky;
    z-index: 5;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 760; letter-spacing: -1.25px; }
.brand { font-size: 25px; line-height: 1.2; max-width: 30%; }
.brand img { flex: 0 0 auto; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.public-header-row { min-height: 76px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 18px; }
.public-header-row .brand { justify-self: start; max-width: 100%; }
.main-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid #e5e1ed;
    border-radius: 15px;
    background: linear-gradient(115deg, #f7f5fa, #f1eff6);
    box-shadow: inset 0 1px 0 #fff, 0 1px 3px #33214b08;
}
.public-actions { display: flex; align-items: center; justify-self: end; gap: 8px; }
.nav-item { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; color: #514b60; font-size: 14px; line-height: 20px; font-weight: 560; padding: 7px 14px; border-radius: 10px; white-space: nowrap; }
.nav-item > .icon { font-size: 16px; }
.services-menu summary > .icon:last-child { font-size: 12px; margin-left: 1px; }
.nav-item:hover, .services-menu[open] > summary { color: #493364; background: #ffffffc9; }
.main-nav .nav-item[aria-current], .main-nav .nav-item.current-section { color: #fff; background: linear-gradient(135deg, #794fe1, #6340bf); box-shadow: inset 0 1px 0 #ffffff30, 0 2px 5px #49218030; }
.services-menu { position: relative; }
.service-menu-links { position: absolute; top: calc(100% + 10px); right: 0; min-width: 224px; padding: 6px; border: 1px solid var(--line); background: white; border-radius: 13px; box-shadow: 0 8px 28px #241d3920; }
.service-menu-links a { display: flex; gap: 11px; align-items: center; border-radius: 8px; padding: 9px; line-height: 1.5; }
.service-menu-links a:hover, .service-menu-links a[aria-current] { background: #f7f5fb; }
.service-menu-links strong, .service-menu-links small { display: block; }
.service-menu-links strong { font-size: 14px; }
.service-menu-links small { font-size: 12px; color: var(--muted); }
.menu-icon { display: inline-grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; }
.menu-toggle { display: none; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 17px; min-height: 43px; line-height: 1.4; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; text-align: center; }
.btn .icon { font-size: 17px; }
.btn-primary { color: white; background: var(--purple); border-color: #6340d8; box-shadow: 0 2px 4px #5130a828; }
.btn-primary:hover { background: var(--purple-deep); box-shadow: 0 4px 12px #5732b730; }
.btn-light { background: #ffffffd9; border-color: #d9d8e5; box-shadow: var(--shadow); }
.btn-light:hover { background: white; border-color: #b6a4e4; }
.btn-dark { color: white; background: #292735; }
.btn-dark:hover { background: #413850; }
.btn-small { min-height: 36px; padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn-small .icon { font-size: 15px; }
.main-content { padding-block: 26px 48px; flex: 1; }

/* Landing page */
.home-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: #f8f6ff;
    border: 1px solid #282438;
    border-radius: 22px;
    background: radial-gradient(ellipse at 79% 28%, #4e4077 0, #322947 30%, transparent 60%), #1b1926;
    box-shadow: 0 10px 30px -20px #2c1a4b88;
}
.hero-main { position: relative; display: grid; grid-template-columns: 52% 48%; min-height: 354px; }
.hero-main::before { content: ""; position: absolute; inset: 0; background: radial-gradient(#cab1ff42 .7px, transparent .9px) 0 0/17px 17px; mask-image: linear-gradient(110deg, transparent 20%, #0003 52%, #000a); }
.hero-copy { align-self: center; z-index: 1; padding: 36px 0 37px clamp(28px, 4.2vw, 58px); }
.hero-label { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; letter-spacing: .25px; color: #d5c9ed; }
.hero-label .icon { color: #c1a2fc; font-size: 16px; }
.home-hero h1 { margin: 13px 0 12px; font-size: clamp(46px, 4.6vw, 64px); letter-spacing: -.045em; font-weight: 680; line-height: 1.15; }
.home-hero h1 em { font-style: normal; color: #c5a7ff; background: linear-gradient(105deg, #b3a0ff, #e7c7ff); background-clip: text; -webkit-text-fill-color: transparent; }
.hero-copy p { color: #c7c3d4; font-size: 14px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 21px; }
.hero-actions .btn { min-height: 43px; padding-inline: 19px; }
.hero-primary { background: #f4efff; color: #33244b; box-shadow: 0 2px 8px #0a08172b; }
.hero-primary:hover { background: white; }
.hero-secondary { border-color: #ffffff38; color: #f0eafa; background: #ffffff09; }
.hero-secondary:hover { border-color: #ffffff77; background: #ffffff14; }
.hero-art { position: relative; min-width: 0; }
.stage-grid {
    position: absolute;
    inset: 0 -22% -17% -27%;
    background-image: repeating-linear-gradient(27deg, transparent 0 29px, #c4b1ee38 29.4px, transparent 30.4px),
        repeating-linear-gradient(151deg, transparent 0 29px, #baa5eb44 29.4px, transparent 30.4px);
    mask-image: radial-gradient(ellipse at 54% 74%, #000 5%, #0008 39%, transparent 71%);
}
.stage-orbit { position: absolute; width: 74%; height: 29%; left: 10%; bottom: 6%; border: 1px solid #cbb5ff38; border-radius: 50%; transform: rotate(-8deg); background: radial-gradient(ellipse, #b196f246, transparent 70%); box-shadow: 0 0 45px #a483db0c; }
.stage-orbit::after { content: ""; position: absolute; inset: -14% -5%; border: 1px dashed #cdb3ff36; border-radius: 50%; }
.chip-render { position: absolute; left: -2%; top: -2%; width: 98%; height: 104%; object-fit: contain; filter: drop-shadow(0 8px 18px #160d3144); }
.hero-utilities { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 55px; padding: 8px clamp(28px, 4.2vw, 58px); border-top: 1px solid #e1d9ff25; background: #171521aa; }
.hero-address, .hero-guide-link { display: inline-flex; align-items: center; gap: 9px; }
.hero-address { min-width: 0; color: #bcb5d1; }
.hero-address > span:not(.icon) { flex-shrink: 0; font: 12px var(--mono); }
.hero-address > .icon { color: #b8a0e0; }
.hero-address code { margin-left: 5px; font-size: 13px; color: #f2eafc; overflow-wrap: anywhere; }
.hero-address .copy-btn { color: #d0c4e0; }
.hero-address .copy-btn:hover { background: #ffffff1a; color: white; }
.hero-tool-actions { display: flex; align-items: center; gap: 15px; flex-shrink: 0; }
.hero-guide-link { font-size: 13px; color: #e4d9f5; padding: 5px 0; }
.hero-guide-link:hover { color: white; }

/* Searchable model IDs */
.model-catalog { margin-top: clamp(27px, 3.4vw, 46px); }
.catalog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 19px; }
.catalog-heading h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 2.3vw, 31px); letter-spacing: -.8px; }
.catalog-heading h2 span { padding: 2px 7px; font: 550 12px/1.5 Geist, sans-serif; letter-spacing: 0; color: #64556f; background: #eeebf4; border: 1px solid #e4deed; border-radius: 6px; }
.catalog-heading p, .catalog-group-heading p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.catalog-search { position: relative; width: 224px; max-width: 100%; }
.catalog-search input[type=search] { width: 100%; min-height: 40px; padding: 8px 10px 8px 37px; border-radius: 9px; margin: 0; font-size: 13px; background-color: white; }
.catalog-search input::placeholder { color: #757381; }
.search-symbol { position: absolute; width: 13px; height: 13px; top: 12px; left: 13px; border-radius: 50%; border: 1.5px solid #787482; pointer-events: none; }
.search-symbol::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #787482; transform: rotate(45deg); top: 10px; left: 9px; }
.catalog-groups { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.catalog-group:only-child, .catalog-groups:has(.catalog-group[hidden]) .catalog-group:not([hidden]) { grid-column: 1 / -1; }
.catalog-group { padding: 21px; }
.catalog-group-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 17px; }
.category-icon { display: inline-grid; place-items: center; flex-shrink: 0; border: 1px solid #e6dbf8; border-radius: 11px; width: 40px; height: 40px; color: #7542b5; background: #f1ebfb; font-size: 21px; }
.image-group .category-icon { color: #2e7c76; background: #e8f6f1; border-color: #d5eae3; }
.catalog-group-heading h3 { font-size: 17px; }
.catalog-group-heading p { font-size: 12px; margin-top: 1px; }
.group-count { margin-left: auto; align-self: flex-start; color: #777080; font: 12px/1.6 var(--mono); }
.catalog-items { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px 9px; padding: 0; margin: 0; }
.chat-group .catalog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-item { width: 100%; height: 100%; min-height: 42px; display: flex; align-items: center; gap: 7px; text-align: left; padding: 8px 11px; color: #3e394f; background: #f7f7fa; border: 1px solid #edeaf2; border-radius: 7px; }
.model-item code { font-size: 13px; font-weight: 520; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; user-select: text; }
.model-item .icon { margin-left: auto; color: #827e90; font-size: 14px; }
.model-item small { flex-shrink: 0; color: #6b44a5; background: #ece5fa; font-size: 10px; padding: 1px 5px; border-radius: 4px; }
.model-item:hover, .model-item:focus-visible { background: #f1ecfb; border-color: #d2c0eb; }
.model-item.copied { background: #ecf7f2; border-color: #bdded1; }
.model-item.copied .icon { color: #24745a; }
.catalog-empty { border: 1px dashed #d5d0de; padding: 28px; border-radius: 10px; color: var(--muted); text-align: center; font-size: 14px; }
.icon-tile, .section-icon, .connection-symbol { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile { width: 45px; height: 45px; font-size: 22px; border: 1px solid transparent; border-radius: 12px; }
.mint { background: #e3f5ef; color: #29876c; border-color: #d6ebe4; }
.apricot { background: #fff0e1; color: #b77136; border-color: #f6e4cf; }

/* Guides and reference panels */
.content-grid { display: grid; grid-template-columns: minmax(0, 1.94fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.guide-card { padding: 26px 28px 28px; }
.guide-heading { display: flex; gap: 12px; align-items: center; }
.section-icon { width: 42px; height: 42px; border: 1px solid #e7e0f6; color: #6e4cc3; border-radius: 11px; background: #f4f0fc; font-size: 21px; }
.guide-heading h1 { font-size: 25px; letter-spacing: -.6px; }
.guide-heading p { margin-top: 2px; color: #727383; font-size: 12.5px; }
.method-nav { display: flex; align-items: stretch; gap: 24px; margin: 16px 0 25px; border-bottom: 1px solid var(--line); }
.method-nav a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 4px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; color: #6b6b7a; }
.method-nav .icon { font-size: 16px; }
.method-nav a[aria-current] { color: var(--purple-deep); font-weight: 640; border-color: #8054e3; }
.method-nav a:hover { color: var(--purple-deep); }
.steps { padding: 0; list-style: none; counter-reset: guide-step; }
.steps > li { position: relative; counter-increment: guide-step; padding: 0 0 24px 42px; }
.steps > li:last-child { padding-bottom: 0; }
.steps > li::before { content: counter(guide-step, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 28px; height: 26px; display: grid; place-items: center; color: #6c4bbb; background: #f3eefc; border: 1px solid #e3d9f6; border-radius: 7px; font: 600 11px/1 var(--mono); }
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 33px; bottom: 7px; border-left: 1px dashed #ddd7e8; }
.steps h3 { font-size: 16px; line-height: 26px; }
.steps p, .service-panel p { font-size: 14px; color: var(--muted); line-height: 1.85; margin-top: 5px; overflow-wrap: anywhere; }
.text-link { display: inline-flex; align-items: center; gap: 5px; font-weight: 550; font-size: 13px; color: var(--purple-deep); }
.text-link:hover { color: #442492; text-decoration: underline; text-underline-offset: 3px; }
.steps .text-link, .inline-status { margin-top: 7px; }
.text-link .icon { font-size: 14px; }
.inline-code, .endpoint-field { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px 6px 13px; border-radius: 7px; min-height: 40px; }
.inline-code { border: 1px solid var(--line); background: #f8f8fc; margin-top: 10px; }
.inline-code code, .endpoint-field code { min-width: 0; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.inline-code code { color: #51475e; }
.copy-btn, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: 5px; flex-shrink: 0; }
.copy-btn { min-width: 29px; min-height: 29px; font-size: 12px; padding: 4px 7px; color: #666475; }
.copy-btn .icon { font-size: 15px; }
.copy-btn:hover { background: #eae5f3; color: var(--purple-deep); }
.copy-btn.copied { color: #24705d; }
.client-nav { display: flex; gap: 3px; background: #f2f2f7; border: 1px solid #e9e8ef; border-radius: 8px; width: fit-content; max-width: 100%; padding: 3px; flex-wrap: wrap; margin-block: 12px; }
.client-nav a { border-radius: 5px; font-size: 13px; line-height: 1.4; padding: 6px 11px; color: #5e5c70; }
.client-nav a[aria-current] { background: #fff; color: var(--purple-deep); box-shadow: 0 1px 4px #2f1e5220; font-weight: 600; }
.client-nav a:hover { color: var(--purple-deep); }
.config-fields { margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.config-fields > div { display: grid; grid-template-columns: 99px 1fr; border-bottom: 1px solid #ecebf1; }
.config-fields > div:last-child { border: 0; }
.config-fields dt { padding: 8px 13px; font: 12px/1.75 var(--mono); color: #66507d; background: #f8f7fb; }
.config-fields dd { padding: 8px 13px; font-size: 13px; overflow-wrap: anywhere; }
.code-block { margin: 12px 0; background: #272635; color: #e6e3ed; border-radius: 9px; overflow: hidden; }
.code-heading { padding: 5px 9px 5px 14px; border-bottom: 1px solid #ffffff16; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #32303f; }
.code-heading > span { display: inline-flex; align-items: center; gap: 8px; font: 12px/1.5 var(--mono); }
.code-block pre { margin: 0; padding: 14px; overflow-x: auto; font-size: 12.5px; line-height: 1.75; tab-size: 2; }
.code-heading .copy-btn, .endpoint-field .copy-btn, .model-id .copy-btn { color: #dfd9ee; }
.code-heading .copy-btn:hover, .endpoint-field .copy-btn:hover, .model-id .copy-btn:hover { color: #fff; background: #ffffff1a; }
.code-heading .copied, .endpoint-field .copied { color: #b1ecd4; }
.steps p code { font-size: .92em; color: #594578; background: #f4f0f9; border-radius: 4px; padding: 1px 4px; }
.client-recipe h4 { margin: 18px 0 6px; font-size: 15px; line-height: 1.55; font-weight: 650; }
.client-recipe h4 code { font-size: .94em; }
.system-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.system-nav a { font-size: 12px; font-weight: 570; color: #625f70; border: 1px solid var(--line); padding: 4px 10px; border-radius: 7px; background: #fff; }
.system-nav a:hover, .system-nav a[aria-current] { color: #623da9; background: #f5f1fd; border-color: #c4b1e7; }
.client-recipe kbd { font: 12px/1.4 var(--mono); padding: 1px 4px; border: 1px solid #dedbe5; border-bottom-width: 2px; border-radius: 4px; color: #595263; background: #faf9fb; }
.config-fields dd code { font-size: 12px; }
.recipe-help { border: 1px solid #e9e5ed; border-radius: 8px; padding: 8px 11px; margin-top: 12px; background: #fbfafd; }
.recipe-help summary { display: flex; align-items: center; gap: 10px; justify-content: space-between; font-size: 13px; font-weight: 560; color: #655578; }
.recipe-help p { margin-top: 7px; font-size: 13px; line-height: 1.8; color: var(--muted); overflow-wrap: anywhere; }
.recipe-help > .text-link { margin-top: 7px; }
.sample-note { font-size: 13px; color: #6a5490; }
.steps .sample-note { font-size: 12px; }
.guide-note { background: #f6f3fc; border-left: 3px solid #a78bdf; padding: 12px 15px; margin-top: 22px; border-radius: 4px; font-size: 14px; }
.guide-note p { white-space: pre-line; overflow-wrap: anywhere; color: #62596d; margin-top: 5px; }
.sidebar { display: grid; gap: 18px; }
.connection-card { isolation: isolate; position: relative; overflow: hidden; color: #fff; background: radial-gradient(ellipse at 100% 0, #4a3c64, transparent 72%), #292632; padding: 23px; border-radius: var(--radius); box-shadow: 0 4px 12px #241b3e0b; }
.connection-grid { position: absolute; z-index: -1; top: 0; left: 12%; right: 0; height: 70%; background-image: linear-gradient(#bca4ec19 1px, transparent 1px), linear-gradient(90deg, #bca4ec19 1px, transparent 1px); background-size: 23px 23px; mask-image: linear-gradient(25deg, transparent 30%, #000b); }
.connection-top { display: flex; align-items: center; justify-content: space-between; }
.connection-symbol { color: #d6c8f7; width: 33px; height: 32px; font-size: 21px; background: #ffffff0c; border: 1px solid #ffffff23; border-radius: 8px; }
.protocol { font-size: 10px; font-weight: 500; color: #e3d6ff; border: 1px solid #bfa8ec47; border-radius: 5px; background: #9c77df19; padding: 2px 7px; }
.connection-card h2 { font-size: 21px; margin: 12px 0 15px; font-weight: 590; letter-spacing: -.4px; line-height: 1.3; }
.endpoint-label, .model-row { display: flex; align-items: center; justify-content: space-between; }
.endpoint-label { font-size: 12px; color: #d5d1df; gap: 10px; margin-bottom: 7px; }
.endpoint-label b { font: 10px var(--mono); color: #c0b7cf; margin-left: 4px; }
.endpoint-field { background: #16141f99; border: 1px solid #ffffff20; }
.endpoint-field code { color: #ede8f8; }
.model-row { border-top: 1px solid #ffffff1d; margin-top: 17px; padding-top: 12px; color: #d4cfdd; font-size: 12px; gap: 12px; }
.model-id > span { flex-shrink: 0; }
.model-id code { margin-left: auto; overflow-wrap: anywhere; }
.model-directory-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12px; color: #dbcbf5; }
.model-directory-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-card { padding: 20px 21px 6px; }
.faq-card h2, .video-heading h3 { display: flex; align-items: center; gap: 8px; }
.faq-card h2 { font-size: 16px; margin-bottom: 8px; }
.faq-card h2 .icon { font-size: 18px; color: #746783; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.faq-card details + details { border-top: 1px solid #eeedf2; }
.faq-card summary { font-size: 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; color: #585868; }
.faq-card summary .icon { font-size: 14px; color: #7b7587; }
details[open] > summary .icon:last-child { transform: rotate(180deg); }
.faq-card p { font-size: 13px; line-height: 1.8; color: var(--muted); margin: -2px 0 14px; }
.guide-card { container-type: inline-size; }
.tool-download-panel { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; padding: 18px; margin-bottom: 21px; border: 1px solid #ddd0f5; border-radius: 13px; background: linear-gradient(110deg, #faf7ff, #f0eafa); box-shadow: inset 3px 0 #9873de; }
.tool-download-info { display: flex; align-items: center; gap: 11px; min-width: 0; flex: 1 1 248px; }
.tool-symbol { display: grid; place-items: center; flex-shrink: 0; width: 41px; height: 41px; background: white; border: 1px solid #e4d8f4; color: #7646ba; border-radius: 11px; font-size: 22px; }
.tool-download-info h3 { font-size: 18px; letter-spacing: -.35px; }
.tool-download-info p { margin-top: 3px; font-size: 12px; line-height: 1.6; color: #645970; }
.tool-download-button { flex-shrink: 0; min-height: 46px; padding-inline: 18px; white-space: nowrap; color: white; background: linear-gradient(125deg, #794cdf, #5c32bb); border-color: #6940c4; box-shadow: inset 0 1px 0 #ffffff35, 0 3px 9px #572bad30; }
.tool-download-button:hover { background: linear-gradient(125deg, #6d40d3, #5126a9); box-shadow: 0 4px 13px #572bad42; }
.tool-download-button .icon:last-child { font-size: 13px; }
.tool-download-button.home-download { min-height: 44px; padding: 8px 14px; border-color: #a487db; background: #e6d8ff; color: #3e275d; font-size: 13px; }
.tool-download-button.home-download:hover { background: #f4ecff; }
@container (max-width: 500px) {
    .tool-download-panel { display: grid; padding: 16px; gap: 13px; }
    .tool-download-panel .tool-download-button { width: 100%; }
}
.activation-layout { display: grid; gap: 18px; align-items: start; }
.workspace-demo { margin: 0; min-width: 0; width: min(100%, 360px); }
.workspace-demo figcaption { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #696273; margin-bottom: 6px; }
.workspace-demo > small { display: block; margin-top: 6px; font-size: 11px; color: #706c75; }
.demo-window { border: 1px solid #dedfcf; background: #f5f5ec; border-radius: 11px; padding: 11px; color: #353c30; box-shadow: inset 0 1px 0 #fff; }
.demo-title { font-size: 12px; font-weight: 650; margin: 0 0 8px 2px; }
.demo-section { border: 1px solid #e6e5d9; background: #fffefa; border-radius: 8px; padding: 9px; }
.demo-section + .demo-section { margin-top: 6px; }
.demo-section > b { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 12px; }
.demo-section > b i { padding: 1px 4px; color: #a84628; background: #fbeadf; font: 10px/1.5 var(--mono); border-radius: 3px; }
.demo-code { padding: 5px 7px; border: 1px solid #dee2ce; color: #70825f; border-radius: 5px; background: #fafbf4; font: 11px/1.5 var(--mono); }
.demo-target { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 6px 7px; border: 1px solid #e2e4d8; border-radius: 5px; background: #fafbf4; font-size: 12px; font-weight: 630; }
.demo-target.selected { background: #fff8f1; border-color: #ecd0b9; }
.demo-target + .demo-target { margin-top: 4px; }
.demo-target small { display: block; color: #726f60; font-size: 10px; font-weight: 400; }
.demo-target > i { flex-shrink: 0; width: 20px; height: 11px; padding: 2px; border-radius: 8px; background: #bfc6b3; }
.demo-target > i::after { content: ""; display: block; width: 7px; height: 7px; border-radius: 50%; background: white; }
.demo-target.selected > i, .demo-activate { background: #b85032; }
.demo-target.selected > i::after { margin-left: auto; }
.demo-activate { display: flex; align-items: center; justify-content: center; gap: 4px; border-radius: 5px; margin-top: 6px; padding: 4px; color: #fff; font-size: 11px; font-weight: 590; }
@container (min-width: 605px) {
    .activation-layout { grid-template-columns: minmax(0, 1fr) minmax(195px, .65fr); gap: 20px; }
}
.script-body { border-bottom: 1px solid var(--line); padding-bottom: 17px; margin-bottom: 20px; }
.video-pending { margin: 0; font-size: 13px; color: var(--muted); }
.video-heading { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 10px; }
.video-heading h3 { font-size: 15px; }
.soft-label { font-size: 11px; color: #70588b; background: #f4f0fa; padding: 2px 8px; border-radius: 5px; }
.tutorial-video { display: block; width: 100%; background: #211e2c; max-height: 380px; border-radius: 9px; }
.bundled-video { aspect-ratio: 16 / 9; max-height: none; }
.video-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 7px; }
.video-cover { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 135px; border-radius: 9px; border: 1px solid #e1dbea; font-size: 12.5px; color: #6a6078; background-color: #f4f1f9; background-image: radial-gradient(#b6a8ca65 .7px, transparent .8px); background-size: 12px 12px; }
.video-ready { color: var(--purple-deep); }
.video-ready > .icon { font-size: 36px; }
.inline-status { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: #756782; }

/* Individual service pages */
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #6e687b; font-size: 13px; margin: 3px 0 19px; }
.breadcrumb a:hover { color: var(--purple-deep); }
.breadcrumb .icon { font-size: 12px; }
.service-panel { overflow: hidden; }
.auth-file { display: flex; align-items: center; gap: 8px; font-size: 13px; border-radius: 8px; }
.card-intro { position: relative; isolation: isolate; overflow: hidden; padding: 27px 32px; border-bottom: 1px solid var(--line); }
.key-intro { background: linear-gradient(108deg, #f8fcfb, #e9f5f0); color: #387563; }
.recharge-intro { background: linear-gradient(108deg, #fffcf8, #faefdf); color: #9b744b; }
.card-intro::before { position: absolute; content: ""; inset: 0; z-index: -1; background: radial-gradient(currentColor .7px, transparent .85px) 0 0/13px 13px; opacity: .16; mask-image: linear-gradient(95deg, transparent 30%, black); }
.card-intro-copy { position: relative; max-width: 72%; }
.card-intro-copy .icon-tile { width: 37px; height: 35px; font-size: 19px; border-radius: 9px; }
.card-intro h1 { margin: 10px 0 5px; font-size: clamp(27px, 3vw, 34px); color: var(--ink); letter-spacing: -.9px; }
.card-intro p { margin: 0; }
.pass-art { position: absolute; width: 126px; height: 81px; top: 27%; right: 6%; transform: rotate(-13deg); border: 1px solid currentColor; border-radius: 11px; box-shadow: 5px 6px 0 -1px #ffffff96, 5px 6px 0 currentColor; background: linear-gradient(140deg, #ffffffd9, #ffffff50); opacity: .7; }
.pass-art span { position: absolute; left: 11px; top: 9px; font-size: 24px; }
.pass-art i { position: absolute; height: 4px; width: 36px; left: 13px; bottom: 12px; border-radius: 4px; background: currentColor; opacity: .5; }
.pass-art i:last-child { left: 54px; width: 17px; opacity: .23; }
.card-workspace { padding: 25px 32px 29px; }
.card-workspace [hidden] { display: none !important; }
.card-form fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.credential-label, .recharge-modes legend { display: block; font-weight: 620; font-size: 14px; color: #393745; }
.credential-label:not(:first-child) { margin-top: 17px; }
.credential-input { position: relative; margin-top: 7px; }
.credential-input > .icon { position: absolute; top: 50%; left: 14px; transform: translateY(-50%); color: #82798f; font-size: 17px; }
.credential-input input[type=password] { padding: 12px 12px 12px 41px; margin: 0; font: 15px/1.5 var(--mono); background: #fcfbfd; }
.credential-input input::placeholder { font: 13px Geist, "Microsoft YaHei", sans-serif; color: #797484; }
.service-panel .field-help, .service-panel .mode-help { color: var(--muted); font-size: 12.5px; margin-top: 7px; }
.card-hint { display: flex; align-items: baseline; gap: 8px; border-radius: 7px; padding: 10px 12px; background: #f4f2f9; }
.card-hint, .service-panel p.card-hint { margin: 15px 0 0; color: #62596e; font-size: 12.5px; line-height: 1.8; }
.card-hint .icon { align-self: flex-start; margin-top: 4px; font-size: 14px; }
.card-hint a { color: var(--purple-deep); text-decoration: underline; text-underline-offset: 2px; }
.card-submit { margin-top: 21px; }
.card-workspace button:disabled, .card-form fieldset:disabled button { cursor: not-allowed; opacity: .65; }
.recharge-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recharge-modes legend { margin-bottom: 8px; }
.recharge-modes label { position: relative; cursor: pointer; }
.recharge-modes input[type=radio] { margin: 0; width: 1px; height: 1px; position: absolute; opacity: 0; }
.recharge-modes label > span { display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; border: 1px solid #dedbe5; background: #fdfcfe; color: #625f6e; padding: 10px; font-weight: 560; font-size: 14px; }
.recharge-modes label > span .icon { font-size: 16px; }
.recharge-modes input:checked + span { border-color: #a68cd9; background: #f4effc; color: #6744a7; }
.recharge-modes input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.card-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-top: 19px; }
.transfer-review h2, .result-heading h2 { font-size: 21px; letter-spacing: -.5px; }
.receipt-lines { margin-top: 13px; border-block: 1px solid var(--line); }
.receipt-lines > div { display: flex; gap: 8px; justify-content: space-between; padding: 8px 0; font-size: 13px; }
.receipt-lines dt, .account-stats dt { color: var(--muted); }
.receipt-lines dd { font: 13px/1.65 var(--mono); text-align: right; overflow-wrap: anywhere; }
.result-heading { display: flex; align-items: center; gap: 9px; }
.result-symbol { display: inline-grid; place-items: center; width: 30px; height: 30px; background: #e5f4ed; color: #317758; border-radius: 8px; }
.result-label { margin: 15px 0 6px; font-size: 13px; font-weight: 610; }
.result-label b { color: var(--muted); font: 11px var(--mono); }
.result-model-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.result-model-label .text-link { font-size: 12px; }
.result-key { display: flex; align-items: center; gap: 8px; border-radius: 8px; color: #f1ebfc; background: #292533; padding: 9px 12px; }
.result-key code { flex: 1; font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.result-key button { flex: 0 0 auto; min-height: 32px; font-size: 12px; color: #eee7f7; border-radius: 4px; }
.result-key button:hover { background: #ffffff17; }
.result-key .icon { font-size: 16px; }
.card-result .inline-code { margin-top: 0; }
.account-stats { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.account-stats > div { padding: 10px 12px; background: #f6f8f7; border-radius: 7px; }
.account-stats dt { font-size: 12px; }
.account-stats dd { font-weight: 610; font-size: 17px; overflow-wrap: anywhere; }
.card-feedback { background: #f7f4fa; padding: 11px 13px; border-left: 3px solid #b293d5; margin-top: 15px; border-radius: 4px; font-size: 13px; }
.service-links { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 15px 32px; border-top: 1px solid var(--line); }
.service-links > a:last-child { display: inline-flex; align-items: center; gap: 5px; color: #706b77; font-size: 12px; }
.service-links > a:hover { color: var(--purple-deep); }
.not-found { padding: 45px; text-align: center; }
.not-found h1 { margin-bottom: 24px; }
.site-footer { border-top: 1px solid var(--line); color: #696877; background: #fafafd; margin-top: auto; }
.footer-inner { display: flex; align-items: center; gap: 18px; min-height: 74px; }
.footer-brand { font-size: 16px; letter-spacing: -.6px; color: #575361; max-width: 40%; overflow-wrap: anywhere; }
.footer-description, .footer-inner > a { font-size: 12px; }
.footer-inner > a { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; }
.footer-inner > a:hover { color: var(--purple-deep); }
.toast { pointer-events: none; position: fixed; z-index: 6; bottom: 25px; left: 50%; max-width: calc(100% - 32px); padding: 9px 17px; background: #292534; box-shadow: 0 5px 20px #231d3320; color: white; border-radius: 8px; text-align: center; font-size: 13px; opacity: 0; transform: translate(-50%, 10px); transition: opacity .16s, transform .16s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.clipboard-helper { position: fixed; width: 1px; height: 1px; left: -9999px; }

/* Site administration */
.admin-brand-label { margin-right: auto; padding-left: 18px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions form { display: flex; }
.icon-button { width: 35px; height: 35px; font-size: 17px; color: #6c6775; }
.icon-button:hover { background: #f2edf7; }
.admin-main { flex: 1; padding-block: 35px 52px; }
.auth-card { max-width: 455px; margin: 30px auto; padding: 32px; }
.auth-card h1 { font-size: 27px; margin: 18px 0 8px; letter-spacing: -.7px; }
.auth-card p, .admin-heading p, .settings-section > p { color: var(--muted); font-size: 14px; }
.auth-file { background: #f4f1fa; border: 1px solid #e6e0ef; padding: 9px 12px; margin-top: 13px; color: #634883; }
.stack-form { display: grid; gap: 15px; margin-top: 22px; }
.stack-form label, .settings-section label { display: block; font-size: 13px; font-weight: 580; color: #484555; }
input:not([type="hidden"]), textarea, select { display: block; width: 100%; margin-top: 6px; border-radius: 7px; border: 1px solid #d9d9e4; background-color: #fdfdfe; font-size: 14px; font-weight: 400; line-height: 1.5; padding: 10px 12px; }
textarea { resize: vertical; min-height: 72px; }
::placeholder { color: #91909d; }
input:focus, textarea:focus, select:focus { outline: 2px solid #e5dbfb; outline-offset: 0; border-color: #a287dc; }
.admin-heading h1 { font-size: 32px; margin-bottom: 6px; }
.settings-layout { margin-top: 25px; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.settings-nav { display: grid; padding: 9px; position: sticky; top: 90px; }
.settings-nav a { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 11px 12px; border-radius: 6px; }
.settings-nav .icon { color: #8269a5; font-size: 16px; }
.settings-nav a:hover { color: var(--purple-deep); background: #f5f1fc; }
.settings-form { display: grid; gap: 16px; }
.settings-section { padding: 24px 26px; }
.settings-section h2 { font-size: 19px; }
.settings-section > p { margin-top: 7px; }
.settings-section label { margin-top: 18px; }
.settings-section > .field-help { font-size: 12px; }
.model-add-bar { display: grid; grid-template-columns: minmax(115px, .8fr) minmax(150px, 1.6fr) auto; gap: 10px; align-items: end; margin-top: 15px; padding: 12px; background: #f7f5fb; border-radius: 9px; }
.settings-section .model-add-bar label, .model-add-bar select, .model-add-bar input { margin-top: 0; }
.model-add-bar .btn { white-space: nowrap; }
.model-source-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.model-source-grid textarea { font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.save-row { display: flex; justify-content: flex-end; }
.security-panel { padding: 17px 24px; margin-top: 22px; }
.security-panel summary { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.security-panel summary .icon:last-child { margin-left: auto; }
.security-panel .btn { justify-self: start; }
.notice { padding: 11px 15px; border-radius: 8px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.notice a { text-decoration: underline; }
.notice-error { border: 1px solid #f0d2ca; color: #8e4535; background: #fff3ef; }
.notice-success { border: 1px solid #c8e8da; color: #27684f; background: #ecf8f2; }

@media (min-width: 1600px) {
    .wrap { width: min(1280px, calc(100% - 120px)); }
    .hero-main { min-height: 395px; }
}
@media (max-width: 1050px) {
    .wrap { width: calc(100% - 48px); }
    .public-header-row { display: flex; gap: 12px; min-height: 68px; }
    .public-header-row .brand { min-width: 0; }
    .nav-item { gap: 6px; padding-inline: 10px; }
    .hero-main { min-height: 320px; }
    .hero-copy { padding-block: 28px; }
    .catalog-groups { gap: 14px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
    .catalog-group { padding: 17px; }
    .content-grid { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); gap: 16px; }
    .guide-card, .connection-card { padding: 21px; }
}
@media (max-width: 760px) {
    .wrap { width: calc(100% - 32px); }
    .header-inner { gap: 10px; min-height: 62px; }
    .brand { font-size: 22px; gap: 5px; }
    .brand img { width: 30px; height: 30px; }
    html { scroll-padding-top: 78px; }
    .public-header-row { min-height: 64px; flex-wrap: wrap; padding-block: 8px; gap: 8px; }
    .public-header-row .brand { flex: 1; }
    .public-actions { margin-left: auto; gap: 6px; }
    .purchase-link.btn { min-height: 44px; padding: 8px 10px; font-size: 12px; }
    .menu-toggle { padding: 0; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid #e1dce9; border-radius: 10px; background: #fbfafd; color: #51465e; }
    .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { width: 17px; height: 2px; border-radius: 2px; background: currentColor; }
    .menu-toggle span { position: relative; }
    .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
    .menu-toggle span::before { top: -5px; }
    .menu-toggle span::after { top: 5px; }
    .menu-toggle[aria-expanded=true] { background: #f2edfb; border-color: #c1ace2; color: #6339a5; }
    .menu-toggle[aria-expanded=true] span { background: transparent; }
    .menu-toggle[aria-expanded=true] span::before { top: 0; transform: rotate(45deg); }
    .menu-toggle[aria-expanded=true] span::after { top: 0; transform: rotate(-45deg); }
    /* Without JS the links remain in the header and the native service disclosure works. */
    .main-nav { order: 2; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nav-item { width: 100%; min-height: 44px; }
    .main-nav.collapsible { display: none; position: absolute; top: calc(100% + 4px); right: 0; width: min(352px, 100%); padding: 7px; border-radius: 14px; box-shadow: 0 12px 32px #211a3526; background: white; max-height: calc(100vh - 78px); max-height: calc(100dvh - 78px - env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; }
    .main-nav.collapsible.is-open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .main-nav.collapsible .nav-item { justify-content: flex-start; padding: 10px 14px; gap: 13px; }
    .main-nav.collapsible .nav-item[aria-current] { color: #6137a3; background: #f2edfb; box-shadow: none; }
    .main-nav.collapsible .services-menu > summary { display: none; }
    .main-nav.collapsible .service-menu-links { position: static; min-width: 0; margin-top: 3px; padding: 5px 0 0; border: none; border-top: 1px solid #eeeaf3; border-radius: 0; box-shadow: none; }
    .main-nav.collapsible .service-menu-links a { padding: 7px 10px; }
    .hero-copy { padding: 26px 0 28px 26px; }
    .hero-main { min-height: 285px; }
    .hero-copy p { font-size: 13px; }
    .home-hero h1 { font-size: 42px; }
    .hero-actions { gap: 8px; }
    .hero-actions .btn { padding: 9px 14px; font-size: 13px; }
    .hero-utilities { padding-inline: 26px; }
    .chip-render { left: -8%; width: 111%; max-width: none; }
    .catalog-groups { grid-template-columns: minmax(0, 1fr); }
    .image-group .catalog-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .icon-tile { width: 36px; height: 36px; font-size: 18px; border-radius: 9px; }
    .content-grid { grid-template-columns: minmax(0, 1fr); }
    .sidebar { grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
    .settings-layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .settings-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
    .settings-nav a { font-size: 12px; padding: 7px; }
}
@media (max-width: 640px) {
    .home-hero { border-radius: 16px; }
    .hero-main { grid-template-columns: minmax(0, 1fr) 30%; min-height: 0; padding: 22px 20px; }
    .hero-copy { display: contents; }
    .hero-label { position: relative; grid-column: 1 / -1; grid-row: 1; font-size: 11px; }
    .home-hero h1 { position: relative; z-index: 1; grid-row: 2; grid-column: 1; font-size: clamp(28px, 7vw, 40px); margin: 13px 0 10px; }
    .hero-copy p, .hero-actions { position: relative; grid-column: 1 / -1; }
    .hero-copy p { grid-row: 3; }
    .hero-break { display: none; }
    .hero-actions { grid-row: 4; margin-top: 16px; }
    .hero-actions .btn { min-height: 38px; }
    .hero-art { grid-row: 1 / 3; grid-column: 2; }
    .chip-render { width: 153%; height: 125%; top: -10%; left: -23%; }
    .stage-grid { inset: -20% -45% -25% -45%; }
    .stage-orbit { width: 98%; height: 25%; left: 3%; bottom: 0; }
    .hero-utilities { flex-wrap: wrap; min-height: 0; gap: 4px 17px; padding: 9px 20px; }
    .hero-address { max-width: 100%; gap: 6px; }
    .hero-address code { margin-left: 0; font-size: 12px; }
    .hero-address > span:not(.icon) { font-size: 11px; }
    .hero-tool-actions { width: 100%; justify-content: space-between; gap: 10px; }
    .hero-guide-link { font-size: 12px; }
    .catalog-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 13px; }
    .catalog-search { width: 100%; }
    .model-source-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .model-add-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
    .model-add-bar .btn { grid-column: 1 / -1; }
}
@media (max-width: 580px) {
    .wrap { width: calc(100% - 28px); }
    .brand { max-width: 65%; }
    .main-content { padding-block: 14px 27px; }
    .image-group .catalog-items { grid-template-columns: minmax(0, 1fr); }
    .icon-tile { width: 32px; height: 32px; border-radius: 8px; font-size: 17px; }
    .guide-card, .connection-card { padding: 19px 17px; }
    .guide-heading h1 { font-size: 22px; }
    .method-nav { margin-block: 13px 19px; gap: 17px; }
    .method-nav a { font-size: 13px; }
    .steps > li { padding-left: 34px; padding-bottom: 19px; }
    .steps > li::before { width: 24px; height: 23px; top: 1px; font-size: 10px; }
    .steps > li:not(:last-child)::after { left: 11px; top: 30px; }
    .steps h3 { font-size: 15px; }
    .steps p { font-size: 13px; }
    .inline-code { padding-inline: 8px 3px; }
    .inline-code code { font-size: 12px; }
    .copy-btn { padding-inline: 5px; }
    .client-nav a { font-size: 12px; padding-inline: 8px; }
    .config-fields > div { grid-template-columns: 78px 1fr; }
    .config-fields dt, .config-fields dd { padding-inline: 9px; }
    .sidebar { grid-template-columns: minmax(0, 1fr); }
    .card-intro, .card-workspace { padding: 21px 18px; }
    .card-intro-copy { max-width: 100%; }
    .pass-art { width: 72px; height: 47px; top: 18px; right: 22px; opacity: .4; }
    .pass-art span { top: 2px; left: 7px; font-size: 18px; }
    .pass-art i { left: 7px; bottom: 6px; width: 22px; height: 3px; }
    .pass-art i:last-child { left: 34px; }
    .service-links { padding: 13px 18px; }
    .footer-inner { min-height: 61px; gap: 9px; }
    .footer-description { display: none; }
    .admin-brand-label { padding-left: 10px; font-size: 12px; }
    .header-actions { gap: 3px; }
    .header-actions .btn { font-size: 12px; padding-inline: 8px; }
    .admin-main { padding-block: 20px 32px; }
    .auth-card { margin-top: 12px; padding: 23px; }
    .settings-section { padding: 19px 16px; }
    .settings-nav .icon { display: none; }
}
@media (max-width: 410px) {
    .home-hero h1 { font-size: clamp(25px, 7vw, 29px); }
    .chat-group .catalog-items { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 359px) {
    .brand { font-size: 20px; }
    .brand img { width: 27px; height: 27px; }
    .hero-utilities { padding-inline: 16px; }
    .hero-address { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; width: 100%; }
    .hero-address > .icon { display: none; }
    .hero-address > span:not(.icon) { grid-column: 1; align-self: end; }
    .hero-address code { grid-column: 1; grid-row: 2; }
    .hero-address .copy-btn { grid-column: 2; grid-row: 1 / 3; }
}
@media (pointer: coarse) and (max-width: 1024px) {
    .nav-item, .purchase-link.btn, .hero-actions .btn, .model-item, .card-workspace .btn, .faq-card summary { min-height: 44px; }
    .copy-btn, .result-key button, .header-actions .icon-button { min-width: 44px; min-height: 44px; }
    .client-nav a, .system-nav a, .method-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
    .catalog-search input[type=search], .credential-input input[type=password],
    .stack-form input:not([type=hidden]), .settings-section input:not([type=hidden]),
    .settings-section select, .settings-section textarea { min-height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::after, *::before { transition-duration: 0s !important; }
}
