.shelf-admin{min-width:0}.shelf-admin-heading{align-items:center}.shelf-heading-actions{display:flex;gap:10px;flex-wrap:wrap}.shelf-anime-toolbar{padding:21px;background:var(--surface);border:1px solid var(--line);border-radius:13px;margin:4px 0 23px}.shelf-search{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:8px;padding:0 13px;background:var(--paper);min-width:0}.shelf-search svg{width:17px;color:var(--muted)}.shelf-search input{border:0;background:none;padding:12px 0;outline:0;min-width:0;width:100%;color:var(--ink);font-size:13px}.shelf-filter-group{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:17px}.shelf-select{display:grid;gap:8px;font-size:11px;color:var(--muted)}.shelf-select select{width:100%;min-width:0;border:1px solid var(--line);padding:9px 11px;border-radius:7px;color:var(--ink);background:var(--surface);font-size:13px}.shelf-result-count{font-size:12px;color:var(--muted);margin:0 0 19px}.shelf-anime-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:27px 22px}.shelf-anime-card{min-width:0}.shelf-anime-card .anime-card{cursor:default}.shelf-anime-card .anime-poster{height:auto;aspect-ratio:2/3}.shelf-anime-card .anime-card:hover img{transform:none}.shelf-anime-card .anime-review{min-height:49px}.shelf-anime-card .submeta{line-height:1.8}.shelf-card-actions{display:flex;gap:12px;justify-content:space-between;border-top:1px solid var(--line);margin-top:15px;padding-top:11px}.shelf-card-actions button{font-size:12px;display:flex;align-items:center;gap:6px;padding:7px 4px;color:var(--blue)}.shelf-card-actions svg{width:15px;height:15px}.shelf-danger{color:#a95558!important}.shelf-no-cover{height:100%;display:flex;align-items:center;justify-content:center;position:absolute;inset:0;color:var(--muted);font-size:13px}.shelf-feature-tabs{display:flex;gap:5px;border-bottom:1px solid var(--line);margin-bottom:23px}.shelf-feature-tabs button{display:flex;align-items:center;gap:9px;padding:14px 20px;font-size:14px;border-bottom:2px solid transparent;color:var(--muted)}.shelf-feature-tabs button.active{color:var(--blue);border-color:var(--blue)}.shelf-feature-tabs svg{width:18px}.shelf-feature-mode{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;border:1px solid #ccdfef;border-radius:11px;background:#f1f8fd;margin-bottom:30px}.shelf-feature-mode strong{font-size:14px}.shelf-feature-mode p{font-size:12px;color:var(--muted);margin:8px 0 0 18px;line-height:1.75}.shelf-mode-dot{display:inline-block;width:7px;height:7px;background:#649acc;border-radius:50%;margin-right:11px;vertical-align:middle}.shelf-selected-heading,.shelf-candidate-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}.shelf-selected-heading h2,.shelf-candidate-heading h2{font-size:16px}.shelf-selected-heading h2 span{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}.shelf-selected-heading>span{font-size:11px;color:var(--muted)}.shelf-selected-list{display:grid;gap:10px}.shelf-selected-row{display:grid;grid-template-columns:24px 23px 100px minmax(0,1fr) auto;align-items:center;gap:13px;background:var(--surface);border:1px solid var(--line);border-radius:11px;padding:15px 17px 15px 10px;transition:box-shadow .18s,background .18s}.shelf-selected-row.is-dragging{background:#eaf5fd;box-shadow:0 8px 22px #315bdb20;border-color:#89afd1;position:relative;z-index:2}.shelf-drag-handle{height:56px;font-size:28px;letter-spacing:-6px;padding:0 6px 0 0;color:#89a0b5;touch-action:none;cursor:grab;user-select:none}.shelf-drag-handle:active{cursor:grabbing}.shelf-drag-handle:disabled{cursor:default;opacity:.25}.shelf-order{font-size:12px;color:#91a5b8;font-variant-numeric:tabular-nums}.shelf-feature-thumb{width:100px;height:73px;overflow:hidden;border-radius:6px;background:var(--blue-soft);display:flex;align-items:center;justify-content:center;font-size:10px;flex:none}.shelf-feature-thumb img{width:100%;height:100%;object-fit:cover}.shelf-feature-thumb.art-geometry{padding:8px;font-size:13px}.shelf-feature-thumb.art-sunset{font-size:17px}.shelf-feature-thumb strong{font-size:13px!important}.shelf-selected-copy{min-width:0}.shelf-selected-copy h3{font-size:14px;line-height:1.65}.shelf-selected-copy p{font-size:12px;line-height:1.75;color:var(--muted);margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.shelf-selected-copy>span{display:block;font-size:10px;color:#819bb2;margin-top:7px}.shelf-selected-actions{display:grid;justify-items:end;gap:8px}.shelf-edit-feature{display:flex;align-items:center;gap:5px;color:var(--blue);font-size:12px;padding:7px 2px}.shelf-edit-feature svg{width:14px;height:14px}.shelf-order-actions{display:flex;gap:2px}.shelf-order-actions .icon-button{width:30px;height:30px}.shelf-order-actions svg{width:16px;height:16px}.shelf-feature-candidates{margin-top:34px}.shelf-candidate-heading .shelf-search{width:min(290px,50%);background:var(--surface)}.shelf-candidate-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.shelf-candidate{display:flex;align-items:center;gap:13px;border:1px solid var(--line);border-radius:9px;padding:13px;background:var(--surface);min-width:0}.shelf-candidate .shelf-feature-thumb{width:55px;height:55px}.shelf-candidate>div:nth-child(2){min-width:0;flex:1}.shelf-candidate strong{font-size:12px;line-height:1.7;display:block}.shelf-candidate small{font-size:10px;color:var(--muted);display:block;margin-top:5px;line-height:1.5}.shelf-candidate .button{font-size:11px;padding:8px 9px;gap:3px}.shelf-candidate svg{width:13px}.shelf-help{font-size:11px;color:var(--muted);line-height:1.9;margin-top:10px}.shelf-candidate-empty{padding:25px 15px;border:1px dashed var(--line);border-radius:8px;font-size:12px;color:var(--muted);grid-column:1/-1;text-align:center}.shelf-presentation-note{margin-top:26px}.shelf-admin-dialog{width:min(780px,calc(100vw - 32px));padding:29px;max-height:calc(100dvh - 40px)}.shelf-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:24px}.shelf-dialog-head h2{font-size:23px;margin-top:8px}.shelf-dialog-head p{font-size:12px;color:var(--muted);line-height:1.85;margin-top:10px}.shelf-dialog-head .icon-button{flex:none;margin:-5px -6px 0 0}.shelf-form{display:grid;gap:18px}.shelf-form-fields{display:grid;gap:17px}.shelf-edit-layout{display:grid;grid-template-columns:200px 1fr;gap:25px}.shelf-field{display:grid;gap:8px;font-size:12px;min-width:0}.shelf-field .field{font-size:13px;min-width:0}.shelf-field textarea{line-height:1.9}.shelf-form-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.shelf-form-three{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.shelf-form-fields .shelf-help{margin-top:-8px}.shelf-feedback{font-size:12px;line-height:1.8;color:#a24747;background:#fff0ee;border-radius:7px;padding:12px 14px}.shelf-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:6px;flex-wrap:wrap}.shelf-dialog-actions .button{font-size:13px}.shelf-reset{font-size:12px;color:var(--muted);margin-right:auto;padding:12px 0}.shelf-danger-button{background:#a95358;color:white}.shelf-import-search{margin-bottom:18px}.shelf-import-row{display:flex;gap:16px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.shelf-import-row .shelf-feature-thumb{width:53px;height:75px}.shelf-import-row>div:nth-child(2){flex:1;min-width:0}.shelf-import-row strong{font-size:14px;line-height:1.7}.shelf-import-row small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:5px}.shelf-import-row .pill{white-space:nowrap}.shelf-admin .empty .text-link{display:block;margin:15px auto 0}
@media(min-width:1600px){.shelf-anime-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.shelf-anime-card .anime-poster{max-height:390px}}
.shelf-section-copy{padding:23px 25px;background:var(--surface);border:1px solid var(--line);border-radius:13px;margin:4px 0 30px;min-width:0}.shelf-copy-heading h2{font-size:17px;line-height:1.6}.shelf-copy-heading p{font-size:12px;color:var(--muted);line-height:1.9;margin-top:7px}.shelf-copy-fields{display:grid;gap:16px;margin-top:22px}.shelf-copy-field>span{display:flex;justify-content:space-between;gap:16px;align-items:center}.shelf-copy-field small{font-size:10px;font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}.shelf-copy-field input{width:100%;background:var(--paper)}.shelf-copy-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:21px;flex-wrap:wrap}.shelf-copy-status{flex:1;min-width:180px;font-size:12px;color:var(--muted);line-height:1.8}.shelf-copy-status.is-error{color:#a24747}.shelf-copy-actions .button{font-size:12px;white-space:nowrap}.shelf-copy-actions .button:disabled{opacity:.5;cursor:default}
@media(max-width:760px){.shelf-section-copy{padding:19px 16px;margin-bottom:25px}.shelf-copy-heading h2{font-size:16px}.shelf-copy-heading p{font-size:11px}.shelf-copy-fields{gap:17px;margin-top:19px}.shelf-copy-actions{gap:8px}.shelf-copy-status{flex-basis:100%;min-width:0}.shelf-copy-actions .button{min-height:42px}}
.shelf-edit-layout .media-field-body{flex-direction:column;align-items:stretch;gap:12px}.shelf-edit-layout .media-field-preview{width:100%;max-width:170px;margin:0 auto;align-self:center}.shelf-edit-layout .media-field-buttons{justify-content:center}.shelf-edit-layout .media-field-tools>p{font-size:10px}.shelf-edit-layout .media-field-heading{gap:5px}.shelf-edit-layout .media-field-heading small{font-size:10px}
@media(max-width:1100px) and (min-width:761px){.shelf-anime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.shelf-filter-group{grid-template-columns:1fr 1fr}.shelf-selected-row{grid-template-columns:22px 72px minmax(0,1fr);gap:10px}.shelf-selected-row>.shelf-order{display:none}.shelf-selected-row>.shelf-feature-thumb{width:72px;height:64px}.shelf-selected-actions{grid-column:3;display:flex;justify-content:space-between;justify-items:unset}.shelf-candidate-list{grid-template-columns:1fr}}
@media(max-width:760px){.shelf-admin-heading{display:block}.shelf-heading-actions{margin-top:17px}.shelf-anime-toolbar{padding:16px}.shelf-filter-group{grid-template-columns:1fr 1fr;gap:13px 10px}.shelf-anime-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 16px}.shelf-card-actions{gap:5px}.shelf-card-actions button{font-size:11px}.shelf-feature-tabs button{padding:12px 14px;font-size:12px}.shelf-feature-mode{align-items:flex-start;padding:17px;gap:14px;flex-wrap:wrap}.shelf-feature-mode .button{margin-left:18px}.shelf-selected-heading{align-items:flex-start;gap:10px}.shelf-selected-heading>span{font-size:10px;max-width:110px;line-height:1.7}.shelf-selected-row{grid-template-columns:20px 62px minmax(0,1fr);gap:10px;padding:13px 12px 12px 6px}.shelf-selected-row>.shelf-order{display:none}.shelf-selected-row>.shelf-feature-thumb{width:62px;height:68px}.shelf-selected-copy h3{font-size:12px}.shelf-selected-copy p{font-size:11px;-webkit-line-clamp:2}.shelf-selected-actions{grid-column:3;display:flex;align-items:center;justify-content:space-between;justify-items:unset;gap:2px}.shelf-edit-feature{font-size:10px;gap:3px}.shelf-edit-feature svg{width:12px}.shelf-order-actions{gap:0}.shelf-order-actions .icon-button{width:28px;height:30px}.shelf-candidate-list{grid-template-columns:1fr}.shelf-candidate-heading{display:block}.shelf-candidate-heading .shelf-search{width:100%;margin-top:13px}.shelf-admin-dialog{padding:23px 18px;width:calc(100vw - 22px);max-height:calc(100dvh - 24px)}.shelf-dialog-head h2{font-size:21px}.shelf-edit-layout{grid-template-columns:1fr;gap:19px}.shelf-edit-layout>div:first-child{max-width:230px;width:100%;margin:auto}.shelf-form-two{gap:12px}.shelf-form-three{grid-template-columns:1fr 1fr;gap:16px 12px}.shelf-form-three>.shelf-field:first-child{grid-column:1/-1}.shelf-field .field,.shelf-search input{font-size:16px}.shelf-import-row{gap:12px}.shelf-import-row strong{font-size:12px}.shelf-import-row .button{font-size:11px;padding:9px 10px}.shelf-feature-dialog-actions{gap:8px}.shelf-feature-dialog-actions .shelf-reset{flex-basis:100%;text-align:left;margin-bottom:2px}.shelf-feature-dialog-actions .button{font-size:12px;padding:12px 14px}.shelf-feature-mode strong{font-size:13px}.shelf-select select{min-height:40px}}
@media(prefers-reduced-motion:reduce){.shelf-selected-row{transition:none}}
.shelf-bangumi-search{padding:20px;border:1px solid #ccdfef;border-radius:12px;background:#f2f8fc;min-width:0}.shelf-bangumi-heading{display:flex;align-items:center;font-size:14px}.shelf-bangumi-search>p{font-size:12px;line-height:1.85;color:var(--muted);margin:9px 0 15px}.shelf-import-searchbar{display:flex;align-items:stretch;gap:10px}.shelf-import-searchbar .shelf-search{flex:1;min-width:0;background:var(--surface)}.shelf-import-searchbar .button{flex:none;padding:10px 18px;font-size:13px}.shelf-import-searchbar input{min-width:0;width:100%}.shelf-import-hint,.shelf-import-success{padding-top:16px;font-size:12px;line-height:1.8;color:var(--muted)}.shelf-import-success{color:#326b80}.shelf-bangumi-search .shelf-import-source{margin:14px 0 0;font-size:11px}.shelf-import-source a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.shelf-bangumi-search [data-shelf-import-results]{max-height:360px;overflow:auto;overscroll-behavior:contain}.shelf-form-section{font-size:14px;padding-bottom:10px;border-bottom:1px solid var(--line);margin-top:5px}.shelf-import-origin{font-size:18px;color:var(--blue);padding:8px;flex:none}.shelf-import-row .button{white-space:nowrap;flex:none}.shelf-import-row strong,.shelf-import-row small{overflow-wrap:anywhere}.shelf-bangumi-search .empty{padding:20px 8px;font-size:12px;line-height:1.9}
.anime-synopsis{margin-top:24px;border:1px solid var(--line);border-radius:10px;padding:15px 18px;font-size:13px;line-height:1.9}.anime-synopsis summary{cursor:pointer;color:var(--blue)}.anime-synopsis p{white-space:pre-wrap;margin:15px 0}.anime-synopsis a{font-size:12px;color:var(--muted)}
@media(max-width:760px){.shelf-bangumi-search{padding:15px 12px}.shelf-import-row{display:grid;grid-template-columns:45px minmax(0,1fr) 28px;gap:9px}.shelf-import-row .shelf-feature-thumb{width:45px;height:65px;grid-row:span 2}.shelf-import-row>div:nth-child(2){grid-column:2}.shelf-import-row .button,.shelf-import-row .pill{grid-column:2;justify-self:start}.shelf-import-origin{grid-column:3;grid-row:1;padding:5px}.shelf-bangumi-search [data-shelf-import-results]{max-height:310px}.shelf-import-searchbar{gap:7px}.shelf-import-searchbar .button{padding:10px 13px}}
