/* 星语 全站主题：深紫 ↔ 米白（覆盖各页面 CSS 变量与常见组件） */
html[data-theme="cream"]{
  --bg:#faf6ef;
  --panel:rgba(255,255,255,.68);
  --line:rgba(70,55,110,.14);
  --text:#383940;
  --muted:#8a8a94;
  --blue:#6d28d9;
  --blue2:#7c3aed;
  --blue-soft:rgba(124,58,237,.10);
  --pink:#6d28d9;
  --cyan:#6d6ff0;
  --green:#059669;
  --green-soft:rgba(5,150,105,.12);
  --amber:#b45309;
  --amber-soft:rgba(180,83,9,.12);
  --red:#dc2626;
  --red-soft:rgba(220,38,38,.10);
  --brand-600:#6d28d9;--brand-500:#6d28d9;--brand-400:#7c3aed;--brand-300:#a78bfa;--brand-200:#6d28d9;
  --grad:#6d28d9;
  --text-on-brand:#fff;--text-strong:#3d3447;--text-soft:#8a8a94;
  --red-strong:#dc2626;--green-strong:#059669;--amber-strong:#b45309;
  --w-04:rgba(70,55,110,.04);--w-05:rgba(70,55,110,.05);--w-06:rgba(70,55,110,.06);
  --w-07:rgba(70,55,110,.07);--w-08:rgba(70,55,110,.08);--w-09:rgba(70,55,110,.09);
  --w-10:rgba(70,55,110,.10);--w-12:rgba(70,55,110,.12);--w-14:rgba(70,55,110,.14);
  --w-16:rgba(70,55,110,.16);--w-20:rgba(70,55,110,.20);--w-25:rgba(70,55,110,.25);
  --brand-a12:rgba(109,40,217,.12);--brand-a14:rgba(109,40,217,.14);--brand-a16:rgba(109,40,217,.16);
  --brand-a20:rgba(109,40,217,.20);--brand-a30:rgba(109,40,217,.30);--brand-a35:rgba(109,40,217,.35);
  --brand-a45:rgba(124,58,237,.45);--brand-a55:rgba(124,58,237,.55);
  --panel-overlay:#fffaf2;--panel-header:rgba(255,255,255,.72);
  --shadow-strong:rgba(80,60,120,.28);
  --shadow:0 1px 2px rgba(80,60,120,.08),0 12px 30px rgba(80,60,120,.10);
  --glow:0 6px 24px rgba(124,58,237,.20);
  --blue-strong:#7c3aed;--line-strong:rgba(70,55,110,.20);--shadow-sm:0 2px 10px rgba(80,60,120,.18);
  --theme-header-bg:rgba(255,255,255,.85);
  --theme-card-bg:rgba(255,255,255,.72);
  --theme-badge-bg:rgba(124,58,237,.10);
  --theme-input-bg:rgba(70,55,110,.06);
  --theme-input-border:rgba(70,55,110,.16);
}
html[data-theme="cream"] body{
  background-color:#faf6ef;
  
  color:#3d3447;
}
html[data-theme="cream"] header,
html[data-theme="cream"] header.top,
html[data-theme="cream"] nav.bottom,
html[data-theme="cream"] .header{background:var(--theme-header-bg);border-color:rgba(70,55,110,.14)}
html[data-theme="cream"] .chat-head,
html[data-theme="cream"] .chat-input-bar,
html[data-theme="cream"] .session-list-head,
html[data-theme="cream"] .role-list-view,
html[data-theme="cream"] .operation-area,
html[data-theme="cream"] .ops-menu,
html[data-theme="cream"] .sheet{background:rgba(255,255,255,.82);border-color:rgba(70,55,110,.14)}
html[data-theme="cream"] .chat-head .nm .name,
html[data-theme="cream"] .chat-input-bar textarea,
html[data-theme="cream"] .rl-head strong{color:#3d3447}
html[data-theme="cream"] .input-wrap,
html[data-theme="cream"] .plus-btn{background:rgba(255,255,255,.82);border-color:rgba(70,55,110,.14)}
html[data-theme="cream"] .chat-input-bar textarea{background:transparent;border-color:transparent}
html[data-theme="cream"] .msg.assistant .bub{color:#3d3447}
html[data-theme="cream"] .chat-gradient{background:linear-gradient(180deg,rgba(250,246,239,.76) 0%,rgba(250,246,239,.95) 70%)}
html[data-theme="cream"] .chat-bg{opacity:.08}
html[data-theme="cream"] .msg .bub .dlg{color:#6d28d9}
html[data-theme="cream"] .msg .bub .dlg-line{background:rgba(124,58,237,.10);border-color:rgba(124,58,237,.35);color:#3d3447}
html[data-theme="cream"] .msg.user .role{color:#6d28d9}
html[data-theme="cream"] .msg .bub .stream-caret::after{color:#6d28d9}
html[data-theme="cream"] .panel,
html[data-theme="cream"] .card,
html[data-theme="cream"] .featured,
html[data-theme="cream"] .session-item,
html[data-theme="cream"] .role-item{background:var(--theme-card-bg);border-color:rgba(70,55,110,.14);color:#3d3447;box-shadow:0 1px 2px rgba(80,60,120,.08),0 12px 30px rgba(80,60,120,.10)}
html[data-theme="cream"] input,
html[data-theme="cream"] textarea,
html[data-theme="cream"] select{background:var(--theme-input-bg);border-color:var(--theme-input-border);color:#3d3447}
html[data-theme="cream"] input::placeholder,
html[data-theme="cream"] textarea::placeholder{color:#9a9aa5}
html[data-theme="cream"] .dm-input{background:rgba(255,255,255,.82);border-color:rgba(70,55,110,.14);color:#3d3447}
html[data-theme="cream"] .dm-input:focus{background:rgba(255,255,255,.92);border-color:#7c3aed}
html[data-theme="cream"] .btn.secondary,
html[data-theme="cream"] .btn.ghost,
html[data-theme="cream"] .btn.small,
html[data-theme="cream"] .btn.danger{background:rgba(124,58,237,.08);color:#6d28d9;border-color:rgba(124,58,237,.25)}
html[data-theme="cream"] .badge{background:var(--theme-badge-bg);color:#6d28d9}
html[data-theme="cream"] .chip{background:rgba(124,58,237,.10);color:#6d28d9;border-color:rgba(124,58,237,.28)}
html[data-theme="cream"] .upload-box{background:rgba(124,58,237,.06);border-color:rgba(124,58,237,.28);color:#8a7f99}
html[data-theme="cream"] .upload-box strong{color:#3d3447}
html[data-theme="cream"] .cover-bottom{background:linear-gradient(0deg,rgba(80,60,120,.88) 0%,rgba(80,60,120,.45) 52%,transparent 100%)}
html[data-theme="cream"] .creator,.cover-top span{color:#efe9ff}
html[data-theme="cream"] .brand{background:none;color:#6d28d9}
html[data-theme="cream"] a{color:#7a7a88}
html[data-theme="cream"] code,html[data-theme="cream"] pre{color:#5b5b6a;background:rgba(70,55,110,.06);border-color:rgba(70,55,110,.12)}
html[data-theme="cream"] strong{color:#4f4f5c}
html[data-theme="cream"] .empty,.hint,.sub,.page-head p{color:#8a7f99}
html[data-theme="cream"] .status-line,.status,.details,.muted{color:#8a7f99}
html[data-theme="cream"] .tabs a{color:#71717c}
html[data-theme="cream"] .tabs a.active{color:#fff}
html[data-theme="cream"] .me-bubble{background:rgba(124,58,237,.08);color:#6d28d9;border-color:rgba(124,58,237,.22)}
html[data-theme="cream"] .dm-msg.them .bub{background:rgba(255,255,255,.85);color:#3d3447;border-color:rgba(70,55,110,.16)}
html[data-theme="cream"] .dm-msg .s{color:#9a9aa5}
html[data-theme="cream"] .modal{background:#fffaf2;border-color:rgba(70,55,110,.16)}
html[data-theme="cream"] .modal h3,.modal h4{color:#3d3447}
html[data-theme="cream"] .kv .block{background:rgba(124,58,237,.06);border-color:rgba(70,55,110,.12)}
html[data-theme="cream"] .kv .block pre{color:#5b4a76}
html[data-theme="cream"] pre{background:rgba(255,255,255,.75);border-color:rgba(70,55,110,.16);color:#4a3f5f}
html[data-theme="cream"] .login-box{background:rgba(255,255,255,.8)}
html[data-theme="cream"] nav.bottom button{color:#8a7f99}
html[data-theme="cream"] nav.bottom button.active{color:#6d28d9}
