@font-face {
  font-family: "Inter 8h02";
  src: url("./fonts/inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("./fonts/clash-display-medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Clash Display";
  src: url("./fonts/clash-display-semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Charte 8h02 — base neutre, accents de marque équilibrés */
  --brand-coral: #d56770;
  --brand-blue: #5868a5;
  --brand-lime: #c9d35d;
  --brand-violet: #50497d;
  --brand-mint: #edf2e8;
  --brand-lilac: #ded9eb;
  --brand-blush: #f8e8ea;
  --brand-cream: #f2efd5;

  --black: #171716;
  --white: #fff;
  --canvas: #f3f2ed;
  --surface-soft: #f8f7f3;
  --text-muted: #65625d;
  --border: #d8d4cc;
  --border-strong: #bcb7ae;
  --light-silver: var(--canvas);
  --silver: var(--border);
  --lila: var(--brand-lilac);
  --lime: var(--brand-lime);
  --brass: var(--brand-cream);
  --electric-blue: var(--brand-blue);
  --avocado: var(--black);
  --smart-green: var(--brand-violet);
  --rose: var(--brand-blush);
  --lichen: var(--brand-lilac);
  --carmin: #a6404b;
  --horizon: var(--brand-cream);
  --tangerine: var(--brand-coral);
  --sidebar: 246px;
  --radius: 18px;
  --shadow: 0 14px 40px rgb(23 23 22 / 8%);
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  background: var(--light-silver);
}

body {
  margin: 0;
  color: var(--black);
  background: var(--light-silver);
  font-family: "Inter 8h02", Inter, sans-serif;
  font-size: 15px;
}

.static-file-warning {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--black);
  box-shadow: 0 8px 24px rgb(0 0 0 / 24%);
}

.static-file-warning[hidden] {
  display: none;
}

.static-file-warning div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.static-file-warning strong {
  font-weight: 800;
}

.static-file-warning span {
  color: var(--brand-mint);
}

.static-file-warning-link {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--brand-violet);
  background: var(--brand-lime);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 720px) {
  .static-file-warning {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

.simple-body {
  min-height: 100vh;
  background: var(--canvas);
}

.simple-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.simple-brand {
  color: var(--black);
  font-family: "Clash Display";
  font-size: 19px;
  font-weight: 600;
  text-decoration: none;
}

.simple-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--black);
  font-size: 13px;
}

.simple-nav-links a {
  color: inherit;
  text-decoration: none;
}

.simple-nav-links .logout-link {
  color: var(--brand-coral);
}

.simple-main {
  width: min(100% - 40px, 940px);
  margin: 0 auto;
  padding: 42px 0 64px;
}

.download-page {
  display: grid;
  gap: 28px;
}

.download-header .eyebrow,
.history-page > .eyebrow {
  color: var(--brand-coral);
}

.download-header h1,
.history-page h1 {
  margin: 8px 0 0;
  font-size: clamp(34px, 5vw, 52px);
}

.download-header p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--text-muted);
  line-height: 1.65;
}

.download-page .data-disclosure {
  margin-bottom: 0;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.download-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.platform-pill {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 99px;
  background: var(--brand-mint);
  font-size: 11px;
  font-weight: 760;
}

.platform-pill.windows {
  background: var(--brand-lilac);
}

.download-card h2 {
  margin: 18px 0 0;
}

.download-card p {
  min-height: 72px;
  margin: 9px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.download-button {
  display: inline-flex;
  margin-top: 22px;
  padding: 12px 18px;
  border-radius: 12px;
  color: var(--brand-violet);
  background: var(--brand-lime);
  font-weight: 720;
  text-decoration: none;
}

.download-button.windows {
  color: var(--white);
  background: var(--brand-blue);
}

.download-note {
  padding: 20px;
  border: 1px solid var(--brand-cream);
  border-radius: 18px;
  background: var(--brand-cream);
  font-size: 14px;
  line-height: 1.65;
}

.history-page h1 {
  margin-bottom: 24px;
}

.history-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--white);
}

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

