/* Arkona — portal drużyny
   Wygląd = strona www, motyw "Arkona" (len, pergamin, drewno, kuta plecionka).
   Grafiki w img/: tex-linen.webp, header-bar.webp, border-braid.webp, leather-tab.webp.
   Nadpisania tekstur są w sekcji "MOTYW ARKONA" na końcu pliku. Nazwy klas pv-* bez zmian — zmienia się tylko wygląd.
   Kolory i odstępy zmieniasz w jednym miejscu: sekcja :root poniżej. */

:root {
  /* Paleta motywu "Arkona" ze strony www (css/motywy/arkona.css): len, pergamin, drewno */
  --bg: #ebe3d4;              /* tło strony (pod teksturą lnu) */
  --surface: #e3d8c3;         /* tło stopki, pól wyróżnionych */
  --box: #f6efe1;             /* tło boksów */
  --field: #fbf7ee;           /* tło pól formularzy i wewnętrznych ramek */
  --text: #2a211a;
  --muted: #7e725e;
  --divider: rgba(90, 58, 30, 0.24);
  --divider-soft: rgba(90, 58, 30, 0.12);

  --accent: #a8743e;          /* brąz/miedź — główny akcent */
  --accent-100: #fbeedb;
  --accent-200: #f3dcb8;
  --accent-300: #e6c08c;
  --accent-600: #976534;
  --accent-700: #7a4a24;
  --accent-800: #5a3517;

  --neutral-400: #bcae96;
  --neutral-500: #9c8f79;
  --neutral-600: #7e725e;
  --neutral-700: #615645;
  --neutral-800: #463c2f;

  --red: #8a2f2f;
  --green: #4a5c1f;

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --radius: 5px;
  --radius-sm: 2px;
  --gutter: clamp(80px, 6vw, 88px);  /* odstęp od plecionki (jak na www) */
  --shadow-sm: 0 1px 3px rgba(60, 35, 15, 0.18);
  --shadow-md: 0 4px 12px rgba(60, 35, 15, 0.22);

  --wood: linear-gradient(145deg, #7a5033 0%, #4e3020 35%, #3a2216 60%, #5e3c26 100%);
  --parchment: radial-gradient(ellipse at 30% 20%, #f6ecd6 0%, #e9dab9 60%, #dcc79f 100%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--accent-700); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-600); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: rgba(168, 116, 62, 0.3); }

/* --- Plecionka po bokach (jak na www) --- */
.pv-braid { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.pv-braid i {
  position: absolute; top: 0; bottom: 0; width: 68px;
  background-image: url('img/plecionka.png');
  background-size: 68px auto;
  background-repeat: repeat-y;
  mix-blend-mode: multiply;
  opacity: .35;
}
.pv-braid i.l { left: 0; }
.pv-braid i.r { right: 0; }
@media (max-width: 1100px) {
  .pv-braid { display: none; }
  :root { --gutter: 16px; }
}

/* --- Górny pasek --- */
.pv-topbar {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
}
.pv-topbar-inner {
  padding: 18.4px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.pv-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}
.pv-brand:hover { color: var(--text); }
.pv-brand img { width: 44px; height: 44px; object-fit: contain; }
.pv-brand-text {
  font-family: var(--font-heading);
  font-size: 21px;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  display: flex;
  flex-direction: column;
}
.pv-brand-text small {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--accent-700);
  margin-top: 4px;
}
.pv-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18.4px;
  font-size: 14.5px;
  letter-spacing: .04em;
}
.pv-nav > a, .pv-dropdown-btn {
  color: var(--neutral-800);
  text-decoration: none;
  padding: 4px 0 2px;
  border-bottom: 1px solid transparent;
}
.pv-nav > a:hover, .pv-dropdown-btn:hover { color: var(--text); border-bottom-color: var(--accent); }
.pv-nav > a.is-active, .pv-dropdown-btn.is-active { color: var(--text); border-bottom-color: var(--accent); }
.pv-nav a.pv-logout { color: var(--muted); font-size: 12.5px; }

/* --- Rozwijane menu "Aktywność" --- */
.pv-dropdown { position: relative; }
.pv-dropdown-btn {
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
  font: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.pv-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -12px;
  min-width: 160px;
  padding: 6px 0;
  background: var(--box);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(60, 35, 15, 0.16);
}
.pv-dropdown:hover .pv-dropdown-menu,
.pv-dropdown.open .pv-dropdown-menu { display: block; }
.pv-dropdown-menu a {
  display: block;
  padding: 7px 14px;
  color: var(--neutral-800);
  text-decoration: none;
}
.pv-dropdown-menu a:hover { background: var(--accent-100); color: var(--text); }

/* --- Layout --- */
.pv-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1040px;
  margin: 24px auto;
  padding: 0 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1;
}
.pv-center {
  align-items: center;
  justify-content: center;
}
.pv-footer {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  font-size: 12.5px;
  color: var(--neutral-700);
}
.pv-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 27.6px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18.4px;
}
.pv-footer-inner img { width: 40px; height: 40px; object-fit: contain; }
.pv-footer-name { margin: 0; font-family: var(--font-heading); font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.pv-footer-note { margin: 0 0 0 auto; font-size: 13.5px; color: var(--neutral-700); }

/* --- Ekran logowania --- */
.pv-login-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 6px; }
.pv-login-hero img { width: 120px; height: 120px; filter: drop-shadow(0 6px 18px rgba(60,35,15,0.25)); }
.pv-login-hero h1 { margin: 0; font-weight: 400; font-size: 52px; line-height: 1; }
.pv-kicker {
  margin: 8px 0 0;
  font-size: 11.5px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent-700);
}
.pv-rule-short { width: 64px; height: 1px; background: var(--accent); margin-top: 6px; }

/* --- Boksy --- */
.pv-box {
  background: var(--box);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: visible;
  width: 100%;
}
.pv-login-box { max-width: 360px; }
.pv-head {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  padding: 10px 16px 8px;
  border-bottom: 1px solid var(--divider);
  position: relative;
}
.pv-head::after {
  content: '';
  position: absolute;
  left: 16px;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background: var(--accent);
}
.pv-head-gold { color: var(--accent-700); }
.pv-head-gold::after { width: 64px; height: 2px; bottom: -1px; }
.pv-box-body { padding: 14px 16px 16px; }
.pv-head .pv-btn { font-family: var(--font-heading); letter-spacing: .02em; text-transform: none; }

/* --- Formularze --- */
.pv-label {
  display: block;
  font-size: 12px;
  color: var(--neutral-700);
  margin: 12px 0 4px;
}
.pv-label:first-child { margin-top: 0; }
.pv-checkbox-label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.pv-input {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 7px 10px;
  min-height: 36px;
  font-size: 14px;
  width: 100%;
  background: var(--field);
  color: var(--text);
  font-family: inherit;
  caret-color: var(--accent);
}
.pv-input:hover { border-color: rgba(90, 58, 30, 0.4); }
.pv-input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 2px rgba(168,116,62,0.18); }
.pv-input::placeholder { color: #a89a82; }
textarea.pv-input { resize: vertical; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }

/* --- Przyciski (jak .btn-primary na www) --- */
.pv-btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--accent-700);
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  margin-top: 14px;
}
.pv-btn:hover { background: rgba(168, 116, 62, 0.12); color: var(--accent-800); }
.pv-btn:active { background: rgba(168, 116, 62, 0.22); }
.pv-btn-block { display: block; width: 100%; text-align: center; background: var(--accent); color: #fff; }
.pv-btn-block:hover { background: var(--accent-600); color: #fff; }
.pv-btn-sm { padding: 4px 10px; font-size: 13.5px; margin-top: 0; }
.pv-btn-red { color: var(--red); border-color: rgba(138, 47, 47, 0.55); }
.pv-btn-red:hover { background: rgba(138, 47, 47, 0.08); color: #6b1f1f; }
.pv-btn-ghost { border-color: transparent; padding-left: 4px; padding-right: 4px; }
.pv-btn-ghost:hover { border-color: transparent; }

/* --- Komunikaty --- */
.pv-error {
  color: var(--red);
  font-size: 13px;
  background: rgba(138, 47, 47, 0.07);
  border-left: 2px solid var(--red);
  padding: 6px 10px;
  margin: 0 0 10px;
}
.pv-success {
  color: var(--green);
  font-size: 13px;
  background: rgba(74, 92, 31, 0.07);
  border-left: 2px solid var(--green);
  padding: 6px 10px;
}
.pv-muted { color: var(--muted); font-size: 13px; }
.pv-muted-sm { color: var(--muted); font-size: 12px; }

/* --- Lista ekwipunku --- */
.pv-item-list { display: flex; flex-direction: column; }
.pv-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider-soft);
}
.pv-item-row:last-child { border-bottom: none; }
.pv-item-thumb {
  width: 48px; height: 48px;
  border-radius: 2px;
  background: var(--surface);
  border: 3px solid var(--surface);
  outline: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.pv-item-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) saturate(0.9); }
.pv-thumb-placeholder { font-size: 10px; color: var(--muted); }
.pv-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pv-item-info a { text-decoration: none; }
.pv-item-info strong { color: var(--text); font-family: var(--font-heading); font-size: 17px; font-weight: 600; }
.pv-item-info a:hover strong { color: var(--accent-700); }
.pv-tag {
  display: inline-block;
  background: var(--accent-100);
  color: var(--accent-800);
  font-size: 11px;
  letter-spacing: .02em;
  padding: 1px 8px;
  border-radius: 3px;
  width: fit-content;
}
.pv-tag-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent-700); }
.pv-tag-neutral { background: var(--surface); color: var(--neutral-800); }
.pv-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-item-rating { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.pv-inline-form { margin-left: 8px; display: inline; }

/* --- Kropki oceny dokumentacji --- */
.pv-dots { display: inline-flex; gap: 2px; }
.pv-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: inline-block;
}
.pv-dot-filled { background: var(--accent); }

/* --- Tabele --- */
.pv-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pv-table th, .pv-table td {
  text-align: left;
  padding: 7px 8px;
  border-bottom: 1px solid var(--divider-soft);
}
.pv-table th {
  font-size: 10.5px;
  font-weight: normal;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--divider);
}
.pv-table tbody tr:hover { background: rgba(90, 58, 30, 0.03); }

