:root {
  --bg: #dedede;
  --ink: #30273c;
  --muted: #665c70;
  --line: #e5e1e9;
  --green: #7953b1;
  --cream: #f2edf8;
  --white: #fff;
  --accent: #dacbe9;
  --success: #257c65;
  --warning: #926209;
  --gold: #ffc209;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(
      ellipse 680px 340px at 92% -8%,
      #ffffffd9 0%,
      #ffffff45 35%,
      transparent 72%
    ),
    linear-gradient(
      122deg,
      transparent 16%,
      #ffffff08 28%,
      #ffffff66 34%,
      #ffffff15 41%,
      transparent 51%
    ),
    radial-gradient(
      ellipse 780px 430px at 83% 8%,
      #a781d633 0%,
      #b9a2ce0d 46%,
      transparent 72%
    ),
    radial-gradient(
      ellipse 480px 260px at 31% 91%,
      #eac7741a 0%,
      transparent 70%
    );
  background-attachment: fixed;
  color: var(--ink);
  font:
    14px/1.65 "PingFang SC",
    "Noto Sans CJK SC",
    "Microsoft YaHei",
    "Helvetica Neue",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 13px;
  background: var(--white);
  color: var(--ink);
  line-height: 1.45;
  transition:
    background 0.14s,
    border-color 0.14s;
}
button:hover {
  background: #f5f1fa;
  border-color: #c9b5dd;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  background: var(--green);
  border-color: var(--green);
  color: white;
  font-weight: 600;
}
button.primary:hover {
  background: #674198;
}
button.active {
  background: var(--cream);
  border-color: #dacbe9;
  color: var(--green);
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #bda1dd;
  outline-offset: 3px;
}
#workspace {
  position: relative;
  min-height: 100vh;
}
header {
  position: absolute;
  inset: 0 auto 0 0;
  width: 180px;
  padding: 38px 20px;
  background: #7953b1;
  border-right: 0;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  text-decoration: none;
}
.brand-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 20px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}
.brand-name small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
}
nav button {
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  padding: 11px 13px;
}
nav button span {
  margin-right: 7px;
  font-size: 17px;
}
nav button.active {
  background: #ffffff17;
  border-color: #ffffff25;
  color: white;
  box-shadow: inset 3px 0 var(--gold);
}
#logout {
  margin-top: 20px;
  font-size: 12px;
}
.rail-note {
  margin-top: auto;
  padding: 20px 4px 6px;
  border-top: 1px solid #ffffff25;
  font-size: 11px;
  color: #f0e8f8;
}
.rail-note span,
.rail-note strong {
  font-weight: 500;
  color: #ffc209;
  margin-top: 5px;
}
.rail-note strong {
  font-weight: 500;
  color: #736181;
  margin-top: 4px;
}
main {
  max-width: 1360px;
  margin-left: 180px;
  padding: 40px clamp(24px, 4vw, 64px) 24px;
}
h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  margin: 0 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  font-weight: 650;
  line-height: 1.6;
  margin: 0 0 6px;
}
p {
  margin: 6px 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 23px;
}
.intro > .primary {
  padding: 12px 20px;
  background: var(--gold);
  border-color: var(--gold);
  color: #3e2c18;
  box-shadow: 0 4px 12px #8c702018;
}
#date-caption {
  font-size: 12px;
  letter-spacing: 0.15px;
}
.stats {
  display: flex;
  gap: 32px;
  margin-bottom: 23px;
  padding: 0 0 20px;
  border: 0;
}
.stats > div {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.stats span {
  font-size: 12px;
  color: var(--muted);
}
.stats strong {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#completed {
  color: var(--success);
}
#postponed {
  color: var(--warning);
}
.toolbar,
.filters,
.view-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.filters {
  flex-wrap: wrap;
}
.filters button {
  font-size: 12px;
}
.date-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0;
  margin: 0;
}
.date-label input {
  width: 143px;
  font-size: 12px;
  padding: 7px;
  margin: 0;
  background: white;
}
.date-step {
  width: 30px;
  height: 34px;
  font-size: 22px !important;
  padding: 0;
  flex-shrink: 0;
}
.view-switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  background: #efe9f5;
  border-radius: 8px;
}
.view-switch button {
  border: 0;
  background: transparent;
  font-size: 12px;
  padding: 5px 11px;
}
.view-switch button.active {
  background: white;
  color: var(--green);
}
#sync-btn {
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  color: var(--muted);
  padding: 7px;
}
.sync-caption {
  margin: 10px 0;
  color: var(--muted);
  font-size: 11px;
}
.manual-push-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 0 17px;
}
.manual-push-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.manual-push-actions button {
  font-size: 11px;
  padding: 5px 10px;
  background: transparent;
  border-color: #d9cfe5;
}
#push-date-caption {
  font-size: 11px;
}
.task-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  padding: 23px 0;
  scroll-margin-top: 24px;
  position: relative;
}
.task-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.task-time {
  min-width: 78px;
  border-right: 1px solid var(--line);
  padding: 3px 18px 7px 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #7953b1;
}
.task-time small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 1px;
}
.task-title {
  flex: 1;
  min-width: 0;
}
.task-title h2 {
  font-size: 16px;
  overflow-wrap: anywhere;
  margin: 0;
  line-height: 1.65;
}
.tag {
  font-size: 10px;
  line-height: 1.6;
  white-space: nowrap;
  border-radius: 4px;
  padding: 3px 8px;
  background: #f2eff5;
  color: #74667f;
  margin-top: 4px;
}
.tag.completed {
  background: #e8f4ee;
  color: var(--success);
}
.tag.postponed {
  background: #fff2dc;
  color: var(--warning);
}
.tag.cancelled,
.tag.deleted {
  background: #f0eef2;
  color: #73667c;
}
.status-completed .task-time {
  color: var(--success);
}
.status-postponed .task-time {
  color: var(--warning);
}
.source {
  font-size: 11px;
  color: var(--muted);
}
.description {
  white-space: pre-wrap;
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin: 11px 0 4px 96px;
}
.task-card a.source {
  display: block;
  margin: 8px 0 0 96px;
  color: var(--green);
  text-underline-offset: 3px;
}
.task-edit {
  display: grid;
  grid-template-columns: 132px 1fr auto;
  gap: 12px;
  align-items: end;
  margin: 15px 0 0 96px;
  border-top: 1px solid #efebf3;
  padding-top: 12px;
}
.task-edit label {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.task-edit textarea {
  min-height: 37px;
  resize: vertical;
}
.task-edit input,
.task-edit textarea,
.task-edit select {
  margin-top: 4px;
  padding: 7px 10px;
  font-size: 12px;
  background: #f7f5f9;
}
.save-task {
  font-size: 12px;
  padding: 8px 16px;
  background: #f5f0fc;
  color: var(--green);
  border-color: #dfd1ef;
}
.new-start {
  grid-column: 1/-1;
}
.edit-task-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #8b719d;
  font-size: 18px;
  line-height: 1;
  vertical-align: middle;
  border-radius: 5px;
}
.edit-task-info:hover {
  background: var(--cream);
  color: var(--green);
}
.task-attributes {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin-top: 5px;
  padding-bottom: 2px;
}
.attribute-tag {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.8;
  white-space: nowrap;
}
.attribute-feishu {
  color: #3868b0;
  background: #edf3fe;
}
.attribute-manual {
  color: #377761;
  background: #edf7f0;
}
.attribute-repeat {
  color: #76529c;
  background: #f3edfb;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.attribute-postponed {
  color: var(--warning);
  background: #fff2dc;
}
.attribute-imported {
  color: #6b7787;
  background: #f2eff5;
}
.summary {
  padding: 23px 25px;
  border: 1px solid #d8d0e1;
  border-left: 4px solid var(--gold);
  background: #f8f5fc;
  border-radius: 13px;
  margin-top: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.summary h2 {
  font-size: 17px;
}
.summary p {
  font-size: 12px;
  max-width: 65ch;
}
.summary > .primary {
  white-space: nowrap;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  background: #f7f5f9;
  border: 1px dashed #d5ccdf;
  border-radius: 9px;
}
.empty h2 {
  font-size: 20px;
}
.empty p {
  font-size: 13px;
}
footer {
  margin-left: 180px;
  padding: 18px 30px;
  text-align: center;
  font-size: 10px;
  color: #665c70;
}
.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
  overflow-x: auto;
  padding: 2px 0 12px;
}
.week-day {
  min-width: 0;
  padding: 6px;
  background: #e8e3ed;
  border-radius: 8px;
  border: 1px solid transparent;
}
.week-day.is-today {
  border-color: #bca2d5;
  background: #f0e8fa;
}
.week-heading {
  width: 100%;
  padding: 8px 4px 10px;
  border: 0;
  border-radius: 0;
  font-size: 11px;
  text-align: left;
  font-weight: 650;
  background: transparent;
  color: #6c577f;
}
.is-today .week-heading {
  color: var(--green);
}
.week-empty {
  padding: 20px 2px;
  color: #7a6c86;
  font-size: 10px;
  text-align: center;
}
.week-day .week-card {
  padding: 0;
  margin: 5px 0 8px;
  border: 1px solid #e3dce9;
  border-left: 2px solid #a593b5;
  border-radius: 5px;
  overflow: hidden;
}
.week-task-link {
  display: block;
  padding: 10px 8px;
  color: var(--ink);
  text-decoration: none;
}
.week-task-link:hover {
  background: #f8f4fd;
}
.week-task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}
.week-task-time {
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #7953b1;
}
.week-task-status {
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
}
.week-task-title {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.week-card.status-completed {
  border-left-color: #399c7f;
}
.week-card.status-postponed {
  border-left-color: #d5a346;
}
.week-card.status-cancelled,
.week-card.status-deleted {
  border-left-color: #a2acb9;
  opacity: 0.7;
}
.week-card .task-attributes {
  gap: 3px;
  margin-top: 6px;
}
.week-card .attribute-tag {
  font-size: 9px;
  padding: 0 4px;
}
.week-card .attribute-repeat {
  max-width: 90px;
}
.week-task-repeat {
  font-size: 9px;
  color: var(--muted);
}
#settings-page {
  max-width: 1120px;
}
.setting-card {
  background: white;
  border: 1px solid var(--line);
  padding: 27px 29px;
  border-radius: 14px;
  margin: 18px 0;
}
.setting-card h2 {
  font-size: 18px;
}
.setting-card p {
  font-size: 12px;
  max-width: 75ch;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 18px 0;
}
.calendar-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
}
.calendar-option input {
  width: auto;
}
.message-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f6;
  font-size: 11px;
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 36px 34px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.login .brand {
  margin-bottom: 40px;
}
.login h1 {
  font-size: 27px;
  letter-spacing: -0.6px;
}
.login p {
  font-size: 13px;
}
.login form {
  margin-top: 24px;
}
.login button {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
}
.login label {
  font-size: 12px;
}
label {
  display: block;
  margin: 14px 0;
  font-size: 12px;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  border: 1px solid #e0d8e9;
  padding: 9px 12px;
  border-radius: 6px;
  background: #fcfbfe;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.5;
}
textarea {
  resize: vertical;
}
input[type="checkbox"] {
  accent-color: var(--green);
}
input:focus,
textarea:focus,
select:focus {
  border-color: #a889c8;
}
dialog {
  width: min(94vw, 510px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  border: 1px solid #e2d8ec;
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 22px 80px #182b4640;
}
dialog::backdrop {
  background: #1a2d4b66;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.dialog-heading h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-heading button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: #f3eff7;
  color: var(--muted);
}
#new-form > button.primary,
#edit-form > button.primary {
  width: 100%;
  margin-top: 8px;
  padding: 11px;
}
.natural-task {
  padding: 13px 14px;
  margin-bottom: 16px;
  background: #f4eefb;
  border: 1px solid #decfeb;
  border-radius: 9px;
}
.natural-task label {
  margin: 0 0 10px;
  color: #68448e;
}
.natural-task textarea {
  background: white;
  font-size: 12px;
}
.natural-task button {
  font-size: 12px;
  color: var(--green);
  border-color: #dccdeb;
}
.natural-task p {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
}
.weekday-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
}
.weekday-options label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 3px 0;
  font-size: 12px;
}
.weekday-options input {
  width: auto;
  margin: 0;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 12px 0;
  padding: 10px;
}
legend {
  font-size: 11px;
  color: var(--muted);
}
#toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  background: #30273c;
  color: white;
  padding: 11px 19px;
  border-radius: 8px;
  max-width: 90%;
  font-size: 13px;
  box-shadow: 0 5px 24px #16305425;
  display: none;
}
#toast.show {
  display: block;
}
[hidden] {
  display: none !important;
}

