:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: #09101c;
  color: #eef4ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #17243a 0, #09101c 48%);
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 48px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.brand {
  font-size: 1.15rem;
  font-weight: 750;
  text-decoration: none;
}

.muted {
  color: #9eacc2;
}

.hero {
  max-width: 760px;
  margin: 12vh 0 48px;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 8vw, 5.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-top: 0;
}

p {
  line-height: 1.65;
}

.actions,
.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid #34445f;
  border-radius: 14px;
  background: #18243a;
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  color: #09101c;
  background: #eef4ff;
  border-color: #eef4ff;
}

.card {
  flex: 1 1 260px;
  padding: 22px;
  border: 1px solid #2b3a54;
  border-radius: 18px;
  background: rgba(17, 27, 44, 0.82);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #22304a;
  color: #c9d7eb;
  font-size: 0.88rem;
}

code {
  color: #a7d5ff;
}

@media (max-width: 640px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    margin-top: 6vh;
  }
}

.instruction-steps {
  display: grid;
  gap: 20px;
}

.instruction-step {
  overflow: hidden;
}

.instruction-step video,
.instruction-step img {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin-top: 18px;
  border-radius: 14px;
  background: #05080e;
}

.entry-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(68, 99, 151, 0.28),
      transparent 44%
    ),
    #09101c;
}

.entry-island {
  width: min(100%, 560px);
  padding: 42px;
  border: 1px solid rgba(155, 178, 214, 0.2);
  border-radius: 28px;
  background: rgba(17, 27, 44, 0.9);
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.entry-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 28px;
  border: 1px solid #34445f;
  border-radius: 22px;
  color: #eef4ff;
  background: #17243a;
}

.entry-icon svg {
  width: 42px;
  height: 42px;
}

.entry-label {
  margin: 0 0 10px;
  color: #8ea1bf;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.14em;
}

.entry-title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.entry-description {
  margin: 18px 0 30px;
  color: #aab8cc;
}

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

.entry-actions form {
  margin: 0;
}

.entry-choice {
  width: 100%;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border: 1px solid #34445f;
  border-radius: 18px;
  color: #eef4ff;
  background: #121d30;
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.entry-choice:hover {
  transform: translateY(-2px);
  border-color: #6f88ad;
  background: #192740;
}

.entry-choice:focus-visible {
  outline: 3px solid rgba(167, 213, 255, 0.42);
  outline-offset: 3px;
}

.entry-choice-primary {
  color: #09101c;
  border-color: #eef4ff;
  background: #eef4ff;
}

.entry-choice-primary:hover {
  border-color: #ffffff;
  background: #ffffff;
}

.entry-choice-title {
  font-size: 1.15rem;
  font-weight: 800;
}

.entry-choice-description {
  font-size: 0.88rem;
  line-height: 1.45;
  opacity: 0.72;
}

.entry-version {
  margin: 24px 0 0;
  color: #62728b;
  font-size: 0.76rem;
  text-align: center;
}

@media (max-width: 560px) {
  .entry-island {
    padding: 28px 22px;
    border-radius: 22px;
  }

  .entry-actions {
    grid-template-columns: 1fr;
  }

  .entry-choice {
    min-height: 112px;
  }
}

.infodump-page {
  min-height: 100vh;
  margin: 0;
  background: #090d14;
  color: #f3f6fb;
}

.infodump-shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.infodump-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(184, 198, 219, 0.14);
}

.infodump-brand {
  color: #f3f6fb;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.infodump-section-label {
  margin: 5px 0 0;
  color: #708098;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.infodump-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.infodump-user {
  color: #9eacc0;
  font-size: 0.9rem;
}

.infodump-hero {
  max-width: 900px;
  padding: 86px 0 58px;
}

.infodump-kicker {
  margin: 0 0 18px;
  color: #8596ae;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.infodump-hero h1,
.guest-card-detail h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.infodump-intro,
.guest-card-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #9ba9bc;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.65;
}

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

.infodump-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(167, 183, 207, 0.16);
  border-radius: 24px;
  background: #101721;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.infodump-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 183, 207, 0.34);
  background: #131c29;
}

.infodump-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid #334056;
  border-radius: 17px;
  color: #dce7f8;
  background: #182231;
}

.infodump-card-icon svg {
  width: 29px;
  height: 29px;
}

.infodump-card-content {
  flex: 1;
}

.infodump-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.infodump-card p {
  margin: 0;
  color: #93a1b5;
  line-height: 1.55;
}

.infodump-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 19px;
  border-top: 1px solid rgba(167, 183, 207, 0.14);
  color: #f3f6fb;
  font-weight: 750;
  text-decoration: none;
}

