/* 2do v2: a light pass over the dark green theme (loaded after dark.css).
   Mood from the inspiration board: calm dark base, bold tight type with air,
   one warm accent used sparingly, states and tags as soft pills. */

:root {
    --v2-text: #dbe6d8;
    --v2-muted: #7d917b;
    --v2-faint: #4d604c;
    --v2-line: rgba(150, 205, 150, 0.07);
    --v2-hover: rgba(150, 215, 150, 0.04);
    --v2-surface: #0a170c;
    --v2-accent: #ff6b2c;
    --v2-accent-soft: rgba(255, 107, 44, 0.15);
    --v2-accent-text: #ff9563;
    --v2-sand: #d2c8b4;
    --v2-amber: #ffb46b;
    --v2-mint: #8fdcab;
    --v2-rose: #f29a9a;
    /* glass: see-through panels that blur what scrolls under them */
    --v2-glass: rgba(14, 29, 16, 0.72);
    --v2-glass-strong: rgba(12, 25, 14, 0.78);
    --v2-glass-line: rgba(255, 255, 255, 0.07);
    --v2-blur: blur(22px) saturate(1.4);
    /* the item colors, as soft gradient pills (deep on the left, pale on the right) */
    --c-blue: linear-gradient(90deg, #6f7a96, #c6cbd9);
    --c-red: linear-gradient(90deg, #e2583c, #f6b4a3);
    --c-green: linear-gradient(90deg, #5d9a62, #c0ddbf);
    --c-yellow: linear-gradient(90deg, #f0962a, #ffd49e);
    --c-purple: linear-gradient(90deg, #8a68a8, #d6c4e6);
    --c-black: linear-gradient(90deg, #5b5f5b, #c4c6c4);
    --c-turquoise: linear-gradient(90deg, #3ea6ae, #b6e4e6);
    --c-pink: linear-gradient(90deg, #c4758f, #f1c6d1);
    --t-blue: rgba(140, 152, 185, 0.13);
    --t-red: rgba(232, 110, 85, 0.13);
    --t-green: rgba(110, 175, 115, 0.13);
    --t-yellow: rgba(245, 165, 70, 0.13);
    --t-purple: rgba(160, 125, 195, 0.14);
    --t-black: rgba(160, 165, 160, 0.10);
    --t-turquoise: rgba(80, 185, 192, 0.13);
    --t-pink: rgba(215, 135, 160, 0.13);
}

/* ---- list tabs: a pill track, the active list filled ---- */
body #filter-bar .user-twodos {
    width: max-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--v2-glass-line);
    border-radius: 999px;
    padding: 2px 4px 2px 2px;
}
body #filter-bar .twodo-menu.item {
    border-radius: 999px;
    transition: background 0.15s ease;
}
body #filter-bar .twodo-menu.item:hover {
    background: rgba(255, 255, 255, 0.06) !important;
}
body #filter-bar .twodo-menu.item span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--v2-muted);
}
body #filter-bar .twodo-menu.item.active {
    background: linear-gradient(90deg, #ff6b2c, #ff9a66) !important;
    box-shadow: 0 4px 16px rgba(255, 107, 44, 0.25) !important;
}
body #filter-bar .twodo-menu.item.active span {
    color: #1a0b03;
}
body #filter-bar .twodo-menu.item.active .gear {
    filter: grayscale(1) brightness(0.2);
    opacity: 0.6;
}
body #filter-bar .twodo-btn.add {
    color: var(--v2-muted);
    border-radius: 50%;
}
body #filter-bar .twodo-btn.add:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--v2-text);
}
body #filter-bar .twodo-menu.gear {
    opacity: 0.3;
    filter: grayscale(1);
}
body #filter-bar .twodo-menu.item:hover .gear {
    opacity: 0.7;
}

