/* AI Studio — Open Studio look / STYLE ONLY
   Apply AFTER studio.css. Does not modify Vue logic, routes, data, or tools.
   Based on open-studio-prototype_1(1).html supplied by site owner. */
:root {
  --ink: #16142b;
  --muted: #6a6783;
  --line: #e2e4f0;
  --brand: #4b3df2;
  --brand-dark: #3a2ed0;
  --coral: #ff5a4e;
  --mist: #eef0fb;
  --pale: #f7f8fc;
  --purple: #c9b6ff;
  --radius: 14px;
  font-family: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--pale);
}
body { background:var(--pale); color:var(--ink); font-size:15px; }
button,input,select { font-family:inherit; }
button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible { outline:3px solid var(--brand);outline-offset:2px; }
button { transition:background .15s,border-color .15s,color .15s; }

/* HOME: prototype's white 96px navigation rail */
.home-shell { display:grid; grid-template-columns:96px minmax(0,1fr); grid-template-rows: minmax(0,1fr); height:100dvh; min-height:0; background:var(--pale); }
.home-shell .studio-ribbon { display:none; }
.home-shell .home-rail { grid-column:1; grid-row:1; display:flex; flex-direction:column; width:96px; height:100dvh; min-width:0; gap:8px; align-items:center; padding:16px 6px; background:white; border-right:1px solid var(--line); color:var(--muted); overflow-y:auto; overflow-x:hidden; }
.home-shell .editorial-logo { display:block; width:100%; text-align:center; font:700 14px/1.2 Georgia,serif; letter-spacing:-.5px; white-space:normal; padding:8px 0 14px; color:var(--ink); overflow-wrap:anywhere; }
.home-shell .editorial-logo small { display:block; font:600 9px/1.4 system-ui,sans-serif; letter-spacing:1px; margin-top:4px; }
.home-shell .home-nav-links { display:flex; flex-direction:column; align-items:stretch; width:100%; gap:5px; order:1; margin:0; }
.home-shell .home-nav-links button { display:grid; place-items:center; width:100%; min-height:45px; margin:0; padding:10px 3px; border:0; border-radius:12px; background:transparent; color:var(--muted); font-size:12px; font-weight:500; }
.home-shell .home-nav-links button:hover:not(:disabled),.home-shell .home-nav-links button.active { color:var(--brand); background:var(--mist); }
.home-shell .home-nav-links button.active { font-weight:700; }
.home-shell .new-design { order:0; display:flex; flex-direction:column; align-items:center; gap:6px; width:100%; min-height:66px; margin:0 0 11px; padding:10px 3px; border:0; border-radius:12px; background:transparent; box-shadow:none; color:var(--ink); font-size:11px; font-weight:700; text-align:center; white-space:normal; }
.home-shell .new-design span { display:grid;place-items:center;order:-1;width:40px;height:40px;border-radius:50%;background:var(--brand);color:white;font-size:24px;line-height:1; }
.home-shell .new-design:hover:not(:disabled){background:var(--mist);color:var(--brand);transform:none;box-shadow:none;}
.home-shell .admin-link { order:3; margin-top:auto; width:100%; padding:12px 2px; font-size:11px; color:var(--muted); text-align:center; }
.home-shell .home-main { grid-column:2; grid-row:1; min-width:0; height:100dvh; overflow:auto; background:var(--pale); }

