.library-page { min-height: 100vh; display: flex; flex-direction: column; }
.library-main { flex: 1; }
.library-page [hidden] { display: none !important; }
.library-page [aria-current="page"] { color: var(--ink); }
.library-heading { display: flex; justify-content: space-between; align-items: center; gap: 48px; padding: 66px 0 48px; }
.library-eyebrow { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; color: var(--muted); }
.library-eyebrow > span { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(158,222,1,.12); }
.library-heading h1 { font-size: clamp(40px, 5vw, 66px); }
.library-lead { color: var(--muted); font-size: 16px; margin-top: 22px; max-width: 600px; }
.library-mark { display: flex; align-items: flex-end; gap: 9px; padding: 16px 30px 0; transform: rotate(-5deg); }
.book { height: 166px; width: 54px; border: 1px solid rgba(255,255,255,.6); border-radius: 12px; background: #e1e1e1; box-shadow: 5px 7px 12px #bfbfbf, -4px -4px 12px #fafafa; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 17px 0; }
.book span { writing-mode: vertical-rl; font-size: 12px; font-weight: 500; }
.book i { width: 16px; height: 3px; border-radius: 2px; background: currentColor; opacity: .45; }
.book-two { height: 187px; background: var(--ink); color: #f1f1f1; border-color: #393939; }
.book-three { height: 176px; background: var(--accent); border-color: #b9e75a; }
.book-four { height: 151px; transform: rotate(9deg); transform-origin: bottom; margin-left: 3px; }
.catalog-controls { display: grid; grid-template-columns: minmax(0,1fr); gap: 20px; background: rgba(255,255,255,.26); border: 1px solid rgba(255,255,255,.8); border-radius: 22px; padding: 22px; box-shadow: 6px 8px 22px rgba(174,174,174,.18); }
.catalog-controls label, .chip-label { display: block; font-size: 12px; font-weight: 550; margin: 0 0 9px 3px; color: var(--muted); }
.catalog-controls input { width: 100%; height: 50px; font: inherit; font-size: 14px; color: var(--ink); border: 1px solid #cecece; border-radius: 12px; background-color: #e8e8e8; padding: 0 15px 0 45px; box-shadow: var(--inset); }
.catalog-controls input:disabled { cursor: default; opacity: .65; }
.chip-field:has(.chip-row:empty) { display: none; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 15px; font: inherit; font-size: 13px; color: var(--ink); white-space: nowrap; border: 1px solid rgba(255,255,255,.8); border-radius: 999px; background: var(--bg); box-shadow: var(--control); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s; }
.chip-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip:hover { background: #efefef; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-dark); box-shadow: none; }
.chip[aria-pressed="true"] .chip-count { color: var(--accent); }
.chip:disabled { cursor: default; opacity: .4; box-shadow: none; background: transparent; border-color: var(--quiet-line); }
.chip:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.catalog-controls input::placeholder { color: #626262; }
.input-wrap { position: relative; }
.input-wrap svg { position: absolute; left: 15px; top: 15px; color: var(--muted); pointer-events: none; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; font-size: 13px; color: var(--muted); padding: 8px 3px; }
.reset-button { border: 0; background: transparent; padding: 12px 0 12px 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; min-height: 294px; padding: 38px 24px 48px; border: 1px dashed #bfbfbf; border-radius: 24px; }
.empty-icon { display: grid; place-items: center; height: 70px; width: 70px; border-radius: 20px; background: var(--bg); box-shadow: var(--control); color: #666; margin-bottom: 24px; }
.empty-state h2 { font-size: 22px; line-height: 1.3; }
.empty-state p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 500px; }
.empty-state .button { margin-top: 22px; }
.library-footnote { display: flex; align-items: center; gap: 12px; margin: 30px 0 58px; color: var(--muted); font-size: 12px; }
.footnote-symbol { font-size: 18px; color: var(--ink); }
.library-footnote a { margin-left: auto; white-space: nowrap; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.tool-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.tool-grid:empty { display: none; }
.tool-card { display: flex; flex-direction: column; gap: 16px; padding: 25px; border-radius: 22px; border: 1px solid rgba(255,255,255,.8); box-shadow: var(--control); background: rgba(255,255,255,.2); min-width: 0; position: relative; transition: background-color .15s; }
.tool-card:has(a.tool-card-link):hover { background: rgba(255,255,255,.45); }
a.tool-card-link::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
a.tool-card-link:focus-visible { outline: none; }
a.tool-card-link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 3px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.verified-badge { font-size: 11px; font-weight: 550; padding: 5px 9px; border-radius: 7px; background: var(--accent); }
.card-signals { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; color: var(--ink-soft); }
.card-signals li { display: inline-flex; align-items: center; gap: 6px; }
.card-signals li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.format-badge { display: inline-flex; align-self: flex-start; width: fit-content; padding: 5px 10px; border-radius: 7px; font-size: 11px; font-weight: 550; background: var(--ink); color: #f2f2f2; }
.tool-card h2 { font-size: 21px; overflow-wrap: anywhere; }
.tool-card > p { color: var(--muted); font-size: 14px; }
.tool-directions { display: flex; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 11px; }
.tool-directions span { background: rgba(255,255,255,.4); border: 1px solid #d5d5d5; border-radius: 6px; padding: 3px 8px; }
.tool-card-link { margin-top: auto; text-align: left; background: transparent; border: 0; border-top: 1px solid #cecece; padding: 16px 0 0; min-height: 44px; font-size: 13px; font-weight: 550; cursor: pointer; }
.tool-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.no-script { padding: 20px; text-align: center; }
#tool-dialog { width: min(600px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; border: 1px solid #fff; padding: 30px; border-radius: 24px; background: var(--bg); color: var(--ink); box-shadow: 0 24px 90px #0004; }
#tool-dialog::backdrop { background: #19191980; backdrop-filter: blur(4px); }
.dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
#close-dialog { border: 0; border-radius: 50%; background: #d9d9d9; width: 44px; height: 44px; font-size: 27px; cursor: pointer; }
#tool-title { font-size: 29px; overflow-wrap: anywhere; }
#tool-summary, #tool-details { color: var(--muted); margin-top: 16px; white-space: pre-line; }
#tool-directions { margin: 22px 0; }
#tool-link { margin-top: 4px; }
@media (max-width: 920px) { .library-mark { padding-right: 10px; gap: 6px; } .book { width: 40px; } .library-heading { gap: 24px; } .tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 640px) { .library-heading { padding: 38px 0 30px; } .library-heading h1 { font-size: clamp(35px,8vw,48px); } .library-mark { display: none; } .library-lead { font-size: 14px; margin-top: 18px; } .library-eyebrow { margin-bottom: 17px; } .wide-break { display: none; } .catalog-controls { padding: 16px; gap: 16px; } .catalog-controls input { font-size: 16px; } .chip-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: -6px -16px; padding: 6px 16px 10px; scroll-padding: 0 16px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); } .chip-row::-webkit-scrollbar { display: none; } .chip { flex-shrink: 0; height: 38px; padding: 0 13px; } .results-bar { font-size: 12px; min-height: 65px; } .reset-button { font-size: 12px; } .empty-state { padding: 34px 20px; min-height: 290px; } .empty-state h2 { font-size: 20px; } .library-footnote { flex-wrap: wrap; margin: 24px 0 38px; gap: 7px; } .library-footnote p { flex: 1; } .library-footnote a { width: 100%; margin: 9px 0 0 23px; } .tool-grid { grid-template-columns: 1fr; gap: 16px; } #tool-dialog { padding: 22px; } }
/* Бумага (13.10.2026): Hub говорит языком главной — плоско, тонкие линии, крупный заголовок. */
.library-heading h1 { font-size: clamp(34px, 5.4vw, 72px); }
.library-lead { color: #272923; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.35; letter-spacing: -0.03em; }
.library-eyebrow { display: block; font-size: 12px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; color: #4d5047; }
.library-eyebrow > span { display: none; }
.book { border: 1px solid #cfcfc4; background: #e7e7de; box-shadow: none; }
.book-two { background: #1b1e18; border-color: #1b1e18; }
.book-three { border-color: #8fc900; }
.catalog-controls { background: transparent; border: 1px solid #deded6; box-shadow: none; }
.catalog-controls input { background-color: transparent; border-color: #cfcfc4; box-shadow: none; border-radius: 999px; }
.chip { background: transparent; border-color: #cfcfc4; box-shadow: none; }
.chip:hover { background: #e7e7de; }
.chip[aria-pressed="true"] { background: #1b1e18; border-color: #1b1e18; }
.tool-card { background: transparent; border-color: #cfcfc4; box-shadow: none; }
.tool-card:has(a.tool-card-link):hover { background: #ecece4; }
.tool-directions span { background: transparent; border-color: #deded6; }
.tool-card-link { border-top-color: #deded6; }
.format-badge { background: #1b1e18; }
#tool-dialog { border-color: #deded6; }
