:root{--chi-letter-image:url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2048%2048%22%20fill%3D%22none%22%3E%0A%20%20%3Ctitle%3E%D0%91%D1%83%D0%BA%D0%B2%D1%8B%20%E2%80%94%20%D0%BD%D0%B5%D0%BF%D1%80%D0%B5%D1%80%D1%8B%D0%B2%D0%BD%D1%8B%D0%B9%20%D0%B7%D0%BD%D0%B0%D0%BA%3C%2Ftitle%3E%0A%20%20%3Cdefs%3E%0A%20%20%20%20%3C%21--%20Two-pixel%20clearances%20follow%20the%20same%20curves%20as%20the%20three-pixel%20stroke.%20--%3E%0A%20%20%20%20%3Cmask%20id%3D%22lower-clearance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2248%22%20height%3D%2248%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22white%22%20d%3D%22M0%200h48v48H0z%22%2F%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M31%2034v1.5C31%2042%2032.3%2043%2036.5%2039.612%22%20stroke%3D%22black%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%0A%20%20%20%20%3C%2Fmask%3E%0A%20%20%20%20%3Cmask%20id%3D%22upper-clearance%22%20maskUnits%3D%22userSpaceOnUse%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2248%22%20height%3D%2248%22%3E%0A%20%20%20%20%20%20%3Cpath%20fill%3D%22white%22%20d%3D%22M0%200h48v48H0z%22%2F%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M11.5%208.388C14%206.386%2017%205.8%2017%2013%22%20stroke%3D%22black%22%20stroke-width%3D%227%22%20stroke-linecap%3D%22round%22%2F%3E%0A%20%20%20%20%20%20%3Cpath%20d%3D%22M27.629%209.446%2030.290%20-1.229%22%20stroke%3D%22black%22%20stroke-width%3D%222%22%2F%3E%0A%20%20%20%20%3C%2Fmask%3E%0A%20%20%3C%2Fdefs%3E%0A%20%20%3Cg%20stroke%3D%22currentColor%22%20stroke-width%3D%223%22%20stroke-linejoin%3D%22round%22%3E%0A%20%20%20%20%3Cpath%20d%3D%22M31%2042.735A20%2020%200%200%201%2011.5%208.388%22%20mask%3D%22url%28%23lower-clearance%29%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M11.5%208.388A20%2020%200%200%201%2030.1%204.953%22%20mask%3D%22url%28%23upper-clearance%29%22%2F%3E%0A%20%20%20%20%3Cpath%20d%3D%22M11.5%208.388C14%206.386%2017%205.8%2017%2013V32.7C17%2034.6%2017.8%2034.4%2018.6%2033.3L29.5%2018C30.6%2016.45%2031%2016.2%2031%2018.5V35.5C31%2042%2032.3%2043%2036.5%2039.612A20%2020%200%200%200%2030.1%204.953%22%2F%3E%0A%20%20%3C%2Fg%3E%0A%3C%2Fsvg%3E')}
.letter-mark{display:inline-block;width:25px;height:25px;flex:0 0 25px;background:currentColor;mask:var(--chi-letter-image) center/contain no-repeat;-webkit-mask:var(--chi-letter-image) center/contain no-repeat}.wallet-chip .letter-mark{width:32px;height:32px;flex-basis:32px}.wallet-chip{display:inline-flex;align-items:center;gap:7px;padding:7px 0;color:var(--chi-ink);border:0;background:none;font:inherit;font-variant-numeric:tabular-nums;white-space:nowrap;cursor:pointer}.profile-balance{display:flex;align-items:center;gap:12px;padding:22px 0}.profile-balance strong{font-size:28px;font-weight:500;font-variant-numeric:tabular-nums}.profile-balance .letter-mark{width:38px;height:38px;flex-basis:38px}.profile-email{color:var(--chi-muted);overflow-wrap:anywhere}.library-head .account{margin-left:0}.library-head{gap:22px}.library-head nav a{display:inline-flex;align-items:center;padding:10px 20px;border-radius:12px;text-decoration:none;color:var(--chi-muted)}.library-head nav a.active{background:var(--chi-surface);color:var(--chi-ink)}@media(max-width:600px){.library-head{gap:10px;flex-wrap:wrap}.library-head nav a{padding:8px 10px}.wallet-chip{font-size:12px}.library-head nav{margin-left:auto}}
.footer-links{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.wind-inside{display:inline-flex;align-items:center;gap:8px;color:var(--chi-muted);font-size:12px;letter-spacing:.06em}.wind-inside svg{width:28px;height:22px;stroke:currentColor;fill:none;stroke-width:1.3;stroke-linecap:round}.wind-inside span{background:linear-gradient(100deg,#a9b8cd,#c5b3ce,#a9b8cd);background-clip:text;-webkit-background-clip:text;color:transparent}.wind-create{white-space:nowrap}
.wallet-chip{cursor:default}.account[aria-label="Меню профиля"]{font-size:26px;min-width:40px;line-height:1}
.letter-mark.letter-inline{width:1.15em;height:1.15em;vertical-align:-.2em;flex:none}
@media(max-width:600px){.service-manuscript .service-title{font-size:clamp(12px,4vw,22px);line-height:1.18;letter-spacing:-.35px;min-width:0;max-width:100%}}
.library-head .chi-publisher-mark{background:var(--chi-ink)}
.wallet-chip{cursor:pointer;border-radius:8px}.wallet-chip:focus-visible{outline:2px solid var(--chi-accent);outline-offset:5px}
.wind-inside,.wind-create,.wind-action,.wind-voice,.generation-state>strong{text-shadow:0 0 7px #70b6ff70,0 0 20px #418fff45}
.wind-inside svg,.wind-create svg{filter:drop-shadow(0 0 5px #69adff80)}
.wind-create:hover,.wind-action:hover{text-shadow:0 0 8px #8bc6ff99,0 0 24px #418fff66}

/* Populated templates keep their final geometry while live values resolve. */
[data-loading-value]{transition:filter .28s ease,opacity .28s ease}
.chi-value-loading{filter:blur(8px);opacity:.55;user-select:none}
.profile-balance strong{min-inline-size:9ch;white-space:nowrap}
.balance-description{min-block-size:4.5em}
#catalog .book{transition:filter .28s ease,opacity .28s ease}
#catalog.catalog-loading .book{filter:blur(8px);opacity:.55;pointer-events:none;user-select:none}
#catalog [data-placeholder] .book-cover{background:linear-gradient(145deg,#667787,#594657)}
@media(prefers-reduced-motion:reduce){[data-loading-value],#catalog .book{transition:none}}
#catalog[aria-busy=true]{filter:none;pointer-events:auto}
#catalog{align-content:start}
#catalog .book-info{min-height:36px}

.profile-email{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:1.5em}
