:root {
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --plum: var(--accent);
  --plum-dark: var(--accent-strong);
  --lav: var(--accent-soft);
  --app-max-width: 1427px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
#app {
  width: 100%;
  max-width: var(--app-max-width);
  min-height: 100vh;
  margin-inline: auto;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 max(0px, calc((100% - var(--app-max-width)) / 2));
  width: 252px;
  padding: 28px 18px 18px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 30px;
}
.brand strong {
  font-size: 21px;
  letter-spacing: 0.05em;
}
.brand small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--plum);
  background: var(--lav);
  padding: 4px 5px;
  border-radius: 4px;
}
.mark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  width: 22px;
  height: 22px;
}
.mark i {
  display: block;
  width: 5px;
  border-radius: 5px;
  background: var(--plum);
}
.mark i:nth-child(1) {
  height: 12px;
  opacity: 0.55;
}
.mark i:nth-child(2) {
  height: 20px;
}
.mark i:nth-child(3) {
  height: 15px;
  opacity: 0.75;
}
.quick-add {
  height: 45px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.quick-add > span {
  color: var(--plum);
  font-size: 20px;
  margin-right: 8px;
}
.quick-add kbd,
.search kbd {
  float: right;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  background: var(--warm);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 5px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 26px;
}
.nav-item,
.side-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 41px;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: left;
}
.nav-item:first-letter {
  font-size: 18px;
}
.nav-item.active {
  background: var(--lav);
  color: var(--plum-dark);
  font-weight: 700;
}
.nav-item b {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.nav-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 30px 12px 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.folder-nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.folder-nav-actions button {
  min-width: 40px;
  min-height: 44px;
  padding: 6px;
  border-radius: 6px;
  letter-spacing: normal;
}
.folder-nav-actions button:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}
.settings-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  padding: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.settings-row:hover {
  background: var(--accent-soft);
}
.settings-row strong {
  font-size: 15px;
  font-weight: 600;
}
.settings-row small,
.settings-profile small {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
}
.settings-row > span:first-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.settings-profile {
  margin: 0 0 12px;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.dialog-head .menu-back {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
  font-size: 14px;
  color: var(--accent-strong);
  border-radius: 6px;
}
.menu-back:hover {
  background: var(--accent-soft);
}
[data-menu-panel="true"] .dialog-head {
  gap: 10px;
}
[data-menu-panel="true"] .dialog-head > div {
  flex: 1;
  min-width: 0;
}
[data-menu-panel="true"] .dialog-head h2 {
  overflow-wrap: anywhere;
}
.folder-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.folder-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 37px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  text-align: left;
}
.folder-item:hover,
.nav-item:hover,
.side-link:hover {
  background: var(--hover-bg);
}
.folder-item i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9b7392;
}
.folder-item[data-color="mint"] i {
  background: #8eb9a6;
}
.folder-item[data-color="amber"] i {
  background: #e1a26d;
}
.folder-item[data-color="blue"] i {
  background: #82a4bd;
}
.folder-item b {
  margin-left: auto;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
}
.side-link {
  height: 37px;
  font-size: 14px;
}
.side-icon {
  flex: 0 0 18px;
}
.profile {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 16px 8px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.profile > span,
.avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: var(--plum);
  color: var(--on-accent);
  font-size: 12px;
}
.profile strong {
  display: block;
  font-size: 14px;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.main {
  min-height: 100vh;
  margin-left: 252px;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  padding: 0 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-brand {
  display: none;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.crumb span {
  color: var(--muted);
}
.crumb b {
  color: var(--muted);
}
.top-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search {
  display: flex;
  align-items: center;
  width: 270px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  padding: 0 10px;
  color: var(--muted);
  gap: 7px;
}
.search span {
  font-size: 22px;
}
.search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: none;
  color: var(--ink);
  font-size: 14px;
}
.search input::placeholder {
  color: var(--muted);
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search-clear {
  flex: none;
  width: 32px;
  min-height: 32px;
  padding: 0;
  border-radius: 6px;
  color: var(--muted);
  font-size: 20px;
}
.search-clear:hover {
  background: var(--lav);
  color: var(--plum-dark);
}
.search kbd {
  flex: none;
  white-space: nowrap;
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 13px;
}
.page {
  width: 100%;
  padding: 42px 50px 36px;
}
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 37px;
}
.eyebrow {
  margin: 0 0 15px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}
.hero h1 {
  margin: 0;
  font-size: 31px;
  letter-spacing: normal;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
  font-size: 24px;
  margin-left: 5px;
}
.hero p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.hero-actions {
  display: flex;
  gap: 10px;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
}
.primary {
  color: var(--on-accent);
  background: var(--plum);
  box-shadow: var(--accent-shadow);
  font-size: 14px;
}
.primary:hover {
  background: var(--plum-dark);
}
.secondary {
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
}
.secondary:hover {
  background: var(--hover-bg);
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 42px;
}
.workspace {
  min-width: 0;
}
.toolbar,
.list-head,
.rail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.toolbar {
  margin-bottom: 15px;
}
.tabs {
  display: flex;
  padding: 3px;
  background: var(--hover-bg);
  border-radius: 8px;
  gap: 2px;
}
.tab {
  height: 29px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
}
.tab.active {
  background: var(--surface);
  color: var(--plum-dark);
  font-weight: 700;
  box-shadow: var(--shadow);
}
.toolbar select {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--lav);
  color: var(--plum-dark);
  padding: 8px 10px;
  border-radius: 7px;
  margin-bottom: 13px;
  font-size: 13px;
}
.filter-bar button {
  color: var(--plum-dark);
  font-size: 13px;
}
.featured {
  padding: 24px 26px 21px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--featured-bg);
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.featured:empty {
  display: none;
}
.featured-top,
.featured-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 5px;
  background: var(--lav);
  color: var(--plum-dark);
  font-size: 13px;
}
.date {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.featured h2 {
  font-size: 20px;
  letter-spacing: normal;
  margin: 19px 0 7px;
}
.featured p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0;
  max-width: 650px;
}
.featured-foot {
  margin-top: 20px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--lav);
  color: var(--plum-dark);
  font-size: 13px;
  margin-right: 5px;
}
.tag.mint {
  background: var(--green-soft);
  color: var(--green);
}
.tag.purple {
  background: var(--lav);
  color: var(--plum-dark);
}
.list-head {
  margin: 0 0 13px;
}
.list-head h2 {
  font-size: 15px;
  margin: 0;
}
.list-head small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 5px;
}
.list-head > span {
  font-size: 13px;
  color: var(--muted);
}
.content-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.content-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    border-color 0.18s;
}
.content-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.card-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 8px;
  background: var(--lav);
  color: var(--plum);
  font-size: 16px;
}
.card-icon.link {
  background: var(--green-soft);
  color: var(--green);
}
.card-main {
  min-width: 0;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 1px 0 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.type-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--plum-dark);
}
.type-label.link {
  color: var(--green);
}
.content-card h3 {
  font-size: 13px;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.content-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 9px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-side {
  display: flex;
  align-items: center;
  gap: 7px;
}
.card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  opacity: 0.55;
}
.card-actions button {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  color: var(--muted);
}
.card-actions button:hover {
  background: var(--hover-bg);
  color: var(--plum);
}
.empty {
  text-align: center;
  padding: 65px 20px;
  color: var(--muted);
}
.empty > div {
  font-size: 33px;
  color: var(--muted);
}
.empty h3 {
  color: var(--ink);
  font-size: 15px;
  margin: 10px 0 5px;
}
.empty p {
  font-size: 14px;
  margin: 0 0 16px;
}
.rail {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.rail-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.rail-title {
  margin-bottom: 14px;
}
.rail-title h2 {
  font-size: 15px;
  margin: 0;
}
.rail-title > span,
.rail-title > button {
  font-size: 13px;
  color: var(--plum);
}
.todo-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.todo-row:last-child {
  border: 0;
}
.todo-row input {
  accent-color: var(--plum);
  width: 16px;
  height: 16px;
}
.todo-row.done span {
  text-decoration: line-through;
  color: var(--muted);
}
.todo-row button {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}
.todo-add {
  width: 100%;
  margin-top: 12px;
}
.todo-dialog {
  width: min(520px, calc(100vw - 32px));
}
.todo-date-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 13px;
}
.todo-date-row label {
  flex: none;
  color: var(--muted);
}
.todo-date-row input {
  flex: 1;
  min-width: 0;
  width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 6px;
  background: var(--warm);
  color: var(--ink);
  font-size: 13px;
}
.todo-date-row button {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--plum);
}
.rail-help {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 10px 0 0;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag-cloud button {
  padding: 7px 9px;
  border-radius: 5px;
  background: var(--warm);
  color: var(--text-secondary);
  font-size: 13px;
}
.tag-cloud button:nth-child(2n) {
  background: var(--lav);
  color: var(--plum-dark);
}
.recent-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.recent-row:last-child {
  border: 0;
}
.favicon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--on-accent);
  font-size: 13px;
  background: var(--accent);
}
.recent-row strong {
  font-size: 14px;
  display: block;
}
.recent-row small {
  font-size: 13px;
  color: var(--muted);
}
.recent-row > a {
  margin-left: auto;
  color: var(--green);
}
.quote {
  padding: 18px;
  background: var(--warm);
  border-radius: 10px;
  color: var(--muted);
}
.quote p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 6px 0 10px;
}
.quote small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}
.footer {
  padding-top: 34px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}
