/* Funken: a quiet personal room, built from native controls. */
:root {
    color-scheme: dark;
    --bg: #11151e;
    --sidebar: #0d1119;
    --panel: #191e28;
    --panel-hover: #1f2632;
    --raised: #202632;
    --line: #2b313d;
    --line-soft: #222936;
    --text: #eeece8;
    --muted: #9aa4b5;
    --dim: #8b97a9;
    --accent: #edb097;
    --accent-ink: #241b18;
    --input: #121722;
    --shadow: 0 20px 70px #0005;
    --serif: Georgia,'Times New Roman',serif;
    --sans: Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    --sidebar-width: 244px;
}
:root[data-theme=light] {
    color-scheme: light;
    --bg: #f5f3ef;
    --sidebar: #edeae4;
    --panel: #fffdfa;
    --panel-hover: #f7f1e9;
    --raised: #eae6df;
    --line: #d9d4cc;
    --line-soft: #e5e0d8;
    --text: #262a33;
    --muted: #5e6674;
    --dim: #656d79;
    --accent: #9e4c2b;
    --accent-ink: #fff9f3;
    --input: #fffdfa;
    --shadow: 0 20px 70px #33221118;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
button,input,textarea,select {
    font: inherit;
}
button,a,input,select,textarea {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: .55;
}
a {
    color: inherit;
    text-decoration: none;
}
button {
    color: inherit;
}
h1,h2,h3,p {
    margin: 0;
}
h1,h2,h3 {
    line-height: 1.2;
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
input,textarea,select {
    max-width: 100%;
}
[hidden] {
    display: none!important;
}
.icon {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    vertical-align: middle;
}
.muted {
    color: var(--muted);
}
.eyebrow {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 2px;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}
.block {
    display: block;
    margin-top: 12px;
}
.small-copy {
    font-size: 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}
.brand-word {
    font-family: var(--serif);
    font-size: 35px;
    font-weight: 400;
    letter-spacing: -1.5px;
}
.brand-star {
    margin-left: 12px;
    color: var(--accent);
}
.boot {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: var(--muted);
}
.boot .brand-word {
    font-size: 50px;
    color: var(--text);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    padding: 9px 16px;
    font-weight: 550;
    font-size: 13px;
    transition: background .16s,border-color .16s,transform .16s;
}
.button:hover {
    background: var(--panel-hover);
    border-color: var(--dim);
}
.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
}
.button.primary:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}
.button.quiet {
    background: transparent;
}
.button.small {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
}
.button.full {
    width: 100%;
}
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.icon-button {
    border: 0;
    background: transparent;
    border-radius: 7px;
    width: 38px;
    height: 38px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 24px;
    flex: 0 0 auto;
}
.icon-button:hover {
    background: var(--raised);
    color: var(--text);
}
.icon-button.small {
    width: 28px;
    height: 28px;
    font-size: 20px;
}
.icon-button.active {
    background: var(--raised);
    color: var(--text);
}
.text-button {
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 12px;
    padding: 4px 0;
    text-align: left;
}
.text-button:hover {
    color: var(--accent);
}
kbd {
    font-family: var(--sans);
    font-size: 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
    color: var(--dim);
    font-weight: 400;
}
.primary kbd {
    color: inherit;
    border-color: currentColor;
    opacity: .55;
}
.mobile-only {
    display: none;
}
.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    z-index: 1000;
    padding: 10px;
    background: var(--accent);
    color: var(--accent-ink);
    border-radius: 4px;
}
.skip-link:focus {
    top: 10px;
}
/* Sign-in */
.auth-screen {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
}
.auth-story {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 64px;
    background: var(--sidebar);
    overflow: hidden;
}
.auth-story-copy {
    position: relative;
    margin: 70px 0;
    z-index: 1;
}
.auth-story h1 {
    font-family: var(--serif);
    font-size: clamp(58px,5.6vw,92px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: -4px;
    margin: 25px 0;
}
.auth-story h1 em {
    color: var(--accent);
    font-weight: 400;
}
.auth-story p {
    color: var(--muted);
    line-height: 1.9;
    max-width: 480px;
}
.auth-foot {
    font-size: 11px;
    letter-spacing: .5px;
}
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}
.auth-form-wrap {
    width: 360px;
    max-width: 100%;
}
.auth-panel h2 {
    font: 400 44px var(--serif);
    letter-spacing: -1.8px;
    margin: 15px 0 10px;
}
.auth-panel form {
    margin-top: 32px;
}
.auth-panel .primary {
    margin-top: 28px;
}
.auth-note {
    display: flex;
    gap: 12px;
    padding-top: 30px;
    margin-top: 32px;
    border-top: 1px solid var(--line-soft);
    font-size: 12px;
    color: var(--dim);
}
.auth-note>span {
    font-size: 26px;
    color: var(--accent);
}
.auth-orbit {
    position: relative;
    margin-top: 32px;
    width: 260px;
    height: 150px;
    color: var(--accent);
}
.auth-orbit i {
    position: absolute;
    border: 1px solid var(--line);
    width: 240px;
    height: 90px;
    border-radius: 50%;
    transform: rotate(-25deg);
    left: 0;
    top: 25px;
}
.auth-orbit i:nth-child(2) {
    transform: rotate(25deg);
}
.auth-orbit i:nth-child(3) {
    transform: rotate(90deg);
    height: 90px;
}
.auth-orbit span {
    position: absolute;
    top: 25px;
    left: 93px;
    font: 80px var(--serif);
}
/* Navigation and frame */
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--sidebar);
    border-right: 1px solid var(--line-soft);
    padding: 28px 19px 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 30;
}
.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
}
.space-label {
    font-size: 8px;
    letter-spacing: 1.4px;
    color: var(--dim);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 22px 12px 25px;
}
.status-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9dc6ae;
    box-shadow: 0 0 8px #9dc6ae22;
}
.nav-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 41px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    padding: 9px 12px;
    text-align: left;
    font-size: 12px;
}
.nav-button .nav-count {
    margin-left: auto;
    color: var(--dim);
    font-size: 10px;
}
.nav-button:hover {
    background: var(--raised);
    color: var(--text);
}
.nav-button.selected {
    color: var(--accent);
    background: color-mix(in srgb,var(--accent) 9%,transparent);
    border-color: color-mix(in srgb,var(--accent) 10%,transparent);
}
.nav-button.selected .nav-count {
    color: var(--accent);
}
.nav-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 12px 9px;
    color: var(--dim);
    font-size: 9px;
    letter-spacing: 1.5px;
}
.trail-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--tone);
    flex: 0 0 auto;
}
.trail-nav .nav-button {
    font-size: 11px;
    min-height: 35px;
    gap: 13px;
}
.trail-nav .nav-label {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.tag-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 12px 20px;
}
.tag-chip {
    font-size: 10px;
    color: var(--muted);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 3px 7px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-chip:hover,.tag-chip.selected {
    color: var(--accent);
    border-color: var(--accent);
}
.nav-empty {
    font-size: 11px;
    padding: 7px 12px;
    color: var(--dim);
    line-height: 1.8;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 24px;
}
.sidebar-rule {
    border-top: 1px solid var(--line-soft);
    margin: 16px 12px;
}
.profile-row {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 19px 4px 20px 10px;
    margin-top: 15px;
    border-top: 1px solid var(--line-soft);
}
.avatar {
    width: 31px;
    height: 31px;
    background: #293240;
    color: #e9c3a4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font: 15px var(--serif);
}
.profile-row strong {
    font-size: 11px;
    font-weight: 550;
}
.profile-row small {
    display: block;
    font-size: 9px;
    color: var(--dim);
    margin-top: 2px;
}
.profile-row .icon-button {
    margin-left: auto;
}
.workspace {
    margin-left: var(--sidebar-width);
    min-height: 100dvh;
    outline: none;
}
.topbar {
    height: 83px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--line-soft);
    padding: 0 40px;
}
.topbar-left {
    display: flex;
    gap: 12px;
    align-items: center;
    min-width: 0;
}
.topbar-crumb {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.topbar-crumb>span {
    margin: 0 9px;
    color: var(--line);
}
.topbar-crumb strong {
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
}
.topbar-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}
.command-button {
    font-size: 11px;
    font-weight: 400;
    min-height: 34px;
    padding: 6px 10px;
    background: transparent;
    color: var(--muted);
}
.command-button .icon {
    width: 14px;
    height: 14px;
}
.command-button kbd {
    margin-left: 24px;
}
.demo-badge {
    font-size: 8px;
    letter-spacing: 1px;
    white-space: nowrap;
    color: var(--accent);
    border: 1px solid color-mix(in srgb,var(--accent) 30%,transparent);
    border-radius: 4px;
    padding: 3px 5px;
}
.collection-content {
    max-width: 1510px;
    margin: auto;
    padding: 0 40px;
}
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    padding: 42px 0 33px;
    min-height: 258px;
}
.hero h1 {
    font-family: var(--serif);
    font-size: 58px;
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -2.8px;
    margin: 13px 0 16px;
    overflow-wrap: anywhere;
}
.hero h1 em {
    color: var(--accent);
    font-weight: 400;
}
.hero-description {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    max-width: 460px;
}
.hero-title-simple {
    font-size: 46px!important;
    letter-spacing: -1.8px!important;
}
.hero-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}
.revisit-card {
    position: relative;
    display: block;
    text-align: left;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    padding: 24px 25px;
    min-height: 183px;
    overflow: hidden;
    transition: border-color .2s,transform .2s;
}
.revisit-card:hover {
    border-color: var(--dim);
    transform: translateY(-2px);
}
.revisit-card .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    color: var(--accent);
    position: relative;
    z-index: 1;
}
.revisit-card h2 {
    font: 400 22px var(--serif);
    max-width: 85%;
    margin: 15px 0 9px;
    position: relative;
    z-index: 1;
}
.revisit-card p {
    color: var(--muted);
    font-size: 11px;
    max-width: 78%;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.revisit-arrow {
    position: absolute;
    bottom: 20px;
    right: 22px;
    border: 1px solid var(--line);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.revisit-arrow .icon {
    width: 13px;
    height: 13px;
}
.revisit-decoration {
    position: absolute;
    right: -40px;
    top: -60px;
    font: 250px var(--serif);
    color: var(--accent);
    opacity: .045;
    transform: rotate(12deg);
}
.revisit-meta {
    display: block;
    font-size: 9px;
    color: var(--dim);
    margin-top: 15px;
}
.trail-strip {
    display: flex;
    gap: 12px;
    margin-bottom: 35px;
    overflow-x: auto;
    padding: 2px 0;
}
.trail-preview {
    flex: 1;
    min-width: 170px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 1px solid var(--line-soft);
    color: var(--text);
    border-radius: 9px;
    padding: 13px 15px;
    text-align: left;
}
.trail-preview:hover {
    border-color: var(--tone);
    background: var(--panel);
}
.trail-preview .trail-icon {
    width: 29px;
    height: 29px;
    color: var(--tone);
    border-radius: 7px;
    background: color-mix(in srgb,var(--tone) 10%,transparent);
    display: flex;
    align-items: center;
    justify-content: center;
}
.trail-preview .trail-icon .icon {
    width: 15px;
    height: 15px;
}
.trail-preview strong {
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.trail-preview small {
    color: var(--dim);
    font-size: 9px;
    display: block;
}
.trail-preview>.icon {
    width: 12px;
    height: 12px;
    margin-left: auto;
    color: var(--dim);
}
.library-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.library-heading>div:first-child {
    display: flex;
    align-items: baseline;
    gap: 11px;
}
.library-heading h2 {
    font: 400 24px var(--serif);
    letter-spacing: -.7px;
}
.library-heading .muted {
    font-size: 10px;
}
.view-options {
    display: flex;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    padding: 2px;
}
.view-options .icon-button {
    width: 28px;
    height: 25px;
    padding: 5px;
}
.view-options .icon {
    width: 14px;
    height: 14px;
}
.filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 22px;
    align-items: center;
}
.search-field {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--input);
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 1;
    padding: 0 12px;
    min-width: 0;
}
.search-field .icon {
    width: 15px;
    height: 15px;
    color: var(--dim);
}
.search-field input {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--text);
    padding: 11px 0;
    font-size: 11px;
    outline: none;
}
.search-field:focus-within {
    border-color: var(--accent);
}
input::placeholder,textarea::placeholder {
    color: var(--dim);
    opacity: 1;
}
.search-field kbd {
    padding: 0 5px;
}
.filter-controls {
    display: flex;
    gap: 8px;
}
.filter-controls select {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 26px 10px 12px;
    font-size: 10px;
    min-height: 38px;
}
.active-filters {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: -12px;
    margin-bottom: 18px;
}
.active-filters:empty {
    display: none;
}
.filter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4px 10px;
    color: var(--accent);
    background: var(--panel);
}
/* Collection cards */
.tone-ember {
    --tone: #e3a080;
    --wash: #2c2426;
}
.tone-indigo {
    --tone: #a5a8db;
    --wash: #252738;
}
.tone-sage {
    --tone: #9dbfad;
    --wash: #202d2c;
}
.tone-rose {
    --tone: #cea2b6;
    --wash: #30232f;
}
.tone-sand {
    --tone: #d3bf91;
    --wash: #2d2b24;
}
:root[data-theme=light] .tone-ember {
    --tone: #a95c37;
    --wash: #f7eae3;
}
:root[data-theme=light] .tone-indigo {
    --tone: #6564a0;
    --wash: #efedf7;
}
:root[data-theme=light] .tone-sage {
    --tone: #48765d;
    --wash: #eaf3eb;
}
:root[data-theme=light] .tone-rose {
    --tone: #9c5c7b;
    --wash: #f7eaf0;
}
:root[data-theme=light] .tone-sand {
    --tone: #857042;
    --wash: #f5efe1;
}
.spark-grid {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 17px;
    align-items: stretch;
}
.spark-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 11px;
    min-width: 0;
    min-height: 266px;
    transition: border-color .18s,transform .18s;
    isolation: isolate;
}
.spark-card:hover {
    border-color: color-mix(in srgb,var(--tone) 50%,var(--line));
    transform: translateY(-2px);
    z-index: 2;
}
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 17px 3px;
}
.kind-label {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--tone);
    font-size: 9px;
    letter-spacing: .4px;
}
.kind-label .icon {
    width: 13px;
    height: 13px;
}
.favorite-button {
    border: 0;
    background: transparent;
    border-radius: 6px;
    width: 28px;
    height: 28px;
    padding: 6px;
    color: var(--dim);
}
.favorite-button .icon {
    width: 14px;
    height: 14px;
}
.favorite-button.is-favorite {
    color: var(--tone);
}
.favorite-button.is-favorite .icon {
    fill: var(--tone);
}
.card-main {
    display: block;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 10px 19px 14px;
    color: var(--text);
    flex: 1;
    width: 100%;
}
.card-main h3 {
    font: 400 21px/1.28 var(--serif);
    letter-spacing: -.45px;
    margin-bottom: 13px;
    overflow-wrap: anywhere;
}
.card-main .card-why {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card-excerpt {
    margin-top: 11px;
    color: var(--dim);
    font-size: 12px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
}
.card-art {
    height: 62px;
    background: var(--wash);
    border-radius: 6px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
    color: var(--tone);
}
.card-art::before {
    content: '';
    position: absolute;
    width: 140px;
    height: 140px;
    border: 1px solid currentColor;
    opacity: .28;
    border-radius: 50%;
    left: 25px;
    top: -72px;
}
.card-art::after {
    content: '';
    position: absolute;
    width: 170px;
    height: 90px;
    border: 1px solid currentColor;
    opacity: .2;
    border-radius: 50%;
    transform: rotate(-23deg);
    right: -25px;
    top: 14px;
}
.art-star {
    position: absolute;
    right: 30px;
    top: -22px;
    font: 100px var(--serif);
    opacity: .35;
}
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 0 19px 15px;
}
.card-tags .tag-chip {
    font-size: 10px;
    padding: 2px 6px;
    max-width: 120px;
    border-color: var(--line-soft);
}
.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid var(--line-soft);
    padding: 8px 13px 8px 19px;
    min-height: 43px;
    color: var(--dim);
    font-size: 10px;
}
.card-footer .state-label {
    display: flex;
    align-items: center;
    gap: 5px;
}
.state-indicator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--dim);
}
.state-label.inbox .state-indicator {
    background: var(--tone);
}
.card-footer .card-date {
    margin-left: auto;
}
.card-menu {
    position: relative;
}
.card-menu summary {
    list-style: none;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 1px;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
}
.card-menu summary::-webkit-details-marker {
    display: none;
}
.card-menu summary:hover {
    color: var(--text);
    background: var(--raised);
}
.card-menu[open] {
    z-index: 25;
}
.menu-items {
    position: absolute;
    bottom: 26px;
    right: 0;
    min-width: 150px;
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 5px;
    box-shadow: var(--shadow);
    z-index: 30;
}
.menu-items button {
    display: flex;
    width: 100%;
    gap: 9px;
    align-items: center;
    padding: 9px;
    border: 0;
    background: none;
    color: var(--text);
    font-size: 11px;
    text-align: left;
    border-radius: 4px;
    white-space: nowrap;
}
.menu-items button:hover {
    background: var(--panel);
}
.menu-items .icon {
    width: 13px;
    height: 13px;
}
.menu-items .danger {
    color: #e7a2a0;
}
.spark-grid.view-list {
    grid-template-columns: 1fr;
}
.view-list .spark-card {
    display: grid;
    grid-template-columns: 100px minmax(0,1fr) 160px;
    min-height: 100px;
    padding: 8px 12px;
}
.view-list .card-top {
    align-self: start;
    padding: 9px 4px;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}
