@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300&family=Raleway:wght@300;400;500;600&display=swap');

:root {
  --gold: #c9a84c;
  --gold-light: #e2c47a;
  --gold-dim: #8a6d2f;
  --black: #080808;
  --black2: #101010;
  --black3: #181818;
  --white: #f5f0e8;
  --white-dim: #a89e8a;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body.emt-body { background: var(--black); }

/* ── LAYOUT ── */
.emt-app {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: 56px 1fr;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
}

/* ── TOPBAR ── */
.emt-topbar {
  grid-column: 1 / -1;
  background: var(--black2);
  border-bottom: 1px solid rgba(201,168,76,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.emt-logo-link { text-decoration: none; }
.emt-logo-link:hover .emt-logo { opacity: 0.8; }
.emt-logo { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--white); transition: opacity 0.2s; }
.emt-logo span { color: var(--gold); }
.emt-topbar-right { display: flex; align-items: center; gap: 16px; }
.emt-topbar-name { font-size: 11px; color: var(--white-dim); letter-spacing: 0.06em; }
.emt-logout {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white-dim); border: 1px solid rgba(201,168,76,0.2);
  padding: 5px 12px; text-decoration: none; transition: all 0.2s;
}
.emt-logout:hover { color: var(--gold); border-color: var(--gold); text-decoration: none; }

/* ── SIDEBAR ── */
.emt-sidebar {
  background: var(--black2);
  border-right: 1px solid rgba(201,168,76,0.07);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.emt-sidebar-section { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-dim); padding: 14px 18px 6px; }
.emt-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; width: 100%; text-align: left;
  background: none; border: none; border-left: 2px solid transparent;
  color: var(--white-dim); font-size: 12px; letter-spacing: 0.04em;
  font-family: 'Raleway', sans-serif; cursor: pointer; transition: all 0.2s;
}
.emt-nav-btn:hover { color: var(--white); background: rgba(201,168,76,0.04); }
.emt-nav-btn.active { color: var(--gold); border-left-color: var(--gold); background: rgba(201,168,76,0.05); }
.emt-nav-icon { font-size: 13px; width: 16px; text-align: center; }
.emt-nav-badge {
  margin-left: auto; background: var(--gold); color: var(--black);
  font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 8px; min-width: 16px; text-align: center;
}
.emt-sidebar-bottom { margin-top: auto; padding: 16px 18px; border-top: 1px solid rgba(201,168,76,0.07); }
.emt-client-info-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 4px; }
.emt-client-info-val { font-size: 11px; color: var(--white-dim); margin-bottom: 10px; line-height: 1.5; }

/* ── MAIN ── */
.emt-main { overflow-y: auto; }
.emt-view { display: none; padding: 28px 32px; }
.emt-view.active { display: block; }

/* ── DASHBOARD HEADER ── */
.emt-dash-head { margin-bottom: 24px; }
.emt-dash-name { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; color: var(--white); }
.emt-dash-meta { display: flex; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.emt-dash-meta-item { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white-dim); }
.emt-dash-meta-item strong { color: var(--gold); font-weight: 500; }

/* ── CALENDAR ── */
.emt-cal-wrap { margin-bottom: 24px; }
.emt-cal-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.emt-cal-month-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--white-dim); }
.emt-cal-nav-btn {
  background: none; border: 1px solid rgba(201,168,76,0.15); color: var(--white-dim);
  width: 22px; height: 22px; cursor: pointer; font-size: 11px;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.emt-cal-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.emt-cal-grid { display: flex; flex-direction: column; gap: 3px; }
.emt-cal-row { display: flex; gap: 3px; align-items: center; }
.emt-cal-dn { width: 28px; font-size: 8px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); text-align: center; }
.emt-cal-cell {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-size: 10px; color: var(--white-dim); cursor: pointer; border-radius: 3px;
  border: 1px solid transparent; background: none; font-family: 'Raleway', sans-serif;
  transition: all 0.15s; position: relative;
}
.emt-cal-cell:hover { border-color: rgba(201,168,76,0.3); color: var(--white); }
.emt-cal-cell.empty { cursor: default; }
.emt-cal-cell.today { background: var(--gold); color: var(--black); font-weight: 600; border-color: var(--gold); }
.emt-cal-cell.selected:not(.today) { border-color: var(--gold); color: var(--gold); }
.emt-cal-cell.has-training::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 3px; border-radius: 50%; background: var(--gold); opacity: 0.7;
}

/* ── DASHBOARD GRID ── */
.emt-dash-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 16px;
}