header .rail-note span {
  display: block;
  color: #f0e8f8;
}
header .rail-note strong {
  display: block;
  color: #ffc209;
  font-weight: 500;
  margin-top: 5px;
}
header .brand {
  color: white;
}
header .brand-mark path {
  stroke: #7953b1;
}
header .brand-name small {
  color: #f0e8f8;
}
header nav button,
header #logout {
  color: #f0e8f8;
}
header nav button:hover {
  background: #ffffff10;
  border-color: #ffffff20;
}
.intro > .primary:hover {
  background: #f4ba00;
  border-color: #f4ba00;
}
h1 {
  font-size: 39px;
  letter-spacing: -1.3px;
}
.planner-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 12px;
  padding: 17px 21px 15px;
  margin-bottom: 20px;
  background: #f7f5f9;
  border: 1px solid #d5cbdf;
  border-radius: 13px;
}
.planner-controls .toolbar {
  grid-column: 1/-1;
}
.planner-controls .sync-caption {
  margin: 0;
  align-self: center;
  font-size: 10px;
}
.planner-controls .manual-push-panel {
  margin: 0;
  padding: 0;
  gap: 0;
  justify-content: flex-end;
}
.planner-controls #push-date-caption {
  display: none;
}
#task-list:not(.week-grid) {
  background: white;
  border: 1px solid #e3dce9;
  border-radius: 15px;
  padding: 3px 25px;
}
#task-list:not(.week-grid) > .task-card:last-child {
  border-bottom: 0;
}
#task-list:not(.week-grid) > .empty {
  border: 0;
  background: white;
}
.tag.pending {
  background: #f1ebfa;
  color: #7650a8;
}
.task-time {
  align-self: stretch;
}
.task-edit {
  border-top: 0;
  padding-top: 5px;
}
.task-edit input,
.task-edit textarea,
.task-edit select {
  background: #fbf9fd;
}
.task-title h2 {
  font-weight: 650;
  font-size: 17px;
}
.week-day .week-card {
  background: white;
}
.week-day {
  border-radius: 10px;
}
.week-heading {
  border-bottom: 1px solid #d7ccdf;
  margin-bottom: 8px;
}
.week-card.status-pending {
  border-left-color: #7953b1;
}
.week-day.is-today .week-heading {
  box-shadow: inset 0 -2px #ffc209;
}
#new-form > button.primary,
#edit-form > button.primary {
  background: #ffc209;
  color: #3e2c18;
  border-color: #ffc209;
}
.login {
  border: 0;
  border-top: 5px solid #7953b1;
  box-shadow: 0 10px 40px #42304b12;
}

