:root {
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --ink: #1C1917;
  --ink-2: #78716C;
  --sakura: #E8A0A8;
  --sakura-soft: #F6E3E5;
  --sakura-deep: #C97B84;
  --indigo: #4C5B7A;
  --dusk: #2E3A54;
  --torii: #C9484F;
  --green: #6B9B7A;
  --warn: #B45309;
  --warn-bg: #FDF3E7;
  --private-bg: #F5EDE8;
  --line: #EAE3DA;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(28,25,23,.05), 0 4px 14px rgba(28,25,23,.06);
  --shadow-lift: 0 2px 4px rgba(28,25,23,.07), 0 10px 28px rgba(28,25,23,.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
body.logged { padding-bottom: 76px; }

a { color: var(--sakura-deep); }
h1 { font-size: 1.5rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 0 0 10px; }

/* ══ Nagłówek ══ */
.site-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 10px 18px;
  background: rgba(250,247,242,.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 900; font-size: 1.15rem; color: var(--ink); text-decoration: none;
  letter-spacing: .01em;
}
.brand-mark { font-size: 1.35rem; }
.brand-txt em { font-style: normal; color: var(--sakura-deep); }
.top-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.top-nav a {
  padding: 7px 13px; border-radius: 999px;
  text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: .92rem;
  transition: background .15s, color .15s;
}
.top-nav a.on { background: var(--dusk); color: #fff; }
.top-nav a:hover { background: var(--sakura-soft); color: var(--sakura-deep); }
.top-nav a.on:hover { background: var(--dusk); color: #fff; }
.nav-login { border: 1.5px solid var(--sakura-deep); color: var(--sakura-deep) !important; }
.nav-user { font-size: .85rem !important; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 24px; }

/* ══ Hero ══ */
.bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.hero-trip {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(30,38,60,.62) 0%, rgba(30,38,60,.38) 45%, rgba(250,247,242,.06) 86%, var(--bg) 100%),
    url('/assets/img/pagoda-fuji.jpg') center 38% / cover no-repeat;
  text-align: center;
  margin-bottom: 26px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 760px; margin: 0 auto;
  padding: 52px 20px 90px;
}
.hero-over {
  text-transform: uppercase; letter-spacing: .22em; font-size: .78rem;
  font-weight: 700; color: #F2D9DC; margin: 0 0 8px;
}
.hero-trip h1 {
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  font-weight: 900; letter-spacing: .01em; margin: 0;
  text-shadow: 0 2px 24px rgba(20,26,44,.45);
}
.hero-trip h1 span { color: var(--sakura); }
.hero-route {
  font-size: .98rem; color: #E7DFE2; margin: 10px auto 18px;
  max-width: 520px;
}
.hero-chip {
  display: inline-block;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(4px);
  border-radius: 999px; padding: 8px 20px;
  font-weight: 700; font-size: .95rem; margin: 0 0 18px;
}
.hero-clocks {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 22px;
}
.hero-clocks .clock-tile {
  background: rgba(23,30,48,.45);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 118px;
  padding: 10px 18px;
}
.hero-clocks .clock-tile strong {
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
}
.hero-stats {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.stat-tile {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: 10px 18px; min-width: 86px;
  text-align: center;
  color: inherit;
}
.hero-stats .stat-tile {
  background: rgba(23,30,48,.45);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 72px;
  padding: 10px 12px;
}
@media (min-width: 480px) {
  .hero-stats .stat-tile { min-width: 86px; padding: 10px 18px; }
}
.stat-tile-link {
  text-decoration: none;
  transition: background .15s, border-color .15s, transform .15s;
}
.stat-tile-link:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  transform: translateY(-1px);
}
.stat-tile strong { display: block; font-size: 1.45rem; font-weight: 900; line-height: 1.1; }
.stat-tile span { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: #EBD9DC; }
.hero-chip {
  background: rgba(23,30,48,.5);
  border-color: rgba(255,255,255,.4);
}
.hero-cta { margin-top: 22px; }
.hero-cta .btn-primary {
  background: rgba(255,255,255,.92);
  color: var(--indigo);
  border: none;
  font-weight: 800;
  padding: 12px 28px;
}
.hero-cta .btn-primary:hover { background: #fff; }
.hero-trip h1, .hero-over, .hero-route {
  text-shadow: 0 1px 3px rgba(15,20,35,.65), 0 3px 18px rgba(15,20,35,.5);
}

/* Płatki i kwiaty sakury */
.petals { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.petals i {
  position: absolute; top: -48px;
  width: 24px; height: 24px;
  /* Pojedynczy płatek wiśni z wcięciem na czubku */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M28 6 C20 14 12 28 16 42 C19 53 27 58 32 58 C37 58 45 53 48 42 C52 28 44 14 36 6 L32 15 Z' fill='%23F7BFC7'/%3E%3Cpath d='M32 15 C28 26 26 40 31 56 C32 57 33 57 34 56 C38 40 36 26 32 15 Z' fill='%23EFA3AF' opacity='.7'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 1px 2px rgba(120, 40, 60, .18));
  animation: petal-fall linear infinite;
}
/* Co trzeci element to pełny kwiat wiśni */
.petals i:nth-child(3n) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3Cpath id='p' d='M32 8 C27 13 24 19 26 25 C28 30 32 31 32 31 C32 31 36 30 38 25 C40 19 37 13 32 8 Z' fill='%23F8C6CD'/%3E%3C/defs%3E%3Cuse href='%23p'/%3E%3Cuse href='%23p' transform='rotate(72 32 32)'/%3E%3Cuse href='%23p' transform='rotate(144 32 32)'/%3E%3Cuse href='%23p' transform='rotate(216 32 32)'/%3E%3Cuse href='%23p' transform='rotate(288 32 32)'/%3E%3Ccircle cx='32' cy='32' r='4.5' fill='%23E4737F'/%3E%3Ccircle cx='32' cy='32' r='2' fill='%23F9E3E6'/%3E%3C/svg%3E");
}
.petals i:nth-child(1)  { left: 6%;  width: 22px; height: 22px; animation-duration: 11s;   animation-delay: 0s; }
.petals i:nth-child(2)  { left: 16%; width: 17px; height: 17px; animation-duration: 14s;   animation-delay: 3s; }
.petals i:nth-child(3)  { left: 27%; width: 28px; height: 28px; animation-duration: 12s;   animation-delay: 6s; }
.petals i:nth-child(4)  { left: 38%; width: 19px; height: 19px; animation-duration: 13s;   animation-delay: 1.5s; }
.petals i:nth-child(5)  { left: 49%; width: 24px; height: 24px; animation-duration: 10.5s; animation-delay: 4.5s; }
.petals i:nth-child(6)  { left: 60%; width: 30px; height: 30px; animation-duration: 15s;   animation-delay: 8s; }
.petals i:nth-child(7)  { left: 70%; width: 18px; height: 18px; animation-duration: 12.5s; animation-delay: 2s; }
.petals i:nth-child(8)  { left: 79%; width: 23px; height: 23px; animation-duration: 11.5s; animation-delay: 5.5s; }
.petals i:nth-child(9)  { left: 88%; width: 26px; height: 26px; animation-duration: 13.5s; animation-delay: 7s; }
.petals i:nth-child(10) { left: 95%; width: 20px; height: 20px; animation-duration: 14.5s; animation-delay: .8s; }
@keyframes petal-fall {
  0%   { transform: translate3d(0, -48px, 0)  rotate(0deg); }
  20%  { transform: translate3d(-30px, 20vh, 0) rotate(80deg); }
  40%  { transform: translate3d(22px, 42vh, 0)  rotate(150deg); }
  60%  { transform: translate3d(-26px, 63vh, 0) rotate(230deg); }
  80%  { transform: translate3d(18px, 84vh, 0)  rotate(310deg); }
  100% { transform: translate3d(-8px, 108vh, 0) rotate(390deg); }
}
@media (prefers-reduced-motion: reduce) { .petals i { animation: none; display: none; } }

/* ══ Etapy planu ══ */
.stage-banner {
  display: flex; align-items: center; gap: 12px;
  margin: 28px 0 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--sakura-pale);
  border: 1px solid var(--sakura-soft);
}
.stage-banner h2 {
  margin: 0;
  font-size: 1.05rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--indigo);
}
.stage-no {
  position: relative;
  flex: 0 0 34px; height: 34px; border-radius: 50%;
  background: var(--torii); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .95rem;
  box-shadow: 0 2px 8px rgba(15,20,35,.4);
}

/* ══ Dni ══ */
.day {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow .2s;
}
.day:hover { box-shadow: var(--shadow-lift); }
.day.today { border: 2px solid var(--sakura-deep); }
.day summary {
  list-style: none; cursor: pointer; padding: 12px 16px;
  display: flex; align-items: center; gap: 14px;
}
.day summary::-webkit-details-marker { display: none; }
.date-chip {
  flex: 0 0 58px; text-align: center;
  background: var(--sakura-soft); border-radius: 12px; padding: 7px 4px 6px;
}
.day.today .date-chip { background: var(--sakura-deep); }
.date-chip strong { display: block; font-size: 1.45rem; font-weight: 900; line-height: 1; color: var(--sakura-deep); }
.day.today .date-chip strong { color: #fff; }
.date-chip small { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.day.today .date-chip small { color: #F6E3E5; }
.day-head { flex: 1; min-width: 0; }
.day-title { display: block; font-weight: 700; font-size: 1.03rem; }
.day-sub { display: block; font-size: .82rem; color: var(--ink-2); }
.chev {
  flex: 0 0 12px; width: 12px; height: 12px;
  border-right: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .2s; margin-top: -4px;
}
.day[open] .chev { transform: rotate(-135deg); margin-top: 6px; }

/* ══ Oś czasu ══ */
.timeline { padding: 2px 16px 14px; }
.attr {
  display: grid; grid-template-columns: 86px 26px 1fr; gap: 0 10px;
  padding: 10px 0 2px;
}
.attr-time {
  font-weight: 700; font-size: .86rem; color: var(--indigo);
  text-align: right; padding-top: 3px; line-height: 1.35;
}
.attr-rail { position: relative; display: flex; justify-content: center; }
.attr-rail::before {
  content: ''; position: absolute; top: 0; bottom: -12px; width: 2px;
  background: var(--sakura-soft);
}
.attr:last-child .attr-rail::before { bottom: auto; height: 22px; }
.dot {
  position: relative; z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; margin-top: 2px;
  background: #fff; border: 2.5px solid var(--sakura);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 900; color: #fff;
}
.attr.done .dot { background: var(--green); border-color: var(--green); }
.attr-body { min-width: 0; padding-bottom: 10px; }
.attr-title {
  font-weight: 700; color: var(--ink); text-decoration: none;
  display: inline-block; line-height: 1.4;
}
.attr-title:hover { color: var(--sakura-deep); }
.attr-icon { font-size: 1.05rem; }
.attr-desc { margin: 3px 0 0; color: var(--ink-2); font-size: .93rem; }
.attr-note {
  margin: 7px 0 0; font-size: .9rem; color: var(--warn);
  background: var(--warn-bg); border-radius: 9px; padding: 7px 11px;
}
.attr-impr {
  margin: 7px 0 0; font-size: .94rem; color: var(--ink);
  background: #F2F7F3; border-left: 3px solid var(--green);
  border-radius: 0 9px 9px 0; padding: 7px 11px;
}
.attr-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; font-size: .85rem; color: var(--ink-2); }
.attr.done .attr-title { color: var(--ink-2); }

@media (max-width: 480px) {
  .attr { grid-template-columns: 64px 22px 1fr; gap: 0 8px; }
  .attr-time { font-size: .78rem; }
}

/* ══ Odznaki ══ */
.badge {
  display: inline-block; font-size: .74rem; font-weight: 800;
  border-radius: 999px; padding: 3px 10px; vertical-align: middle;
  text-transform: uppercase; letter-spacing: .04em;
}
.badge-today { background: var(--torii); color: #fff; }
.badge-done { background: var(--green); color: #fff; }

/* ══ Karty ══ */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.total-card { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.next-card {
  display: block; text-decoration: none; color: var(--ink);
  border-left: 4px solid var(--torii);
}
.next-card:hover { box-shadow: var(--shadow-lift); }
.next-card strong { display: block; margin-top: 2px; font-size: 1.05rem; }
.action-card h2 { color: var(--indigo); }
.login-card { max-width: 400px; margin: 44px auto; overflow: hidden; }
.login-photo {
  height: 150px; margin: -18px -18px 16px;
  background-size: cover; background-position: center 60%;
}
.gallery-empty { text-align: center; }
.gallery-empty-photo {
  height: 300px; margin: -18px -18px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  background-size: cover; background-position: center;
}

/* ══ Strefy specjalne ══ */
.private-box {
  background: var(--private-bg); border: 1px dashed var(--sakura-deep);
  border-radius: 12px; padding: 13px 15px; margin-top: 14px;
}
.private-label { font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sakura-deep); margin-bottom: 5px; }
.note-box {
  background: var(--warn-bg); color: var(--warn);
  border-radius: 12px; padding: 11px 15px; margin-top: 12px;
}
.impr-box {
  background: #F2F7F3; border-left: 3px solid var(--green);
  border-radius: 0 12px 12px 0; padding: 11px 15px; margin-top: 12px;
}
.sight-desc {
  color: var(--ink-2); font-size: .96rem; line-height: 1.5;
  margin-top: 10px; padding-left: 12px; border-left: 3px solid var(--sakura);
}
.sight-descr-wrap[hidden] { display: none; }
.sight-block { margin-top: 10px; }
.sight-photos { margin-top: 12px; }
.sight-photos-edit { margin: 0 0 12px; }
.sight-photos-label {
  font-weight: 700; font-size: .88rem; color: var(--ink-2);
  margin: 0 0 8px;
}
.sight-photos-admin {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.sight-photo-thumb {
  position: relative; width: 72px; height: 72px;
  border-radius: 8px; overflow: hidden; border: 1px solid var(--line);
}
.sight-photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sight-photo-delete {
  position: absolute; top: 2px; right: 2px; margin: 0;
}
.sight-photo-delete .btn-x {
  width: 22px; height: 22px; font-size: .75rem;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* ══ Formularze ══ */
label { display: block; margin-bottom: 12px; font-weight: 600; font-size: .92rem; }
input[type=text], input[type=password], input[type=url], input[type=date],
input[type=number], select, textarea {
  display: block; width: 100%; margin-top: 4px;
  padding: 11px 13px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 11px; background: #fff;
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--sakura-deep);
  box-shadow: 0 0 0 3px var(--sakura-soft);
}
input[type=file] { margin: 8px 0 12px; font-size: .92rem; }
.check { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.check input { width: 22px; height: 22px; accent-color: var(--green); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

.btn {
  display: inline-block; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 700;
  padding: 11px 24px; cursor: pointer; text-decoration: none; min-height: 48px;
  transition: transform .12s, box-shadow .12s, border-color .12s;
}
.btn:hover { border-color: var(--sakura-deep); color: var(--sakura-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--torii); border-color: var(--torii); color: #fff; }
.btn-primary:hover { background: #B23E45; border-color: #B23E45; color: #fff; }
.btn-secondary { background: #fff; border-color: var(--indigo); color: var(--indigo); font-weight: 700; }
.btn-secondary:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-block { width: 100%; display: block; text-align: center; }
.btn-x {
  border: none; background: none; color: var(--ink-2);
  cursor: pointer; font-size: 1rem; padding: 4px 8px;
}
.btn-x:hover { color: var(--torii); }
.inline { display: inline; }
.lnk { font-size: .92rem; }

/* ══ Koszty ══ */
.cost-day-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-bottom: 6px;
}
.cost-day-head h2 { margin: 0; font-size: 1rem; color: var(--indigo); }
.cost-day-sum { margin-left: auto; font-weight: 800; color: var(--sakura-deep); white-space: nowrap; }
.cost-attr { font-weight: 700; text-decoration: none; color: var(--ink); }
.cost-attr:hover { color: var(--sakura-deep); }

/* ══ Tabele ══ */
.tbl { width: 100%; border-collapse: collapse; }
.tbl td, .tbl th { padding: 9px 6px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl tr:first-child td, .tbl th { border-top: none; }
.tbl th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.num { text-align: right; white-space: nowrap; }

/* ══ Zdjęcia ══ */
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .photo-grid { grid-template-columns: repeat(3, 1fr); } }
.photo-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 12px; display: block;
  transition: transform .18s, box-shadow .18s;
}
.photo-grid a:hover img { transform: scale(1.025); box-shadow: var(--shadow-lift); }
.photo-grid figure { margin: 0; }
.photo-grid figcaption { font-size: .8rem; margin-top: 4px; }
.photo-grid figcaption a { color: var(--ink-2); text-decoration: none; }
.photo-grid figcaption a:hover { color: var(--sakura-deep); }

/* ══ Dolna nawigacja ══ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-around;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 18px rgba(28,25,23,.06);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 1.3rem; text-decoration: none; color: var(--ink-2);
  min-width: 58px; padding: 5px 6px; border-radius: 12px;
  transition: background .15s, color .15s;
}
.bottom-nav a span { font-size: .67rem; font-weight: 700; }
.bottom-nav a:hover { background: var(--sakura-soft); color: var(--sakura-deep); }

/* ══ Stopka ══ */
.site-foot {
  text-align: center; color: var(--ink-2); font-size: .85rem;
  padding: 30px 16px 36px;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  background: linear-gradient(180deg, transparent, var(--sakura-soft));
}
.foot-route {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px; margin-bottom: 10px;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.foot-route i {
  width: 22px; height: 2px; border-radius: 2px;
  background: var(--sakura-deep);
  position: relative;
}
.foot-route i::after {
  content: ''; position: absolute; right: -1px; top: -2.5px;
  border-left: 6px solid var(--sakura-deep);
  border-top: 3.5px solid transparent; border-bottom: 3.5px solid transparent;
}

/* ══ Różne ══ */
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.crumbs { font-size: .92rem; margin: 14px 0 12px; }
.crumbs a { text-decoration: none; font-weight: 600; }
.flash {
  background: #EFF6F0; border: 1px solid var(--green); color: #2F5E3F;
  border-radius: 12px; padding: 11px 15px; margin: 14px 0;
}
.flash-err { background: #FBEDED; border-color: var(--torii); color: #B23E45; }
.attr-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; gap: 10px; }
.attr-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.attr-edit-crumbs { margin: -4px 0 14px; font-size: .92rem; }
.modal-panel--wide { max-width: 520px; }
.attr-time-big { font-weight: 800; color: var(--indigo); font-size: 1.05rem; }
.meta-lock { color: var(--sakura-deep); font-weight: 600; }
.meta-hint { color: var(--ink-2); font-size: .85rem; }

.badge-sight {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  vertical-align: middle;
  color: var(--sakura-deep);
  background: var(--sakura-pale);
  border: 1px solid var(--sakura-mid);
}
.attr-sight .dot { background: var(--sakura-mid); border-color: var(--sakura-deep); }
.check-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 12px 0; font-size: .95rem; cursor: pointer;
}
.check-row input { margin-top: 3px; flex-shrink: 0; }

.list-day-card { margin-bottom: 14px; }
.list-day-head { font-size: 1rem; margin: 0 0 4px; color: var(--indigo); }

/* ══ Wydruk — modal na stronie planu ══ */
.plan-hero-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.plan-hero-text { flex: 1; min-width: 0; }
.plan-hero-text h1 { margin-top: 0; }
.plan-print-open {
  flex-shrink: 0;
  margin-top: 4px;
  white-space: nowrap;
}

.page-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.page-head-row h1 { margin: 0 0 4px; }
.page-head-sub { margin: 0; }
.page-head-btn {
  flex-shrink: 0;
  margin-top: 28px;
  font-size: .88rem;
  padding: 8px 16px;
  font-weight: 700;
}

/* ══ Dokumenty ══ */
.doc-list { display: flex; flex-direction: column; gap: 12px; }
.doc-item { padding: 14px 16px; }
.doc-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.doc-icon { font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.doc-item-main { flex: 1; min-width: 0; }
.doc-title {
  display: block;
  font-weight: 700;
  color: var(--torii);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 2px;
}
.doc-title:hover { text-decoration: underline; }
.doc-delete { flex-shrink: 0; margin: 0; }
.doc-pill {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: #f4f7fb;
  border-left: 3px solid var(--indigo);
  border-radius: 0 8px 8px 0;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--ink);
}
.doc-pill strong { color: var(--indigo); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.doc-note-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.doc-note-label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.doc-note-form textarea {
  width: 100%;
  margin-top: 6px;
  margin-bottom: 8px;
  font-family: inherit;
  font-size: .93rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}
.doc-files-wrap {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.doc-files-summary {
  padding: 9px 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--bg);
}
.doc-files-summary::-webkit-details-marker { display: none; }
.doc-files-summary::before {
  content: '▸';
  display: inline-block;
  margin-right: 8px;
  transition: transform .15s;
  color: var(--ink-2);
}
.doc-files-wrap[open] .doc-files-summary::before { transform: rotate(90deg); }
.doc-files-wrap[open] .doc-files-summary { border-bottom: 1px solid var(--line); }
.doc-files {
  list-style: none;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
}
.doc-files-wrap .doc-add-files {
  margin: 0;
  padding: 10px 12px 12px;
  border-top: 1px dashed var(--line);
}
.doc-add-files--empty { margin-top: 10px; }
.doc-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.doc-file-row:last-child { border-bottom: none; }
.doc-file-link {
  flex: 1;
  min-width: 0;
  font-size: .92rem;
  color: var(--torii);
  text-decoration: none;
  line-height: 1.35;
}
.doc-file-link:hover { text-decoration: underline; }
.doc-file-delete { flex-shrink: 0; margin: 0; }
.doc-add-files {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.doc-add-files input[type="file"] { margin-top: 6px; font-size: .88rem; }
.doc-title { display: block; font-weight: 700; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.doc-note-trigger {
  display: block;
  width: 100%;
  margin: 0 0 4px;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  line-height: 1.4;
}
.doc-note-trigger:hover .doc-note-preview,
.doc-note-trigger:hover .doc-note-empty { color: var(--torii); text-decoration: underline; }
.doc-note-preview {
  display: block;
  font-size: .9rem;
  color: var(--indigo);
}
.doc-note-empty {
  display: block;
  font-size: .88rem;
  color: var(--ink-2);
  font-style: italic;
}
.doc-file-count { display: none; }
.note-modal-doc { margin: -4px 0 14px; font-size: .92rem; line-height: 1.35; }
#note-modal-form textarea {
  width: 100%;
  margin-top: 6px;
  font-family: inherit;
  font-size: .93rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  resize: vertical;
}
.doc-pill,
.doc-note-form { display: none; }

/* ══ Przydatne linki ══ */
.link-list { display: flex; flex-direction: column; gap: 12px; }
.link-item { padding: 14px 16px; }
.link-item-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.link-icon { font-size: 1.25rem; line-height: 1.4; flex-shrink: 0; }
.link-item-main { flex: 1; min-width: 0; }
.link-title {
  display: inline-block;
  font-weight: 700;
  color: var(--torii);
  text-decoration: none;
  line-height: 1.35;
  margin-bottom: 4px;
}
.link-title:hover { text-decoration: underline; }
.link-ext { font-size: .85em; opacity: .7; }
.link-descr {
  margin: 0 0 6px;
  font-size: .93rem;
  line-height: 1.45;
  color: var(--ink);
}
.link-url {
  display: block;
  word-break: break-all;
  line-height: 1.35;
}
.link-actions {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-shrink: 0;
}
.link-delete { margin: 0; }
.link-edit-btn { white-space: nowrap; }
.doc-note-src { display: none !important; }
.btn-sm { font-size: .85rem; padding: 6px 14px; }

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.is-open { display: flex; }
body.modal-open { overflow: hidden; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 30, 48, .52);
  backdrop-filter: blur(3px);
}
.modal-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 22px 20px 20px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(20, 28, 48, .22);
  outline: none;
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { background: var(--sakura-pale); color: var(--ink); }

.print-toolbar-title { margin: 0 0 6px; font-size: 1.05rem; padding-right: 36px; }
.print-toolbar-hint { margin: 0 0 14px; font-size: .92rem; }
.print-toolbar-actions { margin-bottom: 12px; }
.print-modal-or {
  margin: 0 0 12px;
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.print-day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.print-day-btn {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.print-day-btn:hover {
  border-color: var(--sakura);
  box-shadow: var(--shadow);
}
.print-day-btn-no {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sakura-deep);
}
.print-day-btn-date { font-weight: 800; font-size: 1rem; color: var(--indigo); }
.print-day-btn-title {
  font-size: .82rem;
  line-height: 1.3;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.print-day-btn-cnt { font-size: .75rem; color: var(--ink-2); margin-top: 2px; }

/* ══ Hero podstron ══ */
.hero, .hero-small { padding: 24px 4px 6px; }
.hero h1, .hero-small h1 { font-size: 1.6rem; font-weight: 900; }
.hero p, .hero-small p { color: var(--ink-2); margin: 4px 0 0; }
