:root {
  color-scheme: light;
  --background: #edf2f9;
  --shell: #f5f7fc;
  --surface: #ffffff;
  --raised: #eef3fa;
  --border: #cdd8e7;
  --edge: #e0e7f1;
  --text: #1d2b40;
  --muted: #52637a;
  --sky: #2c64ad;
  --iris: #6d54a1;
  --mint: #267463;
  --amber: #8b5a26;
  --rose: #975475;
  --neutral: #536881;
  --accent: #2863c5;
  --accent-soft: #e8f0ff;
  --accent-ink: #fff;
  --tone: var(--neutral);
  --danger: #a73748;
  --font: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  font: 100%/1.55 var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scrollbar-color: #acbad0 var(--background); }
body { margin: 0; background: var(--background); color: var(--text); }
body:has(dialog[open]) { overflow: hidden; }

.startup-screen { display: none; }
.startup-loading { overflow: hidden; }
.startup-loading :is(.layout, .skip-link) { visibility: hidden; }
.startup-loading .startup-screen, .startup-exiting .startup-screen {
  position: fixed;
  z-index: 10;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.5rem;
  background: radial-gradient(ellipse at 50% 46%, #e8ebfa 0%, #f5f7fc 36%, #fafbfd 71%);
  color: #536481;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
}
.startup-exiting .startup-screen {
  pointer-events: none;
  animation: startup-reveal 230ms ease-out both;
}
.startup-orb {
  position: relative;
  isolation: isolate;
  width: clamp(5.5rem, 15vmin, 7.75rem);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #323d615e;
  border-radius: 50%;
  background: #7779b1;
  box-shadow: 0 0.8rem 2.45rem #4c559d2b, 0 0 2.1rem #9ca5d84a;
}
.startup-orb::before {
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(ellipse 30% 65% at 76% 72%, #4c3a5d 14%, #796db1 47%, #302b4f 56%, #193e96 61%, #a8c3dd 69%, transparent 77%),
    radial-gradient(ellipse 39% 64% at 24% 30%, #242638 19%, #30344a 41%, #5c4f85 51%, #a47eb1 63%, transparent 77%),
    linear-gradient(148deg, #d8e4ef 21%, #abc8df 38%, #9d91b6 49%, #5d528f 65%, #3c477c 82%);
  transform: rotate(-34deg);
  animation: startup-reflection 1.9s ease-in-out infinite alternate;
  content: "";
}
.startup-orb::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 31% 23%, #fff9 0%, transparent 44%),
    radial-gradient(ellipse at 48% 43%, transparent 53%, #9baedd92 91%, #292e52 100%);
  box-shadow: inset -1px -2px 4px #30294e55, inset 0 2px 5px #eee9ffbb;
  content: "";
}
@keyframes startup-reflection {
  from { transform: rotate(-34deg) translate(-2%, 2%); }
  to { transform: rotate(38deg) translate(3%, -4%); }
}
@keyframes startup-reveal {
  from { opacity: 1; }
  to { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .startup-orb::before, .startup-exiting .startup-screen { animation: none; }
}

.desk-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  isolation: isolate;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(ellipse at 93% 2%, #e1eeff, transparent 62%),
    radial-gradient(ellipse at 12% 7%, #ebe8f8, transparent 57%), var(--background);
}
.desk-background::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background: url("aero-shards-still.webp") center / cover no-repeat;
  mask-image: linear-gradient(to bottom, #0009, #0003 55%, transparent);
  opacity: 0.09;
  transition: opacity 220ms ease;
  content: "";
}
.desk-background:is([data-aero-state="live"], [data-aero-state="fallback"])::before { opacity: 0; }
.desk-background .aero-shards {
  position: absolute;
  inset: 0;
  mask-image: linear-gradient(to bottom, #000, #0008 55%, transparent);
  opacity: 0.13;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:disabled { opacity: 0.55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
.tone-neutral { --tone: var(--neutral); }
.tone-sky { --tone: var(--sky); }
.tone-iris, [data-category="software"], [data-type="software"] { --tone: var(--iris); }
.tone-mint, [data-category="website"], [data-type="website"] { --tone: var(--mint); }
.tone-amber, [data-category="asset"], [data-type="asset"] { --tone: var(--amber); }
.tone-rose { --tone: var(--rose); }
.visually-hidden, .skip-link:not(:focus), .feedback:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.feedback:empty { inset: 0 auto auto 0; }
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: 0.45rem;
  background: var(--accent);
  color: var(--accent-ink);
}
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100dvh;
  grid-template-columns: 9.2rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  background: #f5f7fccc;
}
.sidebar {
  position: sticky;
  top: 3.8rem;
  display: flex;
  min-width: 0;
  min-height: calc(100dvh - 3.8rem);
  flex-direction: column;
  align-self: start;
  gap: 0.35rem;
  padding: 0.95rem 0.65rem;
  border-inline-end: 1px solid var(--edge);
  background: linear-gradient(170deg, #ffffff, #f4f7fc 78%);
}
.brand { display: flex; flex: 0 0 auto; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 0.37rem;
  height: 1.68rem;
  flex: 0 0 auto;
  border-radius: 0.24rem;
  background: var(--accent);
  box-shadow: 0 0 0.7rem #4283e82e;
}
.brand h1 { font-size: clamp(1.08rem, 1.8vw, 1.45rem); font-weight: 730; letter-spacing: 0.015em; }
.navigation { display: grid; width: 100%; gap: 0.32rem; }
.navigation button, .directory-link {
  display: flex;
  width: 100%;
  min-height: 2.62rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.68rem;
  border: 1px solid transparent;
  border-radius: 0.54rem;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
  font-size: 0.85rem;
  text-align: start;
}
.nav-icon { display: grid; width: 1.2rem; place-items: center; color: var(--tone); }
.navigation button:hover, .directory-link:hover { background: var(--raised); }
.navigation button[aria-pressed="true"] { border-color: #ccddf9; background: linear-gradient(110deg, var(--accent-soft), #f1f6ff); color: #24559e; font-weight: 680; }
.navigation button[aria-pressed="true"] .nav-icon { color: var(--accent); }
.directory-link { margin-top: 0.2rem; }
.directory-link > .icon { margin-inline: 0.1rem; color: var(--neutral); }
.storage-info { display: flex; align-items: center; gap: 0.48rem; margin-top: auto; padding: 0.62rem 0.6rem 0.15rem; color: var(--muted); }
.storage-info .icon { color: var(--sky); }
.storage-info small { font-size: 0.73rem; }


.icon { position: relative; display: inline-block; width: 1rem; height: 1rem; flex: 0 0 auto; color: inherit; }
.icon::before, .icon::after { position: absolute; content: ""; }
.icon-grid { border: 1px solid currentColor; border-radius: 3px; background: linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat, linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat; }
.icon-link::before, .icon-link::after { width: 9px; height: 6px; border: 1px solid currentColor; border-radius: 5px; transform: rotate(-42deg); }
.icon-link::before { top: 3px; left: 6px; }
.icon-link::after { top: 7px; left: 1px; }
.icon-software::before { inset: 1px 0; border: 1px solid currentColor; border-radius: 3px; }
.icon-software::after { inset: 5px 1px auto; height: 1px; background: currentColor; }
.icon-folder::before { inset: 4px 0 2px; border: 1px solid currentColor; border-radius: 2px; }
.icon-folder::after { top: 2px; left: 0; width: 7px; height: 3px; border: solid currentColor; border-width: 1px 1px 0; border-radius: 2px 2px 0 0; }
.icon-drive::before { inset: 3px 0; border: 1px solid currentColor; border-radius: 3px; }
.icon-drive::after { bottom: 6px; right: 4px; width: 4px; height: 1px; background: currentColor; }
.icon-search::before { top: 1px; left: 1px; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%; }
.icon-search::after { top: 10px; left: 10px; width: 6px; height: 1.5px; border-radius: 1px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.icon-plus { background: linear-gradient(currentColor,currentColor) center / 1.5px 12px no-repeat, linear-gradient(currentColor,currentColor) center / 12px 1.5px no-repeat; }
.icon-upload::before { inset: 8px 1px 1px; border: solid currentColor; border-width: 0 1px 1px; border-radius: 0 0 2px 2px; }
.icon-upload::after { top: 1px; left: 6px; width: 5px; height: 5px; border: solid currentColor; border-width: 1px 0 0 1px; transform: rotate(45deg); }
.icon-upload { background: linear-gradient(currentColor,currentColor) center 3px / 1px 7px no-repeat; }
.icon-launch::before { top: 3px; right: 3px; width: 7px; height: 7px; border-top: 1.5px solid; border-right: 1.5px solid; }
.icon-launch::after { top: 12px; left: 3px; width: 12px; height: 1.5px; background: currentColor; transform: rotate(-45deg); transform-origin: left center; }
.icon-download { background: linear-gradient(currentColor,currentColor) center 1px / 1.5px 8px no-repeat; }
.icon-download::before { top: 5px; left: 5px; width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg); }
.icon-download::after { inset: 10px 1px 1px; border: solid currentColor; border-width: 0 1.5px 1.5px; border-radius: 0 0 3px 3px; }
.workspace { min-width: 0; min-height: calc(100dvh - 3.8rem); padding: clamp(0.75rem, 1.25vw, 1.15rem); }
.dashboard-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  min-height: 3.8rem;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.6rem clamp(0.85rem, 1.5vw, 1.5rem);
  border-bottom: 1px solid var(--edge);
  background: #ffffffed;
  backdrop-filter: blur(12px);
}
.toolbar-tools { display: flex; min-width: 0; align-items: center; gap: 0.85rem; }
.dashboard-date { padding-inline: 0.9rem; border-inline: 1px solid var(--edge); color: var(--muted); font-size: 0.83rem; white-space: nowrap; }
.search kbd { flex: 0 0 auto; padding: 0.08rem 0.32rem; border: 1px solid var(--border); border-radius: 0.28rem; background: var(--raised); color: var(--muted); font: 0.69rem var(--mono); white-space: nowrap; }


.search {
  display: flex;
  width: min(100%, 29rem);
  min-width: 0;
  min-height: 2.8rem;
  align-items: center;
  gap: 0.63rem;
  padding-inline: 0.7rem;
  border: 1px solid var(--border);
  border-radius: 0.66rem;
  background: var(--surface);
  color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search input { width: 100%; min-width: 0; min-height: 2.7rem; padding: 0.35rem 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 0.94rem; }
.search input::placeholder { color: var(--muted); }
.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.42rem 0.83rem;
  border: 1px solid transparent;
  border-radius: 0.48rem;
  background: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.primary { border-color: #225ab7; background: var(--accent); color: var(--accent-ink); box-shadow: 0 2px 6px #28457a20; }
.primary:hover:not(:disabled) { background: #2053ab; }
.secondary { border-color: var(--border); background: var(--raised); }
.secondary:hover:not(:disabled) { border-color: #a8bbd6; background: #e4edf9; }
.subtle { color: var(--muted); }
.subtle:hover:not(:disabled) { background: var(--raised); color: var(--text); }
.danger { border-color: #ecd0d7; color: var(--danger); }
.danger:hover:not(:disabled) { background: #fceef2; }
.danger-solid { border-color: #a73748; background: var(--danger); color: #fff; }
.danger-solid:hover:not(:disabled) { background: #892c39; color: #fff; }
.dashboard {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 0.76rem;
  margin-bottom: 0.95rem;
}
.dash-panel {
  min-width: 0;
  grid-column: span 6;
  padding: 0.84rem;
  border: 1px solid var(--edge);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: 0 0.25rem 0.8rem #213e6d0a;
}
.dash-panel h2, .panel-heading h2 {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  font-size: 1rem;
  font-weight: 710;
  white-space: nowrap;
}
.dash-panel h2 > .icon, .panel-heading h2 > .icon { color: var(--sky); }
.dash-panel-heading { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 0.35rem; }
.dash-panel-heading a, .dash-date-range { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.dash-panel-heading a:hover { color: var(--sky); }
.dash-panel-heading .board-directory-title { display: inline-flex; align-items: center; gap: 0.48rem; color: inherit; font-size: inherit; }
.board-directory-title > .icon { color: var(--sky); }
.dash-panel-heading .board-directory-title:hover { color: var(--sky); }
.dash-hero {
  display: flex;
  min-height: 11.3rem;
  grid-column: span 10;
  flex-direction: column;
  padding: 0.95rem;
  border-color: #c8d9ef;
  background: linear-gradient(92deg, #f6fbfffc, #ecf5fff0 31%, #dcecffb5 65%, #c4dbf899), url("workstation-mountains.jpg") center 49% / cover no-repeat, #e0edfd;
}
.dash-hero h2 { font-size: clamp(1.35rem, 2.15vw, 1.85rem); line-height: 1.25; letter-spacing: -0.035em; }
.dash-hero p { margin: 0.26rem 0 0.78rem; color: #415a76; font-size: 0.84rem; }
.overview-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-top: auto; }
.overview-card {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 3.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 0.43rem;
  padding: 0.44rem 0.5rem;
  border: 1px solid #d0def0;
  border-radius: 0.66rem;
  background: #ffffffde;
  color: var(--text);
  text-align: start;
}
.overview-card:hover, .overview-card[aria-pressed="true"] { border-color: color-mix(in srgb, var(--tone) 55%, white); background: #f5f9ff; }
.overview-icon { display: grid; width: 1.9rem; height: 1.9rem; grid-row: span 2; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--tone) 12%, white); color: var(--tone); }
.overview-label { color: var(--muted); font-size: 0.72rem; line-height: 1.3; overflow-wrap: anywhere; }
.overview-card > .icon { position: absolute; top: 0.28rem; right: 0.32rem; width: 0.75rem; color: var(--tone); transform: scale(0.65); }
.overview-number { font-size: 1.3rem; font-weight: 710; line-height: 1.1; font-variant-numeric: tabular-nums; }
.overview-detail { grid-column: 1 / -1; margin-top: 0.22rem; color: var(--muted); font-size: 0.68rem; }
.dash-shortcuts, .dash-pinned { grid-column: span 5; }
.dash-actions { grid-column: span 4; }
.quick-groups, .pinned-links { display: grid; gap: 0.12rem; margin-top: 0.45rem; }
.quick-group, .pinned-links a, .recent-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 1.85rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.32rem;
  border: 1px solid transparent;
  border-radius: 0.46rem;
  background: transparent;
  color: var(--text);
  text-align: start;
  font-size: 0.78rem;
}
.quick-group::before { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--tone); content: ""; }
.quick-group:hover, .quick-group[aria-pressed="true"], .pinned-links a:hover, .recent-item:hover { border-color: var(--edge); background: var(--raised); }
.quick-count { color: var(--tone); font-size: 0.74rem; font-variant-numeric: tabular-nums; }
.pinned-links a > .icon { color: var(--muted); transform: scale(0.75); }
.pinned-links .resource-icon, .recent-icon { width: 1.38rem; height: 1.38rem; border-radius: 0.36rem; }
.pinned-links .resource-favicon, .recent-icon .resource-favicon { width: 1.12rem; height: 1.12rem; }
.pinned-name, .recent-title, .board-group-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.42rem; margin-top: 0.55rem; }
.action-grid button {
  display: grid;
  min-height: 3.15rem;
  justify-items: center;
  align-content: center;
  gap: 0.18rem;
  padding: 0.25rem;
  border: 1px solid #dce6f3;
  border-radius: 0.57rem;
  background: linear-gradient(145deg, #f7faff, #eff4fc);
  color: var(--text);
  font-size: 0.73rem;
  white-space: nowrap;
}
.action-grid button .icon { color: var(--sky); }
.action-grid button:hover { border-color: #a9c4eb; background: var(--accent-soft); }

.dash-board { grid-column: span 13; }
.dash-week { grid-column: span 11; }
.workflow-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.48rem; margin-top: 0.65rem; }
.board-column { min-width: 0; overflow: hidden; padding-bottom: 0.22rem; border: 1px solid var(--edge); border-radius: 0.62rem; background: color-mix(in srgb, var(--tone) 3%, white); }
.board-heading { margin: 0 0 0.2rem; font-size: 0.81rem; font-weight: 680; }
.board-heading-button {
  display: flex;
  width: 100%;
  min-height: 2.75rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.4rem 0.55rem;
  border: 0;
  background: color-mix(in srgb, var(--tone) 13%, white);
  color: var(--tone);
  font-weight: inherit;
  text-align: start;
}
.board-heading-button::after { content: "›" / ""; font-size: 1.12rem; line-height: 1; }
.board-heading-button:hover { background: color-mix(in srgb, var(--tone) 21%, white); }
.board-heading-button:focus-visible { outline-offset: -3px; }
.board-group {
  display: grid;
  width: 100%;
  min-height: 2.02rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.26rem;
  padding: 0.26rem 0.43rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  text-align: start;
  color: var(--text);
  font-size: 0.76rem;
}
.board-group:hover { background: var(--raised); }
.board-count { padding: 0.02rem 0.23rem; border-radius: 0.24rem; background: color-mix(in srgb, var(--tone) 11%, white); color: var(--tone); font: 0.71rem var(--mono); }
.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.25rem; margin-top: 0.65rem; }
.week-day { display: grid; min-width: 0; justify-items: center; align-content: start; gap: 0.1rem; padding: 0.3rem 0.12rem; border: 1px solid var(--edge); border-radius: 0.38rem; background: #f8faff; color: var(--muted); font-size: 0.68rem; }
.week-day.is-today { border-color: #a4c4f0; background: var(--accent-soft); color: #315e9a; }
.week-count, .week-label { color: var(--text); font-weight: 650; }
.week-meter { position: relative; width: 66%; height: 2.05rem; overflow: hidden; border-radius: 0.26rem; background: #e9eff9; }
.week-meter::after { position: absolute; right: 0; bottom: 0; left: 0; height: var(--day-height); background: linear-gradient(#8bb9f3, #508bde); content: ""; }
.week-summary { margin-top: 0.44rem; color: var(--muted); font-size: 0.73rem; }

.collection-bars, .recent-list { display: grid; gap: 0.04rem; margin-top: 0.4rem; }
.collection-bars .board-group { grid-template-columns: minmax(0, 1.35fr) minmax(1rem, 1fr) auto; gap: 0.36rem; }
.collection-bars .board-count { grid-area: 1 / 3; }
.collection-meter { grid-area: 1 / 2; height: 0.29rem; overflow: hidden; border-radius: 1rem; background: #e6ecf5; }
.collection-meter::before { display: block; width: var(--meter-width); height: 100%; border-radius: inherit; background: color-mix(in srgb, var(--tone) 75%, white); content: ""; }
.recent-item { min-height: 1.98rem; }
.recent-date { color: var(--muted); font-size: 0.66rem; white-space: nowrap; }
.recent-icon { display: grid; flex: 0 0 auto; place-items: center; background: var(--raised); color: var(--sky); }
.recent-icon .icon { transform: scale(0.76); }
.panel-empty { padding-block: 0.7rem; color: var(--muted); font-size: 0.76rem; }

.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.55rem; }
.topic {
  display: grid;
  min-width: 0;
  min-height: 4.6rem;
  align-content: start;
  gap: 0.31rem;
  padding: 0.55rem;
  border: 1px solid #cbd8e950;
  border-radius: 0.56rem;
  color: #192939;
  text-align: start;
}
.topic-china { background: linear-gradient(145deg, #eef6ff, #dcecff); }
.topic-editing { background: linear-gradient(145deg, #edf8f5, #d9f0e6); }
.topic-ecommerce { background: linear-gradient(145deg, #f8f2ff, #e9defa); }
.topic-packaging { background: linear-gradient(145deg, #fff5ea, #f6e2cd); }
.topic-operations { background: linear-gradient(145deg, #edf4ff, #dbe6f9); }
.topic-modeling { background: linear-gradient(145deg, #f0f6e7, #e0ecd2); }
.topic-grid .topic-commerce { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-content: center; align-items: center; gap: 0.55rem; min-height: 2.75rem; background: linear-gradient(145deg, #fff1ee, #f4deda); }
.topic-commerce .topic-count { margin: 0; white-space: nowrap; }
.topic:hover { border-color: #9db8df; }
.topic strong { font-size: 0.8rem; }
.topic span { font-size: 0.72rem; }
.topic-count { margin-top: 0.3rem; font-weight: 680; }
.distribution { display: grid; grid-template-columns: minmax(4.4rem, 0.85fr) minmax(0, 1fr); align-items: center; gap: 0.5rem; min-height: 7.75rem; padding-block: 0.5rem 0; }
.distribution-ring { position: relative; isolation: isolate; display: grid; width: min(100%, 6.6rem); aspect-ratio: 1; align-content: center; justify-items: center; border-radius: 50%; background: var(--ring-fill, var(--border)); }
.distribution-ring::before { position: absolute; z-index: -1; inset: 0.49rem; border-radius: 50%; background: var(--surface); content: ""; }
.distribution-ring strong { color: var(--text); font-size: 1.15rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.distribution-ring span { color: var(--muted); font-size: 0.66rem; }
.distribution-legend { display: grid; gap: 0.45rem; }
.distribution-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.26rem; color: var(--text); font-size: 0.69rem; }
.distribution-legend li::before { width: 0.41rem; height: 0.41rem; border-radius: 50%; background: var(--legend-color); content: ""; }
.distribution-legend strong { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }

.resource-panel {
  min-width: 0;
  padding: clamp(0.75rem, 1.5vw, 1.18rem);
  scroll-margin-top: 4.65rem;
  border: 1px solid var(--edge);
  border-radius: 0.9rem;
  background: var(--surface);
}
.panel-heading { display: flex; min-height: 2.75rem; align-items: center; justify-content: space-between; gap: 0.55rem; margin-bottom: 0.55rem; }
.panel-heading h2 { font-size: 1.16rem; scroll-margin-top: 4.65rem; }
#view-count { margin-top: 0.16rem; color: var(--muted); font-size: 0.78rem; }
.icon-board { border: 1px solid currentColor; border-radius: 0.16rem; background: linear-gradient(currentColor, currentColor) 39% 50% / 1px 72% no-repeat, linear-gradient(currentColor, currentColor) 68% 50% / 1px 72% no-repeat; }
.icon-calendar { border: 1px solid currentColor; border-radius: 0.18rem; background: linear-gradient(currentColor, currentColor) 50% 37% / 100% 1px no-repeat; }
.icon-calendar::before { top: -2px; left: 3px; width: 1px; height: 4px; background: currentColor; box-shadow: 7px 0 currentColor; }
.icon-file { width: 0.82rem; border: 1px solid currentColor; border-radius: 0.13rem; }
.icon-file::before { inset: 3px 2px auto; height: 1px; background: currentColor; box-shadow: 0 4px currentColor; }
.icon-note { border: 1px solid currentColor; border-radius: 0.19rem; background: linear-gradient(currentColor, currentColor) 50% 40% / 60% 1px no-repeat, linear-gradient(currentColor, currentColor) 36% 69% / 35% 1px no-repeat; }
.icon-chart { border-bottom: 1px solid currentColor; background: linear-gradient(currentColor, currentColor) 19% 100% / 2px 39% no-repeat, linear-gradient(currentColor, currentColor) 50% 100% / 2px 65% no-repeat, linear-gradient(currentColor, currentColor) 81% 100% / 2px 94% no-repeat; }


.category-picker { min-width: 0; margin-bottom: 1.12rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--edge); }
.directory-types { display: flex; flex-wrap: wrap; gap: 0.36rem; margin-bottom: 0.65rem; }
.directory-types button { min-height: 2.75rem; padding: 0.35rem 0.65rem; border: 1px solid var(--edge); border-radius: 0.48rem; background: var(--surface); color: var(--muted); font: inherit; font-size: 0.77rem; }
.directory-types button[aria-pressed="true"], .directory-types button:hover { border-color: #bbd2f5; background: #edf5ff; color: #215a9d; }
.directory-types .nav-count { margin-inline-start: 0.37rem; font-size: 0.66rem; }
.group-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.category-loop-layout { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content; align-items: center; gap: 0.6rem; }
.category-loop-track .logoloop { padding-block: 4px; }
.group-filters button, .category-chip, .category-toggle, .ai-purpose-nav a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.33rem 0.55rem;
  border: 1px solid color-mix(in srgb, var(--tone) 13%, var(--edge));
  border-radius: 0.55rem;
  background: color-mix(in srgb, var(--tone) 5%, var(--surface));
  color: var(--tone);
  font-size: 0.83rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
:is(.group-filters button, .category-chip, .category-toggle, .ai-purpose-nav a):hover,
:is(.group-filters button, .category-chip)[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--tone) 49%, var(--border));
  background: color-mix(in srgb, var(--tone) 13%, var(--surface));
}
.logoloop__item .category-chip { display: flex; }
.category-chip .logoloop__node { gap: 0.42rem; }
.category-reset .icon { width: 0.85rem; height: 0.85rem; }
.category-toggle { width: 2.75rem; padding: 0; }
.icon-pause {
  background: linear-gradient(currentColor, currentColor) left 4px center / 2px 10px no-repeat,
    linear-gradient(currentColor, currentColor) right 4px center / 2px 10px no-repeat;
}
.icon-play::before { top: 3px; left: 5px; border: solid transparent; border-width: 5px 0 5px 7px; border-left-color: currentColor; }
.group-filter-count { color: var(--muted); font: 0.78rem var(--mono); }
.sort { flex: 0 0 auto; }
select {
  min-height: 2.75rem;
  appearance: none;
  padding: 0.4rem 2rem 0.4rem 0.68rem;
  border: 1px solid var(--border);
  border-radius: 0.48rem;
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 13px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 8px center / 5px 5px no-repeat, var(--raised);
}
.sort select { border-color: var(--border); background-color: var(--raised); font-size: 0.82rem; }
.empty-state {
  display: flex;
  min-height: clamp(21rem, 53vh, 33rem);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 0.8rem;
  background: radial-gradient(ellipse at 50% 38%, #edf4ff 0, var(--surface) 68%);
  text-align: center;
}
.empty-icon {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  margin-bottom: 1.17rem;
  border: 1px solid #c8daf4;
  border-radius: 1.05rem;
  background: var(--accent-soft);
  color: var(--sky);
}
.empty-icon .icon { transform: scale(1.8); }
.empty-state h2 { font-size: 1.25rem; font-weight: 700; }
.empty-state p { max-width: 23rem; margin-top: 0.5rem; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.notice { margin-bottom: 1rem; padding: 0.8rem 1rem; border: 1px solid #ead9bc; border-radius: 0.5rem; background: #fff7e8; color: #714c21; }

.resource-groups { display: grid; gap: clamp(1.45rem, 2.2vw, 2.1rem); }
.access-section { display: grid; min-width: 0; gap: 1.45rem; }
.access-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.65rem; padding: 0.72rem 0.82rem; border: 1px solid #cfe8de; border-radius: 0.63rem; background: #edf8f4; color: #1e5b4d; }
[data-access-section="paid"] .access-heading { border-color: #eddbbf; background: #fdf5e9; color: #794a25; }
[data-access-section="preview"] .access-heading { border-color: #dccfec; background: #f7f1ff; color: #584184; }
.access-heading h2 { font-size: 1rem; }
.access-heading p { grid-column: 1; color: var(--muted); font-size: 0.75rem; }
.access-heading > span { grid-area: 1 / 2 / span 2; font-size: 0.78rem; white-space: nowrap; }

.vault-dialog { width: min(42rem, calc(100% - 1.25rem)); }
.vault-access, .vault-content { display: grid; gap: 0.85rem; padding: 1rem 1.15rem; }
.vault-access p, .vault-limit { color: var(--muted); font-size: 0.82rem; }
.vault-access .primary { justify-self: start; }
.vault-remember { display: flex; align-items: center; gap: 0.45rem; color: var(--muted); font-size: 0.85rem; }
.vault-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.vault-tools #vault-lock { margin-inline-start: auto; }
.vault-upload { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.6rem; align-items: end; }
.vault-upload input { width: 100%; }
.vault-list-header { display: flex; justify-content: space-between; align-items: center; gap: 0.55rem; }
.vault-list-header h3 { margin: 0; font-size: 1rem; }
.vault-list { display: grid; gap: 0.4rem; }
.vault-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.7rem; padding: 0.72rem; border: 1px solid var(--edge); border-radius: 0.55rem; background: var(--raised); }
.vault-row strong, .vault-row small { display: block; overflow-wrap: anywhere; }
.vault-row small { color: var(--muted); }
.vault-row-actions { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.vault-feedback { padding: 0 1.15rem 1rem; }
.vault-feedback p { color: var(--muted); font-size: 0.82rem; }
.vault-feedback .vault-warning { color: var(--danger); }
.vault-feedback progress { width: 100%; accent-color: var(--accent); }
#vault-status:empty { display: none; }
.group-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.95rem;
}
.group-heading h3 {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
}
.group-heading h3::before {
  width: 0.5rem;
  height: 0.5rem;
  flex: 0 0 auto;
  border-radius: 0.12rem;
  background: var(--tone);
  content: "";
}
.group-summary { margin-top: 0.35rem; color: var(--muted); font-size: 0.87rem; }
.group-total {
  flex: 0 0 auto;
  padding: 0.2rem 0.54rem;
  border: 1px solid var(--edge);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--tone) 9%, var(--surface));
  color: var(--tone);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}
.ai-purpose-nav { display: flex; flex-wrap: wrap; gap: 0.38rem; margin-block: 0.85rem 1.05rem; }
.ai-purpose-nav a { padding-inline: 0.62rem; }
.ai-purpose-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0 0.62rem;
  scroll-margin-top: 6rem;
  color: var(--tone);
  font-size: 0.94rem;
  font-weight: 650;
}
.ai-purpose-heading::after { height: 1px; flex: 1; background: var(--edge); content: ""; }
.ai-purpose-heading:target { text-decoration: underline; text-underline-offset: 0.24em; }
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.7rem), 1fr));
  gap: 0.62rem;
}
.resource-row {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 0.94rem;
  border: 1px solid var(--edge);
  border-radius: 0.88rem;
  background: linear-gradient(150deg, color-mix(in srgb, var(--tone) 4%, #f8faff), #fbfcff 75%);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.resource-row:hover, .resource-row:focus-within {
  border-color: color-mix(in srgb, var(--tone) 28%, var(--border));
  box-shadow: 0 5px 15px #2447630c;
}
.resource-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.55rem; }
.resource-identity { display: flex; min-width: 0; align-items: flex-start; gap: 0.65rem; }
.resource-icon {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tone) 12%, var(--edge));
  border-radius: 0.66rem;
  background: color-mix(in srgb, var(--tone) 8%, #f6f9fd);
  color: var(--tone);
}
.website-icon > * { grid-area: 1 / 1; }
.resource-icon-mark { font-size: 0.8rem; font-weight: 750; letter-spacing: 0.015em; white-space: nowrap; }
.resource-favicon {
  width: 1.65rem;
  height: 1.65rem;
  padding: 0.13rem;
  border-radius: 0.3rem;
  background: #f1f4fa;
  object-fit: contain;
  opacity: 0;
}
.resource-favicon.light-favicon { background: #20293b; }
.has-favicon .resource-favicon { opacity: 1; }
.has-favicon .resource-icon-mark { visibility: hidden; }
.resource-name { min-width: 0; padding-top: 0.03rem; }
.resource-title { margin: 0; font-size: 1rem; font-weight: 690; line-height: 1.42; overflow-wrap: anywhere; }
.resource-location { margin-top: 0.14rem; overflow: hidden; color: var(--muted); font-size: 0.77rem; text-overflow: ellipsis; white-space: nowrap; }
.resource-note { margin-top: 0.67rem; color: var(--muted); font-size: 0.83rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.resource-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-top: auto; padding-top: 0.52rem; }
.resource-meta { position: relative; min-width: 0; }
.resource-tags { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.resource-tags li { min-width: 0; max-width: 100%; padding: 0.09rem 0.38rem; border: 1px solid var(--edge); border-radius: 0.32rem; background: var(--raised); color: var(--muted); font-size: 0.72rem; overflow-wrap: anywhere; }
.resource-tags .access-badge { border-color: #cce6db; background: #e9f7ef; color: #215b4b; font-weight: 630; }
.resource-tags .access-paid { border-color: #eddbbc; background: #fcf0db; color: #784b21; }
.resource-tags .access-section-preview { border-color: #e3d5f5; background: #f2eafa; color: #5d4789; }
.resource-tags .access-check { border-color: var(--edge); background: var(--raised); color: var(--muted); }
.resource-tags .purpose-tag {
  border-color: color-mix(in srgb, var(--tone) 18%, var(--edge));
  background: color-mix(in srgb, var(--tone) 9%, var(--surface));
  color: var(--tone);
}
.row-actions { display: flex; flex: 0 0 auto; }
.row-actions .button {
  width: 2.75rem;
  padding: 0;
  border-color: var(--edge);
  border-radius: 0.65rem;
  background: var(--surface);
  color: var(--tone);
}
.row-actions .button:hover {
  border-color: color-mix(in srgb, var(--tone) 38%, var(--border));
  background: color-mix(in srgb, var(--tone) 11%, var(--raised));
}
.resource-edit { min-height: 2.15rem; flex: 0 0 auto; padding-inline: 0.46rem; color: var(--muted); font-size: 0.76rem; }

.resource-list:has(.site-pages[open]) { align-items: start; }
.site-pages { margin-top: 0.62rem; border-top: 1px solid var(--edge); }
.site-pages summary { padding: 0.6rem 0 0.15rem; color: var(--tone); font-size: 0.81rem; font-weight: 650; cursor: pointer; }
.site-pages summary:focus-visible { outline: 2px solid var(--tone); outline-offset: 3px; }
.site-page-list { max-height: min(22rem, 53vh); margin-top: 0.35rem; overflow-y: auto; overscroll-behavior: contain; }
.site-page { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 0.1rem 0.35rem; align-items: center; padding: 0.48rem 0; }
.site-page + .site-page { border-top: 1px solid var(--edge); }
.site-page-link { align-self: end; color: var(--text); font-size: 0.83rem; font-weight: 620; overflow-wrap: anywhere; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 0.18em; }
.site-page-link:hover, .site-page-link:focus-visible { color: var(--tone); text-decoration: underline; text-underline-offset: 0.18em; }
.site-page-access { grid-column: 1; align-self: start; color: var(--muted); font-size: 0.72rem; }
.site-page .resource-edit { grid-area: 1 / 2 / span 2 / 3; }

dialog { --dialog-surface: var(--surface); width: min(34rem, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem); padding: 0; border: 1px solid var(--border); border-radius: 1rem; background: var(--dialog-surface); color: var(--text); box-shadow: 0 1.25rem 5rem #2539513d; }
dialog::backdrop { background: #2f44674d; backdrop-filter: blur(5px); }
.dialog-header { position: sticky; z-index: 1; top: 0; display: flex; min-height: 3.7rem; align-items: center; justify-content: space-between; gap: 0.65rem; padding: 0.55rem 1.15rem; border-bottom: 1px solid var(--border); background: var(--dialog-surface); }
.dialog-header h2 { font-size: 1.17rem; }
.close { width: 2.75rem; min-height: 2.75rem; padding: 0; border: 1px solid var(--border); border-radius: 0.45rem; background: var(--raised); color: var(--text); font-size: 1.4rem; line-height: 1; }
.close:hover { border-color: #788da9; }
.fields { display: grid; gap: 0.8rem; padding: 1rem 1.15rem; }
.field-pair { display: grid; gap: 0.65rem; }
.field-pair:has(#source-field:not([hidden]), #group-field:not([hidden])) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.field-pair #source-field:not([hidden]) ~ #group-field { grid-column: 1 / -1; }
.field { display: grid; min-width: 0; gap: 0.27rem; color: var(--text); font-size: 0.9rem; font-weight: 650; }
.field small { color: var(--muted); font-size: 0.82rem; font-weight: 400; overflow-wrap: anywhere; }
.field :is(input, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 0.43rem;
  background: #f9fbff;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}
.field select { width: 100%; min-width: 0; border-color: var(--border); font-size: 1rem; font-weight: 400; }
.field textarea { resize: vertical; }
.field input::placeholder { color: #66788f; }
.field input[type="file"] { font-size: 0.88rem; }
.field input::file-selector-button { margin-right: 0.6rem; padding: 0.25rem 0.55rem; border: 1px solid var(--border); border-radius: 0.38rem; background: var(--raised); color: var(--text); cursor: pointer; }
.form-error { color: var(--danger); font-size: 0.9rem; }
.dialog-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 0.55rem; padding: 0.75rem 1.15rem; border-top: 1px solid var(--border); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-left: auto; }
#delete-dialog { width: min(27rem, calc(100% - 1.5rem)); overflow-wrap: anywhere; }
.feedback:not(:empty) { position: fixed; z-index: 5; right: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); padding: 0.62rem 0.9rem; border: 1px solid #b3dacd; border-radius: 0.55rem; background: #ebf8f3; color: #235d50; box-shadow: 0 0.6rem 2rem #31536c25; }

@media (width > 72rem) {
  .dash-board, .dash-week { min-height: 13.1rem; }
  .workflow-board { margin-top: 0.75rem; }
  .board-column .board-group { min-height: 2.35rem; }
  .week-meter { height: 4rem; }
  .dash-collections, .dash-recent, .dash-topics, .dash-distribution { min-height: 11.6rem; }
}

@media (max-width: 72rem) {
  .layout { grid-template-columns: 7.6rem minmax(0, 1fr); }
  .dash-hero { grid-column: span 24; min-height: 10.4rem; }
  .dash-shortcuts, .dash-pinned, .dash-actions { grid-column: span 8; }
  .dash-panel { padding: 0.72rem; }
  .dash-hero { padding: 0.92rem; }
  .dash-board, .dash-week { grid-column: span 12; }
  .workflow-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-collections, .dash-recent, .dash-topics, .dash-distribution { grid-column: span 12; }
}

@media (max-width: 46rem) {
  .layout { display: block; }
  .desk-background::before { background-image: url("aero-shards-still-mobile.webp"); }
  .dashboard-header { position: relative; flex-wrap: wrap; gap: 0.62rem; }
  .dashboard-date, .search kbd { display: none; }
  .toolbar-tools { flex: 1 1 100%; gap: 0.42rem; }
  .toolbar-tools .primary { padding-inline: 0.53rem; }
  .sidebar { position: static; min-height: 0; padding: 0.45rem 0.64rem; border-inline-end: 0; border-bottom: 1px solid var(--edge); }
  .navigation { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.18rem; }
  .navigation button { justify-content: center; padding-inline: 0.15rem; text-align: center; font-size: 0.71rem; }
  .navigation .nav-icon { display: none; }
  .directory-link, .storage-info { display: none; }
  .workspace { padding: 0.62rem; }
  .dashboard { gap: 0.52rem; }
  .dash-shortcuts, .dash-pinned { grid-column: span 12; }
  .dash-actions, .dash-board, .dash-week { grid-column: span 24; }
  .action-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .overview-icon { display: none; }
  .overview-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-card { grid-template-columns: minmax(0, 1fr); min-height: 3.48rem; }
  .overview-card[data-access="preview"] { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; }
  .overview-card[data-access="preview"] .overview-number { grid-area: 1 / 2 / span 2; margin-inline-end: 0.8rem; }
  .overview-card[data-access="preview"] .overview-detail { grid-column: 1; }
  .overview-number { font-size: 1.22rem; }
  .toolbar-tools .search input { font-size: 1rem; }
  .resource-edit { min-height: 2.65rem; }
  .empty-state { min-height: 20rem; }
}

@media (max-width: 34rem) {
  .vault-upload { grid-template-columns: minmax(0, 1fr) auto; }
  .vault-upload label:first-child { grid-column: 1 / -1; }
  .vault-row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .search { padding-inline: 0.46rem; }
  .toolbar-tools .search input { font-size: 0.91rem; }
  .category-picker { margin-bottom: 1rem; }
  .category-loop-layout { grid-template-columns: 1fr max-content; gap: 0.2rem 0.4rem; }
  .category-reset { justify-self: start; }
  .category-loop-track { grid-area: 2 / 1 / 3 / -1; }
  .group-filters { gap: 0.32rem; }
  .group-filters button { padding-inline: 0.4rem; }
  .ai-purpose-nav a { min-height: 2.35rem; }
  .resource-row { padding: 0.76rem; }
  .empty-actions .button { padding-inline: 0.45rem; }
  .dash-topics, .dash-distribution { grid-column: span 24; }
  .distribution { grid-template-columns: minmax(5rem, 0.65fr) minmax(0, 1fr); justify-items: center; }
  .distribution-legend { width: 100%; gap: 0.2rem; }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic { grid-column: auto; min-height: 4.5rem; }
  .collection-bars .board-group { gap: 0.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (pointer: coarse) {
  .toolbar-tools .search input { font-size: 1rem; }
}
