:root { --bg:#f6f6f3; --paper:#fff; --ink:#222924; --muted:#788079; --line:#dce1db; --teal:#147a72; --coral:#bd624a; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.5 Arial,Helvetica,sans-serif; }
main { max-width:1180px; margin:auto; padding:0 36px 40px; }
a { color:#1772d0; text-decoration:none; } a:hover { text-decoration:underline; }
button,input,textarea,select { font:inherit; color:inherit; }
button { cursor:pointer; border:1px solid var(--line); background:var(--paper); border-radius:6px; padding:8px 12px; }
button:hover { background:#edf1eb; }
button:disabled { cursor:not-allowed; opacity:.4; }
:focus-visible { outline:2px solid var(--teal); outline-offset:3px; }
[hidden] { display:none!important; }
input[type=checkbox] { accent-color:var(--teal); }
input[type=number],select { min-width:0; padding:8px; border:1px solid var(--line); border-radius:5px; background:var(--bg); }
input[type=number] { appearance:textfield; }
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button { appearance:none; margin:0; }
textarea { width:100%; display:block; resize:vertical; padding:16px; line-height:1.7; background:var(--paper); border:1px solid var(--line); border-radius:6px; }
.site-nav { display:grid; grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); align-items:center; gap:16px; min-height:62px; padding:15px 0; border-bottom:1px solid var(--line); font-size:13px; }
.site-nav > a { justify-self:start; min-width:0; }
.site-nav h1 { grid-column:2; margin:0; text-align:center; font-size:18px; font-weight:600; line-height:1.35; letter-spacing:-.03em; }
.model-toolbar { position:relative; display:flex; flex-wrap:wrap; gap:14px; align-items:center; padding:28px 0; }
#model { background:transparent; border-color:transparent; padding:8px 20px 8px 0; font-size:15px; max-width:100%; }
#model-status { color:var(--teal); font-size:12px; }
#model-status:empty { display:none; }
#steering-mode { margin-left:auto; font-size:12px; background:transparent; border-color:transparent; }
#model-status.loading { animation:pulse 1s infinite alternate; }
progress { position:absolute; left:0; bottom:8px; display:block; width:100%; height:3px; accent-color:var(--teal); }
.primary { color:white; background:var(--ink); border-color:var(--ink); padding:10px 16px; font-size:12px; white-space:nowrap; }
.primary:hover { background:#3e4c42; }
.quiet { border-color:transparent; background:transparent; color:var(--muted); padding:4px; font-size:12px; }
.notice { color:#8a4232; border:1px solid #d5b6a9; background:#faf0e9; padding:12px; border-radius:5px; font-size:12px; }
.workspace { display:grid; grid-template-columns:320px minmax(0,1fr); gap:28px; align-items:start; }
fieldset { min-width:0; margin:0; padding:0; border:0; }
#steer-list { display:grid; gap:10px; max-height:470px; overflow:auto; padding:2px; }
.steer-card { padding:12px; border:1px solid var(--line); background:var(--paper); border-radius:8px; }
.steer-card:focus-within { border-color:var(--teal); }
.steer-card.off { opacity:.55; }
.steer-fields { display:grid; grid-template-columns:88px minmax(0,1fr) 28px 22px; align-items:center; gap:8px; }
.steer-fields select { width:100%; padding:7px 0 7px 4px; font-size:12px; border-color:transparent; background:transparent; }
.neuron-number { display:flex; align-items:center; gap:3px; min-width:0; padding:0 5px; border:1px solid transparent; border-radius:5px; color:var(--muted); }
.neuron-number:focus-within { border-color:var(--teal); box-shadow:0 0 0 2px #147a721a; }
.neuron-number input { flex:1; width:0; padding:7px 0; border:0; border-radius:0; background:transparent; font-size:13px; font-variant-numeric:tabular-nums; }
.neuron-number input:focus-visible { outline:none; }
.enable-switch { appearance:none; width:28px; height:16px; margin:0; border-radius:20px; background:#c5ccc5; padding:2px; cursor:pointer; }
.enable-switch::before { content:''; display:block; width:12px; height:12px; border-radius:50%; background:white; transition:transform .15s; }
.enable-switch:checked { background:var(--teal); }
.enable-switch:checked::before { transform:translateX(12px); }
.icon-button { border:0; background:none; padding:1px 4px; color:var(--muted); font-size:20px; line-height:1; }
.slider-row { display:flex; gap:6px; align-items:center; margin-top:13px; }
.slider-row input[type=range] { width:100%; min-width:0; accent-color:var(--teal); cursor:pointer; }
.steer-card.negative .slider-row input[type=range] { accent-color:var(--coral); }
.slider-row button { flex-shrink:0; width:23px; height:28px; padding:0; border:0; background:transparent; color:var(--muted); font-size:17px; }
.slider-row button:hover { color:var(--teal); background:#edf1eb; }
.delta { width:62px; flex-shrink:0; text-align:center; font-size:12px; padding:5px 2px!important; font-variant-numeric:tabular-nums; color:var(--teal); }
.steer-card.negative .delta { color:var(--coral); }
.add { width:100%; margin-top:10px; padding:10px; border-style:dashed; background:transparent; color:var(--teal); font-size:12px; }
.neuron-tools { display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; align-items:center; margin-top:12px; }
.neuron-tools .quiet { padding:6px 4px; }
#preset-link { width:100%; margin-top:10px; padding:8px; border:1px solid var(--line); border-radius:5px; background:var(--paper); font-size:12px; }
#share-message { margin:6px 0 0; font-size:11px; color:var(--muted); }
.csv-panel { width:100%; margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.csv-panel summary { cursor:pointer; font-size:12px; color:var(--muted); }
.csv-panel[open] summary { margin-bottom:16px; }
.csv-panel input[type=file] { width:100%; font-size:12px; margin:0 0 16px; }
.csv-panel input[type=file]::file-selector-button { font:inherit; color:var(--ink); background:var(--paper); border:1px solid var(--line); border-radius:6px; padding:8px 12px; margin-right:12px; cursor:pointer; }
.csv-panel input[type=file]::file-selector-button:hover { background:#edf1eb; }
.csv-panel textarea { font:12px/1.7 ui-monospace,SFMono-Regular,monospace; padding:12px; }
.row-actions { display:flex; justify-content:space-between; align-items:center; margin-top:14px; font-size:12px; }
#csv-message { font-size:12px; color:var(--muted); }
#csv-message:empty { display:none; }
.empty-list { color:var(--muted); margin:0; padding:10px 0; font-size:12px; }
.conversation { min-width:0; padding-top:2px; }
#prompt-form { background:var(--paper); border:1px solid var(--line); border-radius:8px; }
#prompt { border:0; min-height:170px; border-radius:8px; padding:18px; }
#prompt::placeholder { color:var(--muted); }
.prompt-footer { display:flex; flex-wrap:wrap; gap:12px; justify-content:space-between; align-items:center; padding:10px 15px; }
.run-options { display:flex; flex-wrap:wrap; gap:12px; align-items:center; font-size:12px; color:var(--muted); }
.run-options label { display:flex; gap:6px; align-items:center; }
.generate-actions { display:flex; gap:8px; margin-left:auto; }
.run-summary { font-size:12px; color:var(--muted); margin:12px 0 0; }
.responses { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:20px; }
.responses.single { grid-template-columns:1fr; }
.response { min-width:0; border:1px solid var(--line); border-radius:8px; background:var(--paper); }
.response.steered { border-top:2px solid var(--teal); }
.response header { display:flex; justify-content:space-between; gap:8px; align-items:center; padding:12px 15px; border-bottom:1px solid #edf0eb; }
h3 { margin:0; font-size:12px; font-weight:500; }
.response header span { color:var(--muted); font-size:11px; }
.output { min-height:190px; max-height:600px; overflow:auto; padding:17px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.8; }
.response.running { box-shadow:0 0 0 2px #147a7212; }
footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px 24px; margin-top:24px; padding-top:16px; border-top:1px solid var(--line); color:var(--muted); font-size:11px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
@keyframes pulse { to { opacity:.35; } }
@media(max-width:1000px) { main { padding:0 24px 32px; } .workspace { grid-template-columns:300px minmax(0,1fr); gap:24px; } .responses { grid-template-columns:1fr; } }
@media(max-width:700px) { main { padding:0 16px 24px; } .model-toolbar { gap:10px; padding:22px 0; } #model { font-size:14px; } .workspace { grid-template-columns:1fr; gap:24px; } #steer-list { max-height:390px; } .prompt-footer { padding:12px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; } }
@media(max-width:640px) { .site-nav { gap:8px; font-size:11px; line-height:1.35; } .site-nav h1 { font-size:14px; } }
dialog { width:min(520px,calc(100% - 32px)); padding:24px; border:1px solid #dce2dc; border-radius:16px; background:#fafbf9; color:#232b26; box-shadow:0 20px 80px #0003; }
dialog::backdrop { background:#18241d66; backdrop-filter:blur(3px); }
.settings-heading,.settings-actions { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.settings-heading h2 { margin:0; font-size:20px; font-weight:600; }
.settings-heading button { font-size:26px; }
.settings-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 24px; margin:24px 0; }
.settings-grid label { display:flex; flex-direction:column; gap:7px; font-size:14px; min-width:0; }
.settings-grid input,.settings-grid select { width:100%; min-width:0; padding:10px 12px; border:1px solid #dce2dc; border-radius:8px; background:white; }
.settings-grid small { color:#78817b; font-size:11px; }
.settings-gear { font-size:23px; line-height:1; padding:6px 10px; }
.settings-gear.changed { color:#147e77; background:#e6efea; border-radius:8px; }
#settings-error { color:#a23f33; }
@media(max-width:400px) { .settings-grid { grid-template-columns:1fr; gap:14px; } }
