/* PortraitCraft panel/workflow/stage base, reduced to left controls and right image. */
.image-studio button.studio-primary:hover:not(:disabled){background:#2e5db5;border-color:#2e5db5;color:#fff}
.portraitcraft-layout{--panel:var(--theme-surface,#fff);--radius:8px;--shadow:none;--accent-dark:var(--blue);display:grid;grid-template-columns:320px minmax(0,1fr);gap:12px;padding:0;align-items:start}
.portraitcraft-layout .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.portraitcraft-layout .left-panel{position:sticky;top:12px;max-height:calc(100vh - 28px);display:flex;flex-direction:column;grid-template-rows:none}
.portraitcraft-layout .workflow{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0;padding:10px;background:var(--theme-soft);border-bottom:1px solid var(--line)}
.portraitcraft-layout .workflow button{margin:0;background:transparent;border:1px solid transparent;min-height:39px;font-size:12px;text-align:left;padding:9px 10px}
.portraitcraft-layout .workflow button[aria-pressed=true]{background:var(--theme-surface);border-color:var(--line);color:var(--blue);box-shadow:0 1px 4px #172b4810}
.portraitcraft-layout .portraitcraft-options-slot{overflow:auto;scrollbar-width:thin;min-height:0;padding:0}
.portraitcraft-layout .studio-tools{display:flex;flex-wrap:wrap;gap:4px;padding:12px 12px 0;margin:0;overflow:visible}
.portraitcraft-layout .studio-tools button{flex:1;justify-content:center;gap:5px;font-size:11px;min-width:75px;padding:8px 7px}
.portraitcraft-layout .studio-tools button span{font-size:16px}
.portraitcraft-layout .studio-inspector{border:0;padding:20px}
.portraitcraft-layout .studio-inspector h2{font-size:15px;margin:0 0 18px}
.portraitcraft-layout .studio-layers{margin:0 20px;padding:16px 0 20px}
.portraitcraft-layout .studio-layers [data-ui=layers]{flex-direction:column}
.portraitcraft-layout .studio-layers [data-ui=layers]>button{max-width:none}
.portraitcraft-layout .stage-card{padding:0;min-width:0}
.portraitcraft-layout .studio-workarea{padding:20px;min-height:630px}
.portraitcraft-layout .studio-comparison{grid-template-columns:1fr 1fr;gap:16px}
.portraitcraft-layout .studio-comparison.is-wipe{grid-template-columns:1fr}
.portraitcraft-layout .studio-before-stage,.portraitcraft-layout .studio-scroll{min-height:400px;padding:36px 18px}
.portraitcraft-layout .studio-bottom-meta{padding-bottom:0}
.image-studio{max-width:1740px}.studio-title{padding:18px 0 16px}.studio-title h1{font-size:26px}.studio-title p{font-size:12px}.studio-history{margin-bottom:14px}
.toolgrid.compact-tools{grid-template-columns:repeat(3,minmax(0,1fr));max-width:1180px}.compact-tools .toolcard{min-height:230px;padding:32px}.compact-tools .toolcard h2{font-size:23px}.compact-tools .toolcard p{font-size:14px}
.home .hero{padding:58px 20px 38px}.home .home-note{margin-top:42px}.home .hero h1{font-size:38px}
@media(max-width:1150px){.portraitcraft-layout{grid-template-columns:280px minmax(0,1fr)}.portraitcraft-layout .studio-workarea{padding:16px;min-height:550px}.portraitcraft-layout .studio-comparison{gap:10px}.portraitcraft-layout .studio-before-stage,.portraitcraft-layout .studio-scroll{padding:30px 10px;min-height:300px}}
@media(max-width:800px){.portraitcraft-layout{grid-template-columns:240px minmax(0,1fr);gap:8px}.portraitcraft-layout .studio-inspector [data-ui=panel]{display:flex}.portraitcraft-layout .workflow{padding:8px;gap:3px}.portraitcraft-layout .workflow button{font-size:10px;padding:8px 5px}.portraitcraft-layout .studio-inspector{padding:14px}.portraitcraft-layout .studio-comparison{grid-template-columns:1fr}.portraitcraft-layout .studio-before-stage{min-height:130px;padding:10px}.portraitcraft-layout .studio-before-stage canvas{max-height:180px}.portraitcraft-layout .studio-scroll{min-height:240px}.portraitcraft-layout .studio-layers{margin:0 14px}.compact-tools .toolcard{padding:24px}.compact-tools .toolcard h2{font-size:19px}.compact-tools .toolcard p{font-size:12px}}
@media(max-width:600px){.portraitcraft-layout{display:flex;flex-direction:column}.portraitcraft-layout .left-panel{position:static;max-height:none;width:100%;overflow:visible}.portraitcraft-layout .portraitcraft-options-slot{overflow:visible;max-height:none}.portraitcraft-layout .studio-inspector{max-height:280px;overflow:auto}.portraitcraft-layout .studio-layers{display:none}.portraitcraft-layout .workflow{grid-template-columns:repeat(3,1fr)}.portraitcraft-layout .stage-card{width:100%}.portraitcraft-layout .studio-comparison{grid-template-columns:1fr 1fr}.portraitcraft-layout .studio-before-stage{min-height:230px}.portraitcraft-layout .studio-before-stage canvas{max-height:300px}.toolgrid.compact-tools{grid-template-columns:1fr}.compact-tools .toolcard{min-height:160px}.home .hero h1{font-size:29px}}
