@import url("tokens.css?v=20260903-2");

* {
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--fox-muted) 55%, transparent) transparent;
}
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background-color: color-mix(in srgb, var(--fox-muted) 55%, transparent);
    border-radius: 99px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
    background-color: var(--fox-muted);
}
::-webkit-scrollbar-corner {
    background: transparent;
}

body {
    margin: 0;
    background: var(--fox-bg);
    color: var(--fox-text);
    font-family: var(--font-body);
    line-height: 1.5;
    position: relative;
    min-height: 100vh;
}

.demo-banner {
    background: var(--fox-orange);
    color: #1a1206;
    font-weight: 600;
    font-size: 0.85rem;
    text-align: center;
    padding: 0.5rem 1rem;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: var(--ambient-glow);
    pointer-events: none;
    z-index: 0;
}

body.has-custom-bg::before {
    inset: 0;
    background-image: linear-gradient(var(--ambient-scrim), var(--ambient-scrim)), var(--user-bg), var(--ambient-glow);
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
    filter: saturate(1.08);
}

body.has-custom-bg.has-bg-blur::before {
    filter: blur(2px) saturate(1.08);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

a {
    color: var(--fox-orange);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.15rem; color: var(--fox-slate); }
h3 { font-size: 1rem; }

.page-header h1 {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

[data-theme="aurora"] .page-header h1,
[data-theme="lumen"] .page-header h1 {
    background: none;
    color: var(--fox-text);
    -webkit-text-fill-color: var(--fox-text);
}

.page-header h1 .folder-icon {
    color: initial;
    -webkit-text-fill-color: initial;
}

.page-header h1 .tag-pill {
    -webkit-text-fill-color: var(--tag-color);
}

.app-shell {
    display: flex;
    align-items: flex-start;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.app-sidebar {
    width: 268px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1.1rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    background: var(--fox-bg-sunken);
    border-right: 1px solid var(--fox-border);
}

.sidebar-toggle-btn {
    display: none;
}

.sidebar-backdrop {
    display: none;
}

.sidebar-collapse-btn {
    display: none;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 1rem;
    left: 252px;
    z-index: 50;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 50%;
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card);
    color: var(--fox-slate);
    cursor: pointer;
    font-size: 0.85rem;
    transition: left 0.2s ease, color 0.15s ease, background-color 0.15s ease;
}

.sidebar-collapse-btn:hover {
    color: var(--fox-orange);
    background: var(--fox-bg-card-hover);
}

.app-shell.sidebar-collapsed .app-sidebar {
    width: 0;
    padding: 0;
    border-right: none;
    overflow: hidden;
}

.app-shell.sidebar-collapsed .sidebar-collapse-btn {
    left: 0.5rem;
}

@media (min-width: 1025px) {
    .sidebar-collapse-btn {
        display: flex;
    }
}

.app-logo {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    padding: 0 0.25rem;
}

.app-logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.app-logo-img-light {
    display: none;
}

[data-theme="light"] .app-logo-img-dark,
[data-theme="lumen"] .app-logo-img-dark {
    display: none;
}

[data-theme="light"] .app-logo-img-light,
[data-theme="lumen"] .app-logo-img-light {
    display: block;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    font-family: var(--font-body);
}

.sidebar-nav a {
    color: var(--fox-text);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-control);
    font-weight: 500;
    font-size: 0.85rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-nav a:hover {
    background: var(--fox-bg-card);
}

.sidebar-search {
    display: flex;
    gap: 0.4rem;
    padding: 0 0.25rem;
}

.sidebar-search input {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    color: var(--fox-text);
}

.sidebar-search button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--fox-slate);
    padding: 0.2rem 0.4rem;
}

.sidebar-search button:hover {
    color: var(--fox-text);
}

.sidebar-tree-wrap {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.sidebar-section-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 0.7rem;
    font-size: 0.7rem;
    color: var(--fox-muted);
}

.sidebar-empty {
    padding: 0 0.7rem;
    font-size: 0.85rem;
    margin: 0;
}

.sidebar-tags-wrap summary {
    cursor: pointer;
    list-style: none;
}

.sidebar-tags-wrap summary::-webkit-details-marker {
    display: none;
}

.sidebar-tag-list {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0.7rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.sidebar-favorite-list {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0;
}

.sidebar-favorite-link {
    display: block;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-control);
    color: var(--fox-text);
    text-decoration: none;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: background-color 0.15s ease;
}

.sidebar-favorite-link:hover {
    background: var(--fox-bg-card-hover);
    color: var(--fox-orange);
}

.sidebar-trash-link {
    display: block;
    padding: 0.3rem 0.7rem;
    margin-top: 6px;
    border-radius: var(--radius-control);
    text-decoration: none;
    font-size: 0.76rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.sidebar-trash-link:hover {
    background: var(--fox-bg-card-hover);
    color: var(--fox-orange);
}

.sidebar-tag-count {
    opacity: 0.7;
    margin-left: 0.15rem;
}

a.tag-pill {
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.tag-pill:hover {
    border-color: var(--tag-color);
}

.folder-tree, .folder-tree-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.folder-tree {
    font-family: var(--font-body);
    font-size: 0.88rem;
}

.folder-tree-children {
    padding-left: 1rem;
    margin-top: 0.15rem;
}

.folder-tree-item {
    display: flex;
    align-items: center;
}

.folder-tree-item > details,
.folder-tree-item > .folder-tree-leaf {
    flex: 1;
    min-width: 0;
}

.folder-tree-handle {
    cursor: grab;
    color: var(--fox-muted);
    padding: 0 0.3rem;
    flex-shrink: 0;
}

.folder-tree-handle:active {
    cursor: grabbing;
}

.subfolder-item[draggable="true"] {
    cursor: grab;
}

.is-dragging {
    opacity: 0.4;
}

.folder-tree-item summary {
    cursor: pointer;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-control);
    transition: background-color 0.15s ease;
    display: flex;
    align-items: center;
}

.folder-tree-item summary::-webkit-details-marker {
    display: none;
}

.folder-tree-item summary::before {
    content: "▸";
    display: inline-block;
    flex-shrink: 0;
    margin-right: 0.4rem;
    color: var(--fox-muted);
    transition: transform 0.15s;
    font-size: 0.75em;
}

.folder-tree-item details[open] > summary::before {
    transform: rotate(90deg);
}

.folder-tree-item summary:hover,
.folder-tree-leaf:hover {
    background: var(--fox-bg-card);
}

.folder-tree-item a,
.folder-tree-leaf {
    color: var(--fox-text);
    text-decoration: none;
}

.folder-tree-item a.is-active,
.folder-tree-leaf.is-active {
    color: var(--fox-orange);
    font-weight: 600;
}

.folder-tree-leaf,
.folder-tree-label {
    display: block;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-tree-leaf {
    padding: 0.35rem 0.7rem 0.35rem 1.7rem;
    border-radius: var(--radius-control);
    transition: background-color 0.15s ease;
}

.add-space-form,
.add-subfolder-form {
    display: flex;
    gap: 0.4rem;
}

.add-space-form input {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

.sidebar-user {
    display: flex;
    flex-direction: column;
    gap: 0.54rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--fox-border);
    color: var(--fox-slate);
    font-size: 0.85rem;
}

.sidebar-user-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-user-greeting {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-clock {
    display: block;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    color: var(--fox-orange-light);
}

.sidebar-working-on {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.6rem;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-control);
    border-left: 3px solid var(--fox-orange);
    background: color-mix(in srgb, var(--fox-orange) 10%, var(--fox-bg-card));
    text-decoration: none;
}

.sidebar-working-on-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fox-muted);
}

.sidebar-working-on-title {
    font-size: 0.8rem;
    color: var(--fox-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-working-on-time {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--fox-orange-light);
}

.settings-gear {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-control);
    color: var(--fox-slate);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.settings-gear:hover,
.settings-gear:focus-visible {
    color: var(--settings-hover);
    background: var(--fox-bg-card);
}

.app-content {
    flex: 1;
    min-width: 0;
}

.app-main {
    max-width: min(90%, 1800px);
    margin: 0 auto;
    padding: 2.5rem 1.75rem 4rem;
}

.app-main-wide {
    max-width: min(94%, 2000px);
}

.app-main-note-wide {
    max-width: min(90%, 1300px);
}

.page-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

body.has-custom-bg .page-header {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border-radius: var(--radius-card);
    padding: 0.75rem 1.1rem;
    position: relative;
    z-index: 2;
}

body.has-custom-bg .breadcrumb {
    display: inline-flex;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border-radius: var(--radius-control);
    padding: 0.3rem 0.7rem;
}

body.has-custom-bg section:not([class]),
body.has-custom-bg .backups-section,
body.has-custom-bg .app-main > p.text-slate {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border-radius: var(--radius-card);
    padding: 1.1rem 1.25rem;
}

body.has-custom-bg .backups-section {
    position: relative;
    z-index: 2;
}

[data-theme="lumen"] .page-header,
[data-theme="lumen"] section:not([class]),
[data-theme="lumen"] .no-auto-card,
[data-theme="lumen"] .backups-section,
[data-theme="lumen"] .app-main > p.text-slate {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border-radius: var(--radius-card);
    padding: 1.1rem 1.25rem;
}

[data-theme="lumen"] .page-header,
[data-theme="lumen"] .backups-section {
    position: relative;
    z-index: 2;
}

.app-main > section:not(:first-child) {
    margin-top: 2.5rem;
}

.settings-section-toggle summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
}

.settings-section-toggle summary::-webkit-details-marker {
    display: none;
}

.settings-section-toggle summary h2 {
    margin: 0;
    flex: 1;
}

.settings-section-toggle summary .settings-section-chevron {
    color: var(--fox-muted);
    font-size: 0.8rem;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.settings-section-toggle[open] summary .settings-section-chevron {
    transform: rotate(90deg);
}

.settings-section-toggle > *:not(summary):first-of-type {
    margin-top: 1rem;
}

.folder-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.folder-section {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-card-sm);
}

.folder-section-handle {
    cursor: grab;
    color: var(--fox-muted);
    margin-right: 0.3rem;
    font-size: 0.85em;
}