@media (min-width: 1500px) {
  main {
    margin-left: 180px;
    margin-right: auto;
    max-width: 1500px;
  }
  .week-grid {
    gap: 10px;
  }
  .week-task-link {
    padding: 13px 11px;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  header {
    width: 150px;
    padding: 32px 14px;
  }
  main {
    margin-left: 150px;
    padding: 32px 24px;
  }
  footer {
    margin-left: 150px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-mark {
    width: 30px;
  }
  .week-grid {
    grid-template-columns: repeat(7, minmax(115px, 1fr));
  }
  .toolbar {
    align-items: flex-start;
  }
  .view-actions {
    width: 100%;
    justify-content: space-between;
  }
}
@media (max-width: 760px) {
  header {
    position: static;
    width: auto;
    padding: 16px 18px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: #7953b1;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  .brand-name {
    font-size: 20px;
  }
  .brand-name small {
    font-size: 9px;
    margin-top: 3px;
  }
  nav {
    flex-direction: row;
    gap: 3px;
    margin: 0;
  }
  nav button {
    padding: 7px 9px;
    font-size: 11px;
  }
  nav button span {
    display: none;
  }
  #logout {
    margin: 0;
    font-size: 11px;
  }
  .rail-note {
    display: none;
  }
  main {
    margin: 0;
    padding: 27px 18px 18px;
  }
  h1 {
    font-size: 31px;
  }
  .intro {
    margin-bottom: 20px;
  }
  .intro > .primary {
    padding: 9px 12px;
    font-size: 12px;
  }
  .stats {
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 22px;
  }
  .stats > div {
    gap: 6px;
  }
  .stats span {
    font-size: 10px;
  }
  .stats strong {
    font-size: 19px;
  }
  .toolbar {
    gap: 10px;
  }
  .filters {
    gap: 5px;
  }
  .filters button {
    padding: 7px 9px;
    font-size: 11px;
  }
  .filters .date-step {
    padding: 0;
    width: 26px;
  }
  .date-label input {
    width: 131px;
    font-size: 11px;
  }
  .view-actions {
    width: 100%;
    justify-content: space-between;
  }
  .manual-push-panel {
    padding: 4px 0 14px;
  }
  .manual-push-actions {
    gap: 6px;
  }
  .manual-push-actions button {
    font-size: 10px;
    padding: 5px 8px;
  }
  .task-card {
    padding: 19px 0;
    border-radius: 0;
  }
  .task-heading {
    gap: 10px;
  }
  .task-time {
    font-size: 19px;
    min-width: 60px;
    padding-right: 10px;
    letter-spacing: -0.5px;
  }
  .task-title h2 {
    font-size: 14px;
    line-height: 1.6;
  }
  .tag {
    font-size: 9px;
    padding: 2px 5px;
  }
  .description,
  .task-card a.source {
    margin-left: 70px;
    font-size: 11px;
  }
  .task-edit {
    margin-left: 0;
    grid-template-columns: 110px 1fr;
    gap: 10px;
  }
  .task-edit .note-label {
    grid-column: 1/-1;
  }
  .task-edit .save-task {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    padding: 7px 17px;
  }
  .summary {
    align-items: flex-start;
    padding-top: 20px;
    gap: 13px;
  }
  .summary h2 {
    font-size: 16px;
  }
  .summary p {
    font-size: 11px;
  }
  .summary > .primary {
    font-size: 11px;
    padding: 9px 10px;
  }
  .summary #draft-caption {
    font-size: 10px;
  }
  .week-grid {
    grid-template-columns: 1fr;
    gap: 11px;
    overflow: visible;
  }
  .week-day {
    padding: 9px 10px;
  }
  .week-heading {
    font-size: 12px;
    padding: 5px 3px 9px;
  }
  .week-day .week-card {
    margin: 4px 0 7px;
  }
  .week-task-link {
    padding: 10px 12px;
  }
  .week-task-title {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
  .week-task-meta {
    justify-content: flex-start;
    gap: 12px;
  }
  .week-task-status {
    font-size: 10px;
  }
  .week-card .task-attributes {
    gap: 5px;
  }
  .week-card .attribute-repeat {
    max-width: 190px;
  }
  .week-empty {
    text-align: left;
    padding: 8px 3px;
  }
  .setting-card {
    padding: 20px;
  }
  .setting-card .actions button {
    font-size: 11px;
    padding: 8px 10px;
  }
  footer {
    margin: 0;
    padding: 17px;
    font-size: 10px;
  }
  .login {
    margin: 7vh 18px;
    max-width: 430px;
    padding: 29px 26px;
  }
  .login .brand {
    margin-bottom: 30px;
  }
  dialog {
    padding: 21px;
    max-height: 88vh;
  }
  .empty {
    padding: 45px 15px;
  }
}
@media (max-width: 390px) {
  header {
    padding: 14px 12px;
  }
  .brand-name small {
    display: none;
  }
  nav button {
    padding: 7px 6px;
  }
  main {
    padding: 24px 12px 15px;
  }
  .filters {
    gap: 4px;
  }
  .date-label input {
    width: 122px;
  }
  .stats > div {
    gap: 4px;
  }
  .stats span {
    font-size: 9px;
  }
  .tag {
    font-size: 8px;
  }
  .summary {
    flex-direction: column;
  }
  .summary > .primary {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1100px) and (min-width: 761px) {
  .planner-controls {
    grid-template-columns: 1fr;
  }
  .planner-controls .manual-push-panel {
    justify-content: flex-start;
  }
  .planner-controls .sync-caption {
    display: none;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 32px;
  }
  .stats {
    padding: 0;
    margin-bottom: 21px;
  }
  .intro {
    margin-bottom: 20px;
  }
  .planner-controls {
    grid-template-columns: 1fr;
    gap: 11px;
    padding: 13px 12px;
    margin-bottom: 16px;
    border-radius: 11px;
  }
  .planner-controls .manual-push-panel {
    justify-content: flex-start;
  }
  .planner-controls .sync-caption {
    font-size: 10px;
    order: 3;
  }
  .planner-controls .manual-push-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .planner-controls .manual-push-actions button {
    padding: 7px 6px;
  }
  .filters {
    gap: 4px;
  }
  .filters button {
    padding: 7px 7px;
  }
  .date-label input {
    width: 120px;
  }
  #task-list:not(.week-grid) {
    padding: 1px 14px;
    border-radius: 13px;
  }
  .task-title h2 {
    font-size: 14px;
  }
  .task-time {
    min-width: 58px;
    font-size: 20px;
    padding-right: 10px;
  }
  .description,
  .task-card a.source {
    margin-left: 68px;
  }
  .task-edit {
    margin-left: 0;
    padding-top: 9px;
  }
  .summary {
    padding: 20px 17px;
    border-left-width: 3px;
  }
  .week-grid {
    padding: 0;
  }
  .week-heading {
    padding-bottom: 9px;
  }
}
@media (max-width: 390px) {
  .filters {
    gap: 3px;
  }
  .date-label input {
    width: 112px;
  }
  .filters .date-step {
    width: 24px;
  }
  #task-list:not(.week-grid) {
    padding: 1px 11px;
  }
  .intro > .primary {
    padding: 9px 11px;
  }
}

