:root{font-family:system-ui,"Microsoft YaHei",sans-serif;color:#252a25;background:#f6f4ef;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{background:#244431;color:white;padding:22px max(calc((100vw - 1180px)/2),24px);display:flex;justify-content:space-between;align-items:center;gap:24px}h1,h2,h3,p{margin-top:0}header h1{font-size:23px;margin-bottom:4px}header p{margin:0;color:#c4d2c5}nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap}a,button{font:inherit}nav a,button{border:1px solid #ffffff55;border-radius:9px;background:transparent;color:inherit;padding:9px 13px;text-decoration:none;cursor:pointer}main{max-width:1180px;margin:28px auto;padding:0 20px}.sources{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.source{padding:8px 12px;background:#fff;border-radius:10px}.source.ok{color:#206a40}.source.bad{color:#a34a3a}.toolbar,.row{display:flex;align-items:center;justify-content:space-between;gap:14px}.toolbar{margin-bottom:12px}.toolbar h2{margin:0}.toolbar small{color:#7a817a;font-size:14px;font-weight:400}select,input{font:inherit;border:1px solid #d5d7d1;border-radius:8px;background:#fff;padding:10px}.items{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}.card{background:white;border:1px solid #e4e0d7;border-radius:14px;overflow:hidden;box-shadow:0 5px 20px #262b2010}.card-visual{height:300px;position:relative;display:grid;place-items:center;overflow:hidden;background:#f4f2ed}.card-visual img,.card-visual .cover{width:100%;height:100%;object-fit:contain;background:#f4f2ed}.cover{display:grid;place-items:center;color:#55765d;font-size:22px}.card-overlay{position:absolute;inset:auto 0 0;padding:34px 12px 10px;color:white;background:linear-gradient(transparent,rgba(20,25,20,.82))}.card-body{display:none}.row{margin-bottom:10px}.row.card-status{justify-content:flex-end;margin-bottom:4px}.platform{font-size:13px;color:#647466}.status{font-size:12px;padding:4px 9px;border-radius:20px;background:#eee;color:#555}.status.published{background:#e1f3e7;color:#216a3a}.status.scheduled{background:#eee7ff;color:#684a9b}.status.review{background:#fff1d9;color:#8b621d}.card-overlay h3{font-size:16px;color:white;text-shadow:0 1px 3px #0009;margin:0 0 4px}.card-overlay p.summary{font-size:12px;color:#fff;line-height:1.45;height:2.9em;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.meta{font-size:13px;color:#777;margin:10px 0}.card-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:20px;margin-top:8px;color:#fff;font-size:12px}.card-footer>a{color:#fff;text-decoration:none;white-space:nowrap}.empty{grid-column:1/-1;background:white;border-radius:12px;padding:28px;color:#777}.login{position:fixed;inset:0;z-index:4;display:grid;place-items:center;background:#101b16bb}.hidden{display:none!important}.login-card{background:white;border-radius:16px;padding:30px;width:min(390px,calc(100vw - 32px));display:grid;gap:14px;box-shadow:0 20px 60px #0003}.login-card h1{font-size:22px;margin:0}.login-card p{color:#737a73;margin:0}.login-card button{background:#244431;color:white;border:0}.login-card #login-error{color:#ad3939;min-height:20px}@media(max-width:760px){header{align-items:flex-start;flex-direction:column;padding:18px 20px}main{margin:20px auto}.toolbar{align-items:flex-start;flex-direction:column}}
.filters{display:flex;gap:6px;flex-wrap:wrap;margin-top:0}.filter-chip{font-size:13px;border:1px solid #ddd8ce;border-radius:99px;padding:6px 10px;background:white;color:#555;cursor:pointer}.filter-chip.active{background:#244431;border-color:#244431;color:white}.controls{display:flex;gap:8px;flex-wrap:wrap}.metrics{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 12px}.metrics span{font-size:12px;color:#5e6c61;background:#f0f3ef;border-radius:6px;padding:4px 7px}@media(max-width:760px){.controls{width:100%}.controls input{flex:1;min-width:130px}}
.view-tabs{display:flex;gap:8px;margin:0 0 22px;border-bottom:1px solid #dedbd2}.view-tab{padding:9px 14px;border:0;border-bottom:3px solid transparent;border-radius:0;color:#687168;background:transparent}.view-tab.active{color:#244431;border-color:#244431;font-weight:650}.plan-list{display:grid;gap:18px}.plan-day{background:#fff;border:1px solid #e4e0d7;border-radius:12px;padding:16px}.plan-day h3{margin:0 0 12px}.plan-day h3 small{font-size:13px;font-weight:400;color:#7a817a}.plan-items{display:grid;gap:8px}.plan-items article{display:grid;grid-template-columns:auto 65px minmax(120px,1fr) auto;align-items:center;gap:12px;padding:10px;background:#f8f8f5;border-radius:8px}.plan-time{color:#9b513c;font-weight:650}.table-wrap{overflow:auto;background:white;border-radius:12px;border:1px solid #e4e0d7}table{width:100%;border-collapse:collapse;white-space:nowrap}th,td{text-align:left;padding:11px 13px;border-bottom:1px solid #eeece5}th{font-size:13px;color:#607063;background:#f7f8f5}td{font-size:14px}tbody tr:last-child td{border-bottom:0}@media(max-width:650px){.plan-items article{grid-template-columns:auto 52px 1fr}.plan-items article .platform{grid-column:3}}

.status.approved{background:#e4efff;color:#365f9b}.status.rejected{background:#fde8e5;color:#9a4035}

.controls .refresh-button{border:1px solid #244431;border-radius:8px;background:#244431;color:#fff;padding:10px 13px;cursor:pointer}.controls .refresh-button:disabled{opacity:.65;cursor:wait}.updated-at{color:#7a817a;white-space:nowrap}@media(max-width:760px){.updated-at{width:100%}}
.platform-tabs{display:flex;gap:8px;margin:0 0 18px}.platform-tab{padding:10px 18px;border:1px solid #d8d4ca;border-radius:10px;background:#fff;color:#566057;cursor:pointer}.platform-tab.active{border-color:#244431;background:#244431;color:#fff;font-weight:650}
.filter-area{display:grid;gap:10px;justify-items:start}.create-button,.primary-button{border:0;border-radius:9px;background:#244431;color:#fff;padding:9px 14px;cursor:pointer}.card-footer{justify-content:flex-start;flex-wrap:wrap}.card-footer>span{margin-right:auto}.card-action{padding:4px 8px;border:1px solid #ffffff8c;border-radius:7px;color:white;background:#ffffff18;font-size:12px}.card-action:hover{background:#ffffff38}.content-dialog{width:min(760px,calc(100vw - 28px));max-height:min(88vh,900px);border:0;border-radius:16px;padding:0;box-shadow:0 24px 80px #0004;color:#27332a}.content-dialog::backdrop{background:#13201880;backdrop-filter:blur(2px)}.dialog-head{position:sticky;top:0;z-index:1;display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px 14px;background:#fff;border-bottom:1px solid #eeece5}.dialog-head h2{font-size:20px;margin:0 0 4px}.dialog-head p{margin:0;color:#748076;font-size:13px}.dialog-close{border:0;background:#f2f3ef;color:#4d5a50;font-size:22px;line-height:1;padding:5px 10px}.dialog-content{padding:18px 24px;max-height:calc(88vh - 140px);overflow:auto}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.edit-field{display:grid;gap:6px;align-content:start;font-size:13px;color:#506052}.edit-field:has(textarea),.read-only-note{grid-column:1/-1}.edit-field input,.edit-field textarea,.edit-field select{width:100%;font:inherit;color:#263329;border:1px solid #d7dcd5;border-radius:8px;background:#fff;padding:10px}.edit-field textarea{min-height:88px;resize:vertical;line-height:1.5}.edit-field:has([data-key="quizzes"]) textarea,.edit-field:has([data-key="images"]) textarea{min-height:130px}.edit-field small{font-size:12px;color:#858d85}.read-only-note{padding:10px 12px;border-radius:8px;background:#f3f5f1;color:#607264;font-size:13px}.dialog-actions{position:sticky;bottom:0;display:flex;justify-content:flex-end;gap:8px;padding:12px 24px 18px;background:#fff;border-top:1px solid #eeece5}.dialog-actions button{font-size:14px}.secondary-button,.danger-button{border:1px solid #d8d4ca;border-radius:8px;padding:9px 14px;background:white;color:#555;cursor:pointer}.danger-button{margin-right:auto;color:#a83e32;border-color:#e7c1bc}.detail-cover{display:block;width:100%;max-height:360px;object-fit:contain;background:#f5f4f0;border-radius:10px;margin-bottom:16px}.detail-list{margin:0;display:grid;gap:1px;background:#eee;border:1px solid #eee;border-radius:10px;overflow:hidden}.detail-list>div{display:grid;grid-template-columns:110px 1fr;gap:12px;padding:10px 12px;background:#fff}.detail-list dt{color:#748076;font-size:13px}.detail-list dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}.detail-section-title{margin:20px 0 10px;font-size:16px}.quiz-list{display:grid;gap:8px;padding-left:24px}.quiz-list li{padding:10px;background:#f7f7f4;border-radius:8px}.quiz-list li img{float:right;width:96px;height:72px;object-fit:contain;margin-left:10px}.quiz-list p{margin:5px 0;color:#616b62}.quiz-list small{color:#7a817a}@media(max-width:600px){.form-grid{grid-template-columns:1fr}.dialog-head,.dialog-content,.dialog-actions{padding-left:16px;padding-right:16px}.detail-list>div{grid-template-columns:82px 1fr}.filter-area{width:100%}}

/* Keep the primary controls compact so content cards start higher on desktop. */
@media(min-width:1101px){
  main{margin-top:16px}
  .sources{gap:8px;margin-bottom:14px}
  .source{padding:6px 10px}
  .platform-tabs{margin-bottom:12px}
  .view-tabs{margin-bottom:10px}
  .toolbar{gap:10px;margin-bottom:10px;flex-wrap:nowrap}
  .filter-area{display:flex;align-items:center;gap:8px;min-width:0}
  .filters{flex-wrap:nowrap;gap:4px}
  .filter-chip{font-size:12px;padding:4px 7px;white-space:nowrap}
  .create-button{font-size:13px;padding:7px 10px;white-space:nowrap}
  .controls{align-items:center;flex-wrap:nowrap;gap:6px}
  .controls input{width:185px;padding:8px}
  .controls .refresh-button{padding:8px 11px}
  .updated-at{font-size:12px}
}
@media(max-width:1100px){.toolbar{align-items:flex-start;flex-wrap:wrap}.filter-area{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.controls{margin-left:auto}}
.detail-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:16px}.detail-gallery figure{margin:0;min-width:0;padding:8px;background:#f5f4f0;border-radius:10px;text-align:center}.detail-gallery img{display:block;width:100%;height:190px;object-fit:contain}.detail-gallery figcaption{padding-top:5px;color:#748076;font-size:12px}.quiz-list li img{display:none}@media(max-width:520px){.detail-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.detail-gallery img{height:145px}}
.content-dialog[open]{display:flex;flex-direction:column;height:min(88vh,900px);overflow:hidden}.content-dialog .dialog-head{position:static;flex:0 0 auto}.dialog-images{flex:0 0 auto;max-height:39vh;overflow:hidden;padding:12px 24px;background:#fff;border-bottom:1px solid #eeece5}.dialog-images .detail-gallery{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.dialog-images .detail-gallery img{height:190px}.gallery-pagination{display:flex;justify-content:center;align-items:center;gap:12px;margin-top:8px;color:#667369;font-size:13px}.gallery-pagination button{padding:4px 10px;border:1px solid #dedbd2;border-radius:7px;background:#fff;color:#385540;font-size:13px}.gallery-pagination button:disabled{opacity:.45;cursor:default}.content-dialog .dialog-content{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;overscroll-behavior:contain}.content-dialog .dialog-actions{position:static;flex:0 0 auto}@media(max-width:600px){.dialog-images{padding:10px 16px;max-height:38vh}.dialog-images .detail-gallery{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.dialog-images .detail-gallery img{height:120px}.gallery-pagination{gap:6px}.gallery-pagination button{padding:4px 6px;font-size:12px}}

/* Single-image carousel: the picture stays prominent while details scroll below. */
.dialog-images{flex:0 0 auto;height:clamp(230px,36vh,330px);max-height:36vh;overflow:hidden;padding:10px 24px;background:#fff;border-bottom:1px solid #eeece5;touch-action:pan-y}
.dialog-images .detail-gallery{height:100%;max-width:760px;margin:0 auto;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-rows:minmax(0,1fr) 24px;align-items:center;gap:8px}
.detail-slide{grid-column:2;grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:0;height:100%;margin:0}
.detail-slide img{display:block;width:100%;height:calc(100% - 20px);min-height:0;object-fit:contain;border-radius:8px}
.detail-slide figcaption{height:20px;padding-top:3px;color:#748076;font-size:12px;text-align:center}
.gallery-arrow{grid-row:1;justify-self:center;width:38px;height:38px;padding:0;border:1px solid #dedbd2;border-radius:50%;background:#fff;color:#244431;font-size:27px;line-height:1;box-shadow:0 2px 8px #00000012}
.gallery-arrow:disabled{visibility:hidden}
.gallery-pagination{grid-column:1/-1;grid-row:2;display:flex;justify-content:center;align-items:center;gap:7px;margin:0;color:#667369;font-size:12px}
.gallery-dot{width:8px;height:8px;padding:0;border:0;border-radius:50%;background:#c9cec8;cursor:pointer}
.gallery-dot.active{background:#244431;transform:scale(1.2)}
.gallery-count{margin-left:5px;white-space:nowrap}
@media(max-width:600px){.dialog-images{height:clamp(190px,32vh,270px);max-height:32vh;padding:8px 12px}.dialog-images .detail-gallery{grid-template-columns:34px minmax(0,1fr) 34px;gap:5px}.gallery-arrow{width:30px;height:30px;font-size:22px}.detail-slide img{border-radius:6px}}

/* Give the artwork nearly all of the dialog's upper area; keep only a compact overlaid label. */
.dialog-images{height:min(54vh,520px);max-height:54vh;padding:6px 14px;background:#f5f4f0;border:0}
.dialog-images .detail-gallery{max-width:900px;grid-template-columns:38px minmax(0,1fr) 38px;grid-template-rows:minmax(0,1fr) 18px;gap:4px}
.detail-slide{position:relative;grid-column:2;grid-row:1;width:100%;height:100%;overflow:hidden;border-radius:10px;background:#f5f4f0}
.slide-image-button{display:grid;place-items:center;width:100%;height:100%;min-height:0;padding:0;border:0;border-radius:10px;background:transparent;cursor:zoom-in}
.slide-image-button img{display:block;width:100%;height:100%;object-fit:contain;border-radius:10px}
.detail-slide figcaption{position:absolute;left:50%;bottom:7px;transform:translateX(-50%);height:auto;max-width:calc(100% - 28px);padding:4px 10px;border-radius:99px;background:#17221dcc;color:#fff;font-size:12px;line-height:1.2;white-space:nowrap;pointer-events:none}
.gallery-arrow{z-index:1;width:34px;height:34px;background:#ffffffdb}
.gallery-pagination{grid-template-columns:1fr;gap:0;height:18px}
.gallery-count{margin:0;padding:1px 8px;border-radius:99px;background:#ffffffc9;color:#526054;font-size:11px}
.image-preview-dialog{position:fixed;inset:0;width:100vw;height:100vh;max-width:none;max-height:none;margin:0;padding:24px;border:0;background:#111e;display:grid;place-items:center;cursor:zoom-out}
.image-preview-dialog::backdrop{background:#111e}
.image-preview-dialog img{max-width:96vw;max-height:94vh;object-fit:contain}
.image-preview-close{position:fixed;top:16px;right:18px;width:42px;height:42px;padding:0;border:0;border-radius:50%;background:#ffffffdf;color:#243329;font-size:28px;line-height:1;cursor:pointer}
@media(max-width:600px){.dialog-images{height:min(48vh,380px);max-height:48vh;padding:4px 8px}.dialog-images .detail-gallery{grid-template-columns:30px minmax(0,1fr) 30px;grid-template-rows:minmax(0,1fr) 16px;gap:2px}.gallery-arrow{width:28px;height:28px;font-size:20px}.gallery-pagination{height:16px}}

/* Coverflow carousel: focused center image with faded neighboring previews. */
.dialog-images{height:min(54vh,520px);max-height:54vh;padding:8px 0;overflow:hidden;background:#fff}
.dialog-images .detail-gallery{position:relative;width:100%;height:100%;max-width:none;margin:0;display:flex;justify-content:center;align-items:center;overflow:hidden}
.detail-slide{position:relative;z-index:2;flex:0 0 min(72%,760px);height:100%;display:flex;align-items:center;justify-content:center;margin:0;background:#fff}
.slide-image-button{width:100%;height:100%;padding:0;border:0;background:transparent;cursor:zoom-in}
.slide-image-button img{display:block;width:100%;height:100%;object-fit:contain}
.detail-slide figcaption{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);height:auto;padding:4px 10px;border-radius:99px;background:#17221dcc;color:#fff;font-size:12px;white-space:nowrap;pointer-events:none}
.side-slide{position:absolute;top:8%;z-index:1;width:32%;height:84%;padding:0;border:0;background:#eee;cursor:pointer;overflow:hidden;opacity:.48;transition:transform .28s ease,opacity .28s ease}
.side-slide img{width:100%;height:100%;object-fit:cover;filter:grayscale(.22)}
.side-slide.previous{left:5%;transform:scale(.88)}
.side-slide.next{right:5%;transform:scale(.88)}
.gallery-arrow{display:none}
.gallery-pagination{position:absolute;z-index:3;bottom:5px;left:50%;transform:translateX(-50%);height:auto;width:auto;pointer-events:none}
.gallery-count{padding:2px 7px;background:#ffffffc9;font-size:11px}
@media(max-width:600px){.dialog-images{height:min(48vh,380px);max-height:48vh;padding:8px 0}.detail-slide{flex-basis:76%}.side-slide{width:34%}.side-slide.previous{left:0}.side-slide.next{right:0}}

/* Enlarge artwork in the carousel. Preserve full image proportions and use more of the center stage. */
.detail-slide{flex-basis:min(78%,900px);background:transparent}
.slide-image-button img{object-fit:contain}
.image-preview-dialog{padding:10px}
.image-preview-dialog img{width:auto;height:auto;max-width:99vw;max-height:98vh;object-fit:contain}
.image-preview-label{position:fixed;left:50%;bottom:14px;transform:translateX(-50%);padding:5px 12px;border-radius:20px;background:#17221dcc;color:white;font-size:13px;pointer-events:none}
@media(max-width:600px){.detail-slide{flex-basis:84%}}

/* Scale the Toutiao quiz artwork inside its clipped main slide; keep the source image intact for zoom preview. */
.detail-slide.quiz-main-image .slide-image-button{overflow:hidden}
.detail-slide.quiz-main-image .slide-image-button img{transform:scale(1.9)}
.gallery-pagination{top:8px;right:10px;bottom:auto;left:auto;transform:none}

/* Keep the slide label clear of the artwork's answer text. */
.detail-slide figcaption{top:10px;right:auto;bottom:auto;left:10px;transform:none;padding:3px 8px;font-size:11px}

/* Five-image carousel: a full center image with four smaller, faded neighboring previews. */
.dialog-images .detail-gallery{display:grid;grid-template-rows:minmax(0,1fr);gap:4px;padding:0 8px}
.detail-gallery.slide-count-5{grid-template-columns:.65fr .9fr 1.7fr .9fr .65fr}
.detail-gallery.slide-count-4{grid-template-columns:.8fr 1.7fr .9fr .65fr}
.detail-gallery.slide-count-3{grid-template-columns:.85fr 1.7fr .85fr}
.detail-gallery.slide-count-2{grid-template-columns:1fr 1.5fr}
.detail-gallery.slide-count-1{grid-template-columns:1fr}
.detail-gallery .slide-slot-0{grid-column:1}.detail-gallery .slide-slot-1{grid-column:2}.detail-gallery .slide-slot-2{grid-column:3}.detail-gallery .slide-slot-3{grid-column:4}.detail-gallery .slide-slot-4{grid-column:5}
.detail-gallery .detail-slide,.detail-gallery .side-slide{grid-row:1;position:relative;inset:auto;width:100%;height:100%;min-width:0;min-height:0;margin:0;overflow:hidden;border-radius:8px;background:#f4f4f1}
.detail-gallery .detail-slide{z-index:2;display:flex;align-items:center;justify-content:center;flex:none;transform:none;opacity:1}
.detail-gallery .slide-image-button{display:grid;place-items:center;width:100%;height:100%;min-height:0;padding:0;overflow:hidden;border:0;border-radius:8px;background:transparent;cursor:zoom-in}
.detail-gallery .slide-image-button img{display:block;width:100%;height:100%;object-fit:contain;transform:none;border-radius:8px}
.detail-gallery .side-slide{z-index:1;display:block;padding:0;border:0;opacity:.38;transform:scale(.92);transition:opacity .2s ease,transform .2s ease;cursor:pointer}
.detail-gallery .side-slide img{display:block;width:100%;height:100%;object-fit:contain;filter:none}
.detail-gallery .slide-slot-1.side-slide,.detail-gallery .slide-slot-3.side-slide{opacity:.58}
.detail-gallery .side-slide:hover{opacity:.88;transform:scale(.97)}
.detail-gallery .gallery-pagination{position:absolute;top:7px;right:10px;bottom:auto;left:auto;z-index:3;transform:none;pointer-events:none}
.detail-gallery .gallery-count{padding:2px 7px;border-radius:20px;background:#ffffffd9;color:#4e5b50;font-size:11px}
.detail-gallery .detail-slide figcaption{top:8px;right:auto;bottom:auto;left:8px;z-index:2;transform:none;padding:3px 8px;border-radius:20px;background:#17221dcc;color:#fff;font-size:11px;line-height:1.2;white-space:nowrap}
.detail-gallery .gallery-arrow{display:none}
@media(max-width:600px){.dialog-images{height:min(48vh,380px);max-height:48vh;padding:6px 0}.dialog-images .detail-gallery{gap:2px;padding:0 3px}.detail-gallery.slide-count-5{grid-template-columns:.55fr .78fr 1.8fr .78fr .55fr}.detail-gallery.slide-count-4{grid-template-columns:.7fr 1.8fr .78fr .55fr}.detail-gallery.slide-count-3{grid-template-columns:.72fr 1.8fr .72fr}.detail-gallery.slide-count-2{grid-template-columns:.8fr 1.8fr}.detail-gallery .side-slide{transform:scale(.96)}}

/* Layered coverflow: the focused slide sits above partially visible neighbors. */
.dialog-images .detail-gallery{position:relative;display:block;width:100%;height:100%;padding:0;overflow:hidden}
.dialog-images .detail-gallery .detail-slide,.dialog-images .detail-gallery .side-slide{position:absolute;inset:auto;display:block;min-width:0;min-height:0;margin:0;padding:0;overflow:hidden;border:0;border-radius:10px;background:#f4f4f1;transition:transform .24s ease,opacity .24s ease}
.dialog-images .detail-gallery .layer-current{top:4%;left:50%;z-index:5;width:min(42%,520px);height:92%;transform:translateX(-50%);opacity:1;background:#fff}
.dialog-images .detail-gallery .slide-image-button{display:grid;place-items:center;width:100%;height:100%;padding:0;overflow:hidden;border:0;background:transparent;cursor:zoom-in}
.dialog-images .detail-gallery .slide-image-button img{display:block;width:100%;height:100%;object-fit:contain;transform:none}
.dialog-images .detail-gallery .layer-offset--1,.dialog-images .detail-gallery .layer-offset-1{top:14%;z-index:3;width:34%;height:72%;opacity:.78}
.dialog-images .detail-gallery .layer-offset--1{left:14%;transform:scale(.92)}
.dialog-images .detail-gallery .layer-offset-1{right:14%;transform:scale(.92)}
.dialog-images .detail-gallery .layer-offset--2,.dialog-images .detail-gallery .layer-offset-2{top:25%;z-index:1;width:25%;height:52%;opacity:.55}
.dialog-images .detail-gallery .layer-offset--2{left:2.5%;transform:scale(.88)}
.dialog-images .detail-gallery .layer-offset-2{right:2.5%;transform:scale(.88)}
.dialog-images .detail-gallery .side-slide img{display:block;width:100%;height:100%;object-fit:cover;filter:saturate(.8)}
.dialog-images .detail-gallery .side-slide:hover{z-index:4;opacity:.95;transform:scale(.98)}
.dialog-images .detail-gallery .layer-current figcaption{top:8px;right:auto;bottom:auto;left:8px;z-index:2;transform:none;padding:3px 8px;border-radius:20px;background:#17221dcc;color:#fff;font-size:11px;line-height:1.2}
.dialog-images .detail-gallery .gallery-pagination{position:absolute;top:8px;right:10px;bottom:auto;left:auto;z-index:6;transform:none;pointer-events:none}
.dialog-images .detail-gallery .gallery-count{padding:2px 7px;border-radius:20px;background:#ffffffd9;color:#4e5b50;font-size:11px}
@media(max-width:600px){.dialog-images{height:min(48vh,380px);max-height:48vh;padding:4px 0}.dialog-images .detail-gallery .layer-current{width:48%;height:94%;top:3%}.dialog-images .detail-gallery .layer-offset--1,.dialog-images .detail-gallery .layer-offset-1{top:15%;width:38%;height:70%;opacity:.76}.dialog-images .detail-gallery .layer-offset--1{left:10%}.dialog-images .detail-gallery .layer-offset-1{right:10%}.dialog-images .detail-gallery .layer-offset--2,.dialog-images .detail-gallery .layer-offset-2{top:27%;width:27%;height:50%;opacity:.48}.dialog-images .detail-gallery .layer-offset--2{left:0}.dialog-images .detail-gallery .layer-offset-2{right:0}}

/* Preserve each preview's proportions; let the centered card overlap it instead of cropping the artwork itself. */
.dialog-images .detail-gallery .side-slide{background:#fff;border:1px solid #e8e6e0;box-shadow:0 5px 18px #17221d18}
.dialog-images .detail-gallery .side-slide img{object-fit:contain;filter:none}
.dialog-images .detail-gallery .layer-current{box-shadow:0 8px 28px #17221d1c}

/* Keep the content preview's header and actions fixed; image and details share one scroll surface. */
.content-dialog[open]{height:min(88vh,900px);max-height:88vh}
.content-dialog .dialog-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.content-dialog .dialog-images{flex:none;height:min(54vh,520px);max-height:54vh}
.content-dialog .dialog-content{flex:none;min-height:auto;max-height:none;overflow:visible;overscroll-behavior:auto}
.content-dialog .dialog-actions{flex:0 0 auto;position:static}
@media(max-width:600px){.content-dialog[open]{height:92vh;max-height:92vh}.content-dialog .dialog-images{height:min(48vh,380px);max-height:48vh}}

/* Give the detail view more room so the carousel and its key fields need less scrolling. */
.content-dialog[open]{width:min(1180px,96vw);height:min(96vh,1100px);max-height:96vh}
.content-dialog .dialog-head{padding:16px 24px 12px}
.content-dialog .dialog-images{height:min(46vh,500px);max-height:46vh;padding:10px 28px}
.content-dialog .dialog-content{padding:12px 28px 18px}
.content-dialog .detail-list>div{padding:8px 12px}
.content-dialog .detail-section-title{margin:12px 0 8px}
.content-dialog .quiz-list{gap:5px}
.content-dialog .quiz-list li{padding:7px 10px}
@media(max-width:760px){.content-dialog[open]{width:96vw;height:96vh;max-height:96vh}.content-dialog .dialog-images{height:min(52vh,500px);max-height:52vh;padding:8px 10px}.content-dialog .dialog-content{padding:10px 16px 14px}}
.quiz-summary{margin-top:14px;padding:12px 14px;border:1px solid #eceae3;border-radius:12px;background:#fafaf8}
.quiz-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.quiz-summary .detail-section-title{margin:0}
.quiz-review-summary,.quiz-answer-list{display:flex;align-items:center;flex-wrap:wrap;gap:7px}
.quiz-review-chip{padding:3px 8px;border-radius:999px;background:#fff0c2;color:#77500b;font-size:12px;white-space:nowrap}
.quiz-answer-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 10px;border:1px solid #e7e5dc;border-radius:8px;background:#fff;color:#34443a;font-size:14px;font-weight:600}
.quiz-answer-chip small{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#edf1eb;color:#617064;font-size:11px;font-weight:500}
.quiz-empty{color:#748076;font-size:13px}
@media(max-width:600px){.quiz-summary{padding:10px}.quiz-summary-head{align-items:flex-start;flex-direction:column;gap:6px}.quiz-answer-list{gap:5px}.quiz-answer-chip{padding:4px 8px;font-size:13px}}
.review-panel{margin-top:14px;border:1px solid #e7e6df;border-radius:11px;background:#fbfbf9;overflow:hidden}
.review-panel>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;cursor:pointer;font-weight:650;color:#334439;list-style:none}
.review-panel>summary::-webkit-details-marker{display:none}.review-panel>summary::after{content:"＋";color:#748076;font-size:13px}.review-panel[open]>summary::after{content:"－"}
.review-panel .quiz-review-summary{justify-content:flex-end}.quiz-review-chip.approved{background:#e6f3e9;color:#24633b}.quiz-review-chip.rejected{background:#fae8e5;color:#9b4036}.quiz-review-chip.pending{background:#fff0c2;color:#77500b}
.quiz-review-list,.review-history-list{padding:0 14px 12px}.quiz-review-row{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:11px 0;border-top:1px solid #ecebe5}.quiz-review-row>div:first-child{min-width:0}.quiz-review-row p{margin:6px 0 2px;color:#49564c}.quiz-review-row small{color:#758077;white-space:pre-wrap}.review-status{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:99px;font-size:12px}.review-status.approved{background:#e6f3e9;color:#24633b}.review-status.rejected{background:#fae8e5;color:#9b4036}.review-status.pending{background:#fff0c2;color:#77500b}.quiz-review-actions{display:flex;gap:6px;flex:0 0 auto}.quiz-review-actions button{padding:6px 10px;font-size:12px}.history-count{color:#788279;font-size:12px;font-weight:400}.review-history-item{padding:9px 0;border-top:1px solid #ecebe5}.review-history-item>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.review-history-item time{font-size:12px;color:#778078}.review-history-item p{margin:5px 0 0;color:#6c4b43;white-space:pre-wrap}.review-history-item.approved strong{color:#24633b}.review-history-item.rejected strong{color:#a23f34}.review-history-item.pending strong{color:#856019}.dialog-actions button:disabled{opacity:.55;cursor:not-allowed}.dialog-actions button[data-action="issue-pass"]:disabled{min-width:190px}
@media(max-width:600px){.review-panel>summary{align-items:flex-start;flex-wrap:wrap;padding:10px}.review-panel .quiz-review-summary{justify-content:flex-start}.quiz-review-row{align-items:flex-start;flex-direction:column;gap:8px}.quiz-review-actions{align-self:flex-end}.review-history-item>div{align-items:flex-start;flex-direction:column;gap:3px}.dialog-actions button[data-action="issue-pass"]:disabled{min-width:auto}}

/* Card status stays visible at the top edge of the cover. */
.card{cursor:pointer;transition:transform .16s ease,box-shadow .16s ease}
.card:hover{transform:translateY(-2px);box-shadow:0 8px 24px #262b2020}
.card:focus-visible{outline:3px solid #4285f4;outline-offset:3px}
.card-status-badge{position:absolute;top:10px;right:10px;z-index:4;border:1px solid #ffffffd9;box-shadow:0 2px 8px #101b1630;font-weight:650}
.card-status-badge.draft{background:#eef0f2;color:#46515a}
.card-status-badge.review{background:#fff0c2;color:#77500b}
.card-status-badge.approved{background:#e5efff;color:#315b94}
.card-status-badge.scheduled{background:#eee5ff;color:#684a9b}
.card-status-badge.published{background:#def3e4;color:#216a3a}
.card-status-badge.rejected{background:#ffe4e1;color:#9a4035}

/* Show more of tall, multi-panel covers; keep the text overlay compact at the bottom. */
.card-visual{height:380px}
.card-overlay{padding:14px 10px 8px;background:linear-gradient(transparent,rgba(20,25,20,.78))}
.card-overlay h3{margin:0 0 2px;font-size:15px}
.card-overlay p.summary{height:2.75em;line-height:1.35;-webkit-line-clamp:2}
.card-footer{margin-top:4px;gap:6px}
@media(max-width:760px){.card-visual{height:clamp(320px,52vh,420px)}}

/* Let the long cover remain visible through the copy overlay instead of darkening its lower panel. */
.card-overlay{background:linear-gradient(transparent,rgba(20,25,20,.42));padding:14px 10px 8px}
.card-overlay h3,.card-overlay p.summary,.card-footer{ text-shadow:0 1px 3px #101510b8 }