/* ── TODAY CARD ── */
.emt-today-card {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.emt-today-header {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(201,168,76,0.07);
  display: flex; align-items: center; justify-content: space-between;
}
.emt-today-label { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.emt-today-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; color: var(--white); margin-top: 2px; }
.emt-today-btn {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(201,168,76,0.25);
  padding: 5px 12px; background: none; cursor: pointer; font-family: 'Raleway', sans-serif;
  transition: all 0.2s;
}
.emt-today-btn:hover { background: rgba(201,168,76,0.1); }
.emt-today-body { padding: 14px 18px; }
.emt-today-ex-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.04); font-size: 12px;
}
.emt-today-ex-row:last-child { border: none; }
.emt-today-ex-name { color: var(--white-dim); }
.emt-today-ex-right { display: flex; align-items: center; gap: 10px; }
.emt-today-ex-kg { color: var(--gold); font-size: 11px; }
.emt-today-ex-video { font-size: 10px; color: var(--white-dim); cursor: pointer; }
.emt-today-ex-video:hover { color: var(--gold); }
.emt-today-rest { text-align: center; padding: 24px; color: var(--white-dim); font-size: 13px; }
.emt-today-rest strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--white); margin-bottom: 4px; }

/* ── MACRO CARD ── */
.emt-macro-card {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.emt-macro-header { padding: 14px 18px; border-bottom: 1px solid rgba(201,168,76,0.07); }
.emt-macro-title { font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.emt-macro-kcal { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; color: var(--white); margin-top: 2px; }
.emt-macro-kcal span { font-size: 12px; color: var(--white-dim); margin-left: 4px; }
.emt-macro-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.emt-macro-row { }
.emt-macro-row-top { display: flex; justify-content: space-between; margin-bottom: 5px; }
.emt-macro-row-label { font-size: 11px; color: var(--white-dim); }
.emt-macro-row-val { font-size: 11px; color: var(--white); }
.emt-macro-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.emt-macro-fill { height: 100%; border-radius: 2px; transition: width 0.6s; }
.emt-macro-fill.p { background: var(--gold); }
.emt-macro-fill.c { background: #a89e8a; }
.emt-macro-fill.f { background: #555; }
.emt-macro-empty { padding: 24px 18px; text-align: center; color: var(--white-dim); font-size: 12px; }

/* ── DETAIL VIEW (full training) ── */
.emt-detail-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white-dim); cursor: pointer; margin-bottom: 20px;
  background: none; border: none; font-family: 'Raleway', sans-serif; padding: 0;
  transition: color 0.2s;
}
.emt-detail-back:hover { color: var(--gold); }
.emt-detail-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; font-weight: 300; color: var(--white); margin-bottom: 6px; }
.emt-detail-date { font-size: 11px; color: var(--white-dim); letter-spacing: 0.08em; margin-bottom: 24px; }

/* ── TRAINING TABLE ── */
.emt-tbl { width: 100%; border-collapse: collapse; }
.emt-tbl thead tr { border-bottom: 1px solid rgba(201,168,76,0.15); }
.emt-tbl th { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); padding: 8px 10px; text-align: left; font-weight: 500; }
.emt-tbl tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.emt-tbl tbody tr:hover { background: rgba(201,168,76,0.02); }
.emt-tbl td { padding: 12px 10px; vertical-align: middle; }
.emt-tbl-num { font-size: 10px; color: var(--gold-dim); font-family: 'Cormorant Garamond', serif; width: 30px; }
.emt-tbl-name { font-size: 13px; color: var(--white); }
.emt-tbl-center { text-align: center; font-size: 12px; color: var(--white-dim); }

.emt-w-wrap { display: flex; align-items: center; gap: 4px; }
.emt-w-input {
  background: var(--black3) !important; border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important; font-family: 'Raleway', sans-serif !important;
  font-size: 12px !important; padding: 6px 8px !important; width: 65px !important;
  text-align: center !important; outline: none !important; border-radius: 2px !important;
  box-shadow: none !important; transition: border-color 0.2s !important;
}
.emt-w-input:focus { border-color: var(--gold) !important; }
.emt-kg { font-size: 10px; color: var(--white-dim); }
.emt-n-input {
  background: transparent !important; border: none !important;
  border-bottom: 1px solid rgba(201,168,76,0.1) !important;
  color: var(--white-dim) !important; font-family: 'Raleway', sans-serif !important;
  font-size: 11px !important; padding: 4px 0 !important; width: 100% !important;
  outline: none !important; box-shadow: none !important; border-radius: 0 !important;
}
.emt-n-input:focus { border-bottom-color: var(--gold) !important; }
.emt-n-input::placeholder { color: rgba(168,158,138,0.25) !important; }
.emt-vid-btn {
  background: rgba(201,168,76,0.08); border: 1px solid rgba(201,168,76,0.2);
  color: var(--gold); font-size: 11px; padding: 4px 8px; cursor: pointer; border-radius: 2px;
  transition: background 0.2s;
}
.emt-vid-btn:hover { background: rgba(201,168,76,0.15); }
.emt-done-btn {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.25); background: none;
  color: var(--white-dim); cursor: pointer; font-size: 10px; transition: all 0.2s;
}
.emt-done-btn.done { background: var(--gold); border-color: var(--gold); color: var(--black); }
.emt-save-btn {
  margin-top: 20px; background: var(--gold); color: var(--black); border: none;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 11px 28px; cursor: pointer; font-family: 'Raleway', sans-serif; font-weight: 600;
  transition: background 0.2s;
}
.emt-save-btn:hover { background: var(--gold-light); }

