:root {
    --bg: #17151d;
    --bg-soft: #1f1b26;
    --panel: #26212f;
    --panel-light: #30293a;
    --plum: #8e6aad;
    --plum-soft: #b79acb;
    --teal: #4fa9a5;
    --teal-soft: #8bd1cc;
    --blue: #6f91bd;
    --blue-soft: #a9c1df;
    --rose: #b27791;
    --rose-soft: #d0a1b4;
    --green: #6fae8d;
    --green-soft: #9bcbb2;
    --orange: #d39a55;
    --orange-soft: #efbd78;
    --text: #eeeaf3;
    --muted: #b7b0bf;
    --faint: #817989;
    --border: #443a50;
    --radius: 14px;
    --small-radius: 10px;
    --shadow: 0 10px 26px rgba(0,0,0,.20);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    background:
        radial-gradient(circle at top left, rgba(142,106,173,.13), transparent 31%),
        radial-gradient(circle at bottom right, rgba(79,169,165,.10), transparent 30%),
        var(--bg);
    color: var(--text);
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 12px;
    line-height: 1.45;
}

button, input, textarea { font: inherit; }

/* ---------- SLIM THEMED SCROLLBARS ---------- */
textarea,
.notes-list,
.tile-body,
.board-body,
.links-container,
.checklist-list,
.day-list,
.tile-grid-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--plum) transparent;
}

.scroll-teal { scrollbar-color: var(--teal) transparent; }
.scroll-blue { scrollbar-color: var(--blue) transparent; }
.scroll-rose { scrollbar-color: var(--rose) transparent; }
.scroll-green { scrollbar-color: var(--green) transparent; }
.scroll-orange { scrollbar-color: var(--orange) transparent; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--plum);
    border-radius: 999px;
}

.scroll-teal::-webkit-scrollbar-thumb { background: var(--teal); }
.scroll-blue::-webkit-scrollbar-thumb { background: var(--blue); }
.scroll-rose::-webkit-scrollbar-thumb { background: var(--rose); }
.scroll-green::-webkit-scrollbar-thumb { background: var(--green); }
.scroll-orange::-webkit-scrollbar-thumb { background: var(--orange); }

/* ---------- PAGE SHELL ---------- */
.page {
    width: min(1500px, calc(100% - 24px));
    height: 100dvh;
    margin: 0 auto;
    padding: 12px 0 14px;
    display: grid;
    grid-template-rows: auto 148px minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
}

/* ---------- HEADER ---------- */
header {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.pigeon-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 22px;
    background: linear-gradient(135deg, rgba(142,106,173,.95), rgba(79,169,165,.84));
    box-shadow: var(--shadow);
}

h1 {
    margin: 0;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
    font-size: 31px;
    line-height: 1;
    letter-spacing: -.7px;
}

.subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}

#saveStatus.saved { color: var(--teal-soft); }

.small-button {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-light);
    color: var(--muted);
    padding: 6px 9px;
    cursor: pointer;
    font-size: 12px;
}

.small-button:hover {
    color: var(--text);
    border-color: var(--plum);
}

/* ---------- PANELS ---------- */
.panel {
    min-height: 0;
    background: linear-gradient(145deg, rgba(255,255,255,.018), transparent 60%), var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.panel-header {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.018);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.panel-title span { font-size: 16px; }

.panel-subtitle {
    color: var(--faint);
    font-size: 12px;
}

.editable-ui {
    outline: none;
    border-radius: 5px;
    transition: background .12s ease;
}

.editable-ui:hover {
    background: rgba(255,255,255,.028);
}

.editable-ui:focus {
    background: rgba(255,255,255,.05);
}

/* ---------- THREE-DAY STRIP ---------- */
.current-strip {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: linear-gradient(110deg, rgba(142,106,173,.18), rgba(79,169,165,.10));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.current-cell {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    padding: 9px 10px 9px;
    gap: 6px;
}

.current-cell + .current-cell { border-left: 1px solid var(--border); }

.date-label {
    color: var(--plum-soft);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
}

.current-cell:nth-child(2) .date-label { color: var(--teal-soft); }
.current-cell:nth-child(3) .date-label { color: var(--blue-soft); }

.day-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 2px;
}

.current-cell:nth-child(2) .day-list { scrollbar-color: var(--teal) transparent; }
.current-cell:nth-child(3) .day-list { scrollbar-color: var(--blue) transparent; }
.current-cell:nth-child(2) .day-list::-webkit-scrollbar-thumb { background: var(--teal); }
.current-cell:nth-child(3) .day-list::-webkit-scrollbar-thumb { background: var(--blue); }

.day-entry-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 5px;
}

.day-input {
    min-width: 0;
    height: 26px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: rgba(0,0,0,.13);
    color: var(--text);
    padding: 4px 7px;
    outline: none;
    font-size: 12px;
}

.day-input:focus { border-color: var(--plum); }
.current-cell:nth-child(2) .day-input:focus { border-color: var(--teal); }
.current-cell:nth-child(3) .day-input:focus { border-color: var(--blue); }

.mini-add {
    border: 0;
    border-radius: 7px;
    min-width: 28px;
    height: 26px;
    background: var(--plum-soft);
    color: #17151d;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.current-cell:nth-child(2) .mini-add { background: var(--teal-soft); }
.current-cell:nth-child(3) .mini-add { background: var(--blue-soft); }

/* ---------- LOWER CONTENT SHELL ---------- */
.content-shell {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(340px, .84fr);
    gap: 10px;
}

.left-workspace {
    min-height: 0;
    display: grid;
    grid-template-rows: 38px minmax(0, 1fr) 208px;
    gap: 10px;
}

.right-workspace {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
}

/* ---------- SLIM LINKS STRIP ---------- */
.link-strip {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 5px 9px 5px 11px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.link-strip-label {
    color: var(--plum-soft);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.links-container {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
}

.link-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--panel-light);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 999px;
    padding: 5px 9px;
}

.link-chip.dragging { opacity: .4; }

.link-drag,
.link-edit {
    color: var(--faint);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
}

.link-drag { user-select: none; cursor: grab; }

.link-chip a {
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    white-space: nowrap;
}

.link-chip a:hover { color: var(--teal-soft); }
.link-edit:hover, .link-drag:hover { color: var(--text); }


/* ---------- LINK ADD / REMOVE CONTROLS ---------- */
.link-add-button {
    flex: 0 0 auto;
    height: 27px;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 3px 9px;
    background: var(--panel-light);
    color: var(--teal-soft);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.link-add-button:hover {
    color: var(--text);
    border-color: var(--teal);
    background: #393143;
}

.link-remove {
    color: var(--faint);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

.link-remove:hover { color: var(--rose-soft); }

/* A subtle cue when a task is being dragged into another checklist. */
.checklist-list.task-drop-target,
.day-list.task-drop-target {
    outline: 1px dashed rgba(139,209,204,.55);
    outline-offset: -3px;
    border-radius: 7px;
    background: rgba(79,169,165,.06);
}

/* ---------- MAIN BOARD ---------- */
.board-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: 40px minmax(0,1fr);
}

.board-body {
    min-height: 0;
    padding: 10px;
    overflow-y: auto;
}

.board-body.scroll-teal::-webkit-scrollbar-thumb { background: var(--teal); }

.tile-grid {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 138px;
    gap: 9px;
}

.board-tile {
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    background: var(--panel-light);
    border: 1px solid rgba(255,255,255,.05);
    border-radius: var(--small-radius);
    overflow: hidden;
    cursor: default;
}

.board-tile[data-accent="plum"] { border-top: 3px solid var(--plum); }
.board-tile[data-accent="teal"] { border-top: 3px solid var(--teal); }
.board-tile[data-accent="blue"] { border-top: 3px solid var(--blue); }
.board-tile[data-accent="rose"] { border-top: 3px solid var(--rose); }
.board-tile[data-accent="green"] { border-top: 3px solid var(--green); }
.board-tile[data-accent="orange"] { border-top: 3px solid var(--orange); }

.board-tile.dragging { opacity: .45; }

.tile-head {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 9px 5px;
}

.drag-handle {
    color: var(--faint);
    font-size: 14px;
    cursor: grab;
    user-select: none;
    line-height: 1;
}
.drag-handle:active { cursor: grabbing; }

.tile-title {
    min-width: 0;
    flex: 1;
    outline: none;
    border-radius: 5px;
    color: var(--teal-soft);
    font-size: 13px;
    font-weight: 700;
}
.board-tile[data-accent="plum"] .tile-title { color: var(--plum-soft); }
.board-tile[data-accent="blue"] .tile-title { color: var(--blue-soft); }
.board-tile[data-accent="rose"] .tile-title { color: var(--rose-soft); }
.board-tile[data-accent="green"] .tile-title { color: var(--green-soft); }
.board-tile[data-accent="orange"] .tile-title { color: var(--orange-soft); }

.tile-title:focus,
.tile-title:hover { background: rgba(255,255,255,.035); }

.tile-body {
    min-height: 0;
    padding: 2px 9px 9px;
    overflow-y: auto;
}

.tile-text {
    min-height: 100%;
    outline: none;
    border-radius: 5px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.tile-text:focus,
.tile-text:hover { background: rgba(255,255,255,.025); }

.board-tile[data-accent="teal"] .tile-body { scrollbar-color: var(--teal) transparent; }
.board-tile[data-accent="blue"] .tile-body { scrollbar-color: var(--blue) transparent; }
.board-tile[data-accent="rose"] .tile-body { scrollbar-color: var(--rose) transparent; }
.board-tile[data-accent="green"] .tile-body { scrollbar-color: var(--green) transparent; }
.board-tile[data-accent="orange"] .tile-body { scrollbar-color: var(--orange) transparent; }
.board-tile[data-accent="teal"] .tile-body::-webkit-scrollbar-thumb { background: var(--teal); }
.board-tile[data-accent="blue"] .tile-body::-webkit-scrollbar-thumb { background: var(--blue); }
.board-tile[data-accent="rose"] .tile-body::-webkit-scrollbar-thumb { background: var(--rose); }
.board-tile[data-accent="green"] .tile-body::-webkit-scrollbar-thumb { background: var(--green); }
.board-tile[data-accent="orange"] .tile-body::-webkit-scrollbar-thumb { background: var(--orange); }

/* ---------- NOTES WORKSPACE ---------- */
.notes-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: 40px minmax(0,1fr);
}

.notes-body {
    min-height: 0;
    padding: 9px 10px 10px;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr);
    gap: 9px;
}

.scratch-side,
.quick-note-side {
    min-width: 0;
    min-height: 0;
}

.scratch-side {
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    gap: 5px;
}

.quick-note-side {
    display: grid;
    grid-template-rows: auto auto minmax(0,1fr);
    gap: 6px;
}

.notes-mini-label {
    color: var(--faint);
    font-size: 12px;
    font-weight: 700;
}

#scratchpad {
    width: 100%;
    height: 100%;
    min-height: 0;
    resize: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0,0,0,.13);
    color: var(--text);
    outline: none;
    padding: 8px 9px;
    font-size: 13px;
    line-height: 1.48;
    overflow-y: auto;
    scrollbar-color: var(--plum) transparent;
}
#scratchpad:focus { border-color: var(--plum); }