.folder-section-handle:active {
    cursor: grabbing;
}

.back-link {
    text-decoration: none;
    color: var(--fox-slate);
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--fox-text);
}

label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--fox-slate);
    margin-bottom: 0.85rem;
}

input, textarea, select {
    background: var(--fox-bg-sunken);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    color: var(--fox-text);
    padding: 0.55rem 0.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.15s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--fox-orange);
    box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.18);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.8;
    cursor: pointer;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.checkbox {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.field-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.field-row label {
    flex: 1;
    min-width: 140px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius-control);
    padding: 0.42rem 0.9rem;
    font-size: 0.87rem;
    font-weight: 500;
    cursor: pointer;
    font-family: var(--font-body);
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 1px 6px color-mix(in srgb, var(--fox-orange) 28%, transparent);
}

.btn-primary:hover {
    box-shadow: 0 2px 10px color-mix(in srgb, var(--fox-orange) 40%, transparent);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--fox-bg-card);
    color: var(--fox-text);
    border: 1px solid var(--fox-border);
}

.btn-secondary:hover {
    background: var(--fox-bg-card-hover);
    border-color: var(--fox-muted);
}

.btn-link {
    background: none;
    color: var(--fox-slate);
    padding: 0.25rem 0.5rem;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--fox-orange);
}

.btn-danger {
    color: var(--fox-danger);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.auth-card {
    max-width: 400px;
    margin: 3rem auto;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    text-align: center;
}

.auth-card .app-logo {
    display: inline-flex;
    margin-bottom: 1rem;
}

.auth-card .app-logo-img {
    height: 64px;
    margin: 0 auto;
}

.auth-card h1 {
    font-size: 1.4rem;
}

.auth-card label {
    text-align: left;
}

.stack > * + * {
    margin-top: 0;
}

.alert {
    border-radius: var(--radius-control);
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
    list-style: none;
}

.alert-danger {
    background: rgba(229, 87, 58, 0.15);
    color: var(--fox-danger);
    padding-left: 0.85rem;
}

.alert-success {
    background: color-mix(in srgb, var(--fox-success) 15%, transparent);
    color: var(--fox-success);
    padding-left: 0.85rem;
}

.google-help {
    margin-top: 1rem;
}

.google-help summary {
    cursor: pointer;
}

.google-help-steps {
    margin: 0.85rem 0 0;
    padding-left: 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: var(--fox-slate);
    font-size: 0.9rem;
    line-height: 1.5;
}

.google-help-steps code {
    background: var(--fox-bg-sunken);
    border: 1px solid var(--fox-border);
    border-radius: 4px;
    padding: 0.1rem 0.35rem;
    font-family: var(--font-mono);
    font-size: 0.82em;
    color: var(--fox-text);
    word-break: break-all;
}

.text-slate {
    color: var(--fox-slate);
}

.note-stats {
    font-size: 0.78rem;
    font-family: var(--font-mono);
    margin: 0.4rem 0 1rem;
}

.share-reveal {
    margin: 0;
}

.share-reveal summary {
    list-style: none;
    width: fit-content;
}

.share-reveal summary::-webkit-details-marker {
    display: none;
}

.share-reveal[open] summary {
    margin-bottom: 0.75rem;
}

.share-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--fox-muted);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: var(--radius-control);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.share-toggle-btn:hover {
    color: var(--fox-orange);
    background: var(--fox-bg-card-hover);
}

.share-toggle-btn.is-shared {
    color: var(--fox-success);
}

.share-toggle-btn.is-shared:hover {
    color: var(--fox-success);
    filter: brightness(1.15);
}

.share-panel-stats {
    font-size: 0.82rem;
    margin: 0 0 0.5rem;
}

.share-link-row {
    margin-bottom: 0.6rem;
}

.share-link-row input {
    width: 100%;
    max-width: 480px;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    padding: 0.4rem 0.65rem;
    color: var(--fox-text);
}

.share-create-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-can-edit-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.share-link-block {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--fox-border);
}

.share-link-block:last-of-type {
    border-bottom: none;
}

.share-banner {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    margin: 0 0 1rem;
}

.quick-add-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.quick-add-row form {
    margin: 0;
}

.add-item-btn {
    background: transparent;
    border: 1px dashed var(--fox-border);
    color: var(--fox-slate);
}

.add-item-btn:hover {
    border-color: var(--fox-orange);
    border-style: solid;
    color: var(--fox-orange);
    background: transparent;
}

.quick-add-reveal summary {
    list-style: none;
    display: inline-flex;
}

.quick-add-reveal summary::-webkit-details-marker {
    display: none;
}

.section-hint {
    font-size: 0.78rem;
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--fox-slate);
}

.section-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.section-footer p,
.section-footer > a {
    margin: 0;
}

.section-footer .quick-add-row {
    margin-top: 0;
    margin-left: auto;
}

.add-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-left: 3px solid var(--fox-orange);
    border-radius: var(--radius-control);
    padding: 0.3rem 0.7rem;
    font-size: 0.78rem;
    font-family: var(--font-body);
    color: var(--fox-text);
    cursor: pointer;
    transition: border-left-color 0.15s ease, box-shadow 0.15s ease;
}

.add-inline-btn:hover {
    border-left-color: var(--fox-orange-light);
    box-shadow: var(--shadow-card-sm);
}

.task-list, .subtask-list, .note-list, .linked-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.subtask-list {
    margin-left: 2rem;
    margin-top: 0.6rem;
    font-size: 0.92em;
}

.subtask-list:empty {
    margin: 0;
}

.task-item {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.55rem 0.85rem;
    margin-bottom: 0.4rem;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.task-item:hover {
    border-color: var(--fox-muted);
}

.subtask-list .task-item {
    background: var(--fox-bg-sunken);
}

.task-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.note-item {
    padding: 0.28rem 0.5rem;
    border-radius: var(--radius-control);
    border-bottom: 1px solid var(--fox-border);
    transition: background-color 0.15s ease;
    line-height: 1.3;
}

.note-item:last-child {
    border-bottom: none;
}

.note-item:hover {
    background: var(--fox-bg-card-hover);
    border-bottom-color: transparent;
}

.note-item-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.note-item-icon {
    flex: 0 0 1.3rem;
    text-align: center;
}

.note-item .note-title {
    font-size: 0.9rem;
    flex: 0 0 260px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-toggle-form {
    margin: 0;
}

.task-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--fox-muted);
    background: transparent;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.task-checkbox:hover {
    border-color: var(--fox-orange);
    transform: scale(1.06);
}

.task-checkbox.is-checked {
    background: var(--fox-success);
    border-color: var(--fox-success);
}

.task-title, .note-title {
    flex: 1;
    text-decoration: none;
    color: var(--fox-text);
    font-weight: 500;
}

.task-description {
    color: var(--fox-slate);
    line-height: 1.6;
}

.task-item-editing {
    border-color: var(--fox-orange);
    box-shadow: 0 0 0 3px rgba(232, 89, 12, 0.12);
}

.task-status-done .task-title {
    color: var(--fox-slate);
    text-decoration: line-through;
}

.task-due, .note-updated {
    color: var(--fox-slate);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.note-item .note-updated {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.72rem;
}

.tag-pills-static {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem;
    flex: 0 0 190px;
    overflow: hidden;
}

.tag-pill-sm {
    font-size: 0.64rem;
    padding: 0.06rem 0.4rem;
}

.task-actions {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.task-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.35rem;
    margin-left: 2.15rem;
}

.task-push-error {
    margin: 0.35rem 0 0 2.15rem;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-control);
    background: rgba(229, 87, 58, 0.15);
    color: var(--fox-danger);
    font-size: 0.82rem;
}

.status-group {
    margin-bottom: 1.75rem;
}

.status-group-header {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.3rem;
}

.status-group-header::-webkit-details-marker {
    display: none;
}

.status-group-header::before {
    content: "\25BE";
    color: var(--fox-muted);
    font-size: 0.7rem;
    transition: transform 0.15s ease;
}

.status-group:not([open]) .status-group-header::before {
    transform: rotate(-90deg);
}

.status-group-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--status-color);
    box-shadow: 0 0 4px var(--status-color);
}

.status-group-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    color: var(--fox-text);
}

.status-group-count {
    color: var(--fox-slate);
    font-size: 0.72rem;
    font-family: var(--font-mono);
    background: var(--fox-bg-card-hover);
    padding: 0.05rem 0.5rem;
    border-radius: var(--radius-pill);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 0.16rem 0.5rem;
    border-radius: var(--radius-pill);
    background: var(--fox-bg-card-hover);
    color: var(--fox-slate);
    white-space: nowrap;
    border: 1px solid var(--fox-border);
}

.badge::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 4px currentColor;
    flex-shrink: 0;
}

.badge-priority-urgent, .badge-priority-high, .badge-priority-normal, .badge-priority-low,
.badge-status-done, .badge-status-in_progress, .badge-type-event, .badge-source-google,
.badge-recurring,
.share-status-active, .share-status-expired, .share-status-revoked {
    background: color-mix(in srgb, currentColor 9%, var(--fox-bg-card-hover));
    border-color: color-mix(in srgb, currentColor 22%, var(--fox-border));
}

.badge-priority-urgent { color: var(--priority-urgent); }
.badge-priority-high { color: var(--priority-high); }
.badge-priority-normal { color: var(--priority-normal); }
.badge-priority-low { color: var(--priority-low); }

.badge-status-done { color: var(--fox-success); }
.badge-status-in_progress { color: var(--fox-orange); }

.login-attempt-badge.is-success,
.login-attempt-badge.is-fail {
    background: color-mix(in srgb, currentColor 9%, var(--fox-bg-card-hover));
    border-color: color-mix(in srgb, currentColor 22%, var(--fox-border));
}
.login-attempt-badge.is-success { color: var(--fox-success); }
.login-attempt-badge.is-fail { color: var(--fox-danger); }

.task-status-quick {
    display: inline-flex;
    margin: 0;
}

.task-status-quick select {
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
}

