body.tablet-shell.keyboard-open .segment-bar,body.tablet-shell.keyboard-open .bottom-nav,body.tablet-shell.keyboard-open .fab-stack{display:none!important}
body.tablet-shell.keyboard-open .home-wrap{height:auto!important;min-height:0!important}
body.tablet-shell.keyboard-open .feed-scroll{display:none!important}
body.tablet-shell.keyboard-open .desktop-composer{margin-bottom:0!important}
body.tablet-shell.keyboard-open .editor-shell .rich-editor{min-height:calc(var(--doc-height) - 240px)!important;max-height:none!important}
@media (max-width:1280px){
  .resources-list-panel .row{grid-template-columns:auto auto minmax(0,1fr)!important;align-items:flex-start}
  .resource-row-actions{grid-column:3;justify-content:flex-start;margin-top:10px}
}


/* V12.2 mobile resources hard fix */
body.phone-shell .resources-layout{grid-template-columns:1fr!important;gap:12px!important;padding:0!important;max-width:none!important}
body.phone-shell .resources-side,body.phone-shell .resources-main{min-width:0!important;width:100%!important}
body.phone-shell .resources-side .panel,body.phone-shell .resources-main .panel{padding:12px!important;position:static!important;max-height:none!important}
body.phone-shell .resources-main-grid{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
body.phone-shell .resources-toolbar{align-items:flex-start!important;justify-content:flex-start!important;gap:12px!important}
body.phone-shell .resources-toolbar>div:first-child{flex:1 1 100%!important;min-width:0!important}
body.phone-shell .resources-actions{justify-content:flex-start!important;gap:8px!important;width:100%!important}
body.phone-shell .resources-actions .secondary-btn,body.phone-shell .resources-actions .action-btn{flex:0 1 auto!important}
body.phone-shell .resources-list-panel .row{grid-template-columns:auto auto minmax(0,1fr)!important;align-items:flex-start!important;column-gap:10px!important}
body.phone-shell .resources-list-panel .row-main{min-width:0!important}
body.phone-shell .resource-row-actions{grid-column:1 / -1!important;justify-content:flex-start!important;margin-top:10px!important;width:100%!important}
body.phone-shell .resource-preview{position:static!important;top:auto!important;max-height:none!important;overflow:visible!important}
body.phone-shell .resources-empty-preview{min-height:160px!important}
body.phone-shell .breadcrumbs{white-space:normal!important;overflow-wrap:anywhere!important}
body.phone-shell .folder-item{min-width:0!important}
body.phone-shell .folder-item span{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.phone-shell .media-viewer-stage img,body.phone-shell .media-viewer-stage video,body.phone-shell .media-viewer-stage iframe,body.phone-shell .media-viewer-stage object{max-width:100%!important;height:auto!important}


/* Base 2.4 editor hardening */
.editor-status.is-dirty{
  background: color-mix(in srgb, var(--warning) 16%, transparent);
  color: var(--warning);
}
.inline-attachment-token{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  margin:0 4px 4px 0;
  border:1px solid var(--border);
  border-radius:999px;
  background:var(--secondbackground);
  color:var(--foreground);
  font-size:12px;
  font-weight:600;
  vertical-align:middle;
  max-width:100%;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(255,255,255,.5) inset;
}
.inline-attachment-token svg{flex:0 0 auto}
.inline-attachment-token span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:min(46vw, 240px);
}
.editor-shell.fullscreen .inline-attachment-token span{max-width:min(58vw, 420px)}
.rich-editor .inline-attachment-token{user-select:none;-webkit-user-select:none}


/* Base 3.1 constellation */
.section-eyebrow{font-size:12px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--desc);margin-bottom:6px}
.constellation-wrap{display:grid;gap:16px}
.constellation-hero{padding:18px;display:grid;gap:16px}
.constellation-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.constellation-title{font-size:clamp(22px,3vw,34px);line-height:1.08;font-weight:800;max-width:780px}
.constellation-shell{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:16px;align-items:start}
.constellation-focus-card{padding:16px;display:grid;gap:12px}
.constellation-focus-title{font-size:18px;font-weight:800;line-height:1.2}
.constellation-focus-text{font-size:15px;line-height:1.7;color:var(--foreground)}
.constellation-orbit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.constellation-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.constellation-stat{padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.constellation-stat-value{font-size:24px;font-weight:800;line-height:1}
.constellation-mini{padding:14px;display:grid;gap:10px}
.constellation-actions{display:flex;gap:8px;flex-wrap:wrap}
.constellation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.constellation-column{padding:16px;display:grid;gap:10px}
body.phone-shell .constellation-shell, body.tablet-shell.compact-shell .constellation-shell{grid-template-columns:1fr}
body.phone-shell .constellation-orbit-grid{grid-template-columns:1fr}
body.phone-shell .constellation-grid{grid-template-columns:1fr}
body.phone-shell .constellation-title{font-size:24px}


/* Base 3.2 atlas */
.atlas-wrap{display:grid;gap:16px}
.atlas-hero{padding:18px;display:grid;gap:16px}
.atlas-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.atlas-title{font-size:clamp(22px,3vw,34px);line-height:1.08;font-weight:800;max-width:780px}
.atlas-focus-shell{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:16px;align-items:start}
.atlas-focus-card{padding:16px;display:grid;gap:12px}
.atlas-focus-title{font-size:18px;font-weight:800;line-height:1.2}
.atlas-focus-text{font-size:15px;line-height:1.7;color:var(--foreground)}
.atlas-summary-grid{display:grid;gap:12px}
.atlas-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px}
.atlas-stat{padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.atlas-stat-value{font-size:24px;font-weight:800;line-height:1}
.atlas-mini{padding:14px;display:grid;gap:10px}
.atlas-actions{display:flex;gap:8px;flex-wrap:wrap}
.atlas-cluster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.atlas-cluster-card{padding:16px;display:grid;gap:12px}
.atlas-cluster-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.atlas-cluster-kicker{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--desc);margin-bottom:4px}
.atlas-cluster-title{font-size:19px;font-weight:800;line-height:1.15}
.atlas-cluster-actions{display:flex;gap:8px;flex-wrap:wrap}
body.phone-shell .atlas-focus-shell, body.tablet-shell.compact-shell .atlas-focus-shell{grid-template-columns:1fr}
body.phone-shell .atlas-cluster-grid{grid-template-columns:1fr}
body.phone-shell .atlas-title{font-size:24px}


/* Base 3.3 synapse */
.synapse-wrap{display:grid;gap:16px}
.synapse-hero{padding:18px;display:grid;gap:16px}
.synapse-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap}
.synapse-title{font-size:clamp(22px,3vw,34px);line-height:1.06;font-weight:800;max-width:840px}
.synapse-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,.65fr);gap:16px;align-items:start}
.synapse-stage-shell{padding:12px;display:grid;gap:10px;position:relative;overflow:hidden}
.synapse-stage{position:relative;min-height:68vh;border-radius:28px;overflow:hidden;background:radial-gradient(circle at 15% 20%, rgba(124,58,237,.16), transparent 24%),radial-gradient(circle at 82% 18%, rgba(245,158,11,.12), transparent 18%),radial-gradient(circle at 72% 78%, rgba(59,130,246,.12), transparent 18%),linear-gradient(180deg, rgba(255,255,255,.9), rgba(246,247,251,.9));border:1px solid rgba(124,58,237,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.68), 0 20px 60px rgba(25,25,40,.08)}
html.dark .synapse-stage{background:radial-gradient(circle at 15% 20%, rgba(124,58,237,.22), transparent 24%),radial-gradient(circle at 82% 18%, rgba(245,158,11,.18), transparent 18%),radial-gradient(circle at 72% 78%, rgba(59,130,246,.18), transparent 18%),linear-gradient(180deg, rgba(20,24,33,.94), rgba(12,16,24,.94));border-color:rgba(124,58,237,.24);box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 18px 46px rgba(0,0,0,.28)}
.synapse-stage::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at center, rgba(255,255,255,.18), transparent 52%);pointer-events:none}
.synapse-links{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.synapse-edge{stroke:rgba(99,102,241,.26);stroke-width:1.5}
.synapse-edge.probable{stroke-dasharray:6 9;stroke:rgba(99,102,241,.16)}
html.dark .synapse-edge{stroke:rgba(165,180,252,.24)}
html.dark .synapse-edge.probable{stroke:rgba(165,180,252,.16)}
.synapse-bubbles{position:absolute;inset:0}
.synapse-node{position:absolute;left:0;top:0;transform:translate3d(0,0,0);display:flex;align-items:center;justify-content:center;text-align:center;border:none;color:var(--foreground);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;z-index:2;background:transparent;padding:0}
.synapse-node:active{cursor:grabbing}
.synapse-node.dragging{z-index:5}
.synapse-node .bubble{position:relative;display:grid;gap:4px;place-items:center;padding:10px 14px;border-radius:999px;min-width:72px;max-width:min(42vw,220px);border:1px solid hsla(var(--synapse-h,224), var(--synapse-s,72%), calc(var(--synapse-bottom-l,74%) - 8%), var(--synapse-border-alpha,.28));background:linear-gradient(180deg, hsla(var(--synapse-h,224), var(--synapse-s,72%), var(--synapse-top-l,92%), .88), hsla(var(--synapse-h,224), calc(var(--synapse-s,72%) - 8%), var(--synapse-bottom-l,72%), .56));backdrop-filter:blur(18px) saturate(1.15);box-shadow:0 16px 32px hsla(var(--synapse-h,224), min(calc(var(--synapse-s,72%) * 1%), 92%), 30%, var(--synapse-glow-alpha,.12)), inset 0 1px 0 rgba(255,255,255,.76);transition:box-shadow .18s ease, transform .18s ease, border-color .18s ease, background .18s ease}
html.dark .synapse-node .bubble{background:linear-gradient(180deg, hsla(var(--synapse-h,224), calc(var(--synapse-s,72%) - 12%), calc(var(--synapse-bottom-l,72%) - 40%), .9), hsla(var(--synapse-h,224), calc(var(--synapse-s,72%) - 18%), calc(var(--synapse-bottom-l,72%) - 52%), .84));border-color:hsla(var(--synapse-h,224), calc(var(--synapse-s,72%) - 24%), calc(var(--synapse-bottom-l,72%) - 34%), .28);box-shadow:0 18px 36px rgba(0,0,0,.3), 0 10px 26px hsla(var(--synapse-h,224), min(calc(var(--synapse-s,72%) * 1%), 92%), 18%, calc(var(--synapse-glow-alpha,.12) * 1.1)), inset 0 1px 0 rgba(255,255,255,.04)}
.synapse-node:hover .bubble{transform:scale(1.03);box-shadow:0 18px 36px rgba(79,70,229,.18), inset 0 1px 0 rgba(255,255,255,.76)}
.synapse-node .bubble::after{content:'';position:absolute;inset:6% 12% auto 12%;height:38%;border-radius:999px;background:linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,0));pointer-events:none}
.synapse-node .node-kicker{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--desc);font-weight:700}
.synapse-node .node-label{font-size:13px;line-height:1.15;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.synapse-node .node-sub{font-size:11px;color:var(--desc);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.synapse-node.kind-probable .bubble{border-style:dashed}
.synapse-node.kind-focus .bubble{box-shadow:0 18px 38px hsla(var(--synapse-h,262), min(calc(var(--synapse-s,78%) * 1%), 92%), 30%, calc(var(--synapse-glow-alpha,.14) + .08)), inset 0 1px 0 rgba(255,255,255,.78)}
.synapse-footnote{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.synapse-legend{display:flex;gap:8px;flex-wrap:wrap}
.synapse-legend .chip{pointer-events:none}
.synapse-side{display:grid;gap:12px}
.synapse-side-card{padding:14px;display:grid;gap:10px}
.synapse-side-actions{display:flex;gap:8px;flex-wrap:wrap}
.synapse-mini-list{display:grid;gap:8px}
.synapse-mini-list .row{background:var(--secondbackground)}
.synapse-empty{min-height:260px;display:grid;place-items:center;text-align:center}
body.phone-shell .synapse-grid, body.tablet-shell.compact-shell .synapse-grid{grid-template-columns:1fr}
body.phone-shell .synapse-stage{min-height:62vh;border-radius:24px}
body.phone-shell .synapse-title{font-size:24px}
body.phone-shell .synapse-node .bubble{max-width:min(60vw,190px);padding:9px 12px}


/* Base 3.4 synapse semantics + typography consistency */
.section-eyebrow{font-weight:620;letter-spacing:.11em}
.constellation-title,.atlas-title,.synapse-title{font-weight:620;letter-spacing:-.02em}
.constellation-focus-title,.atlas-focus-title,.atlas-cluster-title{font-weight:620}
.constellation-stat-value,.atlas-stat-value{font-weight:620}
.synapse-focus-note-title{font-size:18px;line-height:1.24;font-weight:620;letter-spacing:-.015em}
.synapse-scale-card{padding:14px;display:grid;gap:10px}
.synapse-scale-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.synapse-scale-item{padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--card)}
.synapse-scale-item .k{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--desc);font-weight:620;margin-bottom:4px}
.synapse-scale-item .v{font-size:14px;line-height:1.5;color:var(--foreground);font-weight:520}
.synapse-focus-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.synapse-kpi{padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--card)}
.synapse-kpi-value{font-size:22px;line-height:1;font-weight:620;letter-spacing:-.03em}
.synapse-kpi-label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--desc);margin-top:6px;font-weight:620}
.synapse-node .bubble{gap:4px;padding:12px 11px}
.synapse-node .node-kicker{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--desc);font-weight:620}
.synapse-node .node-label{font-size:13px;line-height:1.16;font-weight:620;letter-spacing:-.01em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.synapse-node .node-sub{font-size:11px;line-height:1.35;color:var(--desc);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-weight:470}
.synapse-node.kind-focus .node-label{font-size:14px;font-weight:650}
.synapse-footnote{display:grid;gap:8px}
.synapse-footnote .tiny{line-height:1.55}
body.phone-shell .synapse-scale-grid, body.phone-shell .synapse-focus-kpis{grid-template-columns:1fr}


/* Base 3.5 synapse customization + typography calm */
.synapse-control-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.synapse-control{display:grid;gap:6px}
.synapse-control label{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--desc);font-weight:600}
body.phone-shell .synapse-control-grid{grid-template-columns:1fr}
.constellation-title,.atlas-title,.synapse-title{font-weight:600}
.synapse-side-card .section-title,.synapse-scale-card .section-title{font-weight:600;letter-spacing:-.01em}
.synapse-node .node-label{font-weight:600}
.synapse-node .node-sub{font-weight:460}

