/* calibre · Edit metadata (EPUB) — mobile first
 *
 * Base (móvil, < 700px):   una columna, en el orden en que se usan las tarjetas.
 * Tableta (>= 700px):      dos columnas.
 * Escritorio (>= 1100px):  tres columnas.
 */

:root {
  --paper: #f3efe6;
  --panel: #fbf9f4;
  --panel-2: #f1ece0;
  --ink: #1d2730;
  --ink-2: #4c5a64;
  --muted: #6b766f;
  --line: #d8d0bd;
  --line-strong: #bfb496;
  --accent: #1f6a62;
  --accent-ink: #ffffff;
  --accent-soft: #d7e9e4;
  --ok: #2f7a4d;
  --bad: #b13b2c;
  --focus: #e0a526;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 8px 24px rgba(40, 34, 20, 0.08);
  --radius: 10px;
  --touch: 44px;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171a1d;
    --panel: #20252a;
    --panel-2: #1a1f23;
    --ink: #e7e5df;
    --ink-2: #b7bcc0;
    --muted: #97a39c;
    --line: #36404a;
    --line-strong: #4b5863;
    --accent: #5fb5a9;
    --accent-ink: #0c1715;
    --accent-soft: #223a37;
    --ok: #6fc28a;
    --bad: #ef8a7d;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { touch-action: manipulation; }
code { font: 14px ui-monospace, Menlo, Consolas, monospace; background: var(--panel-2); padding: 0 4px; border-radius: 4px; }
u { text-decoration: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- barra de aplicación ---------- */
.app-bar {
  position: sticky; top: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.app-mark { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.app-name { font: 600 17px var(--serif); }
.app-sub { color: var(--muted); font-size: 13px; }

.stage { width: 100%; max-width: 1280px; margin: 0 auto; padding: 14px 12px 24px; }

/* ---------- subida ---------- */
.upload { max-width: 620px; margin: 18px auto 0; }
.upload h1 { font: 600 28px/1.15 var(--serif); margin: 0 0 10px; }
.lead { color: var(--ink-2); margin: 0 0 18px; }
.drop {
  position: relative; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center;
  min-height: 200px; padding: 24px 18px;
  border: 2px dashed var(--line-strong); border-radius: 16px; background: var(--panel); cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-title { font: 600 20px var(--serif); }
.drop-sub { color: var(--muted); }
.status { min-height: 1.4em; color: var(--ink-2); margin: 12px 2px 0; }
.status:empty { display: none; }

/* ---------- editor ---------- */
.editor { background: transparent; }
.editor-head { padding: 4px 2px 12px; }
.window-title { font: 600 20px/1.25 var(--serif); margin: 0 0 4px; overflow-wrap: anywhere; }
.editor-hint { margin: 0; color: var(--ink-2); font-size: 14px; }

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "cover" "basic" "details" "download" "formats" "comments";
  gap: 12px;
  align-items: start;
}
.card-cover { grid-area: cover; }
.card-basic { grid-area: basic; }
.card-details { grid-area: details; }
.card-download { grid-area: download; }
.card-formats { grid-area: formats; }
.card-comments { grid-area: comments; }

.card {
  min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow);
}
.card-title { font: 600 18px/1.25 var(--serif); margin: 0 0 6px; }
.card-head { display: grid; gap: 10px; margin-bottom: 6px; }

/* campo: etiqueta visible + descripción + control + acciones */
.field {
  display: grid; gap: 6px;
  padding: 12px 0; border-top: 1px solid var(--line);
}
.card-basic .field:first-of-type, .card-details .field:first-of-type { border-top: 0; }
.field-label { font-weight: 600; }
.field-hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.field-control { position: relative; display: flex; min-width: 0; }
.field-control > input, .field-control > select {
  width: 100%; min-height: var(--touch); padding: 8px 40px 8px 12px; font-size: 16px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 10px; min-width: 0;
  transition: border-color .12s, box-shadow .12s;
}
.field-control > select { padding-right: 12px; }
.field-control > input:focus, .field-control > select:focus, textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none;
}
.field-control > input:disabled, .field-control > select:disabled { opacity: .55; }
#series-index { max-width: 160px; }
.ind { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-weight: 700; }
.ind.ok::before { content: "✓"; color: var(--ok); font-size: 18px; }
.ind.bad::before { content: "✕"; color: var(--bad); font-size: 18px; }

.field-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.field-actions > * { min-width: 0; }
.field-actions .menu-wrap { display: block; }

/* botones de acción con texto y descripción */
.action {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 56px; padding: 8px 12px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px;
  cursor: pointer; text-align: left;
}
.action:hover:not(:disabled) { border-color: var(--accent); }
.action:disabled { opacity: .5; cursor: default; }
.action-text { display: grid; gap: 2px; min-width: 0; }
.action-text b { font-weight: 600; font-size: 15px; }
.action-text small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.action-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.action-primary .action-text small { color: inherit; opacity: .85; }
.action-inline { width: auto; min-height: var(--touch); }
.caret { font-size: 12px; opacity: .7; flex: 0 0 auto; }

/* grupo de portada */
.cover-frame {
  margin: 0 0 12px; display: grid; place-items: center; min-height: 180px; max-height: 280px;
  background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; padding: 8px;
}
.cover-frame img { max-width: 100%; max-height: 260px; display: block; border-radius: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.cover-frame.empty { background: repeating-linear-gradient(135deg, var(--panel-2), var(--panel-2) 10px, var(--panel) 10px, var(--panel) 20px); }
.cover-frame.empty img { display: none; }
.cover-frame.empty::after { content: "No cover yet"; color: var(--muted); font-size: 14px; }

.group { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin: 0; min-width: 0; }
.group legend { padding: 0 6px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.action-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }

/* menús: en móvil son hojas inferiores; en escritorio, desplegables junto al botón */
.menu-wrap { position: relative; min-width: 0; }
.menu {
  position: absolute; z-index: 1000; min-width: 260px; max-width: calc(100vw - 24px); padding: 6px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow);
}
.menu-wrap > .menu { top: calc(100% + 6px); left: 0; }
.menu button {
  display: block; width: 100%; min-height: var(--touch); text-align: left; padding: 10px 12px;
  border: 0; background: transparent; border-radius: 8px; cursor: pointer;
}
.menu button:hover:not(:disabled) { background: var(--accent-soft); }
.menu button:disabled { opacity: .45; cursor: default; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.ctx-menu { position: fixed; }

/* ---------- botones genéricos (diálogos y barra inferior) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch); padding: 8px 14px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px;
  cursor: pointer; white-space: nowrap; font-weight: 500;
}
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(1.05); }
.btn.small { min-height: 36px; padding: 4px 10px; font-size: 14px; }

/* tarjeta de formatos */
.format-list {
  list-style: none; margin: 0 0 10px; padding: 6px; min-height: 64px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 12px;
}
.format-item {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border-radius: 8px; cursor: pointer;
}
.format-item::before {
  content: "EPUB"; font: 700 11px/1 var(--sans); letter-spacing: .04em;
  background: var(--accent-soft); color: var(--accent); border-radius: 4px; padding: 6px 5px;
}
.format-item.selected { background: var(--accent-soft); }

/* comentarios */
.editor-toolbar {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 4px;
  padding: 6px; border: 1px solid var(--line-strong); border-radius: 12px 12px 0 0; background: var(--paper);
}
.editor-toolbar button {
  display: grid; justify-items: center; align-content: center; gap: 2px;
  min-height: 52px; padding: 4px 2px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer;
}
.editor-toolbar button:hover { background: var(--panel-2); border-color: var(--line); }
.editor-toolbar button span { font-size: 11px; color: var(--ink-2); line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.comments-body { display: flex; }
.comments-edit, .comments-code {
  flex: 1; min-height: 220px; padding: 12px; background: var(--panel); border: 1px solid var(--line-strong); border-top: 0;
  overflow: auto; border-radius: 0 0 12px 12px; font-size: 16px;
}
.comments-edit p { margin: 0 0 .6em; }
.comments-edit:focus, .comments-code:focus { box-shadow: inset 0 0 0 2px var(--accent-soft); outline: none; }
.comments-code { font: 14px/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; resize: vertical; }
.comments-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.tab {
  min-height: var(--touch); padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel); cursor: pointer; color: var(--ink-2);
}
.tab.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 600; }

/* barra de acciones inferior: fija en móvil */
.editor-actions {
  position: sticky; bottom: 0; z-index: 60; margin: 14px -12px 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--panel-2); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 18px rgba(0,0,0,.08);
  display: grid; gap: 8px;
}
.nav-row { display: flex; flex-wrap: wrap; gap: 6px; }
.nav-row .btn { flex: 1 1 auto; font-size: 14px; min-height: 40px; }
.hint { margin: 0; color: var(--muted); font-size: 12.5px; }
.save-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px; }
.save-row .btn { width: 100%; min-height: 52px; font-size: 16px; }