.badge-type-event { color: var(--priority-normal); }
.badge-source-google { color: var(--fox-orange); }
.badge-private { color: var(--fox-muted); }

.badge-recurring { color: var(--fox-orange-light); }
.badge-recurring::before { display: none; }

.share-status-active { color: var(--fox-success); }
.share-status-expired { color: var(--fox-muted); }
.share-status-revoked { color: var(--fox-danger); }

.event-marker {
    font-size: 1.1rem;
    line-height: 1;
    width: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.inline-label {
    font-size: 0.78rem;
    color: var(--fox-slate);
    align-self: center;
    white-space: nowrap;
}

.add-subtask-reveal {
    margin-top: 0.15rem;
    margin-left: 2rem;
    font-size: 0.82rem;
}

.add-subtask-form {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.add-subtask-form input {
    width: 100%;
    max-width: 320px;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

.task-edit-form {
    display: flex;
    flex-direction: column;
}

.note-editor-form textarea {
    width: 100%;
    resize: vertical;
    font-family: var(--font-body);
}

.save-status {
    color: var(--fox-success);
    font-size: 0.85rem;
    font-family: var(--font-mono);
}

.save-status-auto {
    color: var(--fox-slate);
}

.note-reading-mode {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-card-sm);
}

.note-reading-content {
    background: transparent;
    padding: 0;
}

.ql-editor h2 {
    background: color-mix(in srgb, var(--fox-orange) 16%, var(--fox-bg-card));
    border-left: 4px solid var(--fox-orange);
    color: var(--fox-orange-light);
    padding: 0.5rem 0.9rem !important;
    border-radius: var(--radius-control);
    font-size: 1.05rem;
    margin: 1.5rem 0 0.85rem !important;
}

.ql-editor h3:has(> .ql-h3c-blue),
.ql-editor h3:has(> .ql-h3c-orange),
.ql-editor h3:has(> .ql-h3c-red) {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-control);
    border-left: 4px solid;
    margin: 1.3rem 0 0.75rem;
    font-size: 0.98rem;
}

.ql-editor h3:has(> .ql-h3c-blue) {
    background: color-mix(in srgb, var(--priority-normal) 16%, var(--fox-bg-card));
    border-left-color: var(--priority-normal);
}

.ql-editor h3:has(> .ql-h3c-orange) {
    background: color-mix(in srgb, var(--h3-color-orange) 16%, var(--fox-bg-card));
    border-left-color: var(--h3-color-orange);
}

.ql-editor h3:has(> .ql-h3c-red) {
    background: color-mix(in srgb, var(--fox-danger) 16%, var(--fox-bg-card));
    border-left-color: var(--fox-danger);
}

.ql-editor .ql-h3c-blue { color: var(--priority-normal); }
.ql-editor .ql-h3c-orange { color: var(--h3-color-orange-light); }
.ql-editor .ql-h3c-red { color: var(--fox-danger); }

.ql-editor .ql-confidential-yes {
    background: color-mix(in srgb, var(--fox-warning) 16%, transparent);
    border-bottom: 1px dashed var(--fox-warning);
    border-radius: 2px;
    padding: 0 2px;
}
.ql-editor .ql-confidential-yes::before {
    content: '\1F512';
    font-size: 0.75em;
    margin-right: 2px;
    opacity: 0.8;
}
.ql-toolbar button.ql-confidential.ql-active {
    color: var(--fox-warning);
}

.ql-editor blockquote {
    position: relative;
    font-size: 0.92em;
    font-style: italic;
    color: var(--fox-slate);
}
.ql-editor blockquote:not(blockquote + blockquote)::before {
    content: '\201C';
    position: absolute;
    left: 1.975rem;
    top: calc(0.05em + 5px);
    font-size: 1.6em;
    font-style: normal;
    line-height: 1;
    color: var(--fox-muted);
}
.ql-editor blockquote:not(:has(+ blockquote))::after {
    content: '\201E';
    font-style: normal;
    color: var(--fox-muted);
    margin-left: 0.2em;
}
.ql-editor blockquote,
.ql-snow .ql-editor blockquote {
    border-left: none !important;
    padding-left: 2.875rem !important;
}
.ql-editor blockquote:not(blockquote + blockquote),
.ql-snow .ql-editor blockquote:not(blockquote + blockquote) {
    padding-top: 5px !important;
}

.ql-editor hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, var(--fox-border), var(--fox-orange));
    margin: 1.5rem 0;
}

.ql-editor .ql-color-red { color: var(--fox-danger); }
.ql-editor .ql-color-orange { color: var(--fox-orange); }
.ql-editor .ql-color-green { color: var(--fox-success); }
.ql-editor .ql-color-blue { color: var(--priority-normal); }
.ql-editor .ql-color-gray { color: var(--fox-muted); }

.ql-editor .ql-size-compact { font-size: 0.88em; }
.ql-picker.ql-size .ql-picker-label[data-value="compact"]::before,
.ql-snow .ql-picker.ql-size .ql-picker-item[data-value="compact"]::before {
    content: 'Compact';
}

.note-toc {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.75rem 1rem;
    margin: 0 0 1.25rem;
}

.note-toc-title {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fox-muted);
    margin: 0 0 0.15rem;
    line-height: 1;
}

.note-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.note-toc a {
    display: block;
    color: var(--fox-text);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.3;
}

.note-toc a:hover {
    color: var(--fox-orange);
    text-decoration: underline;
}

.note-toc-h2 a {
    padding-left: 0.9rem;
}

.note-toc-h3 a {
    padding-left: 1.8rem;
    font-size: 0.82rem;
    color: var(--fox-slate);
}

.note-edit-btn {
    background: none;
    border: none;
    color: var(--fox-slate);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0.2rem;
    border-radius: var(--radius-control);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.note-edit-btn:hover {
    color: var(--fox-orange);
    background: var(--fox-bg-card-hover);
}

.note-save-btn,
.scroll-to-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-left: 3px solid var(--fox-orange);
    border-radius: var(--radius-pill);
    color: var(--fox-text);
    padding: 0.45rem 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: var(--shadow-card-sm);
    transition: border-left-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.note-save-btn[hidden],
.scroll-to-top-btn[hidden] {
    display: none;
}

.note-save-btn:hover,
.scroll-to-top-btn:hover {
    border-left-color: var(--fox-orange-light);
    box-shadow: var(--shadow-card);
}

.scroll-to-top-btn:hover,
#floating-save-btn:hover,
#floating-edit-toggle-btn:hover {
    transform: translateY(-2px);
}

.note-floating-actions {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    z-index: 40;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-end;
    gap: 0.7rem;
}

.revision-item {
    font-size: 0.85rem;
}

.revision-meta {
    flex: 1;
}

.revision-item form {
    margin: 0;
}

.diff-legend {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: var(--fox-slate);
}

.diff-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.diff-swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 3px;
    display: inline-block;
}

.diff-swatch-removed {
    background: var(--fox-danger);
}

.diff-swatch-added {
    background: var(--fox-success);
}

.diff-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

.diff-column h2 {
    font-size: 0.95rem;
    color: var(--fox-slate);
    margin-bottom: 0.6rem;
}

.diff-content {
    background: var(--fox-bg-sunken);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    padding: 1rem 1.25rem;
}

.diff-content .diff-removed {
    background: color-mix(in srgb, var(--fox-danger) 14%, transparent);
    border-radius: 0.3rem;
}

.diff-content .diff-added {
    background: color-mix(in srgb, var(--fox-success) 16%, transparent);
    border-radius: 0.3rem;
}

.delete-note-form {
    margin: 1rem 0;
}

.links-widget {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 1.1rem 1.35rem;
    margin-top: 1.5rem;
}

.linked-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--fox-border);
}

.linked-list li:last-child {
    border-bottom: none;
}

.linked-task-info {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.linked-task-date {
    font-size: 0.78rem;
}

.links-widget-add {
    margin-top: 0.85rem;
}

.links-widget-add-panel {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.links-widget-add-or {
    margin: 0.2rem 0 0;
    font-size: 0.78rem;
}

.add-linked-task-form {
    display: flex;
    gap: 0.4rem;
}

.add-linked-task-form input {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

.link-form {
    display: flex;
    gap: 0.5rem;
}

.link-form select {
    flex: 1;
    min-width: 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--fox-slate);
    margin-bottom: 0.85rem;
}

.breadcrumb a {
    color: var(--fox-slate);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--fox-orange);
}

.breadcrumb-sep {
    color: var(--fox-muted);
}

.folder-icon {
    margin-right: 0.35rem;
}

.folder-menu {
    position: relative;
    margin-left: auto;
}

.folder-menu summary {
    list-style: none;
    cursor: pointer;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    color: var(--fox-slate);
    font-size: 1.2rem;
    transition: background-color 0.15s ease;
}

.folder-menu summary::-webkit-details-marker {
    display: none;
}

.folder-menu summary:hover {
    background: var(--fox-bg-card-hover);
    color: var(--fox-text);
}

.folder-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    /* V4 forces backdrop-filter on every .v2-panel unconditionally (V2/V3 only do it with a
       custom background set) - that gives the sections below their own stacking context, which
       buried this panel's old z-index: 5. Match the z-index already used for other floating UI
       (e.g. .code-block-floating-controls) that has to sit above arbitrary page content. */
    z-index: 50;
    width: 260px;
    padding: 0.9rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
}

.folder-menu-panel label {
    gap: 0.2rem;
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}

