:root {
  --bg: #050507;
  --s1: #0f0f14;
  --s2: #17171e;
  --s3: #24242e;
  --bd: #2d2d38;
  --y: #f5a524;
  --yd: #d88a12;
  --g: #14c77a;
  --r: #f25478;
  --b: #3fa9ff;
  --t: #ffffff;
  --m: #9499a2;
  --m2: #686d77;
  --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, monospace;
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; margin: 0; background: var(--bg); color: var(--t); font-family: var(--sans); }

button { font: inherit; }

.loading { margin: 0; padding: 32px; color: var(--m); }

.shell { min-height: 100vh; display: grid; grid-template-columns: 212px minmax(0, 1fr); }

.sidebar { background: var(--s1); border-right: 1px solid var(--bd); padding: 17px 12px; display: flex; flex-direction: column; gap: 24px; }

.brand { display: flex; align-items: center; gap: 9px; padding: 0 5px; }

.brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: var(--y); color: #000; font-family: var(--mono); font-size: 12px; font-weight: 800; }

.brand-copy { display: grid; gap: 2px; }

.brand-name, .eyebrow, .nav-label, .state-label, .card-kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; }

.brand-name { color: var(--y); font-size: 11px; font-weight: 700; }

.brand-note { color: var(--m2); font-family: var(--mono); font-size: 9px; }

.nav-label { color: var(--m2); font-size: 9px; padding: 0 7px 4px; }

.nav-item { width: 100%; display: flex; align-items: center; gap: 9px; padding: 9px 8px; border: 0; border-left: 2px solid transparent; background: transparent; color: var(--m); text-align: left; font-size: 12px; }

.nav-item.is-current { border-left-color: var(--y); background: rgba(245, 165, 36, .08); color: var(--y); }

.nav-item:disabled { cursor: default; }

.sidebar-foot { margin-top: auto; display: grid; gap: 6px; padding: 10px 7px; border-top: 1px solid var(--bd); color: var(--m2); font-family: var(--mono); font-size: 9px; line-height: 1.5; }

.workspace { min-width: 0; }

.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 24px; background: var(--s1); border-bottom: 1px solid var(--bd); }

.topbar-title { font-family: var(--mono); font-size: 12px; font-weight: 700; }

.private-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 8px; border: 1px solid rgba(245, 165, 36, .28); border-radius: 4px; color: var(--y); background: rgba(245, 165, 36, .08); font-family: var(--mono); font-size: 9px; }

.private-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--y); }

.content { width: min(940px, 100%); margin: 0 auto; padding: 48px 32px 64px; }

.eyebrow { margin: 0 0 9px; color: var(--y); font-size: 10px; font-weight: 700; }

h1 { max-width: 670px; margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.035em; line-height: 1.05; }

.intro { max-width: 620px; margin: 14px 0 28px; color: var(--m); font-size: 15px; line-height: 1.65; }

.state-switcher { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.state-switcher button { border: 1px solid var(--bd); border-radius: 5px; padding: 7px 10px; background: rgba(255, 255, 255, .025); color: var(--m); cursor: pointer; font-family: var(--mono); font-size: 10px; }

.state-switcher button[aria-pressed="true"] { border-color: rgba(245, 165, 36, .5); background: rgba(245, 165, 36, .1); color: var(--y); }

.state-panel { max-width: 680px; }

/* Center only the invited member's proof card. This changes no identity,
   Contract scope, or downstream SEO/Social action authority. */
#member-proof-app { width: min(680px, calc(100% - 40px)); margin: 40px auto; }

.card { overflow: hidden; border: 1px solid var(--bd); border-radius: 8px; background: var(--s2); }

.card-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--bd); background: rgba(255, 255, 255, .015); }

.card-kicker { color: var(--m); font-size: 10px; font-weight: 700; }

.state-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--y); box-shadow: 0 0 0 3px rgba(245, 165, 36, .12); }

.state-dot.scoped-access { background: var(--g); box-shadow: 0 0 0 3px rgba(20, 199, 122, .12); }

.state-dot.access-revoked { background: var(--r); box-shadow: 0 0 0 3px rgba(242, 84, 120, .12); }

.card-body { padding: 22px 20px; }

.state-label { margin: 0 0 8px; color: var(--m2); font-size: 9px; }

.state-headline { margin: 0; font-size: 22px; letter-spacing: -.025em; }

.state-copy { max-width: 510px; margin: 10px 0 18px; color: var(--m); font-size: 13px; line-height: 1.65; }

.action { min-height: 36px; padding: 0 12px; border: 1px solid rgba(245, 165, 36, .42); border-radius: 5px; background: var(--y); color: #17110a; cursor: pointer; font-family: var(--mono); font-size: 11px; font-weight: 800; }

.action:disabled { border-color: var(--bd); background: var(--s3); color: var(--m2); cursor: not-allowed; }

.action[aria-disabled="true"] { background: rgba(245, 165, 36, .12); color: var(--y); }

.action-note { min-height: 20px; margin: 10px 0 0; color: var(--m2); font-size: 11px; line-height: 1.45; }

/* Presentation spacing only: these controls retain their fixed server routes,
   and Contract-rooted scope still governs each downstream SEO/Social action. */
.member-proof-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* These cards separate the final destructive and verification phases without
   moving authority out of the Contract-rooted server pipeline. */
.owner-revoke-card, .post-revoke-card { max-width: 680px; margin-top: 18px; }

.post-revoke-card { border-color: rgba(242, 84, 120, .34); }

.revoke-confirmation { max-width: 560px; display: flex; align-items: flex-start; gap: 9px; margin: 0 0 14px; color: var(--m); font-size: 12px; line-height: 1.5; }

.revoke-confirmation input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--y); }

.action-danger { border-color: rgba(242, 84, 120, .5); background: var(--r); color: #16080d; }

/* The invitation form remains presentation-only: spacing changes no browser,
   workspace, or Contract-rooted authority in the downstream pipeline. */
.invitation-form { width: min(560px, 100%); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }

.invitation-form label { margin-top: 2px; font-size: 12px; font-weight: 700; }

.invitation-form input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--bd); border-radius: 5px; outline: none; background: var(--s1); color: var(--t); font: inherit; }

.invitation-form input:focus { border-color: rgba(245, 165, 36, .72); box-shadow: 0 0 0 3px rgba(245, 165, 36, .1); }

.invitation-form .action { min-width: 154px; margin-top: 4px; justify-self: start; }

.invitation-form .action-note { margin-top: 2px; }

/* This static notice shares the owner state panel's display column; it carries no Contract, identity, or authority data. */
.boundary { max-width: 680px; margin-top: 14px; padding: 12px 14px; border-left: 3px solid rgba(63, 169, 255, .7); border-radius: 0 7px 7px 0; background: rgba(63, 169, 255, .06); color: var(--m); font-size: 12px; line-height: 1.6; }

.boundary strong { color: var(--b); }

@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .content { padding: 32px 20px 48px; }
  .topbar { padding: 0 20px; }
  .state-panel { grid-template-columns: 1fr; }
  .member-proof-actions { flex-direction: column; align-items: stretch; }
  .member-proof-actions .action { width: 100%; }
  .invitation-form .action { width: 100%; }
  .owner-revoke-card .action, .post-revoke-card .action { width: 100%; }
}
