/* ==== FONTS (fonts.css) ==== */
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/PlayfairDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/fonts/Roboto-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Mono";
  src: url("/fonts/RobotoMono-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/RobotoCondensed-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/RobotoCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* ==== STYLES (styles.css) ==== */
:root {
  --brand-orange: #ffa700;
  --brand-orange-dark: #ff8100;
  --brand-soft: #ffebcc;
  --brand-green: #38d000;
  --brand-blue: #007eff;
  --brand-red: #e70000;
  --brand-yellow: #ffcf00;
  --text-color: #333;
  --text-muted: #8b8b8b;
  --bg: #fcfcfc;
  --card-bg: #fff;
  --border: #ddd;
  --border-soft: #f0f0f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.14);
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 10px;
  --transition-fast: 0.15s ease;
  --transition: 0.3s ease;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Roboto", sans-serif;
  background-color: var(--bg);
  color: var(--text-color);
  margin: 5px;
 /* line-height: 1.5;*/
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.lyric_block {
  font-family: "Roboto Mono", monospace;
  white-space: nowrap;
}
div#lyrics {
  font-family: "Roboto Mono", monospace;
}
.hidden {
  display: none;
}
#globalEditButton.hidden {
    display: none;
}
.youtube-icon {
  width: auto;
  height: 16px;
}
#content {
  min-height: 0;
}
#navbar {
    position: relative;
    z-index: 1000;
}

#navbar nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;

  padding: 7px 14px;

  background: linear-gradient(
        90deg,
        var(--brand-orange),
        var(--brand-orange-dark)
    );

  box-shadow: 0 4px 6px rgba(92, 92, 92, 0.35);

  border-radius: 0 0 var(--radius-md) var(--radius-md);

  backdrop-filter: saturate(120%) blur(2px);
  
}


.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 12px;
}

#navbar-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 4px;

    margin: 0;
    padding: 0;

    list-style: none;
}

#navbar-menu li {
    margin: 0;
    padding: 0;

    background: transparent;
    border: 0;
    border-radius: 9px;

    transition: background-color .18s ease;
}

#navbar-menu li:hover {
    background: rgba(255, 255, 255, .12);

    transform: none;
    text-shadow: none;
}

#navbar-menu li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 36px;

    padding: 7px 11px;

    border-radius: 9px;

    color: #fff;
    text-decoration: none;

    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 500;

    white-space: nowrap;

    transition:
        background-color .18s ease,
        color .18s ease;
}

#navbar-menu li a:hover {
    background: transparent;
    color: #fff;

    transform: none;
}

#navbar-menu li a i {
    width: 18px;

    text-align: center;

    font-size: 14px;

    opacity: .95;

    flex-shrink: 0;
}

#navbar-menu li a span {
    display: inline-block;
}

.logo {
  display: flex;
  align-items: center;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  flex-shrink: 0;
}

.logo-icon {
  width: auto;
  height: 45px;
  margin-right: 8px;
}


#hamburgerButton {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
   margin: 0;
    padding: 6px;
    background: transparent;
    border: 0;
    box-shadow: none;
}


.hamburger .bar {
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}


#menu {
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 400px;
  max-width: 100%;
  padding: 8px;
  background-color: var(--card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
#menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#menu ul li {
  border: 1px solid #ccc;
  padding: 6px 10px;
  margin: 5px 0;
  cursor: pointer;
  transition: background-color var(--transition), box-shadow var(--transition);
  border-radius: 4px;
  background: #fff;
}
#menu ul li a {
  font-size: 14px;
  color: #00000024;
  text-decoration: none;
}
#menu ul li:hover {
  background-color: rgba(255, 167, 0, 0.19);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
#menu li.selected {
  background-color: #3498db;
  color: black;
  border-color: #2980b9;
}
#menu li.selected:hover {
  background-color: #2980b9;
  color: #fff;
}
#menuList {
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
#songSearchContainer {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: #ffa700;
  padding: 4px;
}
#songSearchContainer input {
  width: 100%;
  padding: 8px 10px;
  font-size: 16px;
  box-sizing: border-box;
}
#content {
  flex: 1;
  padding: 8px;
}
#displayContent {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  font-family: "Roboto", sans-serif;
  background-color: var(--card-bg);
  padding: 10px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 10px;
}

.song-title-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.song-title {
  margin-right: 10px;
  flex-grow: 1;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.song-title-container a {
  display: inline-flex;
  align-items: center;
}
.icon-container i {
  margin-left: 10px;
}
.song-title-container .fa-youtube {
  vertical-align: middle;
  color: #ff0000;
}
.song-title-container .fa-edit {
  font-size: 16px;
  vertical-align: middle;
  color: #007b00;
}
.chord {
  color: red;
  font-weight: bold;
  position: relative;
  top: 0.4em;
}
#songTitle {
  margin-left: 10px;
  margin-top: 2px;
  font-size: 2vh;
  display: flex;
  justify-content: center;
  color: var(--brand-orange-dark);
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
#container {
  display: flex;
  margin-top: 5px;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
}
#videoElement {
  height: 1200px;
}
.song-search-item {
  padding: 6px;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 5;
}
.song-search-item input {
  width: 100%;
  padding: 6px 34px 6px 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}
.song-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.song-search-clear {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  font-size: 16px;
  opacity: 0.85;
}
.song-search-clear:hover {
  color: #444;
  opacity: 1;
}
.song-search-clear.hidden {
  display: none;
}
p {
  text-align: center;
  font-size: 18px;
  margin: 10px 10px 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
th {
  background-color: #f2f2f2;
  font-weight: bold;
  font-size: 16px;
}
h1 {
  font-size: small;
}
h2 {
  text-align: center;
  margin-top: 14px;
  font-size: 18px;
}
h5 {
  color: var(--text-muted);
  display: inline;
  padding-left: 12px;
}
h1,
h2,
h3,
h4,
h5,
h6,
p {
  line-height: 1.45;
}
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
li {
  background-color: #ecf0f1;
  border: 1px solid #ccc;
  padding: 8px 12px;
  margin: 5px 0;
  cursor: pointer;
  transition: background-color var(--transition);
  border-radius: 4px;
}
form {
  max-width: 100%;
  margin: 10px auto;
  padding: 10px;
  background-color: #fff;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
}
input[type="checkbox"] {
  width: auto;
  display: inline-block;
  position: relative;
  padding-left: 35px;
  margin: 2px;
  cursor: pointer;
  font-size: 16px;
}
#buttons {
  display: flex;
  flex-basis: 100%;
  justify-content: space-between;
}
button[type="submit"],
button[type="button"] {
  border: none;
  border-radius: var(--radius-sm);
  background-color: var(--brand-orange);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color var(--transition);
  margin-top: 10px;
}
button[type="submit"]:hover {
  background-color: var(--brand-orange-dark);
}
button.disabled {
  background-color: #ccc;
  color: #777;
  cursor: not-allowed;
  border: 1px solid #aaa;
  opacity: 0.6;
}
button:not(.disabled):hover {
  background-color: var(--brand-orange-dark);
  color: #fff;
  cursor: pointer;
}
#lyrics {
  width: 100%;
  height: 400px;
  border: 1px solid #ccc;
  padding: 10px;
  overflow-y: auto;
}
#tools {
  flex-shrink: 0;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.tools-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  margin: 2px 0;
}
.tools-export {
  display: flex;
}
#tools button {
  background-color: var(--brand-soft);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 16px;
  cursor: pointer;
  margin: 4px;
  transition: background-color var(--transition),
    transform var(--transition-fast), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
#tools button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
#tools .tools-export button {
  background-color: #c9c9c9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}
#tools .tools-export button:hover {
  background-color: #005fcc;
  transform: scale(1.05);
}
#tools .tools-export button:active {
  background-color: #004999;
  transform: scale(0.98);
}