.folder-menu-panel input,
.folder-menu-panel select {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

[data-theme="aurora"] .folder-menu-panel,
[data-theme="aurora"] .note-menu-panel,
[data-theme="aurora"] .note-icon-panel,
[data-theme="aurora"] .backup-restore-panel,
[data-theme="aurora"] .widget-add-panel,
[data-theme="aurora"] .note-timer-details-panel,
[data-theme="lumen"] .folder-menu-panel,
[data-theme="lumen"] .note-menu-panel,
[data-theme="lumen"] .note-icon-panel,
[data-theme="lumen"] .backup-restore-panel,
[data-theme="lumen"] .widget-add-panel,
[data-theme="lumen"] .note-timer-details-panel {
    border-radius: 16px;
}

[data-theme="aurora"] .folder-menu-panel,
[data-theme="aurora"] .note-menu-panel,
[data-theme="aurora"] .note-icon-panel,
[data-theme="aurora"] .backup-restore-panel,
[data-theme="aurora"] .widget-add-panel,
[data-theme="aurora"] .note-timer-details-panel {
    --surface-bg: rgba(18, 22, 29, 0.94);
    --surface-blur: blur(20px) saturate(1.2);
}
[data-theme="lumen"] .folder-menu-panel,
[data-theme="lumen"] .note-menu-panel,
[data-theme="lumen"] .note-icon-panel,
[data-theme="lumen"] .backup-restore-panel,
[data-theme="lumen"] .widget-add-panel,
[data-theme="lumen"] .note-timer-details-panel {
    --surface-bg: rgba(255, 253, 248, 0.94);
    --surface-blur: blur(22px) saturate(1.15);
}

.folder-edit-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--fox-border);
}

.section-visibility-picker {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.7rem;
}

.section-visibility-picker .inline-label {
    font-size: 0.78rem;
    color: var(--fox-slate);
}

.folder-move-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--fox-border);
}

.folder-delete-form {
    margin: 0;
}

.folder-delete-form .btn {
    width: 100%;
}

.note-menu {
    position: relative;
}

.note-menu summary {
    list-style: none;
    cursor: pointer;
    width: 1.8rem;
    height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    color: var(--fox-slate);
    font-size: 1.05rem;
    transition: background-color 0.15s ease;
}

.note-menu summary::-webkit-details-marker {
    display: none;
}

.note-menu summary:hover {
    background: var(--fox-bg-card-hover);
    color: var(--fox-text);
}

.note-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 50;
    width: 240px;
    padding: 1rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
}

.widget-add-menu {
    position: relative;
}

.widget-add-menu summary {
    list-style: none;
}

.widget-add-menu summary::-webkit-details-marker {
    display: none;
}

.widget-add-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    z-index: 50;
    width: 300px;
    max-width: calc(100vw - 2rem);
    padding: 1rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
}

.widget-add-panel form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.note-move-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--fox-border);
}

.note-delete-form {
    margin: 0;
}

.note-delete-form .btn {
    width: 100%;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    padding: 0.14rem 0.5rem;
    border-radius: var(--radius-pill);
    white-space: nowrap;
    --tag-color: var(--fox-slate);
    color: var(--tag-color);
    background: color-mix(in srgb, var(--tag-color) 16%, var(--fox-bg-card-hover));
    border: 1px solid color-mix(in srgb, var(--tag-color) 38%, var(--fox-border));
}

button.tag-pill {
    cursor: pointer;
    font-family: var(--font-body);
    transition: color 0.15s ease, border-color 0.15s ease;
}

button.tag-pill:hover {
    color: var(--fox-danger);
    border-color: var(--fox-danger);
}

.tag-pill-removable {
    padding-right: 0.3rem;
    gap: 0.3rem;
}

.tag-pill-removable a {
    color: inherit;
    text-decoration: none;
}

.tag-pill-removable a:hover {
    text-decoration: underline;
}

.tag-pill-remove {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: var(--tag-color);
    opacity: 0.6;
    cursor: pointer;
    font-size: 0.85em;
    line-height: 1;
    font-family: var(--font-body);
    transition: color 0.15s ease, opacity 0.15s ease;
}

.tag-pill-remove:hover {
    color: var(--fox-danger);
    opacity: 1;
}

.tag-editor {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    margin: 0.5rem 0 1.25rem;
}

.tag-add-form {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
}

.tag-add-form input {
    font-size: 0.78rem;
    padding: 0.2rem 0.5rem;
    width: 110px;
}

.note-toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.5rem 0 1.25rem;
}

.note-toolbar-row .tag-editor {
    margin: 0;
    flex: 1;
}

.note-timer-widget {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.note-timer-widget form {
    margin: 0;
}

.note-timer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card);
    color: var(--fox-slate);
    cursor: pointer;
    font-size: 0.8rem;
    transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.note-timer-btn:hover {
    border-color: var(--fox-orange);
    color: var(--fox-orange);
}

.note-timer-btn.is-running {
    background: color-mix(in srgb, var(--fox-orange) 20%, var(--fox-bg-card));
    border-color: var(--fox-orange);
    color: var(--fox-orange-light);
}

.note-timer-total {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--fox-slate);
    font-variant-numeric: tabular-nums;
}

.note-timer-details {
    position: relative;
}

.note-timer-details summary {
    list-style: none;
    cursor: pointer;
    width: 1.6rem;
    height: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    color: var(--fox-slate);
    font-size: 0.9rem;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.note-timer-details summary::-webkit-details-marker {
    display: none;
}

.note-timer-details summary:hover {
    background: var(--fox-bg-card-hover);
    color: var(--fox-orange);
}

.note-timer-details-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 50;
    width: 300px;
    max-height: 22rem;
    overflow-y: auto;
    padding: 1rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
}

.note-timer-details-panel h4 {
    margin: 0 0 0.7rem;
    font-size: 0.85rem;
    color: var(--fox-text);
}

.note-icon-picker {
    position: relative;
}

.note-icon-btn {
    list-style: none;
    cursor: pointer;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-control);
    font-size: 1.3rem;
    transition: background-color 0.15s ease;
}

.note-icon-btn::-webkit-details-marker {
    display: none;
}

.note-icon-btn:hover {
    background: var(--fox-bg-card-hover);
}

.note-icon-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 0.4rem);
    z-index: 50;
    width: 280px;
    padding: 1.1rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
}

.note-icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.3rem;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--fox-border);
}

.note-icon-grid button {
    background: none;
    border: none;
    border-radius: var(--radius-control);
    font-size: 1.15rem;
    padding: 0.35rem 0;
    cursor: pointer;
}

.note-icon-grid button:hover {
    background: var(--fox-bg-card-hover);
}

.note-icon-custom {
    display: flex;
    gap: 0.4rem;
}

.note-icon-custom input {
    flex: 1;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.icon-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.2rem;
    margin: 0.4rem 0 0.85rem;
}

.icon-picker-btn {
    background: none;
    border: none;
    border-radius: var(--radius-control);
    font-size: 1.05rem;
    padding: 0.3rem 0;
    cursor: pointer;
}

.icon-picker-btn:hover {
    background: var(--fox-bg-card-hover);
}

.subfolder-list {
    list-style: none;
    margin: 0 0 0.85rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.subfolder-item a {
    display: inline-block;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-pill);
    padding: 0.2rem 0.65rem;
    font-size: 0.82rem;
    text-decoration: none;
    color: var(--fox-text);
    transition: border-color 0.15s ease;
}

.subfolder-item a:hover {
    border-color: var(--fox-orange);
}

.subfolder-empty {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
}

.badge-space {
    color: var(--fox-orange);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.1rem;
    margin-bottom: 1.75rem;
}

.dashboard-widget-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 900px) {
    .dashboard-widget-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .dashboard-widget-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stats-table {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-sm);
    margin-top: 1rem;
    overflow: hidden;
}

.stats-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.75rem;
    border-bottom: 1px solid var(--fox-border);
    border-left: 3px solid var(--stat-color, transparent);
}

.stats-row:last-child {
    border-bottom: none;
}

.stats-row-icon {
    font-size: 0.9rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.stats-row-label {
    flex: 1;
    color: var(--fox-slate);
    font-size: 0.82rem;
}

.stats-row-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fox-text);
}

.login-attempts-table {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-sm);
    margin-top: 1rem;
    overflow: hidden;
    max-height: 360px;
    overflow-y: auto;
}

.login-attempt-row {
    display: grid;
    grid-template-columns: 108px 1fr 130px 68px;
    gap: 0.6rem;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-bottom: 1px solid var(--fox-border);
    font-size: 0.78rem;
}

.login-attempt-row:last-child {
    border-bottom: none;
}

.login-attempt-time {
    color: var(--fox-slate);
    font-variant-numeric: tabular-nums;
}

.login-attempt-email {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-attempt-ip {
    color: var(--fox-slate);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-offenders-callout {
    background: color-mix(in srgb, var(--fox-danger) 8%, var(--fox-bg-card));
    border: 1px solid color-mix(in srgb, var(--fox-danger) 25%, var(--fox-border));
    border-radius: var(--radius-card);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.login-offenders-title {
    font-weight: 600;
    color: var(--fox-danger);
    margin: 0 0 0.5rem;
}

.login-offender-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.3rem 0;
    font-size: 0.85rem;
}

.login-offender-ip {
    font-family: var(--font-mono);
    font-weight: 600;
}

.login-offender-hint {
    margin: 0.5rem 0 0;
    font-size: 0.78rem;
}

.theme-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.75rem 0 1.25rem;
}

.theme-picker-option {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-card);
    background: var(--fox-bg-card);
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.theme-picker-option:hover {
    border-color: var(--fox-orange-light);
}

.theme-picker-option.is-selected {
    border-color: var(--fox-orange);
}

.theme-picker-swatch {
    width: 84px;
    height: 56px;
    border-radius: 0.5rem;
    display: flex;
    align-items: flex-end;
    padding: 8px;
    overflow: hidden;
}

.theme-picker-swatch-card {
    width: 60%;
    height: 60%;
    border-radius: 0.3rem;
}

.theme-picker-swatch-dark {
    background: linear-gradient(135deg, #0d0d10, #18181c);
}
.theme-picker-swatch-dark .theme-picker-swatch-card {
    background: #27272d;
    box-shadow: 0 0 0 1px #3a3a40, 0 0 8px rgba(232, 89, 12, 0.35);
}

.theme-picker-swatch-light {
    background: linear-gradient(135deg, #fff3e6, #f7ecdd);
}
.theme-picker-swatch-light .theme-picker-swatch-card {
    background: #ffffff;
    box-shadow: 0 0 0 1px #ead9c4, 0 2px 6px rgba(36, 28, 21, 0.12);
}

.theme-picker-swatch-aurora {
    background: linear-gradient(135deg, #0b0e14, #17202b);
}
.theme-picker-swatch-aurora .theme-picker-swatch-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 10px rgba(45, 212, 191, 0.35);
}

.theme-picker-swatch-lumen {
    background: linear-gradient(135deg, #41573f, #6b8064);
}
.theme-picker-swatch-lumen .theme-picker-swatch-card {
    background: rgba(255, 253, 248, 0.5);
    backdrop-filter: blur(2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 2px 8px rgba(0, 0, 0, 0.18);
}

.theme-picker-label {
    font-size: 0.85rem;
    color: var(--fox-slate);
}

.theme-picker-option.is-selected .theme-picker-label {
    color: var(--fox-text);
    font-weight: 600;
}

.theme-picker-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.background-picker {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0.75rem 0 1.25rem;
}

.background-picker-preview {
    width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--radius-control);
    border: 1px solid var(--fox-border);
}

.font-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.font-picker-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    background: var(--fox-bg-card);
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.font-picker-option:hover {
    border-color: var(--fox-orange-light);
}

.font-picker-option.is-selected {
    border-color: var(--fox-orange);
    background: color-mix(in srgb, var(--fox-orange) 10%, var(--fox-bg-card));
}

.font-picker-option span {
    font-size: 0.95rem;
}

.clock-widget {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-left: 3px solid var(--fox-orange);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card-sm);
    padding: 0.7rem 1rem;
    margin-top: 1rem;
}

.clock-display {
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--fox-orange-light);
    letter-spacing: 0.02em;
}

.clock-timezone-select {
    width: 190px;
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.35rem 0.5rem;
    color: var(--fox-slate);
}

.tag-prune-btn, .share-prune-btn {
    margin-bottom: 0.9rem;
}

.tag-management-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.tag-management-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.55rem 0.75rem;
}

.tag-management-count {
    color: var(--fox-slate);
    font-size: 0.82rem;
    flex: 1;
}

.custom-macros-title {
    margin-top: 1.4rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--fox-border);
    font-size: 1rem;
}

