/* ===== poster-admin ===== */
.poster-contract{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:15px}
.poster-contract-item{position:relative;padding:15px;border-radius:17px;background:#fff;border:1px solid rgba(103,75,51,.09);box-shadow:0 6px 18px rgba(68,45,23,.04)}
.poster-contract-item b{display:block;font:500 14px/1.25 Georgia,"Songti SC",serif;color:#4f3824}
.poster-contract-item span{display:block;margin-top:6px;font-size:8px;line-height:1.55;color:var(--muted)}
.poster-contract-item em{position:absolute;right:10px;top:10px;font-style:normal;width:22px;height:22px;border-radius:50%;display:grid;place-items:center;background:#f1e7dc;color:#76502e;font-size:8px}
.poster-final-banner{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:14px;padding:13px 15px;border-radius:16px;background:#f7f1ea;border:1px solid #e8ddd2}
.poster-final-banner strong{font-size:11px;color:#4e3928}.poster-final-banner span{display:block;margin-top:4px;font-size:8px;color:#918276;line-height:1.55}
.poster-final-badge{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#e9f1e7;color:#58724f;font-size:8px}
.poster-template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.poster-template-card{overflow:hidden;border-radius:18px;background:#fff;border:1px solid rgba(103,75,51,.09);box-shadow:0 7px 20px rgba(68,45,23,.04)}
.poster-template-preview{height:230px;padding:12px;background:#eee6dd;display:grid;place-items:center}
.poster-mini-canvas{height:100%;aspect-ratio:3/4;position:relative;overflow:hidden;border-radius:14px;background:linear-gradient(145deg,#3e3025,#8c6948);color:#fff;box-shadow:0 10px 24px rgba(62,43,29,.14)}
.poster-mini-canvas img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.poster-mini-canvas::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,14,10,.08),rgba(20,14,10,.58))}
.poster-mini-canvas.poster-shade-soft::after{background:linear-gradient(180deg,rgba(20,14,10,.03),rgba(20,14,10,.28))}.poster-mini-canvas.poster-shade-deep::after{background:linear-gradient(180deg,rgba(20,14,10,.18),rgba(20,14,10,.72))}
.poster-mini-canvas.poster-tone-dark{color:#37291f}.poster-mini-canvas.poster-tone-dark::after{background:rgba(250,244,236,.38)}.poster-mini-canvas.poster-tone-gold{color:#ead0a1}
.poster-mini-copy{position:absolute;z-index:2;left:15px;right:15px;bottom:14px}
.poster-layout-editorial .poster-mini-copy{top:28%;bottom:auto}.poster-layout-center .poster-mini-copy{top:50%;bottom:auto;transform:translateY(-50%);text-align:center}.poster-layout-blackgold .poster-mini-copy{text-align:center}.poster-layout-paper .poster-mini-copy{top:21%;bottom:auto}.poster-layout-case .poster-mini-copy{bottom:19px}
.poster-mini-copy small{display:block;font-size:7px;letter-spacing:.12em;opacity:.72}
.poster-mini-copy strong{display:block;margin-top:9px;font:500 16px/1.55 Georgia,"Songti SC",serif}
.poster-mini-brand{margin-top:10px;font-size:7px;opacity:.72}
.poster-template-body{padding:14px}.poster-template-head{display:flex;justify-content:space-between;gap:10px}.poster-template-head strong{font-size:11px}
.poster-template-desc{margin-top:7px;font-size:8px;line-height:1.55;color:var(--muted);min-height:25px}
.poster-template-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:9px}.poster-template-tags span{padding:4px 6px;border-radius:999px;background:#f2ece5;color:#80664e;font-size:7px}
.poster-template-actions{display:flex;gap:7px;margin-top:12px}.poster-template-actions button{flex:1;height:31px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#765637;font-size:8px;cursor:pointer}.poster-template-actions button.primary{background:#f1e8df;border-color:transparent}
.poster-publish-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:14px}
.poster-publish-card{background:#fff;border:1px solid rgba(103,75,51,.09);border-radius:19px;padding:18px;box-shadow:0 7px 22px rgba(68,45,23,.04)}
.poster-publish-card h3{margin:0;font:500 15px/1.2 Georgia,"Songti SC",serif}.poster-publish-card>p{margin:6px 0 15px;font-size:8px;line-height:1.65;color:var(--muted)}
.poster-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.poster-count{padding:13px;border-radius:14px;background:#f6f1eb;text-align:center}.poster-count b{display:block;font:500 22px/1 Georgia,serif;color:#76502d}.poster-count span{display:block;margin-top:6px;font-size:8px;color:var(--muted)}
.poster-check-list{display:grid;gap:7px;margin-top:14px}.poster-check-row{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:12px;background:#f8f4ef;font-size:8px;color:#6d5a49}.poster-check-row.ok::before{content:"✓";color:#5f7d5d}.poster-check-row.error{background:#f7eae7;color:#9b5f56}.poster-check-row.error::before{content:"!";font-weight:700}
.poster-rule-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.poster-rule-grid .field{margin:0}
.poster-history{display:grid;gap:7px;margin-top:13px}.poster-history-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:10px 0;border-top:1px solid var(--line2)}.poster-history-row:first-child{border-top:0}.poster-history-row strong{font-size:9px}.poster-history-row span{display:block;margin-top:4px;font-size:7px;color:var(--muted)}
.poster-checkbox-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;padding:9px;border:1px solid var(--line);border-radius:12px;background:#fff}
.poster-checkbox{display:flex;align-items:center;gap:7px;font-size:8px;color:#665446}.poster-checkbox input{width:auto}
.poster-modal-note{padding:10px 11px;border-radius:12px;background:#f4eee7;color:#826b56;font-size:8px;line-height:1.65}
.poster-source-pill{display:inline-flex;padding:4px 6px;border-radius:999px;background:#f1ebe4;color:#7c624a;font-size:7px}
.poster-bg-preview{height:130px;border-radius:14px;overflow:hidden;background:linear-gradient(145deg,#e6d9c9,#6e5138);display:grid;place-items:center;color:#fff;font-size:10px}
.poster-bg-preview img{width:100%;height:100%;object-fit:cover}
.poster-fixed-scope{padding:12px 13px;border-radius:14px;background:linear-gradient(145deg,#5d3a20,#765238);color:#fff;margin-bottom:13px}
.poster-fixed-scope strong{display:block;font:500 14px/1.3 Georgia,"Songti SC",serif}.poster-fixed-scope span{display:block;margin-top:6px;font-size:8px;line-height:1.6;color:rgba(255,255,255,.67)}
.template-kind-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:min(520px,100%);padding:5px;margin:-2px 0 15px;border:1px solid var(--line);border-radius:15px;background:#fff}.template-kind-switch button{height:42px;border:0;border-radius:11px;background:transparent;color:#76675a;cursor:pointer;font-size:11px}.template-kind-switch button.active{background:var(--accent);color:#fff;box-shadow:0 7px 16px rgba(73,45,24,.14)}.template-kind-switch small{margin-left:5px;opacity:.72}
.cover-template-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.cover-template-card{overflow:hidden;border-radius:18px;background:#fff;border:1px solid rgba(103,75,51,.09);box-shadow:0 7px 20px rgba(68,45,23,.04)}.cover-template-preview{padding:12px;background:#eee6dd}.cover-mini-canvas{position:relative;overflow:hidden;aspect-ratio:25/16;border-radius:13px;background:linear-gradient(145deg,#d8c5aa,#6e5138)}.cover-mini-canvas img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cover-mini-canvas::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 52%,rgba(38,24,15,.18))}.cover-template-body{padding:14px}.cover-template-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.cover-template-head strong{font-size:11px}.cover-template-desc{min-height:25px;margin-top:7px;color:var(--muted);font-size:8px;line-height:1.55}.cover-template-meta{display:flex;gap:6px;flex-wrap:wrap;margin-top:9px}.cover-template-meta span{padding:4px 6px;border-radius:999px;background:#f2ece5;color:#80664e;font-size:7px}
.cover-crop-stack{display:grid;gap:14px}.cover-crop-block strong{display:block;margin-bottom:7px;font-size:9px;color:#715b48}.cover-crop{position:relative;overflow:hidden;border-radius:13px;background:#eee6dd}.cover-crop.wide{aspect-ratio:410/220}.cover-crop.slim{aspect-ratio:410/103}.cover-crop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.cover-preview-note{margin-top:12px;padding:10px 11px;border-radius:12px;background:#f4eee7;color:#826b56;font-size:8px;line-height:1.65}
@media(max-width:1100px){.poster-contract{grid-template-columns:repeat(2,1fr)}.poster-template-grid{grid-template-columns:repeat(2,1fr)}.poster-publish-grid{grid-template-columns:1fr}}
@media(max-width:1100px){.cover-template-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.poster-template-grid,.cover-template-grid{grid-template-columns:1fr}.poster-contract{grid-template-columns:1fr 1fr}}
.server-content-template-panel { margin-bottom: 14px; }
.server-content-template-grid { display: grid; gap: 10px; }
.server-content-template-card { display: flex; padding: 14px; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.server-content-template-card > div:first-child { min-width: 0; }
.server-content-template-card strong, .server-content-template-card span, .server-content-template-card small { display: block; }
.server-content-template-card > div:first-child span { margin-top: 5px; color: var(--muted); }
.server-content-template-card small { margin-top: 7px; color: var(--muted); }
.server-material-head { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.server-material-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.server-material-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.server-material-card > img { display: block; width: 100%; height: 100px; object-fit: cover; background: var(--soft); }
.server-material-card > div { padding: 10px 12px; }
.server-material-card strong, .server-material-card small { display: block; }
.server-material-card small { margin-top: 5px; color: var(--muted); }
