.pa-fd-dashboard {
    /* Customisable design tokens with sensible defaults. Override globally via
       the component's backend options (Komponenten > Frontend Dashboard >
       Optionen > Darstellung), or per-site via a template CSS override by
       redeclaring any of these custom properties on .pa-fd-dashboard. */
    --pa-fd-tile-bg: #ffffff;
    --pa-fd-tile-text: inherit;
    --pa-fd-tile-border-color: #dcdcdc;
    --pa-fd-tile-border-radius: .5rem;
    --pa-fd-tile-min-width: 180px;
    --pa-fd-tile-gap: .75rem;
    --pa-fd-tile-padding: 1rem .75rem;
    --pa-fd-tile-icon-size: 1.25rem;
    --pa-fd-tile-icon-gap: .9rem;
    --pa-fd-tile-icon-img-scale: .8;

    max-width: 960px;
    margin: 0 auto;
}

.pa-fd-title {
    margin-bottom: 1.5rem;
}

.pa-fd-tiles {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(var(--pa-fd-tile-min-width), 1fr));
    gap: var(--pa-fd-tile-gap);
}

.pa-fd-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: var(--pa-fd-tile-padding);
    border: 1px solid var(--pa-fd-tile-border-color);
    border-radius: var(--pa-fd-tile-border-radius);
    background: var(--pa-fd-tile-bg);
    color: var(--pa-fd-tile-text);
    transition: box-shadow .15s ease, opacity .15s ease;
}

.pa-fd-tile:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.pa-fd-tile.pa-fd-dragging {
    opacity: .5;
}

.pa-fd-tile-badge-slot {
    position: absolute;
    top: -.5rem;
    right: -.5rem;
    line-height: 1;
}

.pa-fd-tile-badge {
    font-size: .7rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* Outside edit mode: hide inactive tiles entirely, hide handle/eye controls. */
.pa-fd-dashboard:not(.pa-fd-edit-mode) .pa-fd-tile-hidden {
    display: none;
}

.pa-fd-tile-handle,
.pa-fd-tile-eye {
    display: none;
}

.pa-fd-edit-mode .pa-fd-tile-handle,
.pa-fd-edit-mode .pa-fd-tile-eye {
    display: inline-flex;
}

.pa-fd-edit-mode .pa-fd-tile {
    cursor: grab;
}

.pa-fd-edit-mode .pa-fd-tile.pa-fd-tile-hidden {
    opacity: .55;
}

.pa-fd-tile-handle {
    align-items: center;
    color: #999;
    flex: 0 0 auto;
}

.pa-fd-tile-eye {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: .25rem;
    line-height: 1;
}

.pa-fd-tile-eye:hover {
    color: #0b6ecb;
}

.pa-fd-tile-link {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: var(--pa-fd-tile-icon-gap);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.pa-fd-tile-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--pa-fd-tile-icon-size);
    width: 1.5rem;
    text-align: center;
}

.pa-fd-tile-icon-img {
    width: calc(var(--pa-fd-tile-icon-size) * var(--pa-fd-tile-icon-img-scale));
    height: calc(var(--pa-fd-tile-icon-size) * var(--pa-fd-tile-icon-img-scale));
    object-fit: cover;
    border-radius: .15em;
    display: block;
}

.pa-fd-tile-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pa-fd-empty {
    color: #777;
    font-style: italic;
}

.pa-fd-hidden {
    display: none !important;
}

.pa-fd-intro-text {
    margin-bottom: 1.25rem;
}

.pa-fd-outro-text {
    margin-top: 1.25rem;
}

.pa-fd-edit-toggle-wrap {
    text-align: right;
}

.pa-fd-edit-toggle {
    margin-top: .5rem;
}
