/* ==================================================================
   Atelier — Espace membre
   Thème full black, accents carmin & or
   ================================================================== */

:root {
  --bg: #040404;
  --bg-deep: #020202;
  --panel: #0a0a0a;
  --panel-2: #0d0d0d;
  --panel-3: #111111;
  --line: #1a1a1a;
  --line-2: #262626;
  --text: #f2ede3;
  --text-soft: #d8d2c7;
  --muted: #8b8780;
  --muted-2: #5f5c56;
  --red: #e02135;
  --red-bright: #ff4759;
  --red-deep: #8d0f20;
  --gold: #f0cd8b;
  --gold-2: #c9974d;
  --green: #7ee2b8;
  --sans: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius: 14px;
  --shadow-red: 0 26px 60px -34px rgba(224, 33, 53, 0.75);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #2a2a2a #050505;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.app-body {
  background:
    radial-gradient(900px 420px at 22% -8%, rgba(141, 15, 32, 0.22), transparent 62%),
    radial-gradient(700px 380px at 92% 4%, rgba(201, 151, 77, 0.06), transparent 60%),
    var(--bg);
  -webkit-user-select: none;
  user-select: none;
}

body.app-body input,
body.app-body textarea,
body.app-body select {
  -webkit-user-select: text;
  user-select: text;
}

body.modal-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.012) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(224, 33, 53, 0.35);
  color: #fff;
}

