body{
  background-color:#f6f9fe;
  background-image:
    radial-gradient(circle at 8% 5%,rgba(54,151,234,.12),transparent 28%),
    radial-gradient(circle at 90% 27%,rgba(86,100,220,.08),transparent 31%),
    linear-gradient(rgba(47,115,184,.025) 1px,transparent 1px),
    linear-gradient(90deg,rgba(47,115,184,.025) 1px,transparent 1px);
  background-size:auto,auto,34px 34px,34px 34px;
}
.access-field[hidden],.docs-access-field[hidden],.ask-access[hidden]{display:none}
/* Page changes use the router's ready-state transition; body fades caused a brief flash. */
.site-header{background:rgba(255,255,255,.93);backdrop-filter:blur(16px);border-bottom-color:#dfeaf5}
.brand-icon{background:linear-gradient(140deg,#46a9f5,#196bd1 55%,#143f95);box-shadow:0 7px 18px #176ec542}
.site-header nav a{transition:color .18s ease}
.workspace{position:relative;border-color:#d8e6f4;border-radius:25px;box-shadow:0 22px 58px #173b6615,0 2px 8px #173b6608}
.workspace-head{background:linear-gradient(115deg,#f3f9ff,#fff 54%,#f4f7ff);border-bottom-color:#e2edf7}
body[data-stage=idea] .workspace-head{
  position:relative;display:flex;align-items:center;justify-content:center;
  min-height:154px;padding:26px 24px 23px;text-align:center;overflow:hidden;
  background:
    radial-gradient(circle at 12% 82%,rgba(63,166,241,.14),transparent 27%),
    radial-gradient(circle at 88% 12%,rgba(85,107,226,.12),transparent 28%),
    linear-gradient(110deg,#f1f8ff 0%,#fff 48%,#f3f7ff 100%);
}
body[data-stage=idea] .workspace-head::before{
  content:"";position:absolute;right:8%;top:-88px;width:230px;height:230px;
  border:1px solid rgba(44,127,207,.15);border-radius:50%;
  box-shadow:0 0 0 25px rgba(50,144,221,.025),0 0 0 52px rgba(50,144,221,.018);
  pointer-events:none;
}
body[data-stage=idea] .workspace-head::after{
  content:"";position:absolute;left:11%;bottom:28px;width:50px;height:50px;
  border:1px solid rgba(49,138,219,.17);transform:rotate(45deg);border-radius:12px;
  pointer-events:none;
}
body[data-stage=idea] .workspace-head>div:first-child{position:relative;z-index:1}
body[data-stage=idea] .workspace-head .section-kicker{
  display:inline-block;color:#4b87bd;font-size:11px;letter-spacing:.32em;
  padding:5px 12px;border:1px solid #d8e9f8;border-radius:999px;background:#ffffffb8;
}
body[data-stage=idea] .workspace-head h2{
  margin:9px 0 0;font-family:'Noto Serif SC','Source Han Serif SC','Songti SC','STSong',serif;
  font-size:clamp(36px,4.2vw,51px);line-height:1.24;font-weight:900;letter-spacing:.075em;
  color:#184d87;background:linear-gradient(105deg,#164378 10%,#1b77c8 53%,#343f9d 94%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  text-shadow:0 10px 25px rgba(29,105,187,.09);
}
body[data-stage=idea] .workspace-head h2::after{
  content:"";display:block;width:76px;height:3px;margin:13px auto 0;
  border-radius:10px;background:linear-gradient(90deg,transparent,#3b9be8 25%,#5e71dd 75%,transparent);
}
.workflow-message{border-top:1px solid #eaf1f8;background:#f7fbff;color:#527696}
body[data-stage=idea] #stage-idea{padding:24px 34px 31px}
body[data-stage=idea] #idea-form>label{font-size:14px;font-weight:800;letter-spacing:.02em;color:#244b75}
body[data-stage=idea] #idea{
  border:1px solid #cbdff2;border-radius:16px;
  background:linear-gradient(145deg,#fff,#fbfdff 75%);
  box-shadow:inset 0 1px 2px #245c8a08,0 8px 24px #1c68af0a;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}
body[data-stage=idea] #idea:focus{border-color:#2d91e1;box-shadow:0 0 0 4px #dceeff,0 10px 28px #1c68af12;transform:translateY(-1px)}
.primary-button{background:linear-gradient(135deg,#287fdf,#1266c8 64%,#1854ac);border-color:#1768c6;box-shadow:0 9px 19px #176dc836;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.primary-button:hover:not(:disabled){background:linear-gradient(135deg,#2789ed,#1268cf 64%,#1654b2);box-shadow:0 12px 25px #176dc84a;transform:translateY(-2px)}
.primary-button:active:not(:disabled){transform:translateY(0)}
body[data-stage=idea] #idea-submit{font-size:13px;padding:12px 21px;border-radius:12px}
.idea-examples summary{color:#397cba}
.example-row button,.preset-bar button{transition:background .18s ease,border-color .18s ease,transform .18s ease}
.example-row button:hover,.preset-bar button:hover{transform:translateY(-1px)}
.material-card,.option-card,.insight-card{box-shadow:0 6px 22px #163e6808}
.option-card{transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.option-card:hover{border-color:#95c9f3;box-shadow:0 9px 24px #1d73c017;transform:translateY(-2px)}
.history-section{margin:34px auto 23px}
.history-head h2{font-size:27px;font-weight:800;letter-spacing:-.04em;color:#164978}
.history-card{border-color:#dbe8f4;border-radius:16px;box-shadow:0 8px 22px #173b660a;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.history-card:hover{transform:translateY(-3px);border-color:#aacfee;box-shadow:0 15px 32px #173b6619}
.history-empty{background:linear-gradient(135deg,#fff,#f5faff)}
.ask-section{margin:0 auto 72px}
.ask-head h2{font-size:30px}
.ask-panel{box-shadow:0 18px 42px #173b6612}
footer{background:linear-gradient(90deg,#fff,#f9fcff)}
@media(max-width:650px){
  body[data-stage=idea] .workspace-head{min-height:132px;padding:22px 18px 19px}
  body[data-stage=idea] .workspace-head h2{font-size:34px;letter-spacing:.035em}
  body[data-stage=idea] .workspace-head::before{right:-90px}
  body[data-stage=idea] .workspace-head::after{left:-25px;bottom:17px}
  body[data-stage=idea] #stage-idea{padding:18px 16px 22px}
  body[data-stage=idea] #idea{min-height:210px}
  .history-section{margin:28px auto 22px}
  .ask-section{margin-bottom:48px}
  .ask-head h2{font-size:25px}
}
@media(prefers-reduced-motion:reduce){.primary-button,.history-card,.option-card,.example-row button,.preset-bar button,body[data-stage=idea] #idea{transition:none}}

/* The idea field remains the main subject; supporting conversation and history live at its left. */
main{max-width:1510px;display:grid;grid-template-columns:minmax(260px,300px) minmax(0,1fr);grid-template-areas:"ask workspace" "history workspace";column-gap:22px;row-gap:17px;align-items:start}
.workspace{grid-area:workspace;width:100%;max-width:none;min-width:0;margin:0 0 44px;align-self:start}
.ask-section{grid-area:ask;width:100%;min-width:0;margin:0;scroll-margin-top:84px}
.history-section{grid-area:history;width:100%;min-width:0;margin:0 0 42px;scroll-margin-top:84px}
.ask-head,.history-head{display:block;margin:0 0 11px;padding:0 3px}
.ask-head h2,.history-head h2{font-size:21px;margin:4px 0 3px}
.ask-head p,.history-head p{font-size:11px;line-height:1.55}
.ask-head .text-button{margin:4px 0 0;padding:4px 0;font-size:11px}
.ask-panel{padding:12px;border-radius:16px}
.ask-panel form{padding:3px;gap:3px}
.ask-panel form input{height:40px;padding:0 9px;font-size:12px}
.ask-panel form button{min-width:59px;min-height:38px;padding:7px 8px;font-size:11px}
.ask-messages{max-height:230px;gap:8px;margin-top:10px}
.ask-message{max-width:100%;padding:9px 10px;font-size:11px}
.ask-note{font-size:10px}
.history-tools{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.history-tools input{min-width:0;width:100%;height:36px;font-size:12px}
.history-tools .text-button{font-size:11px;padding:2px 0}
.history-list{grid-template-columns:1fr;max-height:360px;overflow:auto;gap:8px;padding:1px 3px 5px 0}
.history-card{padding:11px 12px;border-radius:12px}
.history-card h3{font-size:13px;margin:5px 0}
.history-card p{height:auto;max-height:34px;margin-bottom:7px}
.history-empty{padding:17px 11px}
.result-preview{margin:0 0 17px;border:1px solid #d8e9f6;border-radius:16px;overflow:hidden;background:#0b2544}
.result-preview img{display:block;width:100%;max-height:470px;aspect-ratio:1120/630;object-fit:cover}
.result-preview figcaption{padding:9px 13px;color:#b7d5e8;font-size:11px;line-height:1.5}
@media(max-width:1050px){main{grid-template-columns:minmax(230px,265px) minmax(0,1fr);column-gap:15px}.workspace-head h2{font-size:19px}}
@media(max-width:800px){main{display:flex;flex-direction:column;gap:18px}.workspace,.ask-section,.history-section{width:100%;margin:0}.workspace{order:0}.ask-section{order:1}.history-section{order:2}.ask-head,.history-head{display:flex}.history-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:380px}.ask-messages{max-height:270px}}
@media(max-width:650px){main{gap:16px}.workspace-head h2{font-size:34px}.ask-head,.history-head{display:block}.ask-head h2,.history-head h2{font-size:22px}.ask-section{margin-bottom:0}.history-section{margin:0 0 25px}.history-list{grid-template-columns:1fr}.result-preview figcaption{font-size:10px}}
