/* Pygmalion · unified visual system for remaining pages.
 * Scoped to body.pyg-site-polish (never admin, library, creation, or Story).
 * Layer intentionally sits after legacy page styles to minimize markup changes.
 */
body.pyg-site-polish{
 --polish-bg:#11151d;
 --polish-panel:#1b202a;
 --polish-panel2:#202635;
 --polish-elevated:#252c3d;
 --polish-border:#343e52;
 --polish-text:#f3f5fa;
 --polish-muted:#a8b6cf;
 --polish-accent:#94a9eb;
 --polish-accent-border:#94a9eb;
 --polish-soft:#2b284d;
 --ink:#f3f5fa;
 --surface:#1b202a;
 --paper:#141a26;
 --line:#343e52;
 --muted:#a8b6cf;
 --accent:#94a9eb;
 --accent-dark:#94a9eb;
 --shadow:0 16px 44px #00000027;
 color:var(--polish-text);
 color-scheme:dark;
 background:
  radial-gradient(ellipse 790px 500px at 84% -140px,#32285b42,transparent 72%),
  linear-gradient(165deg,#11151d,#0e1420 75%);
}
body.pyg-site-polish .page-shell{
 width:min(1430px,calc(100% - 42px));
 max-width:1430px;
 padding-top:28px;
 min-height:calc(100vh - 190px);
}
body.pyg-site-polish :is(.primary-button,.secondary-button,button,.history-card,.analysis-history-card,.credit-package,.characters-panel,.series-panel,.st-panel){
 -webkit-tap-highlight-color:transparent;
}
body.pyg-site-polish .eyebrow{
 font-size:.67rem;letter-spacing:.14em;font-weight:850;
 color:#b3c3f1;text-transform:uppercase;
}
body.pyg-site-polish :is(.section-heading h1,.library-heading h1,.credits-page-heading h1,.analysis-archive-header h1,.auth-card h1,.contact-intro h1,.characters-header h1,.series-hero h1,.result-heading h1){
 color:var(--polish-text);letter-spacing:-.045em;
 line-height:1.13;
}
body.pyg-site-polish :is(.section-heading,.library-heading,.credits-page-heading){
 margin-bottom:23px;
}
body.pyg-site-polish :is(.primary-button,.secondary-button){
 display:inline-flex;align-items:center;justify-content:center;gap:9px;
 border-radius:10px;min-height:43px;
 padding:10px 15px;
 font-weight:770;line-height:1.35;
 border:1px solid #7f92bc;
 text-decoration:none;
 transition:background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
body.pyg-site-polish .primary-button{
 background:linear-gradient(110deg,#536a9e,#536a9e);
 color:#fff;border-color:#7f92bc;
 box-shadow:0 7px 18px #667bae2e;
}
body.pyg-site-polish .primary-button:hover:not(:disabled){
 background:linear-gradient(110deg,#536a9e,#9cadcf);
 border-color:#7f92bc;
 transform:translateY(-1px);box-shadow:0 10px 25px #667bae3b;
}
body.pyg-site-polish .secondary-button{
 background:#252b3e;color:#ebe8ff;
 border-color:#505864;
}
body.pyg-site-polish .secondary-button:hover:not(:disabled){
 background:#343356;border-color:#7f92bc;color:#fff;
 transform:translateY(-1px);
}
body.pyg-site-polish :is(button,a,summary,input,textarea,select):focus-visible{
 outline:2px solid #7f92bc;outline-offset:3px;
}
body.pyg-site-polish :is(input,textarea,select):not([type=checkbox]):not([type=radio]):not([type=file]){
 color:#f1f4fd;background:#111925;
 border:1px solid #455067;border-radius:10px;
 min-height:43px;
 max-width:100%;
}
body.pyg-site-polish :is(input,textarea):not([type=checkbox]):not([type=radio])::placeholder{color:#899ab4}
body.pyg-site-polish :is(input,textarea,select):not([type=checkbox]):not([type=radio]):focus{
 border-color:#7f92bc;
 box-shadow:0 0 0 3px #667bae29;
}
body.pyg-site-polish input[type=checkbox],body.pyg-site-polish input[type=radio]{accent-color:#94a9eb}
body.pyg-site-polish :is(p,li,small){overflow-wrap:break-word}
body.pyg-site-polish .site-footer{
 border-top-color:#ffffff12;
 color:#a5b2c7;
}
body.pyg-site-polish .site-footer a{color:#bac7da}
body.pyg-site-polish .site-footer a:hover{color:#e1e6f2}
body.pyg-site-polish .flash{
 border-radius:11px;padding:13px 17px;
 border-color:#416c59;background:#17382d;color:#e0f8eb;
}
body.pyg-site-polish .flash--notice{
 background:#302c46;border-color:#6d617a;color:#f1e8ff;
}
body.pyg-site-polish :is(.empty-state,.library-empty){
 border:1px dashed #495470;
 border-radius:18px;
 background:linear-gradient(150deg,#1b2333,#151e2b);
 color:#e8edfc;
}
body.pyg-site-polish .empty-state :is(h1,h2){color:#f1f4ff}
body.pyg-site-polish .empty-state p{color:#a9b9d0}
body.pyg-site-polish .empty-icon{
 background:#2b2d55;color:#e1e6f2;border:1px solid #7f92bc;
}
body.pyg-site-polish details>summary{cursor:pointer}

/* Home: tame excessive neon without removing its recognisable composition */
body.pyg-site-polish.pyg-prism-home .prism-kicker{
 border-color:#7f92bca0;background:#29264b;
 box-shadow:none;letter-spacing:.14em;
}
body.pyg-site-polish.pyg-prism-home .prism-hero h1{
 font-size:clamp(2.7rem,5vw,5.3rem);line-height:1.04;
 text-wrap:balance;
}
body.pyg-site-polish.pyg-prism-home .prism-hero>p:not(.prism-hero-note){color:#b4c1d8}
body.pyg-site-polish.pyg-prism-home .prism-production{
 border-radius:16px;border-color:#50586473;
 box-shadow:inset 0 1px #ffffff15,0 12px 30px #0002;
}
body.pyg-site-polish.pyg-prism-home .prism-production:hover{
 transform:translateY(-3px);
 border-color:#7f92bc;
}
body.pyg-site-polish.pyg-prism-home .prism-section-heading h2{
 color:#f2f5fc;
}

/* Mes créations + result page */
body.pyg-site-polish .history-page{max-width:1230px}
body.pyg-site-polish .library-heading{
 display:flex;justify-content:space-between;align-items:flex-end;gap:18px;
}
body.pyg-site-polish .library-heading>div>p:not(.eyebrow){color:#aab7cf}
body.pyg-site-polish .library-heading-actions{display:flex;align-items:center;gap:12px}
body.pyg-site-polish .library-count{
 background:#252d41;border:1px solid #3c4860;
 border-radius:10px;padding:9px 13px;
}
body.pyg-site-polish .history-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(244px,1fr));gap:14px;
}
body.pyg-site-polish .history-card{
 display:flex;flex-direction:column;min-width:0;
 border:1px solid #3b465d;background:#192130;border-radius:14px;
 box-shadow:0 9px 24px #0002;
 transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
 overflow:hidden;
}
body.pyg-site-polish .history-card:hover,
body.pyg-site-polish .history-card:focus-within{
 transform:translateY(-3px);
 border-color:#7f92bc;box-shadow:0 15px 30px #0004;
}
body.pyg-site-polish .history-preview{
 height:195px;background:radial-gradient(circle at 50% 30%,#30264c,#111926);
 color:#e1e6f2;
}
body.pyg-site-polish .history-preview img,
body.pyg-site-polish .history-preview video{object-fit:cover}
body.pyg-site-polish .history-type{
 background:#242c3bcc;border:1px solid #7f92bc;
 color:#e1e6f2;
}
body.pyg-site-polish .history-body{
 display:flex;flex:1;flex-direction:column;gap:10px;
 padding:14px 16px;
}
body.pyg-site-polish .history-body>p{
 color:#d4dfef;line-height:1.55;
}
body.pyg-site-polish .history-meta{color:#a9b6cc}
body.pyg-site-polish .history-open{
 margin-top:auto;padding-top:9px;
 color:#e1e6f2;
}
body.pyg-site-polish .history-open:hover{color:#fff}
body.pyg-site-polish .status--completed{background:#174533;color:#aef0cd}
body.pyg-site-polish .status--failed{background:#493039;color:#ffd0cf}
body.pyg-site-polish .status--queued,
body.pyg-site-polish .status--processing{background:#31304a;color:#e1e6f2}
body.pyg-site-polish .result-page{max-width:1030px}
body.pyg-site-polish .result-page>.back-link{
 color:#e1e6f2;display:inline-flex;margin-bottom:15px;
}
body.pyg-site-polish .result-heading{
 text-align:left;margin-bottom:18px;
}
body.pyg-site-polish .result-heading h1{
 font-size:clamp(1.9rem,3.2vw,2.8rem);
 margin:3px 0 0;
}
body.pyg-site-polish .result-preview{
 padding:14px;border:1px solid #3d4760;
 border-radius:15px;background:#182130;box-shadow:0 10px 32px #0002;
}
body.pyg-site-polish .result-preview :is(img,video){
 display:block;width:100%;max-height:70vh;object-fit:contain;
 background:#0e1522;border-radius:9px;
}
body.pyg-site-polish .result-preview .text-result{
 background:#131d2b;border:1px solid #3b475c;
 color:#e7edf9;line-height:1.75;
 border-radius:10px;
}
body.pyg-site-polish .result-preview audio{color-scheme:light}
body.pyg-site-polish .result-actions{
 margin:13px 0 26px;gap:9px;
 display:flex;flex-wrap:wrap;
}
body.pyg-site-polish .result-actions form{display:contents}
body.pyg-site-polish .modify-form,
body.pyg-site-polish .creation-summary,
body.pyg-site-polish .result-input-media,
body.pyg-site-polish .result-lyrics{
 border:1px solid #3d4961;
 background:#182231;color:#e5ecf8;
 border-radius:13px;box-shadow:none;
}
body.pyg-site-polish .modify-form{padding:19px}
body.pyg-site-polish .creation-summary p{color:#d2dced;line-height:1.7}
body.pyg-site-polish .result-lyrics-heading{background:#262944;border-color:#494c77;color:#eeeaff}
body.pyg-site-polish .result-lyrics pre{color:#e4eaf7}
body.pyg-site-polish .waiting-state{
 max-width:630px;border:1px solid #3e4960;
 background:linear-gradient(145deg,#1a2435,#141b29);
 border-radius:18px;padding:46px 27px;
}
body.pyg-site-polish .loader-orb{
 box-shadow:0 0 44px #667bae46;
}
body.pyg-site-polish .generation-debug{
 border-color:#525a73;background:#192338;
}

/* Analyse: same density and contrast as creators */
body.pyg-site-polish .analysis-shell,
body.pyg-site-polish .analysis-history,
body.pyg-site-polish .analysis-archive{max-width:1180px}
body.pyg-site-polish .analysis-heading h1,
body.pyg-site-polish .analysis-history .section-heading h1{
 font-size:clamp(1.9rem,3.6vw,3rem);letter-spacing:-.043em;
}
body.pyg-site-polish .analysis-heading p,
body.pyg-site-polish .analysis-recent p{color:#b2c1d6}
body.pyg-site-polish .analysis-form,
body.pyg-site-polish .analysis-result{
 background:linear-gradient(145deg,#1b2332,#161d2b);
 border:1px solid #3e4a60;
 border-radius:15px;
 box-shadow:0 12px 32px #0002;
}
body.pyg-site-polish .analysis-drop{
 border:1px dashed #7473a7;background:#172139;border-radius:13px;
}
body.pyg-site-polish .analysis-drop:hover,
body.pyg-site-polish .analysis-drop:focus-within{
 background:#212b45;border-color:#7f92bc;
}
body.pyg-site-polish .analysis-suggestions button{
 background:#282a47;border-color:#545381;color:#e8e5ff;
 border-radius:9px;
}
body.pyg-site-polish .analysis-suggestions button:hover{
 background:#37355a;border-color:#7f92bc;
}
body.pyg-site-polish .analysis-bottom{border-top-color:#ffffff16}
body.pyg-site-polish .analysis-history-grid{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
 gap:14px;
}
body.pyg-site-polish .analysis-history-card{
 background:#1b2433;border:1px solid #414b62;border-radius:14px;
 box-shadow:0 8px 25px #0002;
 transition:transform .18s,border-color .18s;
}
body.pyg-site-polish .analysis-history-card:hover{
 transform:translateY(-3px);border-color:#7f92bc;
}
body.pyg-site-polish .analysis-history-card h2{color:#edf1fc}
body.pyg-site-polish .analysis-history-card p{color:#adbad3}
body.pyg-site-polish .analysis-history-open{color:#e1e6f2}
body.pyg-site-polish .analysis-archive-header,
body.pyg-site-polish .analysis-archive-source,
body.pyg-site-polish .analysis-thread-question,
body.pyg-site-polish .analysis-thread-answer{
 background:#1b2432;border:1px solid #3c4960;
 color:#e2e8f4;border-radius:12px;
}
body.pyg-site-polish .analysis-archive-header h1{font-size:clamp(1.7rem,3vw,2.6rem)}
body.pyg-site-polish .analysis-archive-meta span{color:#bcc8dd}
body.pyg-site-polish .analysis-thread-question p,
body.pyg-site-polish .analysis-thread-answer p{
 color:#dde5f2;white-space:pre-wrap;line-height:1.72;
}
body.pyg-site-polish .analysis-thread-data pre{
 background:#121a29;color:#dce6f6;border-radius:10px;
 overflow:auto;
}
body.pyg-site-polish .analysis-archive-note{color:#a2b0c7}

/* Account and credit wallet: service-first rather than diagnostic aesthetic */
body.pyg-site-polish .pyg-account-wrap{
 width:min(1120px,100%);margin:0 auto;
}
body.pyg-site-polish .pyg-account-header{
 display:flex;justify-content:space-between;align-items:center;gap:13px;
 margin:0 0 17px;
}
body.pyg-site-polish .pyg-account-header h1{
 font-size:clamp(1.7rem,3.3vw,2.55rem);letter-spacing:-.04em;
 margin:3px 0 0;color:#f4f5fb;
}
body.pyg-site-polish .pyg-account-header p{
 color:#b3bed2;font-size:.82rem;
}
body.pyg-site-polish .pyg-account-wrap oneperium-account{
 display:block;
 min-height:380px;
 padding:1px;
 border:1px solid #3f4a65;
 border-radius:17px;
 background:#1a2231;
 overflow:hidden;
}
body.pyg-site-polish .credits-page{max-width:1120px}
body.pyg-site-polish .credits-page-heading h1{
 font-size:clamp(1.9rem,3.5vw,2.8rem);
}
body.pyg-site-polish .credits-create-link{color:#e1e6f2}
body.pyg-site-polish .credits-wallet{
 border:1px solid #505376;
 border-radius:17px;min-height:200px;
 padding:29px 32px;
 background:radial-gradient(circle at 86% 20%,#536a9e52,transparent 55%),linear-gradient(145deg,#20263d,#171f30);
 color:#f5f6fd;box-shadow:0 13px 34px #0003;
}
body.pyg-site-polish .credits-wallet-label{color:#b3c4e0}
body.pyg-site-polish .credits-wallet-value{margin-top:12px}
body.pyg-site-polish .credits-wallet-value strong{
 font-size:clamp(3.4rem,6vw,5rem);letter-spacing:-.06em;
}
body.pyg-site-polish .credits-wallet-value span{color:#aebbd3}
body.pyg-site-polish .credits-wallet p{color:#bbc9df}
body.pyg-site-polish .credits-section-heading h2{
 color:#f1f4ff;font-size:clamp(1.45rem,2.4vw,2rem);
}
body.pyg-site-polish .credits-section-heading p{color:#a9b6cd}
body.pyg-site-polish .credit-packages{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr));gap:13px;
}
body.pyg-site-polish .credit-package,
body.pyg-site-polish .credit-package--featured{
 min-width:0;min-height:295px;
 padding:22px;border:1px solid #3e4962;
 border-radius:14px;background:#1a2231;color:#f1f4ff;
 transform:none;box-shadow:0 10px 28px #0002;
 transition:transform .18s,border-color .18s;
}
body.pyg-site-polish .credit-package--featured{
 border-color:#7f92bc;
 background:linear-gradient(155deg,#302d51,#20263a);
}
body.pyg-site-polish .credit-package:hover{
 transform:translateY(-3px);border-color:#7f92bc;
}
body.pyg-site-polish .credit-package-topline span,
body.pyg-site-polish .credit-package-price strong{color:#f1f3fd}
body.pyg-site-polish .credit-package-amount strong{color:#e1e6f2}
body.pyg-site-polish .payment-note{color:#b7c4db}
body.pyg-site-polish :is(.promo-redeem,.pending-credit-card){
 border:1px solid #44516c;border-radius:12px;
 background:#1d273a;color:#e1e9f5;
}
body.pyg-site-polish .promo-redeem>summary{color:#e1e6f2}

/* Authentication, contact, legal */
body.pyg-site-polish .auth-card{
 width:min(100%,510px);max-width:510px;margin:45px auto;
 padding:clamp(22px,4vw,34px);
 border:1px solid #48516a;border-radius:16px;
 background:linear-gradient(145deg,#1d2535,#171d2b);
 box-shadow:0 20px 52px #0003;
}
body.pyg-site-polish .auth-card h1{font-size:clamp(1.8rem,3vw,2.4rem)}
body.pyg-site-polish .auth-card label{color:#e8eef9;font-size:.81rem}
body.pyg-site-polish .auth-card>p:not(.eyebrow){color:#a9b8d0}
body.pyg-site-polish .auth-card .check-label{align-items:flex-start;color:#cad6e9}
body.pyg-site-polish .auth-card a{color:#e1e6f2}
body.pyg-site-polish .contact-page{max-width:1230px}
body.pyg-site-polish .contact-intro h1{
 color:#f2f5fc;font-size:clamp(2.3rem,4vw,4rem);line-height:1.03;
}
body.pyg-site-polish .contact-intro .eyebrow{color:#b3c3f1}
body.pyg-site-polish .contact-lead{color:#b1bfd5}
body.pyg-site-polish .contact-reasons article{
 border-color:#3d4962;background:#20283a;
 border-radius:11px;color:#e5ebf9;
}
body.pyg-site-polish .contact-form{
 padding:clamp(17px,3vw,26px);
 background:linear-gradient(145deg,#1e2635,#181f2e);
 border:1px solid #43516a;border-radius:15px;
 box-shadow:0 12px 34px #0002;
}
body.pyg-site-polish .contact-form h2{color:#edf1fd}
body.pyg-site-polish .contact-form label{color:#e2e8f7}
body.pyg-site-polish .contact-form textarea{min-height:145px}
body.pyg-site-polish .legal-page{
 max-width:900px;margin:0 auto 50px;
 padding:28px clamp(18px,4vw,43px);
 border:1px solid #3b465c;border-radius:16px;
 background:#1b2331;
}
body.pyg-site-polish .legal-page h1{
 font-size:clamp(1.8rem,3.2vw,2.7rem);
 letter-spacing:-.04em;color:#f3f5fc;
}
body.pyg-site-polish .legal-page h2{
 margin:31px 0 9px;font-size:1.07rem;color:#e9eaff;
 padding-top:19px;border-top:1px solid #ffffff17;
}
body.pyg-site-polish .legal-page p,
body.pyg-site-polish .legal-page li{line-height:1.78;color:#c1cce0}
body.pyg-site-polish .legal-page a{color:#e1e6f2}

/* Studio: compact editor-specific chrome, no timeline mechanics touched */
body.pyg-site-polish.pyg-studio-page .st-editor{
 --st-bg:#111722;--st-panel:#1b2332;--st-border:#3d4962;
 color:#f1f4fb;
}
body.pyg-site-polish.pyg-studio-page .st-panel{
 border-radius:12px;
 border-color:#3c4760;
 box-shadow:0 10px 28px #0002;
}
body.pyg-site-polish.pyg-studio-page .st-header h1{
 font-size:clamp(1.7rem,3vw,2.5rem);letter-spacing:-.04em;
}
body.pyg-site-polish.pyg-studio-page .st-panel-title h2{
 color:#edf0fb;font-size:.85rem;
}
body.pyg-site-polish.pyg-studio-page .st-dialog{
 border-radius:15px;border-color:#55527a;
 box-shadow:0 30px 80px #0007;
}
body.pyg-site-polish.pyg-studio-page .st-import{
 border-radius:9px;
}

/* Characters and Series are currently secondary tools; keep all controls but
   improve hierarchy, input legibility, spacing, status states and panels. */
body.pyg-site-polish .characters-shell,
body.pyg-site-polish .series-shell{max-width:1250px;margin:0 auto}
body.pyg-site-polish .characters-header h1,
body.pyg-site-polish .series-shell h1{
 font-size:clamp(2rem,3.5vw,3rem);letter-spacing:-.04em;color:#f3f4fa;
}
body.pyg-site-polish .characters-header p,
body.pyg-site-polish .series-shell p{color:#adbcd2}
body.pyg-site-polish .characters-panel,
body.pyg-site-polish .series-panel,
body.pyg-site-polish .series-ai-director,
body.pyg-site-polish .series-production{
 background:linear-gradient(150deg,#1c2534,#161d2b);
 border:1px solid #424d63;border-radius:14px;
 box-shadow:0 9px 25px #0002;
}
body.pyg-site-polish .characters-panel h2,
body.pyg-site-polish .series-panel h2{color:#f1f3fa;font-size:1.14rem}
body.pyg-site-polish .characters-panel label,
body.pyg-site-polish .series-panel label{color:#dce5f6}
body.pyg-site-polish .character-cover,
body.pyg-site-polish .series-draft-shot{
 border-color:#3f4c63;border-radius:10px;
 background:#182234;
}
body.pyg-site-polish .character-content h3{color:#f3f4fd}
body.pyg-site-polish .character-actions button,
body.pyg-site-polish .series-panel button{
 border-radius:9px;
}
body.pyg-site-polish .series-panel :is(details,fieldset){
 border-color:#4b536b;border-radius:10px;
}
body.pyg-site-polish .series-panel :is(summary,legend){color:#e8e5ff}
body.pyg-site-polish .series-panel .series-ai-status{
 background:#232d41;color:#ced8eb;border-radius:9px;
}

/* Connection/maintenance screens: preserve warnings and every action. */
body.pyg-site-polish .admin-page{
 color:#e7eafa;
}
body.pyg-site-polish .admin-page>h1{
 font-size:clamp(1.75rem,3vw,2.45rem);letter-spacing:-.035em;
 color:#f3f5fa;
}
body.pyg-site-polish .admin-page>section,
body.pyg-site-polish .admin-page>div:not(.eyebrow){
 border-radius:12px;
}
body.pyg-site-polish .admin-page :is(p,li,small){color:#b9c6dc;line-height:1.6}
body.pyg-site-polish .admin-page :is(label,legend,strong){color:#eef2ff}
body.pyg-site-polish .admin-page :is(button,a.primary-button){border-radius:9px}

/* Subtle micro-motion – only on direct user intent and major page entry. */
@keyframes polishAppear{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
body.pyg-site-polish .history-page>.library-heading,
body.pyg-site-polish .result-page>.result-heading,
body.pyg-site-polish .analysis-history>.section-heading,
body.pyg-site-polish .credits-page>.credits-page-heading,
body.pyg-site-polish .pyg-account-header{
 animation:polishAppear .35s ease-out both;
}
body.pyg-site-polish .history-card:nth-child(1),
body.pyg-site-polish .analysis-history-card:nth-child(1){animation:polishAppear .34s .03s ease-out both}
body.pyg-site-polish .history-card:nth-child(2),
body.pyg-site-polish .analysis-history-card:nth-child(2){animation:polishAppear .37s .07s ease-out both}
body.pyg-site-polish .history-card:nth-child(3),
body.pyg-site-polish .analysis-history-card:nth-child(3){animation:polishAppear .39s .11s ease-out both}

@media(max-width:900px){
 body.pyg-site-polish .page-shell{width:calc(100% - 28px)}
 body.pyg-site-polish .credits-wallet{padding:24px}
 body.pyg-site-polish .credits-wallet-value strong{font-size:clamp(3rem,9vw,4.6rem)}
}
@media(max-width:700px){
 body.pyg-site-polish .page-shell{width:calc(100% - 22px);padding-top:18px}
 body.pyg-site-polish .library-heading,
 body.pyg-site-polish .credits-page-heading{
  flex-direction:column;align-items:stretch;
 }
 body.pyg-site-polish .library-heading-actions{justify-content:space-between}
 body.pyg-site-polish .history-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr))}
 body.pyg-site-polish .result-preview{padding:8px}
 body.pyg-site-polish .result-actions>*{flex:1 1 auto}
 body.pyg-site-polish .credit-package{padding:17px}
 body.pyg-site-polish .credits-wallet{min-height:155px;padding:20px}
 body.pyg-site-polish .credits-wallet-value strong{font-size:clamp(2.5rem,12vw,3.7rem)}
 body.pyg-site-polish .auth-card{margin:23px auto;padding:22px}
 body.pyg-site-polish .contact-intro{position:static}
 body.pyg-site-polish .legal-page{padding:19px}
 body.pyg-site-polish .analysis-history-grid{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
 body.pyg-site-polish *,body.pyg-site-polish *::before,body.pyg-site-polish *::after{
  scroll-behavior:auto!important;animation:none!important;
  transition-duration:0s!important;
 }
 body.pyg-site-polish :is(.history-card,.credit-package,.analysis-history-card):hover{
  transform:none!important;
 }
}

/* Navigation and true server-side filters across the full paginated history. */
body.pyg-site-polish .history-filters{
 display:flex;align-items:end;flex-wrap:wrap;
 gap:11px;padding:13px 16px;margin:0 0 19px;
 background:#1b2433;border:1px solid #3e4961;
 border-radius:13px;
}
body.pyg-site-polish .history-filters-title{
 min-width:160px;flex:1 1 190px;
 display:grid;gap:5px;padding:3px 0;
}
body.pyg-site-polish .history-filters-title strong{
 color:#f0f3fc;font-size:.84rem;font-weight:800;
}
body.pyg-site-polish .history-filters-title small{
 color:#a7b6ce;font-size:.72rem;
}
body.pyg-site-polish .history-filters label{
 flex:0 1 190px;display:flex;flex-direction:column;
 gap:7px;font-size:.73rem;font-weight:740;color:#d8e3f4;
}
body.pyg-site-polish .history-filters select{
 width:100%;min-width:125px;height:43px;padding:0 11px;
 background:#111927;border:1px solid #4c5870;
 border-radius:9px;color:#f0f3fb;
}
body.pyg-site-polish .history-filters>.secondary-button{
 flex:0 0 auto;min-width:86px;height:43px;
}
body.pyg-site-polish .history-clear{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:43px;padding:0 7px;
 color:#e1e6f2;font-size:.76rem;font-weight:750;
 text-decoration:underline;text-underline-offset:3px;
}
body.pyg-site-polish .result-nav{
 display:flex;align-items:center;justify-content:space-between;
 gap:11px;margin:0 0 21px;
}
body.pyg-site-polish .result-nav .back-link{
 color:#e1e6f2;margin:0;
 font-weight:750;font-size:.82rem;
}
body.pyg-site-polish .result-new-link{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:37px;padding:7px 12px;border-radius:9px;
 background:#252b40;border:1px solid #505775;
 color:#e1e6f2;font-size:.77rem;font-weight:750;
 transition:background .17s,border-color .17s;
}
body.pyg-site-polish .result-new-link:hover{
 border-color:#7f92bc;background:#333254;
}
body.pyg-site-polish .result-heading-subtitle{
 margin:9px 0 0;color:#aab9d1;font-size:.82rem;line-height:1.5;
}
body.pyg-site-polish .pyg-account-header>.secondary-button{
 flex:0 0 auto;
}
@media(max-width:730px){
 body.pyg-site-polish .history-filters{padding:12px;gap:10px}
 body.pyg-site-polish .history-filters-title{flex-basis:100%}
 body.pyg-site-polish .history-filters label{flex:1 1 min(40%,165px)}
 body.pyg-site-polish .pyg-account-header{flex-direction:column;align-items:stretch}
 body.pyg-site-polish .pyg-account-header>.secondary-button{align-self:flex-start}
}
@media(max-width:390px){
 body.pyg-site-polish .history-filters label{flex-basis:100%}
 body.pyg-site-polish .history-filters>.secondary-button{flex:1}
}

/* Top navigation stays readable on older pages that do not set pyg-prism. */
body.pyg-site-polish .site-header{
 /* Keep account/tools popovers above the page content and animated cards. */
 position:relative;z-index:120;
 width:min(1430px,calc(100% - 28px));
 min-height:67px;height:auto;
 padding:10px 16px;margin:8px auto 0;
 border:1px solid #384457;border-radius:16px;
 background:#171d29ee;box-shadow:0 10px 32px #0003;
 backdrop-filter:blur(16px);
}
body.pyg-site-polish .site-header .brand-mark{
 width:43px;height:43px;
 display:grid;place-items:center;
 background:linear-gradient(145deg,#282c33,#202641);
 border:1px solid #7f92bc;
 border-radius:12px;color:#f8f6ff;
 box-shadow:none;
}
body.pyg-site-polish .site-header .brand strong{color:#f7f7fc}
body.pyg-site-polish .site-header .brand small{color:#a5b0c8}
body.pyg-site-polish .site-header .top-nav>a:not(.credit-balance-link){
 color:#dfe7f4;border-radius:9px;
}
body.pyg-site-polish .site-header .top-nav>a:hover{
 color:#fff;background:#ffffff0a;
}
body.pyg-site-polish .site-header .credit-balance-link{
 color:#e1e6f2;background:#2d274f;
 border:1px solid #505864;border-radius:10px;
}
body.pyg-site-polish .site-header .credit-balance-link:hover{
 background:#282c33;color:#f5f1ff;
}
body.pyg-site-polish .credit-package-topline em{
 color:#191e2a;background:#d4f2ae;
}
body.pyg-site-polish .credit-package-amount span{color:#b6c1d8}
body.pyg-site-polish .pending-credit-card p b{color:#e1e6f2}
body.pyg-site-polish .history-body p{color:#dce4f4}
body.pyg-site-polish .history-preview svg{color:#e1e6f2}
body.pyg-site-polish :is(.auth-card,.legal-page,.contact-form,.credit-package) :is(input,textarea,select){
 color-scheme:dark;
}
@media(max-width:780px){
 body.pyg-site-polish .site-header{width:calc(100% - 20px)}
}

/* Series: optional universe details do not obscure the episode workflow. */
body.pyg-site-polish .series-advanced,
body.pyg-site-polish .series-fold{
 border:1px solid #454f69;border-radius:11px;
 background:#1a2535;
 overflow:hidden;
}
body.pyg-site-polish .series-fold{padding:0}
body.pyg-site-polish .series-advanced>summary,
body.pyg-site-polish .series-fold>summary{
 display:flex;align-items:center;justify-content:space-between;
 gap:10px;padding:13px 15px;
 color:#ece9ff;list-style:none;
 min-height:57px;font-weight:770;
}
body.pyg-site-polish .series-advanced>summary::-webkit-details-marker,
body.pyg-site-polish .series-fold>summary::-webkit-details-marker{display:none}
body.pyg-site-polish .series-fold>summary>span:first-child{
 display:flex;flex-direction:column;gap:4px;
}
body.pyg-site-polish .series-fold>summary strong{color:#eef0fc;font-size:.86rem}
body.pyg-site-polish .series-fold>summary small,
body.pyg-site-polish .series-advanced>summary small{
 display:block;color:#a2b3cd;font-size:.72rem;
 font-weight:500;
}
body.pyg-site-polish .series-advanced>summary:hover,
body.pyg-site-polish .series-fold>summary:hover{
 background:#2b304b;
}
body.pyg-site-polish .series-advanced[open]>summary,
body.pyg-site-polish .series-fold[open]>summary{
 background:#262c43;border-bottom:1px solid #ffffff16;
}
body.pyg-site-polish .series-advanced-body{padding:12px 13px}
body.pyg-site-polish .series-advanced-body label{
 display:block;margin:8px 0;
}
body.pyg-site-polish .series-fold>.series-form{
 padding:15px;
}
body.pyg-site-polish .series-fold>summary>span:last-child{
 color:#e1e6f2;font-size:1.13rem;
 transition:transform .18s;
}
body.pyg-site-polish .series-fold[open]>summary>span:last-child{
 transform:rotate(180deg);
}
body.pyg-site-polish .series-episodes>.series-section-head{
 display:flex;align-items:center;justify-content:space-between;gap:15px;
 margin-bottom:14px;
}
body.pyg-site-polish .series-item,
body.pyg-site-polish .character-card{
 border-color:#404e63;background:#182333;
 border-radius:11px;
 transition:border-color .17s,transform .17s;
}
body.pyg-site-polish .series-item:hover,
body.pyg-site-polish .character-card:hover{
 border-color:#7f92bc;transform:translateY(-2px);
}
body.pyg-site-polish .characters-outline-button,
body.pyg-site-polish .characters-primary{
 border-radius:9px;
}
body.pyg-site-polish .characters-header h1 span{color:#e1e6f2}
body.pyg-site-polish .character-edit{
 border:1px solid #49546e;border-radius:10px;background:#202b3e;
}
body.pyg-site-polish .character-edit>summary{
 padding:11px;color:#e1e6f2;
}
body.pyg-site-polish .characters-form details{
 border:1px solid #46516a;border-radius:10px;background:#1c2738;
}
@media(prefers-reduced-motion:reduce){
 body.pyg-site-polish .series-fold>summary>span:last-child,
 body.pyg-site-polish .series-item,
 body.pyg-site-polish .character-card{
  transition:none;transform:none!important;
 }
}

/* Studio's actual editing chrome: match graphite/violet without moving controls
   or changing the timeline, drag/drop, sources, rendering or project saving. */
body.pyg-site-polish.pyg-studio-page .st-editor{
 --st-bg:#171f2e;
 --st-line:#404b61;
 --st-muted:#aab9d0;
 --st-accent:#94a9eb;
 color:#f1f4fc;
}
body.pyg-site-polish.pyg-studio-page .st-editor :is(button,select,input:not([type=range]):not([type=checkbox]),textarea){
 border-color:#43506a;
 background:#1b2434;
 color:#f1f4fa;
}
body.pyg-site-polish.pyg-studio-page .st-editor :is(button,select,input,textarea):focus-visible{
 outline:2px solid #7f92bc;outline-offset:2px;
}
body.pyg-site-polish.pyg-studio-page .st-editor button:hover:not(:disabled){
 background:#2b3050;border-color:#7f92bc;
}
body.pyg-site-polish.pyg-studio-page .st-editor button[aria-pressed=true]{
 border-color:#7f92bc;background:#342d57;color:#e1e6f2;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-primary,
body.pyg-site-polish.pyg-studio-page .st-editor a.st-primary{
 background:#536a9e;border-color:#7f92bc;
 color:#fff;font-weight:800;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-primary:hover:not(:disabled){
 background:#9cadcf;color:#fff;
 border-color:#7f92bc;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-topbar{
 display:flex;gap:9px;align-items:center;
 border:1px solid #404d62;border-radius:12px;
 background:#192231;padding:10px;margin-bottom:12px;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-topbar [data-name]{
 background:transparent;border-color:transparent;
 font-size:.88rem;font-weight:780;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-panel-title{
 min-height:47px;
 border-bottom:1px solid #ffffff10;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-panel-title h2{
 font-size:.85rem;font-weight:800;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-source{
 background:#1d2636;
 border:1px solid #48516a;
 border-radius:9px;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-source:hover{
 border-color:#7f92bc;background:#2b3050;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-source .st-add{
 background:#2f2a52;color:#e1e6f2;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-filters button[aria-pressed=true]{
 background:#302c54;border-color:#7f92bc;
 color:#e1e6f2;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-stage{
 background:#0d1522;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-welcome{
 background:#101725ee;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-inspector-empty{
 color:#b0bdd2;line-height:1.6;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-timeline{
 border-color:#414e65;background:#171f2c;
}
body.pyg-site-polish.pyg-studio-page .st-editor .st-feedback{
 color:#e9e7fb;
}
@media(max-width:720px){
 body.pyg-site-polish.pyg-studio-page .st-editor .st-topbar{
  overflow-x:auto;flex-wrap:nowrap;
  scrollbar-width:thin;
 }
}

/* Workflow refinements · Home, Analyse, Studio.
   These reuse the existing shared graphite tokens and native controls. */

/* Home: immediate creation first; supporting paths available on demand */
body.pyg-site-polish .prism-ux-instruction{
 display:flex;align-items:flex-start;gap:11px;max-width:860px;
 margin:0 auto 13px;padding:0 4px;
 color:#f2f4fc;text-align:left;
}
body.pyg-site-polish .prism-ux-instruction>div{display:grid;gap:4px}
body.pyg-site-polish .prism-ux-instruction strong{font-size:.92rem;letter-spacing:-.016em}
body.pyg-site-polish .prism-ux-instruction small{font-size:.76rem;color:#c0cbe0;line-height:1.5}
body.pyg-site-polish .prism-ux-spot{
 display:grid;place-items:center;width:29px;height:29px;flex:0 0 29px;
 background:#302a55;color:#e1e6f2;
 border:1px solid #7f92bc;border-radius:9px;
}
body.pyg-site-polish .prism-resume{
 margin:28px 0 18px;
 border:1px solid #454e69;background:#1d2637;
 border-radius:13px;padding:14px 19px;
}
body.pyg-site-polish .prism-resume strong{color:#f0f4fc}
body.pyg-site-polish .prism-resume small{color:#aab8cf}
body.pyg-site-polish .prism-resume a{
 border:1px solid #7f92bc;border-radius:9px;
 background:#292943;color:#e1e6f2;
}
body.pyg-site-polish .prism-ux-path{
 margin:19px 0 26px;padding:0;
 border:1px solid #3c4860;border-radius:13px;
 background:#192233;overflow:hidden;
}
body.pyg-site-polish .prism-ux-path>summary{
 display:flex;align-items:center;gap:12px;padding:14px 18px;
 min-height:64px;list-style:none;color:#e8edff;
}
body.pyg-site-polish .prism-ux-path>summary::-webkit-details-marker{display:none}
body.pyg-site-polish .prism-ux-path>summary>span:first-child{
 display:grid;place-items:center;flex:0 0 33px;
 height:33px;border:1px solid #7f92bc;border-radius:9px;
 background:#302e50;color:#e1e6f2;
}
body.pyg-site-polish .prism-ux-path>summary>span:nth-child(2){
 display:grid;flex:1;gap:3px;
}
body.pyg-site-polish .prism-ux-path>summary strong{font-size:.83rem;color:#f0f2fa}
body.pyg-site-polish .prism-ux-path>summary small{font-size:.71rem;color:#aeb9d0}
body.pyg-site-polish .prism-ux-path>summary>span:last-child{color:#e1e6f2;transition:transform .18s}
body.pyg-site-polish .prism-ux-path[open]>summary{
 background:#252b42;border-bottom:1px solid #ffffff16;
}
body.pyg-site-polish .prism-ux-path[open]>summary>span:last-child{transform:rotate(180deg)}
body.pyg-site-polish .prism-ux-path .prism-productions{
 margin:0;padding:20px;border:0;background:transparent;
}
body.pyg-site-polish .prism-creative-tools{margin-top:22px}

/* Analyse: primary request on left, real-time result/history on right. */
body.pyg-site-polish .analysis-shell{max-width:1390px;margin:0 auto}
body.pyg-site-polish .analysis-heading{
 display:flex;justify-content:space-between;align-items:center;
 gap:20px;text-align:left;margin:4px 0 25px;
}
body.pyg-site-polish .analysis-heading-copy{max-width:780px}
body.pyg-site-polish .analysis-heading h1{
 font-size:clamp(2rem,3.35vw,3.35rem);margin:8px 0 10px;
 line-height:1.13;letter-spacing:-.04em;color:#f4f5fc;
}
body.pyg-site-polish .analysis-heading p{
 font-size:.88rem;line-height:1.62;color:#adbdd5;
 margin:0;
}
body.pyg-site-polish .analysis-history-link{
 flex:0 0 auto;border:1px solid #48516c;
 border-radius:11px;background:#242b3d;
 color:#e0ddff;box-shadow:none;
}
body.pyg-site-polish .analysis-workspace{
 display:grid;
 grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);
 gap:17px;align-items:start;
}
body.pyg-site-polish .analysis-workspace>.analysis-form{
 padding:22px;border:1px solid #3d485f;border-radius:15px;
 margin:0;background:#1a2230;
}
body.pyg-site-polish .analysis-main-step{margin:0 0 24px}
body.pyg-site-polish .analysis-step-label{
 display:flex;align-items:center;gap:11px;margin:0 0 12px;
}
body.pyg-site-polish .analysis-step-label span{
 display:grid;place-items:center;flex:0 0 31px;height:31px;
 background:#312d52;border:1px solid #7f92bc;
 border-radius:9px;color:#e1e6f2;font-size:.72rem;font-weight:850;
}
body.pyg-site-polish .analysis-step-label strong{font-size:.87rem;color:#f2f4fb}
body.pyg-site-polish .analysis-step-label small{font-size:.72rem;color:#a8b6cc}
body.pyg-site-polish .analysis-drop{
 min-height:145px;padding:16px;
 border:1px dashed #687296;background:#151f30;
 border-radius:12px;color:#e6effb;
}
body.pyg-site-polish .analysis-drop strong{color:#ecedff;font-size:.94rem}
body.pyg-site-polish .analysis-drop small{font-size:.75rem;color:#a9b9d2}
body.pyg-site-polish .analysis-selected{background:#212b3d;border-color:#4b5573}
body.pyg-site-polish .analysis-url{
 padding:11px 14px;border:1px solid #35445b;
 background:#1b2638;border-radius:10px;color:#c2cbea;
}
body.pyg-site-polish .analysis-url summary{font-size:.77rem;font-weight:750}
body.pyg-site-polish .analysis-url input{margin-top:11px}
body.pyg-site-polish .analysis-form textarea{
 background:#101926;border-color:#48536b;color:#e9f0ff;
 border-radius:10px;padding:14px;
}
body.pyg-site-polish .analysis-options{
 border:1px solid #414c66;border-radius:11px;
 background:#182234;margin:2px 0 18px;overflow:hidden;
}
body.pyg-site-polish .analysis-options>summary{
 display:flex;align-items:center;gap:11px;
 padding:13px 14px;min-height:61px;list-style:none;
}
body.pyg-site-polish .analysis-options>summary::-webkit-details-marker{display:none}
body.pyg-site-polish .analysis-options>summary>span:nth-child(2){
 display:flex;flex:1;flex-direction:column;gap:3px;
}
body.pyg-site-polish .analysis-options>summary strong{font-size:.82rem;color:#f1f4fd}
body.pyg-site-polish .analysis-options>summary small{font-size:.71rem;color:#b3bfd7}
body.pyg-site-polish .analysis-options-icon{
 display:grid;place-items:center;width:30px;height:30px;
 border-radius:9px;background:#302c53;color:#e1e6f2;
}
body.pyg-site-polish .analysis-options>summary>span:last-child{color:#e1e6f2;transition:transform .18s}
body.pyg-site-polish .analysis-options[open]>summary{
 border-bottom:1px solid #ffffff16;background:#222c41;
}
body.pyg-site-polish .analysis-options[open]>summary>span:last-child{transform:rotate(180deg)}
body.pyg-site-polish .analysis-options .analysis-settings-row{
 display:grid;grid-template-columns:1fr 1fr;gap:13px;
 padding:13px 15px;align-items:center;margin:0;
}
body.pyg-site-polish .analysis-options .analysis-settings-row label{
 margin:0;color:#d7e2f6;font-size:.77rem;
}
body.pyg-site-polish .analysis-format{
 display:flex!important;align-items:center;gap:10px;
 padding:12px;background:#222c41;border-radius:9px;
 border:1px solid #3e4a65;
}
body.pyg-site-polish .analysis-format small{display:block;font-size:.69rem;color:#a4b1cb}
body.pyg-site-polish .analysis-bottom{
 display:flex;justify-content:space-between;align-items:center;
 gap:12px;padding-top:15px;border-top:1px solid #ffffff19;
}
body.pyg-site-polish .analysis-bottom [data-price]{
 color:#bac7df;font-size:.75rem;line-height:1.6;
}
body.pyg-site-polish .analysis-submit{min-height:47px;padding:10px 21px}
body.pyg-site-polish .analysis-workspace-side{
 display:flex;flex-direction:column;gap:13px;min-width:0;
}
body.pyg-site-polish .analysis-workspace-intro{
 display:flex;align-items:center;justify-content:center;gap:17px;
 min-height:155px;padding:26px;
 border:1px dashed #535573;border-radius:13px;
 background:radial-gradient(circle at 30% 20%,#39315a77,transparent 70%),#171f2e;
}
body.pyg-site-polish .analysis-side-mark{
 display:grid;place-items:center;flex:0 0 58px;height:58px;
 border-radius:18px;background:#312a58;color:#e1e6f2;
 border:1px solid #7f92bc;font-size:1.75rem;
}
body.pyg-site-polish .analysis-workspace-intro strong{color:#f2f4fc;font-size:1.03rem}
body.pyg-site-polish .analysis-workspace-intro p{color:#afbcd3;line-height:1.6;font-size:.78rem;margin:6px 0 0}
body.pyg-site-polish .analysis-workspace-side:has([data-result-panel]:not([hidden])) .analysis-workspace-intro{display:none}
body.pyg-site-polish .analysis-workspace-side .analysis-result{
 min-width:0;margin:0;padding:20px;
 background:#1a2332;border-color:#3e4b62;
}
body.pyg-site-polish .analysis-workspace-side .analysis-recent{
 margin:0;padding:15px;border:1px solid #3c4761;
 background:#192233;border-radius:13px;
}
body.pyg-site-polish .analysis-recent-heading{margin:0 0 13px}
body.pyg-site-polish .analysis-recent h2{color:#f0f3fc}
body.pyg-site-polish .analysis-recent-list button{
 background:#212b3e;border:1px solid #38465e;
 border-radius:9px;color:#e4eafa;
}
body.pyg-site-polish .analysis-recent-list button:hover{
 border-color:#7f92bc;background:#2a304b;
}

/* Studio: reuse native upload action, actual projects and timeline controls */
body.pyg-site-polish.pyg-studio-page .st-header h1{
 font-size:clamp(1.85rem,3vw,2.8rem);
}
body.pyg-site-polish.pyg-studio-page .st-header>div>p:not(.eyebrow){
 font-size:.8rem;color:#b2bfd7;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-v2{
 display:flex;flex-direction:column;align-items:center;
 justify-content:center;gap:12px;
 max-width:100%;
 text-align:center;padding:24px 18px;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-v2 .st-welcome-mark{
 display:grid;place-items:center;flex:0 0 51px;width:51px;height:51px;
 border:1px solid #7f92bc;border-radius:15px;
 background:#342c59;color:#e1e6f2;font-size:1.55rem;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-v2 strong{
 color:#f2f5ff;font-size:1.13rem;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-v2 p{
 color:#afc0d8;font-size:.8rem;line-height:1.55;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-steps{
 display:flex;gap:7px;flex-wrap:wrap;justify-content:center;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-steps span{
 display:inline-flex;align-items:center;gap:6px;
 color:#c6cde2;font-size:.71rem;
 background:#1c2940;border:1px solid #3d4b69;
 padding:7px 9px;border-radius:8px;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-steps b{color:#e1e6f2}
body.pyg-site-polish.pyg-studio-page .st-welcome-actions{
 display:flex;gap:8px;justify-content:center;flex-wrap:wrap;margin-top:2px;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-actions>.st-welcome-upload{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:39px;padding:9px 12px;border:1px solid #7f92bc;
 border-radius:9px;background:#536a9e;color:#fff;cursor:pointer;
 font-size:.73rem;font-weight:780;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-actions>.st-welcome-upload:hover{
 background:#536a9e;
}
body.pyg-site-polish.pyg-studio-page .st-welcome-actions>button{
 border-radius:9px;min-height:39px;font-size:.73rem;
}
@media(max-width:1000px){
 body.pyg-site-polish .analysis-workspace{grid-template-columns:minmax(0,1fr) minmax(0,.85fr)}
 body.pyg-site-polish .analysis-heading{align-items:flex-start}
}
@media(max-width:780px){
 body.pyg-site-polish .analysis-workspace{grid-template-columns:1fr}
 body.pyg-site-polish .analysis-heading{flex-direction:column;align-items:stretch}
 body.pyg-site-polish .analysis-heading .analysis-history-link{align-self:flex-start}
 body.pyg-site-polish .analysis-workspace-intro{min-height:118px}
 body.pyg-site-polish .prism-ux-path .prism-productions{padding:13px}
}
@media(max-width:550px){
 body.pyg-site-polish .analysis-workspace>.analysis-form{padding:15px}
 body.pyg-site-polish .analysis-options .analysis-settings-row{grid-template-columns:1fr}
 body.pyg-site-polish .analysis-bottom{flex-direction:column;align-items:stretch}
 body.pyg-site-polish .analysis-submit{width:100%}
 body.pyg-site-polish .analysis-workspace-intro{padding:15px}
 body.pyg-site-polish .prism-ux-instruction{padding:0 6px}
 body.pyg-site-polish .st-welcome-steps span{font-size:.65rem}
}
@media(prefers-reduced-motion:reduce){
 body.pyg-site-polish .analysis-options>summary>span:last-child,
 body.pyg-site-polish .prism-ux-path>summary>span:last-child{transition:none}
}

/* Identity library: creation controls accessible without permanently dominating. */
body.pyg-site-polish .characters-create-details{padding:0;overflow:hidden}
body.pyg-site-polish .characters-create-details>summary{
 list-style:none;display:flex;align-items:center;gap:12px;
 padding:17px;min-height:69px;color:#f2f4fb;
 border-radius:13px;cursor:pointer;
}
body.pyg-site-polish .characters-create-details>summary::-webkit-details-marker{display:none}
body.pyg-site-polish .characters-create-details>summary>span:nth-child(2){
 flex:1;display:flex;flex-direction:column;gap:5px;
}
body.pyg-site-polish .characters-create-details>summary strong{font-size:.9rem}
body.pyg-site-polish .characters-create-details>summary small{font-size:.72rem;color:#a8b5d0}
body.pyg-site-polish .characters-create-icon{
 flex:0 0 33px;width:33px;height:33px;display:grid;place-items:center;
 border-radius:9px;border:1px solid #7f92bc;background:#302c57;
 color:#e1e6f2;font-size:1.05rem;
}
body.pyg-site-polish .characters-create-details>summary>span:last-child{
 color:#e1e6f2;transition:transform .18s;
}
body.pyg-site-polish .characters-create-details[open]>summary{
 border-bottom:1px solid #ffffff18;background:#22293d;
}
body.pyg-site-polish .characters-create-details[open]>summary>span:last-child{
 transform:rotate(180deg);
}
body.pyg-site-polish .characters-create-body{padding:18px}
body.pyg-site-polish .characters-create-body>.characters-muted{
 font-size:.75rem;line-height:1.65;color:#a9b7d0;
}
body.pyg-site-polish .characters-form label{
 color:#e6edf8;line-height:1.55;font-size:.78rem;
}
body.pyg-site-polish .characters-form input[type=file]{
 max-width:100%;padding:10px;border:1px dashed #7f92bc;
 border-radius:10px;background:#1a2539;
}
body.pyg-site-polish .characters-form details{
 background:#202b3e;border:1px solid #43516d;
}
body.pyg-site-polish .character-actions a{border-radius:9px}
body.pyg-site-polish .characters-disclaimer{
 border:1px solid #3c475b;border-radius:10px;
 padding:13px 16px;background:#172132;
 color:#afbdd5;font-size:.72rem;line-height:1.65;
}

/* Auth: foreground the form, not systems or diagnostics. */
body.pyg-site-polish .auth-card{max-width:485px}
body.pyg-site-polish .auth-ux-heading{
 display:flex;align-items:center;gap:13px;margin:0 0 17px;
}
body.pyg-site-polish .auth-ux-mark{
 width:44px;height:44px;flex:0 0 44px;
 display:grid;place-items:center;border-radius:13px;
 background:#312b58;border:1px solid #7f92bc;color:#e1e6f2;
 font-size:1.25rem;
}
body.pyg-site-polish .auth-ux-heading h1{font-size:clamp(1.6rem,3.3vw,2.3rem);margin:4px 0 0}
body.pyg-site-polish .auth-ux-heading .eyebrow{margin:0}
body.pyg-site-polish .auth-card form{
 display:grid;gap:12px;
}
body.pyg-site-polish .auth-card form>label:not(.legal-consent):not(.password-show-label){
 display:flex;flex-direction:column;gap:8px;
 font-size:.8rem;font-weight:740;color:#e5ebf9;
}
body.pyg-site-polish .auth-card label>small{font-size:.72rem;color:#9eb1cb}
body.pyg-site-polish .auth-card .primary-button[type=submit]{
 width:100%;min-height:49px;margin-top:4px;
}
body.pyg-site-polish .auth-card .password-show-label,
body.pyg-site-polish .auth-card .legal-consent{
 display:flex;align-items:flex-start;gap:9px;
 margin:2px 0;color:#b7c5dd;font-weight:520;
 font-size:.74rem;line-height:1.65;
}
body.pyg-site-polish .auth-card .password-show-label input,
body.pyg-site-polish .auth-card .legal-consent input{
 flex:0 0 auto;margin:3px 0 0;
}
body.pyg-site-polish .auth-card .auth-switch{
 margin:20px 0 9px;color:#c1cbe0;font-size:.79rem;
 text-align:center;
}
body.pyg-site-polish .auth-ux-return{
 display:block;text-align:center;
 color:#b3c3f1;font-size:.75rem;padding:9px;
}
body.pyg-site-polish .auth-ux-return:hover{color:#fff}
body.pyg-site-polish .auth-migration-options{
 border:1px solid #514f77;border-radius:10px;
 background:#20283d;padding:12px;
}
body.pyg-site-polish .auth-migration-options summary{
 font-size:.75rem;color:#e1e6f2;font-weight:750;
}

/* Contact: topic selection is a shortcut, not a mandatory taxonomy. */
body.pyg-site-polish .contact-ux-topics{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 13px;
}
body.pyg-site-polish .contact-ux-topics>span{
 flex:1 0 100%;font-weight:740;font-size:.77rem;color:#e7edfb;
}
body.pyg-site-polish .contact-ux-topics button{
 border:1px solid #4d5277;border-radius:8px;
 background:#272b43;color:#e1e2ff;
 padding:8px 12px;min-height:35px;
 font-size:.72rem;font-weight:750;
 transition:background .17s,border-color .17s;
}
body.pyg-site-polish .contact-ux-topics button:is(:hover,.is-selected){
 border-color:#7f92bc;background:#282c33;color:#fff;
}
body.pyg-site-polish .contact-ux-topics button[aria-pressed=true]{
 box-shadow:inset 0 0 0 1px #667bae5e;
}
body.pyg-site-polish .contact-submit{width:100%;min-height:48px}

/* Legal: long-form content benefits from direct section navigation. */
body.pyg-site-polish .legal-toc{
 margin:22px 0 30px;padding:16px 18px;
 border:1px solid #465169;border-radius:12px;
 background:#1a2637;
}
body.pyg-site-polish .legal-toc[hidden]{display:none!important}
body.pyg-site-polish .legal-toc>strong{
 display:block;margin:0 0 12px;color:#f1f3fc;
 font-size:.84rem;
}
body.pyg-site-polish .legal-toc ol{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px 24px;margin:0;padding:0;list-style:none;
 counter-reset:section;
}
body.pyg-site-polish .legal-toc li{min-width:0;counter-increment:section}
body.pyg-site-polish .legal-toc a{
 display:block;padding:7px 5px;
 text-decoration:none;color:#c4ceeb;
 font-size:.76rem;line-height:1.48;border-radius:6px;
}
body.pyg-site-polish .legal-toc a:hover{
 background:#2c3350;color:#f1eaff;
}
body.pyg-site-polish .legal-page h2{scroll-margin-top:95px}

/* Operational tools: data and warnings stay visible when action is risky. */
body.pyg-site-polish .admin-page .admin-panel{
 background:#1b2534;border:1px solid #414c66;
 color:#eaf0f9;border-radius:15px;
 box-shadow:0 13px 36px #0003;
}
body.pyg-site-polish .admin-page .admin-panel h2{font-size:1.04rem;color:#edf0fb}
body.pyg-site-polish .admin-page .admin-panel fieldset{
 border:1px solid #4b5a73!important;
 border-radius:11px;padding:14px!important;
}
body.pyg-site-polish .admin-page .admin-panel legend{color:#eae7ff}
body.pyg-site-polish .admin-page .admin-panel code{
 background:#101b2d;border:1px solid #374660;
 color:#e1e6f2;border-radius:5px;padding:2px 4px;
}
body.pyg-site-polish .maintenance-diagnostics,
body.pyg-site-polish .connect-server-check{
 border:1px solid #46526a;border-radius:11px;
 background:#1a2638;overflow:hidden;
 margin:9px 0;
}
body.pyg-site-polish .maintenance-diagnostics>summary,
body.pyg-site-polish .connect-server-check>summary{
 display:flex;align-items:center;justify-content:space-between;
 gap:11px;padding:13px 15px;
 color:#f0f0ff;min-height:54px;
 font-size:.79rem;font-weight:780;
}
body.pyg-site-polish .maintenance-diagnostics>summary small,
body.pyg-site-polish .connect-server-check>summary small{
 color:#a9b7d0;font-size:.7rem;font-weight:500;
}
body.pyg-site-polish .maintenance-diagnostics[open]>summary,
body.pyg-site-polish .connect-server-check[open]>summary{
 border-bottom:1px solid #ffffff19;background:#262d42;
}
body.pyg-site-polish .maintenance-diagnostics>div,
body.pyg-site-polish .connect-server-check>form{padding:13px 15px;margin:0}
body.pyg-site-polish .admin-page .payment-note{
 background:#222a3b;border:1px solid #45526b;
 border-radius:9px;padding:10px 13px;
 font-size:.75rem;line-height:1.65;
}
body.pyg-site-polish.pyg-studio-page [data-welcome][hidden]{display:none!important}
@media(max-width:620px){
 body.pyg-site-polish .legal-toc ol{grid-template-columns:1fr}
 body.pyg-site-polish .contact-ux-topics button{flex:1 1 auto}
 body.pyg-site-polish .auth-card{max-width:none}
 body.pyg-site-polish .characters-create-body{padding:13px}
 body.pyg-site-polish .maintenance-diagnostics>summary,
 body.pyg-site-polish .connect-server-check>summary{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){
 body.pyg-site-polish .characters-create-details>summary>span:last-child,
 body.pyg-site-polish .contact-ux-topics button{transition:none!important}
}

/* Clear result archive states and safe step-by-step maintenance authorization. */
body.pyg-site-polish .analysis-history-overview{
 margin:-6px 0 20px;padding:11px 15px;
 border:1px solid #394861;border-radius:9px;
 background:#1a2434;color:#b5c4db;font-size:.77rem;
 line-height:1.6;
}
body.pyg-site-polish .analysis-history-status{
 display:inline-flex;align-items:center;
 padding:6px 10px;border-radius:8px;
 font-size:.71rem;font-weight:750;
 background:#262e42;color:#d7e2f8;
}
body.pyg-site-polish .analysis-history-status.status--completed{
 background:#183e31;color:#b4efd4;
}
body.pyg-site-polish .analysis-history-status.status--failed{
 background:#462931;color:#ffc9cf;
}
body.pyg-site-polish .analysis-history-status:is(.status--queued,.status--processing){
 background:#36304f;color:#e1e6f2;
}
body.pyg-site-polish .analysis-ux-thread-head{
 display:flex;justify-content:space-between;align-items:center;
 flex-wrap:wrap;gap:12px;margin:22px 0 15px;
}
body.pyg-site-polish .analysis-ux-thread-head h2{
 margin:3px 0;color:#eef3fc;
 font-size:clamp(1.1rem,2vw,1.5rem);
}
body.pyg-site-polish .analysis-ux-thread-head p:not(.eyebrow){
 margin:4px 0;color:#aab9d1;font-size:.76rem;
}
body.pyg-site-polish .analysis-ux-thread-head>span{
 background:#272d4b;color:#e1e6f2;
 border:1px solid #575581;border-radius:9px;
 padding:7px 11px;font-size:.71rem;font-weight:740;
}
body.pyg-site-polish .maintenance-auth-steps{
 display:flex;flex-wrap:wrap;gap:9px;
 margin:6px 0;padding:12px;border:1px solid #4a5570;
 border-radius:11px;background:#1b283a;
}
body.pyg-site-polish .maintenance-auth-steps span{
 display:inline-flex;align-items:center;gap:7px;
 color:#dce4f4;font-size:.73rem;line-height:1.4;
 flex:1 1 135px;
}
body.pyg-site-polish .maintenance-auth-steps b{
 display:grid;place-items:center;width:26px;height:26px;flex:0 0 26px;
 background:#34305c;border:1px solid #7f92bc;
 border-radius:8px;color:#e1e6f2;font-size:.68rem;
}

/* Conversion: calm, legible guidance on signup and login screens. */
body.pyg-site-polish .auth-card .auth-ux-help {
    margin:10px 0 18px;color:#b9c9df;font-size:.87rem;line-height:1.6;
    border-left:2px solid #789fd6;padding:4px 0 4px 12px;
}
body.pyg-site-polish .auth-card .auth-ux-help a {
    color:#c8e0ff;text-decoration:underline;text-underline-offset:3px;
}
body.pyg-site-polish .auth-card .auth-match-hint {
    margin:0 0 8px;color:#9baec8;font-size:.78rem;line-height:1.45;
}
body.pyg-site-polish .auth-card .auth-match-hint[data-valid="true"] {color:#83d8b8;}
body.pyg-site-polish .auth-card .auth-match-hint[data-valid="false"] {color:#ffb8b8;}
