/* Expert Mode visual theme — adapted to the established Easy Mode palette.
   Presentation-only: no image, canvas, crop, detection, export or state logic changes. */
:root {
  --bg:#080e23;
  --panel:#132443;
  --panel-2:#1a3054;
  --line:#409de8;
  --muted:#afc5e7;
  --text:#ecf4ff;
  --danger:#d74783;
  --selected:#ffe066;
  --ok:#6ee7b6;
  --vs-border:#304f7e;
  --vs-cyan:#30d7ff;
  color-scheme:dark;
}
html{background:#080e23;}
body{
  background:
    radial-gradient(ellipse at 42% -165px,#163f81 0,transparent 570px),
    radial-gradient(ellipse at 100% 36%,#35165d44 0,transparent 390px),
    #080e23;
  background-attachment:fixed;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  color:var(--text);
  gap:18px;
  padding:82px 18px 28px;
}
.sidebar,.main-content{
  background:linear-gradient(152deg,#152547f7,#111b37f7);
  border:1px solid var(--vs-border);
  border-radius:16px;
  box-shadow:0 9px 34px #000a22a3;
  padding:19px;
}
.sidebar{width:375px;min-width:340px;top:82px;max-height:calc(100vh - 98px);overflow:auto;scrollbar-width:thin;}
.main-content{min-width:0;}
h2,h3{
  color:#76d9ff;
  border-bottom:1px solid #35517c;
  letter-spacing:-.35px;
}
.sidebar>h2,.main-content>h2{font-weight:800;letter-spacing:-.55px;}
.control-group{
  background:linear-gradient(145deg,#192d52,#172745);
  border:1px solid #34547f;
  border-radius:12px;
  padding:14px;
  box-shadow:0 5px 16px #010a212e;
}
.control-group h3{
  color:#d9eeff;
  font-size:14px;
  font-weight:750;
  border-bottom:1px solid #36527b;
}
label,.hint,.batch-meta{color:#b4c9e8;line-height:1.5;}
input[type="number"],input[type="text"],input[type="file"],select,textarea{
  background:#0b1730;
  border:1px solid #42669f;
  border-radius:8px;
  color:#f2f8ff;
  min-height:35px;
  font:inherit;
}
input[type="file"]{border-style:dashed;max-width:100%;padding:9px 6px;}
input[type="checkbox"],input[type="radio"]{accent-color:#20cafa;}
input[type="range"]{accent-color:#26c8ff;}
input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,.visp-mode-nav a:focus-visible{
  outline:2px solid #34deff;
  outline-offset:2px;
}
button{
  color:#fff;
  background:linear-gradient(105deg,#05bdeb,#287af5 54%,#a94ee6);
  border:1px solid #3999e9;
  border-radius:10px;
  font-size:13px;
  font-weight:750;
  min-height:40px;
  transition:filter .16s,border-color .16s,transform .12s;
  touch-action:manipulation;
}
button:hover:not(:disabled){filter:brightness(1.12);background:linear-gradient(105deg,#05bdeb,#287af5 54%,#a94ee6);}
button.secondary,.auto-adjust-mode-v58 button:not(.is-active),.batch-mode-tabs button:not(.is-active){
  color:#d9ebff;
  background:#233a60;
  border:1px solid #45699b;
  box-shadow:none;
}
button.secondary:hover:not(:disabled),.auto-adjust-mode-v58 button:not(.is-active):hover:not(:disabled){
  background:#294973;
  border-color:#70bfff;
}
button.danger{
  background:#963969;
  border-color:#c05b91;
  color:#fff;
}
button.danger:hover:not(:disabled){background:#ac437a;}
button:disabled{filter:grayscale(.1);opacity:.49;}
.selected-title{color:#ffe066;}
.preview-tools-grid,.control-group,.sidebar,.main-content{min-width:0;}
.visp-mode-nav{gap:8px;}
.visp-mode-nav a{
  background:#162b4e;
  color:#b9dcff;
  border:1px solid #37629e;
  border-radius:10px;
  font-weight:750;
  box-shadow:0 5px 15px #01091430;
}
.visp-mode-nav a.is-current{
  background:#146ba5;
  border-color:#4ee0ff;
  color:white;
}
.visp-mode-nav a:hover{background:#1a406e;border-color:#65e1ff;}
.visp-mode-nav #handoffExpert{background:linear-gradient(110deg,#0c978e,#15767c);border-color:#40cbbd;}
#expertHandoffDialog{
  background:linear-gradient(135deg,#152c50,#10203e)!important;
  border:1px solid #5bbbe9!important;
  max-width:min(460px,calc(100vw - 30px));
}
@media(min-width:1500px){
  .sidebar{width:405px;}
  body{gap:23px;padding-left:24px;padding-right:24px;}
  .sidebar,.main-content{padding:23px;}
}
@media(max-width:1000px){
  body{padding:85px 12px 24px;gap:13px;}
  .sidebar{position:static;width:100%;min-width:0;max-height:none;overflow:visible;}
  .main-content{width:100%;}
}
@media(max-width:720px){
  body{padding:118px 10px 22px;}
  .sidebar,.main-content{padding:13px;border-radius:13px;}
  .control-group{padding:12px;}
  .visp-mode-nav{top:60px;left:10px;right:10px;}
}
@media(prefers-reduced-motion:reduce){
  button{transition:none;}
}