.history-table th,
.history-table td {
  padding: 13px 15px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.history-table thead {
  background: var(--surface-soft);
}

.history-table thead th {
  border-top: 0;
}

.history-table .muted {
  color: var(--text-muted);
}

.status-ok {
  color: var(--brand-violet);
}

.status-error {
  color: var(--brand-coral);
}

.history-empty {
  padding: 28px !important;
  color: var(--text-muted);
  text-align: center !important;
}

@media (max-width: 720px) {
  .simple-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .simple-nav-links {
    flex-wrap: wrap;
  }

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  width: var(--sidebar);
  flex-direction: column;
  padding: 28px 20px 20px;
  border-right: 1px solid var(--border);
  background: var(--white);
}

.brand {
  display: flex;
  min-height: 50px;
  align-items: center;
  margin: 0 9px 34px;
}

.brand img {
  width: auto;
  height: 58px;
}

.brand-name {
  margin-left: 12px;
  font-family: "Clash Display";
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.nav-label {
  margin: 16px 12px 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: grid;
  gap: 4px;
}

.nav-button {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  color: var(--black);
  background: transparent;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}

.nav-button:hover {
  background: var(--surface-soft);
}

.nav-button.active {
  color: var(--black);
  background: var(--lime);
  font-weight: 680;
}

.nav-button .icon,
.icon-button .icon,
.search-icon,
.card-icon svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.nav-button .soon {
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 99px;
  background: var(--light-silver);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.main {
  min-height: 100vh;
  margin-left: var(--sidebar);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  height: 78px;
  align-items: center;
  gap: 18px;
  padding: 0 38px;
  border-bottom: 1px solid var(--border);
  background: rgb(243 242 237 / 92%);
  backdrop-filter: blur(18px);
}

.mobile-menu {
  display: none;
}

.global-search {
  position: relative;
  width: min(580px, 56vw);
}

.global-search input {
  width: 100%;
  height: 46px;
  padding: 0 96px 0 45px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: var(--white);
}

.search-icon {
  position: absolute;
  top: 13px;
  left: 16px;
}

.shortcut {
  position: absolute;
  top: 11px;
  right: 12px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-muted);
  background: var(--surface-soft);
  font-size: 11px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.account-link {
  padding: 9px 13px;
  border: 1px solid rgb(0 0 0 / 20%);
  border-radius: 99px;
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.account-link:hover {
  color: var(--white);
  background: var(--black);
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--border);
  background: var(--white);
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--smart-green);
  font-weight: 740;
}

.profile strong,
.profile small {
  display: block;
}

.profile small {
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 11px;
}

.content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 42px 42px 80px;
}

.screen {
  display: none;
}

.screen.active {
  display: block;
  animation: screen-in 180ms ease-out;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

.eyebrow {
  margin-bottom: 9px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1,
h2 {
  font-family: "Clash Display", "Inter 8h02", sans-serif;
  font-weight: 600;
}

h1 {
  max-width: 780px;
  font-size: clamp(38px, 4.4vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

h2 {
  font-size: 27px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 16px;
  font-weight: 720;
}

p {
  line-height: 1.55;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.heading-copy {
  max-width: 630px;
  margin: 15px 0 0;
  color: var(--text-muted);
}

.primary,
.secondary,
.ghost,
.text-button {
  min-height: 44px;
  border-radius: 99px;
  cursor: pointer;
  font-weight: 680;
}

.primary {
  padding: 0 20px;
  border: 1px solid var(--black);
  color: var(--black);
  background: var(--lime);
}

.primary:hover {
  background: #b7c249;
}

.secondary {
  padding: 0 20px;
  border: 1px solid var(--black);
  color: var(--white);
  background: var(--black);
}

.ghost {
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  color: var(--black);
  background: var(--white);
}

.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 286px;
  padding: 42px;
  border-radius: 26px;
  background: var(--lila);
  box-shadow: inset 0 0 0 1px rgb(23 23 22 / 7%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -75px;
  bottom: -165px;
  width: 390px;
  height: 300px;
  border: 72px solid rgb(0 0 0 / 9%);
  border-bottom: 0;
  border-radius: 140px 140px 0 0;
  transform: rotate(-8deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero p {
  max-width: 560px;
  margin: 19px 0 26px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 42px 0 18px;
}

.quick-grid,
.resource-grid,
.metric-grid,
.tool-grid {
  display: grid;
  gap: 16px;
}

.quick-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.quick-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 25px;
  border: 1px solid rgb(23 23 22 / 13%);
  border-radius: var(--radius);
  cursor: pointer;
}

.quick-card.print {
  background: var(--lila);
}

.quick-card.ai {
  color: var(--white);
  background: var(--smart-green);
}

.quick-card.automation {
  min-height: 230px;
  color: var(--black);
  background: var(--brand-cream);
}

.quick-card-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.quick-card-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--brand-violet);
  background: rgb(255 255 255 / 50%);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.quick-card-action.primary-action {
  color: var(--white);
  background: var(--brand-violet);
}

.quick-card-action:hover {
  transform: translateY(-1px);
}

.quick-card .arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 20px;
}

.quick-card p {
  max-width: 390px;
  margin: 12px 0 0;
  opacity: 0.78;
}

.quick-card .number {
  position: absolute;
  right: 24px;
  bottom: 15px;
  font-family: "Clash Display";
  font-size: 66px;
  opacity: 0.12;
}

.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.resource-card,
.panel,
.metric,
.run-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

.resource-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 20px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.resource-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--lila);
}

.card-icon.ai {
  color: var(--white);
  background: var(--smart-green);
}

.card-icon.marketing {
  background: var(--rose);
}

.card-icon.productivite {
  color: var(--white);
  background: var(--brand-violet);
}

.card-icon.automation {
  color: var(--white);
  background: var(--carmin);
  font-weight: 800;
}

.favorite {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: var(--light-silver);
  cursor: pointer;
  font-size: 19px;
}

.resource-card h3 {
  margin-top: 20px;
}

.resource-card p {
  margin: 8px 0 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.resource-card a.text-button {
  color: inherit;
}

.empty-state {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
}

.empty-state p {
  max-width: 560px;
  margin: 12px auto 0;
  color: var(--text-muted);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.meta,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 99px;
  background: var(--light-silver);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 620;
}

.badge.live {
  color: var(--black);
  background: rgb(201 211 93 / 48%);
}

.badge.preparing {
  color: var(--smart-green);
  background: var(--horizon);
}

.badge.new {
  color: var(--carmin);
  background: rgb(217 93 102 / 18%);
}

.data-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .01em;
}

.data-badge.local {
  color: var(--black);
  background: rgb(201 211 93 / 48%);
}

.data-badge.temporary {
  color: var(--brand-violet);
  background: var(--brand-cream);
}

.data-badge.external {
  color: var(--carmin);
  background: rgb(217 93 102 / 22%);
}

.data-badge.pending {
  color: var(--text-muted);
  background: var(--light-silver);
}

.data-disclosure {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  margin: 0 0 24px;
  padding: 20px;
  border: 1px solid;
  border-radius: 18px;
}

.data-disclosure.local {
  border-color: rgb(200 211 93 / 80%);
  background: var(--brand-cream);
}

.data-disclosure.temporary {
  border-color: var(--brand-lilac);
  background: var(--brand-mint);
}

.data-disclosure.external {
  border-color: rgb(217 93 102 / 52%);
  background: var(--brand-blush);
}

.data-disclosure-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-violet);
  font-size: 20px;
  font-weight: 800;
}

.data-disclosure strong,
.data-disclosure p {
  display: block;
}

.data-disclosure strong {
  margin-top: 9px;
  font-size: 16px;
}

.data-disclosure p {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.data-disclosure-detail {
  font-size: 12px;
}

.privacy-promise {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 28px;
  padding: 18px 20px;
  border: 1px solid rgb(201 211 93 / 72%);
  border-radius: 18px;
  background: var(--brand-cream);
}

.privacy-promise strong,
.privacy-promise p {
  display: block;
}

.privacy-promise p {
  margin: 5px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.resource-card > .data-badge {
  margin: auto 0 16px;
}

.external-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgb(217 93 102 / 45%);
  border-radius: 12px;
  background: var(--brand-blush);
  font-size: 13px;
  line-height: 1.5;
}

.external-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--brand-violet);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 24px;
}

