.admin { background: var(--panel); }
.abar { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 1px solid var(--border); }
.abar__row { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 36px); min-height: 76px; }
.abar .nav__logo { color: var(--ink); }
.abar .logo img { position: static; width: 38px; height: auto; }
.abar .logo { width: 38px; height: auto; }
.atabs { display: flex; gap: 4px; margin-inline-start: auto; padding: 4px; border-radius: var(--r-pill); background: var(--panel); }
.atabs button { min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--r-pill); background: transparent; font-weight: 700; color: var(--body); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.atabs button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 4px rgba(15, 23, 42, .12); }
.abar__site { min-height: 46px; padding: 0 22px; }
.amain { padding-block: clamp(24px, 4vw, 48px) clamp(64px, 8vw, 120px); }
.demo-note { padding: 14px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); color: var(--body); font-size: 1rem; }
.demo-note strong { color: var(--ink); }
.apanel { margin-top: clamp(24px, 3vw, 40px); padding-block: 0; }
.apanel h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; }
.apanel h1:focus { outline: none; }
.agrid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.alist__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.acount { color: var(--muted); font-weight: 500; }
.alist { list-style: none; padding: 0; margin-top: 24px; border-top: 1px solid var(--ink); }
.aitem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 12px; border-bottom: 1px solid var(--rule); transition: background-color .2s var(--ease); }
.aitem.is-editing { background: var(--white); box-shadow: inset 4px 0 0 var(--soft-blue); }
.aitem__txt { display: flex; flex-direction: column; min-width: 0; }
.aitem__txt strong { font-size: 1.1875rem; line-height: 1.3; }
.aitem__sector { font-size: .8125rem; font-weight: 700; color: var(--accent); }
.aitem__meta { font-size: .9375rem; color: var(--muted); }
.aitem__btns { display: flex; gap: 8px; }
.pill--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.pill--danger { color: var(--error); border-color: var(--error); background: transparent; }
.pill--danger:hover { background: var(--error); color: var(--white); }
.aempty { padding: 28px 0; color: var(--muted); }
.atools { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; }
.linkbtn { padding: 6px 0; border: 0; background: none; font-weight: 700; font-size: .9375rem; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.aform { position: sticky; top: 100px; }
.aform[hidden] { display: none; }
.aform.is-entering { animation: groupIn .35s var(--ease) both; }
.aform__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aform__head h2 { font-size: 1.5rem; }
.pair { display: grid; gap: 10px; margin: 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--border); min-width: 0; }
.pair legend { padding: 0; font-weight: 700; float: left; width: 100%; margin-bottom: 4px; }
.pair .field label { font-size: .875rem; color: var(--muted); font-weight: 500; }
.pair .field input, .pair .field textarea { min-height: 46px; }
.opt { font-weight: 500; color: var(--muted); font-size: .875rem; }
.field[dir="rtl"] input, .field[dir="rtl"] textarea, .field[dir="rtl"] label { font-family: var(--font-rtl); }
.tuto { list-style: none; padding: 0; margin-top: 32px; max-width: 860px; border-top: 1px solid var(--rule); }
.tuto li { display: grid; grid-template-columns: clamp(56px, 6vw, 80px) minmax(0, 1fr); gap: 16px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.tuto h2 { font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.2; }
.tuto p { margin-top: 8px; color: var(--body); max-width: 60ch; }
.tuto code { padding: 2px 6px; border-radius: 6px; background: var(--white); font-size: .9375rem; }
.tuto__help { margin-top: 32px; max-width: 860px; }
.tuto__help h2 { font-size: 1.25rem; }
.tuto__help p { margin-top: 6px; color: var(--body); }
.toast { position: fixed; inset-inline: 0; bottom: 24px; z-index: 60; width: fit-content; max-width: calc(100% - 32px); margin-inline: auto; padding: 14px 22px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); font-weight: 500; box-shadow: 0 10px 30px rgba(15, 23, 42, .25); }
.toast.is-in { animation: groupIn .35s var(--ease) both; }
.apanel.is-entering { animation: viewIn .45s var(--ease) both; }
@media (max-width: 980px) {
  .agrid { grid-template-columns: minmax(0, 1fr); }
  .aform { position: static; }
}
@media (max-width: 560px) {
  .abar__row { flex-wrap: wrap; padding-block: 10px; }
  .atabs { order: 3; width: 100%; margin-inline-start: 0; }
  .atabs button { flex: 1; }
  .abar__site { margin-inline-start: auto; padding: 0 16px; min-height: 40px; font-size: .9375rem; }
  .aitem__btns { width: 100%; }
  .aitem__btns .pill { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .aform.is-entering, .toast.is-in, .apanel.is-entering { animation: none; } }
