@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#25342d;--muted:#7d8881;--green:#355e46;--line:#e6eae5;--bg:#f7f9f5}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);font:14px 'DM Sans',Arial,sans-serif}button,input,textarea,select{font:inherit}button,a{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}aside{position:fixed;inset:0 auto 0 0;width:245px;background:#fff;border-right:1px solid var(--line);padding:31px 21px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:7px;text-decoration:none;font-size:21px;font-weight:800;letter-spacing:-1px}.brandmark{background:#345c44;color:#fff;border-radius:10px;padding:7px;font-size:20px;margin-right:4px}.thin{font-weight:400}.navlabel{font-size:10px;color:#9aa49e;letter-spacing:1.5px;font-weight:700;margin:35px 10px 12px}.nav{border:0;background:transparent;width:100%;text-align:left;padding:11px 12px;color:#66726b;border-radius:7px;font-size:12px;display:flex;align-items:center;gap:9px}.nav:hover,.nav.active{background:#edf3eb;color:#31533d}.nav span:last-child:not(:first-child){margin-left:auto}.nav.active{font-weight:700}.navicon{font-size:16px;width:21px}.sidebottom{margin-top:auto;padding:25px 10px 0;font-size:12px;line-height:2}.sidebottom small{color:var(--muted)}.status{color:#649567;margin-right:6px}.main{margin-left:245px}header{height:83px;border-bottom:1px solid var(--line);padding:0 44px;display:flex;align-items:center;justify-content:space-between;background:#ffffffa0;font-size:12px}header b{font-weight:500}.muted{color:#9ba49f;padding:0 13px}.headerend{display:flex;align-items:center;gap:22px}.local{color:#7d8881;font-size:11px}.avatar{border-radius:50%;background:#e9eee4;padding:9px 13px;color:#557047;font-weight:700}main{max-width:1400px;margin:auto;padding:45px 44px 25px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:#608268;font-weight:700;display:flex;align-items:center;gap:8px}h1{font:800 37px 'Manrope',Arial,sans-serif;letter-spacing:-1.5px;margin:14px 0}h1 em{font-style:normal;color:#6f886a}.intro{color:var(--muted);font-size:14px;line-height:1.8}.hero{position:relative;padding:6px 0 23px}.heroart{position:absolute;right:25px;top:0;width:170px;height:135px;transform:rotate(-8deg)}.tile{position:absolute;width:66px;height:66px;border:1px solid #dce5d6;border-radius:16px;background:#e8eedf;display:grid;place-items:center;font-size:27px;box-shadow:0 8px 20px #3a513209}.tile:nth-child(1){left:15px;top:5px}.tile:nth-child(2){left:87px;top:25px;background:#faf1df}.tile:nth-child(3){left:45px;top:77px;background:#ecedf8}.toolbar{display:flex;justify-content:space-between;gap:15px;margin:23px 0 27px;align-items:center}.search{background:#fff;border:1px solid var(--line);border-radius:8px;padding:12px 15px;width:310px;display:flex;gap:12px;color:#89988d}.search input{border:0;outline:0;width:100%;background:none;font-size:12px}.tabs{display:flex;gap:4px}.tabs button{border:0;background:none;padding:10px 13px;color:#7d8881;font-size:12px;border-radius:7px}.tabs button.active{background:#e8eee3;color:#3f6147;font-weight:700}.sectionline{display:flex;justify-content:space-between;font-size:12px;margin:0 0 17px}.sectionline b{font-size:15px}.sectionline span{color:#97a096}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px;text-align:left;position:relative;transition:transform .15s,box-shadow .15s;min-height:199px;color:var(--ink)}.card:hover{transform:translateY(-3px);box-shadow:0 7px 24px #314b3510;border-color:#bdcdb9}.cardtop{display:flex;align-items:center;justify-content:space-between}.icon{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:var(--tint);color:var(--color);font-size:22px}.tag{font-size:9px;padding:5px 8px;background:#f5f7f4;border-radius:4px;color:#889184;letter-spacing:.2px}.card h2{font-size:14px;margin:18px 0 8px;font-weight:700}.card p{font-size:12px;line-height:1.7;color:#89928b;margin:0 0 15px;max-width:270px}.cardfoot{font-size:11px;color:#648267;display:flex;justify-content:space-between}.banner{margin-top:27px;border-radius:10px;padding:22px 25px;background:#edf1e7;display:flex;align-items:center;gap:16px}.banner b{font-size:13px}.banner p{margin:5px 0 0;color:#89927f;font-size:12px}.banner>span{font-size:25px}footer{padding:25px 44px;font-size:10px;color:#959e94;display:flex;justify-content:space-between}footer b{color:#66805e}.back{border:0;background:none;padding:0;color:#6b8270;font-size:12px}.toolhead{margin-bottom:30px}.workspace{display:grid;grid-template-columns:1fr 1fr;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:25px;min-width:0}.panel h2{font-size:16px;margin:0 0 22px}.field{display:block;font-size:12px;font-weight:600;margin:17px 0 8px}input,textarea,select{width:100%;border:1px solid #dde4da;background:#fcfdfb;padding:12px;border-radius:7px;color:var(--ink);outline-color:#7d9879}textarea{min-height:170px;resize:vertical;line-height:1.6}input[type=color]{height:45px;padding:4px}input[type=range]{padding:0}input[type=file]{font-size:12px}.primary{border:0;border-radius:7px;background:var(--green);color:#fff;padding:13px 20px;margin-top:22px;width:100%;font-weight:600}.secondary{background:#f3f6ef;border:1px solid var(--line);border-radius:6px;padding:8px 12px;font-size:11px}.outputtop{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.outputtop h2{margin:0}.actions{display:flex;gap:7px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 ui-monospace,monospace;background:#f7f9f5;border-radius:8px;padding:17px;max-height:570px;overflow:auto}.empty{color:#9aa598;text-align:center;padding:65px 15px;line-height:2;font-size:12px}.empty span{display:block;font-size:32px;color:#bac6b6}.note{color:#8b9588;font-size:11px;line-height:1.6;margin-top:15px}.error{color:#b44136;font-size:12px;margin-top:12px}iframe{width:100%;height:330px;border:1px solid var(--line);border-radius:8px;background:#fff}#result img{max-width:100%;max-height:350px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#2d4935;color:white;padding:12px 22px;border-radius:8px;display:none;z-index:5}.noresults{padding:45px;color:var(--muted);grid-column:1/-1}@media(min-width:1500px){main{padding-top:65px}.card{min-height:220px}}@media(max-width:1100px){aside{width:215px;padding:28px 14px}.main{margin-left:215px}main{padding:32px 25px}.grid{grid-template-columns:repeat(2,1fr)}header,footer{padding-left:25px;padding-right:25px}.toolbar{align-items:stretch;flex-direction:column}.heroart{right:0;opacity:.6}.hero .intro{max-width:65%}}@media(max-width:700px){aside{position:static;width:100%;padding:16px 20px;border-right:0;border-bottom:1px solid var(--line)}aside nav,.navlabel,.sidebottom,aside>.nav{display:none}.main{margin:0}header{height:55px}.local{display:none}main{padding:25px 20px}.heroart{display:none}h1{font-size:29px}.hero .intro{max-width:100%}.search{width:100%}.tabs{overflow:auto;white-space:nowrap}.tabs button{padding:9px 11px}.grid{grid-template-columns:1fr 1fr;gap:12px}.card{padding:16px;min-height:210px}.card h2{line-height:1.4}.tag{display:none}.workspace{grid-template-columns:1fr}.banner{padding:17px}.banner p{line-height:1.6}footer{padding:22px 20px}}@media(max-width:390px){.grid{grid-template-columns:1fr}}