/* ---- rows: more air, quiet separators, a soft hover ---- */
/* no separator lines: air between rows, a soft tint under the one you point at */
body :is(#twodos-holder, #k-row-preview) .twodo-line.l-c {
    border-bottom: 0;
    border-radius: 14px;
    margin-bottom: 2px;
    transition: background 0.15s ease;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line.l-c:hover {
    background: rgba(255, 255, 255, 0.045);
}
body :is(#twodos-holder, #k-row-preview) .twodo-line .line-inner .row-label {
    padding-top: 6px;
    padding-bottom: 6px;
    /* a long title wraps inside its row instead of spilling over the next one,
       its second line under the text, not under the dot */
    height: auto;
    min-height: 21px;
    line-height: 1.4;
    padding-left: 21px;
    text-indent: -21px;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line .line-inner .row-label * {
    text-indent: 0;
}
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line .line-inner .row-label {
    padding-left: 21px;
}
/* the little badges never break in the middle */
body :is(#twodos-holder, #k-row-preview) .row-label .row-activity,
body :is(#twodos-holder, #k-row-preview) .row-label .row-claim,
body :is(#twodos-holder, #k-row-preview) .row-label .priority.active {
    display: inline-block;
    white-space: nowrap;
    vertical-align: 1px;
}
/* the right side (state, time) is pinned to the top: follow the label */
body :is(#twodos-holder, #k-row-preview) .twodo-line .line-inner .row-interactions {
    top: 9px;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line .row-label .title {
    color: var(--v2-text);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.005em;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-done .row-label .title {
    opacity: 0.45;
}

/* the dot carries the state, unless the line has its own color */
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-not-done:not([class*="color-"]) .row-icon { background-color: var(--v2-sand) !important; opacity: 0.55; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-in-progress:not([class*="color-"]) .row-icon { background-color: var(--v2-amber) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-done:not([class*="color-"]) .row-icon { background-color: var(--v2-mint) !important; opacity: 0.6; }

/* ---- state as a soft pill ---- */
body :is(#twodos-holder, #k-row-preview) .twodo-line .line-inner .row-state span,
body :is(#twodos-holder, #k-row-preview) .twodo-line .row-state .cus-select {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line .row-state .cus-select {
    width: 124px !important;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line .row-state .cus-select input {
    border: 0 !important;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: none !important;
    cursor: pointer;
}
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-not-done .row-state .cus-select input { color: var(--v2-sand); background: rgba(210, 200, 180, 0.09) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-in-progress .row-state .cus-select input { color: var(--v2-amber); background: rgba(255, 180, 107, 0.13) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.state-done .row-state .cus-select input { color: var(--v2-mint); background: rgba(143, 220, 171, 0.11) !important; }

/* ---- time: quiet, aligned numbers ---- */
body :is(#twodos-holder, #k-row-preview) .twodo-line .row-date {
    color: var(--v2-faint);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

/* ---- little pills on the title line ---- */
body :is(#twodos-holder, #k-row-preview) .row-label .priority.active {
    padding: 2px 9px 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    opacity: 1;
}
body :is(#twodos-holder, #k-row-preview) .row-label .priority.active:before { display: none; }
body :is(#twodos-holder, #k-row-preview) .row-label .priority.p-urgent { color: var(--v2-rose); background: rgba(242, 154, 154, 0.12); }
body :is(#twodos-holder, #k-row-preview) .row-label .priority.p-important { color: var(--v2-amber); background: rgba(255, 180, 107, 0.12); }
body :is(#twodos-holder, #k-row-preview) .row-label .priority.p-low { color: var(--v2-mint); background: rgba(143, 220, 171, 0.10); }

body :is(#twodos-holder, #k-row-preview) .row-label .row-activity {
    font-size: 12px;
    color: var(--v2-muted);
}
body :is(#twodos-holder, #k-row-preview) .row-label .row-activity.has-question {
    padding: 2px 9px;
    border-radius: 999px;
    color: var(--v2-accent-text);
    background: var(--v2-accent-soft);
}
body :is(#twodos-holder, #k-row-preview) .row-label .row-claim {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    color: var(--v2-mint);
    background: rgba(143, 220, 171, 0.08);
    opacity: 1;
}

/* ---- the new 2do bar: a soft card, the accent on Save ---- */
body .twodo-new {
    border-radius: 18px;
    border: 1px solid var(--v2-line);
    background: var(--v2-surface);
}
body .twodo-new .input-holder {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid var(--v2-line);
    border-radius: 12px;
}
body .twodo-new .input-holder .input-pre-action,
body .twodo-new .input-holder .input-post-action .act {
    border-color: var(--v2-line) !important;
}
body .twodo-new #new-twodo {
    font-size: 15px;
    color: var(--v2-text);
    line-height: 35px;
}
body .twodo-new .save-holder .twodo-btn {
    background: var(--v2-accent) !important;
    color: #1a0b03 !important;
    opacity: 1 !important;
    box-shadow: none !important;
    border-radius: 999px;
}
body .twodo-new .save-holder .twodo-btn img {
    filter: brightness(0.15);
}

/* ---- scrollbars: dark, thin (the base theme has a bright white thumb) ---- */
::-webkit-scrollbar { width: 8px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(150, 205, 150, 0.14); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(150, 205, 150, 0.28); }

/* ---- item editor: one calm panel ---- */
body .blocker-noti-edits {
    background-color: rgba(3, 9, 4, 0.78);
    backdrop-filter: blur(3px);
}
body .notification-content.noti-edits .ui-notification {
    background: #0b170d;
    border: 1px solid rgba(150, 205, 150, 0.09);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}
body .notification-content.noti-edits .ui-notification .inner-padding {
    padding: 22px 26px 8px 26px;
}
/* the list name, as a small label over the title */
body .notification-content.noti-edits .notification-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-muted);
    margin: 4px 0 2px 2px;
}
body .notification-content.noti-edits .notification-title:before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--v2-accent);
    vertical-align: 1px;
}
/* the title: big, no box */
body .notification-content.noti-edits .notification-center .main-input textarea {
    background: transparent;
    box-shadow: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 6px 8px 4px 2px;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--v2-text);
    resize: none;
    /* as tall as the title, no more */
    field-sizing: content;
    height: auto;
    min-height: 40px;
    max-height: 130px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
body .notification-content.noti-edits .notification-center .main-input textarea:hover {
    background: var(--v2-hover);
}
body .notification-content.noti-edits .notification-center .main-input textarea:focus {
    background: rgba(0, 0, 0, 0.22);
    border-color: var(--v2-line);
    outline: none;
    padding-left: 10px;
}
/* previous / next */
body .notification-content.noti-edits .abs-menu {
    top: 22px;
    right: 26px;
}
body .notification-content.noti-edits .abs-menu .items {
    width: 30px;
    height: 30px;
    line-height: 28px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid var(--v2-line);
    background: transparent;
    box-shadow: none;
    text-shadow: none;
    color: var(--v2-muted);
    font-weight: 700;
    cursor: pointer;
}
body .notification-content.noti-edits .abs-menu .items:hover {
    background: var(--v2-hover);
    color: var(--v2-text);
}

/* tabs: pills, no box */
body .notification-content.noti-edits .edit-tabs-holder {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--v2-line);
    border-radius: 0;
    padding: 0 0 10px 0;
    margin-top: 6px;
}
body .notification-content.noti-edits .edit-tabs {
    margin: 0 4px 0 0;
    padding: 5px 13px;
    border: 0;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-muted);
    opacity: 1;
}
body .notification-content.noti-edits .edit-tabs:hover {
    color: var(--v2-text);
}
body .notification-content.noti-edits .edit-tabs.active {
    background: rgba(150, 205, 150, 0.09);
    color: var(--v2-text);
}
body .notification-content.noti-edits .tab-holder {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 18px 0 0 0;
    min-height: 0;
    max-height: calc(100vh - 350px);
}
/* the conversation scrolls on its own, the reply box stays in view */
body .notification-content.noti-edits .item-thread .act-lines {
    max-height: calc(100vh - 530px);
    min-height: 120px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
    mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
    padding-top: 10px;
}
body .notification-content.noti-edits .item-thread .act-reply {
    margin-bottom: 26px;
}
body .notification-content.noti-edits .tab-holder > .col-hold:last-child {
    padding-left: 18px;
}

/* section labels: small and quiet, the content speaks */
body .notification-content.noti-edits .notification-center .box-field-title {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-faint);
    padding: 2px 0 10px 2px;
}

/* fields: a soft card of rows, values as pills */
body .notification-content.noti-edits .ui-notification .edits {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--v2-line);
    border-radius: 14px;
    box-shadow: none;
    padding: 4px 12px 4px 16px;
    margin-bottom: 18px;
}
body .notification-content.noti-edits .ui-notification .edit-rows {
    border-bottom: 1px solid var(--v2-line);
    padding: 3px 0;
}
body .notification-content.noti-edits .ui-notification .edit-rows:last-child {
    border-bottom: 0;
}
body .notification-content.noti-edits .ui-notification .edit-rows .title {
    font-size: 13px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--v2-muted);
}
body .notification-content.noti-edits .ui-notification .edit-rows .cus-select {
    background: transparent;
    box-shadow: none;
    border: 0;
}
body .notification-content.noti-edits .ui-notification .edit-rows .cus-select input,
body .notification-content.noti-edits .ui-notification .edit-rows textarea {
    border: 0 !important;
    border-radius: 999px;
    background: rgba(150, 205, 150, 0.06) !important;
    box-shadow: none !important;
    color: var(--v2-text);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 6px 12px;
    cursor: pointer;
}
body .notification-content.noti-edits .ui-notification .edit-rows textarea {
    border-radius: 10px;
    text-transform: none;
    cursor: text;
}
body .notification-content.noti-edits .ui-notification .edit-rows .cus-select input:hover {
    background: rgba(150, 205, 150, 0.11) !important;
}

/* files */
body .notification-content.noti-edits #ufile-label {
    width: auto;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px dashed rgba(150, 205, 150, 0.22);
    background: transparent;
    box-shadow: none;
    color: var(--v2-muted);
    font-size: 12px;
    font-weight: 700;
    height: auto;
    text-transform: none;
    letter-spacing: 0;
}
body .notification-content.noti-edits #ufile-label:hover {
    color: var(--v2-text);
    border-color: rgba(150, 205, 150, 0.4);
}
body .notification-content.noti-edits .add-files {
    margin-bottom: 22px;
}

/* conversation: comments read as messages, the system's lines stay small */
.item-thread .act-claim {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--v2-mint);
    background: rgba(143, 220, 171, 0.08) !important;
}
.item-thread .act-lines {
    padding-right: 4px;
}
.item-thread .act-line {
    border-bottom: 0 !important;
    padding: 3px 0 3px 14px;
    position: relative;
}
/* system lines: one quiet row on a thin timeline */
.item-thread .act-line:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--v2-line);
}
.item-thread .act-line:after {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1b2c1d;
    box-shadow: 0 0 0 2px #0b170d;
}
.item-thread .act-line .act-meta {
    font-size: 11px;
    color: var(--v2-faint);
    opacity: 1;
}
.item-thread .act-line .act-text {
    font-size: 12px;
    color: var(--v2-muted);
    opacity: 1;
}
/* comments: a card */
.item-thread .act-line.act-comment {
    margin: 8px 0 8px 14px;
    padding: 10px 14px 11px 14px;
    border-radius: 14px;
    background: rgba(150, 205, 150, 0.05);
}
.item-thread .act-line.act-comment:before,
.item-thread .act-line.act-comment:after {
    display: none;
}
.item-thread .act-line.act-comment .act-text {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    color: var(--v2-text);
    margin-top: 2px;
}
/* what people write leans warm, so it stands apart from the agents */
.item-thread .act-line.act-comment.act-from-person {
    background: rgba(210, 200, 180, 0.08);
}
.item-thread .act-line.act-comment.act-from-person .act-meta {
    color: var(--v2-sand);
    opacity: 0.7;
}
/* a question waiting for you: the accent */
.item-thread .act-line.act-question {
    background: var(--v2-accent-soft) !important;
    box-shadow: inset 3px 0 0 var(--v2-accent);
}
.item-thread .act-line.act-question .act-meta {
    color: var(--v2-accent-text);
    opacity: 0.8;
}
.item-thread .act-line.act-question .act-text {
    color: #ffe2d3;
}
.item-thread .act-reply {
    margin-top: 14px;
    align-items: stretch;
}
.item-thread .act-input {
    border-radius: 14px;
    border: 1px solid var(--v2-line) !important;
    background: rgba(0, 0, 0, 0.22) !important;
    color: var(--v2-text);
    font-size: 14px;
    padding: 10px 12px;
    resize: none;
}
.item-thread .act-input:focus {
    outline: none;
    border-color: rgba(255, 107, 44, 0.45) !important;
}
.item-thread .act-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.item-thread .act-reply .twodo-btn {
    align-self: flex-end;
    background: var(--v2-accent);
    color: #1a0b03;
    border: 0;
    box-shadow: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-weight: 700;
}
.item-thread .act-reply .twodo-btn.act-ask {
    background: transparent;
    color: var(--v2-accent-text);
    border: 1px solid rgba(255, 107, 44, 0.4);
}

/* close: a ghost pill */
body .notification-content.noti-edits .notification-center .ui-notification .actions .notifications-btn {
    background: transparent;
    border: 1px solid rgba(150, 205, 150, 0.16);
    box-shadow: none;
    color: var(--v2-muted);
    padding: 8px 18px;
}
body .notification-content.noti-edits .notification-center .ui-notification .actions .notifications-btn:hover {
    color: var(--v2-text);
    background: var(--v2-hover);
}

/* =====================================================================
   round 2: glass shell, pill navigation, the item colors, chips
   ===================================================================== */

/* .page- is the home page (/), where the app lives: body.html names the page
   after the first part of the address, which is empty there */
/* a soft glow behind everything, so the glass has something to blur */
body.dark.page- {
    background:
        radial-gradient(1100px 620px at 8% -12%, rgba(70, 150, 90, 0.20), transparent 62%),
        radial-gradient(900px 520px at 108% 112%, rgba(255, 107, 44, 0.07), transparent 60%),
        radial-gradient(700px 420px at 60% 40%, rgba(40, 110, 60, 0.07), transparent 70%),
        #021003;
    background-attachment: fixed;
}
body.page- .content .content-bg {
    display: none;
}

/* the top bar floats: rounded glass, the list scrolls under it */
body.page- .header {
    top: 10px;
    left: 12px;
    right: 12px;
    height: 48px;
    border: 1px solid var(--v2-glass-line);
    border-radius: 18px;
    background: var(--v2-glass);
    -webkit-backdrop-filter: var(--v2-blur);
    backdrop-filter: var(--v2-blur);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    z-index: 1;
}
/* (the glass makes the bar the frame of its fixed pieces: they now sit inside it) */
body.page- #cie_logo { top: 9px; padding-left: 14px; }
body.page- #filter-bar { top: 5px; left: 52px; }
body.page- .extra-page-menu { top: 5px; }
body.page- #status-bar { top: 5px; right: 10px; }
body.page- .content {
    top: 0;
    bottom: 0;
    padding: 70px 0 160px 0;
}
/* two fade layers (the page background again, faded): rows dim as they slide
   under the top bar and are gone before they reach the new 2do bar.
   (a mask on .content would also hide the new 2do bar, which lives inside it) */
body.page- .content:before,
body.page- .content:after {
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    z-index: 3;
    pointer-events: none;
    background:
        radial-gradient(1100px 620px at 8% -12%, rgba(70, 150, 90, 0.20), transparent 62%),
        radial-gradient(900px 520px at 108% 112%, rgba(255, 107, 44, 0.07), transparent 60%),
        radial-gradient(700px 420px at 60% 40%, rgba(40, 110, 60, 0.07), transparent 70%),
        #021003;
    background-attachment: fixed;
}
body.page- .content:before {
    top: 0;
    height: 74px;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), transparent);
}
body.page- .content:after {
    bottom: 0;
    height: 150px;
    -webkit-mask-image: linear-gradient(to top, #000 62%, transparent);
    mask-image: linear-gradient(to top, #000 62%, transparent);
}

/* menu buttons: no dividers, a see-through tint on hover */
body.page- .extra-page-menu .menu-item {
    border-right: 0 !important;
    border-radius: 999px;
    margin-top: 4px;
    padding: 5px 4px 5px 10px;
    transition: background 0.15s ease;
}
body.page- .extra-page-menu .menu-item:hover {
    background: rgba(255, 255, 255, 0.06);
}
body.page- .extra-page-menu .menu-item.active:after {
    display: none;
}
body.page- .extra-page-menu .menu-item.active {
    background: rgba(255, 255, 255, 0.08);
}
body.page- .extra-page-menu .itm {
    color: var(--v2-muted);
    margin-right: 10px;
}
body.page- .extra-page-menu .menu-item:hover .itm {
    color: var(--v2-text);
}
body.page- .extra-page-menu .menu-item .item-count {
    border: 0;
    border-radius: 999px;
    padding: 1px 6px;
    color: var(--v2-text);
    background: rgba(255, 255, 255, 0.09);
}

/* narrower desktop windows: the menu keeps its icons only, so the list tabs keep their room */
@media all and (min-width: 1151px) and (max-width: 1320px) {
    body.page- .extra-page-menu .menu-item .itm { display: none; }
    body.page- .extra-page-menu .menu-item { padding: 5px 9px 5px 13px; }
}

/* the state filter: a segmented pill */
body.page- #status-bar .toggle-holder {
    height: auto;
    padding: 3px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--v2-glass-line);
}
body.page- #status-bar .toggle {
    display: none;
}
body.page- #status-bar .toggle-states {
    opacity: 1;
    color: var(--v2-faint);
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}
body.page- #status-bar .toggle-states span {
    display: inline-block;
    top: 0;
    margin: 0;
    padding: 5px 11px;
}
body.page- #status-bar .toggle-states:hover {
    color: var(--v2-text);
    background: rgba(255, 255, 255, 0.05);
}
body.page- #status-bar .toggle-states.active {
    color: var(--v2-text);
    background: rgba(255, 255, 255, 0.10);
}

