/* Front-end cards. Admin layout is isolated in studio.css. */
.ggp-poster-controls{display:grid;gap:13px}
.ggp-poster-controls label{display:flex;flex-direction:column;gap:7px;font-weight:600}
.ggp-poster-controls input,.ggp-poster-controls select,.ggp-poster-controls textarea{width:100%;max-width:100%;font-weight:400}
.ggp-poster-control-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ggp-poster-preview-wrap{display:flex;justify-content:center;max-width:100%;overflow:visible;margin:22px 0 25px}
.ggp-poster-stage{position:relative;width:540px;height:720px;flex:none;transform-origin:top left}
.ggp-poster-sheet{position:relative;box-sizing:border-box;width:540px;height:720px;background:#fff;color:#1e2933;overflow:hidden;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:16px;line-height:1.5}
.ggp-poster-sheet *{box-sizing:border-box}
.ggp-poster-photo{height:265px;background:linear-gradient(135deg,#546879,#becfd7);overflow:hidden}
.ggp-poster-photo img{width:100%;height:100%;object-fit:cover;display:block}
.ggp-poster-info{position:relative;height:455px;padding:27px 35px 0;display:flex;flex-direction:column}
.ggp-poster-tag{align-self:flex-start;background:#192b36;color:#fff;font-weight:700;letter-spacing:.08em;font-size:12px;padding:5px 10px}
.ggp-poster-headline{font-weight:750;line-height:1.38;overflow-wrap:anywhere;color:#172733;margin:17px 0 12px;font-size:29px;max-height:94px;overflow:hidden}
.ggp-poster-summary{font-size:16px;color:#66727c;line-height:1.65;overflow-wrap:anywhere;max-height:80px;overflow:hidden;margin:0}
.ggp-poster-bottom{margin-top:auto;display:flex;align-items:flex-end;justify-content:space-between;gap:16px;border-top:1px solid #e5e9ed;padding:15px 0 23px}
.ggp-poster-brand{display:flex;flex-direction:column;gap:4px;min-width:0}
.ggp-poster-brand strong{font-size:24px;letter-spacing:.06em}
.ggp-poster-brand span{font-size:12px;color:#69747d;max-width:300px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ggp-poster-qr{width:106px;height:106px;flex:0 0 106px;background:#fff;border:5px solid #fff}
.ggp-poster-qr svg{width:100%;height:100%;display:block}
.ggp-poster-sheet.is-mongolian .ggp-poster-info{display:block;padding:21px 27px}
.ggp-poster-sheet.is-mongolian .ggp-poster-tag{display:inline-block}
.ggp-poster-sheet.is-mongolian .ggp-poster-text-flow{display:flex;gap:22px;align-items:flex-start;margin-top:13px;height:245px;overflow:hidden}
.ggp-poster-sheet.is-mongolian .ggp-poster-headline{writing-mode:vertical-lr;text-orientation:mixed;direction:ltr;word-break:normal;overflow-wrap:normal;max-height:235px;max-width:170px;height:235px;font-size:25px;line-height:1.48;margin:0;flex:none;font-weight:700}
.ggp-poster-sheet.is-mongolian .ggp-poster-summary{writing-mode:vertical-lr;text-orientation:mixed;direction:ltr;word-break:normal;overflow-wrap:normal;max-height:235px;max-width:235px;height:235px;margin:0;font-size:15px;color:#61707b;line-height:1.65}
.ggp-poster-sheet.is-mongolian .ggp-poster-bottom{position:absolute;bottom:0;left:27px;right:27px}
.ggp-poster-modal{position:fixed;inset:0;z-index:2147483000;background:rgba(12,20,28,.72);display:flex;align-items:center;justify-content:center;padding:15px;writing-mode:horizontal-tb!important}
.ggp-poster-modal-box{box-sizing:border-box;position:relative;width:min(690px,100%);max-height:94vh;overflow-y:auto;background:#fff;border-radius:12px;padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px;color:#172733;font:14px/1.5 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif}
.ggp-poster-modal-top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:8px}
.ggp-poster-modal-top strong{font-size:17px}
.ggp-poster-modal-close{border:0;background:transparent;font-size:25px;cursor:pointer;line-height:1}
.ggp-poster-modal .ggp-poster-preview-wrap{margin:0}
.ggp-poster-modal-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:center}
.ggp-poster-modal-actions button{background:#f5f7f8;color:#202d3b;border:1px solid #d9e1e5;border-radius:7px;min-height:37px;padding:8px 15px;cursor:pointer;font-size:14px}
.ggp-poster-modal-actions button:first-child{background:#2077d4;color:white;border-color:#2077d4}
.ggp-poster-modal [data-poster-status]{min-height:18px;text-align:center;color:#465a69}
@media(prefers-reduced-motion:reduce){.ggp-poster-sheet *{transition:none!important}}
.ggp-poster-sheet.is-text-only .ggp-poster-photo{display:none}
.ggp-poster-sheet.is-text-only .ggp-poster-info{height:100%!important;padding:0 35px;position:relative;display:block}
.ggp-poster-sheet.is-text-only .ggp-poster-text-flow{position:absolute;inset:0;height:auto;display:block!important;margin:0;overflow:visible}
.ggp-poster-sheet.is-text-only .ggp-poster-headline{position:absolute!important;top:48%;left:50%;transform:translate(-50%,-50%);margin:0;max-height:60%;width:80%;text-align:center;font-weight:500;line-height:1.45;overflow:hidden;white-space:pre-wrap}
.ggp-poster-sheet.is-text-only .ggp-poster-summary{position:absolute!important;top:62%;left:66%;transform:translate(-50%,-50%);width:72%;height:auto;max-height:25%;text-align:center;overflow:hidden;font-size:16px;white-space:pre-wrap}
.ggp-poster-sheet.is-mongolian.is-text-only .ggp-poster-headline{writing-mode:vertical-lr!important;text-orientation:mixed;direction:ltr;max-width:45%;height:55%;max-height:55%;width:auto;text-align:center;word-break:normal;overflow-wrap:normal}
.ggp-poster-sheet.is-mongolian.is-text-only .ggp-poster-summary{writing-mode:vertical-lr!important;text-orientation:mixed;direction:ltr;width:auto;max-width:32%;height:40%;max-height:40%;text-align:left;word-break:normal;overflow-wrap:normal}
.ggp-poster-sheet.is-text-only .ggp-poster-bottom{position:absolute;bottom:0;left:35px;right:35px;margin:0;padding:13px 0 22px}
.ggp-poster-sheet .ggp-poster-site-logo{display:block;max-width:104px!important;max-height:42px!important;width:auto!important;height:auto!important;object-fit:contain!important;object-position:left center}
.ggp-poster-sheet .ggp-poster-brand{max-width:235px;min-width:0;align-items:flex-start}
.ggp-poster-sheet .ggp-poster-brand span{max-width:210px;font-size:10px}
.ggp-poster-sheet .ggp-poster-custom-signature{position:absolute;bottom:126px;left:35px;z-index:2;font-size:12px;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ggp-poster-sheet .ggp-poster-qr{width:90px;height:90px;flex:0 0 90px}
.ggp-poster-sheet.ggp-poster-theme-editorial{background:#faf9f6}
.ggp-poster-sheet.ggp-poster-theme-warm{background:#f8f2e8}
.ggp-poster-sheet.ggp-poster-theme-blue{background:#eef7fc}
.ggp-poster-sheet.ggp-poster-theme-bold .ggp-poster-headline{font-weight:750}
.ggp-poster-sheet.ggp-poster-format-square .ggp-poster-info{height:100%}
.ggp-poster-sheet.has-cover .ggp-poster-photo{height:var(--ggp-photo-h)!important}
.ggp-poster-sheet.has-cover .ggp-poster-info{height:var(--ggp-info-h)!important}
.ggp-poster-sheet.has-cover .ggp-poster-headline{max-height:65%;overflow:hidden}
.ggp-poster-sheet.has-cover .ggp-poster-custom-signature{bottom:116px}
.ggp-poster-sheet.has-cover .ggp-poster-info{position:relative;display:block}
.ggp-poster-sheet.has-cover .ggp-poster-text-flow{position:absolute;inset:0;display:block!important;height:100%;margin:0;overflow:hidden}
.ggp-poster-sheet.has-cover .ggp-poster-headline{position:absolute;transform:translate(-50%,-50%);width:78%;max-width:78%;max-height:66%;height:auto;overflow:hidden;line-height:1.42;text-align:center;margin:0}
.ggp-poster-sheet.has-cover .ggp-poster-summary{position:absolute;transform:translate(-50%,-50%);width:74%;max-width:74%;height:auto;max-height:40%;overflow:hidden;text-align:center;margin:0}
.ggp-poster-sheet.is-mongolian.has-cover .ggp-poster-headline{writing-mode:vertical-lr!important;text-orientation:mixed;direction:ltr;max-height:72%;height:66%;width:auto;max-width:48%;text-align:center;overflow:hidden}
.ggp-poster-sheet.is-mongolian.has-cover .ggp-poster-summary{writing-mode:vertical-lr!important;text-orientation:mixed;direction:ltr;max-height:65%;height:60%;width:auto;max-width:38%;text-align:start;overflow:hidden}
.ggp-poster-sheet.has-cover .ggp-poster-bottom{position:absolute;bottom:0;left:27px;right:27px}
.ggp-poster-sheet .ggp-poster-custom-signature{position:absolute;z-index:3;transform:translate(-50%,-50%);max-height:55%;max-width:45%;overflow:hidden;line-height:1.45;white-space:pre-wrap}
.ggp-poster-sheet .ggp-poster-watermark-text{position:absolute;left:72%;top:44%;transform:translate(-50%,-50%);z-index:4;max-width:45%;max-height:45%;font-size:24px;line-height:1.4;pointer-events:none;overflow:hidden;white-space:pre-wrap}
.ggp-poster-sheet .ggp-poster-watermark-image{position:absolute;left:59%;top:36%;width:30%;height:22%;object-fit:contain;z-index:4;pointer-events:none}
.ggp-poster-sheet.ggp-logo-soft .ggp-poster-site-logo{background:#edf2f5;padding:5px;border-radius:6px}
.ggp-poster-sheet.ggp-logo-white .ggp-poster-site-logo{background:#fff;padding:5px;border-radius:6px}
.ggp-poster-sheet.ggp-logo-dark .ggp-poster-site-logo{background:#263747;padding:5px;border-radius:6px}
.ggp-poster-sheet.ggp-logo-shadow .ggp-poster-site-logo{background:#eef2f4;padding:5px;border-radius:6px;box-shadow:0 4px 14px rgba(0,0,0,.16)}
.ggp-poster-sheet .ggp-poster-custom-signature{bottom:auto!important;right:auto!important;min-height:0}
.ggp-poster-sheet.is-text-only .ggp-poster-photo{display:none!important;height:0!important}
.ggp-poster-sheet.is-text-only .ggp-poster-info{height:100%!important;min-height:100%!important}

/* QR controls: keep labels, sliders and units aligned without changing editor layout. */
.ggp-poster-qr-controls{display:grid;gap:10px;margin:12px 0;padding:12px 0;border-top:1px solid #eef1f4}
.ggp-poster-qr-controls>strong{font-size:13px;font-weight:600;color:#26394b}
.ggp-poster-qr-row{display:grid;grid-template-columns:112px minmax(0,1fr) 48px;align-items:center;column-gap:10px;font-size:12px;color:#4a5969;margin:0}
.ggp-poster-qr-row>span{white-space:nowrap}
.ggp-poster-qr-row input{width:100%;min-width:0;margin:0}
.ggp-poster-qr-row output{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.ggp-poster-qr-controls>.button{justify-self:start}
@media(max-width:480px){.ggp-poster-qr-row{grid-template-columns:100px minmax(0,1fr) 42px;gap:6px}}
