﻿:root{--page:#e9eaec;--panel:#f7f7f8;--ink:#17181a;--muted:#777b82;--line:#dedfe2;--accent:#f0fa1e;--poster:#111212;--radius:18px;--gap:14px;--control:310px;font-family:"OPPOSans";color:var(--ink)}

@font-face{font-family:"OPPOSans";src:url("../fonts/OPPOSANS-L.TTF") format("truetype");font-style:normal;font-weight:300;font-display:block}
@font-face{font-family:"OPPOSans";src:url("../fonts/OPPOSANS-R.TTF") format("truetype");font-style:normal;font-weight:400;font-display:block}
@font-face{font-family:"OPPOSans";src:url("../fonts/OPPOSANS-M.TTF") format("truetype");font-style:normal;font-weight:500;font-display:block}
@font-face{font-family:"OPPOSans";src:url("../fonts/OPPOSANS-B.TTF") format("truetype");font-style:normal;font-weight:700;font-display:block}
@font-face{font-family:"OPPOSans";src:url("../fonts/OPPOSANS-H.TTF") format("truetype");font-style:normal;font-weight:900;font-display:block}

:root{--type-large:56px;--type-medium:14px;--type-small:7px}

*{box-sizing:border-box}
button,input,select,textarea{font-family:"OPPOSans"}
body{margin:0;background:var(--page);min-width:320px}
.toolbar{height:62px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;position:sticky;top:0;z-index:20}
.brand,.toolbar-actions{display:flex;align-items:center;gap:8px}
.brand{font-weight:700}
.brand-mark{width:10px;height:10px;border-radius:50%;background:var(--accent);box-shadow:6px 0 0 #1b1b1b}
.toolbar button,.controls button{border:1px solid var(--line);background:#fff;color:#252629;border-radius:8px;padding:9px 12px;cursor:pointer;font:inherit}
.toolbar button:hover,.controls button:hover{border-color:#aeb0b4}
.toolbar button.active{background:#212225;color:#fff;border-color:#212225}
.toolbar button.primary,.controls button.primary{background:var(--accent);border-color:var(--accent);color:#141414;font-weight:700}
.workspace{display:block;min-height:calc(100vh - 62px)}
.preview-pane{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:calc(100vh - 62px);padding:32px;overflow:auto}
.posters-row{width:100%;display:flex;align-items:flex-start;justify-content:center;gap:28px;flex-wrap:wrap}
.poster-variant{display:flex;flex-direction:column;align-items:center;gap:9px}
.variant-label{font-size:11px;color:var(--muted)}
.poster-viewport{width:360px;height:593px;position:relative}
.poster-scaler{width:360px;height:593px;transform-origin:top left}
.poster{width:360px;height:593px;position:relative;overflow:hidden;border-radius:0;background:var(--poster);color:#fff;padding:22px 18px 16px;display:flex;flex-direction:column;box-shadow:0 14px 35px rgba(0,0,0,.24);isolation:isolate}
.poster-light{background:#f6f6f2;color:#17181a;box-shadow:0 14px 35px rgba(0,0,0,.14)}
.poster-light .project-no,.poster-light .title-small .editable,.poster-light .thumb-label{color:#17181a!important}
.poster-light .title-small [data-text="workflow"]{color:#f0fa1e!important}
.poster-light .static-logo img{filter:invert(1)}
.poster-light .hero-fade-dark{display:none!important}
.poster-light .hero-fade-light{display:block!important}
.poster-light .placeholder{color:#606468}
.poster-light .image-slot{cursor:pointer}
.poster-header{height:91px;flex:none;padding:0;display:grid;grid-template-columns:1fr 1fr;align-items:start;position:relative;z-index:4}
.project-no{font-size:var(--type-large);line-height:.92;font-weight:900;letter-spacing:-2px;max-width:84px}
.title-small{font-size:var(--type-medium);line-height:1.18;font-weight:500;letter-spacing:.15px;padding-top:4px;width:105px;text-align:left}
.title-small [data-text="workflow"]{color:#f0fa1e}
.editable{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:1px;outline:0;border-radius:2px}
.editable:hover,.editable:focus{box-shadow:0 0 0 1px rgba(169,200,50,.75);background:rgba(169,200,50,.09)}
.image-slot{position:relative;overflow:hidden;cursor:pointer;background:#292b2c}
.image-slot img{width:100%;height:100%;display:none;object-fit:cover;object-position:50% 50%;pointer-events:none}
.image-slot.has-image img{display:block}
.logo-slot{width:84px;height:14px;background:transparent}
.logo-slot img{object-fit:contain;object-position:right top}
.hero-area{height:308px;width:360px;margin-left:-18px;flex:none;position:relative}
.hero-slot{position:absolute;z-index:1;left:0;top:-113px;width:360px;height:473px;flex:none;border:0;border-radius:0;background:transparent;box-shadow:none;outline:0}
.hero-slot:focus,.hero-slot:focus-visible{outline:0;box-shadow:none}
.hero-slot .upload-hint{inset:auto;left:50%;top:50%;width:max-content;padding:5px 9px;border-radius:999px;background:rgba(8,9,9,.58);transform:translate(-50%,-50%)}
.hero-slot::before{content:none}
.hero-area .hero-fade{position:absolute;z-index:1;left:0;right:0;top:182px;width:100%;height:210px;max-width:none;max-height:none;display:block;object-fit:fill;object-position:50% 50%;pointer-events:none}
.hero-area .hero-fade-light{display:none}
.hero-slot img{z-index:0}
.hero-slot .placeholder,.hero-slot .upload-hint{z-index:2}
.placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#a9abad;font-size:10px;letter-spacing:.5px}
.placeholder span{font-size:22px;font-weight:200}
.has-image>.placeholder{display:none}
.upload-hint{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(5,5,5,.55);color:white;font-size:9px;letter-spacing:.4px;opacity:0;transition:.18s}
.image-slot:hover .upload-hint,.image-slot.dragover .upload-hint{opacity:1}
.thumb-grid{height:130px;flex:none;display:grid;grid-template-columns:repeat(4,1fr);gap:5px;padding-top:0;position:relative;z-index:2}
.thumb-card{min-width:0;text-align:center}
.thumb-slot{height:auto;aspect-ratio:3/4;border-radius:6px;background:linear-gradient(145deg,#3d3f40,#202122)}
.thumb-card:nth-child(2) .thumb-slot{background:linear-gradient(145deg,#454747,#252626)}
.thumb-card:nth-child(3) .thumb-slot{background:linear-gradient(145deg,#505252,#282929)}
.thumb-card:nth-child(4) .thumb-slot{background:linear-gradient(145deg,#353737,#1c1d1d)}
.thumb-label{font-size:var(--type-small);line-height:17px;font-weight:400;letter-spacing:.15px;margin:auto;max-width:75px}
.poster-footer{height:26px;flex:none;display:grid;grid-template-columns:1fr 1fr;align-items:end}
.personal{width:auto;min-width:78px;max-width:122px;height:16px;padding:0;border-radius:0;background:transparent;color:#f0fa1e;display:flex;align-items:center;justify-content:flex-end;text-align:right;line-height:1;font-size:var(--type-small);font-weight:300;letter-spacing:.15px}
.personal:hover,.personal:focus{box-shadow:none;background:transparent;outline:none}
.header-logo-block{width:77px;margin-top:2px}
.header-logo-line{display:block;width:100%;height:1px;margin-bottom:2px;background:#f0fa1e}
.footer-logo-slot{width:77px;height:15px;background:transparent}
.footer-logo-slot img{object-fit:contain}
.student-info{width:auto;min-width:62px;max-width:180px;height:16px;padding:0 8px;border-radius:999px;background:#f0fa1e;color:#000;display:flex;align-items:center;justify-content:center;font-size:var(--type-small);line-height:1;font-weight:500;letter-spacing:.15px;text-align:center}
.student-info:hover,.student-info:focus{box-shadow:none;background:#f0fa1e;outline:none}
.dots{display:flex;gap:3px}
.dots i{width:5px;height:5px;border-radius:50%;background:#f0fa1e}
.dots i:nth-child(2),.dots i:nth-child(3),.dots i:nth-child(4){background:#f0fa1e}
.preview-note{font-size:12px;color:var(--muted);margin:14px 0 0}
.controls{background:var(--panel);border-left:1px solid var(--line);padding:18px;overflow:auto;max-height:calc(100vh - 62px);position:sticky;top:62px}
.controls[hidden]{display:none!important}
.panel-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:14px}
.panel-heading h1{font-size:17px;margin:0 0 3px}
.panel-heading p{font-size:11px;color:var(--muted);margin:0}
.panel-heading span{font-size:10px;color:#78951a;background:#eef4db;padding:4px 7px;border-radius:10px}
.controls details{background:#fff;border:1px solid var(--line);border-radius:10px;margin-bottom:10px;overflow:hidden}
.controls summary{padding:12px 13px;font-size:13px;font-weight:700;cursor:pointer;list-style:none}
.controls summary::-webkit-details-marker{display:none}
.controls summary:after{content:"+";float:right;color:#8b8e93}
.controls details[open] summary:after{content:"-"}
.group-body{border-top:1px solid #eeeeef;padding:12px;display:grid;gap:10px}
.group-body label{font-size:11px;color:#55585d;display:grid;gap:5px}
.group-body input,.group-body select{width:100%;height:34px;border:1px solid var(--line);border-radius:7px;background:#fff;padding:5px 8px;color:#202124}
.group-body input[type=color]{padding:2px}
.group-body input[type=range]{height:auto;padding:0}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.wide{width:100%}
.controls button.danger{color:#a23b35}
.group-body fieldset{border:1px solid var(--line);border-radius:8px}
.group-body legend{font-size:11px;color:#55585d}
.dot-inputs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}
.muted{font-size:11px;line-height:1.5;color:var(--muted);margin:0}
#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#191a1c;color:#fff;padding:10px 15px;border-radius:8px;font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:50}
#toast.show{opacity:1;transform:translate(-50%,0)}

body.preview-mode .controls,body.preview-mode .preview-note{display:none}
body.preview-mode .variant-label{display:none}
body.preview-mode .workspace{display:flex;justify-content:center}
body.preview-mode .editable{pointer-events:none}
body.preview-mode .editable:hover,body.preview-mode .editable:focus{box-shadow:none!important;background:transparent!important;outline:0!important}
body.export-mode .editable{box-shadow:none!important;outline:0!important}
body.preview-mode .upload-hint,body.preview-mode .placeholder,body.export-mode .upload-hint,body.export-mode .placeholder{display:none!important}
body.preview-mode .editor-only,body.export-mode .editor-only{display:none!important}
body.preview-mode .image-slot{cursor:default}
body.export-mode *{caret-color:transparent!important}
body.exporting{cursor:wait}

.crop-modal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(13,14,15,.72);backdrop-filter:blur(5px)}
.crop-modal[hidden]{display:none}
.crop-dialog{width:min(480px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:16px;background:#fff;padding:18px;box-shadow:0 24px 70px rgba(0,0,0,.35)}
.crop-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px}
.crop-heading h2{font-size:18px;margin:0 0 4px}
.crop-heading p{font-size:12px;color:var(--muted);margin:0}
.crop-heading button{width:30px;height:30px;border:0;border-radius:50%;background:#eff0f1;color:#333;font-size:21px;line-height:28px;cursor:pointer}
.crop-stage{position:relative;width:min(72vw,390px);max-height:55vh;aspect-ratio:1/1;margin:auto;overflow:hidden;border-radius:10px;background:#171818;cursor:grab;touch-action:none;user-select:none}
.crop-stage[data-aspect="portrait"]{width:min(58vw,300px);aspect-ratio:3/4}
.crop-stage[data-aspect="wide"]{width:min(78vw,420px);aspect-ratio:16/9}
.crop-stage[data-aspect="fixed"]{width:min(66vw,320px);aspect-ratio:360/473}
.crop-stage.dragging{cursor:grabbing}
.crop-stage img{position:absolute;left:50%;top:50%;max-width:none;max-height:none;pointer-events:none;user-select:none}
.crop-zoom{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;margin:16px 0 14px;font-size:12px;color:#555}
.crop-zoom input{width:100%}
.crop-actions{display:flex;justify-content:flex-end;gap:8px}
.crop-actions button{border:1px solid var(--line);border-radius:8px;background:#fff;padding:9px 15px;cursor:pointer}
.crop-actions button.primary{border-color:var(--accent);background:var(--accent);color:#151515;font-weight:700}
body.crop-open{overflow:hidden}

@media(max-width:800px){.toolbar{height:auto;min-height:62px;padding:10px 12px;align-items:flex-start}
.brand{padding-top:8px}
.toolbar-actions{justify-content:flex-end;flex-wrap:wrap}
.toolbar button{padding:7px 9px;font-size:12px}
.workspace{display:block}
.preview-pane{min-height:650px;padding:22px 10px}
.controls{position:static;max-height:none;width:100%;border-left:0;border-top:1px solid var(--line)}
body.preview-mode .preview-pane{min-height:calc(100vh - 80px)}
}


/* Fixed logos and four shared corner reference lines. */
.static-logo{position:relative;overflow:hidden}

.static-logo img{width:100%;height:100%;display:block;object-fit:contain;pointer-events:none}

.project-no{position:relative;z-index:3;pointer-events:auto;cursor:text;user-select:text;-webkit-user-select:text}

body.preview-mode .project-no{cursor:default;user-select:none;-webkit-user-select:none}

.corner-top-left,.corner-top-right,.corner-bottom-left,.corner-bottom-right{min-width:0}

.corner-top-left{display:flex;flex-direction:column;align-items:flex-start;text-align:left}

.corner-top-right{width:100%;height:auto;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;gap:7px;text-align:right}

.corner-bottom-left{display:flex;align-items:flex-end;justify-content:flex-start}

.corner-bottom-right{width:100%;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;gap:3px}

/* Left header information uses the requested inverse color per poster variant. */
.poster:not(.poster-light) .corner-top-left .project-no,
.poster:not(.poster-light) .corner-top-left .title-small .editable{color:#000!important}
.poster-light .corner-top-left .project-no,
.poster-light .corner-top-left .title-small .editable{color:#fff!important}
.poster:not(.poster-light) .header-logo-block img{filter:invert(1)}
.poster-light .header-logo-block img{filter:none}
.poster:not(.poster-light) .corner-top-left .title-small .editable[data-text="workflow"]{color:#000!important}
.poster-light .corner-top-left .title-small .editable[data-text="workflow"]{color:#fff!important}
.poster:not(.poster-light) .header-logo-line{background:#000}
.poster-light .header-logo-line{background:#fff}
.poster-light .student-info,.poster-light .personal{color:#000!important}