.note-entry {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 6px;
}

#noteInput {
    min-width: 0;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0,0,0,.13);
    color: var(--text);
    padding: 5px 8px;
    outline: none;
    font-size: 13px;
}
#noteInput:focus { border-color: var(--teal); }

.add-button {
    border: 0;
    border-radius: 8px;
    background: var(--teal-soft);
    color: #17151d;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.notes-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 2px;
    scrollbar-color: var(--teal) transparent;
}
.notes-list::-webkit-scrollbar-thumb { background: var(--teal); }

.note {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 6px;
    padding: 6px 7px;
    border-radius: 7px;
    background: rgba(255,255,255,.025);
}

.note-text {
    color: var(--muted);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

.note-time {
    margin-top: 2px;
    color: var(--faint);
    font-size: 12px;
}

.delete-note {
    align-self: start;
    border: 0;
    background: transparent;
    color: var(--faint);
    padding: 0 2px;
    font-size: 16px;
    cursor: pointer;
}
.delete-note:hover { color: var(--rose); }

/* ---------- GENERIC CHECKLIST ---------- */
.checklist-panel {
    min-height: 0;
    display: grid;
    grid-template-rows: 40px minmax(0,1fr);
}

.checklist-body {
    min-height: 0;
    padding: 9px 10px 10px;
    display: grid;
    grid-template-rows: minmax(0,1fr) auto;
    gap: 8px;
}

.checklist-list {
    min-height: 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 2px;
}

.checklist-item {
    display: grid;
    grid-template-columns: auto auto minmax(0,1fr) auto;
    gap: 7px;
    align-items: start;
    padding: 6px 7px;
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.checklist-item.dragging { opacity: .45; }

.check-drag {
    color: var(--faint);
    font-size: 13px;
    line-height: 1;
    user-select: none;
    cursor: grab;
    margin-top: 4px;
}

.check-delete {
    border: 0;
    background: transparent;
    color: var(--faint);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    padding: 0 1px;
    margin-top: 2px;
}

.check-delete:hover { color: var(--rose); }

.task-text {
    min-width: 0;
    outline: none;
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
    border-radius: 4px;
}

.task-text:hover,
.task-text:focus { background: rgba(255,255,255,.03); }

.checklist-item.done .task-text {
    color: var(--faint);
    text-decoration: line-through;
}

.checklist-entry {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 6px;
}

.checklist-input {
    min-width: 0;
    height: 31px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0,0,0,.13);
    color: var(--text);
    padding: 5px 8px;
    outline: none;
    font-size: 12px;
}

.checklist-input:focus { border-color: var(--teal); }

.checklist-add {
    border: 0;
    border-radius: 8px;
    background: var(--teal-soft);
    color: #17151d;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Small themed checkbox */
.check-wrap {
    position: relative;
    width: 14px;
    height: 14px;
    margin-top: 3px;
    flex: 0 0 auto;
}

.check-wrap input {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    margin: 0;
    border-radius: 50%;
    border: 1.5px solid var(--plum-soft);
    background: transparent;
    cursor: pointer;
    display: block;
}

.check-wrap input:checked {
    background: radial-gradient(circle at center, var(--plum-soft) 0 45%, transparent 48%);
}

.scroll-teal .check-wrap input {
    border-color: var(--teal-soft);
}
.scroll-teal .check-wrap input:checked {
    background: radial-gradient(circle at center, var(--teal-soft) 0 45%, transparent 48%);
}

.scroll-blue .check-wrap input {
    border-color: var(--blue-soft);
}
.scroll-blue .check-wrap input:checked {
    background: radial-gradient(circle at center, var(--blue-soft) 0 45%, transparent 48%);
}

.scroll-rose .check-wrap input {
    border-color: var(--rose-soft);
}
.scroll-rose .check-wrap input:checked {
    background: radial-gradient(circle at center, var(--rose-soft) 0 45%, transparent 48%);
}



/* ---------- INLINE LINK EDITOR ---------- */
.link-editor-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12,10,16,.58);
    z-index: 1000;
}
.link-editor-backdrop.open { display: flex; }

.link-editor {
    width: min(420px, calc(100% - 32px));
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
}

.link-editor h2 {
    margin: 0 0 12px;
    font-family: "Trebuchet MS", "Lucida Sans Unicode", "Segoe UI", sans-serif;
    font-size: 18px;
}

.link-editor label {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin: 8px 0 4px;
}

.link-editor input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(0,0,0,.16);
    color: var(--text);
    padding: 8px 9px;
    outline: none;
    font-size: 13px;
}

.link-editor input:focus { border-color: var(--teal); }

.link-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
    margin-top: 12px;
}

.link-editor-actions button {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
}

#cancelLinkEdit {
    background: var(--panel-light);
    color: var(--muted);
}

#saveLinkEdit {
    background: var(--teal-soft);
    color: #17151d;
    border-color: transparent;
    font-weight: 700;
}

/* Keep the composition fixed instead of turning into a scrolling page. */
@media (max-width: 1050px) {
    .page { width: calc(100% - 16px); }
    .content-shell { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .95fr); }
    h1 { font-size: 26px; }
    .subtitle { display: none; }
}

