:root {
  --mc-bg: #f4f6fa;
  --mc-ink: #1b2430;
  --mc-muted: #6b7684;
  --mc-line: #e3e8ef;
  --mc-brand: #1e6fd9;
  --mc-brand-dark: #12408a;
  --mc-radius: 14px;
}
html, body { height: 100%; }
body { background: var(--mc-bg); color: var(--mc-ink); font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; font-size: 15px; }
a { color: var(--mc-brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { background: linear-gradient(90deg, var(--mc-brand-dark), var(--mc-brand)); min-height: 56px; }
.topbar .navbar-brand { color: #fff; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: .5rem; }
.topbar .nav-link { color: rgba(255,255,255,.85); }
.topbar .nav-link:hover { color: #fff; }
.brand-dot { width: 12px; height: 12px; border-radius: 50%; background: #fff; display: inline-block; box-shadow: 0 0 0 4px rgba(255,255,255,.25); }

.page { padding-bottom: 3rem; }
.auth-card { max-width: 440px; margin: 4rem auto; }
.card { border: 1px solid var(--mc-line); border-radius: var(--mc-radius); box-shadow: 0 1px 2px rgba(20,30,50,.04); }
.card .card-title { font-weight: 600; }
.section-title { font-size: 1.35rem; font-weight: 700; margin: 0; }
.section-sub { color: var(--mc-muted); }
.form-label { font-weight: 500; font-size: .9rem; }
.form-text { color: var(--mc-muted); }
.btn-primary { background: var(--mc-brand); border-color: var(--mc-brand); }
.btn-primary:hover { background: var(--mc-brand-dark); border-color: var(--mc-brand-dark); }

/* conference cards */
.conf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.conf-card { display: block; color: inherit; border-radius: var(--mc-radius); overflow: hidden; background: #fff; border: 1px solid var(--mc-line); transition: transform .12s, box-shadow .12s; }
.conf-card:hover { text-decoration: none; color: inherit; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,30,50,.10); }
.conf-cover { height: 130px; background-size: cover; background-position: center; position: relative; }
.conf-cover .badge { position: absolute; top: 10px; right: 10px; }
.conf-body { padding: .9rem 1rem 1rem; }
.conf-body h5 { margin: 0 0 .25rem; font-weight: 600; font-size: 1.05rem; }
.conf-meta { color: var(--mc-muted); font-size: .85rem; }
.conf-new { display: flex; align-items: center; justify-content: center; min-height: 220px; border: 2px dashed #c9d3e0; border-radius: var(--mc-radius); color: var(--mc-muted); font-weight: 500; background: transparent; }
.conf-new:hover { border-color: var(--mc-brand); color: var(--mc-brand); text-decoration: none; }

/* manage layout */
.manage { display: grid; grid-template-columns: 250px 1fr; gap: 1.5rem; padding: 1.25rem 1rem 0 1rem; }
@media (max-width: 900px) { .manage { grid-template-columns: 1fr; } }
.side { position: sticky; top: 1rem; align-self: start; }
.side-head { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); overflow: hidden; margin-bottom: .75rem; }
.side-cover { height: 84px; background-size: cover; background-position: center; }
.side-head .name { padding: .7rem .9rem; font-weight: 600; line-height: 1.2; }
.side-head .name small { display: block; color: var(--mc-muted); font-weight: 400; margin-top: .15rem; }
.side-nav { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: .4rem; }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 10px; color: var(--mc-ink); }
.side-nav a:hover { background: #f1f4f9; text-decoration: none; }
.side-nav a.active { background: var(--mc-brand); color: #fff; }
.side-nav a .ic { width: 20px; text-align: center; opacity: .8; }
.side-nav a.off { color: var(--mc-muted); }
.side-nav a.off .ic { opacity: .4; }
.content { min-width: 0; }
.content-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }

/* uploads */
.drop { border: 2px dashed #c9d3e0; border-radius: 12px; padding: 1rem; text-align: center; color: var(--mc-muted); cursor: pointer; background: #fafbfd; }
.drop.over { border-color: var(--mc-brand); background: #eef4ff; }
.drop input { display: none; }
.preview { max-width: 100%; max-height: 180px; border-radius: 10px; object-fit: cover; }

/* agenda */
.day-head { font-weight: 700; margin: 1.25rem 0 .5rem; display: flex; align-items: center; gap: .6rem; }
.day-head .pill { font-size: .75rem; font-weight: 500; color: var(--mc-muted); background: #eef1f6; border-radius: 999px; padding: .15rem .6rem; }
.sess { display: grid; grid-template-columns: 110px 1fr auto; gap: .75rem; align-items: center; padding: .6rem .8rem; background: #fff; border: 1px solid var(--mc-line); border-radius: 12px; margin-bottom: .45rem; }
.sess.break { background: #f7f8fa; color: var(--mc-muted); }
.sess.current { border-color: #22a35a; box-shadow: 0 0 0 3px rgba(34,163,90,.15); }
.sess .time { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; }
.sess .title { font-weight: 600; }
.sess .sub { color: var(--mc-muted); font-size: .85rem; }

.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--mc-line); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .form-check-input { width: 2.6em; height: 1.4em; }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; }
.live-big { font-size: 2.2rem; font-weight: 700; line-height: 1; }
code.link { user-select: all; word-break: break-all; }

/* Meghivo linkek: lathato link + masolas gomb */
.invite-link { display: inline-block; max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; user-select: all; font-size: .8rem; }
.invite-row { display: flex; align-items: center; gap: .4rem; flex-wrap: nowrap; }
.invite-list .invite-row { padding: .35rem 0; border-bottom: 1px solid var(--mc-line); gap: .6rem; flex-wrap: wrap; }
.invite-list .invite-row:last-child { border-bottom: 0; }
.invite-list .who { min-width: 14rem; font-size: .85rem; }
.invite-list .invite-link { max-width: 26rem; }
.btn.mc-copied { background: #22a35a; border-color: #22a35a; color: #fff; }
.btn.mc-copy-failed { background: #c0392b; border-color: #c0392b; color: #fff; }

/* Elo felirat monitor (Elo vezerles oldal) */
.cap-list { max-height: 460px; overflow-y: auto; border: 1px solid var(--mc-line); border-radius: 12px; padding: .5rem .75rem; background: #fff; }
.cap-row { padding: .5rem 0; border-bottom: 1px solid var(--mc-line); }
.cap-row:last-child { border-bottom: 0; }
.cap-src { font-weight: 600; }
.cap-tr { padding-left: 1rem; color: #1b2430; }
.cap-lang { display: inline-block; min-width: 2.2em; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: var(--mc-muted); background: #eef1f6; border-radius: 6px; padding: 0 .35rem; margin-right: .25rem; vertical-align: middle; }
.cap-time { font-size: .75rem; color: var(--mc-muted); font-variant-numeric: tabular-nums; margin-right: .25rem; }
.cap-meta { font-size: .75rem; color: var(--mc-muted); padding-left: 1rem; }
.cap-pending { opacity: .75; }
.cap-piece { display: inline-block; font-size: .68rem; font-weight: 600; text-transform: uppercase; color: #8a6d00; background: #fff3c4; border-radius: 6px; padding: 0 .35rem; margin-right: .25rem; vertical-align: middle; }
.cap-partial { opacity: .55; }
.cap-partial .cap-src { font-weight: 400; font-style: italic; }
.cap-replaced { display: none; }

/* Telefon-elonezet (Beallitasok > Megjelenes): az app konferencia-kepernyojenek vazlata a kivalasztott szinekkel */
.phone { --p: #1e6fd9; --on-p: #fff; --pc: #dce8f9; --on-pc: #103d77; --surface: #fff; --bg: #f4f6fa; --ink: #1b2430; --muted: #6b7684;
  width: 250px; margin: 0 auto; background: #17191d; border-radius: 34px; padding: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.25), inset 0 0 0 2px #2b2e34; position: relative; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; width: 70px; height: 8px; margin-left: -35px; background: #0a0b0d; border-radius: 6px; z-index: 2; }
.phone-screen { background: var(--bg); color: var(--ink); border-radius: 26px; overflow: hidden; height: 500px; display: flex; flex-direction: column; font-size: 10px; line-height: 1.25; }
.ph-status { display: flex; justify-content: space-between; padding: 6px 14px 2px; background: var(--p); color: var(--on-p); font-size: 8.5px; font-weight: 600; letter-spacing: .02em; }
.ph-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px; background: var(--p); color: var(--on-p); }
.ph-logo { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; background: #fff; flex: none; }
.ph-logo-ph { display: inline-flex; align-items: center; justify-content: center; background: var(--on-p); color: var(--p); font-weight: 700; font-size: 13px; }
.ph-bar-text { flex: 1; min-width: 0; }
.ph-title { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-sub { font-size: 8.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-ico { width: 16px; height: 16px; fill: var(--on-p); flex: none; }
.ph-cover { height: 64px; background: linear-gradient(135deg, var(--p), var(--pc)); background-size: cover; background-position: center; }
.ph-body { flex: 1; padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.ph-chips { display: flex; gap: 5px; }
.ph-chip { border: 1px solid var(--muted); color: var(--ink); border-radius: 999px; padding: 2px 8px; font-size: 9px; }
.ph-chip-on { background: var(--pc); color: var(--on-pc); border-color: transparent; font-weight: 600; }
.ph-next { background: var(--pc); color: var(--on-pc); border-radius: 12px; padding: 9px 10px; }
.ph-next-k { font-size: 8.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; opacity: .85; }
.ph-next-t { font-size: 11.5px; font-weight: 700; margin: 2px 0; }
.ph-next-s { font-size: 9px; opacity: .85; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.ph-tile { background: var(--surface); border-radius: 12px; padding: 9px 8px; display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 9.5px; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ph-tile svg { width: 18px; height: 18px; fill: var(--p); }
.ph-btn { margin-top: auto; align-self: flex-end; background: var(--p); color: var(--on-p); border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 10px; box-shadow: 0 3px 8px rgba(0,0,0,.2); cursor: default; }
.ph-nav { display: flex; justify-content: space-around; padding: 6px 4px 10px; background: var(--surface); border-top: 1px solid rgba(127,127,127,.15); }
.ph-nav-i { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8.5px; color: var(--muted); width: 25%; }
.ph-pill { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 20px; border-radius: 999px; }
.ph-pill svg { width: 14px; height: 14px; fill: var(--muted); }
.ph-nav-on { color: var(--ink); font-weight: 600; }
.ph-nav-on .ph-pill { background: var(--pc); }
.ph-nav-on .ph-pill svg { fill: var(--on-pc); }

/* Telefon-elonezet v2: az app valodi kezdolapja (HomeScreen.kt) – hero + kartyak ikon-dobozzal.
   --accent: a fo szin, ha latszik a hatteren (>= 3:1), kulonben az onSurface (a JS szamolja). */
.ph-body { gap: 7px; padding: 8px; }
.ph-hero { position: relative; border-radius: 12px; padding: 12px 10px 10px; background: var(--hero); background-size: cover; background-position: center; color: #fff; min-height: 96px; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.ph-hero-pill { position: absolute; top: 8px; left: 10px; background: var(--p); color: var(--on-p); font-size: 7.5px; font-weight: 700; border-radius: 999px; padding: 2px 6px; letter-spacing: .03em; }
.ph-hero-date { font-size: 8px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.ph-hero-title { font-size: 13px; font-weight: 800; line-height: 1.15; }
.ph-hero-sub { font-size: 8.5px; opacity: .85; }
.ph-card { display: flex; align-items: stretch; background: var(--surface); border-radius: 10px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ph-card-bar { width: 3px; background: var(--accent); flex: none; }
.ph-card-ico { width: 28px; height: 28px; border-radius: 8px; background: var(--pc); display: inline-flex; align-items: center; justify-content: center; margin: 7px 8px 7px 9px; flex: none; }
.ph-card-ico svg { width: 16px; height: 16px; fill: var(--on-pc); }
.ph-card-t { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding-right: 8px; }
.ph-card-t b { font-size: 9.5px; letter-spacing: .03em; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-card-t small { font-size: 8px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Beallitasok: szekcio-menu (tartalomjegyzek) a jobb oldalon, keskeny kepernyon vizszintes csik a fejlec alatt */
.manage.has-toc { grid-template-columns: 250px 1fr 200px; }
.toc { position: sticky; top: 1rem; align-self: start; display: flex; flex-direction: column; justify-content: space-evenly; gap: .6rem; height: calc(100vh - 2rem); padding: .5rem .25rem .5rem .5rem; border-left: 1px solid var(--mc-line); font-size: .9rem; }
.toc a { color: var(--mc-muted); padding: .6rem .85rem; border-radius: 10px; line-height: 1.25; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: background .15s, color .15s; }
.toc a:hover { color: var(--mc-ink); background: #f1f4f9; text-decoration: none; }
.toc a.active { color: var(--mc-brand-dark); background: rgba(30,111,217,.10); font-weight: 600; }
.toc a.toc-danger.active { color: #b02a37; background: rgba(220,53,69,.10); }
.manage.has-toc .content .card { scroll-margin-top: .75rem; }
@media (max-width: 1200px) {
  .manage.has-toc { grid-template-columns: 250px 1fr; }
  .toc { height: auto; justify-content: flex-start; grid-column: 2; grid-row: 1; position: sticky; top: 0; z-index: 5; flex-direction: row; gap: 6px; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--mc-line); background: var(--mc-bg); padding: .5rem 0; margin-bottom: .75rem; scrollbar-width: none; }
  .toc::-webkit-scrollbar { display: none; }
  .toc a { flex: none; border: 1px solid var(--mc-line); border-radius: 999px; background: #fff; padding: .4rem .8rem; white-space: nowrap; display: block; }
  .manage.has-toc .content { grid-column: 2; grid-row: 2; }
  .manage.has-toc .content .card { scroll-margin-top: 3.4rem; }
}
@media (max-width: 900px) {
  .manage.has-toc { grid-template-columns: 1fr; }
  .toc, .manage.has-toc .content { grid-column: 1; }
  .toc { grid-row: 2; }
  .manage.has-toc .content { grid-row: 3; }
}

/* Beallitasok: ragado mentes-sav az urlap aljan, csak ha van nem mentett modositas */
.savebar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0 0 1rem; padding: .65rem .9rem; background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); box-shadow: 0 -6px 24px rgba(20,30,50,.10), 0 2px 6px rgba(20,30,50,.06); }
.savebar[hidden] { display: none; }
.savebar-text { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--mc-ink); }
.savebar-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,.18); }
.savebar-actions { display: inline-flex; gap: .5rem; align-items: center; }
.savebar.saving { opacity: .7; pointer-events: none; }

/* Utalvanyok oldal: resztvevo x tipus matrix */
.btn-xs { --bs-btn-padding-y: .05rem; --bs-btn-padding-x: .4rem; --bs-btn-font-size: .75rem; line-height: 1.2; }
.vcell { display: inline-block; min-width: 3.2em; font-variant-numeric: tabular-nums; font-weight: 600; }
.vcell-none { color: var(--mc-muted); font-weight: 400; }
.vcell-done { color: #198754; }
.vcell-btns { display: inline-flex; gap: 2px; margin-left: .35rem; opacity: .35; transition: opacity .15s; }
tr:hover .vcell-btns { opacity: 1; }

/* Dashboard: KPI-csempek + diagram-kartyak */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; margin-bottom: 1rem; }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: .8rem .95rem; min-width: 0; }
.kpi-l { font-size: .8rem; color: var(--mc-muted); }
.kpi-v { font-size: 1.7rem; font-weight: 700; line-height: 1.15; margin: .15rem 0; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: .78rem; color: var(--mc-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-good .kpi-v { color: #0a7a0a; }
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 1100px) { .charts { grid-template-columns: 1fr; } }
.chart-card { background: #fff; border: 1px solid var(--mc-line); border-radius: var(--mc-radius); padding: .8rem .95rem .6rem; min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-head { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .35rem; }
.chart-head h6 { margin: 0; font-weight: 600; font-size: .95rem; }
.chart-sub { font-size: .78rem; color: var(--mc-muted); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-head .tbl-toggle { margin-left: auto; padding: 0; font-size: .78rem; text-decoration: none; }
.chart-box { position: relative; height: 240px; }
.chart-box.tall { height: 320px; }
.chart-card.wide .chart-box { height: 300px; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--mc-muted); font-size: .9rem; background: rgba(255,255,255,.7); border-radius: 10px; }
.chart-table { max-height: 320px; overflow: auto; font-size: .85rem; }
