:host {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px 28px;
}

.toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.toolbar-btn {
    padding: 6px 14px;
    background: transparent;
    color: var(--accent-indigo);
    border: 1px solid var(--accent-indigo);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;

    &:hover {
        background: #EEF2FF;
    }

    &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

.toolbar-title {
    font-weight: 600;
    font-size: 18px;
    color: var(--text-primary);
}

.spacer {
    flex: 1;
}

.detail-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    max-width: 600px;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    padding: 14px 22px;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    padding: 22px;
}

.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
}

.field-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
}

.field-input {
    padding: 8px 10px;
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 13px;
    outline: none;
}

.date-row {
    display: flex;
    gap: 1.5rem;

    .field {
        flex: 1;
    }
}

.goal-checklist {
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.goal-check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 13px;

    &:hover {
        background: var(--bg-hover);
    }

    & + & {
        border-top: 1px solid var(--border-color);
    }

    input[type="checkbox"] {
        pointer-events: none;
        accent-color: var(--accent-indigo-light);
    }
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

.run-btn {
    background: var(--accent-indigo) !important;
    color: #fff !important;
    border-color: var(--accent-indigo) !important;
    min-width: 6rem;

    &:hover {
        background: #3730A3 !important;
    }
}
