.espace { padding-top: clamp(40px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 110px); }
.espace__head { margin-bottom: 36px; }
.espace__h2 { margin: 0; font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.espace__section { margin: 48px 0 18px; }
.espace__muted { color: var(--muted); margin: 8px 0 0; line-height: 1.55; }
.espace__small { font-size: 14px; }

.espace__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.espace__stats div { padding: 20px 0 20px 20px; border-left: 1px solid var(--line); }
.espace__stats div:first-child { border-left: 0; padding-left: 0; }
.espace__stats dt { font-size: 14px; color: var(--muted); }
.espace__stats dd { margin: 4px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.espace__state { display: flex; align-items: center; gap: 10px; font-size: 18px !important; letter-spacing: -.01em !important; padding-top: 8px; }
.espace__state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--err); }
.espace__state.is-on::before { background: #2fb380; }

.espace__login { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(24px, 4vw, 40px); border-radius: 16px; background: var(--accent); color: var(--on-accent); position: relative; overflow: hidden; }
.espace__login::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(135deg, transparent 0 11px, rgba(255, 255, 255, .09) 11px 12px); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.espace__login > * { position: relative; z-index: 1; max-width: 560px; }
.espace__login .espace__muted { color: rgba(255, 255, 255, .8); }
.espace__login .btn--accent { background: var(--paper, #fff); color: #161616; }

.espace__me { display: flex; align-items: center; gap: 14px; padding: 16px 18px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.espace__me img, .espace__avatar { width: 44px; height: 44px; border-radius: 50%; flex: none; object-fit: cover; }
.espace__avatar { display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 650; }
.espace__me div { display: flex; flex-direction: column; margin-right: auto; min-width: 0; }
.espace__me span { color: var(--muted); font-size: 14px; }

.espace__ok { margin: 0 0 24px; padding: 14px 16px; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); font-weight: 500; }
.espace__done { margin-bottom: 32px; }
.espace__key { margin-bottom: 32px; padding: clamp(22px, 3vw, 30px); border: 1px solid var(--accent); border-radius: 16px; background: var(--surface); }
.espace__key .kicker { margin: 0 0 12px; }
.espace__keyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.espace__keyrow code { font-family: var(--mono); font-size: clamp(16px, 2.2vw, 22px); font-weight: 600; letter-spacing: .04em; padding: 12px 16px; border-radius: 10px; background: var(--surface2); user-select: all; word-break: break-all; }
.lic__offer { margin: -6px 0 0; font-weight: 600; }
.lic--nokey .lic__pill { background: var(--accent); color: var(--on-accent); }
.lic--nokey .lic__pill::before { background: #fff; }

.espace__order { padding: clamp(22px, 3vw, 32px); margin-bottom: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); max-width: 760px; }
.espace__orderhead { margin-bottom: 18px; }
.espace__orderhead .kicker { margin: 0 0 6px; }

.espace__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; }
.espace__empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--muted); }
.espace__empty p { margin: 0; }

.lic { display: flex; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.lic__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lic__id { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.lic__pill { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--surface2); font-size: 13px; font-weight: 500; color: var(--muted); }
.lic__pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lic--active .lic__pill { background: var(--accent); color: var(--on-accent); }
.lic--active .lic__pill::before { background: #fff; }
.lic--expired .lic__pill, .lic--revoked .lic__pill { color: var(--err); }
.lic__info { display: grid; gap: 10px; margin: 0; }
.lic__info div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.lic__info dt { color: var(--muted); }
.lic__info dd { margin: 0; text-align: right; display: inline-flex; align-items: center; gap: 8px; }
.lic__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.lic__dot.is-on { background: #2fb380; }
.lic__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: auto 0 0; }
.lic .btn[disabled] { opacity: .45; cursor: not-allowed; }

.espace__table { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.espace__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.espace__table th { text-align: left; font-weight: 500; font-size: 14px; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); }
.espace__table td { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.espace__table tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .espace__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .espace__stats div:nth-child(3) { border-left: 0; padding-left: 0; }
  .espace__stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .espace__me { flex-wrap: wrap; }
}
