@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&display=swap");

:root {
  color-scheme: dark;
  --black: #000000;
  --ink: #111111;
  --ivory: #fafafa;
  --soft: #dcdcdc;
  --muted: #9a9a9a;
  --gray: #79756d;
  --line: rgba(250, 250, 250, 0.16);
  --panel: rgba(250, 250, 250, 0.055);
  --panel-strong: rgba(250, 250, 250, 0.1);
  --bronze: #dcdcdc;
  --green: #9fb490;
  --red: #b8897a;
  font-family: freight-text-pro, ainslie-sans, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--black);
  color: var(--ivory);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  flex: 0 0 auto;
}

.auth-shell,
.code-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  background:
    linear-gradient(135deg, #000 0%, #171717 54%, #000 100%);
}

.auth-shell,
.code-shell {
  position: relative;
  overflow: hidden;
}

.landing-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  min-height: 92px;
  padding: 24px clamp(22px, 4vw, 62px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), transparent);
}

.landing-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-header .brand-logo {
  width: clamp(220px, 20vw, 340px);
  margin: 0;
}

.landing-header .mark {
  margin: 0;
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.auth-shell .brand-panel {
  grid-area: 1 / 1;
}

.code-shell .brand-panel {
  grid-area: 1 / 1;
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: 0;
}

.background-slides {
  position: absolute;
  inset: 0;
}

.background-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: saturate(0.9) contrast(1.08);
  animation: heroFade 24s infinite;
}

.background-slides img:nth-child(2) {
  animation-delay: 8s;
  opacity: 0;
}

.background-slides img:nth-child(3) {
  animation-delay: 16s;
  opacity: 0;
}

@keyframes heroFade {
  0%,
  28% {
    opacity: 0.82;
  }
  36%,
  92% {
    opacity: 0;
  }
  100% {
    opacity: 0.82;
  }
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.34) 52%, rgba(0, 0, 0, 0.78)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent 48%, rgba(0, 0, 0, 0.45));
}

.brand-copy {
  position: absolute;
  left: clamp(24px, 5vw, 80px);
  bottom: clamp(118px, 16vh, 190px);
  z-index: 1;
  max-width: 600px;
}

.brand-copy p,
.eyebrow {
  color: var(--bronze);
  text-transform: uppercase;
  font-size: 0.73rem;
  letter-spacing: 0.16em;
  margin: 0 0 12px;
}

.brand-copy h1,
.code-box h1,
.topbar h1,
.workspace h2 {
  font-family: "Playfair Display", freight-text-pro, Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.brand-copy h1 {
  font-size: clamp(3.4rem, 6vw, 6rem);
  line-height: 0.9;
  max-width: 600px;
  margin: 0 0 22px;
}

.brand-copy span {
  color: var(--soft);
  font-size: 1.1rem;
}

.login-card,
.code-box {
  align-self: end;
  justify-self: end;
  width: min(88%, 440px);
  padding: clamp(24px, 3vw, 38px);
  background: rgba(0, 0, 0, 0.58);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.auth-shell .login-card {
  grid-area: 1 / 1;
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: center;
  margin: 70px 0 0;
  backdrop-filter: blur(9px);
}

.code-shell .code-box {
  grid-area: 1 / 1;
  position: relative;
  z-index: 3;
  align-self: center;
  justify-self: center;
  margin: 70px 0 0;
  text-align: center;
  display: grid;
  justify-items: center;
  width: min(92vw, 760px);
  padding: clamp(34px, 5vw, 64px);
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(250, 250, 250, 0.28);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: blur(9px);
}

.auth-shell .login-card {
  text-align: center;
  background: rgba(0, 0, 0, 0.18);
  border-color: rgba(250, 250, 250, 0.28);
  box-shadow: none;
}

.login-access-title {
  color: var(--ivory);
  font-family: "Playfair Display", freight-text-pro, Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: none;
  margin: 0 0 10px;
  white-space: nowrap;
}

.auth-shell .login-card label {
  text-align: left;
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0.02em;
}

.auth-shell .login-card input,
.auth-shell .login-card button,
.code-shell .code-box input,
.code-shell .code-box button {
  font-family: "Times New Roman", Times, serif;
}

.auth-shell .login-card button,
.code-shell .code-box button {
  letter-spacing: 0.02em;
}

.auth-shell .login-card .primary,
.code-shell .code-box .primary {
  background:
    linear-gradient(rgba(245, 245, 245, 0.18), rgba(70, 70, 70, 0.18)),
    url("assets/venetian-plaster-gray.avif") center / cover;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), inset 0 -16px 28px rgba(0, 0, 0, 0.18);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.42);
}

.code-shell .code-box h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.6rem);
  line-height: 1.05;
  width: min(100%, 680px);
  margin: 0 auto 34px;
  text-align: center;
  white-space: normal;
}