/* --- Lista członków --- */
.pv-member-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.pv-member-grid .pv-member-card { flex: 0 1 190px; }
.pv-member-status { font-size: 13px; color: var(--muted, #6b6258); }
.pv-member-card.is-huskarl { border-color: var(--accent); }
.pv-center { text-align: center; }
.pv-glow-yellow { text-shadow: 0 0 6px rgba(240, 200, 40, .95), 0 0 14px rgba(240, 200, 40, .7); }
.pv-glow-red { text-shadow: 0 0 6px rgba(210, 40, 30, .9), 0 0 14px rgba(210, 40, 30, .65); }
.pv-flag-list { display: flex; flex-direction: column; gap: 4px; margin: 4px 0 6px; }
.pv-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 16px 10px;
}
.pv-member-card:hover { border-color: var(--accent); color: var(--text); box-shadow: var(--shadow-sm); }
.pv-member-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  color: #fff;
  background: #9b9797;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--divider);
}
.pv-role-jarl .pv-member-avatar { background: #3a270d; }
.pv-role-starszy_druzynnik .pv-member-avatar { background: #5a3b0a; }
.pv-role-druzynnik .pv-member-avatar { background: #a06f24; }
.pv-role-otrok .pv-member-avatar { background: #7d7979; }
.pv-role-kandydat .pv-member-avatar { background: #bab6b6; }
.pv-member-name { font-family: var(--font-heading); font-weight: 600; font-size: 18px; }

.pv-section-heading {
  font-size: 11.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin: 22px 0 10px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
}
.pv-section-heading:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* --- Profil --- */
.pv-breadcrumb {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 -6px;
}
.pv-breadcrumb a { color: var(--muted); }
.pv-breadcrumb a:hover { color: var(--accent-700); }
.pv-grid-side {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}
.pv-side-col, .pv-main-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.pv-profile-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
}
.pv-profile-monogram {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 36px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--box), 0 0 0 5px var(--accent);
  margin: 4px 0 8px;
}
.pv-profile-name { font-family: var(--font-heading); font-weight: 600; font-size: 24px; line-height: 1.1; }
.pv-profile-role {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-700);
  margin-top: 6px;
}

.pv-profile-points-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
  margin: 10px 0 6px;
  padding: 8px 0;
  border-top: 1px solid var(--divider-soft);
  border-bottom: 1px solid var(--divider-soft);
}
.pv-points-block { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.pv-points-value { font-family: var(--font-heading); font-size: 28px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.pv-points-label { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; }

.pv-admin-toggle {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed var(--divider);
  font-size: 11.5px;
  color: var(--muted);
  justify-content: center;
}

/* Awatar kropkowy (tylko admin) */
.pv-avatar-frame {
  position: relative;
  width: 140px;
  height: 170px;
  margin: 4px auto 10px;
  border: 1px solid var(--divider);
  outline: 4px solid var(--surface);
  border-radius: 2px;
  background: var(--field);
}
.pv-role-border-zarzadzajacy, .pv-role-border-jarl, .pv-role-border-starszy_druzynnik,
.pv-role-border-druzynnik, .pv-role-border-otrok, .pv-role-border-kandydat { border-color: var(--accent); }

.pv-avatar-head {
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--divider);
}
.pv-avatar-torso {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 88px;
  border-radius: 40px 40px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--divider);
}
.pv-avatar-dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #d7d3d3;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--divider);
}
.pv-avatar-dot.dot-glowa   { top: 8px;   left: 64px; }
.pv-avatar-dot.dot-szyja   { top: 28px;  left: 64px; }
.pv-avatar-dot.dot-cialo   { top: 56px;  left: 64px; }
.pv-avatar-dot.dot-plaszcz { top: 76px;  left: 64px; }
.pv-avatar-dot.dot-pas     { top: 96px;  left: 64px; }
.pv-avatar-dot.dot-nogi    { top: 124px; left: 64px; }
.pv-avatar-dot.dot-stopy   { top: 152px; left: 64px; }
.pv-avatar-dot.dot-rece    { top: 64px;  left: 24px; }
.pv-avatar-dot.dot-dlonie  { top: 94px;  left: 24px; }
.pv-avatar-dot.dot-biz     { top: 64px;  left: 104px; }
.pv-avatar-dot.filled { background: var(--accent); }
.pv-avatar-dot.dot-cialo.filled,
.pv-avatar-dot.dot-plaszcz.filled { background: #5c6b2f; }
.pv-avatar-dot.dot-stopy.filled { background: #6b4423; }
.pv-avatar-dot.dot-biz.filled { background: #7a2020; }

.pv-avatar-iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--bg);
}

.pv-weapon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin: 8px auto 4px;
  max-width: 140px;
}
.pv-weapon-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #d7d3d3;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--divider);
}
.pv-weapon-dot.filled { background: var(--accent-800); }

/* --- Karta postaci --- */
.pv-char-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.pv-char-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid var(--divider);
  border-radius: 20px;
  font-size: 13px;
  color: var(--neutral-800);
  text-decoration: none;
  background: var(--field);
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
}
.pv-char-tab:hover { border-color: var(--accent); color: var(--text); }
.pv-char-tab.active { border-color: var(--accent); background: var(--accent-100); color: var(--accent-800); }
.pv-char-tab .pv-star { color: var(--accent); }
.pv-char-tab small { color: var(--muted); font-size: 11px; }
.pv-char-add { border-style: dashed; color: var(--accent-700); }

.pv-char-card { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: start; }
.pv-char-name { margin: 0; font-size: 30px; font-weight: 500; }
.pv-char-name.is-empty { color: var(--muted); font-style: italic; }
.pv-char-reko { display: flex; flex-direction: column; align-items: center; padding: 2px 14px; border-left: 1px solid var(--divider); }
.pv-char-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 8px 0 4px;
}
.pv-char-fact { border-top: 1px solid var(--divider); padding-top: 6px; }
.pv-char-fact span {
  display: block;
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neutral-700);
}
.pv-char-fact strong { font-weight: normal; font-size: 15px; }
.pv-char-concept { grid-column: 1 / -1; }
.pv-char-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pv-char-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pv-char-checks { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 8px 10px; border: 1px solid var(--divider); border-radius: var(--radius); background: var(--field); }

/* Placeholder w edytorze contenteditable */
.pv-editor:empty::before { content: attr(data-placeholder); color: #a89a82; pointer-events: none; }

/* --- Karta przedmiotu --- */
.pv-item-detail-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
}
.pv-item-photo {
  width: 100%;
  aspect-ratio: 1;
  background: var(--surface);
  border: 6px solid var(--surface);
  outline: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.pv-item-photo img { width: 100%; height: 100%; object-fit: contain; filter: sepia(0.22) saturate(0.82) contrast(1.05); }
/* Powiększanie zdjęć (img[data-zoom]) i podgląd przed wysłaniem */
img[data-zoom] { cursor: zoom-in; }
.pv-lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(20, 18, 15, .88); cursor: zoom-out;
}
.pv-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border: 6px solid var(--surface); box-shadow: 0 8px 40px rgba(0,0,0,.5); }
.pv-lightbox button {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer;
}
.pv-upload-preview { display: flex; align-items: center; gap: 10px; margin: 6px 0 4px; font-size: 12px; color: var(--muted); }
.pv-upload-preview img { width: 64px; height: 64px; object-fit: cover; border: 1px solid var(--divider); border-radius: 2px; }
.pv-score-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0;
}
.pv-score-number { font-family: var(--font-heading); font-size: 34px; font-weight: 600; line-height: 1; }
.pv-checklist { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.pv-checklist li { padding: 3px 0 3px 14px; border-left: 1px solid var(--divider); }
.pv-checklist li.yes { color: var(--green); border-left-color: var(--accent); }
.pv-checklist li.no { color: var(--muted); }

.pv-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pv-detail-boxes { margin-top: 16px; }
.pv-info-box {
  background: var(--field);
  border: 1px solid var(--divider);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-size: 13px;
}
.pv-source-list { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }

.pv-score-details { margin-top: 14px; font-size: 13px; }
.pv-score-details summary { cursor: pointer; color: var(--accent-700); }
.pv-plain-content { margin: 6px 0 0; }
.pv-score-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pv-score-list li { padding: 2px 0; }
.pv-pt-plus { color: var(--green); }
.pv-pt-minus { color: var(--red); }

/* --- Karta przedmiotu: w których kartach postaci się pokazuje --- */
.pv-item-cards {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 10px 0; padding: 8px 12px;
  border: 1px solid var(--divider); border-left: 2px solid var(--accent); border-radius: var(--radius);
  background: var(--field); font-size: 13px;
}
.pv-item-cards-lbl { width: 100%; font-size: 12px; color: var(--neutral-700); }
.pv-item-card-chk { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }

/* --- Formularz dodawania sprzętu --- */
.pv-source-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.pv-fieldset { border: 1px solid var(--divider); border-radius: var(--radius); padding: 8px 12px; margin: 12px 0 0; background: var(--field); }
.pv-fieldset legend { font-size: 12px; color: var(--neutral-700); padding: 0 4px; }
.pv-radio-label { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; margin-right: 16px; }

@media (max-width: 600px) {
  .pv-item-detail-grid { grid-template-columns: 1fr; }
  .pv-grid-2col { grid-template-columns: 1fr; }
  .pv-source-row { grid-template-columns: 1fr; }
  .pv-char-facts { grid-template-columns: 1fr; }
  .pv-char-form-grid { grid-template-columns: 1fr; }
  .pv-char-card { grid-template-columns: 1fr; }
  .pv-char-reko { border-left: 0; align-items: flex-start; padding: 0; }
}

.pv-slot-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--divider-soft);
  font-size: 13px;
}
.pv-slot-row:last-child { border-bottom: none; }
.pv-slot-label { color: var(--neutral-700); }
.pv-slot-value { text-align: right; }

