:root {
  color-scheme: dark;
  --bg: #101011;
  --sidebar: #151516;
  --panel: #18181a;
  --border: #2b2b30;
  --text: #f5f4f6;
  --muted: #aaa8b2;
  --soft: #ccff82;
  --violet: #ba9eff;
  --font: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; }
i[data-icon], .brand-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; }
[data-icon] svg { width: 1.15em; height: 1.15em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 30px 19px 16px; background: var(--sidebar); border-right: 1px solid #252527; overflow-y: auto; overscroll-behavior: contain; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; margin: 0 8px 41px; text-decoration: none; width: fit-content; }
.brand-mark { width: 40px; height: 40px; color: #141c0e; background: var(--soft); border-radius: 12px; font-size: 23px; }
.brand strong { display: block; font-size: 1.25rem; letter-spacing: -.05em; line-height: 1.13; }
.brand small { display: block; color: var(--muted); font-size: .64rem; font-weight: 680; letter-spacing: .12em; padding-top: 5px; }
.navigation + .navigation { margin-top: 29px; }
.navigation h2 { margin: 0 10px 10px; text-transform: uppercase; letter-spacing: .12em; color: #9795a0; font-size: .7rem; font-weight: 760; }
.navigation button[data-nav], .navigation .new-folder, .sidebar-bottom button { color: #c1bec8; display: flex; align-items: center; text-align: left; width: 100%; gap: 11px; padding: 10px; min-height: 42px; margin-bottom: 3px; border: 1px solid transparent; background: transparent; border-radius: 9px; font-size: .875rem; }
.navigation button[data-nav] > .folder-symbol + span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navigation button[data-nav]:hover, .navigation .new-folder:hover, .sidebar-bottom button:hover { color: var(--text); background: #222224; }
.navigation button[aria-current="page"] { color: var(--soft); background: #252a20; border-color: #363e2c; font-weight: 670; }
.navigation button.is-drop { border-color: var(--soft); color: var(--soft); }
.nav-count { color: #a7a5ad; font-size: .73rem; margin-left: auto; }
.nav-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.nav-heading h2 { margin-bottom: 0; }
.nav-heading .icon-button { min-width: 34px; min-height: 34px; }
.folder-symbol { display: inline-flex; align-items: center; justify-content: center; flex: none; color: var(--tone); }
.navigation .new-folder { color: #a7a5ae; margin-top: 7px; }
.sidebar-bottom { margin-top: auto; padding-top: 22px; }
.sidebar-bottom button:first-child { border-top: 1px solid var(--border); border-radius: 0; margin-top: 6px; padding-top: 15px; }
.sidebar-bottom .install-arrow { margin-left: auto; font-size: .78rem; opacity: .65; }
.topbar { height: 72px; border-bottom: 1px solid #252527; padding: 0 clamp(20px, 3.28vw, 58px); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-left, .crumb { display: flex; align-items: center; gap: 10px; }
.crumb { color: #c8c6ce; font-size: .875rem; font-weight: 560; }
.crumb i { color: #95919f; }
.button { min-height: 40px; display: inline-flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; padding: 9px 14px; font-weight: 690; font-size: .875rem; text-decoration: none; text-align: center; }
.primary { color: #151c0e; background: var(--soft); border-color: var(--soft); }
.primary:hover { background: #d9ffa4; }
.secondary { background: #232326; border-color: #34343a; color: var(--text); }
.secondary:hover { background: #2d2b31; }
.danger { background: #352325; border-color: #59373a; color: #ffc0bc; }
.danger:hover { background: #452b2e; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; min-width: 40px; min-height: 40px; color: #a9a7af; background: transparent; border: none; border-radius: 8px; }
.icon-button:hover { background: #302e34; color: var(--text); }
.menu-button, .scrim { display: none; }
.content { max-width: 1470px; margin: 0 auto; padding: 36px clamp(20px, 3.28vw, 58px) 56px; }
.page-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 25px; }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; margin-top: 8px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.65rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -.073em; font-weight: 750; overflow-wrap: anywhere; }
h1 span, .map-copy h2 span { color: var(--soft); }
.page-intro p { margin-top: 9px; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.search { display: flex; align-items: center; gap: 12px; background: #19191b; border: 1px solid #333238; border-radius: 12px; padding: 0 13px 0 17px; min-height: 55px; margin-bottom: 21px; }
.search:focus-within { border-color: #8d78ba; box-shadow: 0 0 0 3px #a88cf519; }
.search > i { color: var(--violet); font-size: 1.1rem; }
.search input { appearance: none; padding: 14px 0; border: 0; background: transparent; color: var(--text); width: 100%; outline: 0; min-width: 0; }
.search input::placeholder { color: #a5a2ae; }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { border: 1px solid #3b3940; border-radius: 6px; background: #232226; padding: 4px 7px; font: 600 .73rem var(--font); color: #bebac6; white-space: nowrap; }
.clear-search { min-height: 36px; min-width: 36px; }
.map { position: relative; display: grid; grid-template-columns: minmax(205px, 29%) minmax(0, 1fr); min-height: 295px; isolation: isolate; overflow: hidden; border: 1px solid #363044; border-radius: 16px; background: radial-gradient(ellipse at 68% 54%, #27203a 0%, #211a2d 35%, transparent 70%), linear-gradient(116deg, #1d1926 0%, #18151f 100%); }
.map::before { content: ""; z-index: -1; position: absolute; inset: 0; background-image: radial-gradient(#8d79bf4d .75px, transparent .8px); background-size: 19px 19px; mask-image: linear-gradient(90deg, transparent 4%, #0009 36%, #000 100%); }
.map-copy { align-self: center; padding: 27px 2px 27px 30px; z-index: 2; pointer-events: none; }
.map-label { display: flex; align-items: center; gap: 7px; color: #c6adff; font-size: .71rem; font-weight: 750; letter-spacing: .13em; margin-bottom: 13px; }
.map-label i { font-size: .86rem; }
.map-copy h2 { font-size: clamp(1.48rem, 2.45vw, 2.4rem); line-height: 1.07; letter-spacing: -.052em; overflow-wrap: anywhere; }
.map-copy p { margin-top: 11px; color: #b7aec8; font-size: .875rem; line-height: 1.48; max-width: 225px; }
.map-reset { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: #decfff; padding: 5px 0; margin-top: 8px; font-size: .78rem; pointer-events: auto; }
.map-reset:hover { text-decoration: underline; }
.map-viewport { position: relative; min-width: 0; margin-right: 47px; overflow: hidden; overflow: clip; min-height: 295px; }
.map-stage { position: absolute; top: 0; left: 0; transform-origin: 0 0; transform: translate(var(--pan-x, 0), var(--pan-y, 0)) scale(var(--zoom, 1)); transition: transform 620ms cubic-bezier(.22, 1, .32, 1); }
.map-lines { width: 100%; height: 100%; position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.map-lines path, .map-lines ellipse { vector-effect: non-scaling-stroke; }
.map-hub, .map-node { position: absolute; border: none; transform: translate(-50%, -50%); }
.map-hub { display: grid; place-items: center; top: 50%; left: 51%; width: 58px; height: 58px; z-index: 1; background: #3a2a57; color: #d6bcff; border: 1px solid #8e6ab9; border-radius: 50%; font-size: 1.7rem; box-shadow: 0 0 0 9px #9573c91a, 0 0 0 21px #8d69bf12, 0 0 35px #9872e45c; }
.map-hub:hover { background: #50376c; }
.map-node { display: grid; justify-items: center; align-content: center; gap: 6px; width: var(--node-width, 90px); height: 66px; padding: 0; background: transparent; color: var(--tone); transition: opacity .32s ease, transform .38s cubic-bezier(.22,1,.32,1); z-index: 3; }
.map-node:hover, .map-node:focus-visible { z-index: 4; transform: translate(-50%, -50%) scale(1.08); }
.map-node:focus-visible { outline-offset: 0; border-radius: 12px; }
.node-glyph { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 3px; border: 1px solid color-mix(in srgb, var(--tone) 55%, #1b1429); border-radius: 11px; background: color-mix(in srgb, var(--tone) 17%, #211a2c); box-shadow: 0 0 20px color-mix(in srgb, var(--tone) 19%, transparent); font-size: .99rem; }
.node-label { max-width: 100%; display: flex; justify-content: center; align-items: center; gap: 4px; background: #211a2ef2; padding: 3px 5px; border-radius: 5px; color: #f1eafb; line-height: 1.05; font-size: .75rem; font-weight: 640; }
.node-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node-label small { color: var(--tone); font-size: .68rem; }
.map-node.is-dim { opacity: .26; }
.map-node.is-focus .node-glyph { box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 24%, transparent), 0 0 26px color-mix(in srgb, var(--tone) 50%, transparent); }
.map-controls { display: flex; flex-direction: column; border: 1px solid #463c55; border-radius: 9px; background: #211a2de8; position: absolute; right: 12px; bottom: 12px; z-index: 6; }
.map-controls button { display: grid; place-items: center; width: 34px; height: 33px; border: none; color: #cbbfda; background: transparent; font-size: .78rem; }
.map-controls button + button { border-top: 1px solid #463c55; }
.map-controls button:hover { background: #39294c; color: white; }
.entries { margin-top: 29px; }
.entries-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 13px; }
.entries-heading h2 { font-size: 1.43rem; font-weight: 710; letter-spacing: -.036em; }
.entries-heading > span { color: var(--muted); font-size: .83rem; white-space: nowrap; }
.entries-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 13px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button, .sort { min-height: 35px; border: 1px solid #303036; border-radius: 8px; background: #19191b; color: #c7c4ce; font-size: .81rem; }
.filters button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; }
.filters button:hover, .sort:hover { background: #262628; }
.filters button[aria-pressed="true"] { color: var(--soft); background: #26301e; border-color: #52633d; }
.sort { position: relative; display: inline-flex; align-items: center; white-space: nowrap; }
.sort i { position: absolute; pointer-events: none; left: 8px; }
.sort i:last-child { left: auto; right: 8px; }
.sort select { appearance: none; width: 100%; color: inherit; background: none; border: 0; cursor: pointer; padding: 8px 24px 8px 28px; }
.entry-list { display: grid; gap: 7px; }
.entry-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, 24%) minmax(32px, auto); align-items: center; border: 1px solid #2b2a30; border-radius: 10px; background: #18181a; min-height: 62px; padding: 4px 9px 4px 12px; }
.entry-row:hover, .entry-row:focus-within { border-color: #46424f; background: #1d1c20; }
.entry-open { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 50px; background: none; color: inherit; border: 0; text-align: left; padding: 0 8px 0 0; border-radius: 7px; }
.entry-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: none; background: color-mix(in srgb, var(--type-tone) 15%, #242027); color: var(--type-tone); border-radius: 9px; font-size: .98rem; }
.entry-main { min-width: 0; display: grid; gap: 3px; }
.entry-title { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 660; font-size: .92rem; }
.entry-meta { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: .8rem; }
.entry-folder { justify-self: start; max-width: 100%; color: #d0ccd6; background: #232226; border: 1px solid #343239; border-radius: 999px; padding: 4px 7px; margin-right: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; line-height: 1.15; }
.entry-folder:hover { background: #333038; }
.entry-folder .folder-symbol { margin-inline: 1px; font-size: .79rem; }
.entry-folder span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty { padding: 27px 17px; border: 1px dashed #3c3942; border-radius: 10px; color: var(--muted); text-align: center; line-height: 1.5; }
.text-button { border: 0; background: none; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; color: #c3b2e7; font-size: .82rem; }
.samples { margin-top: 13px; }
dialog { width: min(94vw, 540px); max-width: 100%; max-height: 90dvh; padding: 0; background: #1b1a1e; color: var(--text); border: 1px solid #48434f; border-radius: 16px; box-shadow: 0 28px 112px #000b; }
dialog::backdrop { background: #07070ab8; backdrop-filter: blur(4px); }
.dialog-shell { padding: 22px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.dialog-header h2 { font-size: 1.55rem; line-height: 1.18; letter-spacing: -.035em; overflow-wrap: anywhere; }
.dialog-header .icon-button { margin: -6px -6px 0 0; }
.dialog-form, .fields { display: grid; gap: 13px; }
.dialog-form label { display: grid; gap: 6px; color: #e6e2eb; font-size: .875rem; }
.dialog-form input:not([type="checkbox"]):not([type="radio"]), .dialog-form select, .dialog-form textarea, .detail-folder select { width: 100%; min-width: 0; color: inherit; background: #131316; border: 1px solid #46424d; border-radius: 8px; min-height: 42px; padding: 9px 10px; font-size: 1rem; }
.dialog-form textarea { resize: vertical; }
.dialog-form input[type="file"] { padding: 7px; }
.dialog-form select, .detail-folder select { appearance: none; padding-right: 28px; background-image: linear-gradient(45deg, transparent 50%, #b8b2c2 50%), linear-gradient(135deg, #b8b2c2 50%, transparent 50%); background-position: calc(100% - 14px) 51%, calc(100% - 9px) 51%; background-size: 5px 5px; background-repeat: no-repeat; }
.form-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 2px; }
.form-tabs button { font-size: .85rem; padding: 7px 5px; }
.form-tabs button[aria-pressed="true"] { color: var(--soft); border-color: #5b7046; background: #293421; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.dialog-actions .push { margin-right: auto; }
.dialog-note, .form-help { color: var(--muted); line-height: 1.5; font-size: .88rem; }
.form-error { color: #ffb3ab; font-size: .875rem; }
.detail-main { display: grid; gap: 14px; }
.detail-data { white-space: pre-wrap; overflow-wrap: anywhere; color: #d6d2de; max-height: 240px; overflow: auto; }
.detail-folder { display: grid; gap: 6px; font-size: .875rem; color: #d4cedc; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .87rem; }
.detail-badges span { padding: 4px 8px; border: 1px solid #403c49; border-radius: 8px; }
.toggle { display: flex !important; align-items: center; gap: 7px; }
.calendar-list { display: grid; gap: 8px; margin-bottom: 14px; }
.calendar-source { display: flex; align-items: center; gap: 6px; background: #232125; border: 1px solid #36313e; padding: 8px; border-radius: 8px; }
.calendar-source > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.calendar-source small { display: block; color: var(--muted); margin-top: 2px; }
.calendar-source .icon-button { min-height: 35px; min-width: 34px; }
.toast { z-index: 50; position: fixed; bottom: max(16px, env(safe-area-inset-bottom)); right: 16px; max-width: min(420px, calc(100% - 32px)); padding: 12px 16px; color: var(--text); background: #293124; border: 1px solid #52633f; border-radius: 10px; box-shadow: 0 10px 26px #0008; }
.drop-overlay { pointer-events: none; position: fixed; z-index: 55; inset: 12px; border: 2px dashed var(--soft); border-radius: 18px; background: #141b13c9; display: grid; place-items: center; }
.drop-overlay div { display: grid; justify-items: center; gap: 9px; color: var(--soft); font-size: 1.2rem; }
@media (max-width: 990px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-inline: 13px; }
  .map-copy { padding-left: 20px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(275px, 85vw); height: 100dvh; visibility: hidden; transform: translateX(-100%); transition: transform .24s ease, visibility .24s; }
  .sidebar.open { visibility: visible; transform: translateX(0); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 19; border: 0; background: #08080bb3; }
  .menu-button { display: inline-flex; margin-left: -10px; }
  .topbar { height: 62px; }
  .content { padding-top: 27px; }
  .map { grid-template-columns: minmax(145px, 34%) minmax(0, 1fr); }
  .map, .map-viewport { min-height: 264px; }
}
@media (max-width: 500px) {
  .content, .topbar { padding-inline: 14px; }
  .top-left { gap: 3px; }
  .crumb i { display: none; }
  .page-intro { flex-wrap: wrap; margin-bottom: 17px; }
  .page-intro p { font-size: .9rem; }
  .page-actions { justify-content: flex-start; margin-top: 0; }
  .search { margin-bottom: 14px; padding-left: 12px; gap: 8px; }
  .search kbd { display: none; }
  .map { display: block; }
  .map-copy { padding: 14px 15px 0; }
  .map-copy h2 { font-size: 1.55rem; }
  .map-copy h2 br { display: none; }
  .map-copy p { max-width: none; margin-top: 4px; font-size: .8rem; }
  .map-label { margin-bottom: 5px; font-size: .65rem; }
  .map-viewport { min-height: 210px; margin-right: 36px; }
  .map-controls { right: 5px; bottom: 7px; }
  .map-controls button { width: 30px; height: 32px; }
  .map-hub { width: 48px; height: 48px; font-size: 1.3rem; }
  .node-glyph { min-width: 31px; height: 31px; border-radius: 8px; }
  .node-label { font-size: .68rem; }
  .entries { margin-top: 21px; }
  .entries-toolbar { flex-wrap: wrap; }
  .filters button { padding-inline: 8px; }
  .entry-row { grid-template-columns: minmax(0, 1fr) minmax(65px, 26%) auto; padding-left: 7px; padding-right: 2px; }
  .entry-open { gap: 7px; }
  .entry-folder { padding-inline: 4px; margin-right: 0; }
  .entry-row .icon-button { min-width: 31px; }
  .dialog-shell { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
.source-file { position: relative; cursor: pointer; }
.source-file:focus-within { outline: 2px solid var(--soft); outline-offset: 3px; }
.source-file input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.map-node.is-drop .node-glyph { outline: 2px solid var(--soft); outline-offset: 3px; }
.more-entries { display: flex; margin: 11px auto 0; }

.folder-picker { min-width: 0; border: 0; margin: 0; padding: 0; }
.folder-picker legend { padding: 0; margin-bottom: 7px; color: #e6e2eb; font-size: .875rem; }
.folder-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 5px; }
.folder-choice { position: relative; cursor: pointer; }
.folder-choice > span { display: grid; place-items: center; min-height: 40px; padding: 4px; background: #17161a; border: 1px solid #44404b; border-radius: 8px; color: #c0bac9; font-size: 1.05rem; }
.folder-choice:hover > span { background: #29262f; }
.folder-choice input:checked + span { border-color: var(--tone); color: var(--tone); background: color-mix(in srgb, var(--tone) 17%, #17161a); }
.folder-choice input:focus-visible + span { outline: 2px solid var(--soft); outline-offset: 2px; }

.storage-status { margin: 0 0 12px; color: #e6ce9f; font-size: .875rem; line-height: 1.4; }
.storage-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }

.access-status { margin: 0 0 11px; color: #c6adff; font-size: .875rem; line-height: 1.4; }
.share-list { display: grid; gap: 7px; margin-top: 8px; }
.share-list h3 { margin: 0; font-size: .97rem; }
.share-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; border: 1px solid #403a48; border-radius: 8px; }
.share-card div { min-width: 0; overflow-wrap: anywhere; }
.share-card small { display: block; color: var(--muted); margin-top: 2px; }
.share-result { display: grid; gap: 9px; border: 1px solid #52633d; background: #232b20; border-radius: 9px; padding: 11px; }
.share-result button { justify-self: start; }

.folder-group { margin: 10px 0 4px; }
.folder-group h3 { margin: 0 10px 4px; color: var(--muted); font-size: .75rem; font-weight: 600; overflow-wrap: anywhere; }
.folder-group button { padding-left: 18px; }
.task-completed .entry-title { text-decoration: line-through; }
.dialog-form .check-field { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.dialog-form .check-field input { width: auto; margin: 0; min-height: 0; }
.reminders-lists { display: grid; gap: 12px; }
.reminders-list { display: grid; gap: 8px; min-width: 0; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 12px; }
.reminders-list legend { font-weight: 600; padding: 0 4px; overflow-wrap: anywhere; }

.file-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.file-layout { display: flex; gap: 4px; }
.file-toolbar .button { min-height: 36px; padding: 5px 12px; }
.file-layout [aria-pressed="true"] { border-color: var(--violet); color: var(--text); background: #31273f; }
.search-status { margin: 0 0 10px; color: var(--muted); font-size: .85rem; }
.file-table-scroll { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.file-table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; text-align: left; }
.file-table th:first-child { width: 43%; }
.file-table th:nth-last-child(2) { width: 12%; }
.file-table th:last-child { width: 16%; }
.file-table th, .file-table td { border-bottom: 1px solid var(--border); padding: 8px 10px; }
.file-table th { background: #211f25; color: var(--muted); white-space: nowrap; }
.file-table th button { background: transparent; padding: 5px 0; color: inherit; text-align: left; }
.file-table th[aria-sort] button { color: var(--text); }
.file-table td:not(:first-child) { color: var(--muted); font-size: .84rem; }
.file-table tbody tr:last-child td { border-bottom: 0; }
.file-table tbody tr:hover, .file-table tbody tr:focus-within { background: #222127; }
.file-table .entry-open { width: 100%; text-align: left; }
.file-table .entry-folder { max-width: 100%; }
.entry-excerpt { display: block; color: var(--muted); font-size: .83rem; line-height: 1.35; overflow-wrap: anywhere; white-space: normal; }
.entry-excerpt mark, .file-text mark { color: #141216; background: #d3b9fb; border-radius: 3px; }
dialog.file-dialog { width: min(94vw, 820px); }
.file-properties { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 12px; }
.file-properties div:first-child { grid-column: 1 / -1; }
.file-properties dt { color: var(--muted); font-size: .83rem; }
.file-properties dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.related-links h3 { margin: 0 0 6px; font-size: .9rem; }
.related-links ul { margin: 0; padding: 0; list-style: none; }
.related-links a { display: flex; align-items: center; gap: 7px; color: var(--violet); padding: 4px 0; }
.related-links a span { color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .82rem; }
.file-preview { margin-top: 6px; }
.file-preview img { display: block; max-width: 100%; max-height: 52dvh; margin-inline: auto; border-radius: 8px; object-fit: contain; }
.file-text-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.file-text-tools input { flex: 1 1 170px; min-width: 0; min-height: 36px; padding: 6px 9px; color: inherit; background: #131316; border: 1px solid #46424d; border-radius: 8px; }
.file-text-tools .button { min-height: 36px; padding: 5px 11px; }
.file-text-tools [data-count] { color: var(--muted); font-size: .82rem; }
.file-text pre { margin: 8px 0 4px; min-height: 82px; max-height: 45dvh; padding: 12px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #131316; border: 1px solid var(--border); border-radius: 8px; line-height: 1.48; }
.file-text mark.current { background: #d5f693; outline: 1px solid #d5f693; }