.code-shell .code-form {
  width: min(100%, 520px);
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 16px;
}

.code-shell .code-form input {
  text-align: center;
}

.code-shell .code-form .primary {
  width: min(100%, 280px);
}

.mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(184, 154, 99, 0.55);
  color: var(--bronze);
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 28px;
}

.brand-logo {
  display: block;
  width: min(210px, 58vw);
  height: auto;
  object-fit: contain;
  margin-bottom: 28px;
}

.brand-row .brand-logo {
  width: 118px;
  margin: 0;
}

.login-card h2,
.code-box h1 {
  margin: 0 0 28px;
  font-size: 2rem;
  font-weight: 400;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 8, 7, 0.54);
  color: var(--ivory);
  padding: 0 14px;
  outline: none;
}

input:focus {
  border-color: rgba(184, 154, 99, 0.82);
}

textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 8, 7, 0.54);
  color: var(--ivory);
  padding: 12px 14px;
  outline: none;
  font: inherit;
  line-height: 1.5;
}

textarea:focus {
  border-color: rgba(184, 154, 99, 0.82);
}

.primary,
.secondary,
.text-button {
  min-height: 44px;
  border-radius: 6px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

.primary {
  width: 100%;
  background: var(--ivory);
  color: var(--black);
}

.secondary {
  background: rgba(244, 239, 230, 0.08);
  color: var(--ivory);
  border-color: var(--line);
}

.text-button {
  width: 100%;
  margin-top: 12px;
  background: transparent;
  color: var(--soft);
}

.hint,
.lede {
  color: var(--muted);
  line-height: 1.7;
}

.error-note {
  color: #e1b3a6;
  line-height: 1.55;
  margin: 14px 0 0;
}

.success-note {
  color: var(--green);
  line-height: 1.55;
  margin: 0 0 16px;
}

.code-shell {
  grid-template-columns: 1fr;
  place-items: center;
}

.code-box {
  width: min(92%, 560px);
}

.code-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-top: 26px;
}

.code-form .primary {
  width: auto;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
  background:
    linear-gradient(90deg, rgba(244, 239, 230, 0.04), transparent 36%),
    var(--black);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.9);
}

.brand-row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 32px;
}

.brand-row .mark {
  width: 46px;
  height: 46px;
  margin: 0;
  font-size: 0.8rem;
}

.brand-row strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
}

.brand-row span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  margin-top: 2px;
}

nav {
  display: grid;
  gap: 6px;
}

nav button,
.admin-switch {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 6px;
  text-align: left;
  padding: 0 12px;
  background: transparent;
  color: var(--soft);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

nav button.active,
.admin-switch.active,
nav button:hover,
.admin-switch:hover {
  color: var(--ivory);
  background: rgba(244, 239, 230, 0.08);
  border-color: var(--line);
}

.admin-switch {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace {
  padding: 26px clamp(20px, 4vw, 54px) 54px;
  min-width: 0;
}

.topbar,
.section-head,
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.topbar {
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
}

.profile {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.profile button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ivory);
  min-height: 38px;
  padding: 0 12px;
}

.hero-dashboard,
.recap-hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 42%);
  gap: 28px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(244, 239, 230, 0.1), rgba(244, 239, 230, 0.035));
}

.hero-dashboard h2,
.recap-hero h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(2rem, 4.8vw, 5rem);
  line-height: 0.98;
}

.hero-dashboard p,
.panel p,
.recap-hero p {
  color: var(--soft);
  line-height: 1.75;
  max-width: 720px;
}

.hero-dashboard img,
.recap-hero img,
.media-card img,
.approval-card img,
.selection-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}

.hero-actions,
.button-row,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-actions .primary {
  width: auto;
}

.metric-grid,
.gallery,
.approval-grid,
.selection-grid,
.admin-grid,
.two-column {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric,
.panel,
.media-card,
.approval-card,
.selection-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric {
  min-height: 132px;
  padding: 20px;
}

.metric span,
.panel-head span,
.media-card span,
.selection-card span,
.status-pill,
.alert-list span,
dt {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin: 20px 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.metric small,
.media-card small,
.alert-list small {
  color: var(--muted);
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel {
  padding: 22px;
}

.panel h3,
.approval-card h3,
.selection-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.55rem;
}

.timeline {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.timeline div {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 12px;
  align-items: center;
}

.timeline i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--bronze);
}

.timeline span {
  color: var(--muted);
}

.alert-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.alert-list button {
  display: grid;
  gap: 6px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 8, 7, 0.28);
  color: var(--ivory);
  padding: 14px;
}

.section-head {
  margin: 14px 0 22px;
}

.section-head .secondary,
.section-head .primary {
  width: auto;
}

.status-pill,
.filters button,
.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.08);
  padding: 8px 12px;
}

