:root {
  font-family: Arial, "Helvetica Neue", sans-serif;
  color: #37323f;
  background: #faf9fc;
  font-synthesis: none;
  --accent: #7849aa;
  --accent-soft: #f0e9f7;
  --line: #e7e3ed;
  --muted: #81788c;
  --shadow: 0 8px 30px #3523450b;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 7px;
  cursor: pointer;
  padding: 9px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.3;
}
button:hover {
  background: #f0edf5;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a58ac5;
  outline-offset: 2px;
}
button svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
button.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 3px 7px #7444ad15;
}
button.primary:hover {
  background: #643a92;
}
.icon-button {
  width: 36px;
  height: 36px;
  padding: 8px;
  flex-shrink: 0;
}
.icon-button span {
  display: none;
}
.danger {
  color: #ad384b;
}
input,
select,
textarea {
  background: white;
  border: 1px solid #dad4e2;
  border-radius: 7px;
  padding: 10px 11px;
  color: #37323f;
  min-width: 0;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #9571bc;
  box-shadow: 0 0 0 3px #8754ad12;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  padding: 0;
}
textarea {
  resize: vertical;
  width: 100%;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #706477;
  margin-bottom: 17px;
}
label input,
label select {
  font-size: 14px;
}
a {
  color: var(--accent);
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -0.8px;
  font-weight: 600;
}
h2 {
  font-size: 20px;
  font-weight: 500;
}
h3 {
  font-size: 16px;
  font-weight: 500;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9b8aa9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  color: #70469d;
  letter-spacing: -0.8px;
  white-space: nowrap;
}
.brand b {
  color: #514859;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.4px;
}
.brand img {
  width: 35px;
  height: 35px;
}
.loading,
.startup-error {
  height: 100dvh;
  display: grid;
  place-content: center;
  text-align: center;
}
.startup-error img {
  width: 70px;
  margin: 0 auto 24px;
}
.login {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 100dvh;
}
.login-art {
  position: relative;
  background: #f0eaf5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-art > img {
  width: 100px;
  z-index: 1;
  background: #fff;
  border-radius: 26px;
  padding: 14px;
  box-shadow: 0 15px 50px #6c487d13;
}
.login-art svg {
  position: absolute;
  width: 100%;
  stroke: #b89acb;
  stroke-width: 3;
  fill: none;
}
.thought {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 18px 27px;
  color: #806191;
  box-shadow: var(--shadow);
  font-size: 17px;
  z-index: 2;
}
.thought-a {
  left: 5%;
  top: 29%;
  transform: rotate(-6deg);
}
.thought-b {
  right: 4%;
  top: 30%;
  transform: rotate(5deg);
}
.thought-c {
  right: 13%;
  bottom: 25%;
  transform: rotate(-3deg);
}
.login-content {
  padding: 40px 55px;
  display: flex;
  flex-direction: column;
}
.login-content header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.login-content select {
  border: 0;
  background: none;
  font-size: 12px;
}
.login-form {
  margin: auto;
  max-width: 390px;
  width: 100%;
  padding: 60px 0;
}
.login-form h1 {
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -1.3px;
}
.login-form > p {
  color: #8b8094;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 35px;
}
.login-form form button {
  width: 100%;
  height: 45px;
}
.login-form form label {
  font-size: 13px;
}
.login-form form input {
  height: 48px;
}
.login-form p.muted {
  font-size: 12px;
  margin-top: 20px;
}
.workspace {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 235px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  background: white;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 55px;
}
.sidebar nav button {
  justify-content: flex-start;
  padding: 12px;
}
.sidebar nav .active {
  color: var(--accent);
  background: var(--accent-soft);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.account-email {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}
.library {
  width: 100%;
  max-width: 1600px;
  padding: 55px clamp(25px, 5vw, 75px);
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 35px;
  gap: 20px;
}
.library-heading h1 {
  margin-bottom: 0;
}
.library-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 20px;
}
.search {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  min-width: 0;
  width: 320px;
}
.search svg {
  width: 17px;
  flex-shrink: 0;
  stroke: #a097aa;
}
.search input {
  border: 0;
  background: none;
  box-shadow: none;
  width: 100%;
  padding: 11px 0;
  font-size: 13px;
}
.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.map-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition:
    box-shadow 0.15s,
    border-color 0.15s;
}
.map-card:hover {
  box-shadow: var(--shadow);
  border-color: #cdbdda;
}
.map-preview {
  width: 100%;
  padding: 10px 15px;
  background: #fdfcfe;
  border-radius: 0;
  border-bottom: 1px solid #f1edf5;
}
.map-preview svg {
  width: 100%;
  height: 170px;
}
.map-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 12px;
}
.map-info > button:first-child {
  display: block;
  text-align: left;
  min-width: 0;
}
.map-info h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}
.map-info time {
  color: var(--muted);
  font-size: 11px;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 85px 20px;
}
.empty h2 {
  margin-top: 20px;
}
.empty p {
  color: var(--muted);
}
.empty-icon {
  width: 60px;
  height: 60px;
  padding: 15px;
  margin: auto;
  background: var(--accent-soft);
  border-radius: 17px;
  color: var(--accent);
}
.empty-icon svg {
  width: 30px;
  height: 30px;
}
.editor {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: white;
}
.editor-top {
  height: 67px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}