/* Shared POLY3 identity */
:root{--ink:#172238;--muted:#718094;--green:#d87d0b;--line:#e2e7ed;--bg:#f4f7fa}
.brandmark{background:linear-gradient(135deg,#f5ab00,#ff7918)}.nav:hover,.nav.active{background:#fff3d2;color:#9b5c00}.status{color:#d78b18}.eyebrow{color:#b7740e}h1 em{color:#d88a16}.tabs button.active{background:#fff3d2;color:#9b5c00}.primary{background:linear-gradient(100deg,#f5a900,#ff7918)}.cardfoot{color:#bd7000}.banner{background:#fff3d2}.back{color:#bd7000}.search input{background:none}.tile{background:#fff3d2;border-color:#f2e1be}.shared-nav{display:flex;gap:6px}.shared-nav a{text-decoration:none;padding:9px 13px;border-radius:8px;color:#718094;font-weight:600}.shared-nav a[aria-current]{background:#fff3d2;color:#9b5c00}.script-nav{margin-top:28px;text-decoration:none}.local{display:none}
@media(max-width:700px){aside .script-nav{display:none}header{height:65px}.shared-nav a{padding:8px;font-size:11px}.headerend{gap:8px}.avatar{display:none}}

.tool-help{border:1px solid #f2e1be;background:#fffaf0;border-radius:12px;margin:0 0 25px}.tool-help summary{list-style:none;cursor:pointer;padding:17px 20px;display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:700;color:#9b5c00}.tool-help summary::-webkit-details-marker{display:none}.tool-help summary:focus-visible{outline:3px solid #f5a321;border-radius:12px}.help-toggle{font-size:11px;font-weight:500}.tool-help[open] .help-toggle{font-size:0}.tool-help[open] .help-toggle:after{content:'Hide help';font-size:11px}.help-body{padding:0 20px 20px;font-size:12px;line-height:1.8;color:#637287}.help-body>p:first-child{margin-top:0}.help-body dl{display:grid;grid-template-columns:1fr 1fr;gap:19px 28px;margin:20px 0}.help-body dt{font-weight:700;color:#172238;margin-bottom:5px}.help-body dd{margin:0;overflow-wrap:anywhere}.help-usage{border-top:1px solid #f2e1be;padding-top:13px;margin-bottom:0}.primary:disabled{opacity:.65;cursor:wait}@media(max-width:700px){.help-body dl{grid-template-columns:1fr;gap:17px}}

#form h2{display:flex;align-items:center;justify-content:space-between;gap:10px}.example-button{font-weight:500}.outputtop{flex-wrap:wrap;gap:12px}.revision-box{border-top:1px solid var(--line);margin-top:22px;padding-top:4px}.revision-box textarea{min-height:85px;margin-bottom:12px}.project-actions{display:flex;gap:7px;flex-wrap:wrap}.project-card{min-height:180px}dialog{width:min(440px,calc(100% - 32px));border:1px solid var(--line);border-radius:15px;padding:25px;color:var(--ink)}dialog::backdrop{background:#17223888}dialog h2{margin-top:0}.shared-nav{flex-wrap:wrap}#toast .secondary{margin-left:12px}

.brand-form{max-width:850px}.brand-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 22px}.brand-fields textarea{min-height:110px}.brand-fields .field{margin-bottom:8px}.brand-fields{display:block}.brand-form .primary{max-width:280px}aside{overflow-y:auto}.sidebottom{padding-top:18px}.navlabel{margin-top:22px}header{height:auto;min-height:83px;padding-top:15px;padding-bottom:15px}.shared-nav{gap:2px}.shared-nav a{padding:8px 9px;font-size:11px}@media(max-width:700px){header{align-items:flex-start;gap:10px;flex-direction:column}.shared-nav a{font-size:11px;padding:5px 8px}.headerend{width:100%}.shared-nav{gap:2px}}

.history-row{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px}.history-row small{display:block;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.backup-panel{margin:24px 0}.backup-panel .actions{flex-wrap:wrap}.backup-panel label{cursor:pointer}.backup-panel button:disabled{opacity:.5;cursor:default}

footer{flex-wrap:wrap;gap:16px}.social-links{display:flex;gap:18px;flex-wrap:wrap}.social-links a{color:#bd7000;text-decoration:none;font-weight:700}.social-links a:hover{text-decoration:underline}

/* POLY3 Studio workspace branding */
.brand .brandtext{display:inline-flex;align-items:baseline;gap:.3rem;font-style:normal}
.brand .brandtext em{font-style:normal;font-weight:700;color:#d68a00;font-size:.72em;letter-spacing:.01em}