.tools-main button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  min-height: 42px;
  padding: 9px 16px;

  background: #fff;
  color: #444;

  border: 1px solid #e3e3e3;
  border-radius: 9px;

  box-shadow: 0 2px 7px rgba(0, 0, 0, .06);

  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 600;

  transition:
    background-color .18s ease,
    border-color .18s ease,
    color .18s ease,
    box-shadow .18s ease,
    transform .1s ease;
}

.tools-main button i {
  color: var(--brand-orange-dark);
  font-size: 15px;
}

.tools-main button:hover {
  background: #fffaf2;
  border-color: rgba(255, 167, 0, .45);
  color: var(--brand-orange-dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}

.tools-main button:hover i {
  color: var(--brand-orange-dark);
}

.tools-main button:active {
  transform: scale(.98);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
}

.music-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: #ff8100;
  
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
button#hamburgerButton {
  box-shadow: none;
  margin-top: 0;
}
button {
  font-family: "Roboto", sans-serif;
  border: none;
  background: none;
  cursor: pointer;

  padding: 10px 18px;
  border-radius: 8px;

  font-size: 14px;
  font-weight: 600;

  box-shadow: var(--shadow-sm);

  transition:
    background-color var(--transition),
    transform var(--transition-fast),
    box-shadow var(--transition);
}

button#save {
  background-color: var(--brand-blue);
  width: 30%;
  color: #fff;
}
button#del {
  background-color: var(--brand-red);
  width: 30%;
  color: #fff;
}
button#cancel {
  background-color: var(--brand-green);
  width: 30%;
  color: #fff;
}
button#send {
  background-color: var(--brand-yellow);
  width: 120px;
  color: #333;
}
button i {
  font-size: 1rem;
}
#prevnextBtn {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}
#prevnextBtn button {
  padding: 5px 10px;
  font-size: 16px;
  background-color: var(--brand-soft);
  color: #ff8100;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition);
}
#prevnextBtn button:hover {
  background-color: var(--brand-orange-dark);
}
#transposeIcon.fas.fa-music {
  color: var(--brand-orange);
}
#transposeValue {
  margin: 0 10px;
  font-size: 1.5rem;
  color: var(--brand-orange);
}
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
textarea {
  padding: 10px;
  margin: 5px 0;
  border: 1px solid #ccc;
  border-radius: var(--radius-md);
  font-size: 20px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #fff;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
textarea:focus {
  border-color: var(--brand-orange-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 129, 0, 0.2);
}
legend.css-14lo706 {
  font-family: "Roboto Condensed";
  color: lightgray;
}
fieldset {
  border-style: hidden;
}
#ranking ul {
  margin-left: 1.5em;
  padding-left: 0;
  list-style-position: inside;
}
#editForm {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: #111;
  gap: 16px;
  font-family: "Roboto Mono", monospace;
}
#editForm fieldset {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 14px;
  background: #f7f7f7;
}
#editForm legend {
  padding: 0 8px;
  font-size: 13px;
  color: #6b7280;
}
#editForm input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111;
  font-size: 15px;
}
#editorContainer.horizontal {
  flex-direction: row;
}
#editorContainer.vertical {
  flex-direction: column;
}
#editorContainer > div {
  min-height: 100px;
}
.lyrics_edit {
  min-height: 240px;
  padding: 14px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-family: "Roboto Mono", monospace;
  white-space: pre-wrap;
  line-height: 1.5;
  outline: none;
  color: #111;
}
#editorIcons {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.button_edit {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #111;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s;
}
.button_edit:hover {
  background: #e5e7eb;
}
#buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
#buttons button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}
#save {
  background: #22c55e;
  color: #fff;
}
#del {
  background: #ef4444;
  color: #fff;
}
#cancel {
  background: #6b7280;
  color: #fff;
}
.song-counts {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
  justify-content: center;
}
.song-count-item {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #f1f1f1;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s, transform 0.1s;
}
.song-count-item:hover {
  background-color: #d0eaff;
  transform: translateY(-1px);
}
.song-count-item.total {
  background-color: #e0f7fa;
}
.song-count-item.displayed {
  background-color: #e8f5e9;
}
.song-count-item.new {
  background-color: #fff3e0;
  color: #d84315;
  font-weight: 700;
}
.song-count-item.ranking {
  background-color: #ede7f6;
}
.song-count-item .count-number {
  font-weight: 700;
  min-width: 24px;
  text-align: center;
}
.song-count-item .count-label {
  font-size: 0.8rem;
  color: #333;
}

.admin-button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-button i {
  color: #fff;
  font-size: 18px;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.admin-button:hover i {
  transform: rotate(120deg);
}
.admin-button.active i {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.7));
  transform: scale(1.15) rotate(0deg);
}
.chordpro {
  font-family: monospace;
  font-size: 11pt;
  line-height: 1.4;
}
.chordpro .chord {
  font-weight: 700;
}
.chordpro .lyrics {
  white-space: pre;
}
#fullscreenOverlay {
  scroll-behavior: auto !important;
}
/* ==== HAMBURGERS (hamburgers.css) ==== */
.hamburger {
  padding: 15px 15px;
  display: inline-block;
  cursor: pointer;
  transition-property: opacity, filter;
  transition-duration: 0.15s;
  transition-timing-function: linear;
  font: inherit;
  color: inherit;
  text-transform: none;
  background-color: transparent;
  border: 0;
  margin: 0;
  overflow: visible;
}
.hamburger:hover {
  opacity: 0.7;
}
.hamburger.is-active:hover {
  opacity: 0.7;
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
  background-color: #fff;
}

.hamburger-box {
  width: 40px;
  height: 24px;
  display: inline-block;
  position: relative;
}

.hamburger-inner {
  display: block;
  top: 50%;
  margin-top: -2px;
}
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 40px;
  height: 4px;
  background-color: #fff;
  border-radius: 4px;
  position: absolute;
  transition-property: transform;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}
.hamburger-inner::before,
.hamburger-inner::after {
  content: "";
  display: block;
}
.hamburger-inner::before {
  top: -10px;
}
.hamburger-inner::after {
  bottom: -10px;
}

/*
   * Slider
   */
.hamburger--slider .hamburger-inner {
  top: 2px;
}
.hamburger--slider .hamburger-inner::before {
  top: 10px;
  transition-property: transform, opacity;
  transition-timing-function: ease;
  transition-duration: 0.15s;
}
.hamburger--slider .hamburger-inner::after {
  top: 20px;
}

.hamburger--slider.is-active .hamburger-inner {
  transform: translate3d(0, 10px, 0) rotate(45deg);
}
.hamburger--slider.is-active .hamburger-inner::before {
  transform: rotate(-45deg) translate3d(-5.71429px, -6px, 0);
  opacity: 0;
}
.hamburger--slider.is-active .hamburger-inner::after {
  transform: translate3d(0, -20px, 0) rotate(-90deg);
}

/*
   * Slider Reverse
   */
.hamburger--slider-r .hamburger-inner {
  top: 2px;
}
.hamburger--slider-r .hamburger-inner::before {
  top: 10px;
  transition-property: transform, opacity;
  transition-timing-function: ease;
  transition-duration: 0.15s;
}
.hamburger--slider-r .hamburger-inner::after {
  top: 20px;
}