/* ── DIET VIEW ── */
.emt-diet-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.emt-diet-card { background: var(--black2); border: 1px solid rgba(201,168,76,0.1); border-radius: 4px; padding: 16px; }
.emt-diet-card-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 6px; }
.emt-diet-card-val { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; color: var(--white); }
.emt-diet-card-unit { font-size: 11px; color: var(--white-dim); margin-left: 3px; }
.emt-diet-bar { height: 2px; background: rgba(255,255,255,0.06); border-radius: 1px; margin-top: 8px; overflow: hidden; }
.emt-diet-bar-fill { height: 100%; border-radius: 1px; }

.emt-meal-list { display: flex; flex-direction: column; gap: 10px; }
.emt-meal { background: var(--black2); border: 1px solid rgba(201,168,76,0.08); border-radius: 4px; overflow: hidden; }
.emt-meal-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: rgba(201,168,76,0.03); border-bottom: 1px solid rgba(201,168,76,0.06); }
.emt-meal-name { font-size: 13px; font-weight: 500; color: var(--white); }
.emt-meal-time { font-size: 10px; color: var(--gold); letter-spacing: 0.08em; }
.emt-meal-body { padding: 10px 16px; }
.emt-meal-desc { font-size: 12px; color: var(--white-dim); line-height: 1.7; margin-bottom: 8px; }
.emt-meal-macros { display: flex; gap: 14px; flex-wrap: wrap; }
.emt-meal-macro { font-size: 11px; color: var(--white-dim); }
.emt-meal-macro strong { color: var(--gold); font-weight: 500; }

/* ── CHAT VIEW ── */
.emt-chat-wrap { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 350px; }
.emt-chat-msgs { flex: 1; overflow-y: auto; padding: 8px 0; display: flex; flex-direction: column; gap: 10px; }
.emt-chat-msgs::-webkit-scrollbar { width: 3px; }
.emt-chat-msgs::-webkit-scrollbar-thumb { background: rgba(201,168,76,0.2); border-radius: 2px; }
.emt-msg { display: flex; flex-direction: column; max-width: 70%; }
.emt-msg.trainer { align-self: flex-start; }
.emt-msg.client { align-self: flex-end; }
.emt-msg-bubble { padding: 9px 13px; font-size: 13px; line-height: 1.6; }
.emt-msg.trainer .emt-msg-bubble { background: var(--black2); border: 1px solid rgba(201,168,76,0.1); color: var(--white); border-radius: 3px 10px 10px 3px; }
.emt-msg.client .emt-msg-bubble { background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.18); color: var(--white); border-radius: 10px 3px 3px 10px; }
.emt-msg-meta { font-size: 10px; color: var(--white-dim); margin-top: 3px; }
.emt-msg.client .emt-msg-meta { text-align: right; }
.emt-msg-sender { color: var(--gold); font-weight: 500; }
.emt-chat-form { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid rgba(201,168,76,0.08); margin-top: 8px; }
.emt-chat-input {
  flex: 1; background: var(--black2) !important; border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important; font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important; padding: 9px 13px !important; outline: none !important;
  border-radius: 3px !important; box-shadow: none !important;
}
.emt-chat-input:focus { border-color: var(--gold) !important; }
.emt-chat-send {
  background: var(--gold); color: var(--black); border: none;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 9px 18px; cursor: pointer; font-family: 'Raleway', sans-serif; font-weight: 600;
  transition: background 0.2s; white-space: nowrap;
}
.emt-chat-send:hover { background: var(--gold-light); }
.emt-chat-empty { text-align: center; padding: 32px; color: var(--white-dim); font-size: 12px; }

