/* Venn: vše, co návrh Venn neměl a projekt umí – ikony, navigace účtu, verdikt, tiery, burn, modaly, chat, dashboard, dokumentace, sdílení. */

.icon { width: 18px; height: 18px; flex: none; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-danger { background: #B3123F; color: #fff; }
.btn-danger:hover { background: var(--ink); }
.eyebrow { display: block; }
.mono { font-family: var(--mono); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.text-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 550; }
.text-link:hover { color: #B3123F; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-size: 14px; font-weight: 550; }
.link-btn.danger { color: #B3123F; }
.icon-link, .icon-btn { display: inline-grid; place-items: center; position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); transition: background-color .2s; }
.icon-link:hover, .icon-btn:hover { background: rgba(21, 19, 15, .08); }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.tag.on { background: var(--yellow); }
code { font-family: var(--mono); font-size: .9em; }
.verdict-lede { margin-top: 18px; max-width: 54ch; color: #35322A; font-size: clamp(1.02rem, 1.35vw, 1.2rem); line-height: 1.45; }
.verdict-lede code, .doc-text p code, .doc-text td code, .agent-card p code { padding: .08em .35em; border-radius: 6px; background: var(--paper-2); }

/* Scrollbary v papírovém stylu */
* { scrollbar-width: thin; scrollbar-color: rgba(21, 19, 15, .3) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(21, 19, 15, .3); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }

/* Čínština: dokud se text nepřeloží, stránka se neukáže (pojistka je v layout.html) */
.i18n-pending body { visibility: hidden; }

/* Navigace: položky hned vedle loga, akce vpravo */
.nav { justify-content: flex-start; }
.nav-links { margin-left: 12px; }
.nav-actions { flex: none; margin-left: auto; }
.nav-app .nav-links { margin-left: 0; }
.nav-toggle { display: none; }
.nav-links-socials { display: none; }
.nav-socials { display: flex; }
.nav .wallet .icon { width: 16px; height: 16px; }
.alert-count { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--magenta); color: var(--ink); font: 500 10.5px/16px var(--mono); text-align: center; }
.account-menu { position: relative; }
.account-btn { gap: 8px; }
.account-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 1.5px var(--ink); }
.account-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.account-btn .chevron { transition: transform .2s; }
.account-menu.open .chevron { transform: rotate(180deg); }
.account-dropdown { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; min-width: 250px; padding: 8px; display: none; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; box-shadow: 6px 6px 0 var(--ink); }
.account-menu.open .account-dropdown { display: block; }
.account-head { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px 12px; border-bottom: 1.5px solid var(--line); margin-bottom: 6px; font-family: var(--mono); font-size: 12.5px; }
.account-balance { color: var(--ink-2); }
.account-dropdown a, .account-dropdown button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; text-align: left; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--paper-2); }
.account-dropdown .danger { color: #B3123F; }
.keys-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 500 11px var(--mono); }

/* Hero: doplňky */
.hero-note { margin-top: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }

/* Verdikt */
.verdict-section, .features, .developers, .agents-section, .privacy { padding: clamp(72px, 12vw, 170px) var(--gutter); }
.verdict-section { padding-top: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px clamp(24px, 5vw, 80px); align-items: center; }
.scale-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 26px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--ink); }
.scale-tabs button { min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14.5px; font-weight: 550; }
.scale-tabs button.active { background: var(--ink); color: var(--paper); }
.scale-card { --verdict: var(--cyan); display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); padding: clamp(22px, 3vw, 40px); border-radius: 22px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.scale-card[data-state="partial"] { --verdict: var(--yellow); }
.scale-card[data-state="split"] { --verdict: var(--magenta); }
.scale-card strong { display: block; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
html[lang="zh-CN"] .scale-card strong { letter-spacing: 0; line-height: 1.2; }
#scale-range { margin-top: 6px; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.scale-text { margin-top: 12px; color: #35322A; }
.big-ring { position: relative; flex: none; width: clamp(130px, 15vw, 190px); aspect-ratio: 1; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .track { stroke: var(--paper-2); }
.big-ring .fill { stroke: var(--verdict); stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--pct, 0) / 100); transition: stroke-dashoffset .7s cubic-bezier(.2, .8, .2, 1), stroke .3s; }
.big-ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.big-ring b { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.big-ring span { margin-top: 4px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); }