/* ---------- THEME SWITCHER ---------- */
.theme-select {
    height: 29px;
    max-width: 170px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--panel-light);
    color: var(--muted);
    padding: 4px 26px 4px 8px;
    outline: none;
    cursor: pointer;
    font-size: 12px;
    box-shadow: var(--shadow);
}

.theme-select:hover,
.theme-select:focus {
    color: var(--text);
    border-color: var(--teal);
}

.theme-select option {
    background: var(--panel);
    color: var(--text);
}


/* Dark Original uses the shared/base rules above. */


/* =========================================================
   COZY EARLY-2000s INTERNET THEME
   Selected with <body data-theme="cozy">
   ========================================================= */
body[data-theme="cozy"] {
--bg: #7779ad;
    --bg-soft: #9391bd;
    --panel: #f5eef7;
    --panel-light: #eadff0;

    --plum: #8b5ea7;
    --plum-soft: #b587ca;
    --teal: #4f9c9b;
    --teal-soft: #77c3bd;
    --blue: #5e7fb4;
    --blue-soft: #91acd4;
    --rose: #b66f8c;
    --rose-soft: #d89ab2;
    --green: #6f9e78;
    --green-soft: #a7c89d;
    --orange: #d19450;
    --orange-soft: #efc26e;

    --text: #44384d;
    --muted: #695e70;
    --faint: #887b91;
    --border: #b7a7bf;

    --shadow:
        0 5px 14px rgba(62, 48, 91, .20),
        inset 0 1px 0 rgba(255,255,255,.72);
}

body[data-theme="cozy"] {
color: var(--text);
    background-color: #7f80b2;
    background-image:
        radial-gradient(circle at 14px 14px, rgba(255,255,255,.34) 0 1px, transparent 1.6px),
        radial-gradient(circle at 44px 34px, rgba(255,235,173,.25) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 70% 10%, rgba(229,206,255,.58), transparent 25%),
        radial-gradient(circle at 15% 84%, rgba(137,210,207,.34), transparent 27%),
        linear-gradient(145deg, #777db2 0%, #9b88b9 48%, #778dac 100%);
    background-size: 58px 58px, 82px 82px, auto, auto, auto;
}

body[data-theme="cozy"]::before {
content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,255,255,.025) 0 1px,
            transparent 1px 7px
        );
    mix-blend-mode: screen;
}

body[data-theme="cozy"]::after {
content: "";
    position: fixed;
    width: 330px;
    height: 330px;
    right: -90px;
    bottom: -110px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,221,154,.22), transparent 68%);
}

body[data-theme="cozy"] .page {
position: relative;
    z-index: 1;
}

body[data-theme="cozy"] .pigeon-mark {
color: #4f3e62;
    background:
        linear-gradient(180deg, rgba(255,255,255,.95), rgba(214,198,234,.92));
    border: 1px solid rgba(255,255,255,.8);
    box-shadow:
        0 3px 0 rgba(73,58,96,.16),
        0 7px 18px rgba(50,42,74,.22),
        inset 0 1px 0 white;
}

body[data-theme="cozy"] h1 {
color: #fbf5ff;
    text-shadow:
        0 2px 0 rgba(82,57,104,.65),
        0 0 10px rgba(231,211,255,.32);
}

body[data-theme="cozy"] .subtitle,
body[data-theme="cozy"] .header-right {
color: #f0e8f4;
    text-shadow: 0 1px 1px rgba(69,53,86,.35);
}

body[data-theme="cozy"] .small-button,
body[data-theme="cozy"] .link-add-button,
body[data-theme="cozy"] .link-chip,
body[data-theme="cozy"] .metric,
body[data-theme="cozy"] .checklist-item,
body[data-theme="cozy"] .note {
box-shadow:
        inset 0 1px 0 rgba(255,255,255,.75),
        0 1px 2px rgba(71,54,83,.12);
}