.mobile-nav {
  display: none;
}
.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    radial-gradient(circle at 80% 10%, var(--lav) 0, transparent 30%), var(--bg);
}
.auth-card {
  width: min(420px, 100%);
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.auth-brand {
  padding: 0;
  margin: 0 0 30px;
}
.auth-kicker {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
}
.auth-card h1 {
  font-size: 29px;
  letter-spacing: normal;
  margin: 12px 0 8px;
}
.auth-card > p:not(.auth-kicker):not(.auth-note) {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 25px;
}
.auth-card label,
.dialog label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 700;
  margin: 14px 0;
}
.auth-card input,
.dialog input,
.dialog textarea,
.dialog select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  outline: 0;
  margin-top: 7px;
  font-size: 15px;
  color: var(--ink);
}
.auth-card input::placeholder,
.dialog input::placeholder,
.dialog textarea::placeholder {
  color: var(--muted);
}
.auth-submit {
  width: 100%;
  margin-top: 10px;
}
.auth-switch {
  display: flex;
  justify-content: space-between;
  margin-top: 19px;
}
.auth-switch button {
  color: var(--plum);
  font-size: 14px;
}
.auth-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 25px 0 0;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
  margin: 10px 0;
}
.dialog {
  width: min(650px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--dialog-shadow);
}
.dialog::backdrop {
  background: var(--backdrop);
}
.dialog form,
.dialog > div:not(.dialog-head) {
  padding: 26px;
}
.dialog > form {
  overflow: auto;
  max-height: calc(100dvh - 32px);
}
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}
.dialog-head small {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--plum);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.dialog h2 {
  font-size: 22px;
  letter-spacing: normal;
  margin: 8px 0 0;
}
.close {
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
}
.dialog textarea {
  height: auto;
  resize: vertical;
  min-height: 140px;
  padding: 11px;
  line-height: 1.7;
}
.field-row {
  display: block;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
}
.dialog-actions > div {
  display: flex;
  gap: 7px;
}
.detail-dialog {
  width: min(867px, calc(100vw - 32px));
  padding: 28px;
  max-width: 867px;
}
.detail-dialog .detail-type {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--plum);
}
.detail-dialog h2 {
  font-size: 24px;
  margin: 10px 0 16px;
}
.detail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.8;
  max-height: 50vh;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
}
.detail-link {
  display: block;
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
  margin-top: 12px;
}
.detail-actions {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}
.small-dialog {
  width: min(470px, calc(100vw - 32px));
}
.folder-modal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.folder-modal-row button {
  color: var(--muted);
  font-size: 14px;
}
.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 11px 15px;
  background: var(--toast-bg);
  color: var(--toast-ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  z-index: 10;
  font-size: 12px;
}
.toast[hidden],
#app[hidden],
#auth[hidden] {
  display: none;
}
.mobile-nav .mobile-item {
  color: var(--muted);
}
.mobile-nav .mobile-item.active {
  color: var(--plum-dark);
}
@media (max-width: 1080px) {
  .sidebar {
    width: 220px;
  }
  .main {
    margin-left: 220px;
  }
  .topbar,
  .page {
    padding-left: 32px;
    padding-right: 32px;
  }
  .layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 250px;
  }
}
@media (max-width: 820px) {
  .sidebar {
    display: none;
  }
  .main {
    margin-left: 0;
  }
  .topbar {
    height: 64px;
    padding: 0 18px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .crumb {
    display: none;
    font-size: 13px;
  }
  .search {
    width: min(240px, 58vw);
    height: 44px;
  }
  .search-clear {
    width: 44px;
    min-height: 44px;
  }
  .search kbd,
  .avatar {
    display: none;
    font-size: 13px;
  }
  .page {
    padding: 28px 18px 90px;
  }
  .hero {
    display: block;
    padding-bottom: 24px;
  }
  .hero h1 {
    font-size: 25px;
    letter-spacing: normal;
  }
  .hero-actions {
    margin-top: 20px;
  }
  .hero-actions > * {
    flex: 1;
  }
  .layout {
    display: block;
  }
  .rail {
    margin-top: 24px;
  }
  .rail-card {
    padding: 16px;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: space-around;
    bottom: 0;
    left: 0;
    right: 0;
    height: 68px;
    padding: 0 9px calc(env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
    z-index: 3;
  }
  .mobile-item {
    width: 55px;
    height: 51px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 19px;
  }
  .mobile-item small {
    font-size: 13px;
  }
  .mobile-create {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: var(--plum);
    color: var(--on-accent);
    font-size: 25px;
    margin-top: -18px;
    box-shadow: var(--accent-shadow);
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .dialog-actions {
    align-items: flex-end;
    gap: 10px;
  }
  .dialog-actions > span {
    max-width: 130px;
  }
  .featured {
    padding: 20px;
  }
  .featured h2 {
    font-size: 18px;
    letter-spacing: normal;
  }
  .footer {
    display: none;
    font-size: 13px;
  }
}
@media (max-width: 420px) {
  .topbar {
    padding: 0 14px;
  }
  .search {
    width: 160px;
    height: 40px;
  }
  .hero h1 {
    font-size: 22px;
    letter-spacing: normal;
  }
  .hero-actions {
    gap: 7px;
  }
  .primary,
  .secondary {
    padding: 0 10px;
    font-size: 14px;
  }
  .tabs {
    max-width: 70%;
    overflow: auto;
  }
  .tab {
    padding: 0 10px;
    white-space: nowrap;
    font-size: 14px;
  }
  .featured p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
  }
  .content-card h3 {
    font-size: 12px;
  }
  .content-card p {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
  }
  .dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 14px 14px 0 0;
    margin: auto 0 0;
  }
  .dialog form {
    max-height: 100dvh;
    padding: 22px 18px 28px;
  }
  .detail-dialog {
    width: 100%;
    max-height: 100dvh;
    border-radius: 14px 14px 0 0;
    margin: auto 0 0;
  }
  .auth-card {
    padding: 30px 22px;
  }
}

/* Reading, touch targets and responsive editing take priority over density. */
[hidden] {
  display: none !important;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
.hero-actions {
  flex-shrink: 0;
  margin-left: 20px;
}
.card-main h3 {
  font-size: 16px;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.content-card p {
  font-size: 15px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text-secondary);
}
.card-meta,
.date,
.domain {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--green);
}
.domain {
  color: var(--green);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.type-label {
  font-size: 13px;
  color: var(--plum-dark);
}
.tag {
  font-size: 13px;
  margin-bottom: 3px;
  color: var(--plum-dark);
}
.tag.mint {
  color: var(--green);
}
.card-open {
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--muted);
  align-self: center;
}
.featured-title {
  text-align: left;
  padding: 0;
}
.featured-title h2 {
  overflow-wrap: anywhere;
}
.featured p {
  font-size: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.75;
  color: var(--text-secondary);
}
.text-button {
  color: var(--plum);
  font-size: 13px;
}
.hint {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 6px 0;
}
.recent-name {
  text-align: left;
  padding: 0;
  min-width: 0;
  flex: 1;
}
.recent-name strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}
.recent-row a {
  color: var(--green);
  text-decoration: none;
}
.rail-title h2 {
  font-size: 15px;
}
.rail-title > span,
.rail-title > button,
.rail-help,
.tag-cloud button {
  font-size: 13px;
  color: var(--text-secondary);
}
.todo-check {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  cursor: pointer;
  min-width: 0;
  min-height: 32px;
}
.todo-check span {
  overflow-wrap: anywhere;
  line-height: 1.75;
  font-size: 15px;
  color: var(--text-secondary);
}
.todo-row > button {
  width: 32px;
  height: 32px;
  flex: none;
}
.todo-check input {
  flex: none;
  cursor: pointer;
}
.rail-help {
  line-height: 1.6;
  font-size: 13px;
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  font-size: 13px;
  color: var(--muted);
}
.pagination button {
  height: 36px;
}
.dialog form {
  padding: 26px;
}
.dialog .dialog-head {
  padding: 0;
}
.dialog input,
.dialog textarea,
.dialog select {
  font-size: 15px;
}
.dialog label {
  font-size: 14px;
}
.dialog .detail-meta,
.dialog .detail-actions,
.dialog .detail-body {
  padding: 0;
}
.dialog .detail-body {
  padding: 18px 0;
}
.detail-dialog .dialog-head {
  padding: 0;
}
.detail-dialog .detail-actions {
  flex-wrap: wrap;
}
.detail-copy {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.detail-dialog > p {
  overflow-wrap: anywhere;
}
.recovery-display {
  display: block;
  background: var(--warm);
  border-radius: 8px;
  padding: 16px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.8;
  user-select: all;
  margin: 15px 0;
}
.detail-dialog label.recovery-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.recovery-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--plum);
}
.folder-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.folder-modal-row > div {
  display: flex;
  gap: 10px;
}
.folder-modal-row button {
  color: var(--plum);
  min-height: 36px;
  font-size: 14px;
}
.folder-modal-row > span {
  overflow-wrap: anywhere;
  padding-right: 10px;
}
.small-dialog > .dialog-head {
  padding: 26px 26px 0;
  margin-bottom: 0;
}
.small-dialog > form {
  padding-top: 5px;
}
#folderDialog > [data-action="new-folder"] {
  margin: 0 26px 26px;
  min-height: 44px;
}
#folderDialog .folder-modal-row button {
  min-height: 44px;
}
.load-error {
  border: 1px solid var(--danger);
  padding: 18px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--danger);
}
.load-error button {
  color: var(--plum);
  text-decoration: underline;
  margin-left: 6px;
}
.auth-card label {
  font-size: 14px;
}
.auth-note {
  font-size: 13px;
}
.auth-switch button {
  font-size: 14px;
  min-height: 36px;
}
.auth-card input {
  font-size: 15px;
}
.toast {
  max-width: min(520px, calc(100vw - 32px));
  line-height: 1.7;
}
.undo {
  color: var(--undo-ink);
  text-decoration: underline;
  margin-left: 14px;
}
.folder-item.selected {
  background: var(--lav);
  color: var(--plum-dark);
}
@media (min-width: 821px) and (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .todo-card {
    grid-column: 1 / -1;
  }
  .quote {
    display: none;
  }
  .hero {
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero-actions {
    margin-left: 0;
  }
}
@media (max-width: 820px) {
  .layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .workspace {
    order: 2;
  }
  .rail {
    display: contents;
  }
  .rail-card,
  .quote {
    order: 3;
    margin-top: 16px;
  }
  .todo-card {
    order: 1;
    margin-top: 0;
    margin-bottom: 24px;
  }
  .todo-card .rail-help {
    font-size: 13px;
  }
  .hero-actions {
    margin-left: 0;
  }
  .primary,
  .secondary {
    min-height: 44px;
    font-size: 14px;
  }
  .tab {
    min-height: 40px;
    font-size: 14px;
  }
  .content-card {
    padding: 16px 13px;
  }
  .card-open {
    width: 32px;
    height: 44px;
  }
  .content-card p {
    font-size: 15px;
    -webkit-line-clamp: 3;
    line-height: 1.75;
    color: var(--text-secondary);
  }
  .card-main h3 {
    font-size: 16px;
  }
  .card-meta {
    font-size: 13px;
    font-variant-numeric: tabular-nums;
  }
  .tag {
    font-size: 13px;
    color: var(--plum-dark);
  }
  .dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
    max-width: none;
  }
  .dialog > form {
    height: 100%;
    max-height: 100dvh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    padding: 20px 18px max(24px, env(safe-area-inset-bottom));
  }
  .dialog input,
  .dialog textarea,
  .dialog select,
  .auth-card input,
  .search input,
  .todo-date-row input {
    font-size: 16px;
  }
  .dialog-actions {
    position: sticky;
    bottom: 0;
    background: var(--surface);
    padding: 12px 0;
    margin-top: auto;
    z-index: 1;
  }
  .dialog-actions > span {
    display: none;
  }
  .dialog-actions > div {
    width: 100%;
    justify-content: flex-end;
  }
  .dialog-head {
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 2;
    padding-bottom: 12px !important;
  }
  .dialog textarea {
    min-height: 160px;
    flex: 1;
  }
  .detail-dialog {
    padding: 22px 18px;
  }
  .detail-body {
    max-height: none;
    overflow: visible;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink);
  }
  .small-dialog > .dialog-head {
    padding: 22px 18px;
  }
  .small-dialog > form {
    height: auto;
  }
  .close {
    min-width: 44px;
    min-height: 44px;
  }
  .mobile-nav {
    height: calc(68px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }
  .page {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }
  .mobile-item small {
    font-size: 13px;
  }
  .mobile-item {
    min-height: 48px;
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
    right: 16px;
    left: 16px;
  }
  .auth-card {
    padding: 28px 22px;
  }
  .card-tags .tag {
    min-height: 32px;
  }
  .topbar .search {
    max-width: 58vw;
  }
  .field-row {
    display: block;
  }
  .pagination {
    gap: 8px;
    font-size: 13px;
  }
  .rail-card {
    padding: 18px;
  }
  .tag-cloud button {
    min-height: 40px;
    font-size: 13px;
    color: var(--text-secondary);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .content-card:hover {
    transform: none;
  }
}
.password-toggle {
  font-size: 13px;
  color: var(--plum);
  padding: 8px 0 0;
  display: block;
  text-align: right;
  margin-left: auto;
  min-height: 32px;
}
#todoTrashTools {
  margin: 0 0 16px;
}
#todoList {
  max-height: 350px;
  overflow-y: auto;
}
@media (min-width: 1101px) and (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .todo-card {
    grid-column: 1 / -1;
  }
  .quote {
    display: none;
  }
  .hero {
    flex-wrap: wrap;
    gap: 20px;
  }
  .hero-actions {
    margin-left: 0;
  }
}

