:root {
  color-scheme: dark;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #eaf3fc;
  background: #080f1b;
  --muted: #a6b8cc;
  --accent: #6ce5dd;
  --border: #2b4056;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at 75% 7%, #113645 0, transparent 52%), #080f1b;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px clamp(16px, 5vw, 60px);
  border-bottom: 1px solid #26384a;
}
.brand { display: flex; gap: 10px; align-items: center; font-weight: 650; }
.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #558f99;
  border-radius: 10px;
  background: #16414b;
  color: var(--accent);
}
.divider { height: 17px; border-left: 1px solid #527089; }
main { width: min(100% - 32px, 1060px); margin: clamp(24px, 6vh, 64px) auto 54px; }
main.locked { max-width: 530px; margin-top: clamp(30px, 11vh, 104px); }
.card { padding: clamp(20px, 5vw, 34px); border: 1px solid var(--border); border-radius: 24px; background: #101d2d; box-shadow: 0 24px 70px #03070f99; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent); background: #173c46; }
h1 { margin: 18px 0 8px; font-size: clamp(24px, 6vw, 30px); line-height: 1.23; }
h2 { margin: 16px 0 8px; font-size: 22px; line-height: 1.3; }
.overview-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 22px; }
.overview-header h1 { margin: 0 0 7px; font-size: clamp(26px, 5vw, 36px); }
.overview-header p { color: var(--muted); margin: 0; line-height: 1.5; }
.overview-header button { flex: 0 0 auto; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.metric { border: 1px solid var(--border); border-radius: 18px; background: #102333; padding: clamp(14px, 3vw, 22px); }
.metric p { color: var(--muted); font-size: .9rem; margin: 0; }
.metric strong { display: block; font-size: clamp(30px, 6vw, 44px); line-height: 1.12; color: var(--accent); margin: 8px 0; font-variant-numeric: tabular-nums; }
.metric span, .note, .notice-length { font-size: .82rem; color: var(--muted); }
.note { margin: 12px 0 24px; line-height: 1.55; }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 18px; }
.notice-length { text-align: right; margin: 7px 0 0; }
.notice-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.notice-actions .secondary { padding: 0 13px; }
.hint { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }
label { display: block; font-size: .93rem; font-weight: 600; margin-bottom: 8px; }
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #091525;
  color: inherit;
  font: inherit;
}
textarea { resize: vertical; overflow-wrap: anywhere; }
button { cursor: pointer; font: inherit; font-weight: 650; border-radius: 10px; }
.primary, .secondary { display: block; width: 100%; min-height: 46px; border: 1px solid transparent; margin-top: 14px; }
.primary { color: #062427; background: var(--accent); }
.secondary, .quiet { color: var(--accent); background: #152939; border: 1px solid #365368; }
.quiet { min-height: 42px; padding: 6px 11px; }
:is(button, input, textarea, a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .66; }
.status { color: var(--muted); margin: 10px 0 0; line-height: 1.5; }
.status:empty { display: none; }
.status.error { color: #ffbbbe; }
.result { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 20px; }
.mono { font: 1rem/1.5 ui-monospace, Consolas, monospace; }
@media (max-width: 720px) {
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .overview-header { align-items: start; }
}
