:root {
  --bg: #0e1116; --panel: #171b22; --panel2: #1f242d; --line: #2c333f;
  --text: #e8ebf0; --dim: #97a0ae; --acc: #2f8cff; --acc2: #1f6fd6; --ok: #2fbf71; --warn: #ffb020; --bad: #ff5d5d;
  --glass: rgba(14, 17, 22, .68);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; border-radius: 10px; padding: 9px 14px; background: var(--panel2); }
button:hover { filter: brightness(1.15); }
button:disabled { opacity: .5; cursor: default; filter: none; }
button.pri { background: var(--acc); color: #fff; font-weight: 600; }
button.danger { background: transparent; color: var(--bad); }
button.ghost { background: transparent; border: 1px solid var(--line); }
input[type=text], input[type=password], select, textarea {
  width: 100%; background: #0b0e12; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
textarea { resize: vertical; min-height: 72px; }
label { display: block; font-size: 12.5px; color: var(--dim); margin: 10px 0 4px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 100;
  background: #000d; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .25s; max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; }
.spinner { width: 34px; height: 34px; border: 3px solid #fff3; border-top-color: #fff; border-radius: 50%;
  animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
