/* Soukromý concierge: jedna věc, velká a klidná. Editorial luxury, systémové písmo. */
:root {
  --bg: #F5F1E9; --bg2: #EEE8DC; --ink: #1E1A15; --mute: #6B6257; --hair: rgb(30 26 21 / .13);
  --shell: rgb(30 26 21 / .045); --core: #FCFAF5; --accent: #7A5B2E; --accent-ink: #FBF7EE;
  --glass: rgb(245 241 233 / .78); --ok: #456A4F; --bad: #8E3B33; --shadow: 0 30px 60px -30px rgb(60 40 10 / .28);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Noto Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Roboto, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #13110F; --bg2: #1A1714; --ink: #EDE6DA; --mute: #A89D8D; --hair: rgb(237 230 218 / .14);
    --shell: rgb(255 255 255 / .045); --core: #1C1916; --accent: #C8A46A; --accent-ink: #18130C;
    --glass: rgb(19 17 15 / .78); --ok: #8DB398; --bad: #DE8E84; --shadow: 0 30px 60px -30px rgb(0 0 0 / .7);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans);
  background-image: radial-gradient(900px 500px at 85% -10%, var(--bg2), transparent 70%);
  overflow-x: hidden;
}
.grain { position: fixed; inset: 0; pointer-events: none; opacity: .05; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
a { color: inherit; text-decoration-color: var(--hair); text-underline-offset: 4px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }

/* horní linka a nabídka */
.top { position: relative; z-index: 2; display: flex; padding: 22px 20px 0; max-width: 760px; margin: 0 auto; }
.lab { display: flex; gap: 16px; font-size: 12px; letter-spacing: .04em; color: var(--mute); padding-top: 14px; }
.lab a { text-decoration: none; }
.lab a:hover { color: var(--ink); }
.burger {
  position: fixed; top: 16px; right: 16px; z-index: 40; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 20px 0 18px;
  border-radius: 999px; border: 1px solid var(--hair); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; transition: transform .6s var(--ease);
}
.burger:active { transform: scale(.97); }
.lines { position: relative; width: 18px; height: 10px; }
.lines i { position: absolute; left: 0; right: 0; height: 1px; background: currentColor; transition: transform .6s var(--ease), top .6s var(--ease); }
.lines i:first-child { top: 1px; } .lines i:last-child { top: 8px; }
.burger[aria-expanded="true"] .lines i:first-child { top: 4.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .lines i:last-child { top: 4.5px; transform: rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 30; background: var(--glass); -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s .6s; overflow-y: auto;
}
.menu.on { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }
.menu-in { min-height: 100dvh; max-width: 760px; margin: 0 auto; padding: 110px 28px 60px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.menu-in a.big {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; text-decoration: none;
  font: 400 clamp(34px, 7vw, 56px)/1.1 var(--serif); letter-spacing: -.02em;
  opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease), color .3s;
}
.menu.on .menu-in a.big { opacity: 1; transform: none; transition-delay: calc(var(--i) * 70ms + 120ms); }
.menu-in a.big small { font: 400 13px var(--sans); letter-spacing: .08em; color: var(--mute); white-space: nowrap; }
.menu-in a.big[aria-current="page"] { color: var(--accent); }
.menu-in a.big:hover { color: var(--accent); }
.menu-foot { margin-top: 36px; display: flex; gap: 22px; font-size: 13px; color: var(--mute); }

main { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; padding: 28px 20px 150px; }
.boot { padding-top: 20vh; text-align: center; }
.quiet { color: var(--mute); }
.eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--hair); font-size: 10.5px; letter-spacing: .22em;
  text-transform: uppercase; color: var(--mute); background: var(--shell);
}
.rv { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* domů: pozdrav a jedna věc */
.hello { padding: 20px 0 22px; }
.hello h1 { font: 400 clamp(30px, 5vw, 40px)/1.1 var(--serif); letter-spacing: -.025em; margin-top: 18px; }
.hello p { color: var(--mute); margin-top: 10px; }
.count { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between; margin: 0 4px 14px; }
.shell { padding: 8px; border-radius: 34px; background: var(--shell); border: 1px solid var(--hair); }
.core {
  border-radius: 27px; background: var(--core); padding: clamp(26px, 5vw, 40px); box-shadow: var(--shadow), inset 0 1px 1px rgb(255 255 255 / .35);
}
.core .area { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.core h2 { font: 400 clamp(32px, 6.4vw, 56px)/1.08 var(--serif); letter-spacing: -.028em; margin: 14px 0 16px; text-wrap: balance; }
.when { font: italic 400 clamp(19px, 3.4vw, 24px)/1.3 var(--serif); color: var(--ink); }
.when small { font: 400 14px var(--sans); color: var(--mute); font-style: normal; display: block; margin-top: 6px; }
.cite { margin: 26px 0 0; padding-left: 18px; border-left: 1px solid var(--accent); color: var(--mute); font: italic 400 16px/1.5 var(--serif); max-width: 52ch; }
.src { margin-top: 18px; font-size: 14px; color: var(--mute); }
.acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 10px 0 26px; border-radius: 999px; border: 1px solid var(--hair);
  background: transparent; text-decoration: none; font-size: 16px; transition: transform .5s var(--ease), background .4s var(--ease), border-color .4s;
}
.pill.ghost { padding: 0 24px; }
.pill:hover { border-color: var(--ink); }
.pill:active { transform: scale(.98); }
.pill.main { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill.main:hover { background: var(--accent); filter: brightness(1.08); }
.pill .ico { width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / .18); display: grid; place-items: center; transition: transform .5s var(--ease); }
.pill .ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pill:hover .ico { transform: translate(3px, -1px) scale(1.06); }
.pill[disabled] { opacity: .5; pointer-events: none; }
.tlink { background: none; border: 0; padding: 12px 8px; font-size: 14px; color: var(--mute); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: 4px; }
.tlink:hover { color: var(--ink); }
.who { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.note { margin-top: 18px; color: var(--mute); font-size: 15px; }
.podklad { margin-top: 22px; padding: 20px 22px; border-radius: 20px; background: var(--shell); font-size: 15.5px; }
.podklad h4 { font: 400 22px var(--serif); margin-bottom: 8px; }
.podklad ul { margin: 10px 0 0; padding-left: 20px; }
.err { color: var(--bad); font-size: 15px; margin-top: 14px; }
.fld { margin-top: 22px; display: grid; gap: 8px; max-width: 340px; }
.fld label, .lbl2 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--mute); }
input[type="date"], input[type="time"], input[type="text"], textarea, select {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--hair); background: var(--core);
}
textarea { min-height: 120px; resize: vertical; }

