:root {
  color: #202124;
  background: #f6f7f9;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
}

.landing-body {
  background: #0c1112;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

a.secondary-button,
a.primary-button {
  text-decoration: none;
}

.landing-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(7, 12, 13, 0.94), rgba(7, 12, 13, 0.76), rgba(7, 12, 13, 0.48)),
    url("https://images.unsplash.com/photo-1493246507139-91e8fad9978e?auto=format&fit=crop&w=2200&q=82") center / cover;
  color: #ffffff;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(360px, 1fr) minmax(320px, 430px);
  min-height: calc(100vh - 70px);
  padding: 56px;
}

.landing-content {
  display: grid;
  gap: 96px;
  max-width: 820px;
}

.landing-brand {
  align-items: start;
  display: inline-grid;
  gap: 14px;
  justify-items: start;
}

.landing-brand-lockup {
  align-items: center;
  display: flex;
  gap: 14px;
  transform: scale(1.75);
  transform-origin: left top;
}

.landing-brand h1,
.landing-brand p,
.hero-copy h2,
.hero-copy p,
.login-panel h2,
.login-panel p {
  color: inherit;
}

.landing-brand h1 {
  font-size: 22px;
}

.landing-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 3px;
}

.acronym-word {
  display: inline-flex;
  gap: 1px;
  position: relative;
}

.acronym-word > span {
  cursor: help;
  display: inline-flex;
  overflow: hidden;
  position: relative;
  transition: color 180ms ease, opacity 180ms ease, text-shadow 180ms ease, transform 180ms ease;
}

.acronym-word > span > span {
  display: inline-block;
}

.acronym-word em {
  display: inline-block;
  font-style: normal;
  max-width: 0;
  opacity: 1;
  overflow: hidden;
  transition: max-width 260ms ease, opacity 180ms ease;
  white-space: nowrap;
}

.acronym-word:hover > span {
  opacity: 0.34;
}

.acronym-word > span:hover,
.acronym-word > span:focus {
  color: #ffffff;
  opacity: 1;
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.2);
}

.acronym-word > span:hover em,
.acronym-word > span:focus em {
  max-width: 14ch;
}

.acronym-word > span:hover > span,
.acronym-word > span:focus > span {
  color: #ff382f;
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.hero-copy h2 {
  font-size: 60px;
  line-height: 1.03;
  max-width: 850px;
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.55;
  max-width: 650px;
}

.hero-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 6px;
}

.hero-signals span {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.86);
  display: inline-flex;
  font-size: 13px;
  gap: 7px;
  padding: 0;
}

.social-pill img {
  display: block;
  height: 16px;
  width: 16px;
}

