:root {
    --app-bg: #f4f6f2;
    --sidebar-bg: rgba(244, 246, 242, .84);
    --sidebar-line: rgba(151, 162, 153, .22);
    --pane-bg: rgba(255, 255, 252, .88);
    --pane-muted: rgba(246, 248, 244, .56);
    --line: rgba(157, 168, 159, .14);
    --line-strong: rgba(145, 157, 147, .24);
    --text: #4b554d;
    --text-strong: #3c453e;
    --muted: #6f7a71;
    --accent: #8aa089;
    --accent-soft: #edf3ed;
    --accent-strong: #687f6a;
    --accent-blush: #ebe7ef;
    --success: #648164;
    --danger: #b07a82;
    --radius-sm: 14px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --space-1: 6px;
    --space-2: 10px;
    --space-3: 14px;
    --space-4: 18px;
    --space-5: 24px;
    --space-6: 32px;
    --shadow-sm: 0 10px 30px rgba(91, 102, 92, .06);
    --shadow-md: 0 28px 80px rgba(91, 102, 92, .10);
    --focus-ring: 0 0 0 4px rgba(138, 160, 137, .14);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Source Sans 3", "Helvetica Neue", sans-serif;
    background: var(--app-bg);
    color: var(--text);
    position: relative;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 8%, rgba(202, 214, 203, .28), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(232, 226, 237, .22), transparent 24%),
        linear-gradient(180deg, rgba(255,255,255,.36), transparent 18%);
    z-index: 0;
}
a { color: inherit; }
.shell {
    min-height: 100vh;
    padding: 26px;
    position: relative;
    z-index: 1;
}
.app-frame {
    min-height: calc(100vh - 52px);
    border: 1px solid rgba(157, 168, 159, .18);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 284px minmax(0, 1fr);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .76), rgba(244, 247, 243, .84)),
        var(--pane-bg);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(22px);
}
.sidebar {
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-line);
    padding: 30px 20px 26px;
}
.mobile-tabs {
    display: none;
}
.mobile-fab {
    display: none;
}
.brand {
    display: block;
    text-decoration: none;
    margin-bottom: 28px;
}
.brand-mark {
    display: block;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 3rem;
    line-height: .94;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--text-strong);
}
.brand-caption {
    display: block;
    margin-top: 10px;
    max-width: 13rem;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--muted);
}
.sidebar-note {
    margin-top: 20px;
    padding: 18px 18px 19px;
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(237, 242, 237, .92), rgba(247, 249, 246, .80));
    border: 1px solid rgba(145, 157, 147, .16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
.sidebar-note .eyebrow {
    color: #7c857d;
}
.sidebar-note p {
    margin: 8px 0 0;
    font-size: .92rem;
    line-height: 1.55;
    color: var(--text);
}
.sidebar-caption {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #7c857d;
    margin: 10px 14px 14px;
}
.nav {
    display: grid;
    gap: 6px;
}
.nav a {
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-size: .98rem;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.nav-label {
    display: inline-flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}
.nav a.active {
    background: rgba(255,255,255,.76);
    color: var(--text-strong);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(145, 157, 147, .16), 0 8px 24px rgba(91, 102, 92, .06);
}
.nav a:hover {
    background: rgba(255,255,255,.62);
    transform: translateX(2px);
}
.nav-count {
    min-width: 22px;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(145, 157, 147, .18);
    font-size: .71rem;
    color: var(--muted);
}
.nav a.active .nav-count {
    background: rgba(255,255,255,.9);
    color: var(--accent-strong);
    border-color: rgba(127, 157, 125, .22);
}
.main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--pane-muted);
}
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 34px 14px;
    border-bottom: 1px solid rgba(157, 168, 159, .12);
    background: rgba(247, 248, 245, .58);
    backdrop-filter: blur(18px);
}
.toolbar-title {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #7c857d;
}
.content {
    padding: 34px 34px 104px;
}
.page-shell {
    max-width: 1200px;
    margin: 0 auto;
}
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.split-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
    align-items: start;
}
.inbox-layout {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr);
    align-items: start;
}
.card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(244, 247, 243, .80)),
        var(--pane-bg);
    border: 1px solid rgba(157, 168, 159, .16);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
}
.pane {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(244, 247, 243, .80)),
        var(--pane-bg);
    border: 1px solid rgba(157, 168, 159, .16);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.pane-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 16px;
    border-bottom: 1px solid rgba(157, 168, 159, .14);
    background: transparent;
}
.pane-body { padding: 14px 24px 22px; }
.pane-body.compact { padding-top: 0; }
.eyebrow { color: #7c857d; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 700; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.02em; }
h1 {
    margin-bottom: 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.8rem, 5vw, 4.4rem);
    line-height: .92;
    font-weight: 600;
    letter-spacing: .01em;
    color: var(--text-strong);
}
h2 { margin-bottom: 0; font-size: 1.08rem; font-weight: 680; letter-spacing: .01em; color: var(--text-strong); }
.muted { color: var(--muted); }
.field {
    display: grid;
    gap: 6px;
}
.field-label {
    font-size: .75rem;
    font-weight: 650;
    color: #667167;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.field-hint {
    color: var(--muted);
    font-size: .74rem;
    line-height: 1.35;
}
.form-section {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.form-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}
details.disclosure {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
}
details.disclosure summary {
    cursor: pointer;
    list-style: none;
    font-size: .84rem;
    font-weight: 650;
    color: #355f9d;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}
details.disclosure summary::-webkit-details-marker {
    display: none;
}
details.disclosure summary::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    text-decoration: none;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: 50% 50%;
    transition: transform .16s ease, color .16s ease;
}
details.disclosure[open] summary {
    margin-bottom: 14px;
}
details.disclosure[open] summary::before {
    transform: rotate(-135deg) translateY(-1px);
}
details.disclosure summary:hover {
    color: #274c84;
}
details.disclosure summary:hover::before {
    color: inherit;
}
details.disclosure.recurrence-disclosure summary::before,
details.disclosure.recurrence-disclosure[open] summary::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
details.disclosure.recurrence-disclosure summary {
    gap: 10px;
}
details.disclosure.recurrence-disclosure summary svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}
.flash {
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(101, 133, 103, .18);
    background: rgba(237, 242, 232, .72);
    color: var(--success);
    font-size: .9rem;
}
.error { background: #fff5f2; border-color: rgba(176, 106, 95, .22); color: var(--danger); }
form.stack { display: grid; gap: 12px; }
input, select, textarea, button {
    font: inherit;
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 1px 0 rgba(17, 24, 39, .01);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}
input, select { min-height: 44px; }
select.select-empty,
input[type="date"].input-empty {
    color: #8a97aa;
}
input[type="date"].input-empty::-webkit-datetime-edit {
    color: #8a97aa;
}
select option {
    color: var(--text);
}
input[type="date"] {
    min-width: 0;
    max-width: 100%;
    padding-left: 42px;
    padding-right: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7b8f' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5.5' width='17' height='15' rx='2.5'/%3E%3Cpath d='M8 3.5v4M16 3.5v4M3.5 9.5h17'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 14px 50%;
    background-size: 18px 18px;
}
input[type="date"]::-webkit-date-and-time-value {
    min-width: 0;
    text-align: left;
}
input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    min-width: 0;
    overflow: hidden;
}
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
}
textarea { min-height: 88px; resize: vertical; }
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
    border-color: rgba(84, 126, 199, .75);
    box-shadow: var(--focus-ring);
}
button, .button {
    cursor: pointer;
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    font-weight: 650;
    box-shadow: 0 6px 16px rgba(79, 118, 188, .14);
    min-height: 42px;
    padding: 0 16px;
    transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
button:hover,
.button:hover {
    background: #456aa8;
    border-color: #456aa8;
}
.button-secondary, button.button-secondary {
    background: rgba(255,255,255,.95);
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: none;
}
.button-secondary:hover, button.button-secondary:hover {
    background: #f8fbff;
    border-color: #cbd8e7;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1; min-width: 0; }
.list { display: grid; gap: 12px; }
.pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    background: #f3f5f8;
    color: #4c5561;
    font-size: .72rem;
    border: 1px solid var(--line);
}
.task-done { opacity: .6; text-decoration: line-through; }
.split { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.split form { margin: 0; }
.stack-tight { display: grid; gap: 8px; }
.collection { display: grid; }
.collection-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 0 9px 18px;
    border-bottom: 1px solid rgba(228, 235, 243, .8);
}
.collection-row::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: transparent;
}
.collection-row:last-child { border-bottom: 0; }
.collection-row + .collection-row {
    margin-top: 2px;
}
.row-title {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.01em;
}
.row-meta {
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.35;
    margin-top: 2px;
}
.attachment-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}
.attachment-list a {
    text-decoration: none;
}
.row-notes {
    margin-top: 5px;
    color: #3a4047;
    font-size: .86rem;
    line-height: 1.35;
}
.today-group-label {
    margin: 10px 0 6px;
}
.today-task-row {
    display: block;
    padding-top: 14px;
    padding-bottom: 14px;
}
.today-task-shell {
    display: grid;
    gap: 12px;
    width: 100%;
}
.today-task-shell[data-task-edit-surface],
body.route-inbox [data-inbox-item-row] {
    cursor: pointer;
}
.today-task-head {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.today-task-head-copy {
    min-width: 0;
    flex: 1 1 auto;
    padding-top: 1px;
}
.today-task-title-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
}
.today-task-title-row .row-title {
    flex: 1 1 auto;
    min-width: 0;
}
.today-task-head-spacer {
    width: 22px;
    min-width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
.today-task-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    padding-top: 1px;
    margin-left: auto;
}
.task-action-menu {
    position: relative;
    flex: 0 0 auto;
}
.task-action-menu > summary {
    list-style: none;
}
.task-action-menu > summary::-webkit-details-marker {
    display: none;
}
.task-action-menu > summary::marker {
    content: "";
}
.task-action-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 25;
    min-width: 148px;
    padding: 6px;
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 14px 30px rgba(16, 24, 40, .10);
}
.task-action-menu:not([open]) .task-action-menu-panel {
    display: none;
}
.task-action-menu form {
    margin: 0;
}
.task-action-menu-item,
button.task-action-menu-item {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 10px;
    justify-content: flex-start;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    box-shadow: none;
    font-size: .84rem;
    font-weight: 600;
}
.task-action-menu-item:hover,
button.task-action-menu-item:hover {
    background: #f4f5f7;
    color: var(--text-strong);
}
.task-action-menu-item.is-active,
button.task-action-menu-item.is-active {
    color: var(--danger);
}
.task-action-menu-item.is-danger,
button.task-action-menu-item.is-danger {
    color: var(--danger);
}
.today-inline-action {
    width: auto;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 0;
    background: transparent;
    color: #5b6e85;
    border: 0;
    box-shadow: none;
    flex: 0 0 auto;
}
.today-inline-action svg {
    width: 16px;
    height: 16px;
    display: block;
    stroke: currentColor;
}
.today-inline-action:hover {
    color: var(--accent-strong);
}
.today-flag-toggle .today-flag-fill {
    fill: transparent;
}
.today-flag-toggle.is-active,
.today-flag-toggle.is-active:hover {
    color: var(--danger);
}
.today-flag-toggle.is-active .today-flag-fill {
    fill: currentColor;
}
.today-delete-toggle:hover {
    color: var(--danger);
}
.today-task-editor[hidden] {
    display: none;
}
.task-edit-root {
    display: grid;
    gap: 12px;
}
.task-inline-editor-pool[hidden] {
    display: none;
}
.today-task-form {
    width: 100%;
}
.today-task-form textarea {
    min-height: 58px;
    line-height: 1.35;
    resize: vertical;
}
.task-form-primary {
    display: grid;
    gap: 10px;
}
.task-form-section {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(157, 168, 159, .14);
}
.task-form-section-title {
    color: #7c857d;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1;
    text-transform: uppercase;
}
.task-title-control {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.task-title-control input[name="title"] {
    flex: 1 1 auto;
    min-width: 0;
}
.task-title-flag-toggle {
    width: 38px;
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(157, 168, 159, .14);
    border-radius: 14px;
    background: #f6f8f4;
    color: #7d877f;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.task-title-flag-toggle:hover {
    background: #fff;
    color: var(--accent-strong);
    border-color: rgba(138, 160, 137, .26);
}
.task-title-flag-toggle:focus-within {
    background: #fff;
    box-shadow: var(--focus-ring);
}
.task-title-flag-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}
.task-title-flag-fill {
    fill: transparent;
}
.task-title-flag-toggle:has(input:checked) {
    background: rgba(176, 122, 130, .10);
    border-color: rgba(176, 122, 130, .20);
    color: var(--danger);
}
.task-title-flag-toggle:has(input:checked) .task-title-flag-fill {
    fill: currentColor;
}
.today-task-more > .stack {
    margin-top: 12px;
}
.today-task-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: 2px;
}
.today-task-actions button {
    width: auto;
}
.stack-inline {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.stack-inline input[type="checkbox"] {
    width: auto;
    min-height: auto;
}
.stack-inline .field-label {
    margin: 0;
}
.action-group {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    flex: 0 0 auto;
}
.check-form { margin: 0; }
.check-button {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    padding: 0;
    background: #fff;
    color: var(--accent);
    border: 1px solid var(--line-strong);
    font-size: .9rem;
    line-height: 1;
    box-shadow: none;
    transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}
.check-button:hover {
    background: var(--accent-soft);
}
.inbox-check-button {
    width: 22px;
    min-width: 22px;
    height: 22px;
    min-height: 22px;
    margin-top: 1px;
    border: 2px solid #768394;
    color: transparent;
    padding: 0;
    flex: 0 0 22px;
}
.inbox-check-button:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: #f8fbff;
}
.inbox-check-button span {
    display: inline-block;
    transform: translateY(-1px);
}
.button-plain {
    background: #fff;
    color: var(--text);
    border-color: var(--line-strong);
}
.button-danger {
    background: #fff7f6;
    color: var(--danger);
    border-color: #e3b4b0;
}
.page-intro {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}
.page-subtitle {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.35;
}
.list-empty {
    padding: 18px 0 8px;
    color: var(--muted);
    font-size: .86rem;
}
.selection-note {
    padding: 10px 12px;
    border-radius: 10px;
    background: #f4f7fb;
    border: 1px solid var(--line);
    color: #425063;
    font-size: .82rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.inbox-collapsed-note {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .72);
    border-color: rgba(214, 224, 235, .92);
    color: #6b7a8d;
    text-align: center;
}
.collection-row.is-selected {
    margin: 6px 0 0;
    padding: 11px 0 10px 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.collection-row.is-selected::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 2px;
    border-radius: 999px;
    background: rgba(79, 118, 188, .55);
}
.projects-layout {
    grid-template-columns: minmax(300px, .92fr) minmax(0, 1.08fr);
    gap: 16px;
}
.project-page-intro {
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.project-page-titleblock {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
}
.project-page-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(112px, 1fr));
    gap: 8px;
    min-width: min(100%, 240px);
}
.project-page-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(224, 232, 242, .95);
    background: #fff;
}
.project-page-stat .eyebrow {
    margin-bottom: 0;
}
.project-page-stat-value {
    font-size: 1.2rem;
    font-weight: 720;
    letter-spacing: -.03em;
    line-height: 1;
}
.project-pane-head {
    align-items: flex-start;
}
.project-list-pane .pane-body.compact {
    padding-top: 10px;
}
.project-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(212, 221, 234, .95);
    background: #fff;
    color: #375d98;
    font-size: .82rem;
    font-weight: 700;
}
.project-list-link {
    display: block;
    width: 100%;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.project-list-pane .collection {
    gap: 0;
}
.project-list-row {
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid rgba(228, 235, 243, .82);
}
.project-list-row::before {
    top: 9px;
    bottom: 9px;
    width: 2px;
}
.project-list-card {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    transition: color .16s ease;
}
.project-list-link:hover .project-list-card {
    border: 0;
    background: transparent;
}
.project-list-link:hover .row-title {
    color: var(--accent-strong);
}
.project-list-headline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.project-list-subline {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-top: 3px;
}
.project-list-meta {
    color: var(--muted);
    font-size: .79rem;
    line-height: 1.35;
    margin-top: 0;
}
.project-list-note {
    margin-top: 8px;
    color: #445163;
    font-size: .84rem;
    line-height: 1.45;
}
.project-list-status-inline {
    color: #59708e;
    font-size: .74rem;
    font-weight: 650;
    white-space: nowrap;
}
.project-count-pill {
    background: #f4f7fb;
    border-color: rgba(214, 224, 235, .96);
    color: #31558f;
    font-weight: 650;
    font-size: .74rem;
    white-space: nowrap;
}
.project-status-pill {
    background: #f6f7f9;
    border-color: rgba(214, 220, 229, .96);
    color: #506072;
}
.project-list-row.is-selected {
    margin: 0;
    padding: 8px 0 8px 18px;
    border-bottom: 1px solid rgba(228, 235, 243, .82);
}
.project-list-row.is-selected::before {
    width: 2px;
    background: #4f76bc;
}
.project-list-row.is-selected .project-list-card {
    background: transparent;
    border: 0;
}
.project-list-row.is-selected .row-title {
    color: #294f89;
}
.project-list-row-completed .project-list-card {
    background: transparent;
}
.project-pane-sections {
    display: grid;
    gap: 12px;
}
.project-focus-headline {
    flex: 1 1 auto;
    min-width: 0;
}
.project-focus-pane .pane-head {
    align-items: flex-start;
    padding: 16px 20px 10px;
}
.project-focus-pane .pane-body {
    padding: 10px 20px 16px;
}
.project-focus-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.project-header-form {
    margin: 0;
    display: flex;
}
.project-focus-headline h2 {
    margin-bottom: 0;
}
.project-focus-meta {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}
.project-focus-summary {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 0;
}
.project-state-pill {
    color: #55697f;
    background: #f6f7f9;
    border-color: rgba(214, 220, 229, .96);
}
.project-summary-toggle,
.project-summary-toggle:hover {
    width: auto;
    min-height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #355f9d;
    font-size: .8rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
}
.project-summary-toggle:hover {
    color: #274c84;
}
.project-summary-toggle[aria-expanded="true"] {
    color: #274c84;
}
.project-editor-panel {
    padding: 12px;
    border: 1px solid rgba(228, 235, 243, .96);
    border-radius: 14px;
    background: #fbfcfe;
}
.project-add-action-form {
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(228, 235, 243, .82);
}
.project-add-action-form textarea {
    min-height: 76px;
}
.project-edit-form {
    gap: 12px;
}
.project-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.project-edit-actions form {
    margin: 0;
}
.project-action-section {
    display: block;
}
.project-details-body {
    gap: 12px;
}
.project-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px 12px;
}
.project-meta-item {
    display: grid;
    gap: 4px;
}
.project-meta-label {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.project-meta-value {
    font-size: .92rem;
    line-height: 1.4;
}
.project-summary-notes {
    margin-top: 2px;
    color: #405064;
    font-size: .88rem;
    line-height: 1.45;
}
.project-details-text {
    margin: 0;
    color: #4a596d;
    font-size: .86rem;
    line-height: 1.45;
}
.project-attachment-list {
    margin-top: 2px;
    gap: 6px;
    align-items: start;
}
.project-attachment-link {
    color: #355f9d;
    text-decoration: none;
    font-size: .84rem;
    line-height: 1.4;
}
.project-attachment-link:hover {
    text-decoration: underline;
}
.project-task-list {
    display: grid;
    gap: 0;
}
.project-task-list .collection-row {
    padding-right: 0;
    border-bottom: 0;
}
.project-task-row {
    padding: 8px 0;
}
.project-task-row::before {
    display: none;
}
.project-task-row:last-child {
    padding-bottom: 2px;
}
.project-action-section .today-task-shell {
    gap: 8px;
}
.project-task-schedule-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 12px 14px;
}
.project-task-schedule-row > * {
    width: auto;
}
.project-task-main {
    flex: 1 1 auto;
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
}
.project-task-mainline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.project-task-plan-pill {
    background: #f4f7fb;
    border-color: rgba(214, 224, 235, .96);
    color: #2f5694;
}
.project-task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: var(--muted);
    font-size: .8rem;
    line-height: 1.45;
}
.project-inline-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(79, 118, 188, .08);
    border: 1px solid rgba(79, 118, 188, .12);
    color: #31558f;
    font-weight: 650;
}
.project-inline-badge.is-flagged {
    background: rgba(178, 66, 63, .08);
    border-color: rgba(178, 66, 63, .14);
    color: var(--danger);
}
.project-task-actions {
    align-self: center;
    padding-left: 6px;
}
.project-empty-panel {
    padding: 16px;
    border-radius: 14px;
    border: 1px dashed rgba(198, 212, 230, .95);
    background: #fafcfe;
}
.project-disclosure-body {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}
.project-disclosure-body[hidden] {
    display: none !important;
}
.project-side-disclosure {
    margin-top: 16px;
}
.project-utility-disclosure {
    padding-top: 8px;
    border-top: 1px solid rgba(228, 235, 243, .82);
}
.project-utility-disclosure summary {
    font-size: .87rem;
}
.pane-head-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}
.pane-head-actions form {
    margin: 0;
}
.inline-create-panel {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid rgba(228, 235, 243, .96);
    border-radius: 14px;
    background: #fbfcfe;
}
.inline-create-panel[hidden] {
    display: none !important;
}
.inline-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.project-create-section {
    display: grid;
    gap: 16px;
}
.project-form-divider {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid rgba(228, 235, 243, .82);
}
.project-create-row {
    display: grid;
    gap: 14px 18px;
    align-items: start;
}
.project-create-row > * {
    min-width: 0;
}
.project-create-row.project-create-row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.project-create-row.project-create-row-3 {
    grid-template-columns: minmax(0, 1.65fr) repeat(2, minmax(14rem, 1fr));
}
.project-create-row.project-create-row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* Creation lives in a split pane, so respond to the panel rather than the viewport. */
.project-create-panel {
    container-type: inline-size;
    min-width: 0;
}
.project-create-panel .stack,
.project-create-panel .project-create-section,
.project-create-panel .field {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
}
.project-create-panel .project-create-row {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}
.project-create-panel input,
.project-create-panel select,
.project-create-panel textarea {
    min-width: 0;
    max-width: 100%;
}
@container (max-width: 48rem) {
    .project-create-panel .project-create-row-3 > .field:first-child {
        grid-column: 1 / -1;
    }
}
.project-inherit-note[hidden] {
    display: none !important;
}
.item-row-shell {
    display: grid;
    gap: 12px;
    width: 100%;
}
.item-row-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.item-row-main {
    min-width: 0;
    flex: 1 1 auto;
}
.item-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.item-row-actions form {
    margin: 0;
}
.item-row-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.item-row-link:hover .row-title {
    color: var(--accent-strong);
}
.detail-section {
    display: grid;
    gap: 10px;
}
.detail-section + .detail-section {
    padding-top: 14px;
    border-top: 1px solid rgba(228, 235, 243, .82);
}
.detail-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.detail-section-title {
    font-size: .95rem;
    font-weight: 650;
    letter-spacing: -.01em;
}
.detail-count {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 600;
}
.detail-list {
    display: grid;
}
.detail-list .collection-row {
    padding-right: 0;
}
.detail-task-disclosure summary,
.detail-project-disclosure summary {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
}
.detail-task-disclosure summary .detail-count,
.detail-project-disclosure summary .detail-count {
    margin-left: auto;
}
.project-details-body {
    gap: 8px;
}
.project-action-section .list-empty {
    padding: 6px 0 0;
    margin: 0;
}
.compact-capture {
    display: grid;
    gap: 10px;
}
.quick-capture-inline {
    margin-bottom: 10px;
}
.quick-capture-inline .field-label {
    margin-bottom: 2px;
}
.compact-capture .capture-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.segmented {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    position: relative;
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    background: rgba(79, 118, 188, .18);
    border: 1px solid rgba(79, 118, 188, .14);
    width: 244px;
    max-width: 100%;
    overflow: hidden;
}
.segmented-toggle::before {
    content: "";
    position: absolute;
    top: 3px;
    bottom: 3px;
    left: 3px;
    width: calc((100% - 6px) / 2);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(30, 52, 86, .10);
    transition: transform .22s ease;
}
.segmented a,
.segmented span,
.segmented-option {
    min-width: 0;
    position: relative;
    z-index: 1;
    padding: 7px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: #3d5782;
    font-size: .82rem;
    font-weight: 700;
    transition: color .18s ease;
    background: transparent;
    border: 0;
    box-shadow: none;
    min-height: 36px;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}
