.screen[data-screen="overview"]:not(.focus-agenda):not(.focus-rappels) {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.home-hero {
    position: relative;
    min-height: 270px;
    margin: 0 calc(var(--pad-x) * -1);
    padding: 97px 24px 79px;
    overflow: hidden;
    background: var(--bg);
    color: #fff;
}

.home-hero::before,
.home-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero::before {
    background: linear-gradient(90deg, rgba(24, 29, 21, .8), rgba(24, 29, 21, .12) 75%),
        var(--home-hero-image, url('../images/home-morning.webp')) center 55% / cover;
}

.home-hero::after {
    background: linear-gradient(to bottom, transparent 52%, var(--bg) 100%);
}

.home-hero-image-button {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-hero-image-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
}

.home-hero-actions {
    position: absolute;
    z-index: 2;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.home-hero-action {
    position: relative;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    background: rgba(21, 25, 21, .52);
    color: #fff;
    backdrop-filter: blur(8px);
}

.home-hero-action svg {
    width: 20px;
    height: 20px;
}

.home-hero-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffc178;
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 380px;
}

.home-hero.editable .home-hero-copy {
    pointer-events: none;
}

.home-section-heading > div > span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.home-hero-copy h1 {
    margin: 10px 0 5px;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(28px, 6vw, 42px);
    font-weight: 500;
    line-height: 1.1;
}

.home-hero-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.home-hero-banner-control {
    position: absolute;
    z-index: 3;
    top: 16px;
    left: 16px;
}

.home-hero-banner-menu button {
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 12px;
    background: rgba(21, 25, 21, .65);
    color: #fff;
}

.home-hero-banner-button {
    min-height: 38px;
    padding: 8px 12px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
    cursor: pointer;
}

.home-hero-banner-button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.home-hero-banner-icon {
    display: none;
}

.home-hero-banner-menu {
    position: absolute;
    left: 0;
    top: calc(100% + 6px);
    display: grid;
    min-width: 210px;
    padding: 5px;
    border-radius: 14px;
    background: rgba(21, 25, 21, .96);
    box-shadow: var(--shadow);
}

.home-hero-banner-menu p {
    margin: 5px 10px;
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    line-height: 1.35;
}

.home-hero-banner-menu button {
    padding: 10px;
    border: 0;
    background: transparent;
    text-align: left;
}

.home-hero-banner-menu button:hover,
.home-hero-banner-menu button:focus-visible {
    background: rgba(255, 255, 255, .16);
}

.home-search-panel,
.home-lists-panel {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.home-search-panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 16px;
}

.home-search-panel label {
    font-size: 12px;
    font-weight: 700;
}

.home-search-panel input {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
}

.home-search-results {
    display: flex;
    flex-direction: column;
}

.home-search-results button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 8px 5px;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.home-search-results svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
}

.home-search-results p,
.home-lists-panel p {
    margin: 5px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.home-config small {
    display: block;
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}

.home-lists-panel {
    margin-top: 10px;
    padding: 14px;
}

.home-lists-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 8px;
    font-size: 13px;
}

.home-lists-heading button {
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

.home-lists-panel .list-row-wrap + .list-row-wrap {
    border-top: 1px solid var(--border);
}

.home-config {
    min-width: 0;
}

.home-config-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-config h2 {
    margin: 0;
    font-size: 16px;
}

.home-config-heading span {
    color: var(--ink-soft);
    font-size: 12px;
    text-align: right;
}

.home-config-progress {
    display: block;
    width: 100%;
    height: 7px;
    margin: 10px 0 8px;
    border: 0;
    border-radius: 4px;
    background: var(--border);
    overflow: hidden;
}

.home-config-progress::-webkit-progress-bar {
    background: var(--border);
}

.home-config-progress::-webkit-progress-value {
    background: var(--accent);
}

.home-config-progress::-moz-progress-bar {
    background: var(--accent);
}

.home-config-actions {
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-config-actions li + li {
    border-top: 1px solid var(--border);
}

.home-config-actions button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    padding: 10px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.home-config-icon {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    height: 36px;
    color: var(--accent);
}

.home-config-icon svg {
    width: 22px;
    height: 22px;
}

.home-config-copy {
    flex: 1;
    min-width: 0;
}

.home-config-copy strong {
    font-size: 13px;
}

.home-config-actions button > svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.home-priorities,
.home-today {
    min-width: 0;
}

.home-priorities {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.home-priority-group {
    min-width: 0;
}

.home-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.home-section-heading > div > span {
    color: var(--accent);
}

.home-section-heading h2 {
    margin: 4px 0 0;
    color: var(--ink);
    font-family: Fraunces, Georgia, serif;
    font-size: 23px;
    font-weight: 600;
}

.home-today .home-section-heading h2 {
    margin-top: 0;
}

.home-priority-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.home-priority-link {
    text-decoration: none;
}

.home-priority-link svg {
    width: 14px;
    height: 14px;
}

.home-priority-group .home-section-heading {
    margin-bottom: 14px;
}

.home-priorities #pressingOverview {
    grid-area: auto;
    margin: 0;
}

.home-priorities #overdueList {
    max-height: none;
    background: transparent;
}

.screen[data-screen="overview"]:not(.focus-agenda):not(.focus-rappels) .home-today #agendaCards {
    max-height: none !important;
    margin: 20px 0 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.home-priorities .task-card-row,
.home-today .task-card-row {
    box-sizing: border-box;
    min-height: 54px;
}

.home-hour-entry {
    min-width: 0;
}

.home-hour-entry + .home-hour-entry {
    margin-top: 8px;
}

.home-agenda-empty {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 10px 13px;
    border: 1px dashed var(--border-soft);
    border-radius: 12px;
    color: var(--ink-soft);
    font-size: 13px;
}

.home-hour-entry > .task-card,
.home-hour-entry > .list-row-wrap {
    min-width: 0;
}

.home-conversation-row {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--border);
    background: transparent;
    color: var(--ink);
    text-align: left;
}

