* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: #05080d; }
body {
  color: #f4f8ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
.mindmap-app {
  --line: rgba(185, 221, 255, .14);
  --muted: rgba(244, 248, 255, .62);
  --gold: #ffc82e;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: clamp(318px, 17.6vw, 338px) minmax(0, 1fr);
  background:
    radial-gradient(circle at 70% 26%, rgba(38, 70, 124, .10), transparent 30%),
    radial-gradient(circle at 24% 72%, rgba(28, 86, 92, .08), transparent 34%),
    linear-gradient(135deg, #02040a 0%, #050914 54%, #020309 100%);
}
.panel {
  position: relative;
  z-index: 3;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 16, 25, .96), rgba(8, 12, 18, .88));
  box-shadow: 0 24px 70px rgba(0,0,0,.44);
  backdrop-filter: blur(18px);
}
.brand {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #050505;
  color: #fffefa;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 0 22px rgba(255,200,46,.24);
}
.brand p, .modal > p {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}
.brand h1 { margin: 0; font-size: 20px; line-height: 1.06; font-weight: 950; }
.brand small, .local-state small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}
.local-state {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.local-state span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 950;
}
.local-state i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: #39e0a1;
  box-shadow: 0 0 14px rgba(57,224,161,.7);
}
.scroll {
  min-height: 0;
  overflow: auto;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,200,46,.45) transparent;
}
.section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  overflow: hidden;
}
.section-title {
  min-height: 38px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 950;
}
.section-title small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}
.section-body { padding: 12px; display: grid; gap: 10px; }
.compact { gap: 8px; }
label { display: grid; gap: 6px; color: rgba(244,248,255,.72); font-size: 11px; font-weight: 850; }
input, select, textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(185,221,255,.14);
  border-radius: 10px;
  background: rgba(5,8,13,.72);
  color: #f4f8ff;
  outline: none;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 760;
}
textarea { min-height: 64px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,200,46,.58); box-shadow: 0 0 0 3px rgba(255,200,46,.12); }
button, .button {
  min-height: 34px;
  border: 1px solid rgba(185,221,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #f4f8ff;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}
button:hover, .button:hover, button.active { border-color: rgba(255,200,46,.48); background: rgba(255,200,46,.12); }
button.gold { border-color: rgba(255,200,46,.9); background: var(--gold); color: #101010; }
button.danger, .danger { border-color: rgba(255,92,92,.5); color: #ffd9d9; }
.file-button input { display: none; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stats div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px 10px;
  background: rgba(255,255,255,.045);
}
.stats small, .stats em { display: block; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 850; }
.stats strong { display: block; margin: 4px 0; font-size: 23px; line-height: 1; }
.button-grid, .filter-grid, .line-grid, .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.button-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filter-grid button { min-height: 28px; font-size: 11px; }
.filter-grid i, .legend i, .detail i {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  box-shadow: 0 0 12px currentColor;
}
.line-grid button { min-height: 30px; justify-content: flex-start; border-radius: 12px; font-size: 11px; }
.line-grid i { width: 25px; border-top: 2px solid #dbe4ef; }
.line-depend, .line-weak { border-top-style: dashed !important; }
.line-reference { border-top-style: dotted !important; }
.line-strong { border-top-width: 4px !important; border-color: #34d399 !important; }
.line-conflict { border-color: #ff5c5c !important; border-top-style: dashed !important; }
.line-directional { position: relative; border-color: #f472b6 !important; }
.note { color: var(--muted); font-size: 11px; line-height: 1.45; font-weight: 780; }
.canvas-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
canvas { display: block; width: 100%; height: 100%; cursor: grab; }
canvas.is-dragging { cursor: grabbing; }
.hud {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(185,221,255,.14);
  border-radius: 999px;
  background: rgba(5,8,13,.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
}
.hud input { width: 220px; min-height: 34px; border-radius: 999px; background: rgba(255,255,255,.08); }
.hud button { min-width: 36px; min-height: 34px; padding: 0 10px; }
.account-gate {
  min-width: 42px;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(255,200,46,.32);
  background: rgba(255,200,46,.10);
  color: #fff4c8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  overflow: hidden;
}
.account-gate.is-locked {
  width: 58px;
  border-radius: 999px;
}
.account-gate.is-authed {
  width: 42px;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.22), transparent 34%), linear-gradient(135deg, rgba(255,200,46,.32), rgba(85,183,255,.22));
  border-color: rgba(255,255,255,.22);
  box-shadow: 0 0 0 1px rgba(255,255,255,.05), 0 0 22px rgba(255,200,46,.18);
}
.account-gate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.account-gate span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  line-height: 1.05;
}
.auth-locked .selection-toolbar,
.auth-locked .node-editor,
.auth-locked .node-menu,
.auth-locked .link-menu {
  display: none !important;
}
.top-status {
  position: absolute;
  top: 30px;
  left: 28px;
  display: grid;
  gap: 3px;
  pointer-events: none;
}
.top-status b { font-size: 13px; font-weight: 950; }
.top-status span { color: rgba(135,169,220,.78); font-size: 11px; font-weight: 760; }
.selection-toolbar {
  position: absolute;
  z-index: 5;
  top: 76px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(920px, calc(100% - 360px));
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(185,221,255,.16);
  border-radius: 18px;
  background: rgba(5,8,13,.64);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 48px rgba(0,0,0,.30);
}
.drag-handle {
  width: 24px;
  min-width: 24px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(185,221,255,.12);
  background:
    radial-gradient(circle, rgba(244,248,255,.66) 1.4px, transparent 1.8px) 5px 6px / 7px 7px,
    rgba(255,255,255,.045);
  cursor: grab;
}
.drag-handle:active {
  cursor: grabbing;
  border-color: rgba(255,200,46,.44);
  background:
    radial-gradient(circle, rgba(255,200,46,.82) 1.4px, transparent 1.8px) 5px 6px / 7px 7px,
    rgba(255,200,46,.08);
}
.selection-toolbar span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
  color: #fffefa;
  font-size: 12px;
  font-weight: 950;
}
.selection-toolbar button,
.selection-toolbar select {
  min-height: 30px;
  font-size: 11px;
  white-space: nowrap;
}
.selection-toolbar select {
  width: 124px;
  border-radius: 999px;
  padding: 0 10px;
}
.node-editor {
  position: absolute;
  z-index: 5;
  top: 128px;
  right: 18px;
  width: min(340px, calc(100% - 380px));
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid rgba(185,221,255,.16);
  border-radius: 18px;
  background: rgba(7,12,19,.88);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
}
.editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.editor-head b {
  color: #fffefa;
  font-size: 14px;
}
.editor-head button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}
.legend {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  max-width: 520px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(185,221,255,.12);
  border-radius: 16px;
  background: rgba(5,8,13,.52);
  backdrop-filter: blur(16px);
}
.legend span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: rgba(244,248,255,.78);
  font-size: 11px;
  font-weight: 850;
}
.legend em {
  min-width: 24px;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  outline: none;
  cursor: text;
}
.legend em:focus {
  color: #fff4c8;
  text-shadow: 0 0 14px rgba(255,200,46,.28);
}
.detail {
  position: absolute;
  z-index: 4;
  width: min(350px, calc(100vw - 384px));
  max-height: min(38vh, 310px);
  overflow: auto;
  border: 1px solid rgba(185,221,255,.16);
  border-radius: 18px;
  background: rgba(7,12,19,.86);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  padding: 15px;
}
.detail.fixed { right: 18px; bottom: 282px; }
.detail.node { transform: translateY(-50%); }
.detail-drag-handle {
  float: left;
  margin: 0 10px 8px 0;
}
.detail div { display: flex; align-items: center; gap: 10px; }
.detail b { display: block; color: #fffefa; font-size: 16px; }
.detail small { color: var(--muted); font-size: 11px; font-weight: 850; }
.detail p { margin: 10px 0 0; color: rgba(244,248,255,.72); font-size: 12px; line-height: 1.5; }
.detail footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.detail em {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255,255,255,.08);
  color: rgba(244,248,255,.78);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}
.tips {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  width: min(370px, calc(100vw - 392px));
  border: 1px solid rgba(255,200,46,.25);
  border-radius: 18px;
  background: rgba(7,12,19,.82);
  backdrop-filter: blur(20px);
  box-shadow: 0 22px 70px rgba(0,0,0,.42);
  padding: 16px;
}
.tips div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255,200,46,.16); }
.tips b { color: #f6d58a; font-size: 12px; font-weight: 950; letter-spacing: .08em; }
.tips span { color: var(--muted); font-size: 10px; font-weight: 850; }
.tips strong { display: block; margin-bottom: 8px; color: #fffefa; font-size: 15px; }
.tips p { margin: 0; color: rgba(244,248,255,.72); font-size: 12px; line-height: 1.55; }
.node-menu {
  position: absolute;
  z-index: 6;
  width: 176px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255,200,46,.28);
  border-radius: 14px;
  background: rgba(7,12,19,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
  transform: translate(8px, 8px);
}
.node-menu button { min-height: 30px; justify-content: flex-start; border-radius: 10px; padding: 0 10px; font-size: 11px; }
.link-menu {
  position: absolute;
  z-index: 6;
  width: 220px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(85,183,255,.26);
  border-radius: 14px;
  background: rgba(7,12,19,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 60px rgba(0,0,0,.42);
}
.link-menu > span {
  color: rgba(244,248,255,.72);
  font-size: 11px;
  font-weight: 900;
}
.link-menu div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.link-menu button {
  min-height: 30px;
  justify-content: flex-start;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 10px;
}
.toast {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(7,12,19,.94);
  border: 1px solid rgba(255,200,46,.32);
  color: #f6d58a;
  font-size: 12px;
  font-weight: 850;
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
  cursor: pointer;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5,8,13,.68);
  backdrop-filter: blur(16px);
}
.modal {
  width: min(520px, calc(100vw - 40px));
  display: grid;
  gap: 13px;
  border-radius: 22px;
  padding: 24px;
  background: radial-gradient(circle at 18% 0%, rgba(255,200,46,.18), transparent 36%), rgba(9,14,24,.98);
  border: 1px solid rgba(255,255,255,.14);
  color: #f7f2df;
  box-shadow: 0 30px 90px rgba(0,0,0,.44);
}
.modal h2 { margin: 0; font-size: 24px; }
.modal span { color: rgba(247,242,223,.75); font-size: 13px; line-height: 1.6; }
.modal pre {
  max-height: 190px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: rgba(244,248,255,.76);
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}
[hidden] { display: none !important; }
@media (max-width: 1180px) {
  .mindmap-app { grid-template-columns: 304px minmax(0, 1fr); }
  .scroll { padding: 12px; gap: 10px; }
  .button-grid.three, .button-grid, .row { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  html, body { overflow: auto; }
  .mindmap-app { min-height: 100vh; height: auto; grid-template-columns: 1fr; }
  .panel { max-height: 44vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .canvas-wrap { height: 56vh; }
  .hud { left: 12px; right: 12px; top: 12px; border-radius: 18px; flex-wrap: wrap; }
  .hud input { flex: 1 1 180px; }
  .top-status, .legend { display: none; }
  .selection-toolbar {
    left: 12px;
    right: 12px;
    top: 76px;
    transform: none;
    max-width: none;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .node-editor {
    left: 12px;
    right: 12px;
    top: 132px;
    width: auto;
    max-height: 42vh;
    overflow: auto;
  }
  .detail, .detail.fixed, .detail.node, .tips { left: 12px; right: 12px; width: auto; transform: none; }
  .detail, .detail.fixed, .detail.node { top: auto !important; bottom: 182px; }
  .tips { bottom: 12px; }
  .node-menu { max-width: calc(100vw - 24px); transform: translate(-8px, 8px); }
}

/* Minimal sidebar pass: keep global state visible, move node work to canvas tools. */
.mindmap-app {
  grid-template-columns: clamp(286px, 15.5vw, 312px) minmax(0, 1fr);
}
.minimal-panel .brand {
  padding: 16px 16px 12px;
  gap: 10px;
}
.minimal-panel .mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.minimal-panel .brand p {
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: .07em;
}
.minimal-panel .brand h1 {
  font-size: 18px;
  letter-spacing: 0;
}
.minimal-panel .brand small,
.minimal-panel .local-state small,
.minimal-panel .section-title small,
.minimal-panel .note {
  font-weight: 680;
}
.minimal-panel .local-state {
  padding: 10px 14px;
  gap: 2px;
}
.minimal-panel .local-state span {
  font-size: 12px;
  font-weight: 820;
}
.minimal-panel .local-state i {
  width: 8px;
  height: 8px;
}
.sidebar-compact {
  min-height: 0;
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,200,46,.36) transparent;
}
.minimal-panel .section {
  border-radius: 12px;
  background: rgba(255,255,255,.032);
  border-color: rgba(185,221,255,.115);
}
.minimal-panel .section-title,
.minimal-panel .compact-details > summary {
  min-height: 34px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  color: #f4f8ff;
  font-size: 12px;
  font-weight: 820;
  list-style: none;
  cursor: default;
}
.minimal-panel .compact-details > summary {
  cursor: pointer;
}
.minimal-panel .compact-details > summary::-webkit-details-marker {
  display: none;
}
.minimal-panel .compact-details > summary::after {
  content: "+";
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 99px;
  background: rgba(255,255,255,.07);
  color: rgba(244,248,255,.68);
  font-size: 13px;
  font-weight: 820;
}
.minimal-panel .compact-details[open] > summary::after {
  content: "-";
}
.hero-section {
  padding-bottom: 10px;
}
.scheme-line {
  padding: 10px 10px 7px;
}
.scheme-line input {
  min-height: 32px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 780;
}
.file-window .scheme-line {
  color: rgba(244,248,255,.64);
  font-size: 10px;
  font-weight: 720;
}
.file-window .scheme-line span {
  display: block;
  margin-bottom: 5px;
}
.file-meta-stack {
  margin: 0 10px 8px;
  border: 1px solid rgba(185,221,255,.12);
  border-radius: 11px;
  overflow: hidden;
  background: rgba(5,8,13,.34);
}
.file-meta-stack div {
  min-height: 28px;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(185,221,255,.08);
}
.file-meta-stack div:last-child {
  border-bottom: 0;
}
.file-meta-stack small {
  color: rgba(244,248,255,.45);
  font-size: 9px;
  font-weight: 700;
}
.file-meta-stack b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(244,248,255,.84);
  font-size: 10px;
  font-weight: 760;
}
.file-meta-stack .source {
  grid-template-columns: 68px minmax(0, 1fr);
}
.file-actions {
  margin: 0 10px 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.file-actions button {
  min-height: 30px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 820;
}
.mini-stats {
  margin: 0 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.mini-stats span {
  min-width: 0;
  border: 1px solid rgba(185,221,255,.12);
  border-radius: 10px;
  padding: 6px 7px;
  background: rgba(255,255,255,.035);
  color: rgba(244,248,255,.62);
  font-size: 10px;
  font-weight: 680;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-stats b {
  color: #fff;
  font-size: 15px;
  font-weight: 880;
}
.tight-section {
  padding-bottom: 10px;
}
.ghost-row {
  width: calc(100% - 20px);
  margin: 10px 10px 0;
  min-height: 32px;
  border-radius: 10px;
  justify-content: flex-start;
  background: rgba(255,255,255,.045);
  color: rgba(244,248,255,.76);
  font-size: 11px;
  font-weight: 760;
}
.chip-filter {
  padding: 8px 10px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-filter button {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 760;
}
.chip-filter i {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  box-shadow: 0 0 10px currentColor;
}
.mode-switch,
.detail-switch {
  margin: 10px 10px 0;
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  border: 1px solid rgba(185,221,255,.12);
  border-radius: 999px;
  background: rgba(5,8,13,.5);
}
.detail-switch {
  margin-top: 7px;
}
.mode-switch button,
.detail-switch button {
  min-height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(244,248,255,.62);
  font-size: 10px;
  font-weight: 760;
}
.mode-switch button.active,
.detail-switch button.active {
  background: rgba(255,200,46,.16);
  color: #fff4c8;
  box-shadow: inset 0 0 0 1px rgba(255,200,46,.28);
}
.compact-actions {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.compact-actions button,
.compact-actions .button {
  min-height: 30px;
  border-radius: 10px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 760;
}
.cloud-dock {
  margin-top: auto;
}
.cloud-dock .note {
  display: block;
  padding: 0 10px 10px;
  font-size: 10px;
}
.selection-toolbar {
  max-width: min(760px, calc(100vw - 380px));
  padding: 7px;
  gap: 6px;
}
.selection-toolbar button,
.selection-toolbar select {
  min-height: 30px;
  font-size: 11px;
  font-weight: 760;
}
.selection-toolbar span {
  max-width: 150px;
  font-size: 11px;
}
@media (max-width: 1180px) {
  .mindmap-app { grid-template-columns: 286px minmax(0, 1fr); }
  .sidebar-compact { padding: 10px; gap: 8px; }
  .selection-toolbar { max-width: calc(100vw - 330px); }
}
@media (max-width: 880px) {
  .mindmap-app { grid-template-columns: 1fr; }
  .minimal-panel { max-height: 36vh; }
  .sidebar-compact { grid-template-columns: 1fr; }
  .selection-toolbar { max-width: none; }
}