.settings-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #c8bdd3;
  margin-top: 30px;
  padding: 23px 3px 10px;
}
.settings-account #logout {
  margin: 0;
  padding: 9px 18px;
  font-size: 12px;
  color: #69419a;
  background: #f8f4fd;
  border-color: #d4c2e5;
}
.settings-account #logout:hover {
  background: #eee4f9;
  border-color: #aa88cd;
}
header {
  background-image:
    linear-gradient(
      162deg,
      #c6a2f133 0%,
      transparent 24%,
      #46216a1c 66%,
      #bb99dd10 100%
    ),
    radial-gradient(
      ellipse 170px 400px at 0% 12%,
      #e8d9ff24 0%,
      transparent 70%
    );
}
.planner-controls,
.summary {
  background-color: #faf8fce8;
  border-top-color: #ffffffdc;
  box-shadow:
    inset 0 1px 0 #ffffffc9,
    0 1px 2px #42285007,
    0 12px 32px #42285008;
}
#task-list:not(.week-grid) {
  box-shadow:
    0 1px 2px #30203805,
    0 16px 45px #30203809;
}
@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }
  .settings-account {
    padding-top: 20px;
    margin-top: 24px;
  }
}

.intro > .primary {
  background-image: linear-gradient(145deg, #fff5 0%, transparent 48%);
  box-shadow:
    inset 0 1px 0 #fff8,
    0 5px 16px #9b702018;
}
header nav button.active {
  background-image: linear-gradient(115deg, #ffffff12, transparent);
  border-top-color: #ffffff36;
}

@media (min-width: 761px) {
  body:has(#workspace:not([hidden])) {
    overflow: hidden;
  }
  #workspace {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  #workspace > header {
    position: relative;
    inset: auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #c9b0e4 transparent;
  }
  #workspace > header > * {
    flex-shrink: 0;
  }
  .workspace-content {
    min-width: 0;
    min-height: 0;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #b9a6cc transparent;
  }
  .workspace-content > main {
    margin-left: 0;
    max-width: 1500px;
  }
  .workspace-content > footer {
    margin-left: 0;
  }
}
@media (min-width: 761px) and (max-width: 1100px) {
  #workspace {
    grid-template-columns: 150px minmax(0, 1fr);
  }
}