.hamburger--slider-r.is-active .hamburger-inner {
  transform: translate3d(0, 10px, 0) rotate(-45deg);
}
.hamburger--slider-r.is-active .hamburger-inner::before {
  transform: rotate(45deg) translate3d(5.71429px, -6px, 0);
  opacity: 0;
}
.hamburger--slider-r.is-active .hamburger-inner::after {
  transform: translate3d(0, -20px, 0) rotate(90deg);
}
/* (umieszczę tu treść Twojego pliku hamburgers.css po stronie serwera — brak w załącznikach) */
/* ==== MODALS (modals.css) ==== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  z-index: 1000;
}
.modal {
  flex-direction: column;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1001;
  background: #fff;
  max-height: 90vh;
  overflow-y: auto;
  display: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 1rem;
}
.modal-header {
  flex: 0 0 auto;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-footer {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff;
}
.modal-body {
  flex: 1 1 auto;
  padding: 8px;
  overflow-y: auto;
}
@media (max-height: 650px) {
  .modal {
    border-radius: 8px;
  }
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
.modal label {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  color: #333;
}
.modal input,
.modal textarea,
.modal select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.modal input:focus,
.modal textarea:focus,
.modal select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

button.danger {
  background: #dc2626;
  color: #fff;
}
button.danger:hover {
  background: #b91c1c;
}
button[data-close] {
  background: #e5e7eb;
  color: #111;
}
button[data-close]:hover {
  background: #d1d5db;
}
.modal-close {
  background: none;
  font-size: 20px;
  color: #555;
  cursor: pointer;
}
.user-info p {
  margin: 8px 0;
  font-size: 14px;
  color: #444;
}
.user-links {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}
.user-info-block {
  display: flex;
  flex-direction: column;
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
  gap: 4px;
}
.user-info-block .info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-info-block .icon {
  width: 24px;
  text-align: center;
  font-size: 18px;
  flex-shrink: 0;
}
.user-info-block .label {
  font-size: 13px;
  color: #666;
  min-width: 90px;
}
.user-info-block .value {
  font-size: 16px;
  font-weight: 500;
  color: #222;
}
@media (max-width: 700px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .modal {
    width: 90%;
  }
}
#modalColor {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #ccc;
  cursor: pointer;
}
#modalColor:disabled {
  cursor: not-allowed;
}
#modalColor::-webkit-color-swatch {
  border-radius: 6px;
  border: none;
}
#modalColor::-webkit-color-swatch-wrapper {
  padding: 0;
}
.user-event-time {
  margin: 4px 0 10px;
  font-size: 14px;
  color: #666;
}
.modal input[type="color"]::-webkit-color-swatch {
  border-radius: 6px;
  border: none;
}
.modal input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 4px;
}
.field-with-toggle {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin-bottom: 8px;
}
.field-with-toggle > label {
  font-weight: 500;
}
.field-with-toggle .input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.field-with-toggle .input-row > input:not([type]),
.field-with-toggle .input-row > input[type="text"],
.field-with-toggle .input-row > textarea,
.field-with-toggle .input-row > select {
  flex: 1 1 auto;
  min-width: 0;
}
.vis-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 12px;
  color: #475569;
  user-select: none;
  white-space: nowrap;
  line-height: 1;
}
.vis-flag input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
}
#eventFieldsUwielbienie input:not([type]),
#eventFieldsUwielbienie input[type="text"] {
  height: 32px;
  padding: 6px 8px;
  box-sizing: border-box;
}
/* ==== SELECTED (selected.css) ==== */
.song-item {
  cursor: pointer;
  padding: 8px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
  background-color: #f9f9f9;
  transition: background-color 0.3s;
}
.song-item:hover {
  background-color: #e0e0e0;
}
#sortedList {
  list-style-type: none;
  padding: 0;
  margin-top: 20px;
}
#sortedList li {
  padding: 8px 12px;
  cursor: pointer;
  background-color: #cbf5d6;
  margin: 5px 0;
  border-color: #009126;
}
#sortingList li.selected {
  background-color: #3498db;
  color: #fff;
  border-color: #2980b9;
}
.delete-song {
  color: red;
  cursor: pointer;
  margin-left: 10px;
}
.sorting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border-bottom: 1px solid #ddd;
  background: #cfcfcf;
  gap: 8px;
}
.sorting-name {
  flex: 1;
  font-weight: 500;
}
.sorting-flag {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.delete-sorting {
  margin-left: 16px;
  cursor: pointer;
  color: #f55;
  display: flex;
  align-items: center;
  font-size: 16px;
  transition: color 0.2s;
}
.delete-sorting:hover {
  color: #d33;
}
/* ==== POSTERS (posters.css) ==== */
.images-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  align-items: flex-start;
}
.poster-tile {
  display: flex;
  position: relative;
  width: 220px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  flex: 1 1 calc(33% - 10px);
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.poster-tile:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}
.poster-tile img {
  width: 100%;
  display: block;
  transition: transform 0.35s ease;
}
.poster-tile:hover img {
  transform: scale(1.03);
}
.poster-title {
  padding: 10px 8px;
  font-size: 14px;
  text-align: center;
  background: #fff;
}
.poster-admin-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.poster-tile:hover .poster-admin-overlay {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.poster-admin-overlay button {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.poster-admin-overlay button:hover {
  background: #2563eb;
  transform: scale(1.1);
}
.poster-admin-overlay .poster-delete:hover {
  background: #dc2626;
}
.poster-fullscreen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: zoom-out;
}
.poster-fullscreen-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  cursor: default;
}
.poster-preview {
  margin-top: 8px;
  max-width: 180px;
}
.poster-preview img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
/* ==== CALENDAR (calendar.css) ==== */
#calendar,
.fc {
  font-family: "Roboto", sans-serif;
}
#calendar {
  width: 100%;
  max-width: 1100px;
  margin: 12px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 6px;
}
.fc .fc-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
}
.fc .fc-toolbar-title {
  font-weight: 700;
  color: #ff8100;
  font-size: 1.4rem;
  letter-spacing: 0.3px;
  margin: 0;
}
.fc-button {
  background: linear-gradient(135deg, #ffa700, #ff8100);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  margin: 0 2px;
}
.fc-button:hover {
  background: linear-gradient(135deg, #ff8100, #e67600);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}
.fc-button.fc-button-active {
  background: #38d000;
}
.fc-button.fc-today-button {
  background: #007eff;
}
.fc-daygrid-day {
  border: 1px solid #f0f0f0;
  transition: background-color 0.2s;
  cursor: pointer;
}
.fc-daygrid-day:hover {
  background-color: rgba(255, 167, 0, 0.12);
  cursor: pointer;
}
.sunday-cell {
  background-color: rgba(255, 0, 0, 0.07);
}
.saturday-cell {
  background-color: rgba(0, 128, 0, 0.05);
}
.fc-event {
  background-color: #999;
  color: #fff;
  border-radius: 4px;
  padding: 3px 4px;
  font-size: 0.8rem;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.fc-event:hover {
  background-color: #4caf50;
  transform: scale(1.01);
}
.fc-event.fc-draggable {
  border: 2px solid #ff8100;
}
.fc-event-dragging {
  opacity: 0.85;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  cursor: grabbing;
}
.fc-event:hover::after {
  content: attr(title);
  position: absolute;
  background: rgba(51, 51, 51, 0.9);
  color: #fff;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  top: -24px;
  left: 0;
  white-space: nowrap;
  z-index: 10000;
}
.fc-daygrid-day-frame {
  padding: 0 !important;
}
.fc-daygrid-event {
  margin: 0 !important;
  border-radius: 0 !important;
  height: 100% !important;
}
.fc-daygrid-day-events {
  margin: 0 !important;
  height: 100%;
}
.fc-event-title {
  white-space: normal;
  text-align: center;
  font-weight: 600;
}
.poster-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.poster-image {
  max-width: 90vw;
  max-height: 90vh;
  cursor: zoom-out;
}
.fc .fc-daygrid-day.fc-day-other {
  display: none;
}
.fc-daygrid-day-frame {
  padding: 4px;
}
.fc-daygrid-day-number {
  font-size: 14px;
  font-weight: 600;
}
.fc .fc-day-today {
  background: rgba(255, 167, 0, 0.15);
  border-radius: 8px;
}
@media (max-width: 768px) {
  .fc .fc-daygrid-event-time,
  .fc .fc-list-event-time,
  .fc .fc-event-time {
    display: none !important;
  }
  .fc .fc-event-title {
    white-space: normal;
  }
}
@media (max-width: 600px) {
  .fc-daygrid-day-frame {
    padding: 2px;
  }
  .fc-daygrid-day-number {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  #calendar {
    width: 98%;
    padding: 4px;
  }
  .fc .fc-toolbar {
    align-items: stretch;
    gap: 4px;
  }
  .fc .fc-toolbar-title {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 4px;
  }
  .fc-button {
    padding: 3px 8px;
    font-size: 0.75rem;
    margin: 2px 0;
  }
  .fc-event {
    font-size: 0.7rem;
    padding: 2px 3px;
  }
}
#userDescription {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}


/* ============================================================
   DIAKONIA UWIELBIENIA
   ============================================================ */

.diakonia-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 8px;
    color: var(--text-color);
}


/* =========================
   HERO
   ========================= */

.diakonia-hero {
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    grid-template-areas:
        "logo heading"
        "logo verse";
    column-gap: 30px;
    row-gap: 12px;

    align-items: center;
    padding: 34px 38px;
    margin-bottom: 18px;

    border-radius: var(--radius-lg);
    overflow: hidden;

    background: linear-gradient(
        135deg,
        var(--brand-orange),
        var(--brand-orange-dark)
    );

    color: #fff;
    box-shadow: var(--shadow-md);
}

.diakonia-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -80px;
    top: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    pointer-events: none;
}

.diakonia-hero-icon {
    grid-area: logo;
    position: relative;
    z-index: 1;

    width: 120px;
    height: 120px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.diakonia-hero-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.diakonia-hero-content {
    display: contents;
}

.diakonia-hero-heading {
    grid-area: heading;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.diakonia-eyebrow {
    margin: 0 0 6px;

    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.5;

    opacity: 0.92;
}

.diakonia-hero h1 {
    margin: 0 0 12px;
    font-family: "Playfair Display", serif;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.15;
    font-weight: 700;
}

.diakonia-hero-verse {
    grid-area: verse;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.diakonia-hero p {
    max-width: 720px;
    margin: 0;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
}


/* =========================
   SEKCJE
   ========================= */

.diakonia-section {
    margin-bottom: 18px;
    padding: 28px;
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.diakonia-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.diakonia-section-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,167,0,0.13);
    color: var(--brand-orange-dark);
    font-size: 20px;
}

.diakonia-label {
    display: block;
    margin-bottom: 3px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--brand-orange-dark);
}

.diakonia-section h2 {
    margin: 0;
    text-align: left;
    font-family: "Playfair Display", serif;
    font-size: 28px;
    color: var(--text-color);
}

.diakonia-text {
    max-width: 900px;
}

.diakonia-text p {
    margin: 0 0 14px;
    text-align: left;
    font-size: 17px;
    line-height: 1.7;
}

.diakonia-text p:last-child {
    margin-bottom: 0;
}

.diakonia-intro {
    margin: -8px 0 22px;
    text-align: left;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}


/* =========================
   KARTY „CO ROBIMY”
   ========================= */

.diakonia-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.diakonia-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition),
        border-color var(--transition);
}

.diakonia-card-text {
    margin: 0;
    line-height: 1.62;
}

.diakonia-card-quote {
    margin: 16px 0 0;
    padding: 10px 0 2px 14px;
    border-left: 3px solid var(--theme-color, #ffa700);
    color: var(--text-muted, #888);
    font-size: 0.92em;
    line-height: 1.55;
}

/* Właściwy cytat */
.diakonia-card-quote > p {
    margin: 0;
    font-style: italic;
}

/* Cudzysłowy tylko dla cytatu */
.diakonia-card-quote > p::before {
    content: "„";
    font-size: 1.25em;
    font-weight: 600;
    margin-right: 2px;
}

.diakonia-card-quote > p::after {
    content: "”";
}

/* Siglum */
.diakonia-card-quote-siglum {
    margin-top: 4px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 12px;
    font-style: normal;
    color: var(--text-muted);
}

.diakonia-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-md);
}

.diakonia-card-icon {
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255,167,0,0.13);
    color: var(--brand-orange-dark);
    font-size: 18px;
}