.filter {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
}

.filter.active {
  border-color: var(--black);
  color: var(--white);
  background: var(--black);
}

.catalog-hero {
  display: flex;
  min-height: 210px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
  padding: 32px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgb(23 23 22 / 7%);
}

.catalog-hero.print {
  background: var(--lila);
}

.catalog-hero.ai {
  color: var(--white);
  background: var(--smart-green);
}

.catalog-hero.productivite {
  color: var(--white);
  background: var(--brand-violet);
}

.catalog-hero.automatisations {
  color: var(--black);
  background: var(--brand-cream);
}

.catalog-hero h1 {
  font-size: clamp(40px, 5vw, 70px);
}

.catalog-hero .hero-stat {
  min-width: 150px;
  padding: 20px;
  border-radius: 16px;
  background: rgb(255 255 255 / 34%);
}

.catalog-hero.ai .hero-stat,
.catalog-hero.productivite .hero-stat,
.catalog-hero.automatisations .hero-stat {
  background: rgb(255 255 255 / 12%);
}

.hero-stat strong {
  display: block;
  font-family: "Clash Display";
  font-size: 38px;
}

.tool-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-grid .resource-card {
  min-height: 250px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0;
}

.step {
  position: relative;
  padding-top: 23px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
}

.step::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--silver);
}