h1,
h2,
h3,
h4,
p,
dl,
dd {
  margin: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- */
/* Layout                                                            */
/* ---------------------------------------------------------------- */

.container {
  width: min(1580px, 100%);
  margin: 0 auto;
  padding: 0 34px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
  padding: 0 30px;
  background: rgba(4, 4, 4, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(240, 205, 139, 0.35);
  background:
    linear-gradient(145deg, rgba(240, 205, 139, 0.18), rgba(224, 33, 53, 0.16)),
    #0b0b0b;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(240, 205, 139, 0.12);
}

.brand__name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #ece6da;
  white-space: nowrap;
}

.topbar__divider {
  width: 1px;
  height: 22px;
  background: var(--line-2);
}

.topbar__crumb {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.topbar__crumb b {
  color: var(--text-soft);
  font-weight: 600;
}

.topbar__right {
  gap: 10px;
}

.protect-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(126, 226, 184, 0.24);
  background: rgba(126, 226, 184, 0.06);
  color: #a9e9cd;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.protect-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(126, 226, 184, 0.5);
  animation: pulse-green 2.4s ease-out infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(126, 226, 184, 0.45);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(126, 226, 184, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(126, 226, 184, 0);
  }
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #080808;
  min-width: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #5a1520, #21070b);
  border: 1px solid rgba(255, 71, 89, 0.35);
  color: #ffc9cf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.user-chip__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.user-chip__meta b {
  font-size: 11.5px;
  font-weight: 600;
  color: #ece6da;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip__meta span {
  font-size: 9px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------------------------------------------------------------- */
/* Buttons                                                           */
/* ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: #0b0b0b;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.btn:hover {
  border-color: #3a3a3a;
  background: #111;
  color: #fff;
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
}

.btn--ghost {
  background: transparent;
}

.btn--primary {
  border-color: #ff5364;
  background: linear-gradient(180deg, #ed2f43, #ad0f24);
  color: #fff;
  box-shadow: 0 14px 30px -14px rgba(224, 33, 53, 0.8);
}

.btn--primary:hover {
  background: linear-gradient(180deg, #ff3d51, #c01228);
  border-color: #ff7b88;
}

.btn--danger {
  border-color: rgba(224, 33, 53, 0.4);
  color: #ff9aa4;
  background: rgba(224, 33, 53, 0.06);
}

.btn--danger:hover {
  background: rgba(224, 33, 53, 0.14);
  border-color: rgba(224, 33, 53, 0.7);
}

.btn--sm {
  height: 32px;
  padding: 0 11px;
  font-size: 11px;
  border-radius: 8px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #090909;
  color: var(--muted);
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-btn:hover {
  color: #fff;
  border-color: #333;
  background: #111;
}

.icon-btn svg {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------------- */
/* Hero & toolbar                                                    */
/* ---------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 30px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.breadcrumb b {
  color: #cfc9bd;
  font-weight: 600;
}

.breadcrumb span {
  color: #35322d;
}

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 0 26px;
}

.page-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.page-head__eyebrow::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red-bright);
  box-shadow: 0 0 10px rgba(255, 71, 89, 0.8);
}

.page-head h1 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #f7f1e6;
}

.page-head__sub {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.page-head__meta {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 4px;
}

.meta-stat {
  text-align: right;
}

.meta-stat b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  color: #efe9dd;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.meta-stat span {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.search {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 15px;
  height: 15px;
  transform: translateY(-50%);
  color: #57544e;
  pointer-events: none;
}

.search input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 42px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: #080808;
  color: var(--text);
  font-size: 12.5px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.search input::placeholder {
  color: #5a5751;
}

.search input:focus {
  outline: none;
  border-color: rgba(224, 33, 53, 0.65);
  background: #0b0b0b;
  box-shadow: 0 0 0 3px rgba(224, 33, 53, 0.1);
}

.search__clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted-2);
}

.search__clear:hover {
  background: #161616;
  color: #fff;
}

.toolbar__note {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.toolbar__note svg {
  width: 13px;
  height: 13px;
  color: #6f6b64;
}

/* ---------------------------------------------------------------- */
/* Chips                                                             */
/* ---------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 25px;
  border-bottom: 1px solid var(--line);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 37px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #202020;
  background: #080808;
  color: #aaa59c;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.chip svg {
  width: 13px;
  height: 13px;
  opacity: 0.65;
}

.chip:hover {
  border-color: #3b3b3b;
  background: #0e0e0e;
  color: #f0ece3;
}

.chip.is-active {
  border-color: rgba(255, 83, 100, 0.85);
  background: linear-gradient(180deg, #e42a3e, #a90e22);
  color: #fff;
  box-shadow: 0 10px 26px -12px rgba(224, 33, 53, 0.8);
}

.chip.is-active svg {
  opacity: 0.9;
}

.chip__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #77736c;
  font-size: 9.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.chip.is-active .chip__count {
  background: rgba(0, 0, 0, 0.22);
  color: #ffd9dd;
}

/* ---------------------------------------------------------------- */
/* Section head                                                      */
/* ---------------------------------------------------------------- */

.section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 27px 0 15px;
}

.section-head::before {
  content: "";
  width: 4px;
  height: 14px;
  border-radius: 1px;
  background: var(--red);
  box-shadow: 0 0 12px rgba(224, 33, 53, 0.6);
}

.section-head h2 {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d4cec2;
}

.section-head__count {
  margin-left: auto;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- */
/* Cards                                                             */
/* ---------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 17px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  cursor: pointer;
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 33, 53, 0.48);
  box-shadow: var(--shadow-red);
}

.card__logo {
  position: relative;
  display: grid;
  place-items: center;
  height: 156px;
  overflow: hidden;
  border-bottom: 1px solid #1e0b0f;
  background:
    radial-gradient(115% 135% at 50% -5%, #3f0c14 0%, #1d070b 46%, #0a0506 100%);
  isolation: isolate;
}

.card__logo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.028) 0 1px, transparent 1px 37px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 37px);
  mask-image: radial-gradient(75% 90% at 50% 40%, #000 0%, transparent 100%);
  opacity: 0.55;
}

.card__logo::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 260px;
  height: 260px;
  z-index: 0;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 205, 139, 0.15) 0%, rgba(240, 205, 139, 0.03) 45%, transparent 68%);
  filter: blur(6px);
}

.logo-code {
  position: relative;
  z-index: 1;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 43px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-align: center;
  color: transparent;
  background: linear-gradient(180deg, #fff2d2 0%, #f3d49a 34%, #d3a45c 66%, #a97935 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 24px rgba(240, 205, 139, 0.18));
  transition: filter 220ms ease, transform 220ms ease;
}

.card:hover .logo-code {
  filter: drop-shadow(0 8px 30px rgba(240, 205, 139, 0.34));
  transform: translateY(-1px);
}

.logo-code--serif {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 44px;
  letter-spacing: 0.005em;
  text-transform: none;
}

.logo-code--wide {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.26em;
  padding-left: calc(18px + 0.26em);
}

.logo-code--mono {
  font-family: var(--mono);
  font-size: 37px;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.logo-code--long {
  font-size: 29px;
  letter-spacing: 0.1em;
}

.logo-code--wide.logo-code--long {
  font-size: 19px;
  letter-spacing: 0.18em;
}

.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 13px 15px 14px;
}

.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-height: 37px;
  margin-bottom: 9px;
}

.card__title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: #f2ece0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__title .arrow {
  color: #5c5851;
  font-size: 11px;
  margin-left: 3px;
  white-space: nowrap;
}

.tag {
  flex: none;
  padding: 4px 7px;
  border: 1px solid rgba(224, 33, 53, 0.5);
  border-radius: 5px;
  background: rgba(224, 33, 53, 0.075);
  color: #ff98a3;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.meta {
  display: flex;
  flex-direction: column;
}

.meta__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 11px;
  line-height: 1.35;
}

.meta__row:first-child {
  border-top: 0;
}

.meta__row dt {
  flex: none;
  color: #7c7870;
  font-weight: 500;
}

.meta__row dd {
  color: #ddd6c9;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

.meta__row--note dd {
  color: #a49e93;
  font-weight: 500;
  font-size: 10px;
}

.meta__row--progress dd {
  color: #f0a7af;
}

.card__progress {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
}

.card__progress .bar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: #1c1c1c;
  overflow: hidden;
}

.card__progress .bar i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #9c0d1e, #ff4759);
  box-shadow: 0 0 10px rgba(255, 71, 89, 0.5);
  transition: width 260ms ease;
}

.card__progress span {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.card__progress span.is-done {
  color: var(--green);
}

/* ---------------------------------------------------------------- */
/* Empty state                                                       */
/* ---------------------------------------------------------------- */

.empty {
  display: grid;
  place-items: center;
  padding: 90px 20px;
  border: 1px dashed #232323;
  border-radius: var(--radius);
  text-align: center;
}

.empty svg {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  color: #3d3a35;
}

.empty h3 {
  font-size: 15px;
  font-weight: 600;
  color: #cfc9bd;
}

.empty p {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ---------------------------------------------------------------- */
/* Footer                                                            */
/* ---------------------------------------------------------------- */

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding: 20px 34px 30px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #4f4c47;
  letter-spacing: 0.05em;
}

.footer b {
  color: #736e66;
  font-weight: 600;
}

.footer__session {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
  color: #45423d;
}

/* ---------------------------------------------------------------- */
/* Auth                                                              */
/* ---------------------------------------------------------------- */

.auth {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  min-height: 100vh;
}

.auth__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 52px 58px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(900px 600px at 8% 6%, rgba(141, 15, 32, 0.34), transparent 60%),
    radial-gradient(600px 500px at 85% 100%, rgba(201, 151, 77, 0.07), transparent 60%),
    #050505;
}

.auth__brand::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -18%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(240, 205, 139, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 80px rgba(240, 205, 139, 0.025),
    0 0 0 160px rgba(240, 205, 139, 0.018);
  pointer-events: none;
}

.auth__brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 64px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  opacity: 0.45;
  pointer-events: none;
}