.diakonia-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.diakonia-card p {
    margin: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* W trybie administratora puste pole nadal pozostaje klikalne. */
.diakonia-card-quote.diakonia-editable:empty {
    min-height: 1.5em;
}



/* =========================
   INSTRUMENTY
   ========================= */

.diakonia-instruments {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.diakonia-instrument {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    transition:
        background-color var(--transition),
        transform var(--transition-fast);
}

.diakonia-instrument:hover {
    background: rgba(255,167,0,0.08);
    transform: translateY(-2px);
}

.diakonia-instrument i {
    width: 30px;
    text-align: center;
    color: var(--brand-orange-dark);
    font-size: 20px;
}

.diakonia-instrument span {
    font-size: 15px;
    font-weight: 500;
}


/* =========================
   ETAPY POSŁUGI
   ========================= */

.diakonia-steps {
    display: flex;
    flex-direction: column;
}

.diakonia-step {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 15px;
    padding: 17px 0;
    border-bottom: 1px solid var(--border-soft);
}

.diakonia-step:first-child {
    padding-top: 0;
}

.diakonia-step:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.diakonia-step > span {
    font-family: "Roboto Mono", monospace;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-orange);
}

.diakonia-step h3 {
    margin-bottom: 4px;
    font-size: 17px;
}

.diakonia-step p {
    margin: 0;
    text-align: left;
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
}


/* =========================
   ŚPIEWNIK / KALENDARZ
   ========================= */

.diakonia-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.diakonia-tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    overflow: hidden;
    color: var(--text-color);
    text-decoration: none;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition),
        border-color var(--transition);
}

.diakonia-tool-card:hover {
    transform: translateY(-3px);
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-md);
}

.diakonia-tool-icon {
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-orange);
    color: #fff;
    font-size: 23px;
}

.diakonia-tool-card span {
    display: block;
    margin-bottom: 3px;
    font-family: "Roboto Condensed", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--brand-orange-dark);
}

.diakonia-tool-card h3 {
    margin-bottom: 4px;
    font-family: "Playfair Display", serif;
    font-size: 23px;
}

.diakonia-tool-card p {
    margin: 0;
    padding-right: 20px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
}

.diakonia-tool-arrow {
    margin-left: auto;
    color: var(--brand-orange);
    transition: transform var(--transition);
}

.diakonia-tool-card:hover .diakonia-tool-arrow {
    transform: translateX(5px);
}


/* =========================
   CYTAT
   ========================= */

.diakonia-quote {
    padding: 34px 28px;
    margin-bottom: 10px;
    text-align: center;
    border-radius: var(--radius-lg);
    background: linear-gradient(
        135deg,
        rgba(255,167,0,0.10),
        rgba(255,129,0,0.04)
    );
    border: 1px solid rgba(255,167,0,0.25);
}

.diakonia-quote > i {
    margin-bottom: 15px;
    color: var(--brand-orange);
    font-size: 24px;
}

.diakonia-quote p {
    max-width: 780px;
    margin: 0 auto 10px;
    font-family: "Playfair Display", serif;
    font-size: clamp(18px, 3vw, 25px);
    line-height: 1.5;
}

.diakonia-quote > span {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 13px;
    color: var(--text-muted);
}

/* =========================================================
   CMS INLINE
   ========================================================= */

.diakonia-editable {
    position: relative;
}

.diakonia-editable-content {
    display: inline;
}


/* edycja */

.diakonia-editing {
    display: block;
}


.diakonia-editable-content:has(.diakonia-inline-editor) {
    display: block;
}