.brand-icon {
  width: 30px;
  height: 30px;
}
.document-title {
  font-size: 16px;
  font-weight: 500;
  max-width: 33%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  text-align: left;
}
.save-status {
  font-size: 11px;
  color: #94899d;
  white-space: nowrap;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.toolbar {
  height: 57px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.tool-group {
  display: flex;
  align-items: center;
  gap: 3px;
  padding-right: 14px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}
.tool-group:last-child {
  border: 0;
}
.tool-group button {
  font-size: 12px;
  white-space: nowrap;
}
.tool-group select {
  font-size: 12px;
  border: 0;
  background: #f5f3f8;
  padding: 8px;
}
.search.small {
  width: 190px;
  background: #f8f7fa;
  border: 0;
}
.editor-main {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}
.canvas-area {
  position: relative;
  flex: 1;
  min-width: 0;
  background: #fcfbfd;
  overflow: hidden;
}
#canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
  outline: none;
}
#canvas[hidden] {
  display: none;
}
.node {
  cursor: grab;
}
.node:active {
  cursor: grabbing;
}
.node text {
  user-select: none;
  pointer-events: none;
}
.collapse-handle,
.add-handle {
  cursor: pointer;
}
.bend-handle {
  cursor: move;
}
.canvas-tools {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
#zoom {
  font-size: 11px;
  color: var(--muted);
  min-width: 35px;
  text-align: center;
}
.selection-tools {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 2px;
  background: white;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.inspector {
  width: 285px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: white;
  overflow-y: auto;
}
.inspector > nav {
  position: sticky;
  top: 0;
  background: white;
  display: flex;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  z-index: 2;
}
.inspector > nav button {
  font-size: 11px;
  padding: 9px;
}
.inspector > nav .active {
  color: var(--accent);
  background: var(--accent-soft);
}
#panel {
  padding: 22px 20px;
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-pair input,
.field-pair select {
  width: 100%;
}
.swatches {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}
.swatch {
  background: var(--swatch);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  padding: 0;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #eee;
}
.swatch:hover {
  background: var(--swatch);
  border-color: #aaa;
}
.swatches input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 2px;
  border-radius: 50%;
}
.checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 5px 0 15px;
}
.checks label,
.check {
  flex-direction: row;
  align-items: center;
  gap: 7px;
}
.panel-actions {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 25px;
}
.panel-actions button {
  justify-content: flex-start;
  font-size: 12px;
}
.mobile-close {
  display: none;
}
#list-view {
  height: 100%;
  overflow: auto;
  padding: 30px;
}
.outline-list {
  max-width: 800px;
  margin: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px;
}
.outline-list button {
  width: 100%;
  justify-content: flex-start;
  display: block;
  text-align: left;
  border-radius: 4px;
}
.outline-list .active {
  background: var(--accent-soft);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 13px;
}
th {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 15px 12px;
  border-bottom: 1px solid #f0ecf4;
}
tbody tr:hover {
  background: #faf8fc;
}
.table-wrap {
  overflow: auto;
}
.attachments {
  margin: 15px 0;
}
.attachments button {
  font-size: 11px;
  width: 100%;
  justify-content: flex-start;
  overflow: hidden;
}
.slide-list {
  margin-top: 20px;
}
.slide-list article {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 12px;
  align-items: center;
}
.slide-list article > button:first-child {
  flex: 1;
  text-align: left;
  justify-content: flex-start;
}
.slide-list span {
  color: var(--accent);
  background: var(--accent-soft);
  padding: 7px;
  border-radius: 4px;
}
.presentation {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #fcfbfd;
}
.presentation header,
.presentation footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  border-bottom: 1px solid var(--line);
  background: white;
}
.presentation-scene {
  flex: 1;
  min-height: 0;
  padding: 30px;
}
.presentation-scene svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.presentation footer {
  justify-content: center;
  gap: 25px;
  border-top: 1px solid var(--line);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  max-width: 540px;
  width: calc(100% - 32px);
  max-height: 90dvh;
  box-shadow: 0 30px 100px #31213d30;
  color: inherit;
}
dialog::backdrop {
  background: #24172e50;
  backdrop-filter: blur(2px);
}
dialog header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
dialog header h2 {
  font-size: 17px;
  margin: 0;
}
.modal-body {
  padding: 24px;
  overflow: auto;
}
dialog footer {
  padding: 15px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}
