:root{color-scheme:dark;--bg:#17121c;--panel:#231b28;--line:#493543;--text:#f0e6ed;--muted:#bba6b5;--accent:#d688a6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:15px/1.65 system-ui,"Microsoft YaHei",sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--line);border-radius:10px;padding:10px 16px;color:var(--text);background:#352736}button:disabled{opacity:.45;cursor:default}button:hover:not(:disabled){background:#503349}a{color:var(--accent)}input,textarea{width:100%;background:#18131c;color:var(--text);border:1px solid #614252;border-radius:9px;padding:11px;margin-top:6px}label{display:block;margin:16px 0}h1{line-height:1.3;font-size:32px;font-weight:600;margin:18px 0 6px}h2{font-size:17px;margin:0 0 12px}p{margin:8px 0}.entry{min-height:100dvh;display:grid;place-items:center;padding:28px 18px;background:radial-gradient(ellipse at 50% 0,#453040,var(--bg) 60%)}.card{max-width:520px;width:100%;padding:30px;border:1px solid var(--line);border-radius:20px;background:#211927ed}.eyebrow{letter-spacing:3px;color:var(--accent);font-size:11px}.lead{color:var(--muted)}.disclosure{margin:24px 0 16px;background:#17121c;padding:18px;border-radius:12px;border:1px solid var(--line);font-size:13px;color:#cebdca}.check{display:flex;align-items:flex-start;gap:10px;font-size:13px}.check input{width:19px;height:19px;flex-shrink:0;accent-color:var(--accent);margin-top:2px}.primary{background:#9f4264;border-color:#b25a7a}.primary:hover:not(:disabled){background:#b45c7d}#enter{width:100%;margin-bottom:5px}.small,.muted{font-size:12px;color:var(--muted)}.quiet{background:transparent;font-size:12px;margin-top:15px}#error,.error{color:#ffa7bd;white-space:pre-wrap}.admin-wrap{max-width:1250px;margin:auto;padding:30px 24px}.admin-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.admin-head h1{font-size:27px;margin-top:6px}.toolbar{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.toolbar input{width:200px;margin:0}.dashboard{display:grid;grid-template-columns:300px 1fr;gap:22px;margin-top:24px}.panel{background:var(--panel);padding:20px;border:1px solid var(--line);border-radius:16px;min-width:0}.tester{display:block;width:100%;text-align:left;margin-top:10px;overflow-wrap:anywhere}.tester.selected{border-color:var(--accent);background:#483044}.tester small{display:block;color:var(--muted)}.record{border-top:1px solid var(--line);padding:18px 0;overflow-wrap:anywhere}.record p{white-space:pre-wrap}.record time{font-size:11px;color:var(--muted)}.who{font-size:11px;letter-spacing:1px;color:var(--accent);margin-top:12px}.jp{color:var(--muted);font-size:13px}.feedback-line{border-left:3px solid var(--accent);padding-left:10px;color:#e6c5d5}.share{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #9f4264;background:#342130;padding:16px;border-radius:12px;margin-top:16px}.beta-notice{font-size:11px;color:#c5aabc;padding:7px 4px}.beta-actions{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}.beta-actions button{font-size:12px;padding:5px 9px}#feedbackBox textarea{min-height:100px}#feedbackBox label{display:block}.mobile-footer{padding-bottom:env(safe-area-inset-bottom)}[hidden]{display:none!important}@media(max-width:700px){.dashboard{grid-template-columns:1fr}.admin-wrap{padding:18px 12px}.admin-head{align-items:flex-start}.card{padding:23px}h1{font-size:28px}.toolbar input{width:100%}.portrait{height:36dvh!important;min-height:210px!important}.conversation{max-height:none!important;min-height:60dvh!important}.messages{max-height:35dvh!important}.beta-notice{font-size:10px}}
@media(max-width:700px){main:not(.card):not(.admin-wrap){height:100dvh!important;min-height:0!important;display:flex;flex-direction:column;gap:10px;overflow:hidden;padding:10px}.portrait{height:30dvh!important;min-height:160px!important;flex-shrink:0}.conversation{flex:1;min-height:0!important;max-height:none!important;padding:0 2px}.conversation h1{font-size:22px;margin:0}.conversation header{padding-bottom:8px}.messages{flex:1;min-height:60px!important;max-height:none!important;padding-top:10px}.message{margin-bottom:12px}.bubble{padding:10px 12px;line-height:1.65}.beta-notice{margin:5px 0;padding:3px 4px}.conversation form{padding:8px;flex-shrink:0}.conversation textarea{min-height:44px;height:50px;padding:2px 4px;margin:0}.input-actions{margin-top:4px}.audio-tools{margin-bottom:8px;flex-shrink:0}.settings{max-height:20dvh;overflow:auto;flex-shrink:0}.conversation footer{padding-top:5px;flex-shrink:0}.conversation .notice{max-height:45px;flex-shrink:0}}@media(max-width:700px) and (max-height:600px){.portrait{display:none}}

/* Per-reply character feedback. */
.message-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:7px}
.message-feedback button{padding:4px 10px;font-size:12px;background:transparent;color:#cab4c4;border-color:#624456}
.message-feedback button[aria-pressed=true]{background:#57334a;border-color:#da8bab;color:#fff0f7}
.feedback-saved{font-size:11px;color:#c3a8bb}.feedback-preview{padding:12px 14px;border-radius:12px;background:#17111d;border:1px solid #51364a;max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.feedback-preview p{margin:5px 0}.feedback-preview .who{font-size:11px}
#feedbackBox,#reviewBox{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:90dvh;overflow:auto;padding:24px;border:1px solid #795067;border-radius:18px;color:#f0e6ed;background:#251b2a}
#feedbackBox::backdrop,#reviewBox::backdrop{background:#09060bbf;backdrop-filter:blur(3px)}
#feedbackBox h2{font-size:20px;margin:0 0 8px}#feedbackBox form,#reviewBox form{margin:0;padding:0;border:0;background:transparent}
#feedbackBox textarea{display:block;min-height:70px;width:100%;margin:6px 0 12px}#feedbackBox label,#reviewBox label{margin:14px 0 4px;font-size:13px}
.feedback-rating,.feedback-reasons{margin:18px 0;padding:0;border:0}.feedback-rating legend,.feedback-reasons legend{font-size:13px;color:#d7bdce;margin-bottom:8px}
#feedbackBox .feedback-rating label,#feedbackReasons label{display:inline-flex;align-items:center;gap:7px;margin:3px 6px 3px 0;padding:7px 10px;border:1px solid #66465a;border-radius:10px}
#feedbackBox input[type=radio],#feedbackBox input[type=checkbox]{width:16px;height:16px;margin:0;accent-color:#db8aac;flex-shrink:0}
.feedback-actions{justify-content:flex-end;margin:14px 0 0;gap:10px}.feedback-actions button{padding:9px 16px;font-size:13px}
.feedback-panel{margin-top:16px;padding:14px;border-radius:12px;background:#302232;border:1px solid #644358}.feedback-heading{font-weight:600;color:#f1bed5}
.feedback-panel button{margin-top:8px;font-size:12px;padding:6px 12px}.feedback-context{font-size:12px;margin:10px 0;color:#cdb7c7}.feedback-context summary{cursor:pointer;color:#dfaec5}.feedback-context p{padding-left:12px;border-left:2px solid #614257}
.feedback-filter{margin:14px 0}.feedback-filter label{margin:0}.feedback-filter select,#reviewStatus{border:1px solid #795067;border-radius:9px;background:#1a131e;color:#f0e6ed;padding:8px 12px;font:inherit}
@media(max-width:700px){#feedbackBox,#reviewBox{padding:19px;max-height:90dvh}.message-feedback{gap:6px}.feedback-preview{max-height:150px}}
