/* Velkyn Notas — composição baseada diretamente no Velkyn Hub.
   Tokens, órbita, atmosfera e desenho de superfícies vêm de hub-base.css. */
:root {
  --ink: var(--text); --muted: var(--dim); --gutter: 34px;
  --workbench-height: max(440px, calc(100dvh - 455px));
}
[hidden] { display: none !important; }
html, body { min-width: 0; }
body { user-select: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, .row { display: flex; align-items: center; gap: 9px; }
button { border: 1px solid var(--line); background: transparent; padding: 10px 16px; border-radius: var(--pill); transition: background var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
button:hover { background: var(--surface-2); border-color: var(--line-strong); }
button:active { transform: scale(.975); }
button:disabled { opacity: .45; cursor: wait; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button svg { width: 18px; height: 18px; }
.primary { position: relative; overflow: hidden; height: 42px; justify-content: center; padding: 0 18px; font-size: 14.5px; font-weight: 600; white-space: nowrap; color: var(--on-bronze); background: linear-gradient(135deg, var(--bronze-light), var(--bronze) 48%, var(--bronze-deep)); border-color: transparent; box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--bronze) 70%, transparent); }
.primary::after { content: ''; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(105deg, transparent 30%, #ffffff60 50%, transparent 70%); }
.primary:hover { background: linear-gradient(135deg, var(--bronze-light), var(--bronze) 48%, var(--bronze-deep)); border-color: transparent; }
.primary:hover::after { transform: translateX(120%); transition: transform 760ms var(--ease); }
.icon { width: 42px; min-width: 42px; height: 42px; padding: 10px; justify-content: center; }
.icon svg { width: 19px; height: 19px; }
.eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .19em; text-transform: uppercase; color: var(--bronze); }
small { font-size: 12px; color: var(--faint); }
h1,h2,h3,p { margin-top: 0; }
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 268px minmax(0,1fr); height: 100dvh; }
.sidebar { min-height: 0; display: flex; flex-direction: column; backdrop-filter: blur(20px); background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), color-mix(in srgb, var(--bg2) 85%, transparent)); border-right: 1px solid var(--line); }
.sidebar > header { padding: 25px 22px 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand-emblem { width: 50px; height: 50px; flex: none; display: block; position: relative; border-radius: 50%; background: var(--emblema) center / 82% no-repeat, radial-gradient(circle, var(--glow), transparent 70%); border: 1px solid color-mix(in srgb, var(--bronze) 30%, var(--line)); }
.brand-emblem::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--bronze) 40%, transparent); animation: gira 50s linear infinite; }
.brand strong { display: block; font: 650 21px/1.1 var(--font-display); letter-spacing: -.02em; }
.brand em, .mobile-brand em { font: italic 26px var(--serif); color: var(--bronze); }
.brand small { display: block; font-size: 11.5px; letter-spacing: .23em; color: var(--bronze); margin-top: 3px; }
.sidebar-scroll { min-height: 0; overflow-y: auto; padding: 0 14px; flex: 1; }
.nav-label { display: block; padding: 14px 12px 8px; font-size: 11.5px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.nav { display: grid; gap: 3px; }
.nav button { position: relative; width: 100%; height: 46px; border-color: transparent; padding: 0 12px; gap: 12px; color: var(--dim); font-size: 14.5px; font-weight: 580; text-align: left; }
.nav button > span:not(.count) { flex: 1; }
.nav button.active { color: var(--text); background: linear-gradient(90deg, color-mix(in srgb, var(--bronze) 16%, transparent), color-mix(in srgb, var(--bronze) 5%, transparent)); border-color: color-mix(in srgb, var(--bronze) 32%, transparent); }
.nav button.active svg { color: var(--bronze); }
.nav button.active::before { content: ''; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--bronze); box-shadow: 0 0 12px var(--bronze); }
.nav .count { min-width: 24px; padding: 2px 7px; border-radius: var(--pill); font: 12px var(--mono); color: var(--faint); text-align: center; }
.nav .active .count { background: color-mix(in srgb, var(--bronze) 18%, transparent); color: var(--bronze); }
.navgroup { margin-top: 15px; padding-top: 8px; border-top: 1px solid var(--line); }
.navgroup .row { justify-content: space-between; }
.navgroup .icon { min-width: 32px; width: 32px; height: 32px; padding: 7px; border: 0; color: var(--faint); }
.notebooks { display: grid; gap: 3px; padding: 5px 0 20px; }
.notebooks button { width: 100%; border-color: transparent; padding: 9px 12px; color: var(--dim); font-size: 13px; text-align: left; }
.notebooks button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notebooks svg { width: 17px; height: 17px; }
.notebooks .selected { color: var(--bronze); background: color-mix(in srgb, var(--bronze) 7%, transparent); }
.sidebar footer { padding: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0,1fr); gap: 12px; min-width: 0; }
.account { padding: 10px; text-align: left; border-radius: var(--r-md); gap: 9px; border-color: var(--line); min-width: 0; width: 100%; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 12px; color: var(--bronze); background: color-mix(in srgb, var(--bronze) 12%, transparent); }
.copy { flex: 1; min-width: 0; }
.copy strong, .copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy strong { font-size: 13px; font-weight: 600; }
.copy small { font-size: 11.5px; margin-top: 2px; }
.account > svg { width: 15px; color: var(--faint); }
.theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 4px; border-radius: var(--pill); background: var(--surface-2); border: 1px solid var(--line); }
.theme-switch button { height: 34px; border: 0; padding: 0 8px; justify-content: center; font-size: 12px; font-weight: 600; color: var(--dim); }
.theme-switch svg { width: 15px; height: 15px; }
.theme-switch button[aria-pressed=true] { background: linear-gradient(135deg, var(--bronze-light), var(--bronze) 55%, var(--bronze-deep)); color: var(--on-bronze); }
.sidebar-signature { color: var(--faint); font-size: 12px; text-align: center; }
.sidebar-signature span { margin-left: 5px; font-family: var(--mono); }
.workspace { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.topbar { height: 62px; padding: 0 var(--gutter); display: flex; align-items: center; gap: 18px; flex: none; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 35%, transparent); }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--faint); white-space: nowrap; }
.crumb b { font-weight: 600; color: var(--dim); }
.crumb svg { width: 14px; height: 14px; }
.search { display: flex; align-items: center; gap: 8px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--pill); background: color-mix(in srgb, var(--surface) 70%, transparent); padding: 7px 12px; max-width: 290px; min-width: 150px; flex: 1; }
.search svg { width: 15px; height: 15px; color: var(--faint); }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; font-size: 13px; }
.shortcut { white-space: nowrap; font: 11.5px var(--mono); color: var(--faint); }
.sync { display: flex; align-items: center; gap: 9px; color: var(--dim); font-size: 12px; white-space: nowrap; }
.sync-dot { width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bronze) 12%, transparent); }
.topbar > .icon { border-color: transparent; color: var(--dim); width: 34px; min-width: 34px; height: 34px; padding: 8px; }
.page-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.page { max-width: 1440px; margin: 0 auto; padding: 26px var(--gutter) 40px; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.intro h1 { margin: 5px 0 0; font: 650 32px/1.15 var(--font-display); letter-spacing: -.025em; }
.intro .eyebrow { color: var(--faint); letter-spacing: .16em; }
.hub-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); min-height: 216px; padding: 25px 34px; display: grid; grid-template-columns: 1fr 180px; align-items: center; gap: 24px; background: radial-gradient(120% 140% at 88% 50%, color-mix(in srgb, var(--bronze) 16%, transparent), transparent 55%), linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--bg2) 70%, var(--surface))); border: 1px solid var(--line-strong); }
.hub-banner::before { content: ''; position: absolute; inset: 0; background: url('assets/knotwork.svg') right -40px center / 460px no-repeat; opacity: .08; pointer-events: none; }
body.light .hub-banner::before { filter: invert(1); opacity: .12; }
.banner-copy { position: relative; z-index: 1; }
.hub-banner h2 { font: 650 29px/1.13 var(--font-display); letter-spacing: -.025em; margin: 8px 0 9px; }
.hub-banner h2 em { font: italic 35px/1 var(--serif); color: var(--bronze); }
.hub-banner p { margin: 0; font-size: 13px; color: var(--dim); }
.hub-banner .orbita { width: 170px; justify-self: end; }
.banner-stats { display: flex; gap: 26px; margin-top: 17px; }
.banner-stats > div { display: grid; }
.banner-stats b { font: 650 20px/1 var(--font-display); }
.banner-stats span { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); margin-top: 5px; }
.toolbar { margin: 24px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.filters { display: flex; gap: 8px; min-width: 0; overflow-x: auto; }
button.chip { height: 38px; padding: 0 15px; font-size: 13px; font-weight: 600; flex: none; }
.chip.active { color: var(--bronze); border-color: color-mix(in srgb, var(--bronze) 45%, transparent); background: color-mix(in srgb, var(--bronze) 12%, transparent); }
.chip small { color: inherit; }
.notes-layout { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(300px,1.65fr); align-items: start; gap: 20px; }
.note-list { min-width: 0; display: grid; gap: 12px; max-height: var(--workbench-height); overflow-y: auto; align-content: start; padding: 1px 3px 14px 1px; }
.note-card { position: relative; display: block; width: 100%; border-radius: var(--r-lg); padding: 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--bronze) 2%), var(--surface)); text-align: left; border: 1px solid var(--line); }
.note-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--bronze) 28%, var(--line)); box-shadow: var(--shadow); }
.note-card.selected { border-color: color-mix(in srgb, var(--bronze) 48%, var(--line)); background: linear-gradient(140deg, color-mix(in srgb, var(--bronze) 8%, var(--surface)), var(--surface)); }
.note-card.selected::before { content: ''; position: absolute; left: 22px; right: 22px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--bronze), transparent); }
.note-card h3 { margin: 13px 0 9px; font: 600 16px/1.35 var(--font-display); overflow-wrap: anywhere; }
.note-card .excerpt { color: var(--dim); font-size: 13px; line-height: 1.65; margin-bottom: 16px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--faint); }
.tag { display: inline-flex; align-items: center; font-size: 11.5px; padding: 4px 10px; border-radius: var(--pill); background: color-mix(in srgb, var(--bronze) 9%, transparent); border: 1px solid color-mix(in srgb, var(--bronze) 16%, transparent); color: var(--bronze); }
.pin { color: var(--bronze); }
.editor { overflow: hidden; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--bronze) 2%), var(--surface)); border: 1px solid var(--line); border-radius: var(--r-lg); min-height: var(--workbench-height); display: flex; flex-direction: column; }
.editor-top { padding: 12px 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); }
.editor-top .row { gap: 3px; }
.editor-top .icon { min-width: 33px; width: 33px; height: 33px; padding: 8px; color: var(--dim); border-color: transparent; }
.editor-top .icon:hover { color: var(--bronze); }
#save-state { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
#save-state::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.editor-content { padding: 24px 28px; flex: 1; }
.title-input { display: block; width: 100%; background: transparent; border: 0; border-radius: 0; padding: 0; font: 650 26px/1.25 var(--font-display); letter-spacing: -.025em; margin-bottom: 20px; }
.edit-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.edit-meta label { flex: 1; min-width: 110px; font-size: 12px; color: var(--faint); }
.edit-meta select,.edit-meta input { display: block; width: 100%; font-size: 13px; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 9px 12px; margin-top: 7px; }
.formatbar { display: flex; align-items: center; gap: 3px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 7px 0; margin-bottom: 17px; }
.formatbar button { border: 0; border-radius: 10px; padding: 7px 11px; font-size: 13px; color: var(--dim); }
.formatbar button:last-child { margin-left: auto; color: var(--bronze); }
.body-input { width: 100%; min-height: 240px; display: block; resize: vertical; border: 0; outline: none; background: none; font: 16px/1.9 var(--font); }
.body-input:focus-visible { outline: 0; }
.preview { min-height: 240px; line-height: 1.85; overflow-wrap: anywhere; }
.preview p { margin-bottom: 12px; min-height: 1em; }
.preview h1 { font-size: 28px; }.preview h2 { font-size: 23px; }.preview h3 { font-size: 19px; }
.preview code { font: 13px var(--mono); background: var(--bg2); padding: 2px 7px; border-radius: 7px; }
.editor-bottom { display: flex; justify-content: space-between; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 270px; padding: 30px 22px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.empty > svg { width: 36px; height: 36px; color: var(--bronze); padding: 14px; box-sizing: content-box; border: 1px solid color-mix(in srgb,var(--bronze) 24%,transparent); border-radius: 21px; background: color-mix(in srgb,var(--bronze) 9%,transparent); margin-bottom: 21px; }
.empty h2 { font: 600 21px/1.2 var(--font-display); letter-spacing: -.015em; margin: 0 0 10px; }
.empty p { font-size: 13px; line-height: 1.7; color: var(--dim); max-width: 330px; }
.empty .primary { margin-top: 8px; font-size: 13px; }
.workspace-empty { min-height: var(--workbench-height); background: radial-gradient(ellipse at 60% 25%,color-mix(in srgb,var(--bronze) 6%,transparent),transparent 70%),var(--surface); }
.workspace-empty img { display: none; }
.workspace-empty .eyebrow { padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 11.5px; letter-spacing: .1em; }
.board-toolbar { display: flex; gap: 10px; align-items: center; }
.board-toolbar select { max-width: 240px; font-size: 14px; font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 16px; }
.board-toolbar .primary { height: 38px; font-size: 13px; }
.board-toolbar .icon { width: 38px; min-width: 38px; height: 38px; }
.board { display: flex; align-items: start; gap: 16px; overflow-x: auto; min-height: var(--workbench-height); padding: 0 1px 18px; }
.column { flex: 1 0 245px; max-width: 390px; min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 65%, transparent); padding: 14px; min-height: 280px; }
.column-head { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; padding: 3px 2px 12px; border-bottom: 1px solid var(--line); }
.column-head h3 { margin: 0; font-size: 13px; font-weight: 600; }
.column-head h3::before { content: ''; display: inline-block; vertical-align: middle; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--bronze); box-shadow: 0 0 0 4px color-mix(in srgb,var(--bronze) 11%,transparent); }
.column:nth-child(2) .column-head h3::before { background: var(--ice); }.column:nth-child(3) .column-head h3::before { background: var(--ok); }
.column-head small { margin-left: auto; border: 1px solid var(--line); padding: 1px 7px; border-radius: var(--pill); }
.column-head .icon { border: 0; min-width: 28px; width: 28px; height: 28px; padding: 5px; color: var(--dim); }
.column.dragover { border-color: var(--bronze); background: color-mix(in srgb,var(--bronze) 9%,var(--surface)); }
.task { padding: 17px; background: linear-gradient(180deg,var(--surface-2),var(--surface)); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; cursor: grab; transition: border-color var(--t-mid),transform var(--t-mid),box-shadow var(--t-mid); }
.task:hover { transform: translateY(-2px); border-color: color-mix(in srgb,var(--bronze) 28%,var(--line)); box-shadow: var(--shadow); }
.task h3 { font-size: 14.5px; font-weight: 600; line-height: 1.45; margin: 12px 0 8px; overflow-wrap: anywhere; }
.task p { font-size: 13px; color: var(--dim); white-space: pre-line; max-height: 64px; overflow: hidden; line-height: 1.6; }
.priority { display: inline-block; padding: 3px 9px; border-radius: var(--pill); border: 1px solid color-mix(in srgb,var(--ice) 20%,transparent); background: color-mix(in srgb,var(--ice) 8%,transparent); color: var(--ice); font-size: 11.5px; }
.priority.high { color: var(--danger); background: color-mix(in srgb,var(--danger) 9%,transparent); border-color: color-mix(in srgb,var(--danger) 20%,transparent); }
.priority.low { color: var(--dim); background: var(--surface); border-color: var(--line); }
.task-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); }
.task-footer select { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--pill); color: var(--dim); font-size: 11.5px; padding: 6px 7px; max-width: 140px; }
.add-task { width: 100%; justify-content: center; border-style: dashed; border-color: var(--line-strong); color: var(--dim); font-size: 13px; margin-top: 6px; }
.empty-col { font-size: 12px; color: var(--faint); text-align: center; padding: 25px 8px; }
.offline-banner { margin-top: 16px; border: 1px solid color-mix(in srgb,var(--bronze) 28%,transparent); border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; color: var(--bronze); background: color-mix(in srgb,var(--bronze) 7%,transparent); }
dialog { width: min(580px,calc(100vw - 40px)); max-height: 88dvh; padding: 28px; border-radius: var(--r-xl); border: 1px solid var(--line-strong); background: var(--popover); color: var(--text); box-shadow: var(--shadow); animation: escala var(--t-slow) var(--spring); }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(8px); }
dialog::before { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--bronze) 60%,transparent),transparent); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; margin-bottom: 23px; }
.modal-head h2 { margin: 6px 0 0; font: 650 24px/1.2 var(--font-display); letter-spacing: -.02em; }
.modal-head .icon { background: var(--surface-2); color: var(--dim); }
dialog label { display: block; font-size: 13px; color: var(--dim); margin: 16px 0; }
input,textarea,select { max-width: 100%; }
dialog input,dialog textarea,dialog select { display: block; width: 100%; margin-top: 7px; padding: 12px 14px; border: 1px solid var(--line-strong); background: var(--bg2); border-radius: var(--r-sm); font-size: 16px; }
dialog textarea { min-height: 130px; resize: vertical; }
dialog .actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
dialog .actions button { font-size: 13px; }
dialog .help { color: var(--dim); font-size: 13px; line-height: 1.75; }
dialog .error { color: var(--danger); font-size: 13px; min-height: 20px; }
.settings-group { padding: 20px; background: color-mix(in srgb,var(--surface-2) 65%,transparent); border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 15px; }
.settings-group h3 { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 15px; font-weight: 600; }.settings-group h3 svg { color: var(--bronze); width: 18px; }
.settings-group button { font-size: 13px; margin-top: 10px; }.danger { color: var(--danger); }
#toast { position: fixed; left: 50%; bottom: 26px; z-index: 200; transform: translate(-50%,16px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: var(--pill); max-width: min(90vw,560px); background: var(--popover); border: 1px solid var(--line-strong); box-shadow: var(--shadow); font-size: 13px; backdrop-filter: blur(18px); transition: transform var(--t-mid) var(--spring),opacity var(--t-mid) var(--ease); }
#toast.show { transform: translate(-50%,0); opacity: 1; }
.sidebar-close,.sidebar-shade,.mobile-menu,.mobilebar,.mobile-brand,.mobile-close { display: none; }
@media(min-width:1600px) { .notes-layout { grid-template-columns: minmax(270px,.7fr) minmax(380px,1.7fr); }.editor-content { padding: 28px 36px; }.hub-banner { padding-left: 38px; } }
@media(max-width:1200px) { :root { --gutter: 26px; }.shell { grid-template-columns: 238px minmax(0,1fr); }.sidebar > header { padding-left: 20px; }.brand strong { font-size: 19px; }.brand em { font-size: 24px; }.brand-emblem { width: 43px; height: 43px; }.topbar { gap: 12px; }.crumb > span,.shortcut { display: none; }.hub-banner p { max-width: 350px; }.notes-layout { gap: 16px; grid-template-columns: minmax(205px,.8fr) minmax(280px,1.4fr); }.editor-content { padding: 23px; } }
@media(max-width:900px) {
 :root { --gutter: 22px; }.shell { display: block; }.workspace { height: 100dvh; }.page { padding-top: 22px; padding-bottom: 125px; }
 .sidebar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: auto; max-height: 88dvh; border: 1px solid var(--line-strong); border-radius: 30px 30px 0 0; background: var(--popover); box-shadow: var(--shadow); padding: 8px 8px max(15px,env(safe-area-inset-bottom)); }
 .sidebar.open { display: flex; animation: hub-sheet 360ms var(--spring); }.sidebar::before { content: ''; position: absolute; top: 9px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: var(--pill); background: var(--line-strong); }
 .sidebar > header { padding: 22px 20px; }.sidebar-scroll { flex: 1 1 auto; overflow-y: auto; }.sidebar .nav { grid-template-columns: 1fr 1fr; gap: 7px; }.sidebar .nav button { font-size: 13px; }.sidebar .notebooks { max-height: 20dvh; overflow-y: auto; }.sidebar footer { margin-top: 5px; grid-template-columns: 1fr 1fr; align-items: center; }.sidebar-signature { display: none; }.sidebar .copy small { max-width: 150px; }.sidebar .account > svg { display: none; }
 .sidebar-close { display: flex; position: absolute; top: 25px; right: 20px; z-index: 1; color: var(--dim); }.sidebar-shade.open { display: block; position: fixed; inset: 0; z-index: 75; background: var(--scrim); backdrop-filter: blur(8px); }
 .topbar { height: 68px; gap: 12px; padding: 0 var(--gutter); background: var(--glass); backdrop-filter: blur(20px); }.mobile-menu { display: flex; }.mobile-brand { display: flex; align-items: center; gap: 5px; font-size: 18px; font-weight: 650; margin-right: auto; white-space: nowrap; }.mobile-brand .brand-emblem { display: none; }.mobile-brand em { font-size: 24px; }.topbar .crumb,.topbar .sync { display: none; }.search { max-width: 230px; min-width: 100px; margin-left: 0; padding: 7px 10px; }
 .intro h1 { font-size: 28px; }.intro .eyebrow { font-size: 11.5px; }.hub-banner { min-height: 190px; padding: 23px 27px; grid-template-columns: 1fr 140px; }.hub-banner h2 { font-size: 27px; }.hub-banner h2 em { font-size: 32px; }.hub-banner .orbita { width: 135px; }.hub-banner p { display: none; }.banner-stats { margin-top: 16px; gap: 24px; }
 .toolbar { margin-top: 23px; }.notes-layout { grid-template-columns: minmax(210px,.9fr) minmax(300px,1.4fr); }.note-list { max-height: none; }.editor { min-height: 470px; }.editor-top { padding: 11px 13px; }.editor-content { padding: 22px; }.title-input { font-size: 24px; }.note-card { padding: 18px; }.toolbar > small { display: none; }
 .mobilebar { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; position: fixed; z-index: 40; left: var(--gutter); right: var(--gutter); bottom: calc(env(safe-area-inset-bottom) + 14px); padding: 6px; border-radius: 28px; background: var(--popover); border: 1px solid var(--line-strong); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
 .mobilebar button { flex-direction: column; justify-content: center; height: 56px; gap: 3px; padding: 0; border: 0; border-radius: 22px; color: var(--dim); font-size: 12px; font-weight: 600; }.mobilebar svg { width: 21px; height: 21px; }.mobilebar button.active { background: color-mix(in srgb,var(--bronze) 14%,transparent); color: var(--bronze); }
 dialog { margin: 0; position: fixed; top: auto; bottom: 0; max-width: none; width: 100%; max-height: 90dvh; border-radius: 30px 30px 0 0; padding: 30px 24px max(30px,env(safe-area-inset-bottom)); animation: hub-sheet 360ms var(--spring); }dialog::before { top: 9px; left: calc(50% - 18px); width: 36px; height: 4px; border-radius: var(--pill); background: var(--line-strong); }
 #toast { bottom: calc(env(safe-area-inset-bottom) + 100px); }.column { flex-basis: 245px; }.board { min-height: 350px; }
}
@media(max-width:620px) {
 :root { --gutter: 18px; }.topbar { gap: 8px; flex-wrap: wrap; height: auto; min-height: 116px; padding-top: 12px; padding-bottom: 11px; }.topbar .mobile-menu { order: 0; }.mobile-brand { order: 1; }.topbar > [data-action=theme] { order: 2; }.search { order: 3; flex-basis: 100%; max-width: none; height: 34px; }.search input { font-size: 13px; }.topbar > .icon { min-width: 32px; width: 32px; height: 32px; }
 .page { padding-top: 20px; }.intro { margin-bottom: 17px; gap: 12px; }.intro .eyebrow { letter-spacing: .08em; }.intro h1 { font-size: 27px; }.intro .primary { font-size: 13px; padding: 0 14px; height: 40px; gap: 6px; }
 .hub-banner { grid-template-columns: 1fr; min-height: 0; padding: 22px; border-radius: 24px; }.hub-banner h2 { font-size: 25px; margin-bottom: 0; }.hub-banner h2 em { font-size: 30px; }.hub-banner .orbita { display: none; }.hub-banner::before { background-size: 320px; right: -95px; opacity: .065; }.banner-stats { margin-top: 17px; gap: 26px; }.banner-stats b { font-size: 20px; }.banner-stats span { letter-spacing: .07em; }.hub-banner .eyebrow { font-size: 11.5px; letter-spacing: .17em; }
 .toolbar { margin-top: 23px; margin-bottom: 14px; }.filters { gap: 7px; width: 100%; }.filters button.chip { height: 38px; font-size: 12px; padding: 0 14px; }
 .notes-layout { display: block; }.note-list { gap: 12px; padding-bottom: 10px; }.note-card { padding: 20px; }.note-card h3 { font-size: 16px; }.workspace-empty { display: none; }.editor { display: none; }
 .editor.open { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 55; height: 94dvh; min-height: 0; border-radius: 30px 30px 0 0; background: var(--surface); box-shadow: 0 -24px 100px #0008; animation: hub-sheet 360ms var(--spring); }
 .editor.open::before { content: ''; position: absolute; top: 9px; left: calc(50% - 18px); width: 36px; height: 4px; background: var(--line-strong); border-radius: var(--pill); }.editor-top { padding: 22px 14px 11px; flex: none; }.editor-content { min-height: 0; overflow-y: auto; padding: 24px; }.mobile-close { display: flex; }.editor-top .row { gap: 2px; }.editor-top .icon { min-width: 32px; width: 32px; height: 32px; }.editor-top #save-state { max-width: 88px; font-size: 11.5px; }.editor-top #save-state::before { flex: none; }
 .title-input { font-size: 27px; margin-bottom: 22px; }.edit-meta { gap: 12px; }.edit-meta input,.edit-meta select { font-size: 16px; }.body-input { min-height: 39dvh; }.formatbar button { min-height: 40px; padding: 8px 10px; }.editor-bottom { padding-bottom: max(16px,env(safe-area-inset-bottom)); }
 .board-toolbar { width: 100%; gap: 8px; }.board-toolbar select { min-width: 0; max-width: none; flex: 1; }.board-toolbar .primary { padding: 0 13px; }.column { flex-basis: calc(100vw - 65px); max-width: none; scroll-snap-align: start; }.board { scroll-snap-type: x proximity; }.column-head h3 { font-size: 14px; }.task h3 { font-size: 15px; }
 .sidebar footer { grid-template-columns: 1fr; }.sidebar .copy small { max-width: none; }.sidebar .nav button { font-size: 13px; }.settings-group { padding: 18px; }
}
@media(max-width:370px) { :root { --gutter: 14px; }.intro .eyebrow { letter-spacing: .03em; }.intro h1 { font-size: 25px; }.intro .primary { padding: 0 12px; font-size: 12px; }.hub-banner { padding: 20px; }.hub-banner h2 { font-size: 23px; }.hub-banner h2 em { font-size: 28px; }.editor-content { padding: 20px; }.editor-top { padding-left: 12px; padding-right: 10px; }.editor-top .icon { min-width: 29px; width: 29px; height: 32px; padding: 6px; }.sidebar .nav button { padding: 0 10px; gap: 7px; }.sidebar .count { padding: 2px 5px; } }
@keyframes hub-sheet { from { transform: translateY(24px); opacity: 0; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