.export-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.export-options button {
  border: 1px solid var(--line);
  padding: 20px 10px;
  flex-direction: column;
}
.export-options svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}
#notice {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #39303f;
  color: white;
  border-radius: 9px;
  padding: 12px 20px;
  max-width: calc(100vw - 30px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  font-size: 13px;
  box-shadow: var(--shadow);
}
#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-page {
  max-width: 1100px;
  padding: 35px;
  margin: auto;
}
.admin-page > header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}
.admin-page > header .brand {
  margin-right: auto;
}
.admin-page section {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  margin: 25px 0;
}
.admin-settings form {
  max-width: 650px;
}
.print-frame {
  position: fixed;
  left: -10000px;
  width: 1000px;
  height: 800px;
}
.startup-error button {
  background: var(--accent);
  color: white;
}
@media (max-width: 1100px) {
  .inspector {
    width: 250px;
  }
  .save-status {
    display: none;
  }
  .toolbar {
    gap: 8px;
    padding: 0 10px;
  }
  .tool-group {
    padding-right: 8px;
  }
  .tool-group button span {
    display: none;
  }
  .login-content {
    padding: 30px;
  }
  .login-art .thought {
    font-size: 14px;
    padding: 14px;
  }
  .sidebar {
    width: 200px;
  }
  .library {
    padding: 35px 25px;
  }
}
@media (max-width: 760px) {
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  .login-content {
    min-height: 100dvh;
    padding: 25px;
  }
  .login-form {
    padding: 50px 0;
  }
  .login-form h1 {
    font-size: 36px;
  }
  .workspace {
    display: block;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar nav {
    flex-direction: row;
    margin-top: 20px;
    gap: 4px;
    overflow: auto;
  }
  .sidebar nav button {
    font-size: 12px;
    padding: 9px;
    white-space: nowrap;
  }
  .sidebar-bottom {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-top: 15px;
    gap: 10px;
  }
  .account-email {
    flex: 1;
  }
  .sidebar-bottom > button span {
    display: none;
  }
  .sidebar-bottom select {
    padding: 5px;
    font-size: 12px;
  }
  .library {
    padding: 28px 20px;
  }
  .library-heading h1 {
    font-size: 26px;
  }
  .library-heading .primary {
    font-size: 12px;
    padding: 10px;
  }
  .library-heading {
    margin-bottom: 25px;
  }
  .library-tools > .muted {
    display: none;
  }
  .search {
    width: 100%;
  }
  .map-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }
  .editor-top {
    height: 58px;
    padding: 0 8px;
    gap: 6px;
  }
  .brand-icon {
    width: 25px;
    height: 25px;
  }
  .document-title {
    max-width: calc(100vw - 220px);
    font-size: 13px;
    padding: 5px;
  }
  .top-actions {
    gap: 2px;
  }
  .top-actions button {
    width: 36px;
    height: 36px;
    padding: 8px;
  }
  .top-actions button span {
    display: none;
  }
  .top-actions [data-action="settings"] {
    display: none;
  }
  .toolbar {
    height: 51px;
    padding: 0 8px;
  }
  .tool-group .search {
    width: 140px;
  }
  .inspector {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: min(62dvh, 550px);
    border: 1px solid var(--line);
    border-radius: 18px 18px 0 0;
    z-index: 5;
    box-shadow: 0 -10px 40px #39274814;
  }
  .inspector.open {
    display: block;
  }
  .inspector > nav {
    padding: 10px 15px;
  }
  .inspector > nav button {
    font-size: 13px;
  }
  .mobile-close {
    display: flex;
    margin-left: auto;
  }
  #panel {
    padding: 18px 23px;
  }
  .canvas-tools {
    bottom: 14px;
    left: 10px;
    padding: 3px;
    gap: 0;
  }
  .selection-tools {
    bottom: 14px;
    right: 10px;
    padding: 3px;
    gap: 0;
  }
  .canvas-tools .icon-button,
  .selection-tools .icon-button {
    width: 33px;
    height: 35px;
  }
  .canvas-tools button span {
    display: none;
  }
  .canvas-tools #zoom {
    min-width: 29px;
  }
  .selection-tools button {
    color: var(--accent);
  }
  .node .add-handle circle {
    r: 15;
  }
  .node .collapse-handle circle {
    r: 13;
  }
  .admin-page {
    padding: 20px 12px;
  }
  .admin-page > header {
    gap: 10px;
  }
  .admin-page section {
    padding: 20px 14px;
  }
  .admin-page h1 {
    font-size: 25px;
  }
  .admin-page .brand b {
    display: none;
  }
  .presentation-scene {
    padding: 10px;
  }
  .presentation header {
    padding: 12px;
    font-size: 12px;
  }
  .presentation footer {
    padding: 10px;
    gap: 5px;
  }
  .presentation footer button {
    font-size: 12px;
  }
  .modal-body {
    padding: 20px;
  }
  .field-pair {
    gap: 10px;
  }
  .empty {
    padding: 40px 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.import-report {
  white-space: pre-wrap;
  max-height: 200px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.resource-list article {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.resource-list a {
  flex: 1;
  overflow-wrap: anywhere;
}
.resource-list small {
  color: var(--muted);
}
@media (max-width: 760px) {
  .canvas-tools .icon-button,
  .selection-tools .icon-button {
    width: 40px;
    height: 44px;
  }
  .toolbar .icon-button {
    height: 44px;
  }
  .top-actions button {
    height: 42px;
  }
  .pending-origin {
    padding: 12px;
    background: #fff6dc;
    border-radius: 7px;
    font-size: 12px;
  }
}

/* Native document features, using the same responsive inspector and dialogs. */
.template-row {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
.template-row > button:first-child {
  flex: 1;
  text-align: left;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0;
}
.tag-list span {
  padding: 5px 9px;
  border-radius: 8px;
  background: #eee7f4;
  font-size: 12px;
}
.note-block {
  border: 1px solid #ded8e5;
  border-radius: 10px;
  padding: 12px;
  margin: 12px 0;
}
.note-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.note-run {
  margin: 8px 0;
}
.note-run textarea,
.note-block textarea {
  width: 100%;
}
.note-image {
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
}
.timeline-view {
  padding: 24px;
  min-width: 560px;
}
.timeline-view > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.timeline-view h3 {
  font-size: 14px;
  color: #796789;
  margin: 24px 0 8px;
}
.timeline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #eee9f0;
  padding: 12px 0;
  background: transparent;
}
.timeline-row small {
  display: block;
  color: #81758b;
  font-size: 11px;
  margin-top: 4px;
}
.timeline-track {
  display: block;
  position: relative;
  min-height: 32px;
  background: repeating-linear-gradient(
    90deg,
    #eee8f1 0 1px,
    transparent 1px 12.5%
  );
}
.timeline-bar {
  position: absolute;
  top: 6px;
  height: 22px;
  border-radius: 5px;
  min-width: 5px;
  overflow: hidden;
}
.timeline-bar i {
  display: block;
  height: 100%;
  background: #0002;
}
.timeline-bar.milestone {
  border-radius: 0;
  border: 2px solid #63516e;
}
.slide-list article {
  flex-wrap: wrap;
}
.slide-list article > button:first-child {
  flex-basis: 100%;
}
#panel hr {
  margin: 18px 0;
  border: 0;
  border-top: 1px solid #e9e2ee;
}
#panel h3 {
  font-size: 14px;
}
#panel #text-color {
  min-height: 38px;
  width: 100%;
}
.toolbar [data-action="tidy"] span {
  display: inline;
}

