.em-body { background: #EEF0F3; }
.em-main { padding: 32px 0 56px; }
.em-intro { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.em-h1 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .2em; }
.em-intro p { margin: 0; }
.em-switch { display: inline-flex; background: #fff; border: 1px solid #D8DCE2; border-radius: 999px; padding: 4px; gap: 2px; }
.em-switch button { border: 0; background: none; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .9rem; color: #4A5260; }
.em-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.em-wrap { max-width: 1320px; }

/* ---------- klient Pošta (neutrální vzhled) ---------- */
.mail { --m-line: #E3E6EA; --m-soft: #F6F7F9; --m-text: #20242B; --m-mute: #6B7280; --m-accent: #3B5BDB;
  background: #fff; border: 1px solid #D8DCE2; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -30px rgba(20, 30, 50, .35);
  color: var(--m-text); font-family: var(--f-text); }
.mail__bar { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--m-line); background: var(--m-soft); }
.mail__app { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; width: 200px; flex: none; }
.mail__appicon { width: 32px; height: 32px; border-radius: 9px; background: var(--m-accent); color: #fff; display: grid; place-items: center; }
.mail__appicon svg { width: 18px; height: 18px; }
.mail__search { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--m-line); border-radius: 10px; padding: 8px 12px; color: var(--m-mute); font-size: .9rem; }
.mail__search svg { width: 18px; height: 18px; }
.mail__me { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; background: #F3C9B8; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }

.mail__cols { display: grid; grid-template-columns: 200px 340px minmax(0, 1fr); min-height: 760px; }
.mail__folders { border-right: 1px solid var(--m-line); padding: 14px 10px; background: var(--m-soft); }
.mail__compose { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 12px; padding: 11px 14px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.08); font-weight: 600; margin-bottom: 14px; }
.mail__compose svg { width: 18px; height: 18px; }
.mail__folders ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mail__folders a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 9px; color: var(--m-text); text-decoration: none; font-size: .92rem; }
.mail__folders a svg { width: 18px; height: 18px; color: var(--m-mute); }
.mail__folders a:hover { background: #ECEEF2; color: var(--m-text); }
.mail__folders a.is-active { background: #E2E8FB; font-weight: 700; }
.mail__folders a.is-active svg { color: var(--m-accent); }
.mail__folders b { margin-left: auto; font-size: .8rem; }

.mail__list { border-right: 1px solid var(--m-line); }
.mail__listhead { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 18px 10px; border-bottom: 1px solid var(--m-line); }
.mail__listhead h2 { font-family: var(--f-text); font-size: 1.1rem; font-weight: 700; margin: 0; }
.mail__listhead span { font-size: .8rem; color: var(--m-mute); }
.mail__list ul { list-style: none; margin: 0; padding: 0; }
.msg { width: 100%; display: flex; gap: 12px; align-items: flex-start; text-align: left; border: 0; border-bottom: 1px solid var(--m-line); background: #fff; padding: 14px 16px 14px 14px; position: relative; border-left: 3px solid transparent; }
.msg:hover { background: var(--m-soft); }
.msg.is-selected { background: #EEF2FD; border-left-color: var(--m-accent); }
.msg__av { width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700; font-size: .8rem; color: #333; overflow: hidden; }
.msg__av img { width: 40px; height: 40px; }
.msg__body { min-width: 0; flex: 1; display: grid; gap: 1px; }
.msg__row { display: flex; justify-content: space-between; gap: 8px; }
.msg__from { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__time { font-size: .78rem; color: var(--m-mute); flex: none; }
.msg__subj { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg__pre { font-size: .84rem; color: var(--m-mute); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.msg.is-unread .msg__from, .msg.is-unread .msg__subj { font-weight: 800; }
.msg.is-unread .msg__time { color: var(--m-accent); font-weight: 700; }
.msg.is-unread::after { content: ""; position: absolute; left: 4px; top: 30px; width: 7px; height: 7px; border-radius: 50%; background: var(--m-accent); }
.msg.is-dim { opacity: .5; filter: blur(.4px) grayscale(.4); }
.msg.is-dim:hover { opacity: .7; }

.mail__detail { min-width: 0; background: #fff; }
.mail__empty { display: none; height: 100%; min-height: 400px; flex-direction: column; align-items: center; justify-content: center; color: var(--m-mute); gap: 8px; }
.mail__empty svg { width: 56px; height: 56px; opacity: .5; }
.mail[data-view="inbox"] .mail__empty { display: flex; }
.mail[data-view="inbox"] .mail__open { display: none; }
.mail__tools { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1px solid var(--m-line); }
.mail__back { display: none; align-items: center; gap: 4px; border: 0; background: none; color: var(--m-accent); font-weight: 600; padding: 6px 6px 6px 0; }
.mail__back svg { width: 22px; height: 22px; }
.mail__actions { margin-left: auto; display: flex; gap: 4px; }
.mail__actions button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; color: var(--m-mute); }
.mail__actions button:hover { background: var(--m-soft); color: var(--m-text); }
.mail__actions svg { width: 19px; height: 19px; }
.mail__head { padding: 20px 24px 16px; }
.mail__subject { font-family: var(--f-text); font-weight: 700; font-size: 1.4rem; line-height: 1.3; margin: 0 0 16px; outline: none; }
.mail__fromrow { display: flex; gap: 12px; align-items: center; }
.mail__fromtxt { flex: 1; min-width: 0; }
.mail__fromtxt p { margin: 0; overflow-wrap: anywhere; font-size: .92rem; }

/* ---------- Newsletter 600 px ---------- */
.nl-canvas { background: #F4EFE2; padding: 28px 16px 40px; }
.nl { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 6px 24px -12px rgba(90, 60, 0, .3); font-family: var(--f-text); color: var(--ink); font-size: 16px; line-height: 1.6; }
.nl__head { background: var(--sun); padding: 22px 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nl__head img { height: 36px; width: auto; }
.nl__head span { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.nl__hero { position: relative; height: 230px; background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 75%, #4A5684 100%); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.nl__moon { position: absolute; right: 70px; top: 32px; width: 46px; height: 46px; border-radius: 50%; background: var(--sun-soft); box-shadow: 0 0 40px 10px rgba(255,226,122,.35); }
.nl__snow { position: absolute; inset: 0; background-image: radial-gradient(2px 2px at 20px 30px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 80px 120px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 150px 60px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 230px 160px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 300px 40px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 380px 110px, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 460px 70px, #fff 50%, transparent 51%), radial-gradient(2px 2px at 540px 150px, #fff 50%, transparent 51%); background-size: 600px 200px; opacity: .8; animation: nlsnow 12s linear infinite; }
@keyframes nlsnow { to { background-position: 0 200px; } }
.nl__hill { position: absolute; left: -10%; right: -10%; bottom: -60px; height: 110px; background: #F4F6FB; border-radius: 50% 50% 0 0; }
.nl__box { position: relative; margin-bottom: 18px; transform: rotate(-4deg); box-shadow: 0 0 60px 6px rgba(255, 210, 80, .45), 14px 18px 30px -14px rgba(0,0,0,.45); }
.nl__badge { position: absolute; left: calc(50% + 50px); bottom: 120px; width: 62px; height: 62px; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 800; display: grid; place-items: center; font-size: .95rem; transform: rotate(10deg); }
.nl__body { padding: 32px 40px 8px; }
.nl__body p { margin: 0 0 16px; max-width: none; }
.nl__ctawrap { text-align: center; margin: 26px 0 !important; }
.nl__cta { display: inline-block; background: var(--sun); color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; padding: 16px 36px; border-radius: 999px; box-shadow: var(--shadow); }
.nl__cta:hover { color: var(--ink); background: #FFCB0A; }
.nl__gift { display: flex; gap: 20px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 24px 0; }
.nl__gift p { margin: 0 !important; font-size: .95rem; }
.nl__giftart { position: relative; flex: none; width: 70px; height: 62px; margin-top: 10px; background: var(--coral); border-radius: 6px; }
.nl__ribbon { position: absolute; inset: 0; background: linear-gradient(90deg, transparent 42%, var(--sun) 42% 58%, transparent 58%), linear-gradient(180deg, transparent 38%, var(--sun) 38% 54%, transparent 54%); border-radius: 6px; }
.nl__bow { position: absolute; left: 50%; top: -14px; width: 34px; height: 18px; transform: translateX(-50%); background: radial-gradient(ellipse at 25% 60%, var(--sun) 0 45%, transparent 46%), radial-gradient(ellipse at 75% 60%, var(--sun) 0 45%, transparent 46%); }
.nl__sign { line-height: 1.45; }
.nl__hand { display: block; font-family: var(--f-hand); font-weight: 600; font-size: 2.4rem; color: var(--amber); line-height: 1; margin-bottom: 4px; transform: rotate(-4deg); transform-origin: left; }
.nl__foot { background: #F7F3E8; padding: 18px 40px; border-top: 1px solid var(--line); }
.nl__foot p { margin: 0; font-size: .78rem; color: var(--ink-soft); line-height: 1.5; max-width: none; }
.nl__foot a { color: var(--ink-soft); }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .mail__cols { grid-template-columns: 64px 300px minmax(0, 1fr); }
  .mail__folders { padding: 14px 8px; }
  .mail__compose { justify-content: center; padding: 11px 0; font-size: 0; gap: 0; }
  .mail__compose svg { width: 20px; height: 20px; }
  .mail__folders a { justify-content: center; font-size: 0; gap: 0; padding: 10px 0; position: relative; }
  .mail__folders b { position: absolute; top: 2px; right: 4px; font-size: .65rem; background: var(--m-accent); color: #fff; border-radius: 999px; padding: 0 5px; }
  .mail__app { width: auto; }
}

/* ---------- Mobil: seznam → detail ---------- */
@media (max-width: 760px) {
  .em-main { padding: 20px 0 32px; }
  .em-wrap { padding: 0; }
  .em-switch { width: 100%; }
  .em-switch button { flex: 1; padding: 9px 6px; font-size: .8rem; white-space: nowrap; }
  .mail { border-radius: 0; border-left: 0; border-right: 0; }
  .mail__search { display: none; }
  .mail__cols { grid-template-columns: 1fr; min-height: 0; }
  .mail__folders { display: none; }
  .mail__list { border-right: 0; }
  .mail[data-view="message"] .mail__list { display: none; }
  .mail[data-view="inbox"] .mail__detail { display: none; }
  .mail__back { display: inline-flex; }
  .mail__head { padding: 16px; }
  .mail__subject { font-size: 1.2rem; }
  .nl-canvas { padding: 0; background: #fff; }
  .nl { border-radius: 0; box-shadow: none; }
  .nl__head { padding: 18px 20px; }
  .nl__body { padding: 24px 20px 4px; }
  .nl__foot { padding: 16px 20px; }
  .nl__gift { flex-direction: column; align-items: flex-start; }
  .nl__moon { right: 30px; }
}