/* ---------- modales (en móvil son hojas que suben desde abajo) ---------- */
.modal-root {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
  background: rgba(20, 22, 20, 0.42);
}
.modal {
  width: 100%; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 18px 18px 0 0; box-shadow: var(--shadow);
}
.modal-head { padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel-2); border-radius: 18px 18px 0 0; }
.modal-title { font: 600 17px var(--serif); }
.modal-body { padding: 14px 16px; overflow: auto; min-height: 0; flex: 1; overscroll-behavior: contain; }
.modal-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--panel-2);
}
.modal-foot .btn { flex: 1 1 130px; }
.msg { margin: 0 0 10px; }
.details { margin-top: 10px; }
.details summary { cursor: pointer; color: var(--accent); min-height: var(--touch); display: flex; align-items: center; }
.detail, .log-text {
  white-space: pre-wrap; word-break: break-word; max-height: 40vh; overflow: auto;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px;
  font: 13px/1.45 ui-monospace, Menlo, Consolas, monospace;
}
.prompt-input { width: 100%; min-height: var(--touch); padding: 8px 12px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
textarea.prompt-input { min-height: 160px; font: 14px/1.4 ui-monospace, Menlo, Consolas, monospace; }
.dialog-error .modal-head { background: color-mix(in srgb, var(--bad) 14%, var(--panel-2)); }
.image-popup { max-width: 100%; max-height: 60vh; display: block; margin: 0 auto; border-radius: 6px; }

/* resultados de descarga */
.fetch-top { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.fetch-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.fetch-table, .fetch-details {
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--panel); overflow: auto; max-height: 38vh; min-width: 0;
}
.fetch-query { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.results-table { width: 100%; border-collapse: collapse; min-width: 480px; }
.results-table th, .results-table td { padding: 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: 14px; }
.results-table thead th { position: sticky; top: 0; background: var(--panel-2); cursor: pointer; user-select: none; font-weight: 600; }
.results-table thead th.sorted { color: var(--accent); }
.results-table tbody tr { cursor: pointer; }
.results-table tbody tr.selected { background: var(--accent-soft); }
.results-table .mark { text-align: center; color: var(--ok); width: 64px; }
.wait { padding: 20px; color: var(--muted); }
.result-details { padding: 12px 14px; font-size: 14px; }
.rd-center { text-align: center; }
.rd-center h2 { font: 600 19px/1.2 var(--serif); margin: 4px 0 6px; }
.rd-stars { color: var(--accent); letter-spacing: 2px; margin: 4px 0; }
.rd-urls, .rd-comments { margin-top: 8px; overflow-wrap: anywhere; }
.rd-comments p { margin: 0 0 .6em; }
.covers-msg { margin: 0 0 10px; font-size: 15px; }
.covers-host { min-height: 200px; }
.covers-view { max-height: 50vh; overflow: auto; }
.covers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; outline: none; }
.cover-cell {
  border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--panel); cursor: pointer; text-align: center; min-height: 44px;
}
.cover-cell.selected { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cover-thumb { height: 170px; display: grid; place-items: center; }
.cover-thumb img { max-width: 100%; max-height: 170px; border-radius: 4px; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.cover-none { color: var(--muted); font-size: 12px; }
.cover-caption { margin-top: 6px; font-size: 12px; color: var(--ink-2); white-space: pre-line; }
.spinner {
  width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }

.trim-wrap { display: grid; gap: 12px; }
.trim-canvas { max-width: 100%; height: auto; border-radius: 6px; background: var(--panel-2); }
.trim-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trim-inputs label { display: grid; gap: 4px; font-size: 14px; }
.trim-inputs input { width: 100%; min-height: var(--touch); padding: 6px 10px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.authors-list { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; }
.authors-list li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.authors-list li input { width: 100%; min-height: var(--touch); padding: 6px 10px; font-size: 16px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--paper); }
.authors-list li .btn { min-height: var(--touch); }
.config-wrap { display: grid; gap: 12px; }
.sources-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sources-table th, .sources-table td { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.sources-table input[type="checkbox"] { width: 22px; height: 22px; }
.ignore-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.ignore-fields label, .pref { display: flex; gap: 8px; align-items: center; min-height: var(--touch); }
.ignore-fields input, .pref input { width: 22px; height: 22px; }
.config-wrap .group { padding: 12px; }

/* aviso */
.toast {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 3000;
  background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: 15px; overflow-wrap: anywhere;
}

/* ==========================================================================
 * TABLETA (>= 700px): dos columnas
 * ========================================================================== */
@media (min-width: 700px) {
  .stage { padding: 18px 18px 28px; }
  .upload h1 { font-size: 34px; }
  .window-title { font-size: 24px; }
  .editor-grid {
    grid-template-columns: 260px minmax(0, 1fr);
    grid-template-areas:
      "cover basic"
      "cover details"
      "formats download"
      "comments comments";
    gap: 16px;
  }
  .card-cover { position: sticky; top: 74px; }
  .card-head { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .field-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-actions > .action, .field-actions > .menu-wrap { width: 100%; }
  .editor-actions { margin: 16px 0 0; border-radius: 14px; border: 1px solid var(--line-strong); }
  .save-row { grid-template-columns: 160px 220px; justify-content: end; }
  .save-row .btn { min-height: 48px; }
  .nav-row { justify-content: flex-start; }
  .nav-row .btn { flex: 0 0 auto; }
  .hint { display: none; }
  .comments-edit, .comments-code { min-height: 260px; }
  .modal-root { align-items: center; padding: 18px; }
  .modal { width: min(780px, 100%); border-radius: 16px; }
  .modal-head, .modal-foot { border-radius: 0; }
  .modal-head { border-radius: 16px 16px 0 0; }
  .modal-foot { border-radius: 0 0 16px 16px; }
  .modal-foot .btn { flex: 0 0 auto; }
  .fetch-split { grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr); }
  .fetch-table, .fetch-details { max-height: 52vh; }
  .results-table { min-width: 0; }
  .trim-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu {
    min-width: 280px;
  }
}

/* ==========================================================================
 * ESCRITORIO (>= 1100px): tres columnas
 * ========================================================================== */
@media (min-width: 1100px) {
  .editor-grid {
    grid-template-columns: 280px minmax(0, 1fr) minmax(320px, 1fr);
    grid-template-areas:
      "cover basic comments"
      "cover details comments"
      "formats download comments";
    gap: 18px;
  }
  .card-comments { position: sticky; top: 74px; }
  .card-cover { top: 74px; }
  .comments-edit, .comments-code { min-height: 420px; }
  .fetch-split { grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); }
  .field-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
 * MENÚS EN MÓVIL: hoja inferior fija en lugar de desplegable
 * ========================================================================== */
@media (max-width: 699px) {
  .menu,
  .ctx-menu,
  .menu-wrap > .menu {
    position: fixed !important;
    top: auto !important;
    left: 10px !important;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    min-width: 0;
    max-width: none;
    max-height: 60vh;
    overflow: auto;
    z-index: 2500;
    box-shadow: 0 -8px 30px rgba(0,0,0,.25);
  }
  .menu button { min-height: 52px; font-size: 16px; }
  .toast { font-size: 16px; }
}

/* ==========================================================================
 * SESIÓN Y LOGIN
 * ========================================================================== */
.session-bar { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.session-bar strong { color: var(--ink); font-weight: 600; }
.session-bar .btn { min-height: 36px; }
.session-label { white-space: nowrap; }

.login-card {
  max-width: 440px; margin: 24px auto 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow);
}
.login-card h1 { font: 600 26px/1.2 var(--serif); margin: 0 0 6px; }
.login-error { margin: 0 0 12px; color: var(--bad); font-weight: 600; }
.login-error:empty { display: none; }
.login-form { display: grid; gap: 4px; }
.login-form .field { border-top: 0; padding: 8px 0; }
.login-submit { width: 100%; min-height: 52px; font-size: 16px; margin-top: 8px; }
.login-note { display: block; margin-top: 14px; }

@media (max-width: 699px) {
  .app-bar { align-items: flex-start; }
  .session-bar { margin-left: 0; width: 100%; justify-content: space-between; }
}