/* Base 3.6.1 typography harmonization */
html,body{
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body{
  font-weight:390;
  letter-spacing:-0.012em;
}
.topbar-title{
  font-size:16px!important;
  font-weight:560!important;
  letter-spacing:-0.022em;
}
.nav-item,
.folder-item,
.segment-chip,
.chip,
.tag-chip,
.type-pill,
.tab,
.secondary-btn,
.action-btn,
.attachment-title,
.row-title,
.editor-status,
.sidebar-section-title,
.section-title,
.detail-title,
.metric-label,
.result-title,
.type-mark,
.timeline-head,
.swipe-btn,
.toast,
.review-swipe-label{
  font-weight:540!important;
}
.card-content,
.detail-textarea,
.editor-input,
.rich-editor,
.row-meta,
.muted,
.tiny,
.breadcrumbs,
.attachment-subtitle,
.card-footer,
.search-btn,
.input,
.input-tagbox,
.stream-badge,
.file-inline-badge,
.upload-drop-hint,
.note-card .card-time,
.synapse-node .node-sub,
.constellation-focus-text,
.atlas-focus-text{
  font-weight:400!important;
}
.section-eyebrow{
  font-size:11px!important;
  font-weight:560!important;
  letter-spacing:.12em!important;
}
.constellation-title,
.atlas-title,
.synapse-title{
  font-size:clamp(18px,2.1vw,26px)!important;
  line-height:1.12!important;
  font-weight:560!important;
  letter-spacing:-0.026em!important;
  max-width:760px;
}
.constellation-focus-title,
.atlas-focus-title,
.atlas-cluster-title,
.synapse-focus-note-title{
  font-size:16px!important;
  line-height:1.24!important;
  font-weight:560!important;
  letter-spacing:-0.016em!important;
}
.constellation-stat-value,
.atlas-stat-value,
.synapse-kpi-value,
.metric-value{
  font-size:20px!important;
  line-height:1!important;
  font-weight:560!important;
  letter-spacing:-0.03em!important;
}
.atlas-cluster-kicker,
.synapse-kpi-label,
.synapse-node .node-kicker,
.synapse-scale-item .k{
  font-size:10px!important;
  font-weight:560!important;
  letter-spacing:.09em!important;
}
.synapse-node .bubble{
  padding:11px 12px!important;
  gap:3px!important;
}
.synapse-node .node-label{
  font-size:12px!important;
  line-height:1.18!important;
  font-weight:560!important;
  letter-spacing:-0.012em!important;
}
.synapse-node.kind-focus .node-label{
  font-size:13px!important;
  font-weight:580!important;
}
.synapse-scale-item .v,
.constellation-focus-text,
.atlas-focus-text{
  font-size:14px!important;
  line-height:1.62!important;
}
.topbar-title-wrap,
.constellation-head,
.atlas-head,
.synapse-head{
  align-items:flex-start;
}
body.phone-shell .constellation-title,
body.phone-shell .atlas-title,
body.phone-shell .synapse-title{
  font-size:20px!important;
  line-height:1.14!important;
}
body.phone-shell .topbar-title{
  font-size:15px!important;
}


/* Base 3.7 command layer */
.command-launch-btn{min-width:min(320px,42vw)}
.command-backdrop{backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px)}
.command-modal{width:min(880px,calc(100vw - 28px));max-height:min(84vh,880px);border-radius:24px;overflow:hidden}
.command-head{align-items:flex-start}
.command-body{display:flex;flex-direction:column;gap:14px;padding-top:14px}
.command-input-wrap{display:grid;grid-template-columns:20px minmax(0,1fr);gap:12px;align-items:center;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:var(--secondbackground)}
.command-input-icon{opacity:.68;display:flex;align-items:center;justify-content:center}
.command-input{border:none!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;min-height:0!important}
.command-input:focus{outline:none!important}
.command-hint{grid-column:2;font-size:11px;line-height:1.4;color:var(--muted)}
.command-results{display:flex;flex-direction:column;gap:14px;overflow:auto;padding-right:2px;max-height:min(60vh,620px)}
.command-group{display:flex;flex-direction:column;gap:8px}
.command-group-title{font-size:11px!important;letter-spacing:.08em!important;text-transform:uppercase;opacity:.72}
.command-list{display:flex;flex-direction:column;gap:8px}
.command-item{width:100%;text-align:left;border:1px solid var(--line);border-radius:18px;background:var(--card);padding:12px 14px;display:grid;grid-template-columns:18px minmax(0,1fr);gap:12px;align-items:flex-start;transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease}
.command-item:hover,.command-item.is-selected{border-color:var(--accent);background:var(--secondbackground);box-shadow:0 10px 32px rgba(0,0,0,.08);transform:translateY(-1px)}
.command-item-icon{display:flex;align-items:center;justify-content:center;opacity:.78;padding-top:1px}
.command-copy{min-width:0}
.command-label{font-weight:600;letter-spacing:-.016em;line-height:1.22}
.command-subtitle{margin-top:4px;line-height:1.45}
.command-empty{border:1px dashed var(--line);border-radius:20px;background:var(--secondbackground)}
@media (max-width: 767px){.command-launch-btn{min-width:0}.command-modal{width:calc(100vw - 18px);max-height:calc(100vh - 22px);border-radius:22px}.command-input-wrap{padding:12px 12px 10px}.command-results{max-height:calc(100vh - 220px)}.command-item{padding:12px 12px}}

/* Base 3.7.1 compact-shell + end-gap normalization */
.content-wrap,
.home-wrap,
.resources-layout,
.review-wrap,
.settings-wrap,
.analytics-wrap,
.stream-wrap,
.constellation-wrap,
.atlas-wrap,
.synapse-wrap{
  height:auto!important;
  min-height:0!important;
}
body.phone-shell .content-wrap,
body.tablet-shell .content-wrap{
  min-height:0!important;
  height:auto!important;
}
body.phone-shell .content-shell{
  padding-bottom:calc(92px + var(--browser-bottom) + env(safe-area-inset-bottom))!important;
}
body.tablet-shell.compact-shell .content-shell{
  padding-bottom:calc(96px + var(--browser-bottom) + env(safe-area-inset-bottom))!important;
}
body.compact-shell .constellation-column .row,
body.compact-shell .atlas-cluster-card .row,
body.compact-shell .synapse-mini-list .row,
body.compact-shell .resources-list-panel .row{
  align-items:flex-start!important;
}
body.compact-shell .constellation-column .row-main,
body.compact-shell .atlas-cluster-card .row-main,
body.compact-shell .synapse-mini-list .row-main,
body.compact-shell .resources-list-panel .row-main{
  min-width:0!important;
  width:100%!important;
}
body.compact-shell .constellation-column .row-title,
body.compact-shell .atlas-cluster-card .row-title,
body.compact-shell .synapse-mini-list .row-title,
body.compact-shell .resources-list-panel .row-title{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.22!important;
}
body.compact-shell .constellation-column .row-meta,
body.compact-shell .atlas-cluster-card .row-meta,
body.compact-shell .synapse-mini-list .row-meta,
body.compact-shell .resources-list-panel .row-meta{
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
body.compact-shell .constellation-column .row > :last-child,
body.compact-shell .atlas-cluster-card .row > :last-child,
body.compact-shell .synapse-mini-list .row > :last-child,
body.compact-shell .resources-list-panel .row > :last-child{
  flex:0 0 auto!important;
  align-self:flex-start!important;
}
body.compact-shell .constellation-column .chip,
body.compact-shell .atlas-cluster-card .chip,
body.compact-shell .synapse-mini-list .chip,
body.compact-shell .resources-list-panel .chip{
  white-space:nowrap!important;
}


/* Base 3.7.2 mobile calmness + visual spacing pass */
body.phone-shell .constellation-hero,
body.phone-shell .atlas-hero,
body.phone-shell .synapse-hero{
  padding:20px 18px 18px!important;
  gap:18px!important;
}
body.phone-shell .constellation-head,
body.phone-shell .atlas-head,
body.phone-shell .synapse-head{
  gap:16px!important;
}
body.phone-shell .constellation-head > div:first-child,
body.phone-shell .atlas-head > div:first-child,
body.phone-shell .synapse-head > div:first-child{
  display:grid!important;
  gap:10px!important;
}
body.phone-shell .section-eyebrow{
  margin-bottom:0!important;
  letter-spacing:.14em!important;
}
body.phone-shell .constellation-title,
body.phone-shell .atlas-title,
body.phone-shell .synapse-title{
  font-size:18px!important;
  line-height:1.24!important;
  letter-spacing:-0.018em!important;
  max-width:none!important;
}
body.phone-shell .constellation-head .tiny,
body.phone-shell .atlas-head .tiny,
body.phone-shell .synapse-head .tiny,
body.phone-shell .constellation-focus-text,
body.phone-shell .atlas-focus-text,
body.phone-shell .synapse-scale-item .v,
body.phone-shell .synapse-footnote .tiny{
  font-size:14px!important;
  line-height:1.66!important;
  letter-spacing:-0.004em!important;
}
body.phone-shell .chip-row,
body.phone-shell .preview-actions,
body.phone-shell .constellation-actions,
body.phone-shell .atlas-actions,
body.phone-shell .synapse-side-actions,
body.phone-shell .synapse-legend{
  gap:10px!important;
}
body.phone-shell .constellation-column,
body.phone-shell .constellation-mini,
body.phone-shell .atlas-focus-card,
body.phone-shell .atlas-mini,
body.phone-shell .atlas-cluster-card,
body.phone-shell .synapse-side-card,
body.phone-shell .synapse-scale-card{
  padding:16px!important;
  gap:12px!important;
}
body.phone-shell .section-title,
body.phone-shell .synapse-side-card .section-title,
body.phone-shell .synapse-scale-card .section-title{
  margin-bottom:2px!important;
  font-size:12px!important;
  letter-spacing:.08em!important;
}
body.phone-shell .constellation-column .row,
body.phone-shell .atlas-cluster-card .row,
body.phone-shell .synapse-mini-list .row,
body.phone-shell .resources-list-panel .row{
  padding:13px 14px!important;
  gap:10px!important;
  border-radius:16px!important;
}
body.phone-shell .constellation-column .row-title,
body.phone-shell .atlas-cluster-card .row-title,
body.phone-shell .synapse-mini-list .row-title,
body.phone-shell .resources-list-panel .row-title{
  font-size:15px!important;
  line-height:1.32!important;
  letter-spacing:-0.012em!important;
  font-weight:560!important;
}
body.phone-shell .constellation-column .row-meta,
body.phone-shell .atlas-cluster-card .row-meta,
body.phone-shell .synapse-mini-list .row-meta,
body.phone-shell .resources-list-panel .row-meta{
  font-size:12.5px!important;
  line-height:1.5!important;
  margin-top:4px!important;
}
body.phone-shell .secondary-btn,
body.phone-shell .action-btn{
  min-height:42px!important;
  padding:10px 14px!important;
  line-height:1.34!important;
  white-space:normal!important;
}
body.phone-shell .chip{
  min-height:40px!important;
  padding:9px 14px!important;
  line-height:1.26!important;
}
body.phone-shell .synapse-stage-shell{
  padding:14px!important;
}
body.phone-shell .synapse-stage{
  min-height:58vh!important;
  border-radius:24px!important;
}
body.phone-shell .synapse-node .bubble{
  max-width:min(70vw,236px)!important;
  padding:12px 15px!important;
  gap:5px!important;
}
body.phone-shell .synapse-node .node-kicker{
  line-height:1.18!important;
}
body.phone-shell .synapse-node .node-label{
  font-size:13px!important;
  line-height:1.24!important;
  letter-spacing:-0.006em!important;
  -webkit-line-clamp:3!important;
}
body.phone-shell .synapse-node.kind-focus .node-label{
  font-size:14px!important;
}
body.phone-shell .synapse-node .node-sub{
  font-size:11.5px!important;
  line-height:1.42!important;
  -webkit-line-clamp:3!important;
}


/* Base 3.7.3 Constellation structure + iPad landscape normalization */
.constellation-wrap,
.constellation-shell,
.constellation-orbit-grid,
.constellation-grid,
.constellation-focus-card,
.constellation-column,
.constellation-mini,
.constellation-summary{
  min-width:0;
}
.constellation-head > div:first-child{
  display:grid;
  gap:10px;
  min-width:0;
}
.constellation-head .chip-row,
.constellation-mini .chip-row{
  align-items:flex-start;
}
.constellation-shell{
  grid-template-columns:minmax(0,1.22fr) minmax(280px,.78fr);
  gap:18px;
}
.constellation-focus-card{
  gap:14px;
}
.constellation-focus-card .chip-row,
.constellation-focus-card .preview-actions{
  gap:10px;
}
.constellation-focus-card .chip,
.constellation-mini .chip,
.constellation-column .chip{
  max-width:100%;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:break-word;
  line-height:1.24;
}
.constellation-actions{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
}
.constellation-actions .secondary-btn{
  width:100%;
  justify-content:flex-start;
  text-align:left;
}
.constellation-column .list-rows,
.constellation-mini .list-rows{
  display:grid;
  gap:10px;
}
.constellation-column .row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:flex-start;
  gap:12px;
}
.constellation-column .row-main{
  min-width:0;
  width:100%;
}
.constellation-column .row-title,
.constellation-column .row-meta{
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
  overflow-wrap:anywhere;
  word-break:break-word;
}
.constellation-column .row-title{
  line-height:1.28;
}
.constellation-column .row > :last-child{
  align-self:flex-start;
}
@media (max-width: 1180px){
  .constellation-shell{
    grid-template-columns:1fr;
  }
  .constellation-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width: 900px){
  .constellation-orbit-grid{
    grid-template-columns:1fr;
  }
}
body.tablet-shell .constellation-shell,
body.tablet-shell.compact-shell .constellation-shell{
  grid-template-columns:1fr!important;
}
body.tablet-shell .constellation-grid,
body.tablet-shell.compact-shell .constellation-grid{
  grid-template-columns:1fr!important;
}
body.tablet-shell .constellation-orbit-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
body.tablet-shell .constellation-focus-card,
body.tablet-shell .constellation-column,
body.tablet-shell .constellation-mini,
body.tablet-shell .constellation-summary{
  padding:18px!important;
}
body.tablet-shell .constellation-title{
  font-size:clamp(20px,2.3vw,28px)!important;
  line-height:1.16!important;
  max-width:none!important;
}
body.tablet-shell .constellation-column .row,
body.tablet-shell .constellation-mini .row{
  padding:13px 14px!important;
}


