.fdsp-app {
    --fdsp-ink: #172126;
    --fdsp-muted: #5e6c72;
    --fdsp-line: #d9e2e0;
    --fdsp-bg: #f6f8f5;
    --fdsp-panel: #ffffff;
    --fdsp-green: #23715d;
    --fdsp-blue: #276a95;
    --fdsp-red: #ab3c3c;
    color: var(--fdsp-ink);
    background: var(--fdsp-bg);
    border: 1px solid var(--fdsp-line);
    border-radius: 8px;
    padding: 20px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fdsp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.fdsp-header h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.fdsp-kicker,
.fdsp-user,
.fdsp-empty {
    color: var(--fdsp-muted);
    margin: 0 0 6px;
}

.fdsp-dashboard {
    display: grid;
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.fdsp-dashboard article {
    background: var(--fdsp-panel);
    border: 1px solid var(--fdsp-line);
    border-radius: 8px;
    padding: 14px;
}

.fdsp-dashboard span {
    display: block;
    color: var(--fdsp-muted);
    font-size: 13px;
}

.fdsp-dashboard strong {
    display: block;
    font-size: 30px;
    margin-top: 4px;
}

.fdsp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.fdsp-tabs button,
.fdsp-form button,
.fdsp-actions button,
.fdsp-list button {
    background: var(--fdsp-green);
    border: 0;
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    font-weight: 650;
    min-height: 38px;
    padding: 8px 12px;
}

.fdsp-tabs button {
    background: #e2ebe7;
    color: var(--fdsp-ink);
}

.fdsp-tabs button.is-active {
    background: var(--fdsp-green);
    color: #fff;
}

.fdsp-panel {
    display: none;
}

.fdsp-panel.is-active {
    display: block;
}

.fdsp-grid {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 18px;
}

.fdsp-form,
.fdsp-list {
    background: var(--fdsp-panel);
    border: 1px solid var(--fdsp-line);
    border-radius: 8px;
    padding: 16px;
}

.fdsp-form h3,
.fdsp-list h3 {
    margin: 0 0 14px;
}

.fdsp-form label {
    display: grid;
    gap: 5px;
    font-size: 13px;
    font-weight: 650;
    margin-bottom: 12px;
}

.fdsp-form input,
.fdsp-form select,
.fdsp-form textarea,
.fdsp-check-row input[type="text"] {
    border: 1px solid var(--fdsp-line);
    border-radius: 6px;
    font: inherit;
    min-height: 38px;
    padding: 8px 10px;
    width: 100%;
}

.fdsp-form textarea {
    min-height: 92px;
    resize: vertical;
}

.fdsp-two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.fdsp-check {
    align-items: center;
    display: flex !important;
    flex-direction: row;
}

.fdsp-check input,
.fdsp-check-row input[type="checkbox"] {
    width: auto;
}

.fdsp-event,
.fdsp-checklist {
    border: 1px solid var(--fdsp-line);
    border-left: 5px solid var(--fdsp-blue);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.fdsp-event-main {
    align-items: flex-start;
    background: #fff !important;
    color: var(--fdsp-ink) !important;
    display: grid;
    gap: 3px;
    padding: 12px !important;
    text-align: left;
    width: 100%;
}

.fdsp-event-main span,
.fdsp-event-main em {
    color: var(--fdsp-muted);
    font-size: 13px;
}

.fdsp-detail {
    border-top: 1px solid var(--fdsp-line);
    display: none;
    padding: 12px;
}

.fdsp-event.is-open .fdsp-detail {
    display: block;
}

.fdsp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fdsp-danger {
    background: var(--fdsp-red) !important;
}

.fdsp-checklist {
    border-left-color: var(--fdsp-green);
    padding: 12px;
}

.fdsp-checklist h4 {
    margin: 0 0 10px;
}

.fdsp-check-row {
    align-items: center;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(160px, 260px);
    gap: 10px;
    margin-bottom: 8px;
}

.fdsp-progress {
    color: var(--fdsp-muted);
    font-weight: 650;
}

.fdsp-table {
    border-collapse: collapse;
    width: 100%;
}

.fdsp-table th,
.fdsp-table td {
    border-bottom: 1px solid var(--fdsp-line);
    padding: 10px 8px;
    text-align: left;
    vertical-align: top;
}

.fdsp-table th {
    color: var(--fdsp-muted);
    font-size: 13px;
}

.fdsp-status-ok,
.fdsp-status-alert {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 750;
    padding: 4px 9px;
}

.fdsp-status-ok {
    background: #dff0e5;
    color: #1f6d48;
}

.fdsp-status-alert {
    background: #f8dddd;
    color: #9b3030;
}

.fdsp-notice {
    background: #fff8d8;
    border: 1px solid #e2cf7b;
    border-radius: 8px;
    padding: 14px;
}

@media (max-width: 900px) {
    .fdsp-dashboard,
    .fdsp-grid {
        grid-template-columns: 1fr;
    }

    .fdsp-header,
    .fdsp-check-row {
        display: block;
    }

    .fdsp-two {
        grid-template-columns: 1fr;
    }

    .fdsp-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