.step::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 0 1px var(--silver);
}

.step.done,
.step.current {
  color: var(--black);
}

.step.done::before,
.step.done::after,
.step.current::after {
  background: var(--smart-green);
}

.step.current::after {
  box-shadow: 0 0 0 4px var(--lime);
}

.run-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
  gap: 20px;
}

.panel,
.run-card {
  padding: 24px;
}

.dropzone {
  display: grid;
  min-height: 235px;
  place-items: center;
  padding: 26px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 15px;
  background: var(--light-silver);
  text-align: center;
}

.drop-symbol {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--lime);
  font-size: 26px;
}

.constraint-list {
  display: grid;
  gap: 13px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.constraint-list li {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.constraint-list li::before {
  content: "✓";
  color: var(--smart-green);
  font-weight: 800;
}

.prompt-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 17px;
}

.field label {
  font-size: 12px;
  font-weight: 720;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: var(--white);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.privacy-note {
  margin: 0 0 19px;
  padding: 13px 14px;
  border-left: 4px solid var(--tangerine);
  background: rgb(217 93 102 / 9%);
  font-size: 12px;
  line-height: 1.45;
}

.preview {
  min-height: 490px;
  color: var(--white);
  background: var(--smart-green);
}

.preview-label {
  color: var(--lime);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prompt-output {
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 15px;
  background: rgb(0 0 0 / 12%);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-line;
}

.preview .primary {
  border-color: var(--lime);
}

.metric-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
}

.metric {
  padding: 19px;
}

.metric span {
  color: var(--text-muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-family: "Clash Display";
  font-size: 34px;
}

.metric small {
  color: var(--brand-violet);
  font-weight: 680;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 18px;
}

.table-loading {
  color: var(--text-muted);
  text-align: center;
}

.user-actions {
  text-align: right;
}

.delete-user-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgb(217 93 102 / 55%);
  border-radius: 99px;
  color: #9f3540;
  background: var(--brand-blush);
  cursor: pointer;
  font-size: 11px;
  font-weight: 720;
}

.delete-user-button:hover {
  color: var(--white);
  background: #9f3540;
}

.delete-user-button:disabled {
  cursor: wait;
  opacity: .6;
}

.badge.invited {
  color: var(--black);
  background: var(--brand-cream);
}

.invite-dialog {
  width: min(92vw, 560px);
  padding: 0;
  border: 1px solid rgb(0 0 0 / 14%);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 26px 80px rgb(0 0 0 / 24%);
}

.invite-dialog::backdrop {
  background: rgb(0 0 0 / 58%);
  backdrop-filter: blur(3px);
}

.invite-form {
  padding: 30px;
}

.invite-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.invite-heading h2 {
  margin: 6px 0 8px;
  font-size: 32px;
}

.invite-heading p {
  max-width: 430px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.dialog-close {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.invite-form .field > span {
  font-size: 12px;
  font-weight: 720;
}

.form-message {
  margin-bottom: 17px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.form-message.error {
  color: var(--carmin);
  background: rgb(217 93 102 / 12%);
}

.invite-form .primary {
  width: 100%;
}

.invite-success {
  text-align: center;
}

.success-mark {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: var(--black);
  background: var(--lime);
  font-size: 26px;
  font-weight: 800;
}

.invite-success h3 {
  margin: 0 0 8px;
  font-family: "Clash Display";
  font-size: 30px;
}

.invite-success > p {
  margin: 0 auto 20px;
  color: var(--text-muted);
  font-size: 13px;
}

.credential-box {
  display: grid;
  gap: 6px;
  margin-bottom: 20px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--light-silver);
  text-align: left;
}

.manual-invite-link {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--white);
  text-align: left;
}

.manual-invite-link span {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.manual-invite-link input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-soft);
}

.credential-box span {
  margin-top: 7px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.credential-box strong,
.credential-box code {
  overflow-wrap: anywhere;
  color: var(--black);
  font-size: 15px;
}

.table-wrap {
  overflow-x: auto;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

td {
  font-size: 13px;
}

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

.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--horizon);
  font-size: 11px;
  font-weight: 750;
}

.activity-list {
  display: grid;
  gap: 18px;
  margin-top: 20px;
}

.activity {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 10px;
  font-size: 12px;
}

.activity::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--lime);
}

