@charset "UTF-8";
:root{--serif:Georgia,"Noto Serif CJK KR","Batang","AppleMyungjo",serif;--sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans CJK KR","Apple SD Gothic Neo",sans-serif;--ease:cubic-bezier(.22,1,.36,1);--panel:362px}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font:13px/1.5 var(--sans);-webkit-font-smoothing:antialiased}button,input,a{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0}button:disabled{opacity:.28;cursor:default}a{color:inherit;text-decoration:none}input{font:inherit;color:inherit}button:focus-visible,a:focus-visible{outline:2px solid var(--purple);outline-offset:4px}input:focus-visible{outline:0}svg{display:block;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[data-icon] svg{width:18px;height:18px;stroke-width:1.6}[hidden]{display:none!important}kbd{font:10px/1.4 var(--sans);border-radius:4px;padding:2px 5px}.icon-button{display:grid;place-items:center;width:34px;height:34px;border-radius:9px}
#app{height:100%;position:relative}.topbar{height:var(--header);display:flex;align-items:center;position:relative;z-index:40;padding:0 30px}.brand{display:flex;align-items:center;gap:10px;font-weight:650;letter-spacing:-1.4px;line-height:1;white-space:nowrap}.brand-period{color:var(--purple)}.edition{color:#9796a0;font-size:9px;letter-spacing:.015em;border-left:1px solid var(--line);padding-left:20px;white-space:nowrap}.edition b{font-weight:550;color:#575863;margin-left:3px}.view-switch{position:absolute;left:50%;transform:translateX(-50%);display:flex;gap:3px;padding:4px;border-radius:11px}.view-switch button{display:flex;gap:6px;align-items:center;padding:6px 14px;border-radius:7px;font-size:11px;line-height:1.5;transition:background .2s,color .2s,box-shadow .2s}.view-switch button [data-icon] svg{width:14px;height:14px}.header-actions{display:flex;align-items:center;gap:13px;margin-left:auto}.search-trigger{display:flex;align-items:center;gap:8px;border-radius:8px;padding:7px 9px 7px 11px}.search-trigger [data-icon] svg{width:15px;height:15px}.search-label{font-size:10px;margin-right:15px}.search-trigger kbd{font-size:9px}.help-button{width:26px;height:26px;border-radius:50%;font-family:var(--serif);font-style:italic;font-size:13px}.help-button:hover{border-color:var(--purple)}#recentOpen{position:relative}.recent-dot{position:absolute;width:4px;height:4px;right:6px;top:6px;border-radius:50%;background:var(--purple)}
#workspace{position:relative;height:calc(100dvh - var(--header));overflow:hidden}.canvas-view,.canvas-viewport{position:absolute;inset:0;overflow:hidden}.canvas-viewport{touch-action:none;cursor:grab;isolation:isolate}.canvas-viewport.panning,.canvas-viewport.hand-mode:active{cursor:grabbing}.canvas-dots{position:absolute;z-index:-1;background-size:24px 24px;pointer-events:none}.world{position:absolute;left:0;top:0;transform-origin:0 0;overflow:visible;will-change:auto}.edges{position:absolute;inset:0;overflow:visible;pointer-events:none}.connection{fill:none;stroke-width:1.3;stroke-dasharray:3 5;transition:stroke .25s,opacity .25s}.connection.active{stroke-width:1.8;stroke-dasharray:none}.connection.muted{opacity:.2}.edge-pin{stroke-width:1.2;transition:fill .2s}.canvas-vignette{position:absolute;inset:0;pointer-events:none}h1{font-weight:520;letter-spacing:-.06em;line-height:1.3}
.palette{position:absolute;z-index:5;border-radius:15px;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);overflow:hidden}.palette-header{display:flex;align-items:center;justify-content:space-between;color:#8a8797;font-size:9px;letter-spacing:.035em}.palette-number{font-size:9px;font-variant-numeric:tabular-nums;color:#b5b0c0}.theme-button{display:flex;align-items:center;gap:9px;width:100%;border-radius:7px;font-size:10px;transition:background .2s,color .2s;text-align:left}.theme-button .theme-count{margin-left:auto;font-size:9px;font-variant-numeric:tabular-nums}.theme-button [data-icon] svg{width:14px;height:14px}.theme-dot{width:7px;height:7px;border-radius:3px;background:var(--theme);transform:rotate(-12deg)}.palette-close,.mobile-palette-button{display:none}.canvas-dock{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);z-index:6;display:flex;align-items:center;gap:4px;padding:5px 6px;border-radius:12px;backdrop-filter:blur(10px)}.dock-button{width:34px;height:34px;display:grid;place-items:center;border-radius:7px;transition:background .2s,color .2s}.dock-button svg{width:16px;height:16px}.dock-button.active{color:#fff}.dock-divider{height:18px;width:1px;margin:0 3px}
/* Real archive records become tactile text objects. */
.map-node{position:absolute;text-align:left;transition:opacity .3s,box-shadow .25s,border-color .25s,scale .25s;cursor:grab;user-select:none;-webkit-user-select:none}.map-node:active{cursor:grabbing}.record-node{width:250px;min-height:155px;border:1px solid #dedbe8;border-radius:11px;box-shadow:0 3px 5px #49375a04,0 12px 22px #49375a05;background:#fff;color:#42404c;rotate:var(--rotation,0deg);z-index:2}.record-node:hover{z-index:8;scale:1.025}.record-node.selected{z-index:10;border-color:var(--purple);box-shadow:0 0 0 3px #575ce51a,0 12px 32px #49375a14}.record-node.dragging{z-index:20;scale:1.04;transition:none;cursor:grabbing}.node-kicker{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:.03em;color:#aaa4b4}.node-kicker svg{width:13px;height:13px}.node-type{display:flex;align-items:center;gap:5px}.node-type [data-icon] svg{width:12px;height:12px;stroke-width:1.5}.node-title{font-size:17px;font-weight:500;letter-spacing:-.045em;line-height:1.65;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow-wrap:anywhere;word-break:keep-all}.node-footer{display:flex;justify-content:space-between;align-items:center;font-size:8px;color:#a59daf;gap:5px}.node-footer span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:155px}.record-node.tinted{background:var(--tint);border-color:var(--tint-line)}.record-node.tinted .node-kicker{color:var(--theme-ink)}.record-node.tinted .node-footer{color:var(--theme-ink);opacity:.65}.record-node.quote{width:286px;padding:24px 25px 19px}.record-node.quote .node-title{-webkit-line-clamp:5;font-family:var(--serif);font-size:22px;line-height:1.8;letter-spacing:-.07em;font-weight:400}.record-node.quote .node-kicker{margin-bottom:14px}.record-node.quote .node-footer{margin-top:19px}.record-node.dark .node-footer{border-color:#ffffff13}.record-node.dark .node-title{font-family:var(--serif);font-size:24px;font-weight:400;letter-spacing:-.06em}.record-node.dark.selected{border-color:#9698ff;box-shadow:0 0 0 3px #575ce528,0 12px 32px #49375a14}.record-node.dark::after{content:'”';position:absolute;right:14px;bottom:21px;font:130px/.7 var(--serif);color:#ffffff07;pointer-events:none}.record-node.abstract .node-title{font-size:21px;font-weight:520;line-height:1.45;letter-spacing:-.06em}
.topic-node{display:flex;align-items:center;justify-content:center;gap:9px;width:166px;height:43px;padding:0 12px;border-radius:30px;z-index:4;font-size:12px;font-weight:450;letter-spacing:-.02em;cursor:pointer}.topic-node .theme-dot{width:8px;height:8px;border-radius:50%;rotate:0;background:var(--theme)}.topic-node .topic-count{font-size:9px;font-variant-numeric:tabular-nums}.topic-node.dimmed{opacity:.45}
/* Reading opens beside the same canvas, without replacing it. */
.inspector{position:absolute;z-index:25;right:15px;top:15px;bottom:15px;width:var(--panel);display:flex;flex-direction:column;border-radius:17px;animation:panel-in .36s var(--ease)}@keyframes panel-in{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}.inspector-top{height:61px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:0 13px}.inspector-top>span{font-size:8px;letter-spacing:.15em}.inspector-top .icon-button svg{width:16px;height:16px}.inspector-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:24px 25px 30px;scrollbar-width:thin;scrollbar-color:#d9d3e0 transparent}.record-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.record-theme{display:flex;gap:6px;align-items:center;color:var(--theme-ink);font-size:9px}.record-theme::before{content:'';width:5px;height:5px;border-radius:50%;background:var(--theme)}.record-number{font-size:8px;font-variant-numeric:tabular-nums;letter-spacing:.09em}.record-artwork{height:72px;position:relative;overflow:hidden;border-radius:8px;margin-bottom:23px;display:flex;align-items:center;justify-content:center;color:var(--theme-ink)}.record-artwork .art-line{width:40px;height:40px;border:1px solid currentColor;border-radius:50%;margin:0 -11px;opacity:.65}.record-artwork .art-line:nth-child(2){border-radius:5px;rotate:45deg}.record-artwork::after{content:'✳';position:absolute;right:12px;bottom:-13px;font-size:93px;line-height:1;color:var(--theme);opacity:.12}#recordTitle{font-family:var(--serif);font-weight:400;font-size:25px;letter-spacing:-.065em;line-height:1.8;word-break:keep-all;overflow-wrap:anywhere;margin:0 0 21px}.record-text{font-size:13px;line-height:1.95;white-space:pre-wrap;margin:0 0 25px;word-break:keep-all;overflow-wrap:anywhere}.record-source{display:flex;align-items:center;gap:9px;font-size:9px;margin:0 0 19px}.source-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;color:var(--theme-ink);font-size:11px;font-weight:500}.record-source strong{display:block;font-size:10px;font-weight:500;max-width:180px;overflow:hidden;text-overflow:ellipsis}.record-source>div>span{display:block;font-size:8px;margin-top:2px}.record-type{margin-left:auto;align-self:flex-start;padding:3px 5px;border-radius:4px;font-size:8px}.original-link{display:flex;align-items:center;justify-content:space-between;border-radius:7px;padding:11px 12px;font-size:10px;transition:background .2s}.original-link svg{width:14px;height:14px}.related-heading{display:flex;align-items:center;justify-content:space-between;margin:30px 0 12px}.related-heading>div{display:flex;gap:6px;align-items:center;color:#a18aad}.related-heading svg{width:13px;height:13px}.related-heading h3{margin:0;font-size:10px;font-weight:500;color:#8c7b99}.related-heading>span{font-size:8px;color:#b6a9c2}.related-record{display:flex;align-items:center;text-align:left;gap:10px;width:100%;padding:13px 0;transition:padding .2s}.related-record:hover{padding-left:5px}.related-record .related-icon{width:27px;height:32px;border-radius:5px;display:grid;place-items:center;flex-shrink:0;color:var(--theme-ink)}.related-icon svg{width:12px;height:12px}.related-copy{min-width:0;flex:1}.related-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10px;line-height:1.7;word-break:keep-all}.related-account{display:block;font-size:8px;color:#bdb1c6;margin-top:4px}.related-record>svg{width:12px;height:12px;color:#c4b9cc}.sheet-handle{display:none}
/* The complete collection is also a quiet, readable index. */
.index-view{height:100%;overflow-y:auto;overscroll-behavior:contain}.panel-open .index-view{padding-right:calc(var(--panel) + 45px)}.index-tools{display:flex;align-items:center;justify-content:space-between;gap:15px}.index-filter-row{display:flex;flex-wrap:wrap;gap:5px}.index-filter{padding:6px 11px;border:1px solid transparent;border-radius:7px;font-size:10px;white-space:nowrap}.sort-button{display:flex;align-items:center;gap:6px;flex-shrink:0;color:#ad9eba;font-size:9px}.sort-button svg{width:12px;height:12px}.index-grid{display:grid;gap:19px}.index-card{position:relative;text-align:left;border-radius:12px;transition:transform .25s,box-shadow .25s,border-color .25s}.index-card.selected{border-color:var(--purple)}.index-card .card-theme{display:flex;align-items:center;gap:6px;font-size:8px;color:var(--theme-ink)}.index-card .theme-dot{width:5px;height:5px}.index-card .card-title{font-size:15px;line-height:1.75;letter-spacing:-.04em;font-weight:450;word-break:keep-all;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.index-card .card-bottom{display:flex;align-items:center;justify-content:space-between}.card-bottom span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-bottom svg{width:12px;height:12px}.index-card:nth-child(7n+4) .card-title{font-family:var(--serif);font-size:18px}.index-query{display:inline-flex;align-items:center;gap:12px;padding:6px 9px;border-radius:6px;font-size:10px;margin-bottom:22px}.index-query svg{width:12px;height:12px}.load-more{display:flex;align-items:center;justify-content:center;gap:8px;margin:35px auto 0;padding:10px 20px;border-radius:8px;font-size:11px}.load-more svg{width:14px;height:14px}.index-empty{text-align:center;grid-column:1/-1;padding:90px 0}.index-empty strong{display:block;font-size:18px;font-weight:400}.index-empty p{font-size:12px}
/* Search is a spatial shortcut, not a separate destination. */
dialog{color:var(--ink);font:inherit;background:#fff;padding:0}dialog::backdrop{background:#31263835;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}dialog[open]{animation:dialog-in .22s var(--ease)}@keyframes dialog-in{from{opacity:0;transform:translateY(-7px) scale(.985)}to{opacity:1;transform:none}}.search-dialog{width:min(560px,calc(100% - 32px));max-height:min(650px,calc(100dvh - 120px));margin:11dvh auto auto;border-radius:15px;overflow:hidden}.command-search{display:flex;align-items:center;gap:12px;padding:19px 19px 18px;color:#9d8cae}.command-search>span svg{width:21px;height:21px}.command-search input{flex:1;min-width:0;border:0;background:none;outline:0;font-size:15px;letter-spacing:-.03em}.command-search input::-webkit-search-cancel-button{display:none}.command-search button kbd{background:#f9f6fc;border-color:#eee6f5;font-size:8px;color:#b5a3c3}.command-meta{display:flex;justify-content:space-between;font-size:9px;letter-spacing:.035em;padding:16px 20px 8px}.search-results{overflow-y:auto;max-height:min(435px,calc(100dvh - 310px));padding:0 8px 8px;overscroll-behavior:contain}.search-result{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:12px 11px;border-radius:8px;outline:0}.search-result .result-icon{display:grid;place-items:center;width:32px;height:37px;flex-shrink:0;border:1px solid var(--tint-line);border-radius:6px;color:var(--theme-ink);background:var(--tint)}.result-icon svg{width:14px;height:14px}.result-copy{flex:1;min-width:0}.result-title{font-size:12px;line-height:1.65;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.result-meta{display:block;font-size:8px;margin-top:4px}.result-arrow{color:#c5b6d1}.result-arrow svg{width:13px;height:13px}.search-all{width:100%;text-align:left;font-size:10px;padding:14px 20px;display:flex;align-items:center;justify-content:space-between}.search-all svg{width:13px;height:13px}.command-footer{display:flex;justify-content:space-between;padding:12px 20px;font-size:8px}.command-footer>span:first-child{display:flex;align-items:center;gap:5px}.command-footer kbd{font-size:8px;padding:0 4px}.search-empty{padding:40px 15px 50px;text-align:center;color:#af99bf;font-size:12px}.search-empty b{display:block;font-weight:450;margin-bottom:8px}
.help-dialog{width:min(430px,calc(100% - 32px));border-radius:18px;padding:32px;max-height:calc(100dvh - 48px);overflow-y:auto}.dialog-close{position:absolute;right:15px;top:15px}.help-spark{color:var(--purple);margin:2px 0 24px}.help-spark svg{width:36px;height:36px}.help-dialog h2{font-size:29px;line-height:1.5;letter-spacing:-.065em;font-weight:450;color:#6c507c;margin:10px 0 28px}.help-item{display:flex;gap:14px;margin:22px 0}.help-item>span{padding-top:3px}.help-item>span svg{width:19px;height:19px}.help-item b{display:block;font-size:12px;font-weight:500}.help-item p{margin:5px 0 0;font-size:10px;line-height:1.8;word-break:keep-all}.help-shortcuts{display:flex;justify-content:space-between;margin-top:25px;padding:16px 0;gap:10px;font-size:8px}.help-shortcuts span{display:flex;flex-direction:column;gap:7px}.help-shortcuts kbd{font-size:8px;width:fit-content}.primary-button{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--purple);color:#fff;border-radius:8px;padding:12px 15px;font-size:11px;margin-top:8px}.primary-button svg{width:15px;height:15px}.recent-dialog{width:min(430px,calc(100% - 32px));border-radius:15px;padding:24px;max-height:calc(100dvh - 80px)}.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:20px}.recent-heading h2{font-size:22px;letter-spacing:-.05em;font-weight:450;color:#80628f;margin:7px 0 0}.recent-dialog .related-record{padding-top:16px;padding-bottom:16px}.recent-empty{padding:40px 12px;color:#b19dbf;text-align:center;font-size:12px;line-height:1.9}.toast{position:fixed;bottom:90px;left:50%;transform:translateX(-50%);padding:10px 16px;border-radius:9px;z-index:100;font-size:11px;animation:dialog-in .2s var(--ease)}.noscript{padding:40px;text-align:center}
@media(min-width:1600px){:root{--panel:390px}.topbar{padding:0 40px}.palette{left:37px;top:176px;width:230px}.theme-button{padding-top:11px;padding-bottom:11px;font-size:11px}}
@media(max-width:1120px){.edition{display:none}.topbar{padding:0 23px}.search-trigger .search-label{display:none}.search-trigger kbd{display:none}.search-trigger{border:0;background:transparent;padding:7px}.search-trigger [data-icon] svg{width:18px;height:18px}.header-actions{gap:8px}.palette{left:21px;width:196px}.palette-header{padding-left:14px}.theme-button{font-size:9px}.theme-list{padding-left:6px;padding-right:6px}.panel-open .index-view{padding-right:calc(var(--panel) + 35px)}.index-tools{align-items:flex-end;gap:6px}.sort-button{font-size:8px}.index-filter{font-size:9px;padding:5px 8px}}
@media(max-width:760px){
:root{--panel:100%}.brand{gap:7px}.view-switch{position:fixed;left:50%;top:auto;transform:translateX(-50%);z-index:45}.header-actions{gap:8px}.help-button{display:none}.search-trigger{padding:8px;width:34px;height:34px;justify-content:center}.search-trigger [data-icon] svg{width:19px;height:19px}.icon-button{width:34px;height:34px}.header-actions .icon-button{width:31px}.mobile-palette-button{display:flex;align-items:center;gap:7px;position:absolute;z-index:9;border:1px solid #e5dcec;border-radius:8px;box-shadow:0 3px 12px #60497309}.mobile-palette-button svg{width:13px;height:13px}.mobile-palette-button>span:last-child svg{width:11px;height:11px;margin-left:4px}.palette{max-height:calc(100% - 190px);overflow-y:auto;display:none;border-radius:14px;z-index:29;background:#fffffff7;box-shadow:0 9px 40px #55396b20}.palette.open{display:block;animation:panel-in .25s var(--ease)}.palette-header{padding:13px 16px 6px}.palette-number{margin-left:auto;margin-right:10px}.palette-close{display:grid;width:28px;height:28px}.palette-close svg{width:14px;height:14px}.theme-list{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:4px 9px 11px}.theme-button{padding:13px 10px;gap:8px}.theme-button .theme-count{font-size:9px}.canvas-dock{left:auto;right:16px;top:22px;bottom:auto;transform:none;display:flex;flex-direction:column;padding:3px;border-radius:10px;gap:1px;box-shadow:0 3px 14px #55396b0b}.dock-button{width:29px;height:29px;border-radius:6px}.dock-button svg{width:14px;height:14px}.dock-divider{height:1px;width:16px;margin:3px 0}.canvas-dock #pointerTool,.canvas-dock #handTool,.canvas-dock .dock-divider:first-of-type{display:none}.panel-open .canvas-dock{opacity:.35;pointer-events:none}
.inspector{position:absolute;left:7px;right:7px;top:auto;bottom:7px;width:auto;border-radius:19px;z-index:50;box-shadow:0 -8px 50px #50336223;background:#fffffff9;animation:sheet-in .35s var(--ease)}@keyframes sheet-in{from{opacity:0;transform:translateY(40px)}to{opacity:1;transform:none}}.sheet-handle{display:block;width:32px;height:3px;border-radius:3px;background:#e0d4e8;position:absolute;left:50%;top:9px;transform:translateX(-50%)}.inspector-top>span{font-size:7px}.record-heading{margin-bottom:18px}.record-theme{font-size:9px}.record-number{font-size:8px}.record-artwork{height:46px;margin-bottom:15px}#recordTitle{font-size:24px;line-height:1.75;margin-bottom:18px}.record-text{line-height:1.95}.record-source strong{font-size:11px}.record-source>div>span{font-size:9px}.source-avatar{width:31px;height:31px}.original-link{padding:12px}.related-heading{margin-top:24px}.related-heading h3{font-size:11px}.related-record{padding:14px 0}.panel-open .view-switch{opacity:0;pointer-events:none}.index-tools{display:block}.index-filter-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.sort-button{margin-left:auto}.index-card{min-height:200px}.index-card .card-theme{margin-bottom:17px;white-space:nowrap;gap:4px}.index-card .card-title{font-size:13px;letter-spacing:-.045em;line-height:1.8;-webkit-line-clamp:5;margin-bottom:20px}.index-card:nth-child(7n+4) .card-title{font-size:16px;line-height:1.65}.index-card .card-bottom{gap:4px}.index-card .card-bottom span{max-width:113px}
.search-dialog{margin-top:calc(77px + env(safe-area-inset-top));max-height:calc(100dvh - 130px);border-radius:13px}.command-search{padding:17px 15px;gap:9px}.command-search>span svg{width:18px;height:18px}.command-meta{padding-left:15px;padding-right:15px}.search-results{max-height:calc(100dvh - 300px)}.search-result{gap:8px;padding:11px 8px}.result-icon{width:28px!important;height:34px!important}.command-footer{padding:11px 15px}.command-footer>span:last-child{display:none}.recent-dialog{padding:20px}.recent-heading h2{font-size:21px}.help-dialog{padding:28px;max-height:calc(100dvh - 40px)}.help-dialog h2{font-size:27px}.help-item b{font-size:12px}.toast{bottom:110px;max-width:calc(100% - 40px);width:max-content}
}
@media(max-width:400px){.view-switch button{gap:4px}}
@media(max-width:360px){.brand{font-size:22px}.topbar{padding-left:15px;padding-right:15px}.header-actions{gap:4px}.index-view,.panel-open .index-view{padding-left:15px;padding-right:15px}.index-grid{gap:9px}.index-card{padding-left:12px;padding-right:12px}.theme-button{font-size:10px}.mobile-palette-button{left:18px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.panel-open .mobile-palette-button{opacity:0;pointer-events:none}}

.topic-node{scale:1}.world.overview .record-node.selected,.world.overview .record-node:hover{opacity:1}.world.overview .topic-node>span:not(.topic-count){font-size:18px}.world.overview .topic-count{display:none}
@media(max-width:760px){}@media(max-width:760px){}
/* Existing media is independent of the new map and index layouts. */
.record-media{margin:0 0 22px;border-radius:10px;overflow:hidden}.record-media video{display:block;width:100%;max-height:54dvh;background:#1b1820;object-fit:contain}.gallery-open{display:block;width:100%;position:relative;cursor:zoom-in}.gallery-open img{display:block;width:100%;max-height:45dvh;object-fit:contain}.gallery-expand{position:absolute;right:9px;bottom:9px;font-size:9px;padding:5px 8px;border-radius:5px}.gallery-controls{display:flex;align-items:center;justify-content:space-between;padding:4px 9px;font-size:10px}.gallery-controls button{width:36px;height:34px;border-radius:6px;font-size:16px}.gallery-controls button:hover{background:#eae3f2;color:#6e4b86}.media-load-error{padding:13px;font-size:10px;line-height:1.8;color:#967ba8;background:#fcf7ff}.image-viewer{position:fixed;inset:0;width:100dvw;height:100dvh;max-width:none;max-height:none;margin:0;padding:0;border:0;background:#16131af5;color:#eee6f5;box-shadow:none}.image-viewer[open]{display:flex;flex-direction:column;animation:none}.image-viewer-top{height:63px;padding:12px 22px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#b0a1be;flex-shrink:0}.image-viewer-top .icon-button{color:#eee7f4;background:#ffffff0b}.image-viewer-stage{position:relative;flex:1;min-height:0;padding:12px 65px;display:flex;align-items:center;justify-content:center}.image-viewer-stage img{display:block;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}.viewer-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:43px;border-radius:8px;border:1px solid #ffffff1a;background:#332a3ca1;color:#d9c9e6;font-size:24px}.viewer-nav.prev{left:18px}.viewer-nav.next{right:18px}.image-viewer-foot{display:flex;align-items:center;justify-content:space-between;padding:17px 24px;font-size:10px;color:#a38bb5;flex-shrink:0}.image-viewer-foot>span:last-child{font-size:9px;color:#776184}
/* Keep the original device PIN gate and remembered unlock state. */
body.locked{background:#f7f6f2}#lock{position:fixed;inset:0;z-index:200;display:grid;place-items:center;padding:25px;background:radial-gradient(ellipse at 60% 35%,#f1edf9,transparent 60%),#f7f6f2}#lock.out{opacity:0;pointer-events:none;transition:opacity .3s}.lockwrap{width:100%;max-width:340px}.locktitle{font-size:47px;font-weight:600;letter-spacing:-.07em;margin-left:-2px}.pinfield{margin-bottom:10px}#pin{display:block;width:100%;height:52px;border-radius:9px;text-align:center;font:20px var(--sans);letter-spacing:.5em;text-indent:.5em;color:#766086;outline:0}#pin:focus{border-color:#a49ae6}#pin::placeholder{color:#d2c4db}#unlock{width:100%;height:46px;border-radius:9px;color:#fff;font-size:12px;font-weight:500}.lockerr{min-height:20px;margin-top:10px;color:#c17b9a;font-size:10px}.shake{animation:pin-shake .35s ease}@keyframes pin-shake{20%,60%{transform:translateX(5px)}40%,80%{transform:translateX(-5px)}}
@media(max-width:760px){.record-media{margin-bottom:20px}.record-media video{max-height:40dvh}.gallery-open img{max-height:34dvh}.gallery-controls button{width:44px;height:38px}.image-viewer-top{padding:calc(11px + env(safe-area-inset-top)) 15px 11px;height:calc(59px + env(safe-area-inset-top));font-size:10px}.image-viewer-stage{padding:5px 9px;touch-action:pan-y}.viewer-nav{width:33px;height:40px;background:#211b29b5}.viewer-nav.prev{left:9px}.viewer-nav.next{right:9px}.image-viewer-foot{padding:15px 17px calc(15px + env(safe-area-inset-bottom));font-size:10px}.image-viewer-foot>span:last-child{font-size:8px}.locktitle{font-size:44px}}


/* Usable media cards in both views. Header is the canvas drag handle. */
.world{width:0;height:0;transform:none}.record-node,.record-node.quote{width:304px;padding:13px 13px 12px;min-height:0;rotate:0deg}.record-node .node-kicker{cursor:grab;min-height:25px;touch-action:none}.record-node .node-title,.record-node.quote .node-title,.record-node.dark .node-title,.record-node.abstract .node-title{font-family:var(--sans);font-size:13px;line-height:1.7;font-weight:450;letter-spacing:-.035em;-webkit-line-clamp:3}.record-node .node-footer{font-size:9px}.record-node.dark::after{display:none}.card-details{display:grid;place-items:center;min-width:28px;min-height:28px;border-radius:5px;cursor:pointer;flex-shrink:0}.card-details:hover{background:#575ce510;color:var(--purple)}.card-details svg{width:14px;height:14px}.inline-media{border-radius:7px;overflow:hidden;position:relative;user-select:auto;cursor:auto;touch-action:auto}.inline-media video{display:block;width:100%;height:275px;object-fit:contain;background:#17131c}.inline-media>img{display:block;width:100%;height:275px;object-fit:contain}.inline-gallery-controls{display:flex;align-items:center;justify-content:space-between;padding:2px 8px;font-size:10px}.inline-gallery-controls button{display:grid;place-items:center;width:33px;height:30px;border-radius:5px;font-size:15px}.inline-link{padding:20px 16px;background:var(--tint);display:flex;flex-direction:column}.inline-link-label{font-size:8px;letter-spacing:.1em;color:var(--theme-ink)}.inline-link p{margin:21px 0 24px;font:17px/1.7 var(--serif);letter-spacing:-.045em;color:#776080;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.inline-link a{display:flex;align-items:center;gap:9px;justify-content:space-between;font-size:9px;color:#9b7bae;margin-top:auto;padding-top:12px;border-top:1px solid #a88ebd25}.inline-link a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.inline-link a b{font-size:15px;font-weight:400}.index-grid{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}.index-card{display:flex;flex-direction:column;cursor:default}.index-card-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:3px}.index-card .card-theme{margin-bottom:0}.index-card .card-title,.index-card:nth-child(7n+4) .card-title{font-family:var(--sans);font-size:13px;line-height:1.75;font-weight:450;letter-spacing:-.035em;-webkit-line-clamp:4;margin:13px 0 17px}.index-card .card-bottom{font-size:9px;gap:9px}.index-card .inline-slot{width:100%}.world.overview .record-node{opacity:.82}.world.overview .record-node.dimmed{opacity:.22}
@media(max-width:760px){.index-grid{grid-template-columns:minmax(0,1fr);gap:20px}.index-card{border-radius:11px}.index-card .card-theme{font-size:10px}.index-card .inline-media video,.index-card .inline-media>img{height:390px;max-height:56dvh}.card-details{min-width:36px;min-height:36px}.inline-gallery-controls button{width:44px;height:38px}.inline-link{min-height:205px}.inline-link p{font-size:18px}.inline-link a{font-size:10px}.record-node .inline-gallery-controls button{width:36px;height:30px}}

/* Fixed viewport paint surfaces, independent of world distance and zoom. */
.canvas-viewport>.edges{width:100%;height:100%;overflow:hidden;z-index:0}.canvas-viewport>.world{width:0;height:0;overflow:visible;transform:none;will-change:auto;z-index:1}.map-node{transform-origin:0 0;will-change:auto}.record-node:hover,.record-node.dragging,.topic-node{scale:1}.connection{vector-effect:non-scaling-stroke}

/* Small, shared filter controls for cards and both views. */
.card-actions{display:flex;align-items:center;gap:3px;flex-shrink:0}.card-filter{cursor:pointer}.card-actions>.card-filter{display:grid;place-items:center;width:28px;height:28px;border-radius:5px;color:var(--theme-ink)}.card-actions>.card-filter svg{width:14px;height:14px}.card-filter:hover{background:#575ce510;color:var(--purple)}.index-card .card-filter{max-width:calc(100% - 36px);padding:4px 5px;margin-left:-5px;border-radius:5px;text-align:left}.index-card .card-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-card .card-filter svg{width:12px;height:12px;flex-shrink:0}.filter-edit-button{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;flex-shrink:0}.filter-edit-button svg{width:14px;height:14px}.palette-header{gap:7px}.palette-header .palette-number{margin-left:auto}.index-tools>.filter-edit-button{margin-left:auto}.index-tools .index-filter-row{flex:1;min-width:0}.record-theme{cursor:pointer;text-align:left;max-width:65%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.record-theme::after{content:'⌄';padding-left:7px;color:#a49aad}.filter-dialog{width:min(360px,calc(100vw - 36px));max-height:calc(100dvh - 40px);border-radius:16px;padding:20px;overflow:auto}.filter-dialog::backdrop{background:#30283b45;backdrop-filter:blur(3px)}.filter-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.filter-dialog-header h2{font-size:16px;font-weight:550;letter-spacing:-.04em;margin:0}.filter-dialog-header .icon-button{width:28px;height:28px}.filter-record-title{font-size:11px;line-height:1.6;color:#9a90a5;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 14px}.filter-choices{display:grid;gap:3px}.filter-choice{display:flex;align-items:center;gap:10px;min-height:42px;padding:9px 11px;border-radius:8px;text-align:left}.filter-choice>span{flex:1;min-width:0;overflow-wrap:anywhere}.filter-choice>svg{width:15px;height:15px;color:var(--purple)}.filter-name-fields{display:grid;gap:8px}.filter-name-row{display:flex;align-items:center;gap:11px;padding:0 11px;border-radius:8px;min-height:42px}.filter-name-row:focus-within{border-color:var(--purple)}.filter-name-row input{border:0;background:transparent;min-width:0;width:100%;padding:10px 0;font-size:13px;outline:0}.filter-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}.filter-form-actions button{padding:8px 17px;border-radius:8px;font-size:12px}.filter-form-actions button:first-child{color:#9a90a5}.filter-save{background:var(--purple);color:#fff}.filter-save-note{font-size:10px;margin:15px 0 0}.filter-error{color:#a74960;font-size:11px;line-height:1.6;margin:12px 0 0}
@media(max-width:760px){.filter-edit-button{width:34px;height:34px}.card-actions>.card-filter{width:29px;height:29px}.filter-dialog{padding:20px;border-radius:15px}.filter-choice{min-height:44px}.filter-name-row{min-height:44px}.filter-name-row input{font-size:16px}.index-tools{column-gap:8px}.index-tools>.filter-edit-button{margin-left:0}.palette-header .filter-edit-button{margin-left:0}.filter-form-actions button{min-height:40px}.filter-save-note{font-size:10px}}

.index-filter-tools{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.index-filter-tools .index-filter-row{flex:1;min-width:0}.theme-button>span:nth-child(2){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topic-node>span:first-of-type{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:760px){.index-filter-tools .index-filter-row{margin:0;padding:0}.index-filter-tools>.filter-edit-button{margin:0}}
/* Lightweight media and one stable footprint for both canvas faces. */
.map-node{left:0;top:0}.record-node{contain:layout style paint}.canvas-viewport>.edges{contain:strict}.world.far-view .record-node{box-shadow:none}.world.far-view .record-node::after{display:none}.world.far-view .note-editor textarea{pointer-events:none}.canvas-faces{display:grid;min-width:0}.canvas-media-face,.canvas-note-face{grid-area:1/1;min-width:0}.canvas-note-face{visibility:hidden;pointer-events:none;min-height:315px}.world.notes-view .canvas-media-face{visibility:hidden;pointer-events:none}.world.notes-view .canvas-note-face{visibility:visible;pointer-events:auto}.canvas-note-face .note-editor{height:100%;min-height:315px}.canvas-note-face .note-editor textarea{min-height:230px}.canvas-flip{width:65px;gap:5px}.canvas-flip .flip-label{font-size:10px}.inline-media{height:275px;min-height:0}.inline-media.has-gallery{height:310px;display:flex;flex-direction:column}.inline-media>img,.inline-media>video{height:100%;min-height:0}.inline-media.has-gallery>img{height:calc(100% - 33px);flex:1}.inline-media.has-gallery[data-level=preview]>img{height:100%}.inline-gallery-controls{flex-shrink:0}.video-poster{position:relative;display:block;width:100%;height:100%;overflow:hidden;background:#1c1921}.video-poster>img{width:100%;height:100%;object-fit:contain;display:block}.poster-play{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:42px;height:42px;border-radius:50%;color:#fff}.poster-play svg{width:20px;height:20px;fill:currentColor;stroke:none;margin-left:3px}.media-placeholder{height:100%;width:100%;display:grid;place-items:center;opacity:.7}.media-placeholder svg{width:32px;height:32px;fill:currentColor;stroke:none}.media-placeholder>span{font-size:32px}.inline-media[data-level=none]{border-color:transparent}.inline-link{height:275px;min-height:0}
/* Memo editing stays quiet and saves without adding a toolbar to every card. */
.note-editor{display:flex;flex-direction:column;min-width:0;min-height:180px;text-align:left;color:inherit}.note-editor textarea{width:100%;min-width:0;flex:1;resize:none;border:0;outline:0;padding:0;margin:0;background:transparent;color:inherit;font:12px/1.9 var(--sans);letter-spacing:-.025em;overflow-wrap:anywhere;touch-action:pan-y;cursor:text;scrollbar-width:thin}.note-save-status{font:8px/1.5 var(--sans);letter-spacing:0;min-height:17px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;max-width:100%}.note-save-status:disabled{opacity:1;cursor:default}.note-save-status[data-state=saved]{color:#94a58d}.note-save-status[data-state=offline],.note-save-status[data-state=setup],.note-save-status[data-state=auth],.note-save-status[data-state=cache-error],.note-save-status[data-state=conflict]{color:#b08a6b}.inspector-note{margin:18px 0 22px;padding:13px 14px;border-radius:10px}.inspector-note .note-editor{min-height:190px}
.index-display-tools{display:flex;align-items:center;gap:12px;min-width:0}.index-notes-toggle{display:flex;align-items:center;gap:7px;border-radius:7px;min-height:30px;padding:5px 8px;color:#9b8bab;font-size:10px}.index-notes-toggle svg{width:14px;height:14px}.index-columns{display:flex;gap:2px;align-items:center;margin-left:auto;padding:3px;border-radius:8px;flex-shrink:0}.index-columns button{width:28px;height:24px;border-radius:5px;font-size:10px}.index-columns>span{font-size:8px;padding:0 5px}.index-view .index-grid,.notes-grid{display:grid;grid-template-columns:repeat(var(--index-cols,3),minmax(0,1fr));gap:7px 20px;align-items:start}.index-view[data-columns="1"]>.index-grid{max-width:960px;margin-left:auto;margin-right:auto}.index-card{min-width:0;container-type:inline-size;content-visibility:auto;contain-intrinsic-size:auto 440px}.index-card-content{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(90px,1fr);min-width:0;align-items:stretch}.index-card-content>.inline-slot,.index-card-content>.note-slot{min-width:0}.index-card-content .inline-media{height:290px}.index-card-content .inline-media>img,.index-card-content .inline-media>video,.index-card-content .video-poster{height:100%;max-height:none}.index-card-content .has-gallery>img{height:calc(100% - 33px)}.index-card-content .note-editor{min-height:290px}.index-card-content .inline-link{padding:14px 11px}.index-card-content .inline-link p{font-size:14px;line-height:1.8}.index-card .card-bottom{overflow:hidden}.index-card .card-bottom>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.index-card-heading{min-width:0}.index-view .index-grid[data-mode=notes]{display:block;max-width:none}.index-note-group{margin:0 0 30px}.note-group-heading{display:flex;align-items:center;gap:8px;margin:5px 0 12px;color:var(--theme-ink)}.note-group-heading h2{font-size:12px;font-weight:500;margin:0}.note-group-heading>span{font-size:9px}.note-only-card{contain-intrinsic-size:auto 290px}.note-only-card .index-card-content{display:block}.note-only-card .index-card-content .note-editor{min-height:215px;padding:0;border:0}.note-only-card .note-card-title{font-size:11px!important;color:#b3a7bd;margin:0 0 12px;-webkit-line-clamp:2}.index-view .index-empty{grid-column:1/-1}
@container(max-width:250px){.index-card-content{grid-template-columns:minmax(0,1fr);gap:10px}.index-card-content .inline-media{height:205px}.index-card-content .note-editor{min-height:130px;border-left:0;border-top:1px solid #ebe6ef}.index-card-content .note-editor textarea{min-height:80px}.note-only-card .index-card-content .note-editor{min-height:200px;border:0}.index-card-content .inline-link p{font-size:12px;-webkit-line-clamp:4}.index-card-heading .card-theme{font-size:9px}.index-card .card-title{font-size:11px!important;-webkit-line-clamp:2}.index-card .card-bottom{font-size:8px!important}.index-card .card-bottom>span:last-child{display:none}}
@container(max-width:145px){.index-card-content .inline-media{height:145px}.index-card-content .note-editor{min-height:120px}.index-card-content .note-editor textarea{font-size:11px;min-height:70px}.index-card-heading .card-theme{font-size:8px;gap:4px}.index-card .card-details{min-width:22px!important;min-height:25px!important;width:22px}.index-card .card-details svg{width:12px}.inline-gallery-controls{padding:0 2px;font-size:8px}.inline-gallery-controls button{width:24px!important;min-width:0;height:28px!important;font-size:12px}.index-card-content .inline-link{padding:10px 8px}.index-card-content .inline-link-label{font-size:6px}.index-card-content .inline-link p{font-size:11px;margin:10px 0;line-height:1.7}.index-card-content .inline-link a{font-size:7px}.note-save-status{font-size:7px}.poster-play{width:30px;height:30px}.poster-play svg{width:15px;height:15px}}
.note-dialog,.note-conflict-dialog{width:min(520px,calc(100vw - 32px));max-height:calc(100dvh - 36px);overflow:auto;border-radius:16px;padding:23px}.note-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.note-dialog-header h2{font-size:16px;font-weight:550;margin:0;letter-spacing:-.04em}.note-dialog .note-editor{min-height:300px}.note-dialog .note-editor textarea{font-size:15px;min-height:260px;line-height:1.9}.note-dialog::backdrop,.note-conflict-dialog::backdrop{background:#30283b45;backdrop-filter:blur(3px)}.note-conflict-dialog p{font-size:12px;line-height:1.8;color:#a294ad}.note-conflict-dialog h3{font-size:11px;font-weight:500;color:#a294ad;margin:18px 0 8px}.note-conflict-dialog pre{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.8 var(--sans);border-radius:8px;padding:12px;max-height:150px;overflow:auto}.note-conflict-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:20px}.note-conflict-actions button{border-radius:7px;padding:9px 13px;font-size:11px}.note-conflict-actions button:last-child{background:var(--purple);color:white}
@media(max-width:760px){.canvas-flip{width:34px;height:43px!important;display:flex;flex-direction:column;gap:0}.canvas-flip svg{width:15px;height:15px}.canvas-flip .flip-label{font-size:8px;line-height:13px}.index-display-tools{gap:6px}.index-notes-toggle{gap:4px;padding:4px}.index-columns button{width:23px;height:23px}.index-columns>span{padding:0 3px}.index-view .index-grid,.notes-grid{gap:6px 3px}.index-card-content .inline-media>img,.index-card-content .inline-media>video{height:100%;max-height:none}.note-editor textarea{font-size:12px}.note-dialog .note-editor textarea{font-size:16px}.note-dialog,.note-conflict-dialog{padding:20px}.note-dialog .note-editor{min-height:260px}.note-dialog .note-editor textarea{min-height:230px}.index-view[data-columns="3"] .index-card-heading .card-theme .theme-dot{display:none}.index-view[data-columns="3"] .index-card-heading .card-theme{max-width:calc(100% - 25px);gap:1px}.index-view[data-columns="3"] .index-card-heading .card-theme>svg{display:none}}

/* Card swipes pan the canvas; native editing and playing video keep their controls. */
.canvas-dots{inset:-64px;background-position:0 0}
.canvas-viewport.interacting .map-node{transition:none!important;scale:1!important}
.canvas-viewport.interacting .record-node{box-shadow:none;will-change:transform}
.canvas-viewport.interacting .map-node{pointer-events:none}
.canvas-note-editor textarea{font-size:40px;line-height:1.5;font-weight:500;letter-spacing:-.035em;touch-action:none}
.canvas-note-editor textarea:focus{touch-action:pan-y}
@media(hover:hover){.canvas-viewport:not(.interacting) .record-node:hover{will-change:transform}}

.index-view .note-editor textarea{font-size:18px}

/* Memo height follows its content instead of reserving a full media frame. */
.world.notes-view .canvas-faces{display:block}
.world.notes-view .canvas-media-face{display:none}
.canvas-note-face,.canvas-note-face .note-editor{min-height:0;height:auto}
.canvas-note-face .note-editor textarea,.index-view .note-editor textarea{min-height:1.5em;flex:none;overflow-y:hidden}
.index-card-content .note-editor,.note-only-card .index-card-content .note-editor{min-height:0}
.note-only-card .note-editor textarea{min-height:1.5em}

/* Room switcher: the brand opens the archive's three rooms. */
.brand-switcher{position:relative;display:flex;min-width:0;flex-shrink:0}
.brand-switcher .brand{gap:6px;min-width:0;max-width:40vw;text-align:left}
.brand-switcher .brand>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.brand-caret{display:inline-flex;transition:transform .18s var(--ease),color .18s}
.brand-caret svg{width:13px;height:13px;stroke-width:2.2}
.brand-switcher .brand:hover .brand-caret{color:var(--purple)}
.brand-switcher .brand[aria-expanded=true] .brand-caret{transform:rotate(180deg);color:var(--purple)}
.brand-menu{position:absolute;top:calc(100% + 13px);left:-11px;z-index:70;min-width:190px;padding:5px;background:#fff;border-radius:12px;display:flex;flex-direction:column;gap:1px;animation:brand-menu-in .16s var(--ease)}
@keyframes brand-menu-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.brand-menu a{display:flex;align-items:center;gap:9px;padding:9px 11px;border-radius:8px;font-size:12.5px;letter-spacing:-.2px;white-space:nowrap;transition:background .15s,color .15s}


.brand-menu a.is-current::after{content:'지금';margin-left:auto;font-size:8px;letter-spacing:.02em;color:#9b86c4}
.brand-menu .brand-period{color:var(--purple)}

/* Permanent removal from the record panel. */
.inspector-top-actions{display:flex;align-items:center;gap:2px}
#recordDelete{color:#b7a3ac}

.delete-dialog{width:min(404px,calc(100vw - 32px));max-height:calc(100dvh - 40px);margin:auto;border-radius:16px;padding:22px 22px 18px}
.delete-dialog .note-dialog-header{margin-bottom:10px}
.delete-record-title{font-size:11px;color:#a89bb3;line-height:1.7;margin:0 0 12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.delete-note{font-size:12px;line-height:1.75;margin:0 0 4px}
.delete-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.delete-actions button{border-radius:9px;padding:9px 15px;font-size:12px}
.delete-actions button:hover{border-color:#d8d5e0}
.delete-confirm{background:#c2453f;border-color:#c2453f;color:#fff}
.delete-confirm:hover{background:#ad3b36;border-color:#ad3b36}
.delete-confirm:disabled{opacity:.62}

@media(max-width:760px){
 .brand-switcher .brand{max-width:52vw;font-size:22px}
 .brand-menu{min-width:174px;top:calc(100% + 9px);left:-8px}
 .brand-menu a{font-size:12px;padding:9px 10px}
 .delete-dialog{padding:18px 18px 15px}
}
@media(max-width:360px){.brand-switcher .brand{font-size:20px;max-width:46vw}}


/* Compact archive chrome and clearer, more saturated accents. */
:root{--header:58px}
.topbar{padding-left:22px;padding-right:22px;gap:16px}
.brand{font-size:24px}.edition{display:none}
.palette{top:16px;left:18px;width:200px}
.palette-header{padding:12px 13px 8px}.theme-list{padding:0 7px 8px}.theme-button{padding:8px 9px}
.theme-button.active,.index-filter.active,.index-notes-toggle[aria-pressed=true]{background:var(--purple-soft);color:var(--purple)}

.index-view{padding:18px 30px 55px}.index-tools{margin:0 0 16px;padding-bottom:11px}.index-display-tools{margin:0 0 16px}
.record-node{padding:14px 16px 12px;border-color:color-mix(in srgb,var(--theme) 32%,#e2e4e8)}
.node-kicker{margin-bottom:11px}.node-footer{margin-top:10px;padding-top:9px}.node-title:empty,.card-title:empty{display:none}
.index-card{padding:14px;min-height:0}


@media(max-width:1120px){.index-view{padding:16px 22px 55px}}
@media(max-width:760px){

 .topbar{padding:env(safe-area-inset-top) 15px 0;gap:8px}.brand{font-size:23px}
 .mobile-palette-button{top:12px;left:15px;color:#4c58b5;border-color:#d6dce9;background:#fafbf8f2}
 .palette{top:auto;left:12px;right:12px;width:auto;bottom:calc(89px + env(safe-area-inset-bottom))}
 .index-view,.panel-open .index-view{padding:12px 15px calc(110px + env(safe-area-inset-bottom))}
.sort-button{margin-top:10px}
 .index-display-tools{margin:0 0 13px}.index-card{padding:11px}

}

/* Tighter card interiors, with the existing touch controls kept intact. */

.world .record-node{padding:9px 10px 8px;border-color:color-mix(in srgb,var(--theme) 42%,#e0e4eb)}
.record-node .node-kicker{margin-bottom:6px}
.record-node .node-footer{margin-top:6px;padding-top:5px}
.record-node .node-title,.record-node.quote .node-title,.record-node.dark .node-title,.record-node.abstract .node-title{margin-top:8px}
.note-editor{gap:5px}
.index-view .index-card{padding:6px}
.index-card-heading .card-theme{margin-bottom:0}
.index-card .card-title{margin-top:6px;margin-bottom:7px}
.index-card .card-bottom{margin-top:3px;padding-top:2px}
.index-card-content{gap:4px}

@media(max-width:760px){
 .world .record-node{padding:8px 9px 7px}
 .index-view .index-card{padding:5px}
 .index-view[data-columns="2"] .index-card{padding:4px}
 .index-view[data-columns="3"] .index-card{padding:3px}
}
@container(max-width:250px){.index-card-content .note-editor{padding:7px 0 0}.note-only-card .index-card-content .note-editor{padding:0}}

/* Keep sorting beside the display controls and let mobile cards fill the width. */
.index-display-tools .sort-button{margin:0 12px 0 auto;flex-shrink:0}
.index-display-tools .index-columns{margin-left:0}
@media(max-width:760px){
 .index-view,.panel-open .index-view{padding-left:3px;padding-right:3px}
 .index-tools{margin:0 0 8px;padding-bottom:6px}
 .index-display-tools{margin-bottom:8px}
 .index-filter-row{margin:0;padding:0}
}

/* Link-only records: the post's own title and a summary read from the source fill the media space. */
.inline-link{justify-content:flex-start}
.inline-link .inline-link-title{margin:13px 0 0;font:600 15px/1.48 var(--serif);letter-spacing:-.04em;color:#443249;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.inline-link .inline-link-summary{flex:1 1 auto;min-height:0;margin:8px 0 12px;font:400 11.5px/1.7 var(--sans);letter-spacing:-.01em;color:#7a6784;word-break:keep-all;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.inline-link a{position:static}
.record-node.dark .inline-link .inline-link-title{color:#3f2f47}
.index-card-content .inline-link .inline-link-title{font-size:14px;-webkit-line-clamp:3}
.index-card-content .inline-link .inline-link-summary{font-size:12px;line-height:1.75;-webkit-line-clamp:6}
.record-link-card{display:flex;flex-direction:column;padding:19px 18px 17px;background:var(--tint)}
.record-link-card .inline-link-label{font-size:8px;letter-spacing:.1em;color:var(--theme-ink)}
.record-link-card .inline-link-title{margin:12px 0 0;font:600 17px/1.5 var(--serif);letter-spacing:-.04em;color:#443249;word-break:keep-all;overflow-wrap:anywhere}
.record-link-card .inline-link-summary{margin:10px 0 16px;font:400 12.5px/1.75 var(--sans);letter-spacing:-.01em;color:#7a6784;word-break:keep-all;overflow-wrap:anywhere}
.record-link-card a{align-self:flex-start;margin-top:2px;padding-top:12px;border-top:1px solid #a88ebd25;width:100%;font:400 10px/1.4 var(--sans);color:#8b6d9c;text-decoration:none}
.record-link-card a:hover{color:var(--purple)}
@container(max-width:250px){.index-card-content .inline-link .inline-link-title{font-size:12.5px;-webkit-line-clamp:2}.index-card-content .inline-link .inline-link-summary{font-size:11px;line-height:1.7;-webkit-line-clamp:5}}
@container(max-width:145px){.index-card-content .inline-link .inline-link-title{font-size:11.5px;margin-top:8px}.index-card-content .inline-link .inline-link-summary{font-size:10px;margin:6px 0 8px;-webkit-line-clamp:4}}
@media(max-width:760px){.inline-link .inline-link-title{font-size:15.5px}.inline-link .inline-link-summary{font-size:12px}}

/* ── 유니버스 3D 아틀라스 ──────────────────────────────────────────────
   Pure black space, no haze: one ultraviolet core, an aqua-electric video lobe
   and a neon rose-magenta fashion lobe, acid-mint synapses and an electric
   orange/gold spark, each star a clean point of light. A HUD of dark glass
   floats above it. */
.universe-view{position:absolute;inset:0;overflow:hidden;background:#000000;isolation:isolate}
/* The entrance fade belongs to the first arrival only. Restarting it on every
   tab switch replayed a black screen each time, and with Reduce Motion the
   animation never ran at all, leaving the stage at opacity 0 for good. */
.universe-view.is-intro{animation:uni-in .55s var(--ease) both}
@keyframes uni-in{from{opacity:0}to{opacity:1}}
.universe-view::before{content:"";position:absolute;inset:0;pointer-events:none;z-index:0;background:#000000}
.universe-view::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:2;
 background:radial-gradient(118% 96% at 50% 46%,transparent 58%,#000000c4 100%)}
.universe-stage{position:absolute;inset:0;z-index:1}
.universe-view.is-intro .universe-stage{animation:uni-stage-in 1.1s .1s var(--ease) both}
@keyframes uni-stage-in{from{opacity:0}to{opacity:1}}
.uni-canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none}
.universe-view.uni-grabbing .uni-canvas{cursor:grabbing}
.universe-ui{position:absolute;inset:0;z-index:4;pointer-events:none;font:12px/1.5 var(--sans);color:#f4f4f8}
.universe-ui>*{pointer-events:auto}
.universe-ui svg{width:16px;height:16px;display:block}

/* floating glass bar — a soft slab of dark glass with no edge at all: tone alone
   lifts it off the atlas, and the live pill is marked by a brighter fill. */
.uni-bar{position:absolute;left:50%;top:18px;transform:translateX(-50%);display:flex;align-items:center;gap:8px;padding:5px;border-radius:15px;background:rgba(24,26,36,.88);border:0;-webkit-backdrop-filter:blur(20px) saturate(1.15);backdrop-filter:blur(20px) saturate(1.15);box-shadow:0 14px 34px rgba(0,0,0,.55),0 2px 8px rgba(0,0,0,.35);max-width:calc(100% - 40px)}
.uni-pills{display:flex;align-items:center;gap:2px;padding:2px;border-radius:11px;background:rgba(255,255,255,.07)}
.uni-pills button{display:flex;align-items:center;gap:6px;min-height:32px;padding:0 11px;border-radius:9px;font-size:11.5px;letter-spacing:-.01em;color:#f6f7fc;white-space:nowrap;transition:background .18s,color .18s,box-shadow .18s}
.uni-pills button:hover{color:#ffffff;background:rgba(255,255,255,.14)}
.uni-pills button[aria-pressed=true]{color:#ffffff;background:rgba(255,255,255,.22)}
.uni-pill-dot{width:7px;height:7px;border-radius:50%;background:var(--dot);box-shadow:0 0 9px var(--dot),0 0 3px var(--dot);flex-shrink:0;opacity:1}
.uni-search{position:relative;display:flex;align-items:center;gap:7px;padding:0 10px;height:32px;border-radius:9px;background:rgba(255,255,255,.09);border:0;color:#f0f2fa;transition:background .18s,box-shadow .18s,color .18s}
.uni-search:focus-within{background:rgba(255,255,255,.17);box-shadow:0 0 0 3px rgba(139,92,246,.14);color:#ffffff}
.uni-search-icon svg{width:15px;height:15px}
.uni-search input{width:186px;height:100%;border:0;background:none;font-size:11.5px;color:#ffffff;letter-spacing:-.01em}
.uni-search input::placeholder{color:rgba(255,255,255,.30)}
.uni-search input::-webkit-search-cancel-button{display:none}
.uni-search-clear{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#ffffff2e;color:#e8e9f2}
.uni-search-clear svg{width:10px;height:10px}
.uni-reset{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:rgba(255,255,255,.09);border:0;color:#f6f7fc;transition:background .18s,color .18s}
.uni-reset:hover{background:rgba(255,255,255,.20);color:#ffffff}

/* search results */
.uni-results{position:absolute;top:calc(100% + 8px);left:0;min-width:min(330px,calc(100vw - 44px));padding:5px;border-radius:13px;background:rgba(24,26,36,.96);border:0;-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);box-shadow:0 22px 54px rgba(0,0,0,.7);max-height:min(46vh,340px);overflow:auto;z-index:6}
.uni-result{display:flex;align-items:center;gap:9px;width:100%;padding:8px 9px;border-radius:9px;text-align:left;transition:background .15s}
.uni-result:hover,.uni-result:focus-visible{background:#ffffff14}
.uni-result-dot{width:8px;height:8px;border-radius:50%;background:var(--dot);box-shadow:0 0 8px var(--dot);flex-shrink:0}
.uni-result-copy{display:flex;flex-direction:column;min-width:0;gap:1px}
.uni-result-copy span{font-size:11.5px;color:#f2f2f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.uni-result-copy small{font-size:9.5px;color:#a5a8bc}
.uni-result-empty{margin:0;padding:13px 12px;font-size:11px;color:#8a8b9d}

/* node / account card */
/* Observation HUD: unboxed text stays at the edges, away from the target. */
.uni-hud{position:absolute;inset:0;pointer-events:none;--hud-accent:#8b5cf6;font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;color:#e6ecf6;contain:layout style}
/* No boxes: a soft edge shade and a stacked shadow keep the words off the stars. */
.uni-hud::before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,rgba(0,0,0,.58),rgba(0,0,0,0) 15%),linear-gradient(to top,rgba(0,0,0,.56),rgba(0,0,0,0) 14%),linear-gradient(to left,rgba(0,0,0,.44),rgba(0,0,0,0) 22%),linear-gradient(to right,rgba(0,0,0,.38),rgba(0,0,0,0) 17%),radial-gradient(122% 90% at 50% 47%,rgba(0,0,0,0) 56%,rgba(0,0,0,.42) 100%)}
.uni-hud-title{position:absolute;top:96px;left:22px;right:22px;display:flex;align-items:flex-start;justify-content:center;gap:12px}
.uni-hud-title h2{max-width:min(760px,calc(100% - 48px));margin:0;text-align:center;font:560 clamp(21px,2.4vw,31px)/1.34 var(--sans);letter-spacing:-.035em;overflow-wrap:anywhere;color:#f7f9ff;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 6px rgba(0,0,0,.9),0 2px 20px rgba(0,0,0,.85),0 0 46px rgba(0,0,0,.6)}
.uni-hud-left,.uni-hud-right{position:absolute;top:43%;display:flex;flex-direction:column;gap:7px;max-width:27%;font-family:ui-monospace,"SFMono-Regular",Consolas,monospace;font-size:10.5px;line-height:1.6;letter-spacing:.09em;font-variant-numeric:tabular-nums;color:rgba(208,218,234,.78);overflow-wrap:anywhere;text-shadow:0 0 1px rgba(0,0,0,1),0 0 4px rgba(0,0,0,.98),0 0 13px rgba(0,0,0,.9),0 0 26px rgba(0,0,0,.62)}
.uni-hud-left{left:24px;padding-left:13px}
.uni-hud-right{right:24px;text-align:right;padding-right:13px}
.uni-hud-left::before,.uni-hud-right::before{content:"";position:absolute;top:0;bottom:0;width:1px;border-radius:1px;opacity:.62;background:linear-gradient(to bottom,var(--hud-accent),rgba(0,0,0,0))}
.uni-hud-left::before{left:0}
.uni-hud-right::before{right:0}
/* A soft pool of shade, no edge and no box, so words stay legible when a filament
   crosses them. Paint order: behind the text, above the atlas. */
.uni-hud-left::after,.uni-hud-right::after{content:"";position:absolute;top:50%;width:250px;height:160px;transform:translateY(-50%);z-index:-1;pointer-events:none;background:radial-gradient(closest-side,rgba(0,0,0,.62),rgba(0,0,0,.28) 58%,rgba(0,0,0,0) 100%)}
.uni-hud-left::after{left:-26px}
.uni-hud-right::after{right:-26px}
.uni-hud-summary{position:absolute;left:24px;top:58%;max-width:min(340px,33%);margin:0;font-family:var(--sans);font-size:12.5px;line-height:1.8;letter-spacing:-.005em;color:rgba(212,223,236,.82);display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 7px rgba(0,0,0,.9),0 0 24px rgba(0,0,0,.75)}
.uni-hud-records{position:absolute;right:24px;top:58%;width:min(280px,28%);display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.uni-hud-records button{font-family:var(--sans);font-size:11.5px;line-height:1.6;letter-spacing:-.01em;text-align:right;pointer-events:auto;color:rgba(198,212,230,.72);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;transition:color .18s;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 16px rgba(0,0,0,.8)}
.uni-hud-records button:hover,.uni-hud-records button:active{color:#f2f6ff}
.uni-hud-actions{position:absolute;left:24px;bottom:32px;display:flex;gap:10px;font-family:var(--sans);font-size:12.5px}
.uni-hud-actions button,.uni-hud-actions a{pointer-events:auto;display:inline-flex;align-items:flex-end;min-height:38px;padding:0 3px 7px;font-family:inherit;font-size:inherit;font-weight:500;letter-spacing:-.01em;color:rgba(234,241,252,.9);border-bottom:1px solid rgba(255,255,255,.22);transition:color .18s,border-color .18s;text-shadow:0 1px 2px rgba(0,0,0,.95),0 0 18px rgba(0,0,0,.8)}
.uni-hud-actions button:active,.uni-hud-actions a:active{color:#fff;border-bottom-color:rgba(255,255,255,.8)}
.uni-hud.is-content .uni-hud-title h2{font-size:clamp(18px,1.9vw,23px);line-height:1.5;letter-spacing:-.028em;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.uni-hud.is-long .uni-hud-title h2{-webkit-line-clamp:4;font-size:18px;max-width:min(820px,calc(100% - 48px))}
/* Nothing selected: the HUD keeps its own right-hand column exactly where it
   always sits, and only the count line is filled in — no separate corner chip,
   so nothing on the atlas can be tapped by accident. */
.uni-hud.is-idle .uni-hud-title,.uni-hud.is-idle .uni-hud-left,.uni-hud.is-idle .uni-hud-summary,.uni-hud.is-idle .uni-hud-records,.uni-hud.is-idle .uni-hud-actions{display:none}
/* The idle readout is an instrument caption, not a caption box. */
.uni-hud.is-idle .uni-hud-right{gap:0}
.uni-hud.is-idle .uni-hud-right span{font-size:12px;line-height:1.5;letter-spacing:.015em;color:rgba(243,247,253,.96);text-shadow:0 0 1px rgba(0,0,0,1),0 0 5px rgba(0,0,0,1),0 0 15px rgba(0,0,0,.92),0 0 30px rgba(0,0,0,.6)}
.uni-hud.is-idle .uni-hud-right span::before{content:"ACTIVE NODES";display:block;margin:0 -.24em 8px 0;font-size:8px;line-height:1;letter-spacing:.24em;color:rgba(176,190,212,.6);text-shadow:0 1px 2px rgba(0,0,0,.9)}
.uni-hud.is-idle .uni-hud-right::before{opacity:.42}

/* hint + loading */
.uni-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;color:#e9e9f3;background:#000000;transition:opacity .55s}
.uni-loading.is-done{opacity:0;pointer-events:none}
.uni-loading p{margin:0;font-size:12px;letter-spacing:.02em}
.uni-loading span{font-size:10px;color:#7f8093;letter-spacing:.04em}
.uni-orbit{width:52px;height:52px;border-radius:50%;border:1px solid #ffffff1f;position:relative}
.uni-orbit::before,.uni-orbit::after{content:"";position:absolute;border-radius:50%}
.uni-orbit::before{inset:0;border:1px solid transparent;border-top-color:#8b5cf6;border-right-color:#2dd4bf;animation:uni-spin 1.5s linear infinite}
.uni-orbit::after{inset:18px;background:#fbbf24;box-shadow:0 0 18px rgba(251,191,36,.6);animation:uni-pulse 1.6s ease-in-out infinite}
@keyframes uni-spin{to{transform:rotate(360deg)}}
@keyframes uni-pulse{0%,100%{transform:scale(.7);opacity:.6}50%{transform:scale(1);opacity:1}}

@media(max-width:900px){
 .uni-bar{left:12px;right:12px;top:10px;transform:none;flex-wrap:wrap;gap:7px;padding:6px;max-width:none;border-radius:15px}
 .uni-pills{order:1;flex:1 1 auto;overflow:auto;scrollbar-width:none}
 .uni-pills::-webkit-scrollbar{display:none}
 /* 36px of glass is the smallest a thumb should have to find. */
 .uni-pills button{padding:0 9px;font-size:10.5px;min-height:36px}
 .uni-search{order:3;flex:1 1 100%;height:38px}
 .uni-search input{width:100%}
 .uni-reset{order:2;width:36px;height:36px}
}
@media(max-width:400px){.uni-pills button{padding:0 8px;font-size:10px;gap:4px;min-height:36px}}


/* Record header stays centered independently of its action buttons. */
.inspector-top{position:relative}
.inspector-top>span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);white-space:nowrap;pointer-events:none}
@media(max-width:760px){
 .inspector{height:var(--sheet-height,34dvh);min-height:min(260px,calc(100% - 14px));max-height:calc(100% - 14px)}
 .inspector.sheet-expanded{--sheet-height:calc(100% - 14px);animation:none}
 .inspector.sheet-dragging{animation:none}
 .inspector-top{height:50px;padding:8px 13px 0;touch-action:none}
 .sheet-handle{touch-action:none;cursor:ns-resize}
 .inspector-scroll{padding:12px 16px calc(12px + env(safe-area-inset-bottom));min-height:0}
}

/* Keep camera movement on the compositor and the reader opaque. */
.canvas-viewport.camera-moving .map-node{transition:none!important;box-shadow:none}
.inspector{-webkit-backdrop-filter:none;backdrop-filter:none}
.canvas-flip{align-items:center;justify-content:center}
.canvas-flip>[data-icon]{display:flex;align-items:center;justify-content:center;line-height:1}
@media(max-width:760px){.inspector .note-editor textarea{font-size:18px}.canvas-flip .flip-label{text-align:center}}

@media(max-width:760px){
 .uni-hud-title{top:126px;left:15px;right:15px}
 .uni-hud-title h2{font-size:21px;line-height:1.36}
 .uni-hud-left,.uni-hud-right{font-size:10px;max-width:40%;top:45%;gap:6px;letter-spacing:.08em}
 .uni-hud-left{left:14px;padding-left:11px}.uni-hud-right{right:14px;padding-right:11px}
 .uni-hud-summary{left:14px;top:auto;bottom:calc(146px + env(safe-area-inset-bottom));max-width:calc(100% - 30px);font-size:12px;line-height:1.75;-webkit-line-clamp:4}
 .uni-hud-records{right:14px;top:58%;width:42%;gap:9px}
 .uni-hud-records button{font-size:10.5px}
 .uni-hud-actions{left:14px;bottom:calc(92px + env(safe-area-inset-bottom));font-size:12px;gap:16px}
 .uni-hud.is-content .uni-hud-title h2{font-size:19px;line-height:1.42}
 .uni-hud.is-long .uni-hud-title h2{font-size:16px;-webkit-line-clamp:4;max-width:calc(100% - 38px)}
 .uni-hud.is-idle .uni-hud-right span{font-size:11.5px}
}

.panel-open .uni-bar,.panel-open .uni-hud{opacity:0;pointer-events:none}

.canvas-viewport.camera-moving .record-node{will-change:transform}

/* ── 라이트 테마: 쿨 미네랄 페이퍼 위의 무테두리 카드 ──────────────────
   One palette, one card face. Paper is a cool mineral gray so a pure white
   card separates without a drawn edge; every outline in the light-mode
   chrome is gone and depth comes from a single soft shadow. The 3D universe
   keeps its own dark palette, and its glass bar is edge-free too. */
:root{--paper:#eef0f5;--ink:#161822;--muted:#64748b;--purple:#7c3aed;--purple-soft:#ede9fe;--line:#e3e7ef}
body{background:var(--paper);color:var(--ink)}
html{background:var(--paper)}
/* 유니버스(검은 우주)에서는 최상단 상태바·노치 영역까지 같은 검정으로 이어진다.
   바탕을 html까지 칠해야 아이폰이 안전 영역에 흰색을 비추지 않는다. */
html.universe-mode,body.universe-mode{background:#000000}
::selection{background:#ddd6fe}

/* Chrome: no drawn edges anywhere, only tone and shadow. */
.topbar{background:#f6f7fa;border:0}
.view-switch{border:0;background:#e4e8f0}
.view-switch button{color:var(--muted)}
.view-switch button[aria-pressed=true]{color:var(--purple);background:#fff;box-shadow:0 1px 4px rgba(15,23,42,.10)}
.search-trigger{border:0;background:#fff;color:var(--muted);box-shadow:0 1px 2px rgba(15,23,42,.06)}
.search-trigger kbd{background:#eef0f5;color:var(--muted);border:0}
kbd{border:0;background:#eef0f5;color:var(--muted)}
.help-button{border:0;background:#e4e8f0;color:var(--muted)}
.help-button:hover{background:var(--purple-soft);color:var(--purple)}
.icon-button{color:var(--muted)}
.icon-button:hover{background:#e6eaf2;color:var(--ink)}
.brand-menu{border:0;box-shadow:0 18px 46px rgba(15,23,42,.18)}
.brand-menu a{color:#47506a}
.brand-menu a:hover{background:#f1f3f7;color:var(--ink)}
.brand-menu a.is-current{background:var(--purple-soft);color:var(--purple)}
.brand-caret{color:#94a3b8}

/* Canvas furniture */
.canvas-dots{background-image:radial-gradient(#cbd5e1 1px,transparent 1px);opacity:.6}
.connection{stroke:#94a3b8}
.connection.active{stroke:var(--purple)}
.edge-pin{fill:var(--paper);stroke:#94a3b8}
.canvas-vignette{background:linear-gradient(to right,#eef0f588,transparent 23%,transparent 85%,#eef0f530),linear-gradient(to bottom,#eef0f540,transparent 15%,transparent 90%,#eef0f5bb)}
.palette{border:0;background:#fff;box-shadow:0 14px 40px rgba(15,23,42,.11)}
.palette-header,.palette-number{color:var(--muted)}
.theme-button{color:#47506a}
.theme-button:hover{background:#f1f3f7;color:var(--ink)}
.theme-button.active{color:var(--purple);background:var(--purple-soft)}
.theme-button.active .theme-count{color:var(--purple)}
.theme-button .theme-count{color:#94a3b8}
.mobile-palette-button{border:0;background:#fff;color:var(--purple);box-shadow:0 4px 14px rgba(15,23,42,.10)}
.canvas-dock{border:0;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.13)}
.dock-button{color:var(--muted)}
.dock-button:hover{background:#f1f3f7;color:var(--ink)}
.dock-button.active{background:var(--purple);box-shadow:0 2px 6px rgba(124,58,237,.28)}
.dock-divider{background:#e3e7ef}
.canvas-flip[aria-pressed=true]{color:var(--purple);background:var(--purple-soft)}

/* One card face: pure white, soft shadow, no outline. */
.record-node,.world .record-node{border:0;background:#fff;color:var(--ink);box-shadow:0 2px 12px rgba(15,23,42,.045)}
.record-node:hover{border:0;box-shadow:0 8px 24px rgba(15,23,42,.10)}
.record-node.selected,.record-node.dark.selected{box-shadow:0 0 0 2px var(--purple),0 8px 24px rgba(15,23,42,.08)}
.record-node.dragging{box-shadow:0 18px 44px rgba(15,23,42,.18)}
.record-node.dimmed{opacity:.28}
.record-node.dark{background:#fff;color:var(--ink);border:0}
.record-node.dark .node-kicker,.record-node.dark .node-footer{color:var(--muted)}
.record-node.dark .note-editor{color:var(--ink)}
.record-node.dark .note-editor textarea::placeholder{color:#94a3b8}
.record-node.tinted,.record-node.quote{background:#fff}
.record-node.tinted .node-kicker,.record-node.tinted .node-footer{color:var(--muted);opacity:1}
.node-kicker,.node-footer{color:var(--muted)}
.node-footer{border-top:0}.related-account{color:#94a3b8}
.topic-node{border:0;background:#fff;color:#47506a;box-shadow:0 2px 10px rgba(15,23,42,.07)}
.topic-node:hover,.topic-node.active{border:0;background:#fff;color:var(--purple);box-shadow:0 0 0 2px var(--purple),0 6px 18px rgba(15,23,42,.09)}
.topic-node.active .theme-dot{box-shadow:0 0 0 4px rgba(124,58,237,.14)}
.topic-node .topic-count{color:#94a3b8}
.world.overview .topic-node{background:#fff;color:#47506a;box-shadow:0 2px 10px rgba(15,23,42,.07)}

/* Surfaces inside a card carry no outline either. */
.inline-media{border:0;background:#f4f6f9}
.inline-media>img{background:#f4f6f9}
.inline-media video,.video-poster{background:#111318}
.inline-gallery-controls{border-top:0;background:#f8fafc;color:var(--muted)}
.inline-gallery-controls button:hover{background:#e6eaf2}
.inline-link,.record-link-card{border:0;background:#f4f6f9}
.inline-link .inline-link-label,.record-link-card .inline-link-label{color:var(--muted)}
.inline-link .inline-link-title,.record-link-card .inline-link-title,.record-node.dark .inline-link .inline-link-title{color:var(--ink)}
.inline-link .inline-link-summary,.record-link-card .inline-link-summary{color:#47506a}
.inline-link a,.record-link-card a{border-top:0;color:var(--purple)}
.record-node.dark .inline-link{background:#f4f6f9;color:var(--ink)}
.poster-play{border:0;background:rgba(17,19,24,.62)}
.video-poster:hover .poster-play{background:rgba(124,58,237,.92)}
.media-placeholder{background:linear-gradient(135deg,#f4f6f9,#eef0f5);color:#94a3b8}
.record-media{border:0;background:#f4f6f9}
.gallery-open{background:#f4f6f9}
.gallery-controls{border-top:0;background:#f8fafc;color:var(--muted)}
.gallery-expand{border:0;background:#ffffffeb;color:var(--purple)}
.card-details{color:var(--muted)}
.card-details:hover,.card-filter:hover{background:rgba(124,58,237,.10);color:var(--purple)}
.filter-edit-button{color:var(--muted)}
.filter-edit-button:hover{background:var(--purple-soft);color:var(--purple)}
.note-editor textarea::placeholder{color:#94a3b8}
.note-save-status{color:#94a3b8}
.note-save-status[data-state=saving]{color:var(--purple)}

/* Reading panel */
.inspector{border:0;background:#fff;box-shadow:0 18px 60px rgba(15,23,42,.16)}
.inspector-top{border-bottom:0}
.inspector-top>span{color:var(--muted)}
.inspector-note{border:0;background:#f4f6f9}
.record-text{color:#334155}
.record-number{color:#94a3b8}
.record-source strong{color:var(--ink)}
.record-source>div>span{color:var(--muted)}
.source-avatar{background:#f4f6f9}
.record-artwork{background:#f4f6f9}
.record-type{border:0;background:#eef0f5;color:var(--muted)}
.original-link{border:0;background:#f4f6f9;color:var(--purple)}
.original-link:hover{background:#eaeef6;color:#6d28d9}
.related-heading>div,.related-heading h3,.related-heading>span{color:var(--muted)}
.related-record{border-bottom:0}
.related-record .related-icon{border:0;background:#f4f6f9}
.related-title{color:#3f4759}
#recordDelete:hover{background:#fdeceb;color:#b23c35}

/* Index: same paper, same borderless cards. */
.index-view{background:var(--paper)}
.index-tools{border-bottom:0}
.index-filter{color:var(--muted)}
.index-filter:hover{background:#e6e9f1;color:var(--ink)}
.index-filter.active{border:0;background:var(--purple-soft);color:var(--purple)}
.sort-button,.index-notes-toggle{color:var(--muted)}
.index-notes-toggle[aria-pressed=true]{background:var(--purple-soft);color:var(--purple)}
.index-columns{border:0;background:#e4e8f0}
.index-columns button{color:var(--muted)}
.index-columns button[aria-pressed=true]{background:#fff;color:var(--purple);box-shadow:0 1px 3px rgba(15,23,42,.12)}
.index-columns>span{color:#94a3b8}
.index-card{background:#fff;border:0;box-shadow:0 2px 12px rgba(15,23,42,.045)}
.index-card:hover{transform:none;border:0;box-shadow:0 10px 26px rgba(15,23,42,.10)}
.index-card.selected{box-shadow:0 0 0 2px var(--purple),0 8px 24px rgba(15,23,42,.08)}
.index-card:nth-child(5n+2){background:#fff}
.index-card .card-title{color:var(--ink)}
.index-card .card-bottom{color:var(--muted)}
.index-card-content .note-editor{border:0;padding-left:0}
.index-query{border:0;background:#e4e8f0;color:var(--muted)}
.load-more{border:0;background:#fff;color:var(--purple);box-shadow:0 2px 10px rgba(15,23,42,.07)}
.index-empty{color:var(--muted)}
.index-empty strong{color:var(--ink)}

/* Dialogs and lists */
dialog{border:0;box-shadow:0 30px 90px rgba(15,23,42,.30)}
.command-search{border-bottom:0;background:#f8fafc}
.command-search input::placeholder{color:#94a3b8}
.command-meta{color:var(--muted)}
.search-result:hover,.search-result[aria-selected=true]{background:#f3effd}
.result-icon{border:0;background:#f4f6f9}
.result-title{color:var(--ink)}
.result-meta{color:var(--muted)}
.search-all{border-top:0;color:var(--purple)}
.command-footer{border-top:0;background:#f8fafc;color:var(--muted)}
.command-footer kbd{border:0;background:#eef0f5;color:var(--muted)}
.search-empty,.recent-empty{color:var(--muted)}
.search-empty b{color:var(--ink)}
.help-dialog h2,.recent-heading h2{color:var(--ink)}
.help-item{color:var(--muted)}
.help-item b{color:var(--ink)}
.help-item p{color:var(--muted)}
.help-shortcuts{border-top:0;color:var(--muted)}
.help-shortcuts kbd{border:0;background:#f4f6f9;color:var(--muted)}
.filter-name-row{border:0;background:#f4f6f9}
.filter-name-row:focus-within{box-shadow:0 0 0 2px var(--purple)}
.filter-choice:hover{background:#f1f3f7}
.filter-choice[aria-pressed=true]{background:var(--purple-soft);color:var(--purple)}
.filter-save:hover{background:#6d28d9}
.filter-save-note{color:#94a3b8}
.filter-record-title,.delete-record-title{color:var(--muted)}
.delete-note{color:#334155}
.delete-actions button{border:0;background:#f4f6f9;color:#47506a}
.delete-actions .delete-confirm{background:#c2453f;color:#fff}
.delete-actions .delete-confirm:hover{background:#ad3b36}
.note-dialog .note-editor textarea{color:var(--ink)}
.note-conflict-dialog pre{background:#f4f6f9;border:0}
.note-conflict-actions button{background:#eef0f5;color:#47506a}
.note-group-heading>span{color:#94a3b8}
.toast{border:0;background:rgba(22,24,34,.9);color:#f6f7fb;box-shadow:0 6px 20px rgba(15,23,42,.28)}
#lock,body.locked{background:var(--paper)}
.locktitle{color:var(--ink)}
#pin{border:0;background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.07)}
#pin:focus{box-shadow:0 0 0 2px var(--purple)}
#unlock{background:var(--purple)}

/* 모바일: 바와 도크는 그대로 슬림하게, 글씨와 버튼만 읽히게 키운다. */
@media(max-width:760px){
 :root{--header:calc(54px + env(safe-area-inset-top))}




 .index-card .card-title,.index-card:nth-child(7n+4) .card-title{font-family:var(--sans);font-size:14px!important;line-height:1.75!important;letter-spacing:-.03em}
 .index-card .card-theme,.index-card-heading .card-theme{font-size:11px!important;gap:5px}
 .index-card .card-bottom{font-size:11px!important}
 .index-card .card-bottom>span{flex:1 1 auto;min-width:0}
 .record-node .node-title,.record-node.quote .node-title,.record-node.dark .node-title,.record-node.abstract .node-title{font-size:14px;line-height:1.7}
 .record-node .node-kicker{font-size:11px}
 .record-node .node-footer{font-size:11px}
 .index-filter{font-size:12px;padding:7px 11px}
 .sort-button{font-size:12px}
 .index-notes-toggle{font-size:12px;min-height:32px}
 .load-more{font-size:12px}
 .index-view .note-editor textarea{font-size:13px}
 .note-save-status{font-size:10px}
 .mobile-palette-button{font-size:11.5px;padding:10px 12px}
 .theme-button{font-size:11.5px}
 .palette-header{font-size:10.5px}
 .result-title{font-size:12.5px}
 .result-meta{font-size:10.5px}
 .command-search input{font-size:14px}
 .command-meta{font-size:10px}
 .command-footer{font-size:9px}
 .search-empty{font-size:13px}
 .help-item p{font-size:11.5px}
 .related-title{font-size:12px}
 .related-account{font-size:10.5px}
 .record-text{font-size:13px}
 .original-link{font-size:12px}
 .filter-record-title{font-size:12px}
 .filter-choice{font-size:12px}
 .filter-form-actions button{font-size:13px}
 .delete-note{font-size:13px}
 .delete-actions button{font-size:13px}
 .toast{font-size:11px}
 .canvas-vignette{background:linear-gradient(to bottom,#eef0f5bb,transparent 30%,transparent 85%,#eef0f588)}
}
@media(max-width:400px){
 .view-switch button{padding:9px 11px;font-size:11.5px}
}

/* ── 메모를 눌러도 화면이 확대되지 않게 ────────────────────────────────────
   iOS는 computed font-size가 16px 미만인 입력칸에 포커스하면 스스로 확대한다.
   인덱스 카드·인스펙터 어디서 메모를 눌러도 16px로 고정해 그 확대를 없앤다. */
@media(max-width:760px){
 .note-editor:not(.canvas-note-editor) textarea,
 .index-view .note-editor textarea,
 .index-card-content .note-editor textarea,
 .inspector-note .note-editor textarea,
 .inspector .note-editor textarea{font-size:16px!important;line-height:1.55!important;letter-spacing:-.02em}
 /* 남은 검색 입력칸도 같은 이유로 16px */
 .command-search input,.uni-search input{font-size:16px}
}

/* ── 모바일 하단 탭바: 토스식 플로팅 리퀴드 글래스 캡슐 ────────────────────
   토스(iOS 26)의 하단 탭바처럼, 무테두리 유리 알약 하나가 화면 아래에 떠 있고
   그 안에서 세로형 아이콘+라벨 탭이 둥근 캡슐로 켜진다. 데스크톱 상단
   .view-switch는 그대로 둔다 — 이 블록은 전부 760px 이하 전용이다.
   블러는 16px로 가볍게: 유니버스 WebGL 위에서도 합성 부담을 늘리지 않는다. */
@media(max-width:760px){
 .view-switch{
  bottom:calc(10px + env(safe-area-inset-bottom));
  width:calc(100% - 32px);max-width:370px;
  gap:3px;padding:6px;border:0;border-radius:999px;
  box-shadow:0 10px 32px rgba(15,23,42,.13),inset 0 1px 0 rgba(255,255,255,.75);
  transition:opacity .18s,background .2s,box-shadow .2s;
 }
 .view-switch button{
  flex:1 1 0;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;min-width:0;padding:12px 14px;border-radius:999px;
  font-size:12.5px;font-weight:550;line-height:1.15;letter-spacing:-.02em;
  color:#475569;white-space:nowrap;
  transition:background .2s,color .2s,box-shadow .2s;
 }
 .view-switch button>span[data-icon]{display:flex;align-items:center;justify-content:center;line-height:0}
 .view-switch button [data-icon] svg{width:18px;height:18px;stroke-width:1.7}
 .view-switch button>span:last-child{font-size:12.5px;font-weight:550;line-height:14px;letter-spacing:-.02em}
 .view-switch button[aria-pressed=true]{background:rgba(15,23,42,.08);font-weight:650;box-shadow:none}
 .view-switch button[aria-pressed=true]>span:last-child{font-weight:650}
 /* 유니버스(검은 우주)에서는 같은 캡슐이 어두운 스모크 유리로 바뀐다. */
 body.universe-mode .view-switch{
  box-shadow:0 12px 34px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.14);
 }
 body.universe-mode .view-switch button{color:rgba(226,232,240,.72)}
 body.universe-mode .view-switch button[aria-pressed=true]{background:rgba(255,255,255,.18);color:#ffffff;box-shadow:none}
}
@media(max-width:400px){
 .view-switch button [data-icon] svg{width:18px;height:18px}
}

/* ── 모바일 상단 바: 토스식 담백한 헤더 ───────────────────────────────────
   유리 박스도 그림자도 없다 — 바는 배경과 같은 종이 톤으로 녹아들고,
   경계는 오직 스크롤 내용과의 톤 차이로만 생긴다. 오른쪽 액션은 흰 알약
   대신 단색 아이콘 + 36px 원형 터치 틴트만 남긴다. 데스크톱 .topbar는
   손대지 않는다 — 이 블록은 전부 760px 이하 전용이다. */
@media(max-width:760px){
 /* 톤과 블러는 ::before가 맡는다. .topbar 자신에 backdrop-filter를 두면
    .topbar가 position:fixed의 containing block이 되어, 자식인 하단 탭바
    (.view-switch)가 상단 바 높이에 갇혀 사라진다. 그래서 .topbar는 비우고
    유리만 ::before로 깐다 — ::before는 .topbar 영역만 덮는다. */
 .topbar{
  border:0;border-bottom:0;box-shadow:none;
  background:transparent;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  transform:none;filter:none;
 }
 .topbar::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
 }

 .brand{font-weight:700;letter-spacing:-.04em}
 .header-actions .search-trigger,
 .header-actions .icon-button{
  width:36px;height:36px;border:0;border-radius:999px;
  background:transparent;box-shadow:none;color:#475569;
  transition:background .18s,color .18s;
 }
 .header-actions .search-trigger:active,
 .header-actions .icon-button:active,
 .header-actions .search-trigger:hover,
 .header-actions .icon-button:hover{background:rgba(15,23,42,.06);color:#161822}
 /* 유니버스(검은 우주)에서는 같은 바가 어두운 유리로, 글씨는 흰색으로. */
 body.universe-mode .topbar{background:transparent;color:#f8fafc}
 body.universe-mode .brand,body.universe-mode .brand-caret{color:#f8fafc}
 body.universe-mode .brand .brand-period{color:#cbd5e1}
 body.universe-mode .header-actions .search-trigger,
 body.universe-mode .header-actions .icon-button{color:#e2e8f0;background:transparent;box-shadow:none}
 body.universe-mode .header-actions .search-trigger:active,
 body.universe-mode .header-actions .icon-button:active,
 body.universe-mode .header-actions .search-trigger:hover,
 body.universe-mode .header-actions .icon-button:hover{background:rgba(255,255,255,.12);color:#ffffff}
}

/* ── 유니버스(검은 우주)의 상단 바: 흐려지지 않는 흰 글씨 ──────────────
   우주로 들어가면 바도 같은 검정 위에 선다(폰뿐 아니라 데스크톱에서도 — 이
   블록은 미디어 쿼리 밖에 있다). 라이트 크롬의 흰 알약·그림자·회색 테두리는
   걷어내고, 브랜드·판본·검색·최근·도움말의 글씨와 아이콘은 회색으로 가라
   앉지 않는 선명한 흰색으로 둔다. */
body.universe-mode .topbar{
 background:transparent;color:#ffffff;
 border-color:transparent;box-shadow:none;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
body.universe-mode .brand,
body.universe-mode .brand-caret,
body.universe-mode .brand .brand-period,
body.universe-mode .search-label,
body.universe-mode .edition,
body.universe-mode .edition b{color:#ffffff;opacity:1}
body.universe-mode .edition{border-left-color:rgba(255,255,255,.3)}
body.universe-mode .header-actions .search-trigger,
body.universe-mode .header-actions .icon-button,
body.universe-mode .header-actions .help-button{
 color:#ffffff;background:transparent;border-color:transparent;box-shadow:none;opacity:1;
}
body.universe-mode .header-actions .help-button{border-color:rgba(255,255,255,.5)}
body.universe-mode .header-actions .search-trigger kbd{background:rgba(255,255,255,.18);border:0;color:#ffffff}
body.universe-mode .header-actions .search-trigger:active,
body.universe-mode .header-actions .icon-button:active,
body.universe-mode .header-actions .help-button:active,
body.universe-mode .header-actions .search-trigger:hover,
body.universe-mode .header-actions .icon-button:hover,
body.universe-mode .header-actions .help-button:hover{
 background:rgba(255,255,255,.14);color:#ffffff;border-color:rgba(255,255,255,.7);
}
body.universe-mode .header-actions .recent-dot{background:#a78bfa}
/* 바가 검정으로 서면 가운데 탭 캡슐도 같은 스모크 유리여야 한다 — 밝은 회색
   알약만 홀로 남으면 어두운 바 안에서 튀고, 그 안의 글씨가 흐려 보인다. */
body.universe-mode .view-switch{
 background:rgba(24,26,36,.74);
 box-shadow:0 12px 34px rgba(0,0,0,.48),inset 0 1px 0 rgba(255,255,255,.14);
}
body.universe-mode .view-switch button{color:rgba(226,232,240,.8)}
body.universe-mode .view-switch button[aria-pressed=true]{background:rgba(255,255,255,.18);color:#ffffff;box-shadow:none}

/* ── 모바일 60fps: 실시간 블러·그림자 부하 경량화 ─────────────────────────────
   iOS 사파리/PWA에서는 backdrop-filter 하나가 스크롤·팬/줌 매 프레임마다
   화면 뒤를 다시 캡처해 합성한다. 특히 60fps WebGL(유니버스) 위에 얹히면
   GPU가 두 번 일한다. 그래서 블러는 걷어내고 같은 톤의 거의 불투명한 색만
   남긴다 — 눈에 보이는 차이는 거의 없고 합성 비용만 사라진다. 카드 그림자도
   종이 대비만 남기는 한 겹으로 줄이고, 캔버스를 움직이는 동안은 아예 끈다. */

/* 1) 유니버스 상단 바·검색 결과: WebGL 위 실시간 블러 0. */
.uni-bar,.uni-results{
 -webkit-backdrop-filter:none;
 backdrop-filter:none;
 background:rgba(22,24,34,.94);
}

/* 2) 카드 그림자: 초경량 한 겹(#eef0f5 종이 위 대비용). */
.record-node,.world .record-node,.index-card{
 box-shadow:0 1px 3px rgba(15,23,42,.04);
}

/* 3) 캔버스 팬/줌·멀리 보기 중에는 수백 장 카드의 그림자를 그리지 않는다. */
.world.far-view .record-node,
.canvas-viewport.interacting .record-node,
.canvas-viewport.camera-moving .map-node{
 box-shadow:none!important;
}

@media(max-width:760px){
 /* 4) 상단 바: 블러 대신 거의 불투명한 같은 톤. */
 .topbar::before{
  background:rgba(238,240,245,.96);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
 }
 body.universe-mode .topbar::before{background:rgba(0,0,0,.92)}

 /* 5) 하단 탭바: 라이트에선 8px 한 겹만, 유니버스(WebGL) 위에서는 완전히 끈다. */
 .view-switch{
  background:rgba(255,255,255,.88);
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
 }
 body.universe-mode .view-switch{
  background:rgba(24,26,36,.92);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
 }

 /* 6) 팔레트·캔버스 독: 모바일에서는 불투명 흰 판. */
 .palette,.canvas-dock{
  background:#fff;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
 }
}

/* ---------------------------------------------------------------------------
   플로팅 메모: 상단 콘텐츠 → 하단 메모 패드, 그 아래 키보드.
   패드는 visualViewport가 남긴 만큼만 차지한다(notes-ui.js).
   --------------------------------------------------------------------------- */
.memo-composer{position:fixed;left:0;right:0;top:0;height:100%;z-index:90;display:flex;flex-direction:column;background:rgba(15,23,42,.45);touch-action:manipulation}
body.universe-mode .memo-composer{background:rgba(3,5,9,.74)}
/* 무대는 남은 높이를 그대로 갖고(패드와 절대 겹치지 않는다), 그 안에서 미디어가
   비율을 지킨 채 무대 높이에 맞춰 줄어든다. 카드의 54dvh·45dvh 같은 최대 높이는
   여기서만 덮어써서, 영상이 패드·키보드 뒤로 깔리는 일이 없다. */
.memo-composer-stage{flex:1;min-height:0;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:calc(env(safe-area-inset-top) + 12px) 16px 12px}
.memo-composer-stage>*{flex:0 1 auto;min-height:0;min-width:0;max-height:100%;max-width:100%}
.memo-composer-stage video,.memo-composer-stage img,.memo-composer-stage .memo-media{display:block;width:auto;height:auto;max-height:100%;max-width:100%;object-fit:contain;border-radius:14px;background:#0b0d12}
.memo-composer-stage img.memo-media{background:#0b0d1200}
.memo-composer-stage .record-link-card{width:min(420px,100%);max-height:100%;flex-shrink:1;border-radius:14px;padding:18px;overflow-y:auto;overscroll-behavior:contain}
/* 여러 장짜리 카드뉴스: 사진과 < 1 / N > 바가 무대 높이 안에서 함께 산다. */
.memo-composer-stage .memo-gallery{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;gap:9px}
.memo-composer-stage .memo-gallery-frame{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center}
.memo-composer-stage .memo-gallery-frame>img{display:block;width:auto;height:auto;max-width:100%;max-height:100%;object-fit:contain;border-radius:14px;background:#0b0d12}
.memo-composer-stage .memo-gallery .gallery-controls{align-self:center;width:auto;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:16px;padding:2px 12px;border:0;border-radius:999px;background:#fff;color:#7e668f;box-shadow:0 6px 20px rgba(15,23,42,.28);font-size:10px;touch-action:manipulation}
.memo-composer-stage .memo-gallery .gallery-controls button{width:44px;height:40px;border-radius:999px;color:inherit;background:transparent;font-size:16px}
.memo-composer-stage .memo-gallery .gallery-controls button:active{background:#575ce51a}
body.universe-mode .memo-composer-stage .memo-gallery .gallery-controls{background:#171923;color:#c9cede;box-shadow:0 6px 20px rgba(0,0,0,.55)}
body.universe-mode .memo-composer-stage .memo-gallery .gallery-controls button:active{background:#ffffff14}
.memo-composer-stage .media-load-error{color:#e2e8f0;background:rgba(15,23,42,.7);border-radius:10px}
/* 패드는 무대 위에 불투명하게 앉는다. 그 아래(키보드 애니메이션 중 visualViewport가
   한두 프레임 늦게 줄어들 때 생기는 틈)도 같은 색으로 꽉 채워, 반투명 딤드가
   비쳐 보이지 않는다. */
.memo-composer-pad{position:relative;z-index:2;flex-shrink:0;border-radius:20px 20px 0 0;background:#fff;padding:5px 16px calc(11px + env(safe-area-inset-bottom));box-shadow:0 -12px 40px rgba(15,23,42,.24);max-height:46%;display:flex;flex-direction:column;will-change:transform}
.memo-composer-pad::after{content:'';position:absolute;left:0;right:0;top:100%;height:60vh;background:inherit;pointer-events:none}
body.universe-mode .memo-composer-pad{background:#171923;color:#e8ebf3;box-shadow:0 -12px 40px rgba(0,0,0,.55)}
body.universe-mode .memo-composer-handle{background:#3a3f52}
body.universe-mode .memo-composer-slot .note-editor textarea::placeholder{color:#7d8497}
body.universe-mode .memo-composer-slot .note-save-status{color:#9aa2b6}
.memo-composer-handle{flex-shrink:0;width:34px;height:4px;border-radius:4px;background:#e0d4e8;margin:2px auto 9px;touch-action:none;cursor:ns-resize;position:relative;z-index:3}
.memo-composer-slot{flex:1;min-height:0;display:flex}
.memo-composer-slot .note-editor{flex:1;min-height:0;gap:2px}
.memo-composer-slot .note-editor textarea{font-size:16px;line-height:1.65;min-height:3.2em;max-height:100%;overflow-y:auto}
.memo-composer-slot .note-save-status{font-size:9px}
body.memo-open{overscroll-behavior:none}
@media(max-width:760px){
 .inspector.is-universe{height:calc(100dvh - var(--header) - 8px);min-height:0;max-height:calc(100dvh - var(--header) - 8px);bottom:4px;border-radius:16px}
}

/* ── 캔버스 60fps: 합성·컬링·카드 전체 드래그 ───────────────────────────────
   아이폰 사파리에서 캔버스만 유독 버벅이던 원인은 세 가지였다.
   ① 화면 밖 카드를 display:none으로 감춰 팬/줌 프레임마다 캔버스 전체가
      리플로우됐다 → 이제 visibility로 감춘다(레이아웃은 그대로, 페인트만 생략).
   ② translate() 2D 변환은 합성 레이어를 만들지 않아 프레임마다 카드 40여 장을
      다시 그렸다 → JS가 translate3d로 위치를 쓰고, 제스처 중에는 각 카드가
      자기 레이어를 갖는다(.interacting 규칙). 0×0인 .world는 승격하지 않는다 —
      부모를 레이어로 올리면 화면 크기 레이어를 매 프레임 다시 올려야 한다.
   ③ 카드마다 걸려 있던 transition이 팬/줌 중 opacity·scale을 0.3초씩 다시
      재생했다 → .interacting/.camera-moving에서 이미 꺼져 있고, 여기서는
      컬링된 카드가 그 전환에 끌려 들어가지 않게만 막는다. */
.canvas-viewport .map-node{backface-visibility:hidden;-webkit-backface-visibility:hidden}
.canvas-viewport .map-node.culled{visibility:hidden;pointer-events:none}
.canvas-viewport.interacting .record-node.culled{will-change:auto}
.canvas-dots{will-change:transform}

/* 카드 한 장이 통째로 손잡이다: 머리글·본문뿐 아니라 영상 포스터, 재생기,
   사진, 링크 카드 어디를 잡아도 끌린다. 6px 넘게 움직이면 즉시 드래그로 바뀌고,
   그 전의 짧은 탭은 그대로 재생·링크·선택으로 간다. 필기 입력만 예외다 —
   커서·선택·확대경은 브라우저 몫으로 남긴다. */
.canvas-viewport .record-node{touch-action:none}
.canvas-viewport .record-node .inline-media,
.canvas-viewport .record-node .video-poster,
.canvas-viewport .record-node video,
.canvas-viewport .record-node img{touch-action:none;-webkit-touch-callout:none;-webkit-user-drag:none}
.canvas-viewport .record-node .note-editor textarea{touch-action:pan-y}

/* ── 탭이 도착하는 찰나 ─────────────────────────────────────────────────────
   캔버스 | 인덱스 | 유니버스를 누르면 새 뷰를 opacity 0으로 붙잡아 두고(그 사이
   스크롤·목록·카메라·WebGL 리사이즈가 끝난다), 준비된 프레임 위로 110ms 한 번에
   떠오른다. 요소들이 차례로 덜컹거리며 뜨던 인상이 사라진다. 유니버스는 WebGL
   캔버스라 위치 변환 없이 투명도만 쓴다(검은 화면 방지).
   인덱스는 기다릴 것이 남아 있을 때만 이 박자를 쓰고 40ms로 짧게 스친다 — 그림까지
   이미 손에 있으면(재방문·캐시) 박자 자체를 건너뛰고 그 프레임에 그대로 선다. */
.canvas-view.view-arming,.index-view.view-arming,.universe-view.view-arming{opacity:0}
.canvas-view.view-in .map-node{transition:none!important}
.canvas-view.view-in,.index-view.view-in{animation:view-arrive .11s cubic-bezier(.22,1,.36,1) both}
.index-view.view-in{animation-duration:.04s}
.universe-view.view-in:not(.is-intro){animation:view-arrive-flat .11s cubic-bezier(.22,1,.36,1) both}
@keyframes view-arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes view-arrive-flat{from{opacity:0}to{opacity:1}}

/* ── 폰 전용: 카드의 손끝 자리 ───────────────────────────────────────────────
   ① 인덱스 1열에서도 카드는 2·3열과 같은 세로 구도로 선다. 폭이 넓다고 자료와
      메모를 좌우로 나누면 1열에서만 메모가 옆으로 밀려 어색해진다.
   ② 캔버스 카드의 세 자리: 숫자는 위(머리글)로, 메모 버튼은 아래 오른쪽으로.
      아래쪽에 여백을 몰아줘 엄지가 닿는 자리를 넓히고, 위는 컴팩트하게 줄인다.
   ③ 카드는 어디를 잡아도 끌린다. 필기 칸만 브라우저 몫으로 남긴다. */
@media(max-width:760px){
 #indexView[data-columns="1"] .index-card-content{grid-template-columns:minmax(0,1fr);gap:10px}
 #indexView[data-columns="1"] .index-card-content .inline-media{height:290px}
 #indexView[data-columns="1"] .index-card-content .note-editor{min-height:0;border-left:0;border-top:1px solid #ebe6ef;padding:10px 0 0}

 .record-node{padding:10px 13px 12px}
 .record-node .node-kicker{margin-bottom:4px;min-height:24px;padding-left:32px;padding-right:0}
 .record-node .node-kicker .card-actions{display:contents}
 .record-node .node-kicker .card-actions .card-filter{order:2;width:30px;height:30px}
 .record-node .node-footer{margin-top:12px;padding-top:10px;padding-right:48px;min-height:38px;align-items:center}
 .record-node .card-details{position:absolute;right:9px;bottom:7px;width:40px;height:40px;min-width:40px;min-height:40px;border-radius:11px;z-index:2;color:var(--theme-ink);background:#f7f5fb}
 .record-node.dark .card-details{color:#d7cae4;background:#ffffff14}
 .record-node .card-details svg{width:19px;height:19px}

 .canvas-viewport .record-node *{touch-action:none;-webkit-touch-callout:none}
 .canvas-viewport .record-node textarea,.canvas-viewport .record-node input,.canvas-viewport .record-node select{touch-action:pan-y;-webkit-touch-callout:default;-webkit-user-select:text;user-select:text}
 .canvas-viewport .record-node.dragging,.canvas-viewport .record-node.dragging *{-webkit-user-select:none;user-select:none}
}

/* ── 하단 탭바의 활성 알약 ───────────────────────────────────────────────────
   폰에서는 선택 표시가 탭 버튼의 배경이 아니라 하나의 알약이다. 탭을 누르면
   iOS 스프링 곡선(cubic-bezier(.32,1.24,.56,1))으로 미끄러져 착지하고, 손으로
   잡아 끌면 살짝 부풀어(scale 1.06) 손가락을 그대로 따라간다(드래그 중에는
   전환을 끊어 지연이 없다). 데스크톱은 알약 없이 기존 배경 표시 그대로다. */
.view-switch-pill{display:none}
@media(max-width:760px){
 .view-switch{isolation:isolate}
 .view-switch-pill{
  display:block;position:absolute;left:0;top:6px;width:0;height:32px;z-index:0;pointer-events:none;
  /* 바(999px 캡슐)와 동심원: 안쪽 알약도 같은 캡슐 곡률을 쓴다. 바의 패딩(6px)만큼
     안쪽으로 들어와 있으므로 곡률 차이가 눈에 보이지 않는다. */
  border-radius:999px;background:var(--purple-soft,#ede9fc);box-shadow:0 1px 4px rgba(15,23,42,.08);opacity:0;
  transform:translateX(0) scale(1);transform-origin:50% 50%;
  transition:transform .38s cubic-bezier(.32,1.24,.56,1),width .38s cubic-bezier(.32,1.24,.56,1),height .2s ease,top .2s ease;
 }
 .view-switch.pill-dragging .view-switch-pill{transition:none;box-shadow:0 4px 14px rgba(15,23,42,.16)}
 .view-switch button{position:relative;z-index:1;background:transparent!important;box-shadow:none!important}
 .view-switch button[aria-pressed=true]{color:var(--purple)}
 body.universe-mode .view-switch-pill{background:#3a3350;box-shadow:0 4px 16px rgba(0,0,0,.45)}
}

/* One aligned canvas header, with deletion in the former number slot. */
.record-node .node-kicker{padding-left:0;align-items:center;gap:6px}
.record-node .node-type{align-items:center;gap:7px;line-height:1;order:1;margin-right:auto}
.record-node .node-type>span{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.record-node .node-type svg{display:block}
.record-node .node-kicker>.card-delete{display:grid;place-items:center;order:0;width:26px;height:30px;padding:0;color:inherit;opacity:.65;border-radius:6px;flex-shrink:0}
.record-node .card-delete:hover,.record-node .card-delete:focus-visible{opacity:1;color:#be4053;background:#be40530e}
.record-node .card-delete svg{width:14px;height:14px}
.record-video-wrap{position:relative;max-width:100%;overflow:hidden;border-radius:inherit}
.record-video-wrap>video{display:block}
.video-resume{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;background:transparent;cursor:pointer}
.memo-composer-stage .record-video-wrap{position:relative;flex:1 1 auto;width:100%;height:100%;min-height:0;overflow:hidden;background:transparent;border-radius:14px}
.memo-composer-stage .record-video-wrap>video{position:absolute;inset:0;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;border-radius:0;background:#0b0d12}

/* Memo swipes above the sheet: only the card that scrolls inside it keeps its
   own gesture, so a long link card stays readable while the stage takes the pull. */
.memo-composer-stage .record-link-card{touch-action:pan-y}

/* A memo that runs long pays for it in type before it pays in card height.
   Cards fold what is still long at the floor behind their own …더보기. */
.note-more{display:block;align-self:flex-start;max-width:100%;margin:0;padding:1px 0;border:0;background:none;color:inherit;font:9.5px/1.5 var(--sans);letter-spacing:-.01em;opacity:.62;text-align:left;cursor:pointer}
.note-more:hover,.note-more:focus-visible{opacity:.95;text-decoration:underline;text-underline-offset:2px}
.note-more[hidden]{display:none}
.canvas-note-editor .note-more{font-size:12px}
.record-node.dark .note-more{opacity:.75}
.world.far-view .note-editor .note-more{pointer-events:none}
@container(max-width:145px){.note-more{font-size:8.5px}}

/* While the card shows its content face the memo face is out of the flow: a long
   memo never decides how tall a card looks, folded or open. */
.canvas-faces{position:relative}
.world:not(.notes-view) .canvas-note-face{position:absolute;inset:0;overflow:hidden;min-height:0}

/* ── 전체화면 릴스 피드 ──────────────────────────────────────────────────
   A tab's own videos, opened full screen in the order that tab lists them:
   one snapping column, three clips mounted at most, and a small button on every
   video frame that leads here. */
.video-expand{position:absolute;right:7px;top:7px;z-index:2;display:grid;place-items:center;width:27px;height:27px;padding:0;border-radius:7px;border:1px solid #ffffff2e;background:#0b0d12a6;color:#fff;cursor:zoom-in;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.video-expand svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.video-expand:hover,.video-expand:focus-visible{background:#575ce5e6;border-color:#ffffff5c}
.record-video-wrap .video-expand{right:9px;top:9px;width:30px;height:30px;border-radius:8px}
.record-video-wrap .video-expand svg{width:14px;height:14px}
.reels-viewer{position:fixed;inset:0;height:100%;z-index:140;display:flex;flex-direction:column;background:#000;color:#fff;overscroll-behavior:contain;animation:reels-in .16s ease-out}
@keyframes reels-in{from{opacity:0}to{opacity:1}}
/* 한 열이 피드를 다 쓰고, 메모를 쓰는 동안에는 키보드가 가져간 높이만큼만
   트랙이 줄어든다(height는 reels-viewer.js가 정한다). 피드 자체는 언제나
   화면 전체를 검정으로 덮고 있어, 키보드가 오르내리는 동안 아래로 페이지가
   비쳐 보이지 않는다. */
.reels-track{position:relative;flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;scroll-snap-type:y mandatory;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-width:none;touch-action:pan-y}
.reels-track::-webkit-scrollbar{display:none}
.reels-slide{position:relative;height:100%;display:grid;place-items:center;background-color:#000;background-position:center;background-repeat:no-repeat;background-size:contain;scroll-snap-align:start;scroll-snap-stop:always}
/* 이웃한 두 클립만 <video>를 갖는다. 그 밖의 자리는 비어 있고, 두 칸 떨어진
   슬라이드는 예전 빈 <video>가 보여주던 포스터 그림만 배경으로 이고 있다. */
.reels-slide video{width:100%;height:100%;object-fit:contain;background:#000}
.reels-slide.is-paused::after{content:'▶';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:54px;height:54px;padding-left:4px;border-radius:50%;background:#0b0d1299;color:#fff;font-size:15px;pointer-events:none}
.reels-top{position:absolute;top:0;right:0;z-index:3;display:flex;align-items:center;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 15px 12px;transform:translateZ(0);pointer-events:auto}
.reels-button{display:grid;place-items:center;width:38px;height:38px;margin:0;padding:0;border-radius:50%;border:1px solid #ffffff2b;background:#0b0d1266;color:#fff;font-size:15px;line-height:1;touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
.reels-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.reels-button:hover,.reels-button:focus-visible{background:#000000a6}
/* 하단 메모 버튼: 상단의 작은 원 대신, 하단 탭바를 누르던 엄지가 그대로 닿는
   자리에 놓인 큰 알약(54px 높이). 메모를 쓰는 동안에는 비켜난다.
   어두운 채움 없이 테두리 하나와 옅은 유리 한 겹만 남긴다: 영상이 알약을 통과해
   비치고, 손이 얹히거나 눌리는 순간에만 외곽선이 살아난다(터치 기기에서 hover가
   눌린 뒤에 남지 않도록 :hover는 (hover:hover) 안에만 둔다). */
.reels-memo{position:absolute;right:16px;bottom:calc(16px + env(safe-area-inset-bottom));z-index:4;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:136px;height:54px;margin:0;padding:0 24px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(255,255,255,.04);color:#fff;font:600 14px/1 var(--sans);letter-spacing:-.02em;transform:translateZ(0);box-shadow:0 8px 22px rgba(0,0,0,.26),inset 0 1px 0 rgba(255,255,255,.14);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);text-shadow:0 1px 5px rgba(0,0,0,.55);touch-action:manipulation;cursor:pointer;-webkit-tap-highlight-color:transparent;opacity:1;transition:opacity .18s ease,transform .2s cubic-bezier(.22,1,.36,1),background-color .16s ease,border-color .16s ease}
.reels-memo svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.reels-memo span{display:block;line-height:1}
@media(hover:hover){.reels-memo:hover{border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.10)}}
.reels-memo:active{border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.10);transform:translateZ(0) scale(.97)}
.reels-memo:focus-visible{border-color:rgba(255,255,255,.48);background:rgba(255,255,255,.10);outline:2px solid #ffffffcc;outline-offset:3px}
.reels-info{position:absolute;left:0;bottom:0;z-index:3;transform:translateZ(0);max-width:100%;padding:0 168px calc(34px + env(safe-area-inset-bottom)) 18px;overflow:hidden;font-size:11px;letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;color:#ffffffe0;text-shadow:0 1px 8px #000d;pointer-events:none;transition:opacity .16s ease}
/* 릴스 메모: 배경도 테두리도 핸들도 없다. 영상 위에 텍스트 한 겹만 떠 있고,
   입력줄은 키보드 바로 위에 앉는다(bottom은 reels-viewer.js가 정한다). */
.reels-memo-bar{position:absolute;left:0;right:0;bottom:0;z-index:4;display:flex;padding:0 16px calc(16px + env(safe-area-inset-bottom));background:transparent;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;opacity:0;pointer-events:none;transform:translateZ(0) translateY(10px);transition:opacity .18s ease,transform .2s cubic-bezier(.22,1,.36,1)}
/* 보이는 순간에만 손을 받는다: 사라지는 200ms 동안 영상 탭을 가로막지 않는다. */
.reels-memo-bar.is-open{opacity:1;pointer-events:auto;transform:translateZ(0)}
/* 키보드가 올라오면 홈 인디케이터는 키보드 아래에 있으니 여백을 돌려준다. */
.reels-viewer.is-keyboard .reels-memo-bar{padding-bottom:12px}
.reels-memo-slot{flex:1;min-width:0;display:flex}
.reels-memo-slot .note-editor{flex:1;min-height:0;gap:0;color:#ffffff}
/* 저장 상태·접기 토글은 이 화면에 두지 않는다: 텍스트만 남는다. */
.reels-memo-slot .note-save-status,.reels-memo-slot .note-more{display:none!important}
.reels-memo-slot .note-editor textarea{flex:0 0 auto;width:100%;min-height:1.6em;max-height:5.4em;padding:0;border:0;border-radius:0;background:transparent;color:#ffffff;caret-color:#ffffff;text-shadow:0 1px 4px rgba(0,0,0,.85);font-size:16px!important;line-height:1.55!important;font-weight:500;letter-spacing:-.02em;overflow-y:auto;touch-action:pan-y;cursor:text}
.reels-memo-slot .note-editor textarea::placeholder{color:rgba(255,255,255,.55);text-shadow:0 1px 4px rgba(0,0,0,.85)}
.reels-memo-bar[hidden]{display:none}
/* 메모를 쓰는 동안에는 다음 릴스로 넘어가지 않고, 하단 버튼과 작성자 줄도 비킨다. */
.reels-viewer.is-memo .reels-track{flex:0 0 auto;overflow:hidden}
.reels-viewer.is-memo .reels-info{opacity:0}
.reels-viewer.is-memo .reels-memo{opacity:0;pointer-events:none;transform:translateZ(0) translateY(12px)}
body.reels-open{overflow:hidden}
@media(max-width:760px){.video-expand{width:30px;height:30px}.reels-button{width:36px;height:36px}.reels-info{font-size:10.5px}}
/* 좁은 인덱스 카드(2·3열)에서는 전체화면 버튼도 그 카드의 크기를 따른다. */
@container(max-width:250px){.video-expand{width:24px;height:24px;right:5px;top:5px;border-radius:6px}.video-expand svg{width:11px;height:11px}}
@container(max-width:145px){.video-expand{width:21px;height:21px;right:4px;top:4px}.video-expand svg{width:10px;height:10px}}

/* ── 유니버스 모드의 기록 열기: 검은 우주 위의 검은 시트 ────────────────────
   우주에서 기록을 열면 흰 종이 시트가 홀로 떠오르던 자리다. 이제 시트도 같은
   검정 계열(#0b0d12~#171923)로 앉고, 글씨는 선명한 흰색(#f4f6fb·#e8ebf3),
   보조 글씨는 #9aa2b6, 경계는 rgba(255,255,255,.08) 헤어라인 하나로만 남긴다.
   갈래를 알려주는 점(--theme)만 원래 색을 지켜 어느 갈래인지 바로 읽히게 한다.
   폰의 바텀 시트와 데스크톱 사이드 패널이 같은 규칙을 함께 쓴다. */
body.universe-mode .inspector{
 background:rgba(11,13,18,.985);
 border-color:rgba(255,255,255,.08);
 box-shadow:0 18px 60px rgba(0,0,0,.62),inset 0 1px 0 rgba(255,255,255,.06);
 color:#e8ebf3;
}
body.universe-mode .sheet-handle{background:rgba(255,255,255,.22)}
body.universe-mode .inspector-top{border-bottom-color:rgba(255,255,255,.08)}
body.universe-mode .inspector-top>span{color:#9aa2b6}
body.universe-mode .inspector-top .icon-button{color:#e8ebf3;background:transparent;border-color:transparent;box-shadow:none}
body.universe-mode .inspector-top .icon-button:hover,
body.universe-mode .inspector-top .icon-button:focus-visible,
body.universe-mode .inspector-top .icon-button:active{background:rgba(255,255,255,.1);color:#ffffff}
body.universe-mode .inspector-top .icon-button:disabled{color:rgba(232,235,243,.3);background:transparent;opacity:1}
body.universe-mode .inspector-scroll{scrollbar-color:rgba(255,255,255,.22) transparent}
body.universe-mode .record-theme{color:#cdd3e2}
body.universe-mode .record-theme::after{color:#7d859b}
body.universe-mode .record-theme:hover{color:#ffffff}
body.universe-mode .record-number{color:#7d859b}
body.universe-mode .record-artwork{background:#14161e;color:#8b93a7}
body.universe-mode .record-artwork::after{opacity:.08}
body.universe-mode #recordTitle{color:#f4f6fb}
body.universe-mode .record-text{color:#aeb6c8}
body.universe-mode .record-media{border-color:rgba(255,255,255,.08);background:#05060a}
body.universe-mode .record-media .media-load-error{background:rgba(255,255,255,.04);color:#b9c0d1}
body.universe-mode .gallery-open{background:#0b0d12}
body.universe-mode .gallery-expand{background:rgba(17,19,27,.88);border-color:rgba(255,255,255,.14);color:#dfe4f0}
body.universe-mode .gallery-controls{border-top-color:rgba(255,255,255,.08);color:#9aa2b6}
body.universe-mode .gallery-controls button{color:inherit}
body.universe-mode .gallery-controls button:hover,
body.universe-mode .gallery-controls button:focus-visible{background:rgba(255,255,255,.1);color:#ffffff}
body.universe-mode .record-source strong{color:#e2e6f0}
body.universe-mode .record-source>div>span{color:#8b93a7}
body.universe-mode .record-type{border-color:rgba(255,255,255,.14);color:#9aa2b6}
body.universe-mode .source-avatar{background:rgba(255,255,255,.08);color:#e8ebf3}
body.universe-mode .original-link{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.08);color:#c7cede}
body.universe-mode .original-link:hover{background:rgba(255,255,255,.12);color:#ffffff}
body.universe-mode .inspector-note{background:#12141c;border-color:rgba(255,255,255,.08)}
body.universe-mode .inspector-note .note-editor{color:#e8ebf3}
body.universe-mode .inspector-note .note-editor textarea{color:#e8ebf3}
body.universe-mode .inspector-note .note-editor textarea::placeholder{color:#6f778c}
body.universe-mode .inspector-note .note-more{color:#9aa2b6}
body.universe-mode .inspector-note .note-save-status{color:#9aa2b6}
body.universe-mode .inspector-note .note-save-status[data-state=saved]{color:#9db79a}
body.universe-mode .inspector-note .note-save-status[data-state=saving]{color:#a9a4e6}
body.universe-mode .inspector-note .note-save-status[data-state=offline],
body.universe-mode .inspector-note .note-save-status[data-state=setup],
body.universe-mode .inspector-note .note-save-status[data-state=auth],
body.universe-mode .inspector-note .note-save-status[data-state=cache-error],
body.universe-mode .inspector-note .note-save-status[data-state=conflict]{color:#c3a273}
body.universe-mode .related-heading>div{color:#8b93a7}
body.universe-mode .related-heading h3{color:#c3c9d9}
body.universe-mode .related-heading>span{color:#7d859b}
body.universe-mode .related-record{border-bottom-color:rgba(255,255,255,.08)}
body.universe-mode .related-record .related-icon{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.08);color:#c7cede}
body.universe-mode .related-record .related-title{color:#cbd2e1}
body.universe-mode .related-record .related-account{color:#818aa0}
body.universe-mode .related-record>svg{color:#6f778c}
body.universe-mode .related-record:hover .related-title{color:#ffffff}
body.universe-mode .record-link-card{background:#12141c}
body.universe-mode .record-link-card .inline-link-label{color:#9aa2b6}
body.universe-mode .record-link-card .inline-link-title{color:#f4f6fb}
body.universe-mode .record-link-card .inline-link-summary{color:#aeb6c8}
body.universe-mode .record-link-card a{color:#c7cede;border-top-color:rgba(255,255,255,.08)}
body.universe-mode .record-link-card a:hover{color:#ffffff}

/* ── 폰의 미리보기 메모: 읽기 전용 도어매트 ────────────────────────────────
   읽기 전용이 되면 iOS는 길게 눌러 선택·복사 마커를 띄운다. 지도나 목록을
   끌던 손끝에 그 마커가 따라붙지 않도록 선택만 걷어낸다(탭은 그대로 살아
   있고, 실제 편집은 시트에서 한다). 데스크톱은 영향받지 않는다. */
@media(max-width:760px){
 .note-editor textarea[readonly]{-webkit-user-select:none;user-select:none}
}
