html, body { height: 100%; }
body { background: var(--bg); overscroll-behavior-y: contain; }

.boot { min-height: 100vh; display: grid; place-items: center; }
.boot__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--rose); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.8); opacity: .3; } }

.shell { min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.wrap { width: min(720px, 100%); margin: 0 auto; padding: 0 16px; }

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 245, 242, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: env(safe-area-inset-top);
}
.top__in { display: flex; align-items: center; gap: 6px; min-height: 60px; }
.top h1 { font-size: 22px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top h1 small { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 6px; }
.top.is-scrolled { box-shadow: 0 1px 0 var(--line); }

.ib {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.ib:hover { background: var(--blush-2); }
.ib svg { width: 24px; height: 24px; }

.hello { padding: 8px 0 4px; }
.hello__brand { display: flex; align-items: center; gap: 12px; }
.hello__brand img { height: 58px; max-width: 150px; object-fit: contain; }
.hello__brand p { margin: 0; font-family: var(--script); font-size: 26px; color: var(--gold); line-height: 1; }
.hello h1 { font-size: 28px; margin-top: 14px; }
.hello__sub { margin: 4px 0 0; color: var(--muted); font-weight: 600; }

.money {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  margin: 16px 0 0;
  border-radius: 22px;
  background: radial-gradient(130% 120% at 0% 0%, #3a2430 0%, #1d1a1b 60%);
  color: #fff;
  overflow: hidden;
}
.money small { display: block; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .62); }
.money__main { padding: 16px 16px 15px; color: inherit; text-decoration: none; display: grid; align-content: center; }
.money__main b { font-family: var(--serif); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; margin-top: 2px; white-space: nowrap; }
.money__main em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pink); margin-top: 4px; }
.money__side { display: grid; border-left: 1px solid rgba(255, 255, 255, .12); }
.money__side > * { display: grid; align-content: center; padding: 10px 14px; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.money__side > * + * { border-top: 1px solid rgba(255, 255, 255, .12); }
.money__side b { font-family: var(--serif); font-weight: 800; font-size: 16px; white-space: nowrap; }
.money__side > *:active { background: rgba(255, 255, 255, .06); }

.alert { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border: 0; border-radius: 16px; background: var(--red-bg); color: var(--red); text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px #f1c3be; }
.alert > svg { width: 22px; height: 22px; flex: none; }
.alert > svg:last-child { width: 18px; height: 18px; }
.alert span { flex: 1; }
.alert b { display: block; font-weight: 800; font-size: 15px; }
.alert small { font-size: 12.5px; font-weight: 600; color: #a0504a; }
.alert.is-on { box-shadow: inset 0 0 0 2px var(--red); }

.sec-h { font-size: 15px; font-family: var(--sans); font-weight: 800; letter-spacing: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 12.5px; margin: 0 2px 10px; }
.todo { margin-top: 20px; }
.todo__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.st { display: grid; align-content: start; gap: 2px; min-height: 76px; padding: 10px 10px 9px; border: 0; border-radius: 16px; text-align: left; cursor: pointer; color: var(--ink); background: linear-gradient(150deg, var(--g1, #fff) 0%, var(--g2, #fff) 100%); box-shadow: inset 0 0 0 1px var(--gb, var(--line)); transition: transform .1s, box-shadow .15s; }
.st:active { transform: scale(.97); }
.st b { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1.1; }
.st span { font-size: 12px; font-weight: 800; line-height: 1.2; }
.st--cena { --g1: #ffe68f; --g2: #fff8d6; --gb: #f6e3a1; }
.st--nova { --g1: #ffd6a8; --g2: #fff0e1; --gb: #fbe0c4; }
.st--vyroba { --g1: #ffc6df; --g2: #ffebf4; --gb: #f8d3e3; }
.st--hotova { --g1: #c3dafb; --g2: #ebf3fe; --gb: #d3e3f8; }
.st.is-zero { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.st.is-zero b, .st.is-zero span { color: var(--faint); }
.st.is-on { box-shadow: inset 0 0 0 2px var(--ink); }

.lhead { display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.seg { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.seg__b { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border: 0; border-radius: 10px; background: none; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; }
.seg__b i { font-style: normal; font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blush); color: var(--ink); display: grid; place-items: center; }
.seg__b.is-on { background: var(--ink); color: #fff; }
.seg__b.is-on i { background: rgba(255, 255, 255, .2); color: #fff; }
.lhead__q { background: #fff; box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; width: 44px; height: 44px; }
.search { margin-top: 10px; }
.ftag { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding: 8px 6px 8px 14px; border-radius: 12px; background: var(--blush-2); font-size: 14px; font-weight: 600; }
.ftag b { font-weight: 800; }
.ftag .link-btn { padding: 4px 8px; font-size: 13px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 6px; }
.stat {
  border: 0;
  text-align: left;
  padding: 12px 12px 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line);
  cursor: pointer;
}
.stat b { display: block; font-family: var(--serif); font-size: 24px; font-weight: 800; line-height: 1.1; }
.stat span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.stat--hot { background: var(--rose-d); color: #fff; box-shadow: none; }
.stat--hot span { color: #f8dbe2; }
.stat--warn b { color: var(--red); }

.search { position: relative; margin: 14px 0 0; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 44px; background: #fff; border-color: var(--line); min-height: 46px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 0 4px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: #fff;
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.chip i { font-style: normal; font-size: 12px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--blush); color: var(--rose-dd); display: grid; place-items: center; }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.is-on i { background: rgba(255,255,255,.18); color: #fff; }

.group { margin-top: 22px; }
.group__h { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 10px; font-family: var(--sans); font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group__h.is-late { color: var(--red); }
.group__h.is-today { color: var(--rose-d); }

.list { display: grid; gap: 10px; }
.oc {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px 12px 12px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 1px 0 var(--line), 0 6px 18px -14px rgba(120, 70, 70, .35);
  text-decoration: none;
  color: inherit;
  transition: transform .12s;
}
.oc:active { transform: scale(.985); }
.oc.is-cancel { opacity: .55; }
.oc.is-cancel .oc__name { text-decoration: line-through; }

.dt { width: 58px; height: 62px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; align-content: center; text-align: center; line-height: 1; }
.dt b { font-family: var(--serif); font-size: 22px; font-weight: 800; }
.dt span { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.dt.is-late { background: #fff; color: var(--red); box-shadow: inset 0 0 0 2px var(--red); }
.dt.is-late span { color: var(--red); }
.dt.is-today { background: var(--ink); color: #fff; }
.dt.is-today span { color: var(--pink); }
.dt.is-none b { font-size: 18px; color: var(--faint); }

.oc__main { min-width: 0; }
.oc__name { font-weight: 800; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc__what { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.oc__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.oc__side { text-align: right; align-self: start; padding-top: 2px; }
.oc__num { font-size: 12px; font-weight: 800; color: var(--faint); }
.oc__sum { font-weight: 800; font-size: 15px; margin-top: 2px; white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 12px; font-weight: 800; background: var(--bg); color: var(--muted); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
:root { --c-nova: #f08a24; --c-vyroba: #d4528e; --c-hotova: #2f7de1; --c-odovzdana: #2e9e5b; --c-zrusena: #9a9196; }
.tag--nova { background: #fff0e0; color: #a85400; }
.tag--vyroba { background: #ffe3ef; color: #b0336f; }
.tag--hotova { background: #e6f0fd; color: #1f5fb3; }
.tag--odovzdana { background: #e3f5ea; color: #1f7a43; }
.tag--pay { background: #fff; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.tag--pay::before { display: none; }
.tag--zaplatena { background: #fff; color: #1f7a43; box-shadow: inset 0 0 0 1.5px #2e9e5b; }
.tag--zrusena { background: #eee; color: #777; }
.oc { background: linear-gradient(115deg, var(--g1, #fff) 0%, var(--g2, #fff) 48%, #fff 100%); box-shadow: inset 0 0 0 1px var(--gb, var(--line)), 0 8px 20px -16px var(--gs, rgba(120, 70, 70, .35)); }
.oc .dt { background: rgba(255, 255, 255, .78); }
.oc .dt.is-today { background: var(--ink); }
.oc .dt.is-late { background: #fff; }
.oc--nova { --g1: #ffd6a8; --g2: #fff0e1; --gb: #fbe0c4; --gs: rgba(240, 138, 36, .55); }
.oc--vyroba { --g1: #ffc6df; --g2: #ffebf4; --gb: #f8d3e3; --gs: rgba(212, 82, 142, .5); }
.oc.is-late { --gb: var(--red); box-shadow: inset 0 0 0 2px var(--red), 0 8px 20px -14px rgba(181, 65, 58, .6); }
.oc--hotova { --g1: #c3dafb; --g2: #ebf3fe; --gb: #d3e3f8; --gs: rgba(47, 125, 225, .5); }
.oc--odovzdana { --g1: #c0e8cf; --g2: #e9f7ee; --gb: #d0ebda; --gs: rgba(46, 158, 91, .5); }
.oc--zrusena { --g1: #e8e3e5; --g2: #f5f2f3; --gb: #e8e3e5; }
.pdata { display: grid; gap: 8px; }
.pdata__row { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.pdata__row div { flex: 1; min-width: 0; }
.pdata__row small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.pdata__row b { font-weight: 800; word-break: break-word; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty svg { width: 64px; height: 64px; color: var(--rose); opacity: .7; }
.empty b { display: block; color: var(--ink); font-size: 17px; margin: 10px 0 4px; }

.fab { border: 2px solid var(--pink) !important;
  position: fixed;
  right: max(16px, calc(50vw - 344px));
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 25;
  height: 58px;
  padding: 0 22px 0 18px;
  border-radius: 20px;
  border: 0;
  background: var(--rose-d);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 26px -10px rgba(142, 66, 89, .7);
  cursor: pointer;
  text-decoration: none;
}
.fab svg { width: 24px; height: 24px; }

.nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: center;
  background: rgba(255, 253, 251, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav__in { display: grid; grid-template-columns: repeat(3, 1fr); width: min(720px, 100%); }
.nav a { display: grid; justify-items: center; gap: 2px; padding: 10px 0 12px; text-decoration: none; color: var(--muted); font-size: 12px; font-weight: 800; position: relative; }
.nav a svg { width: 26px; height: 26px; }
.nav a.is-on { color: var(--rose-d); }
.nav a.is-on::before { content: ""; position: absolute; top: 0; width: 34px; height: 3px; border-radius: 0 0 3px 3px; background: var(--pink); }
.nav a em { position: absolute; top: 6px; left: calc(50% + 8px); font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: var(--ink); font-size: 11px; display: grid; place-items: center; }

.card { background: #fff; border-radius: 22px; padding: 18px; box-shadow: 0 1px 0 var(--line); }
.card + .card { margin-top: 12px; }
.card__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.card__h h2 { font-size: 19px; }
.card__h .link-btn { padding: 0; font-size: 14px; }
.stack { display: grid; gap: 12px; }
.mt { margin-top: 12px; }

.hero { padding: 6px 0 16px; }
.hero h2 { font-size: 26px; }
.hero__what { margin: 4px 0 0; color: var(--muted); font-weight: 600; }
.hero__due { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hero__due .dt { width: 52px; height: 54px; }
.hero__due p { margin: 0; font-weight: 800; }
.hero__due small { display: block; font-weight: 700; color: var(--muted); font-size: 13px; }
.hero__due.is-late { box-shadow: inset 0 0 0 2px var(--red); }
.hero__due.is-late p { color: var(--red); }

.contact { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.contact .btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
.contact .btn svg { width: 18px; height: 18px; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.step {
  border: 0;
  padding: 10px 4px 9px;
  border-radius: 14px;
  background: var(--bg);
  color: var(--muted);
  font-weight: 800;
  font-size: 12.5px;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 4px;
}
.step svg { width: 22px; height: 22px; }
.step--nova { --c: var(--c-nova); }
.step--vyroba { --c: var(--c-vyroba); }
.step--hotova { --c: var(--c-hotova); }
.step--odovzdana { --c: var(--c-odovzdana); }
.step { box-shadow: inset 0 3px 0 var(--c); }
.step.is-past { color: var(--ink); background: var(--blush-2); }
.step.is-on { background: var(--c); color: #fff; box-shadow: none; }

.lines { display: grid; gap: 0; }
.ln { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.ln:last-child { border-bottom: 0; }
.ln span:first-child { color: var(--muted); font-weight: 600; }
.ln span:last-child { font-weight: 800; text-align: right; white-space: nowrap; }
.ln--total { padding-top: 12px; }
.ln--total span:first-child { color: var(--ink); font-weight: 800; }
.ln--total span:last-child { font-family: var(--serif); font-size: 24px; font-weight: 800; color: var(--pink-t); }

.price-row { display: grid; grid-template-columns: 1fr 124px; gap: 10px; align-items: center; }
.price-row > div b { display: block; font-weight: 800; font-size: 15px; }
.price-row > div span { font-size: 13px; color: var(--muted); }
.money-in { position: relative; }
.money-in .input { padding-right: 34px; text-align: right; font-weight: 800; }
.money-in::after { content: "€"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 800; }

.paybox { margin-top: 14px; display: grid; gap: 10px; }
.paid-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sage-bg); color: #3f6a3a; font-weight: 800; font-size: 14px; }
.paid-note svg { width: 22px; height: 22px; flex: none; }
.paid-note--soft { background: var(--blush-2); color: var(--rose-dd); }
.paid-note--soft button { color: var(--rose-dd) !important; }
.wait-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #fdecd9; color: #8a4f10; font-weight: 800; font-size: 14px; }
.wait-note svg { width: 22px; height: 22px; flex: none; }
.paid-note button { margin-left: auto; border: 0; background: none; color: #3f6a3a; text-decoration: underline; font-weight: 700; cursor: pointer; font-size: 13px; }
.row-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.it { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.it:first-child { padding-top: 0; }
.it:last-child { border-bottom: 0; padding-bottom: 0; }
.it b { font-size: 16px; }
.it b i { font-style: normal; color: var(--rose-d); margin-left: 6px; }
.it p { margin: 4px 0 0; white-space: pre-wrap; color: var(--ink); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.gallery a { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--blush); display: grid; place-items: center; color: var(--rose-d); font-weight: 800; text-decoration: none; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kv { display: grid; gap: 2px; font-size: 15px; }
.kv b { font-weight: 800; }
.kv span { color: var(--muted); }
.quote { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--blush-2); white-space: pre-wrap; font-size: 15px; }

.note-st { font-size: 12px; font-weight: 700; color: var(--faint); }

.hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hist li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; font-size: 14px; }
.hist li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); margin-top: 7px; }
.hist small { display: block; color: var(--faint); font-weight: 700; font-size: 12px; }

.danger { color: var(--red); }

.form { display: grid; gap: 14px; }
.form h3 { font-size: 18px; margin-top: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.row2--zip { grid-template-columns: 110px 1fr; }
.ed-item { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--blush-2); }
.ed-item__h { display: flex; justify-content: space-between; align-items: center; }
.ed-item__h b { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--rose-d); }
.ed-item__h button { border: 0; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.ed-item__r { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.radio-list { display: grid; gap: 8px; }
.radio {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.radio input { width: 20px; height: 20px; margin: 0; accent-color: var(--rose-d); }
.radio em { font-style: normal; color: var(--rose-d); font-weight: 800; }
.radio:has(input:checked) { border-color: var(--rose); background: var(--blush-2); }
.sticky-save { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); padding: 12px 0 4px; background: linear-gradient(rgba(251,245,242,0), var(--bg) 30%); z-index: 5; }

.bigsum { font-family: var(--serif); font-size: 40px; font-weight: 800; line-height: 1.05; }
.bigsum small { display: block; font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); margin-top: 6px; }
.wd-card { background: var(--rose-d); color: #fff; box-shadow: none; }
.wd-card .bigsum small, .wd-card .muted { color: #f7c6dc; }
.wd-card .btn { background: #fff; color: var(--rose-dd); }
.wd-next { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 800; font-size: 14px; }
.wd-next svg { width: 18px; height: 18px; }
.pick { display: grid; gap: 4px; margin: 14px 0; }
.pick label { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid rgba(255,255,255,.16); cursor: pointer; font-weight: 700; }
.pick label:last-child { border-bottom: 0; }
.pick input { width: 20px; height: 20px; margin: 0; accent-color: #fff; }
.pick span small { display: block; font-weight: 600; color: #f6d6de; font-size: 13px; }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: inherit; align-items: center; }
.mrow:last-child { border-bottom: 0; }
.mrow b { display: block; font-weight: 800; }
.mrow small { color: var(--muted); font-weight: 600; font-size: 13px; }
.mrow > span { font-weight: 800; text-align: right; }
.mrow > span small { display: block; }

.sw { position: relative; width: 50px; height: 30px; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw span { position: absolute; inset: 0; border-radius: 15px; background: #e3d5d1; transition: background .2s; }
.sw span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.sw input:checked + span { background: var(--rose-d); }
.sw input:checked + span::after { transform: translateX(20px); }
.sw input:focus-visible + span { outline: 3px solid rgba(245, 154, 194, .5); outline-offset: 2px; }
.set { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.set:last-child { border-bottom: 0; padding-bottom: 0; }
.set:first-child { padding-top: 0; }
.set b { display: block; font-weight: 800; font-size: 15px; }
.set small { color: var(--muted); font-size: 13px; font-weight: 600; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.day span { display: grid; place-items: center; min-width: 44px; height: 40px; padding: 0 10px; border-radius: 12px; border: 1.5px solid var(--line-2); font-weight: 800; font-size: 14px; background: #fff; }
.day input:checked + span { background: var(--rose-d); border-color: var(--rose-d); color: #fff; }
.day input:focus-visible + span { outline: 3px solid rgba(245,154,194,.5); }
.url-box { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--blush-2); font-weight: 700; font-size: 14px; word-break: break-all; }
.url-box span { flex: 1; min-width: 0; }
.ed-list { display: grid; gap: 8px; }
.ed-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.ed-row--d { grid-template-columns: 1fr 96px auto; }
.ed-row--d select, .ed-row--d .ed-row__note { grid-column: 1 / -1; }
.ed-row--d { padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.ed-row .ib { width: 40px; height: 40px; color: var(--muted); }
.logo-prev { display: flex; align-items: center; gap: 14px; }
.logo-prev img { max-height: 64px; max-width: 160px; object-fit: contain; border-radius: 10px; background: var(--bg); padding: 6px; }
.muted { color: var(--muted); }
.field > label { font-size: 14px; font-weight: 700; }
.datefield { position: relative; }
.datefield .input { padding-right: 56px; }
.datefield__btn { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 46px; border: 0; border-radius: 11px; background: var(--blush-2); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.datefield__btn svg { width: 22px; height: 22px; }
.datefield__native { position: absolute; right: 4px; bottom: 0; width: 46px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.filepick { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px dashed var(--rose); border-radius: 14px; background: #fff; cursor: pointer; }
.filepick > svg { width: 26px; height: 26px; flex: none; }
.filepick b { display: block; font-weight: 800; }
.filepick small { color: var(--muted); font-weight: 600; font-size: 13px; }
.filepick:focus-within { box-shadow: 0 0 0 4px rgba(245, 154, 194, .25); }
#eprev:empty { display: none; }
.gallery__x { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(29, 26, 27, .75); color: #fff; display: grid; place-items: center; }
.gallery__x svg { width: 14px; height: 14px; }
.link-btn svg { width: 18px; height: 18px; flex: none; }
.users { display: grid; gap: 4px; }
.user { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: var(--ink); font-family: var(--serif); font-weight: 800; font-size: 16px; }
.user__t { flex: 1; min-width: 0; }
.user__t b { display: block; font-weight: 800; font-size: 15px; }
.user__t small { color: var(--muted); font-size: 13px; font-weight: 600; }
.ib--sm { width: 38px; height: 38px; color: var(--muted); }
.ib--sm svg { width: 19px; height: 19px; }
.acts { margin-top: 10px; border-top: 1px solid var(--line); }
.act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-weight: 800; font-size: 15px; color: var(--ink); cursor: pointer; }
.act:last-child { border-bottom: 0; padding-bottom: 2px; }
.act > svg { width: 22px; height: 22px; flex: none; color: var(--muted); }
.act > svg:last-child { width: 18px; height: 18px; color: var(--faint); }
.act span { flex: 1; }
.act small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }
.act--out, .act--out > svg { color: var(--red); }
.small { font-size: 13px; }
.hr { height: 1px; background: var(--line); margin: 6px 0; border: 0; }

.sheet-bg { position: fixed; inset: 0; z-index: 60; background: rgba(61, 43, 43, .42); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s ease both; }
.sheet-bg.is-out { animation: fade .18s ease reverse both; }
.sheet {
  width: min(560px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: var(--bg);
  border-radius: 26px 26px 0 0;
  padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
  animation: up .28s cubic-bezier(.2, .8, .2, 1) both;
}
.sheet-bg.is-out .sheet { animation: up .18s ease reverse both; }
.sheet__grip { width: 44px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 12px; }
.sheet h2 { font-size: 22px; margin-bottom: 12px; }
.sheet__img { display: block; width: 100%; max-width: 320px; margin: 0 auto 14px; border-radius: 18px; box-shadow: 0 10px 30px -12px rgba(120,70,70,.4); background: #fff; min-height: 200px; }
.sheet .stack { gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 6px; border: 0; background: none; font-weight: 800; font-size: 16px; cursor: pointer; border-bottom: 1px solid var(--line); text-align: left; color: var(--ink); }
.menu-item:last-child { border-bottom: 0; }
.menu-item svg { width: 22px; height: 22px; color: var(--muted); }
.menu-item.danger, .menu-item.danger svg { color: var(--red); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom));
  z-index: 90;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  max-width: calc(100% - 32px);
  transition: opacity .2s, transform .2s;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-err { background: var(--red); }

.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; }
.auth::before { content: ""; position: fixed; inset: 0; background: url("../assets/pozadie.webp") center / 700px auto; opacity: .55; }
.auth__card { position: relative; width: min(420px, 100%); background: rgba(255,253,251,.97); border-radius: 28px; padding: 30px 22px 24px; box-shadow: 0 20px 50px -18px rgba(120,70,70,.35); }
.auth__card h1 { font-size: 28px; text-align: center; }
.auth__card > p { text-align: center; color: var(--muted); margin: 6px 0 20px; }
.auth__brand { text-align: center; font-family: var(--script); color: var(--gold); font-size: 30px; margin: 0 0 6px; }
.auth__logo { display: block; max-height: 100px; max-width: 220px; margin: 0 auto 16px; }
.auth__forgot { display: block; margin: 12px auto 0; font-size: 15px; }
.auth__sep { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.auth__sep b { display: block; font-weight: 800; }
.auth__sep small { color: var(--muted); font-size: 13px; font-weight: 600; }
.auth__q { padding: 14px 16px; border-radius: 14px; background: var(--blush); font-weight: 800; font-size: 17px; text-align: center; }

.banner { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--blush); margin-top: 14px; }
.banner svg { width: 26px; height: 26px; color: var(--rose-d); flex: none; }
.banner p { margin: 0; font-size: 14px; font-weight: 700; flex: 1; }
.banner .btn { min-height: 38px; padding: 0 14px; font-size: 14px; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(20, 12, 12, .92); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; }
.lightbox .ib { position: absolute; top: calc(10px + env(safe-area-inset-top)); right: 10px; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}