.diakonia-inline-editor {
    width: 100%;
    min-height: 70px;

    box-sizing: border-box;

    resize: vertical;

    padding: 11px 12px;

    border: 2px solid var(--accent, #3159e4);
    border-radius: 10px;

    background: var(--input-background, #fff);
    color: inherit;

    font: inherit;
    line-height: 1.5;

    outline: none;

    box-shadow:
        0 0 0 3px
        rgba(49, 89, 228, .10);
}


.diakonia-inline-actions {
    display: flex;

    justify-content: flex-end;
    align-items: center;

    gap: 8px;

    margin-top: 8px;
}


.diakonia-inline-actions button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 6px;

    border: 0;
    border-radius: 8px;

    padding: 8px 12px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 700;
}


.diakonia-inline-cancel {
    background: rgba(127, 127, 127, .10);
    color: inherit;
}


.diakonia-inline-save {
    background: var(--accent, #3159e4);
    color: #fff;
}


.diakonia-inline-actions button:disabled {
    opacity: .6;
    cursor: wait;
}


/* komunikat */

.diakonia-save-message {
    display: inline-flex;

    align-items: center;

    gap: 5px;

    margin-left: 8px;

    color: #16803c;

    font-size: 12px;
    font-weight: 700;

    opacity: 0;
    transform: translateY(2px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.diakonia-save-message.show {
    opacity: 1;
    transform: translateY(0);
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 768px) {

    .diakonia-page {
        padding: 2px;
    }

   .diakonia-hero {
        grid-template-columns: 76px minmax(0, 1fr);
        grid-template-areas:
            "logo heading"
            "verse verse";

        column-gap: 14px;
        row-gap: 20px;

        padding: 24px 20px;
    }

    .diakonia-hero-icon {
        width: 76px;
        height: 76px;
        align-self: center;
    }

    .diakonia-eyebrow {
        margin-bottom: 4px;
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .diakonia-hero h1 {
        font-size: clamp(32px, 8vw, 40px);
    }

    .diakonia-hero p {
        text-align: center;
        font-size: 16px;
    }

    .diakonia-section {
        padding: 20px 16px;
    }

    .diakonia-section-heading {
        margin-bottom: 18px;
    }

    .diakonia-section h2 {
        font-size: 24px;
    }

    .diakonia-text p {
        font-size: 16px;
    }

    .diakonia-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .diakonia-card {
        padding: 18px;
    }

    .diakonia-instruments {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .diakonia-instrument {
        min-height: 52px;
        padding: 10px;
    }

    .diakonia-instrument span {
        font-size: 14px;
    }

    .diakonia-tools {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .diakonia-tool-card {
        padding: 18px;
    }

    .diakonia-quote {
        padding: 28px 18px;
    }

}


@media (max-width: 430px) {

    .diakonia-hero h1 {
        font-size: 29px;
    }

    .diakonia-instruments {
        grid-template-columns: 1fr;
    }

    .diakonia-step {
        grid-template-columns: 42px 1fr;
        gap: 8px;
    }

    .diakonia-tool-icon {
        width: 50px;
        height: 50px;
    }
    
    .diakonia-inline-editor {
        font-size: 15px;
    }

    .diakonia-inline-actions {
        justify-content: stretch;
    }

    .diakonia-inline-actions button {
        flex: 1;
        min-height: 40px;
    }
}

.diakonia-join-tile {
                appearance: none;
                width: 100%;
                font: inherit;
                color: inherit;
                cursor: pointer;
                text-align: inherit;
                background: rgba(255, 167, 0, .055);
                border-color: rgba(255, 167, 0, .45);
                transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
            }

            .diakonia-join-tile:hover,
            .diakonia-join-tile:focus-visible {
                transform: translateY(-2px);
                border-color: rgba(255, 167, 0, .85);
                background: rgba(255, 167, 0, .10);
                box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
                outline: none;
            }

            .diakonia-admin-applications-section {
                margin-top: 18px;
            }

            .diakonia-admin-applications-toolbar {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 14px;
                margin: 0 0 16px;
            }

            .diakonia-admin-applications-hint {
                margin: 0;
                opacity: .75;
            }

            .diakonia-admin-refresh,
            .diakonia-application-action,
            .diakonia-form-button {
                appearance: none;
                border: 0;
                border-radius: 10px;
                padding: 10px 14px;
                font: inherit;
                font-weight: 700;
                cursor: pointer;
                transition: opacity .18s ease, transform .18s ease;
            }

            .diakonia-admin-refresh:hover,
            .diakonia-application-action:hover,
            .diakonia-form-button:hover {
                transform: translateY(-1px);
            }

            .diakonia-admin-refresh:disabled,
            .diakonia-application-action:disabled,
            .diakonia-form-button:disabled {
                cursor: wait;
                opacity: .6;
            }

            .diakonia-admin-refresh {
                background: rgba(127, 127, 127, .12);
                color: inherit;
                white-space: nowrap;
            }

            .diakonia-applications-list {
                display: grid;
                gap: 12px;
            }

            .diakonia-application-card {
                border: 1px solid rgba(127, 127, 127, .20);
                border-radius: 14px;
                padding: 16px;
                background: rgba(127, 127, 127, .045);
            }

            .diakonia-application-card.is-read {
                opacity: .72;
            }

            .diakonia-application-head {
                display: flex;
                justify-content: space-between;
                align-items: flex-start;
                gap: 12px;
            }

            .diakonia-application-name {
                margin: 0 0 4px;
                font-size: 17px;
            }

            .diakonia-application-instrument {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                font-size: 13px;
                font-weight: 700;
                opacity: .82;
            }

            .diakonia-application-status {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                padding: 0;
                background: none;
                border: 0;
                border-radius: 0;
                font-size: 12px;
                font-weight: 700;
                opacity: .7;
            }

            .diakonia-application-status.is-read {
                background: rgba(127, 127, 127, .12);
            }

            .diakonia-application-meta {
                display: flex;
                flex-wrap: wrap;
                gap: 14px;
                margin-top: 10px;
                font-size: 12px;
                opacity: .65;
            }
            
            .diakonia-application-meta span,
            .diakonia-application-meta a {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                color: inherit;
                text-decoration: underline;
                text-underline-offset: 2px;
            }

            .diakonia-application-message {
                margin-top: 14px;
                max-width: 900px;
                line-height: 1.55;
                font-size: 14px;
                opacity: .88;
            }

            .diakonia-application-actions {
                display: flex;
                justify-content: flex-end;
                gap: 8px;
                margin-top: 13px;
                flex-wrap: wrap;
            }

            .diakonia-application-action {
                background: rgba(127, 127, 127, .10);
                color: inherit;
            }

            .diakonia-application-action.danger {
                background: rgba(190, 45, 45, .10);
            }

            .diakonia-applications-empty,
            .diakonia-applications-loading,
            .diakonia-applications-error {
                padding: 18px;
                border-radius: 12px;
                background: rgba(127, 127, 127, .06);
                text-align: center;
                opacity: .8;
            }

            .diakonia-applications-error {
                opacity: 1;
            }

            .diakonia-modal-open {
                overflow: hidden;
            }

            .diakonia-join-modal {
                position: fixed;
                inset: 0;
                z-index: 99999;
                display: flex;
                align-items: center;
                justify-content: center;
                padding: 18px;
                background: rgba(0, 0, 0, .58);
            }

            .diakonia-join-dialog {
                position: relative;
                width: min(620px, 100%);
                max-height: min(760px, calc(100vh - 36px));
                overflow: auto;
                border-radius: 18px;
                background: var(--diakonia-modal-bg, #fff);
                color: var(--diakonia-modal-color, #222);
                box-shadow: 0 22px 70px rgba(0, 0, 0, .30);
                padding: 22px;
            }

            @media (prefers-color-scheme: dark) {
                .diakonia-join-dialog {
                    --diakonia-modal-bg: #171717;
                    --diakonia-modal-color: #f1f1f1;
                }
            }

            .diakonia-join-close {
                position: absolute;
                top: 12px;
                right: 12px;
                width: 40px;
                height: 40px;
                border: 0;
                border-radius: 50%;
                background: rgba(127, 127, 127, .10);
                color: inherit;
                cursor: pointer;
            }

            .diakonia-join-eyebrow {
                font-size: 11px;
                font-weight: 800;
                letter-spacing: .10em;
                opacity: .62;
                margin-bottom: 6px;
            }

            .diakonia-join-title {
                margin: 0 48px 7px 0;
                font-size: 24px;
            }

            .diakonia-join-subtitle {
                margin: 0 0 20px;
                line-height: 1.5;
                opacity: .78;
            }

            .diakonia-join-form {
                display: grid;
                gap: 14px;
            }

            .diakonia-join-field {
                display: grid;
                gap: 6px;
            }

            .diakonia-join-field label {
                font-size: 13px;
                font-weight: 700;
            }

            .diakonia-join-field input,
            .diakonia-join-field select,
            .diakonia-join-field textarea {
                width: 100%;
                box-sizing: border-box;
                border: 1px solid rgba(127, 127, 127, .28);
                border-radius: 10px;
                padding: 11px 12px;
                background: transparent;
                color: inherit;
                font: inherit;
            }

            .diakonia-join-field textarea {
                resize: vertical;
                min-height: 105px;
            }

            .diakonia-join-field input:focus,
            .diakonia-join-field select:focus,
            .diakonia-join-field textarea:focus {
                outline: 2px solid rgba(255, 167, 0, .35);
                outline-offset: 1px;
            }

            .diakonia-join-note {
                margin: -2px 0 0;
                font-size: 12px;
                line-height: 1.45;
                opacity: .62;
            }

            .diakonia-join-message {
                min-height: 0;
                font-size: 13px;
                line-height: 1.45;
            }

            .diakonia-join-message.error {
                color: #b3261e;
            }

            .diakonia-join-message.success {
                color: #2e7d32;
            }

            .diakonia-join-actions {
                display: flex;
                justify-content: flex-end;
                gap: 8px;
                margin-top: 4px;
            }

            .diakonia-form-button {
                background: #ffa700;
                color: #171717;
            }

            .diakonia-form-button.secondary {
                background: rgba(127, 127, 127, .12);
                color: inherit;
            }

            .diakonia-join-honeypot {
                position: absolute !important;
                left: -10000px !important;
                width: 1px !important;
                height: 1px !important;
                overflow: hidden !important;
            }

            @media (max-width: 600px) {
                .diakonia-admin-applications-toolbar {
                    align-items: stretch;
                    flex-direction: column;
                }

                .diakonia-admin-refresh {
                    width: 100%;
                }

                .diakonia-join-dialog {
                    padding: 18px;
                }

                .diakonia-application-head {
                    flex-direction: column;
                }
            }

/* ============================================================
   MENU MOBILNE
   ============================================================ */

@media (max-width: 768px) {

    #navbar nav {
        padding: 7px 10px;
    }

    .navbar-container {
        gap: 8px;
    }

    .logo {
        font-size: 26px;
    }

    .logo-icon {
        height: 38px;
        margin-right: 6px;
    }

    #hamburgerButton {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
    }


    /* --------------------------------------------------------
       PANEL MENU
       -------------------------------------------------------- */

    #navbar-menu {
        position: absolute;

        top: calc(100% + 8px);
        right: 8px;

        width: min(290px, calc(100vw - 16px));

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 3px;

        padding: 10px;

        background: #fffaf2;

        border: 1px solid rgba(0, 0, 0, .08);
        border-radius: 14px;

        box-shadow:
            0 10px 28px rgba(0, 0, 0, .16);

        animation: menuDrop .18s ease;

        z-index: 9999;
    }

    #navbar-menu.visible {
        display: flex;
    }


    /* --------------------------------------------------------
       POZYCJE MENU
       -------------------------------------------------------- */

    #navbar-menu li {
        width: 100%;
    }

    #navbar-menu li:hover {
        background: transparent;
    }


    #navbar-menu li a {
        width: 100%;
        min-height: 48px;

        display: flex;
        align-items: center;
        justify-content: flex-start;

        padding: 11px 14px;

        border-radius: 10px;

        box-sizing: border-box;

        color: #333;

        font-size: 16px;
        font-weight: 700;

        text-decoration: none;

        transition:
            background-color .15s ease,
            color .15s ease,
            transform .10s ease;
    }


    /* --------------------------------------------------------
       HOVER / DOTYK
       -------------------------------------------------------- */

    #navbar-menu li a:hover {
        color: var(--brand-orange-dark);

        background: rgba(255, 167, 0, .10);
    }

    #navbar-menu li a:active {
        transform: scale(.98);
        background: rgba(255, 167, 0, .16);
    }


    /* --------------------------------------------------------
       IKONY
       -------------------------------------------------------- */

    #navbar-menu li a i {
        width: 24px;
        min-width: 24px;

        margin-right: 12px;

        text-align: center;

        color: var(--brand-orange-dark);

        font-size: 16px;
    }
}


