/* ======================================================================
   Elementy wspoldzielone przez wiele stron: przyciski, karty, pola, tabele,
   badge'e, naglowki sekcji, puste stany. Zmiana tutaj dotyka calej aplikacji.
   ====================================================================== */

/* ---------- greeting ---------- */
.ld-greeting__title {
    font-size: 28px;
    font-weight: 700;
    color: var(--ld-text-strong);
    margin: 14px 0 8px;
    letter-spacing: -.4px;
}

.ld-greeting__sub {
    margin: 0;
    font-size: 14px;
    color: var(--ld-text-muted);
}

.ld-greeting__sub strong {
    color: var(--ld-text-body);
    font-weight: 700;
}

/* ---------- stat cards ---------- */
.ld-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 24px 0 6px;
}

.ld-stat {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 16px;
    padding: 20px 22px;
}

.ld-stat__label {
    color: var(--ld-text-muted);
    font-size: 12px;
}

.ld-stat__value {
    font-size: 38px;
    font-weight: 700;
    margin-top: 6px;
    color: var(--ld-text-strong);
    letter-spacing: -1px;
}

.ld-stat__value--warn { color: var(--ld-warn);
}

.ld-stat__value--ok { color: var(--ld-ok);
}

/* ---------- sections ---------- */
.ld-section {
    margin-top: 30px;
}

.ld-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ld-section__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--ld-text-strong);
}

/* ---------- ticket rows ---------- */
.ld-ticket {
    display: flex;
    align-items: center;
    gap: 18px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 18px 22px;
    margin-bottom: 12px;
}

.ld-ticket__key {
    color: var(--ld-primary-ink);
    font-weight: 700;
    font-size: 12px;
    flex: 0 0 auto;
    min-width: 60px;
}

.ld-ticket__body {
    flex: 1;
    min-width: 0;
}

.ld-ticket__title {
    font-weight: 700;
    color: var(--ld-text-strong);
    font-size: 14px;
}

.ld-ticket__meta {
    margin-top: 4px;
    color: var(--ld-text-muted);
    font-size: 11px;
}

.ld-ticket__badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

/* ---------- article cards ---------- */
.ld-articles {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ld-article {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: var(--ld-radius);
    padding: 18px 20px;
    text-decoration: none;
}

.ld-article:hover {
    border-color: var(--ld-primary-soft);
}

.ld-article__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex: 0 0 auto;
}

.ld-article__icon--sand { background: var(--ld-c-sand);
}

.ld-article__icon--lilac { background: var(--ld-c-lilac);
}

.ld-article__icon--blue { background: var(--ld-c-blueblk);
}

.ld-article__icon--green { background: var(--ld-c-greenblk);
}

.ld-article__title {
    font-weight: 600;
    color: var(--ld-text-strong);
    font-size: 13px;
}

/* ---------- badges ---------- */
.ld-badge {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.ld-badge--in-progress { background: var(--ld-status-progress-bg); color: var(--ld-status-progress-fg);
}

.ld-badge--waiting { background: var(--ld-status-waiting-bg); color: var(--ld-status-waiting-fg);
}

.ld-badge--resolved { background: var(--ld-status-resolved-bg); color: var(--ld-status-resolved-fg);
}

.ld-badge--new { background: var(--ld-status-new-bg); color: var(--ld-status-new-fg);
}

.ld-badge--closed { background: var(--ld-status-new-bg); color: var(--ld-status-new-fg);
}

.ld-badge--p1 { background: var(--ld-prio-p1-bg); color: var(--ld-prio-p1-fg);
}

.ld-badge--p2 { background: var(--ld-prio-p2-bg); color: var(--ld-prio-p2-fg);
}

.ld-badge--p3 { background: var(--ld-prio-p3-bg); color: var(--ld-prio-p3-fg);
}

.ld-badge--p4 { background: var(--ld-prio-p4-bg); color: var(--ld-prio-p4-fg);
}

/* ---------- report dialog ---------- */
.ld-rform {
    display: flex;
    flex-direction: column;
}

.ld-rform__head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--ld-border);
}

.ld-rform__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--ld-c-red-bg);
    color: var(--ld-danger);
    font-weight: 700;
    font-size: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.ld-rform__headtext {
    flex: 1;
    min-width: 0;
}

.ld-rform__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--ld-text-strong);
}