.view-list .card-main {
    padding: 8px 15px;
}
.view-list .card-main h3 {
    font-size: 20px;
    margin-bottom: 6px;
}
.view-list .card-main .card-why {
    -webkit-line-clamp: 2;
}
.view-list .card-art,.view-list .card-excerpt,.view-list .card-tags {
    display: none;
}
.view-list .card-footer {
    border: 0;
    align-self: center;
    padding: 8px;
    flex-wrap: wrap;
}
.empty-state {
    grid-column: 1/-1;
    text-align: center;
    padding: 65px 30px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: color-mix(in srgb,var(--panel) 40%,transparent);
}
.empty-state>.icon {
    width: 33px;
    height: 33px;
    color: var(--accent);
    margin-bottom: 17px;
}
.empty-state h3 {
    font: 400 29px var(--serif);
    margin-bottom: 13px;
}
.empty-state p {
    color: var(--muted);
    font-size: 12px;
    max-width: 430px;
    margin: 0 auto 23px;
    line-height: 1.8;
}
.empty-state .button-row {
    justify-content: center;
}
.trail-tile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    text-align: left;
    min-height: 200px;
}
.trail-tile:hover {
    border-color: var(--tone);
}
.trail-tile>.icon {
    color: var(--tone);
    width: 24px;
    height: 24px;
}
.trail-tile h3 {
    font: 400 25px var(--serif);
    overflow-wrap: anywhere;
}
.trail-tile p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.75;
}
.trail-tile small {
    font-size: 10px;
    color: var(--tone);
    margin-top: auto;
}
.load-more {
    display: flex;
    margin: 30px auto;
}
.workspace-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid var(--line-soft);
    padding: 22px 0 26px;
    margin-top: 40px;
    color: var(--dim);
    font-size: 10px;
}
.workspace-footer>span>span {
    color: var(--accent);
    margin-right: 9px;
}
.workspace-footer .text-button {
    font-size: 10px;
}
/* Forms and dialogs */
dialog {
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--panel);
    padding: 0;
    box-shadow: var(--shadow);
}
dialog::backdrop {
    background: #060a12b8;
    backdrop-filter: blur(4px);
}
.modal {
    width: min(680px,calc(100% - 32px));
    max-height: 90dvh;
    border-radius: 15px;
    overflow: auto;
}
.modal-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: flex-start;
    padding: 27px 30px 22px;
    border-bottom: 1px solid var(--line-soft);
}
.modal-header h2 {
    font: 400 34px var(--serif);
    letter-spacing: -1px;
    margin-top: 10px;
}
.modal-header .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--accent);
}
.modal-header .icon-button {
    margin-right: -9px;
    margin-top: -6px;
}
.modal-body {
    padding: 25px 30px 27px;
}
.modal-footer {
    border-top: 1px solid var(--line-soft);
    padding: 17px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--panel);
    position: sticky;
    bottom: 0;
    z-index: 1;
}
.modal-footer>div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.modal-footer small {
    font-size: 9px;
}
.modal-footer .button kbd {
    margin-left: 10px;
}
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 550;
    margin-bottom: 20px;
}
.field-hint {
    font-size: 10px;
    font-weight: 400;
    color: var(--dim);
    margin-top: -4px;
}
.field input,.field textarea,.field select {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    background: var(--input);
    color: var(--text);
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}
.field textarea {
    resize: vertical;
    min-height: 74px;
}
.field.compact {
    margin-bottom: 0;
}
.check-line {
    display: flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}
