.library-settings .settings-group {background:var(--surface);border:1px solid var(--edge);border-radius:18px;margin:0 0 16px;padding:6px 0;overflow:hidden;}
.library-settings .settings-group h2 {margin:4px 18px 0;font:500 16px/24px Inter,sans-serif;color:var(--muted);}
.library-settings .settings-group .setting-row {display:flex;align-items:center;gap:14px;text-align:start;width:100%;padding:12px 18px;margin:0;min-height:72px;border:0;border-radius:0;box-shadow:none;background:transparent;color:var(--ink);}
.library-settings .setting-caption {flex:1;min-width:0;}
.library-settings .setting-caption strong {display:block;font:400 18px/24px Inter,sans-serif;}
.library-settings .setting-caption small {display:block;color:var(--muted);font:400 16.5px/22px Inter,sans-serif;}
.library-settings .settings-art {display:block;flex:none;width:48px;height:48px;border-radius:14px;background-color:#fff7eb;background-image:url(assets/settings_icons_atlas.png);background-repeat:no-repeat;background-size:400% 600%;}
:root[data-tone=dark] .settings-art {background-color:#f0e4d3;}
.library-settings .setting-choices {display:flex;flex:none;align-self:center;flex-wrap:wrap;border-radius:10px;border:1px solid var(--edge);overflow:hidden;}
.library-settings .setting-choices button {width:auto;min-height:36px;padding:7px 12px;background:transparent;border:0;border-radius:0;color:var(--muted);font:400 18px/22px Inter,sans-serif;}
.library-settings .setting-choices button[aria-pressed=true] {background:var(--strong);color:var(--ink);font-weight:500;}
.setting-switch {display:inline-flex;align-items:center;width:48px;height:28px;flex:none;border-radius:18px;padding:4px;background:var(--side);border:1px solid var(--edge);}
.setting-switch::before {content:"";height:18px;width:18px;border-radius:100%;background:var(--muted);}
.setting-row[aria-checked=true] .setting-switch {background:var(--accent);}
.setting-row[aria-checked=true] .setting-switch::before {margin-inline-start:auto;background:var(--app-on-accent,#fff);}
.settings-book {display:flex;align-items:center;gap:12px;width:100%;margin:4px 0;text-align:start;}
.settings-book img {width:28px;height:28px;}
@media(max-width:700px){.library-settings .setting-row:has(.setting-choices) {flex-wrap:wrap;} .setting-row .setting-choices {flex-basis:100%;width:fit-content;flex-basis:auto;margin-inline-start:auto;} }

/* LibraryScreen.kt switches between the classic drawer, navigation rail and bottom bar. */
.library {
  height:100dvh; min-height:0; grid-template-columns:280px minmax(0,1fr); grid-template-rows:minmax(0,1fr); overflow:hidden;
}
.library>.shelf { min-width:0; height:100%; overflow:auto; overscroll-behavior:contain; padding:28px 44px 36px; }
.library>.classic-shelf-rail {
  --nav-paper:var(--side); --nav-selected:var(--surface); --nav-edge:var(--edge); --nav-button:var(--strong);
  --nav-ink:var(--ink); --nav-muted:var(--muted); --nav-accent:var(--accent);
  display:flex; flex-direction:column; align-items:stretch; gap:0; height:100%; min-height:0; min-width:0;
  padding:0 16px 20px; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  border:none; border-radius:0 26px 26px 0; color:var(--nav-ink); background:var(--nav-paper);
}
:root[data-theme="classic"] .classic-shelf-rail {
  --nav-paper:#fbf1e1; --nav-selected:#fffcf7; --nav-edge:#e9d7bc; --nav-button:#f3d8ad;
  --nav-ink:#51473d; --nav-accent:#916331; --nav-muted:#796f61;
}
.classic-shelf-rail>* { flex:none; }
.classic-shelf-rail .brand { margin:0; padding:28px 0 28px 14px; display:flex; justify-content:flex-start; align-items:center; gap:8px; }
.classic-shelf-rail .brand img:first-child { display:block; width:32.4px; height:32.4px; object-fit:contain; }
.library .brand-filter { position:absolute; pointer-events:none; color:var(--ink); }
:root[data-theme="classic"] .brand-filter { color:#51473d; }
.library .brand .brand-name { display:block; width:145px; height:21px; object-fit:contain; }
.shelf-heading .brand { display:none; }
.library .shelf-heading { display:block; }
.shelf-heading-detail { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-height:40px; }
.shelf-heading-detail small { flex:1; color:var(--muted); font:400 17px/24px Inter,sans-serif; }
@media (max-width:999.98px),(max-height:479.98px) {
  .library .shelf-heading .brand { display:flex; align-items:center; justify-content:flex-start; gap:8px; margin:0 0 6px; height:48px; }
  .shelf-heading .brand img:first-child { width:32.4px; height:32.4px; }
}
.classic-shelf-rail button { display:flex; align-items:center; justify-content:flex-start; color:inherit; }
.classic-shelf-rail .rail-create {
  justify-content:center; gap:12px; width:100%; min-height:56px; margin:0 0 22px; padding:8px 12px;
  background:var(--nav-button); border:0; border-radius:18px; font:500 19px/27px Inter,sans-serif;
}
.classic-shelf-rail .rail-create img { width:26px; height:26px; }
.classic-shelf-rail .rail-create span { display:block; }
.library-tabs { display:flex; flex-direction:column; }
.classic-shelf-rail .library-tabs button,.classic-shelf-rail .drawer-only>button,.classic-shelf-rail .rail-folder {
  width:100%; min-height:58px; flex:none; margin:3px 0; padding:7px 12px 7px 16px; gap:12px; border:1px solid transparent;
  box-shadow:none; border-radius:16px; background:transparent; font:400 19px/25px Inter,sans-serif; text-align:start;
}
.classic-shelf-rail .library-tabs img,.classic-shelf-rail .drawer-only>button img { width:42px; height:42px; object-fit:contain; flex:none; }
.classic-shelf-rail [data-act="rules"] img { transform:scale(1.25); }
.classic-shelf-rail .nav-label { display:block; white-space:normal; overflow:visible; text-overflow:clip; }
.classic-shelf-rail .short-label,.compact-create { display:none; }
.classic-shelf-rail button[aria-current=page] { background:var(--nav-selected); border-color:var(--nav-edge); font-weight:500; }
.rail-folders { padding:0; margin:20px 0 0; }
.rail-folders h2 { margin:0 12px 10px; border-top:1px solid var(--nav-edge); padding:20px 0 0 2px; color:var(--nav-muted); font:400 18px/25px Inter,sans-serif; }
.classic-shelf-rail .rail-folder { margin:2px 0; min-height:56px; font-size:18px; }
.classic-shelf-rail .rail-folder .folder-glyph { width:30px; height:30px; flex:none; }
.classic-shelf-rail .rail-folder span { display:block; flex:1; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.classic-shelf-rail .rail-folder small { color:var(--nav-muted); font:400 16px/22px Inter,sans-serif; }
.library button:focus-visible { outline:2px solid var(--accent); outline-offset:-3px; }
.library .heading { margin:0 0 12px; flex-wrap:wrap; }
.library .heading h1 { margin:0; }
.library .hero { margin-bottom:12px; }
.library .shelf-search { max-width:740px; flex-wrap:wrap; }
.library .shelf-search input { flex:1 1 230px; height:52px; border-radius:26px; padding-inline:18px; }
.shelf-folders:empty { display:none; }
.shelf-folders .folder-glyph { width:38px; height:38px; flex:none; }
.library-settings { max-width:680px; padding-top:6px; }
.library-settings h2,.shelf-review h2,.search-section { margin:20px 0 8px; color:var(--muted); font:500 18px/25px Inter,sans-serif; }
.library-settings button,.shelf-review button { display:flex; align-items:center; gap:12px; min-height:56px; padding:8px 14px; color:var(--ink); background:var(--surface); border:1px solid var(--edge); border-radius:14px; font:400 18px/25px Inter,sans-serif; text-align:start; }
.library-settings button { width:100%; }
.library-settings button img,.shelf-review button img,.shared-shelf-list [data-room] img { width:36px; height:36px; object-fit:contain; }
.shelf-review { margin:12px 0 16px; }
.shelf-review>div { display:flex; gap:10px; overflow-x:auto; }
.shelf-review button { flex:none; max-width:100%; }
.shelf-review button span { min-width:0; overflow-wrap:anywhere; }
.shelf-review button small { display:block; color:var(--muted); font-size:15px; }
.shelf-review button span:last-child { margin-left:8px; white-space:nowrap; color:var(--accent); }
.shared-shelf-list { max-width:760px; }
.shared-shelf-list [data-room] { display:flex; align-items:center; gap:12px; }
.shared-shelf-list [data-room] small { margin-left:auto; color:var(--muted); }
.shared-consent .primary { margin-top:12px; }

@media (min-width:600px) and (max-width:999.98px) and (min-height:480px) {
  .library { grid-template-columns:84px minmax(0,1fr); }
  .library>.shelf { padding:12px 36px 32px; }
  .library>.classic-shelf-rail { padding:12px 2px; border-right:1px solid var(--nav-edge); border-radius:0; }
  .classic-shelf-rail .brand,.classic-shelf-rail .drawer-only,.classic-shelf-rail .rail-create span { display:none; }
  .classic-shelf-rail .rail-create { width:56px; min-height:56px; margin:4px auto 24px; padding:0; border-radius:16px; }
  .classic-shelf-rail .library-tabs button { min-height:72px; justify-content:center; flex-direction:column; gap:1px; padding:5px 1px; margin:2px 0; font:400 16px/19px Inter,sans-serif; text-align:center; border:0; }
  .classic-shelf-rail .library-tabs img { width:38px; height:38px; }
  .classic-shelf-rail .library-tabs .nav-label { display:block; }
  .classic-shelf-rail .library-tabs button[aria-current=page] { background:transparent; }
  .classic-shelf-rail .library-tabs button[aria-current=page] img { border-radius:12px; background:var(--nav-selected); }
}
@media (max-width:599.98px), (max-height:479.98px) {
  .library { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) auto; }
  .library>.shelf { grid-area:1/1; padding:14px 20px 84px; }
  .library>.classic-shelf-rail { grid-area:2/1; flex-flow:row nowrap; height:auto; padding:5px 6px max(5px,env(safe-area-inset-bottom)); max-width:100%; overflow-x:auto; overflow-y:hidden; border-radius:0; border-top:1px solid var(--edge); background:var(--surface); }
  .classic-shelf-rail .brand,.classic-shelf-rail .drawer-only,.classic-shelf-rail .rail-create { display:none; }
  .classic-shelf-rail .library-tabs { flex-flow:row nowrap; }
  .classic-shelf-rail .library-tabs button { flex-direction:column; align-items:center; justify-content:center; gap:3px; width:78px; height:68px; min-height:0; margin:0; padding:7px 2px; border:none; border-radius:14px; text-align:center; font:400 13px/17px Inter,sans-serif; }
  .classic-shelf-rail .library-tabs img { width:30px; height:30px; }
  .classic-shelf-rail .library-tabs :is(.nav-label,.short-label) { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .classic-shelf-rail .library-tabs button:has(.short-label) .nav-label { display:none; }
  .compact-create { position:fixed; bottom:calc(91px + env(safe-area-inset-bottom)); right:16px; display:flex; align-items:center; gap:8px; min-height:50px; padding:10px 16px; border:1px solid var(--edge); border-radius:18px; background:var(--strong); color:var(--ink); font:500 17px/24px Inter,sans-serif; z-index:1; }
  .compact-create img { width:24px; height:24px; }
}


/* AiryLibrary.kt uses this drawer only on wide tablets; the rail and bottom bar retain their own layout. */
.library.airy-library { grid-template-columns:256px minmax(0,1fr); }
.airy-library>.shelf { padding:24px 30px 40px; }
.airy-library>.airy-rail { display:flex;flex-direction:column;height:100%;min-height:0;min-width:0;padding:0 14px;background:var(--side);border:0;border-radius:0;overflow:hidden; }
:root[data-theme=classic] .airy-rail { background:#fbf1e1;color:#51473d;--airy-on:#fffcf7; }
:root[data-tone=dark][data-theme=classic] .airy-rail { background:#28251f;color:#f4eadb;--airy-on:#443a2c; }
.airy-rail .brand { display:flex;align-items:center;gap:7px;margin:0;padding:22px 8px 24px; }
.airy-rail .brand .brand-name { width:125px;height:18px; }
.airy-scroll { flex:1;min-height:0;overflow:auto;overscroll-behavior:contain; }
.airy-rail button { color:inherit;background:transparent;border:0;box-shadow:none; }
.airy-rail nav button,.airy-rail .rail-folder { display:flex;width:100%;align-items:center;text-align:start;gap:14px;padding:7px 12px;min-height:54px;margin:3px 0; }
.airy-rail nav button[aria-current=page],.airy-rail .rail-folder.active { background:var(--airy-on,var(--surface));font-weight:500; }
.airy-rail nav button span,.airy-rail .rail-folder span { flex:1;min-width:0; }
.airy-rail nav small,.airy-rail .rail-folder small { font-size:17px;color:var(--muted); }
.airy-rail nav svg { width:28px;height:28px; }
.airy-rail .rail-folders { margin:16px 0; }
.airy-rail .rail-folders h2 { display:flex;align-items:center;justify-content:space-between;margin:0;padding:0 0 6px 10px;border:0;font:500 19px/26px Inter,sans-serif; }
.airy-rail .rail-folders h2 button { min-height:32px;width:32px;padding:5px; }
.airy-rail .rail-folders h2 img,.airy-rail .rail-folder svg { width:22px;height:22px; }
.airy-rail .rail-folder { min-height:40px;margin:0; }
.airy-rail footer { display:flex;align-items:center;gap:2px;padding:6px 4px max(14px,env(safe-area-inset-bottom)); }
.airy-rail footer button { width:40px;height:40px;min-height:40px;padding:2px;border-radius:50%;display:grid;place-items:center;margin:0; }
.airy-rail footer button:last-child { margin-left:auto; }
.airy-rail footer svg { width:26px;height:26px; }
.airy-heading { margin:22px 0 16px; }
.airy-heading>div { display:flex;align-items:center;gap:6px; }
.airy-heading h1 { font:500 28px/36px Inter,sans-serif;font-variation-settings:"opsz" 24;letter-spacing:-.4px;margin:0 auto 0 0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.airy-heading button { display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:none;min-height:38px;border:0;border-radius:11px;background:var(--side);color:var(--ink);padding:0 12px;font:400 17px/22px Inter,sans-serif; }
.airy-heading button.icon { width:40px;height:40px;padding:4px;background:transparent; }
.airy-heading button.icon img { width:32px;height:32px; }
.airy-heading button[data-act=createMenu] { width:38px;background:var(--accent); }
.airy-heading button[data-act=createMenu] img { width:20px;height:20px; }
.airy-heading .airy-segment { display:inline-flex;background:var(--side);padding:2px;border-radius:10px; }
.airy-segment button { border-radius:8px;padding:0 10px;min-height:34px; }
.airy-segment [aria-pressed=true] { background:var(--surface);color:var(--accent);box-shadow:0 1px 3px #24212a24; }
.airy-heading svg { width:16px;height:16px; }
.airy-search { display:flex;align-items:center;gap:10px;background:var(--surface);border:1px solid var(--edge);border-radius:12px;width:min(460px,100%);height:40px;margin:14px 0 0;padding:0 12px; }
.airy-search img { width:20px;height:20px; }
.airy-search input { min-width:0;width:100%;height:100%;padding:0;color:var(--ink);background:transparent;border:0;font:400 17px Inter,sans-serif; }
.airy-library .searching :is(.hero,.shelf-review) { display:none; }
.airy-library .searching #books { grid-template-columns:minmax(0,1fr); }
.airy-card .tile-info { display:flex;align-items:center; }
.airy-card .tile-info small { flex:1; }
.airy-card .tile-info img { width:15px;height:15px; }
.airy-card .book-more { width:34px;height:34px;padding:0;border-radius:50%; }
.as-list .airy-card { display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center; }
.as-list .airy-card .tile-open { flex-direction:row; }
.as-list .airy-card .cover { order:-1;flex:none;width:92px; }
.library-settings .pref-row { display:flex;gap:14px;align-items:center;width:100%;min-height:64px;padding:8px 14px;background:var(--surface);border:1px solid var(--edge);border-radius:14px; }
.pref-row>img { width:36px;height:36px; }
.pref-row>span { flex:1; }
.pref-segment { display:flex;flex-wrap:wrap; }
.library-settings .pref-segment button { width:auto;min-height:36px;padding:4px 10px;border-radius:8px;font-size:16px; }
.pref-segment button[aria-pressed=true] { background:var(--strong);font-weight:500; }
.pref-row i { width:44px;height:26px;border-radius:20px;background:var(--edge);padding:4px; }
.pref-row i::after { display:block;content:"";width:18px;height:18px;border-radius:50%;background:var(--surface); }
.pref-row[aria-checked=true] i { background:var(--accent); }
.pref-row[aria-checked=true] i::after { margin-left:auto; }
#sheet:has(.shelf-themes) { width:min(860px,94vw);max-height:90dvh;border:0;border-radius:24px;padding:16px; }
#sheet:has(.shelf-themes) .dialog-top h2 { font-size:22px; }
#sheet:has(.shelf-themes) #dismiss { display:none; }
.shelf-themes { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(154px,100%),1fr));gap:10px;padding:4px; }
.shelf-themes button { width:100%;position:relative;padding:0;aspect-ratio:3/1;min-height:0;overflow:hidden;border-radius:12px;border:1px solid var(--edge);background:var(--side); }
.shelf-themes img { display:block;width:100%;height:100%;object-fit:contain; }
.shelf-themes [data-theme=classic] img { height:80%;margin:auto; }
.shelf-themes [aria-checked=true] { border:3px solid var(--accent); }
.shelf-themes [aria-checked=true]::after { content:"✓";position:absolute;right:4px;top:4px;width:21px;height:21px;border-radius:50%;background:var(--accent);color:var(--on-accent);font:bold 15px/21px Inter,sans-serif; }
#sheet:is(:has(.create-grid),:has(.book-menu),:has([data-month-planner])) { inset:auto 0 0;margin:0 auto;width:min(640px,100vw);max-width:100vw;max-height:min(92dvh,calc(100dvh - env(safe-area-inset-top) - 16px));padding:0 20px max(24px,env(safe-area-inset-bottom));border:0;border-radius:28px 28px 0 0;overscroll-behavior:contain; }
#sheet:is(:has(.create-grid),:has(.book-menu),:has([data-month-planner]))::before { content:"";display:block;width:32px;height:4px;border-radius:2px;background:var(--muted);opacity:.55;margin:16px auto 20px; }
#sheet:has(.create-grid) .dialog-top h2 { font-size:22px; }
#sheet .create-grid button { background:var(--side); }
#sheet .create-grid .create-templates { position:relative;padding-right:36px;background:var(--strong); }
.create-grid .create-templates::after { content:"›";position:absolute;right:16px;align-self:center;color:var(--muted); }
#sheet .create-grid { grid-template-columns:repeat(3,minmax(0,1fr));column-gap:8px;row-gap:10px; }
@media(max-width:540px){.pref-row { flex-wrap:wrap; }.library-settings .pref-segment button { font-size:14px; }}



#sheet:has(.cover-designer) { width:min(1100px,calc(100vw - 32px));max-width:none;height:min(820px,calc(100dvh - 32px));max-height:none;padding:0;border-radius:26px;overflow:hidden; }
#sheet:has(.cover-designer) form { height:100%;display:flex;flex-direction:column; }
#sheet:has(.cover-designer) .dialog-top { padding:10px 20px;margin:0; }
#sheet:has(.cover-designer) .dialog-top h2 { font-size:25px; }
#sheet:has(.cover-designer) #fields { min-height:0;flex:1;overflow:hidden; }
.cover-designer { height:100%;display:flex;flex-direction:column;min-height:0; }
.cover-designer>p { margin:0;padding:0 24px 12px;border-bottom:1px solid var(--edge);color:var(--muted); }
.designer-columns { padding:22px;display:grid;grid-template-columns:280px minmax(0,1fr);gap:26px;flex:1;min-height:0; }
.designer-columns>section { overflow-y:auto;overscroll-behavior:contain;min-width:0; }
.designer-columns h3 { margin:16px 0 9px;font-size:20px; }
.designer-preview { display:grid;justify-items:center;gap:12px;background:var(--side);padding:18px;border-radius:20px; }
.designer-book,.designer-patterns i,.book-menu-preview i { display:grid;place-items:center;background-size:cover;border-radius:3px 9px 9px 3px;box-shadow:0 1px 4px #34241533; }
.designer-book { width:142px;aspect-ratio:0.74;padding:12px; }
.designer-book span { max-width:100%;padding:4px 10px;border-radius:4px;background:#fff9e9e8;color:#40372a;overflow-wrap:anywhere;text-align:center; }
.designer-colors,.designer-chips,.designer-tabs { display:flex;gap:7px;flex-wrap:wrap;margin:10px 0; }
.designer-chips button,.designer-tabs button,.designer-patterns button { border:1px solid var(--edge);border-radius:12px;background:var(--surface);color:var(--ink);padding:6px 10px;min-height:36px; }
.cover-designer button[aria-pressed=true] { outline:2px solid var(--accent);outline-offset:-2px;background-color:var(--strong); }
.designer-colors button { width:34px;height:34px;min-height:34px;border-radius:50%;border:2px solid var(--surface); }
.designer-patterns { display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:9px; }
.designer-patterns button { display:grid;justify-items:center;gap:6px;min-width:0;padding:10px 6px;font-size:14px; }
.designer-patterns i { width:54px;aspect-ratio:.74; }
#sheet:has(.cover-designer) #dialogActions { display:flex;justify-content:space-between;align-items:center;padding:12px 22px;border-top:1px solid var(--edge);margin:0; }
.book-menu-preview { display:flex;align-items:center;gap:14px;padding:4px 4px 14px;border-bottom:1px solid var(--edge); }
.book-menu-preview i { width:44px;height:58px; }
.book-menu-preview small,.book-menu button small { color:var(--muted); }
.book-menu>button { display:flex;width:100%;gap:14px;align-items:center;text-align:start;padding:10px 8px;min-height:48px;background:transparent;border:0;color:var(--ink);font:400 17.5px Inter,sans-serif; }
.book-menu>button span { flex:1; }
.book-menu>button img { width:25px;height:25px; }
.book-menu [data-book-action=trash] { color:#a74841; }
@media(max-width:790px) { .designer-columns { display:block;overflow-y:auto;padding:18px; }.designer-columns>section { overflow:visible; }.designer-columns>section+section { margin-top:18px; } }


.airy-heading [data-act=libraryBatch] { padding:0 6px;background:transparent;font-size:16px; } .airy-heading [data-act=libraryBatch] img { width:21px;height:21px; }

.airy-rail .library-tabs button>span { white-space:normal;overflow:visible;text-overflow:clip; }
.library .airy-heading .airy-search input { background:transparent;border:0;border-radius:0;box-shadow:none; }
.airy-heading button[data-act=createMenu] img { filter:brightness(0) invert(1); }
.library .classic-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(min(172px,100%),1fr));gap:34px 30px;align-items:start; }
.library .classic-card { position:relative;background:transparent;box-shadow:none;border:0;border-radius:0;padding:0; }
.classic-card .tile-open { display:flex;flex-direction:column;align-items:stretch;padding:0;width:100%; }
.library .classic-card .cover { width:100%;height:auto;aspect-ratio:0.76;border-radius:8px;margin:0; }
.classic-card .tile-open strong { order:1;height:auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-align:start;min-height:52px;margin:10px 32px 0 0;padding:0;font:400 20px/26px Inter,sans-serif; }
.classic-card .tile-open strong img { width:15px;height:15px;margin-inline-end:4px; }
.library .classic-card .tile-info { display:block;position:static;margin:0;padding:0; }
.classic-card .tile-info small { display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px; }
.classic-card .tile-info .book-more { position:absolute;right:-4px;bottom:auto;top:0;margin-top:calc(100% / 0.76 + 8px);padding:0;width:34px;height:34px;min-height:34px; }
.classic-grid .folder-tile { display:flex;align-items:flex-start;flex-direction:column;gap:3px;background:transparent;border:0;padding:0;text-align:start; }
.classic-grid .folder-tile .folder-glyph { width:100%;height:auto;aspect-ratio:1;margin-bottom:10px; }
.classic-grid .folder-tile span { font-size:18px;font-weight:500; }
.classic-grid .folder-tile small { font-size:16px;color:var(--subtle); }
@media(max-width:599px){
 .library .classic-grid {grid-template-columns:repeat(auto-fill,minmax(min(138px,100%),1fr));gap:22px 18px;}
 .classic-card .tile-open strong {font-size:19px;line-height:25px;min-height:50px;}
}
