.scale-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
  margin-bottom: 4px;
}
@media (max-width: 600px) {
  .container {
    padding: 0 4px;
    max-width: 100vw;
  }
  h1 {
    font-size: 22px;
  }
  .logo-img, .logo-img-fixed {
    width: 32px;
  }
  .card {
    padding: 8px;
    margin: 8px 0;
  }
  button, .scale-btn {
    font-size: 1.2rem;
    padding: 0.5em 0.7em;
  }
  .scale-btn.ghost, .scale-btn.ghost.selected {
    padding: 0.5em 1em;
    margin-left: 1em;
  }
  .actions {
    flex-direction: column;
    gap: 6px;
  }
    #nav-actions {
      flex-direction: row;
      gap: 10px;
      width: 100%;
      align-items: center;
      margin-top: 12px;
      justify-content: space-between;
    }
    #nav-actions button {
      width: 40%;
      font-size: 1rem;
      padding: 8px 0;
      min-height: 36px;
      max-width: 120px;
    }
    #nav-actions #prev {
      margin-right: auto;
    }
    #nav-actions #next {
      margin-left: auto;
    }
    .scale {
      flex-wrap: wrap;
      gap: 12px;
      justify-content: center;
    }
    .scale-btn {
      font-size: 2.2rem;
      min-width: 44px;
      min-height: 44px;
      padding: 0.7em 1em;
    }
    .scale-btn.ghost, .scale-btn.ghost.selected {
      font-size: 1.1rem;
      padding: 0.7em 1.5em;
      margin-left: 0;
      margin-top: 8px;
      width: 100%;
      display: block;
    }
}
.title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo-img {
  width: 200px;
  height: auto;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.scale, .opts {
  display: flex;
  align-items: center;

}
/* Papperskorgsikon för rensa-knapp */
.icon-reset {
  background: none;
  border: none;
  margin-top: 2px;
  padding: 2;
  cursor: pointer;
  float: right;
}
.icon-reset svg {
  display: block;
}
.actions #reset { display: none; }
/* Navigationsknappar layout */
#nav-actions { 
    display: flex !important; 
    width: 100%;
    justify-content: space-between; 
    align-items: center; 
}

#nav-actions #next {
  order: 1;
}


/* Emoji-knappar: ta bort kant och bakgrund */
.scale-btn {
  border: none;
  background: none;
  box-shadow: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5em;
  margin: 0 0.2em;
  transition: background 0.2s;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scale-btn.selected {
  background: #e0eaff;
  border-radius: 50%;
  box-shadow: none;
  z-index: 1;
}

.scale-btn.ghost {
  color: #6e6e6e;
  font-size: 1rem;
  padding: 0.5em 1.5em;
}
.scale-btn.ghost.selected {
  background: #e0eaff;
  border-radius: 999px;
  padding: 0.5em 1.2em;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
:root { --max: 820px; }
* { box-sizing: border-box; }
body { font: 16px system-ui, -apple-system, Segoe UI, Roboto, sans-serif; margin: 0; }
.container { max-width: var(--max); margin: 40px auto; padding: 0 16px; }
h1 { margin: 0 0 8px; font-size: 28px; }
.muted { color: #666; }
.small { font-size: 13px; }
.card { border: 1px solid #e5e5e5; border-radius: 12px; padding: 12px; margin: 12px 0; }
.q { margin: 6px 0 10px; }
.opts { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: flex; align-items: center; gap: 6px; border: 1px solid #ddd; border-radius: 999px; padding: 6px 10px; cursor: pointer; }
.chip input { accent-color: #111; }
.chip.ghost { border-style: dashed; opacity: .8; }
.actions { display: flex; gap: 10px; margin: 8px 0 4px; }
button { padding: 10px 16px; border: 0; border-radius: 10px; background: #111; color: #fff; cursor: pointer; }
button.ghost { background: #f2f2f2; color: #111; }
button[disabled] { opacity: .5; cursor: not-allowed; }
.chip.emoji { font-size: 24px; line-height: 1; padding: 10px 12px; }
.visually-hidden {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}