.check-line input {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}
.form-error {
    border: 1px solid #bf747455;
    background: #ad535313;
    padding: 11px 13px;
    border-radius: 7px;
    color: #ecb8b6;
    line-height: 1.7;
    margin: 16px 0;
    font-size: 12px;
}
:root[data-theme=light] .form-error {
    color: #9a3939;
}
.form-fields {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.kind-switch {
    display: flex;
    width: fit-content;
    gap: 4px;
    background: var(--input);
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 22px;
}
.kind-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.kind-switch label span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    padding: 6px 19px;
    border-radius: 5px;
    cursor: pointer;
}
.kind-switch input:checked+span {
    color: var(--text);
    background: var(--raised);
}
.kind-switch input:focus-visible+span {
    outline: 2px solid var(--accent);
}
.trail-picker {
    padding: 0;
    margin: 0 0 23px;
    border: 0;
    min-width: 0;
}
.trail-picker legend,.field-label {
    font-size: 12px;
    font-weight: 550;
    margin-bottom: 10px;
    display: block;
}
.trail-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 8px 0;
}
.trail-choice {
    position: relative;
}
.trail-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.trail-choice span {
    display: block;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
    font-size: 11px;
    cursor: pointer;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trail-choice input:checked+span {
    color: var(--tone);
    border-color: var(--tone);
    background: var(--wash);
}
.trail-choice input:focus-visible+span {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.editor-bottom-fields {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}
.editor-bottom-fields .field-label {
    font-size: 11px;
}
.color-options {
    display: flex;
    gap: 9px;
    align-items: center;
}
.swatch {
    position: relative;
    display: block;
    cursor: pointer;
}
.swatch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.swatch>span {
    display: block;
    width: 23px;
    height: 23px;
    background: var(--tone);
    border: 5px solid var(--panel);
    outline: 1px solid transparent;
    border-radius: 50%;
}
.swatch input:checked+span {
    outline-color: var(--tone);
}
.swatch input:focus-visible+span {
    outline: 2px solid var(--text);
}
.favorite-field {
    padding-bottom: 11px;
}
.conflict-panel {
    border: 1px solid var(--accent);
    border-radius: 9px;
    padding: 17px;
    margin-top: 20px;
    font-size: 12px;
}
.conflict-panel h3 {
    margin-bottom: 8px;
}
.conflict-panel p {
    margin-bottom: 12px;
}
.conflict-panel .muted {
    white-space: pre-wrap;
    max-height: 150px;
    overflow: auto;
}
.trail-modal {
    max-width: 520px;
}
.settings-modal {
    max-width: 650px;
}
.settings-section {
    padding: 0 0 28px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
}
.settings-section h3 {
    font: 400 24px var(--serif);
    letter-spacing: -.4px;
    margin-bottom: 12px;
}
.settings-section p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 17px;
}
.settings-section small {
    font-size: 10px;
    line-height: 1.7;
}
.settings-section .field {
    margin-top: 15px;
    margin-bottom: 12px;
}
.file-picker {
    display: flex;
    flex-direction: column;
    gap: 11px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    padding: 17px;
    color: var(--muted);
    font-size: 11px;
}
.file-picker input {
    font-size: 11px;
    width: 100%;
}
.file-picker input::file-selector-button {
    background: var(--raised);
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--text);
    padding: 6px 10px;
    margin-right: 8px;
}
.import-preview {
    margin-top: 16px;
    background: var(--input);
    padding: 15px;
    border-radius: 8px;
}
.settings-version {
    font-size: 10px;
}
.danger-outline {
    color: #e4a4a1;
    border-color: #7e4f51;
}
.help-intro {
    font: 400 25px/1.5 var(--serif);
    margin-bottom: 25px;
}
.help-concepts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 35px;
}
.help-concepts h3 {
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--accent);
}
.help-concepts p {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.8;
}
.shortcuts {
    margin: 20px 0 30px;
}
.shortcuts>div {
    display: flex;
    align-items: center;
    margin-bottom: 13px;
}
.shortcuts dt {
    width: 145px;
}
.shortcuts dd {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}
.help-modal .modal-body>p.muted {
    font-size: 11px;
    line-height: 1.9;
}
/* Reading panel */
.detail-panel {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(580px,100%);
    height: 100dvh;
    max-width: 100%;
    max-height: 100%;
    border-radius: 16px 0 0 16px;
    border-right: 0;
    overflow-y: auto;
}
.detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 19px 25px;
    border-bottom: 1px solid var(--line-soft);
}
.detail-header .kind-label {
    font-size: 11px;
}
.detail-header-actions {
    display: flex;
    gap: 6px;
}
.detail-body {
    padding: 33px;
}
.detail-body h2 {
    font: 400 38px/1.2 var(--serif);
    letter-spacing: -1.2px;
    overflow-wrap: anywhere;
    margin-bottom: 18px;
}
.detail-link {
    display: flex;
    gap: 8px;
    align-items: center;
    width: fit-content;
    color: var(--tone);
    font-size: 11px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.detail-link .icon {
    width: 13px;
    height: 13px;
}
.detail-why {
    margin: 28px 0;
    padding: 16px 18px;
    background: var(--wash);
    border-left: 2px solid var(--tone);
    border-radius: 0 8px 8px 0;
}
.detail-why .eyebrow {
    color: var(--tone);
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
}
.detail-why p {
    font-size: 13px;
    line-height: 1.85;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.detail-note {
    font-size: 13px;
    line-height: 1.95;
    color: var(--muted);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    tab-size: 2;
}
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 25px 0;
}
.detail-trails {
    padding: 24px 0;
    border-top: 1px solid var(--line-soft);
}
.detail-trails .eyebrow {
    font-size: 8px;
    margin-bottom: 13px;
}
.detail-trails>div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.trail-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: transparent;
    color: var(--muted);
    padding: 7px 10px;
    font-size: 11px;
}
.trail-pill:hover {
    border-color: var(--tone);
    color: var(--tone);
}
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}
.detail-actions .button {
    font-size: 11px;
    min-height: 36px;
    padding: 7px 11px;
}
.detail-meta {
    font-size: 9px;
    color: var(--dim);
    margin: 23px 0 30px;
    line-height: 1.9;
}
.related-section {
    border-top: 1px solid var(--line-soft);
    padding-top: 23px;
}
.related-section h3 {
    font: 400 25px var(--serif);
    margin-bottom: 8px;
}
.related-section>p {
    color: var(--dim);
    font-size: 10px;
    margin-bottom: 15px;
}
.related-card {
    display: block;
    width: 100%;
    text-align: left;
    background: var(--input);
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    padding: 13px 15px;
    margin-bottom: 8px;
    color: var(--text);
}
.related-card:hover {
    border-color: var(--dim);
}
.related-card strong {
    font-size: 12px;
    font-weight: 500;
    display: block;
}
.related-card small {
    font-size: 9px;
    color: var(--dim);
    display: block;
    margin-top: 5px;
}
.detail-loading {
    padding: 40px;
    color: var(--muted);
}
/* Command palette and notices */
.command-modal {
    width: min(600px,calc(100% - 32px));
    margin-top: 15dvh;
}
.command-search {
    display: flex;
    gap: 13px;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}
