/* Chafflix M3U Editor — mobile d'abord, puis tablette / ordinateur */
:root {
  --bg: #05050d;
  --card: #0f0f23;
  --card-2: #16162f;
  --line: #24244a;
  --text: #f8fafc;
  --text-dim: #cbd5e1;
  --muted: #94a3b8;
  --red: #e11d48;
  --red-dark: #be123c;
  --green: #22c55e;
  --orange: #f59e0b;
  --blue: #38bdf8;
  --violet: #a78bfa;
  --radius: 12px;
  --tap: 44px; /* taille minimale d'une zone tactile */
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 'Poppins', system-ui, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.accent { color: var(--red); }
.warn { color: var(--orange); }
[hidden] { display: none !important; }

/* ---------- Formulaires ---------- */
input, select, button, textarea { font: inherit; color: inherit; }
/* 16px minimum : évite le zoom automatique d'iOS au focus */
input:not([type=checkbox]):not([type=file]), select {
  width: 100%;
  min-height: var(--tap);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .55rem .8rem;
  font-size: 16px;
  outline: none;
}
input[type=file] { width: 100%; font-size: .9rem; margin-top: .4rem; }
input:focus, select:focus { border-color: var(--red); }
input[type=checkbox] { accent-color: var(--red); width: 20px; height: 20px; cursor: pointer; flex: none; margin: 0; }
label { display: block; font-weight: 500; margin-bottom: .9rem; }
label > input, label > select { margin-top: .35rem; font-weight: 400; }
label.inline { display: inline-flex; align-items: center; gap: .5rem; margin: 0; }
label.inline select { width: auto; margin: 0; min-height: 36px; padding: .3rem .6rem; font-size: .9rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap);
  border: 1px solid var(--line); background: var(--card-2);
  padding: .55rem 1rem; border-radius: 10px; cursor: pointer;
  font-weight: 500; white-space: nowrap; text-decoration: none !important; color: var(--text);
  transition: background .15s, border-color .15s; touch-action: manipulation;
}
.btn:hover { border-color: #3a3a6a; background: #1d1d3d; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; border-color: #5b1a2b; color: #fb7185; }
.btn-danger:hover { background: #2a0d16; border-color: var(--red); }
.btn-sm { min-height: 38px; padding: .35rem .8rem; font-size: .86rem; }
.btn-xs { min-height: 34px; padding: .25rem .65rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; font-size: 1.05rem; }
.icon-btn {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  width: 38px; height: 38px; border-radius: 8px; font-size: 1.05rem; line-height: 1; flex: none;
  display: inline-grid; place-items: center; touch-action: manipulation;
}
.icon-btn:hover { color: var(--text); background: var(--line); }

/* ---------- Structure ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .55rem 1rem; border-bottom: 1px solid var(--line); background: #08081a;
  position: sticky; top: 0; z-index: 20;
  padding-top: max(.55rem, env(safe-area-inset-top));
}
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-size: .95rem; text-decoration: none !important; white-space: nowrap; }
.brand b { color: var(--red); font-weight: 600; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px; background: var(--red); flex: none;
  display: grid; place-items: center; font-size: .75rem; color: #fff;
}
.topnav { display: flex; align-items: center; gap: .75rem; }
.topnav .nav-link, .topnav .user-email { display: none; }
.container { max-width: 980px; margin: 0 auto; padding: 1.1rem 1rem 4rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; }
.alert { padding: .6rem .8rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #2a0d16; border: 1px solid #5b1a2b; color: #fda4af; }

/* ---------- Accueil ---------- */
.landing { max-width: 960px; margin: 0 auto; padding: 2.5rem 1rem 3rem; }
.hero { text-align: center; }
.hero h1 { font-size: clamp(1.7rem, 7vw, 3rem); }
.lead { color: var(--text-dim); max-width: 640px; margin: 0 auto 1.75rem; font-size: 1rem; }
.hero-actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { flex: 1 1 200px; max-width: 280px; }
.price-tag { display: inline-block; margin-top: 1.5rem; padding: .4rem .9rem; border-radius: 999px; background: #2a0d16; color: #fda4af; font-size: .9rem; }
.steps { display: grid; grid-template-columns: 1fr; gap: .8rem; margin-top: 2.5rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.step p { color: var(--muted); margin: 0; }
.step-n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: #2a0d16; color: var(--red); font-weight: 700; margin-bottom: .5rem;
}

/* ---------- Connexion ---------- */
.auth-wrap { display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { text-align: center; margin-bottom: 1.25rem; }

/* ---------- Tableau de bord ---------- */
.page-title { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: .4rem; }
.page-title h1 { margin: 0; }
.page-title-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pricing-note { margin: 0 0 1.1rem; }
.pricing-note b { color: var(--text); }
.new-card { margin-bottom: 1.25rem; }
.tabs { display: flex; gap: .35rem; margin-bottom: 1rem; }
.tab { flex: 1; min-height: 40px; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .35rem .7rem; cursor: pointer; font-size: .88rem; }
.tab.active { background: var(--red); border-color: var(--red); color: #fff; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 0 .8rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .5rem; flex-wrap: wrap; }
.import-help { background: #1f1608; border: 1px solid #5a3d0c; color: #fde68a; border-radius: 10px; padding: .75rem .9rem; margin: .4rem 0 .9rem; }
.import-help p { margin: 0 0 .4rem; }
.import-help ol { margin: .3rem 0 0; padding-left: 1.2rem; display: grid; gap: .5rem; }
.import-help a { color: var(--orange); text-decoration: underline; }
.empty { text-align: center; padding: 2.5rem 1rem; }
.pl-list { display: grid; gap: .9rem; }
.pl-card.is-inactive { border-color: #3a1a26; }
.pl-head { display: flex; justify-content: space-between; gap: .75rem; align-items: flex-start; }
.pl-title { min-width: 0; }
.pl-head h2 { margin-bottom: .15rem; overflow-wrap: anywhere; }
.pl-head p { margin: 0; }
.pl-status { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.pl-status .btn { margin-left: auto; }
.status { font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; white-space: nowrap; }
.status-ok { background: #0f2c1a; color: var(--green); }
.status-off { background: #2a0d16; color: #fb7185; }
.link-box { display: flex; gap: .5rem; margin: .8rem 0; }
.link-box input { min-width: 0; font-family: ui-monospace, monospace; font-size: .8rem !important; color: var(--blue); }
.pl-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.pl-actions { display: flex; gap: .4rem; flex-wrap: wrap; }

/* Paiement */
.pay-section { margin-bottom: 1rem; }
.pay-section > p { margin: 0 0 .4rem; }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 30vh; overflow-y: auto; }
.pay-list label { display: flex; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 400; }
.pay-list label span:first-of-type { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.durations { display: grid; grid-template-columns: repeat(2, 1fr); gap: .45rem; }
.duration {
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .6rem .4rem; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); cursor: pointer;
}
.duration span { font-size: .8rem; color: var(--muted); }
.duration.active { border-color: var(--red); background: #2a0d16; }
.duration.active span { color: #fda4af; }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .8rem 0; border-top: 1px solid var(--line); }
.pay-total strong { font-size: 1.35rem; }

/* ---------- Éditeur ---------- */
.page-editor { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.editor { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ed-bar { display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-bottom: 1px solid var(--line); }
.ed-name {
  flex: 1; min-width: 0; font-weight: 600;
  background: transparent !important; border-color: transparent !important;
}
.ed-name:hover, .ed-name:focus { border-color: var(--line) !important; background: var(--card-2) !important; }
.ed-options {
  display: none; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  padding: .6rem .75rem; border-bottom: 1px solid var(--line); background: #08081a;
}
.editor.options-open .ed-options { display: flex; }
.ed-options .ed-stats { flex-basis: 100%; }
.ed-stats b { color: var(--text); }
.ed-banner {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  padding: .55rem .75rem; background: #2a0d16; border-bottom: 1px solid #5b1a2b; color: #fecdd3; font-size: .84rem;
}
.ed-banner > span { flex: 1 1 120px; }
.ed-link { display: flex; align-items: center; gap: .5rem; padding: .45rem .75rem; background: #08081a; border-bottom: 1px solid var(--line); }
.ed-link > span { display: none; }
.ed-link input { min-width: 0; min-height: 38px !important; padding: .3rem .6rem !important; font-family: ui-monospace, monospace; font-size: .8rem !important; color: var(--blue); }

.ed-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr; }
.pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
#channels-pane { display: none; }
.editor.show-channels #groups-pane { display: none; }
.editor.show-channels #channels-pane { display: flex; }
.pane-sticky { position: sticky; top: 0; z-index: 3; background: var(--bg); border-bottom: 1px solid var(--line); }
.pane-head { display: flex; align-items: center; gap: .5rem; padding: .65rem .75rem .35rem; flex-wrap: wrap; }
.pane-head h2 { margin: 0; flex: 1; }
.ch-head .ed-name { flex: 1 1 140px; }
.ch-head #g-orig { flex-basis: 100%; order: 5; padding-left: .2rem; }
.pane-tools { padding: .15rem .75rem .6rem; display: grid; gap: .5rem; }
.chips { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; margin: 0 -.75rem; padding: 0 .75rem; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 34px; background: transparent; border: 1px solid var(--line); color: var(--text-dim);
  border-radius: 999px; padding: .2rem .8rem; font-size: .82rem; cursor: pointer;
}
.chip.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.bulk { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.bulk > span { flex-basis: 100%; }
.pane-placeholder { margin: auto; text-align: center; padding: 2rem; color: var(--text-dim); max-width: 380px; }

.list { list-style: none; margin: 0; padding: .3rem .35rem 5rem; }
.row {
  display: flex; align-items: center; gap: .45rem; padding: .35rem .4rem;
  border-radius: 10px; cursor: pointer; border: 1px solid transparent; min-height: 52px;
}
.row:hover { background: var(--card); }
.row.is-sel { background: #1f0a14; border-color: #5b1a2b; }
.row.is-hidden .row-main, .row.is-hidden .logo, .row.is-hidden .count { opacity: .38; }
.row.is-hidden .row-name, .row.is-hidden .ch-name { text-decoration: line-through; }
.row.sortable-ghost { opacity: .35; }
.row.sortable-chosen { background: var(--card-2); }
.handle {
  cursor: grab; color: var(--muted); user-select: none; flex: none; touch-action: none;
  width: 30px; height: 40px; display: grid; place-items: center; font-size: 1.1rem;
}
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-sub { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-name {
  min-height: 36px !important; background: transparent !important; border: 1px solid transparent !important;
  padding: .15rem .4rem !important; border-radius: 6px !important; margin-left: -.4rem;
  text-overflow: ellipsis;
}
.ch-name:hover { border-color: var(--line) !important; }
.ch-name:focus { border-color: var(--red) !important; background: var(--card-2) !important; }
.logo { width: 34px; height: 24px; object-fit: contain; flex: none; border-radius: 4px; background: #0a0a18; }
.count { color: var(--muted); font-size: .78rem; min-width: 2.2em; text-align: right; flex: none; }
.badge { font-size: .66rem; padding: .05rem .4rem; border-radius: 4px; flex: none; font-weight: 600; letter-spacing: .02em; }
.badge-l { background: #0c2a3a; color: var(--blue); }
.badge-m { background: #2d2010; color: var(--orange); }
.badge-s { background: #22183d; color: var(--violet); }
.badge-new { background: #0f2c1a; color: var(--green); }
.badge-custom { background: #2a0d16; color: #fb7185; }

/* Interrupteur */
.switch { position: relative; width: 44px; height: 26px; margin: 0; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ''; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- Dialogues : feuille en bas d'écran sur mobile ---------- */
dialog { color: var(--text); padding: 1.1rem; }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
dialog.sheet {
  width: 100%; max-width: 100%; margin: auto 0 0; max-height: 88dvh; overflow-y: auto;
  border-radius: 18px 18px 0 0; border-bottom: 0;
  padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
}
.move-list { max-height: 50dvh; overflow-y: auto; margin-top: .6rem; padding: 0; }

/* ---------- Chargement & notifications ---------- */
.loading { position: fixed; inset: 0; background: rgba(5, 5, 13, .85); display: none; place-items: center; align-content: center; gap: 1rem; z-index: 50; padding: 1rem; text-align: center; }
.loading.show { display: grid; }
.loading-title { font-weight: 600; font-size: 1.05rem; margin: 0; }
.loading > p { margin: 0; max-width: 420px; }
.loading-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; max-width: 460px; margin-top: .5rem; }
.loading-actions p { flex-basis: 100%; margin: .5rem 0 0; }
.list-loading { display: grid; justify-items: center; gap: .7rem; padding: 2.5rem 1rem; color: var(--muted); font-size: .9rem; }
.pl-progress { display: flex; align-items: center; gap: .55rem; margin-top: .8rem; font-size: .85rem; color: var(--text-dim); }
.pl-progress .spinner { width: 18px; height: 18px; border-width: 2px; margin: 0; }
.spinner { width: 42px; height: 42px; border: 3px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; left: 1rem; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom));
  background: var(--card-2); border: 1px solid var(--line); padding: .75rem 1rem; border-radius: 12px;
  z-index: 60; transform: translateY(160%); transition: transform .25s, visibility .25s; visibility: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  text-align: center;
}
.toast.show { transform: translateY(0); visibility: visible; }
.toast-ok { border-color: #14532d; }
.toast-error { border-color: var(--red); color: #fda4af; }

.only-sm { display: inline-flex; }
.only-lg { display: none; }

/* Éditeur sur téléphone : on gagne de la hauteur */
.page-editor .topbar { display: none; }
.ed-banner .only-lg { display: none; }

/* ---------- Petits téléphones ---------- */
@media (max-width: 360px) {
  .brand > span:last-child { display: none; }
  .tab { font-size: .8rem; padding: .3rem .4rem; }
}

/* ---------- Tablette ---------- */
@media (min-width: 600px) {
  h1 { font-size: 1.6rem; }
  .container { padding: 1.5rem 1.25rem 4rem; }
  .card { padding: 1.25rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .landing { padding-top: 4rem; }
  .durations { grid-template-columns: repeat(4, 1fr); }
  .topnav .user-email { display: inline; }
  .topnav .nav-link { display: inline; }
  .tab { flex: none; }
  dialog.sheet { width: min(500px, calc(100vw - 2rem)); margin: auto; border-radius: var(--radius); border-bottom: 1px solid var(--line); }
  .toast { left: 50%; right: auto; transform: translate(-50%, 160%); max-width: 520px; }
  .toast.show { transform: translate(-50%, 0); }
  .ed-link > span { display: inline; white-space: nowrap; }
  .ed-link input { max-width: 560px; }
}

/* ---------- Finition visuelle ---------- */
:root {
  --bg: #0b0d14;
  --card: #121622;
  --card-2: #191e2c;
  --line: #293142;
  --text: #f4f6fb;
  --text-dim: #c2c9d6;
  --muted: #8993a5;
  --red: #ff5368;
  --red-dark: #e74359;
  --green: #4ade9a;
  --blue: #70c8f4;
  --radius: 16px;
}

body {
  background:
    radial-gradient(ellipse at 50% -20%, rgba(75, 87, 128, .18), transparent 52%),
    var(--bg);
  letter-spacing: -.01em;
}
a { color: var(--blue); }
::selection { background: rgba(255, 83, 104, .3); }
.topbar {
  background: rgba(11, 13, 20, .82);
  border-bottom-color: rgba(137, 147, 165, .15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { font-size: 1rem; font-weight: 600; letter-spacing: -.035em; }
.brand b { color: #ff7182; }
.brand-logo {
  width: 34px; height: 34px; border-radius: 11px;
  background: linear-gradient(145deg, #ff7182, #e53651);
  box-shadow: 0 5px 18px rgba(255, 83, 104, .25);
}
.container { max-width: 1080px; }
.card, .step {
  background: linear-gradient(145deg, rgba(21, 26, 39, .97), rgba(17, 21, 32, .97));
  border-color: rgba(137, 147, 165, .16);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .14);
}
input:not([type=checkbox]):not([type=file]), select {
  background: #101521;
  border-color: #30394b;
  border-radius: 11px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus, select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(255, 83, 104, .13);
}
.btn {
  border-color: #30394b;
  background: #191e2c;
  border-radius: 11px;
  transition: transform .16s ease, background .16s, border-color .16s, box-shadow .16s;
}
.btn:hover { border-color: #465269; background: #222a3a; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #ff6579, #ed435c);
  border-color: transparent;
  box-shadow: 0 7px 18px rgba(237, 67, 92, .2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #ff7889, #f15066);
  border-color: transparent;
  box-shadow: 0 9px 24px rgba(237, 67, 92, .27);
}
.btn-ghost { background: transparent; }
.page-title { margin-bottom: .6rem; }
.page-title h1 { letter-spacing: -.04em; }
.pricing-note { line-height: 1.7; }
.new-card { border-color: rgba(255, 83, 104, .23); }
.pl-list { gap: 1rem; }
.pl-card { transition: border-color .18s, transform .18s, box-shadow .18s; }
.pl-card:hover { border-color: rgba(137, 147, 165, .32); box-shadow: 0 18px 40px rgba(0, 0, 0, .2); }
.pl-head h2 { letter-spacing: -.025em; }
.status { padding: .25rem .65rem; }
.status-ok { background: rgba(74, 222, 154, .12); }
.status-off { background: rgba(255, 83, 104, .12); }
.link-box input { background: #0e121b !important; }
.hero {
  position: relative;
  padding: clamp(2.6rem, 8vw, 5.8rem) 1rem 2.5rem;
  border: 1px solid rgba(137, 147, 165, .15);
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 83, 104, .13), transparent 58%),
              linear-gradient(145deg, rgba(20, 25, 38, .96), rgba(14, 17, 27, .96));
  box-shadow: 0 26px 70px rgba(0, 0, 0, .22);
}
.hero h1 { max-width: 780px; margin: 0 auto .8rem; font-size: clamp(2.1rem, 7vw, 4.2rem); letter-spacing: -.065em; }
.accent { color: #ff7182; }
.lead { max-width: 620px; line-height: 1.8; }
.hero-actions { margin-top: 1.6rem; }
.price-tag { background: rgba(255, 83, 104, .1); color: #ff9aa6; border: 1px solid rgba(255, 83, 104, .18); }
.steps { margin-top: 1rem; }
.step { padding: 1.35rem; border-radius: 16px; }
.step h3 { letter-spacing: -.02em; }
.step-n { background: rgba(255, 83, 104, .12); color: #ff7182; }
.auth-wrap { min-height: calc(100dvh - 60px); }
.auth-card { border-radius: 20px; padding: 1.5rem; }
.auth-card h1 { letter-spacing: -.04em; }
.toast { background: #1a2030; border-color: #364155; }
dialog.sheet { background: #141925; border-color: #30394b; box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }

@media (min-width: 600px) {
  .landing { max-width: 1060px; padding-top: 2.5rem; }
  .hero { padding-left: 2.5rem; padding-right: 2.5rem; }
}

/* ---------- Ordinateur : deux panneaux côte à côte ---------- */
@media (min-width: 900px) {
  body { font-size: 14px; }
  .topbar { padding: .65rem 1.25rem; }
  .ed-bar { padding: .55rem 1rem; }
  .ed-name { max-width: 340px; }
  #btn-save { margin-left: auto; }
  .ch-head .ed-name { max-width: none; }
  #btn-options { display: none; }
  .ed-options, .editor.options-open .ed-options { display: flex; padding: .45rem 1rem; }
  .ed-options .ed-stats { flex-basis: auto; flex: 1; }
  .ed-body { grid-template-columns: minmax(340px, 2fr) 3fr; }
  #groups-pane, .editor.show-channels #groups-pane { display: flex; border-right: 1px solid var(--line); }
  #channels-pane { display: flex; }
  .only-sm { display: none; }
  .only-lg { display: inline; }
  .page-editor .topbar { display: flex; }
  .ed-banner .only-lg { display: inline; }
  .bulk > span { flex-basis: auto; margin-right: auto; }
  .ch-head #g-orig { flex-basis: auto; order: 0; }
  .list { padding-bottom: 2rem; }
  .row { min-height: 44px; }
  .handle { width: 22px; height: 30px; }
  .row .act-top, .row .act-move { opacity: 0; }
  .row:hover .act-top, .row:hover .act-move, .row:focus-within .act-top, .row:focus-within .act-move { opacity: 1; }
  input[type=checkbox] { width: 17px; height: 17px; }
  input:not([type=checkbox]):not([type=file]) { font-size: 14px; min-height: 38px; }
  .btn { min-height: 38px; }
}
