/* Vezetői Iroda – mobil-első, szög egyszerű */
:root {
  --navy: #1a2b4a;
  --navy-light: #24395f;
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #1c2333;
  --muted: #6b7385;
  --line: #e3e7ee;
  --red: #d64545;
  --amber: #d9930d;
  --green: #2e9e5b;
  --blue: #2d6cdf;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  padding-bottom: calc(70px + env(safe-area-inset-bottom));
}
button { font-family: inherit; }

.loading { padding: 40px; text-align: center; color: var(--muted); }

/* Fejléc */
header {
  background: var(--navy); color: #fff;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  display: flex; justify-content: space-between; align-items: center;
  position: sticky; top: 0; z-index: 10;
}
header h1 { font-size: 17px; font-weight: 600; }
header .date { font-size: 13px; opacity: .75; }
header .who { font-size: 13px; opacity: .9; background: var(--navy-light); border: none; color: #fff;
  padding: 6px 10px; border-radius: 20px; }

main { padding: 14px; max-width: 640px; margin: 0 auto; }

/* Szekciók, kártyák */
.section { margin-bottom: 18px; }
.section > h2 {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 4px 8px;
}
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1px solid var(--line); overflow: hidden;
}
.row {
  padding: 12px 14px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.row:last-child { border-bottom: none; }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-size: 15px; line-height: 1.35; }
.row .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.row.tap { cursor: pointer; }
.row.tap:active { background: #f6f8fb; }
.row.done .title { text-decoration: line-through; color: var(--muted); }

.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot.red { background: var(--red); } .dot.amber { background: var(--amber); }
.dot.green { background: var(--green); } .dot.gray { background: #b9c0cd; }

.pill {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px; white-space: nowrap;
  background: #eef1f6; color: var(--muted);
}
.pill.red { background: #fbe9e9; color: var(--red); }
.pill.amber { background: #faf0d9; color: #9a6a06; }
.pill.green { background: #e3f4ea; color: var(--green); }
.pill.blue { background: #e7eefc; color: var(--blue); }

.empty { padding: 18px 14px; color: var(--muted); font-size: 14px; text-align: center; }

.seg { display: flex; background: #e6eaf1; border-radius: 12px; padding: 3px; margin-bottom: 14px; }
.seg button {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.1); }

.check {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid #c6cdd9;
  background: none; flex-shrink: 0; cursor: pointer; font-size: 14px; color: transparent;
}
.check.on { background: var(--green); border-color: var(--green); color: #fff; }

/* Alsó navigáció */
nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
  background: #fff; border-top: 1px solid var(--line);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
}
nav button {
  flex: 1; border: none; background: none; padding: 9px 0 7px;
  font-size: 11px; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
nav button .ic { font-size: 21px; line-height: 1; }
nav button.on { color: var(--navy); font-weight: 700; }
nav button.mic-btn .ic {
  background: var(--navy); color: #fff; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin-top: -18px;
  box-shadow: 0 3px 10px rgba(26,43,74,.35);
}

/* Belépés */
.login { max-width: 380px; margin: 60px auto; padding: 0 20px; }
.login h1 { text-align: center; color: var(--navy); margin-bottom: 24px; font-size: 24px; }
.login .card { padding: 20px; }
.login label { font-size: 13px; color: var(--muted); display: block; margin: 12px 0 5px; }
.login select, .login input {
  width: 100%; padding: 13px; font-size: 16px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.err { color: var(--red); font-size: 14px; margin-top: 10px; text-align: center; }

.btn {
  display: block; width: 100%; padding: 14px; margin-top: 16px;
  background: var(--navy); color: #fff; border: none; border-radius: 12px;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.btn:disabled { opacity: .5; }
.btn.ghost { background: #eef1f6; color: var(--text); }
.btn.danger { background: var(--red); }
.btn.small { width: auto; display: inline-block; padding: 9px 16px; font-size: 14px; margin-top: 0; }

/* Mondd képernyő */
.speak { text-align: center; padding-top: 8px; }
.speak .micbig {
  width: 110px; height: 110px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font-size: 44px; margin: 24px auto 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(26,43,74,.35);
}
.speak .micbig.rec { background: var(--red); animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.speak .hint { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.speak textarea {
  width: 100%; min-height: 130px; padding: 13px; font-size: 16px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: var(--radius); resize: vertical; background: #fff;
}

/* Javaslatok (jóváhagyás) */
.prop { border-left: 4px solid var(--blue); }
.prop.q { border-left-color: var(--amber); }
.prop .typ { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.prop .src { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 4px; }
.prop select, .prop input {
  font-size: 14px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; margin: 2px 4px 2px 0;
  background: #fff; max-width: 100%;
}
.conf { font-size: 11px; }
.conf.magas { color: var(--green); } .conf.kozepes { color: var(--amber); } .conf.alacsony { color: var(--red); }

.answerbox { background: #e7eefc; border-radius: var(--radius); padding: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }

/* Projekt részletek */
.projhead { padding: 16px 14px; }
.projhead h2 { font-size: 20px; margin-bottom: 4px; }
.back { background: none; border: none; color: var(--blue); font-size: 15px; padding: 0 0 12px; cursor: pointer; }
.notein { display: flex; gap: 8px; padding: 10px; }
.notein input { flex: 1; padding: 11px; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; }
.sysnote { color: var(--muted); font-style: italic; }

.fab-row { display: flex; gap: 10px; margin: 10px 0; }

/* Történet */
.ev .undone { text-decoration: line-through; opacity: .6; }
.undo-btn { background: #eef1f6; border: none; border-radius: 8px; padding: 6px 12px; font-size: 13px; cursor: pointer; }

.toast {
  position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: 11px 20px; border-radius: 24px;
  font-size: 14px; z-index: 100; max-width: 90%; text-align: center;
  animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.modal-bg { position: fixed; inset: 0; background: rgba(15,20,35,.5); z-index: 50;
  display: flex; align-items: flex-end; justify-content: center; }
.modal { background: #fff; border-radius: 18px 18px 0 0; width: 100%; max-width: 640px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto;
  position: relative; }
.modal h3 { margin-bottom: 14px; padding-right: 36px; }
.section h2.tap { cursor: pointer; user-select: none; }
.mic-mini { width: 40px; height: 40px; flex-shrink: 0; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; font-size: 17px; cursor: pointer; }
.mic-mini.rec { background: #d64545; border-color: #d64545; color: #fff; }
.modal label .mic-mini { width: 30px; height: 30px; font-size: 14px; vertical-align: middle; margin-left: 6px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: none; border-radius: 50%; background: var(--line, #e5e8ef); color: var(--muted, #667);
  font-size: 15px; cursor: pointer; }
.modal textarea { resize: vertical; font-family: inherit; }
.modal label { font-size: 13px; color: var(--muted); display: block; margin: 10px 0 4px; }
.modal input, .modal select, .modal textarea {
  width: 100%; padding: 11px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
