/* StreamHub — cinema UI */
:root {
  --bg: #070b14;
  --bg-elev: #0c1222;
  --bg-panel: #101828;
  --bg-hover: #182338;
  --line: rgba(232, 238, 252, 0.08);
  --text: #e8eefc;
  --muted: #8b9bb8;
  --accent: #f0a05a;
  --accent-2: #3ecfb2;
  --danger: #ff6b7a;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --sidebar: 240px;
  --cat: minmax(220px, 300px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
a { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1.25rem;
  cursor: pointer;
  background: var(--bg-hover);
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #f0a05a, #e07840);
  color: #1a1008;
  font-weight: 600;
}
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-sm { padding: .4rem .85rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: wait; }

.icon-btn {
  width: 40px; height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.icon-btn:hover { background: var(--bg-hover); }

.brand-mark {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-link { text-decoration: none; }

/* —— Login —— */
.page-login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem calc(2rem + var(--safe-b));
  position: relative;
  overflow: hidden;
}
.login-atmosphere {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(240, 160, 90, 0.22), transparent 55%),
    radial-gradient(ellipse 45% 50% at 85% 75%, rgba(62, 207, 178, 0.14), transparent 50%),
    linear-gradient(160deg, #05080f 0%, #0c1528 45%, #0a101c 100%);
  animation: drift 18s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes drift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.06) translate(-2%, 1%); }
}
.login-shell {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  animation: rise .7s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.login-brand { margin-bottom: 1.75rem; }
.login-headline {
  margin: .85rem 0 .65rem;
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 2.65rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.login-lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 1rem;
}
.login-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .35rem;
  margin-bottom: .85rem;
  padding: .3rem;
  background: rgba(12, 18, 34, 0.55);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.login-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .55rem .4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
}
.login-tab.is-active {
  background: rgba(240, 160, 90, 0.18);
  color: var(--accent);
}
.login-divider {
  margin: .15rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.login-form {
  display: grid;
  gap: .9rem;
  padding: 1.35rem;
  background: rgba(12, 18, 34, 0.72);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}
.login-form[hidden] { display: none !important; }
.field { display: grid; gap: .35rem; }
.field span { font-size: .8rem; color: var(--muted); font-weight: 500; }
.field input, .filter-input, .search-input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.75);
  border-radius: 12px;
  padding: .75rem .9rem;
  outline: none;
}
.field input:focus, .filter-input:focus, .search-input:focus {
  border-color: rgba(240, 160, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 160, 90, 0.15);
}
.check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .88rem;
  color: var(--muted);
  cursor: pointer;
}
.form-error {
  margin: 0;
  color: var(--danger);
  font-size: .88rem;
}
.login-foot {
  margin: 1.1rem 0 0;
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
  opacity: .85;
}
.btn-spinner {
  width: 1rem; height: 1rem;
  border: 2px solid rgba(26, 16, 8, 0.25);
  border-top-color: #1a1008;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* —— App shell —— */
.page-app { height: 100dvh; overflow: hidden; }
.app {
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  height: 100%;
}

.sidebar {
  background: var(--bg-elev);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1rem .85rem;
  gap: 1rem;
}
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .25rem .35rem;
}
.sidebar-close { display: none; }
.nav-sections { display: grid; gap: .25rem; flex: 1; align-content: start; }
.nav-item {
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: .7rem .9rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--bg-hover); color: var(--text); }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(240, 160, 90, 0.18), transparent);
  color: var(--accent);
}
.sidebar-account {
  border-top: 1px solid var(--line);
  padding-top: .85rem;
  display: grid;
  gap: .5rem;
}
.account-name {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
  padding: 0 .35rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    radial-gradient(ellipse 60% 30% at 80% 0%, rgba(240, 160, 90, 0.07), transparent 55%),
    var(--bg);
}

.topbar {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.65);
  backdrop-filter: blur(12px);
  z-index: 5;
}
.menu-btn { display: none; }
.search-wrap { flex: 1; max-width: 420px; }
.topbar-actions { display: flex; gap: .15rem; margin-left: auto; }

