/* Drbna Plán dne – stylesheet v2 */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500&display=swap');

:root {
  --red: #E20613;
  --red-dark: #a8251a;
  --red-light: #fdf2f1;
  --bg: #f4f4f5;
  --surface: #ffffff;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.13);
  --text: #1C1C1E;
  --text-muted: #6B6B6B;
  --text-hint: #9A9A9A;
  --today-bg: #FFF8F0;
  --today-accent: #E8803A;
  --weekend-bg: #f7f7f8;
  --tag-bg: #e9e9eb;
  --green: #3B9E5A;
  --green-light: #EAF5EE;
  --green-text: #2D7D46;
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-sm: 6px;
  --navbar-h: 52px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border-strong);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-webs {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}
.navbar-webs::-webkit-scrollbar { display: none; }

.web-tab {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all 0.12s;
  text-decoration: none;
}
.web-tab:hover { background: var(--tag-bg); color: var(--text); text-decoration: none; }
.web-tab.active { background: var(--red); color: white; }

.navbar-user {
  font-size: 12px;
  color: var(--text-muted);
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.12s;
}
.navbar-user:hover { background: var(--tag-bg); color: var(--text); text-decoration: none; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 0.5px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-hint);
  transition: all 0.12s;
  white-space: nowrap;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
}
.btn:hover { background: var(--tag-bg); color: var(--text); text-decoration: none; }
.btn-primary { background: var(--red); color: white; border-color: var(--red-dark); }
.btn-primary:hover { background: var(--red-dark); color: white; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-hint); }
.btn-ghost:hover { background: var(--tag-bg); color: var(--text); }
.btn-sm { padding: 3px 8px; font-size: 11px; }
.btn-full { width: 100%; justify-content: center; }

.btn-icon {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--text-muted);
  transition: all 0.12s;
  line-height: 1;
  padding: 0;
}
.btn-icon:hover { background: var(--tag-bg); color: var(--text); }
.btn-icon.btn-delete:hover { background: var(--red-light); color: var(--red); border-color: #f5c0bc; }

.btn-add-article {
  width: 100%;
  padding: 6px;
  background: transparent;
  border: 0.5px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-hint);
  cursor: pointer;
  font-size: 11px;
  transition: all 0.12s;
  font-family: 'Roboto', sans-serif;
}
.btn-add-article:hover { border-color: var(--red); color: var(--red); background: var(--red-light); }

/* === WEEK NAV === */
.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.week-title {
  font-weight: 500;
  font-size: 13px;
  flex: 1;
  text-align: center;
}

/* Sdílené šipky/Dnes pro týdenní i měsíční navigaci */
.nav-arrow { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; border: 0.5px solid var(--border-strong); color: var(--text-muted); background: var(--surface); text-decoration: none; flex-shrink: 0; }
.nav-arrow:hover { border-color: var(--red); color: var(--red); }
.nav-today { font-size: 13px; color: var(--text-muted); border: 0.5px solid var(--border-strong); border-radius: 8px; padding: 6px 13px; text-decoration: none; background: var(--surface); flex-shrink: 0; line-height: 1; }
.nav-today:hover { border-color: var(--red); color: var(--red); }

