/* ===== Angol Gyakorló – stílusok ===== */
:root {
  --bg: #f5f6fb;
  --surface: #ffffff;
  --surface-2: #eef0f8;
  --text: #1c1f2e;
  --muted: #646a85;
  --border: #dfe2ef;
  --primary: #4f46e5;
  --primary-2: #6366f1;
  --primary-soft: #e8e7fd;
  --good: #16a34a;
  --good-soft: #dcfce7;
  --bad: #dc2626;
  --bad-soft: #fee2e2;
  --warn: #d97706;
  --warn-soft: #fef3c7;
  --easy: #0284c7;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 24, 50, .06), 0 4px 16px rgba(20, 24, 50, .06);
  --nav-w: 220px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11131c; --surface: #1a1d29; --surface-2: #232737; --text: #e8eaf3; --muted: #9aa0ba;
    --border: #2e3346; --primary: #818cf8; --primary-2: #a5b4fc; --primary-soft: #272a4a;
    --good: #4ade80; --good-soft: #163322; --bad: #f87171; --bad-soft: #3a1d1f;
    --warn: #fbbf24; --warn-soft: #3a2e12; --easy: #38bdf8;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11131c; --surface: #1a1d29; --surface-2: #232737; --text: #e8eaf3; --muted: #9aa0ba;
  --border: #2e3346; --primary: #818cf8; --primary-2: #a5b4fc; --primary-soft: #272a4a;
  --good: #4ade80; --good-soft: #163322; --bad: #f87171; --bad-soft: #3a1d1f;
  --warn: #fbbf24; --warn-soft: #3a2e12; --easy: #38bdf8;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.5; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--primary); }
[hidden] { display: none !important; }

/* ----- Elrendezés ----- */
.app { display: flex; min-height: 100vh; }
.nav {
  width: var(--nav-w); flex-shrink: 0; position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 10px; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 18px; font-weight: 700; font-size: 1.1rem; }
.brand-logo { font-size: 1.6rem; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 500;
}
.nav a:hover { background: var(--surface-2); }
.nav a.active { background: var(--primary-soft); color: var(--primary); }
.nav .ico { width: 24px; text-align: center; font-size: 1.15rem; }
.nav .badge {
  margin-left: auto; background: var(--primary); color: #fff; border-radius: 999px;
  font-size: .75rem; padding: 1px 8px; font-weight: 700;
}
.nav-stats { margin-top: auto; padding: 12px; font-size: .9rem; color: var(--muted); display: grid; gap: 4px; }

.main { flex: 1; min-width: 0; padding: 28px clamp(16px, 4vw, 48px) 40px; }
.view { display: none; max-width: 860px; margin: 0 auto; }
.view.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .app { flex-direction: column; }
  .nav {
    position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; width: 100%; z-index: 20;
    flex-direction: row; justify-content: space-around; padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
    border-right: none; border-top: 1px solid var(--border);
  }
  .brand, .nav-stats { display: none; }
  .nav a { flex-direction: column; gap: 0; padding: 6px 4px; font-size: .68rem; flex: 1; text-align: center; position: relative; }
  .nav a .ico { font-size: 1.25rem; }
  .nav .badge { position: absolute; top: 0; right: 10%; margin: 0; font-size: .65rem; padding: 0 6px; }
  .main { padding: 18px 14px 96px; }
}