.player-dock {
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: #000;
}
.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: min(100%, calc(min(42vh, 480px) * 16 / 9));
  margin-inline: auto;
  background: #000;
}
.player-frame video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}
.player-overlay {
  position: absolute;
  left: 0; right: 0; top: 0;
  padding: .85rem 1rem 2.5rem;
  background: linear-gradient(rgba(0,0,0,.75), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
.player-frame:hover .player-overlay,
.player-overlay.is-showing,
.player-overlay.is-pinned { opacity: 1; }
.now-playing { margin: 0; font-weight: 600; font-size: .95rem; }
.now-epg { margin: .2rem 0 0; font-size: .8rem; color: #c5d0e6; }

.workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: var(--cat) 1fr;
}

.stage-col {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.cat-panel, .content-panel {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.cat-panel {
  border-right: 1px solid var(--line);
  background: rgba(12, 18, 34, 0.45);
  /* Full height of the workspace — independent of the player */
  height: 100%;
  align-self: stretch;
}
.panel-head {
  padding: .9rem 1rem .55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.content-head h2 {
  text-transform: none;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.content-heading {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  min-width: 0;
}
.btn-cat-back {
  flex-shrink: 0;
  margin-top: .1rem;
}
.muted { margin: .2rem 0 0; color: var(--muted); font-size: .85rem; }
.filter-input { max-width: 160px; padding: .4rem .6rem; font-size: .8rem; }

.cat-list, .content-grid, .modal-body {
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.cat-list { padding: .25rem .55rem 1rem; flex: 1; }

.cat-row {
  display: flex;
  align-items: stretch;
  gap: .15rem;
  border-radius: 10px;
}
.cat-row.is-active {
  background: rgba(62, 207, 178, 0.12);
}
.cat-row.is-fav .cat-name { color: var(--accent); }

.cat-item {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: .65rem .75rem;
  border-radius: 10px;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.3;
  transition: background .12s;
}
.cat-row:not(.is-active) .cat-item:hover { background: var(--bg-hover); }
.cat-row.is-active .cat-item { color: var(--accent-2); }
.cat-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cat-score {
  flex-shrink: 0;
  font-size: .72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat-actions {
  display: flex;
  align-items: center;
  padding-right: .25rem;
  gap: 0;
}
.cat-act {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: grid;
  place-items: center;
}
.cat-act:hover { background: var(--bg-hover); color: var(--text); }
.cat-act.cat-fav.is-on { color: #fff; }
.cat-act.cat-hide { font-size: .75rem; opacity: .7; }
.cat-act.cat-hide:hover { color: var(--danger); opacity: 1; }
.cat-view-all {
  padding: .85rem .75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
}
.cat-view-all .muted { margin: 0; font-size: .8rem; }

.content-panel {
  flex: 1;
  min-height: 0;
  padding-bottom: var(--safe-b);
}
.content-grid {
  flex: 1;
  padding: .5rem 1rem 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: .75rem;
  align-content: start;
}
.content-grid.movie-grid {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.1rem .9rem;
  align-content: start;
}

.movie-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  animation: cardIn .35s ease both;
}
.movie-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 0;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #152036;
  cursor: pointer;
  color: var(--muted);
}
.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.movie-thumb-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  aspect-ratio: 2 / 3;
  font-size: .75rem;
  color: var(--muted);
}
.movie-name {
  margin: 0;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
  font-size: .72rem;
  color: var(--muted);
  margin-top: -.15rem;
}
.content-grid.list-mode {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: .35rem .75rem;
}

.card {
  position: relative;
  border: 0;
  background: var(--bg-panel);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
  animation: cardIn .35s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.card-poster {
  aspect-ratio: 2 / 3;
  background: #152036;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .75rem;
  overflow: hidden;
  position: relative;
}
.card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.card-poster.is-channel {
  aspect-ratio: 16 / 10;
  background-color: #121a2c;
}
.card-poster.is-channel img {
  object-fit: contain;
  object-position: center;
}
.card-poster-btn {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
}
.card-body { padding: .55rem .65rem .7rem; }
.card-title {
  margin: 0;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  margin: .25rem 0 0;
  font-size: .72rem;
  color: var(--muted);
}

.content-tools {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--muted);
}
.sort-label { white-space: nowrap; }
.sort-select {
  border: 1px solid var(--line);
  background: rgba(7, 11, 20, 0.75);
  color: var(--text);
  border-radius: 10px;
  padding: .35rem .55rem;
  font: inherit;
  font-size: .8rem;
  outline: none;
  cursor: pointer;
}
.sort-select:focus {
  border-color: rgba(240, 160, 90, 0.55);
  box-shadow: 0 0 0 3px rgba(240, 160, 90, 0.15);
}

.fav-inline {
  border: 0;
  background: transparent;
  cursor: pointer;
  float: right;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 .2rem;
  color: #8b93a7;
}
.fav-inline.is-on,
.btn-fav.is-on,
.series-fav-btn.is-on {
  color: #fff;
}
.btn-fav {
  font-size: 1.25rem;
  line-height: 1;
  color: #8b93a7;
  min-width: 2rem;
}
.btn-fav .star,
.fav-inline .star,
.series-fav-btn .star {
  font-size: 1.35rem;
  line-height: 1;
}
.star-off { color: #8b93a7; }
.star-on { color: #fff; }
.series-fav-btn {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .9rem;
}
.series-fav-btn .star-off { color: #8b93a7; }
.series-fav-btn .star-on { color: #fff; }

#series-dialog .modal-head h3 {
  color: #fff;
}
#series-dialog .series-fav-btn span {
  color: #fff;
}

.row-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: .75rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: .45rem .55rem;
  border-radius: 10px;
  cursor: pointer;
}
.row-item:hover, .row-item.is-playing { background: var(--bg-hover); }
.row-item.is-playing { outline: 1px solid rgba(240, 160, 90, 0.35); }
.row-icon {
  width: 48px; height: 36px;
  border-radius: 6px;
  background: #152036 center/contain no-repeat;
  background-color: #152036;
}
.row-text { min-width: 0; }
.row-text strong {
  display: block;
  font-size: .9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-text span { font-size: .75rem; color: var(--muted); }
.row-actions { display: flex; gap: .25rem; }

.badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  padding: .15rem .4rem;
  border-radius: 6px;
  background: rgba(62, 207, 178, 0.15);
  color: var(--accent-2);
}

.breadcrumb {
  padding: 0 1rem .5rem;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb button {
  border: 0;
  background: none;
  color: var(--accent);
  cursor: pointer;
  padding: 0;
}

.empty-state, .loading-state {
  flex: 1;
  display: grid;
  place-content: center;
  gap: .75rem;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}
.spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto;
  animation: spin .7s linear infinite;
}

/* Modals */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(560px, calc(100vw - 2rem));
  width: 100%;
}
.modal::backdrop { background: rgba(0, 0, 0, 0.65); backdrop-filter: blur(4px); }
.modal-wide { max-width: min(720px, calc(100vw - 2rem)); }
.modal-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin: 0;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 1rem; max-height: min(70vh, 520px); }

.epg-item, .ep-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .5rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.epg-item:last-child, .ep-item:last-child { border-bottom: 0; }
.epg-time { font-size: .75rem; color: var(--muted); }
.epg-name { margin: .15rem 0 0; font-weight: 600; font-size: .9rem; }
.ep-text { min-width: 0; }
.ep-name {
  margin: 0;
  font-weight: 600;
  font-size: .92rem;
  color: #fff;
  line-height: 1.35;
}
.ep-progress {
  margin-top: .4rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.ep-progress > span {
  display: block;
  height: 100%;
  background: var(--accent, #f0a05a);
  border-radius: 2px;
}
.card-progress {
  margin-top: .2rem;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.card-progress > span {
  display: block;
  height: 100%;
  background: var(--accent, #f0a05a);
}
.season-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .85rem;
}
.season-tab {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: .35rem .75rem;
  cursor: pointer;
  font-size: .8rem;
  color: var(--muted);
}
.season-tab.is-active {
  background: rgba(240, 160, 90, 0.15);
  color: var(--accent);
  border-color: transparent;
}

.toast {
  position: fixed;
  bottom: calc(1.25rem + var(--safe-b));
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-panel);
  border: 1px solid var(--line);
  padding: .7rem 1.1rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  z-index: 50;
  font-size: .88rem;
  animation: rise .3s ease;
  max-width: min(92vw, 40rem);
  text-align: center;
  line-height: 1.35;
  white-space: normal;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform .25s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.is-open { transform: none; }
  .sidebar-close { display: grid; }
  .menu-btn { display: grid; }
  .workspace {
    display: flex;
    flex-direction: column;
    grid-template-columns: unset;
    grid-template-rows: unset;
    min-height: 0;
  }
  .cat-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: none;
    height: auto;
  }
  .stage-col { min-height: 0; }
  .player-frame { width: min(100%, calc(32vh * 16 / 9)); }
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  /* Browse categories: list fills the page (player stays if already open) */
  .workspace.is-mobile-cats .cat-panel {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    height: auto;
    order: 2;
    border-bottom: 0;
  }
  .workspace.is-mobile-cats .content-panel {
    display: none;
  }
  .workspace.is-mobile-cats .stage-col {
    order: 1;
    flex: 0 0 auto;
  }
  .workspace.is-mobile-cats .stage-col:has(#player-dock[hidden]) {
    display: none;
  }

  /* After picking a category: content (+ player), with back button */
  .workspace.is-mobile-content .cat-panel {
    display: none;
  }
  .workspace.is-mobile-content .stage-col {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    order: 1;
  }
  .workspace.is-mobile-content .content-panel {
    flex: 1 1 auto;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .topbar-actions .icon-btn:nth-child(n+3) { display: none; }
  .login-headline { font-size: 1.85rem; }
}