.command-search .icon {
    color: var(--accent);
}
.command-search input {
    width: 100%;
    border: 0;
    background: transparent;
    outline: none;
    color: var(--text);
    font-size: 13px;
}
.command-results {
    padding: 10px;
    max-height: 50dvh;
    overflow: auto;
}
.command-result {
    display: flex;
    align-items: center;
    gap: 13px;
    background: none;
    border: 0;
    border-radius: 7px;
    color: var(--muted);
    padding: 13px 12px;
    width: 100%;
    text-align: left;
    font-size: 12px;
}
.command-result:hover,.command-result:focus {
    background: var(--raised);
    color: var(--text);
    outline: none;
}
.command-result:first-child {
    background: var(--raised);
}
.command-result kbd {
    margin-left: auto;
}
.command-footer {
    display: flex;
    gap: 15px;
    padding: 13px 20px;
    border-top: 1px solid var(--line-soft);
    color: var(--dim);
    font-size: 9px;
}
.command-footer span:last-child {
    margin-left: auto;
}
.notice-banner {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin: 16px 40px 0;
    border: 1px solid color-mix(in srgb,var(--accent) 35%,var(--line));
    border-radius: 8px;
    background: var(--panel);
    padding: 12px 15px;
    color: var(--accent);
    font-size: 12px;
}
.notice-banner.error {
    color: #edb0ae;
    border-color: #804d5266;
}
.toast {
    pointer-events: none;
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 22px;
    align-items: center;
    max-width: calc(100% - 32px);
    padding: 13px 18px;
    border-radius: 9px;
    background: var(--raised);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 12px;
    z-index: 100;
}
.toast .text-button {
    pointer-events: auto;
    color: var(--accent);
    white-space: nowrap;
}
.noscript {
    position: fixed;
    inset: auto 20px 20px;
    z-index: 999;
    background: var(--panel);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
}
body.sidebar-open {
    overflow: hidden;
}
@media(min-width:1750px) {
    .hero h1 {
        font-size: 70px;
    }
    .hero {
        padding-top: 55px;
        min-height: 310px;
    }
    .spark-grid {
        gap: 22px;
    }
    .spark-card {
        min-height: 285px;
    }
    .card-main h3 {
        font-size: 25px;
    }
    .card-main .card-why {
        font-size: 13px;
    }
    .card-excerpt {
        font-size: 12px;
    }
    .topbar {
        padding: 0 50px;
    }
    .collection-content {
        padding: 0 50px;
    }
    .card-main {
        padding: 12px 23px 18px;
    }
    .card-tags {
        padding: 0 23px 17px;
    }
}
@media(max-width:1200px) {
    :root {
        --sidebar-width: 214px;
    }
    .sidebar {
        padding-left: 13px;
        padding-right: 13px;
    }
    .topbar {
        padding: 0 26px;
    }
    .collection-content {
        padding: 0 26px;
    }
    .hero {
        gap: 24px;
        grid-template-columns: 1fr 1fr;
    }
    .hero h1 {
        font-size: 50px;
    }
    .spark-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
    .command-button span:not(#command-icon),.command-button kbd {
        display: none;
    }
    .command-button {
        width: 35px;
        padding: 7px;
    }
    .trail-preview {
        min-width: 170px;
    }
    .topbar-crumb {
        font-size: 8px;
    }
    .demo-badge {
        font-size: 7px;
    }
    .auth-story {
        padding: 35px;
    }
    .auth-panel {
        padding: 35px;
    }
    .revisit-card {
        padding: 22px;
    }
    .notice-banner {
        margin-left: 26px;
        margin-right: 26px;
    }
}
@media(max-width:850px) {
    :root {
        --sidebar-width: 0px;
    }
    .sidebar {
        width: 264px;
        transform: translateX(-100%);
        transition: transform .2s;
        z-index: 60;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-scrim {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 50;
        background: #060a12a0;
        border: 0;
        backdrop-filter: blur(2px);
    }
    .mobile-only {
        display: inline-flex;
    }
    .topbar {
        height: 70px;
        padding: 0 22px;
    }
    .topbar-crumb {
        font-size: 9px;
    }
    .topbar-left {
        gap: 6px;
    }
    .collection-content {
        padding: 0 25px;
    }
    .hero {
        padding-top: 30px;
        min-height: 235px;
        gap: 25px;
    }
    .hero h1 {
        font-size: 51px;
    }
    .topbar-actions {
        gap: 5px;
    }
    .trail-strip {
        margin-bottom: 28px;
    }
    .auth-screen {
        grid-template-columns: 1fr 1fr;
    }
    .auth-story {
        padding: 30px;
    }
    .auth-story h1 {
        font-size: 62px;
    }
    .auth-story p {
        font-size: 12px;
    }
    .auth-panel {
        padding: 28px;
    }
    .auth-panel h2 {
        font-size: 36px;
    }
    .auth-orbit {
        width: 180px;
        transform: scale(.75);
        transform-origin: left center;
    }
    .demo-badge {
        display: none;
    }
}
@media(max-width:580px) {
    .topbar {
        padding: 0 14px;
        height: 66px;
    }
    .topbar-crumb {
        font-size: 8px;
        max-width: 120px;
    }
    .topbar-crumb>span {
        margin: 0 5px;
    }
    .topbar-crumb strong {
        display: none;
    }
    .topbar-crumb>span {
        display: none;
    }
    .topbar-actions .command-button {
        display: none;
    }
    .topbar-actions .button.primary {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 11px;
        gap: 6px;
    }
    .topbar-actions #resume-draft {
        font-size: 9px;
        max-width: 70px;
        line-height: 1.35;
        padding: 5px;
    }
    .topbar-actions .icon-button {
        width: 30px;
        height: 36px;
        padding: 7px;
    }
    .collection-content {
        padding: 0 20px;
    }
    .hero {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px 0 24px;
    }
    .hero h1 {
        font-size: 53px;
        margin: 12px 0 15px;
        letter-spacing: -2.6px;
    }
    .hero-title-simple {
        font-size: 40px!important;
    }
    .eyebrow {
        font-size: 8px;
    }
    .hero-description {
        font-size: 12px;
        line-height: 1.8;
        max-width: 320px;
    }
    .revisit-card {
        min-height: 145px;
        padding: 18px 20px;
    }
    .revisit-card h2 {
        font-size: 21px;
        margin: 12px 0 8px;
    }
    .revisit-card p {
        font-size: 11px;
        max-width: 87%;
        -webkit-line-clamp: 2;
    }
    .revisit-meta {
        margin-top: 11px;
        font-size: 8px;
    }
    .revisit-arrow {
        right: 16px;
        bottom: 16px;
        width: 26px;
        height: 26px;
    }
    .revisit-decoration {
        font-size: 190px;
        top: -75px;
    }
    .trail-strip {
        gap: 10px;
        margin-bottom: 27px;
    }
    .trail-preview {
        min-width: 175px;
        padding: 11px 12px;
    }
    .trail-preview strong {
        font-size: 11px;
    }
    .trail-preview small {
        font-size: 9px;
    }
    .library-heading h2 {
        font-size: 23px;
    }
    .library-heading .muted {
        font-size: 9px;
    }
    .filter-bar {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
        margin-bottom: 18px;
    }
    .search-field input {
        font-size: 16px;
        padding: 10px 0;
    }
    .search-field input::placeholder {
        font-size: 12px;
    }
    .filter-controls {
        justify-content: space-between;
    }
    .filter-controls select {
        width: calc(50% - 5px);
        font-size: 12px;
        min-height: 37px;
    }
    .spark-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .spark-card {
        min-height: 256px;
    }
    .card-top {
        padding: 12px 16px 0;
    }
    .kind-label {
        font-size: 10px;
    }
    .card-main {
        padding: 8px 20px 15px;
    }
    .card-main h3 {
        font-size: 26px;
        margin-bottom: 12px;
    }
    .card-main .card-why {
        font-size: 13px;
        line-height: 1.9;
    }
    .card-excerpt {
        font-size: 12px;
    }
    .card-art {
        height: 70px;
    }
    .card-tags {
        padding: 0 20px 17px;
    }
    .card-tags .tag-chip {
        font-size: 11px;
        padding: 5px 8px;
    }
    .card-footer {
        font-size: 11px;
        min-height: 47px;
    }
    .favorite-button {
        width: 38px;
        height: 38px;
    }
    .favorite-button .icon {
        width: 17px;
        height: 17px;
    }
    .card-menu summary {
        padding: 9px;
        font-size: 17px;
    }
    .menu-items {
        min-width: 180px;
        bottom: 35px;
    }
    .menu-items button {
        font-size: 13px;
        padding: 12px;
    }
    .workspace-footer {
        margin-top: 30px;
        flex-direction: column;
        gap: 6px;
        font-size: 9px;
    }
    .workspace-footer .text-button {
        font-size: 9px;
    }
    .empty-state {
        padding: 45px 20px;
    }
    .empty-state h3 {
        font-size: 27px;
    }
    .view-list .spark-card {
        display: flex;
        min-height: 150px;
        padding: 0;
    }
    .view-list .card-top {
        padding: 8px 13px;
        justify-content: space-between;
        flex-wrap: nowrap;
        align-self: stretch;
    }
    .view-list .card-main {
        padding: 0 18px 12px;
    }
    .view-list .card-footer {
        align-self: stretch;
        padding: 4px 12px 4px 18px;
        border-top: 1px solid var(--line-soft);
    }
    .view-list .card-main h3 {
        font-size: 24px;
    }
    .modal {
        width: calc(100% - 20px);
        max-height: 94dvh;
        border-radius: 13px;
    }
    .modal-header {
        padding: 22px 21px 18px;
    }
    .modal-header h2 {
        font-size: 30px;
    }
    .modal-body {
        padding: 21px;
    }
    .modal-footer {
        padding: 14px 21px;
    }
    .modal-footer .button kbd {
        display: none;
    }
    .field input,.field textarea,.field select {
        font-size: 16px;
    }
    .field input::placeholder,.field textarea::placeholder {
        font-size: 12px;
    }
    .editor-bottom-fields {
        gap: 13px;
        flex-wrap: wrap;
    }
    .editor-bottom-fields>.field {
        max-width: 150px;
    }
    .editor-bottom-fields .favorite-field {
        padding: 10px 0 0;
    }
    .trail-choice span {
        font-size: 12px;
    }
    .modal-footer small {
        max-width: 145px;
        font-size: 9px;
    }
    .modal-footer>.small-copy {
        max-width: 150px;
        font-size: 10px;
    }
    .detail-body {
        padding: 27px 23px;
    }
    .detail-body h2 {
        font-size: 35px;
    }
    .detail-panel {
        border-radius: 0;
    }
    .detail-header {
        padding: 15px 16px;
    }
    .detail-why p,.detail-note {
        font-size: 14px;
    }
    .detail-meta {
        font-size: 10px;
    }
    .detail-link {
        font-size: 12px;
    }
    .detail-actions .button {
        min-height: 41px;
        font-size: 12px;
    }
    .help-concepts {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .command-modal {
        margin-top: 12dvh;
    }
    .command-search {
        padding: 16px;
    }
    .command-search input {
        font-size: 16px;
    }
    .command-search input::placeholder {
        font-size: 11px;
    }
    .command-result {
        font-size: 13px;
        padding: 14px 10px;
    }
    .command-footer span:last-child {
        display: none;
    }
    .notice-banner {
        margin: 12px 20px 0;
        font-size: 11px;
        gap: 10px;
    }
    .toast {
        bottom: 15px;
        font-size: 11px;
        padding: 12px 15px;
        width: max-content;
    }
    .auth-screen {
        display: flex;
        flex-direction: column;
        min-height: 100dvh;
    }
    .auth-story {
        padding: 25px 28px 30px;
        min-height: 0;
    }
    .auth-story .brand-word {
        font-size: 29px;
    }
    .auth-story .brand img {
        width: 29px;
        height: 29px;
    }
    .auth-story-copy {
        margin: 35px 0 0;
    }
    .auth-story-copy>.eyebrow {
        font-size: 7px;
    }
    .auth-story h1 {
        font-size: 57px;
        letter-spacing: -2.5px;
        margin: 16px 0;
    }
    .auth-story p {
        font-size: 11px;
        line-height: 1.8;
    }
    .auth-orbit,.auth-foot {
        display: none;
    }
    .auth-panel {
        padding: 30px 28px 35px;
        align-items: flex-start;
    }
    .auth-form-wrap {
        width: 100%;
    }
    .auth-panel h2 {
        font-size: 31px;
        margin: 9px 0;
    }
    .auth-panel .muted {
        font-size: 12px;
    }
    .auth-panel form {
        margin-top: 23px;
    }
    .auth-note {
        margin-top: 25px;
        padding-top: 20px;
    }
    .auth-panel .primary {
        margin-top: 22px;
    }
    .check-line {
        font-size: 11px;
    }
    .settings-section h3 {
        font-size: 23px;
    }
}
@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        animation: none!important;
        transition: none!important;
        scroll-behavior: auto!important;
    }
}