.filters {
  margin: 0 0 18px;
}

.filters button {
  color: var(--soft);
}

.filters .active {
  color: var(--black);
  background: var(--ivory);
}

.gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.media-card,
.selection-card {
  overflow: hidden;
}

.media-card img {
  height: 240px;
  min-height: 0;
}

.media-card div,
.selection-card div {
  padding: 16px;
}

.media-card strong,
.selection-card strong {
  display: block;
}

.schedule-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  overflow-x: auto;
  gap: 12px;
}

.schedule-panel div {
  min-height: 170px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  display: grid;
  align-content: space-between;
  background: rgba(244, 239, 230, 0.045);
}

.schedule-panel .current {
  border-color: rgba(184, 154, 99, 0.75);
  background: rgba(184, 154, 99, 0.13);
}

.bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(244, 239, 230, 0.1);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--bronze), var(--ivory));
}

.approval-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.approval-card {
  overflow: hidden;
}

.approval-card img {
  height: 230px;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.approval-body {
  padding: 18px;
}

.status {
  display: inline-block;
  color: var(--soft);
  margin-bottom: 14px;
}

.status.approved {
  color: var(--green);
}

.status.pending {
  color: var(--bronze);
}

.status.revision-requested {
  color: var(--red);
}

dl {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
}

dd {
  margin: 0;
  color: var(--soft);
  text-align: right;
}

.approval-card .primary,
.button-row .secondary {
  width: auto;
  flex: 1 1 160px;
}

.selection-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selection-card img {
  height: 190px;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.selection-card p {
  color: var(--soft);
}

.table-panel {
  overflow-x: auto;
}

.search {
  margin-bottom: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 14px 10px;
  color: var(--soft);
}

th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.76rem;
}

td:first-child {
  color: var(--ivory);
}

td svg {
  vertical-align: middle;
  margin-right: 8px;
}

.message-log {
  display: grid;
  gap: 12px;
}

.message-log article {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
}

.message-log span {
  color: var(--bronze);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.message-log p {
  margin: 8px 0;
}

.message-log small {
  color: var(--muted);
}

.recap-hero {
  grid-template-columns: minmax(260px, 40%) 1fr;
}

.admin-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-card {
  min-height: 128px;
  text-align: left;
  color: var(--ivory);
  padding: 18px;
}

.admin-card span {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

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

.editor-panel {
  display: grid;
  align-content: start;
}

.editor-panel.wide {
  grid-column: 1 / -1;
}

.editor-panel h3 {
  margin-bottom: 20px;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.swatch-grid input[type="color"] {
  height: 54px;
  padding: 4px;
}

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

.nav-row {
  grid-template-columns: 18px minmax(92px, auto) 1fr;
  align-items: center;
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: rgba(8, 8, 7, 0.22);
}

.nav-row input[type="checkbox"] {
  min-height: auto;
  width: 18px;
}

.nav-row span {
  color: var(--soft);
  font-size: 0.78rem;
}

@media (max-width: 1120px) {
  .metric-grid,
  .approval-grid,
  .selection-grid,
  .gallery,
  .admin-grid,
  .nav-editor {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .portal-shell {
    grid-template-columns: 240px 1fr;
  }
}

@media (max-width: 820px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .brand-panel {
    min-height: 100vh;
  }

  .login-card {
    margin: 24px 0 36px;
  }

  .auth-shell .login-card {
    align-self: center;
    justify-self: center;
    width: calc(100% - 32px);
    margin: 70px 16px 0;
  }

  .code-shell .code-box {
    width: calc(100% - 32px);
    margin: 70px 16px 0;
    padding: 28px 20px;
  }

  .code-shell .code-box h1 {
    font-size: 2.25rem;
    width: 100%;
  }

  .landing-header {
    position: absolute;
    min-height: 78px;
    padding: 18px;
  }

  .brand-copy {
    left: 18px;
    right: 18px;
    bottom: 390px;
  }

  .brand-copy h1 {
    font-size: 3.1rem;
  }

  .brand-copy span {
    font-size: 0.98rem;
  }

  .portal-shell {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
  }

  nav {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .admin-switch {
    width: auto;
  }

  .topbar,
  .section-head,
  .panel-head,
  .profile {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-dashboard,
  .recap-hero,
  .two-column {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .approval-grid,
  .selection-grid,
  .gallery,
  .admin-grid,
  .editor-grid,
  .nav-editor {
    grid-template-columns: 1fr;
  }

  .editor-panel.wide {
    grid-column: auto;
  }

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

@media (max-width: 540px) {
  .workspace {
    padding: 18px 14px 40px;
  }

  .brand-copy h1 {
    font-size: 2.8rem;
  }

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

  .code-form .primary {
    width: 100%;
  }

  .hero-dashboard,
  .panel,
  .metric {
    padding: 18px;
  }
}
