/* Panel Aktualności – najpierw telefon. Kolory i czcionki z style.css strony. */
.panel-page { background: var(--paper); }
.pn-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.pn-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.pn-brand img { width: 44px; height: 44px; }
.pn-link { border: 0; background: none; color: var(--clay-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
.pn { max-width: 760px; margin: 0 auto; padding: 24px 18px 80px; }
.pn h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin: 8px 0 12px; }
.muted { color: var(--ink-2); }
.pn-msg { padding: 14px 16px; border-radius: 6px; background: #e3efe2; border-left: 4px solid var(--forest-2); }
.pn-msg--err { background: #f8e2db; border-left-color: var(--clay); }
.pn-new { margin: 8px 0 20px; }
.pn-empty { color: var(--ink-2); }
.pn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pn-item { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 12px; border-radius: 8px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.pn-item--off { opacity: .75; background: var(--paper-2); }
.pn-item img, .pn-item__noimg { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: var(--paper-2); display: grid; place-items: center; font-size: 1.6rem; }
.pn-item__text strong { display: block; line-height: 1.3; }
.pn-item__text small { color: var(--ink-2); }
.pn-item__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pn-item__actions a, .pn-item__actions button { min-height: 40px; display: inline-flex; align-items: center; border: 0; background: none; padding: 0; color: var(--clay-dark); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.pn-item__actions .pn-del { color: #a12d12; }
.pn-view { margin-top: 24px; }
.pn-back { display: inline-block; margin-bottom: 8px; color: var(--clay-dark); font-weight: 600; }
.pn-form { display: grid; gap: 18px; }
.pn-form label { display: grid; gap: 6px; font-weight: 600; }
.pn-form input[type=text], .pn-form input:not([type]), .pn-form input[type=password], .pn-form input[type=date], .pn-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid rgb(34 29 22 / .3); border-radius: 6px; background: #fff; font: inherit; font-size: 16px; font-weight: 400; }
.pn-form textarea { resize: vertical; line-height: 1.55; }
.pn-form .opt, .pn-form small { font-weight: 400; color: var(--ink-2); }
.pn-licznik { font-size: .9rem; font-weight: 400; color: var(--ink-2); }
.pn-help { padding: 12px 14px; border-radius: 6px; background: var(--paper-2); }
.pn-help summary { cursor: pointer; font-weight: 600; }
.pn-help ul { margin: 10px 0 0; padding-left: 1.2em; }
.pn-current { display: grid; gap: 8px; }
.pn-current img { max-width: 260px; border-radius: 6px; }
.pn-check { display: flex !important; align-items: center; gap: 8px; font-weight: 400 !important; }
.pn-photo { display: grid; grid-template-columns: 32px 1fr; align-items: center; gap: 10px; padding: 16px; border: 2px dashed rgb(34 29 22 / .3); border-radius: 8px; background: #fff; cursor: pointer; }
.pn-photo svg { width: 32px; height: 32px; fill: none; stroke: var(--clay); stroke-width: 1.6; }
.pn-photo input { grid-column: 1 / -1; font-weight: 400; }
.pn-preview { grid-column: 1 / -1; max-width: 260px; border-radius: 6px; }
.pn-count { grid-column: 1 / -1; font-weight: 400; color: var(--forest-2); }
.pn-gal { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; }
.pn-gal legend { font-weight: 600; margin-bottom: 6px; }
.pn-gal__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.pn-gal__item { display: grid !important; gap: 4px; font-weight: 400 !important; font-size: .95rem; }
.pn-gal__item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.pn-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { background: transparent; color: var(--clay-dark); box-shadow: inset 0 0 0 2px var(--clay); }
.btn--ghost:hover { background: var(--paper-2); color: var(--clay-dark); }
.pn-note { margin: 0; font-size: .95rem; }
.pn-delete { margin-top: 28px; border: 0; background: none; color: #a12d12; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; min-height: 44px; }
@media (min-width: 640px) {
  .pn-item { grid-template-columns: 88px 1fr auto; align-items: center; }
  .pn-item img, .pn-item__noimg { width: 88px; height: 66px; }
  .pn-item__actions { grid-column: auto; justify-content: flex-end; }
}
