:root {
  --bg: #f5f4f0;
  --panel: #ffffff;
  --panel-soft: #f8f7f4;
  --ink: #262722;
  --muted: #7b7d75;
  --line: #e6e4dd;
  --accent: #e75d3f;
  --accent-dark: #ca482f;
  --sidebar: #232826;
  --sidebar-muted: #aeb3ae;
  --shadow: 0 8px 22px rgba(38, 39, 34, 0.1), 0 1px 3px rgba(38, 39, 34, 0.12);
  --shadow-lg: 0 22px 65px rgba(31, 35, 32, 0.18);
  --radius: 12px;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }

body {
  background: var(--bg);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.app-shell { display: flex; width: 100%; height: 100%; direction: ltr; }

.sidebar {
  display: none;
  width: 260px;
  min-width: 260px;
  background: var(--sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 20px 14px 14px;
  direction: rtl;
  position: relative;
  z-index: 40;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 1px 8px 22px; }
.brand-mark {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  font-weight: 700; background: #f7f6f1; color: var(--sidebar); box-shadow: inset 0 0 0 4px #f7f6f1;
}
.brand-mark img { width: 100%; height: 100%; display: block; border-radius: inherit; }
.brand strong { display: block; font-size: 18px; line-height: 1.2; }
.brand span { display: block; color: var(--sidebar-muted); font-size: 11px; margin-top: 3px; }

.new-board-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  border: 0; border-radius: 9px; background: var(--accent); color: #fff;
  height: 43px; font-weight: 700; cursor: pointer; box-shadow: 0 5px 16px rgba(231,93,63,.23);
  transition: .18s ease;
}
.new-board-btn:hover { background: #f06a4b; transform: translateY(-1px); }
.new-board-btn span { font-size: 19px; line-height: 1; }

.sidebar-section-title {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--sidebar-muted); font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 24px 9px 9px;
}
.count-badge { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 999px; }

.boards-list { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; min-height: 0; }
.board-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 9px;
  background: transparent; color: #ced2ce; border: 0; border-radius: 8px; cursor: pointer;
  text-align: right; transition: .15s ease;
}
.board-row:hover { background: rgba(255,255,255,.06); color: #fff; }
.board-row.active { background: rgba(255,255,255,.1); color: #fff; }
.board-dot { width: 9px; height: 9px; border-radius: 3px; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(255,255,255,.05); }
.board-row span:nth-child(2) { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; flex: 1; }
.board-total { color: #7f8681; font-size: 11px; }
.board-row.active .board-total { color: #aeb3ae; }

.sidebar-footer { margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-action {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 9px;
  color: var(--sidebar-muted); background: transparent; border: 0; border-radius: 7px; cursor: pointer;
}
.sidebar-action:hover { background: rgba(255,255,255,.05); color: #fff; }
.sidebar-action span { font-size: 17px; }
.save-status { display: flex; align-items: center; gap: 8px; color: #777e79; font-size: 11px; padding: 13px 10px 2px; }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: #68b486; box-shadow: 0 0 0 3px rgba(104,180,134,.1); }
.save-status.saving .save-dot { background: #e4b45a; animation: pulse 1s infinite; }

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; direction: rtl; }
.topbar {
  height: 76px; min-height: 76px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 23px 0 18px;
  z-index: 25;
}
.board-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.folder-up-btn { flex: 0 0 auto; }
.folder-up-btn:disabled { opacity: .3; cursor: default; }
.breadcrumbs { display: flex; align-items: center; gap: 5px; min-height: 18px; margin-bottom: 1px; direction: rtl; }
.breadcrumb-btn { border: 0; background: transparent; padding: 0; color: #9a9b94; font-size: 10px; cursor: pointer; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb-btn:hover { color: var(--accent-dark); text-decoration: underline; }
.breadcrumb-separator { color: #c4c3bd; font-size: 10px; }
.board-title {
  display: block; border: 0; background: transparent; font-size: 20px; font-weight: 750;
  color: var(--ink); width: min(360px, 32vw); outline: none; padding: 1px 0;
}
.board-title:focus { box-shadow: 0 2px 0 var(--accent); }
.topbar-actions { display: flex; align-items: center; gap: 7px; }
.search-box {
  height: 39px; width: 265px; border: 1px solid var(--line); border-radius: 9px; background: #f7f7f4;
  display: flex; align-items: center; gap: 8px; padding: 0 10px; color: #999a93;
}
.search-box input { min-width: 0; flex: 1; border: 0; outline: none; background: transparent; color: var(--ink); }
.search-box kbd { direction: ltr; color: #aaa; border: 1px solid #dddcd5; background: #fff; border-radius: 4px; padding: 2px 5px; font-size: 9px; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  display: grid; place-items: center; cursor: pointer; font-size: 17px;
}
.icon-btn:hover:not(:disabled) { background: #f5f4f0; }
.icon-btn:disabled { opacity: .36; cursor: default; }
.mobile-only { display: none; }

.canvas-area {
  position: relative; flex: 1; overflow: hidden; cursor: grab; touch-action: none;
  background-color: #f1f0ec;
  background-image: radial-gradient(#d5d3cc 1.1px, transparent 1.1px);
  background-size: 23px 23px;
}
.canvas-area.panning { cursor: grabbing; }
.canvas-area.zoomed-out-grid { background-image: none !important; }
.world { position: absolute; inset: 0 auto auto 0; transform-origin: 0 0; width: 1px; height: 1px; }
.connections-layer { position: absolute; left: 0; top: 0; width: 5000px; height: 5000px; overflow: visible; pointer-events: none; z-index: 0; }
.connection-path { fill: none; stroke: #737871; stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.connection-preview { stroke: var(--accent); stroke-dasharray: 7 5; }
.connection-label { font-size: 11px; fill: #555a54; paint-order: stroke; stroke: #f1f0ec; stroke-width: 5px; stroke-linejoin: round; }
.marquee { position: absolute; z-index: 13; border: 1px solid #df5b3f; background: rgba(231,93,63,.11); pointer-events: none; }
.canvas-hint {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(255,255,255,.82); border: 1px solid rgba(218,216,208,.8); color: #8d8d85;
  border-radius: 999px; padding: 7px 12px; font-size: 10px; pointer-events: none; backdrop-filter: blur(8px);
  transition: opacity .4s;
}

.card {
  position: absolute; width: 270px; min-width: 180px; min-height: 82px; background: var(--panel);
  border: 1px solid rgba(41,43,38,.08); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; resize: both; direction: rtl; cursor: default;
}
.card:hover { box-shadow: 0 12px 28px rgba(38,39,34,.13), 0 2px 4px rgba(38,39,34,.08); }
.card.selected { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: var(--shadow-lg); }
.card.multi-selected { outline-color: #d75035; }
.card.search-dim { opacity: .24; filter: grayscale(.4); }
.card.search-hit { outline: 3px solid #efb248; outline-offset: 3px; }
.card.dragging { cursor: grabbing; box-shadow: 0 20px 46px rgba(38,39,34,.18); }
.connection-handle {
  position: absolute; left: -11px; top: 50%; width: 18px; height: 18px; border-radius: 50%; z-index: 8;
  transform: translateY(-50%); border: 3px solid #fff; background: var(--accent); box-shadow: 0 1px 6px rgba(0,0,0,.25); cursor: crosshair;
}
.connection-handle::after { content: ""; position: absolute; left: -11px; top: 4px; border-width: 3px 0 3px 6px; border-style: solid; border-color: transparent transparent transparent var(--accent); }
.drag-handle {
  height: 29px; cursor: grab; display: flex; align-items: center; justify-content: space-between;
  padding: 0 9px 0 8px; border-bottom: 1px solid rgba(50,50,45,.06); color: rgba(56,56,50,.4);
}
.card-kind { display: flex; align-items: center; gap: 6px; font-size: 9px; font-weight: 700; letter-spacing: .06em; }
.card-dots { letter-spacing: 2px; font-weight: 900; }
.card-body { padding: 15px 17px 17px; }
.card textarea, .card input[type="text"], .card input[type="url"] {
  width: 100%; border: 0; outline: 0; background: transparent; color: #2c2d28; resize: none;
}
.note-text { min-height: 62px; line-height: 1.7; font-size: 14px; overflow: hidden; }
.heading-card { background: transparent !important; box-shadow: none; border: 0; resize: horizontal; min-height: 60px; overflow: visible; }
.heading-card:hover, .heading-card.selected { box-shadow: none; }
.heading-card .drag-handle { border: 0; opacity: 0; height: 20px; }
.heading-card:hover .drag-handle, .heading-card.selected .drag-handle { opacity: 1; }
.heading-card .card-body { padding: 4px 8px; }
.heading-text { font-size: 30px; font-weight: 800; min-height: 45px; overflow: hidden; }

.checklist-title { font-weight: 750; font-size: 15px; padding-bottom: 10px; }
.check-items { display: flex; flex-direction: column; gap: 8px; }
.check-row { display: flex; align-items: flex-start; gap: 8px; }
.check-row input[type="checkbox"] { margin: 3px 0 0; accent-color: var(--accent); width: 15px; height: 15px; flex: 0 0 auto; }
.check-row textarea { min-width: 0; line-height: 1.5; }
.check-row.done textarea { color: #9b9d96; text-decoration: line-through; }
.add-check-item { margin-top: 10px; border: 0; background: transparent; color: #999a93; cursor: pointer; padding: 2px 0; font-size: 12px; }
.add-check-item:hover { color: var(--accent); }

.link-label { display: flex; align-items: center; gap: 7px; color: #999a93; font-size: 10px; font-weight: 700; margin-bottom: 9px; }
.link-title { font-size: 16px; font-weight: 750; margin-bottom: 5px; }
.link-url { direction: ltr; text-align: left; color: #84867f !important; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.open-link { display: inline-flex; margin-top: 12px; color: var(--accent-dark); text-decoration: none; font-size: 11px; font-weight: 700; }
.open-link:hover { text-decoration: underline; }

.image-card { min-width: 210px; }
.image-card .card-body { padding: 0; }
.image-card img { width: 100%; display: block; pointer-events: none; }
.image-caption { padding: 10px 13px !important; font-size: 12px; }

.board-card { width: 150px; min-width: 120px; min-height: 145px; resize: none; cursor: pointer; background: transparent !important; border: 0; box-shadow: none; overflow: visible; }
.board-card:hover { box-shadow: none; background: rgba(255,255,255,.42) !important; }
.board-card.selected { box-shadow: none; background: rgba(231,93,63,.08) !important; outline-offset: 3px; }
.board-card .drag-handle { position: absolute; inset: 5px 12px 39px; height: auto; z-index: 4; border: 0; background: transparent; color: transparent; border-radius: 8px; }
.board-card .drag-handle > * { display: none; }
.board-card .card-body { padding: 0; height: 100%; overflow: visible; }
.folder-card-view { height: 100%; min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 15px 8px 7px; gap: 8px; }
.folder-icon-large { width: 88px; height: 63px; position: relative; margin-top: 5px; border-radius: 5px 7px 7px 7px; background: linear-gradient(180deg, #ffd86a 0%, #f2b83e 100%); box-shadow: inset 0 -5px 8px rgba(159,102,10,.12), 0 7px 13px rgba(92,65,17,.16); }
.folder-icon-large::before { content: ""; position: absolute; right: 5px; top: -12px; width: 37px; height: 17px; border-radius: 6px 7px 0 0; background: #f5c34e; }
.folder-icon-large::after { content: ""; position: absolute; left: 0; right: 0; top: 9px; bottom: 0; border-radius: 5px 7px 7px 7px; background: linear-gradient(160deg, #ffe181 0%, #f5bd43 78%); border-top: 1px solid rgba(255,255,255,.48); }
.folder-card-title { width: 100%; display: block; text-align: center; font-size: 13px; font-weight: 650; color: #343631; white-space: pre-wrap; overflow: hidden; overflow-wrap: anywhere; text-overflow: clip; line-height: 1.35; max-height: none; }
.folder-card-meta { font-size: 9px; color: #989a94; text-align: center; margin-top: -5px; }

.column-card { min-width: 260px; min-height: 180px; background: #edece7 !important; border: 1px solid #dad8d0; resize: horizontal; overflow: visible; box-shadow: 0 4px 14px rgba(38,39,34,.09); }
.column-card.drop-target { outline: 3px solid #4f8f72; outline-offset: 4px; box-shadow: 0 0 0 8px rgba(79,143,114,.12); }
.column-card .drag-handle { height: 34px; background: #343a36; color: #fff; border-radius: 11px 11px 0 0; border: 0; }
.column-card .card-body { padding: 10px; max-height: 650px; overflow-y: auto; }
.column-header-row { display: flex; align-items: center; gap: 7px; padding: 2px 2px 10px; }
.column-title { font-weight: 800; font-size: 16px; flex: 1; }
.column-count { font-size: 10px; color: #8e9089; background: rgba(255,255,255,.65); border-radius: 999px; padding: 3px 7px; }
.collapse-column { width: 26px; height: 26px; border: 0; background: rgba(255,255,255,.7); border-radius: 6px; cursor: pointer; color: #777; }
.column-items { display: flex; flex-direction: column; gap: 9px; }
.column-note { background: #fff; border: 1px solid rgba(50,50,45,.08); border-radius: 8px; box-shadow: 0 2px 6px rgba(40,42,37,.07); padding: 9px 10px 10px; position: relative; }
.column-note-bar { display: flex; justify-content: space-between; color: #aaa; font-size: 9px; padding-bottom: 4px; cursor: grab; }
.column-note.embedded-dragging { opacity: .7; z-index: 100; pointer-events: none; box-shadow: 0 14px 35px rgba(30,34,31,.25); }
.column-note-actions { display: flex; gap: 2px; }
.column-note-actions button { width: 20px; height: 20px; border: 0; background: transparent; border-radius: 4px; cursor: pointer; color: #999; padding: 0; }
.column-note-actions button:hover { background: #f0efea; color: #333; }
.column-note textarea { min-height: 55px; line-height: 1.6; }
.column-add-note { width: 100%; margin-top: 9px; height: 34px; border: 1px dashed #c9c7bf; background: rgba(255,255,255,.45); color: #7f817a; border-radius: 8px; cursor: pointer; }
.column-add-note:hover { border-color: var(--accent); color: var(--accent-dark); background: #fff; }
.column-empty { padding: 28px 14px; color: #9a9c95; text-align: center; border: 1px dashed #c9c7bf; border-radius: 8px; background: rgba(255,255,255,.28); line-height: 1.7; font-size: 12px; white-space: pre-line; }
.column-card.collapsed { min-height: 68px !important; height: 68px !important; resize: none; }
.column-card.collapsed .card-body { display: none; }

.tool-dock {
  position: absolute; right: 17px; top: 50%; transform: translateY(-50%); z-index: 15;
  display: flex; flex-direction: column; gap: 3px; background: rgba(255,255,255,.94); border: 1px solid var(--line);
  padding: 6px; border-radius: 13px; box-shadow: 0 10px 30px rgba(35,38,34,.12); backdrop-filter: blur(10px);
}
.tool-dock { display: none !important; }

.canvas-context-menu {
  position: fixed; z-index: 150; width: 288px; max-height: min(620px, calc(100vh - 24px)); overflow-y: auto;
  padding: 8px; border: 1px solid #dedcd4; border-radius: 13px; background: rgba(255,255,255,.98);
  box-shadow: 0 22px 65px rgba(25,29,26,.24); direction: rtl; backdrop-filter: blur(12px);
}
.context-menu-title { padding: 7px 9px 9px; color: #8a8c85; font-size: 10px; font-weight: 800; }
.canvas-context-menu button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 11px; border: 0; background: transparent; border-radius: 9px; padding: 7px 9px; text-align: right; cursor: pointer; }
.canvas-context-menu button:hover { background: #f3f2ed; }
.canvas-context-menu button > span:first-child { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; color: #646760; font-size: 19px; }
.canvas-context-menu button > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.canvas-context-menu strong { font-size: 13px; }
.canvas-context-menu small { color: #9b9d96; font-size: 10px; }
.canvas-context-menu .context-folder-icon { font-size: 23px; }
.context-menu-divider { height: 1px; background: #ebe9e2; margin: 6px 4px; }
.tool-btn {
  width: 55px; min-height: 51px; border: 0; background: transparent; border-radius: 9px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #777970; font-size: 9px;
}
.tool-btn:hover { background: #f3f1eb; color: var(--ink); }
.tool-icon { font-size: 19px; line-height: 1; height: 20px; display: grid; place-items: center; }
.note-icon { width: 16px; height: 18px; background: #f0c14d; border-radius: 2px; box-shadow: inset 0 -3px rgba(0,0,0,.05); }
.check-icon { font-size: 16px; border: 2px solid #7b7d75; width: 17px; height: 17px; border-radius: 4px; }

.selection-tools {
  position: absolute; bottom: 23px; left: 50%; transform: translateX(-50%); z-index: 18;
  height: 45px; display: flex; align-items: center; gap: 7px; padding: 0 9px;
  background: #262b28; color: #fff; border-radius: 11px; box-shadow: 0 12px 34px rgba(30,34,31,.26);
}
.selection-count { font-size: 10px; color: #d8dad7; white-space: nowrap; padding: 0 3px; }
.selection-tools button { width: 30px; height: 30px; border: 0; background: transparent; color: #ddd; border-radius: 7px; cursor: pointer; }
.selection-tools button:hover { background: rgba(255,255,255,.1); color: #fff; }
.selection-tools button.danger:hover { background: #a84837; }
.color-swatches { display: flex; gap: 5px; align-items: center; }
.swatch { width: 19px !important; height: 19px !important; border-radius: 50% !important; border: 2px solid rgba(255,255,255,.25) !important; }
.swatch.active { box-shadow: 0 0 0 2px #fff; }
.toolbar-divider { width: 1px; height: 22px; background: rgba(255,255,255,.14); }

.zoom-controls {
  position: absolute; left: 17px; bottom: 17px; z-index: 14; display: flex; align-items: center;
  height: 36px; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 9px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(38,39,34,.08);
}
.zoom-controls button { height: 100%; min-width: 34px; padding: 0; border: 0; background: transparent; cursor: pointer; color: #6d6e68; }
.zoom-controls button:hover { background: #f1f0eb; }
.zoom-controls .zoom-value { width: 53px; font-size: 10px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

.popover {
  position: fixed; top: 66px; left: 18px; z-index: 80; min-width: 190px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; padding: 6px; box-shadow: var(--shadow-lg); direction: rtl;
}
.popover button { display: block; width: 100%; border: 0; background: transparent; padding: 9px 10px; text-align: right; border-radius: 7px; cursor: pointer; }
.popover button:hover { background: #f4f3ef; }
.danger-text { color: #c34d39 !important; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(24,27,25,.48); z-index: 100; display: grid; place-items: center; backdrop-filter: blur(4px); direction: rtl; }
.modal { width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 17px; padding: 27px; box-shadow: 0 30px 80px rgba(20,24,21,.28); }
.modal-icon { width: 41px; height: 41px; border-radius: 11px; display: grid; place-items: center; background: #fbe5df; color: var(--accent-dark); font-size: 22px; }
.modal h2 { margin: 14px 0 6px; font-size: 22px; }
.modal p { margin: 0 0 20px; color: var(--theme-muted,var(--muted)); line-height: 1.6; }
.modal-field span { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 700; }
.modal-field input { width: 100%; height: 44px; border: 1px solid #dcdad3; border-radius: 9px; outline: 0; padding: 0 12px; }
.modal-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(231,93,63,.12); }
.modal-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 8px; }
.modal-actions button { height: 41px; border-radius: 8px; padding: 0 17px; font-weight: 700; cursor: pointer; }
.secondary-btn { border: 1px solid var(--line); background: #fff; }
.primary-btn { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary-btn:hover { background: var(--accent-dark); }

.toast-region { position: fixed; left: 20px; top: 88px; z-index: 120; display: flex; flex-direction: column; gap: 8px; direction: rtl; }
.toast { background: #272c29; color: #fff; padding: 11px 15px; border-radius: 9px; box-shadow: var(--shadow-lg); animation: toast-in .22s ease both; }
.hidden { display: none !important; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-7px); } }

@media (max-width: 850px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .24s ease; box-shadow: 10px 0 40px rgba(0,0,0,.2); }
  .sidebar.open { transform: translateX(0); }
  .mobile-only { display: grid; }
  .search-box { width: 40px; padding: 0; justify-content: center; cursor: pointer; }
  .search-box input, .search-box kbd { display: none; }
  .topbar { padding-right: 12px; padding-left: 10px; }
  .tool-dock { right: 8px; }
}

/* HyperNote 1.9: only visible timeline controls receive pointer input */
.timeline-event { pointer-events: none !important; }
.timeline-date-marker,
.timeline-content-side { pointer-events: auto !important; }

/* HyperNote 2.0 final path colors */
.breadcrumb-btn { color: #4e5863 !important; }
.breadcrumb-btn:hover:not(:disabled) { color: #1f2831 !important; }
.breadcrumb-current-label,
.breadcrumb-current-label:disabled,
.breadcrumb-item.current .board-title { color: #979da5 !important; }
.timeline-endpoint-label { display: none !important; }

/* HyperNote 2.0 compact Milanote-style path */
.board-heading {
  flex: 0 1 430px !important;
  min-width: 0;
  gap: 8px !important;
  direction: ltr;
  overflow: hidden;
}
.folder-up-btn {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #27303a !important;
  color: #fff !important;
  font-size: 9px !important;
  box-shadow: none !important;
}
.folder-up-btn:hover:not(:disabled) { background: #151b22 !important; }
.folder-up-btn:disabled { opacity: 1 !important; cursor: default; }
.breadcrumbs {
  display: flex !important;
  align-items: center;
  min-width: 0;
  min-height: 30px !important;
  gap: 8px !important;
  margin: 0 !important;
  overflow: hidden;
  direction: ltr !important;
  white-space: nowrap;
}
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
  flex: 0 0 auto;
}
.breadcrumb-color {
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(25,32,37,.04);
}
.breadcrumb-btn,
.board-title {
  height: 28px !important;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #4e5863;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 28px;
  letter-spacing: 0 !important;
  box-shadow: none !important;
  white-space: nowrap;
}
.breadcrumb-btn { width: auto; cursor: pointer; }
.breadcrumb-btn:hover:not(:disabled) { color: #1f2831; }
.breadcrumb-current-label,
.breadcrumb-current-label:disabled,
.breadcrumb-item.current .board-title { color: #979da5 !important; opacity: 1 !important; }
.breadcrumb-item.current .board-title {
  display: inline-block;
  outline: 0;
  text-overflow: ellipsis;
}
.breadcrumb-item.current .board-title:focus {
  color: #353e47 !important;
  box-shadow: inset 0 -1px 0 #9ba4ad !important;
}
.breadcrumb-separator {
  color: #c8ccd1 !important;
  font-size: 15px !important;
  font-weight: 400;
  line-height: 1;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  .board-heading { flex-basis: 260px !important; }
  .breadcrumb-item:not(.current):not(:first-of-type) { display: none; }
  .breadcrumbs { gap: 6px !important; }
}

.timeline-endpoint-label { display: none !important; }

.mobile-only { display: none !important; }

@media (max-width: 560px) {
  .topbar-actions .icon-btn:not(#board-menu-btn) { display: none; }
  .board-title { width: 52vw; font-size: 17px; }
  .breadcrumbs { display: none; }
  .tool-dock { top: auto; bottom: 11px; right: 50%; transform: translateX(50%); flex-direction: row; }
  .tool-btn { width: 48px; min-height: 45px; }
  .tool-btn span:last-child { display: none; }
  .zoom-controls { bottom: 71px; left: 9px; }
  .selection-tools { bottom: 70px; }
  .canvas-hint { display: none; }
}

/* Sleek workspace refresh */
:root {
  --bg: #f7f6f3;
  --panel-soft: #faf9f7;
  --ink: #30312d;
  --muted: #85867f;
  --line: #e9e7e1;
  --accent: #e45f42;
  --accent-dark: #c84d33;
  --shadow: 0 2px 8px rgba(37, 39, 35, .07), 0 1px 2px rgba(37, 39, 35, .05);
  --shadow-lg: 0 14px 38px rgba(35, 38, 34, .14);
  --radius: 9px;
}

.sidebar,
.sidebar.open {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  min-width: 0 !important;
  pointer-events: none !important;
}

.workspace { width: 100%; }
.topbar {
  height: 64px;
  min-height: 64px;
  padding: 0 18px;
  background: rgba(255, 255, 255, .92);
  border-color: #eceae5;
  backdrop-filter: blur(14px);
}
.board-heading { gap: 9px; }
.board-title { font-size: 17px; font-weight: 680; letter-spacing: -.01em; }
.breadcrumbs { min-height: 15px; gap: 4px; }
.breadcrumb-btn { font-size: 9px; color: #a2a39d; }
.breadcrumb-separator { color: #d0cec8; }
.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border-color: #ebe9e3;
  font-size: 15px;
  color: #62645e;
  box-shadow: 0 1px 2px rgba(30, 32, 29, .025);
}
.icon-btn:hover:not(:disabled) { background: #f7f6f3; border-color: #dfddd6; }
.topbar-actions { gap: 5px; }
.search-box {
  width: 235px;
  height: 34px;
  border-radius: 8px;
  border-color: #ebe9e3;
  background: #f9f8f5;
  font-size: 12px;
}
.search-box kbd { border: 0; background: transparent; color: #b5b5af; }

.canvas-area {
  background-color: #f7f6f3;
  background-image: radial-gradient(#deddd7 .8px, transparent .8px);
  background-size: 24px 24px;
}
.canvas-hint {
  top: 12px;
  padding: 5px 10px;
  border-color: rgba(226, 224, 217, .75);
  background: rgba(255,255,255,.7);
  color: #aaa9a3;
  font-size: 9px;
  box-shadow: 0 1px 3px rgba(35,37,33,.025);
}
.marquee { border: 0 !important; background: transparent !important; }

.card {
  border-color: rgba(48, 49, 44, .07);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.card:hover { box-shadow: 0 5px 15px rgba(39, 41, 37, .085), 0 1px 2px rgba(39, 41, 37, .045); }
.note-card { min-width: 32px; min-height: 28px; }
.card.selected:not(.board-card) {
  outline: 1.5px solid rgba(228, 95, 66, .82);
  outline-offset: 1px;
  box-shadow: 0 7px 20px rgba(39,41,37,.1);
}
.drag-handle {
  height: 24px;
  padding: 0 8px;
  color: rgba(64, 65, 60, .34);
  border-bottom-color: rgba(46, 47, 43, .045);
}
.card-kind { font-size: 8px; font-weight: 650; letter-spacing: .025em; }
.card-dots { font-size: 9px; opacity: .55; }
.card-body { padding: 13px 15px 15px; }
.note-text { font-size: 13px; line-height: 1.65; }
.note-card .note-text { min-height: 18px; }
.timeline-centered-note .card-body {
  height: calc(100% - 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7px 9px;
}
.timeline-centered-note .note-text {
  width: 100%;
  min-height: 24px;
  text-align: center;
  display: block;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.connection-handle {
  width: 14px;
  height: 14px;
  left: -8px;
  border-width: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.16);
}
.connection-handle::after { display: none; }

.board-card {
  width: 112px;
  min-width: 112px;
  min-height: 112px;
  border: 0;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
}
.board-card:hover { background: rgba(255, 255, 255, .46) !important; }
.board-card.selected,
.board-card.multi-selected {
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.board-card .drag-handle { inset: 3px 12px 30px; }
.folder-card-view {
  min-height: 112px;
  padding: 11px 5px 5px;
  gap: 5px;
  transition: transform .16s ease;
}
.folder-icon-large {
  width: 58px;
  height: 41px;
  margin-top: 4px;
  border-radius: 4px 5px 5px 5px;
  background: linear-gradient(180deg, #ffd465 0%, #efb33b 100%);
  box-shadow: inset 0 -3px 5px rgba(153,96,7,.1), 0 3px 7px rgba(94,67,20,.12);
  transition: transform .16s ease, filter .16s ease;
}
.folder-icon-large::before {
  right: 4px;
  top: -8px;
  width: 25px;
  height: 11px;
  border-radius: 4px 5px 0 0;
}
.folder-icon-large::after { top: 6px; border-radius: 4px 5px 5px 5px; }
.folder-card-title {
  font-size: 11px;
  font-weight: 560;
  line-height: 1.3;
  max-height: none;
  color: #454640;
}
.folder-card-meta { display: none; }
.board-card:hover .folder-card-view { transform: translateY(-1px); }
.board-card.selected .folder-icon-large { transform: translateY(-2px); filter: saturate(1.12) brightness(1.02); }
.board-card.selected .folder-card-title { color: var(--accent-dark); font-weight: 680; }
.board-card .connection-handle { opacity: 0; transition: opacity .15s ease; }
.board-card:hover .connection-handle { opacity: 1; }

.column-card {
  background: #f3f2ef !important;
  border-color: #e2e0da;
  border-radius: 9px;
  box-shadow: 0 2px 9px rgba(39,41,37,.06);
}
.column-card:hover { box-shadow: 0 4px 14px rgba(39,41,37,.075); }
.column-card .drag-handle {
  height: 25px;
  padding: 0 9px;
  background: transparent;
  color: #a0a19b;
  border-bottom: 1px solid rgba(50,50,45,.055);
  border-radius: 9px 9px 0 0;
}
.column-card .card-body { padding: 8px; }
.column-header-row { padding: 1px 1px 8px; gap: 6px; }
.column-title { min-width: 0; font-size: 16px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.column-count { padding: 2px 6px; font-size: 9px; background: rgba(255,255,255,.62); }
.collapse-column { width: 23px; height: 23px; border-radius: 6px; background: rgba(255,255,255,.72); }
.column-items { gap: 7px; }
.column-note {
  border-color: rgba(50,50,45,.065);
  border-radius: 7px;
  padding: 7px 9px 9px;
  box-shadow: 0 1px 4px rgba(40,42,37,.045);
}
.column-note-bar { padding-bottom: 2px; opacity: .72; }
.column-note textarea { font-size: 12px; line-height: 1.55; }
.column-add-note {
  height: auto;
  min-height: 18px;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 7px;
  border-color: #d5d3cd;
  border-radius: 7px;
  font-size: 11px;
  background: rgba(255,255,255,.36);
}
.column-empty {
  padding: 23px 12px;
  border-color: #d7d5cf;
  border-radius: 7px;
  background: rgba(255,255,255,.22);
  color: #a3a49e;
  font-size: 11px;
}
.column-card.drop-target {
  outline: 2px solid rgba(84,145,111,.72);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px rgba(84,145,111,.07);
}

.selection-tools {
  height: 40px;
  bottom: 18px;
  gap: 5px;
  padding: 0 8px;
  background: rgba(255,255,255,.96);
  color: #5d5f58;
  border: 1px solid #e3e1db;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(35,38,34,.13);
  backdrop-filter: blur(12px);
}
.selection-count { color: #858780; font-size: 9px; }
.selection-tools button { width: 27px; height: 27px; color: #686a63; border-radius: 6px; }
.selection-tools button:hover { background: #f1f0ec; color: #343630; }
.selection-tools button.danger:hover { background: #fbe8e4; color: #ba4e3a; }
.toolbar-divider { height: 19px; background: #e5e3dd; }
.swatch { width: 16px !important; height: 16px !important; border: 1px solid rgba(70,70,65,.12) !important; }
.swatch.active { box-shadow: 0 0 0 1.5px #7d7f78; }

.zoom-controls {
  left: 14px;
  bottom: 14px;
  height: 31px;
  border-color: #e6e4de;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(38,39,34,.055);
}
.zoom-controls button { min-width: 30px; font-size: 12px; }
.zoom-controls .zoom-value { width: 47px; font-size: 9px; }

.canvas-context-menu {
  width: 260px;
  padding: 6px;
  border-color: #e4e2dc;
  border-radius: 11px;
  box-shadow: 0 16px 46px rgba(25,29,26,.17);
}
.context-menu-title { padding: 6px 8px 7px; font-size: 9px; }
.canvas-context-menu button { min-height: 42px; gap: 9px; padding: 5px 8px; border-radius: 7px; }
.canvas-context-menu button > span:first-child { width: 25px; height: 25px; font-size: 16px; }
.canvas-context-menu strong { font-size: 12px; font-weight: 650; }
.canvas-context-menu small { font-size: 9px; }

.popover { top: 57px; border-radius: 9px; box-shadow: 0 12px 34px rgba(35,38,34,.13); }
.modal { border-radius: 13px; padding: 23px; box-shadow: 0 24px 64px rgba(20,24,21,.2); }
.modal h2 { font-size: 19px; }
.modal-icon { width: 36px; height: 36px; border-radius: 9px; font-size: 19px; }
.toast { background: rgba(48,52,49,.96); border-radius: 8px; box-shadow: 0 10px 28px rgba(30,33,30,.18); }

@media (max-width: 850px) {
  .topbar { padding: 0 10px; }
  .selection-tools { max-width: calc(100vw - 18px); overflow-x: auto; }
}

.topbar,
.canvas-hint,
.selection-tools,
.canvas-context-menu,
.modal-backdrop,
.tool-dock {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Functional interaction fixes */
.canvas-area,
.canvas-area.panning,
.drag-handle,
.column-entry-bar,
.column-note-bar,
.board-card,
.image-card img,
.card.dragging {
  cursor: default !important;
}

.card {
  resize: none !important;
  overflow: visible;
}

.resize-handle {
  position: absolute;
  bottom: calc(-8px * var(--hn-inverse-zoom, 1));
  width: 20px;
  height: 20px;
  z-index: 12;
  opacity: 0;
  transition: opacity .14s ease;
  touch-action: none;
  transform: scale(var(--hn-inverse-zoom, 1));
}
.card:hover > .resize-handle,
.card.selected > .resize-handle,
.card.resizing > .resize-handle { opacity: 1; }
.resize-handle::before,
.resize-handle::after {
  content: none;
  position: absolute;
  bottom: 4px;
  background: var(--accent, #6a9875);
  border-radius: 2px;
  opacity: .55;
}
.resize-handle::before { width: 9px; height: 2px; }
.resize-handle::after { width: 2px; height: 9px; }
.resize-br { right: calc(-8px * var(--hn-inverse-zoom, 1)); transform-origin: bottom right; cursor: nwse-resize; }
.resize-br::before,.resize-br::after { right: 4px; }
.resize-bl { left: calc(-8px * var(--hn-inverse-zoom, 1)); transform-origin: bottom left; cursor: nesw-resize; }
.resize-bl::before,.resize-bl::after { left: 4px; }
.column-card.collapsed > .resize-handle { display: none; }

.image-card .card-body {
  height: calc(100% - 24px);
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 0 0 9px 9px;
  background: #f0efeb;
}
.image-card img {
  display: block;
  width: 100%;
  height: calc(100% - 39px);
  flex: 1 1 auto;
  min-height: 0;
  object-fit: contain;
  pointer-events: auto;
  user-select: none;
}
.image-caption {
  flex: 0 0 39px;
  height: 39px;
  padding: 9px 12px !important;
  background: #fff;
  border-top: 1px solid rgba(50,50,45,.06);
}

.column-card {
  height: auto !important;
  min-height: 0;
  resize: none !important;
  overflow: visible;
}
.column-card .card-body {
  max-height: none !important;
  overflow: visible !important;
}
.column-collapse-float {
  position: absolute;
  top: 2px;
  left: 5px;
  z-index: 20;
  width: 21px;
  height: 21px;
  line-height: 20px;
  padding: 0;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(60,60,55,.08);
}
.column-card.collapsed {
  height: 27px !important;
  min-height: 27px !important;
}
.column-card.collapsed .drag-handle {
  height: 27px;
  border-radius: 9px;
  border-bottom: 0;
}
.column-card.collapsed .card-body { display: none; }
.column-card.collapsed .column-collapse-float { display: block; }

.column-entry {
  position: relative;
  padding: 7px 9px 9px;
  border: 1px solid rgba(50,50,45,.065);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(40,42,37,.045);
  overflow: hidden;
}
.column-entry-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 19px;
  padding-bottom: 3px;
  color: #aaa;
  font-size: 9px;
}
.column-entry.embedded-dragging {
  opacity: .68;
  z-index: 100;
  pointer-events: none;
  box-shadow: 0 14px 35px rgba(30,34,31,.25);
}
.column-entry textarea { min-height: 55px; line-height: 1.6; }
.column-image { padding: 7px; }
.column-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
  border-radius: 5px;
  background: #f2f1ed;
  user-select: none;
}
.column-image-caption {
  padding: 7px 3px 1px;
  color: #686a63;
  font-size: 11px;
  text-align: right;
}
.column-folder-content {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 4px 3px;
}
.column-folder-icon {
  position: relative;
  width: 48px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 4px 5px 5px;
  background: linear-gradient(180deg, #ffd465 0%, #efb33b 100%);
  box-shadow: inset 0 -3px 5px rgba(153,96,7,.1), 0 2px 5px rgba(94,67,20,.1);
}
.column-folder-icon::before {
  content: "";
  position: absolute;
  right: 3px;
  top: -6px;
  width: 21px;
  height: 8px;
  border-radius: 4px 4px 0 0;
  background: #f5c34e;
}
.column-folder-title { min-width: 0; flex: 1 1 0; color: var(--content-ink, #454640); font-size: 14px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; unicode-bidi: plaintext; }

.image-preview {
  --image-preview-control-size: 42px;
  --image-preview-gap: clamp(6px, 1.2vw, 12px);
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  grid-template: auto minmax(0, 1fr) auto / minmax(0, 1fr);
  gap: var(--image-preview-gap);
  padding: clamp(8px, 1.4vw, 18px);
  direction: ltr;
  background: rgba(24,26,24,.88);
}
.image-preview.hidden, .image-preview [hidden], .image-preview-nav.hidden { display: none; }
.hn-image-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.image-preview-stage { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); min-height: 0; }
.image-preview-gallery .image-preview-stage {
  grid-template-columns: var(--image-preview-control-size) minmax(0, 1fr) var(--image-preview-control-size);
  column-gap: var(--image-preview-gap);
}
.image-preview-media { display: grid; place-items: center; min-width: 0; min-height: 0; container-type: size; }
.image-preview img {
  display: block;
  max-width: min(100cqw, 1500px);
  max-height: 100cqh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.hn-image-unavailable{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:100px;width:100%;padding:12px;box-sizing:border-box;text-align:center;color:var(--theme-muted,#5b6b61);font-size:12px}
.hn-image-unavailable[hidden]{display:none}
.hn-image-unavailable a{color:var(--theme-accent,#246049);text-decoration:underline}
.hn-image-preview-unavailable{width:min(100cqw,420px);max-height:100cqh;min-height:0;overflow:auto;color:#fff}
.image-preview-control {
  display: inline-grid;
  place-items: center;
  height: var(--image-preview-control-size);
  padding: 0 12px;
  border: 1px solid #ffffff40;
  border-radius: 9px;
  background: #141616;
  color: #fff;
  font: 500 13px/1.15 Arial,sans-serif;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.image-preview-control:hover { background: #2a2d2d; }
.image-preview-control:focus-visible { outline: 2px solid #9dcefa; outline-offset: 2px; }
.image-preview-control:is(.image-preview-close,.image-preview-nav) { width: var(--image-preview-control-size); padding: 0; }
.image-preview-control > svg { display: block; width: 20px; height: 20px; pointer-events: none; }
.image-preview-nav { align-self: center; z-index: 1; }
.image-preview-caption {
  min-height: 16px;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 12px;
}
@media (max-width: 700px) { .image-preview { --image-preview-control-size: 44px; } }

/* Cleaner card headers and inline folder names */
.card-kind { display: none !important; }
.folder-title-input {
  position: relative;
  z-index: 6;
  height: 30px;
  padding: 4px 5px !important;
  border: 1px solid transparent !important;
  border-radius: 5px;
  cursor: text;
}
.folder-title-input[contenteditable="true"],
.folder-title-input:focus {
  background: rgba(255,255,255,.96) !important;
  border-color: rgba(93,95,88,.22) !important;
  box-shadow: 0 0 0 2px rgba(231,93,63,.08);
}
.column-add-note {
  width: 30px;
  min-width: 30px;
  padding: 0;
  margin-right: auto;
  margin-left: auto;
  font-size: 17px;
}

/* Visible multi-selection without accidental text selection */
.marquee {
  border: 1.5px solid #557f91 !important;
  background: rgba(85, 127, 145, .12) !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.45) inset;
  border-radius: 3px;
}
.canvas-area.marquee-active,
.canvas-area.marquee-active * {
  user-select: none !important;
  -webkit-user-select: none !important;
}

/* Easier connection controls and click-to-delete lines */
.connection-handle {
  left: auto !important;
  right: -7px;
  width: 13px;
  height: 13px;
  border-width: 2px;
  background: #658b84;
  box-shadow: 0 1px 4px rgba(31,55,50,.22);
}
.connection-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}
.connection-path { pointer-events: none; }

/* Timeline */
.timeline-card { min-width: 520px; background: #fff !important; }
.timeline-card .card-body { padding: 10px 17px 15px; height: calc(100% - 24px); }
.timeline-header { display: flex; align-items: center; gap: 8px; height: 32px; }
.timeline-title { font-size: 15px; font-weight: 720; flex: 1; }
.timeline-add{
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border: 1px solid #dddcd6;
  border-radius: 7px;
  background: #faf9f6;
  color: #676a63;
  font-size: 17px;
  cursor: pointer;
}
.timeline-track {
  position: relative;
  height: 225px;
  margin: 3px 15px 0;
  direction: ltr;
}
.timeline-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 111px;
  height: 2px;
  border-radius: 999px;
  background: #8aa39d;
  box-shadow: 0 0 0 1px rgba(255,255,255,.65);
}
.timeline-line::before,
.timeline-line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8aa39d;
}
.timeline-line::before { left: -2px; }
.timeline-line::after { right: -2px; }
.timeline-empty {
  position: absolute;
  top: 126px;
  left: 50%;
  transform: translateX(-50%);
  color: #a0a29c;
  font-size: 11px;
  white-space: nowrap;
}
.timeline-event {
  position: absolute;
  top: 0;
  width: 148px;
  height: 222px;
  transform: translateX(-50%);
  direction: rtl;
  z-index: 2;
}
.timeline-event.moving { z-index: 20; }
.timeline-event-side {
  position: absolute;
  left: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.timeline-event-top { top: 0; height: 93px; padding-bottom: 12px; }
.timeline-event-bottom { top: 129px; height: 91px; padding-top: 11px; align-items: flex-start; }
.timeline-event::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 91px;
  width: 1px;
  height: 41px;
  background: #9cb0ab;
}
.timeline-event-dot {
  position: absolute;
  left: 50%;
  top: 105px;
  transform: translateX(-50%);
  width: 15px;
  height: 15px;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #5f8a82;
  box-shadow: 0 1px 5px rgba(41,68,62,.28);
  cursor: ew-resize;
  z-index: 3;
}
.timeline-date {
  width: 132px !important;
  height: 30px;
  padding: 5px 7px;
  border: 1px solid #e0dfda !important;
  border-radius: 6px;
  background: #fff !important;
  color: #60635d;
  font-size: 10px;
}
.timeline-note {
  width: 142px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 7px 8px;
  border: 1px solid #e4e2dc !important;
  border-radius: 7px;
  background: #fff8d8 !important;
  color: #3e403b;
  font-size: 11px;
  line-height: 1.45;
  resize: none;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(45,47,42,.05);
}
.timeline-event-actions {
  position: absolute;
  top: 92px;
  right: calc(50% + 12px);
  display: flex;
  gap: 1px;
  opacity: 0;
  transition: opacity .12s ease;
}
.timeline-event:hover .timeline-event-actions { opacity: 1; }
.timeline-event-actions button {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255,255,255,.92);
  color: #898b85;
  cursor: pointer;
}

/* Numeric table */
















/* HyperNote timeline range */
.timeline-track { cursor: crosshair; }
.timeline-line::before,
.timeline-line::after { display: none; }
.timeline-endpoint {
  position: absolute;
  top: 0;
  width: 136px;
  height: 132px;
  z-index: 5;
  pointer-events: none;
  direction: rtl;
}
.timeline-endpoint-start { left: 0; transform: translateX(-4%); }
.timeline-endpoint-end { left: 100%; transform: translateX(-96%); }
.timeline-endpoint-label {
  display: block;
  margin-bottom: 3px;
  color: #75827e;
  font-size: 9px;
  font-weight: 700;
  text-align: center;
}
.timeline-endpoint-date {
  width: 132px;
  height: 30px;
  padding: 5px 6px;
  border: 1px solid #ced8d4;
  border-radius: 7px;
  outline: 0;
  background: #f8fbfa;
  color: #4f625d;
  font-size: 10px;
  pointer-events: auto;
}
.timeline-endpoint-dot {
  position: absolute;
  left: 50%;
  top: 105px;
  width: 15px;
  height: 15px;
  transform: translateX(-50%);
  border: 3px solid #fff;
  border-radius: 50%;
  background: #466f68;
  box-shadow: 0 1px 5px rgba(35,64,57,.28);
  pointer-events: auto;
}
.timeline-event,
.timeline-event * { cursor: default; }
.timeline-event-dot { cursor: ew-resize !important; }

/* Fully editable numeric table */
















/* HyperNote 1.4 compact lists, floating timeline, and neutral rich-text paste */
.column-header-row { justify-content: center !important; padding-inline: 30px !important; }
.column-title { flex: 1 1 auto !important; text-align: center !important; }
.column-count { display: none !important; }
.column-card.collapsed {
  height: 62px !important;
  min-height: 62px !important;
}
.column-card.collapsed .card-body {
  display: block !important;
  padding: 7px 8px !important;
  overflow: hidden !important;
}
.column-card.collapsed .column-header-row { padding-bottom: 0 !important; }
.column-card.collapsed .column-items,
.column-card.collapsed .column-add-note { display: none !important; }

.transparent-color {
  background-color: transparent !important;
  background-image:
    linear-gradient(45deg, #d7d6d1 25%, transparent 25%),
    linear-gradient(-45deg, #d7d6d1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d7d6d1 75%),
    linear-gradient(-45deg, transparent 75%, #d7d6d1 75%) !important;
  background-size: 8px 8px !important;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0 !important;
}

.connection-handle {
  left: 50% !important;
  right: auto !important;
  top: -4px !important;
  width: 7px !important;
  height: 7px !important;
  min-width: 7px !important;
  min-height: 7px !important;
  transform: translate(-50%, -50%) !important;
  border: 0 !important;
  background: #75827e !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.9) !important;
}

.topbar-center-tools:has(.top-timeline-toolbar:not(.hidden)) .selection-tools { display: none !important; }
.topbar-center-tools:has(.text-format-toolbar:not(.hidden)) .top-timeline-toolbar { display: none !important; }
.top-timeline-toolbar {
  position: static !important;
  min-height: 34px;
  max-width: 100%;
  gap: 3px;
  padding: 2px 5px;
  border: 1px solid #e1dfd9;
  border-radius: 8px;
  background: #faf9f6;
  box-shadow: none;
}
.top-timeline-toolbar .timeline-toolbar-add { font-size: 17px; font-weight: 500; }

.timeline-card,
.timeline-card:hover,
.timeline-card.selected,
.timeline-card.multi-selected {
  min-width: 520px;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.timeline-card > .drag-handle {
  position: absolute;
  left: 2px;
  top: calc(50% - 34px);
  z-index: 12;
  width: 22px;
  height: 18px;
  padding: 0 5px;
  border: 0;
  border-radius: 5px;
  background: rgba(255,255,255,.86);
}
.timeline-card > .resize-handle { display: none !important; }
.timeline-card .card-body {
  height: 100% !important;
  padding: 0 !important;
  overflow: visible !important;
}
.timeline-track {
  height: 100%;
  min-height: 260px;
  margin: 0 25px 0 165px !important;
  overflow: visible;
  cursor: default !important;
}
.timeline-line {
  left: 0 !important;
  right: 0 !important;
  height: 2px !important;
  z-index: 0;
}
.timeline-line::before,
.timeline-line::after { display: none !important; content: none !important; }
.timeline-line-hit {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  height: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: crosshair;
}
.timeline-floating-title {
  position: absolute;
  left: -158px;
  width: 145px !important;
  height: 28px;
  padding: 3px 5px !important;
  text-align: left;
  direction: rtl;
  border: 0 !important;
  background: transparent !important;
  font-size: 13px;
  font-weight: 720;
}
.timeline-endpoint { z-index: 6; }
.timeline-endpoint-start { left: -5px !important; right: auto !important; }
.timeline-endpoint-end { left: auto !important; right: -5px !important; }
.timeline-endpoint-dot { cursor: ew-resize !important; }
.timeline-event { z-index: 3; overflow: visible; }
.timeline-event-side {
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  overflow: visible;
}
.timeline-event-side.moving { z-index: 30; }
.timeline-date-side { height: 31px !important; }
.timeline-content-side { height: var(--timeline-panel-height, 72px) !important; }
.timeline-part-grip {
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 8;
  width: 12px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: rgba(255,255,255,.88) !important;
  color: #8c918a !important;
  cursor: ns-resize !important;
  font-size: 13px;
}
.timeline-event-connector { z-index: 0; }
.timeline-event-dot { z-index: 5; }
.timeline-card.selected .timeline-line { background: #648c83 !important; box-shadow: 0 0 0 1px rgba(100,140,131,.13) !important; }
.timeline-endpoint { display: block !important; width: 150px !important; }
.timeline-endpoint-dot { position: absolute !important; top: 10px !important; margin: 0 !important; }
.timeline-endpoint-start .timeline-endpoint-dot { left: 0 !important; right: auto !important; }
.timeline-endpoint-end .timeline-endpoint-dot { left: auto !important; right: 0 !important; }
.timeline-endpoint-date { position: absolute !important; top: 1px !important; margin: 0 !important; }
.timeline-endpoint-start .timeline-endpoint-date { left: 15px !important; right: auto !important; }
.timeline-endpoint-end .timeline-endpoint-date { left: auto !important; right: 15px !important; }
.timeline-endpoint-label { position: absolute !important; top: -15px !important; bottom: auto !important; width: 105px !important; }
.timeline-endpoint-start .timeline-endpoint-label { left: 15px !important; right: auto !important; }
.timeline-endpoint-end .timeline-endpoint-label { left: auto !important; right: 15px !important; }

/* HyperNote 1.5 simplified list entries and timeline controls */
.column-entry { padding-top: 9px !important; cursor: grab; }
.column-entry:active { cursor: grabbing; }
.column-entry.entry-selected,
.column-entry:focus { outline: 1.5px solid #789990; outline-offset: 2px; }
.column-entry-bar,
.column-note-bar,
.column-note-actions { display: none !important; }

.timeline-floating-title {
  left: auto !important;
  right: 100% !important;
  width: max-content !important;
  min-width: 145px !important;
  max-width: none !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: right !important;
  direction: rtl !important;
  unicode-bidi: plaintext;
}
.timeline-floating-title:empty::before { content: attr(data-placeholder); color: #9a9c96; pointer-events: none; }
.timeline-card > .drag-handle {
  left: calc(100% - 20px) !important;
  top: calc(50% - 9px) !important;
  width: 23px !important;
  height: 18px !important;
  justify-content: center !important;
  padding: 0 !important;
}
.timeline-card > .drag-handle .card-dots { letter-spacing: 1px; }
.timeline-card .connection-handle {
  left: calc(100% + 6.5px) !important;
  top: 50% !important;
  z-index: 20 !important;
}
.timeline-event-side {
  left: -7px !important;
  width: 164px !important;
  cursor: ns-resize;
}
.timeline-event-side .timeline-date,
.timeline-event-side .timeline-note,
.timeline-event-side .timeline-checklist { cursor: text; }
.timeline-part-grip { display: none !important; }

/* HyperNote 1.6 compact month/day timeline markers */
.timeline-date-marker {
  width: 38px !important;
  height: 30px !important;
  min-width: 38px !important;
  min-height: 30px !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: 1px solid #b9c7c3 !important;
  border-radius: 5px !important;
  background: var(--timeline-date-color, #f4f7f6) !important;
  color: #46504c !important;
  font-size: 9px !important;
  font-weight: 750 !important;
  line-height: 28px !important;
  direction: ltr !important;
  letter-spacing: -.2px;
  box-shadow: 0 1px 3px rgba(45,58,53,.09) !important;
  cursor: ew-resize !important;
}
.timeline-date-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 8px;
  transform: translateX(-50%);
  background: #aebdb8;
}
.timeline-event.point-selected .timeline-date-marker {
  background: var(--timeline-date-color, #f4f7f6) !important;
  border-color: #537e74 !important;
  box-shadow: 0 0 0 3px rgba(83,126,116,.16), 0 1px 4px rgba(41,68,62,.16) !important;
}




.context-item-action strong,
.context-selection-action strong { color: #3f4d48; }

/* HyperNote 1.1 refinements */
.export-menu-btn { color: #4d7068; }
.export-menu {
  top: 56px;
  left: 18px;
  width: 238px;
  padding: 7px;
}
.export-menu-title {
  padding: 6px 9px 8px;
  color: #858982;
  font-size: 10px;
  font-weight: 700;
}
.export-menu-divider { height: 1px; margin: 5px 4px; background: #eceae5; }
.export-menu button:disabled { opacity: .38; cursor: default; }
.export-menu button:disabled:hover { background: transparent; }

.connection-path {
  stroke-width: 1.05 !important;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  opacity: .82;
}
.connection-handle {
  background: #6f8f98 !important;
  box-shadow: 0 1px 4px rgba(44,72,79,.2) !important;
}

.folder-icon-large {
  width: 56px !important;
  height: 42px !important;
  margin-top: 4px !important;
  border: 1.5px solid var(--board-color) !important;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--board-color) 12%, #ffffff) !important;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--board-color) 13%, transparent) !important;
}
.folder-icon-large::before {
  left: 7px !important;
  right: 7px !important;
  top: 9px !important;
  width: auto !important;
  height: 3px !important;
  border-radius: 3px !important;
  background: var(--board-color) !important;
  opacity: .72;
}
.folder-icon-large::after {
  left: auto !important;
  right: 9px !important;
  top: 18px !important;
  bottom: auto !important;
  width: 14px !important;
  height: 14px !important;
  border: 0 !important;
  border-radius: 3px !important;
  background: color-mix(in srgb, var(--board-color) 30%, #ffffff) !important;
  box-shadow: -20px 0 0 color-mix(in srgb, var(--board-color) 18%, #ffffff) !important;
}

.rich-text-editor {
  width: 100%;
  min-height: 64px;
  outline: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  cursor: text;
}
.rich-text-editor:empty::before {
  content: attr(data-placeholder);
  color: #aaa;
  pointer-events: none;
}
.column-note-text { min-height: 55px; font-size: 12px; line-height: 1.55; }
.text-format-toolbar {
  position: fixed;
  left: 50%;
  bottom: 76px;
  z-index: 10050;
  min-height: 42px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid #deddd7;
  border-radius: 10px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 12px 34px rgba(31,34,31,.18);
  direction: rtl;
}
.text-format-toolbar select {
  height: 29px;
  max-width: 92px;
  border: 1px solid #e1dfd9;
  border-radius: 6px;
  background: #faf9f6;
  color: #565952;
  font-size: 10px;
}
.text-format-toolbar button {
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #555851;
  cursor: pointer;
}
.text-format-toolbar button:hover { background: #f0efeb; }
.text-format-toolbar input[type="color"] {
  width: 28px;
  height: 28px;
  padding: 3px;
  border: 1px solid #e0ded8;
  border-radius: 6px;
  background: #fff;
}
.text-format-toolbar .toolbar-divider { background: #e5e3de; }

.timeline-track { min-height: 226px; }
.timeline-event {
  top: 0;
  width: 150px;
}
.timeline-event-side { height: 78px !important; padding: 0 !important; }
.timeline-event-top { align-items: flex-end; }
.timeline-event-bottom { align-items: flex-start; }
.timeline-event::before { display: none !important; }
.timeline-event-connector {
  position: absolute;
  left: 50%;
  width: 1px;
  transform: translateX(-50%);
  background: #bdc8c4;
  z-index: 0;
}
.timeline-event-dot {
  width: 13px;
  height: 13px;
  border-width: 3px;
}
.timeline-event-actions {
  right: calc(50% + 10px);
  z-index: 8;
  align-items: center;
  gap: 2px;
}
.timeline-event-actions button { width: 19px; height: 19px; }
.timeline-color-picker {
  width: 18px !important;
  height: 18px !important;
  padding: 1px !important;
  border: 1px solid #dcdad4 !important;
  border-radius: 5px !important;
  background: #fff !important;
  cursor: pointer !important;
}
.timeline-date {
  background: var(--timeline-date-color, #f4f7f6) !important;
  transition: background-color .12s ease;
}
.timeline-note {
  width: 142px !important;
  height: 70px !important;
  min-height: 70px !important;
  padding: 7px 8px;
  border: 1px solid #e4e2dc;
  border-radius: 7px;
  color: #3e403b;
  font-size: 11px;
  line-height: 1.45;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(45,47,42,.05);
  background: var(--timeline-note-color, #ffffff) !important;
}
.timeline-checklist {
  width: 142px;
  height: 72px;
  padding: 5px 6px;
  border: 1px solid #e4e2dc;
  border-radius: 7px;
  overflow-y: auto;
  box-shadow: 0 1px 3px rgba(45,47,42,.05);
}
.timeline-task {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
}
.timeline-task input[type="checkbox"] { width: 12px; height: 12px; margin: 0; accent-color: #678c83; }
.timeline-task textarea { min-width: 0; padding: 1px 2px; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; font-size: 10px; line-height: 1.45; }
.timeline-task.done textarea { color: #9a9c96; text-decoration: line-through; }
.timeline-task-add {
  width: 100% !important;
  height: 18px !important;
  border: 1px dashed #d7d5cf !important;
  background: transparent !important;
  color: #84877f !important;
  font-size: 12px;
}

@media (max-width: 760px) {
  .export-menu-btn { display: grid !important; }
  .text-format-toolbar { bottom: 64px; max-width: calc(100vw - 16px); overflow-x: auto; }
}

/* HyperNote 1.2 top workspace and compact controls */
.topbar { gap: 10px; }
.board-heading { flex: 0 1 300px; }
.topbar-actions { flex: 0 0 auto; }
.topbar-center-tools {
  flex: 1 1 auto;
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}
.topbar-center-tools:has(.text-format-toolbar:not(.hidden)) .selection-tools { display: none !important; }
.share-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }

.topbar-center-tools .selection-tools,
.topbar-center-tools .text-format-toolbar,
.topbar-center-tools .zoom-controls {
  position: static;
  inset: auto;
  transform: none;
  box-shadow: none;
}
.topbar-center-tools .selection-tools {
  height: 34px;
  max-width: 100%;
  gap: 3px;
  padding: 2px 5px;
  border: 1px solid #e5e3de;
  border-radius: 8px;
  background: #faf9f6;
  color: #555850;
  overflow: hidden;
}
.topbar-center-tools .selection-count { display: none; }
.topbar-center-tools .selection-tools button { width: 21px; height: 22px; flex: 0 0 21px; font-size: 10px; }
.topbar-center-tools .selection-tools button:hover { background: #eeece7; color: #30332e; }
.topbar-center-tools .color-swatches { gap: 2px; }
.topbar-center-tools .swatch { width: 12px !important; height: 12px !important; flex: 0 0 12px; border: 1px solid #d6d4ce !important; }
.topbar-center-tools .swatch.active { box-shadow: 0 0 0 1px #5e625b; }

.topbar-center-tools .text-format-toolbar {
  min-height: 34px;
  max-width: 100%;
  gap: 3px;
  padding: 2px 5px;
  border-radius: 8px;
  box-shadow: none;
  overflow-x: auto;
}
.topbar-center-tools .text-format-toolbar select { height: 24px; max-width: 58px; font-size: 8px; }
.topbar-center-tools .text-format-toolbar button { width: 20px; height: 22px; flex: 0 0 20px; font-size: 9px; }
.format-color-swatches { display: flex; align-items: center; gap: 2px; padding: 0 2px; }
.text-format-toolbar .format-color-swatch {
  width: 10px !important;
  height: 10px !important;
  flex: 0 0 10px !important;
  border: 1px solid #cfcdc7 !important;
  border-radius: 50% !important;
  padding: 0 !important;
}
.topbar-center-tools .zoom-controls {
  flex: 0 0 auto;
  height: 30px;
  border-radius: 7px;
}
.topbar-center-tools .zoom-controls button { min-width: 25px; font-size: 10px; }
.topbar-center-tools .zoom-controls .zoom-value { width: 39px; font-size: 8px; }

.heading-card,
.heading-card:hover,
.heading-card.selected,
.heading-card.multi-selected,
.heading-card .heading-text { box-shadow: none !important; text-shadow: none !important; filter: none !important; }

.timeline-header { height: 35px; gap: 5px; }
.timeline-point-toolbar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 29px;
  padding: 2px 4px;
  border: 1px solid #e1dfd9;
  border-radius: 7px;
  background: #faf9f6;
  direction: rtl;
}
.timeline-point-toolbar select,
.timeline-point-toolbar input[type="date"] {
  width: 70px;
  height: 23px;
  padding: 1px 4px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: #60635d;
  font-size: 9px;
}
.timeline-point-toolbar input[type="date"] { width: 101px; direction: ltr; }
.timeline-point-toolbar input[type="color"] {
  width: 22px;
  height: 22px;
  padding: 2px;
  border: 1px solid #d9d7d1;
  border-radius: 5px;
  background: #fff;
}
.timeline-point-toolbar button {
  width: 23px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #6e716a;
  cursor: pointer;
}
.timeline-point-toolbar button:hover { background: #ebe9e4; color: #30332e; }
.timeline-event-actions { display: none !important; }
.timeline-event.point-selected .timeline-event-dot {
  background: #3e746a;
  box-shadow: 0 0 0 3px rgba(62,116,106,.18), 0 1px 5px rgba(41,68,62,.22);
}
.timeline-event.point-selected .timeline-note,
.timeline-event.point-selected .timeline-checklist,
.timeline-event.point-selected .timeline-date { border-color: #88a79f !important; }

@media (max-width: 980px) {
  .topbar { gap: 5px; padding: 0 8px; }
  .board-heading { flex-basis: 210px; }
  .board-title { width: 170px; }
  .search-box { width: 175px; }
  .topbar-center-tools { justify-content: flex-start; }
}

/* HyperNote 1.3 precision, palettes, timeline and calendar */
.marquee { position: fixed !important; }
.connection-handle,
.swatch,
.format-color-swatch,
.color-dropdown-current,
.color-dropdown-option,
.timeline-event-dot {
  aspect-ratio: 1 / 1 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
}
.connection-handle { width: 14px !important; height: 14px !important; min-width: 14px !important; min-height: 14px !important; }
.topbar-center-tools,
.topbar-center-tools .selection-tools,
.topbar-center-tools .text-format-toolbar { overflow: visible; }

.color-dropdown { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; }
.color-dropdown-trigger {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 4px !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
}
.color-dropdown-current { display: block; width: 15px; height: 15px; border: 1px solid #c9c7c1; }
.color-dropdown-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 50%;
  transform: translateX(50%);
  z-index: 12000;
  width: 128px;
  display: grid;
  grid-template-columns: repeat(5, 18px);
  gap: 6px;
  padding: 8px;
  border: 1px solid #dfddd7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(32,35,31,.18);
}
.color-dropdown-option {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  padding: 0 !important;
  border: 1px solid #cac8c2 !important;
  cursor: pointer;
}
.color-dropdown-option:hover { box-shadow: 0 0 0 2px #777b74; }
.format-color-swatches { padding: 0; }

.timeline-event-side { height: var(--timeline-panel-height, 72px) !important; }
.timeline-note {
  height: var(--timeline-panel-height, 72px) !important;
  min-height: 72px !important;
  max-height: none !important;
  overflow: hidden !important;
}
.timeline-checklist {
  min-height: 72px;
  max-height: none;
  overflow: visible;
}
.timeline-endpoint {
  width: 150px;
  height: 30px;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.timeline-endpoint-start { left: -5px; transform: none; }
.timeline-endpoint-end { left: auto; right: -5px; transform: none; justify-content: flex-end; }
.timeline-endpoint-label { position: absolute; bottom: 28px; margin: 0; width: 100%; }
.timeline-endpoint-date { width: 105px; height: 27px; pointer-events: auto; }
.timeline-endpoint-dot {
  position: static;
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  transform: none;
  border: 0;
  border-radius: 2px !important;
  box-shadow: none;
  pointer-events: auto;
}
.timeline-endpoint-start .timeline-endpoint-dot { order: 0; }
.timeline-endpoint-start .timeline-endpoint-date { order: 1; }
.timeline-endpoint-end .timeline-endpoint-date { order: 0; }
.timeline-endpoint-end .timeline-endpoint-dot { order: 1; }
.timeline-line { left: 0; right: 0; }
.timeline-point-toolbar .color-dropdown-trigger { width: 23px !important; height: 23px !important; }






.calendar-card { min-width: 290px; background: #fff !important; }
.calendar-card .card-body { padding: 10px 12px 14px; }
.calendar-header { display: grid; grid-template-columns: 28px 1fr 28px 30px; align-items: center; gap: 4px; margin-bottom: 9px; }
.calendar-header button { height: 27px; border: 0; border-radius: 6px; background: #f6f5f1; color: #60635d; cursor: pointer; }
.calendar-month-title { color: #363934; font-size: 13px; text-align: center; }
.calendar-lock { font-size: 12px; }
.calendar-weekdays,
.calendar-days { display: grid; grid-template-columns: repeat(7, minmax(24px, 1fr)); gap: 4px; direction: rtl; }
.calendar-weekdays { margin-bottom: 5px; color: #91938d; font-size: 9px; text-align: center; }
.calendar-days > span,
.calendar-days > button { aspect-ratio: 1 / 1; min-width: 0; border: 0; border-radius: 7px; background: transparent; color: #555851; font-size: 10px; }
.calendar-days > button { cursor: pointer; }
.calendar-days > button:hover { background: #f0efeb; }
.calendar-days > button.selected { background: #668e85; color: #fff; box-shadow: 0 0 0 2px rgba(102,142,133,.16); }
.calendar-locked .calendar-days > button.selected { background: #999d97; }
/* Day tasks: dots under days that have tasks, the selected day's list below the month. */
.calendar-days > button { position: relative; }
.calendar-day-marks { position: absolute; left: 50%; bottom: 3px; display: flex; gap: 2px; transform: translateX(-50%); pointer-events: none; }
.calendar-day-marks i { width: 4px; height: 4px; border-radius: 50%; background: #c0703d; }
.calendar-days > button.tasks-done .calendar-day-marks i { background: #b4b6af; }
.calendar-days > button.selected .calendar-day-marks i { background: #fff; }
.calendar-days > button.task-row-drop-target { border-top: 0; box-shadow: inset 0 0 0 2px #6b9187; }
.calendar-tasks { margin-top: 10px; padding-top: 8px; border-top: 1px solid #ecebe6; }
.calendar-tasks-header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.calendar-tasks-date { color: #4b4e48; font-size: 12px; }
.calendar-tasks-count { color: #91938d; font-size: 11px; font-variant-numeric: tabular-nums; }
.calendar-tasks-hint { margin: 0; color: #91938d; font-size: 11px; text-align: center; }
.calendar-task-rows { display: flex; flex-direction: column; gap: 4px; }
.calendar-task-row { display: flex; align-items: flex-start; gap: 7px; }
.calendar-task-row input[type="checkbox"] { width: 15px; height: 15px; margin: 3px 0 0; flex: 0 0 auto; accent-color: #668e85; }
.calendar-task-row textarea { flex: 1 1 auto; min-width: 0; padding: 0; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; color: inherit; font-size: 12.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.calendar-task-row.done textarea { text-decoration: line-through; opacity: .55; }
.calendar-task-add { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 6px; border: 0; border-radius: 6px; background: transparent; color: #858780; font: inherit; font-size: 11.5px; cursor: pointer; }
.calendar-task-add:hover { background: #f0efeb; color: #4f6f68; }
body.hn-mobile.hn-mobile-editing .hn-editing-card .calendar-task-add { justify-content: center; width: 100%; min-height: 44px; margin-top: 10px; font-size: 15px; }

/* Production schedule: tasks on the left, days running left to right in both languages */
.schedule-card { background: #fff !important; }
.schedule-card .card-body { padding: 10px 12px 12px; }
.schedule-header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.schedule-range { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.schedule-range label { display: inline-flex; align-items: center; gap: 5px; color: #8d9089; font-size: 11.5px; white-space: nowrap; }
/* Dates read day/month/year everywhere in the schedule; the button opens the browser's calendar. */
.schedule-date-field { position: relative; display: inline-flex; align-items: center; }
.schedule-range .schedule-date-field { border: 1px solid #e4e3dd; border-radius: 6px; background: #fff; color: #3d403b; }
.schedule-date-field:focus-within { outline: 2px solid color-mix(in srgb, #668e85 45%, transparent); outline-offset: 1px; }
.schedule-date-field input.schedule-date-text { flex: 0 0 auto; width: calc(10.6ch + 9px); min-width: 0; margin: 0; padding: 2px 2px 2px 7px; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.schedule-date-field input.schedule-date-text[aria-invalid="true"] { color: #b4473d; }
.schedule-date-field .schedule-date-pick { display: grid; flex: 0 0 auto; place-items: center; width: 22px; height: 22px; margin: 0 2px 0 0; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #8d9089; cursor: pointer; }
.schedule-date-field .schedule-date-pick::before { content: ''; width: 14px; height: 14px; background: currentColor; -webkit-mask: url('vendor/tabler-rail-icons/calendar.svg') center / contain no-repeat; mask: url('vendor/tabler-rail-icons/calendar.svg') center / contain no-repeat; }
.schedule-date-field .schedule-date-pick:hover { background: #f0efeb; color: #4f524c; }
.schedule-date-field .schedule-date-pick[hidden] { display: none; }
.schedule-date-field .schedule-date-native { position: absolute; right: 0; bottom: 0; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.schedule-title { flex: 1 1 180px; width: auto; min-width: 120px; padding: 2px 0; border: 0; outline: 0; background: transparent; color: #343733; font: inherit; font-size: 15px; font-weight: 600; }
.schedule-total { flex: 0 0 auto; color: #8d9089; font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-zoom { display: inline-flex; flex: 0 0 auto; padding: 2px; border-radius: 8px; background: #f3f2ee; }
.schedule-zoom button { padding: 3px 10px; border: 0; border-radius: 6px; background: transparent; color: #6d706a; font: inherit; font-size: 11.5px; cursor: pointer; }
.schedule-zoom button.active { background: #fff; color: #343733; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.schedule-scroll { direction: ltr; }
/* A framed grid: a month band on top, darker lines where a month starts, quiet day lines below. */
.schedule-grid { position: relative; box-sizing: content-box; direction: ltr; border: 1px solid var(--schedule-frame); border-radius: 8px; overflow: clip; --schedule-line: #efeee9; --schedule-frame: #dedcd5; --schedule-month-line: #bdbab1; --schedule-head-bg: #f6f5f1; --schedule-name-bg: #fff; }
.schedule-backdrop { position: absolute; top: 0; bottom: 0; left: var(--schedule-name); pointer-events: none; background-image: linear-gradient(to right, var(--schedule-line) 1px, transparent 1px); background-size: var(--schedule-day) 100%; }
.schedule-weeks .schedule-backdrop { background-size: calc(var(--schedule-day) * 7) 100%; }
.schedule-weekend { position: absolute; top: 0; bottom: 0; background: rgba(120, 116, 100, .075); }
.schedule-month-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--schedule-month-line); }
.schedule-today { position: absolute; top: 31px; bottom: 0; width: 2px; border-radius: 1px; background: #d0574a; opacity: .75; pointer-events: none; z-index: 3; }
.schedule-row { position: relative; display: flex; min-height: 30px; border-bottom: 1px solid var(--schedule-line); }
.schedule-row:last-of-type { border-bottom: 0; }
.schedule-name { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; flex: 0 0 var(--schedule-name); width: var(--schedule-name); min-width: 0; padding: 0 8px; border-right: 1px solid var(--schedule-frame); background: var(--schedule-name-bg); }
html[dir=rtl] .schedule-name { direction: rtl; }
.schedule-track { position: relative; flex: 0 0 auto; }
.schedule-months-row { height: 30px; min-height: 30px; border-bottom-color: var(--schedule-frame); background: var(--schedule-head-bg); }
.schedule-months-row :is(.schedule-name, .schedule-track) { background: var(--schedule-head-bg); }
.schedule-month { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; gap: 5px; padding: 0 9px; overflow: hidden; border-left: 1px solid var(--schedule-month-line); color: #3f423d; font-size: 12px; white-space: nowrap; }
.schedule-month.first { border-left: 0; }
/* Arabic reads the month then the year from the right, still at the start of the month. */
html[dir=rtl] .schedule-month { direction: rtl; justify-content: flex-end; }
.schedule-month b { overflow: hidden; font-weight: 600; text-overflow: ellipsis; }
.schedule-month-year { color: #9a9c95; font-variant-numeric: tabular-nums; }
.schedule-days-row { min-height: 32px; border-bottom-color: var(--schedule-frame); }
.schedule-day { position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: #5b5e58; font-size: 11px; line-height: 1.05; }
.schedule-day small { color: #a0a29b; font-size: 9px; }
.schedule-day b { min-width: 18px; padding: 1px 2px; border-radius: 9px; font-weight: 500; text-align: center; }
.schedule-day.weekend { color: #a0a29b; }
.schedule-day.today b { background: #d0574a; color: #fff; }
.schedule-day.schedule-week-label { align-items: flex-start; padding-left: 2px; }
.schedule-phase-row { min-height: 32px; }
.schedule-phase-row .schedule-name { gap: 4px; }
.schedule-phase-toggle { flex: 0 0 auto; width: 18px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #7b7e77; font-size: 12px; cursor: pointer; transition: transform .15s ease; }
.schedule-phase-toggle:hover { background: #f0efeb; }
.schedule-phase-toggle[aria-expanded="false"] { transform: rotate(-90deg); }
html[dir=rtl] .schedule-phase-toggle[aria-expanded="false"] { transform: rotate(90deg); }
.schedule-phase-color { flex: 0 0 auto; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 4px; background: var(--schedule-color); cursor: pointer; }
.schedule-phase-name { flex: 1 1 0; width: 0; min-width: 0; text-overflow: ellipsis; padding: 0; border: 0; outline: 0; background: transparent; color: #343733; font: inherit; font-size: 12.5px; font-weight: 600; }
.schedule-phase-meta { flex: 0 0 auto; color: #8d9089; font-size: 10.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.schedule-phase-bar { position: absolute; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: var(--schedule-color); }
.schedule-task-row .schedule-name { padding-inline-start: 28px; }
.schedule-task-done { flex: 0 0 auto; width: 14px; height: 14px; margin: 0; accent-color: var(--schedule-color); }
.schedule-task-name { flex: 1 1 0; width: 0; min-width: 0; text-overflow: ellipsis; padding: 0; border: 0; outline: 0; background: transparent; color: #3d403b; font: inherit; font-size: 12.5px; }
.schedule-task-row.done .schedule-task-name { color: #9a9c95; text-decoration: line-through; }
.schedule-who { flex: 0 0 auto; max-width: 72px; overflow: hidden; padding: 1px 6px; border-radius: 9px; background: #f1f0ec; color: #6d706a; font-size: 10.5px; white-space: nowrap; text-overflow: ellipsis; }
.schedule-task-edit { flex: 0 0 auto; padding: 1px 5px; border: 0; border-radius: 5px; background: transparent; color: #8d9089; font: inherit; font-size: 10.5px; white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; }
.schedule-task-edit:hover { background: #f0efeb; color: #4f524c; }
.schedule-task-edit.undated { color: #a9aba3; }
.schedule-track[data-draw] { cursor: crosshair; }
.schedule-bar { position: absolute; top: 5px; bottom: 5px; z-index: 1; display: flex; align-items: center; min-width: 6px; padding: 0 7px; overflow: hidden; box-sizing: border-box; border-radius: 6px; background: color-mix(in srgb, var(--schedule-color) 30%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--schedule-color) 55%, transparent); color: color-mix(in srgb, var(--schedule-color) 60%, #000); font-size: 11.5px; white-space: nowrap; cursor: grab; user-select: none; }
.schedule-bar.done { background: #f0efeb; box-shadow: inset 0 0 0 1px #e2e1db; color: #9a9c95; }
.schedule-bar.done .schedule-bar-label { text-decoration: line-through; }
.schedule-bar-label { overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.schedule-bar-edge { position: absolute; top: 0; bottom: 0; width: 7px; cursor: ew-resize; }
.schedule-bar-edge[data-edge="start"] { left: 0; }
.schedule-bar-edge[data-edge="end"] { right: 0; }
.schedule-bar.schedule-dragging, .schedule-milestone.schedule-dragging { z-index: 4; cursor: grabbing; }
.schedule-bar.schedule-dragging { box-shadow: 0 3px 10px rgba(0, 0, 0, .18), inset 0 0 0 1px var(--schedule-color); }
.schedule-bar.schedule-shifting, .schedule-milestone.schedule-shifting .schedule-milestone-mark { outline: 2px dashed color-mix(in srgb, var(--schedule-color) 65%, transparent); outline-offset: 1px; }
.schedule-bar.schedule-ghost { border: 1px dashed var(--schedule-color); background: color-mix(in srgb, var(--schedule-color) 14%, transparent); box-shadow: none; pointer-events: none; }
.schedule-bar:focus-visible, .schedule-milestone:focus-visible { outline: 2px solid #668e85; outline-offset: 1px; }
.schedule-milestone { position: absolute; top: 0; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: center; cursor: grab; user-select: none; }
.schedule-milestone-mark { width: 12px; height: 12px; border-radius: 2px; background: var(--schedule-color); box-shadow: 0 0 0 2px #fff; transform: rotate(45deg); }
.schedule-milestone.done .schedule-milestone-mark { background: #b4b6af; }
.schedule-milestone .schedule-bar-label { position: absolute; left: calc(100% + 3px); color: #4d504a; font-size: 11px; white-space: nowrap; }
.schedule-add-row { min-height: 26px; }
.schedule-add-row .schedule-name { padding-inline-start: 22px; }
.schedule-task-add, .schedule-phase-add { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; white-space: nowrap; padding: 2px 6px; border: 0; border-radius: 6px; background: transparent; color: #8d9089; font: inherit; font-size: 11.5px; cursor: pointer; }
.schedule-task-add:hover, .schedule-phase-add:hover { background: #f0efeb; color: #4f6f68; }
.schedule-footer { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.schedule-footer:empty { display: none; }
.schedule-hint { flex: 1 1 auto; min-width: 0; overflow: hidden; color: #a0a29b; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
body.hn-mobile.hn-mobile-editing .hn-editing-card .schedule-task-edit { min-height: 32px; padding: 4px 8px; font-size: 12px; }
body.hn-mobile.hn-mobile-editing .hn-editing-card :is(.schedule-task-add, .schedule-phase-add) { min-height: 40px; font-size: 14px; }
body.hn-mobile .schedule-hint { display: none; }
/* The phone editor does not scroll this card, so the schedule scrolls itself: names stay on the left, dates on top. */
body.hn-mobile.hn-mobile-editing .hn-editing-card .schedule-scroll { max-width: 100%; max-height: calc(var(--hn-vh, 100dvh) - 210px); overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; }
body.hn-mobile.hn-mobile-editing .hn-editing-card .schedule-name { position: sticky; left: 0; z-index: 4; }
body.hn-mobile.hn-mobile-editing .hn-editing-card :is(.schedule-months-row, .schedule-days-row) { position: sticky; z-index: 5; background: var(--schedule-name-bg); }
body.hn-mobile.hn-mobile-editing .hn-editing-card .schedule-months-row { background: var(--schedule-head-bg); }
body.hn-mobile.hn-mobile-editing .hn-editing-card .schedule-months-row { top: 0; }
body.hn-mobile.hn-mobile-editing .hn-editing-card .schedule-days-row { top: 31px; }
.hn-label-dialog.hn-schedule-dialog { width: min(440px, 94vw); }
.hn-schedule-dialog .hn-schedule-form { display: flex; flex-direction: column; gap: 10px; }
.hn-schedule-dialog .hn-schedule-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--theme-muted, #62716a); }
.hn-schedule-dialog .hn-schedule-field[hidden] { display: none; }
.hn-schedule-dialog .hn-schedule-field input { margin: 0; color: var(--theme-ink, #293238); font-size: 14px; }
.hn-schedule-dialog .hn-schedule-dates { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.hn-schedule-dialog .schedule-date-field { display: flex; width: 100%; border: 1px solid var(--theme-border, #d6d9d9); border-radius: 7px; background: var(--theme-raised, #f6f7f7); color: var(--theme-ink, #293238); }
.hn-schedule-dialog .schedule-date-field input.schedule-date-text { flex: 1 1 auto; width: 0; min-width: 0; padding: 8px 4px 8px 10px; font-size: 14px; }
.hn-schedule-dialog .schedule-date-field .schedule-date-pick { width: 34px; height: 34px; margin: 0 2px 0 0; border: 0; background: transparent; color: var(--theme-muted, #62716a); }
.hn-schedule-dialog .schedule-date-field .schedule-date-pick:is(:hover, :focus-visible) { background: var(--theme-hover, #e9edef); }
.hn-schedule-dialog .hn-schedule-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.hn-schedule-dialog .hn-schedule-check[hidden] { display: none; }
.hn-schedule-dialog .hn-schedule-check input { flex: 0 0 auto; width: 16px; height: 16px; margin: 0; padding: 0; accent-color: var(--theme-accent, #4f8f72); }
.hn-schedule-dialog .hn-schedule-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.hn-schedule-dialog .hn-schedule-swatches button { width: 26px; height: 26px; padding: 0; border: 1px solid transparent; border-radius: 7px; background-image: linear-gradient(var(--swatch), var(--swatch)); }
.hn-schedule-dialog .hn-schedule-swatches button:hover { filter: brightness(1.08); }
.hn-schedule-dialog .hn-schedule-swatches button:focus-visible { outline: 2px solid var(--theme-accent, #4f8f72); outline-offset: 2px; }
.hn-schedule-dialog .hn-schedule-swatches button[aria-checked="true"] { outline: 2px solid var(--theme-ink, #293238); outline-offset: 2px; }
.hn-schedule-dialog .hn-schedule-swatches button.phase-default { background-image: linear-gradient(135deg, var(--swatch) 0 50%, var(--theme-raised, #f6f7f7) 50%); }
.hn-schedule-dialog .hn-schedule-later { padding: 8px 10px; border-radius: 8px; background: var(--theme-raised, #f6f7f7); }
.hn-schedule-dialog .hn-schedule-error { margin: 0; color: #b4473d; font-size: 13px; }
.hn-schedule-dialog .hn-schedule-actions { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.hn-schedule-dialog .hn-schedule-actions > span { flex: 1 1 auto; }
.hn-schedule-dialog .hn-schedule-danger { color: #b4473d; }
.hn-schedule-dialog .hn-schedule-save { background: var(--theme-accent, #4f8f72); border-color: transparent; color: #fff; }
.hn-schedule-dialog .hn-schedule-save:hover { background: color-mix(in srgb, var(--theme-accent, #4f8f72) 88%, #000); }

/* HyperNote 1.4 final overrides */
.column-header-row { justify-content: center !important; padding-inline: 30px !important; }
.column-title { flex: 1 1 auto !important; text-align: center !important; }
.column-count { display: none !important; }
.column-card.collapsed { height: 62px !important; min-height: 62px !important; }
.column-card.collapsed .card-body { display: block !important; padding: 7px 8px !important; overflow: hidden !important; }
.column-card.collapsed .column-header-row { padding-bottom: 0 !important; }
.column-card.collapsed .column-items,
.column-card.collapsed .column-add-note { display: none !important; }
.transparent-color {
  background-color: transparent !important;
  background-image: linear-gradient(45deg,#d7d6d1 25%,transparent 25%),linear-gradient(-45deg,#d7d6d1 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d7d6d1 75%),linear-gradient(-45deg,transparent 75%,#d7d6d1 75%) !important;
  background-size: 8px 8px !important;
  background-position: 0 0,0 4px,4px -4px,-4px 0 !important;
}
.connection-handle { left: 50% !important; right: auto !important; top: -4px !important; width: 7px !important; height: 7px !important; min-width: 7px !important; min-height: 7px !important; padding: 0 !important; transform: translate(-50%,-50%) !important; border: 0 !important; background: #75827e !important; box-shadow: 0 0 0 2px rgba(255,255,255,.9) !important; }
.topbar-center-tools:has(.top-timeline-toolbar:not(.hidden)) .selection-tools { display: none !important; }
.topbar-center-tools:has(.text-format-toolbar:not(.hidden)) .top-timeline-toolbar { display: none !important; }
.top-timeline-toolbar { position: static !important; min-height: 34px; max-width: 100%; gap: 3px; padding: 2px 5px; border: 1px solid #e1dfd9; border-radius: 8px; background: #faf9f6; box-shadow: none; }
.top-timeline-toolbar .timeline-toolbar-add { font-size: 17px; font-weight: 500; }
.timeline-card,.timeline-card:hover,.timeline-card.selected,.timeline-card.multi-selected { min-width: 520px; overflow: visible !important; border: 0 !important; border-radius: 0 !important; outline: 0 !important; background: transparent !important; box-shadow: none !important; }
.timeline-card > .drag-handle { position: absolute; left: 2px; top: calc(50% - 34px); z-index: 12; width: 22px; height: 18px; padding: 0 5px; border: 0; border-radius: 5px; background: rgba(255,255,255,.86); }
.timeline-card > .resize-handle { display: none !important; }
.timeline-card .card-body { height: 100% !important; padding: 0 !important; overflow: visible !important; }
.timeline-track { height: 100%; min-height: 260px; margin: 0 25px 0 165px !important; overflow: visible; cursor: default !important; }
.timeline-line { left: 0 !important; right: 0 !important; height: 2px !important; z-index: 0; }
.timeline-line::before,.timeline-line::after { display: none !important; content: none !important; }
.timeline-line-hit { position: absolute; left: 0; right: 0; z-index: 1; height: 12px; padding: 0; border: 0; background: transparent; cursor: crosshair; }
.timeline-floating-title { position: absolute; left: -158px; width: 145px !important; height: 28px; padding: 3px 5px !important; text-align: left; direction: rtl; border: 0 !important; background: transparent !important; font-size: 13px; font-weight: 720; }
.timeline-endpoint { z-index: 6; }
.timeline-endpoint-start { left: -5px !important; right: auto !important; }
.timeline-endpoint-end { left: auto !important; right: -5px !important; }
.timeline-endpoint-dot { cursor: ew-resize !important; }
.timeline-event { z-index: 3; overflow: visible; }
.timeline-event-side { align-items: center !important; justify-content: center !important; padding: 0 !important; overflow: visible; }
.timeline-event-side.moving { z-index: 30; }
.timeline-date-side { height: 31px !important; }
.timeline-content-side { height: var(--timeline-panel-height,72px) !important; }
.timeline-part-grip { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); z-index: 8; width: 12px !important; height: 24px !important; padding: 0 !important; border: 0 !important; border-radius: 5px !important; background: rgba(255,255,255,.88) !important; color: #8c918a !important; cursor: ns-resize !important; font-size: 13px; }
.timeline-event-connector { z-index: 0; }
.timeline-event-dot { z-index: 5; }
.timeline-card.selected .timeline-line { background: #648c83 !important; box-shadow: 0 0 0 1px rgba(100,140,131,.13) !important; }

/* HyperNote 1.5 final overrides */
.column-entry { padding-top: 9px !important; cursor: grab; }
.column-entry:active { cursor: grabbing; }
.column-entry.entry-selected,.column-entry:focus { outline: 1.5px solid #789990; outline-offset: 2px; }
.column-entry-bar,.column-note-bar,.column-note-actions { display: none !important; }
.timeline-floating-title { left: auto !important; right: 100% !important; width: max-content !important; min-width: 145px !important; max-width: none !important; white-space: nowrap !important; overflow: visible !important; text-align: right !important; direction: rtl !important; unicode-bidi: plaintext; }
.timeline-floating-title:empty::before { content: attr(data-placeholder); color: #9a9c96; pointer-events: none; }
.timeline-card > .drag-handle { left: calc(100% - 20px) !important; top: calc(50% - 9px) !important; width: 23px !important; height: 18px !important; justify-content: center !important; padding: 0 !important; }
.timeline-card > .drag-handle .card-dots { letter-spacing: 1px; }
.timeline-card .connection-handle { left: calc(100% + 6.5px) !important; top: 50% !important; z-index: 20 !important; }
.timeline-event-side { left: -7px !important; width: 164px !important; cursor: ns-resize; }
.timeline-event-side .timeline-date,.timeline-event-side .timeline-note,.timeline-event-side .timeline-checklist { cursor: text; }
.timeline-part-grip { display: none !important; }

/* HyperNote 1.6 final marker overrides */
.timeline-date-marker { width: 38px !important; height: 30px !important; min-width: 38px !important; min-height: 30px !important; aspect-ratio: auto !important; padding: 0 !important; border: 1px solid #b9c7c3 !important; border-radius: 5px !important; background: var(--timeline-date-color,#f4f7f6) !important; color: #46504c !important; font-size: 9px !important; font-weight: 750 !important; line-height: 28px !important; direction: ltr !important; letter-spacing: -.2px; box-shadow: 0 1px 3px rgba(45,58,53,.09) !important; cursor: ew-resize !important; }
.timeline-date-marker::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 8px; transform: translateX(-50%); background: #aebdb8; }
.timeline-event.point-selected .timeline-date-marker { background: var(--timeline-date-color,#f4f7f6) !important; border-color: #537e74 !important; box-shadow: 0 0 0 3px rgba(83,126,116,.16),0 1px 4px rgba(41,68,62,.16) !important; }

/* HyperNote 1.8 */
.timeline-floating-title { right: calc(100% + 7px) !important; }
.timeline-date-marker {
  user-select: none !important;
  -webkit-user-select: none !important;
  touch-action: none;
}
.timeline-date-marker::after { display: none !important; content: none !important; }
.timeline-attachment-path {
  fill: none;
  stroke: #aebdb8;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.timeline-date-picker {
  position: fixed;
  z-index: 220;
  width: 252px;
  padding: 10px;
  border: 1px solid #deddd7;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(33,38,35,.2);
  direction: rtl;
}
.timeline-date-picker-header { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 5px; margin-bottom: 9px; }
.timeline-date-picker-header strong { text-align: center; font-size: 12px; }
.timeline-date-picker-header button { height: 28px; border: 0; border-radius: 6px; background: #f4f3ef; cursor: pointer; }
.timeline-date-picker-week,.timeline-date-picker-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; text-align: center; }
.timeline-date-picker-week { color: #969891; font-size: 9px; margin-bottom: 4px; }
.timeline-date-picker-grid > span,.timeline-date-picker-grid > button { aspect-ratio: 1; min-width: 0; }
.timeline-date-picker-grid > button { border: 0; border-radius: 6px; background: transparent; color: #4f524d; font-size: 10px; cursor: pointer; }
.timeline-date-picker-grid > button:hover { background: #f1f0ec; }
.timeline-date-picker-grid > button.selected { background: #668e85; color: #fff; }

.column-checklist { padding: 11px !important; }
.column-checklist-title { font-weight: 750; padding-bottom: 8px; }
.column-checklist-items { display: flex; flex-direction: column; gap: 6px; }
.column-check-row { display: flex; align-items: flex-start; gap: 7px; }
.column-check-row input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #668e85; }
.column-check-row textarea { min-width: 0; width: 100%; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; line-height: 1.45; }
.column-check-row.done textarea { color: #969891; text-decoration: line-through; }
.column-checklist-add { width: 100%; margin-top: 7px; border: 0; border-radius: 6px; background: #f4f3ef; color: #73766f; cursor: pointer; }

.monthplan-card { min-width: 570px; background: #fff !important; }
.monthplan-card .card-body { padding: 14px; }
.month-plan-header { display: flex; align-items: center; justify-content: center; gap: 10px; padding-bottom: 13px; direction: ltr; }
.month-plan-selector { width: 58px; height: 32px; border: 1px solid #dddcd6; border-radius: 7px; background: #faf9f6; text-align: center; outline: 0; }
.month-plan-name { direction: rtl; color: #353833; font-size: 15px; white-space: nowrap; }
.month-plan-sections { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; direction: rtl; }
.month-plan-section { min-height: 180px; padding: 11px; border: 1px solid #e3e1db; border-radius: 9px; background: #faf9f6; }
.month-plan-section h3 { margin: 0 0 11px; text-align: center; color: #52564f; font-size: 13px; }
.month-plan-checks { display: flex; flex-direction: column; gap: 7px; }
.month-plan-check-row { display: flex; align-items: flex-start; gap: 7px; }
.month-plan-check-row input[type="checkbox"] { width: 15px; height: 15px; flex: 0 0 auto; accent-color: #668e85; }
.month-plan-check-row textarea { min-width: 0; width: 100%; border: 0; outline: 0; resize: none; overflow: hidden; background: transparent; line-height: 1.45; }
.month-plan-check-row.done textarea { color: #999b95; text-decoration: line-through; }
.month-plan-add { width: 100%; height: 26px; margin-top: 9px; border: 1px dashed #ceccc5; border-radius: 6px; background: transparent; color: #858780; cursor: pointer; }

@media (max-width: 850px) {
  .month-plan-sections { grid-template-columns: 1fr; }
}

/* HyperNote 1.9 final timeline hit areas */
.timeline-card { pointer-events: none !important; }
.timeline-card > .drag-handle,
.timeline-card .connection-handle,
.timeline-line-hit,
.timeline-floating-title,
.timeline-endpoint,
.timeline-date-marker,
.timeline-content-side { pointer-events: auto !important; }

/* HyperNote 2.0 final breadcrumb appearance */
.topbar { height: 56px !important; min-height: 56px !important; padding-inline: 16px !important; }
.board-heading { justify-content: flex-end; }
.breadcrumb-btn { color: #4e5863 !important; }
.breadcrumb-btn:hover:not(:disabled) { color: #1f2831 !important; }
.breadcrumb-current-label,
.breadcrumb-current-label:disabled,
.breadcrumb-item.current .board-title { color: #979da5 !important; opacity: 1 !important; }
.timeline-endpoint-label { display: none !important; }

/* Solid board icons */
.folder-icon-large {
  width: 54px !important;
  height: 54px !important;
  margin-top: 1px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: var(--board-color, #6f8379) !important;
  box-shadow: 0 0 0 1px rgba(38,43,39,.08), 0 3px 8px rgba(38,43,39,.08) !important;
  filter: none !important;
}
.folder-icon-large::before,
.folder-icon-large::after { display: none !important; content: none !important; }
.board-card.selected .folder-icon-large { transform: translateY(-1px) !important; filter: none !important; }
.column-folder-icon {
  width: 32px !important;
  height: 32px !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: var(--board-color, #6f8379) !important;
  box-shadow: 0 0 0 1px rgba(38,43,39,.08) !important;
}
.column-folder-icon::before,
.column-folder-icon::after { display: none !important; content: none !important; }

.timeline-attachment-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 16;
  vector-effect: non-scaling-stroke;
  pointer-events: stroke;
  cursor: pointer;
}

/* HyperNote 2.2 colors, links and month year */
.column-card { background: var(--column-color, #f3f2ef) !important; }
.column-card .card-body { background: transparent !important; }
.month-plan-year {
  width: 78px !important;
  height: 32px;
  padding: 0 7px;
  border: 1px solid #dddcd6 !important;
  border-radius: 7px;
  outline: 0;
  background: #faf9f6 !important;
  color: #363934;
  text-align: center;
  direction: ltr;
}
.rich-text-editor a {
  color: #356fa3;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.timeline-toolbar-fill-days { width: 31px !important; min-width: 31px !important; font-size: 11px !important; font-weight: 750; }

/* HyperNote 2.3 timeline ends, RTL path and global branch search */
.timeline-endpoint { width: 150px !important; transform: none !important; }
.timeline-endpoint-start { left: -145px !important; right: auto !important; }
.timeline-endpoint-start .timeline-endpoint-dot { left: auto !important; right: 0 !important; }
.timeline-endpoint-start .timeline-endpoint-date { left: auto !important; right: 15px !important; }
.timeline-endpoint-end { left: auto !important; right: -145px !important; }
.timeline-endpoint-end .timeline-endpoint-dot { left: 0 !important; right: auto !important; }
.timeline-endpoint-end .timeline-endpoint-date { left: 15px !important; right: auto !important; }
.timeline-floating-title { right: calc(100% + 123px) !important; }
.timeline-card > .drag-handle { left: calc(100% + 96px) !important; }
.timeline-card .connection-handle { left: calc(100% + 128px) !important; }

.board-heading { direction: rtl !important; }
.breadcrumbs { direction: rtl !important; }

.topbar-actions { direction: rtl; }
.search-wrap { position: relative; flex: 0 0 auto; }
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  width: min(390px, 72vw);
  max-height: min(430px, calc(100vh - 92px));
  overflow: auto;
  padding: 6px;
  border: 1px solid #e2e0d9;
  border-radius: 11px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 14px 34px rgba(34,38,34,.14);
  direction: rtl;
}
.search-result-item {
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #343833;
  text-align: right;
  cursor: pointer;
}
.search-result-item:hover,
.search-result-item:focus-visible { background: #f1f3f1; outline: 0; }
.search-result-item strong { overflow: hidden; font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.search-result-item span { overflow: hidden; color: #8d938d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-results-empty { padding: 18px 10px; color: #8d918b; font-size: 11px; text-align: center; }
.board-menu-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* HyperNote 2.3 table navigation and calculations */















/* HyperNote 2.5 calculated table cells */






/* HyperNote 2.6 column calculation types */





/* HyperNote 2.7 current-day marker */
.timeline-today-marker {
  position: absolute;
  z-index: 18;
  width: 9px;
  height: 9px;
  min-width: 9px;
  min-height: 9px;
  aspect-ratio: 1 / 1;
  transform: translate(-50%,-50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #df443a;
  box-shadow: 0 1px 4px rgba(151,36,30,.28);
  pointer-events: none;
}
.timeline-today-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 12px;
  transform: translateX(-50%);
  background: rgba(223,68,58,.58);
}

/* HyperNote V15 semantic board icons */
.folder-icon-large.has-board-icon,
.column-folder-icon.has-board-icon,
.breadcrumb-color.has-board-icon { position: relative; overflow: hidden; }
.folder-icon-large.has-board-icon::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 12px !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: none !important;
  -webkit-mask: var(--board-icon-url) center / contain no-repeat;
  mask: var(--board-icon-url) center / contain no-repeat;
}
.column-folder-icon.has-board-icon::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: 7px !important;
  width: auto !important;
  height: auto !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: rgba(255,255,255,.94) !important;
  box-shadow: none !important;
  -webkit-mask: var(--board-icon-url) center / contain no-repeat;
  mask: var(--board-icon-url) center / contain no-repeat;
}
.breadcrumb-color.has-board-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: rgba(255,255,255,.95);
  -webkit-mask: var(--board-icon-url) center / contain no-repeat;
  mask: var(--board-icon-url) center / contain no-repeat;
}

/* HyperNote V15 board backgrounds and movement groups */
.canvas-area {
  background-color: var(--board-bg, #ebedee) !important;
  background-image: radial-gradient(circle, var(--board-grid, #dfe1e2) .9px, transparent 1.1px) !important;
  background-size: 12px 12px;
  overflow: clip !important;
}
.board-background-btn > span {
  display: block;
  width: 13px;
  height: 13px;
  margin: auto;
  border: 1px solid rgba(42,46,43,.26);
  border-radius: 4px;
  /* Half Light, half Dark: one click switches between the two. */
  background: linear-gradient(135deg, #ebedee 50%, #323b40 50%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
}
.card.movement-group-peer {
  outline: 1px dashed rgba(73,101,92,.68);
  outline-offset: 3px;
}
.selection-tools button:disabled { opacity: .32; cursor: default; }

/* HyperNote V16 selection priority, synchronized topbar and timeline colors */
.topbar {
  background: var(--topbar-bg, #f7f6f3) !important;
  border-bottom-color: var(--topbar-border, #e6e4dd) !important;
  color: var(--topbar-ink, #2f322e);
}
.topbar .search-box,
.topbar .icon-btn,
.topbar .zoom-controls,
.topbar .selection-tools,
.topbar .text-format-toolbar,
.topbar .top-timeline-toolbar {
  border-color: var(--topbar-border, #e6e4dd) !important;
  background-color: var(--topbar-panel, rgba(255,255,255,.56)) !important;
}
.topbar .board-title,
.topbar .search-box input,
.topbar button,
.topbar select { color: var(--topbar-ink, #2f322e); }
.topbar .breadcrumb-btn,
.topbar .breadcrumb-separator,
.topbar .search-box,
.topbar kbd { color: var(--topbar-muted, #777b75); }
.topbar.dark-board-background .board-menu-icon,
.topbar.dark-board-background .share-icon { stroke: var(--topbar-ink); }
.topbar.dark-board-background .search-box input::placeholder { color: rgba(245,248,247,.72); }
.topbar-center-tools .movement-group-btn,
.topbar-center-tools .movement-ungroup-btn {
  color: #416d64 !important;
  font-size: 14px !important;
  font-weight: 700;
}
.topbar.dark-board-background .movement-group-btn,
.topbar.dark-board-background .movement-ungroup-btn { color: #dcece7 !important; }
.timeline-card .timeline-line,
.timeline-card.selected .timeline-line,
.timeline-card.multi-selected .timeline-line {
  background: var(--timeline-color, #5f837c) !important;
  box-shadow: 0 0 0 1px rgba(50,58,54,.11) !important;
}
.timeline-card .timeline-endpoint-dot { background: var(--timeline-color, #5f837c) !important; }
.timeline-card .timeline-floating-title { color: var(--timeline-color, #5f837c) !important; }

/* HyperNote V17 table colors and planning calendar */

















.planner-card {
  min-width: 340px;
  min-height: 420px;
  max-height: none;
  background: var(--planner-color, #fff) !important;
  overflow: hidden !important;
}
.planner-card .card-body {
  display: flex;
  height: calc(100% - 29px);
  min-height: 0;
  flex-direction: column;
  padding: 9px 10px 10px;
  overflow: hidden;
}
.planner-controls {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 0 8px;
  overflow: visible;
  direction: rtl;
}
.planner-controls .planner-title { width: 150px !important; min-width: 110px; flex: 1 1 145px; font-size: 13px; font-weight: 750; }
.planner-controls .planner-date { width: 105px; height: 27px; padding: 2px 5px; border: 1px solid #deddd7; border-radius: 6px; background: rgba(255,255,255,.82); color: #535752; direction: ltr; }
.planner-controls button { height: 27px; min-width: 27px; padding: 0 7px; border: 1px solid #deddd7; border-radius: 6px; background: rgba(255,255,255,.76); color: #555a54; white-space: nowrap; cursor: pointer; font-size: 9px; }
.planner-controls button:hover { background: #f0f3ef; }
.planner-controls .planner-today-btn { background: #e6efeb; color: #355e54; font-weight: 750; }
.planner-controls .planner-today-btn:hover { background: #d9e8e2; }
.planner-controls .planner-google-calendar-btn {
  border-color: #cbdcf7;
  background: #edf4ff;
  color: #2f63a8;
  font-weight: 750;
  direction: ltr;
}
.planner-controls .planner-google-calendar-btn:hover { background: #deebff; }
.planner-controls .planner-clear-events-btn { border-color: #ead2ce; color: #a24a40; }
.planner-controls .planner-clear-events-btn:hover { background: #f8e9e6; }
.planner-days-head,
.planner-grid {
  display: grid;
  grid-template-columns: 52px repeat(var(--planner-days), minmax(125px, 1fr));
  direction: rtl;
}
.planner-days-head { flex: 0 0 31px; padding-inline-end: 0; border: 1px solid #e0dfda; border-bottom: 0; background: rgba(250,250,248,.92); }
.planner-time-spacer { min-width: 0; padding: 0; border: 0; border-inline-end: 1px solid #e4e3de; background: #f2f3f0; color: #747a74; font-size: 8px; font-weight: 750; cursor: pointer; direction: ltr; }
.planner-time-spacer:hover { background: #e6ece8; color: #35594f; }
.planner-day-label { min-width: 0; border: 0; border-inline-end: 1px solid #e4e3de; background: transparent; color: #686c66; font-size: 9px; cursor: pointer; }
.planner-day-label.selected { background: #e8efec; color: #365a51; font-weight: 750; }
.planner-day-label.today { color: #b94f42; }
.planner-scroll { min-height: 0; flex: 1 1 auto; border: 1px solid #e0dfda; overflow: auto; background: rgba(255,255,255,.72); overscroll-behavior: contain; }
.planner-grid { width: 100%; align-items: start; }
.planner-time-rail { position: relative; width: 52px; height: 1056px; border-inline-end: 1px solid #deddd8; background: rgba(249,249,247,.9); }
.planner-time-rail > span { position: absolute; inset-inline: 2px 5px; color: #999c96; font-size: 8px; text-align: left; direction: ltr; }
.planner-day-grid { position: relative; min-width: 125px; border-inline-end: 1px solid #e1e0db; background: rgba(255,255,255,.32); }
.planner-hour-line { position: absolute; left: 0; right: 0; height: 1px; background: #e8e7e2; pointer-events: none; }
.planner-selected-time { position: absolute; left: 0; right: 0; z-index: 2; height: 1px; border-top: 1px dashed #658c82; pointer-events: none; }
.planner-selected-time::after { content: ""; position: absolute; right: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: #658c82; }
.planner-current-time { position: absolute; left: 0; right: 0; z-index: 4; height: 2px; background: #d94e43; pointer-events: none; }
.planner-current-time::before { content: ""; position: absolute; right: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #d94e43; }
.planner-event {
  position: absolute;
  left: 5px;
  right: 5px;
  z-index: 6;
  min-height: 18px;
  padding: 2px 5px;
  border: 1px solid rgba(52,65,59,.14);
  border-inline-start: 3px solid rgba(55,80,70,.52);
  border-radius: 5px;
  overflow: hidden;
  color: #343934;
  cursor: grab;
  box-shadow: 0 1px 3px rgba(30,38,34,.1);
}
.planner-event.planner-entry-dragging { z-index: 20; opacity: .88; cursor: grabbing; }
.planner-event.planner-event-draft { border-style: dashed; background: rgba(111,143,133,.25); pointer-events: none; }
.planner-event-time { display: block; direction: ltr; color: rgba(50,55,51,.7); font-size: 7px; text-align: left; }
.planner-event-title {
  display: block;
  width: 100%;
  height: calc(100% - 10px);
  min-height: 16px;
  padding: 1px 27px 1px 0 !important;
  resize: none;
  overflow: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #303530 !important;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.35;
}
.planner-event-compact { padding-block: 1px 3px; }
.planner-event-compact .planner-event-time { display: none; }
.planner-event-compact .planner-event-title {
  display: block;
  height: 16px;
  padding: 0 17px 0 18px !important;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}
.planner-event-compact.planner-event-editing { z-index: 22; border-color: rgba(61,102,89,.55); box-shadow: 0 0 0 2px rgba(93,137,122,.16); }
.planner-event-color { position: absolute; top: 4px; right: 4px; width: 10px; height: 10px; padding: 0; border: 1px solid rgba(40,45,41,.18); border-radius: 50%; cursor: pointer; }
.planner-entry-remove { position: absolute; top: 1px; left: 2px; width: 16px !important; height: 16px !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: rgba(55,60,56,.5) !important; cursor: pointer; font-size: 11px !important; }
.planner-event-resize { position: absolute; left: 18px; right: 18px; bottom: 0; height: 5px; border-bottom: 2px solid rgba(55,70,62,.35); cursor: ns-resize; }
.planner-reminder { position: absolute; left: 0; right: 0; z-index: 8; height: 18px; margin-top: -9px; border-top: 2px solid var(--planner-reminder-color,#a7564f); cursor: ns-resize; }
.planner-reminder.planner-entry-dragging { z-index: 21; }
.planner-reminder::before { content: ""; position: absolute; right: -3px; top: -5px; width: 7px; height: 7px; border-radius: 50%; background: var(--planner-reminder-color,#a7564f); }
.planner-reminder-time { position: absolute; right: 6px; top: -13px; padding: 1px 3px; background: #fff; color: var(--planner-reminder-color,#a7564f); font-size: 7px; direction: ltr; }
.planner-reminder input { position: absolute; top: 1px; right: 7px; width: calc(100% - 30px) !important; height: 14px; padding: 0 3px !important; background: rgba(255,255,255,.86) !important; color: #5b403d !important; font-size: 8px; }
.planner-reminder .planner-entry-remove { top: 0; }
.planner-event-editor {
  position: fixed;
  z-index: 10020;
  width: min(340px, calc(100vw - 20px));
  padding: 9px;
  direction: rtl;
  border: 1px solid rgba(54,69,62,.18);
  border-top: 4px solid var(--planner-editor-color, #dbe8ff);
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(34,42,38,.2);
}
.planner-event-editor-time {
  margin-bottom: 5px;
  direction: ltr;
  color: #747b75;
  font-size: 10px;
  text-align: left;
}
.planner-event-editor-input {
  display: block;
  width: 100%;
  min-height: 88px;
  max-height: 260px;
  padding: 8px 9px !important;
  resize: vertical;
  border: 1px solid #d8ddd9 !important;
  border-radius: 6px !important;
  outline: 0;
  background: #fff !important;
  color: #2f3430 !important;
  font: 650 13px/1.65 inherit;
  text-align: right;
  box-shadow: none !important;
}
.planner-event-editor-input:focus { border-color: #789b90 !important; box-shadow: 0 0 0 3px rgba(105,147,134,.13) !important; }

/* HyperNote V22 transparent artwork, favorite boards and export frames */
.image-card {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.image-card:hover,
.image-card.selected { box-shadow: none !important; }
.image-card .card-body,
.image-card img,
.column-image img { background: transparent !important; }
.image-card .drag-handle { background: rgba(255,255,255,.76); border: 1px solid rgba(60,66,61,.09); border-radius: 7px 7px 0 0; }
.vector-image-card .drag-handle::before { content: "SVG"; color: #71837d; font-size: 8px; font-weight: 750; }

.favorite-boards-btn { color: inherit; font-size: 21px; }
.favorite-boards-btn.active { color: inherit; }
.favorite-boards-panel {
  position: fixed;
  top: var(--hn-favorite-top, 112px);
  left: var(--hn-favorite-left, 12px);
  right: auto;
  bottom: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(324px, calc(100vw - 24px));
  max-height: min(470px, calc(100dvh - var(--hn-favorite-top, 112px) - 12px));
  height: auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--theme-border, #d9dde1);
  border-radius: 14px;
  background: var(--theme-surface, #fff);
  color: var(--theme-ink, #323b4a);
  box-shadow: var(--ui-shadow, 0 12px 36px rgba(20, 26, 31, .18));
  direction: rtl;
}
.favorite-boards-header { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; padding: 0 3px 9px; border-bottom: 1px solid var(--theme-border, #d9dde1); }
.favorite-boards-header > div { display: flex; align-items: center; gap: 8px; }
.favorite-boards-header strong { font-size: 14px; font-weight: 650; }
.favorite-boards-header button { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: var(--theme-muted, #666d7a); cursor: pointer; }
.favorite-boards-header button:hover { background: var(--theme-hover, #eef0f2); }
.favorite-boards-heart { color: inherit; font-size: 17px; }
.favorite-boards-list { display: flex; flex: 0 1 auto; flex-direction: column; gap: 5px; min-height: 0; max-height: 375px; overflow-y: auto; padding: 10px 1px 1px; scrollbar-width: thin; }
.favorite-boards-empty { margin: 14px 6px; color: var(--theme-muted, #666d7a); font-size: 12px; text-align: center; }
.favorite-add-current { width: 100%; min-height: 38px; flex: none; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 7px; border: 1px dashed var(--theme-border, #d9dde1); border-radius: 9px; background: var(--theme-raised, #f5f6f7); color: var(--theme-ink, #323b4a); cursor: pointer; }
.favorite-add-current:disabled { color: var(--theme-muted, #666d7a); cursor: default; }
.favorite-add-current > span { font-size: 17px; }
.favorite-add-current > strong { font-size: 11px; }
.favorite-board-row { display: grid; grid-template-columns: minmax(0,1fr) 28px; align-items: center; gap: 5px; padding: 4px; border: 1px solid #ebe8e2; border-radius: 9px; background: rgba(255,255,255,.72); }
.favorite-board-row { cursor: grab; transition: opacity .12s ease, transform .12s ease, border-color .12s ease; }
.favorite-board-row.favorite-board-dragging { opacity: .42; }
.favorite-board-row.favorite-board-drop-target { border-color: var(--theme-accent, #4c6686); transform: translateY(2px); }
.favorite-boards-panel.favorite-drop-active { box-shadow: inset 0 0 0 2px var(--theme-accent, #4c6686), var(--ui-shadow, 0 12px 36px rgba(20, 26, 31, .18)); }
.favorite-boards-panel.favorite-drop-active::after { content: "أفلت اللوحة لإضافتها إلى المفضلة"; position: absolute; inset: 52px 12px auto; z-index: 5; padding: 9px; border-radius: 8px; background: var(--theme-action, #384457); color: var(--theme-action-ink, #fff); font-size: 11px; text-align: center; pointer-events: none; }
.favorite-board-open { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 5px; border: 0; background: transparent; text-align: right; cursor: pointer; }
.favorite-board-open > span:last-child { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.favorite-board-open strong { max-width: 190px; overflow: hidden; color: var(--theme-ink, #323b4a); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-board-open small { max-width: 190px; overflow: hidden; color: var(--theme-muted, #666d7a); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.favorite-board-icon { position: relative; width: 31px; height: 31px; flex: 0 0 31px; border-radius: 8px; background: var(--board-color,#718e86); }
.favorite-board-icon.has-board-icon::after { content: ""; position: absolute; inset: 7px; background: rgba(255,255,255,.94); -webkit-mask: var(--board-icon-url) center / contain no-repeat; mask: var(--board-icon-url) center / contain no-repeat; }
.favorite-board-remove { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--theme-muted, #666d7a); cursor: pointer; }
.favorite-board-remove:hover { background: var(--theme-hover, #eef0f2); }

.task-reorder-grip { width: 14px; flex: 0 0 14px; align-self: flex-start; margin-top: 2px; color: #a3a59f; font-size: 12px; line-height: 18px; text-align: center; cursor: grab; user-select: none; }
.task-reorder-grip:active { cursor: grabbing; }
.task-row-dragging { opacity: .42; }
.task-row-drop-target { border-top: 2px solid #6b9187; }
.check-row textarea,
.timeline-task textarea,
.column-check-row textarea,
.month-plan-check-row textarea,
.planner-event-title {
  white-space: pre-wrap !important;
  overflow-wrap: anywhere !important;
  word-break: break-word;
}
.planner-event-compact .planner-event-title {
  white-space: nowrap !important;
}

/* HyperNote V43: unrestricted board titles and unified application icon */
.board-card .folder-title-input {
  height: auto !important;
  min-height: 18px !important;
  max-height: none !important;
  padding: 3px 4px !important;
  overflow: visible !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: break-word;
  text-overflow: clip !important;
}
.board-card .folder-card-view {
  height: auto !important;
  min-height: 100% !important;
  overflow: visible !important;
}
.folder-up-btn {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  overflow: hidden;
}
.folder-up-btn img { width: 25px; height: 25px; display: block; }
.folder-up-btn:hover:not(:disabled) { background: transparent !important; filter: brightness(1.05); }

.frame-card {
  min-width: 180px !important;
  min-height: 101px !important;
  background: transparent !important;
  border: 2px solid var(--frame-color,#718e86) !important;
  border-radius: 18px !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: none;
}
.frame-card:hover,
.frame-card.selected { box-shadow: none !important; }
.frame-card.selected { outline: 2px solid color-mix(in srgb,var(--frame-color,#718e86) 78%,#ffffff) !important; outline-offset: 4px; }
.frame-card > .drag-handle {
  position: absolute;
  top: -27px;
  right: 13px;
  z-index: 14;
  width: 78px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid color-mix(in srgb,var(--frame-color,#718e86) 42%,#ffffff);
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  color: #61716b;
  pointer-events: auto;
}
.frame-card .card-body { position: absolute; inset: 0; padding: 0 !important; pointer-events: none; }
.frame-card > .resize-handle { pointer-events: auto; }
.frame-controls { position: absolute; top: 7px; left: 8px; z-index: 15; pointer-events: auto; opacity: .2; transition: opacity .14s ease; }
.frame-card:hover .frame-controls,
.frame-card.selected .frame-controls { opacity: 1; }
.frame-ratio-select { height: 25px; padding: 1px 6px; border: 1px solid #d9ddd8; border-radius: 7px; background: rgba(255,255,255,.92); color: #5f6762; font-size: 9px; cursor: pointer; }

/* HyperNote V30 planner calendar export */
.image-card { overflow: visible !important; }
.image-card > .drag-handle {
  position: absolute !important;
  inset: 0 0 auto 0 !important;
  z-index: 8;
  height: 24px !important;
  padding: 0 7px !important;
  border: 0 !important;
  border-radius: 8px 8px 0 0 !important;
  background: transparent !important;
  color: transparent !important;
  opacity: 0;
}
.image-card:hover > .drag-handle,
.image-card.selected > .drag-handle { color: rgba(68,75,70,.54) !important; opacity: 1; }
.vector-image-card .drag-handle::before { content: none !important; }
.image-card .card-body { width: 100%; height: 100% !important; padding: 0 !important; border-radius: 9px; background: transparent !important; overflow: hidden; }
.image-card img { width: 100%; height: 100% !important; min-height: 0; object-fit: contain; background: transparent !important; }
.image-caption,
.column-image-caption { display: none !important; }
.column-entry.column-image { padding: 0 !important; border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
.column-entry.column-image img { max-height: none; background: transparent !important; }

.canvas-context-menu { width: 222px !important; padding: 7px !important; }
.canvas-context-menu button { min-height: 32px !important; gap: 8px !important; padding: 4px 7px !important; border-radius: 6px !important; }
.canvas-context-menu button > span:first-child { width: 24px; flex: 0 0 24px; font-size: 14px; text-align: center; }
.canvas-context-menu button > span:last-child { display: flex; align-items: center; min-width: 0; }
.canvas-context-menu button strong { font-size: 11px !important; font-weight: 650; }
.canvas-context-menu button small { display: none !important; }
.canvas-context-menu .context-menu-title { padding: 6px 7px 4px !important; font-size: 9px !important; }
.canvas-context-menu [data-context-add] > span:first-child {
  width: 24px !important;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-weight: 750;
  line-height: 1;
}
.canvas-context-menu [data-context-add="note"] > span:first-child { color: #896e12; background: #fff0ad; }
.canvas-context-menu [data-context-add="board"] > span:first-child { color: #a34831; background: #ffe0d6; }
.canvas-context-menu [data-context-add="column"] > span:first-child { color: #28745c; background: #d9f1e8; }
.canvas-context-menu [data-context-add="checklist"] > span:first-child { color: #375d9f; background: #dfe9fb; }
.canvas-context-menu [data-context-add="image"] > span:first-child { color: #7b4d99; background: #eee1f6; }
.canvas-context-menu [data-context-add="link"] > span:first-child { color: #206c86; background: #d9f0f6; }
.canvas-context-menu [data-context-add="heading"] > span:first-child { color: #39413d; background: #e5e8e6; }
.canvas-context-menu [data-context-add="timeline"] > span:first-child { color: #386d65; background: #dcece8; }
.canvas-context-menu [data-context-add="calendar"] > span:first-child { color: #a45158; background: #f8dfe2; }
.canvas-context-menu [data-context-add="planner"] > span:first-child { color: #526a2d; background: #e7efd4; }
.canvas-context-menu [data-context-add="monthplan"] > span:first-child { color: #9a6827; background: #f5e5c9; }
.canvas-context-menu [data-context-add="schedule"] > span:first-child { color: #6b5a85; background: #e9e2f3; }
.canvas-context-menu [data-context-add="frame"] > span:first-child { color: #606a76; background: #e4e9ef; }
.canvas-context-menu [data-context-add="simple-table"] > span:first-child { color: #4a4f9c; background: #e3e4f8; }
.canvas-context-menu [data-context-file] > span:first-child { color: #7a5a44; background: #f0e4da; }

/* HyperNote V44 distribution, familiar text alignment icons and timeline weekdays */
.toolbar-stroke-icon,
.text-align-icon {
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.toolbar-stroke-icon rect { fill: currentColor; stroke: none; }
.text-format-toolbar .text-align-icon { width: 14px; height: 14px; stroke-width: 1.65; }
.timeline-date-marker {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  line-height: 1 !important;
}
.timeline-date-value {
  display: block;
  color: inherit;
  font-size: 8.5px;
  font-weight: 750;
  line-height: 9px;
  direction: ltr;
  pointer-events: none;
}
.timeline-weekday-label {
  display: block;
  color: #7b827e;
  font-size: 7px;
  font-weight: 500;
  line-height: 8px;
  direction: rtl;
  white-space: nowrap;
  pointer-events: none;
}

/* Project editor v1: storage and document lifecycle are separate from the canvas. */
.workspace { position: relative; }
.project-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; min-height: 56px; padding: 9px 16px; background: #f0f3f1; border-bottom: 1px solid #d9e0dc; color: #35443c; z-index: 85; flex-shrink: 0; }
.project-identity { display: flex; align-items: center; gap: 8px; min-width: 0; }
.project-identity img { width: 27px; height: 27px; }
.project-identity strong { direction: ltr; white-space: nowrap; font-size: 14px; }
.project-identity small { color: #7a8a80; font-weight: 500; }
#project-name { max-width: 230px; overflow-wrap: anywhere; font-size: 12px; padding-inline-start: 10px; border-inline-start: 1px solid #cbd5ce; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.project-bar button, .project-versions-dialog button { padding: 6px 10px; border: 1px solid #d2dbd5; border-radius: 7px; background: #fff; color: #354b3e; font: inherit; font-size: 12px; cursor: pointer; }
.project-bar button:hover { border-color: #7a9b85; background: #f8fffa; }
.project-bar button:disabled { opacity: .45; cursor: default; }
.project-save-status { margin-inline-start: auto; font-size: 11px; color: #667b6e; max-width: 350px; overflow-wrap: anywhere; }
.project-save-status.error { color: #b42f30; font-weight: 650; }
.project-save-status.saving { color: #967020; }
.project-start-screen { position: absolute; inset: var(--project-bar-height,56px) 0 0; display: grid; place-items: center; padding: 24px; z-index: 80; background: #f7f6f3; background-image: radial-gradient(#dcded7 .8px, transparent .8px); background-size: 24px 24px; }
.project-start-screen.hidden { display: none; }
.project-start-card { background: #fff; border: 1px solid #e0e5df; border-radius: 20px; max-width: 600px; width: 100%; padding: 38px; box-shadow: 0 16px 65px #32463a12; text-align: center; }
.project-start-card > img { width: 68px; height: 68px; }
.project-start-card h1 { font-size: 24px; margin: 20px 0 12px; }
.project-start-card p { font-size: 14px; color: var(--theme-muted,#738076); line-height: 1.9; }
.project-start-actions { display: flex; justify-content: center; gap: 10px; margin: 23px 0 18px; }
.project-start-card button { border: 1px solid #bccfc0; border-radius: 9px; padding: 10px 22px; background: #edf5ef; color: #31513b; font: inherit; cursor: pointer; }
.project-start-card button:first-child { background: #3e7453; color: #fff; }
.project-start-card .project-legacy-action { background: transparent; color: #41624b; padding: 8px 16px; font-size: 12px; }
.project-start-card > small { display: block; color: var(--theme-muted,#8a948c); font-size: 11px; line-height: 1.8; margin: 12px 0; }
#project-start-message { color: #ac3535; font-size: 12px; line-height: 1.8; }
.project-versions-dialog { width: min(650px,90vw); max-height: 75vh; border: 1px solid #d7e1d9; border-radius: 15px; padding: 24px; color: #35443b; }
.project-versions-dialog::backdrop { background: #25382c50; }
.project-versions-heading { display: flex; align-items: center; justify-content: space-between; }
.project-versions-heading h2 { font-size: 18px; }
.project-versions-dialog p { font-size: 12px; color: var(--theme-muted,#78887c); }
.project-version-row { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #e7ece8; font-size: 12px; }
.project-version-row small { display: block; color: var(--theme-muted,#819086); margin-top: 4px; }
body.project-busy .canvas-area { pointer-events: none; }
body.project-busy { cursor: progress; }
@media (max-width: 900px) { .project-bar { gap: 7px; padding: 7px 10px; } .project-save-status { width: 100%; margin: 0; } .project-start-card { padding: 24px; } }

/* HyperNote 2: one toolbar, project commands in Settings, in-page local picker. */
.project-start-screen { inset: 56px 0 0; }
.project-start-card { max-width: 460px; padding: 20px; background: transparent; border: 0; box-shadow: none; }
.project-settings { position: relative; flex: 0 0 auto; }
.project-settings summary { list-style: none; display: grid; place-items: center; cursor: pointer; }
.project-settings summary::-webkit-details-marker { display: none; }
.settings-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.project-settings-menu { position: absolute; left: 0; top: calc(100% + 9px); z-index: 96; width: 250px; max-height: calc(100vh - 80px); overflow-y: auto; padding: 10px; border: 1px solid #dedfd8; border-radius: 10px; background: #fff; color: #35443c; box-shadow: 0 8px 26px #25352a20; }
.project-app-name { display: block; direction: ltr; text-align: left; padding: 5px 7px; font-size: 13px; }
.project-settings-menu #project-name { display: block; max-width: none; padding: 4px 7px 9px; border: 0; }
.project-settings-menu button { display: block; width: 100%; text-align: right; border: 0; border-radius: 6px; padding: 8px; background: transparent; color: #35443c; font: inherit; font-size: 12px; cursor: pointer; }
.project-settings-menu button:hover { background: #edf3ef; }
.project-settings-menu button:disabled { opacity: .4; cursor: default; }
.project-save-status { margin: 6px 0 0; padding: 7px; border-top: 1px solid #e9ece7; font-size: 10px; }
.project-save-status:empty, #project-start-message:empty { display: none; }
.no-project .topbar-actions > :not(.project-settings), .no-project .board-heading, .no-project .topbar-center-tools { visibility: hidden; }
.project-file-dialog { width: min(680px,92vw); max-height: 88vh; overflow-y: auto; padding: 24px; border: 1px solid #d7e1d9; border-radius: 15px; color: #35443b; }
.project-file-dialog::backdrop { background: #25382c50; }
.project-file-dialog h2 { margin: 0 0 16px; font-size: 18px; }
.project-file-dialog label { display: block; font-size: 12px; margin: 10px 0 5px; }
.project-file-dialog input { width: 100%; min-width: 0; padding: 9px; border: 1px solid #ced8d0; border-radius: 7px; font: inherit; font-size: 12px; }
.project-file-dialog button { border: 1px solid #d2dbd5; border-radius: 7px; padding: 7px 10px; color: #354b3e; background: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.project-file-dialog button:disabled { opacity: .4; cursor: default; }
.project-picker-locations { display: flex; flex-wrap: wrap; gap: 5px; }
.project-picker-path-row { display: flex; gap: 5px; }
.project-picker-entries { height: 240px; overflow-y: auto; margin: 12px 0; border: 1px solid #e0e6df; border-radius: 8px; padding: 6px; font-size: 12px; }
.project-picker-entries .project-picker-entry { display: block; width: 100%; text-align: start; border: 0; overflow-wrap: anywhere; margin-bottom: 2px; }
.project-picker-entry:hover, .project-picker-entry.selected { background: #e8f1eb; }
.project-picker-error { min-height: 20px; margin-top: 8px; font-size: 12px; color: #b42f30; overflow-wrap: anywhere; }
.project-picker-footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
#project-picker-submit { background: #3e7453; color: #fff; }

/* All user-authored content wraps; input controls remain single-line only for numbers/dates. */
.card textarea, .card [contenteditable="true"], .column-folder-title,
.favorite-board-open strong, .favorite-board-open small {
  white-space: pre-wrap !important; overflow-wrap: anywhere !important; word-break: break-word;
  min-width: 0; text-overflow: clip !important;
}
.card [contenteditable="true"] * { white-space: inherit; overflow-wrap: inherit; }
.card .column-title,.card .column-checklist-title,.card .link-title,.card .planner-title{ height: auto; max-height: none; overflow: hidden; flex-shrink: 1; }
/* A collapsed list is 62px high. Its auto-growing title must stay inside the
   remaining space, while expanding the list still reveals the full text. */
.column-card.collapsed .card-body {
  height: calc(100% - 27px) !important;
  max-height: calc(100% - 27px) !important;
  padding-block: 5px !important;
  overflow: hidden !important;
}
.column-card.collapsed .column-header-row {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.column-card.collapsed .column-title {
  height: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  line-height: 1.3 !important;
  padding-block: 0 !important;
}
.planner-controls .planner-title { line-height: 1.5; }
.planner-reminder .planner-reminder-title { position: absolute; top: 1px; right: 7px; width: calc(100% - 30px) !important; padding: 0 3px !important; background: rgba(255,255,255,.92) !important; color: #5b403d !important; font-size: 8px; z-index: 2; }
.favorite-board-open strong, .favorite-board-open small { max-width: 190px; }
.card .link-url { white-space: pre-wrap !important; }
.timeline-elapsed-line { position: absolute; left: 0; height: 2px; z-index: 1; background: #df4242; pointer-events: none; }


.check-items:empty { min-height: 35px; border: 1px dashed #ddd; border-radius: 6px; }
.topbar-center-tools .selection-tools { height: 40px; overflow: visible; gap: 4px; }
.topbar-center-tools .selection-tools button, .selection-align-menu > summary { width: 29px; height: 30px; flex: 0 0 29px; font-size: 17px; }
.selection-icon { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; margin: auto; pointer-events: none; }
.selection-align-menu { position: relative; }
.selection-align-menu summary { display: grid; place-items: center; list-style: none; cursor: pointer; border-radius: 5px; }
.selection-align-menu summary::-webkit-details-marker { display: none; }
.selection-align-menu summary:hover { background: #eeece7; }
.selection-align-popover { position: absolute; top: calc(100% + 10px); left: 0; width: 310px; padding: 14px; border: 1px solid #dedfd8; border-radius: 10px; background: #fff; box-shadow: 0 8px 26px #25352a20; z-index: 97; }
.selection-align-popover > span { display: block; font-size: 11px; color: #758176; margin-bottom: 8px; }
.alignment-options { display: flex; direction: ltr; gap: 6px; margin-bottom: 15px; }
.alignment-options:last-child { margin-bottom: 0; }
.topbar-center-tools .alignment-options button { width: 40px; height: 38px; flex: 0 0 40px; background: #f4f6f3; border: 1px solid #e4e7e1; border-radius: 6px; }
.alignment-options .selection-icon { width: 25px; height: 25px; }
.topbar-center-tools:has(.selection-tools:not(.hidden)) .zoom-controls { display: none; }
.topbar:has(.selection-tools:not(.hidden)) .board-heading { flex: 0 1 180px !important; }
.card .planner-event-compact .planner-event-title { white-space: pre-wrap !important; text-overflow: clip; }
.topbar .project-save-error { color: #b42f30 !important; box-shadow: inset 0 0 0 1px #b42f30; }
.task-reorder-grip { width: 20px; flex-basis: 20px; font-size: 18px; line-height: 23px; }
.task-reorder-grip { touch-action: none; }
body.task-pointer-moving, body.task-pointer-moving * { cursor: grabbing !important; user-select: none !important; }
.card .add-check-item { width: 25px; height: 25px; padding: 0; margin-top: 6px; border: 1px solid #dedfd8; border-radius: 5px; }
.card .add-check-item.add-check-more { display: none; }
.card .timeline-floating-title { width: 220px !important; max-width: 220px !important; height: auto !important; white-space: pre-wrap !important; }



/* Table editor: give the title, data and advanced tools separate visual places.
   The wrapper scrolls when a legacy table has more columns than the card can show. */













































@media (hover: none) {
  
}








/* A blank table should make its two creation actions recognizable as buttons. */