/* Shared collection: explicit grants, readable history, and comfortable small-screen controls. */
.agents-modal { width: min(760px, calc(100vw - 32px)); }
.history-modal { width: min(800px, calc(100vw - 32px)); }
.consent-modal { width: min(620px, calc(100vw - 32px)); }
.settings-section .connection-lede { font-family: Georgia, serif; font-size: 1.65rem; color: var(--text); margin-top: 0; }
.endpoint-row { display: flex; align-items: stretch; gap: 10px; margin: 20px 0; }
.endpoint-row input { flex: 1; min-width: 0; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.connection-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.connection-row > div { min-width: 0; overflow-wrap: anywhere; }
.connection-row > button, .connection-row > .tag-chip { flex: 0 0 auto; }
.connection-meta { font-size: .82rem; margin: 6px 0; color: var(--muted); }
.empty-inline { padding: 18px 0; color: var(--muted); }
.token-reveal { border: 1px solid var(--accent); border-radius: 12px; padding: 20px; margin-top: 18px; }
.token-reveal input { width: 100%; margin-bottom: 15px; }
.consent-destination { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 24px 0; }
.consent-destination code { display: block; overflow-wrap: anywhere; margin-top: 10px; font-size: .82rem; }
.consent-modal h2 { font-size: 2rem; overflow-wrap: anywhere; }
.consent-modal p { line-height: 1.65; }
.history-name { font: 1.4rem Georgia, serif; overflow-wrap: anywhere; }
.version-list { display: grid; gap: 8px; margin: 24px 0; }
.version-row { display: grid; grid-template-columns: minmax(110px, .7fr) 1fr; text-align: left; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text); gap: 6px 14px; }
.version-row:hover, .version-row:focus-visible { border-color: var(--accent); }
.version-row > span { overflow-wrap: anywhere; }
.version-row small { grid-column: 1 / -1; color: var(--muted); }
.version-preview { border-top: 1px solid var(--line); padding-top: 20px; overflow-wrap: anywhere; }
.version-preview .detail-note { max-height: 340px; overflow: auto; padding-right: 12px; }
.version-why { background: var(--panel); border-left: 2px solid var(--accent); padding: 16px; margin: 18px 0; }
.version-why p { margin-bottom: 0; white-space: pre-wrap; }
.activity-list { display: grid; gap: 10px; margin-top: 22px; }
.activity-row { text-align: left; display: grid; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 18px; color: var(--text); overflow-wrap: anywhere; }
.activity-row:hover { border-color: var(--accent); }
.activity-actor { color: var(--accent); font-size: .76rem; }
@media (max-width: 600px) {
    .endpoint-row { flex-direction: column; }
    .connection-row { align-items: flex-start; }
    .connection-row button { padding-inline: 10px; }
    .version-row { grid-template-columns: 1fr; }
    .agents-modal, .history-modal, .consent-modal { width: calc(100vw - 20px); }
}