.segmented a.active,
.segmented span.active,
.segmented-option.active {
    color: #214b87;
}
.segmented a:hover,
.segmented span:hover,
.segmented-option:hover {
    color: #214b87;
}
.segmented-toggle[data-active="project"]::before {
    transform: translateX(100%);
}
.inspector {
    position: sticky;
    top: 74px;
}
.inspector-head {
    display: grid;
    gap: 8px;
}
.inspector-title {
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.inspector-section {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.inspector-section:first-of-type {
    padding-top: 0;
    border-top: 0;
}
.list-choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.list-choice-body {
    min-width: 0;
    flex: 1 1 auto;
}
.list-choice-title {
    font-size: .99rem;
    font-weight: 640;
    line-height: 1.2;
    letter-spacing: -.015em;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.list-choice-title a {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.list-choice-meta {
    color: var(--muted);
    font-size: .74rem;
    margin-top: 2px;
    line-height: 1.25;
}
.list-choice-notes {
    color: #45505c;
    font-size: .8rem;
    line-height: 1.32;
    margin-top: 5px;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal;
}
.capture-inline {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
}
.capture-inline button {
    min-width: 132px;
}
.quick-capture-inline textarea::placeholder,
.quick-capture-inline input::placeholder,
textarea::placeholder,
input::placeholder {
    color: #92a0b1;
}
.quick-capture-inline textarea {
    min-height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
}
.quick-capture-inline .capture-file-name {
    margin-top: 2px;
}
.capture-meta-input {
    position: relative;
}
.capture-meta-input input,
.capture-meta-input textarea {
    padding-right: 54px;
}
.capture-image-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7b8f;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.capture-image-button:hover {
    background: #f5f8fc;
    color: var(--accent-strong);
    border-color: rgba(210, 221, 236, .9);
}
.capture-image-button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.capture-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.capture-file-name {
    min-height: 0;
    margin-top: 2px;
    color: #738297;
    font-size: .77rem;
    line-height: 1.4;
}
.capture-meta-input textarea + .capture-image-button {
    top: auto;
    bottom: 8px;
    transform: none;
}
input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--accent-strong);
    box-shadow: none;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.inbox-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.inbox-mini-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.inbox-mini-actions .button-secondary,
.inbox-mini-actions button {
    width: auto;
    min-height: 34px;
    padding: 7px 10px;
    font-size: .8rem;
}
.inspector-card {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: #fbfcfe;
    border: 1px solid var(--line);
}
.inspector-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}
.inspector-actions form {
    margin: 0;
}
.compact-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.compact-actions form {
    margin: 0;
}
.compact-actions button,
.compact-actions .button-secondary,
.compact-actions .quiet-button {
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 12px;
}
.icon-button {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px;
    min-height: 24px;
    padding: 0 !important;
    border-radius: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #6a7788;
}
.icon-button svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.icon-button:hover {
    color: #27364c;
    background: transparent !important;
    border: 0 !important;
}
.icon-button[aria-pressed="true"] {
    color: #355f9d;
}
.hide-completed-toggle .hide-completed-eye-slash {
    stroke: currentColor;
    display: none;
}
.hide-completed-toggle[aria-pressed="true"] .hide-completed-eye-slash {
    display: block;
}
.flow-panel {
    margin: 0 0 18px 0;
    padding: 14px 0 0 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.flow-separator {
    margin: 18px 0 20px 0;
    border-bottom: 1px solid rgba(228, 235, 243, .82);
}
.project-action-section .flow-separator.project-action-separator {
    margin: 7px 0;
}
.decision-block {
    display: flex;
    gap: 8px 14px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 4px;
}
.decision-label {
    color: #5d6978;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.process-form {
    display: grid;
    gap: 16px;
}
.progressive-flow {
    display: grid;
    gap: 8px;
}
.flow-step {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(228, 235, 243, .78);
}
.flow-step:first-child {
    padding-top: 0;
    border-top: 0;
}
.flow-step.flow-step-context {
    padding-bottom: 8px;
}
.flow-step.is-hidden {
    display: none;
}
.flow-step-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.flow-step-title {
    color: #5d6978;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.flow-skip {
    width: auto;
    min-width: 0;
    min-height: 30px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #6f7f92;
    font-size: .78rem;
    font-weight: 600;
}
.flow-skip:hover {
    background: transparent;
    border: 0;
    color: #43556f;
}
.process-form > .row,
.process-form .row {
    display: grid;
    gap: 14px 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}
.process-form .field.field-select {
    align-items: start;
}
.process-form .field.field-select select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}
.process-form .row.row-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.process-form .row.row-3 {
    grid-template-columns: minmax(14rem, 1fr) minmax(10rem, .78fr) auto;
}
.process-form .row.row-basics {
    grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(14rem, 1fr));
}
.process-form .row.row-basics-project {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(12rem, .7fr);
}
.process-form .row.row-context {
    grid-template-columns: repeat(3, minmax(12rem, 1fr));
}
.process-form .row.row-context-project {
    grid-template-columns: repeat(2, minmax(12rem, 1fr)) minmax(10rem, .8fr);
}
.process-form .row.row-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.process-form .row.row-time {
    grid-template-columns: repeat(4, max-content);
    justify-content: start;
    align-items: end;
}
.process-form .row.row-time .field-date {
    width: 186px;
}
.process-form .row.row-time .field-estimate {
    width: 168px;
}
.process-form details.disclosure {
    width: 100%;
}
.process-form details.disclosure .row {
    margin-top: 0;
}
.process-form details.disclosure > .stack {
    display: grid;
    gap: 8px;
    padding-top: 0;
}
.notes-field {
    margin-bottom: 4px;
}
.process-form input:not([type="checkbox"]):not([type="radio"]),
.process-form select {
    min-height: 48px;
}
.field-checkbox {
    align-content: start;
}
.stack-inline.stack-inline-check {
    gap: 10px;
    flex-wrap: nowrap;
    min-height: 48px;
    padding: 0 4px;
}
.checkbox-text {
    color: var(--text);
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -.01em;
    text-transform: none;
}
.detail-group {
    margin-top: 4px;
    margin-bottom: 2px;
    padding-top: 8px;
    border-top: 1px solid rgba(228, 235, 243, .72);
}
.detail-group-title {
    font-size: .73rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6a7788;
}
.detail-group + .row {
    margin-bottom: 0;
}
.decision-main {
    min-width: 250px;
}
.decision-shortcuts {
    min-width: 34px;
    flex: 0 0 auto !important;
}
.process-section-head {
    display: grid;
    gap: 2px;
    margin-bottom: 0;
}
.process-section-title {
    font-size: .96rem;
    font-weight: 680;
    letter-spacing: -.01em;
}
.process-section-text {
    color: var(--muted);
    font-size: .84rem;
    line-height: 1.45;
    max-width: 680px;
}
.inline-file-picker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 24px;
}
.notes-input-wrap {
    position: relative;
}
.notes-input-wrap textarea {
    padding-right: 48px;
}
.notes-image-picker {
    position: absolute;
    right: 10px;
    bottom: 10px;
    margin-top: 0;
}
.inline-file-trigger {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #6b7b8f;
    cursor: pointer;
    transition: background-color .16s ease, color .16s ease;
}
.inline-file-trigger:hover {
    background: #f5f8fc;
    color: var(--accent-strong);
}
.inline-file-trigger svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.inline-file-name {
    min-height: 0;
    color: #738297;
    font-size: .77rem;
    line-height: 1.4;
    margin-top: 2px;
}
.submit-row {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2px;
    align-items: center;
}
.submit-row.is-hidden {
    display: none;
}
.submit-row form {
    margin: 0;
}
.submit-row button {
    width: auto;
    min-width: 116px;
    min-height: 40px;
    padding: 0 18px;
}
.create-button {
    border-radius: 14px;
    background: #eef3fb;
    border: 1px solid #d6e2f1;
    color: #213041;
    box-shadow: 0 8px 18px rgba(31, 46, 67, .10);
    font-weight: 700;
    letter-spacing: -.01em;
    padding: 0 18px;
}
.create-button:hover {
    background: #e6edf8;
    border-color: #cbd9eb;
    color: var(--text-strong);
    box-shadow: 0 10px 22px rgba(31, 46, 67, .12);
    transform: translateY(-1px);
}
.create-button:focus {
    box-shadow: 0 0 0 3px rgba(79, 118, 188, .12), 0 8px 18px rgba(31, 46, 67, .10);
}
.create-button:active {
    transform: translateY(0);
    background: #dde6f4;
    box-shadow: 0 5px 12px rgba(31, 46, 67, .09);
}
.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(214, 224, 235, .96);
    background: rgba(255, 255, 255, .88);
    color: var(--text);
    text-decoration: none;
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
}
.filter-chip:hover {
    background: rgba(255, 255, 255, .96);
    color: var(--text-strong);
}
.filter-chip.is-active {
    background: rgba(232, 239, 249, .96);
    border-color: rgba(198, 212, 230, .98);
    color: var(--accent-strong);
}
.filter-chip-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(244, 247, 252, .98);
    color: inherit;
    font-size: .7rem;
    font-weight: 700;
}
.action-filter-bar {
    display: grid;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(214, 224, 235, .92);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 24px rgba(91, 102, 92, .05);
}
.action-filter-disclosure {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}
.action-filter-disclosure summary::before,
.action-filter-disclosure[open] summary::before {
    content: none !important;
    display: none !important;
}
.action-filter-disclosure[open] summary {
    margin-bottom: 0;
}
.action-filter-toggle {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(214, 224, 235, .96);
    background: rgba(255, 255, 255, .88);
    color: var(--text);
    box-shadow: 0 8px 18px rgba(91, 102, 92, .05);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.action-filter-toggle:hover,
.action-filter-disclosure[open] .action-filter-toggle {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(198, 212, 230, .98);
    color: var(--accent-strong);
    box-shadow: 0 10px 22px rgba(91, 102, 92, .08);
}
.action-filter-toggle svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.action-filter-toggle-label {
    font-size: .82rem;
    font-weight: 600;
    line-height: 1;
}
.action-filter-toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(244, 247, 252, .98);
    color: inherit;
    font-size: .7rem;
    font-weight: 700;
}
.action-filter-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.action-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}
.has-js .action-filter-apply {
    display: none;
}
.action-filter-actions .button-secondary {
    text-decoration: none;
}
.mode-panels {
    display: grid;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(228, 235, 243, .78);
}
.mode-panel {
    transition: opacity .18s ease, transform .18s ease;
}
.mode-panel.is-hidden {
    display: none;
}
.process-form .row > .field:last-child:nth-child(2) {
    grid-column: span 1;
}
.section-title {
    font-size: .74rem;
    font-weight: 700;
    color: #4d5662;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.subtle-divider {
    height: 1px;
    background: var(--line);
}
.quiet-button,
button.quiet-button {
    background: #fff;
    color: #365d9b;
    border-color: #cfdae8;
    box-shadow: none;
}
.quiet-button:hover,
button.quiet-button:hover {
    background: #f8fbff;
    border-color: #c2d1e4;
    color: #254e8b;
}
input, select, textarea, button {
    border-radius: 18px;
    border-color: rgba(145, 157, 147, .22);
    background: rgba(255, 255, 255, .82);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.48);
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    border-color: rgba(138, 160, 137, .68);
}
textarea,
.quick-capture-inline textarea {
    background: rgba(255, 255, 255, .74);
}
button, .button {
    background: linear-gradient(180deg, #9cb0a0 0%, var(--accent) 100%);
    color: #fffaf5;
    border-color: rgba(104, 127, 106, .82);
    box-shadow: 0 14px 30px rgba(138, 160, 137, .20);
}
button:hover,
.button:hover {
    background: linear-gradient(180deg, #90a48f 0%, var(--accent-strong) 100%);
    border-color: rgba(104, 127, 106, .92);
}
.button-secondary, button.button-secondary,
.button-plain,
.quiet-button,
button.quiet-button {
    background: rgba(255,255,255,.78);
    color: var(--text);
    border-color: rgba(145, 157, 147, .22);
    box-shadow: none;
}
.button-secondary:hover, button.button-secondary:hover,
.button-plain:hover,
.quiet-button:hover,
button.quiet-button:hover {
    background: rgba(255,255,255,.92);
    color: var(--text-strong);
    border-color: rgba(145, 157, 147, .28);
}
.button-danger {
    background: #fff5f2;
    color: var(--danger);
    border-color: rgba(176, 106, 95, .26);
}
.page-intro {
    margin-bottom: 18px;
    padding: 26px 28px 24px;
    border-radius: calc(var(--radius-md) + 4px);
    background:
        radial-gradient(circle at top right, rgba(202, 214, 203, .26), transparent 28%),
        linear-gradient(135deg, rgba(255,255,255,.90), rgba(243, 246, 242, .80));
    border: 1px solid rgba(157, 168, 159, .16);
    box-shadow: var(--shadow-sm);
}
.page-subtitle {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 40rem;
}
.pane-head,
.pane-body.compact,
.pane-body,
.card {
    backdrop-filter: blur(12px);
}
.collection-row {
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid rgba(157, 168, 159, .12);
}
.collection-row::before,
.project-list-row::before {
    background: rgba(138, 160, 137, .18);
}
.collection-row.is-selected::before,
.project-list-row.is-selected::before {
    background: var(--accent);
}
.row-title,
.list-choice-title,
.detail-section-title,
.process-section-title {
    color: var(--text-strong);
}
.row-meta,
.list-choice-meta,
.project-list-meta,
.project-list-status-inline,
.project-meta-label,
.detail-count,
.toolbar-title,
.selection-note,
.process-section-text,
.capture-file-name,
.inline-file-name,
.field-hint {
    color: var(--muted);
}
.row-notes,
.list-choice-notes,
.project-list-note,
.project-details-text,
.project-summary-notes,
.project-meta-value {
    color: #4d574f;
}
.pill,
.project-count-pill,
.project-status-pill,
.project-state-pill,
.project-task-plan-pill {
    background: rgba(255,255,255,.68);
    border-color: rgba(145, 157, 147, .20);
    color: #5f6961;
}
.project-page-stat,
.project-count-badge,
.inspector-card,
.inline-create-panel,
.project-editor-panel,
.project-empty-panel {
    background: rgba(255,255,255,.66);
    border-color: rgba(157, 168, 159, .18);
}
.project-page-stat-value {
    color: var(--text-strong);
}
.selection-note,
.inbox-collapsed-note {
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(157, 168, 159, .16);
    color: #616a62;
}
.segmented {
    background: rgba(231, 237, 232, .72);
    border-color: rgba(157, 168, 159, .18);
}
.segmented-toggle::before {
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 18px rgba(91, 102, 92, .08);
}
.segmented a,
.segmented span,
.segmented-option {
    color: #5f6961;
}
.segmented a.active,
.segmented span.active,
.segmented-option.active,
.segmented a:hover,
.segmented span:hover,
.segmented-option:hover,
details.disclosure summary,
details.disclosure summary:hover,
.project-summary-toggle,
.project-summary-toggle:hover,
.project-summary-toggle[aria-expanded="true"],
.project-attachment-link,
.project-list-link:hover .row-title,
.item-row-link:hover .row-title,
.today-inline-action:hover,
.icon-button[aria-pressed="true"] {
    color: var(--accent-strong);
}
.check-button {
    background: rgba(255,255,255,.78);
    border-color: rgba(145, 157, 147, .26);
    color: var(--accent-strong);
}
.check-button:hover,
.inbox-check-button:hover {
    background: var(--accent-soft);
    border-color: rgba(138, 160, 137, .34);
}
.inbox-check-button {
    border-color: #7d877f;
    color: transparent !important;
}
.inbox-check-button span {
    opacity: 0;
    transition: opacity .16s ease;
}
.inbox-check-button:hover,
.inbox-check-button:focus-visible {
    color: var(--accent-strong) !important;
}
.inbox-check-button:hover span,
.inbox-check-button:focus-visible span {
    opacity: 1;
}
.today-inline-action,
.icon-button {
    color: #788179;
}
.today-flag-toggle.is-active,
.today-flag-toggle.is-active:hover,
.today-delete-toggle:hover {
    color: var(--danger);
}
.flow-panel,
.mode-panels,
.flow-step,
.form-section,
.detail-section + .detail-section,
.project-utility-disclosure,
.project-add-action-form {
    border-color: rgba(157, 168, 159, .14);
}
.mobile-fab {
    background: linear-gradient(180deg, #9cb0a0 0%, var(--accent) 100%);
    border-color: rgba(104, 127, 106, .82);
    box-shadow: 0 14px 32px rgba(138, 160, 137, .22);
}
@media (max-width: 720px) {
    .app-frame {
        background: transparent;
    }
    .toolbar {
        background: rgba(244, 246, 242, .82);
    }
    .mobile-tabs {
        background: rgba(244, 246, 242, .92);
        border-top-color: rgba(157, 168, 159, .16);
        backdrop-filter: blur(18px);
    }
    .mobile-tabs a {
        border-radius: 999px;
        color: var(--muted);
    }
    .mobile-tabs a.active {
        background: rgba(255,255,255,.78);
        color: var(--text-strong);
        box-shadow: inset 0 0 0 1px rgba(145, 157, 147, .18);
    }
    .mobile-count {
        background: rgba(255,255,255,.88);
        border-color: rgba(145, 157, 147, .18);
        color: var(--muted);
    }
    .page-intro {
        padding: 20px 18px 18px;
    }
    .page-intro h1 {
        font-size: 2.35rem;
    }
}
@media (max-width: 900px) {
    .project-page-stats {
        width: 100%;
        min-width: 0;
    }
}
@media (max-width: 720px) {
    .shell {
        padding: 0;
    }
    .app-frame {
        grid-template-columns: 1fr;
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: var(--pane-muted);
    }
    .split-layout,
    .inbox-layout,
    .projects-layout {
        grid-template-columns: 1fr;
    }
    .inspector {
        position: static;
    }
    .sidebar {
        display: none;
    }
    .mobile-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        position: sticky;
        bottom: 0;
        z-index: 30;
        background: rgba(241, 244, 248, .96);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--line);
    }
    .mobile-fab {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 14px;
        bottom: calc(74px + env(safe-area-inset-bottom, 0px));
        z-index: 35;
        min-width: 56px;
        height: 56px;
        padding: 0 18px;
        border-radius: 999px;
        background: linear-gradient(180deg, #5f93e1 0%, var(--accent) 100%);
        color: #fff;
        border: 1px solid #4677c4;
        box-shadow: 0 10px 24px rgba(77, 132, 215, .32);
        text-decoration: none;
        font-weight: 700;
        letter-spacing: -.01em;
    }
    .mobile-tabs a {
        min-width: 0;
        text-decoration: none;
        display: grid;
        justify-items: center;
        gap: 4px;
        padding: 10px 6px;
        border-radius: 10px;
        color: var(--muted);
        font-size: .72rem;
        line-height: 1.15;
    }
    .mobile-tabs a.active {
        background: var(--accent-soft);
        color: var(--text-strong);
        font-weight: 600;
    }
    .mobile-count {
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        border: 1px solid var(--line);
        font-size: .68rem;
    }
    .toolbar {
        padding: 10px 14px;
        position: sticky;
        top: 0;
        z-index: 20;
    }
    .toolbar-title {
        font-size: .94rem;
    }
    .split { flex-direction: column; }
    .content {
        padding: 14px 14px 88px;
    }
    .page-shell {
        max-width: none;
    }
    .page-intro { align-items: start; flex-direction: column; }
    .page-intro h1 {
        font-size: 1.35rem;
        margin-bottom: 6px;
    }
    .project-page-intro {
        gap: 12px;
    }
    .project-page-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .project-task-schedule-row {
        grid-template-columns: 1fr;
    }
    .pane-head,
    .pane-body,
    .card {
        padding-left: 14px;
        padding-right: 14px;
    }
    .row {
        flex-direction: column;
        align-items: stretch;
    }
    .process-form > .row,
    .process-form .row {
        grid-template-columns: 1fr;
    }
    .compact-capture .capture-row {
        grid-template-columns: 1fr;
    }
    .capture-inline {
        grid-template-columns: 1fr;
    }
    .row > * {
        width: 100%;
    }
    input, select, textarea, button {
        min-height: 44px;
    }
    textarea {
        min-height: 96px;
    }
    .collection-row {
        gap: 10px;
        padding: 12px 0;
    }
    .row-title {
        font-size: .96rem;
    }
    .row-meta {
        font-size: .79rem;
        line-height: 1.35;
    }
    .row-notes {
        font-size: .88rem;
    }
    .action-group {
        width: 100%;
        justify-content: flex-start;
    }
    .action-group form {
        flex: 0 0 auto;
    }
    .button,
    button,
    .button-secondary {
        width: 100%;
    }
    .compact-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .compact-actions button,
    .compact-actions .button-secondary,
    .compact-actions .quiet-button {
        width: 100%;
    }
    .project-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .project-focus-summary,
    .project-list-headline,
    .project-task-mainline,
    .project-list-subline {
        flex-direction: row;
        align-items: flex-start;
    }
    .project-focus-summary,
    .project-list-headline,
    .project-task-mainline,
    .project-list-subline {
        flex-wrap: wrap;
    }
    .project-focus-actions {
        gap: 10px;
    }
    .project-task-actions {
        width: 100%;
        padding-left: 0;
    }
    .project-edit-actions form,
    .project-edit-actions button {
        width: 100%;
    }
    .project-list-pane .pane-body.compact {
        padding-top: 8px;
    }
    .project-page-stat {
        padding: 8px 10px;
    }
    .project-page-stat-value {
        font-size: 1.1rem;
    }
    .project-task-main {
        padding: 0;
    }
    .flow-panel {
        margin-left: 0;
        padding-left: 16px;
    }
    .decision-block {
        display: grid;
    }
    .submit-row {
        display: grid;
    }
    .submit-row button {
        width: 100%;
        min-width: 0;
    }
    .inspector-actions {
        grid-template-columns: 1fr;
    }
    .check-button {
        width: 36px;
        min-width: 36px;
        height: 36px;
    }
    .pill {
        font-size: .7rem;
    }
}
.create-button {
    border-radius: 16px;
    background: rgba(255,255,255,.82);
    border-color: rgba(145, 157, 147, .22);
    color: var(--text-strong);
    box-shadow: 0 10px 24px rgba(91, 102, 92, .08);
}
.create-button:hover {
    background: rgba(255,255,255,.94);
    border-color: rgba(145, 157, 147, .28);
    color: var(--text-strong);
    box-shadow: 0 14px 28px rgba(91, 102, 92, .10);
}
.create-button:focus {
    box-shadow: var(--focus-ring), 0 10px 24px rgba(91, 102, 92, .08);
}
.create-button:active {
    background: rgba(242, 245, 241, .96);
    box-shadow: 0 8px 18px rgba(91, 102, 92, .08);
}
.inline-file-trigger {
    color: #788179;
}
.inline-file-trigger:hover {
    background: rgba(255,255,255,.72);
    color: var(--accent-strong);
}
.section-title {
    color: #687268;
}
@media (max-width: 720px) {
    .app-frame {
        background: transparent;
    }
    .mobile-tabs {
        background: rgba(244, 246, 242, .92);
        border-top: 1px solid rgba(157, 168, 159, .16);
        backdrop-filter: blur(18px);
    }
    .mobile-fab {
        background: linear-gradient(180deg, #9cb0a0 0%, var(--accent) 100%);
        border-color: rgba(104, 127, 106, .82);
        box-shadow: 0 14px 32px rgba(138, 160, 137, .22);
    }
    .mobile-tabs a {
        border-radius: 999px;
    }
    .mobile-tabs a.active {
        background: rgba(255,255,255,.82);
        color: var(--text-strong);
        box-shadow: inset 0 0 0 1px rgba(145, 157, 147, .18);
    }
    .mobile-count {
        background: rgba(255,255,255,.88);
        border-color: rgba(145, 157, 147, .18);
        color: var(--muted);
    }
    .toolbar {
        background: rgba(244, 246, 242, .82);
    }
    .toolbar-title {
        font-size: .74rem;
        letter-spacing: .16em;
    }
    .page-intro h1 {
        font-size: 2.35rem;
    }
}

/* Refinement pass: flatter, whiter, more consistent */
:root {
    --app-bg: #ecefe9;
    --sidebar-bg: #f3f5f0;
    --sidebar-line: #dde4db;
    --pane-bg: #ffffff;
    --pane-muted: #fafbf8;
    --line: #e3e8e1;
    --line-strong: #cfd7cf;
    --text: #4b554d;
    --text-strong: #3c453e;
    --muted: #6d7680;
    --accent: #85978a;
    --accent-soft: #f3f5f4;
    --accent-strong: #6a7d70;
    --success: #6f8478;
    --danger: #aa727a;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --surface-stroke: #d8dee7;
    --surface-frame: 0 0 0 1px var(--surface-stroke);
    --surface-shadow: 0 1px 2px rgba(16, 24, 40, .03);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .03), 0 10px 30px rgba(16, 24, 40, .04);
    --shadow-md: 0 12px 40px rgba(16, 24, 40, .05);
    --focus-ring: 0 0 0 4px rgba(133, 151, 138, .16);
}
body,
input,
select,
textarea,
button {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-kerning: normal;
}
body::before {
    display: none;
}
.app-frame {
    background: #fbfcf9;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    backdrop-filter: none;
}
.sidebar {
    background: var(--sidebar-bg);
    padding: 28px 18px 24px;
    border-right: 1px solid var(--line);
}
.toolbar {
    background: #fcfcfa;
    padding: 16px 28px 12px;
    border-bottom: 1px solid var(--line);
    backdrop-filter: none;
}
.main {
    background: var(--pane-muted);
}
.toolbar-title,
.sidebar-caption,
.eyebrow,
.field-label,
.detail-group-title,
.section-title {
    color: #7d848d;
    letter-spacing: .14em;
    font-weight: 650;
}
.brand-mark,
h1,
h2,
h3 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
}
.brand-mark {
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 600;
    letter-spacing: -.038em;
    word-spacing: .04em;
}
.brand-caption {
    margin-top: 8px;
    max-width: 14rem;
    font-size: .94rem;
    line-height: 1.48;
}
.sidebar-note {
    display: none;
}
.nav {
    gap: 4px;
}
.nav a {
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 520;
}
.nav a.active {
    background: #f4f5f7;
    box-shadow: none;
}
.nav a:hover {
    background: #f7f8fa;
    transform: none;
}
.nav-count {
    background: #fff;
    border: 1px solid var(--line);
}
.content {
    padding: 30px 30px 100px;
}
.page-intro {
    margin-bottom: 24px;
    padding: 6px 2px 18px;
    border: 0;
    border-bottom: 1px solid rgba(157, 168, 159, .18);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    background-clip: padding-box;
    align-items: flex-start;
    gap: 18px 28px;
}
.page-intro > div:first-child {
    flex: 1 1 360px;
    min-width: 0;
}
.page-intro h1 {
    margin-bottom: 10px;
    font-size: clamp(1.95rem, 3vw, 2.75rem);
    line-height: 1.02;
    font-weight: 600;
    letter-spacing: -.05em;
}
.page-subtitle {
    display: block;
    max-width: 46rem;
    margin: 0;
    color: #6c776d;
    font-size: .98rem;
    line-height: 1.48;
}
h2 {
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: -.018em;
}
.row-title,
.list-choice-title,
.detail-section-title,
.process-section-title {
    font-weight: 560;
    letter-spacing: -.018em;
}
.card,
.pane,
.project-page-stat,
.project-count-badge,
.inspector-card,
.inline-create-panel,
.project-editor-panel,
.project-empty-panel,
.selection-note,
.inbox-collapsed-note {
    background: #fff;
    border: 1px solid var(--surface-stroke);
    border-radius: var(--radius-md);
    box-shadow: var(--surface-shadow);
    background-clip: padding-box;
    backdrop-filter: none;
}
.flash {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: min(100%, 36rem);
    margin-bottom: 18px;
    padding: 10px 16px 10px 14px;
    border: 1px solid rgba(138, 160, 137, .24);
    border-radius: 999px;
    background: color-mix(in srgb, #edf3ed 76%, #fff 24%);
    color: #607660;
    box-shadow: none;
    font-size: .83rem;
    font-weight: 600;
    line-height: 1.38;
    letter-spacing: .01em;
}
.flash::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: currentColor;
    opacity: .58;
    flex: 0 0 auto;
}
.flash.error {
    border-color: rgba(176, 122, 130, .24);
    background: color-mix(in srgb, #fff5f2 78%, #fff 22%);
    color: #aa7179;
}
.pane {
    border: 1px solid var(--surface-stroke);
    box-shadow: var(--surface-shadow);
    overflow: hidden;
}
.card,
.project-page-stat,
.project-count-badge,
.inspector-card,
.inline-create-panel,
.project-editor-panel,
.project-empty-panel,
.selection-note,
.inbox-collapsed-note {
    border: 1px solid var(--surface-stroke);
    box-shadow: var(--surface-shadow);
}
.pane-head {
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--line);
}
.pane-body {
    padding: 12px 20px 20px;
    backdrop-filter: none;
}
.pane-body.compact {
    padding-top: 0;
    backdrop-filter: none;
}
.pane-head {
    backdrop-filter: none;
}
input,
select,
textarea,
button {
    border-radius: var(--radius-sm);
    border-color: var(--line-strong);
    background: #fff;
    box-shadow: none;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
    border-color: var(--accent);
}
button,
.button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    box-shadow: none;
    font-weight: 600;
}
button:hover,
.button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
}
.button-secondary,
button.button-secondary,
.button-plain,
.quiet-button,
button.quiet-button,
.create-button {
    background: #fff;
    color: var(--text);
    border-color: var(--line-strong);
    box-shadow: none;
}
.button-secondary:hover,
button.button-secondary:hover,
.button-plain:hover,
.quiet-button:hover,
button.quiet-button:hover,
.create-button:hover {
    background: #f7f8fa;
    color: var(--text-strong);
    border-color: var(--line-strong);
    box-shadow: none;
}
.button-danger {
    background: #fff;
    color: var(--danger);
    border-color: #e7d5d9;
}
.collection-row {
    padding: 14px 0 14px 18px;
    border-bottom: 1px solid var(--line);
}
.collection-row::before,
.project-list-row::before {
    background: #e1e6e3;
}
.collection-row.is-selected::before,
.project-list-row.is-selected::before {
    background: var(--accent);
}
.project-list-row.is-selected .row-title {
    color: var(--text-strong);
}
.row-notes,
.list-choice-notes,
.project-list-note,
.project-details-text,
.project-summary-notes,
.project-meta-value {
    color: #465059;
}
.pill,
.project-count-pill,
.project-status-pill,
.project-state-pill,
.project-task-plan-pill {
    background: #f6f7f8;
    border-color: var(--line);
    color: var(--muted);
}
.project-page-stat,
.project-count-badge {
    background: #fafafb;
}
.project-page-stats {
    display: flex;
    gap: 18px;
    align-items: baseline;
}
.project-page-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    min-width: 0;
}
.project-page-stat .eyebrow {
    margin: 0;
}
.project-page-stat-value {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1;
}
.project-count-badge {
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 1.1rem;
    font-weight: 600;
}
.project-count-pill,
.project-status-pill,
.project-state-pill,
.project-task-plan-pill {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 520;
}
.project-list-headline .project-count-pill {
    margin-left: 12px;
    white-space: nowrap;
}
.project-focus-summary {
    gap: 10px;
    align-items: center;
}
.project-focus-summary .pill + .pill {
    position: relative;
    padding-left: 12px;
}
.project-focus-summary .pill + .pill::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--line-strong);
}
.segmented {
    background: #f3f5f6;
    border-color: var(--line);
}
.segmented-toggle::before {
    background: #fff;
    box-shadow: none;
}
.segmented a,
.segmented span,
.segmented-option,
details.disclosure summary,
details.disclosure summary:hover,
.project-summary-toggle,
.project-summary-toggle:hover,
.project-summary-toggle[aria-expanded="true"],
.project-attachment-link,
.project-list-link:hover .row-title,
.item-row-link:hover .row-title {
    color: var(--accent-strong);
}
.segmented .segmented-option:hover {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
.check-button {
    background: #fff;
    border: 2px solid #c5cbd3;
    box-shadow: none;
}
.check-button:hover {
    border-color: var(--accent);
    background: #fff;
}
.inbox-check-button {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
    border: 2px solid #c5cbd3;
    color: transparent !important;
    background: #fff;
}
.inbox-check-button span {
    opacity: 0;
    transition: opacity .16s ease;
}
.inbox-check-button:hover,
.inbox-check-button:focus-visible {
    color: var(--accent-strong) !important;
    border-color: var(--accent);
    background: #fff;
}
.inbox-check-button:hover span,
.inbox-check-button:focus-visible span {
    opacity: 1;
}
.today-inline-action,
.icon-button,
.inline-file-trigger {
    color: #8a929b;
}
.today-inline-action:hover,
.icon-button:hover,
.inline-file-trigger:hover {
    color: var(--accent-strong);
    background: transparent;
}
.mobile-tabs {
    background: #fff;
    border-top: 1px solid var(--line);
    backdrop-filter: none;
}
.mobile-tabs a {
    border-radius: var(--radius-sm);
}
.mobile-tabs a.active {
    background: #f4f5f7;
    color: var(--text-strong);
    box-shadow: none;
}
.mobile-count {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
}
.mobile-fab {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 8px 22px rgba(16, 24, 40, .10);
}
@media (max-width: 720px) {
    .toolbar {
        padding: 12px 16px;
        background: #fff;
    }
    .content {
        padding: 16px 16px 92px;
    }
    .page-intro h1 {
        font-size: clamp(1.45rem, 5vw, 1.65rem);
    }
    .brand-mark {
        font-size: 1.55rem;
    }
}
.toolbar-meta {
    color: var(--muted);
    font-size: .84rem;
}
.toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.toolbar-actions form {
    margin: 0;
}
.toolbar-actions button {
    width: auto;
    min-height: 36px;
    padding: 0 14px;
}
.auth-screen {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
}
.auth-frame {
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(280px, .9fr) minmax(340px, 1fr);
    gap: 18px;
    align-items: stretch;
}
.auth-aside,
.auth-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .94), rgba(247, 249, 246, .90)),
        var(--pane-bg);
    border: 1px solid rgba(157, 168, 159, .18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.auth-aside {
    padding: 30px;
    display: grid;
    align-content: space-between;
    gap: 18px;
}
.auth-card {
    padding: 28px;
}
.auth-brand {
    text-decoration: none;
}
.auth-brand .brand-mark {
    font-size: clamp(2rem, 4vw, 3rem);
}
.auth-copy h1 {
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    margin-bottom: 10px;
}
.auth-copy p {
    color: var(--muted);
    line-height: 1.6;
    max-width: 28rem;
}
.auth-card .stack {
    gap: 14px;
}
.auth-links {
    margin-top: 18px;
    display: flex;
    gap: 10px 14px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--muted);
    font-size: .9rem;
}
.auth-links a {
    color: var(--accent-strong);
    text-decoration: none;
}
.auth-links a:hover {
    text-decoration: underline;
}
.auth-support {
    padding: 16px 18px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(157, 168, 159, .14);
}
.auth-support p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.5;
}
.checkbox-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}
.checkbox-field legend {
    padding: 0;
}
.checkbox-field .field-label {
    margin-bottom: 6px;
}
.choice-checklist {
    display: grid;
    gap: 8px;
    max-height: 228px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    overflow: auto;
}
.choice-checklist-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease;
}
.choice-checklist-option:hover {
    background: #f7f8fa;
    border-color: var(--line);
}
.choice-checklist-option:focus-within {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: var(--focus-ring);
}
.choice-checklist-option span {
    min-width: 0;
    font-size: .92rem;
    line-height: 1.35;
}
.choice-checklist-option input:checked + span {
    color: var(--text-strong);
    font-weight: 600;
}
@media (max-width: 900px) {
    .auth-frame {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 720px) {
    .toolbar.toolbar-empty {
        display: none;
    }
    .content {
        padding: 16px 16px calc(112px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-fab {
        display: none !important;
    }
    .mobile-tabs {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 8px;
        padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        background: rgba(255, 255, 255, .96);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(18px);
        overflow: visible;
    }
    .mobile-tabs a,
    .mobile-nav-more > summary {
        min-width: 0;
        min-height: 60px;
        padding: 10px 6px 8px;
        display: grid;
        justify-items: center;
        align-content: center;
        gap: 4px;
        border: 0;
        border-radius: 14px;
        background: transparent;
        color: var(--muted);
        font-size: .72rem;
        font-weight: 600;
        line-height: 1.15;
        text-decoration: none;
        list-style: none;
        cursor: pointer;
    }
    .mobile-nav-more > summary::-webkit-details-marker {
        display: none;
    }
    .mobile-nav-more > summary::marker {
        content: "";
    }
    .mobile-tabs a.active,
    .mobile-nav-more.is-active > summary,
    .mobile-nav-more[open] > summary {
        background: #f4f5f7;
        color: var(--text-strong);
        box-shadow: none;
    }
    .mobile-nav-more {
        position: relative;
    }
    .mobile-more-panel {
        position: absolute;
        right: 0;
        bottom: calc(100% + 10px);
        width: min(340px, calc(100vw - 20px));
        max-height: min(60vh, 320px);
        padding: 10px;
        display: grid;
        gap: 8px;
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 18px 40px rgba(16, 24, 40, .12);
    }
    .mobile-nav-more:not([open]) .mobile-more-panel {
        display: none;
    }
    .mobile-more-panel a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 12px;
        color: var(--text);
        text-decoration: none;
    }
    .mobile-more-panel a.active {
        background: #f4f5f7;
        color: var(--text-strong);
    }
    .mobile-more-panel .mobile-count {
        min-width: 22px;
        height: 22px;
        font-size: .72rem;
    }
    .today-task-row {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .today-task-shell {
        gap: 8px;
    }
    .today-task-head {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        grid-template-rows: 32px auto;
        align-items: start;
        gap: 8px;
    }
    .today-task-head-copy {
        grid-column: 2;
        grid-row: 1 / span 2;
        padding-top: 2px;
    }
    .today-task-title-row {
        display: block;
    }
    .today-task-controls {
        grid-column: 1;
        grid-row: 2;
        gap: 2px;
        padding-top: 0;
        margin-left: 0;
        justify-self: center;
        align-self: start;
    }
    .today-inline-action,
    .icon-button,
    .inline-file-trigger,
    .capture-image-button {
        width: 44px !important;
        min-width: 44px !important;
        height: 44px;
        min-height: 44px;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
    }
    .check-button,
    .inbox-check-button {
        width: 44px;
        min-width: 44px;
        height: 44px;
        min-height: 44px;
        padding: 0;
        font-size: 1rem;
    }
    .today-task-head .today-inline-action {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px;
        min-height: 24px;
        border-radius: 8px;
    }
    .today-task-head .today-inline-action svg {
        width: 12px;
        height: 12px;
    }
    .today-task-head .task-action-menu-panel {
        top: -4px;
        left: calc(100% + 8px);
        right: auto;
        min-width: 140px;
    }
    .today-task-head .task-action-menu-item,
    .today-task-head button.task-action-menu-item {
        min-height: 34px;
        padding: 7px 10px;
        font-size: .8rem;
    }
    .today-task-head .check-button,
    .today-task-head .inbox-check-button,
    .today-task-head .today-task-head-spacer {
        grid-column: 1;
        grid-row: 1;
        width: 32px;
        min-width: 32px;
        height: 32px;
        min-height: 32px;
        flex-basis: 32px;
        margin-top: 0;
    }
    .today-task-head .row-title {
        font-size: .92rem;
        line-height: 1.2;
    }
    .today-task-head .row-meta {
        font-size: .75rem;
        line-height: 1.28;
        margin-top: 3px;
    }
    .flow-skip,
    details.disclosure summary,
    .project-summary-toggle {
        min-height: 44px;
    }
    .flow-skip {
        width: auto;
        padding: 0 12px;
    }
    .decision-main,
    .segmented {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .process-form .field.field-select select,
    .process-form .row.row-time .field-date,
    .process-form .row.row-time .field-estimate {
        width: 100%;
    }
    .submit-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: stretch;
    }
    .submit-row .icon-button {
        align-self: stretch;
    }
    .choice-checklist {
        max-height: none;
    }
}
.toolbar {
    display: none !important;
}
.page-subtitle {
    display: block !important;
}
.pane {
    overflow: visible;
}
.page-summary-intro {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px 28px;
    flex-wrap: wrap;
}
.page-intro-stat-group {
    display: flex;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-end;
    flex-wrap: wrap;
    min-width: 0;
    flex: 0 0 auto;
}
.page-intro-stat {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 6px;
    min-width: 142px;
    padding: 14px 16px 12px;
    border: 1px solid rgba(157, 168, 159, .18);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 28px rgba(91, 102, 92, .06);
}
.page-intro-stat .eyebrow {
    margin: 0;
    color: #7a847b;
    font-size: .68rem;
    letter-spacing: .18em;
}
.page-intro-stat-value {
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-strong);
    letter-spacing: -.06em;
}
.project-page-intro {
    align-items: flex-start;
    gap: 18px 28px;
    margin-bottom: 24px;
}
.project-page-stats {
    gap: 12px;
    min-width: min(100%, 292px);
}
.project-page-stat {
    display: grid;
    justify-items: end;
    align-content: start;
    gap: 6px;
    min-width: 140px;
    padding: 14px 16px 12px;
    border: 1px solid rgba(157, 168, 159, .18);
    border-radius: 22px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 28px rgba(91, 102, 92, .06);
}
.project-page-stat .eyebrow {
    color: #7a847b;
    font-size: .68rem;
    letter-spacing: .18em;
}
.project-page-stat-value {
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -.06em;
    line-height: 1;
    color: var(--text-strong);
}
body.route-inbox .quick-capture-inline {
    margin-bottom: 18px;
    padding: 18px 20px 16px;
    border: 1px solid rgba(157, 168, 159, .2);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(240, 244, 239, .86), rgba(255, 255, 255, .94));
    box-shadow: 0 20px 44px rgba(91, 102, 92, .07);
}
body.route-inbox .quick-capture-inline .field {
    gap: 10px;
}
body.route-inbox .quick-capture-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    flex-wrap: wrap;
}
body.route-inbox .quick-capture-inline .field-label {
    margin-bottom: 0;
    color: #687368;
    letter-spacing: .16em;
}
body.route-inbox .quick-capture-note {
    margin: 0;
    color: #778279;
    font-size: .81rem;
    line-height: 1.35;
}
body.route-inbox .capture-meta-input {
    padding: 8px 10px 8px 16px;
    border: 1px solid rgba(145, 157, 147, .22);
    border-radius: 22px;
    background: rgba(255, 255, 255, .96);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
body.route-inbox .capture-meta-input:focus-within {
    border-color: rgba(138, 160, 137, .48);
    box-shadow: 0 0 0 4px rgba(138, 160, 137, .12);
    background: #fff;
}
body.route-inbox .capture-meta-input textarea {
    min-height: 96px;
    padding: 6px 48px 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.route-inbox .capture-meta-input textarea:focus {
    border-color: transparent;
    box-shadow: none;
}
body.route-inbox .capture-image-button {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(244, 246, 242, .96);
    color: #718071;
}
body.route-inbox .capture-image-button:hover {
    background: rgba(237, 243, 237, .96);
    border-color: rgba(138, 160, 137, .18);
    color: #5f775f;
}
body.route-inbox .capture-file-name {
    min-height: 1.1rem;
    color: #6f7a71;
}
.inbox-attachment-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    justify-content: flex-start;
}
.inbox-attachment-preview {
    width: 84px;
    min-width: 84px;
    height: 84px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(157, 168, 159, .16);
    background: rgba(255, 255, 255, .74);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(91, 102, 92, .08);
}
.inbox-attachment-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: rgba(244, 246, 242, .92);
}
.inbox-attachment-preview span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.image-lightbox[hidden] {
    display: none !important;
}
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(39, 47, 40, .68);
    backdrop-filter: blur(8px);
}
.image-lightbox-panel {
    width: min(92vw, 780px);
    max-height: min(88vh, 880px);
    padding: 16px;
    border-radius: 24px;
    background: rgba(255, 255, 252, .96);
    border: 1px solid rgba(157, 168, 159, .18);
    box-shadow: 0 24px 80px rgba(39, 47, 40, .24);
    display: grid;
    gap: 12px;
}
.image-lightbox-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.image-lightbox-filename {
    min-width: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.4;
    word-break: break-word;
}
.image-lightbox-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}
.image-lightbox-link {
    color: var(--accent-strong);
    text-decoration: none;
    font-size: .84rem;
    font-weight: 600;
}
.image-lightbox-link:hover {
    text-decoration: underline;
}
.image-lightbox-close {
    width: auto;
    min-width: 0;
    min-height: 36px;
    padding: 0 14px;
}
.image-lightbox-frame {
    min-height: 0;
    display: grid;
    place-items: center;
    overflow: auto;
}
.image-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: min(72vh, 760px);
    border-radius: 18px;
    object-fit: contain;
    background: rgba(244, 246, 242, .92);
}
.inbox-check-button {
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    flex-basis: 20px;
}
.check-button {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
}
.today-task-head .check-button,
.today-task-head .inbox-check-button,
.today-task-head .today-task-head-spacer {
    width: 26px;
    min-width: 26px;
    height: 26px;
    min-height: 26px;
    flex-basis: 26px;
}
.project-task-controls {
    align-self: flex-start;
}
.mobile-more-panel form {
    margin: 0;
}
.mobile-more-action {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    justify-content: space-between;
    border-radius: 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--text);
}
.mobile-more-action:hover {
    background: #f4f5f7;
    color: var(--text-strong);
}
.auth-frame-minimal {
    width: min(360px, calc(100% - 36px));
    grid-template-columns: minmax(0, 1fr);
}
.auth-card-login {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
.auth-card .stack.auth-login-stack {
    display: grid;
    gap: 34px;
}
.auth-login-title {
    margin: 0;
    text-align: center;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.3rem, 8vw, 3.1rem);
    line-height: .96;
    color: var(--text-strong);
}
.auth-login-fields {
    display: grid;
    gap: 12px;
}
.auth-login-stack > form {
    margin-top: 4px;
}
.auth-links-login {
    justify-content: center;
    gap: 8px 16px;
    margin-top: 4px;
}
@media (max-width: 900px) {
    .flow-panel {
        padding-left: 0;
    }
    .project-create-row,
    .project-create-row.project-create-row-2,
    .project-create-row.project-create-row-3,
    .project-create-row.project-create-row-4 {
        grid-template-columns: minmax(0, 1fr);
    }
    .mode-panels,
    .mode-panel,
    .flow-step,
    .process-form,
    .process-form .field,
    .process-form .row > * {
        min-width: 0;
    }
    .process-form > .row,
    .process-form .row,
    .process-form .row.row-2,
    .process-form .row.row-3,
    .process-form .row.row-basics,
    .process-form .row.row-basics-project,
    .process-form .row.row-context,
    .process-form .row.row-context-project,
    .process-form .row.row-time {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }
    .process-form .row.row-4,
    .process-form .row.row-time {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .process-form .row.row-4 > .field,
    .process-form .row.row-time > .field {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .process-form .field.field-select select,
    .process-form .row.row-4 input,
    .process-form .field.field-date input[type="date"],
    .process-form .field.field-estimate input,
    .process-form .row.row-time .field-date,
    .process-form .row.row-time .field-estimate {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .process-form input[type="date"] {
        display: block;
        inline-size: 100%;
        min-inline-size: 0;
        max-inline-size: 100%;
        font-size: 16px;
    }
    .process-form .field.field-date input[type="date"] {
        padding-left: 13px;
        background-image: none;
    }
    .process-form .field.field-date input[type="date"]::-webkit-datetime-edit,
    .process-form .field.field-date input[type="date"]::-webkit-datetime-edit-fields-wrapper,
    .process-form .field.field-date input[type="date"]::-webkit-date-and-time-value {
        padding: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}
@media (max-width: 720px) {
    .filter-chips {
        gap: 6px;
    }
    .filter-chip {
        padding: 7px 10px;
    }
    .action-filter-toggle {
        justify-self: stretch;
        justify-content: center;
    }
    .flash {
        max-width: 100%;
    }
    .page-intro {
        padding-bottom: 16px;
    }
    .page-summary-intro {
        padding-bottom: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    .page-intro > div:first-child {
        flex: none;
        width: 100%;
    }
    .page-intro h1 {
        font-size: clamp(1.25rem, 4.8vw, 1.4rem);
        line-height: 1.08;
    }
    .page-intro-stat-group {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }
    .page-intro-stat,
    .project-page-stat {
        justify-items: start;
    }
    body.route-inbox .quick-capture-inline {
        padding: 16px;
        border-radius: 24px;
    }
    body.route-inbox .quick-capture-heading {
        align-items: flex-start;
    }
    body.route-inbox .project-create-row .field.field-date,
    body.route-inbox .project-create-row .field.field-estimate,
    body.route-inbox .process-form .field.field-date,
    body.route-inbox .process-form .field.field-estimate {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    body.route-inbox .project-create-row .field.field-date input[type="date"],
    body.route-inbox .process-form .field.field-date input[type="date"] {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        padding-right: 10px;
        font-size: 16px;
    }
    .project-page-stats {
        width: 100%;
        min-width: 0;
    }
    .inbox-attachment-preview {
        width: 72px;
        min-width: 72px;
        height: 72px;
    }
    .image-lightbox {
        padding: 14px;
    }
    .image-lightbox-panel {
        width: min(100%, 520px);
        max-height: min(90vh, 760px);
        padding: 14px;
        border-radius: 20px;
    }
    .image-lightbox-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
    .image-lightbox-actions {
        width: 100%;
        justify-content: space-between;
    }
    .flow-panel {
        padding-left: 0;
    }
    .mode-panels,
    .mode-panel,
    .flow-step,
    .process-form,
    .process-form .field,
    .process-form .row > * {
        min-width: 0;
    }
    .process-form > .row,
    .process-form .row,
    .process-form .row.row-2,
    .process-form .row.row-3,
    .process-form .row.row-basics,
    .process-form .row.row-basics-project,
    .process-form .row.row-context,
    .process-form .row.row-context-project,
    .process-form .row.row-time {
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
    }
    .process-form .row.row-4,
    .process-form .row.row-time {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .process-form .row.row-4 > .field,
    .process-form .row.row-time > .field {
        grid-column: auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    .process-form .field.field-select select,
    .process-form .row.row-4 input,
    .process-form .field.field-date input[type="date"],
    .process-form .field.field-estimate input,
    .process-form .row.row-time .field-date,
    .process-form .row.row-time .field-estimate {
        width: 100%;
        min-width: 0;
        max-width: none;
    }
    .process-form input[type="date"] {
        display: block;
        inline-size: 100%;
        min-inline-size: 0;
        max-inline-size: 100%;
    }
    .process-form .field.field-date input[type="date"] {
        padding-left: 13px;
        background-image: none;
    }
    .process-form .field.field-date input[type="date"]::-webkit-datetime-edit,
    .process-form .field.field-date input[type="date"]::-webkit-datetime-edit-fields-wrapper,
    .process-form .field.field-date input[type="date"]::-webkit-date-and-time-value {
        padding: 0;
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
    .today-task-head {
        grid-template-columns: 28px minmax(0, 1fr);
        grid-template-rows: 28px auto;
    }
    .check-button,
    .inbox-check-button {
        width: 28px;
        min-width: 28px;
        height: 28px;
        min-height: 28px;
        font-size: .84rem;
    }
    .today-task-head .check-button,
    .today-task-head .inbox-check-button,
    .today-task-head .today-task-head-spacer {
        width: 28px;
        min-width: 28px;
        height: 28px;
        min-height: 28px;
        flex-basis: 28px;
    }
    .today-task-head .today-inline-action,
    .today-task-head .icon-button,
    .today-task-head .inline-file-trigger,
    .today-task-head .capture-image-button {
        width: 28px !important;
        min-width: 28px !important;
        height: 28px;
        min-height: 28px;
        border-radius: 10px;
    }
    .today-task-head .today-inline-action svg,
    .today-task-head .icon-button svg {
        width: 14px;
        height: 14px;
    }
    .mobile-more-panel {
        width: min(340px, calc(100vw - 20px));
    }
    .auth-card .stack.auth-login-stack {
        display: grid;
        gap: 30px;
    }
}
/* Shared form repair: quiet controls that resize with their container. */
:root {
    --form-label-gap: 12px;
    --form-row-gap: 18px;
    --form-section-gap: 22px;
    --form-column-gap: 16px;
    --form-control-pad-block: 12px;
    --form-control-pad-inline: 16px;
}
form.stack,
.process-form,
.project-create-section {
    gap: var(--form-row-gap);
}
.field,
.today-task-form .field,
.process-form .field,
.project-create-row .field,
body.route-inbox .quick-capture-inline .field {
    gap: var(--form-label-gap);
}
.project-create-row,
.process-form > .row,
.process-form .row,
.today-task-form .row {
    gap: var(--form-row-gap) var(--form-column-gap);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
select,
textarea {
    min-width: 0;
    max-width: 100%;
    border: 0;
    padding: var(--form-control-pad-block) var(--form-control-pad-inline);
    background-color: #f6f8f4;
    color: var(--text);
    box-shadow: none;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):focus,
select:focus,
textarea:focus {
    border: 0;
    background-color: #fff;
    box-shadow: var(--focus-ring);
}
select,
.project-search-input {
    -webkit-appearance: none;
    appearance: none;
    padding-right: calc(var(--form-control-pad-inline) + 28px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236f7a71' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 8 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--form-control-pad-inline) center;
    background-size: 16px 16px;
}
input[type="date"] {
    padding-left: var(--form-control-pad-inline);
    padding-right: var(--form-control-pad-inline);
    background-image: none;
}
select.select-empty,
input[type="date"].input-empty,
input::placeholder,
textarea::placeholder {
    color: #8a938b;
}
.today-task-form,
.today-task-form .stack {
    min-width: 0;
}
.today-task-form {
    --form-label-gap: 6px;
    --form-row-gap: 10px;
    --form-section-gap: 12px;
    --form-column-gap: 10px;
    --form-control-pad-block: 8px;
    --form-control-pad-inline: 12px;
    gap: 12px;
    container-type: inline-size;
}
.today-task-form .stack {
    display: grid;
    gap: var(--form-section-gap);
}
.today-task-form .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    align-items: start;
}
.today-task-form .row > *,
.today-task-form .field {
    width: 100%;
    min-width: 0;
}
.today-task-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.today-task-form select {
    min-height: 38px;
}
.today-task-form .task-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.today-task-form .task-form-grid-organize .task-form-field-project,
.today-task-form .task-form-grid-organize .task-form-field-area,
.today-task-form .task-form-grid-organize .task-form-field-goal {
    grid-column: span 2;
}
@container (max-width: 52rem) {
    .today-task-form .task-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .today-task-form .task-form-grid-organize .task-form-field-project,
    .today-task-form .task-form-grid-organize .task-form-field-area {
        grid-column: auto;
    }
    .today-task-form .task-form-grid-organize .task-form-field-goal {
        grid-column: 1 / -1;
    }
}
@container (max-width: 36rem) {
    .today-task-form .row {
        grid-template-columns: minmax(0, 1fr);
    }
    .today-task-form .task-form-grid-organize .task-form-field-project,
    .today-task-form .task-form-grid-organize .task-form-field-area,
    .today-task-form .task-form-grid-organize .task-form-field-goal {
        grid-column: auto;
    }
}
.today-task-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
.today-task-form select,
.today-task-form textarea {
    width: 100%;
}
.today-task-form .stack-inline {
    width: fit-content;
    max-width: 100%;
}
.today-task-form .stack-inline input[type="checkbox"] {
    width: auto;
    min-height: auto;
}
.today-task-form .stack-inline .field-label {
    margin: 0;
}
@media (max-width: 980px) {
    .today-task-form .task-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .today-task-form .task-form-grid-organize .task-form-field-project,
    .today-task-form .task-form-grid-organize .task-form-field-area {
        grid-column: auto;
    }
    .today-task-form .task-form-grid-organize .task-form-field-goal {
        grid-column: 1 / -1;
    }
}
@media (max-width: 720px) {
    .today-task-form .row {
        grid-template-columns: minmax(0, 1fr);
    }
    .today-task-form .task-form-grid-organize .task-form-field-project,
    .today-task-form .task-form-grid-organize .task-form-field-area,
    .today-task-form .task-form-grid-organize .task-form-field-goal {
        grid-column: auto;
    }
    .today-task-form input[type="date"] {
        font-size: 16px;
        padding-left: var(--form-control-pad-inline);
        background-image: none;
    }
}

@media (max-width: 720px) {
    .content {
        padding-top: 10px;
    }

    .page-summary-intro {
        margin-bottom: 8px;
        padding: 0 0 6px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .page-summary-intro > div:first-child {
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
    }

    .page-summary-intro h1 {
        margin: 0;
        font-size: 1.42rem;
        line-height: 1;
    }

    .page-summary-intro .page-subtitle {
        display: none !important;
    }

    .page-summary-intro .page-intro-stat-group {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 10px;
    }

    .page-summary-intro .page-intro-stat {
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: row-reverse;
        align-items: baseline;
        gap: 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .page-summary-intro .page-intro-stat .eyebrow {
        font-size: .62rem;
        letter-spacing: .11em;
        white-space: nowrap;
    }

    .page-summary-intro .page-intro-stat-value {
        font-size: 1.12rem;
        letter-spacing: -.02em;
    }

    .project-page-intro {
        margin-bottom: 8px;
        padding: 0 0 6px;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .project-page-titleblock {
        flex: 1 1 auto;
        min-width: 0;
    }

    .project-page-intro h1 {
        margin: 0;
        font-size: 1.42rem;
        line-height: 1;
    }

    .project-page-intro .page-subtitle {
        display: none !important;
    }

    .project-page-stats {
        width: auto;
        min-width: 0;
        flex: 0 0 auto;
        display: flex;
        justify-content: flex-end;
        gap: 10px;
    }

    .project-page-stat {
        min-width: 0;
        padding: 0;
        display: flex;
        flex-direction: row-reverse;
        align-items: baseline;
        gap: 6px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .project-page-stat .eyebrow {
        font-size: .62rem;
        letter-spacing: .11em;
        white-space: nowrap;
    }

    .project-page-stat-value {
        font-size: 1.12rem;
        letter-spacing: -.02em;
    }

    .filter-chips {
        margin: 0 -16px 8px;
        padding: 0 16px 4px;
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .filter-chips::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex: 0 0 auto;
        padding: 7px 10px;
        white-space: nowrap;
    }

    .pane {
        border-radius: 18px;
    }

    .pane-head {
        padding: 12px 14px 8px;
    }

    .pane-body {
        padding: 0 14px 14px;
    }

    .collection-row {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    body.route-inbox .collection-row.is-loading {
        opacity: .68;
    }

    body.route-inbox .quick-capture-inline {
        margin-bottom: 10px;
        padding: 8px;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(91, 102, 92, .05);
    }

    body.route-inbox .quick-capture-inline .field {
        gap: 0;
    }

    body.route-inbox .quick-capture-heading {
        display: none;
    }

    body.route-inbox .capture-meta-input {
        min-height: 44px;
        padding: 0 44px 0 12px;
        border-radius: 13px;
    }

    body.route-inbox .capture-meta-input textarea {
        min-height: 42px;
        max-height: 96px;
        padding: 11px 0 9px;
        line-height: 1.3;
    }

    body.route-inbox .capture-image-button {
        right: 5px;
        bottom: 5px;
        width: 34px;
        height: 34px;
    }

    body.route-inbox .capture-file-name {
        min-height: 0;
        margin: 0;
        font-size: .74rem;
    }
}

.autosave-status {
    align-self: center;
    font-size: .8rem;
    color: var(--muted);
}
.autosave-status.is-error {
    color: var(--danger);
}
[data-autosave] button[hidden] {
    display: none !important;
}

select[data-searchable-project][hidden] {
    display: none !important;
}
.project-search-options {
    position: fixed;
    z-index: 40;
    inset: auto;
    margin: 0;
    padding: 6px;
    box-sizing: border-box;
    overflow-y: auto;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(62, 77, 65, .12);
}
.project-search-options[hidden] {
    display: none !important;
}
.project-search-options [role="option"],
.project-search-empty {
    padding: 12px;
    border-radius: 6px;
    overflow-wrap: anywhere;
}
.project-search-options [role="option"] {
    cursor: pointer;
}
.project-search-options [role="option"]:hover,
.project-search-options [role="option"].is-active {
    background: #edf2e9;
}
.project-search-options [aria-selected="true"] {
    font-weight: 650;
}
.project-search-empty {
    color: var(--muted);
}