.ld-rform__sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-rform__close {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--ld-c-slate-bg);
    color: var(--ld-text-muted);
    cursor: pointer;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.ld-rform__close:hover {
    background: var(--ld-c-border-strong);
}

.ld-rform__close svg {
    width: 18px;
    height: 18px;
}

.ld-rform__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px;
}

.ld-rform__row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ld-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ld-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ld-text-body);
}

.ld-input,
.ld-select,
.ld-textarea {
    width: 100%;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: var(--ld-surface);
    color: var(--ld-text-strong);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.ld-input,
.ld-select {
    height: 48px;
    padding: 0 14px;
}

.ld-textarea {
    padding: 12px 14px;
    min-height: 120px;
    line-height: 1.5;
    resize: vertical;
}

.ld-input:focus,
.ld-select:focus,
.ld-textarea:focus {
    border-color: var(--ld-primary);
}

.ld-input::placeholder,
.ld-textarea::placeholder {
    color: var(--ld-text-muted);
}

.ld-select {
    appearance: none;
    padding-right: 38px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

/* priorytet + custom tooltip */
.ld-prio {
    display: flex;
    gap: 10px;
}

.ld-prio-opt {
    position: relative;
    flex: 1;
}

.ld-prio-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    border: 1px solid var(--ld-border);
    background: var(--ld-surface);
    color: var(--ld-text-body);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.ld-prio-btn:hover {
    border-color: var(--ld-text-muted);
}

/* Zaznaczenie = akcent marki. Czerwien tu myliła: P3 wybrany wygladał jak krytyczny. */
.ld-prio-btn.is-active {
    background: var(--ld-c-amber-bg);
    border-color: var(--ld-primary);
    color: var(--ld-primary-ink);
}

.ld-tip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 240px;
    background: var(--ld-c-ink-900);
    color: var(--ld-c-white);
    border-radius: 10px;
    padding: 10px 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .12s ease, transform .12s ease;
    z-index: 100;
    box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .55);
}

.ld-prio-opt:hover .ld-tip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ld-tip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--ld-c-ink-900);
}

.ld-tip__title {
    font-weight: 700;
    font-size: 11px;
    margin-bottom: 3px;
}

.ld-tip__desc {
    font-size: 10px;
    line-height: 1.45;
    color: var(--ld-c-slate-300);
}

/* env box */
.ld-envbox {
    background: var(--ld-c-slate-bg);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--ld-text-muted);
    font-size: 11px;
    line-height: 1.5;
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
}

/* footer */
.ld-rform__foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
    border-top: 1px solid var(--ld-border);
}

.ld-btn {
    height: 46px;
    padding: 0 22px;
    border-radius: 10px;
    border: 1px solid var(--ld-border);
    background: var(--ld-surface);
    color: var(--ld-text-body);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.ld-btn:hover {
    border-color: var(--ld-text-muted);
}

.ld-btn--primary {
    background: var(--ld-primary);
    border-color: var(--ld-primary);
    color: var(--ld-on-primary);
}

.ld-btn--primary:hover {
    background: var(--ld-c-amber-600);
    border-color: var(--ld-c-amber-600);
    color: var(--ld-c-white);
}

.ld-ty {
    flex: 0 0 auto;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--ld-c-blue-bg);
    color: var(--ld-primary-ink);
}

.ld-rep-avatar {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.ld-rep-avatar--0 { background: var(--ld-c-blueblk); color: var(--ld-primary);
}

.ld-rep-avatar--1 { background: var(--ld-c-greenblk); color: var(--ld-c-green-600);
}

.ld-rep-avatar--2 { background: var(--ld-c-amber-bg); color: var(--ld-c-amber-600);
}

.ld-rep-avatar--3 { background: var(--ld-c-lilac); color: var(--ld-c-violet-600);
}

.ld-rep-avatar--4 { background: var(--ld-c-red-bg); color: var(--ld-danger);
}

/* tabs */
.ld-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--ld-border);
    margin-bottom: 22px;
}

.ld-tab {
    padding: 12px 2px;
    margin-bottom: -1px;
    border: none;
    border-bottom: 2px solid transparent;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--ld-text-muted);
    cursor: pointer;
}

.ld-tab:hover {
    color: var(--ld-text-body);
}

.ld-tab.is-active {
    color: var(--ld-text-strong);
    border-bottom-color: var(--ld-primary);
}

.ld-card {
    background: var(--ld-surface);
    border: 1px solid var(--ld-border);
    border-radius: 16px;
    padding: 24px;
}

