:root {
  --federal-blue: #03045e;
  --marian-blue: #023e8a;
  --honolulu-blue: #0077b6;
  --blue-green: #0096c7;
  --pacific-cyan: #00b4d8;
  --vivid-sky: #48cae4;
  --non-photo: #90e0ef;
  --light-cyan: #caf0f8;
  --ink: #07111f;
  --muted: #5b6b7f;
  --line: rgba(3, 4, 94, 0.12);
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 24px 80px rgba(3, 4, 94, 0.12);
  font-family: "Satoshi", "Avenir Next", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(72, 202, 228, 0.38), transparent 32rem),
    linear-gradient(135deg, #f9feff 0%, #edfaff 44%, #ffffff 100%);
}

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

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px minmax(0, 1fr);
  animation: rise 520ms ease both;
}

.rail {
  min-height: 100vh;
  color: white;
  background:
    linear-gradient(160deg, rgba(3, 4, 94, 0.98), rgba(2, 62, 138, 0.96)),
    radial-gradient(circle at 40% 12%, rgba(0, 180, 216, 0.55), transparent 18rem);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.brand {
  font-size: 28px;
  line-height: 0.94;
  font-weight: 900;
  color: var(--pacific-cyan);
}

.brand span {
  display: block;
  color: var(--vivid-sky);
}

.nav {
  display: grid;
  gap: 10px;
}

.nav button {
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 750;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav button.active,
.nav button:hover {
  color: #ffffff;
  background: rgba(0, 180, 216, 0.2);
  transform: translateX(2px);
}

.rail-card {
  margin-top: auto;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.main {
  min-width: 0;
  padding: 22px;
}

.topbar,
.panel,
.queue,
.preview {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 14px;
}

.workspace-label,
.eyebrow,
.meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.workspace-name {
  margin-top: 2px;
  font-size: 18px;
  font-weight: 900;
}

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

.button {
  border: 0;
  border-radius: 8px;
  min-height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--honolulu-blue), var(--pacific-cyan));
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(0, 119, 182, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button.secondary {
  color: var(--marian-blue);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: none;
}

.button.ghost {
  color: var(--marian-blue);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid transparent;
  box-shadow: none;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(0, 119, 182, 0.25);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}

.grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.15fr) minmax(290px, 0.55fr) minmax(320px, 0.85fr);
  gap: 12px;
}

.panel,
.preview,
.queue {
  border-radius: 8px;
  padding: 16px;
}

.panel h2,
.preview h2,
.queue h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.platforms,
.account-list,
.queue-list {
  display: grid;
  gap: 9px;
}

.platform {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.64);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.platform:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 180, 216, 0.45);
  background: #ffffff;
}

.logo {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  background: var(--honolulu-blue);
}

.logo.x {
  background: #101827;
}

.logo.facebook {
  background: #1877f2;
}

.logo.instagram {
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
}

.logo.youtube {
  background: #c8d0dc;
}

.status {
  min-width: 86px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--marian-blue);
  background: var(--light-cyan);
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.status.muted {
  color: #697386;
  background: #edf2f7;
}

.form {
  display: grid;
  gap: 11px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--pacific-cyan);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.14);
}

.preview-post {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
  min-height: 320px;
  animation: fade 240ms ease both;
}

.preview-head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.preview-media {
  height: 168px;
  border-radius: 8px;
  margin-top: 14px;
  background:
    linear-gradient(135deg, rgba(3, 4, 94, 0.72), rgba(0, 180, 216, 0.58)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='180' viewBox='0 0 320 180'%3E%3Cpath fill='%23ffffff22' d='M0 150c42-28 78-34 110-18s62 11 88-14 72-25 122 2v60H0z'/%3E%3Ccircle cx='232' cy='58' r='26' fill='%23ffffff33'/%3E%3C/svg%3E");
  background-size: cover;
}

.queue {
  margin-top: 12px;
}

.queue-item {
  display: grid;
  grid-template-columns: 88px 1fr 120px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.queue-item:first-child {
  border-top: 0;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--marian-blue);
  background: var(--light-cyan);
  font-size: 12px;
  font-weight: 900;
}

.auth {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(520px, 100%);
  border-radius: 8px;
  padding: 28px;
  color: #ffffff;
  background:
    linear-gradient(150deg, rgba(3, 4, 94, 0.94), rgba(0, 119, 182, 0.88)),
    radial-gradient(circle at top right, rgba(72, 202, 228, 0.7), transparent 18rem);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 70px);
  line-height: 0.9;
}

.auth-card p {
  color: rgba(255, 255, 255, 0.78);
}

.notice,
.error {
  border-radius: 8px;
  padding: 11px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 750;
}

.notice {
  color: #075985;
  background: #e0f7ff;
}

.error {
  color: #9f1239;
  background: #ffe4e6;
}

.hidden {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1180px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .rail {
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .rail-card {
    display: none;
  }

  .nav {
    display: flex;
    flex-wrap: wrap;
  }

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

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

@media (max-width: 760px) {
  .main {
    padding: 12px;
  }

  .topbar,
  .grid,
  .row,
  .queue-item {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
  }

  .grid {
    display: grid;
  }

  .rail {
    display: block;
  }

  .nav {
    margin-top: 18px;
  }
}
