:root {
  color-scheme: dark;
  --bg: #050b13;
  --bg-raised: #081321;
  --surface: #0c1727;
  --surface-2: #101d2f;
  --surface-3: #142338;
  --border: rgba(148, 170, 201, 0.14);
  --border-strong: rgba(148, 170, 201, 0.24);
  --text: #f6f8fb;
  --muted: #92a0b4;
  --soft: #c1cad8;
  --green: #15d6a0;
  --green-dark: #08a879;
  --cyan: #29c5e9;
  --gold: #ffb11b;
  --gold-soft: #ffd15c;
  --purple: #9e7cff;
  --danger: #ff6b7a;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --max: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 12%, rgba(21, 214, 160, 0.07), transparent 27rem),
    radial-gradient(circle at 12% 42%, rgba(41, 197, 233, 0.05), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--green);
  color: #03120e;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(41, 197, 233, 0.8);
  outline-offset: 3px;
}

.global-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(238px, 1fr) auto minmax(238px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 82px;
  padding: 12px max(24px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(5, 11, 19, 0.86);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(21, 214, 160, 0.35);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(21, 214, 160, 0.16), rgba(41, 197, 233, 0.03));
  box-shadow: 0 0 26px rgba(21, 214, 160, 0.16);
}

.brand-mark svg {
  width: 29px;
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
}

.brand-copy {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.brand-row b {
  color: var(--text);
  font-size: 17px;
  line-height: 1;
}

.brand-row small {
  padding: 3px 6px;
  border: 1px solid rgba(21, 214, 160, 0.25);
  border-radius: 5px;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.14em;
}

.desktop-nav {
  display: flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 23, 39, 0.76);
}

