/* ColorekFans — arkusz stylow (bez zewnetrznych zasobow) */
:root {
  --accent: #00aff0;
  --accent-dark: #0091c9;
  --accent-soft: #e6f7fe;
  --bg: #f5f7f9;
  --surface: #ffffff;
  --line: #e4e9ee;
  --line-strong: #d3dae1;
  --text: #17212b;
  --muted: #6b7885;
  --faint: #98a3ae;
  --danger: #d93a4c;
  --ok: #17a673;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 35, 50, .05), 0 6px 20px rgba(20, 35, 50, .05);
  --hue: 200;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(0, 175, 240, .45); outline-offset: 2px; }
.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.icon.filled { fill: currentColor; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.noscript { padding: 24px; text-align: center; }

/* ---- uklad 3-kolumnowy ---- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 640px) 340px; gap: 28px;
  max-width: 1290px; margin: 0 auto; padding: 0 20px; align-items: start; }
.rail { position: sticky; top: 0; height: 100vh; padding: 22px 0 18px; display: flex; flex-direction: column;
  gap: 6px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 12px 16px; color: var(--accent);
  font-size: 23px; font-weight: 800; letter-spacing: -.6px; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; }
.brand span b { color: var(--text); font-weight: 800; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 999px;
  color: var(--text); font-size: 16px; font-weight: 500; border: 0; background: none; text-align: left;
  width: 100%; position: relative; }
.nav-item:hover { background: #eaeff3; text-decoration: none; }
.nav-item.active { color: var(--accent-dark); font-weight: 700; }
.nav-item.active .icon { stroke-width: 2.1; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center;
  justify-content: center; margin-left: auto; }
.rail .btn-new { margin: 14px 4px 0; }
.rail-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 14px; color: var(--text); }
.rail-user:hover { background: #eaeff3; text-decoration: none; }
.rail-user .who { min-width: 0; line-height: 1.25; }
.rail-user .who b, .rail-user .who span { display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.main { min-height: 100vh; padding-bottom: 60px; border-left: 1px solid var(--line);
  border-right: 1px solid var(--line); background: var(--surface); }
.aside { position: sticky; top: 0; max-height: 100vh; overflow-y: auto; padding: 18px 0 30px;
  display: flex; flex-direction: column; gap: 16px; }
.aside > * { flex-shrink: 0; }
/* wiersze listy subskrypcji zawijaja sie zamiast wychodzic poza ekran */
.sub-list .row-item { flex-wrap: wrap; }
.sub-list .row-item .grow { flex: 1 1 180px; }
/* przelacznik dostepnosci w edytorze: dlugie etykiety moga sie lamac */
.seg .chip { height: auto; min-height: 44px; padding: 8px 12px; border-radius: var(--radius-sm);
  white-space: normal; line-height: 1.25; text-align: center; }
@media (max-width: 480px) {
  .modal .seg { grid-template-columns: 1fr; }
}
.page-head { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 10px 18px; background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 19px; font-weight: 800; letter-spacing: -.2px; text-transform: uppercase; }
.page-head .spacer { flex: 1; }
.page-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.page-body.flush { padding: 0; gap: 0; }
.tabbar { display: none; }

/* ---- przyciski ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px;
  padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 14px;
  letter-spacing: .2px; text-transform: uppercase; background: #eef2f5; color: var(--text);
  transition: background .15s, border-color .15s, color .15s, transform .05s; white-space: nowrap; }
.btn:hover { background: #e3e9ee; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .icon { width: 19px; height: 19px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { background: var(--surface); border-color: var(--accent); color: var(--accent-dark); }
.btn-outline:hover { background: var(--accent-soft); }
.btn-ghost { background: transparent; }
.btn-danger { background: #fdecee; color: var(--danger); }
.btn-danger:hover { background: #fbdade; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 12.5px; }
.btn-block { width: 100%; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: #eef2f5; color: var(--text); }

/* ---- karty, awatary, okladki ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; }
.card-pad { padding: 16px; }
.card-title { font-size: 13px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); padding: 14px 16px 6px; }
.avatar { --size: 44px; width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700;
  font-size: calc(var(--size) * .38); letter-spacing: .3px; user-select: none;
  background: linear-gradient(135deg, hsl(var(--hue), 82%, 62%), hsl(calc(var(--hue) + 48), 78%, 46%));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35); }
.av-sm { --size: 34px; }
.av-lg { --size: 60px; }
.av-xl { --size: 108px; border: 4px solid var(--surface); box-shadow: 0 2px 10px rgba(20, 35, 50, .15); }
.cover { display: block; width: 100%; height: 100%; }
.cover-wrap { position: relative; background: #dfe9f0; overflow: hidden; }
.cover-wrap.banner { height: 190px; }
.cover-wrap.media { aspect-ratio: 16 / 9; border-radius: 14px; }
.cover-wrap.mini { height: 78px; }
.cover-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-fallback { display: flex; align-items: center; justify-content: center; height: 100%;
  color: var(--muted); gap: 8px; font-size: 14px; }

/* ---- relacje (stories) ---- */
.stories { display: flex; gap: 14px; padding: 14px 18px; overflow-x: auto; border-bottom: 1px solid var(--line);
  scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 74px; flex: none;
  color: var(--text); font-size: 12px; text-align: center; }
.story:hover { text-decoration: none; }
.story .ring { padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #00aff0, #7ad9ff); }
.story .ring.dim { background: var(--line-strong); }
.story .ring .avatar { --size: 58px; border: 3px solid #fff; box-shadow: none; }
.story span { max-width: 74px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- zakladki / filtry ---- */
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tab { flex: 1; padding: 14px 8px; border: 0; background: none; font-weight: 700; font-size: 13.5px;
  letter-spacing: .4px; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid transparent; }
.tab:hover { background: #f6f9fb; }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--muted); }
.chip:hover { border-color: var(--accent); color: var(--accent-dark); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; }
.tag .icon { width: 13px; height: 13px; stroke-width: 2; }
.tag-premium { background: #fff4d9; color: #8a5a00; }
.tag-free { background: #e3f8ee; color: #0f7a54; }
.tag-demo { background: var(--accent-soft); color: var(--accent-dark); }

/* ---- wpisy ---- */
.post { padding: 16px 18px 10px; border-bottom: 1px solid var(--line); }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-head .meta { min-width: 0; flex: 1; line-height: 1.3; }
.post-head .meta a { color: var(--text); font-weight: 700; }
.post-head .meta .sub { color: var(--muted); font-size: 13px; display: block; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.post-title { font-size: 17px; font-weight: 700; margin: 12px 0 6px; letter-spacing: -.1px;
  overflow-wrap: anywhere; }
.post-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #2a3642; margin-bottom: 12px; }
.post-media { margin: 4px 0 6px; }
.lock-box { position: relative; border-radius: 14px; overflow: hidden; margin: 6px 0; }
.lock-box .cover-wrap { filter: blur(14px) saturate(70%); transform: scale(1.12); }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 10px; padding: 18px; text-align: center;
  background: rgba(255, 255, 255, .62); }
.lock-overlay .lock-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--surface);
  display: flex; align-items: center; justify-content: center; color: var(--accent-dark);
  box-shadow: var(--shadow); }
.lock-overlay p { font-weight: 600; max-width: 380px; }
.post-actions { display: flex; align-items: center; gap: 4px; margin: 6px -8px 0; }
.act-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 10px;
  border-radius: 999px; border: 0; background: none; color: var(--muted); font-weight: 600; font-size: 14px; }
.act-btn:hover { background: #eef2f5; color: var(--text); }
.act-btn .icon { width: 22px; height: 22px; }
.act-btn.active { color: var(--accent-dark); }
.act-btn.like.active { color: #e5446d; }
.act-btn.active .icon { fill: currentColor; }
.post-actions .spacer { flex: 1; }

/* ---- profil ---- */
.profile-info { padding: 0 18px 16px; border-bottom: 1px solid var(--line); }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: -54px; position: relative; flex-wrap: wrap; }
.profile-top .actions { display: flex; gap: 8px; padding-bottom: 6px; flex-wrap: wrap; }
.profile-name { font-size: 22px; font-weight: 800; letter-spacing: -.3px; margin-top: 10px;
  overflow-wrap: anywhere; }
.profile-bio { margin-top: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.stats { display: flex; gap: 22px; margin-top: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.stats b { color: var(--text); font-weight: 800; margin-right: 4px; }
.sub-box { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fafcfd; display: flex; flex-direction: column; gap: 10px; }
.sub-box .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.demo-note .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--accent-dark); }
.demo-banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: var(--accent-soft); color: #055a7d; font-size: 13.5px; }
.demo-banner .icon { width: 20px; height: 20px; }

/* ---- odkrywanie ---- */
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 175, 240, .15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search .icon { width: 20px; height: 20px; }
.grid-creators { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.creator-card .body { padding: 0 14px 14px; }
.creator-card .top { display: flex; align-items: flex-end; justify-content: space-between; margin-top: -28px;
  position: relative; }
.creator-card .top .avatar { border: 3px solid var(--surface); }
.creator-card h3 { font-size: 16px; font-weight: 700; margin-top: 8px; overflow-wrap: anywhere; }
.creator-card h3 a { color: var(--text); }
.creator-card .bio { margin: 8px 0 12px; font-size: 13.5px; color: #3c4854; display: -webkit-box;
  -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 60px; }
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--text); }
a.row-item:hover, button.row-item:hover { background: #f6f9fb; text-decoration: none; }
button.row-item { width: 100%; border: 0; background: none; text-align: left; }
.row-item .grow { flex: 1; min-width: 0; line-height: 1.3; }
.row-item .grow b, .row-item .grow span { display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.row-item .thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; }
.foot-note { font-size: 12.5px; color: var(--faint); padding: 0 6px; }

/* ---- formularze ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field-label { font-size: 13px; font-weight: 700; color: #3c4854; }
.input, .textarea, .select { width: 100%; padding: 11px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); outline: 0; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 175, 240, .15); }
.textarea { min-height: 120px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); }
.form-error { color: var(--danger); font-size: 13.5px; font-weight: 600; min-height: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { display: flex; align-items: center; gap: 8px; justify-content: center; height: 44px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-weight: 700; cursor: pointer;
  color: var(--muted); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-dark); }
.seg .icon { width: 18px; height: 18px; }
.hue-row { display: flex; align-items: center; gap: 14px; }
.hue-row input[type=range] { flex: 1; accent-color: var(--accent); }
.upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload .preview { width: 96px; height: 64px; border-radius: 10px; overflow: hidden; background: #eef2f5;
  flex: none; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.upload .preview img { width: 100%; height: 100%; object-fit: cover; }
.section-title { font-size: 16px; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.stat-tile { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafcfd; }
.stat-tile b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.stat-tile span { font-size: 12.5px; color: var(--muted); }
.manage-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.manage-item:first-child { border-top: 0; }
.manage-item .grow { flex: 1; min-width: 0; }
.manage-item .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.manage-item .btns { display: flex; gap: 6px; }
.manage-item > .thumb { width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; }

/* ---- wiadomosci ---- */
.inbox { display: grid; grid-template-columns: 250px minmax(0, 1fr); height: calc(100vh - 59px); }
.thread-list { border-right: 1px solid var(--line); overflow-y: auto; }
.thread-item { display: flex; gap: 10px; align-items: center; padding: 12px 14px; color: var(--text);
  border-bottom: 1px solid var(--line); }
.thread-item:hover { background: #f6f9fb; text-decoration: none; }
.thread-item.active { background: var(--accent-soft); }
.thread-item .grow { flex: 1; min-width: 0; line-height: 1.3; }
.thread-item .grow b, .thread-item .grow span { display: block; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; }
.thread-item .grow span { color: var(--muted); font-size: 13px; }
.thread-item.unread .grow span { color: var(--text); font-weight: 700; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-head .back { display: none; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px;
  background: #fafcfd; }
.bubble { max-width: 78%; padding: 9px 13px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; align-self: flex-start; }
.bubble.mine { align-self: flex-end; background: var(--accent); border-color: var(--accent); color: #fff; }
.bubble time { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 42px; max-height: 120px; resize: none; padding: 10px 14px;
  border-radius: 20px; border: 1px solid var(--line-strong); outline: 0; }
.chat-form textarea:focus { border-color: var(--accent); }
.chat-form .btn { width: 42px; padding: 0; }

/* ---- powiadomienia ---- */
.notif-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; color: var(--text);
  border-bottom: 1px solid var(--line); }
.notif-item:hover { background: #f6f9fb; text-decoration: none; }
.notif-item.unread { background: #f1faff; }
.notif-item .kind { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent-dark); display: flex; align-items: center; justify-content: center; flex: none; }
.notif-item .kind .icon { width: 18px; height: 18px; }
.notif-item .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.notif-item time { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* ---- stany puste, ladowanie ---- */
.empty { padding: 44px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column;
  align-items: center; gap: 10px; }
.empty .ic { width: 60px; height: 60px; border-radius: 50%; background: #eef2f5; display: flex;
  align-items: center; justify-content: center; color: var(--faint); }
.empty h3 { color: var(--text); font-size: 17px; }
.boot, .loading { display: flex; align-items: center; justify-content: center; padding: 60px 0; }
.boot { min-height: 100vh; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line-strong);
  border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- okna modalne i komunikaty ---- */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(18, 28, 38, .5); display: flex;
  align-items: center; justify-content: center; padding: 16px; }
.modal { width: 100%; max-width: 540px; max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface); border-radius: 18px; box-shadow: 0 20px 60px rgba(10, 20, 30, .3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 14px 20px;
  border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h2 { font-size: 17px; font-weight: 800; }
.modal-body { padding: 18px 20px 20px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(92vw, 420px);
  pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: #1c2731; color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 8px 24px rgba(10, 20, 30, .28);
  animation: rise .2s ease-out; max-width: 100%; overflow-wrap: anywhere; }
.toast .icon { width: 19px; height: 19px; }
.toast.error { background: #b3273a; }
.toast.ok .icon { color: #6fe0b3; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---- logowanie ---- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--surface); }
.auth-hero { position: relative; overflow: hidden; color: #fff; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 48px; min-height: 320px; }
.auth-hero .cover { position: absolute; inset: 0; }
.auth-hero .shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 60, 95, .1), rgba(0, 45, 75, .78)); }
.auth-hero .content { position: relative; max-width: 460px; }
.auth-hero .brand { color: #fff; padding: 0 0 18px; font-size: 30px; }
.auth-hero .brand span b { color: #fff; }
.auth-hero h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.6px; font-weight: 800; }
.auth-hero p { margin-top: 12px; font-size: 16px; opacity: .95; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 36px 24px; }
.auth-box { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 16px; }
.auth-box h2 { font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.demo-logins { display: grid; gap: 8px; padding: 14px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); background: #fafcfd; }
.demo-logins .btn { justify-content: flex-start; text-transform: none; font-weight: 600; height: 46px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px;
  text-transform: uppercase; letter-spacing: .6px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent-dark); font-weight: 700; }
.link-btn:hover { text-decoration: underline; }

/* ---- responsywnosc ---- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 78px minmax(0, 640px) 320px; gap: 18px; }
  .nav-item { justify-content: center; padding: 12px; }
  .nav-item .label, .brand span, .rail-user .who, .rail .btn-new .label { display: none; }
  .nav-item .badge { position: absolute; top: 4px; right: 10px; margin: 0; }
  .brand { justify-content: center; padding: 4px 0 16px; }
  .rail .btn-new { padding: 0; width: 46px; height: 46px; margin: 14px auto 0; }
  .rail-user { justify-content: center; padding: 10px 0; }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 78px minmax(0, 1fr); }
  .aside { display: none; }
}
@media (max-width: 700px) {
  .shell { display: block; padding: 0; }
  .rail { display: none; }
  .main { border: 0; padding-bottom: 76px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: 60px;
    padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-sizing: content-box; }
  .tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted);
    position: relative; }
  .tabbar a.active { color: var(--accent-dark); }
  .tabbar a .badge { position: absolute; top: 8px; left: calc(50% + 4px); margin: 0; }
  .tabbar a .avatar { --size: 28px; }
  .toasts { bottom: 76px; }
  .grid-creators { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: 1fr; }
  .cover-wrap.banner { height: 140px; }
  .inbox { display: block; height: auto; }
  .inbox .thread-list { border-right: 0; }
  .inbox.has-thread .thread-list { display: none; }
  .inbox:not(.has-thread) .chat { display: none; }
  .inbox .chat { height: calc(100vh - 59px - 60px - env(safe-area-inset-bottom)); }
  .chat-head .back { display: inline-flex; }
  .auth { grid-template-columns: 1fr; }
  .auth-hero { padding: 28px 22px; min-height: 240px; }
  .auth-hero h1 { font-size: 26px; }
  .page-head .only-desktop { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