.infodump-card-link span {
  font-size: 1.25rem;
  transition: transform 140ms ease;
}

.infodump-card-link:hover span {
  transform: translateX(4px);
}

.infodump-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px dashed #344158;
  border-radius: 24px;
  text-align: center;
}

.infodump-revision {
  margin: 30px 0 0;
  color: #526076;
  font-size: 0.76rem;
  text-align: right;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.primary-button {
  color: #0b1018;
  background: #f3f6fb;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.secondary-button {
  color: #e9eef7;
  border-color: #344158;
  background: #111925;
}

.guest-card-detail {
  padding: 100px 0;
}

.guest-card-detail .primary-button {
  margin-top: 34px;
}

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

@media (max-width: 640px) {
  .infodump-shell {
    width: min(100% - 28px, 1380px);
  }

  .infodump-header {
    align-items: flex-start;
    padding: 22px 0;
  }

  .infodump-header-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .infodump-hero {
    padding: 62px 0 42px;
  }

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

  .infodump-card {
    min-height: 290px;
  }
}

.infodump-page {
  min-height: 100vh;
  margin: 0;
  background: #090d14;
  color: #f3f6fb;
}

.infodump-shell {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 72px;
}

.infodump-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(184, 198, 219, 0.14);
}

.infodump-brand {
  color: #f3f6fb;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.infodump-section-label {
  margin: 5px 0 0;
  color: #708098;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.18em;
}

.infodump-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.infodump-user {
  color: #9eacc0;
  font-size: 0.9rem;
}

.infodump-hero {
  max-width: 900px;
  padding: 86px 0 58px;
}

.infodump-kicker {
  margin: 0 0 18px;
  color: #8596ae;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.infodump-hero h1,
.guest-card-detail h1 {
  max-width: 1000px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.infodump-intro,
.guest-card-lead {
  max-width: 700px;
  margin: 28px 0 0;
  color: #9ba9bc;
  font-size: clamp(1rem, 2vw, 1.28rem);
  line-height: 1.65;
}

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

.infodump-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(167, 183, 207, 0.16);
  border-radius: 24px;
  background: #101721;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.infodump-card:hover {
  transform: translateY(-3px);
  border-color: rgba(167, 183, 207, 0.34);
  background: #131c29;
}

.infodump-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid #334056;
  border-radius: 17px;
  color: #dce7f8;
  background: #182231;
}

.infodump-card-icon svg {
  width: 29px;
  height: 29px;
}

.infodump-card-content {
  flex: 1;
}

.infodump-card h2 {
  margin: 0 0 14px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.infodump-card p {
  margin: 0;
  color: #93a1b5;
  line-height: 1.55;
}

.infodump-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 19px;
  border-top: 1px solid rgba(167, 183, 207, 0.14);
  color: #f3f6fb;
  font-weight: 750;
  text-decoration: none;
}

.infodump-card-link span {
  font-size: 1.25rem;
  transition: transform 140ms ease;
}

.infodump-card-link:hover span {
  transform: translateX(4px);
}

.infodump-empty {
  grid-column: 1 / -1;
  padding: 50px;
  border: 1px dashed #344158;
  border-radius: 24px;
  text-align: center;
}

.infodump-revision {
  margin: 30px 0 0;
  color: #526076;
  font-size: 0.76rem;
  text-align: right;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
}

.primary-button {
  color: #0b1018;
  background: #f3f6fb;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.secondary-button {
  color: #e9eef7;
  border-color: #344158;
  background: #111925;
}

.guest-card-detail {
  padding: 100px 0;
}

.guest-card-detail .primary-button {
  margin-top: 34px;
}

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

@media (max-width: 640px) {
  .infodump-shell {
    width: min(100% - 28px, 1380px);
  }

  .infodump-header {
    align-items: flex-start;
    padding: 22px 0;
  }

  .infodump-header-actions {
    align-items: flex-end;
    flex-direction: column;
  }

  .infodump-hero {
    padding: 62px 0 42px;
  }

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

  .infodump-card {
    min-height: 290px;
  }
}

/* HUB COMPACT SHOWCASE START */

.showcase-page {
  min-height: 100vh;
  margin: 0;
  background: #0b0f15;
  color: #f2f4f8;
}

.showcase-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 44px;
}

.showcase-header {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(180, 190, 208, 0.13);
}

.showcase-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.showcase-brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #384253;
  border-radius: 10px;
  background: #171d27;
  font-weight: 850;
}

.showcase-brand strong,
.showcase-brand small {
  display: block;
}

.showcase-brand strong {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
}

.showcase-brand small {
  margin-top: 2px;
  color: #7f8999;
  font-size: 0.7rem;
}