body[data-theme="cozy"] .small-button {
color: #5c4d64;
    background: linear-gradient(180deg, #fffaff, #e8dced);
    border-color: #b9a9c0;
}

body[data-theme="cozy"] .small-button:hover {
color: #43364d;
    border-color: var(--plum);
    background: linear-gradient(180deg, #ffffff, #efe1f3);
}

body[data-theme="cozy"] .panel,
body[data-theme="cozy"] .link-strip {
background:
        linear-gradient(180deg, rgba(255,252,255,.96), rgba(241,232,245,.95));
    border-color: rgba(190,171,199,.95);
    box-shadow:
        0 5px 14px rgba(58,45,77,.17),
        inset 0 1px 0 rgba(255,255,255,.88);
}

body[data-theme="cozy"] .panel-header {
background:
        linear-gradient(180deg, rgba(255,255,255,.88), rgba(226,214,236,.82));
    border-bottom-color: #c9b8d0;
}

body[data-theme="cozy"] .panel-title,
body[data-theme="cozy"] .link-strip-label,
body[data-theme="cozy"] .notes-mini-label {
color: #5b4768;
}

body[data-theme="cozy"] .panel-subtitle,
body[data-theme="cozy"] .notes-mini-label {
text-shadow: 0 1px 0 rgba(255,255,255,.72);
}

body[data-theme="cozy"] .current-strip {
background:
        linear-gradient(180deg, rgba(255,252,255,.95), rgba(230,219,240,.94));
    border-color: #b8a5c3;
    box-shadow:
        0 5px 14px rgba(58,45,77,.18),
        inset 0 1px 0 rgba(255,255,255,.9);
}

body[data-theme="cozy"] .current-cell + .current-cell {
border-left-color: #c7b6ce;
}

body[data-theme="cozy"] .date-label {
text-shadow: 0 1px 0 rgba(255,255,255,.9);
}

body[data-theme="cozy"] .day-input,
body[data-theme="cozy"] #scratchpad,
body[data-theme="cozy"] #noteInput,
body[data-theme="cozy"] .checklist-input,
body[data-theme="cozy"] .link-editor input {
color: var(--text);
    background:
        linear-gradient(180deg, rgba(255,255,255,.82), rgba(242,235,247,.90));
    border-color: #c4b3cb;
    box-shadow: inset 0 1px 3px rgba(85,65,96,.09);
}

body[data-theme="cozy"] .day-input::placeholder,
body[data-theme="cozy"] #scratchpad::placeholder,
body[data-theme="cozy"] #noteInput::placeholder,
body[data-theme="cozy"] .checklist-input::placeholder {
color: #96899d;
}

body[data-theme="cozy"] .mini-add,
body[data-theme="cozy"] .add-button,
body[data-theme="cozy"] .checklist-add {
color: #493850;
    border: 1px solid rgba(115,89,127,.24);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.7),
        0 2px 3px rgba(66,48,78,.12);
}

body[data-theme="cozy"] .link-strip {
background:
        linear-gradient(180deg, rgba(248,242,251,.97), rgba(229,218,237,.95));
}

body[data-theme="cozy"] .link-chip {
background:
        linear-gradient(180deg, #fffaff, #e5daec);
    border-color: #c3b1cb;
}

body[data-theme="cozy"] .link-chip a {
color: #574763;
}

body[data-theme="cozy"] .link-chip a:hover {
color: #347f82;
    text-decoration: underline;
}

body[data-theme="cozy"] .board-tile {
background:
        linear-gradient(180deg, rgba(255,255,255,.96), rgba(235,226,241,.96));
    border-color: rgba(190,174,198,.78);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.9),
        0 2px 5px rgba(65,49,77,.11);
}

body[data-theme="cozy"] .tile-text,
body[data-theme="cozy"] .note-text,
body[data-theme="cozy"] .task-text {
color: #63556a;
}

body[data-theme="cozy"] .board-tile[data-accent="plum"] {
background: linear-gradient(180deg, #fffaff, #efe4f4);
}

body[data-theme="cozy"] .board-tile[data-accent="teal"] {
background: linear-gradient(180deg, #fbffff, #e1f0ef);
}

body[data-theme="cozy"] .board-tile[data-accent="blue"] {
background: linear-gradient(180deg, #fbfdff, #e4ebf6);
}

body[data-theme="cozy"] .board-tile[data-accent="rose"] {
background: linear-gradient(180deg, #fffafd, #f2e4eb);
}

body[data-theme="cozy"] .board-tile[data-accent="green"] {
background: linear-gradient(180deg, #fdfff9, #e7f0e2);
}

body[data-theme="cozy"] .board-tile[data-accent="orange"] {
background: linear-gradient(180deg, #fffdf7, #f5e8cd);
}

body[data-theme="cozy"] .checklist-item,
body[data-theme="cozy"] .note {
background:
        linear-gradient(180deg, rgba(255,255,255,.72), rgba(235,226,241,.7));
    border: 1px solid rgba(191,175,198,.45);
}

body[data-theme="cozy"] .checklist-item:hover,
body[data-theme="cozy"] .note:hover {
background:
        linear-gradient(180deg, rgba(255,255,255,.9), rgba(239,230,245,.85));
}

body[data-theme="cozy"] .todo-drag,
body[data-theme="cozy"] .check-drag,
body[data-theme="cozy"] .drag-handle,
body[data-theme="cozy"] .link-drag,
body[data-theme="cozy"] .link-edit,
body[data-theme="cozy"] .delete-note,
body[data-theme="cozy"] .check-delete {
color: #897893;
}

body[data-theme="cozy"] .editable-ui:hover,
body[data-theme="cozy"] .tile-title:hover,
body[data-theme="cozy"] .tile-text:hover,
body[data-theme="cozy"] .task-text:hover {
background: rgba(143,103,167,.08);
}

body[data-theme="cozy"] .editable-ui:focus,
body[data-theme="cozy"] .tile-title:focus,
body[data-theme="cozy"] .tile-text:focus,
body[data-theme="cozy"] .task-text:focus {
background: rgba(143,103,167,.12);
}

body[data-theme="cozy"] .link-editor-backdrop {
background: rgba(74,62,91,.52);
    backdrop-filter: blur(2px);
}

body[data-theme="cozy"] .link-editor {
background:
        linear-gradient(180deg, #fffaff, #ece1f1);
    border-color: #b8a6c0;
    box-shadow:
        0 12px 35px rgba(49,38,63,.32),
        inset 0 1px 0 rgba(255,255,255,.92);
}

body[data-theme="cozy"] .link-editor h2,
body[data-theme="cozy"] .link-editor label {
color: #574563;
}

body[data-theme="cozy"] .link-editor-actions button {
box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}

@media (max-width: 1050px) {
body[data-theme="cozy"] .page {
width: calc(100% - 16px);
}

body[data-theme="cozy"] .content-shell {
grid-template-columns: minmax(0, 1.45fr) minmax(300px, .95fr);
}

body[data-theme="cozy"] h1 {
font-size: 26px;
}

body[data-theme="cozy"] .subtitle {
display: none;
}
}


/* =========================================================
   FULL GREEN BOTANICAL THEME
   Selected with <body data-theme="green">
   ========================================================= */
body[data-theme="green"] {
--bg: #10271c;
    --bg-soft: #1c3b2a;
    --panel: #d9e7cf;
    --panel-light: #c5d9b9;

    
    --plum: #557b4f;
    --plum-soft: #86ad78;
    --teal: #2f7760;
    --teal-soft: #69aa88;
    --blue: #3f725f;
    --blue-soft: #78a38a;
    --rose: #6d874d;
    --rose-soft: #9caf6b;
    --green: #3e713f;
    --green-soft: #78a85f;
    --orange: #81933e;
    --orange-soft: #b1c45a;

    --text: #203a2a;
    --muted: #496353;
    --faint: #6d806f;
    --border: #8fa884;

    --shadow:
        0 7px 20px rgba(6, 32, 18, .24),
        inset 0 1px 0 rgba(244,255,238,.72);
}

body[data-theme="green"] {
color: var(--text);
    background-color: #173a27;
    background-image:
        radial-gradient(ellipse at 10% 14%, rgba(167,211,131,.20) 0 4%, transparent 17%),
        radial-gradient(ellipse at 82% 10%, rgba(92,151,104,.28) 0 5%, transparent 22%),
        radial-gradient(ellipse at 18% 87%, rgba(81,132,75,.32) 0 6%, transparent 25%),
        radial-gradient(ellipse at 89% 86%, rgba(159,191,91,.14) 0 4%, transparent 19%),
        repeating-linear-gradient(38deg, rgba(196,224,166,.025) 0 1px, transparent 1px 24px),
        linear-gradient(145deg, #0f2a1d 0%, #245239 46%, #173d2b 72%, #0d281c 100%);
    background-size: auto, auto, auto, auto, auto, auto;
}

body[data-theme="green"]::before {
background:
        radial-gradient(ellipse at 16px 11px, rgba(185,219,157,.08) 0 3px, transparent 4px),
        radial-gradient(ellipse at 39px 31px, rgba(124,174,112,.08) 0 4px, transparent 5px),
        repeating-linear-gradient(58deg, transparent 0 24px, rgba(216,237,191,.022) 24px 25px, transparent 25px 49px);
    background-size: 47px 47px, 63px 63px, auto;
}

body[data-theme="green"]::after {
width: 520px;
    height: 520px;
    right: -165px;
    bottom: -185px;
    background: radial-gradient(circle, rgba(145,187,101,.18), transparent 67%);
}

body[data-theme="green"] .pigeon-mark {
color: #24482f;
    background: linear-gradient(180deg, #dcebc8, #9fc58e);
    border-color: #bcd6ac;
}

body[data-theme="green"] h1 {
color: #e8f1d8;
    text-shadow: 0 2px 0 rgba(6,42,22,.68), 0 0 12px rgba(148,193,116,.19);
}

body[data-theme="green"] .subtitle,
body[data-theme="green"] .header-right {
color: #cadbbb;
}

body[data-theme="green"] #saveStatus.saved {
color: #b8dc92;
}

body[data-theme="green"] .small-button,
body[data-theme="green"] .link-add-button,
body[data-theme="green"] .mini-add,
body[data-theme="green"] .add-button,
body[data-theme="green"] .checklist-add {
color: #173c25;
    background: linear-gradient(180deg, #cce5ad, #8fbe78);
    border-color: #739b68;
}

body[data-theme="green"] .small-button:hover,
body[data-theme="green"] .link-add-button:hover,
body[data-theme="green"] .mini-add:hover,
body[data-theme="green"] .add-button:hover,
body[data-theme="green"] .checklist-add:hover {
color: #0c2c19;
    background: linear-gradient(180deg, #ddedc4, #a5ca89);
    border-color: #4f8055;
}

body[data-theme="green"] .panel,
body[data-theme="green"] .link-strip,
body[data-theme="green"] .current-strip {
background: linear-gradient(180deg, rgba(223,236,210,.985), rgba(190,213,179,.98));
    border-color: #8da681;
    box-shadow: 0 7px 20px rgba(6,32,18,.22), inset 0 1px 0 rgba(249,255,244,.78);
}

body[data-theme="green"] .panel-header {
background: linear-gradient(180deg, #d7e7c9, #b9d2a8);
    border-bottom-color: #91aa84;
}

body[data-theme="green"] .panel-title,
body[data-theme="green"] .link-strip-label,
body[data-theme="green"] .notes-mini-label {
color: #315b3a;
}

body[data-theme="green"] .panel-subtitle {
color: #637861;
}

body[data-theme="green"] .current-cell + .current-cell {
border-left-color: #8da681;
}

body[data-theme="green"] .date-label {
color: #557b4f;
}

body[data-theme="green"] .current-cell:nth-child(2) .date-label {
color: #2f7760;
}

body[data-theme="green"] .current-cell:nth-child(3) .date-label {
color: #6d874d;
}

body[data-theme="green"] .day-input,
body[data-theme="green"] #scratchpad,
body[data-theme="green"] #noteInput,
body[data-theme="green"] .checklist-input,
body[data-theme="green"] .link-editor input {
color: #203a2a;
    background: linear-gradient(180deg, #edf4e6, #d6e5ca);
    border-color: #91aa84;
    box-shadow: inset 0 1px 3px rgba(32,76,43,.10);
}

body[data-theme="green"] .day-input:focus,
body[data-theme="green"] #scratchpad:focus,
body[data-theme="green"] #noteInput:focus,
body[data-theme="green"] .checklist-input:focus,
body[data-theme="green"] .link-editor input:focus {
border-color: #4f8055;
}

body[data-theme="green"] .day-input::placeholder,
body[data-theme="green"] #scratchpad::placeholder,
body[data-theme="green"] #noteInput::placeholder,
body[data-theme="green"] .checklist-input::placeholder {
color: #718672;
}

body[data-theme="green"] .link-strip {
background: linear-gradient(180deg, #dce9cd, #b9d2a8);
}

body[data-theme="green"] .link-chip {
background: linear-gradient(180deg, #e9f1df, #c1d8b2);
    border-color: #91aa84;
}

body[data-theme="green"] .link-chip a {
color: #284d34;
}

body[data-theme="green"] .link-chip a:hover {
color: #1c6a45;
}

body[data-theme="green"] .board-tile[data-accent="blue"] {
background: linear-gradient(180deg, #e6f0e4, #bad4c3);
    border-top-color: #3f725f;
}

body[data-theme="green"] .board-tile[data-accent="teal"] {
background: linear-gradient(180deg, #e6f1df, #b7d5bc);
    border-top-color: #2f7760;
}

body[data-theme="green"] .board-tile[data-accent="plum"] {
background: linear-gradient(180deg, #edf2df, #c7d8b5);
    border-top-color: #557b4f;
}

body[data-theme="green"] .board-tile[data-accent="rose"] {
background: linear-gradient(180deg, #eef1da, #d1dbae);
    border-top-color: #6d874d;
}

body[data-theme="green"] .board-tile[data-accent="green"] {
background: linear-gradient(180deg, #e2efd8, #aed09f);
    border-top-color: #3e713f;
}

body[data-theme="green"] .board-tile[data-accent="orange"] {
background: linear-gradient(180deg, #eef2ce, #d4dd97);
    border-top-color: #81933e;
}

body[data-theme="green"] .tile-title {
color: #2f6f57;
}

body[data-theme="green"] .board-tile[data-accent="blue"] .tile-title {
color: #315e4e;
}

body[data-theme="green"] .board-tile[data-accent="teal"] .tile-title {
color: #276c53;
}

body[data-theme="green"] .board-tile[data-accent="plum"] .tile-title {
color: #4d7048;
}

body[data-theme="green"] .board-tile[data-accent="rose"] .tile-title {
color: #647b40;
}

body[data-theme="green"] .board-tile[data-accent="green"] .tile-title {
color: #356a37;
}

body[data-theme="green"] .board-tile[data-accent="orange"] .tile-title {
color: #718333;
}

body[data-theme="green"] .checklist-item,
body[data-theme="green"] .note {
background: linear-gradient(180deg, rgba(232,241,223,.91), rgba(198,218,187,.88));
    border-color: rgba(115,151,104,.48);
}

body[data-theme="green"] .checklist-item:hover,
body[data-theme="green"] .note:hover {
background: linear-gradient(180deg, #edf5e6, #ccdfc0);
}

body[data-theme="green"] .scroll-teal,
body[data-theme="green"] .scroll-blue,
body[data-theme="green"] .scroll-rose,
body[data-theme="green"] .scroll-green,
body[data-theme="green"] .scroll-orange,
body[data-theme="green"] .notes-list,
body[data-theme="green"] .board-body,
body[data-theme="green"] .day-list,
body[data-theme="green"] .checklist-list {
scrollbar-color: #557e54 transparent;
}

body[data-theme="green"] .scroll-teal::-webkit-scrollbar-thumb,
body[data-theme="green"] .scroll-blue::-webkit-scrollbar-thumb,
body[data-theme="green"] .scroll-rose::-webkit-scrollbar-thumb,
body[data-theme="green"] .scroll-green::-webkit-scrollbar-thumb,
body[data-theme="green"] .scroll-orange::-webkit-scrollbar-thumb,
body[data-theme="green"] .notes-list::-webkit-scrollbar-thumb,
body[data-theme="green"] .board-body::-webkit-scrollbar-thumb,
body[data-theme="green"] .day-list::-webkit-scrollbar-thumb,
body[data-theme="green"] .checklist-list::-webkit-scrollbar-thumb {
background: #557e54;
}

body[data-theme="green"] .check-wrap input,
body[data-theme="green"] .scroll-teal .check-wrap input,
body[data-theme="green"] .scroll-blue .check-wrap input,
body[data-theme="green"] .scroll-rose .check-wrap input,
body[data-theme="green"] .scroll-green .check-wrap input,
body[data-theme="green"] .scroll-orange .check-wrap input {
border-color: #5c8757;
}

body[data-theme="green"] .check-wrap input:checked,
body[data-theme="green"] .scroll-teal .check-wrap input:checked,
body[data-theme="green"] .scroll-blue .check-wrap input:checked,
body[data-theme="green"] .scroll-rose .check-wrap input:checked,
body[data-theme="green"] .scroll-green .check-wrap input:checked,
body[data-theme="green"] .scroll-orange .check-wrap input:checked {
background: radial-gradient(circle at center, #78a85f 0 45%, transparent 48%);
}

body[data-theme="green"] .check-drag,
body[data-theme="green"] .drag-handle,
body[data-theme="green"] .link-drag,
body[data-theme="green"] .link-edit,
body[data-theme="green"] .link-remove,
body[data-theme="green"] .delete-note,
body[data-theme="green"] .check-delete {
color: #60775f;
}

body[data-theme="green"] .check-drag:hover,
body[data-theme="green"] .drag-handle:hover,
body[data-theme="green"] .link-drag:hover,
body[data-theme="green"] .link-edit:hover,
body[data-theme="green"] .link-remove:hover,
body[data-theme="green"] .delete-note:hover,
body[data-theme="green"] .check-delete:hover {
color: #2d653d;
}

body[data-theme="green"] .editable-ui:hover,
body[data-theme="green"] .tile-title:hover,
body[data-theme="green"] .tile-text:hover,
body[data-theme="green"] .task-text:hover {
background: rgba(50,108,62,.08);
}

body[data-theme="green"] .editable-ui:focus,
body[data-theme="green"] .tile-title:focus,
body[data-theme="green"] .tile-text:focus,
body[data-theme="green"] .task-text:focus {
background: rgba(50,108,62,.13);
}

body[data-theme="green"] .link-editor-backdrop {
background: rgba(8,42,22,.60);
}

body[data-theme="green"] .link-editor {
background: linear-gradient(180deg, #e3edda, #bcd5ae);
    border-color: #83a477;
}

body[data-theme="green"] .link-editor h2,
body[data-theme="green"] .link-editor label {
color: #284c32;
}

body[data-theme="green"] .link-remove {
color: #6b7e69;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
}

body[data-theme="green"] .checklist-list.task-drop-target,
body[data-theme="green"] .day-list.task-drop-target {
outline: 1px dashed rgba(54,111,62,.62);
    outline-offset: -3px;
    border-radius: 7px;
    background: rgba(107,155,91,.08);
}


/* =========================================================
   AUTUMN BURGUNDY + TURQUOISE THEME
   Selected with <body data-theme="fall">
   ========================================================= */
body[data-theme="fall"] {
--bg: #3a2027;
    --bg-soft: #513039;
    --panel: #f3e4cf;
    --panel-light: #ead6bd;

    --plum: #7f2945;
    --plum-soft: #b95d79;
    --teal: #2f827b;
    --teal-soft: #68b8ab;
    --blue: #427d8a;
    --blue-soft: #80b6bf;
    --rose: #a64c3d;
    --rose-soft: #d58368;
    --green: #6f7f49;
    --green-soft: #a8b778;
    --orange: #c86a2d;
    --orange-soft: #e7a64f;

    --text: #442d2d;
    --muted: #6f5550;
    --faint: #90756b;
    --border: #b98d75;

    --shadow:
        0 7px 18px rgba(48, 24, 27, .24),
        inset 0 1px 0 rgba(255,255,255,.62);
}

body[data-theme="fall"] {
color: var(--text);
    background-color: #47252d;
    background-image:
        radial-gradient(circle at 16px 16px, rgba(239,183,92,.22) 0 1.2px, transparent 1.8px),
        radial-gradient(circle at 48px 37px, rgba(104,184,171,.18) 0 1.1px, transparent 1.7px),
        radial-gradient(circle at 12% 14%, rgba(199,94,57,.42), transparent 25%),
        radial-gradient(circle at 88% 12%, rgba(47,130,123,.40), transparent 27%),
        radial-gradient(circle at 72% 88%, rgba(226,150,64,.26), transparent 24%),
        linear-gradient(145deg, #552638 0%, #72313d 34%, #59372f 66%, #285c59 100%);
    background-size: 64px 64px, 86px 86px, auto, auto, auto, auto;
}

body[data-theme="fall"]::before {
content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255,238,203,.035) 0 1px,
            transparent 1px 8px
        );
    mix-blend-mode: soft-light;
}

body[data-theme="fall"]::after {
content: "";
    position: fixed;
    width: 380px;
    height: 380px;
    left: -130px;
    bottom: -150px;
    pointer-events: none;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239,166,79,.20), transparent 67%);
}

body[data-theme="fall"] .page {
position: relative; z-index: 1;
}

body[data-theme="fall"] .pigeon-mark {
color: #f8e7c9;
    background:
        linear-gradient(145deg, #8e304d, #b64d42 58%, #c77a36);
    border: 1px solid rgba(255,226,184,.48);
    box-shadow:
        0 4px 0 rgba(55,28,31,.19),
        0 9px 22px rgba(46,23,27,.28),
        inset 0 1px 0 rgba(255,255,255,.27);
}

body[data-theme="fall"] h1 {
color: #fff0d6;
    text-shadow:
        0 2px 0 rgba(73,31,40,.72),
        0 0 12px rgba(238,164,87,.22);
}

body[data-theme="fall"] .subtitle,
body[data-theme="fall"] .header-right {
color: #f1ddc7;
    text-shadow: 0 1px 1px rgba(65,30,34,.5);
}

body[data-theme="fall"] #saveStatus.saved {
color: #9bd0c4;
}

body[data-theme="fall"] .small-button,
body[data-theme="fall"] .link-chip,
body[data-theme="fall"] .checklist-item,
body[data-theme="fall"] .note {
box-shadow:
        inset 0 1px 0 rgba(255,255,255,.68),
        0 1px 3px rgba(74,40,37,.14);
}

body[data-theme="fall"] .small-button {
color: #624137;
    background: linear-gradient(180deg, #f9eddc, #e8cfb0);
    border-color: #bd8d71;
}

body[data-theme="fall"] .small-button:hover {
color: #4c2729;
    border-color: var(--plum);
    background: linear-gradient(180deg, #fff6e8, #eed8b9);
}

body[data-theme="fall"] .panel,
body[data-theme="fall"] .link-strip {
background:
        linear-gradient(180deg, rgba(250,239,219,.98), rgba(236,215,189,.97));
    border-color: #b9866c;
    box-shadow:
        0 6px 17px rgba(60,29,31,.22),
        inset 0 1px 0 rgba(255,255,255,.75);
}

body[data-theme="fall"] .panel-header {
background:
        linear-gradient(180deg, rgba(248,231,207,.98), rgba(226,197,164,.93));
    border-bottom-color: #c59676;
}

body[data-theme="fall"] .panel-title,
body[data-theme="fall"] .link-strip-label,
body[data-theme="fall"] .notes-mini-label {
color: #713145;
}

body[data-theme="fall"] .panel-subtitle,
body[data-theme="fall"] .notes-mini-label {
text-shadow: 0 1px 0 rgba(255,247,231,.72);
}

body[data-theme="fall"] .current-strip {
background:
        linear-gradient(105deg,
            rgba(245,221,193,.98) 0%,
            rgba(236,205,171,.97) 35%,
            rgba(218,224,193,.96) 68%,
            rgba(185,219,207,.95) 100%);
    border-color: #ac765f;
    box-shadow:
        0 6px 17px rgba(59,29,30,.23),
        inset 0 1px 0 rgba(255,255,255,.78);
}

body[data-theme="fall"] .current-cell + .current-cell {
border-left-color: #bf9278;
}

body[data-theme="fall"] .date-label {
color: #8b3048; text-shadow: 0 1px 0 rgba(255,245,224,.85);
}

body[data-theme="fall"] .current-cell:nth-child(2) .date-label {
color: #2d766f;
}

body[data-theme="fall"] .current-cell:nth-child(3) .date-label {
color: #41737d;
}

body[data-theme="fall"] .day-input,
body[data-theme="fall"] #scratchpad,
body[data-theme="fall"] #noteInput,
body[data-theme="fall"] .checklist-input,
body[data-theme="fall"] .link-editor input {
color: var(--text);
    background:
        linear-gradient(180deg, rgba(255,250,239,.92), rgba(244,229,207,.94));
    border-color: #c29679;
    box-shadow: inset 0 1px 3px rgba(99,55,48,.10);
}

body[data-theme="fall"] .day-input::placeholder,
body[data-theme="fall"] #scratchpad::placeholder,
body[data-theme="fall"] #noteInput::placeholder,
body[data-theme="fall"] .checklist-input::placeholder {
color: #a07f70;
}

body[data-theme="fall"] .mini-add,
body[data-theme="fall"] .add-button,
body[data-theme="fall"] .checklist-add {
color: #3f2926;
    border: 1px solid rgba(103,64,48,.22);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.55),
        0 2px 3px rgba(72,37,31,.13);
}

body[data-theme="fall"] .current-cell:nth-child(1) .mini-add {
background: #c36b81;
}

body[data-theme="fall"] .current-cell:nth-child(2) .mini-add {
background: #6fb8aa;
}

body[data-theme="fall"] .current-cell:nth-child(3) .mini-add {
background: #84b4bc;
}

body[data-theme="fall"] .add-button,
body[data-theme="fall"] .checklist-add {
background: #77b8aa;
}

body[data-theme="fall"] .link-strip {
background:
        linear-gradient(180deg, rgba(247,232,211,.98), rgba(229,202,174,.96));
}

body[data-theme="fall"] .link-chip {
background:
        linear-gradient(180deg, #fff4df, #e7cba9);
    border-color: #bd8b6d;
}

body[data-theme="fall"] .link-chip a {
color: #673440;
}

body[data-theme="fall"] .link-chip a:hover {
color: #23766f; text-decoration: underline;
}

body[data-theme="fall"] .board-tile {
border-color: rgba(159,112,88,.62);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.72),
        0 2px 5px rgba(75,40,34,.12);
}

body[data-theme="fall"] .board-tile[data-accent="plum"] {
background: linear-gradient(180deg, #fae6e5, #e8c1c8);
}

body[data-theme="fall"] .board-tile[data-accent="teal"] {
background: linear-gradient(180deg, #eaf5ed, #cfe4d8);
}

body[data-theme="fall"] .board-tile[data-accent="blue"] {
background: linear-gradient(180deg, #e8f2ef, #c9dfdc);
}

body[data-theme="fall"] .board-tile[data-accent="rose"] {
background: linear-gradient(180deg, #fae5d9, #eac2ae);
}

body[data-theme="fall"] .board-tile[data-accent="green"] {
background: linear-gradient(180deg, #edf0dc, #d6dab5);
}

body[data-theme="fall"] .board-tile[data-accent="orange"] {
background: linear-gradient(180deg, #fff0cf, #efc77e);
}

body[data-theme="fall"] .tile-text,
body[data-theme="fall"] .note-text,
body[data-theme="fall"] .task-text {
color: #654941;
}

body[data-theme="fall"] .checklist-item,
body[data-theme="fall"] .note {
background:
        linear-gradient(180deg, rgba(255,247,231,.79), rgba(234,211,184,.78));
    border: 1px solid rgba(170,123,94,.43);
}

body[data-theme="fall"] .checklist-item:hover,
body[data-theme="fall"] .note:hover {
background:
        linear-gradient(180deg, rgba(255,250,239,.94), rgba(240,219,191,.9));
}

body[data-theme="fall"] .check-drag,
body[data-theme="fall"] .drag-handle,
body[data-theme="fall"] .link-drag,
body[data-theme="fall"] .link-edit,
body[data-theme="fall"] .link-delete,
body[data-theme="fall"] .delete-note,
body[data-theme="fall"] .check-delete {
color: #8f6a5d;
}

body[data-theme="fall"] .link-delete:hover,
body[data-theme="fall"] .delete-note:hover,
body[data-theme="fall"] .check-delete:hover {
color: #9b3046;
}

body[data-theme="fall"] .editable-ui:hover,
body[data-theme="fall"] .tile-title:hover,
body[data-theme="fall"] .tile-text:hover,
body[data-theme="fall"] .task-text:hover {
background: rgba(151,67,67,.08);
}

body[data-theme="fall"] .editable-ui:focus,
body[data-theme="fall"] .tile-title:focus,
body[data-theme="fall"] .tile-text:focus,
body[data-theme="fall"] .task-text:focus {
background: rgba(47,130,123,.10);
}

body[data-theme="fall"] .link-editor-backdrop {
background: rgba(57,31,35,.58);
    backdrop-filter: blur(2px);
}

body[data-theme="fall"] .link-editor {
background:
        linear-gradient(180deg, #faecd8, #e7c9a8);
    border-color: #aa765d;
    box-shadow:
        0 12px 35px rgba(48,25,27,.36),
        inset 0 1px 0 rgba(255,255,255,.75);
}

body[data-theme="fall"] .link-editor h2,
body[data-theme="fall"] .link-editor label {
color: #6b3040;
}

body[data-theme="fall"] #cancelLinkEdit {
background: #ead1b5;
    color: #6a5045;
}

body[data-theme="fall"] #saveLinkEdit {
background: #66ad9f;
    color: #2d2422;
}

body[data-theme="fall"] .add-link-button {
background: linear-gradient(180deg, #eab45f, #ce7f37) !important;
    color: #4b2c27 !important;
    border-color: #a65d2e !important;
}

body[data-theme="fall"] .add-link-button:hover {
background: linear-gradient(180deg, #f2c274, #dc9149) !important;
}

body[data-theme="fall"] .checklist-list.task-drop-active,
body[data-theme="fall"] .day-list.task-drop-active {
outline-color: rgba(47,130,123,.75);
    background: rgba(47,130,123,.07);
}


/* ---------- THEME CONTROL POLISH / NEWER CONTROL COMPATIBILITY ---------- */
body[data-theme="cozy"] .theme-select,
body[data-theme="cozy"] .link-add-button {
    color: #5c4d64;
    background: linear-gradient(180deg, #fffaff, #e8dced);
    border-color: #b9a9c0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 1px 2px rgba(71,54,83,.12);
}
body[data-theme="cozy"] .link-add-button:hover,
body[data-theme="cozy"] .theme-select:hover,
body[data-theme="cozy"] .theme-select:focus {
    color: #43364d;
    border-color: #8b5ea7;
    background: linear-gradient(180deg, #ffffff, #efe1f3);
}

body[data-theme="green"] .page,
body[data-theme="fall"] .page { position: relative; z-index: 1; }

body[data-theme="green"] .theme-select,
body[data-theme="green"] .link-add-button {
    background: linear-gradient(180deg, #e5f0d9, #caddbd);
    color: #31553a;
    border-color: #8cab79;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 1px 2px rgba(35,74,46,.14);
}
body[data-theme="green"] .theme-select:hover,
body[data-theme="green"] .theme-select:focus,
body[data-theme="green"] .link-add-button:hover {
    background: linear-gradient(180deg, #eef6e6, #d2e4c5);
    color: #203d28;
    border-color: #4f7f58;
}

body[data-theme="fall"] .theme-select,
body[data-theme="fall"] .link-add-button {
    background: linear-gradient(180deg, #eab45f, #ce7f37);
    color: #4b2c27;
    border-color: #a65d2e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 1px 2px rgba(83,42,29,.14);
}
body[data-theme="fall"] .theme-select:hover,
body[data-theme="fall"] .theme-select:focus,
body[data-theme="fall"] .link-add-button:hover {
    background: linear-gradient(180deg, #f2c274, #dc9149);
    color: #3e2725;
    border-color: #8b4b2a;
}

body[data-theme="fall"] .link-remove:hover { color: #a64c3d; }
body[data-theme="green"] .link-remove:hover { color: #557b4f; }

/* =========================================================
   DARK TEAL CELESTIAL AQUARIUM THEME
   Selected with <body data-theme="aquarium">
   Deep ocean glass + turquoise glow + starlight.
   ========================================================= */
body[data-theme="aquarium"] {
    --bg: #071b20;
    --bg-soft: #0b2830;
    --panel: #102c33;
    --panel-light: #163941;

    --plum: #7b6aa8;
    --plum-soft: #b7a8dc;
    --teal: #2fa6a0;
    --teal-soft: #78ddd4;
    --blue: #3f7f9f;
    --blue-soft: #8fc8df;
    --rose: #8d627d;
    --rose-soft: #c89aae;
    --green: #4e9278;
    --green-soft: #8bc5aa;
    --orange: #c59a54;
    --orange-soft: #ebca83;

    --text: #e7f7f5;
    --muted: #a8c9c8;
    --faint: #709a9d;
    --border: #28545c;
    --shadow:
        0 10px 28px rgba(0, 10, 14, .36),
        inset 0 1px 0 rgba(164, 241, 232, .035);

    color: var(--text);
    background-color: #071b20;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(111, 229, 215, .52) 0 1px, transparent 1.7px),
        radial-gradient(circle at 76% 14%, rgba(189, 173, 255, .42) 0 1px, transparent 1.8px),
        radial-gradient(circle at 54% 72%, rgba(116, 209, 222, .33) 0 1.2px, transparent 1.9px),
        radial-gradient(circle at 88% 82%, rgba(238, 207, 133, .25) 0 1px, transparent 1.7px),
        radial-gradient(ellipse at 18% 92%, rgba(20, 116, 107, .34), transparent 34%),
        radial-gradient(ellipse at 82% 5%, rgba(54, 87, 131, .30), transparent 32%),
        linear-gradient(145deg, #06171c 0%, #0b2b31 44%, #0d2534 72%, #08171e 100%);
    background-size: 72px 72px, 104px 104px, 126px 126px, 92px 92px, auto, auto, auto;
}

body[data-theme="aquarium"]::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 22% 32%, rgba(113, 230, 220, .08), transparent 15%),
        radial-gradient(circle at 72% 66%, rgba(86, 154, 192, .08), transparent 18%),
        repeating-linear-gradient(
            112deg,
            rgba(144, 232, 220, .022) 0 1px,
            transparent 1px 10px
        );
}

body[data-theme="aquarium"]::after {
    content: "";
    position: fixed;
    width: 470px;
    height: 470px;
    left: -145px;
    bottom: -210px;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 173, 154, .16), transparent 68%);
    filter: blur(2px);
}

body[data-theme="aquarium"] .page {
    position: relative;
    z-index: 1;
}

body[data-theme="aquarium"] .pigeon-mark {
    color: #dffbf5;
    background:
        radial-gradient(circle at 32% 22%, rgba(150,255,242,.20), transparent 32%),
        linear-gradient(145deg, #16474c, #173455 58%, #302c52);
    border: 1px solid rgba(105, 220, 208, .35);
    box-shadow:
        0 0 18px rgba(64, 197, 187, .16),
        0 7px 18px rgba(0, 9, 15, .30),
        inset 0 1px 0 rgba(209,255,250,.10);
}

body[data-theme="aquarium"] h1 {
    color: #e9fffb;
    text-shadow:
        0 0 12px rgba(92, 218, 207, .24),
        0 2px 0 rgba(0,0,0,.30);
}

body[data-theme="aquarium"] .subtitle,
body[data-theme="aquarium"] .header-right {
    color: #9fc9c8;
}

body[data-theme="aquarium"] #saveStatus.saved {
    color: #81eee0;
    text-shadow: 0 0 8px rgba(86, 219, 204, .22);
}

body[data-theme="aquarium"] .panel,
body[data-theme="aquarium"] .link-strip,
body[data-theme="aquarium"] .current-strip {
    border-color: rgba(73, 139, 145, .50);
    box-shadow:
        0 10px 28px rgba(0, 10, 15, .30),
        inset 0 1px 0 rgba(179, 250, 241, .035);
}

body[data-theme="aquarium"] .panel,
body[data-theme="aquarium"] .link-strip {
    background:
        linear-gradient(145deg, rgba(112, 225, 213, .025), transparent 42%),
        linear-gradient(180deg, rgba(16, 49, 56, .97), rgba(11, 37, 44, .98));
}

body[data-theme="aquarium"] .panel-header {
    background:
        linear-gradient(90deg, rgba(43, 117, 116, .12), rgba(40, 66, 100, .08));
    border-bottom-color: rgba(64, 121, 128, .42);
}

body[data-theme="aquarium"] .current-strip {
    background:
        radial-gradient(circle at 18% 0%, rgba(61, 180, 166, .10), transparent 30%),
        radial-gradient(circle at 82% 100%, rgba(67, 103, 164, .10), transparent 34%),
        linear-gradient(110deg, #0e3036, #102b36 55%, #12283b);
}

body[data-theme="aquarium"] .current-cell + .current-cell {
    border-left-color: rgba(72, 128, 136, .42);
}

body[data-theme="aquarium"] .date-label {
    text-shadow: 0 0 9px rgba(139, 119, 211, .18);
}
body[data-theme="aquarium"] .current-cell:nth-child(2) .date-label {
    text-shadow: 0 0 9px rgba(76, 216, 205, .20);
}
body[data-theme="aquarium"] .current-cell:nth-child(3) .date-label {
    text-shadow: 0 0 9px rgba(111, 174, 215, .20);
}

body[data-theme="aquarium"] .day-input,
body[data-theme="aquarium"] #scratchpad,
body[data-theme="aquarium"] #noteInput,
body[data-theme="aquarium"] .checklist-input,
body[data-theme="aquarium"] .link-editor input {
    background: rgba(1, 16, 21, .34);
    border-color: rgba(68, 126, 134, .52);
    color: #e6f8f5;
    box-shadow: inset 0 1px 5px rgba(0, 8, 13, .24);
}

body[data-theme="aquarium"] .day-input::placeholder,
body[data-theme="aquarium"] #scratchpad::placeholder,
body[data-theme="aquarium"] #noteInput::placeholder,
body[data-theme="aquarium"] .checklist-input::placeholder {
    color: #648e91;
}

body[data-theme="aquarium"] .link-chip,
body[data-theme="aquarium"] .checklist-item,
body[data-theme="aquarium"] .note,
body[data-theme="aquarium"] .board-tile {
    background:
        linear-gradient(180deg, rgba(31, 70, 77, .88), rgba(20, 51, 59, .92));
    border-color: rgba(78, 137, 144, .34);
    box-shadow:
        inset 0 1px 0 rgba(162, 239, 229, .035),
        0 2px 6px rgba(0, 10, 14, .14);
}

body[data-theme="aquarium"] .link-chip a {
    color: #d8f3ef;
}
body[data-theme="aquarium"] .link-chip a:hover {
    color: #83e9df;
    text-shadow: 0 0 8px rgba(81, 222, 207, .22);
}

body[data-theme="aquarium"] .board-tile[data-accent="blue"] {
    background: linear-gradient(180deg, rgba(24, 57, 76, .96), rgba(17, 44, 60, .97));
}
body[data-theme="aquarium"] .board-tile[data-accent="plum"] {
    background: linear-gradient(180deg, rgba(45, 43, 71, .96), rgba(32, 36, 61, .97));
}
body[data-theme="aquarium"] .board-tile[data-accent="teal"] {
    background: linear-gradient(180deg, rgba(20, 71, 70, .96), rgba(15, 52, 56, .97));
}
body[data-theme="aquarium"] .board-tile[data-accent="rose"] {
    background: linear-gradient(180deg, rgba(63, 44, 61, .96), rgba(46, 38, 55, .97));
}
body[data-theme="aquarium"] .board-tile[data-accent="green"] {
    background: linear-gradient(180deg, rgba(25, 67, 57, .96), rgba(17, 49, 48, .97));
}
body[data-theme="aquarium"] .board-tile[data-accent="orange"] {
    background: linear-gradient(180deg, rgba(71, 61, 40, .96), rgba(51, 48, 39, .97));
}

body[data-theme="aquarium"] .tile-text,
body[data-theme="aquarium"] .task-text,
body[data-theme="aquarium"] .note-text {
    color: #b9d6d3;
}

body[data-theme="aquarium"] .editable-ui:hover,
body[data-theme="aquarium"] .tile-title:hover,
body[data-theme="aquarium"] .tile-text:hover,
body[data-theme="aquarium"] .task-text:hover {
    background: rgba(89, 203, 192, .045);
}
body[data-theme="aquarium"] .editable-ui:focus,
body[data-theme="aquarium"] .tile-title:focus,
body[data-theme="aquarium"] .tile-text:focus,
body[data-theme="aquarium"] .task-text:focus {
    background: rgba(89, 203, 192, .075);
}

body[data-theme="aquarium"] .small-button,
body[data-theme="aquarium"] .theme-select,
body[data-theme="aquarium"] .link-add-button {
    background:
        linear-gradient(180deg, rgba(38, 93, 98, .96), rgba(24, 65, 74, .98));
    color: #c9eeea;
    border-color: rgba(77, 148, 151, .60);
    box-shadow:
        inset 0 1px 0 rgba(180, 247, 238, .06),
        0 1px 3px rgba(0, 9, 14, .20);
}

body[data-theme="aquarium"] .small-button:hover,
body[data-theme="aquarium"] .theme-select:hover,
body[data-theme="aquarium"] .theme-select:focus,
body[data-theme="aquarium"] .link-add-button:hover {
    color: #effffc;
    border-color: #55bdb5;
    background:
        linear-gradient(180deg, rgba(43, 111, 110, .98), rgba(29, 77, 83, .98));
}

body[data-theme="aquarium"] .theme-select option {
    background: #12323a;
    color: #e6f8f5;
}

body[data-theme="aquarium"] .mini-add,
body[data-theme="aquarium"] .add-button,
body[data-theme="aquarium"] .checklist-add,
body[data-theme="aquarium"] #saveLinkEdit {
    background: linear-gradient(180deg, #77ddd3, #46aaa4);
    color: #062126;
    border-color: rgba(124, 239, 225, .40);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 2px 5px rgba(0,15,19,.18);
}

body[data-theme="aquarium"] .link-editor-backdrop {
    background: rgba(1, 12, 18, .70);
    backdrop-filter: blur(3px);
}

body[data-theme="aquarium"] .link-editor {
    background:
        radial-gradient(circle at 20% 0%, rgba(78, 187, 177, .08), transparent 34%),
        linear-gradient(180deg, #14353d, #0c272f);
    border-color: rgba(74, 144, 148, .65);
    box-shadow: 0 18px 42px rgba(0, 7, 12, .48), inset 0 1px 0 rgba(181,246,238,.05);
}

body[data-theme="aquarium"] .link-editor h2,
body[data-theme="aquarium"] .link-editor label {
    color: #caeae7;
}

body[data-theme="aquarium"] #cancelLinkEdit {
    background: #173b43;
    color: #9fc9c8;
}

body[data-theme="aquarium"] .link-remove:hover,
body[data-theme="aquarium"] .check-delete:hover,
body[data-theme="aquarium"] .delete-note:hover {
    color: #e3a4b9;
}


/* =========================================================
   THEME-AWARE HEADER ICON
   Keeps the same header icon box, but changes the emoji with
   the active theme. No HTML or JavaScript changes required.
   ========================================================= */

.pigeon-mark {
    font-size: 0;
}

.pigeon-mark::before {
    content: "🗃️";
    display: block;
    font-size: 22px;
    line-height: 1;
}

/* Dark Original */
body[data-theme="dark"] .pigeon-mark::before {
    content: "🗃️";
}

/* Cozy 2000s */
body[data-theme="cozy"] .pigeon-mark::before {
    content: "💿";
}

/* Full Green */
body[data-theme="green"] .pigeon-mark::before {
    content: "🌿";
}

/* Fall */
body[data-theme="fall"] .pigeon-mark::before {
    content: "🍂";
}

/* Dark Teal Celestial Aquarium */
body[data-theme="aquarium"] .pigeon-mark::before {
    content: "🪼";
}