/* --- Boksy rozwijalne (details/summary jako nagłówek boksu) --- */
summary.pv-head {
  cursor: pointer;
  user-select: none;
  list-style: none;
}
summary.pv-head::-webkit-details-marker { display: none; }
summary.pv-head::before {
  content: '▸';
  display: inline-block;
  width: 12px;
  margin-right: 6px;
  color: var(--accent);
  transition: transform 0.15s ease;
}
details[open] > summary.pv-head::before { transform: rotate(90deg); }
details.pv-box:not([open]) > summary.pv-head { border-bottom-color: transparent; }

/* --- Rozwijane grupy wewnątrz boksu (.pv-collapsible do reużycia) --- */
.pv-wardrobe-group, .pv-collapsible { margin: 0 0 4px; }
.pv-wardrobe-group summary, .pv-collapsible summary {
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 13px;
  color: var(--accent-700);
  padding: 0 0 6px;
}
.pv-wardrobe-group summary::-webkit-details-marker, .pv-collapsible summary::-webkit-details-marker { display: none; }
.pv-wardrobe-group summary::before, .pv-collapsible summary::before {
  content: '▸';
  display: inline-block;
  width: 10px;
  margin-right: 6px;
  transition: transform 0.15s ease;
}
.pv-wardrobe-group[open] > summary::before, .pv-collapsible[open] > summary::before { transform: rotate(90deg); }

/* --- STRÓJ: strzałki zmiany noszonego przedmiotu --- */
.pv-slot-picker { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.pv-slot-arrow-form { margin: 0; }
.pv-slot-arrow {
  border: 1px solid var(--divider);
  border-radius: 3px;
  background: var(--field);
  color: var(--accent-700);
  font-size: 10px;
  line-height: 1;
  padding: 3px 6px;
  cursor: pointer;
}
.pv-slot-arrow:hover { border-color: var(--accent); }

.pv-item-rating-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  min-width: 70px;
  flex-shrink: 0;
}
.pv-rating-number { font-family: var(--font-heading); font-size: 24px; font-weight: 600; line-height: 1; }

@media (max-width: 760px) {
  .pv-grid-side { grid-template-columns: 1fr; }
}

/* --- Mobile --- */
@media (max-width: 600px) {
  .pv-item-row { flex-wrap: wrap; }
  .pv-item-rating { order: 3; flex-direction: row; align-items: center; }
  .pv-topbar-inner { justify-content: center; }
  .pv-footer-note { margin-left: 0; }
  .pv-nav { justify-content: center; }
}

/* --- Zakładki (wyjazd / projekt) i edytor tekstu --- */
.pv-tabs { display: flex; gap: 2px; margin: 6px 0 0; border-bottom: 1px solid var(--divider); }
.pv-tab-btn {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 8px 12px 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--neutral-700);
  cursor: pointer;
}
.pv-tab-btn:hover { color: var(--text); }
.pv-tab-btn.active { color: var(--accent-700); border-bottom-color: var(--accent); }
.pv-tab-panel { display: none; padding: 14px 2px 4px; }
.pv-tab-panel.active { display: block; }
.pv-editor-toolbar { display: flex; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.pv-editor-toolbar button {
  border: 1px solid var(--divider);
  border-radius: 3px;
  background: var(--field);
  color: var(--neutral-800);
  font-family: var(--font-body);
  font-size: 12px;
  min-width: 28px;
  padding: 3px 8px;
  cursor: pointer;
}
.pv-editor-toolbar button:hover { border-color: var(--accent); color: var(--accent-700); }
.pv-editor {
  min-height: 100px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--field);
  font-size: 14px;
}
.pv-editor:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(168,116,62,0.18); }
.pv-rich-content { font-size: 14px; line-height: 1.7; margin-top: 6px; }
.pv-rich-content p { margin: 0 0 8px; }

/* --- Wyjazdy: płatne stanowiska --- */
.pv-paid-row { margin-bottom: 6px; }

/* --- Uczestnicy (wyjazd / projekt) --- */
.pv-participant-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.pv-participant-list li {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--divider-soft);
}
.pv-participant-list li:last-child { border-bottom: none; }
.pv-participant-list li.pv-crossed span:first-child { text-decoration: line-through; color: var(--muted); }
.pv-participant-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pv-participant-list form { margin-left: auto; }

/* --- Kalendarz (stary widok miesięczny) --- */
.pv-calendar-nav { display: flex; justify-content: space-between; align-items: center; font-size: 13px; margin-bottom: 10px; }
.pv-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.pv-cal-weekday { font-size: 10px; color: var(--muted); padding: 4px 0; }
.pv-cal-day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--divider-soft);
  border-radius: 3px;
  font-size: 12px;
  background: var(--field);
}
.pv-cal-empty { background: transparent; border: none; }
.pv-cal-day.has-trip { background: var(--accent); color: #fff; }
.pv-cal-day.has-trip a, .pv-cal-day.has-trip span { color: #fff; text-decoration: none; }

/* --- Lista wyjazdów / projektów --- */
.pv-trip-list { list-style: none; margin: 0; padding: 0; }
.pv-trip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--divider-soft);
  font-size: 13px;
}
.pv-trip-row:last-child { border-bottom: none; }
.pv-trip-date { color: var(--accent-700); font-variant-numeric: tabular-nums; min-width: 40px; }
.pv-trip-place { color: var(--muted); }
.pv-trip-name { font-family: var(--font-heading); font-weight: 600; font-size: 17px; margin-right: auto; text-decoration: none; color: var(--text); }
.pv-trip-name:hover { color: var(--accent-700); }

@media (max-width: 600px) {
  .pv-cal-day { font-size: 10px; }
}

/* --- Wyjazdy: mini-kalendarze sezonu --- */
.pv-season-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.pv-mini-cal { width: 150px; }
.pv-mini-cal-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}
.pv-mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.pv-mini-cal-wd {
  font-size: 8.5px;
  color: var(--muted);
  text-align: center;
  padding-bottom: 2px;
}
.pv-mini-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  background: var(--field);
  border: 1px solid var(--divider-soft);
  border-radius: 2px;
  color: var(--neutral-700);
  font-variant-numeric: tabular-nums;
}
.pv-mini-cal-empty { background: transparent; border: none; }
.pv-mini-cal-day.has-trip { background: var(--accent); border-color: var(--accent); }
.pv-mini-cal-day a, .pv-mini-cal-day span { color: inherit; text-decoration: none; }
.pv-mini-cal-day.has-trip a, .pv-mini-cal-day.has-trip span { color: #fff; }

@media (max-width: 600px) {
  .pv-mini-cal { width: 130px; }
}

/* --- Komentarze (wyjazd / projekt) --- */
.pv-comment {
  border-bottom: 1px solid var(--divider-soft);
  padding: 8px 0;
  font-size: 13px;
}
.pv-comment:last-of-type { border-bottom: none; }
.pv-comment-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.pv-comment-head strong { font-weight: 600; }
.pv-comment-body { white-space: pre-line; margin-bottom: 4px; }
.pv-comment-actions { display: flex; gap: 6px; }
.pv-comment-edit-form { margin-top: 6px; }
.pv-comment-edit-form textarea { margin-bottom: 6px; }
.pv-comment-form { margin-top: 12px; }
.pv-comment-form textarea { margin-bottom: 6px; }

/* --- Projekt: wpisy w zakładce Szczegóły --- */
.pv-add-entry { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pv-add-entry .pv-btn.active { background: var(--accent); color: #fff; }
.pv-entry-form { border: 1px dashed var(--accent); border-radius: var(--radius); padding: 12px; margin-bottom: 16px; background: var(--field); }
.pv-entry {
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--field);
  padding: 12px 14px;
  margin-bottom: 12px;
}
.pv-entry-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin-bottom: 6px; }
.pv-entry-title { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin: 0; }
.pv-entry-image { display: block; max-width: 100%; max-height: 480px; border: 6px solid var(--surface); outline: 1px solid var(--divider); margin: 6px 0; }
.pv-entry-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--divider);
  border-radius: var(--radius);
  background: var(--bg);
  text-decoration: none;
  margin: 4px 0;
}
.pv-entry-file:hover { border-color: var(--accent); }
.pv-entry-file b { font-family: var(--font-heading); font-size: 12px; letter-spacing: .1em; color: #fff; background: var(--accent); padding: 1px 6px; border-radius: 2px; }
.pv-entry .pv-collapsible { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--divider-soft); }


/* ==========================================================================
   PROFIL — karta postaci (1:1 z projektu Claude Design „Karta postaci”)
   Płaski układ bez boksów, szerszy (1180px). Klasy pv-cp-*.
   ========================================================================== */
.pv-main-wide { max-width: none; padding: 0 var(--gutter); margin: 0; gap: 0; }
.pv-cp { width: 100%; max-width: 1180px; margin: 0 auto; padding: clamp(28px, 5vw, 44px) 0 36.8px; }
.pv-cp p { margin: 0; }

.pv-cp-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 9.2px 18.4px; margin-bottom: 18.4px; }
.pv-cp-topline .pv-breadcrumb { margin: 0; }
.pv-cp-topline-right { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 9.2px 18.4px; }
.pv-cp-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px; line-height: 1.2;
  color: var(--accent); background: transparent;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 9.2px 4.6px; cursor: pointer; text-decoration: none;
}
.pv-cp-ghost:hover { background: rgba(168, 116, 62, 0.10); color: var(--accent); }
.pv-cp-ghost-sm { font-size: 13px; padding: 5px 10px; }
.pv-cp-ghost-red { color: var(--red); }
.pv-cp-ghost-red:hover { background: rgba(138, 47, 47, 0.08); color: var(--red); }

.pv-cp-lbl { margin: 0 0 9.2px !important; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--neutral-700); }
.pv-cp-kicker { margin: 0 0 9.2px !important; font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-700); font-variant-numeric: tabular-nums; }
.pv-cp-sub { margin: 0 0 13.8px !important; font-size: 14px; color: var(--neutral-700); }

