:root {
  --border: #d8d6cf;
  --surface: #fff;
  --surface-alt: #f7f6f2;
  --text: #23221f;
  --text-muted: #86847d;
  --accent-border: #85b7eb;
  --row-h: 26px;
  --row-gap: 3px;
  --col-gap: 6px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  padding: 16px;
}
.app {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  min-height: 460px;
}

.icon-btn {
  width: 24px; height: 24px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  font-size: 14px; line-height: 1; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; padding: 0;
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn.pressing { transform: scale(.86); transition: transform .15s; }

.fsep { width: 1px; height: 16px; background: var(--border); margin: 0 2px; }

.btn {
  font: inherit; font-size: 12px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 5px; background: transparent;
}
.btn:hover { background: var(--surface-alt); }
.btn.danger { color: #c0392b; border-color: #e8c4be; }
.btn.primary { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn.primary:hover { opacity: .88; background: var(--text); }

.tip {
  position: absolute; z-index: 70; display: none;
  background: var(--text); color: var(--surface);
  font-size: 11px; padding: 4px 8px; border-radius: 4px;
  pointer-events: none; white-space: nowrap;
}
.tip.show { display: block; }

.hdr-btns { display: flex; align-items: center; gap: 5px; }
