/* HyperNote 3: cohesive, opt-in scene controls. Full content remains the default. */
#selection-tools[hidden] {display:none!important}
.scene-button {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:34px;border:1px solid #d8dedb;border-radius:8px;background:#fff;color:#30433d;padding:6px 12px;cursor:pointer;font:inherit}
.scene-button:hover:not(:disabled) {background:#edf4f0;border-color:#9eafa7}
.scene-button:disabled {opacity:.4;cursor:default}
.scene-button:focus-visible,.scene-dialog input:focus-visible,.scene-selection-menu>summary:focus-visible {outline:2px solid #377f6b;outline-offset:3px}
.scene-button svg,.scene-selection-menu svg {width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
.scene-dialog {font:14px/1.6 Arial,Tahoma,sans-serif;direction:rtl;width:min(720px,calc(100vw - 48px));max-height:calc(100vh - 64px);padding:24px;border:1px solid #d8dedb;border-radius:16px;background:#fafbf9;color:#293e35;box-shadow:0 16px 80px #12271f40;overflow:auto}
.scene-dialog::backdrop {background:#132a2355}
.scene-dialog header,.scene-dialog footer {display:flex;align-items:center;justify-content:space-between;gap:16px}
.scene-dialog h2 {font-size:18px;margin:0}
.scene-dialog footer {justify-content:flex-end;margin-top:20px;flex-wrap:wrap}
.scene-dialog .primary {background:#326b58;color:white;border-color:#326b58}
.scene-muted {color:#63756d;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}
.scene-layout-modes {display:flex;gap:12px;margin:22px 0}
.scene-layout-modes button {flex:1;padding:16px}
.scene-layout-modes button[aria-pressed=true] {background:#e7f1eb;outline:2px solid #477763;border-color:transparent}
.scene-layout-controls {display:flex;gap:20px;margin-bottom:18px}
.scene-layout-controls label {display:flex;align-items:center;gap:10px}
.scene-dialog input:not([type=checkbox]) {border:1px solid #cbd7cf;border-radius:7px;background:white;padding:8px;font:inherit;min-width:0}
.scene-layout-controls input {width:76px}
.scene-dialog>input {box-sizing:border-box;width:100%;margin:12px 0}
.scene-backup-enable {display:flex;gap:8px;align-items:center}
.scene-layout-preview {width:100%;height:260px;background:#f0f2ef;border:1px solid #d9e1da;border-radius:10px}
.scene-layout-preview rect {stroke:#6b8074;stroke-width:1;vector-effect:non-scaling-stroke}
.card .scene-compact-toggle {position:absolute;right:7px;top:1px;padding:1px;min-height:18px;height:18px;width:22px;border:0;background:transparent;opacity:0;color:#5e7569}
.card .scene-compact-toggle svg {width:16px;height:16px}
.card:hover .scene-compact-toggle,.card.selected .scene-compact-toggle,.card.scene-compact .scene-compact-toggle,.scene-compact-toggle:focus-visible {opacity:1}
.card.scene-compact {min-height:80px!important;max-height:180px!important;overflow:hidden!important}
.card.scene-compact>.card-body {max-height:calc(100% - 50px)!important;overflow:hidden!important;min-height:0!important;pointer-events:none}
.scene-read-more {position:absolute;bottom:0;left:0;right:0;width:100%;height:32px!important;min-height:32px!important;background:linear-gradient(#fafcf9ed,#fafcf9)!important;border:0!important;border-top:1px solid #e3e9e3!important;border-radius:0!important;font-size:12px!important;color:#396b53!important;z-index:4}
.topbar-center-tools {flex-wrap:nowrap!important;gap:8px!important}
.topbar-center-tools>.zoom-controls {display:flex!important;flex-shrink:0!important}
.scene-selection-menu {position:relative;flex-shrink:0}
.scene-selection-menu:has(.selection-tools.hidden) {visibility:hidden}
.scene-selection-menu>summary {display:flex;align-items:center;gap:6px;list-style:none;cursor:pointer;min-height:36px;padding:0 10px;border:1px solid #d8dedb;border-radius:8px;color:#3a6453;background:#f9fbf8;font-size:12px;white-space:nowrap}
.scene-selection-menu>summary::-webkit-details-marker {display:none}
.scene-selection-menu>.selection-tools {position:absolute!important;top:calc(100% + 12px)!important;left:0!important;right:auto!important;display:flex;flex-wrap:wrap!important;justify-content:flex-start!important;max-width:none!important;width:376px!important;height:auto!important;padding:12px!important;gap:8px!important;background:#fafbf9!important;border:1px solid #d8dedb!important;box-shadow:0 8px 32px #16322626!important;border-radius:12px!important;z-index:1000!important;overflow:visible!important}
.scene-selection-menu:not([open])>.selection-tools {display:none!important}
.scene-selection-menu .selection-count {display:block!important;flex-basis:100%;font-size:12px!important;color:#546f5e}
.scene-selection-menu .selection-tools button,.scene-selection-menu .selection-tools summary {width:36px!important;min-width:36px!important;height:36px!important;border-radius:7px!important}
.scene-selection-menu .selection-icon {width:22px!important;height:22px!important}
.scene-selection-menu .selection-align-popover {left:0;right:auto;min-width:290px;background:#fafbf9}
.scene-selection-menu .selection-align-popover>span {font-size:12px;color:#506856}
.topbar-actions>.icon-btn,.topbar-actions>details>summary {height:36px!important;min-width:36px!important;width:36px!important}
.topbar-actions {gap:5px!important}
@media(max-width:1200px){.topbar .search-box {width:170px!important}.topbar .search-box kbd {display:none}.topbar .board-heading {max-width:220px;min-width:100px!important}.scene-selection-menu>summary span {display:none}}
@media(max-width:980px){.topbar .search-box {width:120px!important}.topbar {gap:6px!important;padding-inline:8px!important}.topbar .board-heading {max-width:160px}.topbar-actions>.icon-btn,.topbar-actions>details>summary {min-width:30px!important;width:30px!important}.scene-selection-menu>.selection-tools {position:fixed!important;top:70px!important;left:12px!important;width:min(376px,calc(100vw - 48px))!important}}

/* Bundled Arabic + Latin interface face (SIL OFL, vendor/readex-pro), so the UI looks the
   same on Windows, Mac and phones and works offline. Note content keeps its own font. */
@font-face {font-family:"HyperNote UI";src:url("vendor/readex-pro/ReadexPro-Regular.woff") format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face {font-family:"HyperNote UI";src:url("vendor/readex-pro/ReadexPro-Medium.woff") format("woff");font-weight:500 600;font-style:normal;font-display:swap}
@font-face {font-family:"HyperNote UI";src:url("vendor/readex-pro/ReadexPro-Bold.woff") format("woff");font-weight:700 900;font-style:normal;font-display:swap}
/* Editorial workspace — a quiet visual system for the UI, not user text formatting. */
:root {
  --ui-font:"HyperNote UI","Segoe UI",Tahoma,Arial,sans-serif;
  --ui-surface:#fffefa; --ui-stage:#f4f5ef; --ui-ink:#253d35; --ui-muted:#677870;
  --ui-border:#e1e5df; --ui-accent:#285d4b; --ui-accent-soft:#edf3ec;
  --ui-shadow:0 16px 48px #263e3214,0 2px 8px #263e3209;
  --ui-radius:14px; --topbar-height:64px;
  --accent:#38795e; --accent-dark:#285d4b;
}
.ui-icon {width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.ui-command-icon {display:inline-flex;width:24px;align-items:center;justify-content:center;color:inherit;flex:none}
.topbar,.scene-dialog,.project-settings-menu,.project-file-dialog,.project-versions-dialog,.canvas-context-menu,.board-menu,.export-menu,.favorite-boards-panel,.hn-contextual-rail,.hn-rail-flyout,.web-dialog,.web-status-dock,.toast-region,.hn-mobile-header,.hn-mobile-dock,.hn-mobile-selected,.hn-mobile-editor-header,.hn-mobile-sheet {font-family:var(--ui-font)}
.topbar {
  display:grid!important;grid-template-columns:minmax(140px,1fr) auto auto;align-items:center;
  gap:20px!important;height:64px!important;min-height:64px!important;padding:0 20px!important;
  background-color:var(--topbar-bg,#f7f6f3)!important;border-bottom:1px solid #71867624!important;
  box-shadow:0 2px 12px #294a3710;z-index:100!important;
}
.topbar .board-heading,.topbar:has(.selection-tools:not(.hidden)) .board-heading {min-width:0!important;max-width:none!important;flex:initial!important;overflow:hidden}
.topbar .breadcrumbs {gap:7px;min-width:0;overflow:hidden;flex:1}
.topbar .breadcrumb-btn {font-size:12px!important;line-height:1.6;color:var(--ui-ink);max-width:145px}
.topbar .breadcrumb-separator {color:#99a69d;font-size:14px}
.topbar .board-title {font-size:14px!important;line-height:1.5;min-width:60px;width:100%;color:var(--ui-ink)}
.topbar .folder-up-btn {width:30px!important;min-width:30px!important}
.topbar .folder-up-btn:disabled {opacity:.8}
.topbar-actions {gap:5px!important;flex-wrap:nowrap!important;min-width:0}
.topbar-actions>.icon-btn,.topbar-actions>details>summary {width:40px!important;min-width:40px!important;height:40px!important;border:1px solid transparent!important;border-radius:11px!important;background:transparent!important;color:var(--ui-ink);box-shadow:none!important}
.topbar-actions>.icon-btn:hover:not(:disabled),.topbar-actions>details[open]>summary,.topbar-actions>details>summary:hover {background:#fffefaab!important;border-color:#97ad9d55!important}
.topbar-actions>.icon-btn:disabled {opacity:.32!important}
.topbar-actions>.favorite-boards-btn.active {color:var(--ui-ink)!important;background:transparent!important;border-color:transparent!important}
.topbar .search-box {height:40px!important;width:210px!important;padding:0 12px!important;border:1px solid #83968a30!important;border-radius:11px!important;background:#fffefa9c!important;box-shadow:0 1px 2px #14291905;color:#708278}
.topbar .search-box:focus-within {background:var(--ui-surface)!important;border-color:#517f66!important;box-shadow:0 0 0 3px #477f6317}
.topbar .search-box input {display:block!important;min-width:0!important;font-size:12px!important;color:var(--ui-ink)}
.topbar .search-box input::placeholder {color:#64796b;opacity:1}
.topbar .search-box kbd {border:0!important;background:transparent!important;color:#718174!important;font-size:9px!important}
.topbar-center-tools {gap:10px!important;flex-wrap:nowrap!important}
.topbar .zoom-controls {display:flex!important;height:40px!important;padding:3px!important;border:1px solid #83968a30!important;border-radius:11px!important;background:#fffefa9c!important;box-shadow:none!important}
.topbar .zoom-controls button {height:32px!important;min-width:29px!important;width:29px!important;border:0!important;border-radius:7px!important;font-size:16px!important;color:var(--ui-ink)!important;background:transparent!important}
.topbar .zoom-controls button:hover {background:#e1ecdf!important}
.topbar .zoom-controls .zoom-value {min-width:44px!important;width:44px!important;font-size:11px!important;font-weight:600}
.topbar #board-background-btn>span {width:16px;height:16px;border-radius:5px;border:1px solid #697f6e66}
.topbar .scene-selection-menu>summary {height:40px;min-height:40px;padding:0 11px;border-radius:11px;background:#e5eddf;border-color:#8fa98945;color:#355943;font-size:12px}
.topbar .scene-selection-menu[open]>summary {background:#dfeada;border-color:#789a77}
.scene-selection-menu>.selection-tools {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));width:370px!important;padding:14px!important;gap:6px!important;top:calc(100% + 14px)!important;border-radius:18px!important;background:var(--ui-surface)!important;border-color:var(--ui-border)!important;box-shadow:var(--ui-shadow)!important;max-height:calc(100vh - 100px);overflow:visible!important;direction:rtl}
.scene-selection-menu:not([open])>.selection-tools,.scene-selection-menu>.selection-tools.hidden {display:none!important}
.scene-selection-menu .selection-count {grid-column:1/-1;padding:0 8px 10px;border-bottom:1px solid var(--ui-border);margin:0 0 4px!important;font-size:13px!important;color:var(--ui-ink)!important;font-weight:600}
.scene-selection-menu .toolbar-divider {display:none}
.scene-selection-menu .selection-tools>button,.scene-selection-menu #selection-align-menu>summary {
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px!important;
  width:100%!important;min-width:0!important;height:68px!important;border:1px solid transparent!important;border-radius:10px!important;background:transparent!important;font-size:22px;color:var(--ui-ink);box-shadow:none!important;
}
.scene-selection-menu .selection-tools>button::after {content:attr(data-ui-label);font:11px/1.4 var(--ui-font);white-space:normal;color:inherit}
.scene-selection-menu #selection-align-menu>summary::after {content:"المحاذاة";font:11px/1.4 var(--ui-font)}
.scene-selection-menu .selection-tools>button:hover:not(:disabled),.scene-selection-menu #selection-align-menu>summary:hover {background:var(--ui-accent-soft)!important;border-color:#aec5ad80!important}
.scene-selection-menu .selection-tools>button:disabled {opacity:.33!important}
.scene-selection-menu .selection-tools>#delete-item-btn {color:#a23c37!important}
.scene-selection-menu .selection-tools>#delete-item-btn:hover {background:#faece7!important}
.scene-selection-menu #color-swatches {display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;height:68px;width:auto;min-width:0}
.scene-selection-menu #color-swatches::after {content:"لون العنصر";font:11px/1.4 var(--ui-font);color:var(--ui-ink)}
.scene-selection-menu #color-swatches button {border-color:#a0b69f6b!important}
.scene-selection-menu .selection-align-popover {min-width:290px;border:1px solid var(--ui-border);border-radius:13px;box-shadow:var(--ui-shadow);background:var(--ui-surface);padding:14px}
.scene-selection-menu .alignment-options {gap:6px}
.scene-selection-menu .alignment-options button {height:40px!important;width:40px!important;min-width:40px!important;background:#f0f4ed;border:1px solid #d5e0d2!important}
.text-format-toolbar {border:1px solid #aebfab70!important;border-radius:12px!important;box-shadow:0 3px 12px #273f3210;gap:4px!important;background:var(--ui-surface)!important}
.text-format-toolbar button,.text-format-toolbar select {min-height:34px!important;border-radius:7px;font-size:12px;color:var(--ui-ink)}
#project-settings>summary {position:relative}
#project-settings>summary::after {content:"";position:absolute;bottom:5px;right:6px;width:5px;height:5px;border-radius:50%;background:#639574;box-shadow:0 0 0 2px var(--topbar-bg,#f7f6f3)}
#project-settings>summary[data-save-state=saving]::after {background:#b98b37}
#project-settings>summary[data-save-state=error]::after {background:#b43d35;width:7px;height:7px}
.no-project #project-settings>summary::after {display:none}
.project-settings-menu {width:280px;padding:14px;border-radius:16px;background:var(--ui-surface);border-color:var(--ui-border);box-shadow:var(--ui-shadow);top:calc(100% + 14px)}
.project-settings-menu .project-app-name {display:block;font:600 15px var(--ui-font);color:var(--ui-ink);padding:4px 8px 0}
.project-settings-menu #project-name {font-size:12px;color:var(--ui-muted);padding:6px 8px 14px;border-bottom:1px solid var(--ui-border);margin-bottom:8px}
.project-settings-menu button {display:flex;align-items:center;gap:12px;min-height:40px;border-radius:9px;padding:7px 9px;font-size:13px}
/* The Close entry that mobile.js adds is for phones only. */
body:not(.hn-mobile) .project-settings-menu .hn-mobile-settings-close {display:none}
.project-settings-menu button:hover {background:var(--ui-accent-soft)}
.project-settings-menu [data-project-action=legacy],.project-settings-menu [data-project-action=close] {border-top:1px solid var(--ui-border);border-radius:0;margin-top:7px;padding-top:12px}
.project-settings-menu [data-project-action=quit] {color:#a23c37}
.project-save-status {padding:10px!important;margin-top:10px!important;border-radius:8px;background:#eef3e9;font-size:11px!important;color:#406b4e;white-space:normal;line-height:1.6}
.project-save-status.error {background:#fbeae5;color:#9d322c}
.project-start-screen {inset:64px 0 0;background-color:#f5f5ee;background-image:radial-gradient(ellipse at 28% 35%,#e2eadb80,transparent 50%),radial-gradient(ellipse at 82% 85%,#efe7d280,transparent 48%),radial-gradient(#a8b39d70 .65px,transparent .65px);background-size:auto,auto,28px 28px}
.project-start-card {width:min(540px,100%);max-width:540px;padding:46px 40px;background:linear-gradient(135deg,#fffefaed,#fffefacf);border:1px solid #fffefafa;border-radius:28px;box-shadow:0 30px 100px #41503b12,0 2px 5px #41503b08;transform:translateY(-20px)}
.welcome-brand {display:flex;align-items:center;justify-content:center;gap:16px;direction:ltr;margin:0 0 34px}
.welcome-brand img {width:64px;height:64px;filter:drop-shadow(0 6px 9px #2f503821)}
.welcome-brand h1 {font:650 31px/1.3 var(--ui-font);letter-spacing:-1px;margin:0!important;color:var(--ui-ink)}
.welcome-brand h1 span {display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;font-size:12px;font-weight:600;letter-spacing:0;width:24px;height:24px;border-radius:8px;background:#e8eedf;color:#5c745b;margin-left:4px}
.project-start-actions {display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0}
.project-start-card .project-start-actions button {display:flex;align-items:center;justify-content:center;gap:12px;min-height:60px;border-radius:13px;font-size:15px;font-weight:600;background:#fffefac9;border:1px solid #c5d1bd;color:var(--ui-ink);padding:15px 18px;transition:background .15s,box-shadow .15s,transform .15s}
.project-start-card .project-start-actions button:first-child {background:var(--ui-accent);border-color:var(--ui-accent);color:#fffefa;box-shadow:0 5px 14px #234c3821}
.project-start-card .project-start-actions button:hover:not(:disabled) {transform:translateY(-2px);box-shadow:0 8px 18px #28403118}
#project-start-message:not(:empty) {padding-top:18px;font-size:13px;color:#a43f32}
.scene-dialog,.project-file-dialog,.project-versions-dialog,.modal {background:var(--ui-surface);border:1px solid var(--ui-border);border-radius:20px;padding:26px;box-shadow:var(--ui-shadow);color:var(--ui-ink);font:14px/1.7 var(--ui-font)}
.scene-dialog::backdrop,.project-file-dialog::backdrop,.project-versions-dialog::backdrop {background:#21372e55;backdrop-filter:blur(3px)}
.scene-dialog h2,.project-file-dialog h2,.project-versions-dialog h2 {font-size:22px;font-weight:650;line-height:1.4;color:var(--ui-ink)}
.scene-dialog .scene-button,.project-file-dialog button,.project-versions-dialog button {min-height:42px;border-radius:10px;padding:8px 14px;font:13px var(--ui-font);border-color:#d4ddcc;background:#fffefa;color:var(--ui-ink)}
.scene-dialog .primary,#project-picker-submit {background:var(--ui-accent);border-color:var(--ui-accent);color:white}
.scene-dialog input:not([type=checkbox]),.project-file-dialog input,.project-versions-dialog input {min-height:44px;border:1px solid #82978a;border-radius:10px;background:white;font:13px var(--ui-font);padding:10px 12px}
.project-picker-locations {gap:7px;margin:5px 0 18px}
.project-picker-locations button {min-height:34px;border:0;background:#edf2e9;border-radius:8px;padding:6px 10px;font-size:12px}
.project-picker-entries {height:min(280px,32vh);background:#f6f7f0;border:1px solid var(--ui-border);border-radius:12px;padding:7px}
.project-picker-entries button {border-radius:7px!important;min-height:36px!important;font-size:13px!important;background:transparent}
.project-picker-entries button:hover {background:#e4eddf}
.project-picker-footer {gap:10px;margin-top:20px}
.scene-layout-modes {gap:14px;margin:26px 0 22px}
.scene-layout-modes .scene-button {min-height:78px;flex-direction:column;background:#f5f7f0;border:1px solid var(--ui-border);gap:9px;font-size:14px}
.scene-layout-modes .scene-button[aria-pressed=true] {background:#e9f1e3;outline:2px solid #4a7957}
.scene-layout-controls {padding:15px;border-radius:12px;background:#f3f6ee;justify-content:space-between}
.scene-layout-preview {height:300px;background-color:#f5f7f0;background-image:radial-gradient(#9db29755 .65px,transparent .65px);background-size:18px 18px;border-radius:13px;border-color:var(--ui-border)}
.scene-muted {color:var(--ui-muted);font:13px/1.7 var(--ui-font)}
.favorite-add-current {border:1px dashed var(--theme-border,#d9dde1);background:var(--theme-raised,#f5f6f7);color:var(--theme-ink,#323b4a);min-height:42px;border-radius:10px}
.favorite-board-row {border-radius:11px;padding:8px;margin-bottom:6px;background:#f5f7f1}
.favorite-board-open strong {font-size:13px;line-height:1.6}
.canvas-context-menu,.board-menu,.export-menu{border:1px solid var(--ui-border)!important;border-radius:15px!important;background:var(--ui-surface)!important;box-shadow:var(--ui-shadow)!important;color:var(--ui-ink)!important;padding:8px!important;max-height:calc(100vh - 90px);overflow-y:auto}
.canvas-context-menu {width:236px!important}
.canvas-context-menu button {min-height:37px!important;gap:11px!important;padding:4px 8px!important;border-radius:8px!important}
.canvas-context-menu button>span:first-child {width:28px!important;height:28px!important;flex:0 0 28px!important;border-radius:8px!important;display:grid!important;place-items:center}
.canvas-context-menu button strong {font:500 13px var(--ui-font)!important}
.canvas-context-menu button small {display:none!important}
.canvas-context-menu button:hover,.board-menu button:hover,.export-menu button:hover {background:var(--ui-accent-soft)!important}
.canvas-context-menu .context-menu-title {font:600 11px var(--ui-font)!important;color:#637759!important;padding:7px 9px 10px!important;border-bottom:1px solid var(--ui-border);margin-bottom:4px}
.board-menu button,.export-menu button{min-height:37px;padding:8px 11px;border-radius:8px;font-size:13px}
.card:not(.image-card):not(.frame-card):not(.timeline-card,.section-card,.ink-card):not(.board-card):not(.heading-card) {border:1px solid #6d88621a!important;border-radius:13px!important;box-shadow:0 2px 4px #24412908,0 6px 18px #24412907!important}
.card.selected:not(.frame-card):not(.image-card):not(.timeline-card):not(.board-card) {
  /* A shadow follows the card radius even when zoom makes the selection stroke wider. */
  outline: none !important;
  box-shadow: 0 0 0 var(--hn-selection-width) #6a9875, 0 0 0 calc(var(--hn-selection-width) + 5px) #70a0750c, 0 5px 16px #2441290d !important;
}
.card.selected:not(.board-card):not(.timeline-card) {
  --hn-selection-width: clamp(1px, calc(2px * var(--hn-inverse-zoom, 1)), 18px);
  outline-width: var(--hn-selection-width) !important;
  outline-offset: calc(0px - var(--hn-selection-width)) !important;
}
.card.selected:not(.board-card):not(.timeline-card):not(.image-card):not(.frame-card) > .drag-handle {
  border-radius: 12px 12px 0 0;
}
.column-entry.entry-selected,.column-entry:focus {
  --hn-entry-selection-width: clamp(1px, calc(1.5px * var(--hn-inverse-zoom, 1)), 12px);
  outline-width: var(--hn-entry-selection-width);
  outline-offset: calc(0px - var(--hn-entry-selection-width));
}
.card>.drag-handle {border-bottom-color:#5774420c;color:#58734d}
.card .scene-compact-toggle {width:26px;height:21px;top:1px;right:6px;border-radius:5px}
.card .scene-compact-toggle:hover {background:#e9f0e2}
.card.scene-compact .scene-read-more {font-family:var(--ui-font)!important;background:#f4f7ef!important;color:#366747!important}


.card input[type=checkbox] {accent-color:#427451}
.card .planner-event {border-radius:7px;box-shadow:0 1px 3px #28392516}
.toast-region>div,.toast {background:#294a39!important;color:#fffefa!important;border:1px solid #ffffff20;border-radius:12px!important;box-shadow:var(--ui-shadow);font:13px/1.6 var(--ui-font)!important;padding:12px 18px!important}
.search-results {border-color:var(--ui-border);border-radius:13px;background:var(--ui-surface);box-shadow:var(--ui-shadow)}
#export-menu,#board-menu {top:72px!important;max-height:calc(100vh - 84px)}
.search-result-item strong {white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.6}
@media(max-width:1000px){.search-results {position:fixed;top:76px;left:12px;right:auto;width:min(390px,calc(100vw - 24px))}}
:is(.topbar,.scene-dialog,.project-file-dialog,.project-settings-menu,.project-start-card,.canvas-context-menu,.favorite-boards-panel) :is(button,summary,input,select):focus-visible {outline:3px solid #477e5e;outline-offset:3px}
:is(.favorite-boards-panel,.project-picker-entries,.scene-dialog,.canvas-context-menu) {scrollbar-width:thin;scrollbar-color:#abbba0 transparent}
@media(min-width:1600px){.topbar .search-box {width:260px!important}.topbar {gap:28px!important;padding-inline:26px!important}}
@media(max-width:1200px){.topbar {gap:10px!important;padding-inline:12px!important;grid-template-columns:minmax(100px,1fr) auto auto}.topbar .search-box {width:165px!important}.topbar .search-box kbd {display:none}.topbar-actions>.icon-btn,.topbar-actions>details>summary {width:36px!important;min-width:36px!important}.scene-selection-menu>summary span {display:none}}
@media(max-width:1000px){.topbar .search-box {width:130px!important}.topbar .zoom-controls button {min-width:25px!important;width:25px!important}.topbar {gap:8px!important}.topbar-actions {gap:2px!important}}
@media(max-width:840px){.topbar .search-box {width:95px!important}.topbar .scene-selection-menu>summary {padding:0 7px}.topbar-actions>.icon-btn,.topbar-actions>details>summary {min-width:32px!important;width:32px!important}.topbar {grid-template-columns:minmax(68px,1fr) auto auto;padding-inline:8px!important}.topbar .folder-up-btn {display:none!important}.topbar .zoom-controls {gap:0}.scene-selection-menu>.selection-tools {position:fixed!important;top:76px!important;left:12px!important;width:min(370px,calc(100vw - 24px))!important}.scene-selection-menu .selection-tools>button,.scene-selection-menu #selection-align-menu>summary {height:56px!important}}
@media(max-height:620px){.scene-selection-menu>.selection-tools {grid-template-columns:repeat(4,minmax(0,1fr));width:min(420px,calc(100vw - 24px))!important}.scene-selection-menu .selection-tools>button,.scene-selection-menu #selection-align-menu>summary {height:58px!important}.scene-layout-preview {height:190px}.project-start-card {padding:28px}}
.topbar.dark-board-background {--ui-ink:#f1f5ee;--ui-muted:#d1dccd}
.topbar.dark-board-background .search-box,.topbar.dark-board-background .zoom-controls {background:#ffffff12!important;border-color:#d4e3d333!important}
.topbar.dark-board-background .search-box input::placeholder,.topbar.dark-board-background .search-box kbd {color:#d1dccd!important}
.topbar.dark-board-background .search-box:focus-within,.topbar.dark-board-background .zoom-controls button:hover,.topbar.dark-board-background .topbar-actions>.icon-btn:hover:not(:disabled),.topbar.dark-board-background .topbar-actions>details[open]>summary,.topbar.dark-board-background .topbar-actions>details>summary:hover {background:#ffffff1f!important;border-color:#d4e3d355!important}
.topbar.dark-board-background :is(.project-settings-menu,.selection-tools,.text-format-toolbar,.board-menu,.export-menu) {--ui-ink:#253d35;--ui-muted:#677870;color:#253d35}
.topbar.dark-board-background :is(.project-settings-menu,.selection-tools,.text-format-toolbar,.board-menu,.export-menu) :is(button,summary,select) {color:#253d35}
.scene-dialog:has(.scene-layout-preview) {padding:20px}
.scene-dialog:has(.scene-layout-preview) .scene-layout-modes {margin:18px 0}
.scene-layout-preview {height:clamp(100px,calc(100vh - 490px),300px)}
.scene-dialog footer {position:sticky;bottom:-20px;z-index:2;background:var(--ui-surface);padding:12px 0 2px;border-top:1px solid var(--ui-border)}
@media(prefers-reduced-motion:reduce){.project-start-card button,.scene-button,.topbar button {transition:none!important;animation:none!important;transform:none!important}}
@media(forced-colors:active){.scene-button,.project-start-actions button,.topbar button {border:1px solid ButtonText!important}.card.selected,.card.selected:not(.frame-card):not(.image-card):not(.timeline-card):not(.board-card) {outline:2px solid Highlight!important;outline-offset:1px!important}}