.macro-management-list {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.macro-management-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.55rem 0.75rem;
}

.macro-management-expansion {
    flex: 1;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.macro-add-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.macro-add-form input,
.macro-add-form select {
    flex: 1;
    min-width: 140px;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    color: var(--fox-text);
}

.api-token-new-banner {
    background: color-mix(in srgb, var(--fox-success) 8%, var(--fox-bg-card));
    border: 1px solid color-mix(in srgb, var(--fox-success) 25%, var(--fox-border));
    border-radius: var(--radius-card);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
}

.api-token-new-banner p {
    margin: 0 0 0.4rem;
}

.api-token-new-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.api-token-value {
    flex: 1;
    min-width: 220px;
    font-size: 0.78rem;
    padding: 0.4rem 0.6rem;
    background: var(--fox-bg-sunken);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    overflow-wrap: break-word;
    word-break: break-all;
}

.calendar-category-management-list {
    list-style: none;
    margin: 0 0 0.9rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calendar-category-management-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.55rem 0.75rem;
}

.calendar-category-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
}

.calendar-category-management-keywords {
    flex: 1;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-category-add-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 420px;
}

.calendar-category-add-form input {
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    color: var(--fox-text);
}

.calendar-category-icon-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.calendar-category-icon-option {
    cursor: pointer;
}

.calendar-category-icon-option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.calendar-category-icon-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: var(--radius-control);
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card);
    font-size: 1.15rem;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.calendar-category-icon-option:has(input:checked) span {
    border-color: var(--fox-orange);
    background: color-mix(in srgb, var(--fox-orange) 18%, var(--fox-bg-card));
}

.calendar-category-icon-option input:focus-visible + span {
    outline: 2px solid var(--fox-orange);
    outline-offset: 1px;
}

.shares-subheading {
    font-size: 0.85rem;
    color: var(--fox-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 1rem 0 0.5rem;
}

.shares-subheading:first-of-type {
    margin-top: 0;
}

.share-management-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.share-management-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.55rem 0.75rem;
}

.share-management-meta {
    color: var(--fox-slate);
    font-size: 0.78rem;
    flex: 1;
}

.backup-create-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}

.backup-create-form input {
    flex: 1;
    max-width: 280px;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    color: var(--fox-text);
}

.backup-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.backup-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.55rem 0.75rem;
}

.backup-restore-reveal {
    position: relative;
}

.backup-restore-reveal summary {
    list-style: none;
    cursor: pointer;
}

.backup-restore-reveal summary::-webkit-details-marker {
    display: none;
}

.backup-restore-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 50;
    width: 260px;
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
}

.backup-restore-panel p {
    margin: 0;
    font-size: 0.8rem;
}

