/* 方案 D · 午夜霓虹。保留原有布局，只让界面的层次、操作和状态换上新颜色。 */
:root {
  color-scheme: dark;
  --ink: #f3f6fd;
  --muted: #b5bfd2;
  --line: #3c475e;
  --blue: #79d2d4;
  --pale: #304450;
  --bg: #1b2233;
  --red: #ffb3a9;
  --green: #a7ddc1;
  --surface: #283247;
  --surface-hover: #303d52;
  --rose: #e697ae;
}

body {
  background: radial-gradient(ellipse 75% 50% at 88% -20%, #273d50 0%, transparent 75%), var(--bg);
}
button:focus-visible, a:focus-visible { outline-color: var(--blue); }
input:focus, textarea:focus, select:focus { outline-color: var(--blue); }
input, textarea, select {
  color: var(--ink);
  background: #212b3e;
  border-color: #4b5870;
}
input::placeholder, textarea::placeholder { color: #aeb9cb; opacity: 1; }
input[type=checkbox] { accent-color: var(--blue); }

.sidebar { background: #192436; }
.brand-icon, .primary, .mobile-nav .mobile-add {
  background: var(--blue);
  color: #12252d;
}
.primary { box-shadow: 0 5px 18px #06182338; }
.primary:hover { background: #a0e3e2; }
.capture-button kbd { background: #17383d2b; }
.sidebar nav button { color: #c2ccdb; }
.sidebar nav button:hover { background: #29384a; }
.sidebar nav button.active { background: #304450; color: #a5e7e6; }
.sidebar nav button[data-view=studio]:not(.active) .nav-symbol { color: var(--rose); }
.sidebar-bottom small, .nav-label { color: #a0abc0; }
.nav-count { color: #a5e7e6; }
.connection-dot.offline { background: #d6ac67; }

.topbar { color: #bdc7d7; }
.eyebrow { color: var(--rose); }
.quiet-button, .quick-form, .panel, .day, .inbox-prompt {
  background: var(--surface);
}
.quiet-button:hover { border-color: var(--blue); background: var(--surface-hover); }
.quick-form { border-color: #4b5870; box-shadow: 0 9px 28px #10182829; }
.quick-form:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #79d2d424; }
.quick-form input { background: transparent; }
.panel { box-shadow: 0 12px 30px #1118271c; }
.panel-heading, .task-row { border-bottom-color: var(--line); }
.task-row:hover { background: var(--surface-hover); }
.check-button { border-color: #a2aec1; }
.check-button.complete { background: #254740; border-color: #478475; color: #c2e9d6; }
.star-button { color: #a6b1c4; }
.star-button.selected { color: var(--rose); }
.tag { background: #3a465c; color: #d3dcee; }
.tag.create { background: #493d50; color: #f3cad8; }
.tag.life { background: #304b47; color: #c4e9d8; }
.tag.overdue { background: #563b46; color: #ffc4b9; }
.tag.focus { background: #304d54; color: #bce7e6; }
.project-jump { color: #a9e6e5; font-size: 12px; padding: 0; text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.project-jump:hover { color: #d2f7f1; }
.empty-icon { color: #a4dcdf; }
.empty strong, .rail-note strong { color: #d6e0ef; }
.focus-panel { border-top-color: var(--blue); }

.direction-card {
  background: #40364c;
  border: 1px solid #5c4966;
  box-shadow: inset 3px 0 0 var(--rose);
}
.direction-card::after {
  content: "";
  position: absolute;
  width: 135px;
  height: 135px;
  right: -60px;
  top: -76px;
  border: 1px solid #e697ae40;
  border-radius: 50%;
  pointer-events: none;
}
.direction-card .eyebrow, .direction-card button { color: #f0b7ca; }
.direction-card p { color: #ddc9db; }
.inbox-prompt { border-color: #687890; }
.segmented { background: #202b3e; }
.segmented button.active { background: #3b5160; color: #bef0ed; box-shadow: none; }
.day.current { border-color: var(--blue); background: #304450; }
.day small { color: #ade6e5; }
.project-next, .settings-card code { background: #202b3e; }
.notice, .studio-status { background: #4b4036; color: #f3dbb2; }
.danger { color: #ffb3a9; }

dialog { background: var(--surface); box-shadow: 0 30px 100px #050b16a8; }
dialog::backdrop { background: #080e1fc9; }
.dialog-head { background: var(--surface); }
.toast { background: #102a35; border: 1px solid #4a8189; color: var(--ink); }
.toast button { color: #b9ecea; }
.mobile-nav { background: #192436f2; }
.mobile-nav button.active { color: #a5e7e6; }
.mobile-nav .mobile-add { color: #12252d; }

/* 创作与日程共用的工作区 */
.creative-glance {
  padding: 20px 22px;
  margin-bottom: 22px;
  background: #243b46;
  border: 1px solid #42636b;
  border-radius: 16px;
}
.creative-glance .eyebrow { color: #a7e4e2; }
.creative-glance strong { display: block; font-size: 16px; font-weight: 600; }
.creative-glance p { color: #bfdae0; font-size: 13px; line-height: 1.7; margin: 10px 0; }
.creative-glance .text-button { padding-left: 0; }
.publish-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 13px 15px;
  margin: -4px 0 24px;
  border: 1px solid #70546c;
  border-radius: 12px;
  background: #3c344b;
}
.publish-strip strong { color: #f3cad8; font-size: 13px; margin-right: 6px; }
.publish-strip button { color: var(--ink); font-size: 13px; padding: 7px 10px; border-radius: 7px; background: #514059; }
.publish-strip button:hover { background: #604967; }
.publish-strip button span { color: #eeb1c6; }
.creative-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.creative-stats > div { min-width: 0; padding: 19px 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.creative-stats span { display: block; font-size: 12px; color: var(--muted); }
.creative-stats strong { display: block; margin-top: 12px; color: #a9e6e5; font: 30px Georgia, serif; }
.creative-stats .stat-date { font: 17px "PingFang SC", sans-serif; padding-top: 7px; }
.creative-layout { display: grid; grid-template-columns: minmax(290px, .8fr) minmax(0, 1.5fr); align-items: start; gap: 22px; }
.creative-ideas { overflow: visible; }
.idea-form { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.idea-form label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 9px; }
.idea-form textarea { display: block; width: 100%; }
.idea-form button { margin-top: 12px; }
.idea-item { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.idea-item:last-child { border-bottom: 0; }
.idea-item p { margin: 0 0 8px; line-height: 1.7; overflow-wrap: anywhere; }
.idea-item small { color: var(--muted); }
.idea-item > div { display: flex; gap: 12px; margin-top: 10px; }
.idea-item .text-button { padding-left: 0; }
.creative-empty { padding: 28px 22px; color: var(--muted); line-height: 1.8; font-size: 14px; }
.creative-section-head { display: flex; justify-content: space-between; align-items: end; margin: 2px 0 15px; }
.creative-section-head .eyebrow { margin-bottom: 7px; }
.creative-section-head > span { color: var(--muted); font-size: 12px; }
.creative-topic { padding: 20px 22px; margin-bottom: 13px; border-top: 2px solid #80cbcb; }
.creative-topic-top, .creative-topic footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.creative-date { color: #dfb9ca; font-size: 12px; }
.creative-topic h3 { margin: 14px 0 7px; font-size: 20px; line-height: 1.4; }
.creative-topic > p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.creative-next { display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; margin: 17px 0 14px; border-radius: 8px; background: #203a43; }
.creative-next small { flex: 0 0 auto; color: #afdfe0; }
.creative-next strong { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.creative-topic footer { color: var(--muted); font-size: 12px; }
.creative-archive { margin-top: 18px; color: var(--muted); font-size: 13px; }
.creative-archive summary { cursor: pointer; padding: 10px 0; }
.creative-archive .creative-topic { margin-top: 10px; }
.creative-progress { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.creative-progress > span:not(.tag) { color: #9daabd; font-size: 12px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px; }
.creative-progress > span.reached { color: #bbe8e5; border-color: #497c80; background: #24414b; }
.creative-project .form-panel { padding: 0 0 22px; }
.creative-project .form-panel .panel-heading { margin: 0 0 10px; }
.creative-project .form-panel form { padding: 0 24px; }
.creative-project .field textarea, .creative-project .field input, .creative-project .field select { width: 100%; }
.creative-form-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.creative-form-actions .form-note { max-width: 430px; }

@media (max-width: 1100px) {
  .creative-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .creative-stats { gap: 6px; }
  .creative-stats > div { padding: 13px 10px; }
  .creative-stats span { font-size: 11px; }
  .creative-stats strong { font-size: 23px; }
  .creative-stats .stat-date { font-size: 13px; }
  .creative-topic { padding: 18px; }
  .creative-project .form-panel form { padding: 0 19px; }
}