/* Base 3.7.4 Synapse rebalance + iPad landscape calm */
.synapse-grid--rebalanced{
  grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);
  align-items:start;
}
.synapse-grid--rebalanced .synapse-stage-shell,
.synapse-grid--rebalanced .synapse-side,
.synapse-lower-grid,
.synapse-control-grid,
.synapse-scale-grid,
.synapse-mini-list .row,
.synapse-side-card,
.synapse-scale-card{
  min-width:0;
}
.synapse-grid--rebalanced .synapse-stage-shell{
  padding:16px;
  gap:12px;
}
.synapse-grid--rebalanced .synapse-stage{
  min-height:clamp(380px, 48vh, 620px);
}
.synapse-side--top{
  display:grid;
  gap:12px;
}
.synapse-snapshot-card .atlas-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.synapse-lower-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  align-items:start;
}
.synapse-lower-grid .synapse-scale-card,
.synapse-lower-grid .synapse-side-card{
  padding:16px;
}
.synapse-lower-grid .preview-actions{
  margin-top:2px;
}
.synapse-control-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.synapse-scale-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.synapse-side-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.synapse-side-actions .secondary-btn{
  width:100%;
  justify-content:flex-start;
  text-align:left;
}
.synapse-mini-list{
  gap:10px;
}
.synapse-mini-list .row{
  width:100%;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.synapse-mini-list .row .row-main{min-width:0}
.synapse-mini-list .row .row-title,
.synapse-mini-list .row .row-meta,
.synapse-focus-note-title,
.synapse-scale-item .v,
.synapse-control .tiny{
  overflow-wrap:anywhere;
}
@media (max-width:1366px){
  .synapse-grid--rebalanced{
    grid-template-columns:minmax(0,1fr) 332px;
  }
  .synapse-grid--rebalanced .synapse-stage{
    min-height:clamp(340px, 42vh, 520px);
  }
}
@media (max-width:1180px){
  .synapse-grid--rebalanced{
    grid-template-columns:1fr;
  }
  .synapse-side--top,
  .synapse-lower-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:900px){
  .synapse-side--top,
  .synapse-lower-grid,
  .synapse-side-actions,
  .synapse-scale-grid,
  .synapse-control-grid{
    grid-template-columns:1fr;
  }
}
body.tablet-shell:not(.phone-shell) .synapse-grid--rebalanced{
  grid-template-columns:minmax(0,1fr) 344px;
  gap:14px;
}
body.tablet-shell:not(.phone-shell) .synapse-grid--rebalanced .synapse-stage-shell{
  padding:14px;
}
body.tablet-shell:not(.phone-shell) .synapse-grid--rebalanced .synapse-stage{
  min-height:420px;
}
body.tablet-shell:not(.phone-shell) .synapse-side--top,
body.tablet-shell:not(.phone-shell) .synapse-lower-grid{
  gap:14px;
}
body.tablet-shell:not(.phone-shell) .synapse-side-actions{
  grid-template-columns:1fr;
}
body.phone-shell .synapse-grid--rebalanced .synapse-stage{
  min-height:58vh!important;
}
body.phone-shell .synapse-lower-grid{
  grid-template-columns:1fr;
}

/* Base 3.7.5 resources rebalance */
.resources-layout-v375{
  gap:18px;
  align-items:start;
}
.resources-folder-panel{
  padding:16px!important;
  height:auto!important;
  min-height:0!important;
  max-height:calc(100dvh - 118px)!important;
  overflow:auto!important;
}
.resources-panel-v375{
  padding:18px!important;
}
.resources-hero{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}
.resources-hero-copy{
  min-width:0;
}
.resources-page-title{
  font-size:18px;
  line-height:1.1;
  font-weight:620;
  letter-spacing:-.02em;
}
.resources-subline{
  line-height:1.6;
}
.resources-action-clusters{
  display:grid;
  gap:10px;
  min-width:0;
}
.resources-action-group{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.resources-search-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.resources-search-row .input{
  min-width:0;
}
.resources-list-panel .empty-state{
  min-height:320px;
  border-radius:18px;
  background:var(--secondbackground);
  border:1px solid var(--border);
}
.resource-list-stack{
  gap:12px;
}
.resource-row-card{
  display:grid!important;
  grid-template-columns:auto auto minmax(0,1fr) auto;
  align-items:center;
  column-gap:12px;
  row-gap:10px;
  padding:14px 16px!important;
  border-radius:18px!important;
  background:var(--secondbackground)!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.resource-row-card:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(15,23,42,.05);
  background:color-mix(in srgb, var(--secondbackground) 82%, var(--background))!important;
}
.resource-row-card.selected{
  border-color:color-mix(in srgb, var(--primary) 24%, var(--border));
  box-shadow:0 0 0 1px color-mix(in srgb, var(--primary) 12%, transparent), 0 10px 22px rgba(15,23,42,.05);
}
.resource-row-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.resource-row-top .tiny{
  white-space:nowrap;
  flex:0 0 auto;
}
.resource-row-card .row-title{
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.resource-row-card .row-meta{
  margin-top:4px;
  line-height:1.55;
}
.resource-row-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
  align-items:center;
}
.resources-main-grid.with-preview{
  grid-template-columns:minmax(0,1.05fr) minmax(340px,.82fr)!important;
  align-items:start;
  gap:18px;
}
.resources-main-grid.no-preview{
  grid-template-columns:minmax(0,1fr)!important;
}
.resource-preview-v375{
  position:sticky!important;
  top:82px!important;
  justify-self:stretch!important;
  max-width:none!important;
  min-height:0!important;
  padding:18px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg, color-mix(in srgb, var(--secondbackground) 92%, var(--background)), var(--background))!important;
  overflow:auto!important;
}
.resource-preview-shell{
  display:grid;
  gap:14px;
}
.resource-preview-head{
  display:grid;
  gap:12px;
}
.resource-preview-meta{
  min-width:0;
}
.resource-preview-kicker{
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--desc);
  font-weight:620;
  margin-bottom:6px;
}
.resource-preview-title{
  font-size:18px;
  line-height:1.2;
  font-weight:620;
  letter-spacing:-.015em;
  word-break:break-word;
}
.resource-preview-facts{
  margin-top:6px;
  font-size:12px;
  line-height:1.6;
  color:var(--desc);
  word-break:break-word;
}
.resource-preview-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.resource-preview-stage{
  display:grid;
  place-items:center;
  min-height:280px;
  padding:16px;
  border:1px solid var(--border);
  border-radius:20px;
  background:var(--card);
}
.resource-preview-stage img,
.resource-preview-stage video,
.resource-preview-stage iframe{
  max-height:min(46vh, 420px)!important;
  width:auto;
  max-width:100%;
  object-fit:contain;
  border-radius:16px;
}
.resource-preview-stage audio{
  width:100%;
}
.resource-preview-stage pre{
  width:100%;
  margin:0;
  white-space:pre-wrap;
  word-break:break-word;
}
.resource-preview-footer{
  display:grid;
  gap:8px;
  padding-top:2px;
}

@media (min-width: 1100px){
  .resources-hero{
    grid-template-columns:minmax(0,1fr) minmax(380px,auto);
    align-items:end;
  }
  .resources-action-clusters{
    justify-items:end;
  }
  .resources-action-group{
    justify-content:flex-end;
  }
  .resource-preview-head{
    grid-template-columns:minmax(0,1fr) auto;
    align-items:start;
  }
}

body.tablet-shell:not(.compact-shell) .resources-layout-v375{
  grid-template-columns:minmax(220px,248px) minmax(0,1fr)!important;
}
body.tablet-shell:not(.compact-shell) .resources-main-grid.with-preview,
body.desktop-shell .resources-main-grid.with-preview{
  grid-template-columns:minmax(0,1.02fr) minmax(320px,.8fr)!important;
}
body.tablet-shell:not(.compact-shell) .resources-folder-panel{
  height:auto!important;
}
body.tablet-shell.compact-shell .resources-main-grid.with-preview,
body.phone-shell .resources-main-grid.with-preview{
  grid-template-columns:minmax(0,1fr)!important;
}
body.tablet-shell.compact-shell .resource-preview-v375,
body.phone-shell .resource-preview-v375{
  position:static!important;
  top:auto!important;
  max-height:none!important;
}
body.tablet-shell.compact-shell .resources-action-group,
body.phone-shell .resources-action-group{
  justify-content:flex-start!important;
}
body.phone-shell .resources-panel-v375,
body.tablet-shell.compact-shell .resources-panel-v375{
  padding:14px!important;
}
body.phone-shell .resources-search-row,
body.tablet-shell.compact-shell .resources-search-row{
  grid-template-columns:minmax(0,1fr)!important;
}
body.phone-shell .resource-row-card,
body.tablet-shell.compact-shell .resource-row-card{
  grid-template-columns:auto auto minmax(0,1fr)!important;
}
body.phone-shell .resource-row-actions,
body.tablet-shell.compact-shell .resource-row-actions{
  grid-column:1 / -1;
  justify-content:flex-start!important;
}
body.phone-shell .resource-preview-stage,
body.tablet-shell.compact-shell .resource-preview-stage{
  min-height:220px;
}

