/* Homepage workspace. Product pages retain the shared site styles. */
.workspace-page{--workspace-sidebar:240px;--workspace-bg:#faf9f5;--workspace-panel:#efeee7;background:var(--workspace-bg);color:#292d29}
.workspace-page button,.workspace-page .button{letter-spacing:0}
.workspace-page [hidden]{display:none!important}
.workspace-skip{position:fixed;top:12px;left:260px;z-index:100;padding:8px 12px;background:var(--surface);transform:translateY(-160%)}
.workspace-skip:focus{transform:none}
.workspace-page .app-sidebar{position:fixed;inset:0 auto 0 0;width:var(--workspace-sidebar);height:100dvh;display:flex;flex-direction:column;padding:24px 16px 18px;background:var(--workspace-panel);border-right:1px solid #e5e4dc;z-index:30}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;padding:0 8px}
.workspace-brand{display:flex;align-items:center;gap:9px;text-decoration:none;font:600 25px/1 var(--display);letter-spacing:-1px}
.brand-slash{color:var(--orange)}
.workspace-page .icon-button{padding:8px;min-height:36px;min-width:36px;margin:0;background:transparent;color:#555c53;border-radius:8px}
.workspace-page .icon-button:hover{background:#e3e5db}
#close-sidebar{display:none}
.workspace-page .new-comparison{justify-content:flex-start;gap:9px;margin:30px 0 14px;width:100%;padding:11px 12px;min-height:42px;background:#e1e7d8;border:1px solid #d5ddca;color:#32472f;border-radius:9px;font-size:13px;font-weight:500}
.new-comparison>span{font-size:21px;line-height:1}
.workspace-navigation{display:grid;gap:3px}
.workspace-navigation>a{display:flex;align-items:center;gap:10px;padding:10px 12px;text-decoration:none;font-size:12px;border-radius:8px;color:#50564d}
.workspace-navigation>a:hover{background:#e6e7df;color:#26352a}
.workspace-navigation>a>span{font-size:17px;width:17px;text-align:center;color:#6b7565}
.sidebar-history{flex:1;min-height:0;overflow-y:auto;margin-top:31px;padding:0 5px;scroll-margin-top:20px}
.sidebar-history>h2{margin:0 0 14px;padding:0 7px;font:500 11px/1.5 var(--body);letter-spacing:.25px;color:#656f5f}
.sidebar-history #recent-runs{display:grid;gap:3px}
.sidebar-history #recent-runs>p{font-size:11px;line-height:1.7;margin:0;padding:0 7px;color:#656f5f}
.sidebar-history #recent-runs>.button{font-size:11px;min-height:32px;padding:7px 10px;margin:8px 0 0;background:transparent;justify-content:flex-start;color:#54724b}
.sidebar-history #recent-runs>.button:hover{background:#e2e6da}
.sidebar-history .recent-run{padding:10px 7px;margin:0;text-align:left;background:transparent;border-radius:7px;color:#51574e;min-height:0;font-weight:400;display:block;width:100%}
.sidebar-history .recent-run:hover{background:#e2e5da}
.sidebar-history .recent-run strong{font-size:11px;font-weight:500;margin:0;line-height:1.55;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-history .recent-run span{font-size:10px;line-height:1.5;display:block;color:#656f5f;margin-top:3px}
.sidebar-account{padding-top:18px;border-top:1px solid #dedfd4}
#account-button{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0;padding:9px 7px;background:transparent;color:#454d41;border-radius:9px;font-size:13px;font-weight:500}
#account-button:hover{background:#e3e5da}
.account-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#e0e4d7;color:#626f57}
.account-arrow{margin-left:auto;color:#8a9382}
.sidebar-account>nav{display:flex;gap:16px;padding:15px 7px 0}
.sidebar-account>nav>a{font-size:10px;text-decoration:none;color:#656f5f}
.sidebar-account>nav>a:hover{text-decoration:underline}
.workspace-page main.workspace-main{max-width:none;height:100dvh;min-height:0;margin:0 0 0 var(--workspace-sidebar);padding:0;overflow:auto;display:flex;flex-direction:column;scroll-behavior:smooth}
.workspace-topbar{height:64px;min-height:64px;display:flex;align-items:center;gap:12px;padding:0 32px;color:#68735f;font-size:12px;font-weight:400}
.workspace-private{margin-left:auto;display:inline-flex;align-items:center;gap:6px;color:#68735f;font-size:11px}
#open-sidebar{display:none}
.workspace-stage{flex:1;min-height:calc(100dvh - 64px);width:100%;padding:30px 40px 130px;display:flex;flex-direction:column;justify-content:center;align-items:center}
.workspace-intro{width:100%;max-width:740px;margin:0 auto 30px;text-align:center}
.workspace-intro h1{font:400 36px/1.25 var(--display);letter-spacing:-1.15px;margin:0;color:#33382f}
.workspace-form{width:100%;max-width:740px;margin:0;padding:0;border:0;background:none}
.workspace-form>fieldset{min-width:0;border:0;padding:0;margin:0}
.workspace-page .prompt-composer{padding:20px 20px 12px;background:#fffefb;border:1px solid #dddfd3;border-radius:24px;box-shadow:0 6px 25px #36462c06;transition:border-color .15s,box-shadow .15s}
.workspace-page .prompt-composer:focus-within{border-color:#bac5ae;box-shadow:0 7px 28px #36462c0b}
.workspace-form #user-prompt{display:block;min-height:112px;max-height:38vh;width:100%;padding:0 3px 12px;margin:0;resize:vertical;background:transparent;border:0;border-radius:0;font:400 17px/1.65 var(--body);color:#353c31;box-shadow:none}
.workspace-form #user-prompt::placeholder{color:#6d7765;opacity:1}
.workspace-form #user-prompt:focus{outline:none}
.workspace-form #user-prompt:focus-visible{outline:none}
.composer-toolbar{display:flex;align-items:center;gap:8px;min-height:38px}
.workspace-page #choose-models,.workspace-page .composer-options{min-height:33px;max-width:calc(100% - 115px);margin:0;padding:7px 10px;border:1px solid #364235;border-radius:6px;background:#151b1c;color:#ecebe4;font-size:11px;font-weight:500;text-align:left;justify-content:flex-start;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.workspace-page #choose-models:hover{background:#222a25;color:#ffd090;border-color:#e9b568}
.workspace-page #choose-models>span{margin-left:7px}
.workspace-page .composer-options{padding:7px 6px;max-width:none;background:#151b1c;color:#ecebe4;font-size:11px}
.workspace-page .composer-options:hover{background:#222a25;color:#ffd090;border-color:#e9b568}
.workspace-page .compare-button{flex:0 0 37px;width:37px;height:37px;min-height:37px;min-width:37px;padding:0;margin:0 0 0 auto;border-radius:50%;background:#5c7850;color:#fff;box-shadow:none}
.workspace-page .compare-button:hover{background:#48653e;color:#fff}
.workspace-page .compare-button:disabled{background:#e6eadf;color:#a2ad98;opacity:1;cursor:not-allowed}
.workspace-form .field-error{padding:0 8px;font-size:12px;line-height:1.5;margin-top:8px}
.workspace-form .field-error:empty{display:none}
.workspace-page .composer-cost{padding:0 8px;margin:10px 0 0;text-align:center;color:#68735f;font-size:10px;line-height:1.5}
.composer-examples{margin:18px 0 0}
.composer-examples>summary{display:none}
.workspace-page .composer-examples .library{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin:0}
.workspace-page .composer-examples .example{display:inline-flex;align-items:center;min-height:33px;height:auto;margin:0;padding:7px 12px;background:transparent;color:#68735f;border:1px solid #e1e4d7;border-radius:16px;font-size:11px;font-weight:400;line-height:1.4;box-shadow:none}
.workspace-page .composer-examples .example:hover{background:#f0f2e9;border-color:#cfd8c1;color:#596d4b}
.workspace-page .composer-examples .example strong{margin:0;font-size:11px;font-weight:400;line-height:1.4}
.workspace-page .composer-examples .example span{display:none}
.workspace-page .composer-status{padding:0 8px;font-size:12px;line-height:1.6;margin:14px 0 0;min-height:0;color:#68735f;text-align:center}
.workspace-page .composer-status:empty{display:none}
.composer-auth{text-align:center}
.composer-auth .button{margin:12px 0 0;min-height:36px;font-size:12px;border-radius:8px}
.composer-auth .help{font-size:11px;max-width:540px;margin:12px auto 0;line-height:1.6}
#retry-account{display:block;margin:12px auto 0;font-size:12px;min-height:36px;border-radius:8px}

/* Dialogs keep setup and billing out of the everyday workspace. */
.workspace-page .workspace-dialog,.workspace-page #model-details{width:min(740px,calc(100vw - 48px));max-height:85dvh;margin:auto;padding:24px;border:1px solid #364332;border-radius:10px;background:#0d1112;color:#ecebe4;box-shadow:0 24px 90px #000c;overflow:hidden}
.workspace-page .workspace-dialog[open],.workspace-page #model-details[open]{display:flex;flex-direction:column;gap:18px}
.workspace-page .workspace-dialog::backdrop,.workspace-page #model-details::backdrop{background:#030707cc;backdrop-filter:none}
.dialog-heading,.workspace-page .model-dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;flex:0 0 auto}
.dialog-heading h2,.workspace-page .model-dialog-heading h2{margin:0 0 6px;font-size:23px;letter-spacing:-.7px;color:#ecebe4}
.dialog-heading>button,.workspace-page #close-models{margin:0;min-height:34px;padding:8px 12px;border-radius:6px;font-size:12px;background:#1b241c;color:#ecebe4;border:1px solid #3c4c34}
.dialog-heading>button:hover,.workspace-page #close-models:hover{background:#273528;color:#ffd090;border-color:#e9b568}
.dialog-heading p{margin:0;font-size:12px;color:#9ba98e}
.dialog-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:0 4px 2px 0}
.dialog-body>label:first-child{margin-top:0}
.workspace-page .workspace-dialog textarea{font-size:14px;background:#111615;color:#ecebe4;border:1px solid #364332}
.workspace-page .workspace-dialog .help{font-size:12px;color:#9ba98e}
.workspace-page #model-details .model-filters{grid-template-columns:2fr 1fr;gap:10px}
.workspace-page #model-details #picker-selected-models{margin:0;flex:0 0 auto}
.workspace-page #model-details .selected-model-chip{margin:0;min-height:30px;font-weight:500;background:#232d1e;color:#ffd090;border:1px solid #4a5c3d}
.workspace-page #model-details #model-options{min-height:0;overflow-y:auto;overscroll-behavior:contain;flex:1 1 auto;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.workspace-page #model-details .model-option{padding:12px;background:#141c18;border:1px solid #303d2e;color:#d5deca;border-radius:8px;margin:0}
.workspace-page #model-details .model-option:has(input:checked){background:#243021;border-color:#e9b568}
.workspace-page #model-details .model-option input{margin-top:2px}
.workspace-page #model-details .model-option strong{font-size:12px}
.workspace-page #model-details .model-access-label,.workspace-page #model-details .model-provider{font-size:10px}
.workspace-page .account-dialog{width:min(560px,calc(100vw - 48px))}
.account-dialog #allowance{font-size:14px;margin-bottom:12px}
.account-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.account-actions>.button,.account-actions>button{font-size:12px;min-height:34px;margin:0;border-radius:8px}
.account-dialog h3{font-size:17px;letter-spacing:-.2px;margin:0 0 12px}
.account-dialog .cost-lines{margin:0 0 20px;font-size:13px}
.account-dialog #retry-preview{font-size:12px;min-height:34px;margin:0 0 16px;border-radius:8px}
.account-explanation{border-top:1px solid #dfe4d7;padding:14px 0}
.account-explanation>summary{cursor:pointer;font-size:12px;font-weight:500}
.account-explanation>p{margin-top:12px}
.account-dialog .account-privacy{padding-top:14px;border-top:1px solid #dfe4d7;font-size:11px;margin:0}

/* Answers use the same calm workspace, with the editable composer below. */
.workspace-main[data-view="results"] .workspace-intro{display:none}
.workspace-main[data-view="results"] .workspace-stage{flex:0 0 auto;min-height:0;padding:24px 40px 44px}
.workspace-main[data-view="results"] .composer-examples{display:none}
.workspace-page #results{width:calc(100% - 80px);max-width:1040px;margin:26px auto 0;padding:0;background:none;border:0}
.workspace-results .report-user-message{width:fit-content;max-width:80%;margin:0 0 28px auto;padding:16px 21px;border-radius:20px 20px 5px 20px;background:#eeeee7;overflow-wrap:anywhere}
.workspace-results .report-user-message .report-prompt{font:400 15px/1.75 var(--body);white-space:pre-wrap;color:#42493c;margin:0}
.workspace-results .report-user-message>span,.workspace-results .report-user-message>strong{display:block;font-size:10px;font-weight:500;color:#656f5f;margin-bottom:5px}
.workspace-results .report-message-author{font-size:10px;font-weight:500;color:#656f5f;margin:0 0 5px}
.workspace-results .result-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;margin:0 0 18px}
.workspace-results .result-card{padding:20px;min-width:0;border:1px solid #e1e4d7;border-radius:15px;background:#fffefa}
.workspace-results .result-card h3{font-size:15px;letter-spacing:-.3px;margin:0 0 14px}
.workspace-results .result-card pre{padding:0;border:0;border-radius:0;background:transparent;color:#46513c;font:400 13px/1.9 var(--body);max-height:none;white-space:pre-wrap;overflow-wrap:anywhere}
.workspace-results .result-card p{font-size:12px}
.workspace-results .result-card .result-actions{margin:14px 0 0}
.workspace-results .result-card button{font-size:10px;min-height:28px;padding:6px 9px;background:transparent;color:#68735f;border-radius:7px;font-weight:400}
.workspace-results .report-comparison-details,.workspace-results .report-actions{border-top:1px solid #e1e4d7;padding:12px 0}
.workspace-results .report-comparison-details>summary,.workspace-results .report-actions>summary{font-size:11px;color:#68735f;cursor:pointer;font-weight:400}
.workspace-results .report-actions .result-actions{margin:8px 0 0}
.workspace-results .report-actions button{font-size:11px;min-height:32px;margin:0;padding:7px 10px;border-radius:7px;background:#edf1e5;color:#59714c}
.workspace-page .sidebar-backdrop{display:none}

@media(min-width:1500px){.workspace-stage{padding-bottom:160px}.workspace-form,.workspace-intro{max-width:800px}.workspace-intro h1{font-size:39px}}
@media(max-width:1100px) and (min-width:901px){.workspace-page{--workspace-sidebar:216px}.workspace-intro h1{font-size:31px}.workspace-stage{padding-right:30px;padding-left:30px}.workspace-navigation>a{font-size:11px}}
@media(max-width:900px){
  .workspace-page .app-sidebar{width:260px;transform:translateX(-100%);transition:transform .18s ease;z-index:50;box-shadow:10px 0 45px #28301c0f}
  .workspace-page .app-sidebar[data-open="true"]{transform:translateX(0)}
  .workspace-page .sidebar-backdrop:not([hidden]){position:fixed;display:block;inset:0;margin:0;padding:0;width:100%;height:100dvh;max-width:none;border:0;border-radius:0;z-index:40;background:#222b1f66}
  #open-sidebar,#close-sidebar{display:inline-flex}
  .workspace-page main.workspace-main{margin-left:0}
  .workspace-topbar{padding:0 20px;height:60px;min-height:60px;font-size:11px}
  .workspace-stage{min-height:calc(100dvh - 60px);padding:30px 24px 100px}
  .workspace-intro h1{font-size:31px}
  .workspace-skip{left:20px}
  .workspace-main[data-view="results"] .workspace-stage{padding:22px 24px 36px}
  .workspace-page #results{width:calc(100% - 48px)}
}
@media(max-width:600px){
  .workspace-topbar{padding:0 12px}
  .workspace-stage{padding:24px 16px 90px}
  .workspace-intro{margin-bottom:23px}
  .workspace-intro h1{max-width:340px;margin:0 auto;font-size:27px;line-height:1.3;letter-spacing:-.8px}
  .workspace-page .prompt-composer{padding:17px 14px 11px;border-radius:21px}
  .workspace-form #user-prompt{min-height:132px;font-size:16px}
  .composer-toolbar{gap:5px}
  .workspace-page #choose-models{padding:7px 8px;font-size:10px;max-width:calc(100% - 99px)}
  .workspace-page .composer-options{font-size:10px;padding:7px 4px}
  .workspace-page .compare-button{width:34px;min-width:34px;height:34px;min-height:34px;flex-basis:34px}
  .workspace-page .composer-examples .library{gap:7px}
  .workspace-page .composer-examples .example{font-size:10px;min-height:30px;padding:6px 10px}
  .workspace-page .composer-examples .example strong{font-size:10px}
  .workspace-page .workspace-dialog,.workspace-page #model-details{width:calc(100vw - 24px);padding:18px;max-height:89dvh;border-radius:15px}
  .workspace-page #model-details #model-options{grid-template-columns:1fr}
  .workspace-page #model-details .model-filters{grid-template-columns:1fr}
  .workspace-page #model-details .model-filters>div:first-child{grid-column:auto}
  .dialog-heading h2,.workspace-page .model-dialog-heading h2{font-size:21px}
  .workspace-page #results{width:calc(100% - 32px);margin-top:18px}
  .workspace-main[data-view="results"] .workspace-stage{padding:20px 16px 28px}
  .workspace-results .report-user-message{max-width:95%;padding:14px 17px}
  .workspace-results .result-grid{grid-template-columns:1fr}
  .workspace-results .result-card{padding:18px}
  .workspace-page #choose-models,.workspace-page .composer-options,.workspace-page .composer-examples .example{min-height:44px}
  .workspace-page #choose-models{max-width:calc(100% - 115px)}
  .workspace-page .composer-options{min-width:46px}
  .workspace-page .compare-button{width:44px;min-width:44px;height:44px;min-height:44px;flex-basis:44px}
  .workspace-page .icon-button,.workspace-page .new-comparison,.workspace-navigation>a,.sidebar-history #recent-runs>.button{min-height:44px}
  .workspace-page .icon-button{min-width:44px}
  .dialog-heading>button,.workspace-page #close-models,.account-actions>.button,.account-actions>button,.account-dialog #retry-preview,.composer-auth .button,#retry-account{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.workspace-page .app-sidebar{transition:none}.workspace-page main.workspace-main{scroll-behavior:auto}}

.comparison-context{display:none;font-size:11px;color:#6c7562;text-align:center;margin:0 0 12px}
.workspace-main[data-view="results"] .comparison-context{display:block}
.report-recovery .help{font-size:12px;margin:10px 0;color:#68765b}
.report-recovery>button{font-size:12px;min-height:36px;padding:8px 12px;margin:0 0 12px}

/* Feedback appears after a pause and stays beside the prompt it describes. */
.live-feedback{margin:16px 8px 0;text-align:left;font-size:12px}
.feedback-status{font-size:11px;color:#737c69;margin:0;text-align:center}
.feedback-status:empty{display:none}
.feedback-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px}
.quality-details{flex:1;min-width:0}
.quality-details>summary{cursor:pointer;line-height:1.8;color:#586a4b;font-size:12px}
#prompt-quality-score{margin-left:7px;font-weight:500;color:#3f5834;font-size:12px}
.quality-explanation{padding:12px 0 4px;font-size:12px}
.quality-explanation .quality-criteria{display:block;margin:8px 0;padding-left:18px}
.quality-explanation .help{font-size:11px;margin:8px 0;line-height:1.7}
.quality-explanation meter{display:block;width:100%;max-width:260px;height:10px}
.workspace-page #show-improvements{flex:0 0 auto;font-size:11px;margin:0;min-height:30px;padding:5px 9px;background:#edf1e6;color:#567247;border-radius:7px;font-weight:500}
.workspace-page #show-improvements:disabled{opacity:.5;cursor:not-allowed}
.model-estimates{margin:0;display:grid;gap:6px}
.model-estimates>div{display:flex;justify-content:space-between;gap:20px;line-height:1.6}
.model-estimates dt{font-weight:400;color:#626f56;overflow-wrap:anywhere}
.model-estimates dd{margin:0;font-variant-numeric:tabular-nums;color:#485d3c;white-space:nowrap}
.feedback-cost-note{font-size:10px;color:#777f6c;margin:9px 0 0;line-height:1.6}
.workspace-page #retry-feedback{font-size:11px;min-height:30px;margin:8px 0 0;padding:5px 9px;border-radius:7px}
.workspace-page #cost-summary{font-size:11px;margin:10px 8px 0;padding:0;text-align:left;color:#59694b;font-weight:400}
.workspace-page #prompt-review-dialog .prompt-proposal{padding:0;border:0;background:none}
.workspace-page #prompt-review-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}
@media(max-width:600px){.live-feedback{margin:14px 4px 0}.feedback-heading{flex-wrap:wrap;gap:8px}.quality-details{flex-basis:100%}.workspace-page #show-improvements,.workspace-page #retry-feedback{min-height:44px}.model-estimates{font-size:11px}}