/* Pasek nagłówka: imię + EXP/REKO */
.pv-cp-hero {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 27.6px 0;
  margin-bottom: 27.6px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 27.6px;
  align-items: start;
}
.pv-cp-name-input, .pv-cp-name {
  display: block; width: 100%;
  font-family: var(--font-heading); font-weight: 400;
  font-size: clamp(26px, 3.6vw, 40px); line-height: 1.2;
  padding: 2px 0; margin: 0;
  color: var(--text);
  border: 0; border-bottom: 1px solid var(--accent); border-radius: 0;
  background: transparent;
}
.pv-cp-name-input:focus { outline: none; border-bottom-width: 2px; }
.pv-cp-name-input::placeholder, .pv-cp-name.is-empty { color: var(--neutral-500); opacity: 1; }
.pv-cp-meta { display: flex; flex-wrap: wrap; gap: 9.2px; margin-top: 13.8px; align-items: center; font-size: 14px; color: var(--neutral-700); }
.pv-cp-meta strong { color: var(--text); font-weight: 600; }
.pv-cp-guardian { margin-top: 13.8px !important; font-size: 14.5px; color: var(--neutral-700); }
.pv-cp-guardian strong { font-weight: 600; color: var(--text); }
.pv-cp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18.4px; font-variant-numeric: tabular-nums; }
.pv-cp-stat { border-left: 1px solid var(--accent); padding-left: 13.8px; }
.pv-cp-stat .pv-cp-lbl { margin-bottom: 0 !important; }
.pv-cp-stat-value { margin: 2px 0 0 !important; font-family: var(--font-heading); font-size: 46px; line-height: 1; }
.pv-cp-stat-desc { font-size: 13px; line-height: 1.5; color: var(--neutral-700); }
.pv-cp-stat-note { font-size: 11.5px; color: var(--accent-700); margin-top: 4px !important; }

/* Dwie kolumny */
.pv-cp-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 36.8px;
  align-items: start;
}

/* Zakładki kart postaci */
.pv-cp-tabs { display: flex; flex-wrap: wrap; gap: 9.2px; align-items: center; margin-bottom: 18.4px; }
.pv-cp-tab {
  padding: 8px 13.8px;
  border: 1px solid var(--divider); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; line-height: 1.55;
  color: var(--neutral-700); text-decoration: none;
  display: flex; align-items: center; gap: 9.2px;
}
.pv-cp-tab:hover { border-color: var(--accent); color: var(--accent-700); }
.pv-cp-tab-on { border-color: var(--accent); color: var(--text); background: var(--accent-100); }
.pv-cp-tab-main { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-700); }
.pv-cp-add { border: 1px dashed var(--neutral-400); color: var(--neutral-700); }
.pv-cp-add:hover { border-style: solid; border-color: var(--accent); color: var(--accent-700); }

/* Karta (ramka) */
.pv-cp-card { border: 1px solid var(--divider); border-radius: var(--radius); padding: clamp(18px, 2.6vw, 30px); }
.pv-cp-card-head { display: flex; flex-wrap: wrap; gap: 13.8px; align-items: baseline; margin-bottom: 18.4px; }
.pv-cp-card-head h2 { margin: 0; font-family: var(--font-heading); font-weight: 400; font-size: 26px; }
.pv-cp-card-head .pv-cp-reko-mini { margin-left: auto; font-size: 13px; letter-spacing: .06em; color: var(--accent-700); font-variant-numeric: tabular-nums; }
.pv-cp-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18.4px; margin-bottom: 18.4px; }
.pv-cp-field > label, .pv-cp-field > .pv-cp-field-lbl { display: block; font-size: 12px; margin-bottom: 5px; color: var(--neutral-700); }
.pv-cp-input {
  width: 100%; min-height: 36px; padding: 6px 10px;
  font: inherit; font-size: 14px; color: var(--text); caret-color: var(--accent);
  background: transparent;
  border: 1px solid var(--divider); border-radius: var(--radius);
}
.pv-cp-input:hover { border-color: rgba(90, 58, 30, 0.45); }
.pv-cp-input:focus { border-color: var(--accent); outline: none; }
.pv-cp-input::placeholder { color: var(--neutral-500); opacity: 1; }
.pv-cp-value { font-size: 14.5px; min-height: 24px; }
.pv-cp-value.is-empty { color: var(--neutral-500); }
.pv-cp-concept { margin-bottom: 27.6px; }
.pv-cp-concept .pv-editor {
  min-height: 104px; background: transparent; line-height: 1.6;
  border: 1px solid var(--divider); border-radius: var(--radius); padding: 6px 10px;
}
.pv-cp-concept .pv-editor:focus { border-color: var(--accent); box-shadow: none; }
.pv-cp-concept .pv-editor:empty::before { color: var(--neutral-500); }
.pv-cp-concept .pv-editor-toolbar button { background: transparent; }
.pv-cp-save { display: flex; flex-wrap: wrap; align-items: center; gap: 9.2px; margin: -13.8px 0 27.6px; }
.pv-cp-save .pv-btn { margin: 0; }
.pv-cp-save .pv-btn.is-dirty { background: var(--accent); color: #fff; }
.pv-cp-save-hint { font-size: 12.5px; color: var(--neutral-600); }

/* Ekwipunek na karcie */
.pv-cp-cat { border-top: 1px solid var(--divider); padding: 13.8px 0 18.4px; }
.pv-cp-owned { display: grid; gap: 9.2px; margin-bottom: 13.8px; }
.pv-cp-item {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 13.8px; align-items: center;
  padding: 9.2px; border: 1px solid var(--accent-300); border-radius: var(--radius-sm);
  background: transparent; text-decoration: none; color: var(--text);
}
.pv-cp-item:hover { border-color: var(--accent); background: var(--accent-100); color: var(--text); }
.pv-cp-item-name { display: block; font-family: var(--font-heading); font-weight: 600; font-size: 16px; line-height: 1.25; }
.pv-cp-item-kat { display: block; font-size: 13px; color: var(--neutral-700); }
.pv-cp-item-kat .pv-tag { margin-left: 4px; }
.pv-cp-item-pts { font-size: 13px; letter-spacing: .06em; color: var(--accent-700); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pv-cp-thumb {
  flex: none; width: 46px; height: 46px; overflow: hidden;
  border: 1px solid var(--divider); border-radius: 2px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 7.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--neutral-500);
}
.pv-cp-thumb img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.15) saturate(0.9); }
.pv-cp-slots { display: flex; flex-wrap: wrap; gap: 9.2px; }
.pv-cp-slot {
  display: flex; align-items: center; gap: 9.2px;
  padding: 9px 13.8px;
  border: 1px solid var(--divider); border-radius: var(--radius-sm);
  background: transparent; text-decoration: none;
  font-family: var(--font-body); font-size: 14.5px; color: var(--neutral-800);
}
.pv-cp-slot:hover { border-color: var(--accent); color: var(--neutral-800); }
span.pv-cp-slot { cursor: default; }
span.pv-cp-slot:hover { border-color: var(--divider); }
.pv-cp-tick {
  flex: none; width: 15px; height: 15px;
  border: 1px solid var(--accent); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; line-height: 1; color: var(--accent-700);
}
.pv-cp-slot.pv-cp-add { border: 1px dashed var(--neutral-400); color: var(--neutral-700); }
/* ■ slot wymagany do odznaki uzbrojenia */
.pv-cp-req { flex: none; width: 13px; height: 13px; background: var(--accent); border-radius: 2px; }
.pv-cp-slot.is-req { border-color: var(--accent-300); }
.pv-cp-slot-qty { font-size: 12px; color: var(--neutral-700); font-variant-numeric: tabular-nums; }
/* Zwijane kategorie ekwipunku */
details.pv-cp-cat > summary { display: flex; align-items: center; flex-wrap: wrap; gap: 9.2px; cursor: pointer; list-style: none; }
details.pv-cp-cat > summary::-webkit-details-marker { display: none; }
details.pv-cp-cat > summary::before { content: '▸'; font-size: 12px; color: var(--accent-700); transition: transform .15s; }
details.pv-cp-cat[open] > summary::before { transform: rotate(90deg); }
details.pv-cp-cat > summary:hover { color: var(--accent-700); }
details.pv-cp-cat:not([open]) { padding-bottom: 4.6px; }
.pv-cp-cat-count { letter-spacing: .06em; text-transform: none; color: var(--neutral-500); }
.pv-cp-cat-badge { margin-left: auto; letter-spacing: .06em; text-transform: none; color: var(--accent-700); }
.pv-cp-cat-badge.is-ok { color: #2f6b2f; }
[hidden] { display: none !important; }
/* Zapisana karta: pola tylko do odczytu, dopóki nie klikniesz "Edytuj" */
.pv-cp-card.is-locked .pv-cp-input { border-color: transparent; padding-left: 0; }
.pv-cp-card.is-locked .pv-editor-toolbar { display: none; }
.pv-cp-card.is-locked .pv-cp-concept .pv-editor { border-color: transparent; padding-left: 0; min-height: 0; }
.pv-cp-name-input[readonly] { border-bottom-color: transparent; }
.pv-cp-slot.pv-cp-add:hover { border-style: solid; border-color: var(--accent); color: var(--accent-700); }
.pv-cp-more { margin-top: 13.8px !important; font-size: 13px; color: var(--neutral-700); }

/* Prawa kolumna: zadania, umiejętności, odznaki, historia */
.pv-cp-quests { margin: 0 0 27.6px; padding: 0; list-style: none; display: grid; gap: 9.2px; }
.pv-cp-quest {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13.8px;
  padding: 13.8px; border: 1px solid var(--divider); border-radius: var(--radius-sm);
}
.pv-cp-quest.is-done { border-color: var(--accent-300); }
.pv-cp-quest.is-done .pv-cp-quest-label { color: var(--neutral-600); text-decoration: line-through; text-decoration-color: var(--accent); }
.pv-cp-quest-label { font-size: 15px; line-height: 1.5; }
.pv-cp-quest-exp { font-size: 12.5px; letter-spacing: .08em; color: var(--accent-700); font-variant-numeric: tabular-nums; white-space: nowrap; }

.pv-cp-skills { display: flex; flex-wrap: wrap; gap: 9.2px; margin-bottom: 27.6px; }
.pv-cp-skills form { margin: 0; }
.pv-cp-skill {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-size: 11px; letter-spacing: .02em; line-height: 1.55;
  padding: 3px 10px; border-radius: 3px;
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
}
button.pv-cp-skill { cursor: pointer; }
.pv-cp-skill.is-on { background: var(--accent-100); color: var(--accent-800); border-color: var(--accent-100); }
button.pv-cp-skill:hover { box-shadow: 0 0 0 1px var(--accent); }
.pv-cp-skill.is-busy { opacity: .5; }

.pv-cp-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 13.8px; margin-bottom: 27.6px; }
.pv-cp-badge { border: 1px solid var(--divider); border-radius: var(--radius-sm); padding: 13.8px; opacity: .6; }
.pv-cp-badge-name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; }
.pv-cp-badge-how { margin-top: 4.6px !important; font-size: 12.5px; line-height: 1.45; color: var(--neutral-700); }