/* Base 3.7.6 shared spacing rhythm across new surfaces */
.surface-rhythm{
  --surface-gap:20px;
  --surface-pad:20px;
  --surface-card-pad:18px;
  --surface-radius:24px;
  display:grid;
  gap:var(--surface-gap);
  align-items:start;
}
.surface-rhythm .panel{
  border-radius:var(--surface-radius);
}
.surface-rhythm .section-title,
.surface-rhythm .section-eyebrow{
  letter-spacing:.11em;
}
.surface-rhythm .tiny.muted,
.surface-rhythm .row-meta,
.surface-rhythm .synapse-scale-item .v,
.surface-rhythm .constellation-focus-text,
.surface-rhythm .resource-preview-facts{
  line-height:1.6;
}
.surface-rhythm .chip-row{
  gap:10px;
}
.surface-rhythm .chip,
.surface-rhythm .card-tag,
.surface-rhythm .secondary-btn,
.surface-rhythm .action-btn{
  border-radius:16px;
}
.surface-rhythm .secondary-btn,
.surface-rhythm .action-btn{
  min-height:46px;
}
.surface-rhythm .row,
.surface-rhythm .constellation-stat,
.surface-rhythm .atlas-stat,
.surface-rhythm .synapse-scale-item,
.surface-rhythm .synapse-control,
.surface-rhythm .constellation-mini,
.surface-rhythm .constellation-column,
.surface-rhythm .resource-row-card{
  border-radius:20px;
}
.surface-rhythm .row-title,
.surface-rhythm .resource-preview-title,
.surface-rhythm .constellation-focus-title,
.surface-rhythm .synapse-focus-note-title{
  letter-spacing:-.018em;
}

/* Constellation rhythm pass */
.constellation-wrap-v376{
  gap:20px;
}
.constellation-hero-v376{
  padding:20px;
  gap:18px;
}
.constellation-recent-rail{
  display:grid;
  gap:10px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:20px;
  background:color-mix(in srgb, var(--secondbackground) 86%, var(--background));
}
.constellation-recent-rail .chip-row{
  display:flex;
  flex-wrap:wrap;
}
.constellation-wrap-v376 .constellation-shell{
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
  gap:20px;
}
.constellation-wrap-v376 .constellation-focus-card,
.constellation-wrap-v376 .constellation-mini,
.constellation-wrap-v376 .constellation-column,
.constellation-wrap-v376 .constellation-summary{
  padding:18px;
}
.constellation-wrap-v376 .constellation-summary{
  align-content:start;
}
.constellation-wrap-v376 .constellation-orbit-grid{
  gap:14px;
}
.constellation-wrap-v376 .constellation-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.constellation-wrap-v376 .constellation-column .list-rows{
  gap:12px;
}

/* Synapse rhythm pass */
.synapse-wrap-v376{
  gap:20px;
}
.synapse-hero-v376{
  padding:20px;
  gap:18px;
}
.synapse-focus-rail{
  display:grid;
  gap:10px;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:20px;
  background:color-mix(in srgb, var(--secondbackground) 86%, var(--background));
}
.synapse-focus-rail .chip-row{
  display:flex;
  flex-wrap:wrap;
}
.synapse-wrap-v376 .synapse-grid--rebalanced{
  grid-template-columns:minmax(0,1.06fr) minmax(312px,.94fr);
  gap:18px;
}
.synapse-wrap-v376 .synapse-stage-shell,
.synapse-wrap-v376 .synapse-side-card,
.synapse-wrap-v376 .synapse-scale-card{
  padding:18px;
}
.synapse-wrap-v376 .synapse-stage-shell.is-sparse .synapse-stage{
  min-height:340px;
}
.synapse-wrap-v376 .synapse-stage-shell.is-light .synapse-stage{
  min-height:380px;
}
.synapse-wrap-v376 .synapse-stage{
  min-height:clamp(360px, 44vh, 540px);
}
.synapse-wrap-v376 .synapse-footnote{
  gap:12px;
}
.synapse-wrap-v376 .synapse-lower-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.synapse-wrap-v376 .synapse-control-grid,
.synapse-wrap-v376 .synapse-scale-grid{
  gap:12px;
}
.synapse-wrap-v376 .synapse-side-actions{
  gap:10px;
}
.synapse-wrap-v376 .synapse-side-card .chip-row{
  display:flex;
  flex-wrap:wrap;
}
.synapse-wrap-v376 .synapse-mini-list .row{
  padding:14px 16px;
}

/* Resources rhythm pass */
.resources-layout-v376{
  gap:20px;
}
.resources-layout-v376 .resources-side--rail{
  align-self:start;
}
.resources-layout-v376 .resources-folder-panel,
.resources-layout-v376 .resources-panel-v376,
.resources-layout-v376 .resource-preview-v376{
  border-radius:24px!important;
}
.resources-layout-v376 .resources-panel-v376{
  padding:20px!important;
}
.resources-layout-v376 .resources-folder-panel{
  padding:18px!important;
}
.resources-layout-v376 .resources-main-grid.with-preview{
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr)!important;
  gap:20px!important;
}
.resources-layout-v376 .resources-list-panel-v376 .list-rows{
  gap:12px;
}
.resources-layout-v376 .resource-row-card{
  padding:16px 18px!important;
}
.resources-layout-v376 .resource-preview-v376{
  padding:20px!important;
  background:linear-gradient(180deg, color-mix(in srgb, var(--background) 84%, var(--secondbackground)), color-mix(in srgb, var(--secondbackground) 90%, var(--background)))!important;
}
.resources-layout-v376 .resource-preview-shell{
  gap:16px;
}
.resources-layout-v376 .resource-preview-stage{
  min-height:240px;
  max-height:min(52vh, 560px);
  padding:14px;
}
.resources-layout-v376 .resource-preview-stage img,
.resources-layout-v376 .resource-preview-stage video,
.resources-layout-v376 .resource-preview-stage iframe{
  max-height:min(38vh, 340px)!important;
}
.resources-layout-v376 .resources-action-group{
  gap:8px 10px;
}
.resources-layout-v376 .resources-search-row{
  gap:12px;
}

@media (max-width: 1240px){
  .constellation-wrap-v376 .constellation-shell,
  .synapse-wrap-v376 .synapse-grid--rebalanced,
  .resources-layout-v376 .resources-main-grid.with-preview{
    grid-template-columns:1fr!important;
  }
  .resources-layout-v376 .resource-preview-v376{
    position:static!important;
    top:auto!important;
    max-height:none!important;
  }
}

@media (max-width: 980px){
  .constellation-wrap-v376 .constellation-grid,
  .synapse-wrap-v376 .synapse-lower-grid,
  .synapse-wrap-v376 .synapse-control-grid,
  .synapse-wrap-v376 .synapse-scale-grid{
    grid-template-columns:1fr!important;
  }
}

body.tablet-shell:not(.phone-shell) .surface-rhythm{
  --surface-gap:18px;
  --surface-pad:18px;
  --surface-card-pad:16px;
}
body.tablet-shell:not(.phone-shell) .synapse-wrap-v376 .synapse-grid--rebalanced{
  grid-template-columns:minmax(0,1fr) 336px;
}
body.tablet-shell:not(.phone-shell) .synapse-wrap-v376 .synapse-stage{
  min-height:390px;
}
body.tablet-shell:not(.phone-shell) .constellation-wrap-v376 .constellation-shell{
  grid-template-columns:minmax(0,1fr) 328px;
}
body.tablet-shell:not(.phone-shell) .resources-layout-v376{
  grid-template-columns:minmax(220px,248px) minmax(0,1fr)!important;
}
body.tablet-shell.compact-shell .resources-layout-v376,
body.phone-shell .resources-layout-v376{
  gap:14px;
}
body.tablet-shell.compact-shell .constellation-recent-rail,
body.phone-shell .constellation-recent-rail,
body.tablet-shell.compact-shell .synapse-focus-rail,
body.phone-shell .synapse-focus-rail{
  padding:12px 14px;
}
body.phone-shell .surface-rhythm .secondary-btn,
body.phone-shell .surface-rhythm .action-btn{
  min-height:44px;
}


/* Base 4.0 spatial intelligence polish + dark mode rhetoric */

.synapse-wrap-v400{
  gap:22px;
}
.synapse-hero-v400{
  padding:22px;
  gap:20px;
}
.synapse-wrap-v400 .synapse-grid--rebalanced{
  grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr);
  gap:20px;
  align-items:start;
}
.synapse-wrap-v400 .synapse-stage-shell,
.synapse-wrap-v400 .synapse-side-card,
.synapse-wrap-v400 .synapse-scale-card{
  padding:20px;
}
.synapse-wrap-v400 .synapse-stage{
  min-height:clamp(380px, 48vh, 560px);
}
.synapse-wrap-v400 .synapse-stage-shell.is-sparse .synapse-stage{
  min-height:340px;
}
.synapse-wrap-v400 .synapse-stage-shell.is-light .synapse-stage{
  min-height:400px;
}
.synapse-stage-tools{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.synapse-stage-tools .secondary-btn{
  min-height:40px;
}
.synapse-wrap-v400 .synapse-footnote{
  grid-template-columns:1fr auto;
  align-items:start;
  gap:12px 16px;
}
.synapse-wrap-v400 .synapse-footnote .tiny{
  grid-column:1 / -1;
}
.synapse-wrap-v400 .synapse-lower-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px;
}
.synapse-wrap-v400 .synapse-control-grid,
.synapse-wrap-v400 .synapse-scale-grid{
  gap:12px;
}
.synapse-wrap-v400 .synapse-side-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.synapse-wrap-v400 .synapse-side-actions .secondary-btn{
  width:100%;
  justify-content:flex-start;
  text-align:left;
}
.synapse-wrap-v400 .synapse-focus-rail,
.synapse-wrap-v400 .synapse-side-card,
.synapse-wrap-v400 .synapse-scale-card{
  background:linear-gradient(180deg, color-mix(in srgb, var(--background) 90%, var(--secondbackground)), color-mix(in srgb, var(--background) 82%, var(--secondbackground)));
}
html.dark .panel,
html.dark .desktop-composer,
html.dark .modal,
html.dark .menu-panel{
  background:linear-gradient(180deg, rgba(22,23,27,.96), rgba(14,15,18,.96));
  border-color:rgba(255,255,255,.07);
  box-shadow:0 18px 44px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.035);
}
html.dark .sidebar,
html.dark .topbar{
  background:rgba(10,11,14,.84);
  backdrop-filter:blur(22px) saturate(1.1);
}
html.dark .secondary-btn,
html.dark .chip,
html.dark .tab,
html.dark .folder-item,
html.dark .tag-chip{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025);
}
html.dark .secondary-btn:hover,
html.dark .chip:hover,
html.dark .tab:hover,
html.dark .folder-item:hover,
html.dark .tag-chip:hover{
  background:rgba(255,255,255,.05);
}
html.dark .tab.active,
html.dark .folder-item.active,
html.dark .tag-chip.active,
html.dark .nav-item.active,
html.dark .chip.active{
  background:linear-gradient(180deg, rgba(165,180,252,.16), rgba(124,58,237,.16));
  border-color:rgba(165,180,252,.22);
  box-shadow:0 12px 30px rgba(88,76,180,.16), inset 0 1px 0 rgba(255,255,255,.04);
}
html.dark .top-search,
html.dark .search-trigger,
html.dark .topbar .search-btn,
html.dark .select,
html.dark .input,
html.dark .input-tagbox{
  background:rgba(255,255,255,.03);
  border-color:rgba(255,255,255,.08);
}
html.dark .synapse-wrap-v400 .synapse-focus-rail,
html.dark .constellation-recent-rail,
html.dark .resources-folder-panel,
html.dark .resource-preview-v376,
html.dark .resources-panel-v376{
  background:linear-gradient(180deg, rgba(28,29,34,.92), rgba(17,18,22,.92))!important;
  border-color:rgba(255,255,255,.07)!important;
  box-shadow:0 16px 40px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html.dark .synapse-stage{
  background:radial-gradient(circle at 18% 18%, rgba(139,92,246,.24), transparent 22%), radial-gradient(circle at 78% 20%, rgba(251,191,36,.14), transparent 18%), radial-gradient(circle at 68% 78%, rgba(59,130,246,.18), transparent 20%), linear-gradient(180deg, rgba(18,20,28,.98), rgba(10,12,18,.98));
  border-color:rgba(165,180,252,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 24px 56px rgba(0,0,0,.34);
}
html.dark .synapse-stage::before{
  background:radial-gradient(circle at 50% 50%, rgba(255,255,255,.06), transparent 52%), radial-gradient(circle at 20% 20%, rgba(255,255,255,.04), transparent 20%);
}
html.dark .synapse-node .bubble::after{
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,0));
}
html.dark .resource-preview-stage,
html.dark .synapse-stage,
html.dark .constellation-focus-card{
  outline:1px solid rgba(255,255,255,.03);
  outline-offset:-1px;
}
@media (max-width:1240px){
  .synapse-wrap-v400 .synapse-grid--rebalanced,
  .synapse-wrap-v400 .synapse-lower-grid{
    grid-template-columns:1fr;
  }
}
@media (max-width:980px){
  .synapse-wrap-v400 .synapse-control-grid,
  .synapse-wrap-v400 .synapse-scale-grid,
  .synapse-wrap-v400 .synapse-side-actions{
    grid-template-columns:1fr;
  }
}
body.tablet-shell:not(.phone-shell) .synapse-wrap-v400 .synapse-grid--rebalanced{
  grid-template-columns:minmax(0,1fr) 336px;
}
body.tablet-shell:not(.phone-shell) .synapse-wrap-v400 .synapse-stage{
  min-height:400px;
}
body.phone-shell .synapse-wrap-v400 .synapse-footnote{
  grid-template-columns:1fr;
}
body.phone-shell .synapse-stage-tools{
  width:100%;
}
body.phone-shell .synapse-stage-tools .secondary-btn{
  flex:1 1 100%;
}