.desktop-nav button,
.footer-links button,
.mobile-nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.desktop-nav button {
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.desktop-nav button:hover,
.desktop-nav button.active {
  background: var(--surface-3);
  color: var(--text);
}

.desktop-nav button.active {
  box-shadow: inset 0 -2px var(--green);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.system-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.system-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px currentColor;
}

.system-chip.online i {
  background: var(--green);
}

.system-chip.degraded i {
  background: var(--gold);
}

.dashboard-link,
.primary-button,
.gold-button,
.secondary-button,
.login-button,
.studio-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  border: 0;
  border-radius: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.dashboard-link,
.primary-button,
.studio-submit,
.login-button {
  background: linear-gradient(120deg, var(--green), #37dfcc);
  color: #02130f;
  box-shadow: 0 8px 24px rgba(21, 214, 160, 0.16);
}

.gold-button {
  background: linear-gradient(120deg, var(--gold), var(--gold-soft));
  color: #251500;
  box-shadow: 0 8px 28px rgba(255, 177, 27, 0.17);
}

.secondary-button {
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.dashboard-link:hover,
.primary-button:hover,
.gold-button:hover,
.secondary-button:hover,
.login-button:hover,
.studio-submit:hover {
  transform: translateY(-2px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none !important;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 4px;
  background: var(--soft);
}

.mobile-nav {
  position: fixed;
  z-index: 45;
  top: 72px;
  right: 16px;
  left: 16px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: rgba(8, 19, 33, 0.98);
  box-shadow: var(--shadow);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav button {
  padding: 13px;
  border-radius: 10px;
  text-align: left;
  font-weight: 700;
}

.mobile-nav button:hover {
  background: var(--surface-3);
  color: var(--text);
}

main {
  min-height: calc(100vh - 196px);
}

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

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(370px, 0.82fr);
  gap: 54px;
  align-items: center;
  min-height: 650px;
  padding: 82px 0 68px;
}

.hero::before {
  position: absolute;
  z-index: -1;
  top: 14%;
  right: 0;
  width: min(620px, 100%);
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21, 214, 160, 0.12), transparent 66%);
  content: "";
  filter: blur(8px);
}

.eyebrow,
.gold-eyebrow,
.section-kicker,
.status-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow,
.gold-eyebrow {
  padding: 8px 11px;
  border: 1px solid rgba(21, 214, 160, 0.22);
  border-radius: 999px;
  background: rgba(21, 214, 160, 0.07);
}

.gold-eyebrow {
  border-color: rgba(255, 177, 27, 0.25);
  background: rgba(255, 177, 27, 0.08);
  color: var(--gold-soft);
}

.hero h1,
.project-hero h1 {
  max-width: 760px;
  margin: 23px 0 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(48px, 6.3vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.gradient-text {
  background: linear-gradient(95deg, var(--green), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-gradient-text {
  background: linear-gradient(95deg, var(--gold), #ffe07f 52%, var(--green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p,
.project-hero-copy > p,
.section-heading p,
.spotlight-copy > p {
  max-width: 680px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions,
.spotlight-actions,
.project-actions,
.dashboard-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 38px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 700;
}

.trust-row span::before {
  margin-right: 7px;
  color: var(--green);
  content: "✓";
}

.command-card {
  position: relative;
  overflow: hidden;
  min-height: 450px;
  padding: 29px;
  border: 1px solid rgba(21, 214, 160, 0.18);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(21, 214, 160, 0.07), transparent 42%),
    linear-gradient(180deg, rgba(16, 29, 47, 0.95), rgba(8, 19, 33, 0.95));
  box-shadow: var(--shadow);
}

.command-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 290px;
  height: 290px;
  border: 50px solid rgba(41, 197, 233, 0.035);
  border-radius: 50%;
  content: "";
}

.command-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.live-pill,
.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(21, 214, 160, 0.09);
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.secure-pill {
  background: rgba(255, 177, 27, 0.1);
  color: var(--gold-soft);
}

.command-card h2 {
  margin: 42px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.command-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.status-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px;
}

.status-box {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(5, 11, 19, 0.46);
}

.status-box strong {
  display: block;
  margin-top: 7px;
  font-size: 16px;
}

.status-box small {
  color: var(--muted);
}

.command-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding: 13px 15px;
  border: 1px solid rgba(41, 197, 233, 0.14);
  border-radius: 11px;
  background: rgba(5, 11, 19, 0.72);
  color: var(--soft);
  font: 11px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.command-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.metric {
  padding: 27px;
  background: var(--bg-raised);
}

.metric strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 29px;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.section {
  padding: 100px 0;
}

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

.section-heading h2 {
  max-width: 720px;
  margin: 10px 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4vw, 49px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.service-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.service-card,
.pillar-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(16, 29, 47, 0.78), rgba(8, 19, 33, 0.82));
  transition: border-color 160ms ease, transform 160ms ease;
}

.service-card:hover,
.pillar-card:hover {
  border-color: rgba(21, 214, 160, 0.3);
  transform: translateY(-4px);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(21, 214, 160, 0.18);
  border-radius: 13px;
  background: rgba(21, 214, 160, 0.08);
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
}

.gold-card .card-icon {
  border-color: rgba(255, 177, 27, 0.2);
  background: rgba(255, 177, 27, 0.08);
  color: var(--gold-soft);
}

.service-card h3,
.pillar-card h3 {
  margin: 28px 0 10px;
  font-size: 17px;
}

.service-card p,
.pillar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
}

.spotlight {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 45px;
  overflow: hidden;
  padding: 48px;
  border: 1px solid rgba(255, 177, 27, 0.22);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 30%, rgba(255, 177, 27, 0.12), transparent 25rem),
    linear-gradient(135deg, rgba(255, 177, 27, 0.06), rgba(21, 214, 160, 0.045)),
    var(--bg-raised);
}

.spotlight h2 {
  margin: 18px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.project-map {
  display: grid;
  gap: 12px;
  align-content: center;
}

.project-map-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 13px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(5, 11, 19, 0.5);
}

.project-map-row > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--green);
  font-weight: 800;
}

.project-map-row b {
  display: block;
  font-size: 12px;
}

.project-map-row small {
  color: var(--muted);
  font-size: 10px;
}

.project-map-row > strong {
  color: var(--gold-soft);
  font-size: 11px;
}

.studio-layout {
  display: grid;
  grid-template-columns: 0.83fr 1.17fr;
  gap: 18px;
}

.studio-panel,
.studio-result {
  min-height: 410px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.studio-panel h3,
.studio-result h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.studio-panel > p,
.studio-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field > span {
  color: var(--soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea,
.search-input,
.filter-select,
.pin-input {
  min-height: 45px;
  width: 100%;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}

.field textarea {
  min-height: 132px;
  padding: 12px 13px;
  resize: vertical;
  font: inherit;
  line-height: 1.6;
}

.field input::placeholder,
.search-input::placeholder,
.pin-input::placeholder {
  color: #64738a;
}

.studio-submit {
  width: 100%;
  margin-top: 18px;
}

.generated-post {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.generated-post h4 {
  margin: 0;
  font-size: 22px;
}

.generated-post p {
  margin: 0;
  color: var(--soft);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
}

.generated-visual {
  overflow: hidden;
  margin: 4px 0 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.generated-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.generated-visual figcaption {
  padding: 11px 13px;
  color: var(--muted);
  font-size: 9px;
}

.runware-unlock {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 177, 27, 0.24);
  border-radius: 13px;
  background: rgba(255, 177, 27, 0.045);
}

.runware-unlock strong,
.runware-unlock span {
  display: block;
}

.runware-unlock strong {
  font-size: 11px;
}

.runware-unlock > div > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.runware-unlock .studio-submit {
  margin-top: 0;
}

.runware-unlock p {
  min-height: 0;
  margin: 0;
  color: #ff8995;
  font-size: 9px;
}

.hashtags {
  color: var(--cyan) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.engine-label {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(158, 124, 255, 0.1);
  color: #bdaaff;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.publisher-section {
  padding-top: 25px;
}

.publisher-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(340px, 1.05fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.publisher-connection,
.publisher-composer,
.publisher-preview {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.publisher-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 19px;
}

.publisher-card-heading h3 {
  margin: 5px 0 0;
  font-size: 17px;
}

.publisher-label {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.connection-badge,
.safe-mode {
  flex: none;
  padding: 6px 8px;
  border-radius: 99px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.connection-badge.connected {
  background: rgba(21, 214, 160, 0.11);
  color: var(--green);
}

.connection-badge.disconnected,
.connection-badge.locked {
  background: rgba(255, 177, 27, 0.1);
  color: var(--gold-soft);
}

.account-summary {
  display: flex;
  min-height: 73px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.account-summary .spinner {
  margin: 0;
}

.account-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.account-summary strong,
.account-summary span {
  display: block;
}

.account-summary strong {
  font-size: 11px;
}

.account-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.account-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #9e7cff, #ff7d8e, #ffb11b);
  color: white;
  font-weight: 800;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.publisher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.compact {
  min-height: 38px;
  padding: 0 12px;
  font-size: 9px;
}

.manual-token-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(158, 124, 255, 0.19);
  border-radius: 12px;
  background: rgba(158, 124, 255, 0.04);
}

.manual-token-form[hidden] {
  display: none;
}

.manual-token-form .studio-submit {
  margin-top: 0;
}

.manual-token-form small,
.publisher-note {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.publisher-note {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.publisher-composer {
  display: grid;
  gap: 14px;
}

.format-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.format-switch button {
  min-height: 37px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.format-switch button.active {
  background: var(--surface-3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.confirmation-row {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  align-items: start;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
  cursor: pointer;
}

.confirmation-row input {
  margin-top: 2px;
  accent-color: var(--green);
}

.publish-button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #833ab4, #e1306c 52%, #f77737);
  color: white;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(225, 48, 108, 0.16);
}

.publish-button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}

.publish-progress {
  display: none;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 9px;
  line-height: 1.5;
}

.publish-progress.active,
.publish-progress.success,
.publish-progress.error {
  display: block;
}

.publish-progress.active {
  background: rgba(82, 179, 255, 0.08);
  color: var(--cyan);
}

.publish-progress.success {
  background: rgba(21, 214, 160, 0.09);
  color: var(--green);
}

.publish-progress.error {
  background: rgba(255, 107, 122, 0.09);
  color: #ff8995;
}

.media-preview {
  display: grid;
  min-height: 280px;
  overflow: hidden;
  place-items: center;
  border: 1px dashed var(--border-strong);
  border-radius: 15px;
  background: #050b13;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  max-height: 440px;
  aspect-ratio: 1;
  object-fit: cover;
}

.media-preview video {
  aspect-ratio: 9 / 16;
}

.caption-preview {
  max-height: 190px;
  overflow-y: auto;
  margin-top: 13px;
  padding: 13px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--soft);
  font-size: 9px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.project-page {
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 177, 27, 0.075), transparent 33rem),
    radial-gradient(circle at 4% 60%, rgba(21, 214, 160, 0.055), transparent 28rem);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 28px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 60px;
  align-items: center;
  min-height: 590px;
  padding: 55px 0 80px;
}

.project-hero h1 {
  font-size: clamp(46px, 6vw, 75px);
}

.project-seal {
  position: relative;
  display: grid;
  min-height: 420px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 177, 27, 0.18);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(255, 177, 27, 0.12), transparent 48%),
    linear-gradient(160deg, rgba(255, 177, 27, 0.06), rgba(16, 29, 47, 0.83));
}

.seal-orbit {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255, 177, 27, 0.22);
  border-radius: 50%;
}

.seal-orbit::before,
.seal-orbit::after {
  position: absolute;
  inset: 32px;
  border: 1px solid rgba(21, 214, 160, 0.13);
  border-radius: 50%;
  content: "";
}

.seal-orbit::after {
  inset: 67px;
  border-color: rgba(255, 177, 27, 0.18);
}

.seal-content {
  z-index: 1;
  text-align: center;
}

.seal-content strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 72px;
  letter-spacing: -0.07em;
}

.seal-content span {
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.partner-line {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.milestone-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 38px;
  align-items: center;
  padding: 70px 0 110px;
}

.milestone-section h2 {
  margin: 10px 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 40px;
  letter-spacing: -0.045em;
}

.milestone-section p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

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

.milestone {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg-raised);
}

.milestone > span {
  color: var(--gold-soft);
  font: 700 10px ui-monospace, monospace;
}

.milestone b {
  font-size: 12px;
}

.milestone small {
  color: var(--muted);
  font-size: 10px;
}

.milestone > strong {
  color: var(--green);
  font-size: 10px;
  text-transform: uppercase;
}

.dashboard-page {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  width: min(1510px, calc(100% - 34px));
  margin: 24px auto 40px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #07101c;
  box-shadow: var(--shadow);
}

.dashboard-sidebar {
  padding: 25px 18px;
  border-right: 1px solid var(--border);
  background: #081322;
}

.sidebar-heading {
  padding: 4px 6px 22px;
  border-bottom: 1px solid var(--border);
}

.sidebar-heading small {
  color: var(--gold-soft);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sidebar-heading h2 {
  margin: 7px 0 3px;
  font: 700 22px "Space Grotesk", sans-serif;
}

.sidebar-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.sidebar-label {
  margin: 24px 8px 10px;
  color: #62728a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-nav {
  display: grid;
  gap: 5px;
}

.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.sidebar-nav button:hover,
.sidebar-nav button.active {
  background: var(--surface-3);
  color: var(--text);
}

.sidebar-nav button.active {
  box-shadow: inset 3px 0 var(--gold);
}

.sidebar-footer {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(21, 214, 160, 0.15);
  border-radius: 12px;
  background: rgba(21, 214, 160, 0.05);
}

.sidebar-footer b {
  display: block;
  color: var(--green);
  font-size: 10px;
}

.sidebar-footer p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.55;
}

.dashboard-content {
  min-width: 0;
  padding: 26px;
}

.dashboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.dashboard-topbar h1 {
  margin: 0;
  font: 700 28px "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.dashboard-topbar p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.dashboard-toolbar-actions {
  margin-top: 0;
}

.icon-button {
  min-height: 39px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 11px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface);
}

.summary-card span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font: 700 27px "Space Grotesk", sans-serif;
}

.summary-card small {
  color: var(--muted);
  font-size: 9px;
}

.progress-track {
  height: 5px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--surface-3);
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan));
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(2, 180px) auto;
  gap: 10px;
  margin: 16px 0;
}

.quick-add {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 190px 130px auto;
  gap: 10px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(21, 214, 160, 0.2);
  border-radius: 13px;
  background: rgba(21, 214, 160, 0.045);
}

.quick-add[hidden] {
  display: none;
}

.search-input,
.filter-select {
  min-height: 40px;
  font-size: 10px;
}

.view-toggle {
  display: flex;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.view-toggle button {
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.view-toggle button.active {
  background: var(--surface-3);
  color: var(--text);
}

.kanban {
  display: grid;
  grid-template-columns: repeat(4, minmax(236px, 1fr));
  gap: 11px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-width: 236px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(5, 11, 19, 0.46);
}

.column-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 4px 12px;
}

.column-heading b {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}

.column-heading b::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  content: "";
}

.kanban-column[data-status="progress"] .column-heading b::before {
  background: var(--cyan);
}

.kanban-column[data-status="review"] .column-heading b::before {
  background: var(--gold);
}

.kanban-column[data-status="completed"] .column-heading b::before {
  background: var(--green);
}

.column-heading span {
  display: grid;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

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

.task-card {
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.task-card:hover {
  border-color: var(--border-strong);
}

.task-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.workspace-label {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.priority {
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(158, 124, 255, 0.1);
  color: #c5b6ff;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.priority.urgent {
  background: rgba(255, 107, 122, 0.1);
  color: #ff8995;
}

.priority.high {
  background: rgba(255, 177, 27, 0.1);
  color: var(--gold-soft);
}

.task-card h3 {
  margin: 12px 0 8px;
  font-size: 11px;
  line-height: 1.5;
}

.task-card > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-row span {
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 7px;
}

.task-owner {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 8px;
}

.task-owner i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-dark), var(--cyan));
  color: #02130f;
  font-style: normal;
  font-weight: 800;
}

.status-select {
  width: 100%;
  min-height: 34px;
  margin-top: 11px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #07101c;
  color: var(--soft);
  font-size: 8px;
  font-weight: 700;
}

.task-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
}