.account-login,
.account-chip {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #353e4d;
  border-radius: 10px;
  color: #eef1f6;
  background: #151b24;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.account-login:hover {
  border-color: #616d80;
  background: #1a222e;
}

.account-login svg,
.account-chip svg {
  width: 18px;
  height: 18px;
}

.account-chip {
  color: #b6c0ce;
}

.showcase-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  align-items: end;
  gap: 40px;
  padding: 54px 0 34px;
}

.showcase-eyebrow {
  margin: 0 0 9px;
  color: #7f8da2;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.showcase-intro h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.showcase-description {
  margin: 0;
  color: #909aaa;
  font-size: 0.96rem;
  line-height: 1.6;
}

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

.showcase-card {
  min-width: 0;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid rgba(174, 185, 203, 0.15);
  border-radius: 16px;
  background: #121821;
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(174, 185, 203, 0.32);
}

.showcase-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 42px;
}

.showcase-card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid #354052;
  border-radius: 12px;
  color: #dbe2ed;
  background: #1a2230;
}

.showcase-card-icon svg {
  width: 22px;
  height: 22px;
}

.showcase-card-body {
  flex: 1;
  padding-top: 20px;
}

.showcase-card h2 {
  margin: 0 0 9px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.showcase-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #919baa;
  font-size: 0.88rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.showcase-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid rgba(174, 185, 203, 0.12);
  color: #eef1f6;
  font-size: 0.84rem;
  font-weight: 750;
  text-decoration: none;
}

.showcase-card-link span:last-child {
  font-size: 1.1rem;
  transition: transform 130ms ease;
}

.showcase-card-link:hover span:last-child {
  transform: translateX(3px);
}

.showcase-empty {
  grid-column: 1 / -1;
  padding: 36px;
  border: 1px dashed #374152;
  border-radius: 16px;
  text-align: center;
}

.showcase-empty h2 {
  margin-top: 0;
}

.showcase-empty p {
  margin-bottom: 0;
  color: #8e99a9;
}

.showcase-footer {
  padding-top: 24px;
  color: #596474;
  font-size: 0.7rem;
  text-align: right;
}

.detail-shell {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
}

.detail-header {
  height: 66px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(180, 190, 208, 0.13);
}

.detail-header a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #cbd2dd;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.detail-content {
  padding: 70px 0;
}

.detail-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.detail-summary {
  max-width: 680px;
  margin: 24px 0 0;
  color: #949eae;
  font-size: 1.04rem;
  line-height: 1.7;
}

.detail-primary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  margin-top: 28px;
  padding: 0 16px;
  border-radius: 10px;
  color: #0d1118;
  background: #eef1f6;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.fallback-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 22px;
  background: #0b0f15;
  color: #f2f4f8;
}

.fallback-panel {
  width: min(100%, 380px);
  padding: 34px;
  border: 1px solid #303947;
  border-radius: 18px;
  background: #121821;
  text-align: center;
}

.fallback-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border: 1px solid #354052;
  border-radius: 14px;
  color: #bac4d3;
  background: #1a2230;
}

.fallback-icon svg {
  width: 26px;
  height: 26px;
}

.fallback-code {
  margin: 0 0 5px;
  color: #778397;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.fallback-panel h1 {
  margin: 0;
  font-size: 1.5rem;
}

.fallback-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  padding: 0 16px;
  border-radius: 10px;
  color: #0d1118;
  background: #eef1f6;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

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

  .showcase-intro {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 580px) {
  .showcase-shell,
  .detail-shell {
    width: min(100% - 26px, 1180px);
  }

  .account-login span {
    display: none;
  }

  .account-login {
    width: 38px;
    justify-content: center;
    padding: 0;
  }

  .showcase-intro {
    padding: 38px 0 25px;
  }

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

  .showcase-card {
    min-height: 200px;
  }

  .detail-content {
    padding: 50px 0;
  }
}

/* HUB COMPACT SHOWCASE END */

.showcase-account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-create-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 10px;
  color: #0c1118;
  background: #eef1f6;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.card-admin-actions {
  order: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.showcase-card-icon {
  order: 0;
}

.card-admin-actions form {
  margin: 0;
}

.card-admin-actions a,
.card-admin-actions button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #354052;
  border-radius: 9px;
  color: #aeb8c7;
  background: #171e29;
  cursor: pointer;
}

.card-admin-actions a:hover {
  color: #f2f4f8;
  border-color: #647187;
}

.card-admin-actions button:hover {
  color: #ffb1b1;
  border-color: #814747;
  background: #28191d;
}

.card-admin-actions svg {
  width: 16px;
  height: 16px;
}