/* ============================================================
   ANIMACJA MENU
   ============================================================ */

@keyframes menuDrop {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   UKŁAD MOBILNY
   ============================================================ */

@media (max-width: 768px) {

    #container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    #menu {
        width: 100%;
        max-width: 100%;
    }

    #content {
        width: 100%;
        max-width: 100%;
    }

    #displayContent {
        width: 100%;
    }
    .tools-main {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 1px;
    margin: 2px 0;
  }

  .tools-main button {
    width: 100%;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
  }

}

/* ============================================================
   ŚWIADECTWA
   Moduł sharing.js - tylko świadectwa
   ============================================================ */


/* ============================================================
   GŁÓWNY KONTENER
   ============================================================ */

.sharing-page {
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 8px;
    box-sizing: border-box;
}


/* ============================================================
   LOKALNE OGRANICZENIE GLOBALNYCH STYLI

   W głównym style.css masz globalne:
       p
       form
       button
       input
       textarea

   Tutaj świadomie je ograniczamy, żeby formularz i kafelki
   świadectw nie dziedziczyły przypadkowych parametrów.
   ============================================================ */

.sharing-page form {
    max-width: none;
    margin: 0;
    padding: 0;

    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.sharing-page p {
    margin: 0;
    text-align: left;
}

.sharing-page button {
    margin: 0;
    box-shadow: none;
    font-family: "Roboto", sans-serif;
}

.sharing-page input,
.sharing-page textarea,
.sharing-page select {
    font-family: "Roboto", sans-serif;
}


/* ============================================================
   NAGŁÓWEK
   ============================================================ */

.sharing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 18px;
    padding: 26px 28px;

    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            135deg,
            var(--brand-orange),
            var(--brand-orange-dark)
        );

    color: #fff;

    box-shadow: var(--shadow-md);
}


.sharing-eyebrow {
    margin-bottom: 5px;

    font-family:
        "Roboto Condensed",
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    opacity: .90;
}


.sharing-title {
    margin: 0 0 6px;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        clamp(28px, 4vw, 40px);

    line-height: 1.15;
    font-weight: 700;
}


.sharing-subtitle {
    max-width: 680px;

    font-size: 15px;
    line-height: 1.5;

    opacity: .90;
}


/* ============================================================
   PRZYCISK „DODAJ ŚWIADECTWO”
   ============================================================ */

.sharing-add-main {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 11px 16px;

    border:
        1px solid
        rgba(255,255,255,.35);

    border-radius: 10px;

    background:
        rgba(255,255,255,.15);

    color: #fff;

    font-family:
        "Roboto",
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    white-space: nowrap;

    cursor: pointer;

    transition:
        background-color .18s ease,
        transform .12s ease,
        box-shadow .18s ease;
}


.sharing-add-main:hover {
    background:
        rgba(255,255,255,.24);

    box-shadow:
        0 5px 14px
        rgba(0,0,0,.12);

    transform:
        translateY(-1px);
}


.sharing-add-main:active {
    transform:
        scale(.98);
}


/* ============================================================
   PANEL DODAWANIA
   ============================================================ */

.sharing-add-panel {
    margin-bottom: 18px;
    padding: 22px;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--card-bg);

    box-shadow:
        var(--shadow-sm);

    opacity: 0;
    transform:
        translateY(-6px);

    transition:
        opacity .18s ease,
        transform .18s ease;
}


