:root {
  --ink: #141326;
  --muted: #667085;
  --line: #e1e6ee;
  --panel: #ffffff;
  --soft: #f6f3ee;
  --deep: #11133b;
  --deep-2: #123746;
  --cyan: #00a8c8;
  --green: #18885f;
  --gold: #b88909;
  --gold-soft: #f1dfb7;
  --pink: #c33a78;
  --violet: #6652ff;
  --coral: #eb6f5f;
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(19, 24, 65, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(17, 19, 59, 0.06), transparent 32rem),
    radial-gradient(ellipse at 10% 0%, rgba(0, 168, 200, 0.16), transparent 34rem),
    radial-gradient(ellipse at 85% 10%, rgba(235, 111, 95, 0.12), transparent 30rem),
    linear-gradient(130deg, rgba(255, 255, 255, 0.58), rgba(184, 137, 9, 0.09)),
    var(--soft);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    linear-gradient(rgba(17, 19, 59, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 59, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.78), transparent 78%);
}

body::after {
  background:
    conic-gradient(from 145deg at 18% 28%, transparent 0deg, rgba(0, 168, 200, 0.19) 60deg, transparent 125deg),
    conic-gradient(from 310deg at 80% 12%, transparent 0deg, rgba(195, 58, 120, 0.17) 70deg, transparent 140deg),
    conic-gradient(from 30deg at 56% 92%, transparent 0deg, rgba(24, 136, 95, 0.13) 58deg, transparent 125deg);
  filter: blur(28px);
  opacity: 0.86;
  animation: ambient-drift 16s ease-in-out infinite alternate;
}

body.body-locked {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0, 141, 184, 0.13);
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(17, 20, 60, 0.94), rgba(22, 49, 68, 0.9)),
    url("https://aivancity.ai/sites/default/files/styles/webp_banner/public/2026-02/home-cover-aivancity.jpg.webp?itok=7OR4l7kg")
      center/cover;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(17, 20, 60, 0.82);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.aiv-logo {
  display: inline-flex;
  align-items: baseline;
  width: fit-content;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.aiv-logo-ai {
  color: var(--gold);
}

.auth-logo {
  font-size: 2.6rem;
}

.auth-card h1,
.auth-card p {
  margin: 0;
}

.auth-card h1 {
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1;
}

.auth-card p,
.auth-card small {
  color: #dfe7ff;
  line-height: 1.55;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.app-shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  display: grid;
  grid-template-columns: 284px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 18px;
  color: #eef2ff;
  background:
    linear-gradient(180deg, rgba(17, 19, 59, 0.96), rgba(18, 55, 70, 0.95)),
    url("https://aivancity.ai/sites/default/files/styles/webp_banner/public/2026-02/home-cover-aivancity.jpg.webp?itok=7OR4l7kg")
      center/cover;
  overflow-y: auto;
}

.sidebar::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, transparent 0 28%, rgba(0, 168, 200, 0.2) 36%, transparent 46% 100%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 22px 22px;
  content: "";
  opacity: 0.7;
  animation: sidebar-sheen 9s ease-in-out infinite alternate;
}

.brand,
.nav-list,
.sidebar-account {
  position: relative;
  z-index: 1;
}

.brand {
  display: grid;
  gap: 14px;
  padding: 8px 8px 26px;
}

.brand-logo-image {
  width: 188px;
  max-width: 100%;
  height: auto;
}

.brand-subtitle {
  width: fit-content;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #dfe7ff;
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.08);
}

.nav-list {
  display: grid;
  gap: 6px;
  padding-bottom: 18px;
}

.nav-item {
  width: 100%;
  min-height: 42px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #dfe4ff;
  background: transparent;
  text-align: left;
  line-height: 1.25;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nav-item:hover,
.nav-item.active {
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
}

.nav-item.active {
  box-shadow: inset 3px 0 0 var(--gold);
  transform: translateX(2px);
}

.sidebar-account {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(12px);
}

.sidebar-account .profile {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sidebar-account .profile small {
  color: #d6def2;
}

.sidebar-account .secondary-button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.workspace {
  position: relative;
  min-width: 0;
  padding: 22px clamp(18px, 3vw, 36px) 36px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: -22px calc(clamp(18px, 3vw, 36px) * -1) 24px;
  padding: 16px clamp(18px, 3vw, 36px);
  border-bottom: 1px solid rgba(221, 228, 239, 0.86);
  background: rgba(246, 243, 238, 0.76);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: grid;
  gap: 2px;
}

.topbar-title span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topbar-title strong {
  font-size: 1rem;
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.document-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px 6px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.avatar,
.tool-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--deep-2));
  font-size: 0.78rem;
  font-weight: 800;
  overflow: hidden;
}

.profile small {
  display: block;
  color: var(--muted);
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--deep), var(--deep-2));
  background-size: 180% 180%;
  box-shadow: 0 12px 28px rgba(17, 19, 59, 0.18);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-position 220ms ease;
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--deep);
  background: #fff;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:hover {
  background-position: 100% 50%;
  box-shadow: 0 16px 36px rgba(17, 19, 59, 0.22);
}