/* ── VIDEO MODAL ── */
.emt-modal { display: none; position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,0.9); align-items: center; justify-content: center; }
.emt-modal.open { display: flex; }
.emt-modal-box { background: var(--black2); border: 1px solid rgba(201,168,76,0.18); max-width: 780px; width: 92%; }
.emt-modal-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 18px; border-bottom: 1px solid rgba(201,168,76,0.08); }
.emt-modal-title-el { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 300; color: var(--white); }
.emt-modal-x { background: none; border: none; color: var(--white-dim); font-size: 17px; cursor: pointer; padding: 3px 7px; }
.emt-modal-x:hover { color: var(--white); }
.emt-modal-video { width: 100%; aspect-ratio: 16/9; background: #000; display: block; }

/* Pełnoekranowe okna (przepisy, zamiana posiłku) - na telefonie zajmują cały ekran */
.emt-modal-box.emt-modal-fullscreen { display: flex !important; flex-direction: column !important; max-height: 88vh; border-radius: 4px; min-height: 0; }
.emt-modal-top { flex: 0 0 auto !important; }
.emt-modal-scroll-body { overflow-y: auto !important; flex: 1 1 auto !important; min-height: 0 !important; -webkit-overflow-scrolling: touch; }
.emt-modal-footer { flex: 0 0 auto !important; }
.emt-modal-back {
  background: none !important; border: none !important; color: var(--gold) !important; font-size: 13px !important; cursor: pointer;
  padding: 3px 7px !important; font-family: 'Raleway', sans-serif !important; display: none; text-transform: none !important;
  box-shadow: none !important; height: auto !important; width: auto !important;
}
.emt-modal-footer {
  padding: 14px 18px; border-top: 1px solid rgba(201,168,76,0.12);
  display: flex; gap: 10px; background: var(--black2);
}
.emt-modal-footer .emt-add-cancel { flex: 0 0 auto; min-width: 100px; }
@media (max-width: 600px) {
  .emt-modal-box.emt-modal-fullscreen {
    width: 100%; height: 100%; max-width: 100%; max-height: 100%;
    border-radius: 0; position: fixed; inset: 0;
  }
}

/* Siatka kart przepisów - 2 kolumny, kompaktowe */
.emt-recipe-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
.emt-recipe-card {
  display: flex !important; flex-direction: column !important; border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px; overflow: hidden; background: var(--black2);
}
.emt-recipe-card-photo { width: 100% !important; height: 88px !important; object-fit: cover; display: block; background: var(--black3); }
.emt-recipe-card-photo-placeholder {
  width: 100%; height: 88px; display: flex; align-items: center; justify-content: center;
  font-size: 26px; background: var(--black3); color: rgba(201,168,76,0.3);
}
.emt-recipe-card-body { padding: 8px 10px 10px; flex: 1; display: flex; flex-direction: column; }
.emt-recipe-card-name { font-size: 12px !important; font-weight: 600; color: var(--white); margin-bottom: 2px; line-height: 1.3; }
.emt-recipe-card-author { font-size: 10px !important; color: var(--white-dim); margin-bottom: 4px; }
.emt-recipe-card-macro { font-size: 11px !important; color: var(--gold); margin-bottom: 8px; }
.emt-recipe-card-actions { display: flex !important; gap: 6px; margin-top: auto; }
.emt-recipe-card-btn {
  flex: 1 !important; font-size: 10px !important; letter-spacing: 0.02em; padding: 7px 4px !important;
  border-radius: 3px !important; text-align: center; cursor: pointer; border: 1px solid rgba(201,168,76,0.3) !important;
  background: transparent !important; color: var(--gold) !important; font-family: 'Raleway', sans-serif !important;
  line-height: 1.3 !important; min-height: 0 !important; height: auto !important; width: auto !important;
  text-transform: none !important; box-shadow: none !important;
}
.emt-recipe-card-btn.primary { background: var(--gold) !important; color: var(--black) !important; border-color: var(--gold) !important; font-weight: 600; }
.emt-recipe-card-btn:active { opacity: 0.7; }

/* ── TOAST ── */
.emt-toast { position: fixed; bottom: 22px; right: 22px; background: var(--gold); color: var(--black); padding: 10px 18px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; border-radius: 3px; opacity: 0; transform: translateY(6px); transition: all 0.28s; pointer-events: none; z-index: 99999; font-family: 'Raleway', sans-serif; }
.emt-toast.show { opacity: 1; transform: translateY(0); }

/* ── NO PLAN ── */
.emt-empty-state { text-align: center; padding: 48px 24px; }
.emt-empty-icon { font-size: 40px; margin-bottom: 12px; }
.emt-empty-title { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 300; color: var(--white); margin-bottom: 8px; }
.emt-empty-text { font-size: 13px; color: var(--white-dim); line-height: 1.7; }

/* ── LOGIN ── */
.emt-login-page { min-height: 100vh; background: var(--black); display: flex; align-items: center; justify-content: center; padding: 32px; }
.emt-login-box { background: var(--black2); border: 1px solid rgba(201,168,76,0.14); padding: 44px; max-width: 380px; width: 100%; }
.emt-login-logo { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--white); text-align: center; margin-bottom: 6px; }
.emt-login-logo span { color: var(--gold); }
.emt-login-title { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 300; color: var(--white); text-align: center; margin-bottom: 4px; }
.emt-login-sub { font-size: 11px; color: var(--white-dim); text-align: center; margin-bottom: 26px; line-height: 1.6; }
.emt-login-err { background: rgba(200,40,40,0.1); border: 1px solid rgba(200,40,40,0.3); color: #ff7070; padding: 9px 13px; font-size: 12px; margin-bottom: 14px; border-radius: 3px; }
.emt-login-field { margin-bottom: 14px; }
.emt-login-field label { display: block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 7px; }
.emt-login-field input { width: 100%; background: var(--black3) !important; border: 1px solid rgba(201,168,76,0.14) !important; color: var(--white) !important; font-family: 'Raleway', sans-serif !important; font-size: 13px !important; padding: 10px 13px !important; outline: none !important; border-radius: 2px !important; box-shadow: none !important; transition: border-color 0.2s !important; }
.emt-login-field input:focus { border-color: var(--gold) !important; }
.emt-login-btn { width: 100%; background: var(--gold); color: var(--black); border: none; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; padding: 12px; cursor: pointer; font-family: 'Raleway', sans-serif; font-weight: 600; margin-top: 6px; transition: background 0.2s; }
.emt-login-btn:hover { background: var(--gold-light); }
.emt-login-btn:disabled { opacity: 0.55; cursor: default; }
.emt-login-contact { text-align: center; font-size: 11px; color: var(--white-dim); margin-top: 18px; }
.emt-login-contact a { color: var(--gold); text-decoration: none; }

@media (max-width: 700px) {
  .emt-app { grid-template-columns: 1fr; grid-template-rows: 52px auto 1fr; }
  .emt-sidebar { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(201,168,76,0.07); padding: 0; }
  .emt-sidebar-section { display: none; }
  .emt-nav-btn { flex-direction: column; gap: 3px; padding: 10px 12px; font-size: 9px; border-left: none; border-bottom: 2px solid transparent; white-space: nowrap; }
  .emt-nav-btn.active { border-left: none; border-bottom-color: var(--gold); }
  .emt-sidebar-bottom { display: none; }
  .emt-dash-grid { grid-template-columns: 1fr; }
  .emt-diet-grid { grid-template-columns: repeat(2, 1fr); }
  .emt-view { padding: 16px; }
}

/* ── GOAL CARD ── */
.emt-goal-card {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.emt-goal-label { font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.emt-goal-circles { display: flex; gap: 20px; justify-content: center; }
.emt-goal-circle-wrap { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.emt-goal-svg { width: 120px; height: 120px; }
.emt-goal-circle-sub { font-size: 10px; color: var(--white-dim); letter-spacing: 0.08em; text-align: center; }
.emt-goal-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; color: var(--white); line-height: 1.3; text-align: center; }
.emt-goal-desc { font-size: 12px; color: var(--white-dim); line-height: 1.7; text-align: center; }
.emt-goal-weight-row { display: flex; justify-content: space-between; padding-top: 8px; border-top: 1px solid rgba(201,168,76,0.08); }
.emt-goal-weight-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 4px; }
.emt-goal-weight-val { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: var(--white); }
.emt-goal-weight-val span { font-size: 11px; color: var(--white-dim); }
.emt-goal-progress-btn {
  background: none; border: 1px solid rgba(201,168,76,0.2); color: var(--white-dim);
  font-size: 11px; letter-spacing: 0.08em; padding: 8px 14px; cursor: pointer;
  font-family: 'Raleway', sans-serif; transition: all 0.2s; width: 100%;
}
.emt-goal-progress-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ── PROGRESS VIEW ── */
.emt-progress-form-card {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.1);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 20px;
}
.emt-progress-form-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.emt-progress-form-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.emt-progress-field label {
  display: block; font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--white-dim); margin-bottom: 6px;
}
.emt-progress-field input {
  width: 100%; background: var(--black3) !important; border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important; font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important; padding: 8px 10px !important; outline: none !important;
  border-radius: 2px !important; box-shadow: none !important; transition: border-color 0.2s !important;
}
.emt-progress-field input:focus { border-color: var(--gold) !important; }

