:root {
  color-scheme: dark;
  --page: #17211d;
  --page-deep: #0e1512;
  --paper: #f4efe3;
  --paper-soft: #e8e0d1;
  --ink: #1e2924;
  --ink-muted: #4f5d55;
  --line: rgba(244, 239, 227, 0.16);
  --line-dark: rgba(30, 41, 36, 0.14);
  --white: #fffdf7;
  --accent: #ef7447;
  --accent-deep: #bd4f2b;
  --lime: #c8d86a;
  --danger: #c64942;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max-width: 1480px;
  --font-display: "STKaiti", "KaiTi", "FangSong", Georgia, serif;
  --font-body: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--white);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--page);
  background-size: 44px 44px;
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 21, 18, 0.08), rgba(14, 21, 18, 0.72));
}

body.auth-pending > .topbar,
body.auth-pending > .page-shell,
body.auth-pending > .site-footer,
body.auth-pending > .edit-dock {
  visibility: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.9;
}

.ambient-one {
  top: -280px;
  right: -120px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(239, 116, 71, 0.23), transparent 66%);
}

.ambient-two {
  bottom: -300px;
  left: -220px;
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(200, 216, 106, 0.13), transparent 68%);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0.08em;
}

.brand-copy small,
.section-index,
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.brand-copy small {
  color: rgba(255, 253, 247, 0.5);
}

.topbar-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button,
.icon-button,
.board-tool,
.link-tool,
.search-submit,
.search-mode-button {
  border: 0;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: #29150d;
  background: var(--accent);
  box-shadow: 0 10px 26px rgba(239, 116, 71, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #ff8a5f;
}

.button-quiet {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px var(--line);
}

.sync-indicator {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 216, 106, 0.12);
}

.sync-indicator.is-local {
  background: rgba(255, 253, 247, 0.48);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.sync-indicator.is-syncing {
  background: #efb347;
  animation: sync-pulse 1.1s ease-in-out infinite;
}

.sync-indicator.is-offline {
  background: var(--danger);
}

.button-danger {
  color: #fff;
  background: var(--danger);
}

.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(440px, 1.2fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  padding: clamp(52px, 7vw, 92px) 0 clamp(42px, 5vw, 66px);
}

.eyebrow,
.section-index {
  margin: 0 0 16px;
  color: var(--lime);
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 74px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  display: block;
  color: var(--accent);
  font-style: normal;
}

.hero-note {
  max-width: 560px;
  margin: 18px 0 0;
  color: rgba(255, 253, 247, 0.64);
  font-size: 15px;
  line-height: 1.8;
}

.search-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.search-mode {
  display: inline-flex;
  padding: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-mode-button {
  min-height: 32px;
  padding: 0 13px;
  color: rgba(255, 253, 247, 0.66);
  background: transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  transition: color 160ms ease, background-color 160ms ease;
}

.search-mode-button.is-active {
  color: var(--ink);
  background: var(--lime);
}

.engine-picker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255, 253, 247, 0.6);
  font-size: 11px;
  font-weight: 700;
}

.engine-picker select {
  height: 34px;
  padding: 0 28px 0 11px;
  color: var(--white);
  background: #24322c;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
}

.engine-picker select:focus-visible {
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(200, 216, 106, 0.18);
}

.search-command {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 66px;
  padding: 8px 9px 8px 22px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.search-command::after {
  position: absolute;
  right: 38px;
  bottom: -10px;
  width: 68px;
  height: 20px;
  content: "";
  background: rgba(200, 216, 106, 0.74);
  transform: rotate(-2deg);
  opacity: 0.74;
}

.search-mark {
  margin-right: 14px;
  color: var(--accent-deep);
  font-family: Georgia, serif;
  font-size: 34px;
  line-height: 1;
}

.search-command input {
  min-width: 0;
  height: 54px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 15px;
}

.search-command input::placeholder {
  color: #778078;
}

.search-command:focus-within {
  box-shadow: 0 0 0 4px rgba(200, 216, 106, 0.25), var(--shadow);
}

.search-submit {
  position: relative;
  z-index: 1;
  min-height: 50px;
  padding: 0 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 15px;
  font-size: 13px;
  font-weight: 700;
}

.search-help {
  margin: 0 4px;
  color: rgba(255, 253, 247, 0.48);
  font-size: 11px;
  line-height: 1.5;
}

.workspace {
  padding: 34px 0 110px;
}

.workspace-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.workspace-heading .section-index {
  margin-bottom: 8px;
}

.workspace-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 500;
}