.sharing-add-panel.open {
    opacity: 1;
    transform: translateY(0);
}


.sharing-add-panel[hidden] {
    display: none;
}


/* ============================================================
   NAGŁÓWEK PANELU
   ============================================================ */

.sharing-panel-header {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 18px;
}


.sharing-panel-header h2 {
    margin: 0 0 4px;

    text-align: left;

    font-family:
        "Playfair Display",
        serif;

    font-size: 24px;
    line-height: 1.25;
}


.sharing-panel-header p {
    margin: 0;

    color:
        var(--text-muted);

    font-size: 14px;
    line-height: 1.5;
}


/* ============================================================
   PRZYCISK ZAMKNIĘCIA
   ============================================================ */

.sharing-close {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background:
        rgba(127,127,127,.10);

    color:
        inherit;

    cursor: pointer;

    transition:
        background-color .15s ease,
        transform .12s ease;
}


.sharing-close:hover {
    background:
        rgba(127,127,127,.18);

    transform:
        scale(1.03);
}


/* ============================================================
   FORMULARZ
   ============================================================ */

.sharing-form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 16px;
}


.sharing-field {
    min-width: 0;
}


.sharing-field-wide {
    grid-column:
        span 2;
}


.sharing-field label {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 700;

    color:
        var(--text-color);
}


.sharing-field input,
.sharing-field textarea {
    display: block;

    width: 100%;
    box-sizing: border-box;

    margin: 0;

    padding: 11px 12px;

    border:
        1px solid
        var(--border);

    border-radius: 10px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    font-family:
        "Roboto",
        sans-serif;

    font-size: 15px;
    line-height: 1.45;

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background-color .15s ease;
}


.sharing-field textarea {
    min-height: 165px;

    resize: vertical;

    line-height: 1.6;
}


.sharing-field input:focus,
.sharing-field textarea:focus {
    border-color:
        var(--brand-orange-dark);

    box-shadow:
        0 0 0 3px
        rgba(255,129,0,.14);
}


/* ============================================================
   STOPKA FORMULARZA
   ============================================================ */

.sharing-form-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 12px;

    margin-top: 18px;
}


.sharing-form-info {
    min-width: 0;

    font-size: 13px;
    line-height: 1.45;

    color:
        var(--text-muted);
}


.sharing-form-info.error {
    color:
        var(--brand-red);

    opacity: 1;
}


.sharing-submit {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-shrink: 0;

    padding: 10px 15px;

    border: 0;
    border-radius: 10px;

    background:
        var(--brand-orange);

    color: #fff;

    font-family:
        "Roboto",
        sans-serif;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background-color .18s ease,
        transform .12s ease,
        box-shadow .18s ease;
}


.sharing-submit:hover {
    background:
        var(--brand-orange-dark);

    box-shadow:
        0 5px 13px
        rgba(0,0,0,.10);

    transform:
        translateY(-1px);
}


.sharing-submit:active {
    transform:
        scale(.98);
}


.sharing-submit:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}


/* ============================================================
   PANEL ADMINISTRATORA
   ============================================================ */

.sharing-admin-panel {
    margin-bottom: 18px;
    padding: 20px 22px;

    border:
        1px solid
        rgba(255,167,0,.28);

    border-radius:
        var(--radius-lg);

    background:
        rgba(255,167,0,.055);

    box-shadow:
        var(--shadow-sm);
}


.sharing-admin-panel[hidden] {
    display: none;
}


.sharing-admin-eyebrow,
.sharing-modal-eyebrow {
    font-family:
        "Roboto Condensed",
        sans-serif;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;
}


.sharing-admin-eyebrow {
    color:
        var(--brand-orange-dark);
}


.sharing-admin-header h2 {
    margin: 4px 0;

    text-align: left;

    font-family:
        "Playfair Display",
        serif;

    font-size: 23px;
    line-height: 1.25;
}


.sharing-admin-header p {
    margin: 0;

    color:
        var(--text-muted);

    font-size: 14px;
    line-height: 1.5;
}


/* ============================================================
   LICZBA ŚWIADECTW
   ============================================================ */

.sharing-results-info {
    margin-bottom: 10px;

    font-size: 13px;
    font-weight: 600;

    color:
        var(--text-muted);
}


/* ============================================================
   SIATKA KAFELKÓW
   ============================================================ */

.sharing-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* ============================================================
   KAFEL ŚWIADECTWA
   ============================================================ */

.sharing-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;

    overflow: hidden;

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--card-bg);

    color:
        var(--text-color);

    text-decoration: none;

    box-shadow:
        var(--shadow-sm);

    transition:
        transform .18s ease,
        box-shadow .22s ease,
        border-color .22s ease;
}


.sharing-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(255,167,0,.48);

    box-shadow:
        var(--shadow-md);
}


.sharing-card.is-disabled {
    opacity: .62;
}


/* ============================================================
   ŚWIADECTWO ZE ZDJĘCIEM JAKO TŁEM
   ============================================================ */

.sharing-testimony-card {
    position: relative;

    overflow: hidden;

    isolation: isolate;

    background:
        var(--card-bg);
}


/* ------------------------------------------------------------
   Zdjęcie
   ------------------------------------------------------------ */

.sharing-testimony-card
.sharing-testimony-background {

    position: absolute;

    inset: 0;

    z-index: 0;

    background-position:
        center center;

    background-size:
        cover;

    background-repeat:
        no-repeat;

    transform:
        scale(1.045);

    filter:
        blur(2px);

    opacity:
        .78;
}


/* ------------------------------------------------------------
   Warstwa przyciemniająca
   ------------------------------------------------------------ */

.sharing-testimony-card
.sharing-testimony-overlay {

    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            135deg,
            rgba(25,22,18,.60),
            rgba(25,22,18,.40)
        );
}


/* ------------------------------------------------------------
   Treść nad zdjęciem
   ------------------------------------------------------------ */

.sharing-testimony-card
.sharing-card-media,

.sharing-testimony-card
.sharing-card-body {

    position: relative;

    z-index: 2;

    background:
        transparent;
}


/* ============================================================
   GÓRNA CZĘŚĆ KAFELKA
   ============================================================ */

.sharing-card-media {
    position: relative;

    min-height: 125px;

    overflow: hidden;

    background:
        #f6f6f6;
}


.sharing-testimony-card
.sharing-card-media {

    background:
        transparent;
}


.sharing-testimony-media {
    min-height: 125px;

    display: flex;

    align-items: flex-start;
    justify-content: flex-start;

    padding: 18px;

    background:
        transparent;
}


/* ============================================================
   ETYKIETA „ŚWIADECTWO”
   ============================================================ */

.sharing-testimony-label {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    padding:
        7px 11px;

    border-radius:
        999px;

    background:
        rgba(0,0,0,.40);

    color:
        #fff;

    font-size:
        .78rem;

    font-weight:
        700;

    line-height:
        1;

    backdrop-filter:
        blur(6px);

    -webkit-backdrop-filter:
        blur(6px);

    box-shadow:
        0 2px 8px
        rgba(0,0,0,.12);
}


/* ============================================================
   BODY KAFELKA
   ============================================================ */

.sharing-card-body {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 17px;
}


.sharing-testimony-card
.sharing-card-body {

    background:
        transparent;
}


/* ------------------------------------------------------------
   Etykieta rodzaju materiału

   W JS nadal używana jest nazwa .sharing-card-category,
   ale wizualnie traktujemy ją już po prostu jako etykietę
   „Świadectwo”.
   ------------------------------------------------------------ */

.sharing-card-category {
    display: inline-flex;

    align-items: center;
    align-self: flex-start;

    gap: 6px;

    margin-bottom: 8px;

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        rgba(127,127,127,.10);

    color:
        inherit;

    font-size:
        11px;

    font-weight:
        700;

    line-height:
        1;
}