.pv-cp-acc > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; gap: 13.8px;
  padding: 13.8px 0; border-top: 1px solid var(--divider);
  font-family: var(--font-heading); font-size: 18px; color: var(--text);
}
.pv-cp-acc > summary::-webkit-details-marker { display: none; }
.pv-cp-acc > summary:hover { color: var(--accent-700); }
.pv-cp-acc > summary::after { content: 'rozwiń'; margin-left: auto; font-size: 13px; font-family: var(--font-body); color: var(--neutral-700); }
.pv-cp-acc[open] > summary::after { content: 'zwiń'; }
.pv-cp-history { margin: 0; padding: 0 0 18.4px; list-style: none; display: grid; gap: 9.2px; }
.pv-cp-history li {
  display: grid; grid-template-columns: auto 1fr auto; gap: 13.8px; align-items: baseline;
  border-bottom: 1px solid var(--divider); padding-bottom: 9.2px; font-variant-numeric: tabular-nums;
}
.pv-cp-history-date { font-size: 13px; color: var(--neutral-600); white-space: nowrap; }
.pv-cp-history-what { font-size: 14.5px; line-height: 1.5; }
.pv-cp-history-what a { color: var(--text); text-decoration: none; }
.pv-cp-history-what a:hover { color: var(--accent-700); }
.pv-cp-history-pts { font-size: 12.5px; color: var(--accent-700); white-space: nowrap; }

/* System zadań / umiejętności / odznak */
.pv-cp-quest-label { display: block; }
.pv-cp-quest-desc { display: block; font-size: 12.5px; line-height: 1.45; color: var(--neutral-700); margin-top: 2px; }
.pv-cp-quest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; }
.pv-cp-quest-actions .pv-cp-ghost-sm { padding: 2px 6px; font-size: 13px; }
.pv-cp-quest-state { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-700); }
.pv-cp-quest-state.is-rejected { color: var(--red); }
.pv-cp-quest.is-pending { border-style: dashed; border-color: var(--accent); }
.pv-cp-quest.is-done .pv-cp-quest-desc { text-decoration: none; }
.pv-cp-skill-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  margin: -13.8px 0 9.2px !important;
  font-family: var(--font-heading); font-weight: 600; font-size: 17px;
}
.pv-cp-skill-done { font-family: var(--font-body); font-weight: normal; font-size: 12px; color: var(--green); }
.pv-cp-skill-pts { font-family: var(--font-body); font-weight: normal; font-size: 12px; color: var(--accent-700); }
.pv-cp-skill.is-done { background: var(--accent); border-color: var(--accent); color: #fff; }

.pv-cp-badge.is-earned {
  opacity: 1;
  border-color: var(--accent);
  background: linear-gradient(160deg, var(--accent-100), rgba(255,255,255,0.4));
  box-shadow: 0 1px 3px rgba(125, 84, 17, 0.18);
}
.pv-cp-badge.is-earned .pv-cp-badge-name { color: var(--accent-800); }
.pv-cp-badge-pts { margin-top: 2px !important; font-size: 11.5px; letter-spacing: .08em; color: var(--accent-700); }
.pv-cp-badge-reqs { list-style: none; margin: 6px 0 0; padding: 0; font-size: 11.5px; line-height: 1.45; color: var(--neutral-600); }
.pv-cp-badge-reqs li.ok { color: var(--green); }
.pv-cp-badge-skill { margin-top: 6px !important; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--neutral-600); }

.pv-cp-approvals {
  border: 1px dashed var(--accent); border-radius: var(--radius);
  background: var(--accent-100); padding: 13.8px 18.4px; margin-bottom: 18.4px;
}
.pv-cp-approvals ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.pv-cp-approvals li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.pv-cp-approvals-actions { margin-left: auto; display: flex; gap: 4px; }

/* Zadania: przełącznik Aktualne / Wykonane */
.pv-cp-taskbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 9.2px; }
.pv-cp-taskbar .pv-cp-kicker { margin: 0 !important; }
.pv-cp-seg { display: inline-flex; overflow: hidden; border: 1px solid var(--divider); border-radius: var(--radius); }
.pv-cp-seg button {
  font: inherit; font-size: 12.5px; padding: 5px 12px; border: 0; background: transparent;
  color: var(--neutral-700); cursor: pointer;
}
.pv-cp-seg button + button { border-left: 1px solid var(--divider); }
.pv-cp-seg button span { font-variant-numeric: tabular-nums; color: var(--neutral-500); margin-left: 2px; }
.pv-cp-seg button:hover { background: rgba(90, 58, 30, 0.05); }
.pv-cp-seg button.is-on { color: var(--accent-700); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-100); }
.pv-cp-seg button.is-on span { color: var(--accent-700); }
.pv-cp-tasks { margin-bottom: 27.6px; }
.pv-cp-tasks .pv-cp-quests { margin-bottom: 18.4px; }
.pv-cp-tasks .pv-cp-skill-head { margin-top: 0 !important; }
.view-aktualne .pv-cp-quest.is-done,
.view-wykonane .pv-cp-quest:not(.is-done),
.view-aktualne .pv-cp-taskgroup:not(.has-open),
.view-wykonane .pv-cp-taskgroup:not(.has-done) { display: none; }
.pv-cp-empty { display: none; margin: 0 !important; padding: 13.8px; border: 1px dashed var(--divider); border-radius: var(--radius-sm); font-size: 14px; color: var(--neutral-700); }
.view-aktualne:not(.has-open) .pv-cp-empty-open,
.view-wykonane:not(.has-done) .pv-cp-empty-done { display: block; }

/* Zadania: checkbox */
.pv-cp-check-form { margin: 0; display: flex; }
.pv-cp-check {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 17px; height: 17px; flex: none;
  border: 1px solid var(--accent); border-radius: 2px; background: var(--field);
  display: grid; place-content: center; cursor: pointer;
}
.pv-cp-check::after { content: '✓'; font-size: 12px; line-height: 1; color: var(--accent-700); opacity: 0; }
.pv-cp-check:checked::after { opacity: 1; }
.pv-cp-quest.is-pending .pv-cp-check { background: var(--accent-100); }
.pv-cp-quest.is-pending .pv-cp-check::after { content: '…'; }
.pv-cp-check:disabled { cursor: default; background: transparent; border-color: var(--accent-300); }
.pv-cp-check:not(:disabled):hover { box-shadow: 0 0 0 3px rgba(168, 116, 62, 0.18); }

/* Odznaki: sama nazwa + dymek z wymaganiami */
.pv-cp-badges { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 9.2px; }
.pv-cp-badge {
  position: relative; opacity: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 9.2px;
  border: 1px dashed var(--neutral-400); border-radius: var(--radius-sm);
  background: transparent; color: var(--neutral-500);
  -webkit-tap-highlight-color: transparent; user-select: none;
}
.pv-cp-badge:focus { outline: none; }
.pv-cp-badge .pv-cp-badge-name { font-family: var(--font-heading); font-weight: 600; font-size: 15px; line-height: 1.2; color: inherit; }
.pv-cp-badge:hover, .pv-cp-badge:focus-visible, .pv-cp-badge.is-open { border-color: var(--accent); color: var(--neutral-700); }
.pv-cp-badge.is-earned {
  border: 1px solid var(--accent); color: var(--accent-800);
  background: linear-gradient(160deg, var(--accent-100), var(--field));
  box-shadow: 0 1px 3px rgba(125, 84, 17, 0.2);
}
.pv-cp-badge.is-earned .pv-cp-badge-name { color: var(--accent-800); }
.pv-cp-badge-tip {
  display: none; position: absolute; z-index: 30;
  top: calc(100% + 6px); left: 0; width: 250px;
  padding: 11px 13px; text-align: left; cursor: default;
  background: var(--box); color: var(--text);
  border: 1px solid var(--accent); border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(60, 35, 15, 0.2);
}
.pv-cp-badge.tip-left .pv-cp-badge-tip { left: auto; right: 0; }
.pv-cp-badge.tip-up .pv-cp-badge-tip { top: auto; bottom: calc(100% + 6px); }
.pv-cp-badge.is-open .pv-cp-badge-tip { display: block; }
@media (hover: hover) {
  .pv-cp-badge:hover .pv-cp-badge-tip { display: block; }
}
.pv-cp-badge-tip-name { font-family: var(--font-heading); font-weight: 600; font-size: 16px; }
.pv-cp-badge-tip-name span { font-family: var(--font-body); font-weight: normal; font-size: 11.5px; color: var(--green); margin-left: 4px; }
.pv-cp-badge-tip .pv-cp-badge-how { margin-top: 4px !important; }
.pv-cp-approvals p, p.pv-cp-approvals { font-size: 14px; }

/* Strona "Do zatwierdzenia" */
.pv-bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 10px; }
.pv-bulk-bar .pv-btn { margin: 0; }

/* Sekcja tylko dla admina: awatar + strój */
.pv-cp-admin { margin-top: 36.8px; padding-top: 18.4px; border-top: 1px dashed var(--divider); }
.pv-cp-admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18.4px; align-items: start; }
.pv-cp-admin-toggle { font-size: 12.5px; color: var(--neutral-600); }

