:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --bg: #0B1220;
  --panel: #0F1828;
  --panel-2: #162033;
  --line: rgba(255, 255, 255, 0.08);
  --text: #EEF1F6;
  --muted: #8d95a9;
  --accent: #2DD4BF;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --ok: #86D36B;
  --bad: #ff5d6c;
  --radius: 14px;
  --sidebar-w: 340px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  --serif: 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible, [tabindex="0"]:focus-visible, .item:focus-visible, .mode-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

#app { display: grid; grid-template-columns: var(--sidebar-w) 1fr; height: 100%; height: 100dvh; }

/* ───── Barra lateral ───── */
#sidebar {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  z-index: 5;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 20px 20px 14px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: #0B1220; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); flex: none;
}
.brand h1 { margin: 0; font-family: var(--font); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.brand h1 span { color: #2DD4BF; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }

.search {
  display: flex; align-items: center; gap: 8px; margin: 4px 16px 10px; padding: 0 12px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; color: var(--muted);
}
.search input {
  flex: 1; min-width: 0; height: 38px; border: 0; background: none; color: var(--text); font: inherit; outline: none;
}
.search:focus-within { border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip[aria-pressed='true'] { color: var(--text); background: var(--panel-2); border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.chip[aria-pressed='false'] i { opacity: 0.3; }

.list-head {
  display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 6px;
  color: var(--muted); font-size: 12px; border-top: 1px solid var(--line);
}
.link { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 2px 4px; text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--text); }
.list-actions { display: flex; gap: 6px; }

.list { list-style: none; margin: 0; padding: 4px 8px 16px; overflow-y: auto; flex: 1; min-height: 0; scrollbar-width: thin; scrollbar-color: #2b3140 transparent; }
.item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent;
}
.item:hover { background: var(--panel-2); }
.item.active { background: var(--accent-soft); border-color: rgba(45, 212, 191, 0.4); }
.item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.item .txt { min-width: 0; flex: 1; }
.item .nm { display: block; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .lt { display: block; color: var(--muted); font-size: 11.5px; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.item .eye { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; flex: none; }
.item .eye:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.item.off { opacity: 0.45; }
.empty { padding: 24px; text-align: center; color: var(--muted); }

body.quiz-on .list, body.quiz-choice .chips { filter: blur(6px); pointer-events: none; user-select: none; }
body.quiz-on .search, body.quiz-on .list-head { opacity: 0.35; pointer-events: none; }
body.quiz-on .controls .switch { display: none; }
body.quiz-locate .toolbar button[data-region] { pointer-events: none; }

/* ───── Palco ───── */
#stage { position: relative; min-width: 0; background: radial-gradient(ellipse at 50% 38%, #1B2842 0%, #0F1828 55%, #0B1220 100%); overflow: hidden; overflow: clip; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }
#labels { position: absolute; inset: 0; pointer-events: none; }
#lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#lines path { fill: none; stroke: rgba(255, 255, 255, 0.5); stroke-width: 1; }
#lines path.sel { stroke: var(--accent); stroke-width: 1.5; }
#lines circle { fill: #fff; stroke: rgba(0,0,0,.5); stroke-width: 1; }
#lines circle.sel { fill: var(--accent); }

.lbl {
  position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; pointer-events: auto; cursor: pointer;
  background: rgba(14, 17, 24, 0.82); border: 1px solid var(--line); backdrop-filter: blur(6px);
  will-change: transform; transition: border-color 0.15s, background 0.15s;
}
.lbl i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.lbl:hover { border-color: rgba(255, 255, 255, 0.35); }
.lbl.sel { border-color: var(--accent); background: rgba(40, 18, 16, 0.92); font-weight: 600; }

.toolbar {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px;
  background: rgba(15, 24, 40, 0.85); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px);
}
.toolbar button { border: 0; background: none; padding: 7px 12px; border-radius: 9px; color: var(--muted); font-size: 12.5px; }
.toolbar button:hover { background: var(--panel-2); color: var(--text); }
.toolbar button.on { background: var(--accent-soft); color: #D3FBF5; }

.controls {
  position: absolute; left: 16px; bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  padding: 10px 14px; max-width: calc(100% - 32px);
  background: rgba(15, 24, 40, 0.88); border: 1px solid var(--line); border-radius: 12px; backdrop-filter: blur(8px);
  font-size: 12.5px;
}
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { width: 30px; height: 18px; border-radius: 999px; background: #313748; position: relative; transition: background 0.15s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(12px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.slider { display: inline-flex; align-items: center; gap: 8px; }
.slider input { width: 96px; accent-color: var(--accent); }
.slider output { min-width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; }
.primary { background: var(--accent); border: 0; color: #04211D; font-weight: 650; padding: 7px 14px; border-radius: 9px; }
.primary:hover { filter: brightness(1.08); }
.primary.on { background: #fff; }

.hint { position: absolute; right: 16px; bottom: 16px; margin: 0; font-size: 11.5px; color: var(--muted); opacity: 0.8; pointer-events: none; text-align: right; }

.tooltip {
  position: absolute; z-index: 8; pointer-events: none; padding: 5px 10px; border-radius: 8px; font-size: 12.5px;
  background: rgba(10, 12, 17, 0.92); border: 1px solid var(--line); white-space: nowrap; transform: translate(14px, 14px);
}
.tooltip em { display: block; color: var(--muted); font-size: 11px; }

.loading {
  position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--bg); color: var(--muted); transition: opacity 0.4s;
}
.loading.done { opacity: 0; pointer-events: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #2a3040; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.fab { display: none; }

/* ───── Painel de informações ───── */
.info {
  position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(380px, calc(100% - 28px)); z-index: 6;
  background: rgba(15, 24, 40, 0.94); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px);
  overflow-y: auto; padding: 22px 22px 20px; transform: translateX(calc(100% + 24px)); transition: transform 0.28s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: thin; scrollbar-color: #2b3140 transparent;
}
.info.open { transform: none; }
.info .close { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.info .close:hover { background: var(--panel-2); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; background: color-mix(in srgb, var(--c) 18%, transparent); color: color-mix(in srgb, var(--c) 40%, #fff); }
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.info-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 4px; }
.geom-badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.geom-badge.real { background: rgba(134, 211, 107, 0.15); color: #A6E68F; border: 1px solid rgba(134, 211, 107, 0.32); }
.geom-badge.proc { background: rgba(242, 207, 85, 0.15); color: #fad766; border: 1px solid rgba(242, 207, 85, 0.32); }
.sources { margin-top: 10px; padding: 10px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; }
.sources b { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.sources ul { margin: 0; padding-left: 18px; color: var(--muted); }
.sources li { margin-bottom: 3px; }
.sources li:last-child { margin-bottom: 0; }
.kbadge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 600; margin-right: 8px; flex: none; }
.item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--panel-2); }
.info h2 { margin: 12px 28px 2px 0; font-family: var(--serif); font-size: 24px; line-height: 1.15; font-weight: 600; }
.info .latin { margin: 0 0 16px; color: var(--muted); font-style: italic; }
.field { padding: 11px 0; border-top: 1px solid var(--line); }
.field h3 { margin: 0 0 3px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.field p { margin: 0; }
.field.act p { font-size: 15px; }
.note { margin-top: 6px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border: 1px solid rgba(45, 212, 191, 0.22); font-size: 13px; }
.note b { color: #8FF0E2; display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 3px; }
.expr { margin-top: 12px; display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 12.5px; }
.expr strong { color: var(--text); font-weight: 600; }
.info-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--panel-2); padding: 7px 12px; border-radius: 9px; font-size: 12.5px; }
.btn:hover { border-color: rgba(255, 255, 255, 0.25); }

.placeholder { color: var(--muted); padding: 40px 0 0; text-align: center; }

/* ───── Quiz ───── */
.quiz {
  position: absolute; left: 50%; top: 66px; transform: translateX(-50%); z-index: 7; width: min(560px, calc(100% - 32px));
  padding: 14px 16px 16px; background: rgba(15, 24, 40, 0.94); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px);
}
.quiz[hidden] { display: none; }
.quiz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.quiz-head strong { flex: 1; font-weight: 600; }
.quiz-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quiz-options button { text-align: left; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-size: 13px; }
.quiz-options button:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.3); }
.quiz-options button.right { border-color: var(--ok); background: rgba(134, 211, 107, 0.14); }
.quiz-options button.wrong { border-color: var(--bad); background: rgba(255, 93, 108, 0.14); }
.quiz-options button:disabled { cursor: default; }
.quiz-feedback { margin-top: 10px; display: flex; align-items: center; gap: 10px; min-height: 0; }
.quiz-feedback:empty { display: none; }
.quiz-feedback span { flex: 1; font-size: 13px; color: var(--muted); }

/* ───── Quiz: localizar ───── */
.locate {
  position: absolute; left: 16px; top: 66px; z-index: 7; width: min(330px, calc(100% - 32px)); overflow: hidden;
  background: rgba(15, 24, 40, 0.94); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px);
}
.locate[hidden] { display: none; }
.locate.shake { animation: shake 0.34s; }
@keyframes shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.loc-bar { height: 3px; background: rgba(255, 255, 255, 0.07); }
.loc-bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s; }
.loc-body { padding: 12px 16px 16px; }
.loc-stats { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.loc-stats .link { margin-left: auto; }
.loc-eyebrow { margin: 14px 0 0; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.loc-name { margin: 2px 0 0; font-family: var(--serif); font-size: 26px; line-height: 1.15; font-weight: 600; }
.loc-latin { margin: 3px 0 0; color: var(--muted); font-style: italic; }
.loc-latin[hidden], .loc-hint[hidden], .loc-actions .btn[hidden] { display: none; }
.loc-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.kind-tag { padding: 2px 10px; border-radius: 999px; font-size: 11.5px; color: #cfd4e2; background: rgba(255, 255, 255, 0.07); }
.tries { display: flex; gap: 5px; }
.tries i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.tries i.off { background: transparent; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
.loc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.locate.is-done .loc-actions { display: none; }
.loc-actions .btn:disabled { opacity: 0.45; cursor: default; }
.loc-actions .btn[aria-pressed='true'] { border-color: var(--accent); background: var(--accent-soft); }
.loc-hint { margin: 10px 0 0; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.05); font-size: 12.5px; color: #cfd4e2; }
.loc-feedback { font-size: 13px; }
.loc-feedback:not(:empty) { margin-top: 10px; }
.loc-feedback p { margin: 0 0 6px; }
.loc-feedback .ok { color: var(--ok); font-weight: 600; }
.loc-feedback .bad { color: #ff8e99; }
.loc-next { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }

/* ───── Janelas (configuração e resultado do quiz) ───── */
.modal {
  position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; padding: 16px;
  background: rgba(4, 8, 16, 0.62); backdrop-filter: blur(3px);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(540px, 100%); max-height: 100%; overflow-y: auto; padding: 26px 26px 22px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  scrollbar-width: thin; scrollbar-color: #2b3140 transparent;
}
.modal-card h2 { margin: 0 0 4px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.modal-card .close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; border-radius: 9px; }
.modal-card .close:hover { background: var(--panel-2); color: var(--text); }
.modal-sub { margin: 0 0 16px; color: var(--muted); }
.eyebrow { margin: 0; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.mode-card { text-align: left; display: flex; flex-direction: column; gap: 5px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); }
.mode-card:hover { border-color: rgba(255, 255, 255, 0.25); }
.mode-card svg { color: var(--muted); }
.mode-card b { font-size: 14.5px; }
.mode-card span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.mode-card[aria-checked='true'] { border-color: var(--accent); background: var(--accent-soft); }
.mode-card[aria-checked='true'] svg { color: var(--accent); }
.opt { margin: 0 0 14px; }
.opt h3 { margin: 0 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.opt-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-seg button { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12.5px; }
.opt-seg button small { margin-left: 3px; opacity: 0.7; font-size: 11px; }
.opt-seg button:hover:not(:disabled) { color: var(--text); border-color: rgba(255, 255, 255, 0.25); }
.opt-seg button[aria-pressed='true'] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.opt-seg button:disabled { opacity: 0.38; cursor: default; }
.opt-switch { font-size: 13px; margin: 4px 0 12px; }
.qs-tip { margin: 0 0 4px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); color: var(--muted); font-size: 12.5px; }
.qs-tip b { color: #cfd4e2; font-weight: 600; }
#qsLocate[hidden] { display: none; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.qs-info { flex: 1; min-width: 140px; color: var(--muted); font-size: 12.5px; }
.primary.big { padding: 10px 22px; font-size: 14px; border-radius: 11px; }
.primary:disabled { opacity: 0.45; cursor: default; filter: none; }

.result { text-align: center; }
.result h2 { margin-top: 2px; }
.qr-score { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin: 8px 0 18px; }
.qr-score strong { font-family: var(--serif); font-size: 56px; line-height: 1; font-weight: 600; color: var(--accent); }
.qr-score span { color: var(--muted); }
.qr-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.qr-stats div { padding: 10px 6px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.qr-stats b { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.qr-stats span { display: block; color: var(--muted); font-size: 11px; line-height: 1.3; }
.qr-weak { margin-top: 18px; text-align: left; }
.qr-weak[hidden] { display: none; }
.qr-weak h3 { margin: 0 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.qr-weak ul { list-style: none; margin: 0; padding: 0; max-height: 190px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2b3140 transparent; }
.qr-weak li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-top: 1px solid var(--line); }
.qr-weak .nm { flex: 1; min-width: 0; font-weight: 550; }
.qr-weak .nm small { display: block; color: var(--muted); font-weight: 400; font-style: italic; font-size: 11.5px; }
.tag { font-size: 10px; text-transform: uppercase; letter-spacing: 0.6px; border-radius: 6px; padding: 2px 6px; flex: none; }
.tag.miss { color: #ff8e99; background: rgba(255, 93, 108, 0.12); }
.tag.half { color: #f1c76a; background: rgba(241, 199, 106, 0.12); }
#qrWeak[hidden] { display: none; }

/* ───── Responsivo ─────
   Gaveta lateral em telas estreitas (celular, tablet em pé) e em celular deitado (pouca altura).
   Referência mínima: iPhone 11 (414×896); vai até tablets de ~11,5" (≈ 834–1194 px). */
@media (min-width: 861px) and (max-width: 1100px) { :root { --sidebar-w: 300px; } }
@media (max-width: 860px), (max-height: 520px) {
  #app { grid-template-columns: 1fr; }
  #sidebar {
    position: fixed; inset: 0 0 0 0; width: min(88vw, 360px); z-index: 30; transform: translateX(-102%); visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s; box-shadow: 0 0 60px rgba(0,0,0,.6);
    padding: var(--safe-top) 0 var(--safe-bottom) var(--safe-left);
  }
  body.list-open #sidebar { transform: none; visibility: visible; transition: transform 0.25s ease; }
  /* fundo escurecido sobre o palco: tocar nele fecha a gaveta (o clique cai no próprio #stage) */
  body.list-open #stage::after { content: ''; position: absolute; inset: 0; z-index: 25; background: rgba(4, 8, 16, 0.6); }
  body.list-open { overflow: hidden; }
  .sidebar-close { display: grid; }
  .fab {
    display: block; position: absolute; top: calc(14px + var(--safe-top)); left: calc(14px + var(--safe-left)); z-index: 4; padding: 8px 12px; border-radius: 10px;
    background: rgba(15, 24, 40, 0.88); border: 1px solid var(--line); font-size: 12.5px;
  }
  .toolbar { top: calc(62px + var(--safe-top)); max-width: calc(100% - 20px); overflow-x: auto; }
  .toolbar button { padding: 7px 9px; font-size: 12px; white-space: nowrap; }
  .info { top: auto; left: 10px; right: 10px; bottom: calc(10px + var(--safe-bottom)); width: auto; max-height: 52%; transform: translateY(calc(100% + 24px + var(--safe-bottom))); }
  .info.open { transform: none; }
  .controls { left: 10px; bottom: auto; top: calc(108px + var(--safe-top)); right: 10px; max-width: none; padding: 8px 10px; gap: 6px 12px; }
  .hint { display: none; }
  .quiz { top: auto; bottom: calc(10px + var(--safe-bottom)); }
  .quiz-options { grid-template-columns: 1fr; }
  .locate { top: auto; bottom: calc(10px + var(--safe-bottom)); left: 10px; right: 10px; width: auto; }
  .loc-name { font-size: 21px; }
  body.info-open .locate { display: none; }
  body.quiz-locate .controls { display: none; }
  .mode-cards { grid-template-columns: 1fr; }
  .qr-stats { grid-template-columns: 1fr 1fr; }
  body.has-sel .controls { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; }
}

/* ───── Camadas e dissecação ───── */
.dissect-box { margin: 2px 16px 10px; padding: 10px 12px 8px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; }
.dissect-box label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: 0.3px; }
.dissect-box output { color: var(--text); font-weight: 500; }
.dissect-box input[type='range'] { width: 100%; margin: 8px 0 0; accent-color: var(--accent); }
.ticks { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--muted); letter-spacing: 0.2px; }
.ticks span { flex: 1; text-align: center; }
.ticks span:first-child { text-align: left; }
.ticks span:last-child { text-align: right; }

.sec { list-style: none; margin: 2px 0 4px; }
.sec-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; user-select: none; }
.sec-head:hover { background: rgba(255, 255, 255, 0.04); }
.sec-head .dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.sec-name { flex: 1; font-size: 12px; font-weight: 650; letter-spacing: 0.4px; text-transform: uppercase; color: #c4cadb; }
.sec-count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sec-toggle { width: 22px; height: 22px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; border-radius: 6px; transition: transform 0.15s; flex: none; padding: 0; }
.sec.collapsed .sec-toggle { transform: rotate(-90deg); }
.sec.collapsed .sec-items { display: none; }
.sec.off .sec-name { opacity: 0.5; }
.sec-head .eye { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; flex: none; }
.sec-head .eye:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.sec-items { list-style: none; margin: 0; padding: 0 0 0 4px; }
.sec[hidden], .item[hidden] { display: none; }
.chips { gap: 5px; }
.chip { padding: 4px 9px; font-size: 11.5px; }
.hint a { color: var(--muted); pointer-events: auto; text-decoration: underline; text-underline-offset: 2px; }
.hint a:hover { color: var(--text); }
#appVersion:not(:empty)::before { content: ' · '; }
.list { padding-top: 0; }

/* ───── Regiões ───── */
.toolbar { align-items: center; gap: 6px; padding: 4px 6px; max-width: calc(100% - 28px); }
.toolbar .seg { display: flex; gap: 2px; }
.toolbar .sep { width: 1px; height: 18px; background: var(--line); margin: 0 2px; flex: none; }
.toolbar button { white-space: nowrap; }
body:not(.body-ready) .needs-body { opacity: 0.38; pointer-events: none; }
.body-status {
  position: absolute; top: 62px; left: 50%; transform: translateX(-50%); z-index: 4; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; color: var(--muted); background: rgba(15, 24, 40, 0.88); border: 1px solid var(--line); pointer-events: none;
  display: flex; align-items: center; gap: 8px;
}
.body-status:not(.error)::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #2a3040; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
.body-status.error { color: #ff9aa5; border-color: rgba(255, 93, 108, 0.45); }
.body-status[hidden] { display: none; }
@media (max-width: 860px) {
  .toolbar { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .body-status { top: 108px; }
}

/* ───── Ligações músculo ↔ nervo na ficha ───── */
.links { padding: 11px 0 4px; border-top: 1px solid var(--line); }
.links h3 { margin: 0 0 8px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchip {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 8px; border-radius: 10px; text-align: left;
  border: 1px solid var(--line); background: var(--panel-2); font-size: 12.5px; line-height: 1.25; color: var(--text);
}
button.lchip:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.lchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.lchip small { display: block; color: var(--muted); font-size: 11px; }
.lchip.sens { border-style: dashed; }
.links-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

/* ───── Ferramentas de Estudo (Fase F1) ───── */
.study-card { width: min(640px, 100%); }
.tab-bar { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; padding-bottom: 8px; overflow-x: auto; }
.tab-btn { padding: 7px 14px; border-radius: 9px; border: 1px solid transparent; background: none; font-size: 13px; font-weight: 500; color: var(--muted); cursor: pointer; }
.tab-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab-btn.on { color: #fff; background: var(--panel-2); border-color: var(--line); }

.tab-pane[hidden] { display: none; }

/* Tours */
.tours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 600px) { .tours-grid { grid-template-columns: 1fr; } }
.tour-card { text-align: left; padding: 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s; }
.tour-card:hover { border-color: var(--accent); }
.tour-card h4 { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; color: #fff; }
.tour-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.tour-card span { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent); font-weight: 600; }

.tour-box {
  position: absolute; left: 16px; bottom: 24px; z-index: 8; width: min(380px, calc(100% - 32px));
  padding: 16px; background: rgba(15, 24, 40, 0.94); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.tour-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tour-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--accent); }
.tour-box .close { width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.tour-box .close:hover { background: var(--panel-2); color: var(--text); }
.tour-title { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #fff; }
.tour-text { margin: 0 0 14px; font-size: 13px; color: #cbd1de; line-height: 1.45; }
.tour-actions { display: flex; gap: 8px; justify-content: flex-end; }

/* Planos de Corte */
.clip-ctrl { display: flex; flex-direction: column; gap: 14px; padding: 4px 0; }
.clip-slider-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--panel-2); border-radius: 12px; border: 1px solid var(--line); }
.clip-slider-box input[type="range"] { width: 100%; accent-color: var(--accent); }
.clip-actions { display: flex; gap: 8px; }

/* Vistas e Backup */
.backup-box, .saved-views-box { padding: 14px; background: var(--panel-2); border-radius: 12px; border: 1px solid var(--line); margin-bottom: 12px; }
.backup-box h3, .saved-views-box h3 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.backup-box p { margin: 0 0 12px; font-size: 12px; color: var(--muted); }
.save-view-input { display: flex; gap: 8px; margin-bottom: 12px; }
.save-view-input input { flex: 1; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: #fff; font: inherit; outline: none; }
.save-view-input input:focus { border-color: var(--accent); }
.saved-views-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 160px; overflow-y: auto; }
.saved-view-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; }
.saved-view-item span { font-size: 13px; font-weight: 500; cursor: pointer; flex: 1; }
.saved-view-item span:hover { color: var(--accent); }
.saved-view-item button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; font-size: 14px; }
.saved-view-item button:hover { color: var(--bad); }

/* Anotações e Favoritos na Ficha */
.card-study-ext { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.card-ext-actions { display: flex; gap: 8px; margin-bottom: 10px; }
.btn-fav.active { color: #f5d442; border-color: rgba(245, 212, 66, 0.4); background: rgba(245, 212, 66, 0.1); }
.btn-fav .star { font-size: 14px; line-height: 1; }
.note-box { display: flex; flex-direction: column; gap: 5px; }
.note-box label b { font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.note-box textarea {
  width: 100%; min-height: 70px; padding: 8px 10px; border-radius: 9px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  font: inherit; font-size: 12.5px; resize: vertical; outline: none;
}
.note-box textarea:focus { border-color: var(--accent); }
.item.fav::after { content: '★'; color: #f5d442; font-size: 12px; margin-left: auto; padding-right: 6px; }

/* Toast */
.toast {
  position: absolute; top: 70px; left: 50%; transform: translateX(-50%); z-index: 20;
  padding: 8px 18px; border-radius: 999px; background: rgba(15, 24, 40, 0.94);
  border: 1px solid var(--accent); color: #fff; font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); pointer-events: none;
  animation: fadeInOut 2.5s ease forwards;
}
@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -10px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

/* @media print para impressão de ficha */
@media print {
  body { background: #fff !important; color: #000 !important; }
  #sidebar, .toolbar, .controls, #stage canvas, #labels, .hint, .modal, .toast, .tour-box { display: none !important; }
  #info {
    position: static !important; width: 100% !important; max-width: 100% !important;
    transform: none !important; background: #fff !important; color: #000 !important;
    border: none !important; box-shadow: none !important; padding: 0 !important;
  }
  #info .close, #info .info-actions, .card-ext-actions { display: none !important; }
  .badge { border: 1px solid #ccc !important; color: #000 !important; background: none !important; }
  .note { background: #f5f5f5 !important; border: 1px solid #ddd !important; color: #000 !important; }
  .note b { color: #333 !important; }
  .field { border-color: #ddd !important; }
  .field h3 { color: #555 !important; }
}

/* ───── Ferramentas de estudo: ajustes (correções da F1) ───── */
body.quiz-choice .chips, body.quiz-text .chips { filter: blur(6px); pointer-events: none; user-select: none; }
body.quiz-text .toolbar button[data-region] { pointer-events: none; }
.opt-seg button.on { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.mode-card.on { border-color: var(--accent); background: var(--accent-soft); }
.opt-desc { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.opt-desc b { color: #cfd4e2; font-weight: 600; }
.list-select { margin-top: 8px; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 12.5px; max-width: 100%; }
.list-select[hidden] { display: none; }
.empty-view { color: var(--muted); font-size: 12.5px; list-style: none; padding: 6px 2px; }
.forecast { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.forecast b { color: var(--text); }
.btn:disabled, .primary:disabled { opacity: 0.45; cursor: default; }
.btn.danger:hover { border-color: var(--bad); color: var(--bad); }
.tq-missed { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tq-missed b { color: var(--text); }
.text-quiz .quiz-feedback { flex-wrap: wrap; justify-content: flex-end; }

/* Tours */
.tour-card { display: flex; flex-direction: column; gap: 6px; cursor: default; }
.tour-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tour-card-head h4 { margin: 0; }
.tour-steps-count { font-size: 11px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.tour-card .tour-sub { color: #cbd1de; font-size: 12.5px; }
.tour-card .tour-desc { flex: 1; }
.tour-card .btn-start-tour { align-self: flex-start; margin-top: 6px; padding: 6px 12px; font-size: 12.5px; }

/* Vistas salvas */
.saved-view-item .view-info { display: flex; flex-direction: column; min-width: 0; }
.saved-view-item .view-info strong { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.saved-view-item .view-info small { color: var(--muted); font-size: 11px; }
.saved-view-item .view-actions { display: flex; gap: 6px; flex: none; }
.saved-view-item .btn { padding: 4px 10px; font-size: 12px; color: var(--text); }
.saved-views-list { max-height: 220px; }

/* Listas de estudo */
.list-card { padding: 12px 14px; margin-bottom: 10px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; }
.list-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.list-card-head h4 { margin: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.list-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.list-card-actions .btn, .list-card-actions .primary { padding: 5px 10px; font-size: 12px; }
.list-add { display: flex; gap: 6px; margin-bottom: 10px; }
.list-add input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; outline: none; }
.list-add input:focus { border-color: var(--accent); }
.list-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; max-height: 150px; overflow-y: auto; }
.list-chip { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); overflow: hidden; }
.list-chip button { border: 0; background: none; color: var(--text); font-size: 12px; padding: 4px 9px; }
.list-chip .chip-go:hover { color: var(--accent); }
.list-chip .chip-x { color: var(--muted); padding: 4px 8px 4px 4px; }
.list-chip .chip-x:hover { color: var(--bad); }

/* Progresso */
.stat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.tile { padding: 10px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.tile b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.tile b small { font-size: 13px; color: var(--muted); font-weight: 500; }
.tile span { color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.tile.warn b { color: #f5b942; }
.tile.bad b { color: var(--bad); }
.tile.good b { color: var(--ok); }
.progress-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.sub { margin: 16px 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.weak-list, .session-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.weak-list li { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line); }
.weak-name { flex: 1; min-width: 0; text-align: left; border: 0; background: none; color: var(--text); font-size: 13px; padding: 0; }
.weak-name small { display: block; color: var(--muted); font-size: 11px; }
.weak-name:not(:disabled):hover { color: var(--accent); }
.trail { display: inline-flex; gap: 2px; font-style: normal; }
.trail i { font-style: normal; font-size: 12px; width: 15px; text-align: center; }
.trail i.ok { color: var(--ok); }
.trail i.half { color: #f5b942; }
.trail i.miss { color: var(--bad); }
.perf { width: 38px; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.session-list li { display: grid; grid-template-columns: 82px 1fr 70px 82px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.session-list .what { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.session-list .bar { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.session-list .bar i { display: block; height: 100%; background: var(--accent); }
.session-list .res { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }
.empty-progress { text-align: center; padding: 18px 8px; color: var(--muted); }
.empty-progress p { margin: 0 0 10px; line-height: 1.5; }
.empty-progress b { color: var(--text); }
@media (max-width: 600px) {
  .stat-tiles { grid-template-columns: 1fr 1fr; }
  .session-list li { grid-template-columns: 1fr 60px 76px; }
  .session-list .when { grid-column: 1 / -1; }
}

/* Legenda de cores e chip do corte */
.color-legend {
  position: absolute; right: 16px; bottom: 90px; z-index: 6; width: min(300px, calc(100% - 32px)); max-height: 46%; overflow-y: auto;
  padding: 10px 12px; background: rgba(15, 24, 40, 0.92); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px);
  scrollbar-width: thin; scrollbar-color: #2b3140 transparent;
}
.color-legend[hidden] { display: none; }
.legend-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 12px; }
.color-legend ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.color-legend li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; line-height: 1.3; }
.color-legend li i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.color-legend li span { flex: 1; }
.color-legend li small { color: var(--muted); font-variant-numeric: tabular-nums; }
.floating-chip {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 6; padding: 6px 14px; border-radius: 999px;
  background: rgba(15, 24, 40, 0.92); border: 1px solid var(--accent); color: var(--text); font-size: 12.5px; backdrop-filter: blur(8px);
}
.floating-chip[hidden] { display: none; }
body.info-open .color-legend { right: 410px; } /* a ficha ocupa os 380px da direita */
@media (max-width: 860px) {
  .color-legend { right: 10px; bottom: 150px; max-height: 30%; }
  body.info-open .color-legend, body.info-open .floating-chip { display: none; }
}
@media print {
  .color-legend, .floating-chip { display: none !important; }
}

/* ───── Celular e tablet: gaveta, toque e download do .exe ───── */
.sidebar-close {
  display: none; position: absolute; top: calc(14px + var(--safe-top)); right: 12px; width: 44px; height: 44px; place-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); color: var(--text); font-size: 26px; line-height: 1; z-index: 2;
}
.brand { position: relative; padding-right: 64px; }
@media (max-width: 860px), (max-height: 520px) { .sidebar-close { display: grid; } }
@media (pointer: coarse) {
  /* abaixo de 16 px o Safari do iPhone dá zoom ao focar um campo e desalinha a tela */
  input, select, textarea { font-size: 16px; }
  .item { min-height: 48px; }
  .sec-head { min-height: 44px; }
  .sec-head .eye, .item .eye { width: 40px; height: 40px; }
  .chip { padding: 8px 13px; font-size: 12.5px; }
  .toolbar button { min-height: 38px; }
  .tab-btn, .opt-seg button, .btn, .primary { min-height: 40px; }
  .controls .btn { min-height: 40px; }
}
.get-app {
  position: absolute; right: 16px; bottom: 58px; z-index: 5; display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(15, 24, 40, 0.92); border: 1px solid var(--line); backdrop-filter: blur(8px);
}
.get-app[hidden] { display: none; }
.get-app .primary { display: inline-block; padding: 7px 14px; border-radius: 999px; font-size: 12.5px; text-decoration: none; }
.get-app button { border: 0; background: none; color: var(--muted); font-size: 18px; width: 28px; height: 28px; border-radius: 50%; line-height: 1; }
.get-app button:hover { color: var(--text); background: var(--panel-2); }
body.info-open .get-app, body.quiz-on .get-app { display: none; }
@media (max-width: 860px), (max-height: 520px) { .get-app { display: none !important; } }
@media print { .get-app, .sidebar-close { display: none !important; } }
