.work-library{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.work-library__card{position:relative;min-width:0;background:var(--surface,#0e1b2c);border:1px solid var(--line,#23344c);border-radius:14px;padding:14px}.work-library__open{display:flex;flex-direction:column;gap:8px;color:inherit;text-decoration:none}.work-library__cover{display:grid;place-items:center;aspect-ratio:3/4;overflow:hidden;border-radius:8px;background:var(--soft,#101f33)}.work-library__cover img{width:100%;height:100%;object-fit:cover}.work-library__cover>svg{width:48px;height:48px;color:var(--muted)}.work-library__open h3{font-family:inherit;font-size:16px;line-height:1.8;margin:4px 0;overflow-wrap:anywhere}.work-library__open :is(span,small){color:var(--muted,#91a4bb);font-size:12px}.work-library__menu{position:absolute;top:20px;inset-inline-end:20px;z-index:2}.work-library__menu summary{display:grid;place-items:center;background:#0b1728ed;color:#fff;border:1px solid #304866;border-radius:8px;cursor:pointer;padding:6px;list-style:none}.work-library__menu summary::-webkit-details-marker{display:none}.work-library__menu>div{position:absolute;inset-inline-end:0;min-width:180px;background:#0e1b2c;border:1px solid #304866;border-radius:8px;box-shadow:0 10px 28px #0005;padding:8px}.work-library__menu :is(a,button){display:flex;align-items:center;gap:8px;background:none;border:0;padding:10px;color:#edf4ff;text-align:start;width:100%;font:inherit;font-size:12px}.work-library__menu svg{width:18px;height:18px}
.work-chapters{display:grid;gap:20px;color:var(--text,#edf4ff)}.work-chapters__back{justify-self:start;color:#8bb9ff}.work-chapters__hero{display:grid;grid-template-columns:140px minmax(0,1fr) minmax(200px,260px);gap:24px;align-items:center}.work-chapters__cover{aspect-ratio:2/3;background:var(--soft,#101f33);border-radius:10px;overflow:hidden;display:grid;place-items:center}.work-chapters__cover img{width:100%;height:100%;object-fit:cover}.work-chapters__cover>svg{width:48px;height:48px}.work-chapters__intro{min-width:0}.work-chapters__intro h1{font-family:inherit;font-size:26px;line-height:1.7;margin:8px 0;overflow-wrap:anywhere}.work-chapters__intro>span,.work-chapters__intro>p{color:var(--muted,#91a4bb);font-size:13px}.work-chapters__actions{display:flex;gap:10px;flex-wrap:wrap}.work-chapters__actions svg,.work-chapters__row-actions svg{width:17px;height:17px}.work-chapters__bulk{display:grid;gap:12px;border-inline-start:1px solid var(--line,#23344c);padding-inline-start:24px}.work-chapters__bulk>small,.work-chapters__hint{color:var(--muted,#91a4bb);font-size:12px;line-height:1.9}.work-chapters__toggle-line{display:flex;gap:14px;align-items:center;justify-content:space-between;font-size:13px}.work-chapters__switch{width:54px;height:30px;flex-shrink:0;border:0;border-radius:30px;background:#647184;position:relative;cursor:pointer;padding:4px}.work-chapters__switch>span{display:block;width:22px;height:22px;border-radius:50%;background:#fff;transition:transform .15s;transform:translateX(0)}.work-chapters__switch[aria-checked=true]{background:#2465ef}.work-chapters__switch[aria-checked=true]>span{transform:translateX(-24px)}[dir=ltr] .work-chapters__switch[aria-checked=true]>span{transform:translateX(24px)}.work-chapters__switch[aria-checked=mixed]{background:#5669a8}.work-chapters__switch[aria-checked=mixed]>span{border-radius:4px;height:4px;margin-top:9px;transform:translateX(-12px)}[dir=ltr] .work-chapters__switch[aria-checked=mixed]>span{transform:translateX(12px)}.work-chapters__switch:disabled{opacity:.45;cursor:not-allowed}.work-chapters__notice{padding:14px 18px;background:#382d18;color:#ffe0a3;border:1px solid #76603a;border-radius:8px;line-height:1.9}.work-chapters__notice a{color:inherit;text-decoration:underline}.work-chapters__row{display:flex;align-items:center;gap:18px;padding:20px 0;border-top:1px solid var(--line,#23344c);scroll-margin-top:90px}.work-chapters__number{font-size:19px;color:var(--muted);min-width:28px}.work-chapters__title{flex:1;min-width:0}.work-chapters__title h3{font-family:inherit;font-size:16px;line-height:1.8;margin:0 0 6px;overflow-wrap:anywhere}.work-chapters__title small{display:flex;align-items:center;gap:5px;color:var(--muted,#91a4bb);font-size:12px;line-height:1.9}.work-chapters__title small svg{width:14px;height:14px}.work-chapters__title .work-chapters__reason{color:#e7c784}.work-chapters__row-actions{display:flex;align-items:center;gap:18px}.work-chapters__dialog{color:#edf4ff;background:#0e1b2c;border:1px solid #304866;border-radius:16px;padding:28px;max-width:min(480px,calc(100vw - 32px));box-shadow:0 20px 90px #0008}.work-chapters__dialog::backdrop{background:#0009}.work-chapters__dialog h2{font-family:inherit;font-size:21px}.work-chapters__dialog p{line-height:1.9}.work-chapters__dialog .button--ghost{color:#edf4ff;border-color:#304866}
@media(max-width:1200px){.work-library{grid-template-columns:repeat(3,minmax(0,1fr))}.work-chapters__hero{grid-template-columns:100px minmax(0,1fr)}.work-chapters__bulk{grid-column:1/-1;border-inline-start:0;border-top:1px solid var(--line,#23344c);padding:18px 0 0}.work-chapters__toggle-line{justify-content:start}}
@media(max-width:700px){.work-library{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.work-library__card{padding:10px}.work-library__menu{top:14px;inset-inline-end:14px}.work-chapters__hero{gap:16px;grid-template-columns:82px minmax(0,1fr)}.work-chapters__intro h1{font-size:21px}.work-chapters__row{flex-wrap:wrap;gap:12px}.work-chapters__row-actions{width:100%;justify-content:space-between;padding-inline-start:40px}.work-chapters__intro .work-chapters__actions{grid-column:1/-1}.work-library__open h3{font-size:14px}}
