:root {
  --bg: #0e1114;
  --bg2: #12161a;
  --panel: #161a1f;
  --panel2: #1b2027;
  --hover: #20262e;
  --line: #262d36;
  --line2: #323a45;
  --text: #e8f4fa;
  --text2: #b9c4cc;
  --muted: #7d8a94;
  --ice: #8ccff2;
  --ice-bg: rgba(140, 207, 242, .12);
  --accent: #ff5b2e;
  --accent-bg: rgba(255, 91, 46, .13);
  --ok: #a6e36e;
  --ok-bg: rgba(166, 227, 110, .12);
  --warn: #ffc24d;
  --warn-bg: rgba(255, 194, 77, .13);
  --bad: #ff6b6b;
  --bad-bg: rgba(255, 107, 107, .13);
  --violet: #b9a3ff;
  --violet-bg: rgba(185, 163, 255, .13);
  --shadow: 0 10px 40px rgba(0, 0, 0, .45);
  --r: 12px;
  --mono: ui-monospace, "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f6f8; --bg2: #eef1f4; --panel: #ffffff; --panel2: #f7f9fa; --hover: #eef2f5;
    --line: #e1e6ea; --line2: #d0d7dd; --text: #13171b; --text2: #3a444c; --muted: #66727c;
    --ice: #1a78a8; --ice-bg: rgba(26, 120, 168, .1); --accent: #e0461a; --accent-bg: rgba(224, 70, 26, .1);
    --ok: #3f8f1c; --ok-bg: rgba(63, 143, 28, .1); --warn: #a86a00; --warn-bg: rgba(168, 106, 0, .1);
    --bad: #c93636; --bad-bg: rgba(201, 54, 54, .1); --violet: #6b4fd6; --violet-bg: rgba(107, 79, 214, .1);
    --shadow: 0 10px 40px rgba(20, 30, 40, .16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f6f8; --bg2: #eef1f4; --panel: #ffffff; --panel2: #f7f9fa; --hover: #eef2f5;
  --line: #e1e6ea; --line2: #d0d7dd; --text: #13171b; --text2: #3a444c; --muted: #66727c;
  --ice: #1a78a8; --ice-bg: rgba(26, 120, 168, .1); --accent: #e0461a; --accent-bg: rgba(224, 70, 26, .1);
  --ok: #3f8f1c; --ok-bg: rgba(63, 143, 28, .1); --warn: #a86a00; --warn-bg: rgba(168, 106, 0, .1);
  --bad: #c93636; --bad-bg: rgba(201, 54, 54, .1); --violet: #6b4fd6; --violet-bg: rgba(107, 79, 214, .1);
  --shadow: 0 10px 40px rgba(20, 30, 40, .16);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 14px/1.5 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ice); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
code, .mono { font-family: var(--mono); font-size: .92em; }
code { background: var(--panel2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 5px; }
pre { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 12px; overflow: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hidden { display: none !important; }

/* ---------- elrendezés ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  border-right: 1px solid var(--line); background: var(--bg2); padding: 14px 10px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand b { display: block; font-size: 14px; letter-spacing: .2px; }
.brand span { display: block; font-size: 11.5px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px;
  color: var(--text2); font-weight: 500;
}
.nav a:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.nav a svg { width: 17px; height: 17px; flex: none; opacity: .85; }
.nav .badge { margin-left: auto; }
.side .grow { flex: 1; }
.me-box {
  display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); cursor: pointer; text-align: left; width: 100%;
}
.me-box:hover { background: var(--hover); }
.me-box .st { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-box > div { min-width: 0; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px);
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sp { flex: 1; }
.menu-btn { display: none; }
.search { position: relative; width: min(340px, 40vw); }
.search input { width: 100%; padding: 7px 10px 7px 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.search svg { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: var(--muted); }
.search kbd { position: absolute; right: 8px; top: 7px; }
.search-res {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; max-height: 60vh; overflow: auto; z-index: 50;
}
.search-res a { display: block; padding: 7px 9px; border-radius: 6px; color: var(--text); }
.search-res a:hover { background: var(--hover); text-decoration: none; }
.search-res h6 { margin: 6px 9px 2px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line2); color: var(--muted); background: var(--panel2); }
.content { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }

/* ---------- elemek ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 13px; border-radius: 8px;
  border: 1px solid var(--line2); background: var(--panel2); color: var(--text); cursor: pointer; font-weight: 550; white-space: nowrap;
}
.btn:hover { background: var(--hover); text-decoration: none; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { opacity: .9; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text2); }
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

input.inp, select.inp, textarea.inp {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line2); background: var(--bg2); color: var(--text);
}
textarea.inp { resize: vertical; min-height: 90px; line-height: 1.5; }
input.inp:focus, select.inp:focus, textarea.inp:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px var(--ice-bg); }
label.fl { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 5px; text-transform: uppercase; letter-spacing: .5px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.row > svg { width: 15px; height: 15px; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.card-h .sp { flex: 1; }
.card-b { padding: 14px 16px; }
.empty { padding: 26px 16px; text-align: center; color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel2); border: 1px solid var(--line); color: var(--text2); white-space: nowrap; }
.badge.ice { background: var(--ice-bg); color: var(--ice); border-color: transparent; }
.badge.accent { background: var(--accent-bg); color: var(--accent); border-color: transparent; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.violet { background: var(--violet-bg); color: var(--violet); border-color: transparent; }
.badge.count { background: var(--accent); color: #fff; border: 0; min-width: 18px; justify-content: center; padding: 0 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }

.av {
  --c: var(--ice); width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 700; color: #0e1114; background: var(--c); position: relative; letter-spacing: .2px;
}
.av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.av.lg { width: 46px; height: 46px; font-size: 16px; }
.av.xl { width: 64px; height: 64px; font-size: 22px; }
.av.ghost { background: var(--panel2); color: var(--muted); border: 1px dashed var(--line2); }
.av .on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--panel); }
.av.lg .on, .av.xl .on { width: 13px; height: 13px; }

.progress { height: 8px; border-radius: 99px; background: var(--panel2); overflow: hidden; display: flex; border: 1px solid var(--line); }
.progress i { display: block; height: 100%; }

/* ---------- áttekintés ---------- */
.hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; margin-bottom: 16px; }
.hero .card-b { padding: 20px; }
.hero h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.stat { padding: 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); }
.stat b { display: block; font-size: 22px; line-height: 1.2; }
.stat span { font-size: 12px; color: var(--muted); }
.members { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.member { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.member .top { display: flex; gap: 12px; align-items: center; }
.member .nm { font-weight: 650; }
.member .rl { font-size: 12.5px; color: var(--muted); }
.member .status { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); color: var(--text2); min-height: 38px; }
.member .nums { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.member .nums b { color: var(--text); font-size: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cols > div { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rel-card { display: flex; align-items: center; gap: 14px; }
.rel-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); flex: none; }
.rel-ico svg { width: 22px; height: 22px; }

/* ---------- lista ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 16px; border-top: 1px solid var(--line); }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; }
.li.click:hover { background: var(--hover); }
.li .main-t { flex: 1; min-width: 0; }
.li .t { font-weight: 550; overflow-wrap: anywhere; }
.li .s { font-size: 12.5px; color: var(--muted); }
.task-id { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- tevékenység ---------- */
.feed { position: relative; }
.ev { display: flex; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: flex-start; }
.ev:first-child { border-top: 0; }
.ev-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--panel2); color: var(--text2); border: 1px solid var(--line); }
.ev-ico svg { width: 15px; height: 15px; }
.ev-ico.ice { background: var(--ice-bg); color: var(--ice); border-color: transparent; }
.ev-ico.accent { background: var(--accent-bg); color: var(--accent); border-color: transparent; }
.ev-ico.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.ev-ico.violet { background: var(--violet-bg); color: var(--violet); border-color: transparent; }
.ev-ico.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.ev-b { flex: 1; min-width: 0; }
.ev-t { overflow-wrap: anywhere; }
.ev-t b { font-weight: 650; }
.ev-m { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 2px; }
.ev-sub { margin: 6px 0 0; padding: 0; list-style: none; border-left: 2px solid var(--line); }
.ev-sub li { padding: 2px 0 2px 10px; font-size: 13px; color: var(--text2); overflow-wrap: anywhere; }
.ev-sub li a { font-family: var(--mono); font-size: 11.5px; margin-right: 6px; }
.day { padding: 14px 16px 6px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; border-top: 1px solid var(--line); }
.day:first-child { border-top: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel); cursor: pointer; font-size: 13px; color: var(--text2); display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { background: var(--hover); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- feladattábla ---------- */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; align-items: start; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; min-height: 200px; }
.col-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; font-weight: 650; font-size: 13px; }
.col-h .n { color: var(--muted); font-weight: 500; }
.col-b { padding: 4px 8px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; flex: 1; }
.col.drop { border-color: var(--ice); background: var(--ice-bg); }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 11px; cursor: pointer; display: flex; flex-direction: column; gap: 8px; }
.tcard:hover { border-color: var(--line2); background: var(--panel2); }
.tcard.dragging { opacity: .4; }
.tcard .tt { font-weight: 550; line-height: 1.4; overflow-wrap: anywhere; }
.tcard .tm { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.tcard .tm .sp { flex: 1; }
.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; }
.prio i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.p0 { color: var(--bad); } .p0 i { background: var(--bad); }
.p1 { color: var(--warn); } .p1 i { background: var(--warn); }
.p2 { color: var(--muted); } .p2 i { background: var(--muted); }
.p3 { color: var(--muted); } .p3 i { background: var(--line2); }
.add-in-col { margin: 0 8px 10px; justify-content: flex-start; color: var(--muted); }

