html{scrollbar-gutter:stable}.table-open::after{content:'';position:fixed;inset:0;background:#20180eb3;z-index:85}
.table-shelf{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(860px,calc(100% - 24px));max-height:calc(100dvh - 100px);overflow:auto;background:var(--pale);color:var(--ink);border-radius:30px 30px 0 0;padding:26px;z-index:90;box-shadow:0 -12px 60px #1b170c33}
.shelf-cap{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px;font-family:Fraunces,serif;font-size:23px}.shelf-subjects{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.shelf-pages{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;background:var(--orange);padding:12px;border-radius:24px}
.table-shelf a{display:flex;align-items:center;justify-content:center;min-height:44px;background:var(--blue);color:var(--white);padding:13px 18px;border-radius:24px;font-family:Karla,sans-serif;font-size:16px;font-weight:600;line-height:1.3;word-break:normal;overflow-wrap:normal;transition:background-color .12s,color .12s}.shelf-subjects a{font-family:Fraunces,serif;font-size:26px;text-align:center;padding:22px 18px}.shelf-pages a{flex:1}.table-shelf .table-close{background:var(--blue);color:var(--white)}.table-shelf a:hover,.table-shelf .table-close:hover{background:var(--ink);color:var(--white)}
.table-shelf:not([hidden]){animation:table-shelf-in .14s ease-out both}@keyframes table-shelf-in{from{opacity:0;transform:translate(-50%,14px)}to{opacity:1;transform:translate(-50%,0)}}
@media(max-width:600px){.table-shelf{padding:20px 16px;border-radius:24px 24px 0 0}.shelf-cap{font-size:18px;gap:12px;margin-bottom:18px}.shelf-subjects{gap:9px}.shelf-subjects a{font-size:21px;padding:16px 12px}.shelf-pages{padding:8px;gap:7px;margin-top:18px}.shelf-pages a{font-size:14px;padding:10px 12px;flex:1 1 100px}}
@media(prefers-reduced-motion:reduce){.table-shelf:not([hidden]){animation:none}.table-shelf a{transition:none}}