/* Compact pastel homepage search / preserve all existing real cards and tools */
.home-shell .home-hero { display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.75fr);gap:25px;align-items:center; min-height:275px; padding:32px clamp(18px,3vw,42px); background:linear-gradient(120deg,#d9f5ee 0%,#e9e6ff 52%,#ffe5df 100%);border:0;text-align:left; }
.home-hero .hero-copy { min-width:0; }
.home-shell .home-wordmark { color:var(--muted);font-size:10px;font-weight:800;letter-spacing:1.5px;margin:0 0 14px; }
.home-shell .home-hero h1 { font:800 clamp(32px,4vw,52px)/1.08 "Avenir Next","Segoe UI",system-ui,sans-serif;letter-spacing:-.035em;color:var(--ink);margin:0; }
.home-shell .home-hero h1 em { color:var(--brand);font-style:normal; }
.home-shell .home-hero p { margin:14px 0;font-size:14px;line-height:1.6;color:var(--muted); }
.home-shell .hero-primary,.home-shell .new-design span { background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:none; }
.home-shell .hero-primary:hover:not(:disabled) { background:var(--brand-dark);border-color:var(--brand-dark); }
.home-shell .hero-secondary { background:#fff;border:1px solid var(--line);color:var(--ink);box-shadow:none; }
.home-shell .hero-art { max-height:270px;min-height:0;transform:scale(.78);transform-origin:center; }
.home-shell .hero-caption {color:var(--muted);}
.home-shell .home-discovery { display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:24px 32px 4px;background:transparent; }
.home-shell .home-discovery h2,.home-shell .home-section h2 { color:var(--ink);font:750 24px/1.2 "Avenir Next","Segoe UI",system-ui,sans-serif;letter-spacing:-.02em; }
.home-shell .section-kicker { color:var(--muted);font-size:10px;letter-spacing:1.2px; }
.home-shell .home-search { display:flex;align-items:center;gap:10px;max-width:760px;width:min(100%,520px);height:54px;margin:0;padding:0 18px;background:#fff;border:1.5px solid #cfc9ff;border-radius:999px;box-shadow:none; }
.home-shell .home-search:focus-within { border-color:var(--brand);outline:none; }
.home-shell .home-search input { background:transparent;border:0;outline:0;box-shadow:none;font-size:14px;min-width:0; }
.home-shell .format-shortcuts { display:flex;gap:9px;overflow-x:auto;padding:24px 28px 8px;background:transparent;scrollbar-width:thin; }
.home-shell .format-shortcuts button { display:grid;justify-items:center;gap:10px;flex:0 0 100px;min-width:100px;padding:8px 3px;border:0;border-radius:14px;background:transparent;color:var(--muted);font-size:12px; }
.home-shell .format-shortcuts button:hover:not(:disabled) { background:#fff;color:var(--ink); }
.home-shell .format-tile,.home-shell .format-tile.white,.home-shell .format-tile.black { display:grid;place-items:center;width:60px;height:60px;border:0;border-radius:18px;background:#c9b6ff;color:var(--ink);box-shadow:none;transform:none; }
.home-shell .format-shortcuts button:hover .format-tile{background:#b9a2f7;box-shadow:none;transform:none;}
.home-shell .home-section { padding:28px 32px 24px;background:transparent; }
.home-shell .project-grid { display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:22px;margin-top:22px; }
.home-shell .project-thumb,.home-shell .template-thumb { height:168px;background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:none; }
.home-shell .project-open:hover .project-thumb,.home-shell .template-card:hover .template-thumb { border-color:var(--brand); }
.home-shell .home-empty {border:1.5px dashed #c9cce2;background:transparent;border-radius:14px;box-shadow:none;color:var(--muted);}
.home-shell .home-empty strong { color:var(--ink); }
.home-shell .home-bottom { border-top:1px solid var(--line); color:var(--muted); }

/* EDITOR: match the prototype's white panels, soft purple and dotted canvas. */
.studio { background:#e9ebf5; color:var(--ink); }
.studio header { height:60px;min-height:60px;gap:10px;padding:0 14px;background:#fff;border-bottom:1px solid var(--line);box-shadow:none; }
.studio .project-name input {font-weight:700;color:var(--ink);}
.studio .size-badge { background:var(--mist);color:var(--muted);border-radius:999px; }
.studio .primary,.studio .export-top { background:var(--brand);border-color:var(--brand);color:white;border-radius:10px;box-shadow:none; }
.studio .primary:hover:not(:disabled),.studio .export-top:hover:not(:disabled){background:var(--brand-dark);border-color:var(--brand-dark);color:white;}
.studio .workspace>nav { width:78px;flex:0 0 78px;padding:8px 5px;gap:3px;background:#fff;color:var(--muted);border-right:1px solid var(--line); }
.studio .workspace>nav button { width:100%;min-height:54px;display:grid;place-items:center;gap:4px;padding:8px 2px;border:0;border-radius:10px;background:transparent;color:var(--muted);font-size:11px; }
.studio .workspace>nav button.active {background:var(--mist);color:var(--brand);font-weight:700;}
.studio .workspace>nav button:hover:not(:disabled){background:var(--mist);color:var(--brand);}
.studio .nav-bottom { background:var(--mist);color:var(--ink); }
.studio .panel { width:290px;flex:0 0 290px;padding:18px;background:#fff;border-right:1px solid var(--line); }
.studio .panel h1 {font:700 17px/1.3 "Avenir Next","Segoe UI",system-ui,sans-serif;letter-spacing:0;}
.studio .panel h3 { font-size:13px;color:var(--ink); }
.studio .panel .muted,.studio .panel .hint {color:var(--muted);}
.studio .text-add,.studio .text-option,.studio .ratio-grid button,.studio .shapes button,.studio .tool-menu button,.studio .element-grid button { border:1px solid var(--line);border-radius:10px;background:var(--pale);box-shadow:none;color:var(--ink); }
.studio .shapes button {height:76px;}
.studio .text-add:hover:not(:disabled),.studio .ratio-grid button:hover:not(:disabled),.studio .shapes button:hover:not(:disabled),.studio .tool-menu button:hover:not(:disabled),.studio .element-grid button:hover:not(:disabled) {background:var(--mist);border-color:#cfc9ff;}
.studio .ratio-grid .chosen,.studio .tool-menu button.chosen { background:var(--mist);border-color:var(--brand);color:var(--brand); }
.studio .toolbar { background:#fff;border-bottom:1px solid var(--line); }
.studio .canvas-stage { padding:38px 24px;background:radial-gradient(#cfd3e6 1px,transparent 1px) 0 0/22px 22px,#e9ebf5; }
.studio .canvas-wrap {background:#fff;box-shadow:0 10px 40px rgba(22,20,43,.18);border:0;}
.studio footer {height:78px;background:#fff;border-top:1px solid var(--line);color:var(--muted);}
.studio footer .pages button { border:2px solid var(--line);background:#fff;border-radius:8px;box-shadow:none; }
.studio footer .pages .current {border-color:var(--brand);color:var(--brand);background:var(--mist);}
.studio .tool-workspace,.studio .image-dialog { background:var(--pale); }
.studio .tool-heading {border-bottom:1px solid var(--line);}

@media(max-width:980px){
 .home-shell .home-hero{grid-template-columns:minmax(0,1fr) minmax(180px,.65fr)}
 .home-shell .home-discovery{padding:20px 20px 4px}
 .home-shell .home-section{padding:24px 20px}
 .studio .panel{width:245px;flex-basis:245px}
}
@media(max-width:700px){
 .home-shell{grid-template-columns:64px minmax(0,1fr)}
 .home-shell .home-rail{width:64px;padding:10px 3px}
 .home-shell .editorial-logo{font-size:11px;letter-spacing:-.3px}
 .home-shell .editorial-logo small{font-size:7px}
 .home-shell .new-design{font-size:10px}
 .home-shell .new-design span{width:34px;height:34px}
 .home-shell .home-nav-links button{font-size:10px;min-height:40px}
 .home-shell .home-hero{display:block;min-height:0;padding:25px 17px 20px}
 .home-shell .home-hero h1{font-size:clamp(27px,6.5vw,38px)}
 .home-shell .home-hero p{font-size:12px}
 .home-shell .hero-art{display:none}
 .home-shell .home-discovery{padding:18px 14px 3px}
 .home-shell .home-discovery h2,.home-shell .home-section h2{font-size:20px}
 .home-shell .home-search{width:100%;height:47px}
 .home-shell .format-shortcuts{padding:18px 12px 8px;gap:3px}
 .home-shell .format-shortcuts button{flex-basis:86px;min-width:86px;font-size:11px}
 .home-shell .format-tile,.home-shell .format-tile.white,.home-shell .format-tile.black{width:52px;height:52px}
 .home-shell .home-section{padding:20px 14px}
 .home-shell .project-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:14px}
 .studio .workspace>nav{width:58px;flex-basis:58px;padding:8px 3px}
 .studio .workspace>nav button{font-size:9px;min-height:48px}
 .studio .panel{width:185px;flex-basis:185px;padding:12px}
 .studio .canvas-stage{padding:16px 10px}
 .studio header{padding:0 8px}
}
@media(prefers-reduced-motion:reduce){button{transition:none!important}}