.task-table-row {
  display: grid;
  grid-template-columns: 85px minmax(260px, 1fr) 160px 90px 130px;
  gap: 12px;
  align-items: center;
  min-width: 780px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 9px;
}

.task-table-row:last-child {
  border-bottom: 0;
}

.task-table-row.header {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.task-table-scroll {
  overflow-x: auto;
}

.login-shell {
  display: grid;
  min-height: calc(100vh - 190px);
  place-items: center;
  padding: 70px 20px;
}

.login-card {
  width: min(470px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 177, 27, 0.2);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 177, 27, 0.09), transparent 20rem),
    var(--bg-raised);
  box-shadow: var(--shadow);
}

.login-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(255, 177, 27, 0.25);
  border-radius: 16px;
  background: rgba(255, 177, 27, 0.08);
  color: var(--gold-soft);
  font-size: 22px;
}

.login-card h1 {
  margin: 25px 0 8px;
  font: 700 31px "Space Grotesk", sans-serif;
  letter-spacing: -0.045em;
}

.login-card > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.login-form {
  display: grid;
  gap: 11px;
  margin-top: 25px;
}

.pin-input {
  min-height: 50px;
}

.login-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--muted);
  font-size: 9px;
}

.login-help button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
}

.loading-state,
.error-state,
.empty-state {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid var(--surface-3);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 380px;
  padding: 13px 16px;
  border: 1px solid rgba(21, 214, 160, 0.25);
  border-radius: 11px;
  background: #10251f;
  color: #b9f5e4;
  box-shadow: var(--shadow);
  font-size: 11px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  border-color: rgba(255, 107, 122, 0.25);
  background: #2a1118;
  color: #ffc0c7;
}