/* Funkce */
.features { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(36px, 5vw, 70px); }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: clamp(20px, 2.2vw, 30px); border-radius: 22px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.tile > .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--plate); margin-bottom: 8px; }
.tile[data-plate="3"] > .icon { color: #fff; }
.tile h3 { font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
.tile p { color: #35322A; font-size: 15.5px; }
.tile .btn { margin-top: auto; }

/* Token: tabulka tierů + burn */
.token-lede { margin-top: 18px; max-width: min(62ch, 52vw); color: #D5D1C3; font-size: clamp(1rem, 1.25vw, 1.15rem); }
.token-hero { position: relative; }
.token-tables { position: relative; padding: 0 var(--gutter) clamp(72px, 11vw, 160px); display: grid; gap: clamp(16px, 2vw, 28px); }
.tier-table { border-radius: 22px; border: 1.5px solid rgba(242, 239, 230, .4); background: rgba(21, 19, 15, .82); backdrop-filter: blur(10px); overflow: hidden; }
.tier-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .8fr) minmax(0, .8fr); gap: 12px; align-items: center; min-height: 58px; padding: 10px clamp(14px, 2vw, 26px); border-top: 1px solid rgba(242, 239, 230, .2); font-size: 15.5px; }
.tier-row.head { border-top: 0; min-height: 44px; font-family: var(--mono); font-size: 12px; color: #A9A597; }
.tier-row.hot { background: var(--yellow); color: var(--ink); }
.t-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 650; font-size: 1.1em; }
.t-name em { font: 500 11px var(--mono); padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); }
.burn-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px clamp(20px, 3vw, 44px); padding: clamp(20px, 2.6vw, 34px); border-radius: 22px; border: 1.5px solid rgba(242, 239, 230, .4); background: rgba(21, 19, 15, .82); backdrop-filter: blur(10px); }
.burn-intro h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -0.03em; font-weight: 650; }
html[lang="zh-CN"] .burn-intro h3 { letter-spacing: 0; }
.burn-intro p { margin-top: 10px; color: #D5D1C3; font-size: 15px; }
.burn-intro .btn { margin-top: 16px; }
.burn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-content: start; }
.burn-stats b { display: block; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1; font-weight: 650; letter-spacing: -0.04em; }
.burn-stats span { display: block; margin-top: 6px; font: 400 12px var(--mono); color: #A9A597; }
.burn-feed { grid-column: 1 / -1; border-top: 1px solid rgba(242, 239, 230, .2); }
.burn-feed li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 10px 0; font: 400 13px var(--mono); border-bottom: 1px solid rgba(242, 239, 230, .12); }
.burn-feed li:last-child { border-bottom: 0; }
.burn-feed li.empty { color: #A9A597; }
.burn-feed a { margin-left: auto; text-decoration: underline; }

/* Vývojáři, agenti */
.developers { padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px clamp(24px, 5vw, 80px); align-items: center; }
.checks { margin-top: 22px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--yellow); }
.terminal, .code-block { min-width: 0; border-radius: 18px; background: var(--ink); color: var(--paper); overflow: hidden; }
.terminal-bar, .code-head { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 4px 8px 4px 16px; border-bottom: 1px solid rgba(242, 239, 230, .2); font: 400 12.5px var(--mono); color: #A9A597; }
.terminal-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--cyan); mix-blend-mode: screen; }
.terminal-bar i:nth-child(2) { background: var(--magenta); margin-left: -8px; }
.terminal-bar i:nth-child(3) { background: var(--yellow); margin-left: -8px; margin-right: 8px; }
.code-head span { flex: 1; min-width: 0; }
.code-head .icon-btn { color: var(--paper); }
.code-head .icon-btn:hover { background: rgba(242, 239, 230, .15); }
.terminal pre, .code-block pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: 400 13px/1.6 var(--mono); }
.terminal code, .code-block code { font-size: inherit; }
.t-p { color: var(--yellow); }
.t-k, .c-s { color: #7FD8F5; }
.t-s, .c-v { color: #FFE680; }
.t-n, .c-n { color: #FF8DB8; }
.t-dim, .c-m { color: #A9A597; }
.t-caret { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--paper); animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.terminal.typing .t-out { visibility: hidden; }
.agents { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(36px, 5vw, 70px); }
.agent-card { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: clamp(20px, 2.4vw, 32px); border-radius: 22px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.agent-top { display: flex; justify-content: space-between; align-items: center; }
.agent-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--plate); }
.agent-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.05; letter-spacing: -0.03em; font-weight: 650; }
.agent-card p { color: #35322A; }
.agent-card .text-link { margin-top: auto; align-self: flex-start; }
.flow402 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px; border-radius: 16px; background: var(--ink); }
.flow402 > span { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: rgba(242, 239, 230, .14); color: var(--paper); font: 400 12.5px var(--mono); }
.flow402 > span b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); color: var(--ink); font-weight: 500; font-size: 11px; }
.flow402 > span.hot { background: var(--yellow); color: var(--ink); }
.flow402 > span.hot b { background: var(--ink); color: var(--paper); }
.flow402 > i { width: 12px; height: 1.5px; background: rgba(242, 239, 230, .4); }