/* ----- Tipográfia, általános elemek ----- */
h1 { font-size: 1.7rem; margin: 0 0 6px; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 14px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.spacer { flex: 1; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 14px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 10px 16px; border-radius: var(--radius-sm); cursor: pointer; font-weight: 600;
  transition: background .15s, border-color .15s, transform .05s; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-2); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.icon { padding: 8px 10px; }
.btn.danger { color: var(--bad); }
.btn.good { background: var(--good); border-color: var(--good); color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 12px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; cursor: pointer; user-select: none;
}
.chip.on { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
.tag { display: inline-block; font-size: .75rem; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 600; }
.tag.new { background: var(--primary-soft); color: var(--primary); }
.tag.learning { background: var(--warn-soft); color: var(--warn); }
.tag.review { background: var(--good-soft); color: var(--good); }
.tag.known { background: var(--surface-2); color: var(--muted); }

label.field { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: .84rem; }
input[type="text"], input[type="password"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input[type="range"] { width: 100%; accent-color: var(--primary); }
input[type="checkbox"] { accent-color: var(--primary); width: 18px; height: 18px; }

.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress > div { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 760px) { .toast { bottom: 90px; } }

.empty { text-align: center; padding: 30px 10px; }
.empty .big-emoji { font-size: 3rem; }

.notice { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--text); border: 1px solid var(--warn); font-size: .92rem; }
.notice.info { background: var(--primary-soft); border-color: var(--primary); }

/* ----- Kezdőlap ----- */
.stat { padding: 16px; }
.stat .num { font-size: 1.9rem; font-weight: 800; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: .88rem; }
.goal-ring { display: flex; align-items: center; gap: 18px; }
.actions-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.action {
  display: grid; gap: 4px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow); cursor: pointer; text-align: left;
}
.action:hover { border-color: var(--primary); }
.action .a-ico { font-size: 1.8rem; }
.action .a-title { font-weight: 700; }
.action .a-desc { color: var(--muted); font-size: .88rem; }
.week { display: flex; gap: 8px; align-items: flex-end; height: 90px; }
.week .bar { flex: 1; display: grid; gap: 4px; justify-items: center; font-size: .75rem; color: var(--muted); }
.week .bar div { width: 100%; max-width: 34px; background: var(--primary); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.week .bar.today span { color: var(--primary); font-weight: 700; }

/* ----- Szókártya ----- */
.fc-wrap { perspective: 1200px; }
.flashcard {
  min-height: 300px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); padding: 28px 22px; display: grid; place-items: center; text-align: center; cursor: pointer;
  position: relative;
}
.flashcard .fc-meta { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; }
.flashcard .fc-word { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; letter-spacing: -.01em; }
.flashcard .fc-answer { margin-top: 10px; display: grid; gap: 10px; }
.flashcard .fc-hu { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.flashcard .fc-ex { color: var(--text); font-style: italic; }
.flashcard .fc-exhu { color: var(--muted); font-size: .92rem; }
.flashcard hr { border: none; border-top: 1px dashed var(--border); width: 60%; margin: 10px auto; }
.fc-hint { color: var(--muted); font-size: .88rem; margin-top: 14px; }
.rate { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.rate .btn { flex-direction: column; gap: 0; padding: 10px 6px; }
.rate .btn small { font-weight: 500; color: var(--muted); font-size: .76rem; }
.rate .r-again { border-color: var(--bad); color: var(--bad); }
.rate .r-hard { border-color: var(--warn); color: var(--warn); }
.rate .r-good { border-color: var(--good); color: var(--good); }
.rate .r-easy { border-color: var(--easy); color: var(--easy); }
.kbd { font-family: ui-monospace, Consolas, monospace; font-size: .75rem; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--muted); }

.speak-btn { border: none; background: var(--surface-2); border-radius: 999px; width: 40px; height: 40px; cursor: pointer; font-size: 1.1rem; display: inline-grid; place-items: center; }
.speak-btn:hover { background: var(--primary-soft); }
.speak-btn.sm { width: 30px; height: 30px; font-size: .9rem; }

/* ----- Kvíz ----- */
.q-prompt { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; text-align: center; margin: 8px 0 4px; }
.q-instr { text-align: center; color: var(--muted); margin-bottom: 18px; }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.option {
  padding: 14px 16px; border-radius: var(--radius-sm); border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; font-weight: 600; text-align: left; font-size: 1rem;
}
.option:hover:not(:disabled) { border-color: var(--primary); }
.option.correct { border-color: var(--good); background: var(--good-soft); }
.option.wrong { border-color: var(--bad); background: var(--bad-soft); }
.option:disabled { cursor: default; }
.option .k { color: var(--muted); font-weight: 500; margin-right: 6px; }
.answer-input { font-size: 1.2rem !important; text-align: center; padding: 14px !important; }
.answer-input.correct { border-color: var(--good) !important; background: var(--good-soft) !important; }
.answer-input.wrong { border-color: var(--bad) !important; background: var(--bad-soft) !important; }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); display: grid; gap: 6px; }
.feedback.good { background: var(--good-soft); border: 1px solid var(--good); }
.feedback.bad { background: var(--bad-soft); border: 1px solid var(--bad); }
.feedback .fb-title { font-weight: 800; }
.gap-sentence { font-size: 1.35rem; text-align: center; margin: 10px 0 18px; line-height: 1.7; }
.gap-sentence .gap { display: inline-block; min-width: 90px; border-bottom: 3px solid var(--primary); color: var(--primary); font-weight: 700; }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 52px; padding: 10px; border-radius: var(--radius-sm); }
.tiles.answer { border: 2px dashed var(--border); margin-bottom: 14px; }
.tile { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); box-shadow: 0 2px 0 var(--border); cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.tile:hover { border-color: var(--primary); }
.tile.used { visibility: hidden; }
.result-big { font-size: 3.2rem; font-weight: 800; text-align: center; }
.mistakes { display: grid; gap: 6px; }
.mistakes .m { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }

/* ----- Kiejtés ----- */
.target-text { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 800; text-align: center; margin: 10px 0; line-height: 1.4; }
.target-text .w { padding: 0 2px; border-radius: 4px; }
.target-text .w.ok { color: var(--good); }
.target-text .w.miss { color: var(--bad); text-decoration: underline wavy; }
.mic-btn {
  width: 92px; height: 92px; border-radius: 50%; border: none; cursor: pointer; font-size: 2.2rem;
  background: var(--primary); color: #fff; box-shadow: 0 6px 20px rgba(79, 70, 229, .35); transition: transform .1s;
}
.mic-btn:hover { transform: scale(1.04); }
.mic-btn.listening { background: var(--bad); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .5); } 70% { box-shadow: 0 0 0 18px rgba(220, 38, 38, 0); } 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); } }
.score-circle { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; font-weight: 800; margin: 0 auto; border: 8px solid var(--border); }
.score-circle.good { border-color: var(--good); color: var(--good); }
.score-circle.mid { border-color: var(--warn); color: var(--warn); }
.score-circle.bad { border-color: var(--bad); color: var(--bad); }
.heard { text-align: center; color: var(--muted); }
.heard b { color: var(--text); }

/* ----- AI-tanár ----- */
.tutor { display: grid; grid-template-rows: auto 1fr auto; height: calc(100vh - 68px); gap: 12px; }
@media (max-width: 760px) { .tutor { height: calc(100vh - 130px); } }
.tutor-head { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chat { overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 4px 2px 10px; }
.msg { max-width: 85%; padding: 12px 16px; border-radius: 18px; line-height: 1.55; word-wrap: break-word; position: relative; }
.msg.user { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 6px; }
.msg.assistant { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; box-shadow: var(--shadow); }
.msg.error { align-self: center; background: var(--bad-soft); border: 1px solid var(--bad); }
.msg p { margin: 0 0 8px; }
.msg p:last-child { margin-bottom: 0; }
.msg ul, .msg ol { margin: 4px 0 8px; padding-left: 22px; }
.msg .correction { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 8px 12px; border-radius: 8px; margin-bottom: 10px; font-size: .95rem; }
.msg .correction .c-line + .c-line { margin-top: 4px; }
.msg .vocab { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.msg .vocab .chip { font-size: .82rem; }
.msg .msg-tools { display: flex; gap: 4px; margin-top: 6px; }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin: 0 2px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.composer { display: flex; gap: 8px; align-items: flex-end; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 8px; box-shadow: var(--shadow); }
.composer textarea { border: none; box-shadow: none !important; resize: none; max-height: 160px; min-height: 44px; padding: 10px; background: transparent; }
.composer .btn { height: 44px; }
.mode-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.scen-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ----- Szólista ----- */
.word-list { display: grid; gap: 6px; }
.word-row { display: grid; grid-template-columns: auto 1fr 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.word-row .en { font-weight: 700; }
.word-row .hu { color: var(--muted); }
@media (max-width: 560px) { .word-row { grid-template-columns: auto 1fr auto; } .word-row .hu { grid-column: 2; grid-row: 2; } .word-row .status { display: none; } }
.topic-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.topic {
  display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 2px solid var(--border); background: var(--surface); cursor: pointer; text-align: left;
}
.topic.on { border-color: var(--primary); background: var(--primary-soft); }
.topic .t-ico { font-size: 1.5rem; }
.topic .t-name { font-weight: 700; }
.topic .t-count { font-size: .8rem; color: var(--muted); }

details.box { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--surface); }
details.box summary { cursor: pointer; font-weight: 700; }

/* ===== 2. változat: minták, autós mód, profilok ===== */
.m-only { display: none !important; }
.more-menu { display: none; }
@media (max-width: 760px) {
  .nav .m-hide { display: none; }
  .m-only { display: flex !important; }
  .more-menu:not([hidden]) {
    display: grid; position: fixed; right: 8px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 30;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 6px; min-width: 200px;
  }
  .more-menu a { padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600; }
  .more-menu a:hover { background: var(--surface-2); }
}

mark { background: var(--warn-soft); color: inherit; padding: 0 2px; border-radius: 4px; }
.w.ok { color: var(--good); }
.w.miss { color: var(--bad); text-decoration: underline wavy; }

.flashcard .fc-word.hu { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.3; }
.flashcard .fc-en { font-size: clamp(1.3rem, 4.5vw, 1.8rem); font-weight: 800; line-height: 1.35; }
.pattern-chip { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }
.note-box { margin-top: 12px; background: var(--primary-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; font-size: .92rem; }
.note-box summary { cursor: pointer; font-weight: 700; }
.note-box > div { margin-top: 6px; }
details.note-box:not([open]) { padding: 8px 14px; }
.btn.suggest { box-shadow: 0 0 0 3px var(--primary); }

.big-actions { display: grid; gap: 12px; grid-template-columns: 2fr 1fr; margin-top: 14px; }
@media (max-width: 560px) { .big-actions { grid-template-columns: 1fr; } }
.big-action { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius); text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.big-action .a-ico { font-size: 2rem; }
.big-action.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.big-action:hover { filter: brightness(1.05); }

/* Autós mód: nagy, sötét, jól olvasható */
.drive { position: fixed; inset: 0; z-index: 40; background: #0b0d14; color: #f2f4fa; display: grid; grid-template-rows: auto 1fr auto auto; padding: calc(18px + env(safe-area-inset-top)) 18px calc(18px + env(safe-area-inset-bottom)); gap: 16px; }
.drive-phase { font-size: 1.5rem; font-weight: 800; text-align: center; color: #a5b4fc; }
.drive.paused .drive-phase { color: #fbbf24; }
.drive-text { display: grid; align-content: center; gap: 18px; text-align: center; }
.drive-hu { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 700; color: #cbd2e6; }
.drive-en { font-size: clamp(1.9rem, 7vw, 3rem); font-weight: 900; color: #fff; }
.drive-heard { font-size: 1.1rem; color: #9aa0ba; }
.drive-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.drive-btn { border: none; border-radius: 18px; padding: 22px 8px; font-size: 1.25rem; font-weight: 800; background: #262b3d; color: #fff; cursor: pointer; }
.drive-btn.stop { background: #7f1d1d; }
.drive-foot { text-align: center; color: #6b7290; font-size: .95rem; }

.phrase-opt { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.phrase-en { font-size: 1.15rem; font-weight: 800; }
.hist-row { padding: 8px 0; border-bottom: 1px solid var(--border); }
.hist-row:last-child { border-bottom: none; }

details.pattern { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: var(--surface); }
details.pattern summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
details.pattern .p-title { font-weight: 800; }
details.pattern .p-prog { margin-left: auto; font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.sent-list { display: grid; gap: 6px; margin-top: 8px; }
.sent-row { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); }
.pack-box > summary { font-size: 1.05rem; }

/* Költözés-segéd sáv (ha az appot nem a hivatalos címén nyitják meg) */
.migrate-bar {
  position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center;
  padding: 10px 14px; background: var(--warn-soft); border-bottom: 1px solid var(--warn); font-size: .95rem; text-align: center;
}