/* === BADGES === */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}
.badge-current { background: #FFF0E6; color: var(--today-accent); border: 0.5px solid #F5C4A0; }
.badge-admin { background: #fee2e2; color: #991b1b; }
.badge-editor { background: #dbeafe; color: #1e40af; }
.badge-viewer { background: #f3f4f6; color: #374151; }

/* === HAMBURGER BTN === */
.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* === PLAN LAYOUT === */
.plan-container {
  display: flex;
  gap: 0;
  height: calc(100vh - var(--navbar-h) - 45px);
  overflow: hidden;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: 0;
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

/* === DAY COLUMN === */
.day-column {
  border-right: 0.5px solid var(--border);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  overflow: hidden;
}
.day-column.today { background: var(--today-bg); }
.day-column.weekend { background: var(--weekend-bg); }

.day-header {
  padding: 10px 10px 8px;
  border-bottom: 0.5px solid var(--border);
  background: inherit;
  flex-shrink: 0;
}

.day-name {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.day-column.today .day-name { color: var(--today-accent); }

.day-date {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  margin: 2px 0 6px;
}
.day-column.today .day-date { color: var(--today-accent); }

.duty-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.duty-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-strong);
  flex-shrink: 0;
}
.duty-dot.filled { background: var(--red); }
.duty-name { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1; font-weight: 500; font-size: 11px; color: var(--text); }
.duty-name.empty { color: var(--text-hint); font-weight: 400; }
.duty-ava-sm { width: 18px; height: 18px; border-radius: 50%; background: var(--red-light); color: var(--red); display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 500; flex-shrink: 0; }
.duty-name-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* === ARTICLES LIST === */
.articles-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Tlačítko přidat je součástí listu – zobrazí se za posledním článkem */
.articles-list .btn-add-article {
  margin-top: 0;
  flex-shrink: 0;
}

.article-item {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 8px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.12s;
}
.day-column.today .article-item,
.day-column.weekend .article-item { background: white; }
.article-item:hover { border-color: var(--red); }
.article-item.article-top { border-left: 2px solid var(--green); background: var(--green-light); }
.day-column.today .article-item.article-top,
.day-column.weekend .article-item.article-top { background: var(--green-light); }
.article-title.is-big-topic { font-weight: 700; }
.article-item.article-unscheduled { border-style: dashed; opacity: 0.75; }

/* Nevyplněný článek (má titulek ale není publikovaný) */
.article-item.article-draft { background: #F2F2F2; }
.day-column.today .article-item.article-draft,
.day-column.weekend .article-item.article-draft { background: #EEEEEE; }

/* Drag & drop */
.article-item[draggable="true"] { cursor: grab; }
.article-item[draggable="true"]:active { cursor: grabbing; }
.article-item.dragging { opacity: 0.35; pointer-events: none; }
.articles-list.drag-over { background: rgba(205, 44, 30, 0.04); border-radius: var(--radius-sm); }
.article-item.drag-placeholder {
  border: 2px dashed var(--red);
  background: var(--red-light);
  min-height: 44px;
  border-radius: var(--radius-sm);
  pointer-events: none;
}

.article-time {
  font-weight: 500;
  font-size: 11px;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.unscheduled-mark { color: var(--text-hint); font-style: italic; font-weight: 400; }

.top-badge {
  font-size: 9px;
  font-weight: 500;
  background: var(--green-light);
  color: var(--green-text);
  padding: 1px 5px;
  border-radius: 3px;
}

.pr-badge {
  font-size: 9px;
  font-weight: 500;
  background: #FFF0E6;
  color: var(--today-accent);
  border: 0.5px solid #F5C4A0;
  padding: 1px 5px;
  border-radius: 3px;
}

.article-author {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--tag-bg);
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: auto;
}

.article-title {
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
  color: var(--text);
  margin-top: 3px;
}

/* Akce článku – při hoveru */
.article-actions {
  display: none;
  position: absolute;
  top: 5px;
  right: 5px;
  gap: 2px;
}
.article-item:hover .article-actions { display: flex; }

.article-actions button {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  cursor: pointer;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.12s;
  line-height: 1;
  padding: 0;
}
.article-actions button:hover { background: var(--tag-bg); color: var(--text); }
.btn-delete-article:hover { background: var(--red-light) !important; color: var(--red) !important; border-color: #f5c0bc !important; }

.article-top-row, .article-time-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 50px;
  margin-bottom: 3px;
}

/* === POSTRANNÍ PANEL === */
.plan-sidebar {
  width: 248px;
  flex-shrink: 0;
  background: transparent;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sidebar-section {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 11px 12px;
}

.sidebar-section h3 {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-hint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sidebar-section h3 svg { color: var(--text-hint); flex-shrink: 0; }

.sb-divider { height: 0.5px; background: var(--border); }

.korida-url {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.korida-link {
  font-size: 11px;
  word-break: break-all;
  flex: 1;
  color: var(--red);
}

.topic-list, .task-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 6px;
}
.topic-list li, .task-list li {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  padding: 3px 0;
  color: var(--text);
}
.sb-bullet {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  margin-top: 5px;
  flex-shrink: 0;
}
.topic-list li span, .task-list li span { flex: 1; }
.topic-check .tc-check { opacity: 0; }
.topic-list li.topic-done .topic-check { color: #1e8e3e; }
.topic-list li.topic-done .topic-check .tc-check { opacity: 1; }
.topic-list li.topic-done span { color: #1e8e3e; }

/* Živý refresh – nenápadný proužek při změně od kolegy */
.live-banner {
  position: fixed; left: 50%; bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  background: var(--text); color: #fff;
  padding: 10px 12px 10px 16px; border-radius: 10px;
  font-size: 13px; font-family: 'Roboto', sans-serif;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.22); z-index: 9999;
  opacity: 0; transition: opacity .2s, transform .2s;
}
.live-banner.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.live-banner button {
  background: var(--red); color: #fff; border: none; border-radius: 6px;
  padding: 6px 12px; font-size: 12px; font-weight: 500; cursor: pointer;
  font-family: 'Roboto', sans-serif;
}

.add-row {
  display: flex;
  gap: 5px;
}

.input-sm {
  flex: 1;
  padding: 5px 8px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  outline: none;
}
.input-sm::placeholder { color: var(--text-hint); }
.input-sm:focus { border-color: var(--red); }

.weekend-duties { display: flex; flex-direction: column; gap: 4px; }
.weekend-duty-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.weekend-day { color: var(--text-muted); width: 56px; }
.weekend-person { flex: 1; font-weight: 500; color: var(--text); }

.notes-textarea {
  width: 100%;
  min-height: 70px;
  padding: 6px 8px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 12px;
  resize: vertical;
  font-family: 'Roboto', sans-serif;
  background: var(--bg);
  color: var(--text);
  outline: none;
  margin-bottom: 5px;
}
.notes-textarea::placeholder { color: var(--text-hint); }
.notes-textarea:focus { border-color: var(--red); }

.empty-text { color: var(--text-hint); font-style: italic; font-size: 11px; }

/* === FORMS === */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.form-group label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
  padding: 8px 10px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Roboto', sans-serif;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.12s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-light); }
.form-check { flex-direction: row; align-items: center; }
.form-check label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--text); font-weight: 400; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.author-select-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.author-select-row select { flex: 1; }
.author-select-row span { font-size: 11px; color: var(--text-muted); }

/* === MODALS === */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
}

.modal-dialog {
  position: relative;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  margin: 16px;
}
.modal-sm { max-width: 360px; }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border);
}
.modal-header h2 { font-size: 15px; font-weight: 500; }
.modal-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-hint); }
.modal-close:hover { color: var(--text); }

.modal-body { padding: 18px; }
.modal-footer {
  padding: 12px 18px;
  border-top: 0.5px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* === ALERTS === */
.alert {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin: 10px 0;
  font-size: 13px;
}
.alert-error { background: #fee2e2; color: #991b1b; border: 0.5px solid #fca5a5; }
.alert-success { background: #d1fae5; color: #065f46; border: 0.5px solid #6ee7b7; }

/* === LOGIN PAGE === */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg);
}

.login-container {
  background: var(--surface);
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 360px;
  border: 0.5px solid var(--border-strong);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.login-logo h1 { font-size: 18px; font-weight: 500; }

.login-form { display: flex; flex-direction: column; gap: 4px; }

/* === ADMIN PAGE === */
.admin-page { min-height: 100vh; background: var(--bg); }
.admin-container { max-width: 1100px; margin: 0 auto; padding: 20px 16px; }

.admin-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  border-bottom: 0.5px solid var(--border-strong);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.12s;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}
.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--red); border-bottom-color: var(--red); }

.admin-card {
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 16px;
}
.admin-card h2 { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.admin-card h2 small { font-size: 12px; font-weight: 400; color: var(--text-muted); margin-left: 8px; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table th {
  text-align: left;
  padding: 7px 10px;
  background: var(--bg);
  border-bottom: 0.5px solid var(--border-strong);
  font-weight: 500;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table td {
  padding: 9px 10px;
  border-bottom: 0.5px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.row-inactive { opacity: 0.45; }

/* Vodorovný scroll pro tabulky na úzkých displejích */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.form-actions { display: flex; gap: 8px; justify-content: flex-end; }
.label-text { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 4px;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 7px;
  border-radius: var(--radius-sm);
}
.checkbox-label:hover { background: var(--bg); }
.checkbox-label small { color: var(--text-hint); }
.text-muted { color: var(--text-muted); }

code { background: var(--bg); padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* === HAMBURGER MENU === */
.hamburger-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
}
.hamburger-menu.open { display: block; }

.hamburger-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
}

.hamburger-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.hamburger-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 0.5px solid var(--border-strong);
  font-weight: 500;
  font-size: 14px;
}
.hamburger-header button {
  background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-hint);
}

.hamburger-nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; }

.hamburger-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: background 0.12s;
}
.hamburger-link:hover { background: var(--bg); text-decoration: none; }
.hamburger-link.active { background: var(--red-light); color: var(--red); }

.hamburger-icon { font-size: 22px; flex-shrink: 0; }
.hamburger-link-title { font-weight: 500; font-size: 13px; }
.hamburger-link-desc { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.hamburger-link.active .hamburger-link-desc { color: var(--red); opacity: 0.7; }

/* === MOBILNÍ VÝBĚR === */
.mobile-web-select {
  display: none;
  width: 100%;
  padding: 8px 14px;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}
.mobile-web-select select {
  width: 100%;
  padding: 7px 10px;
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  background: var(--bg);
  font-family: 'Roboto', sans-serif;
}

/* === RESPONZIVITA === */
@media (max-width: 768px) {
  .navbar-webs { display: none; }
  .mobile-web-select { display: block; }
  .week-nav { flex-wrap: wrap; gap: 6px; padding: 7px 12px; }
  .week-title { width: 100%; text-align: center; order: -1; font-size: 12px; }
  .plan-container { flex-direction: column; height: auto; overflow: visible; }
  .days-grid { grid-template-columns: 1fr; overflow: visible; height: auto; }
  .day-column { border-right: none; border-bottom: 0.5px solid var(--border); }
  .day-column.today { border-left: 3px solid var(--today-accent); }
  .articles-list { max-height: none; overflow: visible; }
  .plan-sidebar { width: 100%; border-left: none; border-top: 0.5px solid var(--border-strong); }
  .modal-dialog {
    margin: 0;
    border-radius: 14px 14px 0 0;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    max-width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
  }
  .modal-header { flex-shrink: 0; }
  .modal-footer { flex-shrink: 0; }
  .modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
  }

  /* Zabraň iOS Safari přibližování při focusu na input (font-size musí být ≥ 16px) */
  input[type="time"],
  input[type="text"],
  input[type="date"],
  input[type="email"],
  input[type="password"],
  select,
  textarea { font-size: 16px !important; }
  .form-row { grid-template-columns: 1fr; }
  .author-select-row { flex-direction: column; align-items: flex-start; }
  .author-select-row select { width: 100%; }
  .user-name { display: none; }

  /* Admin na mobilu: užší padding, scrollovatelné tabulky */
  .admin-container { padding: 16px 10px; }
  .admin-card { padding: 14px 12px; }
  .admin-card h2 { flex-wrap: wrap; }
  .tbl-scroll { margin: 0 -12px; padding: 0 12px; }
  .email-chip-input { min-width: 120px; }

  /* Větší písmo globálně na mobilu */
  body { font-size: 15px; }
  .navbar-brand { font-size: 16px; }
  .btn { font-size: 13px; }
  .week-title { font-size: 13px; }
  .day-name { font-size: 13px; }
  .day-date { font-size: 14px; }
  .article-time { font-size: 14px; }
  .article-title { font-size: 14px; }
  .article-author { font-size: 12px; }
  .top-badge, .pr-badge { font-size: 10px; }
  .sidebar-section h3 { font-size: 13px; }
  .month-heading { font-size: 13px; }
  .duty-badge { font-size: 13px; }
  .duty-empty-btn { font-size: 13px; }
  .day-cell .day-name { font-size: 13px; }
  .day-cell .day-date { font-size: 13px; }
  .mobile-web-select select { font-size: 15px; }
  .info-banner { font-size: 13px; }

  /* Větší touch targety pro tlačítka editovat/smazat */
  .btn-icon { width: 34px; height: 34px; font-size: 15px; border-radius: 6px; }
  .article-actions button { width: 34px; height: 34px; font-size: 15px; border-radius: 6px; }
  .article-actions { gap: 4px; top: 6px; right: 6px; }

  /* Větší odsazení řádků článku kvůli větším ikonkám */
  .article-top-row, .article-time-row { padding-right: 82px; }
  .article-title { padding-right: 82px; }

  /* Akce článku vždy viditelné na mobilu */
  .article-actions { display: flex; }
}

@media (max-width: 480px) {
  .navbar { padding: 0 10px; gap: 8px; }
}

/* === NENAPLÁNOVANÉ ČLÁNKY === */
.article-unscheduled { border-style: dashed; opacity: 0.75; }
#art-time-group.hidden { opacity: 0.3; pointer-events: none; }

/* === LOG FILTER === */
.log-filter { margin-bottom: 14px; }
.badge-action-create { background:#d1fae5; color:#065f46; }
.badge-action-update { background:#dbeafe; color:#1e40af; }
.badge-action-delete { background:#fee2e2; color:#991b1b; }
.badge-action-export { background:#fef3c7; color:#92400e; }
.badge-action-import { background:#ede9fe; color:#5b21b6; }

/* === PŘEDVYPLNIT TÝDEN === */
.btn-prefill {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface);
  border: 0.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: 'Roboto', sans-serif;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-prefill:hover {
  background: #f0f0f1;
  border-color: var(--red);
  color: var(--red);
}
.btn-prefill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.empty-title { color: var(--text-hint); font-style: italic; }

/* === SCROLL ŠIPKY PRO WEBY === */
.navbar-webs-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  overflow: hidden;
  gap: 2px;
}

.webs-scroll-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-muted);
  padding: 0 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.12s;
  display: none; /* Skryté dokud není potřeba */
}
.webs-scroll-btn:hover { color: var(--text); }
.webs-scroll-btn.visible { display: block; }