/* Soukromí */
.privacy { padding-top: 0; }
.privacy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(36px, 5vw, 70px); border-top: 1.5px solid var(--ink); border-left: 1.5px solid var(--ink); }
.privacy-grid > div { display: flex; flex-direction: column; gap: 8px; padding: clamp(18px, 2vw, 28px); border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); }
.privacy-grid .icon { width: 40px; height: 40px; padding: 10px; border-radius: 50%; background: var(--plate); margin-bottom: 8px; }
.privacy-grid [data-plate="3"] .icon { color: #fff; }
.privacy-grid strong { font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.12; letter-spacing: -0.02em; font-weight: 650; }
.privacy-grid span { color: #35322A; font-size: 15px; }

/* FAQ: seznam v odpovědi */
.faq-list details ul { padding: 0 44px 24px 0; list-style: disc; padding-left: 1.2em; color: #35322A; max-width: 60ch; }
.faq-list details li + li { margin-top: 6px; }

/* Patička */
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px clamp(24px, 5vw, 80px); padding: clamp(40px, 6vw, 80px) var(--gutter) 0; }
.footer-claim { font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; }
.footer-claim span { display: block; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 24px; }
.footer-cols h4 { margin-bottom: 10px; font: 400 12.5px var(--mono); color: #A9A597; }
.footer-cols a { display: block; padding: 5px 0; font-size: 15px; }
.footer-cols a:hover { color: var(--yellow); }
.footer-disclaimer { padding: 32px var(--gutter) 0; max-width: 90ch; font-size: 13.5px; line-height: 1.5; color: #B9B5A7; }

/* Modaly */
.modal { position: fixed; inset: 0; z-index: 45; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(21, 19, 15, .55); backdrop-filter: blur(4px); }
.modal-content { display: flex; flex-direction: column; width: min(680px, 100%); max-height: min(88vh, 900px); border-radius: 22px; border: 1.5px solid var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); overflow: hidden; }
.modal-content.wide { width: min(860px, 100%); }
.modal-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 20px 16px 16px 24px; border-bottom: 1.5px solid var(--ink); }
.modal-head h2 { margin-top: 4px; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; }
.modal-body, .keys-body, .changelog-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 24px; }
.modal-foot, .keys-footer { flex: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1.5px solid var(--ink); }
.modal-note { font-size: 13px; color: var(--ink-2); }
.confirm-card { width: min(440px, 100%); padding: 24px; display: block; }
.confirm-card h2 { margin-top: 14px; font-size: 1.6rem; line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; }
html[lang="zh-CN"] .confirm-card h2 { letter-spacing: 0; }
.confirm-card p { margin-top: 8px; color: #35322A; }
.confirm-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); }
.confirm-icon.danger { background: var(--magenta); }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal.closing { opacity: 0; transition: opacity .18s; }

/* Klíče */
.keys-perks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.keys-perks > div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.keys-perks .icon { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--plate); margin-bottom: 6px; }
.keys-perks strong { font-size: 15px; font-weight: 650; line-height: 1.2; }
.keys-perks span { font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.keys-login-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; padding: 12px 14px; border-radius: 16px; background: var(--yellow); border: 1.5px solid var(--ink); }
.keys-login-hint span { flex: 1; min-width: 180px; font-size: 14.5px; }
.keys-summary { margin: 16px 0 8px; font: 400 12.5px var(--mono); color: var(--ink-2); }
.keys-summary b { color: var(--ink); font-weight: 500; }
.key-row { margin-top: 8px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.key-row.saved { background: color-mix(in srgb, var(--cyan) 12%, #FBF9F3); }
.key-head { display: flex; align-items: center; gap: 12px; }
.key-logo { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); }
.key-logo img { width: 62%; height: 62%; object-fit: contain; }
.key-meta { flex: 1; min-width: 0; }
.key-meta strong { display: block; font-weight: 650; }
.key-models { display: block; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.key-status { display: inline-flex; align-items: center; gap: 6px; flex: none; font: 400 12.5px var(--mono); }
.key-form { display: none; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.key-row.open .key-form { display: flex; }
.key-input { flex: 1 1 100%; display: flex; align-items: center; min-height: 44px; padding-left: 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--paper); }
.key-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 13.5px; }
.key-get { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; }
.key-get .icon { width: 14px; height: 14px; }
.key-saved { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.key-saved code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.key-saved .link-btn { margin-left: auto; }

/* Changelog */
.release { padding: 14px 0; border-bottom: 1.5px solid var(--line); }
.release:first-child { padding-top: 0; }
.release:last-child { border-bottom: 0; }
.release-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); }
.release-version { color: var(--ink); font-weight: 500; }
.release-tag { padding: 2px 8px; border-radius: 999px; background: var(--yellow); color: var(--ink); }
.release ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; font-size: 15px; }
.release li + li { margin-top: 4px; }