.auth__brand-top,
.auth__brand-mid,
.auth__brand-foot {
  position: relative;
  z-index: 1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 13px;
}

.wordmark__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(240, 205, 139, 0.4);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(240, 205, 139, 0.2), rgba(224, 33, 53, 0.16)),
    #0a0a0a;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  box-shadow: inset 0 0 18px rgba(240, 205, 139, 0.12);
}

.wordmark__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.wordmark__text b {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f2ece0;
}

.wordmark__text span {
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.auth__headline {
  margin: 0 0 22px;
  font-size: clamp(44px, 5.4vw, 72px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: #f6f0e4;
}

.auth__headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  color: transparent;
  background: linear-gradient(180deg, #fff0cc, #d2a35c);
  -webkit-background-clip: text;
  background-clip: text;
}

.auth__lead {
  max-width: 440px;
  font-size: 13.5px;
  line-height: 1.7;
  color: #8f8a81;
}

.auth__features {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
}

.auth__features li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11.5px;
  color: #a8a299;
}

.auth__features svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--red-bright);
}

.auth__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #46433e;
}

.auth__foot::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #3a3733;
}

.auth__panel {
  display: grid;
  place-items: center;
  padding: 44px 40px;
  background: #040404;
}

.auth-card {
  width: min(390px, 100%);
}