.emt-progress-history { }
.emt-progress-history-title { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.emt-progress-entry {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 8px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  align-items: center;
}
.emt-progress-date { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 300; color: var(--white); }
.emt-progress-date-sub { font-size: 10px; color: var(--white-dim); letter-spacing: 0.08em; margin-top: 2px; }
.emt-progress-metrics { display: flex; gap: 16px; flex-wrap: wrap; }
.emt-progress-metric { }
.emt-progress-metric-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 2px; }
.emt-progress-metric-val { font-size: 15px; color: var(--white); }
.emt-progress-metric-val span { font-size: 10px; color: var(--white-dim); }
.emt-progress-metric.highlight .emt-progress-metric-val { color: var(--gold); }

@media (max-width: 700px) {
  .emt-progress-form-grid { grid-template-columns: repeat(2, 1fr); }
  .emt-progress-entry { grid-template-columns: 1fr; }
}

/* ── NUTRITION / DZIENNIK ── */
.emt-nutrition-wrap { display: flex; flex-direction: column; gap: 20px; }

/* Tryb wyboru */
.emt-mode-toggle { display: flex; gap: 0; border: 1px solid rgba(201,168,76,0.2); border-radius: 4px; overflow: hidden; margin-bottom: 4px; }
.emt-mode-btn {
  flex: 1; padding: 10px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: none; border: none; color: var(--white-dim); cursor: pointer;
  font-family: 'Raleway', sans-serif; transition: all 0.2s;
}
.emt-mode-btn.active { background: rgba(201,168,76,0.12); color: var(--gold); }
.emt-mode-btn:not(:last-child) { border-right: 1px solid rgba(201,168,76,0.2); }

