/* =====================================================================
   Design Simple Dealers v3 — Painel
   Design system "Eames": off-white quente, tinta grafite, um único acento
   terracota. Pouca cor, muito espaço, tipografia primeiro.
   ===================================================================== */

:root {
  --bg:        #FAFAF7;
  --surface:   #FFFFFF;
  --surface-2: #F3F2EC;
  --ink:       #141414;
  --muted:     #6E6E68;
  --faint:     #A3A29A;
  --line:      #E6E4DD;
  --line-soft: #EFEEE8;
  --accent:    #C8451F;
  --accent-soft: #FBEDE7;
  --accent-ink: #FFFFFF;
  --ok:        #2E7D4F;
  --ok-soft:   #E8F3EC;
  --warn:      #B7791F;
  --warn-soft: #FAF3E3;
  --err:       #B3261E;
  --err-soft:  #FBEAE9;
  --radius:    10px;
  --radius-sm: 7px;
  --shadow:    0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.05);
  --font-ui:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, monospace;
  --sidebar-w: 232px;
}

:root[data-theme="dark"] {
  --bg:        #131311;
  --surface:   #1B1B18;
  --surface-2: #22221E;
  --ink:       #F2F1EC;
  --muted:     #A09F97;
  --faint:     #6E6D66;
  --line:      #2A2A26;
  --line-soft: #232320;
  --accent:    #E05A2D;
  --accent-soft: #33201A;
  --accent-ink: #FFFFFF;
  --ok:        #58B383;
  --ok-soft:   #1C2B22;
  --warn:      #D9A047;
  --warn-soft: #2C2517;
  --err:       #E5766F;
  --err-soft:  #2F1B1A;
  --shadow:    0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; }

/* ───────────────────────── Layout ───────────────────────── */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar .logo {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding: 4px 10px 18px;
  display: flex; align-items: baseline; gap: 7px;
}
.sidebar .logo small { font-family: var(--font-ui); font-size: 10px; font-weight: 600; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; }
.sidebar .sep { height: 1px; background: var(--line-soft); margin: 12px 10px; }
.sidebar .group-label { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); padding: 10px 10px 4px; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 13.5px;
  cursor: pointer;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .75; }
.nav-item:hover { background: var(--surface-2); color: var(--ink); }
.nav-item.active { background: var(--surface-2); color: var(--ink); font-weight: 600; }
.nav-item.active svg { opacity: 1; color: var(--accent); }

.sidebar .foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--faint); display: flex; flex-direction: column; gap: 8px; }

.main { flex: 1; min-width: 0; padding: 34px 44px 80px; max-width: 1240px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600; letter-spacing: -.02em;
  margin: 0; line-height: 1.15;
}
.page-head .sub { color: var(--muted); font-size: 13.5px; margin-top: 5px; max-width: 60ch; }
.page-head .actions { display: flex; gap: 8px; align-items: center; }

/* ───────────────────────── Botões ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: inherit; font-size: 13.5px; font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, opacity .12s;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 15px; height: 15px; }
.btn.primary { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.primary:hover { opacity: .85; }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { opacity: .88; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--err); border-color: var(--line); }
.btn.danger:hover { background: var(--err-soft); border-color: var(--err); }
.btn.sm { padding: 5px 10px; font-size: 12.5px; }
.btn.block { width: 100%; }

/* ───────────────────────── Cards ───────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card + .card { margin-top: 16px; }
.card h2 { font-size: 15px; font-weight: 650; margin: 0 0 4px; letter-spacing: -.01em; }
.card .desc { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; max-width: 68ch; }

/* ───────────────────────── Formulários ───────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--accent); }
.field .help { font-size: 11.5px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.field.inline { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.field.inline > div:first-child { flex: 1; }

.input, .select, .textarea {
  font: inherit; font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 11px;
  width: 100%;
  outline: none;
  transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.textarea { min-height: 90px; resize: vertical; }
.textarea.code { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; min-height: 160px; white-space: pre; tab-size: 2; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 55%, calc(100% - 11px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }

.switch { position: relative; width: 36px; height: 21px; flex-shrink: 0; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track {
  position: absolute; inset: 0; border-radius: 999px;
  background: var(--line); transition: background .15s; cursor: pointer;
}
.switch .track::after {
  content: ''; position: absolute; top: 2.5px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .15s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(14px); }

/* ───────────────────────── Tabelas ───────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 650;
  text-transform: uppercase; letter-spacing: .07em;
  color: var(--faint); padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.pagination { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 4px; font-size: 12.5px; color: var(--muted); }

/* ───────────────────────── Badges ───────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 650; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.badge.ativo, .badge.ok, .badge.publicado { background: var(--ok-soft); color: var(--ok); }
.badge.rascunho, .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.arquivado, .badge.suspenso, .badge.err, .badge.inativo { background: var(--err-soft); color: var(--err); }
.badge.plain::before { display: none; }

/* ───────────────────────── Catálogo de marcas ───────────────────────── */
.grid-marcas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.marca-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.marca-card:hover { border-color: var(--faint); box-shadow: var(--shadow); transform: translateY(-1px); }
.marca-card .logo-box {
  height: 88px; border-radius: var(--radius-sm);
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 13px; overflow: hidden;
}
.marca-card .logo-box img { max-width: 70%; max-height: 62%; object-fit: contain; }
.marca-card .logo-box .fallback { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--muted); }
.marca-card .nome { font-weight: 650; font-size: 14.5px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.marca-card .slug { color: var(--faint); font-size: 12px; font-family: var(--font-mono); margin-top: 1px; }
.marca-card .swatches { display: flex; gap: 6px; margin-top: 12px; }

.swatch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); }