.sharing-testimony-card
.sharing-card-category {

    background:
        rgba(0,0,0,.34);

    color:
        #fff;

    backdrop-filter:
        blur(5px);

    -webkit-backdrop-filter:
        blur(5px);
}


/* ============================================================
   TYTUŁ
   ============================================================ */

.sharing-card-title {
    margin: 0 0 8px;

    text-align: left;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        21px;

    font-weight:
        700;

    line-height:
        1.25;
}


.sharing-testimony-card
.sharing-card-title {

    color:
        #fff;

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.65);
}


/* ============================================================
   FRAGMENT TREŚCI
   ============================================================ */

.sharing-card-description {
    margin: 0;

    text-align: left;

    font-size:
        14px;

    line-height:
        1.55;

    color:
        var(--text-muted);

    display:
        -webkit-box;

    -webkit-line-clamp:
        4;

    -webkit-box-orient:
        vertical;

    overflow:
        hidden;
}


.sharing-testimony-card
.sharing-card-description {

    color:
        rgba(255,255,255,.92);

    text-shadow:
        0 2px 8px
        rgba(0,0,0,.65);
}


/* ============================================================
   KAFEL NIEAKTYWNY
   ============================================================ */

.sharing-disabled-badge {
    display: inline-flex;

    align-items: center;
    align-self: flex-start;

    gap: 6px;

    margin-bottom: 8px;

    padding:
        5px 8px;

    border-radius:
        999px;

    background:
        rgba(190,45,45,.14);

    color:
        #b3261e;

    font-size:
        11px;

    font-weight:
        800;

    line-height:
        1;
}


/* ============================================================
   STOPKA KAFELKA
   ============================================================ */

.sharing-card-footer {
    display: flex;

    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-top:
        auto;

    padding-top:
        14px;
}


.sharing-card-actions {
    display: flex;

    align-items: center;

    gap: 6px;
}


/* ============================================================
   PRZYCISKI IKONOWE
   ============================================================ */

.sharing-icon-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    padding: 0;

    border:
        1px solid
        rgba(127,127,127,.20);

    border-radius:
        9px;

    background:
        rgba(127,127,127,.07);

    color:
        inherit;

    cursor:
        pointer;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .12s ease;
}


.sharing-icon-button:hover {
    background:
        rgba(255,167,0,.10);

    border-color:
        rgba(255,167,0,.35);

    transform:
        translateY(-1px);
}


.sharing-icon-button:active {
    transform:
        scale(.94);
}


.sharing-admin-action {
    color:
        var(--brand-orange-dark);
}


.sharing-delete {
    color:
        #c62828;
}


.sharing-delete:hover {
    background:
        rgba(198,40,40,.08);

    border-color:
        rgba(198,40,40,.28);
}


/* ============================================================
   PUSTO / ŁADOWANIE / BŁĄD
   ============================================================ */

.sharing-loading,
.sharing-empty,
.sharing-error {

    grid-column:
        1 / -1;

    padding:
        35px 20px;

    text-align:
        center;

    border:
        1px solid
        var(--border-soft);

    border-radius:
        var(--radius-lg);

    background:
        var(--card-bg);

    color:
        var(--text-muted);

    box-shadow:
        var(--shadow-sm);
}


.sharing-loading i,
.sharing-empty-icon {

    display:
        block;

    margin:
        0 auto 10px;

    color:
        var(--brand-orange);

    font-size:
        26px;
}


.sharing-empty-icon {

    width:
        54px;

    height:
        54px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        50%;

    background:
        rgba(255,167,0,.09);
}


.sharing-empty h3,
.sharing-error strong {

    margin:
        0;

    color:
        var(--text-color);

    font-size:
        18px;
}


.sharing-empty p,
.sharing-error p {

    margin-top:
        6px;

    color:
        var(--text-muted);

    font-size:
        13px;

    line-height:
        1.5;
}


.sharing-error {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        12px;

    text-align:
        left;
}


.sharing-error > i {
    flex-shrink:
        0;

    color:
        var(--brand-red);

    font-size:
        24px;
}


/* ============================================================
   MODAL EDYCJI
   ============================================================ */

.sharing-modal {
    position:
        fixed;

    inset:
        0;

    z-index:
        99999;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        18px;
}


.sharing-modal[hidden] {
    display:
        none;
}


.sharing-modal-backdrop {
    position:
        absolute;

    inset:
        0;

    background:
        rgba(0,0,0,.58);
}


.sharing-modal-dialog {
    position:
        relative;

    width:
        min(680px, 100%);

    max-height:
        min(800px, calc(100vh - 36px));

    overflow-y:
        auto;

    padding:
        22px;

    border-radius:
        18px;

    background:
        var(--card-bg);

    color:
        var(--text-color);

    box-shadow:
        0 22px 70px
        rgba(0,0,0,.30);

    opacity:
        0;

    transform:
        translateY(8px);

    transition:
        opacity .18s ease,
        transform .18s ease;
}


.sharing-modal.open
.sharing-modal-dialog {

    opacity:
        1;

    transform:
        translateY(0);
}


.sharing-modal-header {
    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        14px;

    margin-bottom:
        18px;
}


.sharing-modal-header h2 {

    margin:
        3px 0 0;

    text-align:
        left;

    font-family:
        "Playfair Display",
        serif;

    font-size:
        24px;

    line-height:
        1.25;
}


.sharing-modal-eyebrow {
    color:
        var(--brand-orange-dark);
}


/* ============================================================
   CHECKBOX ADMINISTRATORA
   ============================================================ */

.sharing-admin-check {
    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        12px;

    border:
        1px solid
        rgba(127,127,127,.18);

    border-radius:
        10px;

    background:
        rgba(127,127,127,.045);

    cursor:
        pointer;
}


.sharing-admin-check input[type="checkbox"] {

    width:
        18px;

    height:
        18px;

    flex-shrink:
        0;

    margin:
        0;

    padding:
        0;
}


.sharing-admin-check span {
    display:
        grid;

    gap:
        2px;
}


.sharing-admin-check strong {
    font-size:
        14px;
}


.sharing-admin-check small {
    color:
        var(--text-muted);

    font-size:
        12px;

    line-height:
        1.4;
}


/* ============================================================
   DROBNA INFORMACJA ADMINA
   ============================================================ */

.sharing-admin-disabled-note {
    display:
        block;

    margin-top:
        8px;

    color:
        var(--text-muted);

    font-size:
        .82rem;

    line-height:
        1.45;
}


/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */

@media (max-width: 900px) {

    .sharing-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 700px) {

    .sharing-header {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .sharing-add-main {
        width:
            100%;
    }

    .sharing-grid {
        grid-template-columns:
            1fr;
    }

    .sharing-form-grid {
        grid-template-columns:
            1fr;
    }

    .sharing-field-wide {
        grid-column:
            span 1;
    }

    .sharing-form-footer {
        flex-direction:
            column;

        align-items:
            stretch;
    }

    .sharing-submit {
        width:
            100%;
    }

    .sharing-modal-dialog {
        max-height:
            calc(100vh - 24px);

        padding:
            18px;
    }
}


@media (max-width: 430px) {

    .sharing-page {
        padding:
            2px;
    }

    .sharing-header {
        padding:
            20px 16px;
    }

    .sharing-title {
        font-size:
            27px;
    }

    .sharing-subtitle {
        font-size:
            14px;
    }

    .sharing-add-panel {
        padding:
            16px;
    }

    .sharing-panel-header h2 {
        font-size:
            21px;
    }

    .sharing-card-body {
        padding:
            15px;
    }

    .sharing-card-title {
        font-size:
            20px;
    }

    .sharing-card-description {
        font-size:
            13px;
    }

    .sharing-testimony-media {
        min-height:
            110px;

        padding:
            14px;
    }

    .sharing-card-media {
        min-height:
            110px;
    }

    .sharing-form-footer {
        gap:
            10px;
    }
}