.ld-card__title {
    margin: 0 0 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-text-strong);
}

.ld-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ld-card__head .ld-card__title {
    margin: 0;
}

.ld-card__count {
    font-size: 13px;
    color: var(--ld-text-muted);
}

.ld-code {
    background: var(--ld-c-blue-bg);
    color: var(--ld-primary-ink);
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: .92em;
    padding: 1px 6px;
    border-radius: 5px;
}

/* ---------- ticket status badges (extra) ---------- */
.ld-badge--proposed { background: var(--ld-c-teal-bg); color: var(--ld-c-teal-700);
}

.ld-badge--cancelled { background: var(--ld-c-slate-bg); color: var(--ld-text-muted);
}

.ld-badge--archived { background: var(--ld-c-slate-bg); color: var(--ld-text-muted);
}

/* ---------- dialog: blue submit + radio list ---------- */
.ld-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ld-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--ld-text-body);
    cursor: pointer;
}

.ld-radio.is-active {
    border-color: var(--ld-primary);
    background: var(--ld-c-blue-bg);
    color: var(--ld-text-strong);
}

.ld-radio input {
    accent-color: var(--ld-primary);
}

/* ---------- kanban: filtry ---------- */
.ld-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
}

.ld-filter {
    height: 40px;
    padding: 0 34px 0 14px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background-color: var(--ld-surface);
    color: var(--ld-text-strong);
    font-size: 13px;
    font-family: inherit;
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    max-width: 220px;
}

.ld-filter:focus {
    border-color: var(--ld-primary);
    outline: none;
}

.ld-filter-clear {
    height: 40px;
    padding: 0 12px;
    border: none;
    background: none;
    color: var(--ld-primary-ink);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.ld-filter-toggle {
    margin-left: auto;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: var(--ld-surface);
    color: var(--ld-text-body);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.ld-filter-toggle.is-active {
    border-color: var(--ld-primary);
    color: var(--ld-primary-ink);
}

.ld-form-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 14px;
    max-width: 760px;
}

.ld-form-foot {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 18px;
    max-width: 760px;
}

.ld-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--ld-border);
    border-radius: 10px;
    background: var(--ld-surface);
}

.ld-tags:focus-within {
    border-color: var(--ld-primary);
}

.ld-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px 4px 10px;
    border-radius: 7px;
    background: var(--ld-c-blue-bg);
    color: var(--ld-primary-ink);
    font-size: 13px;
    font-weight: 600;
}

.ld-tag button {
    border: none;
    background: none;
    color: var(--ld-primary-ink);
    font-size: 15px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.ld-tags__input {
    flex: 1;
    min-width: 140px;
    height: 30px;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    font-family: inherit;
    color: var(--ld-text-strong);
}

/* Wyrenderowany Markdown (komunikaty). Nagłówki, listy i obrazki muszą się mieścić
   w karcie dialogu — obrazek bez max-width rozpycha planszę po zalogowaniu. */
.ld-md {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ld-text-body);
}

.ld-md p {
    margin: 0 0 12px;
}

.ld-md h1,
.ld-md h2,
.ld-md h3 {
    margin: 18px 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ld-text-strong);
}

.ld-md ol,
.ld-md ul {
    margin: 0 0 12px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ld-md img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    border: 1px solid var(--ld-border);
    margin: 6px 0 12px;
}

.ld-md code {
    padding: 1px 5px;
    border-radius: 5px;
    background: var(--ld-c-slate-bg);
    font-size: 12px;
}

.ld-md > *:last-child {
    margin-bottom: 0;
}

.ld-upload {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 16px 18px;
    border: 1.5px dashed var(--ld-border);
    border-radius: 12px;
    color: var(--ld-text-muted);
    font-size: 14px;
    cursor: pointer;
}

.ld-upload--filled {
    cursor: default;
}

.ld-upload__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ld-upload__plus {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--ld-c-slate-bg);
    color: var(--ld-text-muted);
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 600;
    flex: 0 0 auto;
}

.ld-upload__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--ld-c-slate-bg);
    color: var(--ld-text-body);
    font-size: 10px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.ld-upload__body {
    flex: 1;
    min-width: 0;
}

.ld-upload__name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ld-text-strong);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ld-upload__size {
    margin-top: 2px;
    font-size: 12px;
    color: var(--ld-text-muted);
}

