@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg:#252735; --panel:#303344; --panel-2:#292c3d; --card:#303344;
  --text:#d0cedd; --muted:#85869b; --accent:#aaa4d0; --accent-2:#77719f;
  --line:#424559; --hover:#3b3e50; --green:#789b82; --yellow:#c3a66d; --red:#b87983;
  --shadow:0 18px 55px #11131c55;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--bg);color:var(--text);font-family:"DM Sans",Arial,sans-serif;font-size:14px}
button,input,textarea,select{font:inherit}
button{color:inherit;cursor:pointer}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.app-shell{min-height:100vh;display:flex;padding:10px;gap:10px}
.icon-rail{width:50px;height:calc(100vh - 20px);position:sticky;top:10px;flex:none;background:var(--panel);border-radius:11px;padding:10px 6px;display:flex;align-items:center;flex-direction:column;gap:12px}
.icon-button{width:38px;height:38px;border:0;background:transparent;border-radius:8px;color:var(--muted);font-size:20px;display:grid;place-items:center}
.icon-button:hover,.icon-button.active{background:var(--hover);color:var(--accent)}
.icon-button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.rail-bottom{margin-top:auto}
.sidebar{width:248px;height:calc(100vh - 20px);position:sticky;top:10px;flex:none;background:var(--panel);border-radius:11px;padding:22px 15px 14px;display:flex;flex-direction:column;overflow:auto;transition:width .25s,padding .25s,opacity .2s}
.sidebar.collapsed{width:0;padding-left:0;padding-right:0;opacity:0;overflow:hidden}
.sidebar-top{display:flex;align-items:center;gap:12px;padding:0 5px 22px}
.brand-mark{width:35px;height:35px;border-radius:10px;background:#45435e;color:var(--accent);display:grid;place-items:center;font-size:22px}
.eyebrow{font:10px "DM Mono",monospace;letter-spacing:1.5px;color:var(--muted);margin:0 0 6px}
.sidebar h2{font-size:17px;font-weight:600;margin:0;color:var(--accent)}
.sidebar-search-wrap{margin-bottom:18px}
input,textarea,select{background:var(--panel-2);border:1px solid var(--line);border-radius:7px;color:var(--text);padding:10px 11px;min-width:0}
input::placeholder,textarea::placeholder{color:#77798e}
.sidebar-search-wrap input{width:100%;font-size:12px}
.main-nav{display:grid;gap:4px}
.nav-item{display:flex;align-items:center;gap:11px;width:100%;border:0;background:transparent;border-radius:7px;text-align:left;padding:10px;color:var(--muted);font-size:13px}
.nav-item span{width:17px;text-align:center;font-size:16px}
.nav-item:hover,.nav-item.active{background:var(--hover);color:var(--accent)}
.sidebar-divider{height:1px;background:var(--line);margin:19px 3px 14px}
.sidebar-section-heading{display:flex;justify-content:space-between;align-items:center;padding:0 7px 8px;color:var(--muted);font:10px "DM Mono",monospace;letter-spacing:1.2px}
.subtle-icon{border:0;background:transparent;color:var(--muted);font-size:21px;line-height:1;padding:4px 7px;border-radius:6px}
.subtle-icon:hover{background:var(--hover);color:var(--accent)}
.folder-list{display:grid;gap:3px}
.folder-row{display:flex;align-items:center;gap:4px}
.folder-open{flex:1;min-width:0;text-align:left;border:0;background:transparent;color:var(--muted);padding:8px;border-radius:6px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-open:hover,.folder-open.active{background:var(--hover);color:var(--accent)}
.folder-count{font:10px "DM Mono",monospace;color:var(--muted);padding-right:5px}
.sidebar-footer{margin-top:auto;padding-top:15px;border-top:1px solid var(--line)}
.workspace{flex:1;min-width:0;padding:0 22px 55px}
.topbar{height:57px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff0c;margin-bottom:26px}
.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb span{padding:0 8px;color:var(--line)}
.topbar-actions{display:flex;gap:10px;align-items:center}
.quiet-button,.secondary-button{border:1px solid var(--line);background:var(--panel);padding:9px 13px;border-radius:7px;color:var(--text);font-size:12px}
.quiet-button:hover,.secondary-button:hover{border-color:var(--accent);color:var(--accent)}
.avatar-button{width:32px;height:32px;border-radius:50%;border:1px solid var(--line);background:var(--panel);color:var(--accent)}
.view-root{max-width:1500px;margin:0 auto}
.page-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin:5px 0 28px}
.page-heading h1{font-size:29px;font-weight:500;color:var(--accent);margin:0 0 8px;letter-spacing:-.6px}
.page-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.heading-actions{display:flex;gap:8px;flex-wrap:wrap}
.primary-button{background:var(--accent);border:0;border-radius:7px;color:#252735;padding:10px 15px;font-weight:700;font-size:12px}
.primary-button:hover{filter:brightness(1.08)}
.section-row{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:28px 0 14px}
.section-row h2{font-size:15px;font-weight:600;margin:0}
.section-row p{color:var(--muted);font-size:12px;margin:5px 0 0}
.toolbar-controls{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.toolbar-controls select{font-size:11px;padding:8px 10px}
.masonry{columns:4 220px;column-gap:15px}
.item-card{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;margin:0 0 15px;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:transform .18s,border-color .18s,filter .2s;cursor:pointer}
.item-card:hover{transform:translateY(-2px);border-color:var(--accent-2)}
.item-card.status-red{background:linear-gradient(135deg,#4a343e,var(--card) 68%)}
.item-card.status-yellow{background:linear-gradient(135deg,#494332,var(--card) 68%)}
.item-card.status-green{background:linear-gradient(135deg,#34483e,var(--card) 68%)}
.card-image{width:100%;max-height:270px;object-fit:cover;display:block;background:var(--panel-2)}
.card-placeholder{height:125px;display:grid;place-items:center;background:var(--panel-2);color:var(--muted);font-size:28px}
.card-copy{padding:13px 14px 12px}
.card-kicker{font:10px "DM Mono",monospace;color:var(--accent);text-transform:uppercase;letter-spacing:1px;margin:0 0 7px}
.card-title{font-size:14px;font-weight:600;margin:0 0 7px;line-height:1.4}
.card-caption{font-size:12px;color:var(--muted);line-height:1.55;margin:0 0 10px;overflow-wrap:anywhere}
.card-label{display:inline-block;background:#45435e;color:#c4bedf;padding:5px 8px;border-radius:5px;font-size:10px;margin:2px 4px 3px 0}
.card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid #ffffff0d;padding:9px 13px;color:var(--muted);font-size:10px}
.card-actions{display:flex;gap:5px}
.mini-action{border:0;background:transparent;color:var(--muted);font-size:15px;padding:3px 5px;border-radius:5px}
.mini-action:hover,.mini-action.selected{color:var(--accent);background:#ffffff08}
.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:5px;background:var(--muted)}
.status-dot.red{background:var(--red)}.status-dot.yellow{background:var(--yellow)}.status-dot.green{background:var(--green)}
.empty-state{border:1px dashed var(--line);border-radius:10px;padding:42px 20px;text-align:center;color:var(--muted)}
.empty-state strong{display:block;color:var(--accent);font-size:14px;margin-bottom:7px}
.empty-state p{font-size:12px;margin:0;line-height:1.6}
.tag-list{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.tag{font-size:10px;color:var(--muted);border:1px solid var(--line);border-radius:4px;padding:3px 6px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field{display:grid;gap:6px;margin-bottom:12px}
.field.full{grid-column:1/-1}
.field label{font-size:11px;color:var(--muted)}
.field input,.field textarea,.field select{width:100%;font-size:12px}
.field textarea{min-height:75px;resize:vertical;line-height:1.5}
.field-hint{font-size:10px;color:var(--muted);line-height:1.5}
.inline-check{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.inline-check input{accent-color:var(--accent)}
.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:15px}
.editor-dialog{width:min(650px,calc(100% - 28px));max-height:88vh;overflow:auto;border:1px solid var(--line);border-radius:13px;background:var(--panel);color:var(--text);padding:22px;box-shadow:var(--shadow)}
.editor-dialog::backdrop{background:#10111bbd;backdrop-filter:blur(4px)}
.dialog-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}
.dialog-heading h2{font-size:20px;font-weight:500;color:var(--accent);margin:0}
.detail-panel{position:fixed;z-index:20;right:10px;top:10px;bottom:10px;width:min(410px,calc(100vw - 30px));overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:20px;box-shadow:var(--shadow);animation:slide-in .22s ease}
@keyframes slide-in{from{transform:translateX(25px);opacity:0}to{transform:translateX(0);opacity:1}}
.detail-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid var(--line);padding-bottom:15px;margin-bottom:16px}
.detail-header h2{font-size:18px;font-weight:500;color:var(--accent);margin:0}
.detail-image{width:100%;max-height:230px;object-fit:cover;border-radius:8px;margin-bottom:14px}
.detail-copy{font-size:13px;line-height:1.7;color:var(--text);white-space:pre-wrap}
.detail-notes{width:100%;min-height:180px;resize:vertical;line-height:1.6;margin:8px 0 14px}
.detail-link{color:var(--accent);font-size:12px}
.detail-section-title{font-size:11px;color:var(--accent);font-family:"DM Mono",monospace;letter-spacing:1px;margin:22px 0 8px}
.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(245px,1fr));align-items:start;gap:13px}
.note-card{min-width:0;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:hidden}
.note-card details{padding:14px}
.note-card summary{cursor:pointer;list-style:none;display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.note-card summary::-webkit-details-marker{display:none}
.note-card summary:after{content:"＋";color:var(--muted);font-size:15px}
.note-card details[open] summary:after{content:"−"}
.note-card h3{font-size:14px;font-weight:600;line-height:1.4;margin:0;color:var(--text)}
.note-card .note-content{font-size:12px;line-height:1.7;color:var(--muted);white-space:pre-wrap;overflow-wrap:anywhere;margin:13px 0 4px}
.note-card .card-meta{margin:0 14px;padding:9px 0}
.note-card .note-category{font:10px "DM Mono",monospace;letter-spacing:1px;text-transform:uppercase;color:var(--accent);margin:0 0 8px}
.question-list{display:grid;gap:8px}
.question-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;background:var(--card);border:1px solid var(--line);border-radius:9px;padding:13px}
.question-row p{margin:0;line-height:1.5;font-size:13px}
.question-actions{display:flex;align-items:center;gap:3px}
.question-actions .mini-action{font-size:17px;width:30px;height:30px}
.answered-question{opacity:.78}
.answered-question p{text-decoration:line-through;text-decoration-color:#85869b88}
.image-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.image-tile{background:var(--card);border:1px solid var(--line);border-radius:9px;padding:7px;min-width:0}
.image-tile img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:5px;display:block}
.image-tile p{font-size:10px;color:var(--muted);margin:7px 2px 2px;overflow-wrap:anywhere}
.graph-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:-8px 0 14px}
.graph-toggle{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px}
.graph-toggle input{accent-color:var(--accent)}
.graph-stage{position:relative;min-height:560px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:radial-gradient(ellipse at center,#34364b 0%,#282a3a 56%,#242634 100%)}
.graph-sun{position:absolute;left:50%;top:50%;width:100px;height:100px;transform:translate(-50%,-50%);border-radius:50%;display:grid;place-items:center;text-align:center;padding:8px;background:radial-gradient(circle at 35% 30%,#d4c9ed,#77719f 65%,#4a466b);box-shadow:0 0 35px #9d98c455,0 0 100px #9d98c422;color:#242434;font-size:11px;font-weight:700;z-index:2}
.orbit{position:absolute;left:50%;top:50%;border:1px solid #aaa4d033;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
.orbit.one{width:260px;height:180px}.orbit.two{width:430px;height:300px}.orbit.three{width:610px;height:440px}
.planet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border:1px solid #aaa4d088;border-radius:50%;background:#56516f;color:#e1ddef;padding:13px 16px;font-size:11px;box-shadow:0 0 18px #aaa4d022;white-space:nowrap;z-index:3;transition:transform .25s,box-shadow .25s}
.planet:hover{box-shadow:0 0 25px #aaa4d077;transform:translate(-50%,-50%) scale(1.1)}
.planet.p1{margin-left:0;margin-top:-130px}.planet.p2{margin-left:215px;margin-top:8px}.planet.p3{margin-left:-215px;margin-top:8px}.planet.p4{margin-left:0;margin-top:150px}
.graph-stage.zoomed .orbit{opacity:0}
.graph-stage.zoomed .graph-sun{opacity:.3}
.graph-stage.zoomed .planet:not(.chosen){opacity:.15}
.graph-stars{display:flex;flex-wrap:wrap;gap:9px;padding:18px;position:absolute;inset:0;align-content:flex-start;overflow:auto}
.graph-star{border:1px solid var(--line);background:#36384c;border-radius:20px;padding:8px 12px;font-size:11px;color:var(--text);max-width:100%;overflow-wrap:anywhere}
.graph-star::before{content:"✦";color:var(--accent);margin-right:7px}
.graph-source{border-style:dashed;color:var(--muted)}
.graph-back{position:absolute;top:14px;left:14px;z-index:5}
.photo-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0}
.settings-card{max-width:700px;background:var(--panel);border:1px solid var(--line);border-radius:10px;padding:18px;margin-bottom:12px}
.settings-card h3{font-size:14px;color:var(--accent);margin:0 0 8px}
.settings-card p{font-size:12px;color:var(--muted);line-height:1.6}
.toast{position:fixed;bottom:22px;left:50%;transform:translate(-50%,15px);background:#45435e;border:1px solid var(--line);padding:10px 15px;border-radius:8px;color:var(--text);font-size:12px;opacity:0;pointer-events:none;transition:.2s;z-index:50}
.toast.show{opacity:1;transform:translate(-50%,0)}
.lock-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:radial-gradient(ellipse at 50% 35%,#38374d,var(--bg) 65%)}
.lock-card{width:min(390px,100%);padding:35px;background:var(--panel);border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
.lock-mark{font-size:30px;color:var(--accent);margin-bottom:24px}
.lock-card h1{font-size:25px;font-weight:500;color:var(--accent);margin:0 0 8px}
.lock-card>p:not(.eyebrow){font-size:12px;color:var(--muted);line-height:1.6}
.lock-card label{display:block;font-size:11px;color:var(--muted);margin:15px 0 6px}
.lock-card input{width:100%}
.lock-card .full-button{width:100%;margin-top:15px}
.tiny-note{font-size:10px!important;margin-top:17px!important}
.error-message{color:#d9949d!important;min-height:15px}
.stats-strip{display:flex;flex-wrap:wrap;gap:9px;margin:0 0 26px}
.stats-strip span{background:var(--panel);border:1px solid var(--line);border-radius:7px;padding:9px 12px;color:var(--muted);font-size:11px}
.space-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px}
.space-links button{padding:15px;text-align:left;background:var(--panel);border:1px solid var(--line);border-radius:8px;color:var(--text);font-size:12px}
.space-links button:hover{border-color:var(--accent);color:var(--accent)}
.source-image-preview{display:none;width:100%;max-height:180px;object-fit:contain;background:var(--panel-2);border:1px solid var(--line);border-radius:7px;padding:5px;margin:2px 0 12px}
.source-image-preview.visible{display:block}
@media(max-width:1150px){.masonry{columns:3 200px}.workspace{padding-left:12px;padding-right:12px}}
@media(max-width:850px){.sidebar{width:205px}.masonry{columns:2 190px}.workspace{padding:0 8px 40px}}
@media(max-width:620px){.app-shell{gap:6px;padding:6px}.icon-rail{width:42px}.sidebar{width:175px;padding:15px 10px}.workspace{padding:0 4px 35px}.topbar{height:48px}.page-heading{display:block}.heading-actions{margin-top:14px}.page-heading h1{font-size:24px}.masonry{columns:2 140px}.graph-stage{min-height:430px}.orbit.one{width:190px;height:140px}.orbit.two{width:300px;height:230px}.orbit.three{width:390px;height:310px}.planet.p1{margin-top:-100px}.planet.p2{margin-left:135px}.planet.p3{margin-left:-135px}.planet.p4{margin-top:110px}}
@media(max-width:440px){.sidebar{width:145px}.sidebar h2{font-size:14px}.nav-item{font-size:11px;padding:9px 5px}.masonry{columns:1}.form-grid{grid-template-columns:1fr}.notes-grid{grid-template-columns:1fr}.graph-stage{min-height:390px}}

/* starspec refinement: compact, fixed navigation and subtle paper grid */
body{background-color:var(--bg);background-image:linear-gradient(#ffffff06 1px,transparent 1px),linear-gradient(90deg,#ffffff06 1px,transparent 1px);background-size:28px 28px}
.icon-rail{border-radius:5px;width:44px;padding:8px 4px;gap:7px}
.icon-button{width:34px;height:34px;border-radius:5px}
.sidebar{border-radius:5px;width:222px;padding:16px 12px 10px;overflow:hidden}
.sidebar-top{gap:8px;padding:0 3px 15px}
.brand-mark{width:29px;height:29px;border-radius:6px;font-size:19px}
.sidebar-search-wrap{margin-bottom:12px}
.main-nav{gap:1px}
.nav-item{gap:7px;padding:8px 7px;border-radius:5px;font-size:12px}
.sidebar-divider{margin:12px 3px 9px}
.sidebar-section-heading{padding-bottom:5px}
.folder-list{gap:1px;min-height:0;max-height:16vh;overflow:auto;overscroll-behavior:contain;padding-right:3px}
.sidebar-footer{flex:none;margin-top:auto;padding-top:8px;background:var(--panel)}
.workspace{min-height:calc(100vh - 20px)}
.topbar{position:sticky;top:0;z-index:15;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(12px);margin-bottom:22px}
.view-root{position:relative}
.masonry{background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:22px 22px;padding:7px;border-radius:8px}
.item-card{border-radius:6px;border-width:1px;transition:border-color .18s,transform .18s,box-shadow .18s}
.item-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px #10121c55}
.item-card.status-red{border-color:#d99aa466;box-shadow:inset 0 0 0 1px #d99aa422}
.item-card.status-yellow{border-color:#dfc58a66;box-shadow:inset 0 0 0 1px #dfc58a22}
.item-card.status-green{border-color:#a6c9a866;box-shadow:inset 0 0 0 1px #a6c9a822}
.card-meta{border-top:1px solid #ffffff0b}
.notes-grid{background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:22px 22px;padding:7px;border-radius:8px;align-items:start}
.note-card{resize:both;min-width:220px;min-height:130px;max-width:100%;overflow:auto;border-radius:6px;border-color:color-mix(in srgb,var(--note-colour,#aaa4d0) 45%,var(--line));box-shadow:inset 0 2px 0 color-mix(in srgb,var(--note-colour,#aaa4d0) 55%,transparent)}
.note-card .note-category{color:var(--note-colour,#aaa4d0)}
.note-card h3{color:var(--text)}
.note-inline-link{border:0;background:transparent;padding:0;color:#c4baff;text-decoration:underline;text-decoration-style:dotted;cursor:pointer;font:inherit}
.note-missing-link{color:#a6a0c8;text-decoration:underline dotted}
.note-card .note-content{white-space:pre-wrap;overflow-wrap:anywhere}
.photo-board{position:relative;min-height:650px;overflow:auto;border:1px solid #ffffff12;border-radius:6px;background-color:#252735;background-image:linear-gradient(#ffffff0a 1px,transparent 1px),linear-gradient(90deg,#ffffff0a 1px,transparent 1px);background-size:24px 24px}
.photo-object{position:absolute;display:flex;flex-direction:column;min-width:110px;min-height:120px;max-width:80vw;max-height:80vh;background:#202231;border:1px solid #777b9566;box-shadow:0 10px 25px #11131c77;overflow:hidden;resize:none}
.photo-grab{height:25px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 7px;background:#34374a;color:#b8b6c8;font:10px "DM Mono",monospace;cursor:grab;user-select:none}
.photo-grab button{border:0;background:transparent;color:#aaa4d0;font-size:16px;line-height:1}
.photo-object img{width:100%;height:calc(100% - 25px);min-height:0;object-fit:contain;pointer-events:none;background:#191b27}
.photo-resize{position:absolute;right:0;bottom:0;width:17px;height:17px;cursor:nwse-resize;background:linear-gradient(135deg,transparent 48%,#aaa4d0 50%,#aaa4d0 57%,transparent 59%,transparent 68%,#aaa4d0 70%,#aaa4d0 77%,transparent 79%)}
.graph-stage{min-height:640px;border-radius:6px;background-color:#080b18;background-image:radial-gradient(ellipse at center,#202a43 0%,#0d1326 58%,#070a15 100%);background-size:cover;box-shadow:inset 0 0 90px #050711}
.starfield{position:absolute;inset:0;opacity:.9;background-image:radial-gradient(1px 1px at 7% 18%,#fff 98%,transparent),radial-gradient(1.5px 1.5px at 19% 73%,#c9d9ff 98%,transparent),radial-gradient(1px 1px at 31% 31%,#fff 98%,transparent),radial-gradient(2px 2px at 47% 82%,#dce7ff 98%,transparent),radial-gradient(1px 1px at 62% 17%,#fff 98%,transparent),radial-gradient(1px 1px at 79% 56%,#c5d6ff 98%,transparent),radial-gradient(1.5px 1.5px at 91% 23%,#fff 98%,transparent),radial-gradient(1px 1px at 87% 88%,#fff 98%,transparent);background-size:230px 190px;animation:star-drift 80s linear infinite}
@keyframes star-drift{to{background-position:230px 190px}}
.universe-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:38px;color:#f6edff;text-shadow:0 0 12px #b5caff,0 0 40px #8c9eff,0 0 100px #7b7aff;animation:core-pulse 4s ease-in-out infinite}
@keyframes core-pulse{50%{filter:brightness(1.7);text-shadow:0 0 18px #fff,0 0 55px #a5c7ff,0 0 120px #777aff}}
.mini-planet{position:absolute;transform:translate(-50%,-50%);width:104px;height:104px;border:0;background:transparent;color:#e1e7ff;display:grid;place-items:center;z-index:2}
.planet-sphere{position:absolute;inset:13px;border-radius:50%;background:radial-gradient(circle at 32% 27%,#d6d8f7 0%,#8585b9 17%,#4c527e 45%,#171d3c 76%,#080d20 100%);box-shadow:inset -10px -8px 16px #050817,0 0 18px #9aaeff88,0 0 38px #839bff33;transition:transform .3s,box-shadow .3s}
.mini-planet:after{content:"";position:absolute;inset:8px;border:1px solid #b8c9ff55;border-radius:50%;transform:rotate(-24deg) scaleY(.32)}
.mini-planet:hover .planet-sphere{transform:scale(1.18);box-shadow:inset -10px -8px 16px #050817,0 0 25px #c5d5ffcc,0 0 65px #839bff77}
.planet-name,.mini-planet small{position:absolute;left:50%;transform:translateX(-50%);white-space:nowrap;text-shadow:0 1px 5px #000;z-index:2}
.planet-name{top:100%;font-size:11px}.mini-planet small{top:calc(100% + 16px);font-size:9px;color:#9ca9c9}
.planet-world{position:absolute;inset:0;animation:scope-in .8s cubic-bezier(.2,.8,.2,1) both}
@keyframes scope-in{from{transform:scale(.18);opacity:.2;filter:blur(8px)}to{transform:scale(1);opacity:1;filter:blur(0)}}
.planet-core{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);border-radius:50%;display:grid;place-items:center;text-align:center;color:#e8eaff;font-size:12px;text-shadow:0 1px 5px #000}
.large-planet{width:145px;height:145px;background:radial-gradient(circle at 31% 24%,#d9d9f2 0%,#9999c8 12%,#555d91 39%,#202b52 72%,#090f25 100%);box-shadow:inset -22px -15px 28px #050919,0 0 25px #b0c5ff99,0 0 75px #8fa9ff55,0 0 150px #778bff33}
.orbit-ring{position:absolute;left:50%;top:50%;border:1px solid #a8c2ff35;border-radius:50%;transform:translate(-50%,-50%) rotate(-23deg);pointer-events:none}
.ring-a{width:330px;height:160px}.ring-b{width:490px;height:250px;transform:translate(-50%,-50%) rotate(31deg)}.ring-c{width:620px;height:360px;transform:translate(-50%,-50%) rotate(-12deg)}
.orbit-star{position:absolute;left:var(--sx);top:var(--sy);width:7px;height:7px;border:0;border-radius:50%;padding:0;background:#fff;box-shadow:0 0 5px 2px #fff,0 0 13px 4px #a9c5ff,0 0 28px 8px #769bff99;cursor:pointer;animation:star-twinkle 2.4s ease-in-out infinite alternate}
.orbit-star:nth-of-type(odd){animation-delay:-1.2s;transform:scale(.7)}
.orbit-star:hover{transform:scale(1.7);box-shadow:0 0 8px 3px #fff,0 0 22px 8px #b5d1ff,0 0 44px 15px #769bffcc}
@keyframes star-twinkle{from{opacity:.55;filter:brightness(.8)}to{opacity:1;filter:brightness(1.8)}}
.graph-empty{position:absolute;left:50%;top:calc(50% + 110px);transform:translateX(-50%);color:#a9b5d3;font-size:12px;text-align:center;width:min(80%,360px)}
.sidebar .folder-list::-webkit-scrollbar{width:4px}.sidebar .folder-list::-webkit-scrollbar-thumb{background:#555970;border-radius:3px}
.settings-card{border-radius:6px}
.editor-dialog{border-radius:7px}
.detail-panel{border-radius:6px}
@media(max-width:850px){.sidebar{width:190px}.graph-stage{min-height:540px}}
@media(max-width:620px){.sidebar{width:165px}.graph-stage{min-height:460px}.large-planet{width:110px;height:110px}.ring-a{width:240px;height:120px}.ring-b{width:340px;height:170px}.ring-c{width:420px;height:240px}}
.note-card{resize:both;}
.graph-source-star{width:5px;height:5px;background:#d9c8ff;box-shadow:0 0 5px 2px #e2d3ff,0 0 18px 6px #b78dff99}
#note-folder-list{max-height:16vh;overflow:auto;min-height:0;flex:none}
.mini-planet{width:82px;height:82px}
.planet-sphere{inset:13px}


/* STARSPEC — refinement pass */
.sidebar{overflow:hidden;display:flex;flex-direction:column}
.folder-list{max-height:min(22vh,190px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#50546a transparent}
.folder-list::-webkit-scrollbar{width:3px}.folder-list::-webkit-scrollbar-thumb{background:#50546a;border-radius:8px}
.sidebar-top{gap:14px;padding-left:9px}.brand-mark{flex:none;box-shadow:0 0 18px #aaa4d022}.sidebar-top>div:last-child{min-width:0}.sidebar-top h2{letter-spacing:.3px}
.folder-open{padding:6px 7px;line-height:1.25}.folder-row{min-height:27px}.folder-open[data-colour]{background:color-mix(in srgb,var(--folder-colour) 14%,transparent);border-left:2px solid color-mix(in srgb,var(--folder-colour) 60%,transparent)}.folder-open:hover{background:color-mix(in srgb,var(--folder-colour,var(--accent)) 22%,var(--hover))}
.sidebar-footer{position:sticky;bottom:0;z-index:4}.topbar{position:sticky;top:0;z-index:25}.topbar-actions{display:flex;gap:7px;align-items:center}.topbar-actions .quiet-button,.topbar-actions .secondary-button{white-space:nowrap}
.page-heading{margin-bottom:18px}.masonry,.notes-grid{background-image:linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px);background-size:22px 22px;background-position:0 0;padding:0;border-radius:0}
.masonry{columns:5 185px;column-gap:10px}.item-card{margin-bottom:10px;border-radius:5px;position:relative}.item-card .card-image{max-height:145px;object-fit:cover}.card-copy{padding:9px 10px 8px}.card-title{font-size:12px;margin-bottom:5px}.card-caption{font-size:10.5px;line-height:1.45;margin-bottom:7px}.card-meta{padding:6px 9px}
.source-status-tools{display:flex;gap:4px;align-items:center}.source-status-tools button{width:12px;height:12px;border:1px solid #ffffff88;border-radius:50%;padding:0;opacity:.5}.source-status-tools button:hover,.source-status-tools button.active{opacity:1;transform:scale(1.15);box-shadow:0 0 0 2px #ffffff22}.source-status-tools [data-status="red"]{background:#d99aa4}.source-status-tools [data-status="yellow"]{background:#dfc58a}.source-status-tools [data-status="green"]{background:#a6c9a8}
.item-card.status-red{border-color:#d99aa488;background:linear-gradient(135deg,#563b45,var(--card) 75%)}.item-card.status-yellow{border-color:#dfc58a88;background:linear-gradient(135deg,#514832,var(--card) 75%)}.item-card.status-green{border-color:#a6c9a888;background:linear-gradient(135deg,#354c40,var(--card) 75%)}
.card-status-row{display:flex;align-items:center;gap:6px}.card-status-row>span:first-child{font-size:10px}
.note-card{resize:both;min-width:220px;min-height:150px;width:100%;max-width:none;overflow:auto;position:relative}.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));grid-auto-rows:minmax(150px,auto);gap:10px;align-items:stretch;overflow:visible}.note-card details{padding:12px;min-height:100%}.note-card h3{outline:none;cursor:text}.note-card .note-content{outline:none;cursor:text}.note-card h3:focus,.note-card .note-content:focus{background:#ffffff08;border-radius:3px}.note-tools{display:flex;gap:5px;align-items:center}.note-colour-button{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid #ffffff55;border-radius:50%;background:var(--note-colour);overflow:hidden}.note-colour-button input{width:32px;height:32px;padding:0;border:0;opacity:0;cursor:pointer}
.photo-board{min-height:720px;min-width:100%;overflow:auto;overscroll-behavior:contain;background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);background-size:22px 22px;border:0;border-radius:0}.photo-object{resize:both;min-width:120px;min-height:130px;overflow:hidden;touch-action:none}.photo-resize{width:24px;height:24px;z-index:4}.photo-object img{object-fit:contain;user-select:none}
.graph-controls{position:sticky;top:57px;z-index:20;background:color-mix(in srgb,var(--bg) 92%,transparent);backdrop-filter:blur(12px);padding:9px 0;margin:0 0 10px}.graph-stage{height:calc(100vh - 190px);min-height:560px;overflow:auto;cursor:grab;overscroll-behavior:contain;background-image:radial-gradient(ellipse at center,#26334a 0%,#111b2d 62%,#090f1c 100%);border:1px solid #9caed51c}.graph-stage.is-panning{cursor:grabbing;user-select:none}.graph-canvas{position:relative;width:1500px;height:1050px;min-width:100%;min-height:100%;overflow:hidden}.graph-stage .starfield{display:none!important}
.mini-planet{z-index:4}.planet-name{top:calc(100% + 3px);z-index:8;pointer-events:none;background:#111827c9;padding:3px 7px;border-radius:4px;font-size:11px}.mini-planet small{top:calc(100% + 23px);z-index:8;background:#111827b8;padding:2px 5px;border-radius:4px}.planet-sphere{background:radial-gradient(circle at 30% 24%,var(--planet-colour,#d6d8f7) 0%,color-mix(in srgb,var(--planet-colour,#9298c9) 75%,#26334e) 27%,#303e63 60%,#111a31 100%)}.graph-top-actions{display:flex;gap:7px;align-items:center}
.note-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-bottom:14px}.note-folder-chips{display:flex;flex-wrap:wrap;gap:6px}.note-folder-chip{border:1px solid color-mix(in srgb,var(--folder-colour,var(--line)) 50%,var(--line));background:color-mix(in srgb,var(--folder-colour,var(--panel)) 15%,var(--panel));color:var(--text);padding:7px 10px;border-radius:5px;font-size:11px}.note-folder-chip.active{border-color:var(--folder-colour,var(--accent));background:color-mix(in srgb,var(--folder-colour,var(--accent)) 28%,var(--panel))}.note-folder-chip span{opacity:.65;margin-left:5px}
.source-count-strip{display:flex;gap:15px;flex-wrap:wrap;color:var(--muted);font:10px "DM Mono",monospace;margin:4px 0 12px}.source-count-strip span{padding:5px 8px;background:#ffffff06;border-radius:4px}.portfolio-board{margin-top:22px}.portfolio-board .section-row{margin-top:16px}
@media(max-width:1150px){.masonry{columns:4 175px}}@media(max-width:850px){.masonry{columns:3 160px}}@media(max-width:620px){.masonry{columns:2 135px}.graph-controls{top:48px}}

/* Final interaction refinements */
.masonry,.notes-grid{background:transparent!important;padding:0!important;border:0!important;border-radius:0!important}
.item-card{resize:both;overflow:auto;min-width:155px;min-height:120px;max-width:100%}
.source-status-tools{opacity:.48;transition:opacity .15s}.item-card:hover .source-status-tools,.source-status-tools:focus-within{opacity:1}
.planet-colour-picker{position:absolute;z-index:8;width:17px;height:17px;padding:0;border:1px solid #ffffff88;border-radius:50%;transform:translate(-50%,-50%);background:var(--planet-colour);opacity:.7;cursor:pointer}
.planet-colour-picker:hover{opacity:1;transform:translate(-50%,-50%) scale(1.2)}
.graph-stage::-webkit-scrollbar{width:5px;height:5px}.graph-stage::-webkit-scrollbar-thumb{background:#52617b66;border-radius:5px}

.note-card,.photo-object{position:relative}
.note-resize-h,.photo-resize-h{position:absolute;right:0;top:24px;bottom:20px;width:6px;cursor:ew-resize;z-index:5}
.note-resize-v,.photo-resize-v{position:absolute;left:10px;right:20px;bottom:0;height:6px;cursor:ns-resize;z-index:5}
.note-resize-corner,.photo-resize-corner{position:absolute;right:0;bottom:0;width:17px;height:17px;cursor:nwse-resize;z-index:6;background:linear-gradient(135deg,transparent 45%,#aaa4d0 48%,#aaa4d0 55%,transparent 58%,transparent 68%,#aaa4d0 70%,#aaa4d0 77%,transparent 80%)}
.folder-color-dot{width:13px;height:13px;flex:none;border:1px solid #ffffff77;border-radius:50%;background:var(--folder-colour);overflow:hidden;opacity:.5}
.folder-row:hover .folder-color-dot{opacity:1}.folder-color-dot input{width:24px;height:24px;padding:0;margin:-5px;border:0;opacity:0;cursor:pointer}
.note-card{resize:none}.photo-object{resize:none}

.note-card-main{padding:12px 12px 6px}.note-card-main h3{margin:0 0 12px;font-size:13px}.note-card-main .note-content{margin:0 0 8px}

.note-card,.photo-object{position:relative}
.note-resize-h,.photo-resize-h{position:absolute;right:0;top:24px;bottom:20px;width:6px;cursor:ew-resize;z-index:5}
.note-resize-v,.photo-resize-v{position:absolute;left:10px;right:20px;bottom:0;height:6px;cursor:ns-resize;z-index:5}
.note-resize-corner,.photo-resize-corner{position:absolute;right:0;bottom:0;width:17px;height:17px;cursor:nwse-resize;z-index:6;background:linear-gradient(135deg,transparent 45%,#aaa4d0 48%,#aaa4d0 55%,transparent 58%,transparent 68%,#aaa4d0 70%,#aaa4d0 77%,transparent 80%)}
.folder-color-dot{width:13px;height:13px;flex:none;border:1px solid #ffffff77;border-radius:50%;background:var(--folder-colour);overflow:hidden;opacity:.5}
.folder-row:hover .folder-color-dot{opacity:1}.folder-color-dot input{width:24px;height:24px;padding:0;margin:-5px;border:0;opacity:0;cursor:pointer}
.note-card{resize:none}.photo-object{resize:none}


/* === STARSPEC ADDITIVE REFINEMENTS === */
:root{--bg:#252735;--panel:#303344;--panel-2:#292c3d;--card:#303344;--text:#d0cedd;--muted:#85869b;--accent:#aaa4d0;--accent-2:#77719f;--line:#424559;--hover:#3b3e50;--shadow:0 18px 55px #11131c66}
:root[data-theme="light"]{--bg:#ececf1;--panel:#f7f7fa;--panel-2:#e5e5ed;--card:#fafafd;--text:#343545;--muted:#77788b;--accent:#77749f;--accent-2:#918bbd;--line:#d1d1df;--hover:#e4e3ef;--shadow:0 18px 55px #34344a20}
:root[data-theme="pink"]{--bg:#2d202b;--panel:#3b2938;--panel-2:#332431;--card:#3b2938;--text:#ead8e4;--muted:#b18da7;--accent:#e0a8c9;--accent-2:#bd78a5;--line:#60465a;--hover:#4b3347;--shadow:0 18px 55px #130b14aa}
:root[data-theme="light"] body{background-image:linear-gradient(#5555770a 1px,transparent 1px),linear-gradient(90deg,#5555770a 1px,transparent 1px)}
:root[data-theme="pink"] body{background-image:linear-gradient(#f6c8e008 1px,transparent 1px),linear-gradient(90deg,#f6c8e008 1px,transparent 1px)}
#theme-switch{font-size:19px}
.notes-grid.notes-freeboard{display:block!important;position:relative;min-height:620px;overflow:visible;isolation:isolate}
.notes-freeboard .note-card{position:absolute!important;margin:0;max-width:none;min-width:220px;min-height:150px;width:300px;height:220px;overflow:auto;resize:none;touch-action:pan-y}
.notes-freeboard .note-card-main{padding:12px}
.notes-freeboard .note-card .note-content{white-space:normal;overflow-wrap:anywhere}
.resize-handle{position:absolute;z-index:12;display:block;touch-action:none}
.resize-handle.dir-n{left:10px;right:10px;top:-3px;height:7px;cursor:ns-resize}.resize-handle.dir-s{left:10px;right:10px;bottom:-3px;height:7px;cursor:ns-resize}
.resize-handle.dir-e{right:-3px;top:10px;bottom:10px;width:7px;cursor:ew-resize}.resize-handle.dir-w{left:-3px;top:10px;bottom:10px;width:7px;cursor:ew-resize}
.resize-handle.dir-ne,.resize-handle.dir-nw,.resize-handle.dir-se,.resize-handle.dir-sw{width:14px;height:14px}
.resize-handle.dir-ne{right:-2px;top:-2px;cursor:nesw-resize}.resize-handle.dir-nw{left:-2px;top:-2px;cursor:nwse-resize}
.resize-handle.dir-se{right:-2px;bottom:-2px;cursor:nwse-resize}.resize-handle.dir-sw{left:-2px;bottom:-2px;cursor:nesw-resize}
.note-card>.resize-handle,.item-card>.resize-handle{opacity:0}.note-card:hover>.resize-handle,.item-card:hover>.resize-handle{opacity:.85}
.note-card>.resize-handle.dir-se:after,.item-card>.resize-handle.dir-se:after{content:"";position:absolute;inset:3px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent)}
.rich-toolbar{display:flex;gap:3px;margin:0 0 8px;opacity:.72}.rich-toolbar button{min-width:25px;height:23px;padding:2px 6px;border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:3px;font-size:10px}.rich-toolbar button:hover{border-color:var(--accent);color:var(--accent)}
.rich-content{min-height:65px;white-space:normal!important}.rich-content p{margin:0 0 7px}.rich-content ul,.rich-content ol{padding-left:20px}.rich-content a{color:var(--accent);text-decoration:underline}
.backlinks{border-top:1px solid var(--line);padding-top:7px;margin-top:9px;display:flex;gap:7px;flex-wrap:wrap}.backlinks small{width:100%;font:9px "DM Mono",monospace;color:var(--muted);letter-spacing:1px}
.item-card{position:relative;resize:none;max-width:100%;overflow:hidden}.item-card>.resize-handle{z-index:8}
.item-card>.resize-handle.dir-e,.item-card>.resize-handle.dir-w{top:12px;bottom:12px}.item-card>.resize-handle.dir-n,.item-card>.resize-handle.dir-s{left:12px;right:12px}
.item-card>.resize-handle.dir-ne,.item-card>.resize-handle.dir-nw,.item-card>.resize-handle.dir-se,.item-card>.resize-handle.dir-sw{width:13px;height:13px}
.photo-board.freeform-photo-board{position:relative;min-height:720px;overflow:auto;overscroll-behavior:contain}
.photo-object{position:absolute;resize:none;min-width:120px;min-height:130px;overflow:hidden;touch-action:none}
.photo-object img{display:block;width:100%;height:calc(100% - 25px);object-fit:contain;pointer-events:none;background:transparent}
.photo-grab{cursor:grab}.photo-grab>div{display:flex;gap:4px}.photo-grab button{min-width:20px;padding:0 3px}
.photo-object.borderless{border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important}
.photo-object.borderless .photo-grab{background:transparent;color:var(--text);text-shadow:0 1px 4px #000}
.photo-object.borderless img{border:0!important;outline:0!important;box-shadow:none!important}
.photo-resize{position:absolute;z-index:9;display:block}
.photo-resize.dir-n{left:10px;right:10px;top:0;height:6px;cursor:ns-resize}.photo-resize.dir-s{left:10px;right:10px;bottom:0;height:6px;cursor:ns-resize}
.photo-resize.dir-e{right:0;top:10px;bottom:10px;width:6px;cursor:ew-resize}.photo-resize.dir-w{left:0;top:10px;bottom:10px;width:6px;cursor:ew-resize}
.photo-resize.dir-ne,.photo-resize.dir-nw,.photo-resize.dir-se,.photo-resize.dir-sw{width:15px;height:15px}
.photo-resize.dir-ne{right:0;top:0;cursor:nesw-resize}.photo-resize.dir-nw{left:0;top:0;cursor:nwse-resize}.photo-resize.dir-se{right:0;bottom:0;cursor:nwse-resize}.photo-resize.dir-sw{left:0;bottom:0;cursor:nesw-resize}
.graph-stage-free{overflow:hidden!important;cursor:grab;touch-action:none}.graph-stage-free.is-panning{cursor:grabbing}
.graph-canvas-free{width:1500px;height:1050px;min-width:1500px;min-height:1050px;transform-origin:0 0;overflow:visible}
.graph-canvas-free .universe-core{left:750px;top:520px}.graph-canvas-free .planet-group{position:absolute;inset:0;pointer-events:none}
.graph-canvas-free .mini-planet,.graph-canvas-free .planet-colour-picker,.graph-canvas-free .universe-note-star{pointer-events:auto}
.graph-canvas-free .mini-planet{transform:translate(-50%,-50%);touch-action:none}.graph-canvas-free .planet-name{top:calc(100% + 3px)}.graph-canvas-free .mini-planet small{top:calc(100% + 23px)}
.graph-canvas-free .planet-colour-picker{position:absolute;z-index:8;width:17px;height:17px;padding:0;border:1px solid #ffffffaa;border-radius:50%;transform:translate(-50%,-50%);background:var(--planet-colour);cursor:pointer}
.universe-note-star{position:absolute;z-index:3;border:0;background:transparent;color:#e7eaff;text-shadow:0 0 5px #fff,0 0 14px #a9c5ff;font-size:12px;padding:2px;cursor:pointer;transform:translate(-50%,-50%)}
.universe-note-star:hover{transform:translate(-50%,-50%) scale(1.6)}
.constellation-lines{position:absolute;inset:0;width:1500px;height:1050px;pointer-events:none;overflow:visible}.constellation-lines line{stroke:#f4f3ff;stroke-width:1;stroke-opacity:.34;filter:drop-shadow(0 0 3px #c9d5ff)}
.graph-stage-free .planet-world{width:1500px;height:1050px}
.workspace{position:relative;min-width:0}.topbar{background:var(--bg)!important;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);z-index:35!important;isolation:isolate}
.detail-panel{z-index:45!important;top:68px!important;bottom:10px!important;background:var(--panel);box-shadow:0 18px 60px #08091299}.detail-panel[hidden]{display:none!important}.source-annotations{margin-top:18px}.detail-panel .detail-notes{min-height:130px}
.activity-section{margin-top:30px}.activity-list{display:grid;gap:0;border-top:1px solid var(--line)}
.activity-row{display:flex;align-items:center;gap:10px;padding:10px 2px;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);font-size:12px;color:var(--text)}
.activity-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none;box-shadow:0 0 8px var(--accent)}
.activity-row time{margin-left:auto;color:var(--muted);font:10px "DM Mono",monospace;white-space:nowrap}
.command-palette{position:fixed;inset:0;z-index:100;display:grid;place-items:start center;padding:14vh 18px 20px}
.command-backdrop{position:absolute;inset:0;background:#080912bb;backdrop-filter:blur(5px)}
.command-window{position:relative;width:min(560px,100%);max-height:65vh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow);padding:10px}
.command-window input{width:100%;margin-bottom:8px}#command-results{display:grid;gap:3px}
.command-result{display:flex;align-items:center;justify-content:space-between;text-align:left;width:100%;border:0;border-radius:5px;background:transparent;color:var(--text);padding:10px 11px;font-size:12px}
.command-result:hover,.command-result.selected{background:var(--hover);color:var(--accent)}.command-result kbd{font:10px "DM Mono",monospace;color:var(--muted)}
.command-hint,.command-empty{margin:9px 3px 2px;color:var(--muted);font-size:10px}
@media(max-width:620px){.notes-freeboard .note-card{max-width:calc(100vw - 90px)}.detail-panel{top:56px!important}}

/* Final interaction corrections */
.item-card{max-width:none}
.item-card[style*="height"] .card-image{height:42%;max-height:none;object-fit:cover}
.folder-open[data-colour]{background:color-mix(in srgb,var(--folder-colour) 27%,transparent);border-left:3px solid color-mix(in srgb,var(--folder-colour) 85%,transparent)}
.folder-open:hover{background:color-mix(in srgb,var(--folder-colour,var(--accent)) 38%,var(--hover))}
.note-card .note-category{cursor:grab;user-select:none}
.note-card .note-category:active{cursor:grabbing}

.app-shell:has(.graph-stage-free) .sidebar{opacity:.72;filter:saturate(.78);transition:opacity .2s,filter .2s}
.app-shell:has(.graph-stage-free) .sidebar:hover{opacity:1;filter:none}

/* STARSPEC REFINEMENT — slate/steel visual language and interaction affordances */
:root{
  --bg:#202a36;--panel:#293746;--panel-2:#23313f;--card:#2b3b4b;
  --text:#d9e1e8;--muted:#9baab8;--accent:#b8cbd8;--accent-2:#819caf;
  --line:#435666;--hover:#35495a;--green:#91b99b;--yellow:#e1bd70;--red:#d78d91;
  --shadow:0 18px 55px #0b141dcc;
}
:root[data-theme="original"]{--bg:#202a36;--panel:#293746;--panel-2:#23313f;--card:#2b3b4b;--text:#d9e1e8;--muted:#9baab8;--accent:#b8cbd8;--accent-2:#819caf;--line:#435666;--hover:#35495a}
:root[data-theme="light"]{--bg:#dfe6e9;--panel:#edf1f2;--panel-2:#e2e9eb;--card:#f0f3f4;--text:#26343d;--muted:#667985;--accent:#526f81;--accent-2:#7893a2;--line:#c1cdd2;--hover:#dce5e8;--shadow:0 18px 55px #293b4820}
:root[data-theme="pink"]{--bg:#302c35;--panel:#3d3742;--panel-2:#352f3a;--card:#403945;--text:#e6dfe5;--muted:#b3a5b2;--accent:#d4b9c9;--accent-2:#b28fa5;--line:#5b505f;--hover:#4a414f;--shadow:0 18px 55px #140f18aa}
:root[data-theme="light"] .primary-button{color:#f7fafb}
body{background-image:radial-gradient(ellipse at 55% 0%,#607b8a16,transparent 55%),linear-gradient(#b8d0dc06 1px,transparent 1px),linear-gradient(90deg,#b8d0dc06 1px,transparent 1px);background-size:auto,24px 24px,24px 24px}
.sidebar{overflow:hidden!important;display:flex;flex-direction:column;height:calc(100vh - 20px)}
.sidebar .main-nav,.sidebar .sidebar-top,.sidebar .sidebar-search-wrap,.sidebar .sidebar-divider,.sidebar .sidebar-section-heading,.sidebar .sidebar-footer{flex:none}
.sidebar #folder-list,.sidebar .folder-list{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;padding-bottom:8px}
.sidebar-footer{margin-top:0!important;position:relative;bottom:auto;flex:none;background:var(--panel);padding-top:8px}
.folder-open{color:var(--text);border-left:2px solid color-mix(in srgb,var(--folder-colour,#819caf) 80%,transparent);border-radius:3px 7px 7px 3px;padding:7px 8px}
.folder-open:hover,.folder-open.active{background:color-mix(in srgb,var(--folder-colour,#819caf) 17%,var(--panel));color:var(--text)}
.folder-color-dot{width:9px;height:9px;border-radius:50%;background:var(--folder-colour);overflow:hidden;flex:none}
.folder-color-dot input{width:20px;height:20px;opacity:0;cursor:pointer;padding:0;transform:translate(-5px,-5px)}
.folder-row:nth-child(5n+1) .folder-open{--folder-colour:#d49a70}.folder-row:nth-child(5n+2) .folder-open{--folder-colour:#88a9c1}.folder-row:nth-child(5n+3) .folder-open{--folder-colour:#9bb58a}.folder-row:nth-child(5n+4) .folder-open{--folder-colour:#c58d91}.folder-row:nth-child(5n) .folder-open{--folder-colour:#c3ad70}
.item-card.status-red{background:linear-gradient(135deg,#67434a,var(--card) 72%);border-color:#d78d9180}
.item-card.status-yellow{background:linear-gradient(135deg,#62543a,var(--card) 72%);border-color:#e1bd7080}
.item-card.status-green{background:linear-gradient(135deg,#3d5c4a,var(--card) 72%);border-color:#91b99b80}
.card-label{background:#435767;color:#dce7ed}
.source-resize-board{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));gap:12px;columns:unset!important;align-items:stretch}
.source-resize-board>.item-card{display:flex;flex-direction:column;grid-column:span 4;width:auto!important;max-width:none!important;min-width:0;min-height:140px;margin:0;position:relative;overflow:visible;break-inside:unset}
.source-resize-board>.item-card[hidden]{display:none!important}
.source-resize-board .card-copy{flex:1;min-width:0;overflow:auto}
.source-resize-board .card-image{max-height:180px;flex:none}
.source-resize-board .card-meta{margin-top:auto;flex:none}
.source-resize-board .resize-handle{opacity:0;z-index:30}
.source-resize-board>.item-card:hover>.resize-handle,.source-resize-board>.item-card:focus-within>.resize-handle{opacity:1}
.source-resize-board>.item-card>.resize-handle.dir-n,.source-resize-board>.item-card>.resize-handle.dir-s{height:12px;left:14px;right:14px}
.source-resize-board>.item-card>.resize-handle.dir-e,.source-resize-board>.item-card>.resize-handle.dir-w{width:12px;top:14px;bottom:14px}
.source-resize-board>.item-card>.resize-handle.dir-ne,.source-resize-board>.item-card>.resize-handle.dir-nw,.source-resize-board>.item-card>.resize-handle.dir-se,.source-resize-board>.item-card>.resize-handle.dir-sw{width:20px;height:20px}
.source-status-tools button{width:11px;height:11px;border-radius:50%;border:1px solid #ffffff66;margin-left:5px}
.source-status-tools button[data-status="red"]{background:#d78d91}.source-status-tools button[data-status="yellow"]{background:#e1bd70}.source-status-tools button[data-status="green"]{background:#91b99b}
.photo-board{overflow:auto!important;min-height:760px;position:relative;touch-action:pan-x pan-y}
.photo-object{touch-action:none;overflow:visible!important;min-width:110px;min-height:110px}
.photo-object>img{width:100%;height:calc(100% - 30px);object-fit:contain;pointer-events:none}
.photo-resize{z-index:35;width:12px!important;height:12px!important;background:none!important;opacity:0;touch-action:none}
.photo-object:hover .photo-resize{opacity:1}
.photo-resize.dir-n,.photo-resize.dir-s{left:14px;right:14px;width:auto!important;height:12px!important}
.photo-resize.dir-e,.photo-resize.dir-w{top:14px;bottom:14px;height:auto!important;width:12px!important}
.photo-resize.dir-ne,.photo-resize.dir-nw,.photo-resize.dir-se,.photo-resize.dir-sw{width:20px!important;height:20px!important}
.photo-resize.dir-se:after,.photo-resize.dir-sw:after,.photo-resize.dir-ne:after,.photo-resize.dir-nw:after{content:"";position:absolute;inset:5px;border:1px solid var(--accent);border-radius:2px}
.notes-freeboard .note-card{min-width:260px;min-height:210px;overflow:visible!important;display:flex;flex-direction:column}
.notes-freeboard .note-card-main{display:flex;flex:1;min-height:0;flex-direction:column;padding:16px}
.notes-freeboard .note-content.rich-content{font-size:14px;line-height:1.8;min-height:190px;flex:1;padding:10px 12px;margin:12px 0;background:color-mix(in srgb,var(--panel-2) 68%,transparent);border:1px solid var(--line);border-radius:7px;outline:none;overflow:auto;white-space:pre-wrap}
.notes-freeboard .note-content.rich-content:focus{border-color:var(--accent-2);background:color-mix(in srgb,var(--panel-2) 88%,transparent)}
.notes-freeboard .note-content.rich-content p{margin:0 0 10px}
.notes-freeboard .note-card h3{font-size:17px;padding:4px 0;cursor:text}
.notes-freeboard .note-card .card-meta{margin:0 14px;flex:none}
.notes-freeboard .note-card.is-editing .note-colour-button{display:none}
.notes-freeboard .note-card:not(.is-editing) .note-colour-button{display:inline-flex}
.notes-freeboard .resize-handle{opacity:0;background:color-mix(in srgb,var(--accent) 12%,transparent);border-radius:4px;z-index:40;touch-action:none}
.notes-freeboard .note-card:hover>.resize-handle{opacity:.45}
.notes-freeboard .resize-handle:hover{opacity:1!important;background:color-mix(in srgb,var(--accent) 40%,transparent)}
.notes-freeboard .resize-handle.dir-n,.notes-freeboard .resize-handle.dir-s{height:14px;left:14px;right:14px}
.notes-freeboard .resize-handle.dir-e,.notes-freeboard .resize-handle.dir-w{width:14px;top:14px;bottom:14px}
.notes-freeboard .resize-handle.dir-ne,.notes-freeboard .resize-handle.dir-nw,.notes-freeboard .resize-handle.dir-se,.notes-freeboard .resize-handle.dir-sw{width:22px;height:22px}
.rich-toolbar{position:sticky;top:0;z-index:5;background:var(--panel);padding:5px;border:1px solid var(--line);border-radius:6px;display:flex;gap:4px;flex-wrap:wrap}
.rich-toolbar button{min-width:30px;min-height:28px;border:1px solid transparent;background:transparent;border-radius:4px;color:var(--muted)}
.rich-toolbar button:hover{background:var(--hover);border-color:var(--line);color:var(--text)}
.graph-stage-free{overflow:hidden!important;touch-action:none}
.graph-canvas-free{transform-origin:0 0;overflow:visible!important}
.universe-note-star,.orbit-star{position:absolute;z-index:8;display:grid;place-items:center;min-width:30px;min-height:30px;border:0;border-radius:50%;background:transparent;color:#dbe8f0;font-size:11px;cursor:pointer;filter:drop-shadow(0 0 4px #b9d9ed88)}
.universe-note-star:before,.orbit-star:before{content:"";position:absolute;width:34px;height:34px;border-radius:50%;background:transparent}
.universe-note-star:hover,.orbit-star:hover{color:#fff;transform:scale(1.55);background:#a9c9dc22;box-shadow:0 0 0 1px #d7e8f077,0 0 18px #b9d9ed99;z-index:20}
.constellation-lines{pointer-events:none;overflow:visible}.constellation-lines line,.constellation-lines path{stroke:#c7dbea70;stroke-width:1.5;fill:none;vector-effect:non-scaling-stroke}
.planet-core,.mini-planet{filter:drop-shadow(0 12px 24px #080f18aa)}
.graph-stage-free .planet-world{overflow:visible}
body.is-resizing,body.is-resizing *{cursor:grabbing!important;user-select:none!important}
@media(max-width:950px){.source-resize-board>.item-card{grid-column:span 6!important}}
@media(max-width:620px){.source-resize-board>.item-card{grid-column:span 12!important}.sidebar{height:calc(100vh - 12px)}}

/* STARSPEC V3 — spatial interaction, visual hierarchy and theme refinements */
.source-freeboard{display:block!important;position:relative!important;min-height:520px;overflow:visible!important;columns:unset!important;}
.source-freeboard>.item-card{position:absolute!important;margin:0!important;min-width:170px;max-width:none!important;display:flex;flex-direction:column;cursor:grab;touch-action:none;}
.source-freeboard>.item-card.is-moving,.notes-freeboard .note-card.is-moving{cursor:grabbing;z-index:60!important;box-shadow:0 18px 48px #050b13a8;}
.source-freeboard>.item-card .card-copy{min-height:0;overflow:auto;flex:1 1 auto;}
.source-freeboard>.item-card .resize-handle{position:absolute;display:block;opacity:0;z-index:80;touch-action:none;background:color-mix(in srgb,var(--accent-2) 18%,transparent);}
.source-freeboard>.item-card:hover>.resize-handle{opacity:.55;}
.source-freeboard>.item-card>.resize-handle:hover{opacity:1;background:color-mix(in srgb,var(--accent-2) 48%,transparent);}
.source-freeboard .resize-handle.dir-n,.source-freeboard .resize-handle.dir-s{height:12px;left:15px;right:15px;cursor:ns-resize;}
.source-freeboard .resize-handle.dir-e,.source-freeboard .resize-handle.dir-w{width:12px;top:15px;bottom:15px;cursor:ew-resize;}
.source-freeboard .resize-handle.dir-ne,.source-freeboard .resize-handle.dir-nw,.source-freeboard .resize-handle.dir-se,.source-freeboard .resize-handle.dir-sw{width:20px;height:20px;}
.source-freeboard .dir-n{top:-5px}.source-freeboard .dir-s{bottom:-5px}.source-freeboard .dir-e{right:-5px}.source-freeboard .dir-w{left:-5px}
.source-freeboard .dir-ne{right:-5px;top:-5px;cursor:nesw-resize}.source-freeboard .dir-nw{left:-5px;top:-5px;cursor:nwse-resize}.source-freeboard .dir-se{right:-5px;bottom:-5px;cursor:nwse-resize}.source-freeboard .dir-sw{left:-5px;bottom:-5px;cursor:nesw-resize}
.notes-freeboard .note-card .note-category,.notes-freeboard .note-card h3{cursor:grab;user-select:none;}
.notes-freeboard .note-card .note-category:active,.notes-freeboard .note-card h3:active{cursor:grabbing;}
.photo-board.freeform-photo-board{overscroll-behavior:auto!important;scrollbar-gutter:stable;}
.photo-board.freeform-photo-board:focus{outline:none;}
.photo-object.is-moving{z-index:70;cursor:grabbing;}
.projects-collapse-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;}
.projects-collapse-heading>button{flex:none;}
#folder-list{max-height:none!important;min-height:0;flex:1 1 auto!important;overflow-y:auto!important;}
.sidebar-footer{margin-top:auto!important;flex:none!important;position:relative!important;bottom:auto!important;}
.graph-stage-free{background:radial-gradient(ellipse at 50% 46%,#14283a 0%,#091522 42%,#030810 78%,#01040a 100%)!important;box-shadow:inset 0 0 140px #000b18,inset 0 0 35px #5e8ba41a;border-color:#9ebbd01c!important;}
.app-shell:has(.graph-stage-free) .workspace{background:#090f18!important;}
.app-shell:has(.graph-stage-free) .topbar{background:#080e17f2!important;border-color:#223342!important;}
.app-shell:has(.graph-stage-free) .sidebar{background:#0b1420!important;border-color:#172635!important;opacity:.56!important;filter:saturate(.55) brightness(.72)!important;}
.app-shell:has(.graph-stage-free) .sidebar:hover{opacity:.9!important;filter:saturate(.8) brightness(.9)!important;}
.universe-note-star,.orbit-star{min-width:22px!important;min-height:22px!important;font-size:10px!important;}
.universe-note-star:before,.orbit-star:before{width:24px!important;height:24px!important;}
.universe-note-star:hover,.orbit-star:hover{transform:scale(1.12)!important;}
.constellation-lines{z-index:1!important;pointer-events:none!important;overflow:visible!important;}
.planet-group,.planet-world,.mini-planet,.universe-note-star,.orbit-star{position:absolute;}
.planet-group{z-index:3;}
.mini-planet{cursor:pointer!important;pointer-events:auto!important;}
.v3-lock-cover{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 35%,#263c50,#07101a 70%);backdrop-filter:blur(22px);}
.v3-lock-card{width:min(390px,calc(100% - 36px));padding:38px;background:#172635;border:1px solid #526b7d;border-radius:12px;box-shadow:0 28px 90px #000b;color:#e4edf3;text-align:center;}
.v3-lock-symbol{font-size:36px;color:#a9c5d6;margin-bottom:20px;}.v3-lock-card h2{font-size:24px;font-weight:500;margin:8px 0;}.v3-lock-card p:not(.eyebrow){color:#aabac6;font-size:13px;line-height:1.6;margin-bottom:22px;}
:root[data-theme="ocean"]{--bg:#101d29;--panel:#1b2d3c;--panel-2:#142534;--card:#203647;--text:#e0eaf0;--muted:#9aafbd;--accent:#a9c8d8;--accent-2:#6f9bb4;--line:#385466;--hover:#29475a;--shadow:0 18px 55px #020a12a0;}
:root[data-theme="paper"]{--bg:#e8e3d8;--panel:#f7f3e9;--panel-2:#ded8ca;--card:#fffdf6;--text:#28333b;--muted:#68737a;--accent:#3d6477;--accent-2:#9a6e4e;--line:#c3bdae;--hover:#e4e8e4;--shadow:0 18px 55px #504b3c26;}
:root[data-theme="rosewood"]{--bg:#241b20;--panel:#35262d;--panel-2:#2b2027;--card:#3c2c34;--text:#f0e4e8;--muted:#c0aab2;--accent:#e0a6b5;--accent-2:#a66b80;--line:#654451;--hover:#49313c;--shadow:0 18px 55px #080306aa;}
:root[data-theme="forest"]{--bg:#17231f;--panel:#23342d;--panel-2:#1c2b25;--card:#2a4035;--text:#e1ede4;--muted:#a6b9aa;--accent:#b6d1a5;--accent-2:#779e79;--line:#405e4d;--hover:#314b3d;--shadow:0 18px 55px #030b07aa;}
:root[data-theme="midnight"]{--bg:#10131c;--panel:#1c2230;--panel-2:#171c28;--card:#242c3d;--text:#e4e8f2;--muted:#a0aabd;--accent:#b8c8e8;--accent-2:#7187b5;--line:#3b4963;--hover:#2b3850;--shadow:0 18px 55px #02040baa;}
.v3-relationship-map{position:absolute;inset:0;width:1500px;height:1050px;z-index:1;overflow:visible;pointer-events:none;}
.v3-relationship-map path{fill:none;stroke:#b8d6e7a8;stroke-width:1.25;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 4px #85b9d544);}


/* Starspec spatial repair — responsive editors, corner-only resize, theme-aware boards */
.notes-freeboard .note-card{
  overflow:hidden!important;display:flex!important;flex-direction:column!important;
  min-width:260px;min-height:210px;box-sizing:border-box;
}
.notes-freeboard .note-card-main{
  flex:1 1 auto!important;min-width:0;min-height:0!important;
  display:flex!important;flex-direction:column!important;overflow:hidden!important;
}
.notes-freeboard .note-card-main>div:first-child{flex:none;min-width:0}
.notes-freeboard .note-content.rich-content{
  box-sizing:border-box!important;width:100%!important;max-width:100%!important;
  min-width:0!important;min-height:0!important;height:auto!important;flex:1 1 auto!important;
  overflow:auto!important;overflow-wrap:anywhere;white-space:normal!important;
  margin:10px 0!important;padding:10px 12px!important;
}
.notes-freeboard .note-content.rich-content *{max-width:100%;overflow-wrap:anywhere}
.notes-freeboard .note-card .card-meta{flex:none}
.notes-freeboard .resize-handle.dir-n,.notes-freeboard .resize-handle.dir-s,
.notes-freeboard .resize-handle.dir-e,.notes-freeboard .resize-handle.dir-w,
.source-freeboard .resize-handle.dir-n,.source-freeboard .resize-handle.dir-s,
.source-freeboard .resize-handle.dir-e,.source-freeboard .resize-handle.dir-w{display:none!important}
.notes-freeboard .resize-handle.dir-nw,.notes-freeboard .resize-handle.dir-ne,
.notes-freeboard .resize-handle.dir-sw,.notes-freeboard .resize-handle.dir-se,
.source-freeboard .resize-handle.dir-nw,.source-freeboard .resize-handle.dir-ne,
.source-freeboard .resize-handle.dir-sw,.source-freeboard .resize-handle.dir-se{
  width:20px;height:20px;opacity:.65;background:transparent!important;
}
.notes-freeboard .resize-handle.dir-nw,.source-freeboard .resize-handle.dir-nw{left:0;top:0;cursor:nwse-resize}
.notes-freeboard .resize-handle.dir-ne,.source-freeboard .resize-handle.dir-ne{right:0;top:0;cursor:nesw-resize}
.notes-freeboard .resize-handle.dir-sw,.source-freeboard .resize-handle.dir-sw{left:0;bottom:0;cursor:nesw-resize}
.notes-freeboard .resize-handle.dir-se,.source-freeboard .resize-handle.dir-se{right:0;bottom:0;cursor:nwse-resize}
.source-freeboard>.item-card{overflow:hidden!important;box-sizing:border-box}
.source-freeboard>.item-card .card-copy{min-width:0;min-height:0;overflow:auto}
.source-freeboard>.item-card .resize-handle{z-index:90}
.source-freeboard>.item-card .resize-handle:after,
.notes-freeboard .note-card .resize-handle:after{
  content:"";position:absolute;inset:5px;border:0;border-color:var(--accent-2);
}
.source-freeboard>.item-card .resize-handle.dir-nw:after,
.notes-freeboard .note-card .resize-handle.dir-nw:after{border-left:2px solid var(--accent-2);border-top:2px solid var(--accent-2)}
.source-freeboard>.item-card .resize-handle.dir-ne:after,
.notes-freeboard .note-card .resize-handle.dir-ne:after{border-right:2px solid var(--accent-2);border-top:2px solid var(--accent-2)}
.source-freeboard>.item-card .resize-handle.dir-sw:after,
.notes-freeboard .note-card .resize-handle.dir-sw:after{border-left:2px solid var(--accent-2);border-bottom:2px solid var(--accent-2)}
.source-freeboard>.item-card .resize-handle.dir-se:after,
.notes-freeboard .note-card .resize-handle.dir-se:after{border-right:2px solid var(--accent-2);border-bottom:2px solid var(--accent-2)}
.photo-object .photo-resize.dir-ne{top:29px!important;right:0!important}
.photo-object .photo-grab{padding-right:25px;position:relative;z-index:2}
.photo-object .photo-resize{z-index:12}
.graph-stage-free{cursor:grab;touch-action:none;user-select:none}
.graph-stage-free.is-panning{cursor:grabbing}
.graph-canvas-free{will-change:transform;backface-visibility:hidden}
.planet-colour-picker{z-index:15!important;transform:translate(-50%,-50%)!important;width:19px!important;height:19px!important;opacity:.9;border:2px solid #ffffffaa!important;
  box-shadow:0 2px 10px #0008}
.planet-colour-picker:hover{transform:scale(1.12)!important}
.planet-name,.mini-planet small{pointer-events:none!important}
.planet-group{isolation:isolate}
.photo-board.freeform-photo-board{
  background-color:var(--panel-2)!important;
  background-image:linear-gradient(color-mix(in srgb,var(--accent) 10%,transparent) 1px,transparent 1px),
    linear-gradient(90deg,color-mix(in srgb,var(--accent) 10%,transparent) 1px,transparent 1px)!important;
  background-size:24px 24px!important;
  border:1px solid color-mix(in srgb,var(--line) 75%,transparent)!important;
  border-radius:8px!important;
}
:root[data-theme="ocean"] .photo-board.freeform-photo-board{background-color:#142534!important}
:root[data-theme="paper"] .photo-board.freeform-photo-board{background-color:#e7e0d2!important}
:root[data-theme="rosewood"] .photo-board.freeform-photo-board{background-color:#35212b!important}
:root[data-theme="forest"] .photo-board.freeform-photo-board{background-color:#192b23!important}
:root[data-theme="midnight"] .photo-board.freeform-photo-board{background-color:#111827!important}
:root[data-theme="black"]{
 --bg:#050506;--panel:#101012;--panel-2:#09090b;--card:#141416;--text:#f0f0f2;
 --muted:#929299;--accent:#e6e6eb;--accent-2:#aeb0bb;--line:#303036;--hover:#202025;
 --shadow:0 20px 60px #000;
}
:root[data-theme="pink"]{
 --bg:#301326;--panel:#481a36;--panel-2:#39132c;--card:#511d3d;--text:#ffe7f3;
 --muted:#e1a8c8;--accent:#ff79bd;--accent-2:#ed4d9e;--line:#84365f;--hover:#61244a;
 --shadow:0 20px 60px #120510bb;
}
:root[data-theme="red"]{
 --bg:#260b10;--panel:#3a1119;--panel-2:#2d0c13;--card:#45131d;--text:#ffe9e9;
 --muted:#d99aa0;--accent:#ff4658;--accent-2:#e21f39;--line:#792532;--hover:#571923;
 --shadow:0 20px 60px #100307bb;
}
:root[data-theme="black"] body,:root[data-theme="pink"] body,:root[data-theme="red"] body{
 background-image:linear-gradient(color-mix(in srgb,var(--accent) 5%,transparent) 1px,transparent 1px),
 linear-gradient(90deg,color-mix(in srgb,var(--accent) 5%,transparent) 1px,transparent 1px);
 background-size:24px 24px;
}
:root[data-theme="black"] .photo-board.freeform-photo-board{background-color:#080809!important}
:root[data-theme="pink"] .photo-board.freeform-photo-board{background-color:#351027!important}
:root[data-theme="red"] .photo-board.freeform-photo-board{background-color:#2b090f!important}

/* Starspec V5 visual refinements — theme-aware spatial surfaces */
:root{--surface-glow:color-mix(in srgb,var(--accent) 12%,transparent)}
.masonry,.notes-grid{background-color:color-mix(in srgb,var(--panel) 18%,transparent);background-image:linear-gradient(color-mix(in srgb,var(--accent) 7%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent) 7%,transparent) 1px,transparent 1px);background-size:24px 24px}
.graph-stage-free{background-image:radial-gradient(ellipse at 50% 45%,color-mix(in srgb,var(--accent-2) 22%,#101722) 0%,color-mix(in srgb,var(--bg) 88%,#030810) 70%)!important}
.photo-board.freeform-photo-board{background-color:color-mix(in srgb,var(--panel) 35%,var(--bg));background-image:linear-gradient(color-mix(in srgb,var(--accent) 9%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--accent) 9%,transparent) 1px,transparent 1px)}


/* STARSPEC V6 — layout, editor and spatial workspace refinements */
.v6-infinite-board{box-sizing:border-box!important;position:relative!important;overflow:visible!important;max-width:none!important;contain:style}
.source-freeboard.v6-infinite-board{display:block!important;min-height:1100px!important;min-width:100%!important;width:100%!important}
.notes-freeboard.v6-infinite-board{min-height:900px!important;min-width:100%!important;width:100%!important}
.photo-board.v6-infinite-board{display:block!important;min-height:1100px!important;min-width:100%!important;width:100%!important;overflow:visible!important;position:relative!important}
.v6-infinite-board>.item-card,.v6-infinite-board>.note-card,.v6-infinite-board>.photo-object{will-change:left,top,width,height}
.v6-portfolio-board .photo-object{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-width:150px;min-height:150px;max-width:none!important;max-height:none!important}
.v6-portfolio-board .photo-grab,.v6-image-title{position:relative!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:100%!important;min-width:0!important;min-height:30px!important;height:auto!important;flex:0 0 auto!important;padding:6px 9px!important;overflow:hidden!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.3!important}
.v6-portfolio-board .photo-grab button{flex:none!important}
.v6-portfolio-board .photo-object img{display:block!important;flex:1 1 auto!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;object-fit:contain!important}
.v6-portfolio-board .photo-object>.photo-resize,.v6-portfolio-board .photo-object>.resize-handle{z-index:45!important}
.v6-note-editor{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:300px!important;height:auto!important;max-height:calc(100% - 75px)!important;flex:1 1 auto!important;padding:15px 17px!important;margin:12px 0!important;overflow:auto!important;white-space:pre-wrap!important;overflow-wrap:anywhere!important;line-height:1.8!important;font-size:14px!important}
.notes-freeboard .note-card{display:flex!important;flex-direction:column!important;overflow:hidden!important}
.notes-freeboard .note-card-main{display:flex!important;flex:1 1 auto!important;min-height:0!important;flex-direction:column!important}
.notes-freeboard .note-card .rich-toolbar{flex:0 0 auto!important;position:sticky!important;top:0!important;z-index:8!important}
.rich-toolbar button.is-active,.rich-toolbar button[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 25%,var(--panel-2))!important;border-color:var(--accent)!important;color:var(--accent)!important;box-shadow:inset 0 -2px 0 var(--accent)!important}
.v6-folder-summary,.v6-library-stats{display:flex;flex-wrap:wrap;gap:9px;margin:12px 0 22px}
.v6-folder-summary span,.v6-library-stats span{padding:9px 12px;background:var(--panel);border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:11px}
.v6-library-stats b{color:var(--accent);font:600 16px "DM Mono",monospace;margin-right:5px}
.v6-folder-section,.v6-overview-section{margin:25px 0 32px}
.v6-folder-section>h2,.v6-search-extras>h2{font-size:15px;font-weight:600;margin:0 0 13px;color:var(--text)}
.v6-folder-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:9px}
.v6-folder-tiles button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:4px 9px;text-align:left;padding:12px;background:color-mix(in srgb,var(--folder-colour) 17%,var(--panel));border:1px solid color-mix(in srgb,var(--folder-colour) 55%,var(--line));border-left:3px solid var(--folder-colour);border-radius:6px;color:var(--text);min-width:0}
.v6-folder-tiles button>span{grid-row:1/3;color:var(--folder-colour);font-size:18px}
.v6-folder-tiles button b{font-size:12px;overflow-wrap:anywhere}
.v6-folder-tiles button small{color:var(--muted);font-size:10px}
.v6-folder-tiles button:hover{transform:translateY(-2px);border-color:var(--folder-colour)}
.v6-overview-images,.v6-folder-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}
.v6-overview-images figure,.v6-folder-images figure{margin:0;min-width:0;padding:7px;background:var(--panel);border:1px solid var(--line);border-radius:6px}
.v6-overview-images img,.v6-folder-images img{width:100%;height:150px;object-fit:contain;background:var(--panel-2);display:block}
.v6-overview-images figcaption,.v6-folder-images figcaption{font-size:11px;color:var(--muted);padding:7px 2px 2px;overflow-wrap:anywhere}
.v6-context-menu{position:fixed;z-index:3000;display:grid;min-width:175px;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:7px;box-shadow:0 14px 45px #0009}
.v6-context-menu button{border:0;background:transparent;color:var(--text);text-align:left;padding:9px 10px;border-radius:4px;font-size:12px}
.v6-context-menu button:hover{background:var(--hover);color:var(--accent)}
.v6-context-menu button.danger{color:var(--red)}
.v6-hide-duplicate-settings{display:none!important}
.graph-stage-free{cursor:grab!important;touch-action:none!important;overscroll-behavior:contain!important}
.graph-stage-free.is-panning{cursor:grabbing!important}
.graph-stage-free .mini-planet{cursor:pointer!important;touch-action:manipulation!important}
.graph-stage-free .mini-planet:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
.v6-folder-images{margin-top:10px}
@media(max-width:850px){
  .v6-note-editor{min-height:240px!important}
  .v6-folder-tiles{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}
}
@media(max-width:620px){
  .v6-note-editor{min-height:210px!important;padding:10px!important}
  .v6-portfolio-board .photo-object{max-width:none!important}
}


.v6-object-menu{min-width:190px}
.v6-object-locked{cursor:not-allowed!important}
.v6-object-locked .resize-handle,.v6-object-locked .photo-resize,.v6-object-locked .note-resize-h,.v6-object-locked .note-resize-v,.v6-object-locked .note-resize-corner{display:none!important}
.v6-object-locked .photo-grab{cursor:not-allowed!important}


/* STARSPEC V7 — editorial spatial canvas */
.v7-board-controls{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:18px 0 12px;padding:13px 15px;background:var(--panel);border:1px solid var(--line);border-radius:12px}
.v7-board-controls>div:first-child{display:grid;gap:4px}.v7-board-controls b{font-size:13px;letter-spacing:.02em}.v7-board-controls small{font-size:10px;color:var(--muted)}
.v7-board-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.v7-board-actions label,.v7-connection-toggle{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted);white-space:nowrap}
.v7-board-actions button{font-size:11px;padding:8px 10px}
.v7-canvas-viewport{height:calc(100vh - 255px);min-height:560px;position:relative;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background-color:var(--bg);background-image:radial-gradient(color-mix(in srgb,var(--muted) 22%,transparent) .8px,transparent .8px);background-size:22px 22px;scrollbar-width:none;cursor:grab}
.v7-canvas-viewport::-webkit-scrollbar{display:none}
.v7-canvas-viewport.is-panning{cursor:grabbing}
.v7-spatial-board{position:relative!important;min-width:14000px!important;min-height:10000px!important;width:14000px;height:10000px;overflow:visible!important;isolation:isolate}
.v7-spatial-board .v7-connections{position:absolute;left:0;top:0;z-index:0;overflow:visible;pointer-events:none}
.v7-connection-line{fill:none;stroke:var(--accent);stroke-width:1.7;opacity:.28;stroke-dasharray:4 5;vector-effect:non-scaling-stroke}
.v7-connection-label{fill:var(--muted);font-size:10px;text-anchor:middle;opacity:.8}
.v7-object{position:absolute;z-index:1;display:flex;flex-direction:column;min-width:190px;min-height:150px;max-width:none;max-height:none;background:var(--card);border:1px solid var(--line);border-radius:10px;overflow:visible;box-shadow:0 12px 30px #0002;transition:border-color .15s,box-shadow .15s}
.v7-object:hover{border-color:var(--accent-2);box-shadow:0 15px 34px #0003}
.v7-object.is-moving{z-index:1000!important;box-shadow:0 24px 65px #0008;cursor:grabbing}
.v7-object.v7-multi-selected{outline:2px solid var(--accent);outline-offset:3px}
.v7-object-grip{height:29px;min-height:29px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 9px;background:color-mix(in srgb,var(--panel-2) 88%,var(--accent) 12%);border-radius:9px 9px 0 0;color:var(--muted);font:9px "DM Mono",monospace;letter-spacing:1.2px;cursor:grab;user-select:none}
.v7-object-grip:active{cursor:grabbing}
.v7-grip-actions{display:flex;gap:3px}
.v7-grip-actions button,.v7-image-actions button{border:0;background:transparent;color:var(--muted);font-size:14px;padding:2px 5px;border-radius:4px}
.v7-grip-actions button:hover,.v7-image-actions button:hover{background:var(--hover);color:var(--accent)}
.v7-object-content{position:relative;flex:1;min-width:0;min-height:0;height:calc(100% - 29px);overflow:hidden;border-radius:0 0 9px 9px}
.v7-object-content>.item-card{position:relative!important;left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;display:flex!important;flex-direction:column!important;border:0!important;border-radius:0 0 9px 9px!important;box-shadow:none!important}
.v7-object-content>.item-card .card-copy{overflow:auto;min-height:0;flex:1 1 auto}
.v7-object-content>.item-card .card-meta{flex:0 0 auto}
.v7-object-content>.note-card{position:relative!important;left:0!important;top:0!important;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;border:0!important;border-radius:0 0 9px 9px!important;display:flex;flex-direction:column}
.v7-note-card .note-card-main{padding:13px 15px;min-height:0;overflow:auto;flex:1}
.v7-note-card h3{font-size:15px;margin:0 0 10px}
.v7-note-card .note-content{font-size:12px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.v7-note-card .card-meta{padding:8px 13px;margin:0}
.v7-note-dot{width:17px;height:17px;display:inline-flex;border-radius:50%;overflow:hidden;border:1px solid #ffffff55;cursor:pointer;flex:none}
.v7-note-dot input{width:26px;height:26px;margin:-5px;opacity:.01;cursor:pointer}
.v7-object-content>.photo-object{position:relative!important;left:0!important;top:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-width:0!important;min-height:0!important;border:0!important;border-radius:0 0 9px 9px!important;background:var(--panel-2);box-shadow:none!important;display:flex;overflow:hidden}
.v7-object-content>.photo-object img{width:100%;height:100%;min-height:0;flex:1 1 auto;object-fit:contain;background:var(--panel-2);pointer-events:none}
.v7-image-actions{display:flex;gap:4px}
.v7-folder-object{height:100%;padding:17px;background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 18%,var(--card)),var(--card));display:flex;flex-direction:column;justify-content:center;gap:10px}
.v7-folder-object>span{font:9px "DM Mono",monospace;letter-spacing:1.5px;color:var(--accent)}
.v7-folder-object h3{font-size:17px;margin:0;overflow-wrap:anywhere}
.v7-folder-object small{color:var(--muted)}
.v7-resize{position:absolute;width:14px;height:14px;z-index:10;border:2px solid var(--accent);background:var(--panel);border-radius:3px;opacity:0;transition:opacity .12s}
.v7-object:hover>.v7-resize,.v7-object:focus-within>.v7-resize{opacity:.85}
.v7-resize.nw{left:-6px;top:-6px;cursor:nwse-resize}.v7-resize.ne{right:-6px;top:-6px;cursor:nesw-resize}.v7-resize.sw{left:-6px;bottom:-6px;cursor:nesw-resize}.v7-resize.se{right:-6px;bottom:-6px;cursor:nwse-resize}
.v7-modal-backdrop{position:fixed;inset:0;z-index:5000;background:#05070bd9;backdrop-filter:blur(12px);display:grid;place-items:center;padding:24px}
.v7-modal{width:min(760px,96vw);max-height:90vh;overflow:auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;box-shadow:0 28px 90px #0009}
.v7-modal header,.v7-modal footer{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}
.v7-modal header small{font:9px "DM Mono",monospace;letter-spacing:1.8px;color:var(--accent)}
.v7-modal h2{font-size:21px;margin:6px 0}.v7-modal header p{color:var(--muted);font-size:12px;margin:0}
.v7-modal header>button{border:0;background:transparent;font-size:23px;color:var(--muted)}
.v7-modal footer{align-items:center;margin-top:20px;padding-top:15px;border-top:1px solid var(--line)}.v7-modal footer span{font-size:11px;color:var(--muted)}
.v7-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:20px}
.v7-palette-choice{padding:12px;text-align:left;background:var(--panel-2);border:1px solid var(--line);border-radius:9px;display:grid;gap:7px}
.v7-palette-choice.selected{border:2px solid var(--accent);padding:11px;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 15%,transparent)}
.v7-palette-choice b{font-size:12px}.v7-palette-choice small{font-size:10px;color:var(--muted)}
.v7-swatch{height:32px;display:flex;overflow:hidden;border-radius:5px;background:var(--sw-bg)}
.v7-swatch i{display:block;flex:1;background:var(--sw-panel)}.v7-swatch i:nth-child(2){background:var(--sw-bg)}.v7-swatch i:nth-child(3){background:var(--sw-accent)}.v7-swatch i:nth-child(4){background:var(--sw-second)}
.v7-layout-modal{width:min(900px,96vw)}
.v7-layout-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:20px}
.v7-layout-option{display:grid;gap:7px;padding:11px;background:var(--panel-2);border:1px solid var(--line);border-radius:9px;cursor:pointer}
.v7-layout-option:has(input:checked){border:2px solid var(--accent);padding:10px}
.v7-layout-option input{accent-color:var(--accent)}
.v7-layout-option b{font-size:12px}.v7-layout-option small{font-size:10px;color:var(--muted)}
.v7-layout-preview{height:75px;border-radius:5px;background:var(--bg);border:1px solid var(--line);display:flex;align-items:center;justify-content:center;gap:4px;overflow:hidden}
.v7-layout-preview i{display:block;width:20%;height:45%;border:1px solid var(--accent);background:color-mix(in srgb,var(--accent) 17%,var(--panel))}
.v7-layout-preview.grid{display:grid;grid-template-columns:repeat(3,20%);align-content:center;justify-content:center}.v7-layout-preview.masonry i:nth-child(2){height:65%}.v7-layout-preview.mindmap i{border-radius:50%}.v7-layout-preview.timeline i{height:3px;width:25%}.v7-layout-preview.clusters{flex-wrap:wrap}
.v7-saved-layouts{margin-top:18px;padding-top:14px;border-top:1px solid var(--line)}.v7-saved-layouts h3{font-size:12px}.v7-saved-layouts label{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:7px;margin:6px 0}.v7-saved-layouts label span{display:grid;gap:3px}.v7-saved-layouts small{color:var(--muted);font-size:10px}
.v7-context-menu{position:fixed;z-index:5100;display:grid;min-width:175px;padding:5px;background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:0 14px 45px #0009}
.v7-context-menu button{border:0;background:transparent;color:var(--text);text-align:left;padding:9px 10px;border-radius:5px;font-size:12px}.v7-context-menu button:hover{background:var(--hover);color:var(--accent)}
.v7-dragging{user-select:none!important;cursor:grabbing!important}.v7-graph-panning{cursor:grabbing!important}
.v7-connection-toggle input,.v7-board-actions input{accent-color:var(--accent)}
@media(max-width:900px){.v7-layout-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.v7-board-controls{align-items:flex-start}.v7-canvas-viewport{height:calc(100vh - 290px)}}
@media(max-width:600px){.v7-palette-grid,.v7-layout-grid{grid-template-columns:1fr 1fr}.v7-board-actions{width:100%}.v7-canvas-viewport{min-height:440px;height:calc(100vh - 330px)}}


#v5-toolbar .v5-toggle:has([data-v5-snap]),#v5-toolbar select[data-v5-grid]{display:none!important}
.v7-object:has([data-v7-drag]){touch-action:none}
.v7-object[data-v7-locked="true"]{opacity:.88}

.sidebar-footer{display:none!important}
.v7-folder-object{width:100%;border:0;color:var(--text);text-align:left;cursor:pointer;border-radius:0 0 9px 9px}
.v7-folder-object:hover{filter:brightness(1.12)}
.v7-toolbar-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#v5-toolbar .v5-tool-group:has([data-v5-snap]){gap:8px}

.v7-align-guide{stroke:var(--accent);stroke-width:1.2;stroke-dasharray:5 5;opacity:.7;vector-effect:non-scaling-stroke}

.item-card.status-red{background:linear-gradient(135deg,color-mix(in srgb,var(--red) 18%,var(--card)),var(--card) 70%)!important}
.item-card.status-yellow{background:linear-gradient(135deg,color-mix(in srgb,var(--yellow) 17%,var(--card)),var(--card) 70%)!important}
.item-card.status-green{background:linear-gradient(135deg,color-mix(in srgb,var(--green) 17%,var(--card)),var(--card) 70%)!important}


/* STARSPEC V8 — spatial camera, minimaps and editorial image workspace */
.v7-canvas-viewport{position:relative;overflow:auto;overscroll-behavior:contain;touch-action:none;scrollbar-width:none;cursor:grab}
.v7-canvas-viewport::-webkit-scrollbar{display:none}
.v7-canvas-viewport.is-panning{cursor:grabbing}
.v7-spatial-board{transform-origin:0 0;will-change:transform}
.v8-zoom-hud{position:absolute;left:12px;bottom:12px;z-index:1200;display:flex;align-items:center;gap:4px;width:max-content;margin:0;padding:5px;background:color-mix(in srgb,var(--panel) 94%,transparent);border:1px solid var(--line);border-radius:9px;box-shadow:0 6px 20px #0003;backdrop-filter:blur(10px)}
.v8-zoom-hud button{min-width:27px;height:26px;padding:2px 7px;border:0;border-radius:5px;background:transparent;color:var(--text);font-size:12px}
.v8-zoom-hud button:hover{background:var(--hover);color:var(--accent)}
.v8-zoom-hud output{min-width:43px;text-align:center;color:var(--muted);font:10px "DM Mono",monospace}
.v8-minimap{position:absolute;right:12px;bottom:12px;z-index:1100;width:174px;height:118px;margin:0;border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line));border-radius:8px;background:color-mix(in srgb,var(--panel) 92%,transparent);box-shadow:0 8px 26px #0005;backdrop-filter:blur(10px);overflow:hidden;cursor:crosshair}
.v8-minimap-label{position:absolute;top:5px;left:8px;z-index:2;color:var(--muted);font:8px "DM Mono",monospace;letter-spacing:1.4px;pointer-events:none}
.v8-minimap-inner{position:absolute;inset:20px 5px 5px;background-color:var(--bg);background-image:radial-gradient(var(--line) 1px,transparent 1px);background-size:8px 8px;overflow:hidden}
.v8-minimap-objects{position:absolute;inset:0}
.v8-minimap-objects i{position:absolute;display:block;min-width:2px;min-height:2px;background:var(--accent);border-radius:2px;opacity:.8}
.v8-minimap-viewport{position:absolute;border:1px solid var(--text);background:color-mix(in srgb,var(--accent) 13%,transparent);box-shadow:0 0 0 1px #0008;pointer-events:none;min-width:2px;min-height:2px}
.v8-photo-object{flex-direction:row!important;align-items:stretch;gap:0}
.v8-photo-image{width:55%;min-width:0;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:var(--panel-2);border-right:1px solid var(--line)}
.v8-photo-image img{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;background:var(--panel-2)}
.v8-photo-writing{width:45%;min-width:0;min-height:0;display:flex;flex-direction:column;background:var(--card);overflow:hidden}
.v8-photo-writing-head{height:30px;min-height:30px;display:flex;justify-content:space-between;align-items:center;padding:0 10px;border-bottom:1px solid var(--line);color:var(--muted);font:8px "DM Mono",monospace;letter-spacing:1.2px}
.v8-photo-writing-head span:last-child{color:var(--green);letter-spacing:0}
.v8-photo-format{display:flex;align-items:center;gap:4px;padding:6px 8px;border-bottom:1px solid var(--line)}
.v8-photo-format button{border:1px solid var(--line);background:var(--panel-2);color:var(--muted);border-radius:4px;padding:3px 7px;font-size:10px}
.v8-photo-format button:hover,.v8-photo-format button:focus{color:var(--accent);border-color:var(--accent)}
.v8-photo-editor{flex:1;min-height:0;overflow:auto;padding:12px;color:var(--text);font-size:12px;line-height:1.65;outline:none;overflow-wrap:anywhere;cursor:text;user-select:text}
.v8-photo-editor:empty:before{content:attr(data-placeholder);color:var(--muted);opacity:.8;pointer-events:none}
.v8-photo-editor:focus{box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 35%,transparent)}
.v8-photo-editor h2,.v8-photo-editor h3{margin:8px 0 5px}.v8-photo-editor ul,.v8-photo-editor ol{padding-left:20px}
.v8-hidden-list{display:grid;gap:7px;max-height:55vh;overflow:auto;margin-top:16px}
.v8-hidden-row{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2)}
.v8-hidden-row input{accent-color:var(--accent)}.v8-hidden-row span{display:grid;gap:3px}.v8-hidden-row b{font-size:12px}.v8-hidden-row small{font-size:10px;color:var(--muted)}
.v8-empty{font-size:12px;color:var(--muted);padding:14px}
.v8-graph-minimap{position:absolute;right:16px;bottom:16px;z-index:900;width:210px;height:158px;border:1px solid color-mix(in srgb,var(--accent) 60%,var(--line));border-radius:10px;background:color-mix(in srgb,var(--panel) 94%,transparent);box-shadow:0 12px 32px #0008;backdrop-filter:blur(12px);overflow:hidden;cursor:crosshair}
.v8-graph-minimap>svg{position:absolute;left:7px;right:7px;bottom:7px;width:calc(100% - 14px);height:calc(100% - 43px);background:radial-gradient(var(--line) 1px,transparent 1px);background-size:9px 9px}
.v8-graph-zoom{position:absolute;right:7px;top:3px;z-index:3;display:flex;align-items:center;gap:3px}
.v8-graph-zoom button{border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:4px;padding:2px 6px;font-size:9px}
.v8-graph-zoom output{font:9px "DM Mono",monospace;color:var(--muted);min-width:34px;text-align:center}
.v8-map-planet{fill:var(--accent);stroke:var(--text);stroke-width:3;opacity:.8}
.v8-map-viewport{fill:color-mix(in srgb,var(--accent) 15%,transparent);stroke:var(--text);stroke-width:5;vector-effect:non-scaling-stroke}
.v8-graph-minimap:active{cursor:grabbing}
.v7-connection-line{stroke:var(--accent)!important;stroke-width:2.7!important;opacity:.62!important;stroke-dasharray:none!important;filter:drop-shadow(0 0 3px color-mix(in srgb,var(--accent) 55%,transparent))}
.v7-connection-label{fill:var(--text)!important;font-size:12px!important;opacity:.95!important;paint-order:stroke;stroke:var(--bg);stroke-width:3px;stroke-linejoin:round}
.v7-object-content>.photo-object{min-width:0!important}
.v7-object-content .v8-photo-writing button,.v7-object-content .v8-photo-editor{user-select:text}
.v7-object-content .v8-photo-format{flex:none}
.v7-object-content .v8-photo-writing-head{flex:none}
.v7-object-content .v8-photo-editor a{color:var(--accent);text-decoration:underline}
@media(max-width:760px){.v8-minimap{width:130px;height:94px;left:calc(100% - 142px);margin-top:-102px}.v8-photo-object{flex-direction:column!important}.v8-photo-image,.v8-photo-writing{width:100%;height:50%}.v8-photo-image{border-right:0;border-bottom:1px solid var(--line)}.v8-graph-minimap{width:150px;height:118px}}


.v8-scaled-space{position:relative;min-width:0;min-height:0;flex:none}

.v8-scaled-space{overflow:hidden}

.v7-object[data-v7-type="image"]{min-width:420px;min-height:280px}
.v7-object[data-v7-type="image"] .v7-object-grip{font-size:9px}


/* V9 interaction cleanup */
.v8-graph-minimap{
  position:fixed!important;
  right:24px!important;
  bottom:24px!important;
  z-index:10000!important;
  width:220px!important;
  height:164px!important;
  margin:0!important;
  pointer-events:auto!important;
  isolation:isolate;
}
.v8-graph-minimap>svg{touch-action:none}
.v7-graph-panning{cursor:grabbing!important}
.v7-graph-panning *{user-select:none}
.controls-dialog{width:min(760px,calc(100% - 28px));max-height:min(88vh,850px)}
.controls-reference{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.controls-reference section{min-width:0;padding:13px;border:1px solid var(--line);border-radius:9px;background:var(--bg)}
.controls-reference section:last-child{grid-column:1/-1}
.controls-reference h3{margin:0 0 11px;color:var(--accent);font-size:12px;font-weight:650;letter-spacing:.04em}
.control-line{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 65%,transparent);font-size:11px}
.control-line:last-of-type{border-bottom:0}
.control-line kbd{flex:none;display:inline-block;padding:4px 7px;border:1px solid var(--line);border-radius:5px;background:var(--panel);color:var(--text);font:10px "DM Mono",monospace;white-space:nowrap}
.controls-hint{margin:10px 0 0;color:var(--muted);font-size:10px;line-height:1.55}
.controls-dialog .dialog-actions{display:flex;justify-content:flex-end;margin-top:17px}
#controls-button{font-size:17px;font-weight:600}
@media(max-width:680px){
  .v8-graph-minimap{right:12px!important;bottom:12px!important;width:170px!important;height:128px!important}
  .controls-reference{grid-template-columns:1fr}
  .controls-reference section:last-child{grid-column:auto}
}


/* STARSPEC V10 — reclaim canvas space and simplify navigation */
.v7-board-controls.v10-board-controls{display:block;margin:8px 0 8px;padding:0;border-radius:8px;background:color-mix(in srgb,var(--panel) 78%,transparent)}
.v10-board-controls>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:36px;padding:7px 12px;cursor:pointer;user-select:none}
.v10-board-controls>summary::-webkit-details-marker{display:none}
.v10-board-controls>summary>span:first-child{display:flex;align-items:baseline;gap:10px;min-width:0}
.v10-board-controls>summary b{font-size:11px}.v10-board-controls>summary small{font-size:10px;color:var(--muted)}
.v10-controls-chevron{color:var(--muted);font-size:16px;transition:transform .15s}.v10-board-controls[open] .v10-controls-chevron{transform:rotate(180deg)}
.v10-board-controls .v7-board-actions{padding:7px 12px 10px;border-top:1px solid var(--line);gap:8px}
.v7-canvas-viewport{height:calc(100vh - 225px)!important;min-height:420px!important;border-radius:9px!important}
.page-heading{margin:8px 0 10px!important;display:flex;align-items:center;justify-content:space-between;gap:16px}
.page-heading .eyebrow{margin-bottom:3px!important;font-size:10px!important}.page-heading h1{font-size:clamp(25px,2.3vw,34px)!important;margin:0 0 4px!important}.page-heading>div>p:last-child{font-size:12px!important;margin:0!important;line-height:1.45}
.v5-toolbar{padding:8px 10px!important;gap:7px!important;margin-bottom:8px!important;min-height:0!important}
.v5-tool-group{gap:5px!important}
.v10-notes-folder{display:flex;align-items:center;gap:10px;margin:0 0 8px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:color-mix(in srgb,var(--panel) 70%,transparent);width:max-content;max-width:100%}
.v10-notes-folder label{font:9px "DM Mono",monospace;letter-spacing:1.1px;color:var(--muted)}
.v10-notes-folder select{min-width:210px;max-width:min(60vw,360px);padding:6px 9px;background:var(--panel-2);color:var(--text);border:1px solid var(--line);border-radius:5px}
.v10-saved-layout-row{display:flex;align-items:center;gap:8px;padding-right:7px;border:1px solid var(--line);border-radius:7px;margin:5px 0;background:var(--panel-2)}
.v10-saved-layout-row label{flex:1;min-width:0;margin:0!important;border:0!important;background:transparent!important}
.v10-layout-delete{flex:none;width:28px;height:28px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);font-size:18px;cursor:pointer}
.v10-layout-delete:hover{color:var(--red);border-color:var(--red);background:color-mix(in srgb,var(--red) 12%,transparent)}
.v8-graph-minimap{background:color-mix(in srgb,var(--panel) 90%,transparent)!important;border-color:color-mix(in srgb,var(--accent) 32%,var(--line))!important;box-shadow:0 5px 18px #0003!important}
.v8-map-viewport{fill:color-mix(in srgb,var(--accent) 3%,transparent)!important;stroke:color-mix(in srgb,var(--text) 55%,transparent)!important;stroke-width:1.35!important;stroke-dasharray:4 4!important;filter:none!important}
.v8-map-planet{stroke:none!important;opacity:.7!important}
.v8-map-link{stroke:var(--accent)!important;stroke-width:1.2!important;opacity:.42!important}
.v8-map-selected-planet{fill:color-mix(in srgb,var(--accent) 18%,transparent);stroke:var(--accent);stroke-width:2;opacity:.95}
.v8-map-note{fill:var(--text);stroke:var(--accent);stroke-width:1.5}
.v8-map-source{fill:var(--yellow);stroke:var(--text);stroke-width:1}
@media(max-width:900px){.v7-canvas-viewport{height:calc(100vh - 245px)!important}.page-heading{margin:6px 0 8px!important}}
@media(max-width:600px){.v7-canvas-viewport{height:calc(100vh - 275px)!important;min-height:380px!important}.v10-notes-folder{width:100%}.v10-notes-folder select{min-width:0;flex:1}}

/* Keep the Overview minimap unobtrusive and isolated from canvas gestures. */
.v8-minimap{width:154px!important;height:104px!important;right:14px!important;bottom:14px!important;border-radius:7px!important;opacity:.82;z-index:1100!important;touch-action:none}
.v8-minimap:hover{opacity:1}
.v8-minimap-viewport{border:1px solid color-mix(in srgb,var(--text) 65%,transparent)!important;background:color-mix(in srgb,var(--accent) 7%,transparent)!important;box-shadow:none!important}
.v8-minimap-inner{inset:19px 5px 5px!important}


/* V11 — reclaim vertical workspace and make colour coding legible */
.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0 0 12px!important;padding:0!important}
.page-heading h1{font-size:clamp(22px,2vw,30px)!important;line-height:1.12!important;margin:0!important}
.page-heading .eyebrow{font-size:10px!important;letter-spacing:.16em;margin:0 0 3px!important}
.page-heading p{font-size:12px!important;line-height:1.35!important;margin:4px 0 0!important;max-width:70ch}
.topbar{min-height:42px!important;height:42px!important;padding-block:5px!important}
.view-root{padding-top:10px!important}
.toolbar-controls,.note-toolbar,.graph-controls{margin-block:8px!important}
.source-count-strip{padding:6px 10px!important;margin-block:6px!important}
.item-card.status-red{border:1px solid #e16a75!important;box-shadow:inset 4px 0 #e16a75,0 0 0 1px #e16a7540,0 8px 24px #e16a7515!important}
.item-card.status-green{border:1px solid #69c69a!important;box-shadow:inset 4px 0 #69c69a,0 0 0 1px #69c69a40,0 8px 24px #69c69a15!important}
.item-card.status-yellow{border:1px solid #d9b65f!important;box-shadow:inset 4px 0 #d9b65f,0 0 0 1px #d9b65f40,0 8px 24px #d9b65f15!important}
.item-card.status-red .card-kicker{color:#f08b94!important}.item-card.status-green .card-kicker{color:#82d9ac!important}.item-card.status-yellow .card-kicker{color:#edca78!important}
.note-card{border:1px solid color-mix(in srgb,var(--note-colour,#aaa4d0) 75%,#25394a)!important;box-shadow:inset 4px 0 var(--note-colour,#aaa4d0),0 0 0 1px color-mix(in srgb,var(--note-colour,#aaa4d0) 28%,transparent),0 8px 22px color-mix(in srgb,var(--note-colour,#aaa4d0) 12%,transparent)!important}
.note-card .note-category{color:var(--note-colour,#aaa4d0)!important}
.photo-grab button{opacity:1!important;visibility:visible!important;min-width:26px;min-height:26px;border-radius:6px;background:#101d2a!important;border:1px solid #7390a4!important;color:#fff!important;z-index:5}
.photo-object{overflow:visible!important}
.photo-object .photo-grab{position:relative;z-index:4}
.photo-object .photo-grab button:hover{background:#a93648!important}
.v8-graph-minimap{opacity:.94}
.v8-graph-minimap svg .v8-map-selected-planet{stroke-width:3!important;stroke-dasharray:5 5!important;fill:none!important}
.v8-graph-minimap svg .v8-map-link{stroke-width:1.5!important;opacity:.8}
.v8-graph-minimap svg .v8-map-note,.v8-graph-minimap svg .v8-map-source{stroke-width:1.5!important}
.v8-graph-minimap .v8-map-viewport{stroke-width:2!important;stroke-dasharray:7 5!important;fill:#53c8d40b!important}
.app-shell.sidebar-collapsed .sidebar{width:0!important;min-width:0!important;padding:0!important;overflow:hidden!important;border:0!important}
.app-shell.sidebar-collapsed .workspace{min-width:0}
#sidebar{transition:width .18s ease,min-width .18s ease,padding .18s ease}
.quick-capture-hint{font-size:11px;color:var(--muted)}
.v11-backlinks{position:fixed;right:18px;top:72px;bottom:18px;width:min(310px,30vw);z-index:9000;background:var(--panel,#172b3b);border:1px solid var(--line,#345064);border-radius:12px;padding:14px;overflow:auto;box-shadow:0 18px 50px #0008}
.v11-backlinks h3{margin:0 0 10px}.v11-backlinks button{display:block;width:100%;text-align:left;margin:5px 0;padding:8px;border-radius:7px}
.v11-backlinks .muted{font-size:12px;color:var(--muted)}
.v11-collection-strip{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin:8px 0}
.v11-collection-strip button{font-size:12px;padding:6px 10px}
.v11-map{position:fixed;right:18px;bottom:18px;width:180px;height:120px;z-index:8000;border:1px solid #4c9ba7;border-radius:10px;background:#102333eF;box-shadow:0 8px 28px #0007;overflow:hidden;transition:width .18s,height .18s}
.v11-map.expanded{width:min(420px,55vw);height:min(300px,45vh)}
.v11-map canvas{width:100%;height:100%;display:block}
.v11-map button{position:absolute;right:5px;top:5px;z-index:2;padding:2px 7px}
@media(max-width:900px){.page-heading{margin-bottom:8px!important}.page-heading p{max-width:50ch}.v11-backlinks{width:260px}}

.v11-map-target{outline:2px solid #58c8d4!important;outline-offset:3px!important;transition:outline .2s}
.v11-map canvas{cursor:crosshair}


/* V12 — compact, canvas-first research environment */
.topbar{height:38px!important;min-height:38px!important;padding:3px 16px!important}
.topbar-actions #quick-add,.topbar-actions .context-top-action{display:none!important}
.topbar-actions{gap:6px!important}
.view-root{padding:7px 14px 12px!important;min-height:0}
.v12-channel-heading{height:27px;display:flex;align-items:center;margin:0 0 6px!important;padding:0}
.v12-channel-heading h1{font-size:19px!important;line-height:1!important;font-weight:550!important;letter-spacing:-.3px!important;margin:0!important;color:var(--accent)!important}
.v12-board-toolbar{min-height:37px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 7px!important;padding:5px 9px;background:var(--panel);border:1px solid var(--line);border-radius:9px}
.v12-board-toolbar>b{font-size:11px;letter-spacing:.02em;margin-right:6px}
.v12-board-toolbar label{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;white-space:nowrap}
.v12-board-toolbar button,.v12-board-toolbar select{font-size:11px!important;padding:6px 9px!important;min-height:27px}
.v12-toolbar-spacer{flex:1}
.v7-canvas-viewport{height:calc(100dvh - 112px)!important;min-height:390px!important;border-radius:9px!important;overscroll-behavior:contain!important;contain:layout paint;touch-action:pan-x pan-y}
.v8-scaled-space{overflow:visible!important;min-width:0;min-height:0;flex:none}
.v7-spatial-board{overflow:visible!important;will-change:transform;backface-visibility:hidden}
.v8-zoom-hud{position:sticky!important;float:right;bottom:10px;right:10px;margin-top:-44px;margin-right:10px;z-index:1300;pointer-events:auto}
.v7-board-controls.v10-board-controls{display:none!important}
.v8-minimap{display:none!important}
.v12-context-menu{position:fixed;z-index:20000;min-width:205px;max-width:260px;padding:8px;background:var(--panel);border:1px solid var(--line);border-radius:10px;box-shadow:0 18px 55px #0009;color:var(--text);display:grid;gap:3px}
.v12-context-menu>b{font-size:11px;color:var(--muted);padding:6px 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v12-context-menu button{width:100%;text-align:left;border:0;background:transparent;color:var(--text);padding:9px 10px;border-radius:6px;font-size:12px}
.v12-context-menu button:hover{background:var(--hover)}
.v12-context-menu button.danger{color:#ff858d}
.v12-context-menu hr{width:100%;border:0;border-top:1px solid var(--line);margin:4px 0}
.v12-connect-mode .v7-object{cursor:crosshair!important}
.v7-object.v12-connect-source{outline:2px solid var(--accent)!important;outline-offset:3px}
.v7-object.v12-selected{outline:2px solid var(--accent)!important;outline-offset:3px}
.v12-cluster-frame{position:absolute;z-index:0;border:1px dashed color-mix(in srgb,var(--accent) 65%,transparent);border-radius:13px;background:color-mix(in srgb,var(--accent) 4%,transparent);pointer-events:auto;cursor:move;user-select:none}
.v12-cluster-frame>span{position:absolute;top:-22px;left:8px;padding:3px 8px;background:var(--panel);border:1px solid var(--line);border-radius:5px;color:var(--muted);font-size:10px;letter-spacing:.08em;text-transform:uppercase}
.v12-cluster-frame button{position:absolute;top:-24px;border:0;background:transparent;color:var(--muted);padding:2px 5px;font-size:11px}
.v12-cluster-frame button:nth-of-type(1){right:22px}.v12-cluster-frame button:nth-of-type(2){right:0}
.v12-reading-dialog,.v12-command-dialog{width:min(760px,calc(100vw - 32px));max-height:min(82dvh,850px);padding:0;background:var(--panel);color:var(--text);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 90px #000b}
.v12-reading-dialog::backdrop,.v12-command-dialog::backdrop{background:#020711b8;backdrop-filter:blur(4px)}
.v12-reading-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;padding:18px 20px;border-bottom:1px solid var(--line)}
.v12-reading-dialog h2{margin:4px 0 0;font-size:21px}.v12-reading-dialog small{font-size:10px;letter-spacing:.14em;color:var(--muted)}
.v12-reading-dialog header button{background:transparent;color:var(--text);border:0;font-size:20px}
.v12-reading-body{padding:20px;overflow:auto;max-height:60dvh;line-height:1.65;color:var(--text)}
.v12-reading-body>img{max-width:100%;max-height:330px;object-fit:contain;display:block;margin:0 auto 16px;border-radius:8px}
.v12-reading-body textarea{width:100%;min-height:150px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;padding:12px;resize:vertical}
.v12-reading-dialog>footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid var(--line)}
.v12-reading-dialog>footer button,.v12-history-row button{padding:8px 12px;background:var(--panel-2);color:var(--text);border:1px solid var(--line);border-radius:7px}
.v12-history-row{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.v12-history-row p{font-size:12px;color:var(--muted);margin:5px 0 0}
.v12-command-dialog{width:min(620px,calc(100vw - 28px));padding:10px}
#v12-command-search{width:100%;padding:14px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:9px;font-size:15px}
#v12-command-results{max-height:60dvh;overflow:auto;margin-top:8px}
#v12-command-results button{display:flex;justify-content:space-between;align-items:center;width:100%;padding:11px 12px;background:transparent;color:var(--text);border:0;border-radius:7px;text-align:left}
#v12-command-results button:hover{background:var(--hover)}
#v12-command-results small{color:var(--muted)}
body.v12-graph-view #v5-toolbar{display:none!important}
body.v12-graph-view .page-heading{display:none!important}
body.v12-focus-mode .icon-rail,body.v12-focus-mode .sidebar,body.v12-focus-mode .topbar,body.v12-focus-mode #v5-toolbar,body.v12-focus-mode .v12-board-toolbar{display:none!important}
body.v12-focus-mode .workspace{grid-column:1/-1!important;width:100vw!important}
body.v12-focus-mode .view-root{padding:0!important}
body.v12-focus-mode .v7-canvas-viewport{height:100dvh!important;min-height:100dvh!important;border:0!important;border-radius:0!important}
body.v12-focus-mode .graph-stage{height:100dvh!important}
body.v12-focus-mode:after{content:"Focus mode · Esc to exit";position:fixed;right:12px;top:10px;z-index:20000;padding:5px 9px;background:var(--panel);border:1px solid var(--line);border-radius:6px;color:var(--muted);font-size:10px;pointer-events:none}
@media(max-width:760px){.v12-board-toolbar{gap:5px}.v7-canvas-viewport{height:calc(100dvh - 108px)!important}.v12-board-toolbar>b{display:none}.v12-reading-dialog{width:calc(100vw - 16px)}}

/* V12 toolbar hierarchy: keep history/undo; channel controls live with their canvas. */
#v5-toolbar .v5-tool-group:nth-child(2),#v5-toolbar .v5-tool-group:nth-child(3),#v5-toolbar .v7-toolbar-group{display:none!important}
#v5-toolbar{min-height:42px!important;margin:4px 0 7px!important;padding:5px 8px!important;gap:7px!important}
#v5-toolbar .v5-tool-group:first-child{gap:5px!important}
#v5-toolbar button{padding:6px 9px!important;font-size:11px!important}
.v12-channel-heading{margin-top:0!important}

.app-shell.v12-sidebar-collapsed .sidebar{width:0!important;min-width:0!important;padding:0!important;border:0!important;overflow:hidden!important}

body.v12-graph-view .graph-controls{margin:4px 0 6px!important;padding:5px 8px!important;min-height:34px!important;gap:10px!important}
body.v12-graph-view .graph-stage{height:calc(100dvh - 126px)!important;min-height:360px!important}
body.v12-graph-view .graph-top-actions button,body.v12-graph-view .graph-controls button{padding:6px 10px!important;font-size:11px!important}
body.v12-graph-view .graph-canvas{transform-origin:0 0;will-change:transform}
.v12-reading-dialog a{color:var(--accent)!important}
.v12-reading-dialog p,.v12-reading-dialog h3{color:var(--text)!important}
.v12-context-menu{color:var(--text)!important}

.v7-canvas-viewport{height:calc(100dvh - 158px)!important;min-height:340px!important}
.v8-zoom-hud{position:absolute!important;left:12px!important;right:auto!important;bottom:12px!important;float:none!important;margin:0!important}
body.v12-graph-view .graph-stage{height:calc(100dvh - 116px)!important}


/* V13 — stable canvas interactions, single minimaps and dedicated source index */
.v12-channel-heading{display:none!important}
.v12-board-toolbar{margin-top:0!important}
.v12-board-toolbar>b{display:none!important}
.v7-canvas-viewport{contain:none!important;overflow:auto!important;touch-action:none!important;overscroll-behavior:none!important;scrollbar-gutter:stable}
.v8-scaled-space{overflow:visible!important;contain:none!important}
.v7-spatial-board{overflow:visible!important;contain:none!important;will-change:transform}
.v7-object{touch-action:none;user-select:none}
.v7-object input,.v7-object textarea,.v7-object [contenteditable=true],.v7-object button{user-select:text;touch-action:auto}
.v7-canvas-viewport.is-panning{cursor:grabbing!important}
.v7-canvas-viewport.is-panning *{cursor:grabbing!important}
.v13-spatial-minimap{position:fixed;right:18px;bottom:18px;z-index:15000;width:230px;height:160px;min-width:150px;min-height:110px;max-width:min(42vw,440px);max-height:42vh;resize:both;overflow:hidden;background:color-mix(in srgb,var(--panel) 96%,transparent);border:1px solid color-mix(in srgb,var(--accent) 65%,var(--line));border-radius:11px;box-shadow:0 12px 36px #0009;backdrop-filter:blur(12px);display:flex;flex-direction:column}
.v13-spatial-minimap header{height:27px;flex:none;display:flex;align-items:center;justify-content:space-between;padding:0 9px;color:var(--muted);font:9px "DM Mono",monospace;letter-spacing:.12em;cursor:default;border-bottom:1px solid var(--line)}
.v13-spatial-minimap header small{letter-spacing:0;font-size:9px}
.v13-spatial-minimap svg{width:100%;height:calc(100% - 27px);display:block;background:radial-gradient(var(--line) 1px,transparent 1px);background-size:10px 10px;cursor:crosshair;touch-action:none}
.v13-map-dot{stroke:var(--panel);stroke-width:2;opacity:.95}
.v13-source{fill:#64b5e8}.v13-note{fill:#c7a7ff}.v13-image{fill:#e9b96c}.v13-project{fill:#7ed6b0}.v13-folder{fill:#b9c5d6}
.v13-map-window{fill:color-mix(in srgb,var(--accent) 13%,transparent);stroke:var(--accent);stroke-width:5;vector-effect:non-scaling-stroke}
.v13-spatial-minimap:after{content:"";position:absolute;right:2px;bottom:2px;width:10px;height:10px;border-right:2px solid var(--accent);border-bottom:2px solid var(--accent);opacity:.8;pointer-events:none}
.v8-graph-minimap{position:fixed!important;top:90px!important;right:20px!important;bottom:auto!important;z-index:16000!important;width:270px!important;height:190px!important;min-width:180px!important;min-height:125px!important;max-width:min(44vw,480px)!important;max-height:48vh!important;resize:both!important;overflow:hidden!important}
.v8-graph-minimap>svg{height:calc(100% - 43px)!important}
.v13-sources-drawer{position:fixed;right:0;top:0;bottom:0;width:min(390px,92vw);z-index:19000;background:var(--panel);color:var(--text);border-left:1px solid var(--line);box-shadow:-18px 0 60px #0009;padding:18px;display:flex;flex-direction:column;gap:12px;animation:v13-drawer-in .18s ease-out}
@keyframes v13-drawer-in{from{transform:translateX(18px);opacity:.6}to{transform:translateX(0);opacity:1}}
.v13-sources-drawer header{display:flex;justify-content:space-between;align-items:flex-start}
.v13-sources-drawer header small{font-size:9px;letter-spacing:.15em;color:var(--muted)}
.v13-sources-drawer h2{font-size:21px;margin:4px 0}
.v13-sources-drawer header p{font-size:11px;color:var(--muted);margin:0}
.v13-sources-drawer header button{background:transparent;border:0;color:var(--text);font-size:24px}
#v13-source-search{width:100%;padding:11px 12px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;outline:none}
.v13-source-list{overflow:auto;display:flex;flex-direction:column;gap:5px}
.v13-source-row{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:11px 12px;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;color:var(--text);cursor:pointer}
.v13-source-row:hover{border-color:var(--accent);background:var(--hover)}
.v13-source-row b{font-size:12px}.v13-source-row span,.v13-source-row small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.v13-empty{padding:15px;color:var(--muted);font-size:12px}
.v13-source-highlight{outline:2px solid var(--accent)!important;outline-offset:4px;transition:outline-color .2s}
.v13-graph-view .v8-graph-minimap{resize:both}
@media(max-width:700px){.v13-spatial-minimap{width:170px;height:120px;right:8px;bottom:8px}.v8-graph-minimap{width:200px!important;height:140px!important;right:8px!important;top:65px!important}}


/* V14 — interaction cleanup and content-first workspaces */
.view-root{padding-top:0!important;margin-top:0!important}
#v5-toolbar{margin-top:0!important;margin-bottom:4px!important;padding-top:4px!important;padding-bottom:4px!important;min-height:36px!important}
.v12-board-toolbar{margin-top:0!important;margin-bottom:4px!important;min-height:32px!important;padding:3px 8px!important}
.v7-canvas-viewport{margin-top:0!important;height:calc(100dvh - 104px)!important;min-height:320px!important;overflow:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:stable}
.v7-spatial-board{transform-origin:0 0!important;overflow:visible!important;contain:none!important;will-change:transform}
.v8-scaled-space{overflow:visible!important;contain:none!important}
.v7-object{contain:none!important;transform:translateZ(0);backface-visibility:hidden}
.v7-object-content{min-width:0;min-height:0;overflow:hidden}
.v7-object-grip{touch-action:none;user-select:none}
.v7-resize{touch-action:none}
.v13-canvas-note .note-card-main{height:100%;display:flex;min-height:0}
.v13-canvas-note .note-content{flex:1;min-height:100px;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.v13-canvas-note .note-content:empty:before{content:attr(data-placeholder);color:var(--muted);opacity:.7}
.v13-canvas-note h3,.v13-canvas-note .note-category{display:none!important}
.v13-overview-optin{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;margin:12px 0 2px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--text)}
.v13-overview-optin input{margin-top:3px}
.v13-overview-optin span{display:grid;gap:3px}
.v13-overview-optin small{font-size:11px;color:var(--muted);line-height:1.4}
.v7-object[data-v7-type="image"] .v7-object-content{height:calc(100% - 27px);display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.78fr);min-width:0;min-height:0}
.v7-object[data-v7-type="image"] .photo-object{display:contents!important;min-width:0;min-height:0}
.v7-object[data-v7-type="image"] .v8-photo-image{grid-column:1;grid-row:1;min-width:0;min-height:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#08111b;border-right:1px solid var(--line)}
.v7-object[data-v7-type="image"] .v8-photo-image img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.v7-object[data-v7-type="image"] .v8-photo-writing{grid-column:2;grid-row:1;display:flex!important;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;padding:10px}
.v7-object[data-v7-type="image"] .v8-photo-writing-head{flex:none}
.v7-object[data-v7-type="image"] .v8-photo-format{flex:none}
.v7-object[data-v7-type="image"] .v8-photo-editor{flex:1;min-height:0;width:100%;overflow:auto;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.v7-object[data-v7-type="image"] .v8-photo-editor:empty:before{content:attr(data-placeholder);color:var(--muted);opacity:.7}
.v5-minimap{position:fixed!important;top:88px!important;right:18px!important;bottom:auto!important;left:auto!important;width:240px!important;min-width:150px!important;min-height:120px!important;max-width:min(44vw,480px)!important;max-height:42vh!important;resize:both!important;overflow:auto!important;z-index:15000!important}
.v5-minimap-map{height:calc(100% - 26px)!important;min-height:90px!important}
.v8-graph-minimap{display:none!important}
.v13-spatial-minimap{position:fixed!important;right:18px!important;bottom:18px!important;top:auto!important;resize:both!important;min-width:160px!important;min-height:110px!important;overflow:hidden!important}
.v13-spatial-minimap svg{width:100%;height:calc(100% - 27px);min-height:0;touch-action:none}
.v13-map-dot{stroke:var(--bg);stroke-width:2;opacity:.95}
.v13-source{fill:#e4b85b}.v13-note{fill:#a99ce8}.v13-image{fill:#4fc4d2}.v13-project{fill:#78b98b}.v13-folder{fill:#9ca8b6}
.v13-map-window{fill:color-mix(in srgb,var(--accent) 12%,transparent);stroke:var(--accent);stroke-width:4;stroke-dasharray:10 7;vector-effect:non-scaling-stroke}
.v13-sources-drawer{position:fixed;z-index:22000;right:0;top:0;bottom:0;width:min(390px,92vw);display:flex;flex-direction:column;padding:18px;background:var(--panel);border-left:1px solid var(--line);box-shadow:-18px 0 55px #0009;color:var(--text)}
.v13-sources-drawer header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:12px}
.v13-sources-drawer header h2{font-size:21px;margin:4px 0}
.v13-sources-drawer header p{font-size:11px;color:var(--muted);margin:0}
.v13-sources-drawer header small{font:9px "DM Mono",monospace;letter-spacing:.14em;color:var(--muted)}
.v13-sources-drawer header button{border:0;background:transparent;color:var(--text);font-size:23px}
#v13-source-search{width:100%;padding:10px 12px;background:var(--bg);color:var(--text);border:1px solid var(--line);border-radius:8px;margin-bottom:10px}
.v13-source-list{flex:1;overflow:auto;display:flex;flex-direction:column;gap:5px}
.v13-source-row{display:flex;flex-direction:column;gap:4px;text-align:left;padding:11px;background:var(--panel-2);border:1px solid var(--line);border-radius:8px;color:var(--text)}
.v13-source-row:hover{border-color:var(--accent)}
.v13-source-row span,.v13-source-row small{font-size:10px;color:var(--muted);overflow-wrap:anywhere}
.v13-source-highlight{outline:2px solid var(--accent)!important;outline-offset:3px}
.v7-context-menu,.v12-context-menu{z-index:24000!important;max-height:min(75vh,600px);overflow:auto}
.v12-context-menu button{min-height:38px}
@media(max-width:760px){
 .v7-object[data-v7-type="image"] .v7-object-content{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(130px,.8fr) minmax(130px,1fr)!important}
 .v7-object[data-v7-type="image"] .v8-photo-image{grid-column:1;grid-row:1}
 .v7-object[data-v7-type="image"] .v8-photo-writing{grid-column:1;grid-row:2}
 .v5-minimap{top:auto!important;bottom:14px!important;width:190px!important}
}


/* V15 — graph camera, card colour, compact image objects and aligned toolbars */
.v7-object{border:1px solid color-mix(in srgb,var(--v14-object-colour,var(--line)) 72%,var(--line))!important;box-shadow:0 0 0 1px color-mix(in srgb,var(--v14-object-colour,var(--line)) 16%,transparent),0 10px 30px #0003}
.v7-object .v7-object-grip{border-bottom:1px solid color-mix(in srgb,var(--v14-object-colour,var(--line)) 42%,var(--line))!important;background:color-mix(in srgb,var(--v14-object-colour,var(--panel-2)) 24%,var(--panel-2))!important}
.v7-object .v7-object-content{background:color-mix(in srgb,var(--v14-object-colour,var(--panel)) 7%,var(--panel))!important}
.v14-object-colour{display:inline-flex;width:16px;height:16px;align-items:center;justify-content:center;border-radius:50%;overflow:hidden;border:1px solid color-mix(in srgb,var(--v14-object-colour,var(--line)) 60%,var(--line));cursor:pointer}
.v14-object-colour input{width:24px;height:24px;padding:0;border:0;background:transparent;cursor:pointer}
.v7-note-dot{display:none!important}
.v7-object.v7-multi-selected{outline:2px solid var(--accent)!important;outline-offset:4px}
.v7-object[data-v7-type="image"]{min-width:180px;min-height:150px}
.v7-object[data-v7-type="image"] .v7-object-content{height:calc(100% - 27px);display:block!important;overflow:visible!important}
.v7-object[data-v7-type="image"] .photo-object{display:block!important;position:relative;width:100%;height:100%;min-height:0;overflow:visible}
.v7-object[data-v7-type="image"] .v8-photo-image{width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#08111b;border:0}
.v7-object[data-v7-type="image"] .v8-photo-image img{display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.v7-object[data-v7-type="image"] .v8-photo-writing{display:none!important}
.v7-object[data-v7-type="image"] .v14-image-toggle{position:absolute;right:-24px;top:50%;transform:translateY(-50%);width:24px;height:42px;border:1px solid var(--line);border-left:0;border-radius:0 8px 8px 0;background:var(--panel-2);color:var(--text);font-size:19px;line-height:1;cursor:pointer;z-index:4}
.v7-object[data-v7-type="image"].v14-image-expanded{width:620px!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v7-object-content{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(220px,.78fr)!important}
.v7-object[data-v7-type="image"].v14-image-expanded .photo-object{display:contents!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-image{grid-column:1;grid-row:1}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{grid-column:2;grid-row:1;display:flex!important;flex-direction:column;min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;padding:10px;background:var(--panel)}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-editor{flex:1;min-height:0;overflow:auto;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;cursor:text}
.v7-object[data-v7-type="image"].v14-image-expanded .v14-image-toggle{right:auto;left:calc(100% - 24px);top:50%;border-left:1px solid var(--line);border-radius:8px 0 0 8px}
.v5-toolbar,.v12-board-toolbar{box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;margin-left:0!important;margin-right:0!important}
.v5-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:42px!important;padding:5px 9px!important;margin-bottom:6px!important}
.v12-board-toolbar{min-height:42px!important;padding:5px 9px!important;margin-top:0!important;margin-bottom:6px!important}
.v7-canvas-viewport{scroll-behavior:auto!important}

/* Ensure the note's colour is carried by the whole object, not a narrow accent strip. */
.v7-object[data-v7-type="note"] .note-card{border:1px solid color-mix(in srgb,var(--v14-object-colour) 72%,var(--line))!important;border-left:1px solid color-mix(in srgb,var(--v14-object-colour) 72%,var(--line))!important;background:color-mix(in srgb,var(--v14-object-colour) 9%,var(--card))!important}
.v7-object[data-v7-type="note"] .note-card-main{background:transparent!important}


/* V16: stable first paint, image sidecar that never resizes the image, and one graph minimap. */
.v7-canvas-viewport{overflow:auto!important;contain:layout paint!important;overscroll-behavior:contain}
.v7-spatial-board{will-change:transform;backface-visibility:hidden}
.v13-spatial-minimap{resize:both!important;overflow:hidden!important;min-width:170px!important;min-height:120px!important;max-width:min(48vw,520px)!important;max-height:48vh!important;right:16px!important;bottom:16px!important;top:auto!important;left:auto!important;z-index:15000!important}
.v13-spatial-minimap svg{display:block;width:100%!important;height:calc(100% - 27px)!important;min-height:80px!important}
.v16-graph-minimap{position:fixed!important;right:18px!important;bottom:18px!important;top:auto!important;left:auto!important;z-index:16000!important;width:250px;height:174px;min-width:170px;min-height:120px;max-width:min(48vw,520px);max-height:48vh;resize:both;overflow:auto;background:color-mix(in srgb,var(--panel) 96%,transparent);border:1px solid color-mix(in srgb,var(--accent) 65%,var(--line));border-radius:12px;box-shadow:0 14px 40px #0009;backdrop-filter:blur(12px);display:flex;flex-direction:column}
.v16-graph-minimap header{height:34px;min-height:34px;display:flex;align-items:center;justify-content:space-between;padding:0 9px;border-bottom:1px solid var(--line);font:9px "DM Mono",monospace;letter-spacing:.13em;color:var(--muted)}
.v16-graph-zoom{display:flex;align-items:center;gap:4px;letter-spacing:0}
.v16-graph-zoom button{min-width:25px;height:24px;border:1px solid var(--line);border-radius:6px;background:var(--panel-2);color:var(--text);font-size:12px;cursor:pointer}
.v16-graph-zoom output{min-width:38px;text-align:center;font-size:10px}
.v16-graph-minimap svg{display:block;flex:1;width:calc(100% - 14px);height:calc(100% - 43px);min-height:75px;margin:5px 7px;background:radial-gradient(var(--line) 1px,transparent 1px);background-size:10px 10px;touch-action:none;cursor:crosshair}
.v16-gmini-planet{fill:var(--accent);stroke:color-mix(in srgb,var(--accent) 40%,white);stroke-width:3;filter:drop-shadow(0 0 6px var(--accent))}
.v16-gmini-window{fill:color-mix(in srgb,var(--accent) 10%,transparent);stroke:var(--text);stroke-width:5;stroke-dasharray:18 10;fill-opacity:.12;pointer-events:none}
.v7-object[data-v7-type="image"].v14-image-expanded{width:calc(var(--v16-image-base-width,360px) + 290px)!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v7-object-content{display:grid!important;grid-template-columns:var(--v16-image-base-width,360px) minmax(220px,1fr)!important;overflow:hidden!important}
.v7-object[data-v7-type="image"].v14-image-expanded .photo-object{display:contents!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-image{grid-column:1!important;grid-row:1!important;width:var(--v16-image-base-width,360px)!important;min-width:var(--v16-image-base-width,360px)!important;height:100%!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-image img{width:100%!important;height:100%!important;object-fit:contain!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important}
.v7-object[data-v7-type="image"] .v14-image-toggle{z-index:8}

/* V17 channel toolbar and graph minimap markers */
.v17-channel-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;box-sizing:border-box;width:100%;padding:9px 12px;margin:0 0 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel);color:var(--muted)}
.v17-channel-tools label{display:flex;align-items:center;gap:7px;font-size:12px}
.v17-channel-tools button,.v17-channel-tools select{min-height:34px;padding:6px 11px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--text)}
.v16-gmini-active{fill:none;stroke:var(--accent);stroke-width:8;filter:drop-shadow(0 0 8px var(--accent))}.v16-gmini-note{fill:#d5c8ff;stroke:#fff;stroke-width:2}


/* V18: visible, genuinely draggable minimap resize affordances and item-specific colour/text. */
.v13-spatial-minimap,.v16-graph-minimap{position:fixed!important;resize:none!important;overflow:hidden!important}
.v13-spatial-minimap,.v16-graph-minimap{isolation:isolate}
.v17-map-resize{position:absolute!important;right:1px!important;bottom:1px!important;width:19px!important;height:19px!important;z-index:100!important;display:block!important;cursor:nwse-resize!important;touch-action:none!important;background:linear-gradient(135deg,transparent 0 38%,var(--accent) 39% 46%,transparent 47% 58%,var(--accent) 59% 66%,transparent 67%)!important;border-radius:0 0 9px 0!important;pointer-events:auto!important}
.v13-spatial-minimap svg{height:calc(100% - 27px)!important}
.v16-graph-minimap svg{height:calc(100% - 43px)!important}
.v18-text-size{display:inline-flex!important;align-items:center!important;gap:3px!important;margin-left:7px!important;color:var(--muted)!important;font-size:10px!important}
.v18-text-size select{max-width:54px!important;min-width:43px!important;height:23px!important;padding:1px 3px!important;border:1px solid var(--line)!important;border-radius:5px!important;background:var(--panel-2)!important;color:var(--text)!important;font-size:10px!important}
.v7-object[data-v7-type="note"] .v7-object-content{background:color-mix(in srgb,var(--v14-object-colour) 20%,var(--panel))!important}
.v7-object[data-v7-type="note"] .note-card{background:color-mix(in srgb,var(--v14-object-colour) 27%,var(--card))!important;border-left:4px solid var(--v14-object-colour)!important}
.v7-object[data-v7-type="note"] .note-card-main{background:transparent!important}
.v7-object[data-v7-type="note"] .note-content{font-size:var(--v18-note-font-size,14px)}
#v5-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:42px}
#v5-toolbar .v12-toolbar-spacer{display:none!important}
#v5-toolbar>*{flex:0 0 auto}


/* V19: context menus remain fully on-screen even when opened near the bottom edge. */
.v12-context-menu{max-height:calc(100vh - 20px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;box-sizing:border-box!important;z-index:30000!important}
.v12-context-menu button{flex:none!important}
.v7-object[data-v7-type="note"] .note-card{background:color-mix(in srgb,var(--v14-object-colour) 30%,var(--card))!important;border-left:5px solid var(--v14-object-colour)!important}
.v7-object[data-v7-type="note"] .note-card-main{background:color-mix(in srgb,var(--v14-object-colour) 24%,var(--card))!important}
.v7-object[data-v7-type="note"] .note-card .note-content{background:transparent!important}
.v7-object[data-v7-type="note"] .v7-object-content{background:color-mix(in srgb,var(--v14-object-colour) 25%,var(--panel))!important}
.v7-object[data-v7-type="note"] .v7-object-grip{background:color-mix(in srgb,var(--v14-object-colour) 45%,var(--panel-2))!important;border-bottom-color:var(--v14-object-colour)!important}
.v16-graph-minimap svg .v16-gmini-window{pointer-events:all;cursor:grab}
.v13-spatial-minimap svg .v13-map-window{pointer-events:all;cursor:grab}


/* V20: shared spatial controls remain usable in every channel. */
.v12-board-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.v12-board-toolbar [data-v7-global-grid]{min-width:82px}
.v12-board-toolbar .v7-connection-toggle{white-space:nowrap}


/* V21: map cards at their real relative dimensions; keep graph transforms on the compositor. */
#v13-spatial-minimap svg{display:block;width:100%;height:calc(100% - 34px);overflow:hidden}
#v13-spatial-minimap .v13-map-dot{stroke-width:1.5;vector-effect:non-scaling-stroke;opacity:.96}
#graph-canvas{transform-origin:0 0;will-change:transform;backface-visibility:hidden}
#graph-stage{overscroll-behavior:contain;touch-action:none}
#graph-canvas .mini-planet{will-change:transform}


/* V24 — Diary workspace */
.journal-page{max-width:1180px;margin:0 auto;padding:clamp(18px,3vw,34px);color:var(--text)}
.journal-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:8px 0 26px}
.journal-heading h1{font-size:clamp(30px,4vw,42px);font-weight:650;letter-spacing:-.04em;margin:4px 0 7px}
.journal-subtitle{color:var(--muted);margin:0;font-size:14px}
.journal-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px;border:1px solid var(--line);background:var(--panel);border-radius:13px;margin-bottom:24px}
.journal-tools input{min-width:150px;max-width:230px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--text);padding:10px 12px;font:inherit;outline:none}
.journal-tools input:focus,.journal-fields input:focus{border-color:var(--accent)}
.journal-search{display:flex;align-items:center;gap:8px;color:var(--muted);flex:1;min-width:220px}
.journal-search input{width:100%;max-width:none}
.journal-mode{display:flex;gap:4px;margin-left:auto;padding:3px;background:var(--panel-2);border:1px solid var(--line);border-radius:9px}
.journal-mode button,.journal-calendar-head button{border:0;border-radius:7px;background:transparent;color:var(--muted);padding:8px 12px;cursor:pointer;font:inherit}
.journal-mode button.active{background:var(--accent-soft,var(--panel));color:var(--text)}
.journal-timeline{max-width:900px;margin:0 auto;display:grid;gap:12px}
.journal-entry{display:grid;grid-template-columns:74px minmax(0,1fr) 32px;gap:18px;align-items:start;padding:18px 16px;border:1px solid var(--line);border-radius:13px;background:var(--panel);transition:border-color .15s,transform .15s}
.journal-entry:hover{border-color:var(--accent);transform:translateY(-1px)}
.journal-entry-date{display:flex;flex-direction:column;align-items:center;gap:2px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.06em;padding-top:3px}
.journal-entry-date strong{font-size:28px;line-height:1.2;color:var(--text);font-weight:600;letter-spacing:-.04em}
.journal-entry-body{display:flex;flex-direction:column;gap:8px;min-width:0;text-align:left;background:none;border:0;color:inherit;cursor:pointer;padding:0;font:inherit}
.journal-entry-title{font-size:17px;font-weight:620}
.journal-entry-snippet{font-size:13px;line-height:1.65;color:var(--muted);overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.journal-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.journal-tags i{font-style:normal;font-size:10px;color:var(--accent);background:var(--panel-2);border:1px solid var(--line);padding:3px 8px;border-radius:20px}
.journal-entry-delete{opacity:.45;align-self:start}
.journal-entry:hover .journal-entry-delete{opacity:1}
.journal-empty{margin:70px auto;max-width:440px;text-align:center;padding:35px 24px;color:var(--muted)}
.journal-empty-mark{font-size:38px;color:var(--accent);margin-bottom:12px}
.journal-empty h2{color:var(--text);font-size:20px;margin:0 0 8px}
.journal-empty p{font-size:13px;line-height:1.6;margin:0 0 18px}
.journal-calendar{max-width:760px;margin:0 auto;border:1px solid var(--line);background:var(--panel);border-radius:15px;padding:18px}
.journal-calendar-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}
.journal-calendar-head h2{font-size:18px;margin:0;font-weight:600}
.journal-calendar-head button{font-size:24px;min-width:38px}
.journal-weekdays,.journal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.journal-weekdays span{text-align:center;color:var(--muted);font-size:11px;padding:8px 0}
.journal-day,.journal-calendar-blank{min-height:68px;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--text);position:relative}
.journal-day{cursor:pointer;font:inherit}
.journal-day:hover{border-color:var(--accent)}
.journal-day.today{outline:1px solid var(--accent)}
.journal-day.has-entry{background:color-mix(in srgb,var(--accent) 12%,var(--panel-2))}
.journal-day i{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);width:6px;height:6px;border-radius:50%;background:var(--accent);font-size:0}
.journal-calendar-hint{color:var(--muted);font-size:11px;margin:15px 0 0}
.journal-filter-note{max-width:900px;margin:0 auto 12px;color:var(--muted);font-size:12px}
.journal-filter-note button{background:none;border:0;color:var(--accent);cursor:pointer}
.journal-editor{width:min(760px,calc(100vw - 28px));max-width:none;max-height:calc(100vh - 28px);overflow:auto}
.journal-editor form{display:flex;flex-direction:column;gap:0}
.journal-fields{display:grid;gap:14px;padding:18px 0}
.journal-fields>label{display:grid;gap:7px;color:var(--muted);font-size:12px}
.journal-fields>label span{font-weight:400;opacity:.75}
.journal-fields input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;background:var(--panel-2);color:var(--text);padding:11px 12px;font:inherit}
.journal-format{display:flex;gap:6px;padding:8px;border:1px solid var(--line);border-radius:9px;background:var(--panel)}
.journal-format button{min-width:34px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;background:var(--panel-2);color:var(--text);cursor:pointer}
.journal-richtext{min-height:270px;max-height:48vh;overflow:auto;padding:17px;border:1px solid var(--line);border-radius:9px;background:var(--panel-2);color:var(--text);line-height:1.75;outline:none}
.journal-richtext:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.journal-richtext blockquote{border-left:3px solid var(--accent);margin-left:0;padding-left:14px;color:var(--muted)}
.journal-richtext ul,.journal-richtext ol{padding-left:24px}
@media(max-width:650px){.journal-page{padding:14px}.journal-heading{align-items:flex-start;flex-direction:column}.journal-tools{align-items:stretch}.journal-search{min-width:100%}.journal-tools input{max-width:none}.journal-mode{margin-left:0}.journal-entry{grid-template-columns:54px minmax(0,1fr) 26px;gap:10px;padding:13px 10px}.journal-day,.journal-calendar-blank{min-height:48px}.journal-calendar{padding:10px}.journal-weekdays,.journal-days{gap:3px}}

/* V25 minimap refinement: show each object at its true relative position and size. */
.v13-map-object{stroke:var(--panel);stroke-width:1.5;vector-effect:non-scaling-stroke;opacity:.94}
.v13-map-object.v13-source{fill:#64b5e8}
.v13-map-object.v13-note{fill:#c7a7ff}
.v13-map-object.v13-image{fill:#e9b96c}
.v13-map-object.v13-project{fill:#7ed6b0}
.v13-map-object.v13-folder{fill:#b9c5d6}
.v13-spatial-minimap svg{overflow:hidden;touch-action:none}
.v13-spatial-minimap .v13-map-window{pointer-events:all;cursor:grab}
body.journal-active #v5-toolbar,
body.journal-active .v7-toolbar-group,
body.journal-active .v12-board-toolbar,
body.journal-active #v13-spatial-minimap,
body.journal-active .v8-graph-minimap,
body.journal-active .v16-graph-minimap{display:none!important}

/* V25: keep graph planets stable under pointer movement; do not animate drag frames. */
.mini-planet.v25-planet-dragging,
.mini-planet.v25-planet-dragging .planet-sphere{transition:none!important;animation:none!important;cursor:grabbing!important}
.mini-planet{touch-action:none;user-select:none;-webkit-user-select:none}

/* V26: journal is a document view, never a spatial canvas. */
body.journal-active #v5-toolbar,
body.journal-active .v7-toolbar-group,
body.journal-active .v12-board-toolbar,
body.journal-active #v13-spatial-minimap,
body.journal-active .v8-graph-minimap,
body.journal-active .v16-graph-minimap,
body.journal-active .v5-minimap{display:none!important}

/* V28: keep the graph's large, layered planet artwork cheap to repaint while panning. */
.graph-stage.v7-graph-panning,
.graph-stage.v7-graph-panning .graph-canvas{cursor:grabbing!important}
.graph-stage.v7-graph-panning .graph-canvas *,
.graph-canvas.v28-graph-moving *{
  transition:none!important;
  animation-play-state:paused!important;
  filter:none!important;
}
.graph-stage.v7-graph-panning .planet-sphere,
.graph-stage.v7-graph-panning .mini-planet:hover .planet-sphere{
  box-shadow:none!important;
}
.graph-stage.v7-graph-panning .mini-planet:hover{transform:translate(-50%,-50%)!important}
.graph-canvas{backface-visibility:hidden}

.graph-stage.v28-planet-moving .mini-planet,
.graph-stage.v28-planet-moving .mini-planet *,
.graph-stage.v28-planet-moving .planet-world{
  transition:none!important;
  animation-play-state:paused!important;
  filter:none!important;
}
.graph-stage.v28-planet-moving .planet-sphere{box-shadow:none!important}


/* V29: minimaps use viewport-relative world geometry, not offsetLeft guesses. */
#v13-spatial-minimap{pointer-events:auto!important}
#v13-spatial-minimap svg{overflow:hidden!important}
#v13-spatial-minimap .v13-map-window{fill:rgba(70,205,220,.12)!important;stroke:#48c8d8!important;stroke-width:5!important;stroke-dasharray:18 12!important;vector-effect:non-scaling-stroke!important}
#v13-spatial-minimap .v13-map-object{stroke:rgba(10,25,38,.85)!important;stroke-width:1.5!important;vector-effect:non-scaling-stroke!important}
.graph-canvas{transform-origin:0 0;backface-visibility:hidden;will-change:transform}
.graph-canvas .mini-planet{will-change:transform;contain:layout paint style}
.graph-stage.v7-graph-panning .graph-canvas *,
.graph-stage.v28-planet-moving .graph-canvas *{
  transition:none!important;
  animation-play-state:paused!important;
  filter:none!important;
  backdrop-filter:none!important;
}
.graph-stage.v7-graph-panning .planet-sphere,
.graph-stage.v28-planet-moving .planet-sphere,
.graph-stage.v7-graph-panning .mini-planet,
.graph-stage.v28-planet-moving .mini-planet{
  box-shadow:none!important;
}

/* V32 — camera-centred spatial minimap */
#v13-spatial-minimap svg{overflow:hidden!important}
#v13-spatial-minimap .v13-map-crosshair{stroke:rgba(72,200,216,.28);stroke-width:1.5;stroke-dasharray:4 8;vector-effect:non-scaling-stroke;pointer-events:none}
#v13-spatial-minimap .v13-map-window{fill:rgba(72,200,216,.12)!important;stroke:#48c8d8!important;stroke-width:5!important;stroke-dasharray:18 12!important;vector-effect:non-scaling-stroke!important;pointer-events:all;cursor:grab}
#v13-spatial-minimap .v13-map-window:active{cursor:grabbing}


/* V34: improve spatial minimap legibility without changing main-canvas geometry. */
#v13-spatial-minimap .v13-map-object{
  stroke:rgba(10,25,38,.65)!important;
  stroke-width:.8!important;
}
#v13-spatial-minimap .v13-map-window{
  fill:rgba(72,200,216,.045)!important;
  stroke:#48c8d8!important;
  stroke-width:2!important;
  stroke-dasharray:9 7!important;
  vector-effect:non-scaling-stroke!important;
}
#v13-spatial-minimap .v13-map-crosshair{
  stroke:rgba(72,200,216,.19)!important;
  stroke-width:.8!important;
  stroke-dasharray:3 7!important;
}


/* V36: the floating Fit chip duplicated the toolbar's Fit all control and
   could drift partly outside the Portfolio canvas. Keep zoom controls only. */
.v8-zoom-hud [data-v8-fit-all]{display:none!important}
.v8-zoom-hud{left:12px!important;right:auto!important;bottom:12px!important;max-width:calc(100% - 24px)!important}


/* V37 — accurate coloured minimap objects and tightly fitted image cards */
#v13-spatial-minimap .v13-map-object{opacity:1!important;stroke:rgba(7,20,31,.9)!important;stroke-width:1.2!important}
#v13-spatial-minimap .v13-map-object.v13-source{fill:#d7b96c!important}
#v13-spatial-minimap .v13-map-window{fill:rgba(72,200,216,.08)!important;stroke:#48c8d8!important;stroke-width:3!important;stroke-dasharray:12 9!important}
.v7-object[data-v7-type="image"] .v8-photo-image{background:transparent!important}
.v7-object[data-v7-type="image"] .v8-photo-image img{object-fit:contain!important;background:transparent!important}


/* V38 — live minimap colour refresh, persistent per-channel cameras, independent image notes */
.v7-object[data-v7-type="image"]{overflow:visible!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v7-object-content{display:block!important;overflow:visible!important}
.v7-object[data-v7-type="image"].v14-image-expanded .photo-object{display:block!important;position:relative!important;width:100%!important;height:100%!important;overflow:visible!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-image{width:100%!important;height:100%!important;min-height:0!important;border:0!important}
.v7-object[data-v7-type="image"] .v8-photo-writing{
  display:none!important;
}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{
  display:flex!important;position:absolute!important;left:calc(100% + 12px)!important;top:0!important;
  width:320px;height:300px;min-width:200px;min-height:140px;max-width:65vw;max-height:70vh;
  resize:both!important;overflow:auto!important;z-index:30!important;
  border:1px solid var(--line)!important;border-radius:9px!important;
  background:var(--panel)!important;box-shadow:0 14px 36px #0007!important;
}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing-head,
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-format,
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-editor{flex-shrink:0}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-editor{flex:1;min-height:0;overflow:auto}


/* V41 — clean image surface; the notes drawer resizes independently. */
.v7-object[data-v7-type="image"]{
  overflow:visible!important;
  border:0!important;outline:0!important;box-shadow:none!important;
  background:transparent!important;padding:0!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  overflow:visible!important;padding:0!important;margin:0!important;
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
}
.v7-object[data-v7-type="image"] .photo-object,
.v7-object[data-v7-type="image"] .v8-photo-image{
  border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;
}
.v7-object[data-v7-type="image"] .v8-photo-writing{
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{
  width:320px!important;height:300px!important;min-width:220px!important;min-height:160px!important;
  max-width:65vw!important;max-height:70vh!important;resize:both!important;overflow:auto!important;
  border:1px solid color-mix(in srgb,var(--line) 72%,transparent)!important;
  border-radius:10px!important;box-shadow:0 10px 28px #0005!important;
}


/* STARSPEC V43 — stable image annotation drawer, four-corner spatial minimap, lighter redraws */
.v7-object[data-v7-type="image"]{
  overflow:visible!important;
}
.v7-object[data-v7-type="image"] .v7-object-content,
.v7-object[data-v7-type="image"] .photo-object{
  overflow:visible!important;
}
.v7-object[data-v7-type="image"] .v8-photo-writing{
  box-sizing:border-box!important;
  resize:both!important;
  overflow:hidden!important;
  min-width:200px!important;
  min-height:140px!important;
  max-width:min(60vw,720px)!important;
  max-height:70vh!important;
}
.v7-object[data-v7-type="image"] .v8-photo-writing-head,
.v7-object[data-v7-type="image"] .v8-photo-format{
  flex:none!important;
}
.v7-object[data-v7-type="image"] .v8-photo-editor{
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  overflow:auto!important;
  overflow-wrap:anywhere!important;
}
#v13-spatial-minimap{
  resize:none!important;
  overflow:visible!important;
  max-width:min(60vw,720px)!important;
  max-height:70vh!important;
}
#v13-spatial-minimap>svg{
  width:100%!important;
  height:calc(100% - 27px)!important;
  overflow:hidden!important;
}
#v13-spatial-minimap:after{display:none!important}
#v13-spatial-minimap .v43-map-resize{
  position:absolute!important;
  z-index:10!important;
  display:block!important;
  width:16px!important;
  height:16px!important;
  border:0!important;
  background:transparent!important;
  touch-action:none!important;
  pointer-events:auto!important;
}
#v13-spatial-minimap .v43-map-resize:before{
  content:"";
  position:absolute;
  width:8px;height:8px;
  border-color:var(--accent);
  border-style:solid;
  opacity:.95;
}
#v13-spatial-minimap .v43-map-resize-nw{left:-2px;top:-2px;cursor:nwse-resize}
#v13-spatial-minimap .v43-map-resize-nw:before{left:3px;top:3px;border-width:2px 0 0 2px;border-radius:3px 0 0}
#v13-spatial-minimap .v43-map-resize-ne{right:-2px;top:-2px;cursor:nesw-resize}
#v13-spatial-minimap .v43-map-resize-ne:before{right:3px;top:3px;border-width:2px 2px 0 0;border-radius:0 3px 0 0}
#v13-spatial-minimap .v43-map-resize-sw{left:-2px;bottom:-2px;cursor:nesw-resize}
#v13-spatial-minimap .v43-map-resize-sw:before{left:3px;bottom:3px;border-width:0 0 2px 2px;border-radius:0 0 0 3px}
#v13-spatial-minimap .v43-map-resize-se{right:-2px;bottom:-2px;cursor:nwse-resize}
#v13-spatial-minimap .v43-map-resize-se:before{right:3px;bottom:3px;border-width:0 2px 2px 0;border-radius:0 0 3px}
#v13-spatial-minimap .v43-map-resize:hover:before{width:10px;height:10px;opacity:1}

/* STARSPEC V44 — image object resizing uses a stable header/content flex column */
.v7-object[data-v7-type="image"]{display:flex!important;flex-direction:column!important;box-sizing:border-box!important;overflow:visible!important}
.v7-object[data-v7-type="image"]>.v7-object-grip{flex:0 0 29px!important;height:29px!important;min-height:29px!important;width:100%!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"]>.v7-object-content{flex:1 1 auto!important;height:auto!important;min-height:0!important;min-width:0!important;width:100%!important;display:block!important;overflow:visible!important;padding:0!important;margin:0!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"] .photo-object{position:relative!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;overflow:visible!important}
.v7-object[data-v7-type="image"] .v8-photo-image{display:flex!important;flex:1 1 auto!important;width:100%!important;height:100%!important;min-height:0!important;min-width:0!important;overflow:hidden!important;box-sizing:border-box!important}


/* STARSPEC V45 — keep image title strip locked to the resized image frame. */
.v7-object[data-v7-type="image"]{box-sizing:border-box!important;min-width:120px!important}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  display:flex!important;align-self:stretch!important;flex:0 0 29px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  height:29px!important;box-sizing:border-box!important;overflow:hidden!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip>span:first-child{
  min-width:0!important;flex:1 1 auto!important;overflow:hidden!important;
  text-overflow:ellipsis!important;white-space:nowrap!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content,
.v7-object[data-v7-type="image"] .photo-object,
.v7-object[data-v7-type="image"] .v8-photo-image{
  width:100%!important;min-width:0!important;box-sizing:border-box!important;
}

/* STARSPEC V46 — image grip follows the actual resized frame, including when notes are open. */
.v7-object[data-v7-type="image"]{
  display:flex!important;flex-direction:column!important;
  min-width:120px!important;max-width:none!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  position:relative!important;inset:auto!important;
  display:flex!important;flex:0 0 29px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  align-self:stretch!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"].v14-image-expanded{}
.v7-object[data-v7-type="image"]>.v7-object-content{
  flex:1 1 auto!important;width:100%!important;min-width:0!important;
  min-height:0!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
}

/* V46: keep the image title strip over the image only; notes remain an independent sidecar. */
.v7-object[data-v7-type="image"]{display:flex!important;flex-direction:column!important;min-width:120px!important;max-width:none!important}
.v7-object[data-v7-type="image"].v14-image-expanded{width:auto!important}
.v7-object[data-v7-type="image"]>.v7-object-grip{position:relative!important;inset:auto!important;display:flex!important;width:100%!important;flex:0 0 29px!important;max-width:100%!important;align-self:stretch!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"]>.v7-object-content{display:block!important;position:relative!important;width:100%!important;height:calc(100% - 29px)!important;flex:1 1 auto!important;min-width:0!important;min-height:0!important;overflow:visible!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"] .photo-object{display:block!important;position:relative!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:visible!important}
.v7-object[data-v7-type="image"] .v8-photo-image{display:flex!important;position:relative!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important}
.v7-object[data-v7-type="image"] .v8-photo-writing{display:none!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{display:flex!important;position:absolute!important;left:calc(100% + 12px)!important;top:0!important;width:320px!important;height:300px!important;min-width:200px!important;min-height:140px!important;max-width:min(60vw,720px)!important;max-height:70vh!important;resize:both!important;overflow:hidden!important;z-index:30!important;box-sizing:border-box!important}


/* STARSPEC V48 — reliable image frame, minimap colours and clean graph labels */
.v7-object[data-v7-type="image"]{display:flex!important;flex-direction:column!important;overflow:visible!important;min-width:120px!important;min-height:120px!important;}
.v7-object[data-v7-type="image"]>.v7-object-grip{flex:0 0 29px!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
.v7-object[data-v7-type="image"]>.v7-object-content{display:block!important;position:relative!important;flex:1 1 0!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;overflow:visible!important;box-sizing:border-box!important;}
.v7-object[data-v7-type="image"] .photo-object{display:block!important;position:relative!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;}
.v7-object[data-v7-type="image"] .v8-photo-image{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important;box-sizing:border-box!important;}
.v7-object[data-v7-type="image"] .v8-photo-image img{display:block!important;flex:0 1 auto!important;width:auto!important;height:auto!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;}
.v7-object[data-v7-type="image"] .v8-photo-writing{display:none!important;}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{display:flex!important;position:absolute!important;left:calc(100% + 12px)!important;top:0!important;width:320px!important;height:300px!important;min-width:200px!important;min-height:140px!important;max-width:min(60vw,720px)!important;max-height:70vh!important;resize:both!important;overflow:hidden!important;z-index:30!important;box-sizing:border-box!important;}
.mini-planet{overflow:visible!important;background:transparent!important;border:0!important;outline:0!important;box-shadow:none!important;filter:none!important;}
.planet-name,.mini-planet small{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;}
.planet-name{top:calc(100% + 7px)!important;font-size:12px!important;color:var(--text)!important;z-index:20!important;text-shadow:0 2px 8px #000!important;}
.mini-planet small{top:calc(100% + 24px)!important;color:var(--muted)!important;}
.v48-planet-menu{position:fixed;z-index:100000;min-width:180px;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--panel);box-shadow:0 12px 35px #0009;display:flex;flex-direction:column;gap:4px;}
.v48-planet-menu b{padding:6px 8px;color:var(--muted);font-size:11px;letter-spacing:.08em;}
.v48-planet-menu button{border:0;border-radius:6px;background:transparent;color:var(--text);padding:8px 10px;text-align:left;cursor:pointer;}
.v48-planet-menu button:hover{background:var(--hover);}
.v18-import-search{position:sticky;top:0;width:100%;box-sizing:border-box;margin:8px 0;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);color:var(--text);}
.v18-import-results{display:flex;flex-direction:column;gap:3px;}
.v18-import-results [hidden],.v18-import-empty[hidden]{display:none!important;}
.v18-import-results small{display:block;color:var(--muted);font-size:10px;margin-top:3px;}


/* STARSPEC V49 — final layout corrections */
.v7-object[data-v7-type="image"]{
  display:flex!important;flex-direction:column!important;
  box-sizing:border-box!important;min-width:140px!important;min-height:140px!important;
  overflow:visible!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  position:relative!important;inset:auto!important;display:flex!important;
  flex:0 0 30px!important;width:100%!important;height:30px!important;
  min-width:0!important;max-width:100%!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  display:block!important;position:relative!important;
  flex:1 1 auto!important;width:100%!important;
  height:calc(100% - 30px)!important;min-width:0!important;min-height:100px!important;
  overflow:hidden!important;box-sizing:border-box!important;padding:0!important;margin:0!important;
}
.v7-object[data-v7-type="image"] .photo-object{
  display:block!important;position:relative!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:100px!important;overflow:visible!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:100px!important;overflow:hidden!important;
  background:transparent!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  display:block!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
}
.v7-object[data-v7-type="image"] .v8-photo-writing{display:none!important}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{
  display:flex!important;position:absolute!important;left:calc(100% + 12px)!important;top:0!important;
  width:320px!important;height:300px!important;min-width:200px!important;min-height:140px!important;
  max-width:min(60vw,720px)!important;max-height:70vh!important;resize:both!important;
  overflow:hidden!important;z-index:30!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="note"]>.v7-object-grip>span:first-child{
  min-width:0!important;max-width:calc(100% - 90px)!important;
  overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;
}
.v18-import-picker{width:min(560px,calc(100vw - 32px))!important;min-width:min(420px,calc(100vw - 32px))!important;max-height:min(78vh,720px)!important;overflow:auto!important}
.v18-import-search{position:sticky!important;top:0!important;z-index:2!important}
.v18-import-results{display:flex!important;flex-direction:column!important;gap:5px!important;max-height:52vh!important;overflow:auto!important}
.v18-import-row{display:flex!important;align-items:center!important;gap:10px!important;padding:9px 11px!important;border:1px solid var(--line)!important;border-radius:7px!important;background:var(--panel-2)!important;cursor:pointer!important}
.v18-import-row[hidden]{display:none!important}
.v18-import-row span{display:flex!important;flex-direction:column!important;min-width:0!important;overflow-wrap:anywhere!important}
.v18-import-row small{color:var(--muted)!important}
.v18-import-footer{position:sticky!important;bottom:0!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 0 2px!important;background:var(--panel)!important;border-top:1px solid var(--line)!important}
.v18-import-footer button:disabled{opacity:.45!important;cursor:not-allowed!important}
#graph-canvas .planet-world{background:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important}
#graph-canvas .planet-core.large-planet{
  border-radius:50%!important;overflow:hidden!important;
  background-image:radial-gradient(circle at 31% 24%,color-mix(in srgb,var(--planet-colour,#367ac8) 95%,white) 0%,var(--planet-colour,#367ac8) 28%,color-mix(in srgb,var(--planet-colour,#367ac8) 45%,#050b1c) 75%,#050b1c 100%)!important;
  box-shadow:inset -22px -15px 28px #050919,0 0 24px color-mix(in srgb,var(--planet-colour,#367ac8) 32%,transparent)!important;
}
#graph-canvas .planet-world::before,#graph-canvas .planet-world::after{content:none!important;display:none!important}


/* V51: minimap fills must come from the live object model, never fixed legacy CSS. */
#v13-spatial-minimap .v13-map-object,
#v13-spatial-minimap .v13-map-object.v13-source,
#v13-spatial-minimap .v13-map-object.v13-note,
#v13-spatial-minimap .v13-map-object.v13-image,
#v13-spatial-minimap .v13-map-object.v13-project,
#v13-spatial-minimap .v13-map-object.v13-folder {
  fill: inherit;
}

/* V51: planet artwork has no rectangular panel, pseudo-element, or backdrop.
   Only the circular sphere itself paints a surface. */
#graph-canvas .mini-planet,
#graph-canvas .mini-planet:hover,
#graph-canvas .mini-planet:focus,
#graph-canvas .mini-planet:active {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
}
#graph-canvas .mini-planet::before,
#graph-canvas .mini-planet::after,
#graph-canvas .mini-planet .planet-sphere::before,
#graph-canvas .mini-planet .planet-sphere::after {
  content: none !important;
  display: none !important;
  background: none !important;
  box-shadow: none !important;
}
#graph-canvas .mini-planet .planet-sphere {
  border-radius: 50% !important;
  overflow: hidden !important;
  background: radial-gradient(circle at 30% 24%, var(--planet-colour,#d6d8f7) 0%, color-mix(in srgb,var(--planet-colour,#9298c9) 75%,#26334e) 27%, #303e63 60%, #111a31 100%) !important;
  box-shadow: none !important;
}
#graph-canvas .mini-planet .planet-name,
#graph-canvas .mini-planet small {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* V52 — Obsidian-like graph labels. The old paint containment clipped labels
   positioned below each planet, regardless of zoom. */
#graph-canvas .mini-planet {
  contain: layout style !important;
  overflow: visible !important;
  isolation: isolate;
}
#graph-canvas .mini-planet .planet-name {
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: calc(100% + 7px) !important;
  width: max-content !important;
  max-width: 220px !important;
  overflow: visible !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  color: #e8edf5 !important;
  font-size: 12px !important;
  font-weight: 550 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  text-shadow: 0 2px 7px #000, 0 0 4px #000 !important;
  pointer-events: none !important;
  transition: opacity .16s ease, visibility .16s ease !important;
}
#graph-canvas.graph-labels-visible .mini-planet .planet-name {
  opacity: 1 !important;
  visibility: visible !important;
}
#graph-canvas .mini-planet small { display:none !important; }

/* V52 — image objects: header plus a flexible image viewport, never a stretched
   full-width strip. The imported card height includes the title-bar allowance. */
.v7-object[data-v7-type="image"] {
  display: flex !important;
  flex-direction: column !important;
  min-height: 150px !important;
  box-sizing: border-box !important;
}
.v7-object[data-v7-type="image"] > .v7-object-grip {
  flex: 0 0 29px !important;
  width: 100% !important;
  min-width: 0 !important;
}
.v7-object[data-v7-type="image"] > .v7-object-content {
  display: flex !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  width: 100% !important;
  overflow: hidden !important;
}
.v7-object[data-v7-type="image"] .photo-object {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
}
.v7-object[data-v7-type="image"] .v8-photo-image {
  display: flex !important;
  flex: 1 1 auto !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img {
  display: block !important;
  flex: 0 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}


/* V53 — full-screen focus workspaces (including the bottom edge of the grid). */
body.v12-focus-mode .app-shell {
  display:block!important;
  width:100vw!important;height:100dvh!important;min-height:100dvh!important;
  margin:0!important;padding:0!important;gap:0!important;overflow:hidden!important;
}
body.v12-focus-mode .workspace {
  position:fixed!important;inset:0!important;
  display:block!important;width:100vw!important;height:100dvh!important;
  min-height:100dvh!important;margin:0!important;padding:0!important;
  overflow:hidden!important;grid-column:1/-1!important;
}
body.v12-focus-mode .view-root {
  position:relative!important;width:100vw!important;height:100dvh!important;
  min-height:100dvh!important;margin:0!important;padding:0!important;overflow:hidden!important;
}
body.v12-focus-mode .v12-board-toolbar,
body.v12-focus-mode .page-heading {display:none!important}
body.v12-focus-mode .v7-canvas-viewport {
  position:fixed!important;inset:0!important;
  width:100vw!important;height:100dvh!important;min-height:100dvh!important;
  max-height:100dvh!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;overflow:auto!important;
}
body.v12-focus-mode .graph-controls {
  position:fixed!important;left:12px!important;top:10px!important;
  z-index:15000!important;margin:0!important;padding:8px 10px!important;
  border:1px solid var(--line)!important;border-radius:9px!important;
  background:color-mix(in srgb,var(--panel) 86%,transparent)!important;
  backdrop-filter:blur(12px)!important;
}
body.v12-focus-mode .graph-stage {
  position:fixed!important;inset:0!important;
  width:100vw!important;height:100dvh!important;min-height:100dvh!important;
  max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;
}
body.v12-focus-mode .v16-graph-minimap {z-index:15001!important}

/* V53 — note cards use one colour treatment; remove the stray purple/legacy accent strip. */
.v7-object[data-v7-type="note"] .note-card,
.notes-freeboard .note-card {
  border-left:1px solid color-mix(in srgb,var(--v14-object-colour,var(--note-colour,#8b82c8)) 65%,var(--line))!important;
  box-shadow:0 8px 22px color-mix(in srgb,var(--v14-object-colour,var(--note-colour,#8b82c8)) 10%,transparent)!important;
}
.v7-object[data-v7-type="note"] .note-card-main {background:transparent!important}

/* V53 — image frame is independent from the intrinsic image dimensions.
   Never force both axes to 100%; that can stretch the source image. */
.v7-object[data-v7-type="image"] {
  display:flex!important;flex-direction:column!important;
  box-sizing:border-box!important;min-width:120px!important;min-height:120px!important;
  overflow:hidden!important;
}
.v7-object[data-v7-type="image"] > .v7-object-grip {
  flex:0 0 29px!important;height:29px!important;min-height:29px!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content {
  display:block!important;position:relative!important;
  flex:1 1 0!important;width:100%!important;height:auto!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
  box-sizing:border-box!important;padding:0!important;margin:0!important;
}
.v7-object[data-v7-type="image"] .photo-object {
  display:block!important;position:relative!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image {
  display:flex!important;align-items:center!important;justify-content:center!important;
  position:relative!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img {
  display:block!important;flex:0 1 auto!important;
  width:auto!important;height:auto!important;
  min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
}

/* V53 — Obsidian-style graph labels: appear as soon as zoom reaches reading scale. */
#graph-canvas {contain:layout style!important;overflow:visible!important}
#graph-stage {overflow:hidden!important}
#graph-canvas .planet-group {overflow:visible!important}
#graph-canvas .universe-note-star,
#graph-canvas .orbit-star {overflow:visible!important}
#graph-canvas .graph-star-label {
  position:absolute!important;left:50%!important;top:calc(100% + 5px)!important;
  display:block!important;width:max-content!important;max-width:190px!important;
  padding:2px 5px!important;border:0!important;border-radius:3px!important;
  background:transparent!important;box-shadow:none!important;
  color:#dbe6ef!important;font:500 11px/1.25 system-ui,sans-serif!important;
  text-align:center!important;white-space:nowrap!important;
  text-shadow:0 1px 4px #07111c,0 0 7px #07111c!important;
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transform-origin:top center!important;z-index:50!important;
  transition:opacity .12s ease,visibility .12s ease!important;
}
#graph-canvas.graph-labels-visible .graph-star-label {
  opacity:1!important;visibility:visible!important;
}
#graph-canvas .universe-note-star {overflow:visible!important}
#graph-canvas .orbit-star .graph-star-label {top:calc(100% + 7px)!important}


/* V54 IMAGE WIDTH FIX
   The legacy V46 rule forced image objects to 100% of the board when the
   --v7-image-frame-width variable was unset. This overrode each object's saved
   inline width and created viewport-wide horizontal bars. Width is now owned
   by each image's inline saved frame dimensions, including while notes are open. */
.v7-object[data-v7-type="image"] { max-width:none!important; }


/* Do not leave a browser focus ring stuck on the small grip actions after
   changing an object's colour. Keyboard focus remains visible elsewhere. */
.v7-object .v7-grip-actions button:focus,
.v7-object .v7-grip-actions button:focus-visible,
.v7-object .v7-image-actions button:focus,
.v7-object .v7-image-actions button:focus-visible{
  outline:none!important;
  box-shadow:none!important;
}


/* V61 — spatial minimaps have no channel/count header and only one resize grip.
   The remaining NW grip is the sole resize affordance on every spatial channel. */
#v13-spatial-minimap{
  resize:none!important;
}
#v13-spatial-minimap>header{
  display:none!important;
}
#v13-spatial-minimap>svg{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  flex:1 1 auto!important;
}
#v13-spatial-minimap .v43-map-resize:not(.v43-map-resize-nw){
  display:none!important;
}

/* V61 — title bars share the object's selected hue without the over-saturated fill. */
.v7-object[data-v7-type="image"] > .v7-object-grip,
.v7-object[data-v7-type="note"] > .v7-object-grip{
  background:color-mix(in srgb,var(--panel-2) 78%,var(--v14-object-colour) 22%)!important;
  border-color:color-mix(in srgb,var(--panel-2) 78%,var(--v14-object-colour) 22%)!important;
}


/* V62 — object count lives in the workspace toolbar, not the minimap. */
.v12-object-count{
  display:inline-flex!important;align-items:center!important;
  padding:5px 10px!important;margin-right:3px!important;
  border:1px solid var(--line)!important;border-radius:7px!important;
  background:color-mix(in srgb,var(--panel) 82%,transparent)!important;
  color:var(--muted)!important;font:600 11px/1.2 "DM Mono",monospace!important;
  letter-spacing:.04em!important;white-space:nowrap!important;
}
.v12-connect-status{
  order:-1!important;flex:1 1 100%!important;
  display:flex!important;align-items:center!important;
  min-height:30px!important;padding:5px 11px!important;
  border:1px solid color-mix(in srgb,var(--accent) 65%,var(--line))!important;
  border-radius:7px!important;background:color-mix(in srgb,var(--accent) 16%,var(--panel))!important;
  color:var(--text)!important;font:600 11px/1.3 "DM Mono",monospace!important;
  letter-spacing:.045em!important;
}
.v12-board-toolbar:has(.v12-connect-status){flex-wrap:wrap!important}
.v12-board-toolbar [data-v12-connect].is-connection-active{
  background:var(--accent)!important;color:#07131d!important;
  border-color:var(--accent)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 30%,transparent)!important;
}
body.v12-connect-mode .v7-canvas-viewport{
  background-color:color-mix(in srgb,var(--bg) 78%,#020710 22%)!important;
  box-shadow:inset 0 0 0 9999px rgba(2,8,16,.22)!important;
  cursor:crosshair!important;
}
body.v12-connect-mode .v7-object:not(.v12-connect-source){
  opacity:.48!important;filter:saturate(.58) brightness(.78)!important;
  transition:opacity .14s ease,filter .14s ease,box-shadow .14s ease!important;
}
body.v12-connect-mode .v7-object.v12-connect-source{
  opacity:1!important;filter:none!important;
  outline:2px solid var(--accent)!important;outline-offset:3px!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 22%,transparent),0 0 24px color-mix(in srgb,var(--accent) 42%,transparent)!important;
  z-index:9999!important;
}
body.v12-connect-mode .v7-object{cursor:crosshair!important}
body.v12-connect-mode .v7-object .v7-grip-actions,
body.v12-connect-mode .v7-object [data-v7-resize]{pointer-events:none!important}

/* V62 — image frame height follows the real image aspect ratio, keeping its
   title bar directly attached to the visible image after neighbouring notes are added. */
.v7-object[data-v7-type="image"]{
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;min-width:100px!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  flex:0 0 29px!important;height:29px!important;min-height:29px!important;
  width:100%!important;max-width:100%!important;align-self:stretch!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  flex:1 1 auto!important;min-width:0!important;min-height:0!important;
  width:100%!important;height:auto!important;overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .photo-object,
.v7-object[data-v7-type="image"] .v8-photo-image{
  width:100%!important;min-width:0!important;min-height:0!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
}


/* V63 — explicit disconnect selection mode and inline note editing. */
.v12-board-toolbar [data-v12-disconnect].is-connection-active{
  background:#9f4555!important;color:#fff!important;border-color:#d87989!important;
  box-shadow:0 0 0 2px rgba(216,121,137,.22)!important;
}
body.v12-disconnect-mode .v12-connect-status{
  border-color:rgba(216,121,137,.75)!important;
  background:rgba(159,69,85,.20)!important;
}
body.v12-disconnect-mode .v7-object.v12-connect-source{
  outline-color:#e17b8b!important;
  box-shadow:0 0 0 5px rgba(225,123,139,.2),0 0 22px rgba(225,123,139,.34)!important;
}
.v7-object[data-v7-type="note"] .note-content[contenteditable="true"]{
  cursor:text!important;user-select:text!important;-webkit-user-select:text!important;
  outline:none!important;white-space:pre-wrap;overflow-wrap:anywhere;
}
.v7-object[data-v7-type="note"] .note-content[contenteditable="true"]:focus{outline:none!important}
.v7-object[data-v7-type="image"]{cursor:grab!important}
.v7-object[data-v7-type="image"].is-moving{cursor:grabbing!important}


/* V64 — note resize handles are visible on hover, not merely because an
   inline contenteditable still owns focus. Blank-canvas clicks blur the editor. */
.v7-object[data-v7-type="note"]>.v7-resize{
  opacity:0!important;visibility:hidden!important;pointer-events:none!important;
  transition:opacity .12s ease,visibility .12s ease!important;
}
.v7-object[data-v7-type="note"]:hover>.v7-resize{
  opacity:.85!important;visibility:visible!important;pointer-events:auto!important;
}


/* V65 — image title bars are part of the active site theme, not an individual
   image's saved object colour. This keeps them in sync when a colour preset changes. */
.v7-object[data-v7-type="image"]>.v7-object-grip{
  background:color-mix(in srgb,var(--panel-2) 88%,var(--accent) 12%)!important;
  border-bottom:1px solid var(--line)!important;
  color:var(--muted)!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip .v7-grip-actions button{
  color:var(--muted)!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip .v7-grip-actions button:hover{
  color:var(--accent)!important;
  background:var(--hover)!important;
}


/* V66 — note title bars always retain each note's own saved colour, independent
   of the global preset. Image bars remain preset-driven (V65). */
.v7-object[data-v7-type="note"]>.v7-object-grip{
  background:color-mix(in srgb,var(--v14-object-colour,var(--accent)) 45%,var(--panel-2))!important;
  border-bottom-color:var(--v14-object-colour,var(--accent))!important;
}
/* The colour control is a rainbow wheel affordance; the real native input stays
   transparent on top so clicking it still opens the browser colour picker. */
.v7-object .v14-object-colour{
  position:relative!important;
  display:inline-flex!important;
  flex:0 0 16px!important;
  width:16px!important;
  height:16px!important;
  min-width:16px!important;
  min-height:16px!important;
  padding:0!important;
  overflow:hidden!important;
  border-radius:50%!important;
  border:1px solid color-mix(in srgb,var(--text) 45%,transparent)!important;
  background:conic-gradient(from 0deg,#ff4545 0deg,#ffb52e 55deg,#f5ed35 105deg,#55d66b 160deg,#35c9e8 215deg,#5268ff 270deg,#bd4cff 320deg,#ff4545 360deg)!important;
  box-shadow:0 0 0 1px #0005!important;
}
.v7-object .v14-object-colour input{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  opacity:0!important;
  padding:0!important;
  margin:0!important;
  border:0!important;
  cursor:pointer!important;
}


/* V67 — fully suppress the browser's native colour swatch. The rainbow is
   painted by the label itself; the invisible input remains clickable. */
.v7-object .v14-object-colour{
  background:conic-gradient(#ff3b30,#ff9f0a,#ffd60a,#34c759,#00c7be,#0a84ff,#5e5ce6,#bf5af2,#ff375f,#ff3b30)!important;
  isolation:isolate!important;
}
.v7-object .v14-object-colour input[type="color"]{
  -webkit-appearance:none!important;
  appearance:none!important;
  background:transparent!important;
  color:transparent!important;
  opacity:0!important;
  outline:0!important;
  box-shadow:none!important;
}
.v7-object .v14-object-colour input[type="color"]::-webkit-color-swatch-wrapper{
  padding:0!important;
  background:transparent!important;
  opacity:0!important;
}
.v7-object .v14-object-colour input[type="color"]::-webkit-color-swatch{
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  opacity:0!important;
}
.v7-object .v14-object-colour input[type="color"]::-moz-color-swatch{
  border:0!important;
  border-radius:50%!important;
  background:transparent!important;
  opacity:0!important;
}
.v7-object .v14-object-colour input[type="color"]::-moz-focus-inner{
  border:0!important;
  padding:0!important;
}


/* V68 — connection selection glow follows the active preset accent. */
body.v12-connect-mode .v7-object.v12-connect-source{
  outline:2px solid var(--accent)!important;
  outline-offset:4px!important;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 28%,transparent),
             0 0 26px color-mix(in srgb,var(--accent) 58%,transparent)!important;
  opacity:1!important;
  filter:none!important;
  z-index:9999!important;
}
body.v12-connect-mode .v7-object:not(.v12-connect-source){
  opacity:.48!important;
  filter:saturate(.58) brightness(.78)!important;
}


/* V69 — object colours are changed from the right-click menu, not inline dots. */
.v7-grip-actions .v14-object-colour,
.v7-note-dot,
.note-colour-button,
.v7-object .v14-object-colour{display:none!important}


/* V72 — stable, draggable visual-cluster surface and responsive movement. */
.v12-cluster-frame{
  z-index:0!important;
  pointer-events:auto!important;
  cursor:grab!important;
  touch-action:none;
  user-select:none;
  -webkit-user-select:none;
  will-change:left,top;
}
.v12-cluster-frame:active{cursor:grabbing!important}
.v12-cluster-header{
  position:absolute;
  left:10px;
  top:-31px;
  display:flex;
  align-items:center;
  gap:4px;
  min-height:27px;
  padding:3px 5px 3px 10px;
  border:1px solid color-mix(in srgb,var(--accent) 42%,var(--line));
  border-radius:8px;
  background:color-mix(in srgb,var(--panel) 96%,transparent);
  box-shadow:0 5px 18px #0003;
  color:var(--text);
  pointer-events:auto;
  cursor:grab;
  white-space:nowrap;
}
.v12-cluster-header>span{
  position:static!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--text)!important;
  font-size:10px!important;
  font-weight:650;
  letter-spacing:.07em;
  text-transform:uppercase;
  max-width:220px;
  overflow:hidden;
  text-overflow:ellipsis;
}
.v12-cluster-header button{
  position:static!important;
  display:grid;
  place-items:center;
  width:22px;
  height:21px;
  padding:0!important;
  border:0!important;
  border-radius:5px;
  background:transparent!important;
  color:var(--muted)!important;
  font-size:13px!important;
  cursor:pointer;
  pointer-events:auto;
}
.v12-cluster-header button:hover{
  background:var(--hover)!important;
  color:var(--text)!important;
}
.v12-cluster-header button[data-v12-cluster-delete]:hover{
  color:var(--danger,#f87171)!important;
}
.v7-object.is-moving,.v7-object.v12-cluster-member-moving{
  transition:none!important;
  will-change:left,top;
}

.v7-object.is-moving,.v7-object.v12-cluster-member-moving{
  transform:none!important;
  backface-visibility:visible!important;
}
.v12-cluster-frame button{pointer-events:auto!important}


/* Stable spatial dragging: avoid repaint-heavy effects while cards are moving. */
.v7-object.is-moving,
.v7-object.v12-cluster-member-moving {
  transition: none !important;
  animation: none !important;
  filter: none !important;
  opacity: 1 !important;
  will-change: left, top;
  backface-visibility: hidden;
}
.v12-cluster-frame .v12-cluster-header {
  pointer-events: none;
}
.v12-cluster-frame .v12-cluster-header button {
  display: none !important;
}
.v12-cluster-menu button:hover {
  background: var(--surface-hover, rgba(255,255,255,.09)) !important;
}


/* V74 — source identity and visual source-library index */
.v7-source-object-title{
  display:block;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-weight:800;
  font-size:inherit;
  letter-spacing:.035em;
}
.v7-object[data-v7-type="source"] .v7-object-grip > span:first-child{
  min-width:0;
  flex:1;
}
.v13-sources-drawer{
  width:min(780px, min(82vw, 1000px)) !important;
}
.v13-source-list{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-content:start;
  align-items:start;
  gap:12px !important;
  padding:2px 3px 14px;
}
.v13-source-tile{
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel-2);
  transition:border-color .15s ease, background .15s ease;
}
.v13-source-tile:hover{
  border-color:var(--accent);
  background:var(--hover);
}
.v13-source-tile-open{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:7px;
  width:100%;
  min-width:0;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.v13-source-tile-image,
.v13-source-tile-placeholder{
  display:block;
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:6px;
  background:var(--bg);
}
.v13-source-tile-placeholder{
  display:grid;
  place-items:center;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.14em;
}
.v13-source-tile-title{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  min-height:2.5em;
  font-size:12px;
  line-height:1.25;
  font-weight:750;
}
.v13-source-tile-open small{
  color:var(--muted);
  font-size:10px;
}
.v13-source-tile-link{
  display:block;
  overflow:hidden;
  max-width:100%;
  color:var(--accent);
  font-size:10px;
  line-height:1.35;
  text-decoration:none;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.v13-source-tile-link:hover{text-decoration:underline}
@media(max-width:760px){
  .v13-sources-drawer{width:min(560px,94vw)!important}
  .v13-source-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:420px){
  .v13-source-list{grid-template-columns:1fr}
}


/* V75 — stronger source titles, link previews and smoother Overview dragging */
.v7-object[data-v7-type="source"] .v7-object-grip .v7-source-object-title{
  font-weight:900 !important;
  font-size:13px !important;
  letter-spacing:.02em;
  color:var(--text,#f4f6fb);
}
.v7-object.is-moving{
  will-change:transform;
  transition:none!important;
}
.v13-source-tile-preview{
  display:-webkit-box;
  overflow:hidden;
  min-height:3.9em;
  max-height:3.9em;
  color:var(--text);
  opacity:.82;
  font-size:10px;
  line-height:1.3;
  overflow-wrap:anywhere;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.v13-source-tile-open small{margin-top:1px}
.v12-hide-source-field{
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--panel-2);
}
.v12-hide-source-field > span:first-child{
  font-weight:700;
  color:var(--text);
}
.v12-hide-source-field > span:last-child{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
}
.v12-hide-source-field input{accent-color:var(--accent)}


/* V76 — folder filtering in the All Sources library index */
#v13-source-folder{
  width:100%;
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  font:inherit;
  outline:none;
}
#v13-source-folder:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent);
}
#v13-source-folder option{
  background:var(--panel);
  color:var(--text);
}


/* V77 — searchable visual cluster results */
.search-cluster-results{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:10px;
  margin:10px 0 22px;
}
.search-cluster-result{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
  min-width:0;
  padding:13px 15px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel-2);
  color:var(--text);
  text-align:left;
  cursor:pointer;
}
.search-cluster-result:hover{
  border-color:var(--accent);
  background:var(--hover);
}
.search-cluster-result strong{
  overflow:hidden;
  max-width:100%;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.search-cluster-result small{color:var(--muted)}
.v12-cluster-frame.v13-source-highlight{
  outline:2px solid var(--accent)!important;
  outline-offset:4px;
  box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 20%,transparent)!important;
}


/* V78 — cluster filter in the All Sources index */
#v13-source-cluster{
  width:100%;
  min-width:0;
  padding:11px 12px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--bg);
  color:var(--text);
  font:inherit;
  outline:none;
}
#v13-source-cluster:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent);
}
#v13-source-cluster option{background:var(--panel);color:var(--text)}


/* V79 — modal isolation for the All Sources library index */
#v13-sources-backdrop{
  position:fixed;
  inset:0;
  z-index:18999;
  background:rgba(3,8,15,.28);
  overscroll-behavior:contain;
  touch-action:pan-y;
}
.v13-sources-drawer{
  z-index:19000!important;
  min-height:0!important;
  max-height:100dvh;
  overflow:hidden!important;
  overscroll-behavior:contain;
  isolation:isolate;
}
.v13-source-list{
  min-height:0!important;
  flex:1 1 auto!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior-y:contain!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y;
  scrollbar-gutter:stable;
}
.v13-sources-drawer header,
.v13-sources-drawer > select,
.v13-sources-drawer > input{
  flex:0 0 auto;
}


/* V80 — reliable live object dragging on laptop touchpads */
.v7-spatial-viewport,
.v7-spatial-viewport .v7-spatial-board{
  touch-action:none;
}
.v7-object.is-moving{
  will-change:translate,left,top;
  transition:none!important;
  user-select:none!important;
  -webkit-user-select:none!important;
}
.v7-object.is-moving *{
  user-select:none!important;
  -webkit-user-select:none!important;
}
body.v7-dragging{
  cursor:grabbing!important;
}
body.v7-dragging *{
  cursor:grabbing!important;
}


/* V81 — sharper, more restrained corner treatment across the interface */
:where(
  button,
  input,
  select,
  textarea,
  [role="dialog"],
  [role="menu"],
  [class*="card"],
  [class*="panel"],
  [class*="drawer"],
  [class*="menu"],
  [class*="dialog"],
  [class*="tile"],
  [class*="toolbar"],
  [class*="modal"],
  [class*="popover"],
  [class*="object"],
  [class*="window"],
  [class*="container"]
){
  border-radius:4px!important;
}


/* V82 — full-width channel canvas aligned with its toolbar */
.v12-board-toolbar{
  width:100%!important;
  box-sizing:border-box!important;
}
.v12-board-toolbar + .v7-canvas-viewport{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.v7-canvas-viewport{
  max-width:none!important;
  box-sizing:border-box!important;
}


/* V83 — spatial workspace, notes, graph sidecar and new productivity views */
.v12-board-toolbar{width:100%!important;box-sizing:border-box!important}
#view-root .v7-canvas-viewport{
  width:100%!important;max-width:none!important;margin-left:0!important;margin-right:0!important;
  box-sizing:border-box!important;background-image:none!important;
}
#view-root .v7-spatial-board,
#view-root .v8-scaled-space,
#view-root .v7-canvas-viewport{
  background-image:none!important;
}
.v7-connection-handle{
  fill:var(--panel,#171717);stroke:var(--accent,#49c6d5);stroke-width:2.5;
  cursor:move;pointer-events:all;opacity:.72;transition:opacity .12s ease;
}
.v7-connections:hover .v7-connection-handle,
.v7-connection-handle:focus{opacity:1}
.v7-connection-line{pointer-events:stroke;cursor:grab}
.v7-connection-line:active{cursor:grabbing}
.v22-plain-note{
  box-sizing:border-box;width:100%;height:100%;min-height:110px;padding:20px 22px;
  overflow:auto;background:var(--card,#f4f0e8);color:var(--text,#171717);
  border:1px solid var(--line,#d4d0c8);border-radius:3px;box-shadow:0 3px 12px #00000012;
}
.v22-note-content{
  min-height:70px;outline:none;white-space:pre-wrap;overflow-wrap:anywhere;
  font-size:14px;line-height:1.65;color:inherit;
}
.v22-note-content:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.v22-inline-graph{
  position:absolute;z-index:1200;right:18px;top:18px;bottom:18px;width:min(340px,34%);
  display:flex;flex-direction:column;gap:12px;padding:14px;background:var(--panel);
  color:var(--text);border:1px solid var(--line);border-radius:5px;
  box-shadow:0 14px 50px #0005;overflow:hidden;
}
.v22-inline-graph header{display:flex;justify-content:space-between;align-items:center}
.v22-inline-graph header div{display:grid;gap:4px}
.v22-inline-graph header small{font-size:10px;letter-spacing:.12em;color:var(--muted)}
.v22-inline-graph header strong{font-size:16px}
.v22-inline-graph button{color:inherit;background:var(--panel-2);border:1px solid var(--line);padding:8px;text-align:left}
.v22-graph-nodes{display:grid;grid-template-columns:1fr 1fr;gap:6px;overflow:auto}
.v22-graph-nodes button{display:flex;align-items:center;gap:7px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v22-node-dot{width:8px;height:8px;flex:0 0 8px;border-radius:50%;background:var(--accent)}
.v22-graph-links{overflow:auto;border-top:1px solid var(--line);padding-top:8px}
.v22-graph-links h4{margin:4px 0 8px}
.v22-graph-links div{padding:7px 0;border-bottom:1px solid var(--line);font-size:12px}
.v22-graph-links div span{color:var(--accent);padding:0 5px}
.v22-graph-highlight{outline:2px solid var(--accent)!important;outline-offset:4px}
.v22-product-page{max-width:1200px;margin:0 auto;padding:28px;display:flex;flex-direction:column;gap:20px;color:var(--text)}
.v22-product-page>header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.v22-product-page h1{margin:0 0 6px;font-size:28px}
.v22-product-page header p{margin:0;color:var(--muted)}
#v22-event-form{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px;padding:16px;border:1px solid var(--line);background:var(--panel);border-radius:5px}
#v22-event-form textarea{grid-column:1/-1;min-height:70px}
#v22-event-form>div{grid-column:1/-1;display:flex;gap:8px}
#v22-event-form input,#v22-event-form textarea,.v22-sheet-name input{
  padding:10px;border:1px solid var(--line);border-radius:3px;background:var(--panel);color:var(--text);font:inherit
}
.v22-calendar-list{display:grid;gap:8px}
.v22-event{display:grid;grid-template-columns:150px 1fr 36px;gap:14px;align-items:start;padding:14px;border:1px solid var(--line);background:var(--panel);border-radius:4px}
.v22-event time{font-size:12px;color:var(--accent);font-weight:700}
.v22-event p{margin:5px 0 0;color:var(--muted)}
.v22-event button{background:transparent;color:var(--muted);border:0;font-size:20px}
.v22-empty,.v22-sheet-help{color:var(--muted)}
.v22-sheet-name{display:flex;gap:8px}
.v22-sheet-name input{flex:1;font-weight:700}
.v22-sheet-wrap{overflow:auto;border:1px solid var(--line);background:var(--panel)}
.v22-sheet{width:100%;border-collapse:collapse;min-width:600px}
.v22-sheet td{padding:0;border:1px solid var(--line);min-width:140px}
.v22-sheet td input{width:100%;box-sizing:border-box;padding:11px;border:0;outline:none;background:transparent;color:var(--text);font:inherit}
.v22-sheet tr:first-child td{background:var(--panel-2);font-weight:700}
.v22-sheet td:focus-within{outline:2px solid var(--accent);outline-offset:-2px}
@media(max-width:700px){
 .v22-inline-graph{width:calc(100% - 36px);left:18px;right:18px;top:70px}
 .v22-product-page{padding:16px}
 #v22-event-form{grid-template-columns:1fr}
 .v22-event{grid-template-columns:1fr 30px}
 .v22-event time{grid-column:1/-1}
}

.v22-month-nav{display:flex;align-items:center;justify-content:center;gap:18px}
.v22-month-nav button{background:var(--panel);border:1px solid var(--line);color:var(--text);padding:6px 14px}
.v22-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.v22-weekday{text-align:center;color:var(--muted);font-size:11px;padding:8px}
.v22-calendar-day,.v22-calendar-blank{min-height:72px;border:1px solid var(--line);background:var(--panel);color:var(--text);padding:8px;text-align:left}
.v22-calendar-day{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.v22-calendar-day.selected{outline:2px solid var(--accent);outline-offset:-2px}
.v22-calendar-day i{font-size:10px;color:var(--accent);font-style:normal}
.v22-selected-date{font-size:17px;margin:4px 0 0}

.v7-spatial-board .v7-connections .v7-connection-handle{pointer-events:all!important;opacity:.8!important}
.v7-connection-handle:hover{opacity:1!important;r:11}
#view-root{position:relative}

/* V84 fixes: stable connection handles, full note surfaces and library drawers */
.v7-spatial-board .v7-connections{pointer-events:auto!important}
.v7-spatial-board .v7-connections .v7-connection-handle{pointer-events:all!important;cursor:grab!important}
.v7-object[data-v7-type="note"]{display:block!important}
.v7-object[data-v7-type="note"]>.v7-object-content{height:100%!important;min-height:0!important}
.v7-object[data-v7-type="note"] .v22-plain-note{width:100%!important;height:100%!important;min-height:100%!important;box-sizing:border-box!important}
.v22-collection-backdrop,#v22-collection-backdrop{position:fixed;inset:0;z-index:19990;background:#0006}
.v22-collection-drawer{position:fixed;z-index:19991;right:0;top:0;bottom:0;width:min(560px,94vw);padding:20px;box-sizing:border-box;background:var(--panel);color:var(--text);border-left:1px solid var(--line);box-shadow:-16px 0 55px #0005;display:flex;flex-direction:column;gap:12px}
.v22-collection-drawer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.v22-collection-drawer>header small{font-size:10px;letter-spacing:.13em;color:var(--muted)}
.v22-collection-drawer>header h2{margin:4px 0;font-size:21px}
.v22-collection-drawer>header p{margin:0;color:var(--muted);font-size:12px}
.v22-collection-drawer>header button{background:transparent;border:1px solid var(--line);color:var(--text);font-size:22px;width:34px;height:34px}
#v22-collection-search{padding:11px 12px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--text);font:inherit}
.v22-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;overflow:auto;overscroll-behavior:contain;padding:2px}
.v22-collection-tile{min-width:0;display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid var(--line);background:var(--card);border-radius:4px;color:var(--text)}
.v22-collection-tile>img{width:100%;height:125px;object-fit:cover;background:var(--bg)}
.v22-collection-note-preview{height:125px;overflow:hidden;padding:10px;background:var(--bg);color:var(--text);white-space:pre-wrap;font-size:12px;line-height:1.5}
.v22-collection-tile>strong{font-size:13px;overflow-wrap:anywhere}
.v22-collection-tile>small{color:var(--muted)}
.v22-collection-actions{display:flex;gap:6px;margin-top:auto}
.v22-collection-actions button,.v22-collection-context button{flex:1;padding:7px 8px;border:1px solid var(--line);background:var(--panel-2);color:var(--text);font-size:11px}
.v22-collection-context{z-index:20010;position:fixed;display:grid;gap:5px;padding:9px;background:var(--panel);border:1px solid var(--line);box-shadow:0 8px 30px #0005}
.v22-collection-context b{font-size:12px;padding:5px}
@media(max-width:520px){.v22-collection-grid{grid-template-columns:1fr}.v22-collection-drawer{padding:14px}}


/* V85 — strict finite canvas edges and contained workspace scrolling */
html,body{height:100%;min-height:0;overflow:hidden!important}
#app-shell{height:100dvh;min-height:0;overflow:hidden!important}
#view-root{min-height:0;overflow:hidden!important}
.v7-canvas-viewport{
  position:relative!important;min-height:0!important;max-height:100%!important;
  overflow:auto!important;overscroll-behavior:contain!important;touch-action:pan-x pan-y;
  scrollbar-gutter:stable;
}
.v8-scaled-space{position:relative!important;overflow:hidden!important;flex:none!important}
.v7-spatial-board{
  position:relative!important;overflow:hidden!important;max-width:none!important;
  contain:layout paint style;
}
.v7-spatial-board>.v7-object{max-width:calc(100% - 24px)}
.v8-zoom-hud{top:12px!important;bottom:auto!important;left:12px!important;z-index:30!important}
.v13-map-world-boundary{
  fill:rgba(0,0,0,0)!important;stroke:var(--accent,#49c6d5)!important;
  stroke-width:18!important;stroke-dasharray:none!important;vector-effect:non-scaling-stroke;
}


/* V86 — fine minimap boundary and camera indicator strokes */
#v13-spatial-minimap .v13-map-world-boundary{
  stroke-width:2px!important;
  stroke-dasharray:none!important;
  vector-effect:non-scaling-stroke!important;
}
#v13-spatial-minimap .v13-map-window{
  stroke-width:1.5px!important;
  stroke-dasharray:7 5!important;
  vector-effect:non-scaling-stroke!important;
}


/* V87 — toolbar-mounted zoom controls, positioned between Disconnect and New cluster */
.v12-board-toolbar .v8-toolbar-zoom{
  position:static!important;
  inset:auto!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  align-self:center!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:auto!important;
  max-width:none!important;
  min-height:38px!important;
  margin:0 2px!important;
  padding:4px 9px!important;
  z-index:2!important;
  box-sizing:border-box!important;
}
.v12-board-toolbar .v8-toolbar-zoom button{
  min-width:28px!important;
  min-height:28px!important;
  padding:3px 7px!important;
}
.v12-board-toolbar .v8-toolbar-zoom output{
  min-width:42px!important;
  text-align:center!important;
  white-space:nowrap!important;
}

/* V90 — keep zoom controls in the toolbar flow, in the free space at its right. */
.v12-board-toolbar .v8-toolbar-zoom{
  position:relative!important;inset:auto!important;float:none!important;
  left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;
  margin-left:auto!important;margin-right:4px!important;
  flex:0 0 auto!important;align-self:center!important;
  transform:none!important;z-index:4!important;
}
.v12-board-toolbar{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:7px!important;}
.v89-drawer-header-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.v89-drawer-header-actions button{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font-size:22px;line-height:1;cursor:pointer}
.v89-drawer-header-actions button:hover{border-color:var(--accent);color:var(--accent)}
#v13-sources-drawer>header,#v22-collection-drawer>header{display:flex;align-items:center;justify-content:space-between;gap:16px}


/* V92 — place workspace zoom controls in their own toolbar row.
   Earlier positioning rules could leave the HUD absolutely positioned over
   the first controls (notably All notes / Folder), especially after wrapping. */
.v12-board-toolbar{
  display:flex!important;
  flex-flow:row wrap!important;
  align-items:center!important;
  position:relative!important;
}
.v12-board-toolbar .v8-toolbar-zoom{
  position:static!important;
  inset:auto!important;
  float:none!important;
  transform:none!important;
  flex:0 0 auto!important;
  order:99!important;
  flex-basis:100%!important;
  width:max-content!important;
  max-width:100%!important;
  margin:2px 0 0 auto!important;
  align-self:flex-end!important;
  z-index:1!important;
  box-sizing:border-box!important;
}
.v12-board-toolbar .v8-toolbar-zoom button,
.v12-board-toolbar .v8-toolbar-zoom output{
  flex:0 0 auto!important;
}


/* V98 — place workspace zoom controls immediately above the minimap,
   matching the compact zoom strip in the Knowledge Graph minimap. */
.v12-board-toolbar .v8-toolbar-zoom{
  position:fixed!important;
  right:18px!important;
  left:auto!important;
  top:auto!important;
  bottom:190px!important;
  inset-inline-start:auto!important;
  float:none!important;
  transform:none!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  flex-basis:auto!important;
  order:initial!important;
  align-items:center!important;
  justify-content:center!important;
  gap:5px!important;
  width:max-content!important;
  max-width:calc(100vw - 36px)!important;
  min-height:34px!important;
  margin:0!important;
  padding:4px 7px!important;
  border:1px solid var(--line)!important;
  border-radius:8px!important;
  background:color-mix(in srgb,var(--panel) 96%,transparent)!important;
  box-shadow:0 6px 20px #0005!important;
  backdrop-filter:blur(10px)!important;
  z-index:16001!important;
  box-sizing:border-box!important;
}
.v12-board-toolbar .v8-toolbar-zoom button{
  min-width:26px!important;
  min-height:25px!important;
  padding:2px 6px!important;
}
.v12-board-toolbar .v8-toolbar-zoom output{
  min-width:38px!important;
  text-align:center!important;
  white-space:nowrap!important;
}


/* V99 — zoom HUD is mounted directly under body and sits just above the
   bottom-right workspace minimap (230x160px, 18px from the viewport edge). */
body>.v8-toolbar-zoom{
  position:fixed!important;
  top:auto!important;left:auto!important;
  right:18px!important;bottom:188px!important;
  inset-inline-start:auto!important;inset-inline-end:18px!important;
  float:none!important;transform:none!important;
  display:inline-flex!important;
  flex:0 0 auto!important;flex-basis:auto!important;order:initial!important;
  align-items:center!important;justify-content:center!important;gap:6px!important;
  width:max-content!important;max-width:calc(100vw - 36px)!important;
  min-height:34px!important;margin:0!important;padding:4px 8px!important;
  box-sizing:border-box!important;z-index:16001!important;
  background:var(--panel)!important;border:1px solid var(--line)!important;
  border-radius:8px!important;box-shadow:0 6px 20px #0005!important;
}
body>.v8-toolbar-zoom button{min-width:27px!important;min-height:26px!important;padding:2px 6px!important}
body>.v8-toolbar-zoom output{min-width:40px!important;text-align:center!important}


/* V100 — spatial zoom controls live inside the minimap header, matching Graph View. */

#v13-spatial-minimap{
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;
}
#v13-spatial-minimap>.v13-spatial-minimap-header{
  height:34px!important;min-height:34px!important;flex:0 0 34px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;
  gap:8px!important;padding:0 8px!important;box-sizing:border-box!important;
  border-bottom:1px solid var(--line)!important;
  background:var(--panel-2)!important;color:var(--muted)!important;
  font:9px "DM Mono",monospace!important;letter-spacing:.12em!important;
}
#v13-spatial-minimap>.v13-spatial-minimap-header .v13-spatial-minimap-zoom{
  display:flex!important;align-items:center!important;gap:5px!important;
  font:inherit!important;letter-spacing:normal!important;
}
#v13-spatial-minimap .v13-spatial-minimap-zoom button{
  min-width:27px!important;height:27px!important;padding:2px 6px!important;
  border:1px solid var(--line)!important;border-radius:6px!important;
  background:var(--panel)!important;color:var(--text)!important;
  font:inherit!important;cursor:pointer!important;
}
#v13-spatial-minimap .v13-spatial-minimap-zoom output{
  min-width:38px!important;text-align:center!important;color:var(--muted)!important;
  font:inherit!important;letter-spacing:normal!important;
}
#v13-spatial-minimap>svg{
  flex:1 1 auto!important;height:auto!important;min-height:0!important;
  width:100%!important;display:block!important;
}

/* V101 — remove any duplicate workspace zoom HUD from the toolbar. */
.v12-board-toolbar .v8-toolbar-zoom{display:none!important}
#v13-spatial-minimap .v13-spatial-minimap-zoom{position:relative!important;z-index:2!important}
#v13-spatial-minimap .v13-spatial-minimap-zoom button{pointer-events:auto!important}

/* V102 — two-button, 10%-step zoom control; no reset/recycle button. */
#v13-spatial-minimap .v13-spatial-minimap-zoom{gap:7px!important}
#v13-spatial-minimap .v13-spatial-minimap-zoom button{min-width:34px!important}
#v13-spatial-minimap [data-v8-reset-zoom]{display:none!important}

/* V103 — complete channel navigation in the vertical rail. */
.icon-rail{gap:9px}
.icon-rail #controls-button{margin-top:auto}
.icon-rail #theme-switch,.icon-rail [data-view="settings"]{margin-top:0}
.icon-rail [data-view="diary"]{margin-top:0}

/* V104 — rail channel shortcuts follow the sidebar channel order.
   Non-channel utilities are grouped at the bottom. */
.icon-rail{gap:12px}
.icon-rail [data-view="favourites"]{margin-top:auto}
.icon-rail #theme-switch{margin-top:0}
.icon-rail #controls-button{margin-top:0}
.icon-rail [data-view="settings"]{margin-top:0}

/* V105 — spherical rainbow colour-wheel icon for the theme preset control. */
#theme-switch.rainbow-wheel-icon{
  position:relative;
  overflow:visible;
  border-radius:50%;
  background:transparent;
}
#theme-switch.rainbow-wheel-icon::before{
  content:"";
  display:block;
  width:25px;
  height:25px;
  border-radius:50%;
  background:
    radial-gradient(circle at 32% 27%,rgba(255,255,255,.62),rgba(255,255,255,0) 34%),
    conic-gradient(from -90deg,#ff00b8 0deg,#ff3030 48deg,#ffec00 105deg,#53f000 165deg,#00e9d5 220deg,#075dff 275deg,#a000ff 320deg,#ff00b8 360deg);
  box-shadow:inset -3px -4px 7px rgba(0,0,0,.24),0 1px 3px rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.22);
}
#theme-switch.rainbow-wheel-icon:hover::before{
  filter:brightness(1.12) saturate(1.08);
  transform:scale(1.06);
}

/* V106 — clean, perfectly circular rainbow wheel; no clipped pseudo-element. */
#theme-switch.rainbow-wheel-icon{
  width:38px!important;
  height:38px!important;
  min-width:38px!important;
  min-height:38px!important;
  padding:0!important;
  border:0!important;
  border-radius:50%!important;
  overflow:visible!important;
  display:grid!important;
  place-items:center!important;
  background:
    radial-gradient(circle at 32% 25%,rgba(255,255,255,.34),transparent 42%),
    conic-gradient(from -90deg,#ff00b8 0deg,#ff3030 48deg,#ffec00 105deg,#53f000 165deg,#00e9d5 220deg,#075dff 275deg,#a000ff 320deg,#ff00b8 360deg)!important;
  box-shadow:inset -2px -3px 5px rgba(0,0,0,.18),0 0 0 1px rgba(255,255,255,.14)!important;
  line-height:0!important;
}
#theme-switch.rainbow-wheel-icon::before,
#theme-switch.rainbow-wheel-icon::after{
  content:none!important;
  display:none!important;
}
#theme-switch.rainbow-wheel-icon:hover{
  filter:brightness(1.06) saturate(1.04);
  transform:scale(1.04);
}

/* V107 — reduce the rainbow theme button to match the other rail icons. */
#theme-switch.rainbow-wheel-icon{
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  min-height:28px!important;
  max-width:28px!important;
  max-height:28px!important;
  flex:0 0 28px!important;
  padding:0!important;
  margin:0 auto!important;
  border-radius:50%!important;
  box-sizing:border-box!important;
}


/* V108 — make the Starspec brand tile follow the selected colour preset. */
.brand-mark{
  background:color-mix(in srgb,var(--accent) 18%,var(--panel-2))!important;
  color:var(--accent)!important;
  border:1px solid color-mix(in srgb,var(--accent) 28%,var(--line))!important;
}


/* V109 — ensure primary action labels remain legible in every colour preset. */
.primary-button,
button.primary-button,
.dialog-actions .primary-button,
.editor-dialog .primary-button {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.35);
  opacity: 1 !important;
}
.primary-button:disabled,
button.primary-button:disabled {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: .78 !important;
}

/* V111 — consistent outlined channel icons based on the supplied references. */
.icon-button > svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item > span > svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item > span:has(svg){width:20px;display:grid;place-items:center}

/* V112 — outlined Overview, Sources and Unanswered Questions navigation icons. */
.icon-button > svg{width:22px;height:22px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item > span > svg{width:19px;height:19px;display:block;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.nav-item > span:has(svg){width:20px;display:grid;place-items:center}


/* V114 — make the spatial toolbar and workspace share one exact, fluid width.
   The view root must expand into all available space when the navigation sidebar
   is collapsed; avoid a reserved scrollbar gutter shrinking the canvas edge. */
#app-shell{
  width:100%;
  min-width:0;
}
#app-shell .workspace{
  flex:1 1 0%!important;
  width:0!important;
  min-width:0!important;
  max-width:none!important;
}
#app-shell .view-root{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
#view-root .v12-board-toolbar,
#view-root .v7-canvas-viewport{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
#view-root .v7-canvas-viewport{
  scrollbar-gutter:auto!important;
}
.app-shell.v12-sidebar-collapsed #view-root,
.app-shell.sidebar-collapsed #view-root{
  width:100%!important;
  max-width:none!important;
}


/* V115 — align spatial toolbar and canvas edges, and let both use the
   complete content column when the navigation sidebar is collapsed. */
.app-shell:has(.v12-board-toolbar) .workspace{
  min-width:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
.app-shell:has(.v12-board-toolbar) #view-root{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin:0!important;
}
.app-shell:has(.v12-board-toolbar) #view-root .v12-board-toolbar,
.app-shell:has(.v12-board-toolbar) #view-root .v7-canvas-viewport{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.app-shell:has(.v12-board-toolbar) .workspace{
  flex:1 1 0%!important;
}
#theme-switch.rainbow-wheel-icon{
  width:20px!important;
  height:20px!important;
  min-width:20px!important;
  min-height:20px!important;
  max-width:20px!important;
  max-height:20px!important;
  flex:0 0 20px!important;
  border-radius:50%!important;
  padding:0!important;
  margin:0 auto!important;
}


/* V116 — hard-align the Overview/spatial toolbar and canvas to identical edges.
   Earlier rules left padding on #view-root, so the canvas stayed inset even
   when the toolbar expanded. Also make the collapsed navigation release its
   full flex-basis so the workspace can claim the freed width. */
.app-shell:has(#view-root .v12-board-toolbar) .workspace{
  flex:1 1 0%!important;
  width:0!important;
  min-width:0!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
}
.app-shell:has(#view-root .v12-board-toolbar) #view-root{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.app-shell:has(#view-root .v12-board-toolbar) #view-root > .v12-board-toolbar,
.app-shell:has(#view-root .v12-board-toolbar) #view-root > .v7-canvas-viewport{
  display:block!important;
  position:relative!important;
  flex:0 0 auto!important;
  align-self:stretch!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.app-shell:has(#view-root .v12-board-toolbar) #view-root > .v12-board-toolbar{
  margin-top:0!important;
  margin-bottom:6px!important;
}
.app-shell:has(#view-root .v12-board-toolbar) #view-root > .v7-canvas-viewport{
  margin-top:0!important;
}
.app-shell.sidebar-collapsed .sidebar,
.app-shell.v12-sidebar-collapsed .sidebar{
  flex:0 0 0!important;
  width:0!important;
  min-width:0!important;
  max-width:0!important;
  padding-left:0!important;
  padding-right:0!important;
  border:0!important;
  margin:0!important;
}
#theme-switch.rainbow-wheel-icon{
  width:16px!important;height:16px!important;
  min-width:16px!important;min-height:16px!important;
  max-width:16px!important;max-height:16px!important;
  flex:0 0 16px!important;
  padding:0!important;margin:0 auto!important;
}


/* V117 — collapsed-sidebar layout: remove the large inset so the toolbar
   and canvas start immediately after the icon rail and use the full width. */
.app-shell.v12-sidebar-collapsed .workspace,
.app-shell.sidebar-collapsed .workspace{
  flex:1 1 0%!important;
  width:0!important;
  min-width:0!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
}
.app-shell.v12-sidebar-collapsed #view-root,
.app-shell.sidebar-collapsed #view-root{
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.app-shell.v12-sidebar-collapsed #view-root .v12-board-toolbar,
.app-shell.v12-sidebar-collapsed #view-root .v7-canvas-viewport,
.app-shell.sidebar-collapsed #view-root .v12-board-toolbar,
.app-shell.sidebar-collapsed #view-root .v7-canvas-viewport{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.app-shell.v12-sidebar-collapsed #view-root .v7-canvas-viewport,
.app-shell.sidebar-collapsed #view-root .v7-canvas-viewport{
  align-self:stretch!important;
}

/* V118 — expanded sidebar: make the Overview toolbar and workspace canvas
   occupy the exact same full-width column. The collapsed layout remains
   governed by the existing V117 rules. */
.app-shell:has(#view-root > .v12-board-toolbar) .workspace{
  flex:1 1 0%!important;width:0!important;min-width:0!important;max-width:none!important;
  padding-left:0!important;padding-right:0!important;margin-left:0!important;margin-right:0!important;
}
.app-shell:has(#view-root > .v12-board-toolbar) #view-root{
  display:flex!important;flex:1 1 auto!important;flex-direction:column!important;align-items:stretch!important;
  width:100%!important;min-width:0!important;max-width:none!important;padding:0!important;margin:0!important;box-sizing:border-box!important;
}
.app-shell:has(#view-root > .v12-board-toolbar) #view-root > .v12-board-toolbar,
.app-shell:has(#view-root > .v12-board-toolbar) #view-root > .v7-canvas-viewport{
  flex:0 0 auto!important;display:block!important;position:relative!important;align-self:stretch!important;
  width:100%!important;min-width:0!important;max-width:none!important;padding-left:0!important;padding-right:0!important;
  margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important;transform:none!important;
  box-sizing:border-box!important;
}
.app-shell:has(#view-root > .v12-board-toolbar) #view-root > .v12-board-toolbar{margin-top:0!important;margin-bottom:6px!important}
.app-shell:has(#view-root > .v12-board-toolbar) #view-root > .v7-canvas-viewport{margin-top:0!important}


/* V119 — the shared toolbar is mounted beside #view-root, while the
   spatial canvas is rendered inside #view-root. Remove the view-root's
   horizontal inset so the canvas edges match the shared toolbar exactly. */
.workspace:has(>#v5-toolbar) > #view-root,
.workspace:has(#v5-toolbar) > #view-root,
.workspace:has(#v5-toolbar) .view-root{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  padding-left:0!important;
  padding-right:0!important;
  margin-left:0!important;
  margin-right:0!important;
  box-sizing:border-box!important;
}
.workspace:has(#v5-toolbar) #view-root .v7-canvas-viewport{
  display:block!important;
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  margin-left:0!important;
  margin-right:0!important;
  left:0!important;
  right:0!important;
  box-sizing:border-box!important;
}
.workspace:has(#v5-toolbar) #view-root .v7-canvas-viewport + *{
  max-width:100%!important;
}

/* V121 note typography controls */
.note-card .note-content{font-size:var(--note-text-size,16px)}
.v120-text-menu{min-width:190px;z-index:100200;padding:8px}
.v120-text-menu b{display:block;padding:7px 10px;color:var(--muted,#91a7b8);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.v120-text-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;color:var(--text,#e6eef5);padding:9px 11px;border-radius:6px;cursor:pointer}
.v120-text-menu button:hover{background:var(--hover,#29475b)}
.v120-text-menu hr{border:0;border-top:1px solid var(--line,#345);margin:5px 0}

/* V122: note cards move with Alt+drag anywhere; ordinary pointer use stays editable. */
.notes-freeboard .note-card.is-moving{cursor:grabbing!important;user-select:none!important;box-shadow:0 18px 48px #050b13a8!important;z-index:100!important}
.notes-freeboard .note-card.is-moving *{user-select:none!important}


/* V123: expandable full-height folder browser in the sidebar. */
.folder-heading-actions{display:flex;align-items:center;gap:2px}
#expand-folders{font-size:18px;min-width:26px;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;padding:3px}
.folder-expand-arrow{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
#expand-folders:hover .folder-expand-arrow{color:var(--accent,#4cc8d5)}
.sidebar.folders-expanded .sidebar-top,
.sidebar.folders-expanded .sidebar-search-wrap,
.sidebar.folders-expanded .main-nav,
.sidebar.folders-expanded .sidebar-divider,
.sidebar.folders-expanded .sidebar-footer{display:none!important}
.sidebar.folders-expanded .sidebar-section-heading{flex:none;padding:8px 7px 12px;border-bottom:1px solid var(--line);margin-bottom:8px}
.sidebar.folders-expanded .folder-list{display:block!important;flex:1 1 auto!important;min-height:0!important;max-height:none!important;height:auto!important;overflow-y:auto!important;overscroll-behavior:contain;padding:4px 3px 12px}
.sidebar.folders-expanded .folder-row{margin-bottom:2px}
.sidebar.folders-expanded .folder-open{padding:10px 8px;font-size:13px}
.sidebar.folders-expanded .folder-row[style*="padding-left"] .folder-open{min-height:38px}


/* V126 — screen-stable object outlines. The SVG stroke uses
   vector-effect:non-scaling-stroke, so zooming the board cannot shrink it
   below visibility. Keep the overlay above object content but transparent
   to all pointer, selection, editing and dragging interactions. */
.v7-spatial-board .v7-object{
  position:absolute!important;
}
.v7-spatial-board .v7-object > .v23-stable-outline{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  overflow:visible!important;
  pointer-events:none!important;
  z-index:20!important;
}
.v7-spatial-board .v7-object > .v23-stable-outline rect{
  fill:none!important;
  stroke:var(--v14-object-colour, var(--accent, #49c6d5))!important;
  stroke-width:1.5px!important;
  vector-effect:non-scaling-stroke!important;
  opacity:1!important;
}
.v7-spatial-board .v7-object[data-v7-type="image"] > .v23-stable-outline rect,
.v7-spatial-board .v7-object[data-v7-type="source"] > .v23-stable-outline rect{
  stroke-width:1.6px!important;
}

/* V129 — continuous document workspace */
.v24-document-shell{min-height:calc(100vh - 120px);display:flex;flex-direction:column;gap:18px;padding:4px 0 28px;color:var(--text)}
.v24-document-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:8px 2px 4px}
.v24-document-header h1{font-size:clamp(27px,3vw,38px);font-weight:650;letter-spacing:-.045em;margin:5px 0 7px}
.v24-document-header p{margin:0;color:var(--muted);font-size:13px}
.v24-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:750;color:var(--muted)}
.v24-save-indicator{font-size:11px;color:var(--muted);white-space:nowrap;padding-bottom:4px}
.v24-folder-tabs{display:flex;align-items:center;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--border);padding:0 0 12px}
.v24-folder-tab{border:1px solid var(--border);background:transparent;color:var(--muted);padding:7px 12px;border-radius:7px;font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.v24-folder-tab:hover,.v24-folder-tab.active{color:var(--text);border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.v24-folder-dot{width:7px;height:7px;border-radius:50%;background:var(--folder)}
.v24-editor-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:7px;background:var(--surface,rgba(127,127,127,.06));border:1px solid var(--border);border-radius:8px;position:sticky;top:8px;z-index:8;backdrop-filter:blur(12px)}
.v24-editor-toolbar button{border:0;background:transparent;color:var(--text);padding:7px 9px;border-radius:5px;font-size:11px;cursor:pointer}
.v24-editor-toolbar button:hover{background:var(--hover,rgba(127,127,127,.13))}
.v24-editor-toolbar button.is-active{background:var(--accent-soft,rgba(63,190,205,.22));color:var(--accent,var(--text));box-shadow:inset 0 0 0 1px var(--accent,rgba(63,190,205,.55));}
.v24-editor-toolbar button.is-active:hover{background:var(--accent-soft,rgba(63,190,205,.3));}
.v24-editor-toolbar span{height:20px;width:1px;background:var(--border);margin:0 3px}
.v24-document-stage{flex:1;position:relative;min-height:620px;background:var(--surface,rgba(127,127,127,.025));border:1px solid var(--border);border-radius:9px;overflow:visible}
.v24-document-page{position:relative;max-width:100%;min-height:620px;margin:0 auto;padding:clamp(28px,5vw,64px) clamp(22px,7vw,100px) 100px}
.v24-document-editor{max-width:850px;min-height:440px;margin:0 auto;outline:0;color:var(--text);font-size:15px;line-height:1.85;overflow-wrap:anywhere}
.v24-document-editor:empty:before{content:attr(data-placeholder);color:var(--muted);pointer-events:none}
.v24-document-editor h1,.v24-document-editor h2,.v24-document-editor h3{line-height:1.3;letter-spacing:-.025em;margin:1.5em 0 .55em}
.v24-document-editor h1{font-size:2em}.v24-document-editor h2{font-size:1.55em}.v24-document-editor h3{font-size:1.25em}
.v24-document-editor p{margin:.75em 0}.v24-document-editor blockquote{border-left:2px solid var(--accent);padding:3px 0 3px 18px;margin:1.2em 0;color:var(--muted)}
.v24-document-editor ul,.v24-document-editor ol{padding-left:1.6em}
.v24-inline-embeds{max-width:850px;margin:24px auto 0;display:flex;flex-direction:column;gap:12px}
.v24-embed{border:1px solid var(--border);border-radius:8px;background:var(--surface,rgba(127,127,127,.06));padding:12px;max-width:100%;overflow:hidden;color:var(--text)}
.v24-embed:not(.is-floating){display:block;width:100%;}
.v24-embed-head{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:9px;letter-spacing:.12em;font-weight:750;margin-bottom:9px}
.v24-embed-head div{display:flex;gap:5px}
.v24-embed-head button{border:1px solid var(--border);background:transparent;color:var(--muted);border-radius:5px;padding:3px 7px;cursor:pointer;font-size:10px}
.v24-embed strong{display:block;font-size:13px;margin:4px 0}.v24-embed p{font-size:11px;color:var(--muted);margin:4px 0;line-height:1.5}
.v24-embed img{display:block;max-width:100%;max-height:220px;object-fit:contain;border-radius:5px;margin:6px 0}
.v24-floating-layer{position:absolute;inset:0;pointer-events:none;overflow:visible}
.v24-embed.is-floating{position:absolute;pointer-events:auto;z-index:3;box-shadow:0 8px 28px rgba(0,0,0,.13);resize:both;min-width:190px;max-width:calc(100% - 20px);cursor:default}
.v24-embed.is-floating .v24-embed-head{cursor:grab;user-select:none;touch-action:none}
.v24-document-footer{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px;padding:0 3px}
@media(max-width:700px){.v24-document-header{align-items:flex-start;flex-direction:column}.v24-editor-toolbar{position:static}.v24-document-page{padding:24px 18px 80px}.v24-document-footer{flex-direction:column}}


/* V25 Sources: dense document-management library */
.v25-library{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:calc(100vh - 48px);background:#191b1a;border:1px solid #303632;border-radius:10px;overflow:hidden;color:#d7dbd8;margin:-2px}
.v25-library-nav{background:#202421;border-right:1px solid #343a35;padding:22px 13px;display:flex;flex-direction:column;gap:5px;min-width:0}
.v25-brand{font-size:12px;font-weight:800;letter-spacing:.13em;color:#9bbda0;padding:0 10px 24px}
.v25-brand span{font-size:20px;margin-right:8px}
.v25-nav-item,.v25-folder{border:0;background:transparent;color:#aeb7b0;text-align:left;border-radius:5px;padding:10px 9px;display:flex;align-items:center;gap:10px;font-size:13px}
.v25-nav-item span{flex:1}.v25-nav-item small,.v25-folder small{margin-left:auto;color:#78847a;font-size:11px}
.v25-nav-item:hover,.v25-folder:hover,.v25-nav-item.active,.v25-folder.active{background:#29372d;color:#8fc69a}
.v25-nav-heading{display:flex;align-items:center;justify-content:space-between;color:#78857b;font-size:10px;font-weight:700;letter-spacing:.12em;padding:25px 8px 8px}
.v25-nav-heading button{background:transparent;border:0;color:#9bc49f;font-size:17px}
.v25-folder{padding:8px 9px;font-size:12px}.v25-no-folders{color:#768078;font-size:12px;padding:0 8px}
.v25-nav-foot{margin-top:auto;border-top:1px solid #343a35;padding:14px 8px 0;color:#7f8981;font-size:11px}
.v25-library-main{min-width:0;padding:24px 26px 40px;background:#191b1a}
.v25-library-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.v25-eyebrow{font-size:10px;color:#78947e;letter-spacing:.16em;font-weight:700;margin-bottom:5px}
.v25-library-top h1{font-size:25px;margin:0;color:#e0e4e0;font-weight:650}
.v25-library-top .primary-button{background:#245b32;border-color:#347a45;color:#d8f1dc}
.v25-search-row{display:flex;align-items:center;border:1px solid #3b493e;background:#202521;border-radius:5px;max-width:680px;margin-bottom:14px}
.v25-search-row input{width:100%;background:transparent;border:0;color:#e0e5e0;padding:12px 14px;outline:none}
.v25-search-row button{border:0;background:transparent;color:#a8b4aa;font-size:20px;padding:5px 12px}
.v25-filter-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:0 0 17px;border-bottom:1px solid #303732;margin-bottom:18px}
.v25-filter-row label{display:flex;align-items:center;gap:7px;color:#89958c;font-size:11px}
.v25-filter-row select{background:#202622;border:1px solid #3b493e;color:#b9c8bc;border-radius:4px;padding:7px 24px 7px 9px;font-size:11px}
.v25-result-count{margin-left:auto;color:#89958c;font-size:11px}
.v25-document-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:15px;align-items:stretch}
.v25-doc-card{min-width:0;background:#222623;border:1px solid #343b35;border-radius:5px;overflow:hidden;cursor:pointer;display:flex;flex-direction:column;transition:border-color .15s,transform .15s}
.v25-doc-card:hover{border-color:#67956d;transform:translateY(-2px)}
.v25-doc-preview{height:178px;background:#101311;position:relative;overflow:hidden;display:grid;place-items:center;border-bottom:1px solid #343b35}
.v25-doc-preview>img{width:100%;height:100%;object-fit:contain;background:#101311}
.v25-paper-preview{width:82%;height:88%;background:#151916;border:1px solid #353d36;padding:13px 10px;overflow:hidden;color:#b9c4ba}
.v25-paper-preview span{font-size:8px;color:#8dbd91;letter-spacing:.12em}
.v25-paper-preview strong{display:block;font-size:12px;line-height:1.35;margin:13px 0 9px;color:#e0e5e0}
.v25-paper-preview p{font-size:8px;line-height:1.45;color:#8d9990;overflow-wrap:anywhere}
.v25-status{position:absolute;right:9px;bottom:9px;width:8px;height:8px;border-radius:50%;background:#c4a765;box-shadow:0 0 0 3px #171a18}
.v25-status.red{background:#c47b7b}.v25-status.green{background:#7bb487}
.v25-doc-info{padding:10px 10px 8px;display:flex;flex-direction:column;min-height:130px}
.v25-doc-title{font-size:12px;font-weight:650;line-height:1.35;color:#d5ddd6;min-height:32px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.v25-doc-sub{font-size:10px;color:#83b18a;margin-top:5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v25-doc-meta{display:flex;flex-direction:column;gap:4px;margin-top:10px;color:#879289;font-size:9px}
.v25-doc-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:8px}
.v25-tag{font-size:8px;background:#294332;color:#a6d3ac;padding:3px 5px;border-radius:3px}
.v25-doc-actions{display:flex;gap:5px;margin-top:auto;padding-top:9px}
.v25-doc-actions button{flex:1;background:transparent;border:1px solid #465148;border-radius:3px;color:#9ca99e;padding:4px;font-size:11px}
.v25-doc-actions button:hover{background:#2d4031;color:#b8e0bd}
.v25-empty{grid-column:1/-1;min-height:220px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#8e9b90}
.v25-empty strong{font-size:15px;color:#cbd5cc}.v25-empty span{font-size:12px}
@media(max-width:850px){.v25-library{grid-template-columns:170px minmax(0,1fr)}.v25-library-main{padding:18px 14px}.v25-document-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr))}}
@media(max-width:600px){.v25-library{grid-template-columns:1fr}.v25-library-nav{display:none}.v25-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* STARSPEC V130 — Notes layout refinements */
.v24-folder-tabs{display:flex;gap:8px;align-items:center;margin:14px 0 8px}
.v24-folder-tabs .v24-folder-tab:not(:first-child){display:none!important}
.v26-folder-shelf{margin:18px 0 26px;padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:color-mix(in srgb,var(--panel) 78%,transparent)}
.v26-folder-shelf-head{display:flex;align-items:center;gap:12px;margin-bottom:13px;color:var(--muted);font:10px "DM Mono",monospace;letter-spacing:1.5px}
.v26-folder-shelf-head small{font:11px inherit;letter-spacing:0;opacity:.75}
.v26-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:9px}
.v26-folder-card{display:grid;grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;gap:2px 9px;text-align:left;padding:12px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);cursor:pointer;min-height:62px}
.v26-folder-card:hover,.v26-folder-card.active{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 12%,var(--card))}
.v26-folder-icon{grid-row:1/3;color:var(--folder);font-size:23px;line-height:1}
.v26-folder-name{font-size:13px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v26-folder-count{font-size:10px;color:var(--muted)}
.v26-folder-empty{font-size:12px;color:var(--muted);padding:10px}

/* STARSPEC V132 — folder documents are single continuous notepads */
.v26-back-to-folders{margin:8px 0 14px;padding:9px 13px;border:1px solid var(--line);border-radius:7px;background:var(--card);color:var(--text);cursor:pointer}
.v24-document-stage{display:block!important;position:relative!important;min-height:65vh}
.v24-document-page{position:relative!important;width:min(100%,980px)!important;min-height:70vh;margin:0 auto!important}
.v24-document-editor{min-height:65vh!important;width:100%!important;outline:none!important;white-space:normal}
.v24-floating-layer{position:absolute!important;inset:0;pointer-events:none}
.v24-floating-layer .v24-embed{pointer-events:auto}
.v24-document-shell #v5-minimap,.v24-document-shell #v13-spatial-minimap,.v24-document-shell .v8-minimap,.v24-document-shell .v8-graph-minimap{display:none!important}


/* STARSPEC V133 — Sources is a native full-width library list, not a separate green panel. */
.v25-library,.v25-library-main,.v28-sources-page{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important}
.v25-library{display:block!important;width:100%!important;max-width:none!important;padding:0!important}
.v25-library-nav{display:none!important}
.v25-library-main{width:100%!important;min-width:0!important;padding:28px 34px!important}
.v28-sources-page{width:100%;min-height:calc(100vh - 170px);color:var(--text)}
.v28-sources-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 24px}
.v28-sources-heading h1{margin:5px 0;font-size:30px}
.v28-sources-heading p{margin:0;color:var(--muted);font-size:13px}
.v28-source-searchbar{position:relative;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel);margin-bottom:20px}
.v28-source-searchbar>span{font-size:22px;color:var(--muted);padding:0 5px}
.v28-source-searchbar>input{flex:1;min-width:0;border:0!important;outline:0!important;background:transparent!important;color:var(--text)!important;box-shadow:none!important}
.v28-source-searchbar>[data-v25-clear]{border:0;background:transparent;color:var(--muted);font-size:19px}
.v28-filter-toggle{padding:9px 13px;border:1px solid var(--line);border-radius:6px;background:var(--card);color:var(--text);cursor:pointer}
.v28-filter-popover{position:absolute;z-index:1500;right:0;top:calc(100% + 7px);width:260px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--panel);box-shadow:0 12px 32px #0006;display:grid;gap:12px}
.v28-filter-popover[hidden]{display:none!important}
.v28-filter-popover label{display:grid;gap:5px;color:var(--muted);font-size:11px}
.v28-filter-popover select{width:100%;padding:8px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--text)}
.v28-filter-popover .v28-favourite-filter{display:flex;align-items:center;gap:8px}
.v28-filter-popover>button{padding:8px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--text)}
.v28-source-list-head{display:flex;justify-content:space-between;padding:0 14px 10px;color:var(--muted);font:10px "DM Mono",monospace;letter-spacing:1px;border-bottom:1px solid var(--line)}
.v28-source-rows{display:flex;flex-direction:column}
.v28-source-row{display:grid;grid-template-columns:76px minmax(0,1fr) 120px auto;align-items:center;gap:16px;padding:12px 14px;border-bottom:1px solid var(--line);background:transparent!important;cursor:pointer;min-height:88px}
.v28-source-row:hover{background:color-mix(in srgb,var(--panel) 55%,transparent)!important}
.v28-source-thumb{width:76px;height:62px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--muted)}
.v28-source-thumb img{width:100%;height:100%;object-fit:cover}
.v28-source-row-main{min-width:0;display:grid;gap:7px}
.v28-source-row-main>strong{font-size:14px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v28-source-row-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:11px}
.v28-source-tag{padding:2px 6px;border:1px solid var(--line);border-radius:4px}
.v28-source-status{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;white-space:nowrap}
.v28-source-status i{position:static!important;display:inline-block;width:8px;height:8px;border-radius:50%}
.v28-source-row-actions{display:flex;gap:5px}
.v28-source-row-actions button{width:30px;height:28px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--muted)}
.v28-source-empty{padding:45px 15px;display:grid;gap:8px;color:var(--muted);text-align:center}
.v28-source-empty strong{color:var(--text)}
.v28-source-empty span{font-size:12px}
.v25-library .v5-minimap,.v25-library #v13-spatial-minimap,.v25-library .v8-minimap,.v25-library .v8-graph-minimap,#v5-minimap,#v13-spatial-minimap,.v8-minimap,.v8-graph-minimap{display:none!important}
@media(max-width:850px){.v28-source-row{grid-template-columns:58px minmax(0,1fr) auto}.v28-source-thumb{width:58px;height:54px}.v28-source-status{display:none}.v25-library-main{padding:18px!important}}


/* STARSPEC V134 — source link-preview cards and inline status control */
.v28-source-list-head,.v28-source-rows,.v28-source-row{display:none!important}
.v28-source-count{margin:0 0 12px 2px;color:var(--muted);font:11px "DM Mono",monospace;letter-spacing:.7px}
.v29-source-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(255px,1fr));gap:16px;align-items:start}
.v29-source-card{display:flex;flex-direction:column;gap:10px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);cursor:pointer;min-height:290px;aspect-ratio:1/1.12;overflow:hidden;transition:border-color .15s,background .15s}
.v29-source-card:hover{border-color:var(--accent);background:color-mix(in srgb,var(--panel) 88%,var(--accent) 4%)}
.v29-source-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:28px}
.v29-source-url{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--accent);font-size:11px}
.v29-source-title{font-size:16px;line-height:1.35;font-weight:650}
.v29-source-description{margin:0;color:var(--muted);font-size:12px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;white-space:normal}
.v29-source-image{margin-top:auto;min-height:90px;max-height:145px;overflow:hidden;border-radius:5px;background:var(--card)}
.v29-source-image img{display:block;width:100%;height:100%;max-height:145px;object-fit:cover}
.v29-source-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px;border-top:1px solid var(--line);color:var(--muted);font-size:10px}
.v29-status-select{max-width:112px;padding:5px 7px;border:1px solid var(--line);border-radius:5px;background:var(--card);color:var(--text);font-size:10px;cursor:pointer}
.v29-source-card .v28-source-row-actions{display:flex;gap:4px}
.v29-source-card .v28-source-row-actions button{width:25px;height:24px;font-size:12px}
.v29-source-card [data-source-status]{cursor:pointer}


/* STARSPEC V135 — visible source status colour and directly clickable source URL */
.v29-source-card{border-left:4px solid var(--v29-status-color,var(--line));}
.v29-source-card[data-status="red"]{--v29-status-color:#e16b72;border-color:var(--line);border-left-color:#e16b72}
.v29-source-card[data-status="yellow"]{--v29-status-color:#d7b45d;border-color:var(--line);border-left-color:#d7b45d}
.v29-source-card[data-status="green"]{--v29-status-color:#63b987;border-color:var(--line);border-left-color:#63b987}
.v29-source-card[data-status="red"] .v29-status-select{border-color:#e16b72;color:#e98b91}
.v29-source-card[data-status="yellow"] .v29-status-select{border-color:#d7b45d;color:#e0c477}
.v29-source-card[data-status="green"] .v29-status-select{border-color:#63b987;color:#7bc99b}
.v29-source-url{position:relative;z-index:2;display:inline-block;max-width:70%;text-decoration:none!important;cursor:pointer}
a.v29-source-url:hover{text-decoration:underline!important;color:var(--text)!important}

/* STARSPEC V136 — folder pages use the full writing canvas */
.v24-document-shell .v24-document-stage{width:100%!important}
.v24-document-shell .v24-document-page{width:100%!important;max-width:none!important;margin:0!important}
.v24-document-shell .v24-document-editor{width:100%!important;min-height:72vh!important}
.v24-document-shell .v26-folder-shelf{display:block}

/* STARSPEC V137 — notes documents grow with content and remain scrollable */
.v24-document-shell{height:auto!important;min-height:calc(100vh - 120px)!important;overflow:visible!important}
.v24-document-stage{height:auto!important;min-height:calc(100vh - 220px)!important;overflow:visible!important}
.v24-document-page{height:auto!important;min-height:calc(100vh - 280px)!important;overflow:visible!important;padding-bottom:160px!important}
.v24-document-editor{height:auto!important;min-height:calc(100vh - 360px)!important;max-width:100%!important;overflow:visible!important;white-space:pre-wrap}
.v24-document-footer{margin-top:18px}
.v26-folder-shelf{margin-top:8px!important}

/* STARSPEC V138 — Obsidian-like folder editor placement and page scrolling */
#view-root:has(.v24-document-shell){
  height:100dvh!important;min-height:0!important;max-height:100dvh!important;
  overflow-y:auto!important;overflow-x:hidden!important;align-items:stretch!important;
  display:block!important;overscroll-behavior:contain;
}
#view-root:has(.v24-document-shell) .v24-document-shell{
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  min-height:calc(100dvh - 24px)!important;height:auto!important;padding:4px 0 0!important;
  gap:12px!important;overflow:visible!important;
}
#view-root:has(.v24-document-shell) .v24-editor-toolbar{
  order:1!important;position:sticky!important;top:0!important;z-index:20!important;
  width:100%!important;box-sizing:border-box!important;border-radius:0 0 7px 7px!important;
}
#view-root:has(.v24-document-shell) .v24-editor-toolbar .v26-back-to-folders{
  flex:0 0 auto!important;background:var(--panel)!important;border:1px solid var(--border)!important;
  padding:7px 12px!important;margin-right:4px!important;
}
#view-root:has(.v24-document-shell) .v24-document-header{order:0!important}
#view-root:has(.v24-document-shell) .v24-document-stage{
  order:2!important;flex:1 0 auto!important;width:100%!important;min-height:150vh!important;
  height:auto!important;overflow:visible!important;box-sizing:border-box!important;
}
#view-root:has(.v24-document-shell) .v24-document-page{
  width:100%!important;max-width:none!important;min-height:145vh!important;height:auto!important;
  margin:0!important;padding:22px 30px 160px!important;box-sizing:border-box!important;
}
#view-root:has(.v24-document-shell) .v24-document-editor{
  width:100%!important;max-width:none!important;min-height:125vh!important;height:auto!important;
  margin:0!important;padding:0!important;box-sizing:border-box!important;
  text-align:left!important;overflow:visible!important;white-space:pre-wrap!important;
}
#view-root:has(.v24-document-shell) .v24-document-footer{order:3!important}

/* V141: floating embeds sit cleanly above document text and drag without pointer capture glitches. */
.v24-document-editor{position:relative;z-index:1}
.v24-inline-embeds{position:relative;z-index:2}
.v24-floating-layer{z-index:5}
.v24-embed.is-floating{background:var(--panel,#1b2d3d);isolation:isolate}
.v24-embed.is-floating.is-dragging{cursor:grabbing;user-select:none;box-shadow:0 14px 34px rgba(0,0,0,.28)}
.v24-embed.is-floating .v24-embed-head{touch-action:none}
.v24-embed-head [data-action^="favourite"]{font-size:14px;color:var(--muted);background:transparent;border:0;padding:2px 6px;cursor:pointer}
.v24-embed-head [data-action^="favourite"][aria-pressed="true"]{color:#e6bd59}
.photo-grab button[data-action="favourite-image"]{margin-left:auto;color:var(--muted)}
.photo-grab button[data-action="favourite-image"]:hover{color:#e6bd59}
.v141-favourite-images{display:flex;flex-wrap:wrap;gap:14px}
.v141-favourite-image{width:190px;border:1px solid var(--border);border-radius:8px;overflow:hidden;background:var(--panel)}
.v141-favourite-image img{display:block;width:100%;height:150px;object-fit:cover}
.v141-favourite-image div{display:flex;align-items:center;justify-content:space-between;padding:8px;font-size:12px}
.v141-favourite-image button{border:0;background:transparent;color:#e6bd59;cursor:pointer}

/* V142 nested folder navigation and wiki-style note links */
.v26-back-folder{margin:0 0 14px;padding:8px 12px;border:1px solid var(--border);border-radius:6px;background:var(--surface);color:var(--text);cursor:pointer}
.v24-wiki-link{display:inline;border:0;padding:0;background:transparent;color:var(--accent);text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit}
.v24-wiki-link:hover{filter:brightness(1.2)}
.note-tools [data-action="favourite-note"]{color:var(--muted)}
.note-tools [data-action="favourite-note"].selected{color:#e6bd59}

/* V143: keep Overview's spatial controls out of folder documents */
body.v24-notes-view #v5-toolbar,
body.v24-notes-view .v7-toolbar-group,
body.v24-notes-view .v5-toolbar,
body.v24-notes-view .v12-channel-toolbar,
body.v24-notes-view .v13-channel-toolbar,
body.v24-notes-view .v14-channel-toolbar{display:none!important}
/* Source/note/image picker */
.v24-picker-backdrop{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:22px;background:rgba(4,10,18,.72);backdrop-filter:blur(5px)}
.v24-picker{width:min(560px,calc(100vw - 36px));max-height:min(680px,calc(100vh - 44px));display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--border,#31516a);border-radius:12px;background:var(--panel,#192d3e);box-shadow:0 24px 80px rgba(0,0,0,.48);color:var(--text,#e2edf5)}
.v24-picker-header{display:flex;align-items:center;justify-content:space-between;padding:20px 22px 14px;border-bottom:1px solid rgba(140,180,205,.14)}
.v24-picker-kicker{font-size:10px;letter-spacing:.16em;color:var(--muted,#8fa9bc);font-weight:700}
.v24-picker-header h2{margin:5px 0 0;font-size:21px}
.v24-picker-close{width:34px;height:34px;border:1px solid var(--border,#31516a);border-radius:7px;background:transparent;color:inherit;font-size:22px;cursor:pointer}
.v24-picker-search{margin:16px 20px 12px;padding:12px 14px;border:1px solid var(--border,#31516a);border-radius:7px;background:rgba(5,15,25,.24);color:inherit;font:inherit;outline:none}
.v24-picker-search:focus{border-color:var(--accent,#35c4d2);box-shadow:0 0 0 2px rgba(53,196,210,.12)}
.v24-picker-list{padding:0 20px 12px;overflow:auto;display:flex;flex-direction:column;gap:7px}
.v24-picker-item{display:grid;grid-template-columns:34px minmax(0,1fr) 24px;align-items:center;gap:10px;width:100%;padding:11px 12px;border:1px solid rgba(140,180,205,.18);border-radius:7px;background:rgba(255,255,255,.025);color:inherit;text-align:left;font:inherit;cursor:pointer}
.v24-picker-item:hover{background:rgba(70,160,190,.1);border-color:var(--border,#31516a)}
.v24-picker-item.selected{background:rgba(45,190,205,.13);border-color:var(--accent,#35c4d2)}
.v24-picker-number{display:grid;place-items:center;width:27px;height:27px;border-radius:6px;background:rgba(140,180,205,.12);color:var(--muted,#9bb2c3);font-size:12px;font-weight:700;font-variant-numeric:tabular-nums}
.v24-picker-name{overflow-wrap:anywhere;font-weight:600}
.v24-picker-check{color:var(--accent,#35c4d2);font-weight:800;text-align:center}
.v24-picker-empty{padding:18px;color:var(--muted,#9bb2c3);text-align:center}
.v24-picker-footer{display:flex;align-items:center;justify-content:space-between;padding:14px 20px;border-top:1px solid rgba(140,180,205,.14);background:rgba(0,0,0,.08)}
.v24-picker-count{font-size:13px;color:var(--muted,#9bb2c3)}
.v24-picker-add{padding:9px 16px;border:1px solid var(--accent,#35c4d2);border-radius:7px;background:var(--accent,#35c4d2);color:#09202a;font-weight:700;cursor:pointer}
.v24-picker-add:disabled{opacity:.4;cursor:not-allowed}

/* V144 — folder navigation as a note explorer */
.v144-note-card .v26-folder-icon{font-size:20px;color:var(--accent,#35c4d2)}
.v144-add-note{display:inline-flex;align-items:center;gap:8px;margin-top:16px;padding:10px 15px;border:1px solid var(--border,#31516a);border-radius:7px;background:rgba(45,190,205,.09);color:var(--text,#e2edf5);font:inherit;font-weight:650;cursor:pointer}
.v144-add-note:hover{border-color:var(--accent,#35c4d2);background:rgba(45,190,205,.15)}
.v144-note-card{min-height:82px}


/* V146 — polished note creation and context actions */
.v144-add-note{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  min-height:42px;margin:18px 0 2px;padding:0 17px;
  border:1px solid rgba(66,190,207,.42);border-radius:8px;
  background:rgba(45,190,205,.12);color:var(--text,#e2edf5);
  font-family:inherit;font-size:14px;font-weight:600;letter-spacing:.01em;cursor:pointer;
  transition:background .16s,border-color .16s,transform .16s;
}
.v144-add-note:hover{background:rgba(45,190,205,.2);border-color:var(--accent,#35c4d2);transform:translateY(-1px)}
.v144-add-note:focus-visible,.v145-dialog button:focus-visible,.v145-dialog input:focus-visible{outline:2px solid var(--accent,#35c4d2);outline-offset:2px}
.v145-note-card{position:relative;text-align:left}
.v145-dialog-backdrop{
  position:fixed;inset:0;z-index:100500;display:grid;place-items:center;
  padding:22px;background:rgba(3,10,18,.72);backdrop-filter:blur(5px);
}
.v145-dialog{
  width:min(480px,calc(100vw - 36px));box-sizing:border-box;padding:27px;
  border:1px solid rgba(120,170,198,.28);border-radius:13px;
  background:var(--panel,#192d3e);color:var(--text,#e2edf5);
  box-shadow:0 24px 80px rgba(0,0,0,.48);
}
.v145-dialog-kicker{font-size:10px;letter-spacing:.17em;font-weight:750;color:var(--accent,#35c4d2)}
.v145-dialog h2{margin:8px 0 7px;font-size:23px;line-height:1.2}
.v145-dialog p{margin:0 0 22px;color:var(--muted,#9bb2c3);font-size:13px;line-height:1.55}
.v145-dialog label{display:block;margin:0 0 8px;font-size:12px;font-weight:700;color:var(--muted,#a9bdcb)}
.v145-dialog input{
  display:block;box-sizing:border-box;width:100%;height:45px;padding:0 13px;
  border:1px solid rgba(140,180,205,.28);border-radius:8px;outline:none;
  background:rgba(5,17,28,.42);color:var(--text,#e2edf5);font:inherit;
}
.v145-dialog input:focus{border-color:var(--accent,#35c4d2);box-shadow:0 0 0 3px rgba(45,190,205,.12)}
.v145-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}
.v145-dialog-actions button{
  min-height:39px;padding:0 16px;border:1px solid rgba(140,180,205,.25);
  border-radius:7px;background:rgba(255,255,255,.045);color:var(--text,#e2edf5);
  font-family:inherit;font-size:13px;font-weight:600;cursor:pointer;
}
.v145-dialog-actions .v145-confirm{border-color:var(--accent,#35c4d2);background:var(--accent,#35c4d2);color:#08212a}
.v145-context-menu{
  position:fixed;z-index:100600;min-width:190px;padding:6px;
  border:1px solid rgba(130,175,200,.25);border-radius:9px;
  background:var(--panel,#192d3e);box-shadow:0 14px 38px rgba(0,0,0,.42);
}
.v145-context-menu button{display:block;width:100%;padding:10px 11px;border:0;border-radius:5px;background:transparent;color:var(--text,#e2edf5);text-align:left;font-family:inherit;font-size:13px;font-weight:500;cursor:pointer}
.v145-context-menu button:hover{background:rgba(75,155,185,.15)}
.v145-context-menu button.danger{color:#ff9292}
.v145-menu-divider{height:1px;margin:5px 4px;background:rgba(140,180,205,.16)}


/* V147 — folder explorer hierarchy, assigned colours and clean folder rows */
.v147-folder-top{display:flex;align-items:center;justify-content:flex-start;gap:12px;margin:0 0 17px}
.v147-folder-top .v26-back-folder,.v147-folder-top .v144-add-note{margin:0}
.v147-folder-title{margin:0 0 5px!important;font-size:clamp(26px,3vw,36px)!important;line-height:1.15;font-weight:800;letter-spacing:-.025em;color:var(--text,#e2edf5)}
.v147-folder-subtitle{margin:0 0 20px;color:var(--muted,#9bb2c3);font-size:12px}
.v147-coloured-folder{display:flex!important;flex-direction:column;align-items:flex-start!important;justify-content:center;gap:5px!important;min-height:78px!important;padding:15px 17px!important;border-color:color-mix(in srgb,var(--folder) 58%,transparent)!important;background:color-mix(in srgb,var(--folder) 25%,var(--panel,#192d3e))!important;transition:filter .15s,border-color .15s}
.v147-coloured-folder:hover{filter:brightness(1.15);border-color:var(--folder)!important;background:color-mix(in srgb,var(--folder) 34%,var(--panel,#192d3e))!important}
.v147-coloured-folder .v26-folder-name{font-size:15px;font-weight:750;white-space:normal}
.v147-coloured-folder .v26-folder-count{font-size:11px;color:var(--text-muted,var(--muted,#a8bdcc))}
.folder-open[data-colour="true"]{background:color-mix(in srgb,var(--folder-colour) 25%,var(--panel,#192d3e));border:1px solid color-mix(in srgb,var(--folder-colour) 55%,transparent);color:var(--text,#e2edf5)}
.folder-open[data-colour="true"]:hover,.folder-open[data-colour="true"].active{background:color-mix(in srgb,var(--folder-colour) 38%,var(--panel,#192d3e));border-color:var(--folder-colour)}
.v26-folder-card.v147-coloured-folder{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important}
.v26-folder-card.v147-coloured-folder .v26-folder-name{grid-column:1;grid-row:1}
.v26-folder-card.v147-coloured-folder .v26-folder-count{grid-column:1;grid-row:2}
.v147-folder-top .v26-back-folder{min-height:40px;padding:0 14px}
.v147-folder-top .v144-add-note{min-height:40px;padding:0 15px}


/* V148 — update folder colours live and align the folder breadcrumb */
.v147-folder-top{align-items:center;justify-content:center}
.v147-folder-top .v26-back-folder{display:inline-flex;align-items:center;justify-content:center;gap:9px;text-align:center;line-height:1;min-height:42px}
.v26-folder-shelf-head small{display:none!important}

/* V149 — align folder navigation controls to the panel's left edge */
.v147-folder-top{justify-content:flex-start!important;align-items:center!important;gap:12px!important}
.v147-folder-top .v26-back-folder{display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;text-align:left!important;gap:8px!important;min-height:42px!important;line-height:1!important}


/* V150 — chevron-style back indicator rotated to point left */
.v147-folder-top .v26-back-folder{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.v149-back-chevron{display:inline-block;width:10px;height:10px;flex:0 0 10px;border-top:2px solid currentColor;border-right:2px solid currentColor;transform:rotate(-135deg);margin:0 1px 0 3px}


/* V151 — consistent back chevrons and contained, resizable floating embeds */
.v26-back-to-folders{display:inline-flex;align-items:center;gap:10px}
.v24-embed{box-sizing:border-box}
.v24-embed.is-floating{resize:both;overflow:auto;min-height:130px;min-width:190px}
.v24-embed.is-floating img{width:100%;max-width:100%;max-height:calc(100% - 58px);height:auto;object-fit:contain;box-sizing:border-box}
.v24-embed:not(.is-floating) img{width:100%;max-width:100%;height:auto;max-height:320px;object-fit:contain;box-sizing:border-box}


/* V151 — keep portfolio image pixels inside their framed image viewport */
.v7-object[data-v7-type="image"] .v8-photo-image{
  min-width:0!important;min-height:0!important;width:100%!important;height:100%!important;
  overflow:hidden!important;box-sizing:border-box!important;display:flex!important;
  align-items:center!important;justify-content:center!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  display:block!important;flex:0 1 auto!important;min-width:0!important;min-height:0!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;box-sizing:border-box!important;
}


/* V152 — compact back control: chevron stays small and folder label never wraps */
.v26-back-to-folders{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:0 0 auto!important;width:max-content!important;min-width:max-content!important;
  max-width:none!important;white-space:nowrap!important;gap:10px!important;
}
.v26-back-to-folders>span:last-child{display:inline-block!important;white-space:nowrap!important;flex:0 0 auto!important}
.v26-back-to-folders .v149-back-chevron{
  width:10px!important;height:10px!important;min-width:10px!important;max-width:10px!important;
  flex:0 0 10px!important;transform:rotate(-135deg)!important;
}
.v147-folder-top{flex-wrap:nowrap!important;align-items:center!important}

/* V152 — hard clip imported portfolio image pixels to the framed viewport */
.v7-object[data-v7-type="image"] .v8-photo-image,
.v7-object[data-v7-type="image"] .v8-photo-image *{
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  position:relative!important;overflow:hidden!important;clip-path:inset(0 round 0)!important;
  contain:paint!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  position:relative!important;inset:auto!important;display:block!important;
  width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;overflow:hidden!important;
}

.v24-embed[data-v24-embed]{cursor:default}
.v24-embed[data-v24-embed]:has(.v24-embed-head span:first-child){transition:border-color .15s}
.v24-embed[data-v24-embed] .v24-embed-head{cursor:grab}
.v24-embed[data-v24-embed][data-v24-source]{cursor:pointer}

/* V152 — the outer image object is the clipping boundary; content cannot paint past its blue frame */
.v7-object[data-v7-type="image"]{
  overflow:hidden!important;contain:paint!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  overflow:hidden!important;min-width:0!important;min-height:0!important;
}
.v7-object[data-v7-type="image"] .photo-object{
  overflow:hidden!important;min-width:0!important;min-height:0!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  flex:1 1 0!important;min-height:0!important;max-height:100%!important;
}

.v24-open-source-hint{display:inline-block;margin-top:7px;color:var(--accent);font-size:11px;font-weight:650}
.v24-embed:has(.v24-open-source-hint){cursor:pointer}
.v24-embed:has(.v24-open-source-hint):hover{border-color:var(--accent)}


/* V153 — keep the note-folder back control from inheriting toolbar separator styling */
.v24-editor-toolbar .v26-back-to-folders{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  flex:0 0 auto!important;gap:11px!important;width:auto!important;min-width:max-content!important;
  max-width:none!important;white-space:nowrap!important;padding:7px 11px!important;
  margin:0 5px 0 0!important;line-height:1.25!important;
}
.v24-editor-toolbar .v26-back-to-folders>span{
  display:inline-block!important;width:auto!important;height:auto!important;
  flex:0 0 auto!important;margin:0!important;background:none!important;
  white-space:nowrap!important;line-height:1.25!important;
}
.v24-editor-toolbar .v26-back-to-folders .v149-back-chevron{
  display:inline-block!important;width:10px!important;height:10px!important;
  min-width:10px!important;flex:0 0 10px!important;
  border-top:2px solid currentColor!important;border-right:2px solid currentColor!important;
  transform:rotate(-135deg)!important;
}
.v24-editor-toolbar .v26-back-to-folders>span:last-child{
  font-size:11px!important;letter-spacing:normal!important;
}


/* V153 — contain every pixel of a spatial portfolio image inside its frame */
.v7-object[data-v7-type="image"]{
  display:flex!important;flex-direction:column!important;min-height:0!important;
  overflow:hidden!important;clip-path:inset(0 round 5px)!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  flex:0 0 29px!important;min-height:29px!important;max-height:29px!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  display:block!important;position:relative!important;flex:1 1 0!important;
  width:100%!important;height:0!important;min-width:0!important;min-height:0!important;
  max-height:100%!important;padding:0!important;margin:0!important;
  overflow:hidden!important;clip-path:inset(0)!important;contain:strict!important;
}
.v7-object[data-v7-type="image"] .photo-object{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;overflow:hidden!important;
  clip-path:inset(0)!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  display:flex!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;overflow:hidden!important;
  clip-path:inset(0)!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  display:block!important;position:static!important;flex:1 1 auto!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;object-fit:contain!important;
  object-position:center!important;overflow:hidden!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v7-grip-actions [data-v7-object-action="favourite"]{
  color:#e6c56d!important;font-size:14px!important;font-weight:800!important;
}
.v7-object[data-v7-type="image"] .v7-grip-actions [data-v7-object-action="favourite"][aria-pressed="true"]{
  color:#ffd75e!important;
}


/* V154 — hard-bound imported image pixels to the actual blue object frame.
   The image element itself is absolutely positioned in a clipped content box;
   intrinsic image dimensions can no longer enlarge the object or escape its border. */
.v7-object[data-v7-type="image"]{
  position:absolute!important;display:block!important;
  overflow:hidden!important;contain:paint!important;clip-path:inset(0)!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  position:absolute!important;left:0!important;right:0!important;top:0!important;
  height:29px!important;min-height:29px!important;max-height:29px!important;
  box-sizing:border-box!important;overflow:hidden!important;z-index:3!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  position:absolute!important;left:0!important;right:0!important;
  top:29px!important;bottom:0!important;width:auto!important;height:auto!important;
  min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
  display:block!important;overflow:hidden!important;contain:strict!important;
  clip-path:inset(0)!important;box-sizing:border-box!important;padding:0!important;margin:0!important;
}
.v7-object[data-v7-type="image"] .photo-object{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;overflow:hidden!important;
  contain:strict!important;clip-path:inset(0)!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  position:absolute!important;inset:0!important;display:block!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:100%!important;overflow:hidden!important;
  contain:strict!important;clip-path:inset(0)!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  all:unset!important;display:block!important;position:absolute!important;
  left:0!important;top:0!important;width:100%!important;height:100%!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;
  box-sizing:border-box!important;overflow:hidden!important;
}
.v7-object[data-v7-type="image"] .v14-image-toggle,
.v7-object[data-v7-type="image"] .v8-photo-writing{display:none!important}

/* The same containment applies to images on the regular Portfolio board. */
#photo-board>.photo-object{
  position:absolute!important;overflow:hidden!important;contain:paint!important;
  clip-path:inset(0 round 5px)!important;box-sizing:border-box!important;
}
#photo-board>.photo-object>img{
  display:block!important;position:absolute!important;left:0!important;right:0!important;
  top:29px!important;bottom:0!important;width:100%!important;height:calc(100% - 29px)!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;
  object-fit:contain!important;object-position:center!important;overflow:hidden!important;
  box-sizing:border-box!important;
}


/* V155 — favourites page: balanced toolbar spacing and a scrollable content
   column so lower image favourites remain reachable. */
body.v155-favourites-view #view-root{
  min-height:0!important;height:auto!important;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  padding-bottom:48px!important;scrollbar-gutter:stable;
}
body.v155-favourites-view .v5-toolbar{
  margin-top:0!important;margin-bottom:18px!important;flex:0 0 auto!important;
}
body.v155-favourites-view #view-root>.page-heading{
  margin-top:0!important;margin-bottom:28px!important;
}
body.v155-favourites-view #view-root .v141-favourite-images{
  display:flex!important;flex-wrap:wrap!important;align-items:flex-start!important;
  gap:18px!important;padding-bottom:36px!important;min-height:180px!important;
}
body.v155-favourites-view #view-root .v141-favourite-image{
  flex:0 0 auto!important;max-width:min(320px,100%)!important;
}
body.v155-favourites-view #view-root .v141-favourite-image img{
  display:block!important;max-width:100%!important;height:auto!important;object-fit:contain!important;
}


/* V156 — make portfolio image frames meet the image edge, without letterbox
   gaps, and make the Favourites page scroll inside the workspace. */
.photo-object{
  overflow:hidden!important;
  padding:0!important;
  border-radius:4px!important;
  clip-path:inset(0 round 4px)!important;
}
.photo-object>img{
  display:block!important;
  position:absolute!important;
  left:0!important;right:0!important;
  top:29px!important;bottom:0!important;
  width:100%!important;height:calc(100% - 29px)!important;
  max-width:100%!important;max-height:calc(100% - 29px)!important;
  object-fit:cover!important;
  object-position:center!important;
  margin:0!important;padding:0!important;
  border:0!important;border-radius:0 0 3px 3px!important;
  box-sizing:border-box!important;
}
body.v155-favourites-view .workspace{
  display:flex!important;flex-direction:column!important;
  height:100vh!important;min-height:0!important;
  overflow:hidden!important;
}
body.v155-favourites-view .workspace>.topbar{
  flex:0 0 auto!important;margin-bottom:6px!important;
}
body.v155-favourites-view .workspace>#v5-toolbar{
  flex:0 0 auto!important;margin-top:0!important;
  margin-bottom:10px!important;
}
body.v155-favourites-view #view-root{
  flex:1 1 0!important;min-height:0!important;
  height:0!important;max-height:none!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior:contain!important;
  padding-bottom:48px!important;
}

/* V157: tighten the gap above the Favourites history/undo bar. */
body.v155-favourites-view .workspace>.topbar{margin-bottom:0!important}
body.v155-favourites-view .workspace>#v5-toolbar{margin-top:-7px!important}


/* V158 — eliminate empty image wells inside spatial image borders. */
.v7-object[data-v7-type="image"]{
  display:flex!important;flex-direction:column!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  flex:0 0 24px!important;height:24px!important;min-height:24px!important;
  max-height:24px!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  display:block!important;position:relative!important;
  flex:1 1 0!important;height:0!important;min-height:0!important;
  width:100%!important;min-width:0!important;margin:0!important;padding:0!important;
  overflow:hidden!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .photo-object{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:0!important;overflow:hidden!important;
  border:0!important;background:transparent!important;box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  display:block!important;position:absolute!important;inset:0!important;
  width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
  max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;
  object-fit:cover!important;object-position:center!important;
}
/* The history/undo bar sits directly against the breadcrumb bar on Favourites. */
body.v155-favourites-view .workspace>.topbar{margin-bottom:0!important}
body.v155-favourites-view .workspace>#v5-toolbar{
  margin-top:0!important;margin-bottom:10px!important;top:57px!important;
}


/* V159 — Favourites history bar belongs directly below the breadcrumb in normal flow. */
body.v155-favourites-view .workspace>.topbar{
  margin-bottom:0!important;
}
body.v155-favourites-view .workspace>#v5-toolbar{
  position:relative!important;
  top:auto!important;
  margin-top:0!important;
  margin-bottom:10px!important;
  transform:none!important;
}


/* V160 — align the header mark with the right edge of the content toolbar. */
.workspace>.topbar{
  padding-right:0!important;
}
.workspace>.topbar .topbar-actions{
  margin-right:-24px!important;
}

/* V160 — image objects: the image fills the frame directly below its title strip. */
.v7-object[data-v7-type="image"]{
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  padding:0!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  flex:0 0 29px!important;
  height:29px!important;
  min-height:29px!important;
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  width:100%!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v7-photo-object{
  display:flex!important;
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
  background:transparent!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  display:block!important;
  position:relative!important;
  flex:1 1 auto!important;
  min-width:0!important;
  min-height:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:0!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center!important;
  box-sizing:border-box!important;
}
/* Portfolio and favourites thumbnails stay clipped to their own frame. */
.photo-object>img,
.v141-favourite-image>img{
  display:block!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  object-fit:cover!important;
  overflow:hidden!important;
}
.photo-object{
  overflow:hidden!important;
  box-sizing:border-box!important;
}




/* V161 — Favourites header and history toolbar: two distinct, aligned rows. */
body.v155-favourites-view .workspace{
  display:flex!important;
  flex-direction:column!important;
  min-width:0!important;
  min-height:0!important;
  height:100vh!important;
  overflow:hidden!important;
}
body.v155-favourites-view .workspace>.topbar{
  position:relative!important;
  inset:auto!important;
  flex:0 0 42px!important;
  height:42px!important;
  min-height:42px!important;
  width:100%!important;
  box-sizing:border-box!important;
  margin:0 0 6px 0!important;
  padding:3px 16px!important;
  transform:none!important;
  z-index:2!important;
}
body.v155-favourites-view .workspace>.topbar .topbar-actions{
  margin:0!important;
  padding:0!important;
  transform:none!important;
  flex:0 0 auto!important;
}
body.v155-favourites-view .workspace>.topbar .avatar-button{
  margin:0!important;
}
body.v155-favourites-view .workspace>#v5-toolbar{
  position:relative!important;
  inset:auto!important;
  top:auto!important;
  left:auto!important;
  right:auto!important;
  transform:none!important;
  flex:0 0 auto!important;
  width:100%!important;
  max-width:none!important;
  box-sizing:border-box!important;
  margin:0 0 12px 0!important;
  z-index:1!important;
}
body.v155-favourites-view #view-root{
  flex:1 1 0!important;
  min-height:0!important;
  height:0!important;
  max-height:none!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
}

/* V161 — image frame geometry is controlled by the outer object.
   Header strip occupies 29px; the image viewport fills every remaining pixel. */
.v7-object[data-v7-type="image"]{
  position:absolute!important;
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
  contain:paint!important;
  clip-path:inset(0 round 4px)!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] > .v7-object-grip{
  position:absolute!important;
  inset:0 0 auto 0!important;
  display:flex!important;
  width:100%!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin:0!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
  z-index:4!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content{
  position:absolute!important;
  inset:29px 0 0 0!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  contain:paint!important;
  clip-path:inset(0)!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content > .photo-object{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  contain:paint!important;
  clip-path:inset(0)!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  contain:paint!important;
  clip-path:inset(0)!important;
  box-sizing:border-box!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-writing{
  display:none!important;
}
.v7-object[data-v7-type="image"].v14-image-expanded .v8-photo-writing{
  display:flex!important;
  position:absolute!important;
  left:calc(100% + 12px)!important;
  top:0!important;
  z-index:30!important;
}

/* Regular Portfolio board: keep image pixels flush to the blue frame too. */
#photo-board > .photo-object{
  position:absolute!important;
  overflow:hidden!important;
  contain:paint!important;
  clip-path:inset(0 round 4px)!important;
  padding:0!important;
  box-sizing:border-box!important;
}
#photo-board > .photo-object > img{
  position:absolute!important;
  inset:29px 0 0 0!important;
  display:block!important;
  width:100%!important;
  height:calc(100% - 29px)!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:cover!important;
  object-position:center!important;
  box-sizing:border-box!important;
}




/* V162 — Favourites header alignment: same outer width, with a visible 3px gap. */
body.v155-favourites-view .workspace>.topbar{
  width:100%!important;
  height:42px!important;
  min-height:42px!important;
  flex:0 0 42px!important;
  margin:0 0 3px 0!important;
  padding:3px 0 3px 16px!important;
  box-sizing:border-box!important;
  overflow:visible!important;
}
body.v155-favourites-view .workspace>.topbar .topbar-actions{
  margin:0 -24px 0 0!important;
  padding:0!important;
  flex:0 0 auto!important;
  transform:none!important;
}
body.v155-favourites-view .workspace>.topbar .avatar-button{
  margin:0!important;
}
body.v155-favourites-view .workspace>#v5-toolbar{
  width:100%!important;
  max-width:none!important;
  position:relative!important;
  inset:auto!important;
  transform:none!important;
  margin:0 0 12px 0!important;
  box-sizing:border-box!important;
}

/* V162 — remove the persistent inset around spatial image pixels.
   The title/grip remains untouched; only the image viewport expands to the frame edges. */
.v7-object[data-v7-type="image"]{
  padding:0!important;
  overflow:hidden!important;
  clip-path:inset(0 round 4px)!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content{
  left:0!important;
  right:0!important;
  top:29px!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content > .photo-object{
  position:absolute!important;
  left:-13px!important;
  right:-13px!important;
  top:0!important;
  bottom:0!important;
  width:auto!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip-path:inset(0)!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  clip-path:inset(0)!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:cover!important;
  object-position:center!important;
  box-sizing:border-box!important;
}




/* V163 — calendar is a scrollable workspace, not a clipped viewport. */
body:has(.v22-product-page) .app-shell{
  height:100vh!important;
  min-height:0!important;
  overflow:hidden!important;
}
body:has(.v22-product-page) .workspace{
  height:calc(100vh - 20px)!important;
  min-height:0!important;
  display:flex!important;
  flex-direction:column!important;
  overflow:hidden!important;
}
body:has(.v22-product-page) #view-root{
  flex:1 1 auto!important;
  min-height:0!important;
  height:0!important;
  overflow-y:auto!important;
  overflow-x:hidden!important;
  overscroll-behavior:contain;
  padding-bottom:48px!important;
}
body:has(.v22-product-page) .v22-product-page{
  min-height:max-content!important;
  padding-bottom:48px!important;
}

/* V163 — distribute every navigation icon evenly along the vertical rail. */
.icon-rail{
  justify-content:space-between!important;
  gap:0!important;
}
.icon-rail>.icon-button{
  flex:0 0 38px!important;
  margin:0!important;
}
.icon-rail>.rail-bottom{
  margin-top:0!important;
}

/* V163 — each folder is a positioned graph group; its note stars move with it. */
.graph-canvas-free .planet-group{
  position:absolute!important;
  inset:auto!important;
  width:0!important;
  height:0!important;
  overflow:visible!important;
  pointer-events:none!important;
}
.graph-canvas-free .planet-group>.mini-planet,
.graph-canvas-free .planet-group>.universe-note-star{
  pointer-events:auto!important;
}
.graph-canvas-free .planet-group>.mini-planet{
  left:0!important;
  top:0!important;
}



/* V164 — remove the artificial inset around imported image pixels.
   The blue frame owns the geometry; the image viewport must meet its inner
   edges exactly, with no negative offsets, padding, or nested card margins. */
.v7-object[data-v7-type="image"]{
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content{
  position:absolute!important;
  inset:29px 0 0 0!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content > .photo-object{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
  background:transparent!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:cover!important;
  object-position:center!important;
  box-sizing:border-box!important;
}


/* V166 — image frame follows the image's own aspect ratio.
   Prevent flex-centering/contain rules from shrinking the image inside its frame. */
.v7-object[data-v7-type="image"]{
  display:block!important;
  position:absolute!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] > .v7-object-grip{
  position:absolute!important;
  inset:0 0 auto 0!important;
  width:100%!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] > .v7-object-content{
  position:absolute!important;
  left:0!important;
  right:0!important;
  top:29px!important;
  bottom:0!important;
  width:100%!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"] .v8-photo-image img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  object-fit:fill!important;
  box-sizing:border-box!important;
}


/* V167 — isolated spatial image markup; no Portfolio card/flex inheritance. */
.v7-object[data-v7-type="image"]{display:block!important;position:absolute!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"]>.v7-object-grip{position:absolute!important;z-index:2!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:29px!important;min-height:29px!important;max-height:29px!important;margin:0!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"]>.v7-object-content{position:absolute!important;top:29px!important;left:0!important;right:0!important;bottom:0!important;display:block!important;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"] .v7-spatial-image-card{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;background:transparent!important}
.v7-object[data-v7-type="image"] .v7-spatial-image-media{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"] .v7-spatial-image-media img{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:fill!important;box-sizing:border-box!important}
.v7-object[data-v7-type="image"] .v14-image-toggle{position:absolute!important;z-index:3!important;right:4px!important;bottom:4px!important}
.v7-object[data-v7-type="image"] .v7-spatial-image-notes{display:none!important}


/* V169 — spatial image pixels are a direct child of the content viewport.
   This removes the nested wrappers that were vertically centering the image
   and leaving a visible dark gap between the title bar and the image. */
.v7-object[data-v7-type="image"]{
  display:block!important;
  position:absolute!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  position:absolute!important;
  z-index:4!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  height:29px!important;
  min-height:29px!important;
  max-height:29px!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  position:absolute!important;
  top:29px!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  display:block!important;
  width:auto!important;
  height:auto!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content>.v7-spatial-image-pixels{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:fill!important;
  object-position:center!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content>.v14-image-toggle{
  position:absolute!important;
  z-index:5!important;
  right:4px!important;
  bottom:4px!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content>.v7-spatial-image-notes{
  display:none!important;
}


/* V170 — image viewport geometry is explicit and aspect-ratio driven. */
.v7-object[data-v7-type="image"]{
  display:block!important;
  position:absolute!important;
  padding:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-grip{
  position:absolute!important;
  z-index:4!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  margin:0!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content{
  position:absolute!important;
  left:0!important;
  right:0!important;
  bottom:auto!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
  box-sizing:border-box!important;
}
.v7-object[data-v7-type="image"]>.v7-object-content>.v7-spatial-image-pixels{
  position:absolute!important;
  top:0!important;
  left:0!important;
  right:0!important;
  bottom:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  max-height:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  object-fit:fill!important;
  object-position:center!important;
  transform:none!important;
  box-sizing:border-box!important;
}


/* V174 — stable, resizable spatial image frame.
   The grip is the fixed 29px title strip; the image fills the remaining
   frame without cropping, stretching, or escaping during resize. */
.v7-object[data-v7-type="image"] {
  position: absolute !important;
  display: block !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.v7-object[data-v7-type="image"] > .v7-object-grip {
  position: absolute !important;
  z-index: 4 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 29px !important;
  min-height: 29px !important;
  max-height: 29px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.v7-object[data-v7-type="image"] > .v7-object-content {
  position: absolute !important;
  top: 29px !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
.v7-object[data-v7-type="image"] > .v7-object-content > .v7-spatial-image-pixels {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  box-sizing: border-box !important;
}
