/* Lily user manual (/sdk/lily/manual/): loaded after lily-docs.css */
.man-sprite { position: absolute; width: 0; height: 0; }
.man-switch { margin: 12px 8px 0; font-size: 14px; font-weight: 600; }
.man-switch a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.man .ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.man .doc__group a .ic { width: 18px; height: 18px; }
.man .doc__sec h2 .ic { width: 28px; height: 28px; color: var(--red); }
.man .doc__sec .lead { font-size: 16.5px; line-height: 1.7; color: var(--text); }
.man .doc__sec ol, .man .doc__sec ul { margin: 10px 0; padding-left: 22px; }
.man .doc__sec ol { list-style: decimal; }
.man .doc__sec ul { list-style: disc; }
.man .doc__sec li { margin-bottom: 6px; line-height: 1.65; }
.man code { padding: 1px 5px; border-radius: 4px; background: var(--gray); font-family: var(--mono); font-size: .9em; overflow-wrap: anywhere; }
.man a:not(.btn) { overflow-wrap: anywhere; }
.man .doc__sec a:not(.zoom) { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.man figure { margin: 18px 0 26px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 18px 32px -28px rgba(22, 24, 29, .5); }
.man figure img { display: block; width: 100%; height: auto; }
.man figure a { display: block; cursor: zoom-in; }
.man figcaption { padding: 10px 16px; border-top: 1px solid var(--line); background: var(--gray); font-size: 14px; color: var(--muted); }
.man .figrow { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: start; margin: 18px 0 26px; }
.man .figrow figure { margin: 0; }
.man .feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.man .fc, .man .card { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.man .fc h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--red); }
.man .fc p, .man .card p { font-size: 15px; line-height: 1.65; }
.man .card h4 { margin: 4px 0 6px; }
.man .card p { color: var(--muted); }
.man .card .ic.big { width: 30px; height: 30px; color: var(--red); }
.man .grid3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 18px 0; }
.man .doc__sec ol.flow { list-style: none; padding: 0; counter-reset: man; }
.man .flow li { position: relative; counter-increment: man; min-height: 36px; padding-left: 48px; margin-bottom: 14px; }
.man .flow li::before { content: counter(man); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; font-size: 14px; }
.man .flow li b { display: block; }
.man .flow li span { color: var(--muted); }
.man .note { display: flex; gap: 12px; margin: 18px 0; padding: 14px 16px; border-left: 3px solid #1A56C4; border-radius: 6px; background: #F1F5FE; font-size: 15px; }
.man .note.warn { border-left-color: #9A5B00; background: #FFF8EB; }
.man .note.tip { border-left-color: #16794C; background: #ECF8F1; }
.man .note .ic { margin-top: 3px; }
.man .tw { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.man table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.man th, .man td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.man th { background: var(--gray); }
.man details { border-bottom: 1px solid var(--line); }
.man summary { padding: 13px 0; font-weight: 600; color: var(--ink); cursor: pointer; }
.man summary .ic { float: right; }
.man details p { padding-bottom: 14px; color: var(--muted); }
@media (max-width: 720px) { .man .feat { grid-template-columns: 1fr; } }
