/* Strona „Dodaj wydarzenie” i kolejka akceptacji (developer) */
.add { width: min(640px, 100%); }
.add-title { margin: 0 0 10px; font-size: clamp(28px, 5vw, 38px); line-height: 1.1; font-weight: 780; letter-spacing: -0.025em; }
.add-lead { margin: 0 0 26px; color: var(--ink-soft); font-size: 17px; line-height: 1.55; max-width: 56ch; }

.add form fieldset { border: 0; margin: 0 0 26px; padding: 0; display: grid; gap: 14px; }
.add form legend { padding: 0; margin-bottom: 12px; font-size: 19px; font-weight: 720; letter-spacing: -0.01em; }
.add .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.add .field { display: grid; gap: 6px; }
.add .field > span { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.add input:not([type="checkbox"]), .add select, .add textarea {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px;
}
.add textarea { resize: vertical; line-height: 1.5; min-height: 140px; }
.add input:focus, .add select:focus, .add textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.add input:disabled { opacity: .45; }
.add .row.disabled .field > span { opacity: .5; }
.add .hint { color: var(--muted); font-size: 13.5px; line-height: 1.4; }
.add .invalid input, .add .invalid select, .add .invalid textarea { border-color: #f87171; }
.add .invalid > span, .add .check.invalid { color: #f87171; }
.add .check { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.add .check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--tram); flex: none; }
.add .more summary { cursor: pointer; color: var(--accent-ink); font-size: 15px; font-weight: 600; padding: 4px 0; }
.add .more[open] summary { margin-bottom: 12px; }
.add .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 18px 0 0; padding: 12px 14px; border-radius: var(--r-md); background: rgba(248, 113, 113, .12);
  color: #fca5a5; font-size: 15px; }
[data-theme="light"] .form-error { color: #b91c1c; }
.add .send { margin-top: 18px; height: 50px; padding: 0 24px; font-size: 16px; }

.sent { padding: 22px; border-radius: 16px; background: var(--tram-soft); }
.sent h2 { margin: 0 0 6px; font-size: 21px; }
.sent p { margin: 0 0 16px; line-height: 1.5; }

.mine { margin-top: 40px; }
.mine h2 { font-size: 19px; margin: 0 0 10px; }
.mine ol, .mod-list { list-style: none; margin: 0; padding: 0; }
.mine li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0;
  border-top: 1px solid var(--line); }
.mine li b { display: block; font-weight: 650; }
.mine a, .mod-card a { color: var(--accent-ink); }
.muted { color: var(--muted); font-size: 14px; }
.status { font-size: 13px; font-weight: 650; white-space: nowrap; padding: 3px 10px; border-radius: 999px;
  background: var(--raise); color: var(--ink-soft); }
.status.approved { background: var(--like-soft); color: var(--like); }
.status.rejected { background: rgba(248, 113, 113, .14); color: #f87171; }
p.status { display: inline-block; white-space: normal; margin: 6px 0 0; }

.dev-login { margin-top: 56px; color: var(--muted); font-size: 14px; }
.dev-login summary { cursor: pointer; }
.dev-login form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 12px; }
.dev-login .field { flex: 1 1 200px; }

/* --- kolejka akceptacji ---------------------------------------------------------------- */
.mod { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.mod-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.mod-tabs { display: flex; gap: 4px; background: var(--raise); padding: 4px; border-radius: 999px; }
.mod-tabs button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.mod-tabs [aria-selected="true"] { background: var(--card); color: var(--ink); }
.push { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--card); border: 1px solid var(--line); }
.push-text { margin: 0; flex: 1 1 260px; font-size: 15px; line-height: 1.45; color: var(--ink-soft); }
.mod-card { padding: 18px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.mod-card h2 { margin: 4px 0 12px; font-size: 21px; line-height: 1.2; }
.mod-card dl { margin: 0 0 12px; display: grid; gap: 6px; }
.mod-card dl div { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.mod-card dt { color: var(--muted); font-size: 14px; }
.mod-card dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.mod-desc { margin: 0 0 14px; font-size: 15px; line-height: 1.55; white-space: pre-line; color: var(--ink-soft); }
.mod-actions { display: flex; gap: 8px; }
.mod-empty { padding: 20px 0; }

@media (max-width: 520px) {
  .add .row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mod-card { padding: 16px; }
}

/* pola w dwóch kolumnach na telefonie: pola daty i godziny mają własną szerokość, trzeba je ścisnąć */
.add .row > .field { min-width: 0; }
.add input[type="date"], .add input[type="time"] { min-width: 0; max-width: 100%; display: block;
  -webkit-appearance: none; appearance: none; text-align: left; line-height: 1.2; }
.add input::-webkit-date-and-time-value { text-align: left; }
.add [hidden] { display: none !important; }
.add .opt { font-weight: 500; color: var(--muted); }
.add .field-error { color: #f87171; font-size: 13.5px; }

.pick-map { height: 260px; border-radius: var(--r-md); overflow: hidden; border: 1.5px solid var(--line); cursor: crosshair; }
.pick-map .maplibregl-canvas { cursor: crosshair; }
.place-status { margin: -4px 0 0; }
.place-status.ok { color: var(--accent-ink); }
.place-status.bad { color: #f87171; }
[data-theme="light"] .place-status.bad, [data-theme="light"] .add .field-error { color: #b91c1c; }
.add .row { align-items: start; }
.add input[type="date"], .add input[type="time"] { height: 46px; }

.add .org-note { margin: -6px 0 2px; }

.add .photo { display: grid; gap: 10px; }
.add .photo img { width: 100%; max-height: 320px; object-fit: cover; border-radius: var(--r-md); border: 1.5px solid var(--line); }
.add .photo-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.add .photo-pick { position: relative; overflow: hidden; }
.add .photo-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.add .photo-pick:focus-within { outline: 2px solid var(--sun); outline-offset: 2px; }

/* edytor opisu */
.rte { border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--card); overflow: hidden; }
.rte:focus-within { border-color: var(--sun); box-shadow: 0 0 0 3px var(--sun-soft); }
.invalid .rte { border-color: #f87171; }
.rte-bar { display: flex; gap: 4px; padding: 6px; overflow-x: auto; border-bottom: 1.5px solid var(--line);
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.rte-bar::-webkit-scrollbar { display: none; }
.rte-bar button { flex: none; height: 34px; min-width: 34px; padding: 0 10px; border: 0; border-radius: 8px;
  background: transparent; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap; }
.rte-bar button:hover, .rte-bar button:focus-visible { background: var(--line); outline: none; }
.rte-area { min-height: 180px; max-height: 60vh; overflow-y: auto; padding: 10px 14px; outline: none; line-height: 1.55; }
.rte-area.rte-empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
.rte-area > :first-child { margin-top: 0; }
.rte-area p { margin: 0 0 .7em; }
.rte-area h3 { font-size: 1.2em; margin: .9em 0 .4em; }
.rte-area h4 { font-size: 1.05em; margin: .8em 0 .3em; }
.rte-area ul, .rte-area ol { margin: 0 0 .7em; padding-left: 1.4em; }
.rte-area blockquote { margin: 0 0 .7em; padding-left: 12px; border-left: 3px solid var(--line); color: var(--muted); }
.rte-area a { color: var(--accent-ink, inherit); }
.rte-area { position: relative; }

.rte-area { padding: 12px 14px; }
.rte-area.rte-empty::before { top: 12px; left: 14px; right: 14px; line-height: 1.55; }
.add textarea[name="directions"] { min-height: 0; resize: vertical; }

/* podpowiedź w pierwszym (pustym) akapicie, a nie nad nim: kursor i tekst zaczynają się w tym samym miejscu */
.rte-area.rte-empty::before { content: none; }
.rte-area.rte-empty > p:first-child::before { content: var(--ph); float: left; height: 0; color: var(--muted);
  pointer-events: none; }