/* Appearance controls share the same semantic colors as the workspace. */
.appearance-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 600;
}
.appearance-button:hover {
  background: var(--accent-soft);
}
.appearance-button svg {
  flex: none;
}
.auth-brand .appearance-button {
  margin-left: auto;
}
.appearance-dialog {
  width: min(720px, calc(100vw - 32px));
  padding: 28px;
  overflow-y: auto;
}
.appearance-dialog .dialog-head {
  margin-bottom: 10px;
}
.appearance-dialog > .hint {
  margin-bottom: 20px;
}
.theme-options {
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}
.theme-options legend {
  margin-bottom: 12px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
}
.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.dialog .theme-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 400;
}
.theme-option:hover {
  border-color: var(--accent);
}
.theme-option.selected {
  border-color: var(--accent);
  background: var(--warm);
}
.theme-option:focus-within {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.dialog .theme-option input {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  z-index: 1;
  cursor: pointer;
}
.theme-name {
  font-size: 14px;
  font-weight: 700;
}
.theme-description {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.theme-preview {
  display: grid;
  grid-template-columns: 24% 1fr;
  min-height: 92px;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
}
.preview-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 7px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--line);
}
.preview-sidebar i {
  display: block;
  height: 5px;
  border-radius: 2px;
  background: var(--line);
}
.preview-sidebar i:first-child {
  height: 7px;
  margin-bottom: 5px;
  background: var(--accent);
}
.preview-main {
  padding: 10px;
}
.preview-main i {
  display: block;
  border-radius: 2px;
}
.preview-topbar {
  width: 68%;
  height: 4px;
  margin-bottom: 10px;
  background: var(--line);
}
.preview-heading {
  width: 52%;
  height: 6px;
  margin-bottom: 9px;
  background: var(--accent);
}
.preview-card {
  display: block;
  margin-bottom: 6px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.preview-card i {
  height: 3px;
  background: var(--line);
}
.preview-card i:first-child {
  width: 65%;
  margin-bottom: 4px;
  background: var(--accent-soft);
}
.dialog.appearance-dialog > .appearance-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 20px 0 0;
}
@media (max-width: 820px) {
  .top-right {
    gap: 8px;
  }
  .topbar .search {
    width: min(240px, calc(100vw - 164px));
    max-width: none;
  }
  .topbar .appearance-button {
    width: 44px;
    padding: 0;
  }
  .topbar .appearance-button span {
    display: none;
  }
  .appearance-dialog {
    width: 100%;
    padding: 22px 18px;
  }
}
@media (max-width: 600px) {
  .theme-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .theme-preview {
    min-height: 72px;
  }
}