.auth-card__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-bright);
}

.auth-card__kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--red);
}

.auth-card h1 {
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #f6f0e5;
}

.auth-card__sub {
  margin-top: 9px;
  margin-bottom: 28px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.field {
  margin-bottom: 15px;
}

.field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #8f8a81;
}

.field label span {
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #4d4a45;
}

.input-wrap {
  position: relative;
}

.input {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid #242424;
  border-radius: 9px;
  background: #080808;
  color: #f1ebdf;
  font-size: 13px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input::placeholder {
  color: #4f4c47;
}

.input:focus {
  outline: none;
  border-color: rgba(224, 33, 53, 0.7);
  background: #0b0b0b;
  box-shadow: 0 0 0 3px rgba(224, 33, 53, 0.1);
}

.input-wrap .input {
  padding-right: 44px;
}

.input-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #5c5953;
}

.input-toggle:hover {
  color: #cfc9bd;
  background: #141414;
}

.input-toggle svg {
  width: 15px;
  height: 15px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 17px 0 20px;
  font-size: 11px;
  color: #8b8780;
  cursor: pointer;
  user-select: none;
}

.check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--red);
}

.auth-submit {
  width: 100%;
  height: 47px;
  border: 1px solid #ff5364;
  border-radius: 9px;
  background: linear-gradient(180deg, #ed2f43, #a90e22);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 40px -18px rgba(224, 33, 53, 0.9);
  transition: filter 160ms ease, transform 160ms ease;
}

.auth-submit:hover {
  filter: brightness(1.08);
}

.auth-submit:active {
  transform: translateY(1px);
}

.auth-submit[disabled] {
  opacity: 0.6;
  cursor: wait;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid rgba(224, 33, 53, 0.35);
  border-radius: 8px;
  background: rgba(224, 33, 53, 0.08);
  color: #ffb3bb;
  font-size: 11.5px;
  line-height: 1.5;
}

.form-error svg {
  width: 14px;
  height: 14px;
  flex: none;
  margin-top: 1px;
}

.auth-footnote {
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid #141414;
  font-size: 9.5px;
  line-height: 1.6;
  color: #4a4742;
  text-align: center;
}

.auth-footnote b {
  color: #6e6a63;
  font-weight: 600;
}

.device-pending {
  padding: 10px 0 0;
  text-align: center;
}

.device-pending__spinner {
  width: 46px;
  height: 46px;
  margin: 0 auto 22px;
  border: 2px solid #242424;
  border-top-color: var(--red-bright);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.device-pending h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #f6f0e5;
}

.device-pending__text {
  margin: 10px auto 20px;
  max-width: 330px;
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.device-code {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid #2c2c2c;
  border-radius: 9px;
  background: #080808;
  color: var(--gold);
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.28em;
  padding-left: calc(18px + 0.28em);
}

.device-pending__hint {
  margin: 16px auto 4px;
  max-width: 330px;
  font-size: 10px;
  line-height: 1.6;
  color: #55524c;
}

.device-pending .btn {
  margin-top: 18px;
}

.device-pending.is-denied .device-pending__spinner {
  display: none;
}

.device-pending.is-denied .device-code {
  color: #ff98a3;
  border-color: rgba(224, 33, 53, 0.4);
}

.password-meter {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.password-meter i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: #1c1c1c;
  transition: background 200ms ease;
}

.password-meter[data-score="1"] i:nth-child(-n + 1) {
  background: #a90e22;
}

.password-meter[data-score="2"] i:nth-child(-n + 2) {
  background: #d97706;
}

.password-meter[data-score="3"] i:nth-child(-n + 3) {
  background: #c9974d;
}

.password-meter[data-score="4"] i {
  background: #3fae7d;
}

.password-hint {
  margin-top: 7px;
  font-size: 9.5px;
  color: #55524c;
}

/* ---------------------------------------------------------------- */
/* Modal                                                             */
/* ---------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(740px, 100%);
  max-height: min(86vh, 860px);
  overflow: hidden;
  border: 1px solid #2a2a2a;
  border-radius: 18px;
  background: #070707;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.95);
  animation: modal-in 180ms ease-out;
}

.modal__panel:focus {
  outline: none;
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  min-height: 150px;
  padding: 24px 26px;
  border-bottom: 1px solid #1e0b0f;
  background:
    radial-gradient(120% 150% at 20% 0%, #3b0b13 0%, #1c060a 50%, #0a0506 100%);
  overflow: hidden;
}

.modal__hero::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -100px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 205, 139, 0.16), transparent 65%);
}

.modal__hero-code {
  position: relative;
  z-index: 1;
  flex: none;
  font-size: 54px;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(180deg, #fff2d2, #d3a45c 70%, #a97935);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 8px 30px rgba(240, 205, 139, 0.22));
}

.modal__hero-code.logo-code--wide {
  font-size: 30px;
  letter-spacing: 0.2em;
}

.modal__hero-code.logo-code--serif {
  font-family: var(--serif);
  font-weight: 600;
  text-transform: none;
}

.modal__hero-code.logo-code--mono {
  font-family: var(--mono);
  font-size: 44px;
}

.modal__hero-code.logo-code--long {
  font-size: 32px;
  letter-spacing: 0.06em;
}

.modal__hero-code.logo-code--wide.logo-code--long {
  font-size: 22px;
  letter-spacing: 0.16em;
}

.modal__hero-text {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.modal__hero-text .tag {
  display: inline-block;
  margin-bottom: 9px;
}

.modal__hero-text h2 {
  font-size: 25px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #f7f1e6;
}

.modal__close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #b9b3a8;
  backdrop-filter: blur(6px);
}

.modal__close:hover {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}

.modal__body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal__desc {
  font-size: 12.5px;
  line-height: 1.7;
  color: #a8a299;
}

.modal__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 20px 0 26px;
  border: 1px solid #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  background: #1c1c1c;
}

.modal__stat {
  padding: 12px 13px;
  background: #090909;
}

.modal__stat span {
  display: block;
  margin-bottom: 3px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5d5a54;
}

.modal__stat b {
  font-size: 13px;
  font-weight: 650;
  color: #e7e1d5;
  letter-spacing: -0.01em;
}

.modal__section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.modal__section-title h3 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfc9bd;
}

.modal__section-title span {
  font-size: 9.5px;
  color: #5b5852;
  font-variant-numeric: tabular-nums;
}

.modal__objectives {
  margin: 10px 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.modal__objectives li {
  display: flex;
  gap: 9px;
  font-size: 11.5px;
  line-height: 1.55;
  color: #9d978d;
}

.modal__objectives svg {
  width: 12px;
  height: 12px;
  flex: none;
  margin-top: 3px;
  color: var(--red-bright);
}

.modules {
  border-top: 1px solid #191919;
}

.module {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid #191919;
  cursor: pointer;
  transition: background 140ms ease;
}

.module:hover {
  background: rgba(255, 255, 255, 0.018);
}

.module input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.module__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  border: 1px solid #333;
  border-radius: 6px;
  background: #0a0a0a;
  color: transparent;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.module__check svg {
  width: 11px;
  height: 11px;
}

.module input:checked + .module__check {
  border-color: var(--red);
  background: linear-gradient(180deg, #e42a3e, #a90e22);
  color: #fff;
}

.module input:focus-visible + .module__check {
  outline: 2px solid var(--red-bright);
  outline-offset: 2px;
}

.module__index {
  width: 22px;
  flex: none;
  font-family: var(--mono);
  font-size: 9.5px;
  color: #4a4742;
}

.module__title {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #c8c2b7;
  line-height: 1.4;
}

.module input:checked ~ .module__title {
  color: #746f67;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.2);
}

.module__time {
  flex: none;
  font-size: 9.5px;
  color: #57544e;
  font-variant-numeric: tabular-nums;
}

.modal__progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 14px;
  border: 1px solid #1e1e1e;
  border-radius: 10px;
  background: #090909;
}

.modal__progress .bar {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: #1c1c1c;
  overflow: hidden;
}

.modal__progress .bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #9c0d1e, #ff4759);
  transition: width 260ms ease;
}

.modal__progress span {
  font-size: 10px;
  color: #8b8780;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- */
/* Shield / lock / toasts                                            */
/* ---------------------------------------------------------------- */

.shield {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 2, 2, 0.9);
  backdrop-filter: blur(26px) saturate(0.5);
  animation: shield-in 160ms ease-out;
}

@keyframes shield-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.is-shielded .app-shell,
body.is-locked .app-shell {
  filter: blur(20px) saturate(0.45);
  pointer-events: none;
  user-select: none;
}

body.is-shielded {
  overflow: hidden;
}

.shield__card {
  width: min(440px, 100%);
  padding: 34px 32px;
  border: 1px solid #242424;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 50% 0%, rgba(141, 15, 32, 0.22), transparent 60%),
    #080808;
  text-align: center;
  box-shadow: 0 40px 100px -40px #000;
}

.shield__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 1px solid rgba(240, 205, 139, 0.3);
  border-radius: 14px;
  background: rgba(240, 205, 139, 0.06);
  color: var(--gold);
}