.backup-restore-panel input[type="password"] {
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.backup-help {
    margin-top: 1rem;
}

.backup-help summary {
    cursor: pointer;
}

.backup-help p {
    margin: 0.6rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.backup-meta {
    color: var(--fox-slate);
    font-size: 0.82rem;
    flex: 1;
}


.dashboard-widget {
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 1.25rem 1.4rem;
    box-shadow: var(--shadow-card-sm);
    transition: border-color 0.15s ease;
}

.dashboard-widget:hover {
    border-color: var(--fox-muted);
}

.widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.widget-header h3 {
    margin: 0;
    font-size: 1rem;
    flex: 1;
}

.widget-header form {
    margin: 0;
}

.widget-sort-select {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    color: var(--fox-slate);
    flex-shrink: 0;
}

.widget-remove {
    background: none;
    border: none;
    color: var(--fox-slate);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-control);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.widget-remove:hover {
    color: var(--fox-danger);
    background: var(--fox-bg-card-hover);
}

.widget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.widget-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    padding: 0.25rem 0.4rem;
    border-radius: var(--radius-control);
    transition: background-color 0.15s ease;
}

.widget-list li:hover {
    background: var(--fox-bg-card-hover);
}

.widget-list a {
    color: var(--fox-text);
    text-decoration: none;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-list a:hover {
    color: var(--fox-orange);
}

.widget-item-icon {
    flex-shrink: 0;
}

.widget-item-time {
    color: var(--fox-slate);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.widget-timezone-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.widget-timezone-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.9rem;
    padding: 0.3rem 0.4rem;
    border-radius: var(--radius-control);
}

.widget-timezone-row:hover {
    background: var(--fox-bg-card-hover);
}

.widget-timezone-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.widget-timezone-abbr {
    color: var(--fox-muted);
    font-size: 0.78rem;
}

.widget-timezone-clock {
    color: var(--fox-orange-light);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.widget-timezone-row-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.timezone-picker {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.timezone-picker-search {
    width: 100%;
    font-size: 0.85rem;
    padding: 0.4rem 0.65rem;
}

.timezone-picker-list {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    background: var(--fox-bg-sunken);
}

.timezone-picker-option {
    display: block;
    padding: 0.35rem 0.6rem;
    font-size: 0.82rem;
    line-height: 1.4;
    cursor: pointer;
    border-bottom: 1px solid var(--fox-border);
    white-space: normal;
}
.timezone-picker-option[hidden] {
    display: none;
}

.timezone-picker-option:last-child {
    border-bottom: none;
}

.timezone-picker-option:hover {
    background: var(--fox-bg-card-hover);
}

.timezone-picker-option input[type="checkbox"] {
    margin-right: 0.4rem;
}

.widget-item-location {
    font-size: 0.75rem;
    flex-shrink: 0;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.my-work-bucket {
    border-top: 1px solid var(--fox-border);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.my-work-bucket:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.my-work-bucket-summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.2rem 0;
    list-style: none;
}

.my-work-bucket-summary::-webkit-details-marker {
    display: none;
}

.my-work-bucket-summary::before {
    content: "▸";
    color: var(--fox-muted);
    font-size: 0.75em;
    transition: transform 0.15s;
}

.my-work-bucket[open] > .my-work-bucket-summary::before {
    transform: rotate(90deg);
}

.my-work-bucket-label {
    font-weight: 600;
    font-size: 0.85rem;
}

.my-work-bucket-overdue { color: var(--fox-danger); }
.my-work-bucket-today { color: var(--fox-orange-light); }
.my-work-bucket-done { color: var(--fox-success); }

.my-work-bucket-count {
    color: var(--fox-slate);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
}

.my-work-bucket-list {
    margin-top: 0.4rem;
    padding-left: 1.1rem;
}

.my-work-bucket-empty {
    margin: 0.3rem 0 0 1.1rem;
    font-size: 0.82rem;
}

.favorite-form {
    margin: 0;
    display: inline-flex;
}

.favorite-star {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--fox-muted);
    padding: 0.1rem 0.2rem;
    transition: color 0.15s ease, transform 0.1s ease;
}

.favorite-star.is-favorite {
    color: var(--fox-orange);
}

.favorite-star:hover {
    color: var(--fox-orange-light);
    transform: scale(1.1);
}

.editor-label {
    display: block;
    margin-bottom: 0.4rem;
}

.ql-toolbar.ql-snow {
    background: var(--fox-bg-card);
    border-color: var(--fox-border) !important;
    border-radius: var(--radius-control) var(--radius-control) 0 0;
    position: sticky;
    top: 0;
    z-index: 20;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.ql-editor > * {
    scroll-margin-top: 56px;
}

.ql-container.ql-snow {
    border-color: var(--fox-border) !important;
    border-radius: 0 0 var(--radius-control) var(--radius-control);
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--fox-bg-sunken);
}

.ql-editor {
    min-height: 260px;
    color: var(--fox-text);
}

.ql-editor.ql-blank::before {
    color: var(--fox-slate);
    font-style: normal;
}

.ql-snow .ql-stroke {
    stroke: var(--fox-slate);
}

.ql-snow .ql-fill, .ql-snow .ql-stroke.ql-fill {
    fill: var(--fox-slate);
}

.ql-snow .ql-picker {
    color: var(--fox-slate);
}

.ql-snow .ql-picker-options {
    background: var(--fox-bg-card);
    border-color: var(--fox-border) !important;
    border-radius: var(--radius-control);
}

.ql-snow .ql-picker-item:hover,
.ql-snow.ql-toolbar button:hover .ql-stroke,
.ql-snow.ql-toolbar button.ql-active .ql-stroke {
    stroke: var(--fox-orange);
}

.ql-snow.ql-toolbar button:hover .ql-fill,
.ql-snow.ql-toolbar button.ql-active .ql-fill {
    fill: var(--fox-orange);
}

.ql-snow.ql-toolbar button:hover,
.ql-snow.ql-toolbar button.ql-active,
.ql-snow .ql-picker-label:hover {
    color: var(--fox-orange);
}

.ql-snow .ql-tooltip {
    background: var(--fox-bg-card);
    border-color: var(--fox-border);
    color: var(--fox-text);
    box-shadow: var(--shadow-card);
    border-radius: var(--radius-control);
}

.ql-snow .ql-tooltip input[type="text"] {
    background: var(--fox-bg-sunken);
    color: var(--fox-text);
    border-color: var(--fox-border);
}

.ql-editor .ql-code-block-container {
    position: relative;
    background: var(--fox-bg-card) !important;
    color: var(--priority-low) !important;
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control) !important;
    padding: 1.7rem 1rem 0.9rem !important;
    margin: 0.75rem 0 !important;
    overflow-x: auto !important;
    box-shadow: var(--shadow-card-sm);
    counter-reset: code-line;
}

.ql-editor .ql-code-block-container::before {
    content: "";
    position: absolute;
    top: 0.7rem;
    left: 1rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--fox-danger);
    box-shadow: 15px 0 0 var(--priority-high), 30px 0 0 var(--fox-success);
}

.ql-editor .ql-code-block-container select.ql-ui {
    display: none;
}

.ql-editor .ql-code-block-container .code-block-language-badge {
    position: absolute;
    top: 0.6rem;
    left: 4.2rem;
    max-width: calc(100% - 5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--fox-muted);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.ql-editor .ql-code-block {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--priority-low);
    white-space: pre-wrap;
    word-break: break-word;
    position: relative;
    padding-left: 2.3rem;
    counter-increment: code-line;
}

.ql-editor .ql-code-block::before {
    content: counter(code-line);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    text-align: right;
    color: var(--fox-muted);
    user-select: none;
    -webkit-user-select: none;
}

.ql-editor table {
    display: block;
    overflow-x: auto;
    width: 100%;
    margin: 0.75rem 0;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.ql-editor table td {
    border: 1px solid var(--fox-border);
    padding: 0.4rem 0.6rem;
    min-width: 90px;
    vertical-align: top;
    color: var(--fox-slate);
}

.ql-editor table tr:first-child td {
    background: var(--fox-bg-card-hover);
    font-weight: 600;
    color: var(--fox-text);
}

.ql-editor table tr:hover td {
    background: color-mix(in srgb, var(--fox-orange) 6%, transparent);
}

.table-floating-controls {
    position: fixed;
    z-index: 50;
    display: none;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 260px;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    padding: 0.3rem;
    box-shadow: var(--shadow-card-sm);
}

.table-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card-hover);
    color: var(--fox-slate);
    font-family: var(--font-body);
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.table-action-btn:hover {
    color: var(--fox-orange-light);
    border-color: var(--fox-orange);
}

.table-action-btn-danger:hover {
    color: var(--fox-danger);
    border-color: var(--fox-danger);
}

.code-block-controls-top {
    position: absolute;
    top: 0.55rem;
    right: 0.7rem;
    display: flex;
    gap: 0.4rem;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.ql-code-block-container:hover .code-block-controls-top,
.code-block-controls-top:focus-within {
    opacity: 1;
}

.code-block-controls-bottom {
    display: flex;
    justify-content: flex-end;
    padding-top: 0.4rem;
}

.code-copy-btn,
.code-delete-btn,
.code-collapse-btn,
.code-confidential-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card-hover);
    color: var(--fox-slate);
    font-family: var(--font-body);
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.code-copy-btn:hover,
.code-collapse-btn:hover,
.code-confidential-btn:hover {
    color: var(--fox-orange-light);
    border-color: var(--fox-orange);
}

.code-delete-btn:hover {
    color: var(--fox-danger);
    border-color: var(--fox-danger);
}

.code-copy-btn.is-copied {
    color: var(--fox-success);
    border-color: var(--fox-success);
}

.code-confidential-btn.is-active {
    color: var(--fox-warning);
    border-color: var(--fox-warning);
}

.ql-editor .ql-code-block-container:has(.ql-code-confidential-yes) {
    border: 1px dashed var(--fox-warning);
}

.ql-code-block-container.is-collapsed .ql-code-block:not(:nth-child(-n+5)) {
    display: none;
}

.ql-container .ql-code-block-container.is-collapsed {
    cursor: pointer;
}

.ql-container .ql-code-block-container.is-collapsed::after {
    content: attr(data-collapsed-hint);
    display: block;
    padding-top: 0.3rem;
    font-size: 0.72rem;
    font-style: italic;
    color: var(--fox-slate);
}

.ql-editor li[data-list="checked"]:not(:has([class*="ql-size-"])) {
    text-decoration: line-through;
    color: var(--fox-slate);
}

.ql-editor li[data-list="checked"] [class*="ql-size-"] {
    text-decoration: line-through;
    color: var(--fox-slate);
}

.ql-editor li[data-list="checked"] {
    color: var(--fox-slate);
}

.ql-editor li[data-list="checked"] > .ql-ui,
.ql-editor li[data-list="unchecked"] > .ql-ui {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ql-editor li[data-list="checked"] > .ql-ui:before,
.ql-editor li[data-list="unchecked"] > .ql-ui:before {
    box-sizing: border-box;
    width: 1.21em;
    height: 1.21em;
    border: 2px solid var(--fox-muted);
    border-radius: 50%;
    font-size: 0.75em;
    color: transparent;
    background: transparent;
    position: relative;
    top: 2.5px;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ql-editor li[data-list="checked"] > .ql-ui:before {
    content: '' !important;
    background-color: var(--fox-orange) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 68% !important;
    border-color: var(--fox-orange) !important;
}

.ql-editor li[data-list="unchecked"] > .ql-ui:before {
    content: '' !important;
}

.ql-editor a[href^="/attachments/"] {
    display: inline-block;
    vertical-align: middle;
    max-width: min(420px, 100%);
    margin: 0.4rem 0;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-left: 3px solid var(--fox-orange);
    border-radius: var(--radius-control);
    padding: 0.5rem 0.85rem;
    text-decoration: none;
    color: var(--fox-text);
    font-size: 0.85rem;
    box-shadow: var(--shadow-card-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: border-left-color 0.15s ease, box-shadow 0.15s ease;
}

.ql-editor a[href^="/attachments/"]:hover {
    border-left-color: var(--fox-orange-light);
    box-shadow: var(--shadow-card);
}

.ql-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.82);
    cursor: zoom-out;
    padding: 2rem;
    overflow: auto;
}

.ql-lightbox-overlay.is-zoomed {
    align-items: flex-start;
    justify-content: flex-start;
}

.ql-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-card);
    cursor: zoom-in;
}

.ql-lightbox-img.is-zoomed {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}

.ql-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
}

.ql-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.ql-lightbox-prev {
    left: 1rem;
}

.ql-lightbox-next {
    right: 1rem;
}

.ql-lightbox-caption {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
    white-space: nowrap;
}

.ql-lightbox-iframe {
    width: 90vw;
    height: 90vh;
    border: none;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-card);
    background: #fff;
}

.attachment-upload-form {
    display: flex;
    margin-top: 0.6rem;
}

.attachment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.attachment-list-more {
    margin-top: 0.3rem;
}

.attachment-list-more summary {
    list-style: none;
    width: fit-content;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--fox-orange);
}

.attachment-list-more summary::-webkit-details-marker {
    display: none;
}

.attachment-list-more[open] summary {
    margin-bottom: 0.3rem;
}

.attachment-list-more .when-open {
    display: none;
}

.attachment-list-more[open] .when-closed {
    display: none;
}

.attachment-list-more[open] .when-open {
    display: inline;
}

.attachment-list-more .attachment-list {
    margin-top: 0;
}

.revision-list-more {
    margin-top: 0.3rem;
}

.revision-list-more summary {
    list-style: none;
    width: fit-content;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--fox-orange);
}

.revision-list-more summary::-webkit-details-marker {
    display: none;
}

.revision-list-more[open] summary {
    margin-bottom: 0.3rem;
}

.revision-list-more .when-open {
    display: none;
}

.revision-list-more[open] .when-closed {
    display: none;
}

.revision-list-more[open] .when-open {
    display: inline;
}

.revision-list-more .widget-list {
    margin-top: 0;
}

.attachment-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.4rem 0.4rem;
    border-radius: var(--radius-control);
    transition: background-color 0.15s ease;
}

.attachment-item:hover {
    background: var(--fox-bg-card-hover);
}

.attachment-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem;
}

.attachment-main a {
    color: var(--fox-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85rem;
    max-width: 100%;
    min-width: 0;
}

.attachment-main a:hover {
    color: var(--fox-orange);
}

.attachment-meta {
    flex-basis: 100%;
    color: var(--fox-slate);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-variant-numeric: tabular-nums;
}

.attachment-item form {
    margin: 0;
}

.attachment-icon {
    flex-shrink: 0;
    font-size: 0.95rem;
    margin-top: 0.1rem;
}

.attachment-used-badge {
    color: var(--priority-normal);
    flex-shrink: 0;
}

.attachment-locked {
    font-size: 0.85rem;
    cursor: help;
    flex-shrink: 0;
}

.attachment-insert-btn {
    display: none;
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--fox-orange);
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0.15rem 0.3rem;
}

.attachment-insert-btn:hover {
    color: var(--fox-orange-light);
    text-decoration: underline;
}

.note-editing .attachment-insert-btn {
    display: inline-flex;
}

.attachment-rename-btn {
    display: none;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--fox-slate);
    font-size: 0.8rem;
    padding: 0.1rem 0.3rem;
}

.note-editing .attachment-rename-btn {
    display: inline-flex;
}

.attachment-rename-btn:hover {
    color: var(--fox-orange);
}