/* ---------- üzenetek ---------- */
.chat { display: grid; grid-template-columns: 200px 1fr; height: calc(100vh - 140px); min-height: 420px; }
.chat .chans { border-right: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.chat .chans a { padding: 7px 10px; border-radius: 8px; color: var(--text2); display: flex; align-items: center; gap: 6px; }
.chat .chans a:hover { background: var(--hover); text-decoration: none; }
.chat .chans a.on { background: var(--panel2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.chat .chans a .badge { margin-left: auto; }
.chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 18px; display: flex; flex-direction: column; }
.msg { display: flex; gap: 11px; padding: 6px 0; }
.msg.cont { padding-top: 0; }
.msg.cont .av { visibility: hidden; height: 0; }
.msg .mb { flex: 1; min-width: 0; }
.msg .mh { display: flex; gap: 8px; align-items: baseline; }
.msg .mh b { font-weight: 650; }
.msg .mh span { font-size: 12px; color: var(--muted); }
.msg .mt { overflow-wrap: anywhere; color: var(--text2); }
.msg .mt p { margin: 0; }
.msg .att { margin-top: 6px; display: inline-flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.msg .att img { max-width: 320px; max-height: 240px; border-radius: 6px; display: block; }
.composer { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 42px; max-height: 200px; resize: none; }
.day-sep { text-align: center; margin: 12px 0 6px; font-size: 12px; color: var(--muted); }

/* ---------- fájlok ---------- */
.crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-weight: 550; }
.crumbs a { color: var(--text2); padding: 2px 6px; border-radius: 6px; }
.crumbs a:hover { background: var(--hover); text-decoration: none; }
.crumbs .sep { color: var(--muted); }
.ftable { width: 100%; border-collapse: collapse; }
.ftable th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 9px 16px; border-bottom: 1px solid var(--line); }
.ftable td { padding: 9px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.ftable tr:first-child td { border-top: 0; }
.ftable tbody tr { cursor: pointer; }
.ftable tbody tr:hover { background: var(--hover); }
.fname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fico { width: 30px; height: 30px; border-radius: 7px; display: grid; place-items: center; flex: none; font-size: 9.5px; font-weight: 750; font-family: var(--mono); background: var(--panel2); border: 1px solid var(--line); color: var(--text2); }
.fico.dir { background: var(--ice-bg); color: var(--ice); border-color: transparent; }
.fico svg { width: 16px; height: 16px; }
.dropzone { position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 70%, transparent); display: grid; place-items: center; pointer-events: none; }
.dropzone div { border: 2px dashed var(--ice); border-radius: 20px; padding: 50px 70px; font-size: 18px; font-weight: 650; background: var(--panel); }
.uploads { position: fixed; right: 18px; bottom: 18px; width: 320px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.upl { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 13px; }
.upl .progress { margin-top: 7px; height: 5px; }

/* ---------- kiadások ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.tl { position: relative; margin-bottom: 14px; }
.tl::before { content: ""; position: absolute; left: -22px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--panel); border: 2px solid var(--muted); }
.tl.latest::before { border-color: var(--accent); background: var(--accent); }
.tl .card-b { display: flex; gap: 14px; align-items: flex-start; }
.ver { font-family: var(--mono); font-weight: 700; font-size: 15px; }
.notes { white-space: pre-wrap; color: var(--text2); margin-top: 6px; font-size: 13.5px; }

/* ---------- fiók, eszközök ---------- */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.team .card { padding: 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }

/* ---------- fiók (drawer) és ablak (modal) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(5, 8, 10, .55); z-index: 60; animation: fade .15s ease; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); z-index: 61; background: var(--panel);
  border-left: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: slide .18s ease;
}
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.drawer-h .sp { flex: 1; }
.drawer-b { flex: 1; overflow-y: auto; padding: 18px; }
.modal {
  position: fixed; left: 50%; top: 8vh; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); max-height: 84vh; overflow-y: auto;
  z-index: 61; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); animation: pop .16s ease;
}
.modal-h { padding: 18px 20px 4px; }
.modal-h h3 { margin: 0; font-size: 17px; }
.modal-b { padding: 14px 20px; }
.modal-f { padding: 12px 20px 18px; display: flex; justify-content: flex-end; gap: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
@keyframes pop { from { transform: translateX(-50%) scale(.97); opacity: 0; } }
.title-inp { font-size: 19px; font-weight: 650; border: 1px solid transparent; background: transparent; padding: 6px 8px; margin-left: -8px; width: calc(100% + 16px); border-radius: 8px; }
.title-inp:hover { border-color: var(--line); }
.title-inp:focus { outline: none; border-color: var(--ice); background: var(--bg2); }
.props { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; align-items: center; margin: 14px 0 18px; }
.props > span { color: var(--muted); font-size: 13px; }
.props select, .props input { padding: 6px 8px; }
.sec-t { font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; margin: 20px 0 10px; }
.comment { display: flex; gap: 10px; margin-bottom: 12px; }
.comment .cb { flex: 1; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; min-width: 0; }
.comment .ch { font-size: 12.5px; color: var(--muted); margin-bottom: 3px; }
.comment .ch b { color: var(--text); }
.md p { margin: 0 0 8px; }
.md p:last-child { margin-bottom: 0; }
.md ul { margin: 4px 0 8px; padding-left: 20px; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); font-weight: 550; max-width: 90vw; animation: pop2 .18s ease; display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--bad); color: #fff; }
@keyframes pop2 { from { transform: translateY(10px); opacity: 0; } }

/* ---------- belépés ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(900px 500px at 15% -10%, rgba(140, 207, 242, .10), transparent 60%),
  radial-gradient(700px 400px at 100% 110%, rgba(255, 91, 46, .08), transparent 60%), var(--bg); }
.auth-box { width: min(760px, 100%); text-align: center; }
.auth-box .logo svg { width: 64px; height: 64px; }
.auth-box h1 { font-size: 28px; margin: 14px 0 6px; letter-spacing: -.3px; }
.auth-box p.lead { color: var(--muted); margin: 0 auto 26px; max-width: 460px; }
.code-form { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }
.code-form input { text-align: center; font-size: 16px; letter-spacing: 1px; padding: 11px; }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 6px; }
.who button { padding: 24px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .12s ease, border-color .12s ease; }
.who button:hover { transform: translateY(-2px); border-color: var(--c); }
.who b { font-size: 16px; }
.who span { color: var(--muted); font-size: 13px; }
.err-t { color: var(--bad); margin-top: 12px; min-height: 20px; }

.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv > span:nth-child(odd) { color: var(--muted); }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 18px 40px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ice-bg); color: var(--ice); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.copy { position: relative; }
.copy .btn { position: absolute; right: 8px; top: 8px; }

/* ---------- mobil ---------- */
@media (max-width: 1100px) {
  .hero, .cols { grid-template-columns: 1fr; }
  .board { grid-template-columns: repeat(4, 270px); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 260px; z-index: 70; transform: translateX(-100%); transition: transform .2s ease; }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-grid; }
  .topbar { padding: 10px 16px; }
  .content { padding: 18px 16px 50px; }
  .members, .team { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .search { width: auto; flex: 1; }
  .search kbd { display: none; }
  .topbar h1 { display: none; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 120px); }
  .chat .chans { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .who { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .ftable .hide-m { display: none; }
  .props { grid-template-columns: 100px 1fr; }
  .kv { grid-template-columns: 1fr; }
}
