.book-import-grid { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 18px; align-items: start; }
.book-main { display: grid; gap: 17px; min-width: 0; }
.book-side { display: grid; gap: 17px; align-self: start; }
.book-panel { padding: 24px; background: #151d2b; }
.book-panel h2 { margin: 0 0 5px; font-size: 19px; color: #f0f6ff; }
.book-heading { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; }
.book-heading p, .book-small { margin: 0; color: #9cacc1; line-height: 1.55; font-size: 13px; }
.book-step { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: #263b2a; color: #c5e993; font-weight: 750; font-size: 14px; }
.file-upload { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px dashed #53647b; border-radius: 10px; background: #101927; margin: 0 0 15px; color: #dce9f8; font-size: 14px; font-weight: 700; }
.file-upload > span { display: flex; align-items: center; gap: 12px; }
.file-upload svg { color: #b7dd87; }
.file-upload input[type=file] { width: 100%; color: #adbed2; font-size: 13px; padding: 2px; }
.file-upload input::file-selector-button { background: #2b3b48; color: #e1ecf7; border: 1px solid #53647b; border-radius: 7px; padding: 9px 12px; margin-right: 10px; cursor: pointer; }
.book-note { font-size: 12px; line-height: 1.6; margin-top: 14px; color: #9aabc0; }
.book-side .form-field { margin: 16px 0; }
.book-side .form-field input,.book-side .form-field textarea { width: 100%; }
.book-check { display: flex; gap: 9px; align-items: flex-start; margin: 18px 0; font-size: 13px; color: #d7e7f8; cursor: pointer; }
.book-check input { accent-color: #cbf27c; flex: none; width: 18px; height: 18px; }
.book-status h3 { font-size: 18px; margin: 14px 0 9px; }
.book-status p { font-size: 13px; line-height: 1.6; color: #a5b7cd; }
.book-warning { padding: 12px; border-radius: 9px; border: 1px solid #887351; color: #f5d4a4; background: #383122; line-height: 1.55; font-size: 12px; }
.book-scenes { display: grid; gap: 14px; }
.book-scenes-empty { padding: 24px; border-radius: 10px; border: 1px dashed #4a5970; color: #aabacd; font-size: 13px; text-align: center; }
.book-scene { display: grid; grid-template-columns: 132px minmax(0,1fr); gap: 15px; background: #0f1927; border: 1px solid #39485b; border-radius: 12px; padding: 13px; }
.book-thumb { width: 132px; min-height: 126px; border-radius: 8px; overflow: hidden; background: #213041; }
.book-thumb img { width: 100%; height: 100%; max-height: 220px; object-fit: cover; display: block; }
.book-scene-body { min-width: 0; }
.book-scene-header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 1px 0 12px; }
.book-scene-header strong { color: #eff5ff; font-size: 13px; overflow-wrap: anywhere; }
.book-scene-header span { color: #a7ba90; font-size: 12px; }
.book-scene textarea { min-height: 66px; }
.book-scene-buttons { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.book-scene-buttons button { display: flex; align-items: center; gap: 5px; background: #243144; border: 1px solid #47556a; color: #cbd8eb; border-radius: 7px; padding: 7px 10px; font-size: 12px; cursor: pointer; }
.book-scene-buttons button:hover:not(:disabled) { background: #364760; }
.book-scene-buttons button:disabled { cursor: not-allowed; opacity: .35; }
.book-scene-buttons button[data-scene-action=remove] { color: #ffc6c6; }
.book-form-actions { margin-top: 19px; }
.book-reference-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.book-reference-card { padding: 0; overflow: hidden; }
.reference-image-frame { aspect-ratio: 16 / 10; background: #111d2c; color: #899bae; font-size: 13px; text-align: center; display: grid; place-items: center; }
.reference-image-frame img { width: 100%; height: 100%; object-fit: contain; }
.reference-image-frame img:not([hidden]) { display: block; }
.reference-card-body { padding: 14px; }
.reference-card-body strong { display: block; font-size: 13px; color: #f1f6ff; }
.reference-card-body small { display: block; margin-top: 7px; font-size: 12px; color: #b2c898; }
.reference-card-body p { color: #9eb0c8; line-height: 1.5; font-size: 12px; margin: 11px 0 0; }
.book-gallery-note { color: #a8b6c7; font-size: 13px; margin-top: 12px; }
@media(max-width:1120px) { .book-import-grid { grid-template-columns: minmax(0,1fr) 250px; } .book-panel { padding: 19px; } }
@media(max-width:820px) { .book-import-grid { grid-template-columns: 1fr; } .book-side { grid-template-columns: repeat(2,minmax(0,1fr)); } .book-reference-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:560px) { .book-side { grid-template-columns: 1fr; } .book-scene { grid-template-columns: 1fr; } .book-thumb { width: 100%; height: 180px; } .book-thumb img { max-height: none; } .book-panel { padding: 17px; } .book-reference-grid { grid-template-columns: 1fr; } }