.attachment-rename-form {
    display: none;
    flex-basis: 100%;
    gap: 0.4rem;
}

.note-editing .attachment-item.is-renaming .attachment-rename-form {
    display: flex;
}

.attachment-rename-form input[type="text"] {
    flex: 1;
    min-width: 0;
}

.task-embed {
    display: inline-block;
    vertical-align: middle;
    line-height: 0;
    margin: 0 0.15rem;
}

.task-embed-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: 0.5rem;
    padding: 0.1rem 0.55rem;
    font-size: 0.82rem;
    line-height: 1.3;
    text-decoration: none;
    color: inherit;
}

.task-embed-inner:hover {
    border-color: var(--fox-orange);
}

.task-embed-dot {
    display: block;
    width: 0.7rem;
    height: 0.7rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--fox-muted);
    background: transparent;
}

.task-embed-dot.is-done {
    background: var(--fox-success);
    border-color: var(--fox-success);
}

.task-embed-dot-event {
    background: var(--priority-normal);
    border-color: var(--priority-normal);
}

.task-embed-title {
    display: inline-block;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--fox-text);
    font-weight: 500;
}

.task-embed-inner.is-done .task-embed-title {
    color: var(--fox-muted);
    text-decoration: line-through;
}

.task-embed-status.badge {
    flex-shrink: 0;
    font-size: 0.68rem;
    padding: 0.05rem 0.5rem;
}

.task-embed-info {
    flex-shrink: 0;
    color: var(--fox-muted);
    cursor: help;
    font-size: 0.85rem;
}

.task-embed-picker {
    margin: 0.6rem 0;
    padding: 0.75rem 0.9rem;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
}

.task-embed-picker:not([hidden]) {
    position: fixed;
    top: 22vh;
    left: 50%;
    transform: translateX(-50%);
    width: min(480px, 92vw);
    margin: 0;
    z-index: 200;
    box-shadow: var(--shadow-card);
}

.task-embed-picker-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.task-embed-picker-row select {
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
}

.ql-editor img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    border-radius: 8px;
}

.ql-editor img.ql-image-selected {
    outline: 2px solid var(--fox-orange);
    outline-offset: 2px;
}

.ql-image-resize-handle {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--fox-orange);
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: nwse-resize;
    z-index: 50;
    display: none;
}

.ql-editor .img-tooltip-wrap {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.ql-editor .img-tooltip-wrap::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--fox-text);
    color: var(--fox-bg-card);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-line;
    width: max-content;
    max-width: min(320px, 70vw);
    overflow-wrap: anywhere;
    text-align: left;
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-control);
    box-shadow: var(--shadow-card-sm);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 3;
}

.ql-editor .img-tooltip-wrap::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    border: 5px solid transparent;
    border-top-color: var(--fox-text);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease, transform 0.12s ease;
    z-index: 3;
}

.ql-editor .img-tooltip-wrap:hover::after,
.ql-editor .img-tooltip-wrap:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.code-block-floating-controls {
    position: fixed;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 280px;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    padding: 0.3rem;
    box-shadow: var(--shadow-card-sm);
}

.block-drag-handle {
    position: fixed;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: var(--radius-control);
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    color: var(--fox-muted);
    font-size: 0.85rem;
    cursor: grab;
    box-shadow: var(--shadow-card-sm);
}

.block-drag-handle:hover {
    color: var(--fox-text);
    background: var(--fox-bg-card-hover);
}

.block-drag-handle.is-dragging {
    cursor: grabbing;
    opacity: 0.6;
}

.block-drop-indicator {
    position: fixed;
    z-index: 49;
    display: none;
    height: 2px;
    border-radius: 1px;
    background: var(--fox-orange);
    pointer-events: none;
}

.code-controls-actions-row {
    display: flex;
    gap: 0.4rem;
}

.code-language-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-top: 0.4rem;
    border-top: 1px solid var(--fox-border);
}

.code-language-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card-hover);
    color: var(--fox-slate);
    font-family: var(--font-mono);
    font-size: 0.66rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.code-language-btn:hover {
    color: var(--fox-orange-light);
    border-color: var(--fox-orange);
}

.code-language-btn.is-active {
    color: var(--fox-orange-light);
    border-color: var(--fox-orange);
    background: color-mix(in srgb, var(--fox-orange) 14%, transparent);
}

.line-format-floating-controls {
    position: fixed;
    z-index: 50;
    display: none;
    flex-direction: column;
    gap: 0.4rem;
    max-width: 300px;
    background: var(--fox-bg-card);
    border: 1px solid var(--fox-border);
    border-radius: var(--radius-control);
    padding: 0.3rem;
    box-shadow: var(--shadow-card-sm);
}
.line-format-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.line-format-row + .line-format-row {
    padding-top: 0.4rem;
    border-top: 1px solid var(--fox-border);
}
.line-format-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--fox-border);
    background: var(--fox-bg-card-hover);
    color: var(--fox-slate);
    font-family: var(--font-body);
    font-size: 0.7rem;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}
.line-format-btn:hover {
    color: var(--fox-orange-light);
    border-color: var(--fox-orange);
}
.line-format-btn.is-active {
    color: var(--fox-orange-light);
    border-color: var(--fox-orange);
    background: color-mix(in srgb, var(--fox-orange) 14%, transparent);
}

@media (max-width: 1024px) {
    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 110;
        width: 2.6rem;
        height: 2.6rem;
        border-radius: 50%;
        border: 1px solid var(--fox-border);
        background: var(--fox-bg-card);
        color: var(--fox-text);
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: var(--shadow-card);
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(85vw, 300px);
        height: 100dvh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 100;
        /* --fox-bg-sunken equals --fox-bg exactly in Blackie (both pure black), so the sliding
           drawer was blending straight into the page behind it with zero edge definition. A card
           background gives a (admittedly subtle, by design in Blackie) color difference; the
           shadow is what actually reads as "this is floating over the page" at a glance. */
        background: var(--fox-bg-card);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
    }

    .app-shell.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 99;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .app-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .app-main,
    .app-main-wide,
    .app-main-note-wide {
        max-width: 100%;
        padding: 1.25rem 1rem 3rem;
    }

    .note-item .note-title {
        flex: 1 1 auto;
    }

    .tag-pills-static {
        flex: 1 1 100%;
    }

    .folder-menu-panel,
    .note-menu-panel,
    .note-icon-panel,
    .backup-restore-panel,
    .note-timer-details-panel {
        max-width: calc(100vw - 2rem);
    }

    .diff-columns {
        grid-template-columns: 1fr;
    }

    .note-reading-content img,
    .ql-editor img {
        display: block !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
    }

}

.search-section {
    margin-bottom: 2rem;
}

