@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/baloo-2-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/baloo-2-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fffdf8;
  --ink: #3c2a1c;
  --muted: #7c6a58;
  --line: #e9dfcd;
  --purple: #592b83;
  --gold: #edb02c;
  --green: #2fa84f;
  --green-dark: #1e7a38;
  --red: #b33b3b;
  --accent: #2f7fc1;
  --accent-soft: #e3f2fd;
  --accent-dark: #1c5c92;
  --font-display: 'Baloo 2', ui-rounded, 'Trebuchet MS', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background-color: #c79a67;
  background-image:
    radial-gradient(ellipse 420px 180px at 12% 10%, rgba(96, 58, 20, 0.18), transparent 70%),
    radial-gradient(ellipse 360px 140px at 86% 84%, rgba(96, 58, 20, 0.14), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(90deg, transparent 0 169px, rgba(94, 57, 22, 0.2) 169px 172px, transparent 172px 341px),
    linear-gradient(180deg, #d3a97a 0%, #c79a67 46%, #b3864f 100%);
  min-height: 100dvh;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  -webkit-user-drag: none;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid #b87900;
  outline-offset: 2px;
}

.admin-app {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 2.5vmin, 28px);
  min-height: 100dvh;
}

.loading-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50vh;
  color: #fff8e9;
  font-weight: 800;
  font-size: 18px;
}

.loading-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(237, 176, 44, 0.2);
  animation: pulse 1s ease-in-out infinite alternate;
}

@keyframes pulse {
  to {
    transform: scale(1.4);
  }
}

/* ---------- Connexion / première configuration ---------- */
.auth-wrap {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 48px);
}

.auth-card {
  width: min(460px, 100%);
  padding: clamp(22px, 4vmin, 40px);
  border-radius: 28px;
  background-color: var(--paper);
  background-image:
    radial-gradient(100% 55% at 50% 0%, #fff4d6 0%, rgba(255, 253, 248, 0) 72%),
    linear-gradient(180deg, #ffffff, var(--paper));
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.7) inset, 0 24px 50px rgba(50, 30, 10, 0.35);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--purple);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 18px;
}

.auth-brand .brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f4e6c6;
}

.auth-brand img {
  width: 26px;
  height: 26px;
}

.auth-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 6vmin, 44px);
  line-height: 1;
  color: var(--purple);
}

.auth-text {
  margin: 10px 0 22px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.field > span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input:focus,
.select:focus {
  border-color: #b98b3c;
  box-shadow: 0 0 0 3px rgba(237, 176, 44, 0.2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 3px 0 rgba(130, 95, 50, 0.1);
  transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.12s ease;
}

.btn:hover {
  background: #fdf5e7;
}

.btn:active {
  transform: translateY(2px);
  box-shadow: none;
}

.btn--primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 4px 0 var(--accent-dark);
}

.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--green {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  box-shadow: 0 4px 0 var(--green-dark);
}

.btn--green:hover {
  background: var(--green-dark);
}

.btn--danger {
  color: var(--red);
}

.btn--small {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
  margin-top: 6px;
}

.form-error {
  margin: 0 0 12px;
  padding: 9px 11px;
  border-radius: 10px;
  background: #fff0f0;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.auth-hint {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.auth-hint code {
  padding: 2px 5px;
  border-radius: 5px;
  background: #f4ead9;
  color: var(--ink);
  font-size: 11px;
}

/* ---------- Coquille admin ---------- */
.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 10px 22px rgba(72, 45, 16, 0.2);
}

.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.admin-header__brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  flex: none;
}

.admin-header__brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--purple);
  font-size: 20px;
  line-height: 1;
}

.admin-header__brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(49, 33, 20, 0.78);
  align-self: flex-start;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}

.tab {
  min-height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #f6ead6;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.tab.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.panel {
  padding: clamp(16px, 2.8vmin, 26px);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 14px 30px rgba(72, 45, 16, 0.22);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  flex: 1;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.6vmin, 34px);
  line-height: 1;
  color: var(--purple);
}

.panel-note {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

/* ---------- Éditeur ---------- */
.child-card {
  margin-bottom: 18px;
  padding: clamp(12px, 2vmin, 18px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffefa;
}

.child-card:last-of-type {
  margin-bottom: 0;
}

.child-card__head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 12px;
  align-items: end;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.child-card__head .field {
  margin-bottom: 0;
}

.child-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.child-badge img {
  width: 24px;
  height: 24px;
}

.child-badge .emoji-icon {
  width: 24px;
  height: 24px;
  font-size: 21px;
}

.nid-badge {
  margin-left: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f0e6d2;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: none;
}

.period-block {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}

.period-block:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.period-block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink);
}

.period-fields {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.4fr 1fr 0.55fr;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.icon-field img {
  width: 34px;
  height: 34px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(70, 40, 10, 0.12));
}

.icon-field .emoji-icon {
  width: 34px;
  height: 34px;
  font-size: 30px;
}