/* Druk karty */
@media print {
  .pv-topbar, .pv-footer, .pv-braid, .pv-cp-topline, .pv-cp-tabs, .pv-cp-save,
  .pv-cp-add, .pv-cp-admin, .pv-editor-toolbar, .pv-cp-card-head button, .pv-error { display: none !important; }
  body { background: #fff; }
  .pv-main-wide { padding: 0; }
  .pv-cp { padding-top: 0; }
  .pv-cp-acc:not([open]) > .pv-cp-history { display: grid; }
  .pv-cp-acc > summary::after { content: ''; }
}


/* ==========================================================================
   Panel zadań i odznak (zadania-admin.php)
   ========================================================================== */
.pv-adm-form { margin: 4px 0 18px; padding: 10px 14px; border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--field); }
.pv-adm-form > summary { cursor: pointer; color: var(--accent-700); font-family: var(--font-heading); font-weight: 600; font-size: 17px; }
.pv-adm-form[open] > summary { margin-bottom: 8px; }
.pv-adm-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 0 12px; }
.pv-adm-wide { grid-column: 1 / -1; }
.pv-adm-grid .pv-adm-wide:first-child { grid-column: 1 / 2; }
.pv-adm-inactive td { opacity: .55; }
.pv-rule { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.pv-rule .pv-input { width: auto; min-width: 160px; flex: 1 1 200px; }
.pv-rule .pv-rule-type { flex: 2 1 280px; }
.pv-rule .pv-rule-value { flex: 0 0 90px; min-width: 90px; }
.pv-rule .pv-rule-remove { margin: 0; }
a.pv-tab-btn { display: inline-block; }
.pv-table code { font-size: 12px; background: var(--surface); padding: 1px 5px; border-radius: 2px; }
.pv-nav-count {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 4px;
  border-radius: 9px; background: var(--accent); color: #fff;
  font-size: 11px; line-height: 18px; text-align: center; letter-spacing: 0;
}
@media (max-width: 700px) {
  .pv-adm-grid { grid-template-columns: 1fr 1fr; }
  .pv-adm-grid .pv-adm-wide:first-child { grid-column: 1 / -1; }
}

@media print {
  .pv-cp-seg, .pv-cp-badge-tip, .pv-cp-approvals { display: none !important; }
  .view-aktualne .pv-cp-quest.is-done, .view-aktualne .pv-cp-taskgroup { display: grid !important; }
  .view-aktualne .pv-cp-taskgroup { display: block !important; }
  .pv-cp-empty { display: none !important; }
}

/* ==========================================================================
   LEKTURY (Hirdskra, Wprowadzenie) — lekcja.php, lista kandydata, test
   ========================================================================== */
.pv-btn-fill { background: var(--accent); color: #fff; border-color: var(--accent); }
.pv-btn-fill:hover { background: var(--accent-600); color: #fff; }
.pv-btn:disabled { opacity: .45; cursor: not-allowed; }

/* Lista lektur kandydata (profil zablokowany) */
.pv-gate-intro { font-size: 15px; line-height: 1.65; }
.pv-gate-intro p { margin: 0 0 9.2px !important; }
.pv-gate-list { max-width: 760px; }
.pv-gate-count { font-size: 12.5px; letter-spacing: .12em; color: var(--accent-700); font-variant-numeric: tabular-nums; }
.pv-gate .pv-cp-quest-label { text-decoration: none; color: var(--text); font-weight: 600; }
.pv-gate .pv-cp-quest-label:hover { color: var(--accent-700); text-decoration: underline; }
.pv-gate .pv-btn { margin-top: 0; white-space: nowrap; }
.pv-gate .pv-cp-quest:not(.is-done) { border-color: var(--accent-300); background: var(--box); }

/* Blok "Lektury" na profilu */
.pv-cp-lessons .pv-cp-quest { padding: 9.2px 13.8px; }
.pv-cp-lessons .pv-cp-quest-label { text-decoration: none; color: var(--text); }
.pv-cp-lessons .pv-cp-quest-label:hover { color: var(--accent-700); text-decoration: underline; }
.pv-cp-quest.is-lesson-done { border-color: var(--accent-300); }

/* Strona lektury */
.pv-lesson { max-width: 820px; }
.pv-lesson-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; pointer-events: none; }
.pv-lesson-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s linear; }
.pv-lesson-head { border-top: 1px solid var(--divider); padding-top: 27.6px; margin-bottom: 18.4px; }
.pv-lesson-head h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 400; margin: 0 0 9.2px; }
.pv-lesson-status { display: inline-block; font-size: 13px; padding: 4px 10px; border: 1px dashed var(--divider); border-radius: var(--radius); color: var(--neutral-700); }
.pv-lesson-status.is-ok { border-style: solid; border-color: var(--accent-300); background: var(--accent-100); color: var(--accent-800); }
.pv-lesson-toc { border: 1px solid var(--divider); border-radius: var(--radius); background: var(--box); padding: 13.8px 18.4px; margin-bottom: 27.6px; }
.pv-lesson-toc ol { margin: 0; padding-left: 20px; columns: 2 220px; column-gap: 27.6px; font-size: 14px; }
.pv-lesson-toc li { margin: 2px 0; break-inside: avoid; }

.pv-lesson-text { font-size: 16px; line-height: 1.75; }
.pv-lesson-text h2 { font-size: 30px; margin: 36.8px 0 9.2px; padding-bottom: 6px; border-bottom: 1px solid var(--accent-300); scroll-margin-top: 16px; }
.pv-lesson-text h3 { font-size: 22px; font-weight: 600; margin: 23px 0 4.6px; scroll-margin-top: 16px; }
.pv-lesson-text p { margin: 0 0 11.5px !important; }
.pv-lesson-text ul, .pv-lesson-text ol { margin: 0 0 13.8px; padding-left: 22px; }
.pv-lesson-text li { margin: 3px 0; }
.pv-lesson-text blockquote { margin: 13.8px 0; padding: 6px 16px; border-left: 3px solid var(--accent); font-style: italic; color: var(--neutral-800); }
.pv-lesson-meta { font-size: 13px; letter-spacing: .06em; color: var(--muted); }
.pv-lesson-lead { font-family: var(--font-heading); font-size: 26px; }
.pv-lesson-terms { display: flex; flex-wrap: wrap; gap: 9.2px; list-style: none; padding: 0 !important; }
.pv-lesson-terms li { border: 1px solid var(--accent-300); border-radius: var(--radius); padding: 2px 12px; background: var(--accent-100); }
.pv-lesson-arms, .pv-lesson-duties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 13.8px; margin: 13.8px 0 18.4px; }
.pv-lesson-arms > div, .pv-lesson-duties > div { border: 1px solid var(--divider); border-radius: var(--radius); background: var(--box); padding: 11.5px 13.8px; }
.pv-lesson-arms-head { font-family: var(--font-heading); font-size: 20px; font-weight: 600; margin: 0 0 6px !important; line-height: 1.2; }
.pv-lesson-arms-head span { display: block; font-family: var(--font-body); font-size: 12px; font-weight: 400; color: var(--muted); }
.pv-lesson-kit, .pv-lesson-duties ul { list-style: none; padding: 0 !important; margin: 0 !important; font-size: 14px; line-height: 1.5; }
.pv-lesson-duties h3 { font-size: 19px; margin: 0 0 4.6px; }
.pv-lesson-duties ul + h3 { margin-top: 11.5px; }
.pv-lesson-duties li { padding-left: 12px; position: relative; }
.pv-lesson-duties li::before { content: '·'; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }

/* Test */
.pv-lesson-test { margin-top: 46px; padding-top: 27.6px; border-top: 2px solid var(--accent); scroll-margin-top: 16px; }
.pv-lesson-test > h2 { font-size: 32px; font-weight: 400; margin: 0 0 9.2px; }
.pv-quiz-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(18px, 1fr)); gap: 4px; margin: 13.8px 0 18.4px; }
.pv-quiz-band[hidden] { display: none; }
.pv-quiz-band button { height: 10px; border: 0; padding: 0; border-radius: 2px; background: var(--neutral-400); cursor: pointer; }
.pv-quiz-band button.is-done { background: var(--accent-300); }
.pv-quiz-band button.is-cur { background: var(--accent); box-shadow: 0 0 0 2px var(--accent-200); }
.pv-quiz-card { border: 1px solid var(--divider); border-radius: var(--radius); background: var(--box); padding: 18.4px clamp(14px, 3vw, 27.6px); }
.pv-quiz-card h3 { font-size: 26px; margin: 0 0 4.6px; }
.pv-quiz-q { border: 0; margin: 0; padding: 18.4px 0 0; }
.pv-quiz-q + .pv-quiz-q { margin-top: 18.4px; border-top: 1px solid var(--divider-soft); }
.pv-quiz-q legend { float: left; width: 100%; font-size: 15.5px; font-weight: 600; line-height: 1.5; padding: 0; margin-bottom: 6px; }
.pv-quiz-q legend + * { clear: both; }
.pv-quiz-kind { display: block; width: max-content; margin-bottom: 4px; font-size: 10.5px; font-weight: 400; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-700); }
.pv-quiz-opt { display: flex; gap: 10px; align-items: flex-start; padding: 9px 12px; margin: 6px 0; border: 1px solid var(--divider); border-radius: var(--radius); cursor: pointer; font-size: 14.5px; line-height: 1.45; background: var(--field); }
.pv-quiz-opt:hover { border-color: var(--accent); }
.pv-quiz-opt input { margin: 3px 0 0; accent-color: var(--accent); flex: none; }
.pv-quiz-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-100); }
.is-locked .pv-quiz-opt { cursor: default; }
.is-locked .pv-quiz-opt:hover { border-color: var(--divider); }
.is-locked .pv-quiz-opt.is-ok, .is-locked .pv-quiz-opt.is-ok:hover { border-color: var(--green); background: rgba(74, 92, 31, 0.10); }
.is-locked .pv-quiz-opt.is-bad, .is-locked .pv-quiz-opt.is-bad:hover { border-color: var(--red); background: rgba(138, 47, 47, 0.08); }
.pv-quiz-hint { margin: 6px 0 0 !important; font-size: 13.5px; font-style: italic; color: var(--accent-800); }
.pv-quiz-expl { margin: 9.2px 0 0 !important; padding: 6px 12px; border-left: 3px solid var(--green); font-size: 14px; line-height: 1.55; }
.pv-quiz-expl.is-bad { border-left-color: var(--red); }
.pv-quiz-row { display: flex; flex-wrap: wrap; align-items: center; gap: 9.2px 13.8px; margin-top: 23px; }
.pv-quiz-row .pv-btn { margin-top: 0; }
.pv-quiz-secscore { font-size: 13px; letter-spacing: .08em; color: var(--accent-700); }
.pv-quiz-result.is-pass { border-color: var(--accent-300); }
.pv-quiz-big { font-family: var(--font-heading); font-size: 56px; line-height: 1; margin: 4px 0 !important; }
.pv-quiz-verdict { font-size: 17px; margin: 13.8px 0 4.6px !important; }
.is-pass .pv-quiz-verdict { color: var(--green); font-weight: 600; }
.is-fail .pv-quiz-verdict { color: var(--red); }
.pv-quiz-save { font-size: 13px; color: var(--neutral-700); }
.pv-quiz-save.is-bad { color: var(--red); }
.pv-quiz-weak { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.pv-quiz-weak li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--divider-soft); padding: 3px 0; }
.pv-quiz-weak span { color: var(--neutral-700); font-variant-numeric: tabular-nums; }