/* ───────────────────────── Wizard ───────────────────────── */
.wizard { display: flex; gap: 36px; align-items: flex-start; }
.wizard-nav {
  width: 200px; flex-shrink: 0;
  position: sticky; top: 24px;
  display: flex; flex-direction: column; gap: 1px;
}
.wizard-nav .back { margin-bottom: 14px; }
.wizard-nav .step {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500; color: var(--muted);
  cursor: pointer; border: none; background: none; text-align: left; width: 100%;
}
.wizard-nav .step:hover { background: var(--surface-2); color: var(--ink); }
.wizard-nav .step.active { background: var(--surface-2); color: var(--ink); font-weight: 650; }
.wizard-nav .step .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex-shrink: 0; }
.wizard-nav .step.active .dot { background: var(--accent); }
.wizard-body { flex: 1; min-width: 0; }

.savebar {
  position: fixed; bottom: 22px; right: 30px; z-index: 60;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px;
  box-shadow: var(--shadow);
  font-size: 12.5px; color: var(--muted);
}
.savebar .st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.savebar.dirty .st-dot { background: var(--warn); }
.savebar.saving .st-dot { background: var(--accent); animation: pulse 1s infinite; }
.savebar.saved .st-dot { background: var(--ok); }
@keyframes pulse { 50% { opacity: .35; } }