.card-editor-shell {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.card-editor {
  padding: 48px 0 70px;
}

.card-editor-heading h1 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.card-form {
  display: grid;
  gap: 20px;
}

.card-form label {
  display: grid;
  gap: 8px;
}

.card-form label > span {
  font-size: 0.84rem;
  font-weight: 750;
}

.card-form input,
.card-form textarea,
.card-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #354052;
  border-radius: 10px;
  color: #eef1f6;
  background: #121821;
  font: inherit;
}

.card-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.card-form input:focus,
.card-form textarea:focus,
.card-form select:focus {
  border-color: #73819a;
  outline: 2px solid rgba(115, 129, 154, 0.2);
}

.card-form small {
  color: #778397;
  font-size: 0.75rem;
}

.card-form-error {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #733f48;
  border-radius: 10px;
  color: #ffc1c8;
  background: #27171b;
  font-size: 0.85rem;
}

.card-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.card-form-actions a,
.card-form-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.card-form-actions a {
  color: #b8c1ce;
  border: 1px solid #354052;
}

.card-form-actions button {
  border: 0;
  color: #0c1118;
  background: #eef1f6;
  cursor: pointer;
}

@media (max-width: 580px) {
  .showcase-account-actions {
    gap: 6px;
  }

  .card-create-button span:last-child,
  .account-chip span {
    display: none;
  }

  .card-create-button,
  .account-chip {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
}

.showcase-account-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-create-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 10px;
  color: #0c1118;
  background: #eef1f6;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

.card-admin-actions {
  order: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.showcase-card-icon {
  order: 0;
}

.card-admin-actions form {
  margin: 0;
}

.card-admin-actions a,
.card-admin-actions button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid #354052;
  border-radius: 9px;
  color: #aeb8c7;
  background: #171e29;
  cursor: pointer;
}

.card-admin-actions a:hover {
  color: #f2f4f8;
  border-color: #647187;
}

.card-admin-actions button:hover {
  color: #ffb1b1;
  border-color: #814747;
  background: #28191d;
}

.card-admin-actions svg {
  width: 16px;
  height: 16px;
}

.card-editor-shell {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
}

.card-editor {
  padding: 48px 0 70px;
}

.card-editor-heading h1 {
  margin: 0 0 30px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.card-form {
  display: grid;
  gap: 20px;
}

.card-form label {
  display: grid;
  gap: 8px;
}

.card-form label > span {
  font-size: 0.84rem;
  font-weight: 750;
}

.card-form input,
.card-form textarea,
.card-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 13px;
  border: 1px solid #354052;
  border-radius: 10px;
  color: #eef1f6;
  background: #121821;
  font: inherit;
}

.card-form textarea {
  resize: vertical;
  line-height: 1.5;
}

.card-form input:focus,
.card-form textarea:focus,
.card-form select:focus {
  border-color: #73819a;
  outline: 2px solid rgba(115, 129, 154, 0.2);
}

.card-form small {
  color: #778397;
  font-size: 0.75rem;
}

.card-form-error {
  margin-bottom: 22px;
  padding: 12px 14px;
  border: 1px solid #733f48;
  border-radius: 10px;
  color: #ffc1c8;
  background: #27171b;
  font-size: 0.85rem;
}

.card-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 8px;
}

.card-form-actions a,
.card-form-actions button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.card-form-actions a {
  color: #b8c1ce;
  border: 1px solid #354052;
}

.card-form-actions button {
  border: 0;
  color: #0c1118;
  background: #eef1f6;
  cursor: pointer;
}

@media (max-width: 580px) {
  .showcase-account-actions {
    gap: 6px;
  }

  .card-create-button span:last-child,
  .account-chip span {
    display: none;
  }

  .card-create-button,
  .account-chip {
    width: 38px;
    justify-content: center;
    padding: 0;
  }
}

.showcase-card-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.card-icon-editor {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.card-icon-preview {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #354052;
  border-radius: 14px;
  background: #171e29;
}

.card-icon-preview img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.card-icon-inputs {
  display: grid;
  gap: 9px;
}

.card-icon-divider {
  color: #778397;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 580px) {
  .card-icon-editor {
    grid-template-columns: 1fr;
  }
}

.showcase-card-icon img {
  width: 26px;
  height: 26px;
  display: block;
  object-fit: contain;
}

.card-icon-editor {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.card-icon-preview {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid #354052;
  border-radius: 14px;
  background: #171e29;
}

.card-icon-preview img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.card-icon-inputs {
  display: grid;
  gap: 9px;
}

.card-icon-divider {
  color: #778397;
  font-size: 0.75rem;
  text-align: center;
}

@media (max-width: 580px) {
  .card-icon-editor {
    grid-template-columns: 1fr;
  }
}
