.inline-action {
    display: inline-block;
    margin: 0;
}

.action-cell {
    white-space: normal;
}

.action-cell > .btn,
.action-cell > .inline-action {
    margin: 1px 0;
}

.user-menu__dropdown form {
    margin: 4px 0 0;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    padding-top: 4px;
}

.user-menu__dropdown form button {
    display: block;
    width: 100%;
    padding: 7px 14px;
    border: 0;
    background: transparent;
    color: #e5e7eb;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    text-align: left;
}

.user-menu__dropdown form button:hover {
    background: #1f2937;
}

.login-submit {
    width: 100%;
}

.card-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.card-subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

#editor-container {
    min-height: 220px;
    background: #fff;
}

.ql-toolbar.ql-snow {
    border-radius: 8px 8px 0 0;
}

#editor-container.ql-container.ql-snow {
    border-radius: 0 0 8px 8px;
    font-family: var(--font-main);
    font-size: 13px;
}

.day-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
    font-size: 13px;
}

.media-current {
    margin-top: 8px;
}

.media-preview {
    display: inline-block;
    max-width: 180px;
    max-height: 180px;
    margin-top: 4px;
    border-radius: 6px;
    object-fit: contain;
    background: #f3f4f6;
}

.media-download {
    margin-top: 6px;
}

.time-row {
    display: grid;
    grid-template-columns: minmax(80px, 130px) 12px minmax(80px, 130px);
    align-items: center;
    gap: 8px;
    max-width: 300px;
}

.time-separator {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
}

.btn-xs {
    padding: 5px 9px;
    font-size: 12px;
}

.btn-light {
    background: #f9fafb;
    color: var(--text-main);
    border: 1px solid var(--border-strong);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-soft {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.badge-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.badge-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 6px;
    border-radius: 50%;
}

.status-dot--green {
    background: #16a34a;
}

.status-dot--red {
    background: #dc2626;
}

.log-table-card {
    padding: 0;
    overflow: hidden;
}

.log-table-wrap {
    overflow-x: auto;
}

.log-table-card table {
    min-width: 820px;
}

.help-section {
    padding: 4px 0 20px;
    border-bottom: 1px solid var(--border-soft);
}

.help-section + .help-section {
    padding-top: 20px;
}

.help-section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.help-section h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.help-section p,
.help-section li {
    font-size: 13px;
    line-height: 1.55;
}

.help-section ul {
    margin: 8px 0;
    padding-left: 22px;
}

.help-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.help-pill {
    padding: 4px 10px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 11px;
}

.help-note,
.help-code {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.help-code {
    overflow-x: auto;
    font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .app-header {
        align-items: flex-start;
        gap: 10px;
        padding: 11px 14px;
    }

    .app-header__left {
        min-width: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }

    .app-header__brand {
        font-size: 16px;
    }

    .app-header__nav {
        gap: 12px;
        flex-wrap: wrap;
    }

    .app-header__nav a {
        font-size: 12px;
    }

    .app-container {
        padding: 14px 12px 22px;
    }

    .log-header {
        flex-direction: column;
        gap: 14px;
    }

    .log-header-main {
        max-width: none;
    }

    .log-filter-row {
        align-items: stretch;
        flex-direction: column;
    }

    .log-filter-row select {
        max-width: none;
    }

    .btn-builder-actions,
    .btn-builder-rows-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