/* Base 4.1 — Trust + recovery */
.trust-form .metric{min-height:110px}
.trust-panel-block{border:1px solid var(--border);box-shadow:0 12px 30px rgba(15,23,42,.05)}
.audit-trail-list .panel{border:1px solid var(--border)}
html.dark .trust-panel-block{box-shadow:0 18px 44px rgba(0,0,0,.28)}


/* Base 4.1.1 settings / trust layout repair */
.settings-wrap-v411{
  max-width:1280px!important;
}
.settings-layout-v411{
  grid-template-columns:minmax(218px,244px) minmax(0,1fr)!important;
  gap:18px!important;
  align-items:start!important;
}
.settings-layout-v411 > .panel,
.settings-content-panel,
.settings-content-panel .settings-form,
.settings-content-panel .trust-form,
.settings-content-panel .analytics-cards,
.settings-content-panel .trust-grid,
.settings-content-panel .audit-trail-list{
  min-width:0!important;
}
.settings-nav-panel{
  position:sticky;
  top:78px;
  align-self:start;
  overflow:hidden;
}
.settings-tabs-v411{
  gap:8px!important;
  margin-top:12px;
}
.settings-content-panel{
  overflow:hidden;
}
.settings-content-panel .panel{
  overflow:hidden;
}
.settings-content-panel .analytics-cards{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;
}
.settings-content-panel .row,
.settings-content-panel .resource-row-card{
  align-items:flex-start!important;
}
.settings-content-panel .row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:12px!important;
}
.settings-content-panel .row-main{
  min-width:0!important;
  width:100%!important;
}
.settings-content-panel .row-title,
.settings-content-panel .resource-preview-title{
  white-space:normal!important;
  overflow:visible!important;
  text-overflow:clip!important;
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
  line-height:1.26!important;
}
.settings-content-panel .row-meta,
.settings-content-panel .tiny.muted{
  overflow-wrap:anywhere!important;
  word-break:break-word!important;
}
.settings-content-panel .metric-value{
  font-size:clamp(26px,2.5vw,36px)!important;
  line-height:1.05!important;
}
.settings-content-panel .metric{
  min-width:0!important;
}
.settings-content-panel .secondary-btn,
.settings-content-panel .action-btn,
.settings-content-panel .chip,
.settings-content-panel .tab{
  min-height:44px!important;
}
.settings-content-panel .restore-drift-grid{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr))!important;
}
.settings-content-panel .trust-grid{
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr))!important;
}
.settings-content-panel ul{
  padding-right:8px;
}
@media (max-width: 1180px){
  .settings-layout-v411{
    grid-template-columns:1fr!important;
  }
  .settings-nav-panel{
    position:static;
  }
  .settings-tabs-v411{
    display:grid!important;
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  }
}
@media (max-width: 767px){
  .settings-content-panel .row{
    grid-template-columns:1fr!important;
  }
  .settings-content-panel .row > :last-child{
    justify-self:start;
  }
}