@media print {
  .pv-lesson-progress, .pv-lesson-toc, .pv-lesson-test { display: none !important; }
}


/* ==========================================================================
   MOTYW ARKONA — tekstury i ramki jak na stronie www (css/motywy/arkona.css)
   Trzymane na końcu pliku, żeby nadpisywały reguły wyżej.
   Grafiki: img/tex-linen.webp, img/header-bar.webp, img/border-braid.webp, img/leather-tab.webp
   ========================================================================== */

/* — tło: len — */
body { background-color: var(--bg); background-image: url('img/tex-linen.webp'); background-size: 512px 512px; }

/* — plecionka: kuta, z cieniowaniem pręta — */
.pv-braid { z-index: 30; }
.pv-braid i {
  width: 44px; opacity: 1; mix-blend-mode: normal; background-color: #9a9a96;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.1) 18%, rgba(255,255,255,.28) 42%, rgba(255,255,255,0) 60%, rgba(0,0,0,.25) 82%, rgba(0,0,0,.6) 100%),
    url('img/border-braid.webp'),
    url('img/plecionka.png');
  background-size: 100% 100%, 100% auto, 100% auto;
  background-repeat: no-repeat, repeat-y, repeat-y;
}
.pv-braid i.l { box-shadow: inset -3px 0 6px rgba(0,0,0,.35), 4px 0 12px rgba(40,25,10,.35); }
.pv-braid i.r { box-shadow: inset 3px 0 6px rgba(0,0,0,.35), -4px 0 12px rgba(40,25,10,.35); }