/* vše ostatní je pohlídané */
.watched { margin-top: 38px; border-top: 1px solid var(--hair); padding-top: 4px; }
.watched summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px 4px; cursor: pointer; color: var(--mute); font-size: 15px; }
.watched summary::-webkit-details-marker { display: none; }
.watched summary b { font: 400 26px var(--serif); color: var(--ink); min-width: 1.4em; }
.watched summary::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .5s var(--ease); }
.watched[open] summary::after { transform: rotate(225deg); }
.wl { list-style: none; padding: 0 4px 12px; margin: 0; }
.wl li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 15px; }
.wl li span:last-child { color: var(--mute); white-space: nowrap; }
.wl a { text-decoration: none; }
.saved { margin-top: 26px; font-size: 14px; color: var(--mute); padding: 0 4px; }
.empty-big { padding: 8vh 0 4vh; }
.empty-big h2 { font: 400 clamp(36px, 7vw, 60px)/1.05 var(--serif); letter-spacing: -.03em; margin: 22px 0 14px; }
.empty-big p { color: var(--mute); max-width: 44ch; }

/* ostatní pohledy */
.page-h { padding: 26px 0 26px; }
.page-h h1 { font: 400 clamp(34px, 6vw, 52px)/1.06 var(--serif); letter-spacing: -.028em; margin-top: 18px; text-wrap: balance; }
.page-h p { color: var(--mute); margin-top: 10px; max-width: 52ch; }
.back { display: inline-block; font-size: 14px; color: var(--mute); text-decoration: none; padding: 8px 0; }
.back:hover { color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--hair); background: transparent; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--mute); transition: background .4s var(--ease), color .4s; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.list { border-top: 1px solid var(--hair); }
.item { display: block; padding: 22px 2px; border-bottom: 1px solid var(--hair); text-decoration: none; transition: padding .5s var(--ease); }
.item:hover { padding-left: 10px; }
.item h3 { font: 400 clamp(22px, 3.8vw, 28px)/1.2 var(--serif); letter-spacing: -.015em; }
.item .meta { font-size: 13px; color: var(--mute); margin-top: 6px; letter-spacing: .02em; }
.item p { color: var(--mute); font-size: 15.5px; margin-top: 8px; max-width: 60ch; }
.sec { margin-top: 38px; }
.sec h3 { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--mute); font-weight: 500; margin-bottom: 14px; }
.textbox { white-space: pre-wrap; font: 400 16px/1.65 var(--serif); padding: 22px 24px; border-radius: 22px; background: var(--shell); max-height: 420px; overflow: auto; overflow-wrap: anywhere; }
.textbox mark { background: rgb(200 164 106 / .35); color: inherit; border-radius: 3px; padding: 0 2px; }
.orig img { max-width: 100%; border-radius: 18px; border: 1px solid var(--hair); display: block; margin-bottom: 14px; }
.term { padding: 20px 0; border-top: 1px solid var(--hair); }
.term .t { font: 400 22px/1.25 var(--serif); }
.term .w { color: var(--mute); font-size: 14px; margin-top: 6px; }
.term .acts { margin-top: 16px; }
.term .pill { min-height: 44px; font-size: 15px; }

