:root{font-family:Inter,Segoe UI,sans-serif;color:#172033;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}button,.button{border:0;background:#1168b1;color:#fff;border-radius:7px;padding:.7rem 1rem;font-weight:650;cursor:pointer;display:inline-flex;align-items:center;gap:.4rem;text-decoration:none}button:hover,.button:hover{background:#0c518b}button:disabled{opacity:.6}.secondary{background:#e8eef5;color:#234}.danger{background:#b42318}.link{background:none;color:#1168b1;padding:.5rem 0}.error{color:#b42318;background:#fff0ef;padding:.75rem;border-radius:6px}.loading,.login{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#eef7ff,#d9ecfa)}.card{background:#fff;border:1px solid #dde5ef;border-radius:10px;padding:1.2rem;box-shadow:0 3px 14px #1d39560d}.login-card{width:min(420px,90vw);display:grid;gap:1rem;padding:2rem}.login-card img{width:230px;max-height:100px;object-fit:contain;margin:auto}.login-card h1{text-align:center;color:#123f78}.shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.shell>aside{background:#102f52;color:#fff;padding:1.5rem;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:grid;margin-bottom:2rem}.brand strong{font-size:1.5rem;letter-spacing:.12em}.brand span{color:#a9cae8}.shell nav{display:grid;gap:.35rem}.shell nav button{background:transparent;justify-content:flex-start}.shell nav button.active,.shell nav button:hover{background:#1f527f}.profile{margin-top:auto;display:grid;gap:.35rem}.profile small{text-transform:capitalize;color:#a9cae8}.profile button{margin-top:.7rem;background:#ffffff17}.content{padding:2rem;max-width:1500px;width:100%;overflow:auto}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.5rem}.page-head h1{margin:0;color:#123f78}.welcome{background:linear-gradient(120deg,#123f78,#1686c7);color:#fff;padding:2.5rem;border-radius:12px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}.cover{aspect-ratio:1;height:auto;width:100%;object-fit:cover;border-radius:7px}.actions,.toolbar,.form-row{display:flex;gap:.7rem;align-items:end;flex-wrap:wrap}.editor,.detail{background:#fff;border:1px solid #dce5ef;border-radius:10px;padding:1.5rem;margin-bottom:1.5rem;display:grid;gap:1rem}label{display:grid;gap:.4rem;font-weight:650;flex:1}input,textarea,select{font:inherit;padding:.72rem;border:1px solid #bdcad9;border-radius:6px;background:#fff;width:100%}textarea{min-height:95px}.toolbar{margin-bottom:1rem}.toolbar input{max-width:430px}.table-wrap{background:#fff;border:1px solid #dde5ef;border-radius:10px;overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.85rem;border-bottom:1px solid #edf1f5}th{background:#f7f9fc;color:#526070}tbody tr{cursor:pointer}tbody tr:hover{background:#f2f8fd}td small{display:block;color:#687789}.status{background:#e6f3fc;color:#0b5c91;padding:.25rem .5rem;border-radius:99px}pre{white-space:pre-wrap;background:#f5f7fa;padding:1rem;border-radius:7px;max-height:500px;overflow:auto}.note{border-left:3px solid #1686c7;padding:.5rem 1rem;background:#f4f9fd}.character-editor{display:grid;gap:.8rem}.character-preview{min-height:150px;border:1px dashed #9fb7cf;border-radius:10px;background:#eef7ff;display:flex;align-items:end;gap:1rem;padding:1rem;color:#123f78;overflow:hidden}.character-preview img{width:110px;height:135px;object-fit:contain;flex:0 0 auto;transform-origin:bottom center}.character-preview p{margin:.35rem 0;color:#526070}.character-pop{animation:character-pop .5s cubic-bezier(.2,.8,.2,1)}.character-slide{animation:character-slide .5s ease-out}.character-peek{animation:character-peek .55s ease-out}.character-bounce{animation:character-bounce .65s ease-out}.popup-choice-section{min-width:0;margin:0;padding:1rem;border:1px solid #dce5ef;border-radius:10px}.popup-choice-section legend{padding:0 .4rem;color:#123f78;font-weight:750}.popup-choice-section.compact{padding-top:.7rem}.page-choice-grid{display:flex;flex-wrap:wrap;gap:.55rem}.page-choice{padding:.55rem .75rem;background:#eef2f6;color:#34495e;border:1px solid #d5dfe9}.page-choice:hover{background:#e3eef7}.page-choice.selected{background:#1168b1;border-color:#1168b1;color:#fff}.field-help{margin:0 0 1rem;color:#687789}.character-picker-grid,.popup-image-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(125px,1fr));gap:.7rem}.visual-choice{position:relative;min-width:0;padding:.55rem;border:2px solid transparent;border-radius:9px;background:#f3f6fa;color:#24384d;display:grid;place-items:center;gap:.45rem;text-align:center;font-size:.8rem;line-height:1.25}.visual-choice:hover{background:#e8f3fb}.visual-choice.selected{border-color:#1686c7;background:#e8f5fd;color:#123f78}.character-choice img{width:100%;height:105px;object-fit:contain}.popup-image-choice img,.no-visual{width:100%;height:85px;border-radius:6px}.popup-image-choice img{object-fit:cover}.no-visual{display:grid;place-items:center;background:#e1e8ef;color:#687789}.choice-check{position:absolute;top:.4rem;right:.4rem;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#1168b1;color:#fff;box-shadow:0 2px 6px #0002}.animation-choice{max-width:420px;margin-top:1rem}.popup-upload{width:max-content;margin-top:1rem}.popup-live-preview{padding:1rem;border-radius:12px;background:#dce8f3}.preview-label{display:block;margin-bottom:.65rem;color:#123f78;font-size:.85rem}.popup-live-preview article{max-width:540px;margin:auto;overflow:hidden;border-radius:11px;background:#fff;box-shadow:0 8px 25px #17365326}.preview-main-image{width:100%;height:180px;object-fit:cover}.preview-copy{min-width:0;padding:1.15rem;display:flex;align-items:end;gap:1rem}.preview-copy>div{flex:1;min-width:0}.preview-copy h3{margin:0 0 .45rem;color:#123f78;font-size:1.3rem}.preview-copy p{margin:0;color:#526070}.preview-cta{display:inline-block;margin-top:.8rem;padding:.45rem .75rem;border-radius:6px;background:#1168b1;color:#fff;font-weight:650}.preview-character{width:110px;height:140px;object-fit:contain;flex:0 0 auto;transform-origin:bottom center}.popup-live-preview.is-banner article{max-width:none;display:flex;align-items:stretch;background:#123f78}.popup-live-preview.is-banner .preview-main-image{width:150px;height:auto;min-height:125px}.popup-live-preview.is-banner .preview-copy{flex:1}.popup-live-preview.is-banner h3,.popup-live-preview.is-banner p{color:#fff}.popup-live-preview.is-banner .preview-character{width:85px;height:110px}.popup-card-visual{position:relative;height:150px;overflow:hidden;border-radius:8px;background:#e8f3fb}.popup-card-background{width:100%;height:100%;object-fit:cover}.popup-card-character{position:absolute;right:.35rem;bottom:-.2rem;width:90px;height:120px;object-fit:contain;filter:drop-shadow(0 3px 5px #0003)}@media(max-width:600px){.character-picker-grid,.popup-image-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.popup-live-preview.is-banner .preview-main-image{display:none}.preview-character{width:80px;height:110px}}@keyframes character-pop{0%{opacity:0;transform:scale(.55) translateY(16px)}}@keyframes character-slide{0%{opacity:0;transform:translate(70px)}}@keyframes character-peek{0%{opacity:0;transform:translateY(65px) rotate(8deg)}}@keyframes character-bounce{0%{opacity:0;transform:translateY(-25px) scale(.75)}60%{transform:translateY(5px) scale(1.04)}to{transform:none}}@keyframes character-float{50%{transform:translateY(-5px)}}@media(prefers-reduced-motion:reduce){.character-preview img{animation:none!important}}@media(max-width:800px){.shell{grid-template-columns:1fr}.shell>aside{height:auto;position:static}.shell nav{grid-template-columns:repeat(2,1fr)}.profile{margin-top:1rem}.content{padding:1rem}}@media(max-width:600px){.character-preview img{width:82px;height:105px}}.gallery-editor-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;border-top:1px solid #dde5ef;padding-top:1rem}.gallery-editor-head h3{margin:0 0 .25rem;color:#123f78}.gallery-editor-head p{margin:0;color:#687789}.gallery-upload{position:relative;display:inline-flex;align-items:center;gap:.45rem;flex:0 0 auto;background:#1168b1;color:#fff;border-radius:7px;padding:.7rem 1rem;font-weight:650;cursor:pointer}.gallery-upload:hover{background:#0c518b}.gallery-upload.is-uploading{opacity:.65;cursor:wait}.gallery-upload input{position:absolute;top:0;right:0;bottom:0;left:0;opacity:0;cursor:pointer}.gallery-empty{min-height:190px;border:2px dashed #b9c9da;border-radius:10px;background:#f8fbfe;color:#687789;display:grid;place-items:center;align-content:center;gap:.5rem;text-align:center;padding:2rem}.gallery-empty strong{color:#123f78}.gallery-media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1rem}.gallery-media-card{border:2px solid transparent;border-radius:12px;background:#f7f9fc;padding:.65rem;display:grid;gap:.7rem}.gallery-media-card.is-cover{border-color:#1686c7;background:#eef7ff}.gallery-media-preview{position:relative;width:100%;aspect-ratio:1;height:auto;padding:0;border-radius:8px;overflow:hidden;background:#dfe8f1}.gallery-media-preview:hover{background:#dfe8f1}.gallery-media-preview img{width:100%;height:100%;object-fit:cover;transition:transform .2s ease}.gallery-cover-badge,.gallery-cover-action{position:absolute;left:.5rem;bottom:.5rem;display:inline-flex;align-items:center;gap:.3rem;border-radius:999px;padding:.4rem .65rem;font-size:.78rem;font-weight:700;box-shadow:0 2px 7px #0003}.gallery-cover-badge{background:#1168b1;color:#fff}.gallery-cover-action{background:#fffffff0;color:#123f78;opacity:0;transition:opacity .15s}.gallery-media-preview:hover .gallery-cover-action,.gallery-media-preview:focus-visible .gallery-cover-action{opacity:1}.gallery-caption{font-size:.85rem}.gallery-caption input{padding:.55rem}.gallery-media-actions{display:flex;gap:.4rem;flex-wrap:wrap}.icon-button{padding:.52rem}.gallery-media-actions .danger{margin-left:auto}@media(max-width:600px){.gallery-media-grid{grid-template-columns:1fr 1fr}.gallery-media-card{padding:.5rem}.gallery-media-actions{gap:.3rem}.icon-button{padding:.45rem}}.character-float{animation:character-pop .4s ease-out,character-float 3s ease-in-out .4s infinite}.upload{border:1px dashed #1686c7;padding:1rem;color:#1168b1;display:flex;align-items:center;cursor:pointer}.upload input{border:0;padding:0;width:auto}.checkbox-row{display:flex;align-items:center;gap:.6rem}.checkbox-row input{width:auto}
