/* Kompaktere, responsive Oberfläche ab Core 1.3.0 */
:root {
    --shadow: 0 12px 34px #1d536f20;
    --radius: 19px;
}

body {
    font-size: 15.5px;
    line-height: 1.45;
}

h1 { font-size: clamp(1.65rem, 3vw, 1.78rem); }
h2 { font-size: clamp(1.15rem, 2vw, 1.32rem); }
.header-inner, .page, footer { max-width: 1280px; }
.site-header { padding: 16px 20px; }
.page { margin-top: 24px; }
.page-title { margin-bottom: 16px; }
.welcome { margin-bottom: 18px; padding: 18px 21px; }
.modules-grid { gap: 17px; }
.module-card { min-height: 136px; gap: 15px; padding: 19px; }
.module-icon { width: 50px; height: 50px; border-radius: 15px; font-size: 1.45rem; }
.content-card { padding: clamp(17px, 2.5vw, 25px); }
.section-head { margin-bottom: 17px; }
.form-stack { gap: 8px; }
.form-stack input,
.form-stack select,
.form-stack textarea,
.filter-grid input,
.filter-grid select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid #b8d4e2;
    border-radius: 10px;
    background: #f9fdff;
    color: var(--text);
}
.form-stack textarea { resize: vertical; line-height: 1.5; }
.button, .link-button { min-height: 42px; }
.filter-grid { gap: 10px; margin-bottom: 16px; }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { font-size: .92rem; white-space: normal; table-layout: auto; }
th, td { padding: 9px 10px; vertical-align: top; }
th { font-size: .78rem; }
.email-cell { max-width: 260px; overflow-wrap: anywhere; word-break: break-word; }
.wrap-text { min-width: 150px; white-space: normal; overflow-wrap: anywhere; }
.actions { min-width: 190px; display: flex; flex-wrap: wrap; gap: 6px; }
.compact-action {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #eaf6fb;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}
.button.danger { color: #922; background: #fdecec; }
fieldset { min-width: 0; margin: 4px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 6px; font-weight: 800; }
code { padding: 1px 4px; border-radius: 4px; background: #edf6fa; }

@media (max-width: 760px) {
    .page { width: min(calc(100% - 20px), 1280px); }
    .table-wrap table { min-width: 760px; }
}

@media (max-width: 620px) {
    body { font-size: 15px; }
    .page { margin-bottom: 52px; }
    .content-card { padding: 16px; }
    .table-wrap { overflow: visible; border: 0; }
    .table-wrap table,
    .table-wrap tbody,
    .table-wrap tr,
    .table-wrap td { display: block; width: 100%; }
    .table-wrap table { min-width: 0; background: transparent; }
    .table-wrap thead { display: none; }
    .table-wrap tr { margin-bottom: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
    .table-wrap td { display: grid; grid-template-columns: minmax(105px, 38%) 1fr; gap: 8px; padding: 7px 2px; border-bottom: 1px solid #e7f0f4; overflow-wrap: anywhere; }
    .table-wrap td:last-child { border-bottom: 0; }
    .table-wrap td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .82rem; font-weight: 800; }
    .actions { min-width: 0; }
}