/* kalendář */
.wk-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.wk-bar .lbl2 { flex: 1 1 100%; }
.week { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--hair); }
.day { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.day h3 { font: 400 15px var(--sans); color: var(--mute); }
.day h3 b { display: block; font: 400 34px/1 var(--serif); color: var(--ink); margin-top: 4px; }
.day.today h3 b { color: var(--accent); }
.ev { padding: 4px 0 10px; font-size: 16px; }
.ev time { font-variant-numeric: tabular-nums; color: var(--mute); margin-right: 10px; font-size: 14px; }
.ev .st { color: var(--accent); font-size: 13px; }
.ev.free { color: var(--mute); font-style: italic; font-family: var(--serif); }
.ev a { text-decoration-color: var(--hair); }

/* majetek */
.nw { padding: clamp(26px, 6vw, 48px); }
.nw .big { font: 400 clamp(40px, 9vw, 72px)/1 var(--serif); letter-spacing: -.035em; font-variant-numeric: tabular-nums; margin: 16px 0 10px; }
.nw p { color: var(--mute); }
.nw p.big { color: var(--ink); }
.spark { width: 100%; height: 90px; margin-top: 22px; }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.led { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--hair); }
.led .n { font: 400 20px var(--serif); }
.led small { display: block; color: var(--mute); font: 400 13px var(--sans); margin-top: 3px; }
.led .v { font: 400 20px var(--serif); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* dotaz */
.qa .q { font: italic 400 20px/1.4 var(--serif); color: var(--mute); }
.qa .a { font: 400 clamp(22px, 4vw, 30px)/1.4 var(--serif); margin-top: 22px; letter-spacing: -.01em; white-space: pre-wrap; }
.qa .warn { color: var(--bad); font-size: 15px; margin-top: 18px; }
.qa .ai { color: var(--mute); font-size: 13px; margin-top: 22px; }
.srcs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thinking { display: inline-flex; gap: 6px; margin-top: 22px; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: dot 1.2s var(--ease) infinite; }
.thinking i:nth-child(2) { animation-delay: .15s; } .thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }

/* pevná lišta dole */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 0 16px calc(14px + env(safe-area-inset-bottom)); pointer-events: none; }
.dock-shell {
  pointer-events: auto; max-width: 620px; margin: 0 auto; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px;
  background: var(--glass); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); border: 1px solid var(--hair); box-shadow: var(--shadow);
}
.dock input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 10px; border-radius: 0; font-size: 16px; }
.dock input:focus-visible { outline: none; }
.dock-shell:focus-within { border-color: var(--accent); }
.dock-plus, .dock-go { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; transition: transform .5s var(--ease), background .4s; }
.dock-plus { background: var(--shell); }
.dock-go { background: var(--accent); color: var(--accent-ink); }
.dock-plus:hover, .dock-go:hover { transform: scale(1.06); }
.dock-plus:active, .dock-go:active { transform: scale(.96); }
.dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
body.menu-open .dock { visibility: hidden; }
body.menu-open { overflow: hidden; }

.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 14px 20px; border-radius: 999px; font-size: 15px; max-width: min(92vw, 560px); text-align: center;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toast.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.bad { background: var(--bad); color: #fff; }
.toast button { background: none; border: 0; color: inherit; text-decoration: underline; margin-left: 12px; padding: 0; }

@media (min-width: 768px) {
  .top { padding: 34px 20px 0; }
  .burger { top: 28px; right: 40px; }
  main { padding-top: 40px; }
  .week { grid-template-columns: repeat(7, 1fr); border-top: 0; gap: 0; border-left: 1px solid var(--hair); }
  .day { grid-template-columns: 1fr; gap: 6px; padding: 16px 12px; border: 1px solid var(--hair); border-left: 0; border-bottom: 1px solid var(--hair); min-height: 240px; align-content: start; }
  body.wide main { max-width: 1100px; }
  body.wide .top { max-width: 1100px; }
  .ev { font-size: 14.5px; padding-bottom: 12px; }
  .ev time { display: block; margin: 0 0 2px; }
}
@media (max-width: 420px) { .lab { flex-direction: column; gap: 4px; padding-top: 4px; } .burger .lbl { letter-spacing: .14em; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } .rv { opacity: 1; } html { scroll-behavior: auto; } }
input[type="file"] { padding: 10px; border-radius: 16px; border: 1px dashed var(--hair); background: var(--core); font-size: 15px; }
input[type="file"]::file-selector-button { margin-right: 14px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--hair); background: transparent; color: var(--ink); font: inherit; cursor: pointer; }
