:root {
  --ink: #0f172a;
  --paper: #f8fafc;
  --accent: #0d9488;
  --accent-dark: #0f766e;
  --line: #e2e8f0;
  --muted: #64748b;
  --card: #ffffff;
  --warn: #b45309;
  font-family: "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: var(--accent-dark); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0; }
.nav strong { font-size: 1.1rem; letter-spacing: -0.02em; }
.nav a { margin-left: 1rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.hero {
  padding: 4.5rem 0 3rem;
  background:
    radial-gradient(900px 400px at 10% -10%, rgba(13,148,136,.18), transparent 60%),
    linear-gradient(180deg, #ecfeff 0%, var(--paper) 70%);
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.03em; max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 42rem; margin: 0 0 1.75rem; }
.cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.25rem; border-radius: 10px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.section { padding: 3rem 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 1rem; letter-spacing: -0.02em; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1.35rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }
.price { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin: .5rem 0; }
.price span { font-size: .95rem; font-weight: 600; color: var(--muted); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; position: relative; padding: .85rem 0 .85rem 3rem;
  border-bottom: 1px solid var(--line); color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: .7rem;
  width: 2rem; height: 2rem; border-radius: 999px; background: #ccfbf1; color: var(--accent-dark);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem;
}
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.footer { padding: 2rem 0 3rem; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.notice { font-size: .85rem; color: var(--warn); margin-top: 1rem; }

/* ——— Landing / aide / support (clair, lisible, sticky) ——— */
body.landing {
  font-family: Manrope, "Segoe UI", sans-serif;
  background: #eef2f4;
  color: #0f172a;
  padding-top: 64px;
}
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.site-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: .65rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo img {
  display: block;
  height: 32px;
  width: auto;
}
.nav-toggle {
  display: none;
  align-items: center;
  gap: .45rem;
  font: inherit;
  font-weight: 700;
  font-size: .85rem;
  padding: .45rem .75rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}
.nav-toggle-bars {
  width: 1.1rem;
  height: .85rem;
  display: inline-block;
  background:
    linear-gradient(#0f172a, #0f172a) 0 0 / 100% 2px no-repeat,
    linear-gradient(#0f172a, #0f172a) 0 50% / 100% 2px no-repeat,
    linear-gradient(#0f172a, #0f172a) 0 100% / 100% 2px no-repeat;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
}
.site-nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 650;
  font-size: .9rem;
  padding: .45rem .7rem;
  border-radius: 9px;
}
.site-nav a:hover,
.site-nav a.is-active { color: #0f766e; background: #ecfdf5; }
.site-nav .nav-cta {
  margin-left: .35rem;
  background: #0f766e;
  color: #fff !important;
}
.site-nav .nav-cta:hover { background: #115e59; color: #fff !important; }

.vacation-banner {
  margin: 0;
  padding: .85rem 1.25rem;
  text-align: center;
  background: #fff7ed;
  border-bottom: 1px solid #fdba74;
  color: #9a3412;
  font-size: .95rem;
  animation: fade-in .45s ease both;
}
.vacation-banner strong { font-weight: 800; }

.hero-sales {
  position: relative;
  min-height: min(82vh, 680px);
  display: flex;
  align-items: flex-end;
  padding: 5rem 0 3.75rem;
  overflow: hidden;
  border-bottom: 1px solid #dbe4ea;
}
.hero-sales-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-sales-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
  transform: scale(1.02);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero-sales-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, .82) 0%, rgba(15, 118, 110, .48) 52%, rgba(15, 23, 42, .55) 100%),
    radial-gradient(ellipse 70% 55% at 75% 25%, rgba(45, 212, 191, .22), transparent 60%);
}
.hero-glass {
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  padding: 1.75rem 1.6rem 1.85rem;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .28);
  max-width: 36rem;
}
.hero-sales-inner {
  position: relative;
  z-index: 1;
  color: #f8fafc;
  animation: rise-in .7s cubic-bezier(.22, 1, .36, 1) both;
}
.hero-sales .brand-mark {
  margin: 0 0 .75rem;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(2.15rem, 5.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero-sales .hero-line {
  margin: 0 0 .85rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 650;
  line-height: 1.35;
  color: rgba(248, 250, 252, .96);
  max-width: 28rem;
}
.hero-sales .lead {
  margin: 0 0 1.6rem;
  font-size: 1.05rem;
  color: rgba(241, 245, 249, .92);
  max-width: 34rem;
  line-height: 1.55;
}
.hero-sales .btn-ghost {
  background: rgba(255, 255, 255, .14);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .4);
}
.hero-sales .btn-ghost:hover {
  background: rgba(255, 255, 255, .24);
  border-color: #fff;
}
.hero-sales .btn-primary {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}
@keyframes hero-drift {
  from { transform: scale(1.02) translate3d(0, 0, 0); }
  to { transform: scale(1.06) translate3d(-1.2%, -0.6%, 0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sales-img { animation: none; }
  .hero-sales-inner, .agency-thanks, .vacation-banner { animation: none; }
}
body.landing .btn-primary {
  background: #0f766e;
  color: #fff;
}
body.landing .btn-primary:hover { background: #115e59; }
body.landing .btn-ghost {
  background: #fff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
}
body.landing .btn-ghost:hover { border-color: #94a3b8; }

.section-lead { color: #475569; max-width: 40rem; margin: 0 0 1.25rem; }
body.landing .section h2 {
  font-family: Fraunces, Georgia, serif;
  color: #0f172a;
  letter-spacing: -0.02em;
}
.feature-grid {
  display: grid;
  gap: 1.25rem 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.25rem;
}
.feature-grid h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  color: #0f172a;
}
.feature-grid p { margin: 0; color: #475569; font-size: .95rem; }

.promise-row {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1.5rem;
}
.promise h3 {
  margin: 0 0 .5rem;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  color: #0f172a;
}
.promise p { margin: 0; color: #475569; font-size: .98rem; line-height: 1.55; }

.billing-toggle {
  display: inline-flex;
  gap: .25rem;
  padding: .3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  margin: .25rem auto 1.35rem;
}
.billing-btn {
  font: inherit;
  font-weight: 700;
  font-size: .9rem;
  border: 0;
  background: transparent;
  color: #64748b;
  padding: .55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.billing-btn.is-active {
  background: #0f766e;
  color: #fff;
}
.billing-save {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: rgba(255,255,255,.2);
  padding: .15rem .4rem;
  border-radius: 999px;
}
.billing-btn:not(.is-active) .billing-save {
  background: #ecfdf5;
  color: #0f766e;
}

.price-row {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: .25rem;
}
.price-block {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.45rem 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: border-color .2s ease, transform .25s ease;
}
.price-block:hover { border-color: #99f6e4; transform: translateY(-2px); }
.price-block-featured {
  border-color: #0f766e;
  box-shadow: 0 12px 32px rgba(15, 118, 110, .12);
}
.price-tag {
  margin: 0;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0f766e;
}
.price-block h3 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.35rem;
}
.price-block .price { color: #0f172a; margin: .15rem 0; }
.price-block .price.is-hidden,
.price-block .cta-month.is-hidden,
.price-block .cta-year.is-hidden { display: none; }
.price-note { margin: 0; color: #64748b; font-size: .9rem; }
.feat-list {
  margin: .35rem 0 .5rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .4rem;
}
.feat-list li {
  position: relative;
  padding-left: 1.35rem;
  color: #334155;
  font-size: .94rem;
}
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .45rem;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: #0f766e;
}
.price-cta { margin: auto 0 0; padding-top: .5rem; }
.price-cta .btn { width: 100%; justify-content: center; }
.pricing-aside {
  margin: 1.25rem 0 0;
  color: #334155;
  font-size: .95rem;
  max-width: 40rem;
}
.pricing-section .billing-toggle { margin-left: auto; margin-right: auto; display: flex; justify-content: center; }
.pricing-section > h2,
.pricing-section > .section-lead,
.agency-section > h2 { text-align: center; }
.pricing-section > .section-lead { margin-left: auto; margin-right: auto; }
.pricing-aside { margin-left: auto; margin-right: auto; text-align: center; }

.agency-section { text-align: center; }
.agency-lead { margin-left: auto; margin-right: auto; }
.agency-form {
  max-width: 640px;
  margin: 1.25rem auto 0;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.25rem;
}
.agency-grid {
  display: grid;
  gap: .85rem;
  grid-template-columns: 1fr 1fr;
}
.agency-grid label {
  display: grid;
  gap: .35rem;
  font-weight: 700;
  font-size: .9rem;
}
.agency-grid label.full { grid-column: 1 / -1; }
.agency-grid .hint { font-weight: 500; color: #64748b; font-size: .82rem; }
.agency-grid input,
.agency-grid textarea {
  font: inherit;
  padding: .7rem .8rem;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
}
.agency-actions { margin-top: 1rem; text-align: center; }
.agency-thanks {
  max-width: 560px;
  margin: 1.5rem auto 0;
  padding: 1.5rem 1.4rem;
  background: linear-gradient(160deg, #ecfdf5, #fff);
  border: 1px solid #a7f3d0;
  border-radius: 16px;
  animation: rise-in .5s ease both;
}
.agency-thanks h3 {
  margin: 0 0 .5rem;
  font-family: Fraunces, Georgia, serif;
  color: #0f766e;
}
.agency-thanks p { margin: 0; color: #334155; }
.agency-err { max-width: 640px; margin: 1rem auto; text-align: left; }
.agency-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

body.landing .faq details {
  background: #fff;
  border-color: #e2e8f0;
}
body.landing .steps li { color: #475569; border-color: #e2e8f0; }
body.landing .steps li::before { background: #ccfbf1; color: #0f766e; }

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: .88rem;
}
.site-footer-links { display: flex; flex-wrap: wrap; gap: .75rem 1.1rem; margin: 0 0 .75rem; }
.site-footer-links a { color: #334155; font-weight: 600; text-decoration: none; }
.site-footer-links a:hover { color: #0f766e; }
.site-footer-note { margin: 0; max-width: 40rem; color: #475569; }

/* Aide / support */
.kb { padding-top: 1.5rem; }
.kb h1 { font-family: Fraunces, Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; color: #0f172a; }
.kb-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: #0f766e; margin: 0 0 .35rem; }
.kb .lead { color: #475569; max-width: 40rem; }
.kb-toc { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.5rem 0 2rem; }
.kb-toc a {
  font-size: .88rem; font-weight: 600; text-decoration: none;
  color: #334155; background: #fff; border: 1px solid #e2e8f0;
  padding: .4rem .7rem; border-radius: 8px;
}
.kb-toc a:hover { border-color: #99f6e4; color: #0f766e; }
body.landing .section[id],
.pricing-section,
.agency-section { scroll-margin-top: 88px; }
.kb-block {
  margin: 0 0 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  scroll-margin-top: 88px;
}
.kb-block h2 { font-size: 1.25rem; margin: 0 0 .6rem; color: #0f172a; }
.kb-foot { margin-top: 2rem; }
.kb-ok { background: #ecfdf5; border: 1px solid #a7f3d0; padding: .9rem 1rem; border-radius: 8px; }
.kb-err { background: #fef2f2; border: 1px solid #fecaca; padding: .9rem 1rem; border-radius: 8px; color: #991b1b; }
.kb-muted { color: #64748b; font-size: .9rem; }
.support-form { display: grid; gap: .85rem; max-width: 560px; margin: 1.5rem 0; }
.support-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.support-form input, .support-form textarea, .support-form select {
  font: inherit; padding: .7rem .8rem; border: 1px solid #cbd5e1; border-radius: 8px; background: #fff; color: #0f172a;
}
.support-form .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

@media (max-width: 900px) {
  .promise-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: .35rem 0 .5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: .7rem .85rem; font-size: 1rem; }
  .site-nav .nav-cta { margin-left: 0; text-align: center; }
  .site-header-inner { flex-wrap: wrap; }
  body.landing { padding-top: 58px; }
  .hero-sales { min-height: auto; padding: 3.25rem 0 2.75rem; align-items: flex-end; }
  .agency-grid { grid-template-columns: 1fr; }
  .billing-toggle { width: 100%; }
  .billing-btn { flex: 1; justify-content: center; }
}

/* ——— Espace client / portail ——— */
.portal { padding: 1.5rem 1.25rem 3rem; max-width: 1100px; }
.portal-top {
  display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.portal-kicker { margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.portal-top h1 { margin: .2rem 0 .35rem; font-size: 1.65rem; letter-spacing: -0.02em; }
.portal-meta { margin: 0; color: var(--muted); font-size: .92rem; }
.portal-nav a { margin-left: 1rem; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.portal-nav a:hover { color: var(--accent-dark); }

.pill {
  display: inline-block; margin-left: .35rem; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; vertical-align: middle;
}
.pill-test { background: #fef3c7; color: #92400e; }
.pill-trial { background: #e0f2fe; color: #075985; }

.banner { padding: 12px 14px; border-radius: 10px; margin: 0 0 1rem; font-size: .95rem; }
.banner-ok { background: #ecfdf5; border-left: 3px solid #0f766e; color: #065f46; }
.banner-warn { background: #fff7ed; border-left: 3px solid #b45309; }
.banner-err { background: #fef2f2; border-left: 3px solid #b91c1c; color: #7f1d1d; }

.sp-hero {
  background: #ecfdf5; border: 1px solid #99f6e4; border-radius: 16px;
  padding: 1.35rem 1.5rem; margin: 0 0 1.35rem;
}
.sp-hero-kicker {
  margin: 0; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: #0f766e; font-weight: 700;
}
.sp-hero h2 { margin: .25rem 0 .35rem; font-size: 1.85rem; letter-spacing: -0.03em; color: #065f46; }
.sp-hero-siren { margin: 0; font-size: 1.35rem; font-weight: 700; color: #0f172a; }
.sp-hero-siren span { font-size: 1rem; font-weight: 600; color: #0f766e; }
.sp-hero-note { margin: .45rem 0 0; font-size: .88rem; color: #0f766e; }

.secret-reveal {
  background: #fffbeb; border: 1px solid #fcd34d; border-radius: 14px;
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.secret-reveal h2 { margin: 0 0 .4rem; font-size: 1.05rem; color: #92400e; }
.secret-reveal p { margin: 0 0 .75rem; color: #92400e; font-size: .9rem; }

.portal-tiles {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) {
  .portal-tiles { grid-template-columns: 1fr; }
}
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .65rem;
  min-height: 100%;
}
.tile-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.tile-head h2 { margin: 0; font-size: 1.05rem; letter-spacing: -0.01em; }
.tile-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); background: var(--paper); padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.tile-dl { margin: 0; display: grid; gap: .35rem; }
.tile-dl div { display: flex; justify-content: space-between; gap: .75rem; font-size: .92rem; }
.tile-dl dt { color: var(--muted); margin: 0; }
.tile-dl dd { margin: 0; font-weight: 600; }
.tile-note { margin: 0; font-size: .8rem; color: var(--muted); line-height: 1.45; }
.tile-note.ok { color: #0f766e; }
.tile-status { margin: 0; font-size: .95rem; font-weight: 600; }
.tile-status.ok { color: #0f766e; }
.tile-status.warn { color: #b45309; }
.tile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; }
.tile-actions.stack { flex-direction: column; align-items: stretch; }
.tile-actions .btn { width: 100%; justify-content: center; }
.tile-wide { grid-column: 1 / -1; }
.oauth-steps {
  margin: 0; padding-left: 1.2rem; font-size: .88rem; color: var(--ink); line-height: 1.5;
}
.oauth-steps li { margin: 0 0 .55rem; }
.oauth-steps .key-row { margin-top: .35rem; }
.oauth-form {
  display: grid; gap: .4rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: .85rem .9rem;
}
.oauth-form h3 { margin: 0 0 .2rem; font-size: .95rem; }
.oauth-sandbox { font-size: .88rem; color: var(--muted); }
.oauth-sandbox summary { cursor: pointer; font-weight: 600; color: var(--ink); }

.quota-bar {
  height: 6px; background: var(--line); border-radius: 999px; overflow: hidden;
}
.quota-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.key-label {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); margin: .15rem 0 0;
}
.key-row { display: flex; gap: .5rem; align-items: stretch; }
.key-value {
  flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.35; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #f1f5f9; color: var(--ink); word-break: break-all;
  user-select: all;
}
input.key-value { width: 100%; }
.muted-val { color: var(--muted); }
.tile-keys .key-row .btn { flex: 0 0 auto; padding: .65rem .9rem; }

.portal-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin: 0 0 1.5rem;
}
.portal-stats div {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1rem; text-align: center;
}
.portal-stats strong { display: block; font-size: 1.4rem; letter-spacing: -0.02em; }
.portal-stats span { font-size: .8rem; color: var(--muted); font-weight: 600; }

.portal-h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.table-card { padding: 0; overflow: auto; }
.portal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.portal-table th { text-align: left; color: var(--muted); font-weight: 600; padding: .75rem 1rem; }
.portal-table td { padding: .7rem 1rem; border-top: 1px solid var(--line); }
.test-result.ok { border-color: #86efac; }
.test-result.ko { border-color: #fecaca; }
.test-result ul { margin: .5rem 0 0; padding-left: 1.2rem; font-size: 13px; }