.search-section h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.search-result-item {
    display: block;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.85rem 1.1rem;
    text-decoration: none;
    color: var(--fox-text);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.search-result-item:hover {
    background: var(--fox-bg-card-hover);
    border-color: var(--fox-orange);
}

.search-result-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.search-result-icon {
    font-size: 1.05rem;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin: 0.35rem 0 0;
    color: var(--fox-muted);
    font-size: 0.78rem;
}

.search-result-meta:empty {
    display: none;
}

.search-result-snippet {
    margin: 0.4rem 0 0;
    color: var(--fox-slate);
    font-size: 0.88rem;
    line-height: 1.5;
}

.search-result-snippet mark,
.search-result-title mark {
    background: color-mix(in srgb, var(--fox-orange) 35%, transparent);
    color: var(--fox-text);
    border-radius: 0.2rem;
    padding: 0;
}

.search-match-highlight {
    background: var(--fox-orange);
    color: var(--fox-bg);
    border-radius: 0.2rem;
    padding: 0;
    transition: background-color 1.2s ease, color 1.2s ease;
}

.search-match-highlight-fade {
    background: color-mix(in srgb, var(--fox-orange) 35%, transparent);
    color: var(--fox-text);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    margin-left: 0.4rem;
}

.calendar-view-switch {
    display: flex;
    gap: 0.4rem;
}

.calendar-month {
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
}

.calendar-month-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-month-header {
    background: var(--fox-bg-sunken);
}

.calendar-month-headcell {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: var(--fox-slate);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calendar-month-cell {
    min-width: 0;
    min-height: 108px;
    padding: 0.55rem;
    border-top: 1px solid var(--fox-border);
    border-right: 1px solid var(--fox-border);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.calendar-month-row .calendar-month-cell:last-child {
    border-right: none;
}

.calendar-month-cell.is-outside {
    background: var(--fox-bg-sunken);
    opacity: 0.55;
}

.calendar-month-cell.is-today {
    background: color-mix(in srgb, var(--fox-orange) 8%, var(--fox-bg-card));
}

.calendar-month-daynum {
    font-size: 0.78rem;
    color: var(--fox-slate);
    font-variant-numeric: tabular-nums;
}

.calendar-month-cell.is-today .calendar-month-daynum {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 50%;
    background: var(--fox-orange);
    color: #fff;
    font-weight: 600;
}

.calendar-month-items {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow: hidden;
}

.calendar-chip {
    display: block;
    font-size: 0.72rem;
    padding: 0.2rem 0.55rem;
    border-radius: 0.6rem;
    background: color-mix(in oklch, var(--chip-color, var(--fox-muted)) 88%, black);
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-chip:hover {
    background: color-mix(in oklch, var(--chip-color, var(--fox-muted)) 96%, black);
}

.calendar-chip-priority-low { --chip-color: var(--priority-low); }
.calendar-chip-priority-normal { --chip-color: var(--priority-normal); }
.calendar-chip-priority-high { --chip-color: var(--priority-high); }
.calendar-chip-priority-urgent { --chip-color: var(--priority-urgent); }

.calendar-month-more {
    font-size: 0.68rem;
    color: var(--fox-slate);
    padding-left: 0.55rem;
}

.calendar-chip.calendar-chip-categorized {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding-left: 0.5rem;
    background: var(--fox-bg-card-hover);
    border-left: 3px solid var(--chip-color, transparent);
    color: var(--fox-text);
}

.calendar-chip-icon {
    flex-shrink: 0;
    font-size: 0.75rem;
    line-height: 1;
}

.calendar-chip-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.9rem;
    padding: 0.6rem 0.2rem 0;
    font-size: 0.78rem;
    color: var(--fox-slate);
}

.calendar-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.calendar-legend-dot {
    display: inline-block;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.calendar-week {
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    overflow: hidden;
}

.calendar-week-header,
.calendar-week-body {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
}

.calendar-week-header {
    border-bottom: 1px solid var(--fox-border);
    background: var(--fox-bg-sunken);
}

.calendar-week-headcell {
    padding: 0.5rem 0.3rem;
    text-align: center;
    border-left: 1px solid var(--fox-border);
}

.calendar-week-headcell.is-today {
    color: var(--fox-orange-light);
}

.calendar-week-headcell-day {
    display: block;
    font-size: 0.7rem;
    color: var(--fox-slate);
    text-transform: uppercase;
}

.calendar-week-headcell-num {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
}

.calendar-week-body {
    position: relative;
}

.calendar-week-hour {
    height: 48px;
    font-size: 0.65rem;
    color: var(--fox-slate);
    text-align: right;
    padding-right: 0.4rem;
    transform: translateY(-0.6em);
}

.calendar-week-daycol {
    position: relative;
    border-left: 1px solid var(--fox-border);
}

.calendar-week-daycol.is-today {
    background: color-mix(in srgb, var(--fox-orange) 5%, transparent);
}

.calendar-week-hourline {
    height: 48px;
    border-bottom: 1px solid var(--fox-border);
}

.calendar-block {
    position: absolute;
    border-radius: 0.5rem;
    background: color-mix(in srgb, currentColor 18%, var(--fox-bg-card-hover));
    border-left: 3px solid currentColor;
    color: var(--fox-text);
    font-size: 0.7rem;
    line-height: 1.3;
    padding: 0.25rem 0.45rem;
    overflow: hidden;
    text-decoration: none;
    z-index: 1;
}

.calendar-block:hover {
    z-index: 3;
    background: color-mix(in srgb, currentColor 30%, var(--fox-bg-card-hover));
}

.calendar-week-allday {
    display: grid;
    grid-template-columns: 52px repeat(7, 1fr);
    border-bottom: 1px solid var(--fox-border);
    background: var(--fox-bg-sunken);
}

.calendar-week-allday-cell {
    min-width: 0;
    padding: 0.35rem;
    border-left: 1px solid var(--fox-border);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.calendar-block-external {
    border-left-style: dashed;
    opacity: 0.88;
}

.reports-body {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.reports-body .dashboard-grid {
    margin-bottom: 0;
}

.reports-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.reports-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    background: var(--surface-bg);
    backdrop-filter: var(--surface-blur);
    -webkit-backdrop-filter: var(--surface-blur);
    border: 1px solid var(--surface-border-color);
    border-radius: var(--radius-card);
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow-card-sm);
}

.reports-stat-icon {
    font-size: 1.3rem;
}

.reports-stat-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fox-text);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.reports-stat-label {
    font-size: 0.78rem;
    color: var(--fox-slate);
}

.heatmap {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.heatmap-dow-labels {
    display: flex;
    flex-direction: column;
    gap: 3px;
    justify-content: space-between;
    font-size: 0.62rem;
    color: var(--fox-slate);
    flex-shrink: 0;
    padding-top: 1px;
}

.heatmap-dow-labels span {
    height: 13px;
    line-height: 13px;
}

.heatmap-weeks {
    display: flex;
    gap: 3px;
}

.heatmap-week {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.heatmap-day {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 3px;
    background: var(--fox-border);
}

.heat-level-1 { background: color-mix(in srgb, var(--fox-orange-dark) 32%, var(--fox-bg-card)); }
.heat-level-2 { background: color-mix(in srgb, var(--fox-orange-dark) 60%, var(--fox-bg-card)); }
.heat-level-3 { background: var(--fox-orange-dark); }
.heat-level-4 { background: var(--fox-orange); }
.heat-level-5 { background: var(--fox-orange-light); }
.heat-level-6 { background: var(--priority-high); }
.heat-level-future { background: transparent; }

.hour-chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 90px;
    margin-bottom: 1.3rem;
}

.hour-chart-wide {
    gap: 0.6rem;
}

.hour-bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

.hour-bar {
    width: 100%;
    min-height: 2px;
    background: var(--fox-orange);
    border-radius: 2px 2px 0 0;
    transition: background 0.15s ease;
}

.hour-bar-col:hover .hour-bar {
    background: var(--fox-orange-light);
}

.hour-bar-label {
    position: absolute;
    bottom: -1.15rem;
    font-size: 0.62rem;
    color: var(--fox-slate);
    white-space: nowrap;
}

.range-toggle {
    display: flex;
    gap: 0.3rem;
    flex-shrink: 0;
}

.range-toggle-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--fox-border);
    background: transparent;
    color: var(--fox-slate);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.range-toggle-btn:hover {
    color: var(--fox-text);
    border-color: var(--fox-orange);
}

.range-toggle-btn.is-active {
    background: var(--fox-orange);
    border-color: var(--fox-orange);
    color: #fff;
}

.bar-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.bar-list-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bar-list-label {
    width: 40%;
    flex-shrink: 0;
    font-size: 0.85rem;
    color: var(--fox-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
}

a.bar-list-label:hover {
    color: var(--fox-orange-light);
}

.bar-list-track {
    position: relative;
    flex: 1;
    height: 0.55rem;
    background: var(--fox-bg-sunken);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.bar-list-fill {
    display: block;
    height: 100%;
    background: var(--fox-orange);
    opacity: 0.35;
    border-radius: var(--radius-pill);
}

#spaces-bar-list .bar-list-fill {
    background: var(--fox-slate);
    opacity: 0.45;
}

.bar-list-fill-week {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--fox-orange);
    border-radius: var(--radius-pill);
}

.bar-list-value {
    width: 92px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.3;
}

.bar-list-value-total {
    font-size: 0.78rem;
    color: var(--fox-slate);
    font-variant-numeric: tabular-nums;
}

.bar-list-value-week {
    font-size: 0.68rem;
    color: var(--fox-orange);
    font-variant-numeric: tabular-nums;
}

.bar-list-value-month {
    font-size: 0.68rem;
    color: var(--priority-normal);
    font-variant-numeric: tabular-nums;
}

.bar-list-fill-week.is-month {
    background: var(--priority-normal);
}
.bar-list-value[data-active-metric="seconds"] .bar-list-value-week,
.bar-list-value[data-active-metric="seconds"] .bar-list-value-month,
.bar-list-value[data-active-metric="weekSeconds"] .bar-list-value-total,
.bar-list-value[data-active-metric="weekSeconds"] .bar-list-value-month,
.bar-list-value[data-active-metric="monthSeconds"] .bar-list-value-total,
.bar-list-value[data-active-metric="monthSeconds"] .bar-list-value-week {
    opacity: 0.4;
}

.activity-map-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
}

.activity-map-col {
    flex: 0 1 auto;
}

.folder-pie-widget {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.folder-pie-chart {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    flex-shrink: 0;
    -webkit-mask: radial-gradient(circle, transparent 38%, #000 39%);
    mask: radial-gradient(circle, transparent 38%, #000 39%);
}

.folder-pie-legend {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 160px;
}

.folder-pie-legend-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
}

.folder-pie-swatch {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.folder-pie-legend-name {
    flex: 1;
    color: var(--fox-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-pie-legend-name:hover {
    color: var(--fox-orange);
}

.folder-pie-legend-count {
    color: var(--fox-slate);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

@media print {
    :root {
        --fox-bg: #ffffff !important;
        --fox-bg-sunken: #ffffff !important;
        --fox-bg-card: #ffffff !important;
        --fox-bg-card-hover: #ffffff !important;
        --fox-border: #cccccc !important;
        --fox-text: #000000 !important;
        --fox-slate: #333333 !important;
        --fox-muted: #666666 !important;
        --surface-bg: #ffffff !important;
        --surface-border-color: #cccccc !important;
        --glass-bg: #ffffff !important;
        --glass-border: #cccccc !important;
        --ambient-glow: none !important;
    }

    body,
    body::before,
    body.has-custom-bg::before {
        background: #fff !important;
        background-image: none !important;
    }

    .app-sidebar, .sidebar-toggle-btn, .sidebar-backdrop, .sidebar-collapse-btn,
    .v2-sidebar, .v2-global-search,
    .back-link, .breadcrumb,
    .note-toolbar-row, #note-toc, .note-floating-actions,
    .page-header .note-icon-picker, .page-header .favorite-form, .page-header .note-edit-btn,
    .note-edit-mode,
    .dashboard-grid, .no-auto-card, .delete-note-form {
        display: none !important;
    }

    .app-content, .app-main, .v2-main {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    a {
        color: #000 !important;
        text-decoration: underline;
    }
}

.trash-list { list-style: none; margin: 0; padding: 0; }
.trash-list .trash-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--fox-border);
}
.trash-list .trash-item:last-child { border-bottom: none; }
.trash-item-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}
.trash-item-title {
    color: var(--fox-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.trash-item-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.trash-item-actions form {
    display: inline-flex;
}

[data-theme="blackie"] .btn-primary {
    background: #fff;
    color: #09090B;
    box-shadow: none;
}
[data-theme="blackie"] .btn-primary:hover {
    background: #E4E4E7;
    box-shadow: none;
}
[data-theme="blackie"] .btn-secondary {
    background: #1A1A1D;
    border-color: #26262A;
    color: var(--fox-text);
}
[data-theme="blackie"] .range-toggle-btn.is-active,
[data-theme="blackie"] .calendar-month-cell.is-today .calendar-month-daynum {
    color: #09090B;
}
[data-theme="blackie"] .add-inline-btn {
    border-left-color: var(--fox-muted);
}

.theme-picker-swatch-blackie {
    background: #000;
}
.theme-picker-swatch-blackie .theme-picker-swatch-card {
    background: #0a0a0b;
    box-shadow: 0 0 0 1px #2a2a2f, 0 0 8px rgba(255, 255, 255, 0.18);
}