.icon-field .select {
  min-width: 0;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-row {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: 1px solid #f0e7d8;
  border-radius: 12px;
  background: #ffffff;
}

.step-row .input {
  min-height: 38px;
  padding: 7px 10px;
}

.step-actions {
  display: flex;
  gap: 3px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 900;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  background: #fdf5e7;
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.icon-btn--danger {
  color: var(--red);
}

.add-step {
  margin: 8px 0 0;
}

.save-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.save-bar__hint {
  flex: 1;
  min-width: 220px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

/* ---------- Validation ---------- */
.day-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin-bottom: 16px;
}

.day-bar .field {
  margin: 0;
  min-width: 190px;
}

.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 12px;
}

.child-day {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffefa;
}

.child-day__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-display);
  font-size: 21px;
}

.child-day__head img {
  width: 32px;
  height: 32px;
}

.child-day__head .emoji-icon {
  width: 32px;
  height: 32px;
  font-size: 28px;
}

.routine-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed #f0e7d8;
}

.routine-status:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.routine-status__icon {
  width: 30px;
  height: 30px;
  flex: none;
}

.routine-status__icon.emoji-icon {
  font-size: 27px;
}

.routine-status__body {
  flex: 1;
  min-width: 0;
}

.routine-status__name {
  font-weight: 900;
  font-size: 14px;
}

.routine-status__time {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.status-badge--pending {
  background: #f1ece3;
  color: var(--muted);
}

.status-badge--done {
  background: #e5f7eb;
  color: var(--green-dark);
}

.status-badge--validated {
  background: #fff0c8;
  color: #7b5200;
}

.status-badge svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

.routine-status .btn {
  flex: none;
}

.empty-day {
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  transform: translate(-50%, 18px);
  max-width: min(90vw, 520px);
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(49, 33, 20, 0.94);
  color: #fff8e9;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(40, 22, 5, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast.is-error {
  background: #7a2424;
}

@media (max-width: 820px) {
  .child-card__head {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .period-fields {
    grid-template-columns: 1fr 1fr;
  }

  .step-row {
    grid-template-columns: 1fr;
  }

  .step-row .icon-field {
    width: 100%;
  }

  .step-actions {
    justify-content: flex-end;
  }

  .admin-header {
    flex-wrap: wrap;
  }

  .admin-header__actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 520px) {
  .admin-app {
    padding: 8px;
  }

  .period-fields {
    grid-template-columns: 1fr;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1;
    padding: 0 8px;
  }

  .panel {
    padding: 14px;
  }

  .day-grid {
    grid-template-columns: 1fr;
  }

  .auth-card {
    border-radius: 20px;
  }
}


/* ---------- Points Nid ---------- */
.points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.points-child {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fffefa;
}

.points-child__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-child__head img,
.points-child__head .emoji-icon {
  width: 42px;
  height: 42px;
  flex: none;
  object-fit: contain;
}

.points-child__name {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.points-child__name strong {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.1;
}

.points-child__name small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.points-balance {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: var(--green-dark);
}

.points-balance b {
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
}

.points-balance span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.points-error {
  margin: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: #fff0f0;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
}

.points-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.points-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

.points-action span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-action b {
  flex: none;
  font-size: 13px;
}

.points-action--good {
  background: #eaf8ef;
  border-color: #cfe6d5;
  color: var(--green-dark);
}

.points-action--good:hover {
  background: #dcf3e4;
}

.points-action--bad {
  background: #fff1f1;
  border-color: #f0cccc;
  color: var(--red);
}

.points-action--bad:hover {
  background: #ffe4e4;
}

.points-action:disabled {
  opacity: 0.55;
  cursor: default;
}

.points-custom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px auto;
  gap: 8px;
}

.points-custom .input {
  min-height: 36px;
  font-size: 13px;
}

.points-history {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12px;
}

.points-history summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.points-history ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.points-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
}

.points-entry__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.points-entry__date {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.points-entry__delta {
  font-size: 12px;
  font-weight: 900;
}

.points-entry__delta.is-plus {
  color: var(--green-dark);
}

.points-entry__delta.is-minus {
  color: var(--red);
}

.points-entry__remove {
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
}

.points-entry__remove:hover {
  color: var(--red);
}

.points-entry__remove:disabled {
  opacity: 0.5;
  cursor: default;
}

.points-empty {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.points-editor {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.points-editor__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.points-editor__head h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--purple);
}

.points-editor__head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.action-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.action-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) 80px auto;
  gap: 8px;
  align-items: center;
}

.action-row__points {
  text-align: center;
}

.points-editor__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.points-editor__actions span {
  max-width: 560px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 820px) {
  .points-grid {
    grid-template-columns: 1fr;
  }

  .points-actions {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr 1fr;
  }

  .action-row__label {
    grid-column: 1 / -1;
    order: -1;
  }

  .action-row__kind {
    grid-column: 1 / -1;
  }

  .points-custom {
    grid-template-columns: 1fr 90px;
  }

  .points-custom .btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .points-custom {
    grid-template-columns: 1fr;
  }

  .action-row {
    grid-template-columns: 1fr;
  }

  .points-editor__actions {
    align-items: stretch;
  }

  .points-editor__actions .btn {
    width: 100%;
  }
}

.emoji-icon { display:inline-block; object-fit:contain; vertical-align:middle; }