.workspace-meta {
  display: flex;
  gap: 22px;
  color: rgba(255, 253, 247, 0.58);
  font-size: 13px;
}

.edit-hint {
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 13px 16px;
  color: #263019;
  background: var(--lime);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
}

.edit-hint:not([hidden]) {
  display: flex;
}

.boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
  gap: 20px;
  align-items: start;
  padding-top: 26px;
}

.nav-board {
  position: relative;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.17);
  animation: board-in 520ms both;
  animation-delay: var(--delay, 0ms);
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 180ms ease;
}

.nav-board::before {
  display: block;
  width: 100%;
  height: 7px;
  content: "";
  background: var(--tone, var(--accent));
}

.nav-board:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.23);
}

.nav-board.is-dragging {
  z-index: 30;
  opacity: 0.72;
  transform: scale(1.018) rotate(0.4deg);
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.36);
}

.nav-board.is-filtered-out {
  display: none;
}

.board-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 20px 20px 14px;
}

.board-drag {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-muted);
  background: var(--paper-soft);
  border: 1px dashed rgba(30, 41, 36, 0.32);
  border-radius: 10px;
  cursor: grab;
  touch-action: none;
}

.board-drag:active {
  cursor: grabbing;
}

.board-title-wrap {
  min-width: 0;
}

.board-number {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-muted);
  font: 700 9px/1 Georgia, serif;
  letter-spacing: 0.16em;
}

.board-title {
  margin: 0;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 25px;
  padding: 0 9px;
  color: var(--ink-muted);
  background: rgba(30, 41, 36, 0.07);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 20px 14px;
  border-bottom: 1px dashed var(--line-dark);
}

.board-tool,
.link-tool,
.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
}

.board-tool {
  min-height: 32px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--paper-soft);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 700;
}

.board-tool:hover,
.board-tool:focus-visible {
  background: #dcd1be;
}

.board-tool.danger {
  color: #9e332f;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 20px 22px;
}

.board-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px 12px;
  color: var(--ink-muted);
  text-align: center;
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.link-card {
  position: relative;
  min-width: 0;
}

.link-card.is-filtered-out {
  display: none;
}

.link-anchor {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.72);
  border: 1px solid rgba(30, 41, 36, 0.09);
  border-radius: var(--radius-sm);
  transition: transform 170ms ease, border-color 170ms ease, background-color 170ms ease;
}

.link-anchor:hover,
.link-anchor:focus-visible {
  background: var(--white);
  border-color: var(--tone, var(--accent));
  outline: 0;
  transform: translateY(-2px);
}

.link-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--tone, var(--accent));
  border-radius: 11px 11px 11px 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
}

.link-copy {
  min-width: 0;
}

.link-name,
.link-host {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.link-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.link-host {
  margin-top: 3px;
  color: var(--ink-muted);
  font-family: Georgia, serif;
  font-size: 9px;
}

.link-actions {
  position: absolute;
  top: -7px;
  right: -7px;
  z-index: 2;
  display: flex;
  gap: 4px;
}

.link-tool {
  width: 27px;
  height: 27px;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.24);
  font-size: 12px;
}

.link-tool.danger {
  background: var(--danger);
}

body:not(.is-editing) .editing-only {
  display: none !important;
}

body.is-editing .nav-board {
  outline: 1px dashed rgba(200, 216, 106, 0.6);
  outline-offset: 4px;
}

body.is-editing .link-anchor {
  padding-right: 18px;
}

body.is-sorting {
  cursor: grabbing;
  user-select: none;
}

.empty-state {
  margin-top: 28px;
  padding: 60px 28px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}

.empty-state strong,
.empty-state span {
  display: block;
}

.empty-state strong {
  font-family: var(--font-display);
  font-size: 28px;
}

.empty-state span {
  margin-top: 8px;
  color: rgba(255, 253, 247, 0.55);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 34px;
  color: rgba(255, 253, 247, 0.43);
  border-top: 1px solid var(--line);
  font: 700 9px/1.5 Georgia, serif;
  letter-spacing: 0.15em;
}

.edit-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 9px;
  background: rgba(17, 25, 21, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(16px);
  transform: translateX(-50%);
}

.edit-dock-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 10px;
  color: rgba(255, 253, 247, 0.68);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.edit-dock-status i {
  width: 8px;
  height: 8px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 216, 106, 0.12);
}

