/* ============ Administrácia Fürsten Reality ============ */
:root {
  --navy: #142B25; --navy-2: #1F3B34; --navy-3: #2A4A41;
  --teal: #C9AC7C; --teal-d: #85653A; --teal-l: #F3ECDD;
  --bg: #F4F1E9; --card: #FFFFFF; --line: #E4DFD3; --line-2: #EFEBE2;
  --text: #1B2A26; --muted: #5F6B66; --soft: #979F9A;
  --ok: #2F9E6A; --warn: #C98A1B; --danger: #C8423B; --res: #D4A13B;
  --serif: 'Newsreader', Georgia, serif; --sans: 'Hanken Grotesk', system-ui, sans-serif;
  --r: 10px; --r-lg: 16px;
  --shadow: 0 1px 2px rgba(17,29,41,.04), 0 8px 24px rgba(17,29,41,.06);
  --shadow-lg: 0 2px 6px rgba(17,29,41,.06), 0 30px 70px rgba(17,29,41,.18);
  --ease: cubic-bezier(.22,.61,.36,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 14.5px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--teal-d); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--teal); color: var(--navy); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* boot */
.boot { min-height: 100vh; display: grid; place-items: center; gap: 1.5rem; align-content: center; }
.boot img { width: 220px; }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--teal-d); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ login ============ */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.login-art { background: var(--navy); color: #EDF1FC; position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: space-between; }
.login-art img.logo { width: min(320px, 70%); }
.login-art h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4.6rem); line-height: .98; letter-spacing: -.02em; max-width: 11ch; }
.login-art h1 em { color: var(--teal); }
.login-art p { color: #9AA8BA; max-width: 40ch; margin-top: 1rem; }
.login-art .rings { position: absolute; right: -22%; bottom: -30%; width: 780px; aspect-ratio: 1; pointer-events: none; }
.login-art .rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--teal); opacity: 0; animation: ring 8s var(--ease) infinite; }
.login-art .rings span:nth-child(2) { animation-delay: 2s; } .login-art .rings span:nth-child(3) { animation-delay: 4s; } .login-art .rings span:nth-child(4) { animation-delay: 6s; }
@keyframes ring { 0% { transform: scale(.25); opacity: 0; } 15% { opacity: .5; } 100% { transform: scale(1); opacity: 0; } }
.login-art .foot { font-size: .8rem; color: #6F8196; display: flex; gap: 1rem; align-items: center; }
.login-art .foot img { height: 20px; width: auto; }
.login-form { display: grid; place-items: center; padding: 2rem; background: var(--card); }
.login-form form { width: min(380px, 100%); }
.login-form h2 { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; line-height: 1.05; margin-bottom: .4rem; }
.login-form .sub { color: var(--muted); margin-bottom: 2rem; }
.login-form .err { color: var(--danger); font-size: .88rem; min-height: 1.4em; margin-top: .6rem; }
.login-form .back { display: inline-flex; gap: .4rem; align-items: center; color: var(--muted); font-size: .85rem; margin-top: 2rem; }
.login-form .back:hover { color: var(--text); }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: .5rem; top: 50%; translate: 0 -50%; color: var(--soft); padding: .4rem; font-size: .78rem; font-weight: 600; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (max-width: 860px) { .login { grid-template-columns: 1fr; } .login-art { min-height: 300px; } .login-art h1 { font-size: 2.6rem; } }

/* ============ shell ============ */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { background: var(--navy); color: #C9D3E0; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 1.4rem 1rem 1rem; overflow-y: auto; z-index: 40; }
.side .logo { padding: .3rem .6rem 1.4rem; }
.side .logo img { width: 180px; }
.side .logo small { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #6F8196; margin-top: .5rem; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side .grp { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: #5D6F84; padding: 1.1rem .75rem .45rem; }
.side a.item { display: flex; align-items: center; gap: .75rem; padding: .62rem .75rem; border-radius: 9px; color: #C9D3E0; font-weight: 500; font-size: .9rem; transition: background .2s, color .2s; }
.side a.item svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.side a.item:hover { background: rgba(255,255,255,.05); color: #fff; }
.side a.item.on { background: rgba(115,199,210,.14); color: #fff; }
.side a.item.on svg { opacity: 1; color: var(--teal); }
.side a.item .count { margin-left: auto; font-size: .72rem; color: #8193A8; background: rgba(255,255,255,.06); padding: .05rem .5rem; border-radius: 100px; }
.side .sub { display: flex; flex-direction: column; margin: 2px 0 4px 2.3rem; border-left: 1px solid rgba(255,255,255,.08); }
.side .sub a { padding: .38rem .8rem; font-size: .83rem; color: #9AA8BA; border-radius: 0 7px 7px 0; }
.side .sub a:hover { color: #fff; }
.side .sub a.on { color: var(--teal); background: rgba(115,199,210,.08); }
.side .foot { margin-top: auto; padding-top: 1rem; display: flex; flex-direction: column; gap: .7rem; }
.me { display: flex; align-items: center; gap: .7rem; padding: .7rem; border-radius: 12px; background: rgba(255,255,255,.04); }
.me img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--teal); }
.me b { display: block; color: #fff; font-size: .88rem; font-weight: 600; }
.me small { color: #8193A8; font-size: .74rem; }
.me button { margin-left: auto; color: #8193A8; padding: .35rem; border-radius: 6px; }
.me button:hover { color: #fff; background: rgba(255,255,255,.08); }
.pub { display: flex; align-items: center; gap: .6rem; font-size: .78rem; padding: .55rem .75rem; border-radius: 9px; background: rgba(255,255,255,.04); color: #9AA8BA; }
.pub i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(47,158,106,.18); flex: none; }
.pub.busy i { background: var(--teal); box-shadow: 0 0 0 4px rgba(115,199,210,.2); animation: pulse 1.2s infinite; }
.pub.warn i { background: var(--warn); box-shadow: 0 0 0 4px rgba(201,138,27,.2); }
.pub.off i { background: #5D6F84; box-shadow: none; }
@keyframes pulse { 50% { opacity: .35; } }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 1rem; padding: 1.1rem clamp(1rem, 3vw, 2.4rem); background: rgba(243,245,249,.9); backdrop-filter: saturate(1.4) blur(8px); position: sticky; top: 0; z-index: 30; border-bottom: 1px solid transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.top .burger { display: none; width: 40px; height: 40px; border-radius: 10px; background: var(--card); box-shadow: var(--shadow); place-items: center; }
.crumb { font-size: .8rem; color: var(--muted); display: flex; gap: .5rem; align-items: center; }
.crumb a:hover { color: var(--text); }
.top .actions { margin-left: auto; display: flex; gap: .6rem; align-items: center; }
.page { padding: .6rem clamp(1rem, 3vw, 2.4rem) 7rem; width: 100%; max-width: 1280px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.page-head h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -.015em; }
.page-head h1 em { color: var(--teal-d); }
.page-head p { color: var(--muted); margin-top: .45rem; max-width: 60ch; }
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; transform: translateX(-100%); transition: transform .35s var(--ease); box-shadow: var(--shadow-lg); }
  .side.open { transform: none; }
  .top .burger { display: grid; }
  .scrim { position: fixed; inset: 0; background: rgba(17,29,41,.4); z-index: 35; }
}

/* ============ primitives ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; height: 40px; padding: 0 1.05rem; border-radius: 10px; font-weight: 600; font-size: .86rem; white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-3); }
.btn-teal { background: var(--teal); color: var(--navy); }
.btn-teal:hover { background: #5DB9C6; }
.btn-ghost { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px #C9D2DE; background: #FAFBFD; }
.btn-danger { background: #FCEDEC; color: var(--danger); }
.btn-danger:hover { background: #F8DCDA; }
.btn-sm { height: 32px; padding: 0 .75rem; font-size: .8rem; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 1.4rem; font-size: .92rem; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--muted); transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--line-2); color: var(--text); }
.icon-btn.on { color: var(--teal-d); }
.icon-btn.danger:hover { background: #FCEDEC; color: var(--danger); }
.icon-btn svg { width: 17px; height: 17px; }

.card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.card-pad { padding: clamp(1.1rem, 2vw, 1.6rem); }
.card h3 { font-size: 1rem; font-weight: 650; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: .82rem; margin-left: .4rem; }
.card .card-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line-2); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: .8rem; margin-top: .35rem; }
.hint code, .md-help code { background: var(--line-2); padding: .05rem .35rem; border-radius: 4px; font-size: .78rem; }

/* forms */
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; }
.fgrid .full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.f > label, .f > .lab { font-size: .8rem; font-weight: 600; color: #344054; display: flex; justify-content: space-between; gap: .5rem; }
.f > label .opt { font-weight: 400; color: var(--soft); }
.in, .f input[type=text], .f input[type=url], .f input[type=date], .f input[type=password], .f input[type=number], .f select, .f textarea {
  width: 100%; background: #fff; border: 1px solid #D5DCE6; border-radius: 9px; padding: .62rem .8rem; font-size: .92rem; transition: border-color .2s, box-shadow .2s; }
.f textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.f textarea.short { min-height: 46px; }
.in:focus, .f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 4px rgba(115,199,210,.25); }
.f select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23667085' fill='none' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .85rem center; padding-right: 2.2rem; }
.f.big input { font-size: 1.25rem; font-weight: 600; padding: .75rem .9rem; }
.affix { display: flex; align-items: stretch; }
.affix span { display: grid; place-items: center; padding: 0 .75rem; background: var(--line-2); border: 1px solid #D5DCE6; border-right: 0; border-radius: 9px 0 0 9px; color: var(--muted); font-size: .82rem; white-space: nowrap; }
.affix input { border-radius: 0 9px 9px 0 !important; }
@media (max-width: 720px) { .fgrid { grid-template-columns: 1fr; } }

/* toggle */
.tog { display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; font-size: .88rem; }
.tog input { position: absolute; opacity: 0; pointer-events: none; }
.tog .sw { width: 38px; height: 22px; border-radius: 100px; background: #D5DCE6; position: relative; transition: background .2s; flex: none; }
.tog .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--ease); }
.tog input:checked + .sw { background: var(--teal-d); }
.tog input:checked + .sw::after { transform: translateX(16px); }
.tog input:focus-visible + .sw { outline: 2px solid var(--teal-d); outline-offset: 2px; }

/* segmented */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--line-2); border-radius: 11px; }
.seg button { padding: .45rem .8rem; border-radius: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: .45rem; }
.seg button:hover { color: var(--text); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(17,29,41,.1); }
.seg button .dot { width: 7px; height: 7px; border-radius: 50%; }
.seg button sup { font-size: .7rem; color: var(--soft); top: 0; }

/* status pills */
.st { display: inline-flex; align-items: center; gap: .4rem; font-size: .74rem; font-weight: 600; padding: .22rem .6rem; border-radius: 100px; white-space: nowrap; }
.st::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-aktualne, .st-nabidka { background: #E6F5EE; color: var(--ok); }
.st-rezervovane { background: #FBF1DC; color: #A7780F; }
.st-predane, .st-prenajate { background: #EEF0F4; color: #475467; }
.st-hidden { background: #FCEDEC; color: var(--danger); }
.dot-aktualne { background: var(--ok); } .dot-rezervovane { background: var(--res); } .dot-predane, .dot-prenajate { background: #98A2B3; }

/* ============ dashboard ============ */
.welcome { background: var(--navy); color: #EDF1FC; border-radius: 20px; padding: clamp(1.4rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; margin-bottom: 1.4rem; }
.welcome h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; }
.welcome h2 em { color: var(--teal); }
.welcome p { color: #9AA8BA; margin-top: .6rem; max-width: 52ch; }
.welcome .acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.welcome .btn-ghost { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.welcome .btn-ghost:hover { background: rgba(255,255,255,.12); }
.welcome .avatar { width: 150px; height: 150px; border-radius: 50%; background: var(--teal); overflow: hidden; position: relative; z-index: 1; }
.welcome .avatar img { width: 100%; height: 100%; object-fit: cover; }
.welcome .rings { position: absolute; right: -60px; top: 50%; translate: 0 -50%; width: 420px; aspect-ratio: 1; }
.welcome .rings span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--teal); opacity: 0; animation: ring 7s var(--ease) infinite; }
.welcome .rings span:nth-child(2) { animation-delay: 2.3s; } .welcome .rings span:nth-child(3) { animation-delay: 4.6s; }
@media (max-width: 640px) { .welcome { grid-template-columns: 1fr; } .welcome .avatar { display: none; } }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; margin-bottom: 1.4rem; }
.stat { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .2rem; transition: transform .2s, box-shadow .2s; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat small { color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 2.6rem; line-height: 1; letter-spacing: -.02em; }
.stat .bar { height: 4px; border-radius: 4px; background: var(--line-2); margin-top: .6rem; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--teal); border-radius: 4px; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.4rem; }
@media (max-width: 1000px) { .dash-grid { grid-template-columns: 1fr; } }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 1.2rem 1.4rem 1.4rem; }
.qa a { display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: 12px; border: 1px solid var(--line); transition: border-color .2s, background .2s; }
.qa a:hover { border-color: var(--teal); background: #FAFDFE; }
.qa a .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; flex: none; }
.qa a .ic svg { width: 20px; height: 20px; }
.qa a b { display: block; font-size: .9rem; }
.qa a small { color: var(--muted); font-size: .78rem; }
@media (max-width: 560px) { .qa { grid-template-columns: 1fr; } }
.recent { list-style: none; }
.recent li { display: flex; align-items: center; gap: .9rem; padding: .75rem 1.4rem; border-top: 1px solid var(--line-2); }
.recent li:first-child { border-top: 0; }
.recent img { width: 52px; height: 40px; border-radius: 7px; object-fit: cover; background: var(--line-2); }
.recent .t { min-width: 0; flex: 1; }
.recent .t b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.recent .t small { color: var(--muted); font-size: .76rem; }
.tip { padding: 1.3rem 1.4rem; border-top: 1px solid var(--line-2); font-size: .86rem; color: #475467; }
.tip b { color: var(--text); }
.banner { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.2rem; border-radius: 12px; margin-bottom: 1.2rem; font-size: .88rem; }
.banner svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.banner b { display: block; margin-bottom: .15rem; }
.banner .btn { margin-left: auto; flex: none; }
.banner.warn { background: #FFF6E6; color: #7A5410; }
.banner.info { background: var(--teal-l); color: #155E67; }
.banner.err { background: #FCEDEC; color: #8E2B25; }

/* ============ tables / lists ============ */
.toolbar { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.search { position: relative; flex: 1; min-width: 200px; max-width: 360px; }
.search input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid #D5DCE6; background: #fff; padding: 0 .9rem 0 2.4rem; }
.search input:focus { outline: none; border-color: var(--teal-d); box-shadow: 0 0 0 4px rgba(115,199,210,.25); }
.search svg { position: absolute; left: .8rem; top: 50%; translate: 0 -50%; width: 16px; color: var(--soft); }
.rows { list-style: none; }
.row { display: grid; grid-template-columns: 26px 76px minmax(0, 1fr) 140px 150px auto; gap: 1rem; align-items: center; padding: .7rem 1.1rem .7rem .6rem; border-top: 1px solid var(--line-2); background: #fff; transition: background .15s; }
.row:first-child { border-top: 0; }
.row:hover { background: #FAFBFD; }
.row.dragging { opacity: .4; }
.row.over { box-shadow: inset 0 2px 0 var(--teal-d); }
.handle { color: #C3CBD6; cursor: grab; display: grid; place-items: center; height: 100%; }
.handle:hover { color: var(--muted); }
.handle svg { width: 16px; }
.row .thumb { width: 76px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--line-2); }
.row .ttl { min-width: 0; }
.row .ttl a { font-weight: 600; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .ttl a:hover { color: var(--teal-d); }
.row .ttl small { color: var(--muted); font-size: .78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .price { font-weight: 600; font-size: .86rem; white-space: nowrap; }
.row .price small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.row select.st-sel { appearance: none; border: 0; font-size: .76rem; font-weight: 600; padding: .3rem 1.6rem .3rem .7rem; border-radius: 100px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23667085' fill='none' stroke-width='1.3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .6rem center; }
.row .acts { display: flex; gap: 2px; }
.row.is-hidden .thumb, .row.is-hidden .ttl { opacity: .45; }
.empty { padding: 3rem 1.5rem; text-align: center; color: var(--muted); }
.empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.7rem; color: var(--text); margin-bottom: .3rem; }
@media (max-width: 900px) {
  .row { grid-template-columns: 22px 64px minmax(0, 1fr) auto; gap: .7rem; }
  .row .price, .row .stcell { display: none; }
  .row .thumb { width: 64px; height: 48px; }
}

/* ============ editor ============ */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1.4rem; align-items: start; }
.ed-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 1.2rem; }
@media (max-width: 1100px) { .ed { grid-template-columns: 1fr; } .ed-side { position: static; } }
.sec { margin-bottom: 1.4rem; }
.sec > .card-head h3 { display: flex; align-items: center; gap: .6rem; }
.sec > .card-head h3 .n { width: 24px; height: 24px; border-radius: 7px; background: var(--teal-l); color: var(--teal-d); font-size: .75rem; display: grid; place-items: center; }
.facts { display: grid; gap: .6rem; }
.fact { display: grid; grid-template-columns: 1fr 1fr 34px; gap: .6rem; }
.pv-card { overflow: hidden; }
.pv-card .img { aspect-ratio: 4 / 3; background: var(--line-2); position: relative; }
.pv-card .img img { width: 100%; height: 100%; object-fit: cover; }
.pv-card .img .st { position: absolute; top: .7rem; left: .7rem; background: rgba(255,255,255,.95); }
.pv-card .body { padding: 1rem 1.1rem 1.2rem; }
.pv-card .body small { color: var(--muted); font-size: .76rem; display: flex; justify-content: space-between; }
.pv-card .body b { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; display: block; line-height: 1.15; margin: .35rem 0; }
.pv-label { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); font-weight: 600; padding: .9rem 1.1rem 0; }
.side-list { display: flex; flex-direction: column; gap: .9rem; padding: 1.1rem 1.2rem; }
.side-list .tog { justify-content: space-between; width: 100%; }
.side-list .tog span:first-child { display: flex; flex-direction: column; }
.side-list .tog small { color: var(--muted); font-size: .76rem; }

/* images */
.drop { border: 1.5px dashed #C9D2DE; border-radius: 12px; padding: 1.4rem; text-align: center; color: var(--muted); transition: border-color .2s, background .2s; cursor: pointer; font-size: .86rem; }
.drop:hover, .drop.over { border-color: var(--teal-d); background: #F6FCFD; color: var(--text); }
.drop svg { width: 26px; height: 26px; margin: 0 auto .5rem; color: var(--teal-d); }
.drop b { color: var(--text); }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; margin-bottom: .9rem; }
.gal:empty { display: none; }
.gi { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--line-2); cursor: grab; box-shadow: 0 0 0 1px var(--line); }
.gi img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.gi.contain img { object-fit: contain; background: #fff; }
.gi .x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: rgba(17,29,41,.72); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.gi:hover .x, .gi:focus-within .x { opacity: 1; }
.gi .x svg { width: 12px; }
.gi .cover { position: absolute; left: 6px; bottom: 6px; font-size: .68rem; font-weight: 700; background: var(--teal); color: var(--navy); padding: .1rem .5rem; border-radius: 100px; }
.gi .new { position: absolute; left: 6px; top: 6px; font-size: .64rem; font-weight: 700; background: var(--navy); color: #fff; padding: .1rem .45rem; border-radius: 100px; }
.gi.dragging { opacity: .35; } .gi.over { box-shadow: 0 0 0 2px var(--teal-d); }
.img-pick { display: flex; gap: .9rem; align-items: center; }
.img-pick .pv { width: 120px; height: 84px; border-radius: 9px; overflow: hidden; background: var(--line-2) center/cover; flex: none; box-shadow: 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--soft); font-size: .72rem; }
.img-pick .pv img { width: 100%; height: 100%; object-fit: contain; background: repeating-conic-gradient(#F1F3F7 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.img-pick .bts { display: flex; flex-wrap: wrap; gap: .4rem; }
.img-pick .path { font-size: .74rem; color: var(--soft); word-break: break-all; margin-top: .35rem; }

/* rich editor (Quill) */
.rte { border: 1px solid #D5DCE6; border-radius: 10px; background: #fff; overflow: hidden; }
.rte .ql-toolbar.ql-snow { border: 0; border-bottom: 1px solid var(--line); background: #FAFBFD; padding: .5rem; font-family: var(--sans); }
.rte .ql-container.ql-snow { border: 0; font-family: var(--sans); font-size: .98rem; }
.rte .ql-editor { min-height: 320px; line-height: 1.7; padding: 1.2rem 1.3rem; }
.rte .ql-editor h2, .rte .ql-editor h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; margin: 1.2em 0 .4em; }
.rte .ql-editor h2 { font-size: 1.9rem; } .rte .ql-editor h3 { font-size: 1.5rem; }
.rte .ql-editor p { margin-bottom: .7em; }
.rte .ql-editor.ql-blank::before { font-style: normal; color: var(--soft); }
.rte-loading { padding: 2rem; color: var(--muted); display: flex; gap: .7rem; align-items: center; }

/* texts (schema) */
.tabs { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; margin-bottom: 1.2rem; padding-bottom: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: .55rem .95rem; border-radius: 100px; font-size: .84rem; font-weight: 600; color: var(--muted); white-space: nowrap; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.tabs a:hover { color: var(--text); }
.tabs a.on { background: var(--navy); color: #fff; box-shadow: none; }
details.acc { margin-bottom: 1rem; }
details.acc > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .8rem; padding: 1.05rem 1.4rem; font-weight: 650; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary .chev { margin-left: auto; transition: transform .25s var(--ease); color: var(--soft); }
details.acc[open] > summary .chev { transform: rotate(180deg); }
details.acc > summary small { font-weight: 400; color: var(--muted); font-size: .8rem; }
details.acc > .acc-body { padding: .3rem 1.4rem 1.5rem; border-top: 1px solid var(--line-2); display: grid; gap: 1.2rem; padding-top: 1.2rem; }
.md-help { font-size: .76rem; color: var(--muted); display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .3rem; }
.md-help em { color: var(--teal-d); }
.li-ed { display: flex; flex-direction: column; gap: .6rem; }
.li { border: 1px solid var(--line); border-radius: 12px; background: #FCFDFE; }
.li-h { display: flex; align-items: center; gap: .5rem; padding: .55rem .6rem .55rem .9rem; cursor: pointer; }
.li-h .num { width: 22px; height: 22px; border-radius: 6px; background: var(--line-2); font-size: .72rem; display: grid; place-items: center; color: var(--muted); font-weight: 700; flex: none; }
.li-h .t { font-weight: 600; font-size: .88rem; min-width: 0; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-h .t small { color: var(--soft); font-weight: 400; }
.li-b { display: none; padding: .4rem .9rem 1rem; gap: .9rem; }
.li.open .li-b { display: grid; }
.li.open { background: #fff; box-shadow: var(--shadow); }
.li-add { align-self: flex-start; }

/* reviews */
.rev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.rv { padding: 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .7rem; }
.rv.is-hidden { opacity: .55; }
.rv .stars { color: var(--teal-d); letter-spacing: .1em; }
.rv p { font-size: .9rem; color: #344054; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv footer { display: flex; align-items: center; gap: .6rem; margin-top: auto; font-size: .82rem; }
.rv footer b { font-weight: 650; }
.rv footer .acts { margin-left: auto; display: flex; gap: 2px; }
.star-pick { display: flex; gap: .15rem; }
.star-pick button { font-size: 1.6rem; color: #D5DCE6; line-height: 1; padding: 0 .1rem; }
.star-pick button.on { color: var(--teal-d); }

/* posts */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; }
.pc { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.pc:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.pc .img { aspect-ratio: 16 / 10; background: var(--line-2); }
.pc .img img { width: 100%; height: 100%; object-fit: cover; }
.pc .b { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pc .b small { color: var(--muted); font-size: .76rem; display: flex; justify-content: space-between; align-items: center; }
.pc .b b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem; line-height: 1.15; }

/* savebar */
.savebar { position: fixed; left: 50%; bottom: 1.2rem; translate: -50% 140%; z-index: 60; display: flex; align-items: center; gap: 1rem; background: var(--navy); color: #fff; padding: .6rem .6rem .6rem 1.2rem; border-radius: 14px; box-shadow: var(--shadow-lg); transition: translate .45s var(--ease); max-width: calc(100vw - 2rem); }
.savebar { visibility: hidden; transition: translate .45s var(--ease), visibility 0s .45s; }
.savebar.show { translate: -50% 0; visibility: visible; transition: translate .45s var(--ease); }
.savebar .txt { font-size: .86rem; }
.savebar .txt small { display: block; color: #9AA8BA; font-size: .76rem; }
.savebar .btn-ghost { background: transparent; color: #C9D3E0; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.savebar .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
@media (min-width: 981px) { .savebar { left: calc(50% + 132px); } }

/* toasts */
#toasts { position: fixed; top: 1rem; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .6rem; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: .7rem; align-items: flex-start; min-width: 280px; max-width: 400px; background: #fff; border-radius: 12px; padding: .85rem 1rem; box-shadow: var(--shadow-lg); font-size: .87rem; animation: tin .35s var(--ease); border-left: 4px solid var(--teal-d); }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--danger); }
.toast b { display: block; }
.toast small { color: var(--muted); }
@keyframes tin { from { transform: translateY(-8px); opacity: 0; } }

/* modal */
.modal-bg { position: fixed; inset: 0; z-index: 150; background: rgba(17,29,41,.5); display: grid; place-items: center; padding: 1rem; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 2rem); overflow: auto; animation: pop .3s var(--ease); }
.modal.wide { width: min(980px, 100%); }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal-h { padding: 1.3rem 1.5rem .4rem; display: flex; align-items: flex-start; gap: 1rem; }
.modal-h h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.05; }
.modal-h .icon-btn { margin-left: auto; }
.modal-b { padding: .6rem 1.5rem 1.2rem; color: #344054; }
.modal-b p + p { margin-top: .6rem; }
.modal-b ol { padding-left: 1.2rem; display: grid; gap: .45rem; }
.modal-f { padding: 1rem 1.5rem 1.4rem; display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; max-height: 60vh; overflow: auto; padding: .2rem; }
.lib button { aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--line-2); box-shadow: 0 0 0 1px var(--line); }
.lib button:hover { box-shadow: 0 0 0 2px var(--teal-d); }
.lib img { width: 100%; height: 100%; object-fit: cover; }

.kbd { font-size: .72rem; border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 .35rem; border-radius: 5px; color: var(--muted); }
.progress-line { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--teal), var(--teal-d)); transform-origin: left; animation: prog 1.4s ease-in-out infinite; z-index: 300; }
@keyframes prog { 0% { transform: scaleX(0); } 60% { transform: scaleX(.8); } 100% { transform: scaleX(1); opacity: 0; } }

/* ============ Fürsten additions ============ */
.login-art img.logo { width: min(300px, 70%); }
.f.todo input, .f.todo textarea { border-color: #D9A441; background: #FFFBF1; }
.todo-b { display: inline-block; margin-left: .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #FBF1DC; color: #A7780F; padding: .15rem .5rem; border-radius: 999px; vertical-align: 1px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.checklist li { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border-radius: 10px; background: var(--line-2); font-size: .9rem; }
.checklist li.ok { opacity: .65; }
.checklist li .ck { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1.5px solid #D9A441; color: #A7780F; font-size: .8rem; font-weight: 700; }
.checklist li.ok .ck { border-color: var(--ok); background: var(--ok); color: #fff; }
.checklist li a { margin-left: auto; font-weight: 600; color: var(--teal-d); white-space: nowrap; }
.param-note { font-size: .82rem; color: var(--muted); margin: -.3rem 0 .9rem; }
.mono-av { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-2); color: var(--teal); display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.1rem; flex: none; }
.welcome .avatar .mono-av { width: 100%; height: 100%; font-size: 3rem; }