.activity p {
  margin: 0;
}

.activity time {
  color: var(--text-muted);
}

.login-screen {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1.08fr 0.92fr;
  background: var(--light-silver);
}

.login-brand {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px;
  color: var(--black);
  background: var(--lila);
}

.login-brand img {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  flex: 0 0 auto;
  width: auto;
  height: 116px;
  object-fit: contain;
  object-position: left top;
}

.login-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.login-brand h1 {
  font-size: clamp(48px, 7vw, 98px);
}

.login-brand p {
  max-width: 490px;
  color: rgb(17 17 17 / 72%);
}

.brand-shape {
  position: absolute;
  right: -45px;
  bottom: -45px;
  width: 220px;
  height: 220px;
  background-image: url("/atelier/assets/8h02-logo-lime.png?v=20260829-mark");
  background-repeat: no-repeat;
  background-position: 8% 6%;
  background-size: 600% auto;
  opacity: 0.5;
  pointer-events: none;
}

.login-form-wrap {
  display: grid;
  place-items: center;
  padding: 44px;
}

.login-form {
  width: min(420px, 100%);
}

.login-form h2 {
  margin-bottom: 12px;
  font-size: 42px;
}

.login-form > p {
  margin-bottom: 32px;
  color: var(--text-muted);
}

.login-form .primary {
  width: 100%;
  margin-top: 8px;
}

.login-footer {
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  :root {
    --sidebar: 86px;
  }

  .sidebar {
    padding-right: 13px;
    padding-left: 13px;
  }

  .brand {
    justify-content: center;
    margin-right: 0;
    margin-left: 0;
  }

  .brand img {
    width: auto;
    height: 46px;
    object-fit: contain;
  }

  .brand-name {
    display: none;
  }

  .nav-button {
    justify-content: center;
  }

  .nav-button span:not(.icon),
  .nav-label {
    display: none;
  }

  .resource-grid,
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  :root {
    --sidebar: 0px;
  }

  .sidebar {
    display: none;
  }

  .main {
    margin-left: 0;
  }

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

  .mobile-menu {
    display: grid;
  }

  .global-search {
    flex: 1;
    width: auto;
  }

  .shortcut,
  .profile-copy,
  .top-actions > .icon-button {
    display: none;
  }

  .profile {
    margin-left: 0;
    padding-left: 0;
    border: 0;
  }

  .content {
    padding: 28px 17px 90px;
  }

  .page-heading,
  .catalog-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-grid,
  .resource-grid,
  .tool-grid,
  .run-layout,
  .prompt-layout,
  .admin-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 24px;
  }

  .hero::after {
    opacity: 0.5;
  }

  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-brand {
    min-height: 310px;
    padding: 32px 26px;
  }

  .login-brand img {
    width: auto;
    height: 96px;
  }

  .login-brand h1 {
    font-size: 54px;
  }

  .login-brand p {
    display: none;
  }

  .login-form-wrap {
    padding: 40px 24px 100px;
  }
}

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