/* Screen-space branch tools: fixed 44px targets at every map zoom. */
.node-widget {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 5px;
  border: 1px solid #e6deeb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 22px #4e36521a;
  touch-action: none;
  max-width: calc(100% - 16px);
}
.node-widget[hidden] {
  display: none;
}
.widget-button {
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 11px;
  border: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #665875;
  background: #f4f0f7;
  touch-action: none;
}
.widget-button svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.widget-organic {
  background: #fae7e3;
  color: #b84637;
}
.widget-box {
  background: #fcf1cf;
  color: #946700;
}
.widget-move {
  background: #e4f1fa;
  color: #237db0;
  cursor: grab;
}
.widget-move:active {
  cursor: grabbing;
}
.widget-button:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.widget-button:focus-visible,
.branch-collapse:focus-visible {
  outline: 3px solid #8053ab;
  outline-offset: 3px;
}
.widget-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.widget-more svg {
  stroke-width: 4;
}
.branch-collapse {
  cursor: pointer;
}
.branch-collapse text {
  pointer-events: none;
}
.branch-menu-title {
  overflow-wrap: anywhere;
  font-weight: 600;
}
.branch-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.branch-action-grid button {
  display: flex;
  gap: 9px;
  align-items: center;
  text-align: left;
  padding: 12px;
  min-height: 48px;
  border: 1px solid #e6deeb;
  border-radius: 10px;
}
.branch-action-grid svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
@media (max-width: 480px) {
  .branch-action-grid {
    grid-template-columns: 1fr;
  }
}
