/* PLANNER-243: /diario — reflective writing, read + write on one screen
   (Spec — Diário v1, D6). Renders inside the shared layout.html, so
   page-header, form-group, form-actions, .btn*, .empty-state, .error come
   from base.css. */

.diario-interval-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.diario-interval-form {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap; /* PLANNER-268: 390px overflowed the viewport */
}

.diario-entries { margin-bottom: 2rem; }

.diario-day { margin-bottom: 1.5rem; }
.diario-day-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dim);
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.25rem;
    margin-bottom: 0.5rem;
}

/* Message-app shape (D6): hour on the left, text filling the rest,
   the whole row a link into the edit screen. */
.diario-entry {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--line);
}
.diario-entry:hover { background: oklch(1 0 0 / 0.03); }
.diario-entry-hora {
    flex-shrink: 0;
    color: var(--dim);
    font-variant-numeric: tabular-nums;
    padding-top: 0.15rem;
}
.diario-entry-body { flex: 1; min-width: 0; }

/* The write field always sits after the last entry (D6/D11: "abre
   posicionada no fim"). */
.diario-write { border-top: 1px solid var(--line); padding-top: 1rem; }
.diario-write textarea {
    width: 100%;
    resize: vertical;
    font: inherit;
    padding: 0.6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: transparent;
    color: inherit;
}

.diario-excluir-preview {
    border-left: 2px solid var(--line);
    padding-left: 0.75rem;
    margin: 1rem 0;
    color: var(--dim);
}