/* — górny pasek — */
.pv-topbar { background-color: #e6dccb; background-image: url('img/header-bar.webp'), linear-gradient(180deg, #efe7d9 0%, #e2d7c3 100%); background-size: cover; border-bottom-color: #c9b99c; box-shadow: 0 3px 10px rgba(60, 40, 20, .18); }
.pv-brand img { width: 53px; height: 53px; }
.pv-brand-text { font-size: 24px; letter-spacing: .14em; }
.pv-nav { font-size: 16px; letter-spacing: .01em; }
.pv-nav > a, .pv-dropdown-btn { color: var(--text); border-bottom-width: 3px; padding-bottom: 3px; }
.pv-nav > a.is-active, .pv-dropdown-btn.is-active { box-shadow: 0 2px 0 rgba(90, 55, 20, .25); }
.pv-nav a.pv-logout { color: var(--neutral-700); font-size: 13px; }
.pv-dropdown-menu { background: var(--box); border-color: #c9b99c; box-shadow: var(--shadow-md); }

/* — stopka — */
.pv-footer { background-color: #ddd0b8; background-image: url('img/tex-linen.webp'); background-size: 512px 512px; border-top-color: #c4b292; box-shadow: inset 0 3px 8px rgba(60, 40, 20, .12); }

/* — boksy — */
/* Tło wnętrza boksów: półprzezroczysta szarość (czytelność na słabszych monitorach).
   Jaśniej/ciemniej = zmień ostatnią liczbę (krycie) albo kolor w --box-bg. */
:root { --box-bg: rgba(242, 240, 236, .78); }
.pv-box { background: var(--box-bg); border-color: #c9b99c; border-radius: 6px; box-shadow: var(--shadow-sm); }
/* Profil / karta postaci (ekwipunek.php) nie używa .pv-box — cała karta leży na tym samym podkładzie */
.pv-cp { background: var(--box-bg); border: 1px solid #c9b99c; border-radius: 6px; box-shadow: var(--shadow-sm); padding-left: clamp(16px, 3vw, 36px); padding-right: clamp(16px, 3vw, 36px); margin-top: 24px; margin-bottom: 24px; }
.pv-login-box { border: 10px solid transparent; border-radius: 14px; background: var(--parchment) padding-box, var(--wood) border-box; box-shadow: 0 10px 24px rgba(50,30,15,.35), inset 0 0 0 1px rgba(40,20,8,.5); }

/* — przyciski: zwykły = jasny z obwódką, wypełniony = brązowy (jak .btn-primary na www) — */
.pv-btn { color: var(--accent-800); border-color: var(--accent); background: rgba(255, 250, 240, .35); }
.pv-btn:hover { background: rgba(255, 250, 240, .75); color: var(--accent-800); }
.pv-btn-red { color: var(--red); border-color: rgba(138, 47, 47, 0.55); }
.pv-btn-red:hover { background: rgba(138, 47, 47, 0.08); color: #6b1f1f; }
.pv-btn-ghost, .pv-btn-ghost:hover { background: transparent; border-color: transparent; }
.pv-btn-block, .pv-btn-fill, .pv-add-entry .pv-btn.active, .pv-cp-save .pv-btn.is-dirty {
  color: #f6ecd6; border-color: #4e2c12; background: linear-gradient(180deg, #8e5a30, #6a3f1f);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 4px rgba(60,35,15,.3);
}
.pv-btn-block:hover, .pv-btn-fill:hover, .pv-add-entry .pv-btn.active:hover, .pv-cp-save .pv-btn.is-dirty:hover { color: #fff7e8; background: linear-gradient(180deg, #9c6538, #774724); }
.pv-btn-block:active, .pv-btn-fill:active { background: linear-gradient(180deg, #6a3f1f, #5a3517); }

/* — pola formularzy — */
.pv-input { background-color: var(--field); border-color: rgba(150, 115, 70, .5); border-radius: 3px; box-shadow: inset 0 1px 2px rgba(80,50,20,.12); }
.pv-input:focus { border-color: var(--accent); box-shadow: inset 0 1px 2px rgba(80,50,20,.12), 0 0 0 2px rgba(168,116,62,.2); }
/* lista rozwijana ze skórzaną zakładką (jak w generatorze tkanin na www) */
select.pv-input:not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; cursor: pointer; padding-right: 54px;
  background: url('img/leather-tab.webp') right -3px center / auto calc(100% + 6px) no-repeat, linear-gradient(180deg, #faf4e7, #ece0c6);
}

/* — druk: bez tekstur — */
@media print {
  body { background: #fff; background-image: none; }
  .pv-box, .pv-cp { background: #fff; box-shadow: none; border: 0; }
}

/* ==========================================================================
   FLAGA "NIEZGODNE Z REGULAMINEM" (sprzet-flaga.php) · SPOSÓB NABYCIA · OBÓZ (oboz.php)
   ========================================================================== */
.pv-tag-flag { background: rgba(138, 47, 47, 0.08); color: var(--red); border: 1px solid rgba(138, 47, 47, 0.45); }
.pv-cp-item.is-rejected { border-color: rgba(138, 47, 47, 0.45); background: rgba(138, 47, 47, 0.04); }
.pv-cp-item.is-rejected:hover { border-color: var(--red); background: rgba(138, 47, 47, 0.08); }
.pv-cp-item.is-rejected .pv-cp-item-pts { color: var(--red); }
.pv-flag-banner {
  margin: 0 0 14px; padding: 9px 13px;
  border: 1px solid rgba(138, 47, 47, 0.45); border-left-width: 4px; border-radius: var(--radius);
  background: rgba(138, 47, 47, 0.06); color: var(--red); font-size: 14px; line-height: 1.5;
}
.pv-flag-banner .pv-muted-sm { color: var(--neutral-700); }
.pv-flag-admin { display: grid; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--divider); }
.pv-flag-admin .pv-input { margin: 0; }
.pv-flag-admin-head { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pv-flag-admin-lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--neutral-600); }
.pv-flag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-flag-actions .pv-btn { margin: 0; }
.pv-flag-fields label:has(input:checked) { color: var(--red); }
/* Pole bez akceptacji na karcie przedmiotu */
.pv-flagged, .pv-checklist li.pv-flagged { color: var(--red); }
.pv-flagged::before { content: '⚑ '; }
.pv-checklist li.pv-flagged { border-left-color: var(--red); }
.pv-acq-person, .pv-camp-people { margin-top: 8px; }
.pv-acq-person .pv-label, .pv-camp-people .pv-label { margin-top: 0; }
.pv-acq-person #acq-from { margin-top: 6px; }
.pv-camp-search { width: min(100%, 240px); }
.pv-camp-add { margin-left: auto; }

/* ==========================================================================
   NOTATNIK — sekcja na profilu (ekwipunek.php)
   ========================================================================== */
.pv-cp-notes .pv-cp-quest { padding: 9.2px 13.8px; }
.pv-cp-notes .pv-cp-quest-label { text-decoration: none; color: var(--text); font-weight: 600; }
.pv-cp-notes .pv-cp-quest-label:hover { color: var(--accent-700); text-decoration: underline; }
.pv-cp-note-ico { font-size: 18px; line-height: 1; }
.pv-notes-new { margin-bottom: 18.4px; }
.pv-notes-form { display: grid; gap: 6px; margin-top: 9.2px; }
.pv-notes-form .pv-label { margin: 6px 0 0; }
.pv-notes-tpl { display: grid; gap: 6px; }
.pv-notes-tpl label {
  display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px;
  padding: 8px 10px; border: 1px solid var(--divider); border-radius: var(--radius-sm); cursor: pointer;
}
.pv-notes-tpl label:has(input:checked) { border-color: var(--accent); background: rgba(168, 116, 62, .08); }
.pv-notes-tpl small { grid-column: 2; color: var(--neutral-700); font-size: 12.5px; line-height: 1.4; }

/* NOTATNIK — strona tematu (notatnik.php) */
.pv-notes-tools { margin-top: 12px; flex-wrap: wrap; }
.pv-notes-tools a.pv-btn { text-decoration: none; }
.pv-notes-count { float: right; font-weight: normal; opacity: .8; }
.pv-notes-empty { margin: 0; }
.pv-note-cite { font-family: Consolas, monospace; font-size: 13px; color: var(--accent-700); text-decoration: none; border: 1px solid var(--accent-300); border-radius: 3px; padding: 1px 6px; }
.pv-note-cite:hover { background: rgba(168, 116, 62, .10); }
a.pv-note-title-link { color: var(--text); text-decoration: none; }
a.pv-note-title-link:hover { color: var(--accent-700); text-decoration: underline; }
.pv-note-quote { margin: 6px 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: var(--field); font-style: italic; font-size: 14px; line-height: 1.6; }
.pv-note-comment { font-size: 14px; }
.pv-note-hit { outline: 2px solid var(--accent); outline-offset: 2px; }
.pv-notes-delete { margin: 6px 0 24px; text-align: right; }

/* NOTATNIK — okienko „📌 Do notatnika” (includes/notatnik-okno.php; czytnik i karta pozycji) */
.pv-pin-tlo {
  position: fixed; inset: 0; z-index: 1000; background: rgba(40, 25, 10, .45);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 16px; overflow-y: auto;
}
.pv-pin-tlo[hidden], .pv-pin-nowy[hidden], .pv-pin-sekcja-pole[hidden], .pv-pin-toast[hidden], .pv-pin-blad[hidden] { display: none; }
.pv-pin-okno { width: min(560px, 100%); margin: 0; box-shadow: 0 10px 40px rgba(0, 0, 0, .3); background: #f6efe1; background: var(--box, #f6efe1); }
.pv-pin-okno .pv-head { background-color: #f6efe1; background-color: var(--box, #f6efe1); }
.pv-pin-okno .pv-label { display: block; margin: 10px 0 4px; }
.pv-pin-okno .pv-input { width: 100%; box-sizing: border-box; }
.pv-pin-nowy { display: grid; gap: 6px; margin-top: 6px; }
.pv-pin-cytat { font-family: Consolas, monospace; font-size: .85em; font-weight: normal; opacity: .85; margin-left: 6px; }
.pv-pin-przyciski { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0 0; }
.pv-pin-toast {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1001;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 4px;
  background: #3f1218; color: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, .3); font-size: 14px;
}
.pv-pin-toast a { color: #f3d98b; }
.pv-repo-karta-akcje { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pv-repo-karta-akcje[hidden], [data-pin-otworz][hidden] { display: none; }
.pv-note-move { display: inline-flex; gap: 2px; margin: 0; }
.pv-note-move .pv-btn { min-width: 30px; padding-left: 6px; padding-right: 6px; }
.pv-note-move .pv-btn:disabled { opacity: .35; cursor: default; }
.pv-note-rich a { color: var(--accent-700); text-decoration: underline; }
.pv-note-rich a.pv-note-cite { text-decoration: none; }
.pv-note-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.pv-note-copy .pv-input { width: auto; max-width: 280px; padding-top: 3px; padding-bottom: 3px; margin: 0; }
form.pv-notes-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pv-note-item { margin-top: 12px; padding: 8px 12px; border: 1px dashed var(--accent-300); border-radius: var(--radius-sm); }
.pv-note-item p { margin: 0 0 6px; }
.pv-note-item form { margin: 0; }
.pv-note-src { font-size: 12.5px; color: var(--accent-700); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pv-note-src-ok { font-size: 11px; }

/* ZGŁOŚ PROBLEM LUB POMYSŁ — pływający przycisk (includes/footer.php); okienko używa .pv-pin-tlo/.pv-pin-okno */
.pv-zglos-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 900;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 1px solid var(--accent-700); border-radius: 22px;
  background: var(--accent-700); color: #fff; font-family: var(--font-body); font-size: 13px;
  box-shadow: 0 4px 16px rgba(40, 25, 10, .35); cursor: pointer; opacity: .92;
}
.pv-zglos-fab:hover, .pv-zglos-fab:focus-visible { opacity: 1; background: var(--accent-800); }
@media (max-width: 600px) {
  .pv-zglos-fab { right: 12px; bottom: 12px; padding: 10px 12px; font-size: 18px; }
  .pv-zglos-fab span { display: none; }   /* na telefonie sam dymek 💬 */
}
.pv-zglos-rodzaj { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: 14px; }
.pv-zglos-rodzaj label { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; }
.pv-pin-okno textarea.pv-input { width: 100%; box-sizing: border-box; }
.pv-zglos-info { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.pv-remember { margin: 4px 0 12px; }
@media print { .pv-zglos-fab { display: none !important; } }

/* Zapisz + Anuluj pod formularzem (dodaj-sprzet.php, edytuj-sprzet.php) */
.pv-form-actions { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.pv-form-actions .pv-btn { margin: 0; text-align: center; text-decoration: none; }
.pv-form-actions button.pv-btn { flex: 1; }

/* === KALENDARZ 6 MIESIĘCY (includes/kalendarz.php) === */
.pv-cal6-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pv-cal6-head-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pv-cal6-head-btns .pv-btn { margin-top: 0; }
.pv-cal6-scroll { overflow-x: auto; padding-bottom: 4px; }
#kalendarz .pv-box-body { position: relative; }
.pv-cal6 {
  position: relative; min-width: 760px;
  display: grid; grid-template-columns: 30px 1fr 30px; column-gap: 6px; row-gap: 6px; align-items: center;
}
.pv-cal6-arrow {
  width: 30px; height: 30px; padding: 0; border: 1px solid var(--accent); border-radius: 50%;
  background: var(--field); color: var(--accent-700); cursor: pointer; font-size: 13px; line-height: 1;
}
.pv-cal6-arrow:hover { background: var(--accent); color: #fff; }
.pv-cal6-years { position: relative; height: 26px; overflow: hidden; }
.pv-cal6-year {
  position: absolute; top: 0; white-space: nowrap;
  font-family: var(--font-heading); font-size: 21px; font-weight: 600; line-height: 26px; color: var(--accent-800);
  transition: left .3s ease, transform .3s ease, opacity .2s;
}
.pv-cal6-grid { grid-column: 2; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: 14px; }
.pv-cal6-month { position: relative; min-width: 0; }
.pv-cal6 .pv-mini-cal-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pv-cal6 .pv-mini-cal-day { min-width: 0; overflow: hidden; }
.pv-cal6-month.is-newyear::before {   /* czerwony separator grudzień | styczeń, sięga do wiersza z rokiem */
  content: ""; position: absolute; left: -8.5px; top: -34px; bottom: 0; width: 3px; border-radius: 2px; background: #c0141b;
}
.pv-cal6 .pv-mini-cal-day.has-item { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .22); border-color: transparent; }
.pv-cal6 .pv-mini-cal-day.is-click { cursor: pointer; }
.pv-cal6 .pv-mini-cal-day.is-click:hover { outline: 2px solid var(--accent-700); outline-offset: -1px; }
.pv-cal6 .pv-mini-cal-day.is-today { outline: 2px solid #c0141b; outline-offset: -1px; font-weight: 700; }
.pv-cal6-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 10px; font-size: 12px; color: var(--muted); }
.pv-cal6-legend span { display: inline-flex; align-items: center; gap: 5px; }
.pv-cal6-legend i, .pv-cal6-pop i, .pv-type-dot {
  display: inline-block; width: 12px; height: 12px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); flex: none;
}
.pv-cal6-today { margin-left: auto; border: 1px solid var(--accent); background: none; color: var(--accent-700); border-radius: 12px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.pv-cal6-pop {
  position: absolute; z-index: 60; min-width: 200px; max-width: 300px; padding: 8px 10px;
  background: var(--box); border: 1px solid var(--accent); border-radius: 4px; box-shadow: 0 6px 22px rgba(40, 25, 10, .3); font-size: 13px;
}
.pv-cal6-pop-date { font-weight: 600; margin-bottom: 4px; color: var(--accent-800); }
.pv-cal6-pop a { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--text); text-decoration: none; }
.pv-cal6-pop a:hover { color: var(--accent-700); text-decoration: underline; }
.pv-cal6-pop a span { color: var(--muted); font-size: 11px; }
.pv-cal6-pop-add { border-top: 1px solid var(--divider-soft); margin-top: 6px; padding-top: 4px; }
.pv-cal6-pop-add a { color: var(--accent-700); font-weight: 600; }
.pv-type-dot { width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 2px; }

/* === ROZLICZENIA: osoby „dla kogo” + rozliczone (wyjazd.php) === */
.pv-settle { margin: 0 0 2px; font-size: 13px; }
.pv-settle label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pv-settle input:disabled { cursor: default; }
.pv-settle.is-settled label { color: var(--green); text-decoration: line-through; text-decoration-color: rgba(74, 92, 31, .5); }
.pv-people-pick { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 2px 0 6px; padding: 6px 8px; border: 1px dashed var(--divider); border-radius: var(--radius-sm); }
.pv-people-all { flex-basis: 100%; }

/* Kalendarz na telefonie: 3 miesiące, strzałki w wierszu z rokiem (includes/kalendarz.php) */
@media (max-width: 700px) {
  .pv-cal6 { min-width: 0; grid-template-columns: 1fr; }
  .pv-cal6-scroll { overflow-x: visible; }
  .pv-cal6-years { grid-column: 1; grid-row: 1; }   /* pełna szerokość = jak siatka; strzałki leżą na wierzchu */
  .pv-cal6-arrow { grid-row: 1; position: relative; z-index: 2; }
  .pv-cal6-arrow[data-cal6-prev] { grid-column: 1; justify-self: start; }
  .pv-cal6-arrow[data-cal6-next] { grid-column: 1; justify-self: end; }
  .pv-cal6-grid { grid-column: 1; grid-row: 2; column-gap: 10px; }
  .pv-cal6-month.is-newyear::before { left: -6.5px; }
  .pv-cal6 .pv-mini-cal-day { font-size: 10px; }
  .pv-cal6 .pv-mini-cal-wd { font-size: 8.5px; }
  .pv-cal6 .pv-mini-cal-title { font-size: 14px; }
}