/* All classification choices stay in the editor and scroll within their own panels. */
.editor-choice-field {
  min-width: 0;
  margin: 14px 0;
  padding: 0;
  border: 0;
}
.editor-choice-field legend {
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.editor-choice-field legend .hint {
  margin-left: 5px;
  font-weight: 400;
}
.editor-choices {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 64px;
  max-height: 180px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--warm);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dialog .editor-choice {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.6;
}
.dialog .editor-choice.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
}
.dialog .editor-choice:hover {
  border-color: var(--accent);
}
.editor-choice:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.dialog #tagInput {
  min-width: 0;
  margin: 8px 0 0;
  height: 44px;
}
/* Quick actions remain visible on touch screens and use the current palette. */
.content-card:has(.card-menu[open]) {
  position: relative;
  z-index: 3;
}
.card-controls {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}
.card-visit,
.card-menu > summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: var(--surface);
  cursor: pointer;
  text-decoration: none;
  font-size: 20px;
}
.card-menu {
  position: relative;
}
.card-menu > summary {
  list-style: none;
}
.card-menu > summary::-webkit-details-marker {
  display: none;
}
.card-menu > summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.card-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: default;
}
.card-menu-panel button {
  text-align: left;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.card-menu-panel button:hover,
.card-menu > summary:hover,
.card-visit:hover {
  background: var(--accent-soft);
}
.card-folder {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
  padding: 4px 0;
}
.content-card mark {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-radius: 2px;
}
.detail-times {
  margin: 12px 26px;
  font-size: 13px;
  color: var(--text-secondary);
}
.detail-times > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 5px 0;
}
.detail-times dt {
  color: var(--muted);
}
.detail-times dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.duplicate-notice {
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}
.duplicate-notice p {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.duplicate-notice .detail-actions {
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
}
#utilityDialog .hint {
  line-height: 1.7;
}
@media (max-width: 820px) {
  .editor-choices {
    max-height: 164px;
  }
  .field-row {
    flex: none;
  }
}
/* Saving and loading feedback shares the active theme and respects reduced motion. */
.security-fields {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.local-draft-tools {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.import-preview {
  overflow-x: auto;
  margin: 16px 0;
}
.import-preview table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.import-preview th,
.import-preview td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.danger-button {
  background: var(--danger-soft);
  color: var(--danger);
  border: 1px solid var(--danger);
}
[aria-invalid="true"] {
  border-color: var(--danger);
}
#draftStatus {
  max-width: 55%;
  font-size: 13px;
  line-height: 1.6;
}
#bodyCounter {
  text-align: right;
  margin-top: -8px;
}
.loading-placeholder {
  height: 130px;
  margin: 12px 0;
  border-radius: 12px;
  background: var(--surface);
  opacity: 0.65;
  border: 1px solid var(--line);
}
button[aria-busy="true"]::before,
.loading-status::before,
#todoList[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  animation: loading-spin 0.8s linear infinite;
}
#todoList[aria-busy="true"]::after {
  content: "正在加载待办…";
  font-size: 13px;
}
@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  button[aria-busy="true"]::before,
  .loading-status::before,
  #todoList[aria-busy="true"]::before {
    animation: none;
  }
}
@media (max-width: 600px) {
  #draftStatus {
    max-width: 100%;
  }
  .folder-modal-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}