.shield__icon svg {
  width: 25px;
  height: 25px;
}

.shield__card h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f5efe4;
}

.shield__card p {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.65;
  color: #8e8981;
}

.shield__hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  padding: 8px 12px;
  border: 1px solid #222;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d6962;
}

.shield__hint i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.shield__actions {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 22px;
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
  width: min(90vw, 520px);
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 11px 15px;
  border: 1px solid #2d2d2d;
  border-radius: 10px;
  background: rgba(12, 12, 12, 0.96);
  color: #ddd7cb;
  font-size: 11.5px;
  line-height: 1.45;
  box-shadow: 0 20px 50px -18px #000;
  animation: toast-in 200ms ease-out;
  backdrop-filter: blur(12px);
}

.toast svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--red-bright);
}

.toast--warn {
  border-color: rgba(224, 33, 53, 0.45);
  background: rgba(26, 6, 9, 0.96);
}

.toast--ok svg {
  color: var(--green);
}

.toast--out {
  animation: toast-out 180ms ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------------------------------------------------------------- */
/* Watermark                                                         */
/* ---------------------------------------------------------------- */

.watermark {
  position: fixed;
  inset: 0;
  z-index: 75;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: watermark-drift 80s ease-in-out infinite alternate;
}

@keyframes watermark-drift {
  from {
    transform: translate3d(-10px, -6px, 0);
  }
  to {
    transform: translate3d(12px, 8px, 0);
  }
}

/* ---------------------------------------------------------------- */
/* Admin                                                             */
/* ---------------------------------------------------------------- */

.admin-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 26px;
}