/* Oznámení */
.notification { position: fixed; z-index: 60; left: 50%; bottom: 90px; display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px); width: max-content; padding: 11px 18px; border-radius: 14px; background: var(--ink); color: var(--paper); font-size: 14.5px; transform: translateX(-50%); transition: opacity .25s, transform .25s; }
.notification.hidden { opacity: 0; transform: translate(-50%, 16px); pointer-events: none; }
.notification.error .icon { color: #FF8DB8; }
.notification.success .icon { color: var(--yellow); }
.notification.info .icon { color: #7FD8F5; }

/* ==========================================================================  Chat  */
body.page-chat { height: 100vh; height: 100dvh; overflow: hidden; }
.page-chat main { position: fixed; inset: var(--app-top, 69px) 0 0; display: flex; }
.nav-app { background: var(--paper); border-bottom: 1.5px solid var(--ink); gap: 14px; padding-block: 10px; }
.nav-app .nav-links { display: none; position: absolute; top: calc(100% + 8px); right: var(--gutter); z-index: 30; flex-direction: column; gap: 0; min-width: 220px; padding: 8px; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; box-shadow: 6px 6px 0 var(--ink); }
.nav-app.open .nav-links { display: flex; }
.nav-app .nav-links a { padding: 10px; }
.nav-app .nav-toggle { display: inline-grid; }
.nav-app .nav-cta { display: none; }
.nav-app .account-meta { display: none; }
.page-chat .notification { bottom: auto; top: calc(var(--app-top, 69px) + 12px); }
.page-chat .notification.hidden { transform: translate(-50%, -16px); }
.nav-app .brand { flex: none; }
.lineup-count { order: -1; flex: none; padding: 0 8px; font: 500 13px var(--mono); }
.chip { order: 10; cursor: pointer; user-select: none; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.chip.toggled { background: var(--plate); border-color: var(--ink); color: var(--ink); }
.chip.toggled img { opacity: 1; }
.chip.toggled[data-plate="3"] { color: #fff; }
.chip.locked, .chip.unavailable { cursor: not-allowed; }
.chip.unavailable { opacity: .5; }
.model-badge { display: inline-flex; align-items: center; gap: 3px; font: 500 10.5px var(--mono); }
.model-badge .icon { width: 11px; height: 11px; }
.model-badge[hidden] { display: none; }
.model-badge.own { color: inherit; }
.workspace-shell { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.workspace-shell .workspace { flex: 1; min-height: 0; }
.chat-empty { display: none; }
.workspace-shell.is-empty .chat-empty { display: flex; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(860px, 100%); margin-top: clamp(14px, 3vh, 28px); }
.prompt { display: flex; gap: 12px; padding: 14px; text-align: left; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.prompt:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.prompt > .icon { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: var(--plate); }
.prompt[data-plate="3"] > .icon { color: #fff; }
.prompt > span { font-size: 13.5px; line-height: 1.38; color: var(--ink-2); }
.prompt b { display: block; margin-bottom: 2px; font-size: 15.5px; font-weight: 650; color: var(--ink); }
.columns { min-height: 0; }
.workspace-shell.is-empty .columns { visibility: hidden; }
.column-head h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-badge { flex: none; padding: 2px 6px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 10px var(--mono); }
.chat-tools { flex: none; display: flex; }
.chat-tool { display: grid; place-items: center; width: 34px; height: 40px; border-radius: 10px; color: var(--ink-2); }
.chat-tool:hover { color: var(--ink); background: rgba(21, 19, 15, .08); }
.chat-tool .icon { width: 15px; height: 15px; }
.drag-handle { cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.chat-message { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.chat-message + .chat-message, .msg-sources + .chat-message, .chat-message + .msg-sources { margin-top: 14px; }
.chat-message.user { width: fit-content; max-width: 100%; margin-left: auto; padding: 8px 13px; border-radius: 15px 15px 3px 15px; background: var(--ink); color: var(--paper); white-space: pre-wrap; }
.chat-message .animated-text > * + * { margin-top: .7em; }
.chat-message h3, .chat-message h4, .chat-message h5, .chat-message h6 { font-size: 1.05em; font-weight: 700; margin-top: .7em; }
.chat-message ul, .md ul { list-style: disc; padding-left: 1.25em; }
.chat-message ol, .md ol { list-style: decimal; padding-left: 1.5em; }
.chat-message li + li, .md li + li { margin-top: .3em; }
.chat-message code, .md code { font-family: var(--mono); font-size: .88em; padding: .08em .3em; border-radius: 5px; background: var(--paper-2); }
.chat-message pre, .md pre { overflow-x: auto; padding: 12px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.chat-message pre code, .md pre code { padding: 0; background: none; color: inherit; font-size: 13px; }
.md > * + * { margin-top: .7em; }
.chat-message.error { color: #B3123F; font-weight: 500; }
.chat-message.locked { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--yellow) 30%, var(--paper)); border: 1.5px solid var(--ink); }
.message-icon { display: inline-block; width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.msg-note { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font: 400 12px var(--mono); color: var(--ink-2); }
.msg-note .icon { width: 14px; height: 14px; }
.msg-files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.msg-file { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; background: rgba(242, 239, 230, .16); font-size: 12.5px; }
.msg-file img { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; }
.msg-file .icon { width: 14px; height: 14px; }
.msg-sources { font-size: 13px; border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.msg-sources summary { display: flex; align-items: center; gap: 6px; cursor: pointer; font: 400 12px var(--mono); list-style: none; }
.msg-sources summary::-webkit-details-marker { display: none; }
.msg-sources .icon { width: 14px; height: 14px; }
.msg-sources ol { margin-top: 8px; padding-left: 1.3em; list-style: decimal; }
.msg-sources li { margin-top: 4px; overflow-wrap: anywhere; }
.msg-sources a { text-decoration: underline; }
.msg-sources li span { display: block; font: 400 11.5px var(--mono); color: var(--ink-2); }
a.cite { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; margin: 0 1px; border-radius: 999px; background: var(--ink); color: var(--paper); font: 500 10.5px var(--mono); vertical-align: 1px; }
.drop-overlay { position: absolute; inset: 12px; z-index: 5; display: none; place-items: center; border-radius: 22px; border: 2px dashed var(--ink); background: rgba(242, 239, 230, .92); text-align: center; }
.workspace-shell.dropping .drop-overlay { display: grid; }
.drop-overlay .icon { margin: 0 auto 8px; width: 30px; height: 30px; }
.drop-overlay strong { display: block; font-size: 1.4rem; font-weight: 650; }
.drop-overlay span { font-size: 14px; color: var(--ink-2); }

.composer-wrap { position: relative; flex: none; padding: 10px var(--gutter) 10px; border-top: 1.5px solid var(--ink); background: var(--paper); }
.turn-bar, .web-hint { flex: none; display: flex; align-items: center; gap: 10px 16px; padding: 10px var(--gutter); border-top: 1.5px solid var(--ink); background: #FBF9F3; }
.turn-bar { justify-content: space-between; }
.turn-bar[hidden], .web-hint[hidden] { display: none; }
.turn-summary { min-width: 0; font: 400 12.5px var(--mono); color: var(--ink-2); }
.turn-buttons { flex: none; display: flex; gap: 8px; }
.quorum-btn.loading .icon { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 1s linear infinite; }
.web-hint { font-size: 13.5px; color: var(--ink-2); }
.web-hint .icon { width: 15px; height: 15px; }
.web-hint button { text-decoration: underline; font-weight: 600; color: var(--ink); min-height: 32px; }
.composer { display: block; max-width: 980px; margin-inline: auto; padding: 6px; border-radius: 24px; background: #FBF9F3; border: 1.5px solid var(--ink); }
.composer:focus-within { box-shadow: 0 0 0 3px var(--yellow); }
.composer textarea { display: block; width: 100%; max-height: 160px; padding: 8px 12px; border: 0; background: transparent; outline: 0; resize: none; line-height: 1.4; font-size: 16px; }
.composer-row { display: flex; align-items: center; gap: 4px; }
.c-tool { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; min-height: 40px; padding: 0 10px; border-radius: 999px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--ink-2); transition: background-color .2s, color .2s; }
.c-tool:hover { background: var(--paper-2); color: var(--ink); }
.c-tool.on { background: var(--cyan); color: var(--ink); }
.composer .send { margin-left: auto; min-height: 42px; padding: 0 18px; }
.composer .send .icon { width: 15px; height: 15px; }
.attach-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 6px; }
.attach-list[hidden] { display: none; }
.attach-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 220px; padding: 3px 4px 3px 8px; border-radius: 10px; background: var(--paper-2); font-size: 13px; }
.attach-chip img { width: 24px; height: 24px; border-radius: 4px; object-fit: cover; }
.attach-chip .icon { width: 14px; height: 14px; }
.attach-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attach-chip button { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.composer-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; max-width: 980px; margin: 6px auto 0; font: 400 11.5px var(--mono); color: var(--ink-2); text-align: center; }
.composer-hint { margin: 0; font: inherit; }
.composer-note { font: inherit; }
.usage-status { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 6px; color: var(--ink); }
.usage-tier { padding: 1px 7px; border-radius: 999px; background: var(--yellow); }
.usage-sep { color: var(--ink-2); }
.usage-status a { text-decoration: underline; }
.usage-status .icon { width: 13px; height: 13px; }

/* Verdikt v modalu a na sdílené stránce */
.quorum-card { --verdict: var(--magenta); }
.quorum-card.verdict-reached { --verdict: var(--cyan); }
.quorum-card.verdict-partial { --verdict: var(--yellow); }
.quorum-head { display: flex; align-items: center; gap: 16px; }
.quorum-gauge { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--verdict) calc(var(--pct) * 1%), var(--paper-2) 0); }
.quorum-gauge span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--paper); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.quorum-verdict { display: block; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 650; }
html[lang="zh-CN"] .quorum-verdict { letter-spacing: 0; }
.quorum-sub { display: block; margin-top: 4px; font: 400 12.5px var(--mono); color: var(--ink-2); overflow-wrap: anywhere; }
.quorum-card > .md { margin-top: 16px; overflow-wrap: anywhere; }
.quorum-agree, .quorum-split { margin-top: 18px; padding-top: 14px; border-top: 1.5px solid var(--line); }
.quorum-agree h3, .quorum-split h3 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 650; }
.quorum-agree ul { margin-top: 8px; padding-left: 1.2em; list-style: disc; }
.quorum-agree li + li { margin-top: 4px; }
.split-item { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--paper-2); overflow-wrap: anywhere; }
.split-item strong { font-weight: 650; }
.split-item p { margin-top: 4px; font-size: 14.5px; }
.split-models { font: 500 12px var(--mono); margin-right: 4px; }
.quorum-none, .quorum-note { display: flex; gap: 8px; margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }

/* Sdílení v modalu */
.share-preview { display: block; width: 100%; height: auto; border-radius: 12px; border: 1.5px solid var(--ink); }
.share-link { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 5px 5px 5px 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.share-link input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 13px var(--mono); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
#share-modal .modal-note { margin-top: 10px; }

/* ==========================================================================  Dokumentace  */
.docs-page, .dash-shell, .share-page, .dash-gate { padding: 96px var(--gutter) clamp(60px, 8vw, 110px); max-width: 1440px; margin-inline: auto; }
.docs-hero .section-title { max-width: none; }
.quick-start { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(26px, 4vw, 48px); }
.qs { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; font-size: 14.5px; transition: transform .2s, box-shadow .2s; }
a.qs:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.qs-n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; background: var(--yellow); font: 500 13px var(--mono); }
.qs strong { font-size: 1.1rem; font-weight: 650; }
.qs.base { background: var(--ink); color: var(--paper); }
.qs.base > span { font: 400 12px var(--mono); color: #A9A597; }
.qs.base code { font-size: 14.5px; overflow-wrap: anywhere; padding-right: 30px; }
.qs.base .icon-btn { position: absolute; top: 8px; right: 8px; color: var(--paper); }
.qs.base .icon-btn:hover { background: rgba(242, 239, 230, .15); }
.docs-tabs { position: sticky; top: 72px; z-index: 15; display: flex; gap: 4px; margin-top: 32px; padding: 5px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--paper); }
.docs-tabs::-webkit-scrollbar { display: none; }
.docs-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s; }
.docs-tabs a:hover { background: var(--paper-2); }
.docs-tabs a.active { background: var(--ink); color: var(--paper); }
.method { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 999px; font: 500 11px var(--mono); background: var(--yellow); color: var(--ink); }
.method.get { background: var(--cyan); }
.doc-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(20px, 4vw, 60px); padding: clamp(40px, 6vw, 80px) 0; border-bottom: 1.5px solid var(--line); scroll-margin-top: 130px; }
.doc-row.full { grid-template-columns: minmax(0, 1fr); }
.doc-row:last-child { border-bottom: 0; }
.doc-text { min-width: 0; }
.doc-text h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: clamp(1.7rem, 3vw, 2.6rem); line-height: 1.05; letter-spacing: -0.035em; font-weight: 650; overflow-wrap: anywhere; }
.doc-text h3 { margin-top: 22px; font-size: 1.1rem; font-weight: 650; }
.doc-text p { margin-top: 12px; color: #35322A; max-width: 66ch; }
.docs-note { padding: 10px 14px; border-radius: 12px; background: var(--yellow); color: var(--ink) !important; }
.doc-code { display: grid; gap: 12px; align-content: start; min-width: 0; }
.table-wrap { margin-top: 16px; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { padding: 10px 14px; text-align: left; font: 400 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.data-table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.data-table.params td:first-child { white-space: nowrap; }
.data-table .type { font: 400 12px var(--mono); color: var(--ink-2); white-space: nowrap; }
.data-table .right { text-align: right; }
.data-table .empty { color: var(--ink-2); text-align: center; }
.data-table a { display: inline-flex; align-items: center; gap: 4px; text-decoration: underline; }
.data-table a .icon { width: 13px; height: 13px; }
.dim { color: var(--ink-2); }
.model-cell { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.model-cell img { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ink); object-fit: contain; }
.icon.ok { width: 16px; height: 16px; }
.verdict-list { display: grid; gap: 8px; margin-top: 16px; }
.verdict-item { display: grid; grid-template-columns: 90px 70px minmax(0, 1fr); gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: #FBF9F3; font-size: 14.5px; }
.verdict-item .tag { justify-self: start; }
.verdict-item strong { font-family: var(--mono); font-weight: 500; }
.tabs { display: inline-flex; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 999px; border: 1.5px solid var(--ink); }
.tab { min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 550; }
.tab.active { background: var(--ink); color: var(--paper); }
.tab-panel[hidden] { display: none; }
.roadmap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.roadmap > div { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.roadmap strong { font-size: 1.15rem; font-weight: 650; }
.roadmap span:last-child { color: #35322A; font-size: 14.5px; }

/* ==========================================================================  Dashboard  */
.dash-gate { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.dash-gate[hidden] { display: none; }
.gate-card { display: flex; flex-direction: column; align-items: center; max-width: 640px; }
.gate-card .section-title { font-size: clamp(2.2rem, 5vw, 4rem); }
.gate-card .btn-row { justify-content: center; }
.dash-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.dash-shell[hidden] { display: none; }
.dash-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.dash-nav-wallet { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 6px 12px; margin-bottom: 6px; border-bottom: 1.5px solid var(--line); }
.wallet-chip { width: 100%; justify-content: flex-start; font-family: var(--mono); font-size: 12.5px; font-weight: 400; }
.wallet-chip .mono { flex: 1; text-align: left; }
.dash-nav > a, .dash-nav > button { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 10px; border-radius: 10px; font-size: 14.5px; font-weight: 500; text-align: left; }
.dash-nav > a:hover, .dash-nav > button:hover { background: var(--paper-2); }
.dash-nav > a.active { background: var(--ink); color: var(--paper); }
.dash-main { min-width: 0; display: grid; gap: clamp(24px, 4vw, 50px); }
.dash-sec { scroll-margin-top: 90px; min-width: 0; }
.balance-hero { padding: clamp(20px, 3vw, 36px); border-radius: 22px; background: var(--ink); color: var(--paper); }
.balance-hero .eyebrow { color: #A9A597; }
.balance-value { display: block; margin-top: 8px; font-size: clamp(2.4rem, 6vw, 5rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; overflow-wrap: anywhere; }
.balance-sub { display: block; margin-top: 6px; font: 400 13px var(--mono); color: #D5D1C3; }
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 22px; }
.ladder-bar { position: relative; display: block; height: 8px; border-radius: 999px; background: rgba(242, 239, 230, .2); overflow: hidden; }
.ladder-bar::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform .5s; }
.ladder-step strong { display: block; margin-top: 8px; font-size: 14.5px; font-weight: 650; }
.ladder-step > span:last-child { font: 400 12px var(--mono); color: #A9A597; }
.ladder-step.current strong { color: var(--yellow); }
.next-tier { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 18px; font: 400 12.5px var(--mono); color: #D5D1C3; }
.next-tier .meter { flex: 1 1 200px; }
.meter { display: block; height: 8px; border-radius: 999px; background: rgba(127, 124, 112, .25); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--magenta); transition: width .5s; }
.dash-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.dcard { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding: 18px; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.dcard .meter { width: 100%; }
.dcard.credits { background: var(--yellow); }
.dcard-label { display: flex; align-items: center; gap: 8px; font: 400 12.5px var(--mono); }
.dcard-label .icon { width: 15px; height: 15px; }
.dcard-num { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-weight: 650; letter-spacing: -0.04em; }
.dcard-num small { margin-left: 6px; font-size: .45em; font-weight: 500; letter-spacing: 0; color: var(--ink-2); }
.stat-sub { font-size: 13px; color: #35322A; }
.reset-line { display: flex; align-items: center; gap: 8px; margin-top: 12px; font: 400 12.5px var(--mono); color: var(--ink-2); }
.reset-line .icon { width: 14px; height: 14px; }
.dash-block { padding-top: clamp(20px, 3vw, 36px); border-top: 1.5px solid var(--ink); }
.dash-block-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px clamp(20px, 4vw, 50px); align-items: end; }
.dash-block-head h2 { margin-top: 6px; font-size: clamp(1.8rem, 3.6vw, 3.2rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 650; }
.dash-block-head p { color: #35322A; }
.keys-note { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--yellow); }
.burn-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.burn-grid.disabled { opacity: .5; }
.burn-grid.disabled .burn-packs { pointer-events: none; }
.burn-packs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.pack { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; padding: 14px; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; text-align: left; }
.pack.selected { background: var(--yellow); }
.pack-flames { display: flex; margin-bottom: 4px; }
.pack-flames .icon { width: 15px; height: 15px; }
.pack-tokens { font-size: 1.15rem; font-weight: 650; overflow-wrap: anywhere; }
.pack-credits { font: 400 13px var(--mono); }
.pack-hint { font-size: 12.5px; color: var(--ink-2); }
.pack.custom input { width: 100%; min-height: 38px; margin-top: 4px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--paper); font-family: var(--mono); font-size: 14px; }
.receipt { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.receipt-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14.5px; }
.receipt-row strong { font-weight: 650; text-align: right; overflow-wrap: anywhere; }
.receipt-row.big strong { font-size: 1.5rem; }
.receipt-row.muted { font-size: 13px; color: var(--ink-2); }
.receipt-arrow { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.receipt-arrow span { flex: 1; height: 1.5px; background: var(--line); }
.receipt-arrow .icon { transform: rotate(90deg); width: 15px; height: 15px; }
.burn-confirm { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.burn-confirm input { position: absolute; opacity: 0; width: 0; height: 0; }
.burn-confirm .check { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--ink); background: var(--paper); }
.burn-confirm .check .icon { width: 14px; height: 14px; opacity: 0; }
.burn-confirm input:checked + .check { background: var(--yellow); }
.burn-confirm input:checked + .check .icon { opacity: 1; }
.burn-confirm input:focus-visible + .check { outline: 2px solid var(--ink); outline-offset: 2px; }
.burn-btn { width: 100%; }
.burn-btn:disabled { cursor: not-allowed; }
.burn-status { display: flex; gap: 8px; font-size: 13.5px; }
.burn-status[hidden] { display: none; }
.burn-status.error { color: #B3123F; }
.table-title { display: flex; align-items: center; gap: 8px; padding: 12px 14px 4px; font-weight: 650; }
.api-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; align-items: start; }
.api-keys { min-width: 0; }
.key-create { display: flex; gap: 6px; padding: 5px; border-radius: 999px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.key-create input { flex: 1; min-width: 0; padding: 0 14px; border: 0; outline: 0; background: transparent; font-size: 15px; }
.new-key { margin-top: 10px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--ink); background: var(--yellow); }
.new-key[hidden] { display: none; }
.new-key-head { display: flex; gap: 8px; font-size: 14px; font-weight: 550; }
.new-key-value { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.new-key-value code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.dash-byok { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: 16px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.dash-byok > div { flex: 1 1 260px; min-width: 0; }
.dash-byok h3 { font-size: 1.15rem; font-weight: 650; }
.dash-byok p { font-size: 14px; color: #35322A; }
.icon.big { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--cyan); }

/* ==========================================================================  Sdílená stránka a 404  */
.share-page { max-width: 1180px; }
.share-head .eyebrow { text-transform: none; letter-spacing: .02em; }
.share-question { margin-top: 12px; font-size: clamp(1.9rem, 4.6vw, 4rem); line-height: 1.04; letter-spacing: -0.04em; font-weight: 650; overflow-wrap: anywhere; }
.share-models { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; font-size: 14.5px; font-weight: 550; }
.share-models span { display: inline-flex; align-items: center; gap: 6px; }
.share-models img { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--ink); object-fit: contain; }
.share-verdict { margin-top: 28px; padding: clamp(18px, 3vw, 30px); border-radius: 22px; border: 1.5px solid var(--ink); background: #FBF9F3; }
.share-answers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 12px; margin-top: 16px; }
.share-answer { min-width: 0; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; overflow: hidden; }
.share-answer .column-head { padding-right: 14px; }
.share-answer .md { padding: 14px; font-size: 15px; overflow-wrap: anywhere; }
.share-sources { margin-top: 16px; padding: 16px 18px; border-radius: 18px; border: 1.5px solid var(--ink); }
.share-sources h3 { display: flex; align-items: center; gap: 8px; font-weight: 650; }
.share-sources ol { margin-top: 8px; padding-left: 1.3em; list-style: decimal; font-size: 14.5px; }
.share-sources li { margin-top: 5px; overflow-wrap: anywhere; }
.share-sources a { text-decoration: underline; }
.share-sources li span { display: block; font: 400 12px var(--mono); color: var(--ink-2); }
.share-cta { margin-top: 28px; padding: clamp(24px, 4vw, 44px); border-radius: 22px; gap: 14px; }
.share-cta h2 { font-size: clamp(2rem, 5vw, 4rem); }
.share-cta .eyebrow { color: var(--ink); }
.share-cta .btn-row { margin-top: 6px; }
.notfound { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 96px var(--gutter) 50px; overflow: hidden; isolation: isolate; }
.notfound .hero-plates { position: absolute; top: clamp(50px, 7vh, 90px); right: 3vw; width: min(44vw, 62vh); aspect-ratio: 1; z-index: -1; }
.notfound-inner { position: relative; }
.notfound-code { font-size: clamp(5rem, 20vw, 16rem); line-height: .9; letter-spacing: -0.06em; font-weight: 700; }

/* ==========================================================================  Responzivita  */
@media (max-width: 1240px) {
    .nav-cta { display: none; }
    .nav-links { gap: 18px; }
    .account-meta { display: none; }
}
@media (max-width: 1000px) {
    .nav-toggle { display: inline-grid; }
    .nav-links { margin-left: 0; display: none; position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter); z-index: 30; flex-direction: column; gap: 0; padding: 8px; border-radius: 18px; border: 1.5px solid var(--ink); background: #FBF9F3; box-shadow: 6px 6px 0 var(--ink); }
    .nav.open .nav-links { display: flex; }
    .nav-links a { padding: 10px; }
    .nav-app { flex-wrap: wrap; row-gap: 6px; }
    .nav-app .nav-actions { margin-left: auto; }
    .nav-app .lineup { order: 3; flex-basis: 100%; }
    .nav-app .nav-links { left: var(--gutter); right: var(--gutter); min-width: 0; }
    .verdict-section, .developers { grid-template-columns: minmax(0, 1fr); }
    .bento, .privacy-grid, .roadmap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .agents { grid-template-columns: minmax(0, 1fr); }
    .token-lede { max-width: 62ch; }
    .token-tables { padding-bottom: clamp(50px, 8vw, 80px); }
    .footer-grid { grid-template-columns: minmax(0, 1fr); }
    .quick-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doc-row { grid-template-columns: minmax(0, 1fr); }
    .dash-shell { grid-template-columns: minmax(0, 1fr); }
    .dash-nav { position: static; }
    .dash-block-head, .burn-grid, .burn-panel { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .hero-note { font-size: 11.5px; }
    .nav-cta { display: none; }
    .nav { gap: 8px; }
    .nav-actions { gap: 4px; }
    .lang button { min-width: 34px; padding: 0 6px; }
    .wallet { padding: 0 10px; min-height: 38px; }
    .wallet > span[data-i18n] { display: none; }
    .alert-button { display: none; }
    .nav-app .alert-button { display: none; }
    .nav-socials .icon-link { width: 34px; height: 34px; }
    .bento, .privacy-grid, .roadmap, .quick-start, .dash-cards { grid-template-columns: minmax(0, 1fr); }
    .burn-stats b { font-size: 1.7rem; }
    .tier-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .7fr) minmax(0, .7fr); gap: 6px; font-size: 13px; }
    .tier-row.head { font-size: 10.5px; }
    .t-name { font-size: 1em; }
    .keys-perks { grid-template-columns: minmax(0, 1fr); }
    .keys-perks > div { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 8px; padding: 10px 12px; }
    .keys-perks > div .icon { margin: 0; }
    .keys-perks span { flex-basis: 100%; }
    .modal-head { padding: 16px 10px 12px 16px; }
    .modal-body, .keys-body, .changelog-body { padding: 14px 16px; }
    .modal-foot, .keys-footer { padding: 10px 16px; }
    .modal-content { box-shadow: 4px 4px 0 var(--ink); }
    .prompt-grid { grid-template-columns: minmax(0, 1fr); }
    .chat-empty { justify-content: flex-start; }
    .mark-large { width: 70px; height: 70px; margin-bottom: 8px; flex: none; }
    .composer-hint { display: none; }
    .composer-note { display: none; }
    .c-label { display: none; }
    .composer-wrap { padding-inline: 10px; }
    .turn-bar { padding-inline: 10px; }
    .turn-summary { display: none; }
    .turn-buttons { flex: 1; }
    .turn-buttons .btn { flex: 1; }
    .web-hint { flex-wrap: wrap; padding-inline: 10px; }
    .scale-card { flex-direction: column; align-items: flex-start; }
    .verdict-item { grid-template-columns: auto minmax(0, 1fr); }
    .verdict-item span:last-child { grid-column: 1 / -1; }
    .docs-tabs { top: 66px; border-radius: 18px; }
    .docs-page, .dash-shell, .share-page, .dash-gate { padding-top: 80px; }
    .ladder-step strong { font-size: 13px; }
    .share-link { flex-wrap: wrap; border-radius: 18px; padding: 8px; }
    .share-link .btn { width: 100%; }
    .key-create { flex-wrap: wrap; border-radius: 18px; padding: 8px; }
    .key-create input { flex-basis: 100%; min-height: 40px; }
    .key-create .btn { width: 100%; }
    .notification { width: calc(100vw - 32px); }
    html[lang="zh-CN"] .hero-title { font-size: clamp(2.2rem, 11vw, 5rem); }
}
/* Na dotykovém displeji nezůstane po klepnutí barva z :hover */
@media (hover: none) {
    .btn-ink:hover, .btn-primary:hover { background: var(--ink); color: var(--paper); }
    .btn-line:hover { background: transparent; color: inherit; border-color: currentColor; }
    .btn-paper:hover { background: var(--paper); }
}
@media (prefers-reduced-motion: reduce) {
    .prompt:hover, a.qs:hover { transform: none; }
}