.secondary-button:hover {
  border-color: rgba(0, 168, 200, 0.35);
  box-shadow: 0 12px 26px rgba(19, 24, 65, 0.08);
}

.compact-button {
  min-height: 46px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-landing {
  display: grid;
  gap: 18px;
}

.landing-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 470px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(115deg, rgba(17, 19, 59, 0.98), rgba(18, 55, 70, 0.88) 48%, rgba(184, 137, 9, 0.34)),
    url("https://aivancity.ai/sites/default/files/styles/webp_banner/public/2026-02/home-cover-aivancity.jpg.webp?itok=7OR4l7kg")
      center/cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-hero::before,
.landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
}

.landing-hero::before {
  background:
    conic-gradient(from 115deg at 20% 18%, transparent, rgba(0, 168, 200, 0.44), transparent 34%),
    conic-gradient(from 245deg at 75% 74%, transparent, rgba(235, 111, 95, 0.32), transparent 35%),
    linear-gradient(105deg, transparent 0 44%, rgba(255, 255, 255, 0.18) 49%, transparent 55% 100%);
  mix-blend-mode: screen;
  opacity: 0.82;
  animation: hero-aurora 12s ease-in-out infinite alternate;
}

.landing-hero::after {
  background:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.72) 42%, transparent);
  opacity: 0.72;
}

.landing-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(24px, 6vw, 64px);
}

.landing-copy h1,
.landing-copy p {
  margin: 0;
}

.landing-copy h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 5.6vw, 4.9rem);
  line-height: 0.97;
  text-wrap: balance;
}

.landing-copy p {
  max-width: 760px;
  color: #edf4ff;
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-points span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.landing-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 12px;
  padding: clamp(18px, 4vw, 34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.landing-visual::before {
  position: absolute;
  inset: 26px 18px auto auto;
  width: min(190px, 42%);
  height: 68%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
  content: "";
  transform: perspective(560px) rotateY(-22deg) rotateX(8deg);
  opacity: 0.56;
  animation: panel-float 7s ease-in-out infinite alternate;
}

.visual-panel {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 16px 38px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  transition:
    transform 180ms ease,
    background 180ms ease;
}

.visual-panel:nth-child(2) {
  transform: translateX(-18px);
}

.visual-panel:nth-child(3) {
  transform: translateX(12px);
}

.visual-panel:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.visual-panel span {
  color: #e8eeff;
  font-weight: 800;
}

.visual-panel strong {
  font-size: 2.2rem;
}

.main-panel {
  background: rgba(184, 137, 9, 0.28);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.indicators-section,
.documents-section,
.tool-card,
.indicator-card,
.state-message {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: 0 14px 35px rgba(19, 24, 65, 0.08);
  backdrop-filter: blur(18px);
}

.feature-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 18px;
  min-height: 150px;
  overflow: hidden;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.feature-card::before {
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(0, 168, 200, 0.24), transparent 36%),
    linear-gradient(135deg, rgba(184, 137, 9, 0.14), transparent 42%);
  content: "";
  opacity: 0;
  transition: opacity 170ms ease;
}

.feature-card > * {
  position: relative;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 168, 200, 0.26);
  box-shadow: 0 22px 52px rgba(19, 24, 65, 0.13);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card h2,
.feature-card p {
  margin: 0;
}

.feature-card h2 {
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-icon {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #6a4a05;
  background: var(--gold-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.page-intro {
  display: block;
  margin-bottom: 18px;
}

.intro-copy {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: 230px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(125deg, rgba(17, 19, 59, 0.97), rgba(18, 55, 70, 0.85), rgba(184, 137, 9, 0.24)),
    url("https://aivancity.ai/sites/default/files/styles/webp_banner/public/2026-02/home-cover-aivancity.jpg.webp?itok=7OR4l7kg")
      center/cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.intro-copy::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(105deg, transparent 0 46%, rgba(255, 255, 255, 0.17) 50%, transparent 56% 100%),
    conic-gradient(from 210deg at 78% 38%, transparent, rgba(0, 168, 200, 0.35), transparent 33%);
  content: "";
  opacity: 0.76;
  animation: intro-light 10s ease-in-out infinite alternate;
}

.intro-copy > * {
  position: relative;
  z-index: 1;
}

.intro-copy h1,
.intro-copy p,
.section-heading h2 {
  margin: 0;
}

.intro-copy h1 {
  max-width: 820px;
  margin-top: 8px;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  line-height: 0.96;
}

.intro-copy p {
  max-width: 720px;
  margin-top: 16px;
  color: #dfe7ff;
  line-height: 1.6;
}

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

.primary-column {
  display: grid;
  gap: 18px;
}

.indicators-section,
.documents-section {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading.compact {
  margin-bottom: 14px;
}

.section-heading h2 {
  margin-top: 8px;
  font-size: 1.35rem;
}

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

.indicator-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(64px, auto) 1fr;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  box-shadow: none;
  overflow: hidden;
}

.indicator-card::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(0, 168, 200, 0.12), transparent);
  content: "";
  transform: translateX(-110%);
  transition: transform 560ms ease;
}

.indicator-card:hover::before {
  transform: translateX(110%);
}

.indicator-card > * {
  position: relative;
}

.indicator-value {
  display: grid;
  place-items: center;
  min-width: 64px;
  min-height: 56px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--deep);
  background: linear-gradient(135deg, rgba(184, 137, 9, 0.2), rgba(0, 168, 200, 0.1));
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  font-weight: 900;
  line-height: 1;
}

.indicator-label {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.indicator-card.missing-metric .indicator-value {
  color: #b7bdc8;
  background: #f3f5f8;
}

.indicator-card.missing-metric .indicator-label::after {
  content: " · valeur à renseigner";
  color: #a2853f;
  font-weight: 800;
}

.indicator-breakdown {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.indicator-breakdown .indicator-label {
  color: var(--ink);
}

.indicator-breakdown-list {
  display: grid;
  gap: 8px;
}

.indicator-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid rgba(225, 230, 238, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
}

.indicator-breakdown-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.indicator-breakdown-row strong {
  color: var(--deep);
  font-size: 1rem;
}

.indicator-breakdown-row.missing-metric strong {
  color: #b7bdc8;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-height: 360px;
  padding: 16px;
  background:
    radial-gradient(circle at var(--pointer-x, 50%) var(--pointer-y, 0%), rgba(0, 168, 200, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 251, 253, 0.82)),
    var(--panel);
  overflow: hidden;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.tool-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(184, 137, 9, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(195, 58, 120, 0.1), transparent 42%);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 137, 9, 0.35);
  box-shadow: 0 18px 44px rgba(19, 24, 65, 0.12);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card > * {
  position: relative;
}

.tool-card h3,
.tool-details,
.tool-link {
  grid-column: 1 / -1;
}

.tool-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.tool-details {
  display: grid;
  gap: 10px;
}

.tool-detail {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid #edf1f6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
}

.tool-detail span {
  color: #79570a;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.tool-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.tool-link {
  align-self: end;
}

.tool-logo img {
  max-width: 78%;
  max-height: 78%;
  object-fit: contain;
}

.tool-logo.has-image {
  background: #fff;
  border: 1px solid var(--line);
}

.tag {
  width: fit-content;
  align-self: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6a4a05;
  background: rgba(184, 137, 9, 0.14);
  font-size: 0.74rem;
  font-weight: 800;
}

.document-search {
  margin-bottom: 14px;
}

.documents-list {
  display: grid;
  gap: 10px;
}

.document-item {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e8ecf6;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.document-item::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 168, 200, 0.1), transparent 46%);
  content: "";
  opacity: 0;
  transition: opacity 160ms ease;
}

.document-item:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 200, 0.32);
}