.home-conversation-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: none;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--accent);
}

.home-conversation-icon svg {
    width: 18px;
    height: 18px;
}

.home-conversation-row > span:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.home-conversation-row strong,
.home-conversation-row small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-conversation-row strong {
    font-size: 13px;
}

.home-conversation-row small,
.home-conversation-empty {
    margin-top: 3px;
    color: var(--ink-soft);
    font-size: 12px;
}

.home-conversation-row > svg {
    width: 15px;
    height: 15px;
    color: var(--ink-soft);
}

.home-feed {
    min-width: 0;
}

.home-feed-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 0;
}

.home-feed-filters button,
.home-feed-more {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
}

.home-feed-filters button.active {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--surface);
}

.home-feed-entry {
    min-width: 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    overflow-wrap: anywhere;
}

.home-feed-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-feed-header > .avatar {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
}

.home-feed-header > div:nth-child(2) {
    flex: 1;
    min-width: 0;
}

.home-feed-header p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
}

.home-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
    color: var(--ink-soft);
    font-size: 11px;
}

.home-feed-kind {
    display: grid;
    flex: 0 0 30px;
    place-items: center;
    height: 30px;
    color: var(--accent);
}

.home-feed-kind > svg,
.home-feed-kind .notif-icon {
    width: 20px;
    height: 20px;
    margin: 0;
}

.home-feed-entry h3 {
    margin: 14px 0 8px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.home-feed-body {
    margin: 8px 0 12px;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-line;
}

.home-feed-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin: 12px 0;
    overflow: hidden;
    border-radius: 12px;
}

.home-feed-photos.single {
    grid-template-columns: minmax(0, 1fr);
}

.home-feed-photos button {
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--surface-soft);
}

.home-feed-photos img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 360px;
    object-fit: cover;
}

.home-feed-more {
    display: block;
    margin: 4px auto 0;
    color: var(--accent);
}

.home-feed-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 16px;
    border-top: 1px solid var(--border);
    color: var(--ink-soft);
    text-align: center;
    font-size: 13px;
}

.home-feed-empty > svg {
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.home-feed-empty p {
    max-width: 360px;
    margin: 0;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .screen[data-screen="overview"]:not(.focus-agenda):not(.focus-rappels) {
        align-items: stretch;
    }

    .home-hero {
        min-height: 306px;
        margin: calc(-1 * var(--workspace-gutter)) calc(-1 * var(--pad-x)) 0;
        padding: 108px var(--pad-x) 86px;
    }

    .home-hero-copy {
        max-width: 100%;
    }

    .home-hero-copy h1 {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .screen[data-screen="overview"]:not(.focus-agenda):not(.focus-rappels) .home-today #agendaCards {
        max-height: none !important;
    }

}

@media (max-width: 1023px) {
    .home-hero-banner-button {
        display: grid;
        place-items: center;
        width: 38px;
        padding: 0;
    }

    .home-hero-banner-label {
        display: none;
    }

    .home-hero-banner-icon {
        display: block;
        width: 20px;
        height: 20px;
        opacity: .65;
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .8));
    }

    .home-hero-banner-icon svg {
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 520px) {
    .home-section-heading h2 {
        font-size: 21px;
    }
}