.admin-head h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 18px;
  align-items: start;
}

.admin-grid--spaced {
  margin-top: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
}

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.panel__head h2 {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cfc9bd;
}

.panel__head span {
  font-size: 9.5px;
  color: var(--muted-2);
}

.panel__body {
  padding: 18px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    #090909;
}

.stat-card b {
  display: block;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: #f1ebdf;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.table th {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5d5a54;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 11px 10px;
  border-bottom: 1px solid #141414;
  color: #b8b2a7;
  vertical-align: middle;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table .mono {
  font-family: var(--mono);
  font-size: 10px;
  color: #77736c;
}

.role-pill {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 5px;
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b8780;
}

.role-pill--admin {
  border-color: rgba(240, 205, 139, 0.3);
  background: rgba(240, 205, 139, 0.06);
  color: var(--gold);
}

.role-pill--warn {
  border-color: rgba(224, 33, 53, 0.45);
  background: rgba(224, 33, 53, 0.08);
  color: #ff98a3;
}

.table-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid .field {
  margin-bottom: 0;
}

.form-grid .input {
  height: 42px;
  font-size: 12px;
}

.form-grid select.input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6c6860 50%),
    linear-gradient(135deg, #6c6860 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 12px) 18px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.audit-list {
  display: flex;
  flex-direction: column;
  max-height: 520px;
  overflow-y: auto;
}