/* the new 2do bar floats too */
body.page- .twodo-new {
    left: 16px;
    right: 16px;
    bottom: 26px;
    height: 37px;
    padding: 12px 16px;
    border: 1px solid var(--v2-glass-line);
    border-radius: 22px;
    background: var(--v2-glass);
    -webkit-backdrop-filter: var(--v2-blur);
    backdrop-filter: var(--v2-blur);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    /* above the fade layers (it lives inside the list area) */
    z-index: 4;
}
body.page- .twodo-new .input-holder {
    left: 16px;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    overflow: hidden;
}
body.page- #extra-footer,
body.page- .footer #commit {
    bottom: 6px;
}

/* ---- the item colors ---- */
body :is(#twodos-holder, #k-row-preview) .twodo-line[class*="color-"] .row-icon {
    opacity: 1 !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.03);
}
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-blue .row-icon { background: var(--c-blue) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-red .row-icon { background: var(--c-red) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-green .row-icon { background: var(--c-green) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-yellow .row-icon { background: var(--c-yellow) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-purple .row-icon { background: var(--c-purple) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-black .row-icon { background: var(--c-black) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-turquoise .row-icon { background: var(--c-turquoise) !important; }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-pink .row-icon { background: var(--c-pink) !important; }
/* a faint wash of the color from the left */
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-blue { background: linear-gradient(90deg, var(--t-blue), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-red { background: linear-gradient(90deg, var(--t-red), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-green { background: linear-gradient(90deg, var(--t-green), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-yellow { background: linear-gradient(90deg, var(--t-yellow), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-purple { background: linear-gradient(90deg, var(--t-purple), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-black { background: linear-gradient(90deg, var(--t-black), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-turquoise { background: linear-gradient(90deg, var(--t-turquoise), transparent 38%); }
body :is(#twodos-holder, #k-row-preview) .twodo-line.color-pink { background: linear-gradient(90deg, var(--t-pink), transparent 38%); }

/* ---- cards view: rounded glass cards, tinted by color ---- */
body :is(#twodos-holder, #k-row-preview).card-mode {
    gap: 14px;
    padding: 4px 2px;
}
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line {
    box-sizing: border-box;
    border: 1px solid var(--v2-glass-line) !important;
    border-radius: 20px;
    padding: 14px 16px 12px 16px;
    min-height: 96px;
    background: rgba(255, 255, 255, 0.035);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, background 0.15s ease;
}
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-blue { background: linear-gradient(160deg, var(--t-blue), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-red { background: linear-gradient(160deg, var(--t-red), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-green { background: linear-gradient(160deg, var(--t-green), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-yellow { background: linear-gradient(160deg, var(--t-yellow), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-purple { background: linear-gradient(160deg, var(--t-purple), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-black { background: linear-gradient(160deg, var(--t-black), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-turquoise { background: linear-gradient(160deg, var(--t-turquoise), rgba(255, 255, 255, 0.02) 70%); }
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line.color-pink { background: linear-gradient(160deg, var(--t-pink), rgba(255, 255, 255, 0.02) 70%); }
/* in a card: the title on top, the state and time on one line under it */
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line .line-inner .row-label {
    display: block;
    width: 100% !important;
    height: auto;
    top: 0;
    left: 0;
    padding-right: 0;
    line-height: 1.35;
}
body :is(#twodos-holder, #k-row-preview).card-mode .twodo-line .line-inner .row-interactions {
    position: static !important;
    width: 100% !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
}

/* ---- dropdowns: glass, rounded, with the colors as swatches ---- */
body .options {
    border: 1px solid var(--v2-glass-line);
    border-radius: 16px;
    background: var(--v2-glass-strong);
    -webkit-backdrop-filter: var(--v2-blur);
    backdrop-filter: var(--v2-blur);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.5);
    padding: 5px;
}
body .options .option {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 10px;
    padding: 8px 8px;
    color: var(--v2-text);
    font-size: 12px;
    font-weight: 600;
}
body .options .option:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}
body .options .option.active {
    background: rgba(255, 255, 255, 0.05);
}
body .options .option.active:before,
body .options .option:before {
    content: "";
    display: inline-block;
    position: relative;
    width: 10px;
    height: 10px;
    margin: 0 8px 0 2px;
    border-radius: 50%;
    vertical-align: -1px;
    background: rgba(255, 255, 255, 0.12);
}
body .options .option.opt-blue:before { background: var(--c-blue); }
body .options .option.opt-red:before { background: var(--c-red); }
body .options .option.opt-green:before { background: var(--c-green); }
body .options .option.opt-yellow:before { background: var(--c-yellow); }
body .options .option.opt-purple:before { background: var(--c-purple); }
body .options .option.opt-black:before { background: var(--c-black); }
body .options .option.opt-turquoise:before { background: var(--c-turquoise); }
body .options .option.opt-pink:before { background: var(--c-pink); }
body .options .option.opt-not-done:before { background: var(--v2-sand); opacity: 0.6; }
body .options .option.opt-in-progress:before { background: var(--v2-amber); }
body .options .option.opt-done:before { background: var(--v2-mint); }

/* ---- item editor glass ---- */
body .blocker-noti-edits {
    background-color: rgba(2, 8, 3, 0.45);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
body .notification-content.noti-edits .ui-notification {
    background: rgba(12, 26, 14, 0.82);
    -webkit-backdrop-filter: var(--v2-blur);
    backdrop-filter: var(--v2-blur);
    border-color: var(--v2-glass-line);
}

/* ---- editor fields as chips: one click, no dropdown ---- */
body .notification-content.noti-edits .edit-rows.chipped .cus-select {
    display: none;
}
body .notification-content.noti-edits .edit-rows.chipped .title {
    width: 24%;
    padding-top: 9px;
}
body .notification-content.noti-edits .edit-rows.chipped .col60 {
    width: 76%;
}
.edit-rows .chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    padding: 5px 0;
}
.edit-rows .chips .chip {
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    color: var(--v2-muted);
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.edit-rows .chips .chip:hover {
    color: var(--v2-text);
    background: rgba(255, 255, 255, 0.09);
}
.edit-rows .chips .chip:active {
    transform: scale(0.96);
}
.edit-rows .chips .chip.active {
    color: var(--v2-text);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.10);
}
/* states and priorities in their colors */
.edit-rows .chips .chip-not-done.active { color: var(--v2-sand); background: rgba(210, 200, 180, 0.14); }
.edit-rows .chips .chip-in-progress.active { color: #2a1503; background: linear-gradient(90deg, #f0962a, #ffc98a); }
.edit-rows .chips .chip-done.active { color: #072010; background: linear-gradient(90deg, #5d9a62, #a9dcb3); }
.edit-rows .chips .chip-urgent.active { color: #2b0905; background: var(--c-red); }
.edit-rows .chips .chip-important.active { color: #2a1503; background: var(--c-yellow); }
.edit-rows .chips .chip-low.active { color: #072010; background: var(--c-green); }
/* colors: swatches, the name shows on hover */
.edit-rows .chips-colors {
    gap: 5px;
}
.edit-rows .chips-colors .chip {
    width: 24px;
    height: 24px;
    padding: 0;
    font-size: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.edit-rows .chips.chips-colors .chip.active {
    border-color: var(--v2-text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
.edit-rows .chips.chips-colors .chip.chip-blue { background: var(--c-blue); }
.edit-rows .chips.chips-colors .chip.chip-red { background: var(--c-red); }
.edit-rows .chips.chips-colors .chip.chip-green { background: var(--c-green); }
.edit-rows .chips.chips-colors .chip.chip-yellow { background: var(--c-yellow); }
.edit-rows .chips.chips-colors .chip.chip-purple { background: var(--c-purple); }
.edit-rows .chips.chips-colors .chip.chip-black { background: var(--c-black); }
.edit-rows .chips.chips-colors .chip.chip-turquoise { background: var(--c-turquoise); }
.edit-rows .chips.chips-colors .chip.chip-pink { background: var(--c-pink); }
.edit-rows .chips.chips-colors .chip.chip-none {
    background: linear-gradient(135deg, transparent 46%, rgba(255, 255, 255, 0.35) 48%, rgba(255, 255, 255, 0.35) 52%, transparent 54%), rgba(255, 255, 255, 0.04);
}
.edit-rows .chips-colors .chip:hover {
    transform: scale(1.08);
}

/* =====================================================================
   round 3: the Filters and View panels, a floating glass drawer
   (the buttons' text is the filter value: decorations stay in CSS)
   ===================================================================== */
body.page- .filtering {
    top: 70px;
    bottom: 104px;
    right: -360px;
    width: 300px;
    max-height: none;
    padding-bottom: 18px;
    border: 1px solid var(--v2-glass-line);
    border-radius: 20px;
    background: var(--v2-glass-strong);
    -webkit-backdrop-filter: var(--v2-blur);
    backdrop-filter: var(--v2-blur);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.45);
    transition: right 0.25s ease;
}
body.page- .filtering.active {
    right: 12px;
}
body.page-.in-filtering .content {
    right: 332px;
}
/* the panel's name, big, like the item window title */
body.page- #view-filters .filtering-inner:before,
body.page- #edit-view .filtering-inner:before {
    display: block;
    margin: 2px 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--v2-text);
}
body.page- #view-filters .filtering-inner:before { content: "Filters"; }
body.page- #edit-view .filtering-inner:before { content: "View"; }
body.page- .filtering .filtering-inner,
body.page- .filtering .fnew-inner {
    padding: 18px 18px 0 18px;
}
body.page- #close-filtering {
    top: 18px;
    right: 16px;
    width: 28px;
    height: 28px;
    border: 1px solid var(--v2-glass-line);
    background: transparent;
    transition: background 0.15s ease;
}
body.page- #close-filtering:hover {
    background: rgba(255, 255, 255, 0.07);
}
body.page- #close-filtering:before,
body.page- #close-filtering:after {
    width: 11px;
    border-bottom: 1.5px solid var(--v2-muted);
    box-shadow: none;
}

/* sections: small quiet labels, no rules between them */
body.page- .filtering .filtering-inner .f-box {
    border-bottom: 0;
    margin-bottom: 14px;
    padding-bottom: 0;
}
body.page- .filtering .filtering-inner .f-label,
body.page- .filtering .fnew-inner .f-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--v2-faint);
    margin-bottom: 8px;
}
/* a filter is on: the label says so, and offers the reset */
body.page- .filtering .filtering-inner .f-box.active .f-label {
    color: var(--v2-muted);
}
body.page- .filtering .filtering-inner .f-box.active .f-label:after {
    content: "reset";
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: none;
    padding: 2px 8px;
    border-radius: 999px;
    color: var(--v2-accent-text);
    background: var(--v2-accent-soft);
    opacity: 1;
}
/* system fields with nothing to filter on */
body.page- #view-filters .f-box.b-date,
body.page- #view-filters .f-box.b-twodo {
    display: none;
}

/* the values: pills, see-through until they're on */
body.page- .filtering .filtering-inner .f-box .twodo-btn {
    margin: 0 5px 6px 0;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.045);
    color: var(--v2-muted);
    font-size: 12px;
    font-weight: 600;
    opacity: 1;
    transition: background 0.15s ease, color 0.15s ease;
}
body.page- .filtering .filtering-inner .f-box .twodo-btn:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--v2-text);
}
body.page- .filtering .filtering-inner .f-box .twodo-btn.active {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: none;
    color: var(--v2-text);
}
/* lists on: the accent; states and priorities on: their own colors */
body.page- .filtering .f-box.b-twodos .twodo-btn.active,
body.page- .filtering .filtering-inner .f-box .f-v-twodos .twodo-btn.active {
    background: var(--v2-accent-soft);
    border-color: rgba(255, 107, 44, 0.3);
    color: var(--v2-accent-text);
}
body.page- .filtering .f-box .twodo-btn.bb-not-done.active { color: var(--v2-sand); background: rgba(210, 200, 180, 0.15); border-color: rgba(210, 200, 180, 0.2); }
body.page- .filtering .f-box .twodo-btn.bb-in-progress.active { color: #2a1503; background: linear-gradient(90deg, #f0962a, #ffc98a); border-color: transparent; }
body.page- .filtering .f-box .twodo-btn.bb-done.active { color: #072010; background: linear-gradient(90deg, #5d9a62, #a9dcb3); border-color: transparent; }
body.page- .filtering .f-box .twodo-btn.bb-\!urgent.active { color: #2b0905; background: var(--c-red); border-color: transparent; }
body.page- .filtering .f-box .twodo-btn.bb-\!important.active { color: #2a1503; background: var(--c-yellow); border-color: transparent; }
body.page- .filtering .f-box .twodo-btn.bb-\!low.active { color: #072010; background: var(--c-green); border-color: transparent; }
/* "+" to add a value: a dashed ghost */
body.page- .filtering .filtering-inner .f-box .twodo-btn.bb-add {
    background: transparent;
    border: 1px dashed rgba(150, 205, 150, 0.22);
    color: var(--v2-faint);
    padding: 4px 10px;
}
body.page- .filtering .filtering-inner .f-box .twodo-btn.bb-add:hover {
    color: var(--v2-text);
    border-color: rgba(150, 205, 150, 0.4);
}

/* colors: the gradient swatches, a ring when on */
body.page- .filtering .filtering-inner .f-box.b-colors .twodo-btn {
    box-sizing: border-box;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0 4px 6px 0;
    font-size: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    vertical-align: middle;
    transition: transform 0.1s ease;
}
body.page- .filtering .filtering-inner .f-box.b-colors .twodo-btn:hover {
    transform: scale(1.1);
}
body.page- .filtering .filtering-inner .f-box.b-colors .twodo-btn.active {
    border-color: var(--v2-text);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08);
}
body.page- .filtering .f-box.b-colors .twodo-btn.bb-blue { background: var(--c-blue); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-red { background: var(--c-red); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-green { background: var(--c-green); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-yellow { background: var(--c-yellow); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-purple { background: var(--c-purple); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-black { background: var(--c-black); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-turquoise { background: var(--c-turquoise); }
body.page- .filtering .f-box.b-colors .twodo-btn.bb-pink { background: var(--c-pink); }
body.page- .filtering .filtering-inner .f-box.b-colors .twodo-btn.bb-add {
    font-size: 13px;
    line-height: 21px;
    text-align: center;
    background: transparent;
    border: 1px dashed rgba(150, 205, 150, 0.22);
    box-shadow: none;
}

/* View: one line per field, its name and a Hide | Show switch */
body.page- .filtering .filtering-inner .f-v-fields .f-box.f-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 3px 0;
}
body.page- .filtering .filtering-inner .f-v-fields .f-line .f-label {
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--v2-text);
}
body.page- .filtering .filtering-inner .f-v-fields .f-line:has(.b-hide.active) .f-label {
    color: var(--v2-faint);
}
body.page- .filtering .filtering-inner .f-v-fields .f-line .f-actions {
    position: static;
    display: flex;
    padding: 2px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
}
body.page- .filtering .filtering-inner .f-v-fields .f-line .f-actions .twodo-btn {
    margin: 0;
    padding: 4px 11px;
    background: transparent;
    border-color: transparent;
    color: var(--v2-faint);
}
body.page- .filtering .filtering-inner .f-v-fields .f-line .f-actions .twodo-btn.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--v2-text);
}

/* Share > Claude: how to set up a new computer */
body.page- .agents-setup {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--v2-line);
}
body.page- .agents-setup p {
    margin: 0 0 8px 0;
    font-size: 12px;
    color: var(--v2-muted);
}
body.page- .agents-setup p:last-child {
    margin: 8px 0 0 0;
}
body.page- .agents-setup code {
    display: block;
    margin: 0 0 2px 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--v2-text);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11px;
    word-break: break-all;
    user-select: all;
}
body.page- .agents-setup .agents-os {
    display: block;
    margin: 0 0 6px 2px;
    font-size: 10px;
    color: var(--v2-faint);
}

/* create a new field: dark inputs, a soft button */
body.page- .filtering .fnew-inner {
    border-top: 1px solid var(--v2-line);
    margin: 4px 0 0 0;
}
body.page- .filtering .fnew-inner .f-box .cus-select {
    border: 0;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    padding: 0;
    margin-bottom: 8px;
}
body.page- .filtering .fnew-inner .f-box .cus-select input,
body.page- .filtering .fnew-inner .twodo-input,
body.page- #edit-view #view-mode-select {
    border: 1px solid var(--v2-line) !important;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22) !important;
    box-shadow: none !important;
    color: var(--v2-text);
    font-size: 13px;
    padding: 8px 12px;
    opacity: 1;
}
body.page- .filtering .fnew-inner .dialog-with-input {
    display: flex;
    gap: 8px;
    align-items: center;
}
body.page- .filtering .fnew-inner .dialog-with-input .twodo-input {
    flex: 1;
    min-width: 0;
}
body.page- .filtering .fnew-inner .dialog-with-input .twodo-btn {
    border-radius: 999px;
    padding: 8px 14px;
    background: var(--v2-accent-soft);
    color: var(--v2-accent-text);
    box-shadow: none;
    border: 0;
    font-weight: 700;
}

/* the column edits the view: each field name, and whether it sits on the row */
body.page- .filtering .f-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}
body.page- .filtering .f-head .f-label {
    margin-bottom: 0;
}
body.page- .filtering .f-onrow {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: var(--v2-faint);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 999px;
}
body.page- .filtering .f-onrow.on {
    color: var(--v2-accent-text);
    background: var(--v2-accent-soft);
}

/* a phone: the column is the page, the new-item fields stay reachable, type stays 16px */
@media (max-width: 1150px) {
    body.page- .filtering {
        top: 0;
        bottom: 0;
        left: 0;
        width: auto;
        right: -100%;
        border-radius: 0;
        padding-top: env(safe-area-inset-top);
        z-index: 30;
    }
    body.page- .filtering.active {
        right: 0;
    }
    body.page-.in-filtering .content {
        right: 12px;
    }
    body.page- #close-filtering {
        width: 44px;
        height: 44px;
    }
    body.page- .filtering .filtering-inner .f-box .twodo-btn {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 15px;
    }
    body.page- .filtering .fnew-inner .twodo-input,
    body.page- .twodo-new #new-twodo,
    .item-thread .act-input {
        font-size: 16px;
    }
    body.page- .twodo-new {
        height: auto;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    body.page- .twodo-new .input-holder {
        position: relative;
        left: 0;
        right: auto;
        width: calc(100% - 96px);
        height: auto;
        overflow: visible;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    body.page- .twodo-new .input-holder .input-pre-action,
    body.page- .twodo-new .input-holder .input-post-action {
        position: static;
        display: flex;
        max-width: 100%;
        overflow-x: auto;
    }
    body.page- .twodo-new .input-holder .input-pre-action .act,
    body.page- .twodo-new .input-holder .input-pre-action .act:last-child,
    body.page- .twodo-new .input-holder .input-post-action .act {
        display: inline-block;
        flex: 0 0 auto;
    }
    body.page- .twodo-new #new-twodo {
        width: 100%;
        flex: 1 0 100%;
    }
    body.page- .twodo-new .save-holder .twodo-btn {
        color: #1a0b03;
    }
}

/* =====================================================================
   shapes: the controls you touch, one height, no leftover square chrome
   ===================================================================== */

/* the list names in the top bar were clipped by a 26px strip */
body.page- #filter-bar {
    height: auto;
    max-height: none;
    overflow: visible;
    display: flex;
    align-items: center;
}
body.page- #filter-bar .user-twodos {
    max-height: none;
    overflow: visible;
    margin-right: 12px;
}

/* a row is one line: title, then a pill that fits its word, then the time */
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c {
    padding: 2px 8px;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line .line-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line .line-inner .row-label {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    top: 0;
    left: 0;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line .line-inner .row-interactions {
    position: static;
    width: auto;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    top: auto;
}

/* state is a pill the width of the word, not a 124px box with a chevron on it */
body.page- :is(#twodos-holder, #k-row-preview) .twodo-line .line-inner .row-state span {
    padding: 0;
    margin: 0;
    border-radius: 999px;
}
body.page- :is(#twodos-holder, #k-row-preview) .row-state .cus-select {
    width: auto !important;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
}
body.page- :is(#twodos-holder, #k-row-preview) .row-state .cus-select:after {
    display: none;
}
body.page- :is(#twodos-holder, #k-row-preview) .row-state .cus-select input {
    width: auto !important;
    height: 28px;
    line-height: 28px;
    margin: 0;
    padding: 0 12px;
    text-indent: 0;
}

/* the dot is a circle, centered on the first line */
body.page- :is(#twodos-holder, #k-row-preview) .twodo-line .row-label .row-color .row-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 0;
    margin-right: 10px;
}

/* the new-item bar is one capsule: the fields, the text, the save, same height */
body.page- .twodo-new {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 0;
    padding: 8px;
    gap: 8px;
}
body.page- .twodo-new .input-holder {
    position: relative;
    left: 0;
    right: auto;
    flex: 1 1 auto;
    width: auto;
    height: 44px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-radius: 999px;
}
body.page- .twodo-new .input-holder .input-pre-action,
body.page- .twodo-new .input-holder .input-post-action {
    position: static;
    display: flex;
    align-items: center;
    height: 44px;
    border: 0 !important;
    background: transparent;
}
body.page- .twodo-new .input-holder .input-pre-action .act,
body.page- .twodo-new .input-holder .input-post-action .act {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 4px;
    border: 0 !important;
    background: transparent !important;
}
body.page- .twodo-new .input-holder .cus-select {
    height: 30px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}
body.page- .twodo-new .input-holder .cus-select:after {
    display: none;
}
body.page- .twodo-new .input-holder .cus-select input {
    height: 30px;
    line-height: 30px;
    width: auto !important;
    margin: 0;
    padding: 0 10px;
    text-indent: 0;
    text-align: center;
    color: var(--v2-text);
}
body.page- .twodo-new #new-twodo {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 44px;
    line-height: 44px;
}
body.page- .twodo-new .save-holder {
    position: static;
    margin: 0;
}
body.page- .twodo-new .save-holder .twodo-btn {
    top: 0;
    height: 44px;
    line-height: 44px;
    padding: 0 18px 0 42px;
    display: inline-flex;
    align-items: center;
}

/* opening a field used to drop a light square menu on the dark page */
body.page- #current-options.options {
    background: #102014;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    padding: 6px;
    width: auto;
    min-width: 148px;
}
body.page- #current-options .option {
    border: 0;
    box-shadow: none;
    border-radius: 10px;
    color: var(--v2-text);
    padding: 8px 12px;
    font-size: 13px;
}
body.page- #current-options .option:hover,
body.page- #current-options .option.active {
    background: rgba(255, 255, 255, 0.06);
}
body.page- #current-options .option.active:before {
    background: var(--v2-accent);
}

/* the row is a bar, and every status pill sits in the same column */
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c {
    display: block !important;
    width: auto !important;
    border: 0 !important;
    border-radius: 12px !important;
    margin: 0 4px 4px 4px !important;
    padding: 0 12px !important;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.035);
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .line-inner {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 44px !important;
    gap: 12px !important;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .row-label {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .row-interactions {
    position: static !important;
    top: auto !important;
    right: auto !important;
    width: auto !important;
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    text-align: left !important;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .row-state {
    flex: 0 0 128px !important;
    width: 128px !important;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .row-state .cus-select,
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .row-state .cus-select input {
    width: 128px !important;
    max-width: 128px !important;
    box-sizing: border-box !important;
}
body.page- :is(#twodos-holder, #k-row-preview):not(.card-mode) .twodo-line.l-c .row-date {
    flex: 0 0 58px !important;
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    margin: 0 !important;
    text-align: right !important;
}
body.page- .f-onrow {
    display: none !important;
}

/* bottom bar: every control is the same height */
body.page- .twodo-new {
    align-items: center !important;
}
body.page- .twodo-new .input-holder {
    height: 48px !important;
    overflow: hidden !important;
}
body.page- .twodo-new .input-holder .input-pre-action,
body.page- .twodo-new .input-holder .input-post-action,
body.page- .twodo-new .input-holder .act {
    flex: 0 0 auto !important;
    height: 48px !important;
    width: auto !important;
    position: static !important;
}
body.page- .twodo-new .input-holder .cus-select {
    height: 32px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.08) !important;
}
body.page- .twodo-new .input-holder .cus-select:after {
    display: none !important;
}
body.page- .twodo-new .input-holder .cus-select input {
    height: 32px !important;
    line-height: 32px !important;
    width: auto !important;
    max-width: 120px !important;
}
body.page- .twodo-new .input-post-action .act:last-child .cus-select {
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}
body.page- .twodo-new .input-post-action .act:last-child .cus-select input {
    width: 32px !important;
    max-width: 32px !important;
    padding: 0 !important;
    color: transparent !important;
}
body.page- .twodo-new .save-holder .twodo-btn {
    height: 48px !important;
    line-height: 48px !important;
    border-radius: 999px !important;
}