.document-item:hover::before {
  opacity: 1;
}

.document-item > * {
  position: relative;
}

.document-item > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--deep-2);
  font-size: 0.72rem;
  font-weight: 900;
}

.document-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.document-link {
  min-width: 78px;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.55;
}

.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.empty-state.padded {
  padding: 16px;
}

.state-message {
  padding: 18px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .tools-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resources-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(310px, 86vw);
    transform: translateX(-104%);
    transition: transform 180ms ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-menu {
    display: block;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .landing-hero,
  .page-intro {
    grid-template-columns: 1fr;
  }

  .landing-visual {
    align-content: start;
  }

  .intro-copy h1 {
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1;
  }
}

@media (max-width: 620px) {
  .workspace {
    padding-inline: 14px;
  }

  .topbar {
    margin-inline: -14px;
    padding-inline: 14px;
  }

  .profile,
  .auth-actions > * {
    width: 100%;
  }

  .auth-actions {
    justify-content: stretch;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-copy h1 {
    font-size: clamp(2rem, 13vw, 3.2rem);
    line-height: 1;
  }

  .feature-grid,
  .indicator-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .document-item {
    grid-template-columns: 42px 1fr;
  }

  .document-link {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .visual-panel {
    animation: soft-rise 6s ease-in-out infinite alternate;
  }

  .visual-panel:nth-child(2) {
    animation-delay: 600ms;
  }

  .visual-panel:nth-child(3) {
    animation-delay: 1100ms;
  }
}

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

@keyframes ambient-drift {
  from {
    transform: translate3d(-1.5%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.04);
  }
}

@keyframes sidebar-sheen {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 0, 34px 22px;
  }
}

@keyframes hero-aurora {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }

  to {
    transform: translate3d(2%, 1%, 0) scale(1.06);
  }
}

@keyframes intro-light {
  from {
    transform: translateX(-4%) scale(1);
  }

  to {
    transform: translateX(4%) scale(1.04);
  }
}

@keyframes panel-float {
  from {
    transform: perspective(560px) rotateY(-22deg) rotateX(8deg) translateY(0);
  }

  to {
    transform: perspective(560px) rotateY(-17deg) rotateX(10deg) translateY(12px);
  }
}

@keyframes soft-rise {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 -5px;
  }
}