/* Licznik makro dzienny */
.emt-macro-counter {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.emt-mc-card {
  background: var(--black2); border: 1px solid rgba(201,168,76,0.08);
  border-radius: 4px; padding: 12px 14px;
}
.emt-mc-label { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 6px; }
.emt-mc-vals { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.emt-mc-curr { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 300; color: var(--white); }
.emt-mc-sep { font-size: 11px; color: var(--white-dim); }
.emt-mc-target { font-size: 12px; color: var(--white-dim); }
.emt-mc-unit { font-size: 10px; color: var(--white-dim); margin-left: 2px; }
.emt-mc-bar { height: 3px; background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden; }
.emt-mc-fill { height: 100%; border-radius: 2px; transition: width 0.4s; }
.emt-mc-fill.kcal { background: linear-gradient(to right, #c9a84c, #e2c47a); }
.emt-mc-fill.protein { background: #c9a84c; }
.emt-mc-fill.carbs { background: #a89e8a; }
.emt-mc-fill.fat { background: #666; }
.emt-mc-over { color: #ff7070 !important; }

/* Data nawigacja */
.emt-date-nav { display: flex; align-items: center; gap: 10px; }
.emt-date-nav-btn {
  background: none; border: 1px solid rgba(201,168,76,0.15); color: var(--white-dim);
  width: 28px; height: 28px; cursor: pointer; font-size: 13px;
  display: flex; align-items: center; justify-content: center; border-radius: 2px;
  transition: all 0.2s;
}
.emt-date-nav-btn:hover { border-color: var(--gold); color: var(--gold); }
.emt-date-label { font-size: 12px; color: var(--white); letter-spacing: 0.06em; flex: 1; text-align: center; }

/* Wyszukiwarka */
.emt-search-bar { display: flex; gap: 8px; position: relative; }
.emt-search-input {
  flex: 1; background: var(--black2) !important; border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important; font-family: 'Raleway', sans-serif !important;
  font-size: 16px !important; padding: 10px 14px !important; outline: none !important;
  border-radius: 3px !important; box-shadow: none !important;
}
.emt-search-input:focus { border-color: var(--gold) !important; }
.emt-search-btn {
  background: var(--gold); color: var(--black); border: none;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 10px 16px; cursor: pointer; font-family: 'Raleway', sans-serif; font-weight: 600;
  border-radius: 3px; white-space: nowrap; transition: background 0.2s;
}
.emt-search-btn:hover { background: var(--gold-light); }
.emt-scan-btn {
  background: rgba(201,168,76,0.1); border: 1px solid rgba(201,168,76,0.2); color: var(--gold);
  padding: 10px 14px; cursor: pointer; border-radius: 3px; font-size: 16px;
  transition: all 0.2s;
}
.emt-scan-btn:hover { background: rgba(201,168,76,0.2); }

/* Wyniki wyszukiwania */
.emt-search-results {
  background: var(--black2); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px; overflow: hidden; display: none;
}
.emt-search-results.show { display: block; }
.emt-search-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(255,255,255,0.04);
  cursor: pointer; transition: background 0.15s;
}
.emt-search-item:last-child { border: none; }
.emt-search-item:hover { background: rgba(201,168,76,0.06); }
.emt-si-name { font-size: 13px; color: var(--white); }
.emt-si-brand { font-size: 10px; color: var(--white-dim); margin-top: 2px; }
.emt-si-macro { font-size: 11px; color: var(--gold); text-align: right; }
.emt-si-source { font-size: 9px; color: var(--white-dim); }

/* Panel dodawania */
.emt-add-panel {
  background: var(--black2); border: 1px solid rgba(201,168,76,0.12);
  border-radius: 4px; padding: 16px; display: none;
  box-sizing: border-box; max-width: 100%; overflow-x: hidden;
}
.emt-add-panel * { box-sizing: border-box; max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
.emt-unit-toggle { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; border: 1px solid rgba(201,168,76,0.25); border-radius: 4px; overflow: hidden; }
.emt-unit-btn {
  background: none; border: none; color: var(--white-dim); font-family: 'Raleway', sans-serif;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 9px 6px; cursor: pointer;
  transition: all 0.2s; border-right: 1px solid rgba(201,168,76,0.15);
}
.emt-unit-btn:last-child { border-right: none; }
.emt-unit-btn.active { background: var(--gold); color: var(--black); font-weight: 600; }
.emt-add-panel.show { display: block; }
.emt-add-panel-title { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.emt-add-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) 70px; gap: 10px; align-items: end; margin-bottom: 10px; }
.emt-add-field label { display: block; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white-dim); margin-bottom: 5px; }
.emt-add-field input, .emt-add-field select {
  width: 100%; background: var(--black3) !important; border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important; font-family: 'Raleway', sans-serif !important;
  font-size: 16px !important; padding: 7px 9px !important; outline: none !important;
  border-radius: 2px !important; box-shadow: none !important;
}
.emt-add-field input:focus, .emt-add-field select:focus { border-color: var(--gold) !important; }
.emt-add-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.emt-add-confirm {
  background: var(--gold); color: var(--black); border: none;
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 9px 20px; cursor: pointer; font-family: 'Raleway', sans-serif; font-weight: 600;
  transition: background 0.2s;
}
.emt-add-confirm:hover { background: var(--gold-light); }
.emt-add-cancel {
  background: none; border: 1px solid rgba(201,168,76,0.15); color: var(--white-dim);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 9px 16px; cursor: pointer; font-family: 'Raleway', sans-serif;
  transition: all 0.2s;
}
.emt-save-to-db { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--white-dim); cursor: pointer; }
.emt-save-to-db input { width: auto !important; }

/* Posiłki w dzienniku */
.emt-meal-slots { display: flex; flex-direction: column; gap: 12px; }
.emt-meal-slot { background: var(--black2); border: 1px solid rgba(201,168,76,0.08); border-radius: 4px; overflow: hidden; }
.emt-meal-slot-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(201,168,76,0.03);
  border-bottom: 1px solid rgba(201,168,76,0.06);
}
.emt-meal-slot-name { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.emt-meal-slot-kcal { font-size: 11px; color: var(--white-dim); }
.emt-meal-slot-add {
  background: none; border: 1px solid rgba(201,168,76,0.2); color: var(--gold);
  font-size: 10px; padding: 4px 10px; cursor: pointer; font-family: 'Raleway', sans-serif;
  border-radius: 2px; transition: all 0.2s;
}
.emt-meal-slot-add:hover { background: rgba(201,168,76,0.1); }
.emt-meal-slot-mini {
  background: none; border: 1px solid rgba(201,168,76,0.15); color: var(--white-dim);
  font-size: 11px; padding: 4px 8px; cursor: pointer; border-radius: 2px; transition: all 0.2s;
}
.emt-meal-slot-mini:hover { background: rgba(201,168,76,0.08); color: var(--gold); }
.emt-meal-slot-items { padding: 4px 0; }
.emt-food-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); font-size: 12px;
}
.emt-food-item:last-child { border: none; }
.emt-food-item-name { color: var(--white); flex: 1; }
.emt-food-item-macro { color: var(--white-dim); font-size: 10px; margin-top: 2px; }
.emt-food-item-amount { color: var(--white-dim); margin: 0 12px; font-size: 11px; white-space: nowrap; }
.emt-food-item-kcal { color: var(--gold); font-size: 11px; min-width: 50px; text-align: right; }
.emt-food-item-del { background: none; border: none; color: rgba(168,158,138,0.3); cursor: pointer; font-size: 14px; padding: 0 4px; margin-left: 8px; transition: color 0.2s; }
.emt-food-item-del:hover { color: #ff7070; }
.emt-slot-empty { padding: 10px 14px; font-size: 12px; color: rgba(168,158,138,0.3); }

/* Edytowalny jadłospis */
.emt-meal-action-btn {
  background: none; border: 1px solid rgba(201,168,76,0.25); color: var(--gold);
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 10px; cursor: pointer; font-family: 'Raleway', sans-serif; border-radius: 2px;
  transition: all 0.2s;
}
.emt-meal-action-btn:hover { background: rgba(201,168,76,0.1); }
.emt-ing-row input { font-size: 16px !important; }

/* Skaner */
.emt-scanner-wrap {
  display: none; background: var(--black2); border: 1px solid rgba(201,168,76,0.15);
  border-radius: 4px; overflow: hidden;
}
.emt-scanner-wrap.show {
  display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 999999;
  border-radius: 0; max-width: 100%;
}
.emt-scanner-header { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid rgba(201,168,76,0.08); }
.emt-scanner-title { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.emt-scanner-close { background: none; border: none; color: var(--white-dim); cursor: pointer; font-size: 16px; }
#emt-scanner-video { width: 100%; flex: 1; min-height: 0; object-fit: cover; display: block; background: #000; }
.emt-scanner-status { padding: 8px 14px; font-size: 11px; color: var(--white-dim); text-align: center; }

/* Tryby */
.emt-nutrition-mode { display: none; }
.emt-nutrition-mode.active { display: block; }

/* Quick add */
.emt-quick-add-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 8px; align-items: end;
}

@media (max-width: 700px) {
  .emt-macro-counter { grid-template-columns: repeat(2, 1fr); }
  .emt-add-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .emt-quick-add-grid { grid-template-columns: 1fr 1fr; }
}

/* ── ANKIETA ── */
.emt-survey-section {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 16px;
}
.emt-survey-section-title {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}
.emt-survey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.emt-survey-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.emt-survey-field label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
}
.emt-survey-field input,
.emt-survey-field textarea {
  background: var(--black3) !important;
  border: 1px solid rgba(201,168,76,0.15) !important;
  color: var(--white) !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  padding: 10px 12px !important;
  outline: none !important;
  border-radius: 2px !important;
  box-shadow: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.emt-survey-field input:focus,
.emt-survey-field textarea:focus {
  border-color: var(--gold) !important;
}
.emt-survey-field textarea { resize: vertical; min-height: 80px; }

/* Opcje wyboru */
.emt-survey-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.emt-survey-option {
  background: var(--black3);
  border: 1px solid rgba(201,168,76,0.12);
  color: var(--white-dim);
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.emt-survey-option:hover {
  border-color: rgba(201,168,76,0.3);
  color: var(--white);
}
.emt-survey-option.selected {
  background: rgba(201,168,76,0.12);
  border-color: var(--gold);
  color: var(--gold);
}

/* Popup ankiety przy pierwszym logowaniu */
.emt-survey-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.emt-survey-popup-inner {
  background: var(--black2);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 6px;
  padding: 36px 32px;
  max-width: 480px;
  text-align: center;
}
.emt-survey-popup-icon { font-size: 48px; margin-bottom: 16px; }
.emt-survey-popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--white);
  margin-bottom: 12px;
}
.emt-survey-popup-text {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .emt-survey-grid { grid-template-columns: 1fr; }
  .emt-survey-section { padding: 16px; }
}




/* ══════════════════════════════════════════════
   MOBILE FIX v4 - ostateczna wersja
   ══════════════════════════════════════════════ */

html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

* { box-sizing: border-box !important; }

.emt-app, .emt-main, .emt-view, .emt-sidebar {
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* Nagłówek - nie wyjeżdża */
.emt-topbar {
  max-width: 100% !important;
  overflow: hidden !important;
}

.emt-topbar-right {
  flex-shrink: 0 !important;
}

/* Login */
.emt-login-page {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw !important;
  height: 100vh !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 20px !important;
  z-index: 9999 !important;
}

.emt-login-box {
  max-width: 360px !important;
  width: 100% !important;
  padding: 32px 24px !important;
  margin: auto !important;
}

/* Kalendarz */
.emt-cal-wrap { width: 100% !important; overflow: hidden !important; }

.emt-cal-row {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 2px !important;
  width: 100% !important;
}

.emt-cal-dn {
  width: auto !important;
  font-size: 8px !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  padding: 0 !important;
}

.emt-cal-cell {
  width: auto !important;
  min-width: 0 !important;
  aspect-ratio: 1 !important;
  font-size: 10px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Karty ćwiczeń - pełna szerokość */
.emt-ex-card {
  width: 100% !important;
  max-width: 100% !important;
}

.emt-ex-card input {
  width: 100% !important;
  max-width: 100% !important;
}

/* Stara tabela - scroll tylko w tabeli */
.emt-tbl-wrap {
  overflow-x: auto !important;
  max-width: 100% !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Przycisk zapisz - zawsze widoczny */
.emt-save-btn {
  width: 100% !important;
  padding: 14px !important;
  margin-top: 16px !important;
  font-size: 13px !important;
}

/* Input ciężaru */
.emt-w-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  width: 100% !important;
}

.emt-w-input {
  flex: 1 !important;
  min-width: 0 !important;
  width: 100% !important;
}

.emt-n-input {
  width: 100% !important;
  max-width: 100% !important;
}

/* Video */
video, iframe { max-width: 100% !important; width: 100% !important; }

/* Goal circles - nie wyjeżdżają */
.emt-goal-circles {
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 16px !important;
}

/* Dash head */
.emt-dash-head {
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.emt-dash-meta {
  flex-wrap: wrap !important;
  gap: 4px !important;
}

@media (max-width: 480px) {
  /* Zapobiega auto-zoomowi Safari na iOS przy dotknięciu pola formularza
     (Safari powiększa cały ekran, gdy tekst w polu jest mniejszy niż 16px) */
  .emt-app input, .emt-app select, .emt-app textarea {
    font-size: 16px !important;
  }
  .emt-view { padding: 10px !important; }
  .emt-nav-btn { padding: 6px 4px !important; font-size: 7px !important; }
  .emt-dash-name { font-size: 18px !important; }
  .emt-goal-svg { width: 80px !important; height: 80px !important; }
  .emt-login-box { padding: 20px 14px !important; }
  .emt-vid-btn { font-size: 11px !important; padding: 5px 8px !important; }
}

/* Kolejność: CEL -> KALENDARZ -> DZISIAJ */
.emt-goal-card { order: 1 !important; }
.emt-cal-wrap { order: 2 !important; }
.emt-dash-grid { order: 3 !important; }

/* Kontener musi być flex column */
#emt-view-training > div:first-child {
  display: flex !important;
  flex-direction: column !important;
}

/* Kolejność: CEL -> KALENDARZ -> DZISIAJ */
#emt-view-training > div:first-child {
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.emt-goal-card { order: 1 !important; }
.emt-cal-wrap  { order: 2 !important; }
.emt-dash-grid { order: 3 !important; }