/* Base 4.1.2 — settings redesign */
.settings-wrap-v412{max-width:1320px!important}
.settings-layout-v412{grid-template-columns:minmax(220px,248px) minmax(0,1fr)!important;gap:22px!important;align-items:start!important}
.settings-nav-panel-v412{background:color-mix(in srgb,var(--panel) 86%, #fff 14%);border:1px solid var(--border);box-shadow:0 22px 44px rgba(15,23,42,.05)}
.settings-nav-head{display:grid;gap:4px;margin-bottom:14px}
.settings-nav-title{font-size:22px;line-height:1.05;font-weight:800;letter-spacing:-0.03em}
.settings-tabs-v412{display:grid!important;gap:8px!important}
.settings-tabs-v412 .tab{justify-content:flex-start;padding:13px 14px;border-radius:16px;font-weight:700}
.settings-content-panel-v412{overflow:hidden;background:color-mix(in srgb,var(--panel) 90%, #fff 10%);box-shadow:0 26px 56px rgba(15,23,42,.05)}
.settings-form-v412{display:grid;gap:18px}
.settings-hero{display:grid;grid-template-columns:minmax(0,1.2fr) auto;gap:18px;padding:22px;border-radius:24px;border:1px solid var(--border);background:linear-gradient(180deg,color-mix(in srgb,var(--secondbackground) 80%, #fff 20%),color-mix(in srgb,var(--card) 92%, #fff 8%))}
.settings-hero-copy{display:grid;gap:8px;min-width:0}
.settings-eyebrow{font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--desc);font-weight:700}
.settings-title-lg{font-size:clamp(28px,3vw,40px);line-height:1.05;font-weight:800;letter-spacing:-.035em;max-width:14ch}
.settings-lead{font-size:15px;line-height:1.75;max-width:68ch}
.settings-hero-actions{display:flex;flex-wrap:wrap;gap:10px;align-content:start;justify-content:flex-end}
.settings-kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}
.settings-kpi{padding:16px 18px;border-radius:20px;border:1px solid var(--border);background:var(--card);min-width:0;box-shadow:0 12px 28px rgba(15,23,42,.035)}
.settings-kpi-label{font-size:11px;letter-spacing:.16em;text-transform:uppercase;color:var(--desc);font-weight:700}
.settings-kpi-value{margin-top:10px;font-size:clamp(30px,2.6vw,38px);line-height:1;font-weight:800;letter-spacing:-.04em}
.settings-two-col{display:grid;grid-template-columns:minmax(0,1.32fr) minmax(320px,.9fr);gap:18px;align-items:start}
.settings-two-col--trust{grid-template-columns:minmax(0,1.18fr) minmax(320px,.92fr)}
.settings-stack{display:grid;gap:18px}
.settings-card{padding:18px;border-radius:22px;border:1px solid var(--border);background:color-mix(in srgb,var(--secondbackground) 86%, #fff 14%);box-shadow:0 18px 36px rgba(15,23,42,.04);overflow:hidden}
.settings-card-emphasis{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 82%, #fff 18%),color-mix(in srgb,var(--secondbackground) 90%, #fff 10%))}
.settings-card-subtle{background:linear-gradient(180deg,color-mix(in srgb,var(--secondbackground) 94%, #fff 6%),color-mix(in srgb,var(--panel) 90%, #fff 10%))}
.settings-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap;margin-bottom:12px}
.settings-card-title{font-size:20px;line-height:1.15;font-weight:800;letter-spacing:-.03em}
.settings-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.settings-mini-stat{padding:14px;border-radius:18px;border:1px solid var(--border);background:var(--card);min-width:0}
.settings-mini-value{margin-top:8px;font-size:18px;line-height:1.35;font-weight:700;letter-spacing:-.02em;overflow-wrap:anywhere}
.settings-inline-note,.settings-bullet-copy{margin-top:14px;padding:14px 16px;border-radius:16px;background:color-mix(in srgb,var(--card) 84%, #fff 16%);color:var(--desc);line-height:1.75;overflow-wrap:anywhere}
.settings-bullet-list{display:grid;gap:10px;margin:0;padding-left:18px;line-height:1.75}
.settings-list{display:grid;gap:10px}
.settings-row-card{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px 16px;border-radius:18px;border:1px solid var(--border);background:var(--card)}
.settings-row-card--action{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.settings-row-copy{min-width:0;display:grid;gap:4px}
.settings-row-title{font-size:17px;line-height:1.3;font-weight:750;letter-spacing:-.02em;overflow-wrap:anywhere;word-break:break-word;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.settings-row-meta{font-size:13px;color:var(--desc);line-height:1.55;overflow-wrap:anywhere}
.settings-row-preview{font-size:13px;color:var(--desc);line-height:1.65;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.audit-trail-list-v412 .settings-row-preview{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}
.settings-content-panel-v412 .row,
.settings-content-panel-v412 .resource-row-card{min-width:0}
.settings-content-panel-v412 .row-title,
.settings-content-panel-v412 .resource-preview-title{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:break-word!important;line-height:1.3!important}
.settings-content-panel-v412 .row-meta,
.settings-content-panel-v412 .tiny.muted,
.settings-content-panel-v412 .settings-inline-note,
.settings-content-panel-v412 .settings-bullet-copy{overflow-wrap:anywhere!important;word-break:break-word!important}
html.dark .settings-nav-panel-v412,html.dark .settings-content-panel-v412{box-shadow:0 28px 60px rgba(0,0,0,.28)}
html.dark .settings-hero{background:linear-gradient(180deg,rgba(18,22,30,.88),rgba(12,16,24,.94));border-color:rgba(255,255,255,.08)}
html.dark .settings-card,html.dark .settings-kpi,html.dark .settings-mini-stat,html.dark .settings-row-card{background:rgba(17,22,30,.9);border-color:rgba(255,255,255,.08);box-shadow:0 18px 36px rgba(0,0,0,.2)}
html.dark .settings-inline-note,html.dark .settings-bullet-copy{background:rgba(255,255,255,.04)}
@media (max-width: 1220px){
  .settings-layout-v412{grid-template-columns:1fr!important}
  .settings-nav-panel-v412{position:static}
  .settings-tabs-v412{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
  .settings-two-col,.settings-two-col--trust{grid-template-columns:1fr}
}
@media (max-width: 860px){
  .settings-hero{grid-template-columns:1fr}
  .settings-hero-actions{justify-content:flex-start}
}
@media (max-width: 767px){
  .settings-content-panel-v412{padding:16px!important}
  .settings-row-card--action{grid-template-columns:1fr}
  .settings-row-card--action > :last-child{justify-self:start}
  .settings-title-lg{max-width:none}
}


/* Base 4.1.3 — Storage + Web Capture redesign */
.settings-form-v413{
  gap:20px;
}
.settings-two-col--storage{
  grid-template-columns:minmax(0,1.18fr) minmax(320px,.96fr);
}
.settings-two-col--capture{
  grid-template-columns:minmax(0,1.08fr) minmax(320px,.92fr);
}
.settings-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.settings-field-block{
  display:grid;
  gap:8px;
  min-width:0;
}
.settings-field-block--full{
  grid-column:1 / -1;
}
.settings-field-label{
  font-size:12px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--desc);
  font-weight:700;
}
.settings-textarea-lg{
  min-height:220px;
  resize:vertical;
}
.settings-textarea-md{
  min-height:120px;
  resize:vertical;
}
.settings-row-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:flex-start;
}
.settings-row-actions--wrap{
  flex-wrap:wrap;
}
.settings-preview-shell{
  display:grid;
  gap:10px;
  padding:18px;
  border-radius:20px;
  border:1px solid var(--border);
  background:linear-gradient(180deg,color-mix(in srgb,var(--card) 88%, #fff 12%),color-mix(in srgb,var(--secondbackground) 88%, #fff 12%));
  box-shadow:0 16px 34px rgba(15,23,42,.04);
}
.settings-preview-title{
  font-size:22px;
  line-height:1.15;
  font-weight:800;
  letter-spacing:-.03em;
  overflow-wrap:anywhere;
}
.settings-preview-meta{
  font-size:13px;
  line-height:1.6;
  color:var(--desc);
  overflow-wrap:anywhere;
}
.settings-preview-copy{
  font-size:14px;
  line-height:1.75;
  color:var(--desc);
  overflow-wrap:anywhere;
}
.settings-chip-row{
  margin-top:2px;
}
.settings-kpi-value--capture{
  font-size:clamp(22px,2.2vw,32px);
}
.settings-hero--storage .settings-title-lg,
.settings-hero--capture .settings-title-lg{
  max-width:13ch;
}
.settings-form-v413 .input{
  width:100%;
}
html.dark .settings-preview-shell{
  background:linear-gradient(180deg,rgba(18,24,35,.9),rgba(12,18,27,.96));
  border-color:rgba(255,255,255,.08);
  box-shadow:0 18px 40px rgba(0,0,0,.24);
}
@media (max-width: 1220px){
  .settings-two-col--storage,
  .settings-two-col--capture{
    grid-template-columns:1fr;
  }
}
@media (max-width: 860px){
  .settings-field-grid{
    grid-template-columns:1fr;
  }
  .settings-field-block--full{
    grid-column:auto;
  }
}


/* Base 4.1.4 settings final polish */
.settings-wrap-v414{padding-bottom:32px}
.settings-layout-v414{display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:18px;align-items:start}
.settings-nav-panel-v414{padding:18px;display:grid;gap:14px;position:sticky;top:16px;min-width:0}
.settings-nav-head-v414{display:grid;gap:4px}
.settings-nav-panel-v414 .settings-nav-title{font-size:22px;line-height:1.06;font-weight:620;letter-spacing:-.026em}
.settings-search-v414{min-width:0}
.settings-rail-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.settings-rail-metric{padding:12px;border:1px solid var(--border);border-radius:16px;background:var(--secondbackground);min-width:0}
.settings-rail-metric-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--desc);font-weight:600}
.settings-rail-metric-value{margin-top:6px;font-size:18px;line-height:1.05;font-weight:620;letter-spacing:-.03em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settings-tabs-v414{display:grid;gap:8px}
.settings-tabs-v414 .tab{justify-content:flex-start;padding:12px 14px;border-radius:16px;text-align:left}
.settings-tabs-v414 .tab span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-content-panel-v414{padding:20px;min-width:0;overflow:hidden}
.settings-form-v414{display:grid;gap:16px;min-width:0}
.settings-two-col--basic,.settings-two-col--prefer,.settings-two-col--export,.settings-two-col--about{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(300px,.95fr);gap:16px}
.settings-field-grid--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.settings-field-grid--three{grid-template-columns:repeat(3,minmax(0,1fr))}
.settings-field-grid .settings-field-block{min-width:0}
.settings-toggle-row{display:flex;align-items:flex-start;gap:10px}
.settings-toggle-row .checkbox{margin-top:2px}
.settings-hero--basic,.settings-hero--prefer,.settings-hero--export,.settings-hero--about{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 84%, white 16%),var(--card))}
html.dark .settings-hero--basic,html.dark .settings-hero--prefer,html.dark .settings-hero--export,html.dark .settings-hero--about{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 92%, white 4%),color-mix(in srgb,var(--card) 96%, black 4%))}
.export-form-v414 .settings-row-preview,.about-form-v414 .settings-bullet-list li,.preference-form-v414 .settings-inline-note,.basic-form-v414 .settings-inline-note{overflow-wrap:anywhere}
.settings-content-panel-v414 .settings-row-title,.settings-content-panel-v414 .settings-card-title,.settings-content-panel-v414 .settings-title-lg{overflow-wrap:anywhere}
@media (max-width:1180px){.settings-layout-v414{grid-template-columns:1fr}.settings-nav-panel-v414{position:static}.settings-two-col--basic,.settings-two-col--prefer,.settings-two-col--export,.settings-two-col--about{grid-template-columns:1fr}}
@media (max-width:720px){.settings-rail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-field-grid--two,.settings-field-grid--three{grid-template-columns:1fr}}


/* Base 4.2 workspace coherence + shell polish */
.home-wrap-v420{
  gap:18px;
}
.home-hero-v420,
.stream-hero-v420,
.detail-hero-v420{
  padding:22px;
  border-radius:28px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--background) 92%, var(--secondbackground)), color-mix(in srgb, var(--secondbackground) 92%, var(--background)));
}
.home-hero-main,
.stream-hero-main,
.detail-hero-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
}
.home-hero-title,
.stream-hero-title,
.detail-hero-title{
  font-size:clamp(22px,2.1vw,30px);
  line-height:1.14;
  letter-spacing:-.028em;
  font-weight:800;
  max-width:18ch;
}
.home-hero-actions,
.stream-hero-actions,
.detail-hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.home-metric-row,
.stream-pulse-row{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
}
.home-metric-card{
  padding:16px 16px 14px;
  border-radius:20px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--background) 84%, var(--secondbackground));
  min-width:0;
}
.home-metric-value{
  font-size:clamp(22px,2.2vw,30px);
  line-height:1;
  letter-spacing:-.04em;
  font-weight:800;
  margin-bottom:8px;
}
.home-hero-v420,
.stream-hero-v420{
  display:grid;
  gap:18px;
}
.home-hero-rail{
  display:grid;
  gap:10px;
  padding:14px 16px;
  border-radius:20px;
  border:1px solid var(--border);
  background:color-mix(in srgb, var(--secondbackground) 88%, var(--background));
}
.feed-shell-v420{
  display:grid;
  gap:14px;
}
.masonry-v420{
  column-gap:16px;
}
.masonry-v420 .note-card{
  margin-bottom:16px;
}
.timeline-v420{
  gap:16px;
}
.stream-wrap-v420{
  gap:18px;
}
.stream-grid-v420{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.stream-grid-v420 .stream-card{
  padding:18px;
  border-radius:22px;
}
.detail-wrap-v420{
  gap:18px;
  padding-top:8px;
}
.detail-card-v420{
  padding:18px;
  border-radius:28px;
}
.detail-toolbar-v420{
  padding-bottom:16px;
  margin-bottom:18px;
  border-bottom:1px solid var(--border);
  align-items:flex-start;
}
.detail-toolbar-v420 .detail-toolbar-actions .secondary-btn,
.detail-toolbar-v420 .detail-toolbar-actions .action-btn{
  min-height:42px;
}
.detail-sidegrid-v420{
  margin-top:18px;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}
.detail-sidegrid-v420 .section-card{
  border-radius:22px;
  padding:18px;
}
html.dark .home-hero-v420,
html.dark .stream-hero-v420,
html.dark .detail-hero-v420{
  background:linear-gradient(180deg, rgba(22,24,29,.96), rgba(14,16,19,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 48px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
html.dark .home-metric-card,
html.dark .home-hero-rail{
  background:rgba(255,255,255,.028);
  border-color:rgba(255,255,255,.075);
}
@media (max-width: 1100px){
  .home-metric-row,
  .stream-pulse-row,
  .stream-grid-v420,
  .detail-sidegrid-v420{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 767px){
  .home-hero-v420,
  .stream-hero-v420,
  .detail-hero-v420,
  .detail-card-v420{
    padding:18px;
    border-radius:24px;
  }
  .home-hero-main,
  .stream-hero-main,
  .detail-hero-main{
    grid-template-columns:1fr;
  }
  .home-hero-actions,
  .stream-hero-actions,
  .detail-hero-actions{
    justify-content:flex-start;
  }
  .home-metric-row,
  .stream-pulse-row,
  .stream-grid-v420,
  .detail-sidegrid-v420{
    grid-template-columns:1fr;
  }
  .home-hero-title,
  .stream-hero-title,
  .detail-hero-title{
    max-width:none;
    font-size:22px;
  }
  .masonry-v420{
    column-gap:0;
  }
}


/* Base 4.2.1 remove top vanity metrics from writing surfaces */
.home-hero-v421,
.stream-hero-v421{
  gap:14px;
}
.home-hero-v421 .home-hero-main,
.stream-hero-v421 .stream-hero-main{
  align-items:center;
}
.home-hero-v421 .home-hero-title,
.stream-hero-v421 .stream-hero-title{
  max-width:22ch;
}
.stream-hero-v421 .chip-row--stream-scope{
  align-items:flex-start;
}
@media (max-width: 767px){
  .home-hero-v421,
  .stream-hero-v421{
    gap:12px;
  }
}


/* Base 4.2.2 remove recent anchors rail from writing surfaces */
.home-hero-v422,
.stream-hero-v422{
  gap:0;
}
.home-hero-v422 .home-hero-main,
.stream-hero-v422 .stream-hero-main{
  align-items:center;
}
.home-hero-v422 .home-hero-title,
.stream-hero-v422 .stream-hero-title{
  max-width:20ch;
}
@media (max-width: 767px){
  .home-hero-v422,
  .stream-hero-v422{
    gap:0;
  }
}


/* Base 4.2.3 remove writing-surface hero buttons + upgrade copy rhythm */
.home-hero-v423--writing .home-hero-main,
.stream-hero-v423 .stream-hero-main{
  grid-template-columns:minmax(0,1fr);
}
.home-hero-v423--writing .home-hero-title,
.stream-hero-v423 .stream-hero-title{
  max-width:24ch;
}
.home-hero-v423--writing .tiny.muted,
.stream-hero-v423 .tiny.muted{
  max-width:66ch;
  line-height:1.6;
}
@media (max-width: 767px){
  .home-hero-v423--writing .home-hero-title,
  .stream-hero-v423 .stream-hero-title{
    max-width:none;
  }
}


/* Base 4.2.6 resources hero alignment + typography consistency */

.resources-layout-v376 .resources-main{
  display:grid;
  gap:18px;
  align-content:start;
}
.resources-hero-v426{
  display:grid;
  gap:14px;
  padding:18px!important;
  border-radius:28px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--background) 92%, var(--secondbackground)), color-mix(in srgb, var(--secondbackground) 92%, var(--background)));
}
.resources-hero-main-v426{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:16px;
  align-items:start;
}
.resources-hero-title-v426{
  font-size:clamp(22px,2.1vw,30px);
  line-height:1.14;
  letter-spacing:-.028em;
  font-weight:800;
  max-width:18ch;
}
.resources-hero-desc-v426{
  max-width:62ch;
  line-height:1.6;
}
.resources-hero-meta-v426{
  display:flex;
  flex-wrap:wrap;
  gap:10px 14px;
  align-items:center;
  padding-top:2px;
}
.resources-hero-v426 .breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  min-width:0;
  font-size:12px;
  line-height:1.5;
  color:var(--desc);
}
.resources-hero-v426 .breadcrumbs span{
  overflow-wrap:anywhere;
}
.resources-action-clusters-v426{
  gap:12px;
}
.resources-panel-v426{
  padding:18px!important;
}
html.dark .resources-hero-v426{
  background:linear-gradient(180deg, rgba(22,24,29,.96), rgba(14,16,19,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 48px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
@media (max-width: 767px){
  .resources-hero-v426{
    padding:18px!important;
    border-radius:24px;
  }
  .resources-hero-title-v426{
    max-width:none;
    font-size:22px;
  }
}



/* Base 4.2.7 analytics hero typography consistency */
.analytics-wrap-v427{
  display:grid;
  gap:18px;
}
.analytics-hero-v427,
.analytics-panel-v427{
  padding:18px!important;
  border-radius:28px;
}
.analytics-hero-v427{
  display:grid;
  gap:0;
  background:linear-gradient(180deg, color-mix(in srgb, var(--background) 92%, var(--secondbackground)), color-mix(in srgb, var(--secondbackground) 92%, var(--background)));
}
.analytics-hero-main-v427{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  align-items:start;
}
.analytics-hero-title-v427{
  font-size:clamp(22px,2.1vw,30px);
  line-height:1.14;
  letter-spacing:-.028em;
  font-weight:800;
  max-width:18ch;
}
.analytics-hero-desc-v427{
  max-width:66ch;
  line-height:1.6;
}
.analytics-panel-v427{
  display:grid;
  gap:20px;
}
html.dark .analytics-hero-v427{
  background:linear-gradient(180deg, rgba(22,24,29,.96), rgba(14,16,19,.96));
  border:1px solid rgba(255,255,255,.08);
  box-shadow:0 22px 48px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.04);
}
@media (max-width: 767px){
  .analytics-wrap-v427{
    gap:14px;
  }
  .analytics-hero-v427,
  .analytics-panel-v427{
    padding:18px!important;
    border-radius:24px;
  }
  .analytics-hero-main-v427{
    grid-template-columns:1fr;
  }
  .analytics-hero-title-v427{
    max-width:none;
    font-size:22px;
  }
}


/* Base 4.2.8 exact shared hero typography system for Resources + Analytics */
.surface-hero-title-v428{
  display:block;
  width:min(18ch, 100%);
  max-width:18ch;
  font-size:30px !important;
  line-height:1.14;
  letter-spacing:-0.028em;
  font-weight:800;
  text-wrap:balance;
}
.surface-hero-desc-v428{
  display:block;
  max-width:62ch;
  line-height:1.6;
}
.resources-hero-v426 .surface-hero-title-v428,
.analytics-hero-v427 .surface-hero-title-v428{
  margin:0;
}
.resources-hero-v426 .surface-hero-desc-v428,
.analytics-hero-v427 .surface-hero-desc-v428{
  margin-top:2px;
}
.resources-hero-v426 .resources-hero-main-v426,
.analytics-hero-v427 .analytics-hero-main-v427{
  align-items:start;
}
@media (max-width: 767px){
  .surface-hero-title-v428{
    width:100%;
    max-width:none;
    font-size:22px !important;
    text-wrap:pretty;
  }
}


/* Base 4.2.9 global hero title typography system */
:root{
  --uho-hero-title-size:30px;
  --uho-hero-title-size-mobile:22px;
  --uho-hero-title-line:1.14;
  --uho-hero-title-track:-0.028em;
  --uho-hero-title-weight:800;
}
.home-hero-title,
.stream-hero-title,
.detail-hero-title,
.constellation-title,
.atlas-title,
.synapse-title,
.resources-hero-title-v426,
.analytics-hero-title-v427,
.surface-hero-title-v428{
  font-family:var(--font)!important;
  font-size:var(--uho-hero-title-size)!important;
  line-height:var(--uho-hero-title-line)!important;
  letter-spacing:var(--uho-hero-title-track)!important;
  font-weight:var(--uho-hero-title-weight)!important;
  text-wrap:balance;
}
.home-hero-title,
.stream-hero-title,
.constellation-title,
.atlas-title,
.synapse-title,
.resources-hero-title-v426,
.analytics-hero-title-v427,
.surface-hero-title-v428{
  max-width:18ch;
}
.detail-hero-title{
  max-width:24ch;
}
@media (max-width: 767px){
  .home-hero-title,
  .stream-hero-title,
  .detail-hero-title,
  .constellation-title,
  .atlas-title,
  .synapse-title,
  .resources-hero-title-v426,
  .analytics-hero-title-v427,
  .surface-hero-title-v428{
    max-width:none;
    font-size:var(--uho-hero-title-size-mobile)!important;
    text-wrap:pretty;
  }
}


/* Base 4.3.0 exact global hero typography + settings copy */
:root{
  --uho-hero-title-size:30px;
  --uho-hero-title-size-mobile:22px;
  --uho-hero-title-line:1.14;
  --uho-hero-title-track:-0.028em;
  --uho-hero-title-weight:800;
}
.home-hero-title,
.stream-hero-title,
.detail-hero-title,
.constellation-title,
.atlas-title,
.synapse-title,
.surface-hero-title-v428,
.settings-title-lg{
  font-family:var(--font)!important;
  font-size:var(--uho-hero-title-size)!important;
  line-height:var(--uho-hero-title-line)!important;
  letter-spacing:var(--uho-hero-title-track)!important;
  font-weight:var(--uho-hero-title-weight)!important;
  text-wrap:balance;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.home-hero-title,
.stream-hero-title,
.constellation-title,
.atlas-title,
.synapse-title,
.surface-hero-title-v428,
.settings-title-lg{
  max-width:18ch!important;
}
.detail-hero-title{
  max-width:24ch!important;
}
.settings-title-lg{
  margin:0!important;
}
@media (max-width: 767px){
  .home-hero-title,
  .stream-hero-title,
  .detail-hero-title,
  .constellation-title,
  .atlas-title,
  .synapse-title,
  .surface-hero-title-v428,
  .settings-title-lg{
    max-width:none!important;
    font-size:var(--uho-hero-title-size-mobile)!important;
    text-wrap:pretty;
  }
}


/* Base 4.3.1 — exact global hero title sizing */
.home-hero-title,
.stream-hero-title,
.detail-hero-title,
.resources-hero-title-v426,
.analytics-hero-title-v427,
.settings-title-lg,
.constellation-title,
.atlas-hero-title,
.synapse-title,
.review-hero-title{
  font-size:30px !important;
  line-height:1.14 !important;
  letter-spacing:-0.028em !important;
  font-weight:800 !important;
  max-width:18ch !important;
}
.settings-lead,
.resources-hero-desc-v426,
.analytics-hero-desc-v427,
.home-hero .tiny.muted,
.stream-hero .tiny.muted,
.detail-hero .tiny.muted,
.constellation-hero .tiny.muted,
.atlas-hero .tiny.muted,
.synapse-hero .tiny.muted,
.review-hero .tiny.muted{
  font-size:15px !important;
  line-height:1.6 !important;
}
@media (max-width: 767px){
  .home-hero-title,
  .stream-hero-title,
  .detail-hero-title,
  .resources-hero-title-v426,
  .analytics-hero-title-v427,
  .settings-title-lg,
  .constellation-title,
  .atlas-hero-title,
  .synapse-title,
  .review-hero-title{
    font-size:22px !important;
  }
}



/* Base 4.6.1 — restore two-line hero wrapping rhythm */
.home-hero-title,
.stream-hero-title,
.detail-hero-title,
.resources-hero-title-v426,
.analytics-hero-title-v427,
.settings-title-lg,
.constellation-title,
.atlas-hero-title,
.synapse-title,
.review-hero-title{
  max-width:26ch !important;
  width:min(26ch, 100%);
  text-wrap:pretty;
}
.detail-hero-title{
  max-width:28ch !important;
  width:min(28ch, 100%);
}
.home-hero-v423--writing .home-hero-title,
.stream-hero-v423 .stream-hero-title{
  max-width:26ch !important;
  width:min(26ch, 100%);
}
@media (max-width: 1279px){
  .home-hero-title,
  .stream-hero-title,
  .detail-hero-title,
  .resources-hero-title-v426,
  .analytics-hero-title-v427,
  .settings-title-lg,
  .constellation-title,
  .atlas-hero-title,
  .synapse-title,
  .review-hero-title{
    max-width:24ch !important;
    width:min(24ch, 100%);
  }
  .detail-hero-title{
    max-width:26ch !important;
    width:min(26ch, 100%);
  }
}
@media (max-width: 767px){
  .home-hero-title,
  .stream-hero-title,
  .detail-hero-title,
  .resources-hero-title-v426,
  .analytics-hero-title-v427,
  .settings-title-lg,
  .constellation-title,
  .atlas-hero-title,
  .synapse-title,
  .review-hero-title{
    width:100%;
  }
}

/* Base 4.4 persistence foundation */
.storage-form-v440 .settings-list--compact{display:grid;gap:12px}
.storage-form-v440 .settings-row-card{align-items:flex-start}
.storage-form-v440 .settings-row-preview{line-height:1.6}
.storage-form-v440 .settings-inline-note{line-height:1.75}
.storage-form-v440 .settings-hero-actions{display:flex;gap:10px;flex-wrap:wrap}
.storage-form-v440 .settings-card-title{max-width:42ch}
body.phone-shell .storage-form-v440 .settings-hero-actions{display:grid;grid-template-columns:1fr;}
body.phone-shell .storage-form-v440 .settings-row-actions--wrap{display:grid;grid-template-columns:1fr;}

/* Base 4.4.1 backup mirror + restore UX */
.storage-form-v441 .settings-row-actions--wrap{align-items:center}
.storage-form-v441 .settings-list--compact .settings-row-meta{font-weight:600}
.storage-form-v441 .settings-inline-note{line-height:1.78}


/* Base 4.4.2 resilience + recovery audit */
.storage-form-v441 .settings-card-subtle .settings-list--compact{margin-top:12px}
.storage-form-v441 .settings-card-subtle .settings-row-preview{line-height:1.6}
.storage-form-v441 .settings-card-subtle .settings-mini-value{font-variant-numeric:tabular-nums}
.storage-form-v441 .settings-card-subtle .settings-inline-note{line-height:1.78}


/* Base 4.6.0 — Intelligence layer */
.intelligence-card{display:grid;gap:14px;margin-top:12px}
.intelligence-block{display:grid;gap:8px}
.intelligence-title-suggestion{font-weight:700;font-size:16px;line-height:1.25;letter-spacing:-0.02em}
.intelligence-prompt-list,.intelligence-link-list{display:grid;gap:10px}
.intelligence-prompt-btn{justify-content:flex-start;text-align:left;white-space:normal;line-height:1.35;padding:10px 12px}
.intelligence-link-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.intelligence-link-row:first-child{border-top:0;padding-top:0}
.intelligence-link-copy{min-width:0;display:grid;gap:4px}
.intelligence-link-title{font-weight:650;line-height:1.25}
.chip-static{pointer-events:none;opacity:.92}
.intelligence-form-v460 .settings-row-preview{white-space:normal}
@media (max-width: 860px){
  .intelligence-link-row{flex-direction:column;align-items:stretch}
}


/* Base 4.6.2 — settings typographic cohesion */
.settings-content-panel-v412 .settings-hero,
.settings-content-panel-v414 .settings-hero,
.settings-content-panel .settings-hero{
  grid-template-columns:minmax(0,1fr)!important;
  gap:16px!important;
  align-items:start!important;
}
.settings-content-panel-v412 .settings-hero-copy,
.settings-content-panel-v414 .settings-hero-copy,
.settings-content-panel .settings-hero-copy{
  gap:6px!important;
}
.settings-title-lg{
  max-width:22ch!important;
  width:min(22ch,100%)!important;
}
.settings-hero-actions{
  justify-content:flex-start!important;
  align-content:flex-start!important;
}
.settings-nav-title,
.settings-nav-panel-v414 .settings-nav-title{
  font-size:20px!important;
  line-height:1.1!important;
  font-weight:780!important;
  letter-spacing:-.028em!important;
}
.settings-card-title{
  font-size:18px!important;
  line-height:1.18!important;
  font-weight:780!important;
  letter-spacing:-.024em!important;
}
.settings-row-title{
  font-size:16px!important;
  line-height:1.34!important;
  font-weight:730!important;
  letter-spacing:-.018em!important;
}
.settings-mini-value{
  font-size:16px!important;
  line-height:1.45!important;
  font-weight:700!important;
  letter-spacing:-.016em!important;
}
.settings-lead,
.settings-row-meta,
.settings-row-preview,
.settings-inline-note,
.settings-bullet-copy,
.settings-preview-copy,
.settings-preview-meta,
.settings-content-panel-v414 .tiny.muted,
.settings-content-panel-v412 .tiny.muted,
.settings-nav-panel-v414 .tiny.muted,
.settings-nav-panel-v412 .tiny.muted{
  font-size:14px!important;
  line-height:1.62!important;
  font-weight:500!important;
  letter-spacing:-.01em!important;
}
.settings-eyebrow,
.settings-kpi-label,
.settings-field-label,
.settings-rail-metric-label{
  font-size:11px!important;
  letter-spacing:.16em!important;
  font-weight:700!important;
}
.settings-kpi-value{
  font-size:clamp(26px,2.35vw,34px)!important;
  line-height:1.02!important;
  letter-spacing:-.035em!important;
}
@media (max-width: 1279px){
  .settings-title-lg{
    max-width:20ch!important;
    width:min(20ch,100%)!important;
  }
}
@media (max-width: 767px){
  .settings-title-lg{
    width:100%!important;
    max-width:none!important;
  }
}


/* Base 4.6.3 — Recall surface merge */
.recall-surface-v463{display:grid;gap:18px}
.recall-hero-v463{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.72fr);gap:18px;padding:20px 22px}
.recall-title-v463{margin:0;font-size:clamp(30px,4vw,48px);line-height:1.03;letter-spacing:-0.04em;max-width:12ch}
.recall-lead-v463{margin-top:10px;line-height:1.7;max-width:70ch}
.recall-hero-actions-v463{display:grid;align-content:start;gap:10px}
.recall-suggestions-v463{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px}
.recall-grid-v463{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.recall-column-v463,.recall-section-v463{display:grid;gap:14px}
.recall-section-head-v463{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.recall-section-title-v463{font-size:20px;font-weight:800;letter-spacing:-0.03em;line-height:1.15}
.recall-card-grid-v463{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.recall-card-v463{padding:15px 16px;display:grid;gap:10px;min-width:0}
.recall-card-head-v463{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.recall-eyebrow-v463{margin-bottom:4px}
.recall-card-title-v463{font-size:17px;font-weight:780;line-height:1.3;letter-spacing:-0.02em;word-break:break-word}
.recall-card-copy-v463{color:var(--muted);line-height:1.65;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.recall-card-meta-v463{font-size:12px;color:var(--muted);line-height:1.55;word-break:break-word}
.recall-drift-v463,.recall-health-v463{padding:16px 18px}
.recall-mini-grid-v463{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.recall-mini-stat-v463{padding:12px;border-radius:16px;background:var(--secondbackground);border:1px solid color-mix(in srgb,var(--border) 84%, transparent)}
.recall-mini-value-v463{margin-top:6px;font-weight:750;letter-spacing:-0.02em;line-height:1.35}
.recall-inline-note-v463{color:var(--muted);line-height:1.66}
.recall-actions-v463{margin-top:2px}
body.theme-dark .recall-card-v463,
body.theme-dark .recall-hero-v463,
body.theme-dark .recall-suggestions-v463,
body.theme-dark .recall-drift-v463,
body.theme-dark .recall-health-v463{
  background:linear-gradient(180deg,color-mix(in srgb,var(--card) 95%, rgba(255,255,255,.03)),color-mix(in srgb,var(--card) 89%, rgba(255,255,255,.01)));
  box-shadow:0 14px 34px rgba(0,0,0,.18)
}
@media (max-width: 1220px){
  .recall-hero-v463,.recall-grid-v463{grid-template-columns:minmax(0,1fr)}
  .recall-card-grid-v463{grid-template-columns:minmax(0,1fr)}
}
@media (max-width: 760px){
  .recall-hero-v463{padding:16px}
  .recall-title-v463{font-size:clamp(24px,9vw,34px);max-width:none}
  .recall-suggestions-v463{align-items:flex-start;flex-direction:column}
  .recall-mini-grid-v463,
  .recall-stats-v463{grid-template-columns:minmax(0,1fr)}
}



/* Base 4.6.5 — Recall original layout restore with current typography */
.recall-wrap{display:grid;gap:18px}
.recall-hero{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.88fr);gap:18px;align-items:stretch;padding:18px 20px}
.recall-title{margin:0;font-size:clamp(30px,3.8vw,46px);line-height:1.05;letter-spacing:-0.035em;font-weight:800;max-width:12ch}
.recall-lead{margin-top:10px;line-height:1.7;max-width:68ch}
.recall-hero-actions{display:grid;align-content:start;gap:10px;justify-items:stretch}
.recall-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.recall-stat{padding:16px 18px;min-width:0}
.recall-stat-label{font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);font-weight:700}
.recall-stat-value{margin-top:8px;font-size:28px;font-weight:800;letter-spacing:-.03em;line-height:1.05}
.recall-suggestions{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 18px}
.recall-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}
.recall-column,.recall-section{display:grid;gap:14px}
.recall-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap}
.recall-section-title{font-size:18px;font-weight:800;letter-spacing:-.022em;line-height:1.18}
.recall-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.recall-card{padding:14px 15px;min-width:0;background:linear-gradient(180deg,var(--card),color-mix(in srgb,var(--card) 78%, transparent));border:1px solid color-mix(in srgb,var(--border) 88%, transparent)}
.recall-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.recall-card-eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:4px;font-weight:700}
.recall-card-title{font-size:16px;font-weight:760;line-height:1.34;letter-spacing:-.02em;word-break:break-word}
.recall-card-copy{margin-top:10px;color:var(--muted);line-height:1.66;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.recall-card-meta{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.55;word-break:break-word}
.recall-drift-card{padding:16px 18px;display:grid;gap:12px}
.recall-drift-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.recall-mini-stat{padding:12px;border-radius:14px;background:var(--secondbackground);border:1px solid color-mix(in srgb,var(--border) 84%, transparent)}
.recall-mini-value{margin-top:6px;font-weight:700;letter-spacing:-.02em;line-height:1.35}
.recall-inline-note{color:var(--muted);line-height:1.66}
@media (max-width:1200px){
  .recall-card-grid{grid-template-columns:minmax(0,1fr)}
  .recall-title{max-width:16ch}
}
@media (max-width:980px){
  .recall-hero,.recall-grid{grid-template-columns:minmax(0,1fr)}
  .recall-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .recall-suggestions{align-items:flex-start;flex-direction:column}
  .recall-drift-grid{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:720px){
  .recall-hero{padding:16px 16px}
  .recall-title{font-size:clamp(24px,9vw,34px);max-width:none}
  .recall-stats{grid-template-columns:minmax(0,1fr)}
}
body.theme-dark .recall-card,
body.theme-dark .recall-drift-card,
body.theme-dark .recall-suggestions,
body.theme-dark .recall-stat,
body.theme-dark .recall-hero{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 94%, rgba(255,255,255,.03)),color-mix(in srgb,var(--card) 88%, rgba(255,255,255,.01)));box-shadow:0 14px 34px rgba(0,0,0,.18)}

/* Base 4.6.6 settings control-surface shell */
.settings-wrap-v466{
  display:grid;
  gap:18px;
  padding-bottom:32px;
}
.settings-shell-v466{
  padding:20px;
  display:grid;
  gap:16px;
}
.settings-shell-head-v466{
  display:grid;
  gap:4px;
}
.settings-shell-title{
  font-size:22px;
  line-height:1.06;
  font-weight:780;
  letter-spacing:-.03em;
}
.settings-shell-lead{
  max-width:58ch;
}
.settings-shell-tools-v466{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}
.settings-search-v466{
  width:min(100%, 320px);
}
.settings-tabs-v466{
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  gap:10px 12px;
  align-items:center;
  justify-content:flex-start;
  width:100%;
}
.settings-tabs-v466 .tab{
  display:flex;
  align-items:center;
  min-height:56px;
  padding:0 18px;
  border-radius:18px;
  justify-content:flex-start;
  text-align:left;
  flex:0 0 auto;
  white-space:nowrap;
}
.settings-tabs-v466 .tab span{
  overflow:hidden;
  text-overflow:ellipsis;
}
.settings-content-panel-v466{
  padding:24px;
  min-width:0;
  overflow:hidden;
}
.settings-content-panel-v466 .settings-row-title,
.settings-content-panel-v466 .settings-card-title,
.settings-content-panel-v466 .settings-title-lg,
.settings-content-panel-v466 .settings-mini-value,
.settings-content-panel-v466 .settings-inline-note,
.settings-content-panel-v466 .settings-row-preview,
.settings-content-panel-v466 .settings-row-meta,
.settings-content-panel-v466 .settings-lead{
  overflow-wrap:anywhere;
}
@media (max-width: 1024px){
  .settings-shell-v466,
  .settings-content-panel-v466{
    padding:18px;
  }
  .settings-tabs-v466{
    gap:10px;
  }
}
@media (max-width: 720px){
  .settings-shell-v466,
  .settings-content-panel-v466{
    padding:16px;
  }
  .settings-search-v466{
    width:100%;
  }
  .settings-tabs-v466 .tab{
    min-height:48px;
    padding:0 14px;
  }
}


/* Base 4.6.8 — Recall intro surface aligned with current app */

.recall-intro-v468{padding:18px 20px;display:grid;gap:12px}
.recall-intro-main-v468{display:grid;gap:14px;align-items:end}
.recall-intro-copy-v468{display:grid;gap:4px;min-width:0}
.recall-intro-title-v468{max-width:13ch;width:min(13ch,100%)}
.recall-intro-desc-v468{max-width:66ch}
.recall-intro-actions-v468{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-start}
.recall-intro-v468 .secondary-btn,.recall-intro-v468 .action-btn{min-height:44px}
@media (min-width: 980px){
  .recall-intro-main-v468{grid-template-columns:minmax(0,1fr) auto}
  .recall-intro-actions-v468{justify-content:flex-end}
}
@media (max-width: 767px){
  .recall-intro-v468{padding:16px}
  .recall-intro-title-v468{max-width:none;width:100%}
}
body.theme-dark .recall-intro-v468{background:linear-gradient(180deg,color-mix(in srgb,var(--card) 94%, rgba(255,255,255,.03)),color-mix(in srgb,var(--card) 88%, rgba(255,255,255,.01)));box-shadow:0 14px 34px rgba(0,0,0,.18)}


/* Base 4.6.9 bugfixes: todo preview checklist */
.todo-checklist-preview{display:grid;gap:8px}
.todo-check-row{display:flex;align-items:flex-start;gap:10px;width:100%;text-align:left;border:1px solid var(--border);border-radius:14px;background:var(--secondbackground);padding:10px 12px;color:var(--foreground);cursor:pointer}
.todo-check-row:hover{background:var(--card)}
.todo-check-row .todo-check-box{width:18px;height:18px;flex:0 0 18px;border-radius:6px;border:1.5px solid var(--border);display:grid;place-items:center;font-size:12px;font-weight:800;margin-top:2px;background:var(--card)}
.todo-check-row.is-checked .todo-check-box{background:var(--primary);border-color:var(--primary);color:var(--primary-foreground)}
.todo-check-row .todo-check-label{line-height:1.45}
.todo-check-row.is-checked .todo-check-label{text-decoration:line-through;color:var(--desc)}


/* Batch 3.2 — detail toolbar alignment + autosave status */
.detail-toolbar-v420{
  align-items:center!important;
}
.detail-toolbar-v420 .detail-toolbar-actions{
  align-items:center!important;
}
.detail-toolbar-v420 .detail-toolbar-actions .secondary-btn,
.detail-toolbar-v420 .detail-toolbar-actions .action-btn,
.detail-toolbar-v420 .detail-toolbar-actions .editor-status,
.detail-toolbar-v420 .detail-toolbar-actions .detail-attach-btn{
  min-height:42px;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center;
  line-height:1!important;
  vertical-align:middle;
  align-self:center!important;
  white-space:nowrap;
}
.detail-toolbar-v420 .detail-toolbar-actions .detail-attach-btn{
  cursor:pointer;
}
.detail-toolbar-v420 .detail-toolbar-actions .detail-toolbar-status{
  background:var(--surface-soft)!important;
  color:var(--foreground)!important;
  padding:0 14px!important;
}
.detail-toolbar-v420 .detail-toolbar-actions .detail-toolbar-status.is-dirty{
  color:var(--secondary)!important;
}


.resource-thumb-visual{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:inherit;
  background:#e5e7eb;
}
.resource-thumb-preview{
  overflow:hidden;
}
.resource-thumb-row{
  width:56px!important;
  height:56px!important;
  border-radius:14px!important;
}
.resource-thumb-card,
.resource-thumb-compact-card{
  width:100%;
  border-radius:12px;
}
.attachment-card .resource-thumb-card,
.attachment-card .resource-thumb-compact-card{
  height:148px;
}
.attachment-card.compact .resource-thumb-compact-card,
.attachment-card.compact .resource-thumb-card{
  height:118px;
}
.resource-thumb-fallback-pdf{
  position:relative;
  background:linear-gradient(180deg,#fff7ed,#ffffff)!important;
  border-color:rgba(220,38,38,.15)!important;
}
.resource-thumb-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:34px;
  height:20px;
  padding:0 8px;
  border-radius:999px;
  background:#dc2626;
  color:#fff;
  font-size:10px;
  font-weight:700;
  letter-spacing:.08em;
}
.resource-thumb-fallback-video{
  background:linear-gradient(135deg,rgba(15,23,42,.92),rgba(59,130,246,.55))!important;
  color:#fff;
}
body.phone-shell .attachment-card .resource-thumb-card,
body.phone-shell .attachment-card .resource-thumb-compact-card,
body.tablet-shell.compact-shell .attachment-card .resource-thumb-card,
body.tablet-shell.compact-shell .attachment-card .resource-thumb-compact-card{
  height:172px;
}