.edit-dock .button-quiet {
  background: rgba(255, 255, 255, 0.1);
}

.modal {
  width: min(calc(100% - 32px), 560px);
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
}

.modal::backdrop {
  background: rgba(7, 12, 10, 0.78);
  backdrop-filter: blur(8px);
}

.modal form,
.modal-compact {
  padding: 26px;
}

.modal-compact {
  max-width: 480px;
}

.modal-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.modal-heading .section-index {
  margin-bottom: 6px;
  color: var(--accent-deep);
}

.modal-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
}

.icon-button {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--paper-soft);
  border-radius: 50%;
  font-size: 24px;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.field > span {
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  outline: 0;
}

.field input:focus,
.field select:focus {
  border-color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(239, 116, 71, 0.18);
}

.field small,
.data-note,
.modal-compact > p {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.modal .button-quiet {
  color: var(--ink);
  background: var(--paper-soft);
  box-shadow: none;
}

.data-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.account-summary > div {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  background: var(--paper-soft);
  border-radius: 12px;
}

.account-summary span {
  color: var(--ink-muted);
  font-size: 10px;
}

.account-summary strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-action {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: 13px;
  cursor: pointer;
}

.data-action:hover,
.data-action:focus-visible {
  border-color: var(--accent-deep);
}

.data-action span {
  color: var(--ink-muted);
  font-size: 11px;
}

.data-action.danger-zone strong {
  color: var(--danger);
}

.data-action.logout-action {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.data-action.logout-action span {
  color: rgba(255, 253, 247, 0.56);
}

.login-modal {
  width: min(calc(100% - 32px), 430px);
}

.login-modal form {
  padding: 30px;
}

.login-modal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 600;
}

.login-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font: 700 10px/1 Georgia, serif;
  letter-spacing: 0.12em;
}

.login-brand img {
  width: 32px;
  height: 32px;
}

.login-modal .section-index {
  margin-bottom: 8px;
  color: var(--accent-deep);
}

.login-note {
  margin: 10px 0 22px;
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 1.7;
}

.login-submit {
  width: 100%;
  margin-top: 4px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  max-width: min(calc(100% - 32px), 480px);
  padding: 12px 16px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 12px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes board-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sync-pulse {
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    align-items: start;
  }

  .search-command {
    max-width: 720px;
  }
}

@media (max-width: 620px) {
  .topbar,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .topbar {
    padding-top: 18px;
  }

  .brand img {
    width: 32px;
    height: 32px;
  }

  .brand {
    gap: 8px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .brand-copy small,
  #accountButton span,
  #dataButton span,
  #editToggle span {
    display: none;
  }

  .topbar-actions {
    gap: 5px;
  }

  .topbar-actions .button {
    flex-shrink: 0;
    padding-inline: 8px;
    font-size: 10px;
    white-space: nowrap;
  }

  .button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 11px;
  }

  .hero {
    padding: 48px 0 44px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero-note {
    font-size: 13px;
  }

  .search-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .search-mode {
    flex: 1 1 210px;
  }

  .search-mode-button {
    flex: 1;
  }

  .engine-picker {
    justify-content: space-between;
  }

  .search-command {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 60px;
    padding: 6px 7px 6px 14px;
  }

  .search-submit {
    min-height: 44px;
    padding: 0 12px;
    font-size: 11px;
  }

  .search-command::after {
    right: 26px;
  }

  .workspace-heading {
    align-items: start;
  }

  .workspace-meta {
    display: grid;
    gap: 5px;
    text-align: right;
  }

  .boards {
    grid-template-columns: 1fr;
  }

  .board-title {
    font-size: 25px;
  }

  .link-grid {
    gap: 8px;
    padding: 16px;
  }

  .board-header {
    padding-inline: 16px;
  }

  .board-actions {
    padding-inline: 16px;
  }

  .link-anchor {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 54px;
    padding: 8px;
  }

  .link-icon {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .site-footer {
    display: grid;
    text-align: center;
  }

  .edit-dock {
    bottom: 12px;
    gap: 7px;
    width: calc(100% - 24px);
    padding: 7px;
    border-radius: 18px;
  }

  .edit-dock-status {
    display: none;
  }

  .edit-dock .button {
    flex: 1;
    white-space: nowrap;
  }

  .account-summary {
    grid-template-columns: 1fr;
  }

  .login-modal form {
    padding: 24px;
  }
}

@media (max-width: 380px) {
  .brand-copy strong {
    font-size: 15px;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