.inline-brand-icon {
  display: block;
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.linkedin-icon {
  color: #0a66c2;
}

.login-panel {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  color: #202124;
  display: grid;
  gap: 22px;
  padding: 30px;
}

.registration-notice {
  background: #f7f9fb;
  border: 1px solid #dce1e7;
  border-left: 4px solid #e62117;
  border-radius: 8px;
  color: #3d4651;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  padding: 12px 14px;
}

.login-panel h2 {
  font-size: 30px;
}

.login-panel p {
  color: #5f6773;
  margin-top: 6px;
}

.login-form {
  display: grid;
  gap: 14px;
}

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

.login-form label {
  color: #3d4651;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.login-form .primary-button {
  margin-top: 4px;
}

.password-checklist {
  background: #f7f9fb;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  color: #5f6773;
  display: grid;
  font-size: 12px;
  gap: 6px;
  line-height: 1.35;
  list-style: none;
  margin: -4px 0 0;
  padding: 10px 12px;
}

.password-checklist[hidden] {
  display: none;
}

.password-checklist li {
  align-items: center;
  display: flex;
  gap: 7px;
}

.password-checklist li::before {
  background: #dce1e7;
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.password-checklist li.passed {
  color: #137333;
  font-weight: 700;
}

.password-checklist li.passed::before {
  background: #137333;
}

.email-domain-feedback {
  background: #f7f9fb;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  color: #5f6773;
  font-size: 12px;
  line-height: 1.4;
  margin: -4px 0 0;
  padding: 10px 12px;
}

.email-domain-feedback[hidden] {
  display: none;
}

.email-domain-feedback.success {
  display: none;
}

.email-domain-feedback.restricted {
  background: #fff7f6;
  border-color: #ffb4aa;
  color: #b42318;
  font-weight: 700;
}

.landing-footer {
  background: #0c1112;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
  padding: 22px;
  text-align: center;
}

.app-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.admin-shell {
  display: grid;
  grid-template-columns: 300px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: #ffffff;
  border-right: 1px solid #dce1e7;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px;
}

.admin-workspace {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 28px;
}

.admin-panel {
  display: none;
}

.admin-panel.active {
  display: block;
}

.admin-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
}

.admin-card,
.admin-stat-card,
.account-settings-panel {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
}

.admin-card {
  display: grid;
  gap: 16px;
  overflow: hidden;
  padding: 18px;
}

.account-settings-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.account-settings-panel[hidden] {
  display: none;
}

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

.inline-feedback {
  background: #f7f9fb;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  color: #3d4651;
  font-size: 13px;
  line-height: 1.45;
  padding: 10px;
}

.inline-feedback.success {
  background: #f3fbf6;
  border-color: #b7e4c7;
  color: #137333;
  font-weight: 700;
}

.inline-feedback.restricted {
  background: #fff7f6;
  border-color: #ffb4aa;
  color: #b42318;
  font-weight: 700;
}

.admin-card-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-card-actions {
  display: flex;
  gap: 10px;
}

.setting-copy {
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.toggle-control {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.toggle-control input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.toggle-control span {
  background: #cfd6df;
  border-radius: 999px;
  display: inline-block;
  height: 28px;
  position: relative;
  transition: background 160ms ease;
  width: 52px;
}

.toggle-control span::after {
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  content: "";
  height: 22px;
  left: 3px;
  position: absolute;
  top: 3px;
  transition: transform 160ms ease;
  width: 22px;
}

.toggle-control input:checked + span {
  background: #e62117;
}

.toggle-control input:checked + span::after {
  transform: translateX(24px);
}

.admin-stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.admin-stat-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.admin-stat-card strong {
  font-size: 32px;
}

.admin-stat-card span,
.admin-muted {
  color: #5f6773;
  font-size: 13px;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form label {
  color: #3d4651;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.admin-search-label {
  color: #3d4651;
  display: grid;
  gap: 8px;
  font-weight: 700;
}

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

.admin-table table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #e4e8ee;
  font-size: 13px;
  padding: 11px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #4d5560;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table input {
  min-width: 92px;
}

.admin-table input[type="checkbox"] {
  min-width: 0;
  width: auto;
}

.table-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.content-review-table {
  min-width: 1180px;
}

.review-text {
  max-width: 360px;
  min-width: 220px;
  white-space: normal;
}

.brand-review-grid {
  display: grid;
  gap: 10px;
  min-width: 260px;
}

.brand-review-card {
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.brand-review-card strong {
  color: #202124;
}

.brand-review-card p {
  font-size: 12px;
  line-height: 1.4;
}

.connection-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.compact-button {
  min-height: 34px;
}

.status-pill {
  background: #eef2f6;
  border-radius: 999px;
  color: #3d4651;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 9px;
}

.status-pill.active,
.status-pill.scheduled {
  background: #e8f7ed;
  color: #176a35;
}

.status-pill.role-admin {
  background: #fff0ee;
  color: #b42318;
}

.status-pill.role-user {
  background: #eef2f6;
  color: #3d4651;
}

.status-pill.disabled,
.status-pill.failed {
  background: #fff0ee;
  color: #b42318;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.sidebar {
  background: #ffffff;
  border-right: 1px solid #dce1e7;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px;
}

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

.brand h1 {
  line-height: 1;
}

.brand-mark {
  align-items: center;
  background: #e62117;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  font-size: 12px;
  font-weight: 800;
  height: 44px;
  place-items: center;
  width: 72px;
}

.upload-icon,
.large-icon {
  color: #e62117;
  font-size: 28px;
  line-height: 1;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 18px;
  line-height: 1.2;
}

h2 {
  font-size: 28px;
  line-height: 1.18;
}

h3 {
  font-size: 16px;
  line-height: 1.25;
}

p {
  color: #5f6773;
}

.brand p,
.eyebrow {
  color: #727b86;
  font-size: 12px;
}

.eyebrow {
  display: block;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.upload-zone {
  align-items: center;
  border: 1px dashed #b8c0ca;
  border-radius: 8px;
  color: #4d5560;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 168px;
  padding: 24px;
  text-align: center;
}

.upload-zone input {
  display: none;
}

.upload-zone strong {
  color: #202124;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.upload-zone span {
  color: #68717c;
  font-size: 13px;
}

.upload-zone.has-file {
  background: #fff5f4;
  border-color: #e62117;
}

.status-panel,
.brand-profile-panel,
.connections-panel,
.queue-card {
  align-items: center;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}

.brand-profile-panel,
.connections-panel {
  align-items: stretch;
  display: grid;
  gap: 12px;
}

.brand-profile-header {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.brand-profile-panel p {
  color: #5f6773;
  font-size: 12px;
  line-height: 1.4;
}

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

.connection-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.connection-row .secondary-button {
  min-height: 34px;
}

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

.image-workspace {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.generation-workspace {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bulk-workspace {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.bulk-dropzone {
  align-items: center;
  background: #f7f9fb;
  border: 1px dashed #b8c0ca;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 180px;
  padding: 28px;
  text-align: center;
}

.bulk-dropzone input {
  display: none;
}

.bulk-dropzone.dragging {
  background: #fff5f4;
  border-color: #e62117;
}

.bulk-toolbar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

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

.bulk-row {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  padding: 14px;
}

.bulk-row h3,
.bulk-row p {
  overflow-wrap: anywhere;
}

.bulk-meta {
  display: grid;
  gap: 6px;
}

.bulk-meta span {
  color: #5f6773;
  font-size: 13px;
  line-height: 1.4;
}

.compact-empty {
  min-height: 180px;
}

.image-prompt-list {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
}

.image-prompt-card {
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.image-prompt-card p {
  color: #4d5560;
  font-size: 12px;
  line-height: 1.45;
}

.asset-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.asset-section {
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.asset-section p {
  font-size: 13px;
  line-height: 1.45;
}

.tab-list button,
.secondary-button,
.primary-button,
.icon-button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.tab-list button {
  background: transparent;
  color: #4e5965;
  justify-content: flex-start;
  width: 100%;
}

.tab-list button,
.secondary-button,
.primary-button,
.icon-button,
.brand-mark,
.upload-icon,
.large-icon {
  user-select: none;
}

.tab-list button.active {
  background: #f0f2f5;
  color: #202124;
  font-weight: 700;
}

.nav-separator {
  border-top: 1px solid #dce1e7;
  display: block;
  margin: 8px 0;
}

.secondary-button {
  background: #ffffff;
  border-color: #cfd6df;
  color: #202124;
}

.danger-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid #ffb4aa;
  border-radius: 8px;
  color: #b42318;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
}

.primary-button {
  background: #e62117;
  color: #ffffff;
}

.icon-button {
  background: #ffffff;
  border-color: #dce1e7;
  color: #4e5965;
  min-width: 40px;
  padding: 0;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 28px;
}

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

.actions {
  display: flex;
  gap: 10px;
}

.profile-menu {
  position: relative;
}

.profile-button {
  align-items: center;
  background: #e62117;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  display: inline-grid;
  font-weight: 800;
  height: 42px;
  place-items: center;
  width: 42px;
}

.profile-dropdown {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(32, 33, 36, 0.16);
  color: #202124;
  display: grid;
  gap: 8px;
  min-width: 260px;
  padding: 12px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
}

.profile-dropdown[hidden] {
  display: none;
}

.profile-dropdown span {
  color: #5f6773;
  font-size: 13px;
}

.admin-dashboard-link[hidden] {
  display: none;
}

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

.platform-switcher {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  margin-bottom: 14px;
}

.platform-sync-bar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.platform-sync-bar p {
  color: #5f6773;
  font-size: 13px;
  line-height: 1.4;
}

.target-selector {
  align-items: start;
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 12px;
}

.target-selector p {
  font-size: 13px;
}

.target-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.target-option {
  align-items: center;
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  padding: 5px 9px;
}

.target-option input {
  width: auto;
}

.platform-switcher button {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  color: #202124;
  display: grid;
  gap: 4px;
  min-height: 64px;
  padding: 12px;
  text-align: left;
}

.platform-heading {
  align-items: center;
  color: #202124;
  display: flex;
  gap: 8px;
}

.platform-icon {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 7px;
  color: #202124;
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  height: 28px;
  line-height: 1;
  place-items: center;
  width: 32px;
}

.platform-icon img {
  display: block;
  height: 17px;
  width: 17px;
}

.platform-switcher button.active {
  border-color: #e62117;
  box-shadow: 0 0 0 3px rgba(230, 33, 23, 0.12);
}

.platform-api {
  color: #68717c;
  font-size: 12px;
  line-height: 1.35;
}

.identity-section {
  margin-bottom: 14px;
}

.identity-panel {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1.2fr 1.2fr 0.9fr;
  padding: 16px;
}

.identity-panel div {
  display: grid;
  gap: 5px;
}

.identity-panel label {
  display: grid;
  gap: 8px;
}

.identity-panel p {
  font-size: 13px;
  line-height: 1.45;
}

.identity-panel textarea {
  min-height: 78px;
}

.field-row,
.scheduler-panel section,
.json-panel,
.empty-state {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
}

.field-row {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.field-topline,
.field-label,
.field-label-group,
.prompt-box span,
.json-toolbar,
.check-row,
.queue-meta {
  align-items: center;
  display: flex;
}

.field-topline {
  justify-content: space-between;
}

.field-label-group {
  flex-wrap: wrap;
  gap: 9px;
}

.field-label,
.prompt-box span {
  gap: 8px;
  font-weight: 700;
}

.field-label {
  flex-wrap: wrap;
}

.field-platforms {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.field-platforms .platform-icon {
  border-radius: 6px;
  height: 24px;
  width: 26px;
}

.field-platforms .platform-icon img {
  height: 14px;
  width: 14px;
}

.universal-rules {
  grid-column: 1 / -1;
}

.universal-rules h3 {
  margin-bottom: 4px;
}

.universal-rule-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.universal-rule-grid article {
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.universal-rule-grid article span {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.universal-rule-grid .platform-icon {
  align-items: center;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.universal-rule-grid .platform-icon img {
  display: block;
  height: 15px;
  object-fit: contain;
  width: 15px;
}

.universal-rule-grid p {
  font-size: 12px;
  line-height: 1.45;
}

.field-counter {
  background: #eef2f6;
  border-radius: 999px;
  color: #4d5560;
  font-size: 12px;
  line-height: 1.3;
  padding: 5px 8px;
}

.field-counter.over-limit {
  background: #fff0ee;
  color: #b42318;
}

input,
textarea,
select {
  background: #ffffff;
  border: 1px solid #cfd6df;
  border-radius: 8px;
  color: #202124;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  -webkit-text-fill-color: #202124;
  caret-color: #202124;
}

textarea {
  line-height: 1.45;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #e62117;
  box-shadow: 0 0 0 3px rgba(230, 33, 23, 0.13);
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  padding-right: 38px;
}

.select-wrap svg {
  color: #68717c;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 12px;
}

.prompt-box {
  background: #f7f9fb;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  display: grid;
  gap: 9px;
  padding: 12px;
}

.locked-prompt p {
  color: #4d5560;
  font-size: 13px;
  line-height: 1.45;
}

.scheduler-panel {
  display: grid;
  align-items: start;
  gap: 14px;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
}

.scheduler-panel section {
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  color: #3d4651;
  display: grid;
  gap: 7px;
  font-weight: 700;
}

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

.schedule-submit {
  justify-self: end;
  margin-top: 4px;
}

.check-group {
  display: grid;
  gap: 8px;
}

.check-group h4 {
  color: #3d4651;
  font-size: 13px;
  margin: 0;
}

.check-row {
  background: #f7f9fb;
  border-radius: 8px;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
}

.check-row svg {
  color: #168039;
}

.check-row strong {
  margin-left: auto;
}

.json-panel {
  min-height: 0;
  overflow: hidden;
}

.json-toolbar {
  border-bottom: 1px solid #dce1e7;
  justify-content: space-between;
  padding: 16px;
}

pre {
  background: #111418;
  color: #eef5ff;
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
  min-height: 520px;
  overflow: auto;
  padding: 18px;
}

.queue-panel {
  display: grid;
  gap: 12px;
}

.empty-state {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 360px;
  padding: 60px 20px;
  text-align: center;
}

.empty-state svg {
  color: #e62117;
}

.queue-card {
  background: #ffffff;
}

.queue-card h3 {
  margin-top: 3px;
}

.queue-meta {
  gap: 10px;
}

.queue-meta span,
.queue-meta strong {
  background: #f0f2f5;
  border-radius: 999px;
  color: #3d4651;
  font-size: 12px;
  padding: 6px 10px;
}

.app-footer {
  border-top: 1px solid #dce1e7;
  color: #68717c;
  font-size: 13px;
  grid-column: 1 / -1;
  padding: 10px 0;
  text-align: center;
  width: 100%;
}

.policy-page {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 980px;
  padding: 32px 24px;
}

.policy-header,
.policy-card {
  background: #ffffff;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  padding: 18px;
}

.policy-card {
  display: grid;
  gap: 12px;
}

.policy-updated {
  font-size: 13px;
  margin-top: 12px;
}

.policy-card p {
  line-height: 1.55;
}

@media (max-width: 980px) {
  .landing-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 34px;
  }

  .landing-content {
    gap: 58px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

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

  .admin-shell,
  .admin-grid,
  .admin-stat-grid {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    border-bottom: 1px solid #dce1e7;
    border-right: 0;
  }

  .sidebar {
    border-bottom: 1px solid #dce1e7;
    border-right: 0;
  }

  .tab-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tab-list button {
    justify-content: center;
  }

  .metadata-grid,
  .platform-switcher,
  .identity-panel,
  .image-prompt-list,
  .bulk-row,
  .asset-grid,
  .scheduler-panel {
    grid-template-columns: 1fr;
  }

  .target-selector {
    align-items: stretch;
    flex-direction: column;
  }

  .platform-sync-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .target-options {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .landing-hero {
    padding: 24px;
  }

  .landing-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-copy h2 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .sidebar,
  .workspace,
  .admin-sidebar,
  .admin-workspace {
    padding: 18px;
  }

  .topbar,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  h2 {
    font-size: 23px;
  }

  .json-toolbar,
  .queue-card {
    align-items: stretch;
    flex-direction: column;
  }
}