.audit-item {
  display: grid;
  grid-template-columns: 118px 1fr auto;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 1px solid #141414;
  font-size: 10px;
  align-items: baseline;
}

.audit-item:last-child {
  border-bottom: 0;
}

.audit-item time {
  font-family: var(--mono);
  font-size: 8.8px;
  color: #4f4c47;
  white-space: nowrap;
}

.audit-item .event {
  color: #b3ada2;
  overflow-wrap: anywhere;
}

.audit-item .event b {
  color: #ddd6c9;
  font-weight: 600;
}

.audit-item .who {
  color: #5d5a54;
  font-family: var(--mono);
  font-size: 8.8px;
  white-space: nowrap;
}

.audit-item--warn .event b {
  color: #ff98a3;
}

.admin-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #1e1e1e;
  border-radius: 9px;
  background: #080808;
  font-size: 10px;
  line-height: 1.6;
  color: #6d6962;
}

.admin-note b {
  color: #98928a;
  font-weight: 600;
}

/* ---------------------------------------------------------------- */
/* Responsive                                                        */
/* ---------------------------------------------------------------- */

@media (max-width: 1180px) {
  .topbar__crumb {
    display: none;
  }

  .topbar__divider {
    display: none;
  }

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

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  }
}

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

  .auth__brand {
    min-height: 0;
    padding: 30px 32px 26px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .auth__brand-mid {
    padding-top: 30px;
  }

  .auth__headline {
    font-size: 40px;
    margin-bottom: 12px;
  }

  .auth__lead {
    font-size: 12px;
  }

  .auth__features,
  .auth__foot {
    display: none;
  }

  .auth__panel {
    padding: 32px 24px 48px;
    place-items: start center;
  }

  .auth-card {
    margin-top: 10px;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .page-head__meta {
    gap: 22px;
    padding-bottom: 0;
  }

  .meta-stat {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 18px;
  }

  .topbar {
    padding: 0 16px;
    height: 58px;
  }

  .brand__name {
    display: none;
  }

  .protect-pill span:not(.protect-pill__dot) {
    display: none;
  }

  .protect-pill {
    padding: 0 9px;
  }

  .user-chip__meta {
    display: none;
  }

  .user-chip {
    padding-right: 4px;
  }

  .topbar__right {
    gap: 7px;
  }

  .breadcrumb {
    padding-top: 22px;
  }

  .page-head {
    padding: 16px 0 22px;
  }

  .page-head h1 {
    font-size: 40px;
  }

  .toolbar {
    flex-wrap: wrap;
  }

  .search {
    max-width: none;
    flex-basis: 100%;
  }

  .toolbar__note {
    margin-left: 0;
  }

  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -18px;
    padding: 0 18px 20px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card__logo {
    height: 142px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 18px 26px;
  }

  .modal {
    padding: 0;
    align-items: end;
  }

  .modal__panel {
    max-height: 92vh;
    border-radius: 18px 18px 0 0;
    border-bottom: 0;
  }

  .modal__hero {
    padding: 20px;
    min-height: 128px;
    gap: 14px;
  }

  .modal__hero-code {
    font-size: 38px;
  }

  .modal__hero-text h2 {
    font-size: 19px;
  }

  .modal__body {
    padding: 18px 20px 24px;
  }

  .modal__stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .panel__body {
    padding: 14px;
  }

  .table {
    font-size: 10.5px;
  }

  .table th,
  .table td {
    padding: 8px 6px;
  }

  .table th:nth-child(3),
  .table td:nth-child(3),
  .table th:nth-child(4),
  .table td:nth-child(4) {
    display: none;
  }

  .audit-item {
    grid-template-columns: 95px 1fr;
  }

  .audit-item .who {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------------------------------------------------------------- */
/* Print — rien ne doit sortir                                       */
/* ---------------------------------------------------------------- */

@media print {
  html,
  body {
    display: none !important;
    background: #fff !important;
  }
}