.endpoint-row input, .token-reveal input { padding: 12px; background: var(--input); border: 1px solid var(--line); border-radius: 8px; color: var(--text); }

/* Idea homes. The project is primary; code is supporting context. */
.projects-hero { align-items: center; }
.project-invitation { max-width: 380px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: grid; gap: 16px; }
.project-invitation h2 { font: 25px var(--serif); }
.project-invitation .button { justify-self: start; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(310px, 100%), 1fr)); gap: 22px; }
.project-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 24px; display: flex; flex-direction: column; gap: 15px; }
.project-card:hover { border-color: var(--tone, var(--accent)); }
.project-card-top { display: flex; align-items: center; justify-content: space-between; color: var(--tone, var(--accent)); }
.project-card-title { background: none; border: 0; text-align: left; padding: 0; font: 27px/1.2 var(--serif); overflow-wrap: anywhere; }
.project-card-title:hover { color: var(--tone, var(--accent)); }
.project-description { color: var(--muted); min-height: 3.1em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.project-card-counts { color: var(--muted); font-size: 12px; }
.project-movement { border-top: 1px solid var(--line-soft); padding-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: auto; }
.project-movement div { display: grid; gap: 4px; }
.project-movement span { color: var(--dim); font-size: 9px; letter-spacing: .12em; }
.project-movement time { color: var(--muted); font-size: 11px; }
.catchup-state { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; }
.catchup-state.unchanged { color: var(--muted); }
.catchup-state .icon { width: 14px; height: 14px; }
.commit-figure { margin: 0; min-width: 0; }
.commit-chart { width: 100%; height: 46px; display: block; }
.commit-bar { fill: var(--tone, var(--accent)); }
.commit-empty { fill: var(--line); }
.commit-figure figcaption { color: var(--dim); font-size: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; padding-top: 6px; }
.repo-unobserved { font-size: 12px; padding: 12px 0; min-height: 62px; }
.project-room-heading { margin: 22px 0 32px; display: grid; gap: 16px; }
.project-room-heading h1 { font: 48px/1.12 var(--serif); overflow-wrap: anywhere; }
.project-room-heading .hero-description { max-width: 760px; }
.project-breadcrumb { padding-top: 12px; }
.project-room { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); gap: 26px; align-items: start; }
.project-main, .project-context { display: grid; gap: 24px; min-width: 0; }
.project-section { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; background: var(--panel); }
.project-section h2 { font: 24px var(--serif); }
.project-section h3 { font: 20px var(--serif); }
.project-section .preserve-text { line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.return-point { border-left: 3px solid var(--accent); }
.project-empty { color: var(--muted); padding: 14px 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.project-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-spark-list { display: grid; gap: 9px; }
.project-spark { border: 1px solid var(--line-soft); border-radius: 9px; padding: 14px; background: var(--input); display: flex; align-items: start; gap: 12px; text-align: left; min-width: 0; }
.project-spark > span:nth-child(2) { flex: 1; min-width: 0; }
.project-spark strong { font-weight: 500; overflow-wrap: anywhere; }
.project-spark small { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: var(--muted); margin-top: 5px; overflow-wrap: anywhere; }
.project-spark > .muted { font-size: 10px; }
.project-spark:hover { border-color: var(--accent); }
.project-links { display: flex; gap: 8px; flex-wrap: wrap; }
.former-names { font-size: 12px; }
.project-drafts { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.repository-card { display: grid; gap: 13px; padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.repository-card .text-button { font-size: 12px; overflow-wrap: anywhere; white-space: normal; }
.visibility-badge { border: 1px solid var(--line); border-radius: 30px; padding: 2px 8px; color: var(--muted); font-size: 10px; }
.commit-list { padding: 0; margin: 0; list-style: none; display: grid; gap: 12px; }
.commit-list li { display: grid; gap: 3px; }
.commit-list small { font-size: 10px; }
.catchup-card { background: var(--panel); }
.catchup-card details { border-top: 1px solid var(--line-soft); padding-top: 12px; }
.catchup-card details p { padding-top: 10px; }
.project-modal { width: min(820px, calc(100vw - 28px)); max-height: calc(100dvh - 36px); }
.project-modal .modal-header h2 { font: 28px var(--serif); }
.project-panel-body { display: grid; gap: 18px; }
.project-panel-body > p { overflow-wrap: anywhere; }
.project-panel-body input:not([type=checkbox]):not([type=radio]), .project-panel-body select { min-height: 42px; }
.project-fields { border: 0; margin: 0; padding: 0; display: grid; gap: 20px; min-width: 0; }
.project-fields textarea { resize: vertical; }
.project-intro { margin-bottom: 8px; color: var(--muted); }
.project-conflict { padding: 16px; border: 1px solid var(--accent); margin-top: 14px; border-radius: 9px; display: grid; gap: 12px; }
.project-conflict .preserve-text, .project-panel-body .preserve-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.repository-candidates, .version-list, .observed-commits, .catchup-history-list { display: grid; gap: 9px; }
.repository-candidate { width: 100%; display: block; text-align: left; padding: 13px 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); overflow-wrap: anywhere; }
.repository-candidate:hover { background: var(--raised); border-color: var(--accent); }
.project-version-detail { display: grid; gap: 16px; }
.discussion-leads { display: grid; gap: 16px; }
.discussion-lead { border: 1px solid var(--line); background: var(--input); border-radius: 12px; padding: 22px; display: grid; gap: 12px; }
.discussion-lead h3 { font: 24px var(--serif); }
.discussion-lead .text-button { justify-self: start; }
.recorded-topic { border-left: 2px solid var(--accent); padding-left: 14px; }
.project-coverage { border-left: 2px solid var(--line); padding-left: 12px; }
#projects-more { margin-top: 22px; }
@media (max-width: 1150px) { .project-room { grid-template-columns: 1fr; } .project-context { grid-template-columns: repeat(2, minmax(0,1fr)); } .project-invitation { max-width: 330px; } }
@media (max-width: 780px) { .projects-hero { display: grid; gap: 24px; } .project-invitation { max-width: none; width: 100%; } .project-context { grid-template-columns: 1fr; } .project-grid { grid-template-columns: 1fr; } .project-room-heading h1 { font-size: 36px; } .project-section { padding: 18px; } .project-card { padding: 20px; } .project-room { gap: 20px; } }
@media (prefers-reduced-motion: reduce) { .project-card, .project-spark { transition: none; } }

#project-filter, .project-panel-body select { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--muted); min-height: 42px; max-width: 100%; }
.project-links button { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--input); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; text-align: left; }
.project-links button:hover { color: var(--accent); border-color: var(--accent); }
.project-panel-body .trail-choice input:checked+span { color: var(--accent); border-color: var(--accent); background: var(--raised); }
.project-panel-body .trail-choice span { max-width: min(620px, 100%); }
.project-fields .trail-picker { border: 1px solid var(--line); border-radius: 8px; padding: 12px; min-width: 0; }
.project-fields .trail-picker legend { color: var(--muted); font-size: 12px; padding: 0 6px; }
@media (max-width: 780px) { #projects-content .filter-bar { flex-wrap: wrap; } #projects-content .filter-bar .search-field { width: 100%; } }

/* Navigation and reading surfaces: one route, two input modes. */
.mobile-nav { display: none; }
body:has(dialog[open]) { overflow: hidden; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--bg, #11151e); }
.project-card-title { display: inline-block; color: var(--text); text-decoration: none; }
.project-card-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.project-pin { margin: -8px -8px -8px 0; flex-shrink: 0; }
.project-pin[aria-pressed="true"] { color: var(--accent); }
.project-pin[aria-pressed="true"] svg { fill: color-mix(in srgb, var(--accent) 20%, transparent); }
.layout-toggle { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.layout-toggle [aria-pressed="true"] { background: var(--raised); color: var(--accent); }
#projects-content .search-field { flex: 1; min-width: 0; }
#project-search { min-width: 0; }
.project-grid.compact { grid-template-columns: 1fr; gap: 10px; }
.project-grid.compact .project-card { display: grid; grid-template-columns: minmax(180px, 1.4fr) minmax(180px, 1fr); gap: 8px 24px; padding: 18px 22px; }
.project-grid.compact .project-card-top, .project-grid.compact h3, .project-grid.compact .project-description, .project-grid.compact .project-card-counts { grid-column: 1; }
.project-grid.compact .project-card-title { font-size: 25px; }
.project-grid.compact .project-description { min-height: 0; -webkit-line-clamp: 2; }
.project-grid.compact .commit-figure { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.project-grid.compact .project-movement { grid-column: 2; grid-row: 3 / span 2; border: 0; margin: 0; align-self: start; }
.project-grid.compact .catchup-state { grid-column: 1 / -1; }
.project-jumps { display: flex; gap: 5px; padding: 8px 0; margin: -12px 0 20px; position: sticky; top: 83px; z-index: 15; background: var(--bg, #11151e); border-bottom: 1px solid var(--line); overflow-x: auto; }
.project-jumps a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; color: var(--muted); font-size: 13px; border-radius: 8px; white-space: nowrap; text-decoration: none; }
.project-jumps a:hover, .project-jumps a:focus-visible { color: var(--accent); background: var(--raised); }
.project-section[id] { scroll-margin-top: 155px; }
.project-section:focus { outline: none; }
.project-section:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.project-organisation { display: grid; border: 1px solid var(--line); border-radius: 9px; padding: 14px; }
.project-organisation summary { cursor: pointer; color: var(--muted); min-height: 28px; }
.project-organisation[open] > :not(summary) { margin-top: 18px; }

/* The form scrolls; the close and save controls don't disappear with its content. */
.modal-header { position: sticky; top: 0; z-index: 3; background: var(--panel); }
#spark-editor[open], #project-editor[open] { display: flex; flex-direction: column; overflow: hidden; }
#spark-form { display: flex; flex-direction: column; min-height: 0; }
#spark-form > .modal-body { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
#spark-form > .modal-header, #spark-form > .modal-footer { flex: 0 0 auto; }
#project-editor > .modal-header { flex: 0 0 auto; }
#project-editor > .project-panel-body { display: flex; flex-direction: column; min-height: 0; overflow: hidden; padding-bottom: 0; }
#project-editor .project-intro { flex: 0 0 auto; font-size: 12px; }
#project-form { display: flex; flex-direction: column; min-height: 0; }
#project-form > .project-fields { overflow-y: auto; overscroll-behavior: contain; min-height: 0; padding: 2px 12px 22px 2px; }
#project-form > .modal-footer { flex: 0 0 auto; padding-inline: 0; }
#project-form > .project-conflict { max-height: 24dvh; overflow: auto; flex: 0 0 auto; }
#project-form > .form-error { flex: 0 0 auto; }
.modal-footer .button { min-height: 44px; }
@media (max-width: 850px) {
    .workspace { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
    .topbar { height: 64px; padding: 0 16px; }
    .topbar-crumb { font-size: 0; max-width: none; white-space: nowrap; }
    .topbar-crumb > span { display: none; }
    .topbar-crumb strong { display: block; font-size: 12px; letter-spacing: .04em; }
    .topbar-actions .command-button { display: inline-flex; width: 44px; min-height: 44px; padding: 12px; }
    .topbar-actions .command-button .icon { width: 20px; height: 20px; }
    .topbar-actions { flex-shrink: 0; gap: 2px; }
    #new-spark { display: none; }
    #resume-draft { max-width: 96px; white-space: normal; line-height: 1.2; font-size: 11px; }
    #theme-button { width: 40px; }
    .mobile-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 35; padding: 7px 10px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--panel); box-shadow: 0 -8px 30px #0002; }
    .mobile-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px; min-height: 51px; background: transparent; border: 0; border-radius: 10px; color: var(--muted); font-size: 11px; }
    .mobile-nav button > span:first-child { font-size: 20px; line-height: 1; }
    .mobile-nav button[aria-current="page"] { color: var(--accent); background: var(--raised); }
    .mobile-nav #mobile-capture { color: var(--accent); }
    .sidebar { max-width: calc(100vw - 44px); padding-bottom: max(24px, env(safe-area-inset-bottom)); }
    .sidebar .nav-item, .sidebar button { min-height: 44px; }
    .toast { bottom: calc(88px + env(safe-area-inset-bottom)); }
    .project-jumps { top: 64px; margin-top: -6px; gap: 2px; }
    .project-jumps a { min-height: 44px; padding-inline: 14px; }
    .project-section[id] { scroll-margin-top: 130px; }
    .project-actions > button, .project-links button { min-height: 44px; }
    .project-grid.compact .project-card { grid-template-columns: 1fr; gap: 10px; padding: 16px 18px; }
    .project-grid.compact .project-card > * { grid-column: 1; grid-row: auto; }
    .project-grid.compact .commit-figure { display: none; }
    .project-grid.compact .project-movement { padding-top: 10px; border-top: 1px solid var(--line-soft); }
    input, textarea, select, .field input, .field textarea, .project-panel-body select, #project-search, #search { font-size: 16px; }
    input:not([type=checkbox]):not([type=radio]), select { min-height: 44px; }
    .project-room-heading { gap: 12px; margin-top: 16px; }
    .project-room-heading h1 { font-size: clamp(30px, 8vw, 42px); }
    .project-room-heading .hero-description { font-size: 14px; }
    .project-invitation { padding: 20px; }
}
@media (max-width: 580px) {
    .collection-content { padding-inline: 18px; }
    .projects-hero { min-height: 0; padding: 26px 0; gap: 22px; }
    .projects-hero h1 { font-size: 44px; }
    .project-hero .hero-description, .hero-description { font-size: 14px; }
    #projects-content .filter-bar { gap: 10px; }
    #project-filter { flex: 1; min-width: 0; font-size: 14px; }
    .layout-toggle { flex: 0 0 auto; }
    .layout-toggle .icon-button { width: 42px; height: 42px; }
    .modal, .project-modal, .agents-modal, .history-modal, .consent-modal { width: 100%; max-width: 100%; max-height: var(--visible-height, 100dvh); border-radius: 16px 16px 0 0; }
    .modal[open] { position: fixed; margin: 0; top: var(--visible-top, 0px); bottom: auto; left: 0; right: 0; }
    #spark-editor, #project-editor { height: var(--visible-height, 100dvh); }
    .modal-header { padding: 20px 18px 16px; }
    .modal-header h2, .project-modal .modal-header h2 { font-size: 28px; }
    .modal-header .icon-button { margin: -5px 0 0; min-width: 44px; min-height: 44px; }
    .modal-body { padding: 18px; }
    .modal-footer { padding: 12px 18px max(12px, env(safe-area-inset-bottom)); gap: 10px; }
    #project-form .modal-footer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
    #spark-form .modal-footer small { display: none; }
    #spark-form .modal-footer kbd { display: none; }
    .project-panel-body { gap: 14px; }
    #project-form .project-fields { padding-right: 6px; }
    .project-organisation summary { min-height: 36px; padding-top: 5px; }
    .project-card { gap: 12px; }
    .project-section { padding: 18px; }
    .project-spark { padding: 14px 10px; }
    .project-spark > .muted { display: none; }
    .auth-panel { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media (max-width: 580px) {
    .projects-hero .hero-description { display: none; }
    .projects-hero h1 { font-size: 38px; margin: 8px 0 0; }
    .projects-hero { padding-top: 22px; gap: 18px; }
    .project-invitation { padding: 16px; gap: 10px; }
    .project-invitation > .muted { display: none; }
    .project-invitation h2 { font-size: 23px; }
}
@media (max-width: 580px) {
    #projects-content .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; }
    #projects-content .filter-bar .search-field { grid-column: 1 / -1; }
    #project-filter { width: 100%; }
}
