:root {
    --faded: #777;
    --allergy: #c14953;
    border-top: none;
}

input {
    width: 100%;
}

.input-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.link-row {
    margin: 0.5rem 0 1rem 0;
}

.export-link {
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.75;
}

.export-link:hover,
.export-link:focus-visible {
    text-decoration: underline;
    opacity: 1;
}

.input-wrap {
    position: relative;
    width: 100%;
}

.input-wrap input {
    width: 100%;
    padding-right: 2.25rem;
}

table {
    width: 100%;
}

.header {
    font-weight: bold;
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.today {
    font-size: large;
    font-weight: bold;
    margin-bottom: 1rem;
}

.yesterday {
    font-size: large;
    color: inherit;
    margin-top: 1rem;
}

.yesterday div {
    color: var(--faded);
}

#help {
    display: none;
}

.right {
    display: block;
    margin-left: auto;
    text-align: right;
}

.row {
    display: flex;
    flex-direction: row;
    padding: 0;
    width: 100%;
}

/* Make everything in a row a column */
.row > * {
    display: block;
    flex: 1 1 auto;
    max-width: 100%;
    width: 100%;
}

/* Desktop sizes */
@media (min-width: 600px) {
    .input-row .input-wrap {
        width: 50%;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --faded: #777;
        --allergy: #c14953;
    }
}

.muted {
    color: var(--faded);
    margin-top: -0.5rem;
}

.install-hint {
    color: var(--faded);
    margin: 0 1rem 0.5rem;
    text-align: center;
    font-size: 0.95rem;
}

.day {
    margin-bottom: 1.25rem;
}

.day-title {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

#entries ul {
    margin: 0 0 0.25rem 1rem;
}

li.entry.selected {
    background: rgba(10, 132, 255, 0.18);
    border-radius: 4px;
    outline: 2px solid rgba(10, 132, 255, 0.3);
}

li.entry {
    padding: 0.15rem 0.35rem;
}

.entry-text {
    cursor: pointer;
}

.type-toggle {
    min-width: 3rem;
    margin-right: 0.5rem;
}

.clear-input {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: var(--faded);
    font-size: 1.1rem;
    line-height: 1;
    padding: 0.15rem 0.25rem;
    cursor: pointer;
}

.clear-input:hover,
.clear-input:focus-visible {
    color: var(--dark);
}

li.entry.allergy {
    border-left: 3px solid var(--allergy);
    background: rgba(193, 73, 83, 0.08);
    border-radius: 4px;
}