/* 梦幻手游：一张连续的运行状态表，当前配置以金色定位。 */
.menghuan-panel {
  background: #fff;
  border: 1px solid rgba(121, 83, 177, 0.12);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(61, 41, 89, 0.05);
}
.menghuan-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.menghuan-toolbar label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.menghuan-toolbar select {
  width: auto;
  max-width: 300px;
  margin: 0;
}
.menghuan-toolbar p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}
.menghuan-table-scroll {
  overflow-x: auto;
}
.menghuan-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 780px;
  table-layout: fixed;
  text-align: left;
  font-size: 14px;
}
.menghuan-table th {
  background: #f6f3fa;
  color: #6d568e;
  font-size: 12px;
  font-weight: 600;
  padding: 16px 20px;
  white-space: nowrap;
}
.menghuan-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eeeaf2;
  vertical-align: middle;
  overflow-wrap: anywhere;
  max-width: 380px;
}
.menghuan-table tr:last-child td {
  border-bottom: 0;
}
.menghuan-table td:first-child {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.menghuan-table td:nth-child(4) {
  color: #936806;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.menghuan-table tbody tr:hover {
  background: #fcfaff;
}
.menghuan-configs {
  line-height: 2.6;
}
.config-item {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
  vertical-align: middle;
  white-space: nowrap;
}
.config-active {
  font-weight: 650;
  box-shadow: inset 0 -2px 0 rgba(50, 40, 65, 0.18);
}
.menghuan-table th:nth-child(4),
.menghuan-table td:nth-child(4) {
  text-align: right;
  padding-right: 24px;
}
.menghuan-table th:nth-child(5),
.menghuan-table td:nth-child(5) {
  padding-left: 24px;
}
.config-color-0 {
  background: #f0e8fa;
  color: #7953b1;
}
.config-color-1 {
  background: #e6f5ee;
  color: #287659;
}
.config-color-2 {
  background: #e9f0fc;
  color: #4267a2;
}
.config-color-3 {
  background: #fff0bc;
  color: #715008;
}
.config-color-4 {
  background: #fbe9ef;
  color: #a64b70;
}
.config-color-5 {
  background: #e4f3f4;
  color: #287981;
}
.config-arrow {
  color: #b5a9c5;
  margin: 0 5px;
}
.menghuan-status {
  display: inline-block;
  font-size: 12px;
  line-height: 1.6;
  padding: 5px 9px;
  border-radius: 6px;
  background: #f0edf4;
  color: #756582;
}
.menghuan-status + .menghuan-status {
  margin-left: 6px;
}
.menghuan-status.is-running {
  background: #f0e8fa;
  color: #7953b1;
}
.menghuan-status.is-completed {
  background: #e6f5ee;
  color: #287659;
}
.menghuan-empty {
  padding: 50px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 760px) {
  header {
    flex-wrap: wrap;
    gap: 12px;
  }
  header nav {
    flex-wrap: wrap;
  }
  .menghuan-toolbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
    gap: 10px;
  }
  .menghuan-toolbar select {
    max-width: 230px;
  }
  .menghuan-table td {
    padding: 18px 16px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.menghuan-table .column-index {
  width: 64px;
}
.menghuan-table .column-device {
  width: 92px;
}
.menghuan-table .column-nickname {
  width: 140px;
}
.menghuan-table .column-gold {
  width: 100px;
}
.menghuan-table .column-status {
  width: 180px;
}
/* 手机端：每个角色作为完整记录纵向阅读。 */
@media (max-width: 760px) {
  .menghuan-table-scroll {
    overflow: visible;
  }
  .menghuan-table {
    display: block;
    min-width: 0;
    width: 100%;
    table-layout: auto;
  }
  .menghuan-table colgroup {
    display: none;
  }
  .menghuan-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .menghuan-table tbody {
    display: block;
  }
  .menghuan-table tbody tr {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    gap: 14px 8px;
    padding: 20px 16px;
    border-bottom: 1px solid #eeeaf2;
    align-items: center;
  }
  .menghuan-table tbody tr:last-child {
    border-bottom: 0;
  }
  .menghuan-table tbody tr > td:nth-child(n) {
    display: block;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    text-align: left;
    overflow-wrap: anywhere;
  }
  .menghuan-table tbody tr > td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    font-size: 11px;
    color: #a39aac;
  }
  .menghuan-table tbody tr > td:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;
  }
  .menghuan-table tbody tr > td:nth-child(6) {
    grid-column: 3;
    grid-row: 1;
  }
  .menghuan-table tbody tr > td:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 12px;
    color: #665b75;
  }
  .menghuan-table tbody tr > td:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
    font-size: 13px;
    white-space: normal;
    text-align: right;
  }
  .menghuan-table tbody tr > td:nth-child(2)::before {
    content: "设备 ";
    color: #958a9f;
    margin-right: 4px;
    font-size: 11px;
  }
  .menghuan-table tbody tr > td:nth-child(4)::before {
    content: "金币 ";
    color: #958a9f;
    margin-right: 4px;
    font-size: 11px;
    font-weight: 400;
  }
  .menghuan-table tbody tr > td:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
  }
  .menghuan-table .config-item {
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    font-size: 11px;
    padding: 4px 9px;
  }
  .menghuan-table .config-arrow {
    display: none;
  }
  .menghuan-table .menghuan-status {
    white-space: nowrap;
    font-size: 11px;
    padding: 4px 8px;
  }
}
.menghuan-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.menghuan-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}
.menghuan-controls select {
  width: 110px;
  margin: 0;
  padding: 7px 10px;
}
.menghuan-controls button {
  padding: 7px 10px;
  font-size: 12px;
}
#menghuan-reset {
  margin-left: auto;
}
.menghuan-filters {
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
}
.menghuan-filters summary {
  cursor: pointer;
  font-size: 12px;
  color: #7953b1;
}
.menghuan-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 20px;
  padding-top: 16px;
}
.menghuan-filter-grid label {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
}
.menghuan-filter-grid input,
.menghuan-filter-grid select {
  margin-top: 6px;
  font-size: 12px;
  padding: 8px 10px;
  min-width: 0;
  width: 100%;
}
.menghuan-filter-grid fieldset {
  padding: 0;
  border: 0;
  margin: 0;
  min-width: 0;
}
.menghuan-filter-grid legend {
  font-size: 12px;
  color: var(--muted);
  padding: 0;
}
.menghuan-filter-grid fieldset div {
  display: flex;
  align-items: center;
  gap: 6px;
}
.menghuan-filter-grid fieldset span {
  font-size: 11px;
  color: var(--muted);
}
.menghuan-sort-heading {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  white-space: nowrap;
  box-shadow: none;
}
.menghuan-sort-heading:hover {
  background: transparent;
  color: #7953b1;
}
@media (max-width: 760px) {
  .menghuan-controls {
    padding: 12px 16px;
    gap: 8px;
  }
  .menghuan-filters {
    padding: 12px 16px;
  }
  .menghuan-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  #menghuan-count {
    width: 100%;
    order: 3;
  }
  .menghuan-table thead {
    visibility: hidden;
  }
}
.menghuan-status {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .menghuan-table .menghuan-status {
    max-width: 96px;
    white-space: normal;
  }
}

