* { box-sizing: border-box; }
body { margin: 0; background: #f4f6fb; color: #1e293b; font-family: 'Segoe UI', system-ui, sans-serif; display: flex; flex-direction: column; min-height: 100vh; }

/* Sdílená horní lišta */
.ml-header { background: #ffffff; border-bottom: 1px solid #e2e8f0; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; box-shadow: 0 2px 8px rgba(15,23,42,0.04); }
.ml-left { display: flex; align-items: center; gap: 14px; }
.ml-logo { font-size: 21px; font-weight: 900; text-decoration: none; background: linear-gradient(135deg, #2563eb, #db2777); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.ml-back { text-decoration: none; color: #475569; font-size: 13px; font-weight: 700; background: #f1f5f9; padding: 6px 12px; border-radius: 16px; }
.ml-back:hover { background: #e2e8f0; color: #0f172a; }

.ml-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ml-btn { background: #f8fafc; border: 1px solid #cbd5e1; color: #1e293b; padding: 6px 12px; border-radius: 18px; font-size: 12px; font-weight: 700; cursor: pointer; }
.ml-btn:hover { border-color: #2563eb; color: #2563eb; }
.ml-coffee { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; text-decoration: none; padding: 7px 15px; border-radius: 20px; font-weight: 700; font-size: 13px; box-shadow: 0 3px 10px rgba(234,88,12,0.28); }
.ml-coffee:hover { transform: translateY(-1px); }

/* Hlavní kontejner aplikace */
.ml-main { max-width: 960px; width: 100%; margin: 22px auto; padding: 0 16px; flex: 1; }
.ml-card { background: #ffffff; border-radius: 18px; padding: 24px; box-shadow: 0 6px 20px rgba(15,23,42,0.05); border: 1px solid #eef2f6; }

/* Režim čistého soustředění (Celá obrazovka bez lišty a reklam) */
body.focus-mode .ml-header, body.focus-mode .ml-ad, body.focus-mode .ml-footer { display: none !important; }
body.focus-mode .ml-main { max-width: 100%; margin: 0; padding: 10px; display: flex; flex-direction: column; justify-content: center; min-height: 100vh; }
.ml-exit-focus { display: none; position: fixed; top: 12px; right: 12px; z-index: 999; background: rgba(15,23,42,0.85); color: #fff; border: none; padding: 8px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; cursor: pointer; }
body.focus-mode .ml-exit-focus { display: block; }

/* 1 nevtíravý banner dole a patička */
.ml-ad { max-width: 728px; width: 100%; height: 85px; margin: 16px auto 6px; border: 1px dashed #cbd5e1; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 13px; background: #ffffff; }
.ml-footer { text-align: center; padding: 14px; color: #94a3b8; font-size: 12px; }
