:root{
  --bg:#0b0f17;
  --panel:#111826;
  --panel-2:#0e1420;
  --border:#1f2937;
  --accent:#f2a33c;
  --text:#e8ecf3;
  --text-dim:#8a94a6;
  --input-bg:#0c1220;
  --bubble-me:#f2a33c;
  --bubble-me-text:#1a1206;
  --bubble-other:#1a2333;
  --bubble-other-text:#e8ecf3;
}
body[data-theme="light"]{
  --bg:#f4f5f8;
  --panel:#ffffff;
  --panel-2:#eef0f4;
  --border:#dde1e8;
  --accent:#e08a1e;
  --text:#1b2230;
  --text-dim:#69707f;
  --input-bg:#ffffff;
  --bubble-me:#e08a1e;
  --bubble-me-text:#241a0a;
  --bubble-other:#eef0f4;
  --bubble-other-text:#1b2230;
}
body[data-theme="eye"]{
  --bg:#dbe8d3;
  --panel:#e9f1e3;
  --panel-2:#e1ead9;
  --border:#c1d3b6;
  --accent:#b6712c;
  --text:#33402c;
  --text-dim:#6f7d63;
  --input-bg:#eef4e7;
  --bubble-me:#b6712c;
  --bubble-me-text:#fbf3e8;
  --bubble-other:#e1ead9;
  --bubble-other-text:#33402c;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Segoe UI',Arial,sans-serif;
  transition:background .2s, color .2s;
  -webkit-user-select:none;
  user-select:none;
}
input, textarea{
  -webkit-user-select:text;
  user-select:text;
}
a{color:inherit;}
input[type=text], input[type=password]{
  width:100%;
  background:var(--input-bg);
  border:1px solid var(--border);
  color:var(--text);
  padding:13px 14px;
  border-radius:8px;
  font-size:14px;
  outline:none;
  transition:border-color .15s;
}
input[type=text]:focus, input[type=password]:focus{border-color:var(--accent);}
input::placeholder{color:#4b5568;}

.btn{
  background:var(--accent);
  color:#1a1206;
  border:none;
  padding:13px 26px;
  border-radius:9px;
  font-weight:700;
  font-size:14.5px;
  cursor:pointer;
  letter-spacing:.3px;
  transition:filter .15s, transform .1s;
}
.btn:hover{filter:brightness(1.08);}
.btn:active{transform:scale(.98);}
.btn:disabled{opacity:.5;cursor:not-allowed;}
.btn.ghost{
  background:transparent;
  color:var(--text-dim);
  border:1px solid var(--border);
}

/* ---------- shared theme switch widget ---------- */
.theme-switch{
  display:flex;
  gap:4px;
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:999px;
  padding:4px;
}
.theme-btn{
  border:none;
  background:transparent;
  color:var(--text-dim);
  font-size:12px;
  font-weight:600;
  padding:7px 13px;
  border-radius:999px;
  cursor:pointer;
  transition:background .15s, color .15s;
}
.theme-btn.active{background:var(--accent);color:#1a1206;}