.global-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 60px;
  padding: 38px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--border);
  background: #050b13;
}

.footer-brand {
  color: var(--green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.global-footer p {
  max-width: 430px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links button {
  font-size: 10px;
  font-weight: 700;
}

.footer-links button:hover {
  color: var(--text);
}

.footer-meta {
  justify-self: end;
  color: var(--muted);
  font-size: 9px;
}

@media (max-width: 1120px) {
  .global-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .hero,
  .project-hero {
    gap: 30px;
  }

  .service-grid,
  .pillar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-page {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .publisher-preview {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .system-chip,
  .dashboard-link {
    display: none;
  }

  .hero,
  .project-hero,
  .spotlight,
  .studio-layout,
  .publisher-layout,
  .milestone-section {
    grid-template-columns: 1fr;
  }

  .publisher-preview {
    grid-column: auto;
  }

  .hero {
    padding-top: 58px;
  }

  .metrics-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .spotlight {
    padding: 34px;
  }

  .project-seal {
    min-height: 360px;
  }

  .dashboard-page {
    display: block;
  }

  .dashboard-sidebar {
    display: none;
  }

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

  .quick-add {
    grid-template-columns: 1fr 1fr;
  }

  .search-input {
    grid-column: 1 / -1;
  }

  .global-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .global-header {
    min-height: 72px;
    padding: 10px 16px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy > span:last-child,
  .brand-row small {
    display: none;
  }

  .page-shell {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    min-height: 0;
    padding: 48px 0 55px;
  }

  .hero h1,
  .project-hero h1 {
    font-size: 44px;
  }

  .hero-copy > p,
  .project-hero-copy > p {
    font-size: 14px;
  }

  .command-card {
    min-height: 410px;
    padding: 22px;
  }

  .status-grid,
  .service-grid,
  .pillar-grid,
  .summary-grid,
  .form-grid,
  .filters {
    grid-template-columns: 1fr;
  }

  .quick-add {
    grid-template-columns: 1fr;
  }

  .search-input,
  .field.full {
    grid-column: auto;
  }

  .metrics-strip {
    grid-template-columns: 1fr 1fr;
  }

  .metric {
    padding: 20px;
  }

  .section {
    padding: 75px 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .spotlight {
    padding: 25px;
  }

  .project-map-row {
    grid-template-columns: 38px 1fr;
  }

  .project-map-row > strong {
    grid-column: 2;
  }

  .project-hero {
    min-height: 0;
    padding-bottom: 60px;
  }

  .seal-orbit {
    width: 250px;
    height: 250px;
  }

  .milestone {
    grid-template-columns: 75px 1fr;
  }

  .milestone > strong {
    grid-column: 2;
  }

  .dashboard-page {
    width: calc(100% - 20px);
    margin-top: 10px;
    border-radius: 18px;
  }

  .dashboard-content {
    padding: 17px;
  }

  .dashboard-topbar {
    align-items: flex-start;
  }

  .dashboard-topbar h1 {
    font-size: 23px;
  }

  .dashboard-toolbar-actions {
    display: grid;
  }

  .login-card {
    padding: 28px 22px;
  }

  .global-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