.ld-upload__remove {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: var(--ld-danger);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
}

.ld-textarea--md {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 13px;
}

/* ---------- admin preferences ---------- */
.ld-adm-tbl {
    width: 100%;
    border-collapse: collapse;
}

.ld-adm-tbl th {
    text-align: left;
    padding: 0 12px 10px;
    border-bottom: 1px solid var(--ld-border);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--ld-text-muted);
}

.ld-adm-tbl td {
    padding: 12px;
    border-bottom: 1px solid var(--ld-border);
    font-size: 14px;
    color: var(--ld-text-body);
}

.ld-adm-tbl tbody tr:last-child td {
    border-bottom: none;
}

.ld-adm-add {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ld-adm-add .ld-input {
    flex: 1;
}

.ld-adm-add .ld-select {
    flex: 0 0 auto;
    width: 160px;
}

.ld-num {
    width: 96px;
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--ld-border);
    border-radius: 8px;
    background: var(--ld-surface);
    color: var(--ld-text-strong);
    font-size: 14px;
    font-family: inherit;
}

.ld-num:focus {
    border-color: var(--ld-primary);
    outline: none;
}

.ld-adm-note {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--ld-c-slate-bg);
    font-size: 13px;
    line-height: 1.6;
    color: var(--ld-text-muted);
}

.ld-adm-note strong {
    color: var(--ld-text-body);
    font-weight: 700;
}

.ld-adm-foot {
    display: flex;
    justify-content: flex-end;
}

.ld-check {
    width: 18px;
    height: 18px;
    accent-color: var(--ld-primary);
    cursor: pointer;
}

.ld-check:disabled {
    cursor: default;
    opacity: .65;
}

.ld-linkadd {
    border: none;
    background: none;
    color: var(--ld-primary-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ld-field__hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ld-text-muted);
}

/* ---------- alert / reminder banner ---------- */
.ld-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(var(--ld-rgb-blue), .06);
    font-size: 13px;
    color: var(--ld-text-body);
}

.ld-alert > div {
    flex: 1;
}

.ld-alert strong {
    font-weight: 700;
    color: var(--ld-text-strong);
}

.ld-alert__dot {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ld-primary);
}

.ld-alert__link {
    flex: 0 0 auto;
    border: none;
    background: none;
    color: var(--ld-primary-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.ld-alert--warn {
    background: var(--ld-c-amber-bg);
}

.ld-alert--warn .ld-alert__dot {
    background: var(--ld-warn);
}

.ld-pct { font-weight: 700;
}

.ld-pct--ok { color: var(--ld-c-green-600);
}

.ld-pct--warn { color: var(--ld-c-amber-600);
}

.ld-pct--over { color: var(--ld-danger);
}

.ld-row-click {
    cursor: pointer;
}

.ld-row-click:hover {
    background: var(--ld-c-slate-bg);
}

.ld-row-key {
    font-size: 13px;
    font-weight: 700;
    color: var(--ld-text-strong);
}

.ld-row-sub {
    font-size: 12px;
    color: var(--ld-text-muted);
}

/* ---------- simple page stub ---------- */
.ld-stub {
    color: var(--ld-text-muted);
}

/* Strzalka na klikalnym wierszu — afordancja zamiast podpisu „kliknij, aby...". */
.ld-row-go {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    color: var(--ld-c-slate-400);
    transition: transform .12s, color .12s;
}

/* Stan tylko-do-odczytu w tabeli zasad powiadomien. */
.ld-mark { display: inline-block; min-width: 18px; color: var(--ld-c-slate-400); font-weight: 700;
}

.ld-mark--on { color: var(--ld-ok);
}

/* ---------- responsywnosc elementow wspoldzielonych ---------- */
@media (max-width: 1100px) {
    .ld-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .ld-stats,
    .ld-articles,
    .ld-rform__row2 {
        grid-template-columns: 1fr;
    }

    /* Tabela szersza niz ekran ucinala kolumny bez mozliwosci dotarcia do nich —
       wlasny kontener przewijania zamiast rozjezdzania calej strony. */
    .ld-adm-tbl {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Notka o zawieszonej kancelarii w formularzu zgłoszenia (decyzja D3). */
.ld-rform__note {
    padding: 10px 12px;
    border-radius: var(--ld-radius-sm);
    background: var(--ld-c-amber-bg);
    color: var(--ld-c-amber-700);
    font-size: 12px;
}