/* ───────────────────────── Cores ───────────────────────── */
.color-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface);
}
.color-row .picker { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--line); padding: 0; background: none; cursor: pointer; }
.color-row .picker::-webkit-color-swatch-wrapper { padding: 3px; }
.color-row .picker::-webkit-color-swatch { border: none; border-radius: 6px; }
.color-row .meta { flex: 1; min-width: 0; }
.color-row .meta .papel-nome { font-weight: 600; font-size: 13px; }
.color-row .meta .hexcode { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.color-row .input.hex { width: 106px; font-family: var(--font-mono); font-size: 12.5px; text-transform: uppercase; }
.color-row .input.papel { width: 150px; }
.color-row .select.modo { width: 118px; }
.color-row .lock { color: var(--faint); display: flex; align-items: center; }

.color-preview {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px;
  transition: background .2s;
}
.color-preview .pv-brand { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.color-preview .pv-text { font-size: 13px; max-width: 46ch; margin-bottom: 18px; opacity: .9; }
.color-preview .pv-btn { display: inline-block; padding: 9px 18px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.preview-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.preview-toggle button { font: inherit; font-size: 12px; font-weight: 600; border: none; background: var(--surface); color: var(--muted); padding: 6px 13px; cursor: pointer; }
.preview-toggle button.on { background: var(--ink); color: var(--bg); }

/* ───────────────────────── Assets ───────────────────────── */
.asset-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.asset-toolbar .select, .asset-toolbar .input { width: auto; }

.dropzone {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  transition: border-color .12s, background .12s;
  margin-bottom: 18px;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.dropzone strong { color: var(--ink); }

.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.asset-card { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.asset-card .thumb {
  height: 110px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.asset-card .thumb img, .asset-card .thumb video { width: 100%; height: 100%; object-fit: contain; }
.asset-card .thumb .ext { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase; }
.asset-card .thumb .star { position: absolute; top: 7px; right: 7px; color: var(--accent); }
.asset-card .info { padding: 9px 11px; }
.asset-card .info .nm { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-card .info .mt { font-size: 11px; color: var(--faint); display: flex; gap: 6px; margin-top: 2px; flex-wrap: wrap; }
.asset-card .acts { display: flex; border-top: 1px solid var(--line-soft); }
.asset-card .acts button { flex: 1; font: inherit; font-size: 11.5px; font-weight: 600; color: var(--muted); background: none; border: none; padding: 7px; cursor: pointer; }
.asset-card .acts button:hover { background: var(--surface-2); color: var(--ink); }
.asset-card .acts button.danger:hover { color: var(--err); background: var(--err-soft); }

/* ───────────────────────── Links (catálogo agrupado) ───────────────────────── */
.link-group { margin-bottom: 22px; }
.link-group > .lg-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.link-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); margin-bottom: 7px; background: var(--surface);
}
.link-row .lk-tipo { width: 170px; flex-shrink: 0; font-size: 12.5px; font-weight: 600; }
.link-row .lk-tipo small { display: block; font-weight: 400; color: var(--faint); font-size: 10.5px; }
.link-row .input { flex: 1; }

/* ───────────────────────── Fontes ───────────────────────── */
.font-result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-bottom: 8px; background: var(--surface);
}
.font-result .fam { font-size: 15px; font-weight: 600; }
.font-result .cat { font-size: 11.5px; color: var(--faint); }

/* ───────────────────────── Módulos ───────────────────────── */
.mod-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
.mod-card .mod-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; }
.mod-card .mod-head .t { flex: 1; }
.mod-card .mod-head .t .nm { font-weight: 650; font-size: 13.5px; }
.mod-card .mod-head .t .tp { font-size: 11.5px; color: var(--faint); }
.mod-card .mod-body { padding: 14px 16px 16px; border-top: 1px solid var(--line-soft); }
.code-tabs { display: flex; gap: 2px; margin-bottom: -1px; }
.code-tabs button { font: inherit; font-size: 12px; font-weight: 600; padding: 6px 13px; border: 1px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; background: none; color: var(--muted); cursor: pointer; }
.code-tabs button.on { background: var(--surface-2); color: var(--ink); border-color: var(--line); border-bottom-color: var(--surface-2); }

/* ───────────────────────── Toast, modal, empty ───────────────────────── */
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 500;
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--shadow);
  animation: toast-in .18s ease-out;
}
.toast.err { background: var(--err); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

.modal-back {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(20,20,20,.35);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 8vh 20px 20px;
  backdrop-filter: blur(2px);
}
.modal {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; max-width: 540px;
  max-height: 82vh; overflow-y: auto;
  padding: 24px;
  animation: toast-in .15s ease-out;
}
.modal.lg { max-width: 780px; }
.modal h3 { font-family: var(--font-display); font-size: 19px; font-weight: 600; margin: 0 0 4px; }
.modal .desc { color: var(--muted); font-size: 12.5px; margin: 0 0 18px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

.empty {
  text-align: center; padding: 52px 20px; color: var(--muted);
  border: 1.5px dashed var(--line); border-radius: var(--radius);
}
.empty .ttl { font-weight: 650; color: var(--ink); font-size: 14.5px; margin-bottom: 4px; }
.empty p { font-size: 12.5px; max-width: 46ch; margin: 0 auto 14px; }

.searchbox { position: relative; }
.searchbox .input { padding-left: 34px; }
.searchbox svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); pointer-events: none; }

.kbd { font-family: var(--font-mono); font-size: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--muted); }

.mono { font-family: var(--font-mono); font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }

/* Revelação única de API key */
.key-reveal {
  font-family: var(--font-mono); font-size: 13px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
  word-break: break-all; user-select: all;
}

/* Skeleton de carregamento */
.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-soft) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: var(--radius-sm); min-height: 14px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ───────────────────────── Login ───────────────────────── */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 36px 32px;
  box-shadow: var(--shadow);
}
.login-card .mark {
  font-family: var(--font-display); font-size: 24px; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: 2px;
}
.login-card .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 26px; }
.login-error {
  display: flex; gap: 8px; align-items: center;
  background: var(--err-soft); color: var(--err);
  font-size: 12.5px; font-weight: 500;
  border-radius: var(--radius-sm); padding: 9px 12px; margin-bottom: 14px;
}

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar .foot, .sidebar .group-label, .sidebar .sep { display: none; }
  .main { padding: 22px 18px 80px; }
  .wizard { flex-direction: column; }
  .wizard-nav { width: 100%; position: static; flex-direction: row; overflow-x: auto; }
}