.menghuan-status.is-isolated {
  background: #fce8e8;
  color: #b43c3c;
}

.autodl-display {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.autodl-display img {
  display: block;
  max-width: 100%;
  width: 344px;
  height: auto;
}
@media (max-width: 760px) {
  .autodl-display {
    padding: 28px 20px;
  }
}

.navigation-links { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:16px; margin-top:20px; }
.navigation-link { display:flex; align-items:center; gap:14px; padding:22px; border:1px solid var(--line); border-radius:14px; background:#fff; text-decoration:none; color:var(--ink); transition:transform .18s,border-color .18s,box-shadow .18s; }
.navigation-link:hover { transform:translateY(-2px); border-color:#bca1dd; box-shadow:0 8px 24px #7953b114; }
.navigation-link:focus-visible { outline:2px solid #7953b1; outline-offset:3px; }
.navigation-monogram { display:grid; place-items:center; flex-shrink:0; width:42px; height:42px; border-radius:12px; background:#f0e8fa; color:#7953b1; font-size:18px; font-weight:600; }
.navigation-link-text { display:grid; gap:6px; min-width:0; }
.navigation-link-text strong { font-size:15px; overflow-wrap:anywhere; }
.navigation-link-text span { color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.navigation-arrow { margin-left:auto; color:#7953b1; font-size:19px; }
.navigation-empty,.navigation-editor { background:#fff; border:1px solid var(--line); border-radius:16px; padding:28px; margin-top:20px; }
.navigation-empty { text-align:center; padding:48px 24px; }
.navigation-editor h2,.navigation-empty h2 { font-size:18px; margin:0 0 12px; }
.navigation-edit-row { display:grid; grid-template-columns:minmax(120px,1fr) minmax(180px,2fr) auto; gap:12px; align-items:center; margin:16px 0; }
.navigation-edit-row input { margin:0; min-width:0; }
.navigation-remove { color:#a64444; }
.navigation-editor-actions { display:flex; justify-content:flex-end; gap:12px; padding-top:20px; margin-top:20px; border-top:1px solid var(--line); }
@media(max-width:1100px) { .navigation-links { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:760px) { .navigation-links { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .navigation-link { padding:18px; } .navigation-editor { padding:20px; } .navigation-edit-row { grid-template-columns:minmax(0,1fr) auto; } .navigation-edit-row input:first-child { grid-column:1 / -1; } }

.navigation-title-status { grid-column:1 / -1; font-size:12px; color:var(--muted); }
.navigation-title-status:empty { display:none; }

.navigation-card { position:relative; min-width:0; }
.navigation-card .navigation-link { height:100%; padding-right:56px; }
.navigation-card .navigation-arrow { display:none; }
.navigation-drag-handle { position:absolute; right:12px; top:50%; transform:translateY(-50%); border:0; background:transparent; color:#9686a8; padding:10px; font-size:23px; line-height:1; cursor:grab; touch-action:none; user-select:none; }
.navigation-drag-handle:hover { color:#7953b1; background:#f0e8fa; }
.navigation-drag-handle:active { cursor:grabbing; }
.navigation-card.is-dragging { opacity:.55; }
.navigation-card.is-drop-target .navigation-link { border-color:#7953b1; background:#f7f2fc; box-shadow:0 0 0 2px #7953b12b; }

.navigation-groups { display:grid; gap:28px; margin-top:24px; }
.navigation-group h2 { display:flex; align-items:center; gap:10px; font-size:16px; margin:0; color:var(--ink); }
.navigation-group-count { color:var(--muted); font-weight:400; font-size:12px; }
.navigation-group .navigation-links { margin-top:14px; }
.navigation-group-empty { padding:24px; border:1px dashed var(--line); border-radius:12px; color:var(--muted); font-size:13px; }
.navigation-group.is-drop-target { outline:2px dashed #7953b1; outline-offset:6px; border-radius:12px; }
.navigation-group-editor { padding-bottom:22px; margin-bottom:22px; border-bottom:1px solid var(--line); }
.navigation-group-editor h3 { font-size:14px; margin:0 0 10px; }
.navigation-group-edit-row { display:flex; gap:12px; max-width:520px; margin:12px 0; align-items:center; }
.navigation-group-edit-row input { min-width:0; margin:0; flex:1; }
.navigation-group-edit-row button { flex-shrink:0; }
.navigation-edit-row { grid-template-columns:minmax(110px,1fr) minmax(160px,2fr) minmax(100px,1fr) auto; }
.navigation-group-select { margin:0; min-width:0; }
@media(max-width:760px) { .navigation-edit-row { grid-template-columns:minmax(0,1fr) auto; } .navigation-edit-row input { grid-column:1 / -1; } }

/* Compact navigation cards fit twice as many links in each row. */
.navigation-card .navigation-link { padding:14px 34px 14px 12px; gap:8px; }
.navigation-card .navigation-monogram { width:28px; height:28px; border-radius:8px; font-size:14px; }
.navigation-card .navigation-link-text { flex:1; }
.navigation-card .navigation-link-text strong,.navigation-card .navigation-link-text span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.navigation-card .navigation-drag-handle { right:3px; padding:6px; font-size:20px; }
@media(max-width:760px) { .navigation-card .navigation-monogram { display:grid; } }

.navigation-monogram { position:relative; }
.navigation-site-icon { position:absolute; inset:0; width:28px; height:28px; object-fit:contain; border-radius:5px; }
.navigation-card .navigation-monogram.has-site-icon { background:transparent; }
@media(max-width:760px) { .navigation-card .navigation-monogram.has-site-icon { display:grid; } }

/* Square website tiles with a larger icon and a short display name. */
.navigation-card { aspect-ratio:1; }
.navigation-card .navigation-link { width:100%; height:100%; flex-direction:column; justify-content:center; gap:12px; padding:18px 10px; }
.navigation-card .navigation-monogram { width:clamp(36px,40%,56px); height:auto; aspect-ratio:1; font-size:24px; border-radius:12px; }
.navigation-card .navigation-site-icon { width:100%; height:100%; border-radius:10px; }
.navigation-card .navigation-link-text { flex:none; width:100%; text-align:center; }
.navigation-card .navigation-drag-handle { top:4px; right:4px; transform:none; font-size:18px; }

/* Keep navigation tiles close to the icon and label instead of stretching. */
.navigation-group .navigation-links { grid-template-columns:repeat(auto-fill,112px); gap:12px; }
.navigation-card .navigation-link { padding:8px; gap:8px; }
.navigation-card .navigation-monogram { width:56px; max-width:100%; }
.navigation-card .navigation-drag-handle { top:2px; right:2px; padding:4px; font-size:14px; }

.stats { flex-wrap:wrap; }
#cancelled { color:var(--muted); }

.overview-caption { display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:12px; margin:28px 0 18px; }
.overview-caption h2 { font-size:17px; font-weight:600; margin:0; }
.overview-caption > span { font-size:12px; }
.overview-accounts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; align-items:start; }
.overview-account { background:#fff; border:1px solid var(--line); border-radius:16px; padding:26px; }
.overview-account.is-current { border-top:4px solid #7953b1; padding-top:23px; }
.overview-account-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.overview-account h3 { font-size:24px; letter-spacing:-.5px; margin:0; font-weight:600; overflow-wrap:anywhere; }
.overview-current { background:#f0e8fa; color:#7953b1; border-radius:6px; padding:5px 8px; font-size:11px; white-space:nowrap; }
.overview-plan { color:var(--muted); font-size:13px; margin:8px 0 30px; }
.overview-window { margin:22px 0; }
.overview-quota-label { display:flex; justify-content:space-between; align-items:baseline; gap:12px; font-size:14px; }
.overview-quota-label strong { font-size:26px; font-weight:600; font-variant-numeric:tabular-nums; }
.overview-window progress { display:block; appearance:none; border:0; width:100%; height:7px; border-radius:5px; overflow:hidden; margin:10px 0; background:#eee9f4; accent-color:#7953b1; }
.overview-window progress::-webkit-progress-bar { background:#eee9f4; }
.overview-window progress::-webkit-progress-value { background:#7953b1; border-radius:5px; }
.overview-window progress::-moz-progress-bar { background:#7953b1; }
.overview-window progress.is-low { accent-color:#b43c3c; }
.overview-window progress.is-low::-webkit-progress-value { background:#b43c3c; }
.overview-window progress.is-low::-moz-progress-bar { background:#b43c3c; }
.overview-reset,.overview-expiry { font-size:12px; color:var(--muted); line-height:1.7; margin:8px 0 0; }
.overview-card-footer { border-top:1px solid var(--line); padding-top:18px; margin-top:28px; display:flex; justify-content:space-between; gap:12px; font-size:14px; }
.overview-card-footer strong { color:#7953b1; }
.overview-note { margin:22px 0; color:var(--muted); font-size:12px; line-height:1.8; }
.overview-error { font-size:13px; line-height:1.8; color:#a34040; }
@media(max-width:1100px) { .overview-accounts { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:760px) { .overview-accounts { grid-template-columns:1fr; gap:16px; } .overview-account { padding:22px; } .overview-account.is-current { padding-top:19px; } #overview-page .intro { align-items:flex-start; gap:16px; } }

.overview-card-footer { align-items:baseline; gap:8px; }
.overview-card-footer > span { font-size:12px; white-space:nowrap; }
.overview-card-footer > strong { flex-shrink:0; white-space:nowrap; }

/* Navigation reads as a shortcut shelf, without individual white panels. */
.navigation-card .navigation-link {
  background:transparent;
  border-color:transparent;
  box-shadow:none;
  transform:none;
  border-radius:14px;
  transition:background-color .16s ease;
}
.navigation-card .navigation-link-text strong { font-weight:500; color:#30273c; }
.navigation-card .navigation-monogram:not(.has-site-icon) { background:#e7dcf3; color:#7953b1; }
.navigation-card .navigation-drag-handle { color:#71627f; background:transparent; }
.navigation-card .navigation-drag-handle:focus-visible { outline:2px solid #7953b1; outline-offset:2px; }
.navigation-card.is-drop-target .navigation-link { background:#e7dcf3; border-color:#7953b1; box-shadow:none; }
.navigation-card .navigation-link:focus-visible { background:#ece4f5; outline:2px solid #7953b1; outline-offset:2px; }
@media(hover:hover) and (pointer:fine) {
  .navigation-card .navigation-link:hover { background:#7953b10d; border-color:transparent; box-shadow:none; transform:none; }
  .navigation-card .navigation-drag-handle { opacity:0; }
  .navigation-card:hover .navigation-drag-handle,.navigation-card:focus-within .navigation-drag-handle { opacity:1; }
  .navigation-card.is-drop-target .navigation-link:hover { border-color:#7953b1; background:#e7dcf3; }
}
@media(prefers-reduced-motion:reduce) { .navigation-card .navigation-link { transition:none; } }
