
/* v0.3.1 App width and filter layout repair */

body.ssc-command-page .ssc-shell,
body.ssc-standalone-app .ssc-shell {
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
}

body.ssc-command-page .ssc-sidebar {
  width: 280px !important;
  min-width: 280px !important;
}

body.ssc-command-page .ssc-main,
body.ssc-standalone-app .ssc-main {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  padding: 38px clamp(22px, 3vw, 54px) !important;
}

body.ssc-command-page .ssc-main > *,
body.ssc-command-page .ssc-page-head,
body.ssc-command-page .ssc-card,
body.ssc-command-page .ssc-grid,
body.ssc-command-page .ssc-dashboard-top,
body.ssc-command-page .ssc-publish-list,
body.ssc-command-page .ssc-smart-calendar {
  max-width: none !important;
}

body.ssc-command-page .ssc-page-head {
  width: min(100%, 1220px) !important;
}

body.ssc-command-page .ssc-card,
body.ssc-command-page .ssc-grid,
body.ssc-command-page .ssc-publish-list {
  width: min(100%, 1280px) !important;
}

body.ssc-command-page .ssc-smart-calendar {
  width: 100% !important;
}

/* Keep statistic cards from forcing narrow columns */
body.ssc-command-page .ssc-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  gap: 18px !important;
}

/* Master filters should be usable, not squeezed */
.ssc-master-filter-card {
  width: min(100%, 1280px) !important;
}

.ssc-master-filter-form {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

.ssc-master-filter-form label,
.ssc-inline-form label,
.ssc-form label {
  min-width: 0 !important;
}

.ssc-master-filter-form select,
.ssc-master-filter-form input,
.ssc-inline-form select,
.ssc-inline-form input {
  width: 100% !important;
  min-width: 0 !important;
}

/* Publishing view filter should not collapse */
.ssc-filter-card .ssc-inline-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: end !important;
}

.ssc-filter-card .ssc-inline-form label {
  flex: 1 1 220px !important;
}

/* Publishing cards should have room */
.ssc-publish-card {
  width: 100% !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr) !important;
}

.ssc-publish-caption {
  max-width: 100% !important;
}

/* Calendar controls should stretch */
.ssc-calendar-top,
.ssc-slot-card {
  width: min(100%, 1280px) !important;
}

/* Make dashboard usable on tablets/mobile */
@media (max-width: 980px) {
  body.ssc-command-page .ssc-shell,
  body.ssc-standalone-app .ssc-shell {
    grid-template-columns: 1fr !important;
  }

  body.ssc-command-page .ssc-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    position: relative !important;
  }

  body.ssc-command-page .ssc-main,
  body.ssc-standalone-app .ssc-main {
    padding: 24px !important;
  }

  body.ssc-command-page .ssc-grid-3,
  .ssc-master-filter-form,
  .ssc-publish-card {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 1280px) {
  .ssc-master-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  .ssc-master-filter-form,
  body.ssc-command-page .ssc-grid-3 {
    grid-template-columns: 1fr !important;
  }
}


/* v0.3.0 Master content filters */

.ssc-master-filter-card {
  margin-bottom: 18px;
  border-color: rgba(232,255,0,.18) !important;
}

.ssc-master-filter-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.ssc-master-filter-form .ssc-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 1280px) {
  .ssc-master-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .ssc-master-filter-form {
    grid-template-columns: 1fr;
  }
}


/* v0.2.9 Brand Brain social field clarification */

.ssc-field-note {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(232,255,0,.08);
  border: 1px solid rgba(232,255,0,.18);
  color: #d8f2ff !important;
  font-weight: 800;
}

.ssc-brand-section textarea[name="ssc_social_handles"] {
  min-height: 90px;
  opacity: .96;
}


/* v0.2.8 Organized Brand Brain layout */

.ssc-brand-brain-card {
  padding: 0 !important;
  overflow: hidden;
}

.ssc-brand-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-bottom: 1px solid rgba(138,211,27,.18);
  background: radial-gradient(circle at top right, rgba(36,174,234,.12), transparent 35%);
}

.ssc-brand-head h2 {
  margin: 4px 0 0;
  color: #fff !important;
  font-size: clamp(28px, 4vw, 44px);
}

.ssc-brand-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ssc-brand-brain-form {
  display: block;
}

.ssc-brand-section {
  padding: 24px;
  border-bottom: 1px solid rgba(138,211,27,.14);
}

.ssc-brand-section:last-of-type {
  border-bottom: 0;
}

.ssc-brand-section-title {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(36,174,234,.08);
  border: 1px solid rgba(36,174,234,.18);
}

.ssc-brand-section-title h3 {
  margin: 0 0 4px;
  color: #fff !important;
}

.ssc-brand-section-title p {
  margin: 0;
  color: #b7d7e8 !important;
}

.ssc-brand-section .ssc-two-col-form {
  display: grid;
  gap: 16px;
}

.ssc-brand-section label {
  display: grid;
  gap: 7px;
  color: #fff !important;
  font-weight: 900;
}

.ssc-brand-section textarea {
  min-height: 118px;
}

.ssc-sticky-save {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 16px 24px;
  background: rgba(0,0,0,.82);
  border-top: 1px solid rgba(232,255,0,.18);
  backdrop-filter: blur(12px);
  z-index: 10;
}

@media (max-width: 900px) {
  .ssc-brand-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ssc-brand-head-actions {
    justify-content: flex-start;
  }
}


/* v0.2.7 Client Social Accounts / Publishing Profiles */

.ssc-client-publish-links {
  background: rgba(36,174,234,.08);
  border: 1px solid rgba(36,174,234,.20);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 16px;
}

.ssc-empty-publish-links p {
  color: #b7d7e8 !important;
  margin: 0;
}

.ssc-publish-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ssc-client-publish-notes {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(36,174,234,.16);
}

.ssc-client-publish-notes strong {
  color: #fff !important;
}

.ssc-client-publish-notes p {
  color: #d8f2ff !important;
  margin: 4px 0 0;
}

.ssc-inline-details {
  grid-column: 1 / -1;
  border: 1px solid rgba(36,174,234,.18);
  border-radius: 18px;
  padding: 12px;
  background: rgba(0,0,0,.14);
}

.ssc-inline-details summary {
  color: #e8ff00;
  font-weight: 900;
  cursor: pointer;
  margin-bottom: 10px;
}

.ssc-inline-details[open] {
  display: grid;
  gap: 12px;
}

.ssc-form-section-title {
  grid-column: 1 / -1;
  padding: 16px;
  border-radius: 18px;
  background: rgba(36,174,234,.08);
  border: 1px solid rgba(36,174,234,.18);
}

.ssc-form-section-title h3 {
  margin: 0 0 4px;
  color: #fff !important;
}

.ssc-form-section-title p {
  margin: 0;
  color: #b7d7e8 !important;
}


/* v0.2.6 Calendar Meta bridge removal cleanup */

.ssc-calendar-top {
  margin-bottom: 18px;
}

.ssc-calendar-top > p {
  margin-top: -4px;
  margin-bottom: 16px;
}


/* v0.2.5 Smart Calendar + timezone + Meta bridge */

.ssc-calendar-top {
  align-items: stretch;
}

.ssc-timezone-save {
  margin-top: 14px;
}

.ssc-slot-card {
  margin-bottom: 18px;
  border-color: rgba(36,174,234,.25) !important;
  transition: box-shadow .25s ease, border-color .25s ease;
}

.ssc-slot-highlight {
  border-color: rgba(232,255,0,.65) !important;
  box-shadow: 0 0 0 2px rgba(232,255,0,.12), 0 0 40px rgba(232,255,0,.16);
}

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

.ssc-slot-form label:nth-last-child(2) {
  grid-column: 1 / -1;
}

.ssc-calendar-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.ssc-smart-calendar {
  display: grid;
  grid-template-columns: 88px repeat(7, minmax(130px, 1fr));
  gap: 1px;
  overflow-x: auto;
  background: rgba(138,211,27,.16);
  border: 1px solid rgba(138,211,27,.22);
  border-radius: 18px;
}

.ssc-calendar-head-cell,
.ssc-calendar-day-head,
.ssc-time-col,
.ssc-calendar-slot {
  min-height: 58px;
  border: 0;
}

.ssc-calendar-head-cell,
.ssc-calendar-day-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #18212d;
}

.ssc-calendar-day-head {
  padding: 12px;
  color: #fff;
}

.ssc-calendar-day-head strong {
  color: #e8ff00 !important;
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.ssc-calendar-day-head span {
  color: #d8f2ff !important;
  font-weight: 900;
}

.ssc-calendar-day-head.is-today {
  background: linear-gradient(135deg, rgba(36,174,234,.28), rgba(138,211,27,.14)), #18212d;
}

.ssc-time-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: rgba(0,0,0,.34);
  color: #e8ff00 !important;
  font-weight: 900;
  font-size: 12px;
}

.ssc-calendar-slot {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 7px;
  text-align: left;
  background: rgba(7,16,20,.96);
  color: #fff;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.ssc-calendar-slot:hover {
  background: rgba(20,45,55,.98);
  transform: translateY(-1px);
}

.ssc-empty-slot {
  display: inline-flex;
  color: rgba(216,242,255,.45);
  font-weight: 900;
  font-size: 12px;
}

.ssc-calendar-item {
  display: block;
  padding: 8px;
  border-radius: 12px;
  background: rgba(36,174,234,.12);
  border: 1px solid rgba(36,174,234,.22);
  margin-bottom: 6px;
}

.ssc-calendar-item strong {
  display: block;
  color: #fff !important;
  font-size: 12px;
  line-height: 1.25;
}

.ssc-calendar-item em {
  display: block;
  color: #b7d7e8 !important;
  font-style: normal;
  font-size: 11px;
  margin-top: 3px;
}

.ssc-calendar-item small {
  display: inline-flex;
  margin-top: 5px;
  color: #e8ff00 !important;
  font-weight: 900;
  font-size: 10px;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .ssc-slot-form {
    grid-template-columns: 1fr;
  }

  .ssc-slot-form label:nth-last-child(2) {
    grid-column: 1 / -1;
  }
}


/* v0.2.4 Publishing Center */

.ssc-publish-list {
  display: grid;
  gap: 18px;
}

.ssc-publish-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 18px;
  background: linear-gradient(180deg, rgba(20, 45, 55, .98), rgba(10, 23, 30, .98));
  border: 1px solid rgba(138,211,27,.26);
  border-radius: 22px;
  padding: 18px;
}

.ssc-publish-card h3 {
  color: #fff !important;
  margin: 6px 0 12px;
}

.ssc-publish-meta,
.ssc-publish-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.ssc-publish-caption {
  max-height: 360px;
  overflow: auto;
}

.ssc-publish-side {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(36,174,234,.18);
  border-radius: 20px;
  padding: 16px;
}

.ssc-publish-side h4 {
  color: #fff !important;
  margin: 0 0 10px;
}

.ssc-checklist {
  margin: 0 0 16px;
  padding-left: 20px;
  color: #d8f2ff;
}

.ssc-checklist li {
  margin-bottom: 8px;
  color: #d8f2ff !important;
}

.ssc-publish-form {
  gap: 10px;
}

.ssc-publish-form textarea {
  min-height: 90px;
}

@media (max-width: 1100px) {
  .ssc-publish-card {
    grid-template-columns: 1fr;
  }
}


/* v0.2.3 Approval & Editing Upgrade */

.ssc-filter-card {
  margin-bottom: 18px;
}

.ssc-approval-review-card {
  background: linear-gradient(180deg, rgba(20, 45, 55, .98), rgba(10, 23, 30, .98));
  border: 1px solid rgba(138,211,27,.28);
  border-radius: 22px;
  overflow: hidden;
}

.ssc-approval-review-card + .ssc-approval-review-card {
  margin-top: 16px;
}

.ssc-approval-review-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.ssc-approval-review-card summary::-webkit-details-marker {
  display: none;
}

.ssc-approval-review-card summary h3 {
  margin: 5px 0 8px;
  color: #fff !important;
}

.ssc-approval-review-card summary p {
  margin: 0;
}

.ssc-summary-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ssc-pill-blue {
  background: rgba(36,174,234,.14) !important;
  color: #8bdcff !important;
  border-color: rgba(36,174,234,.28) !important;
}

.ssc-review-body {
  display: grid;
  grid-template-columns: minmax(320px, .85fr) minmax(420px, 1.15fr);
  gap: 18px;
  padding: 0 20px 20px;
}

.ssc-review-preview,
.ssc-review-form {
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(138,211,27,.14);
  border-radius: 20px;
  padding: 16px;
}

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

.ssc-review-form label:nth-last-child(-n+4) {
  grid-column: 1 / -1;
}

.ssc-asset-preview {
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(36,174,234,.18);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 14px;
}

.ssc-asset-preview img,
.ssc-asset-preview video {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #000;
  border-radius: 14px;
  margin-top: 12px;
}

.ssc-asset-preview strong {
  color: #fff !important;
}

.ssc-asset-empty p {
  color: #b7d7e8 !important;
  margin: 0;
}

.ssc-preview-block {
  margin-top: 14px;
}

.ssc-review-form textarea[name="ssc_caption"] {
  min-height: 240px;
}

@media (max-width: 1100px) {
  .ssc-review-body,
  .ssc-approval-review-card summary,
  .ssc-review-form {
    grid-template-columns: 1fr;
  }

  .ssc-summary-badges {
    justify-content: flex-start;
  }
}


/* v0.2.2 Conditional Content Intake UX */

.ssc-workflow-help {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(36,174,234,.10);
  border: 1px solid rgba(36,174,234,.24);
  color: #d8f2ff !important;
  font-weight: 800;
  line-height: 1.45;
}

.ssc-workflow-legend {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  align-items: center;
  color: #b7d7e8;
  font-size: 13px;
  font-weight: 900;
  margin: -2px 0 6px;
}

.ssc-dot-required,
.ssc-dot-recommended {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  margin-right: -10px;
}

.ssc-dot-required {
  background: #e8ff00;
  box-shadow: 0 0 12px rgba(232,255,0,.4);
}

.ssc-dot-recommended {
  background: #24aeea;
  box-shadow: 0 0 12px rgba(36,174,234,.35);
}

.ssc-intake-form label {
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, background .18s ease;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 10px;
}

.ssc-intake-form .ssc-workflow-required {
  border-color: rgba(232,255,0,.55);
  background: rgba(232,255,0,.055);
  box-shadow: 0 0 0 1px rgba(232,255,0,.10), 0 0 22px rgba(232,255,0,.05);
}

.ssc-intake-form .ssc-workflow-recommended {
  border-color: rgba(36,174,234,.38);
  background: rgba(36,174,234,.045);
}

.ssc-intake-form .ssc-workflow-optional {
  opacity: .82;
}

.ssc-intake-form .ssc-workflow-hidden {
  display: none !important;
}

.ssc-intake-form .ssc-workflow-required::before {
  content: "Needed";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(232,255,0,.18);
  color: #e8ff00;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ssc-intake-form .ssc-workflow-recommended::before {
  content: "Recommended";
  display: inline-flex;
  width: fit-content;
  margin-bottom: 7px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(36,174,234,.15);
  color: #8bdcff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}


/* v0.2.0 Content Intake / Creative Workflow */

.ssc-workflow-card {
  margin-bottom: 18px;
  border-color: rgba(36,174,234,.28) !important;
  background:
    radial-gradient(circle at top right, rgba(36,174,234,.14), transparent 30%),
    linear-gradient(180deg, rgba(13,30,39,.95), rgba(7,16,20,.97)) !important;
}

.ssc-intake-form {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.ssc-intake-form label:nth-last-child(-n+5) {
  grid-column: span 2;
}

.ssc-intake-form .ssc-form-actions {
  grid-column: 1 / -1;
}

.ssc-intake-form textarea {
  min-height: 130px;
}

.ssc-intake-form input[type="file"] {
  padding: 10px;
  background: #fff !important;
}

.ssc-generated {
  font-size: 15px;
}

@media (max-width: 1280px) {
  .ssc-intake-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ssc-intake-form label:nth-last-child(-n+5) {
    grid-column: span 1;
  }
}

@media (max-width: 760px) {
  .ssc-intake-form {
    grid-template-columns: 1fr;
  }
}


/* v0.1.9 Readability and table cleanup */

.ssc-table-wrap {
  background: rgba(0,0,0,.22) !important;
  border-radius: 18px;
  border: 1px solid rgba(138,211,27,.16);
  padding: 8px;
}

.ssc-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(0,0,0,.24) !important;
}

.ssc-table thead tr,
.ssc-table thead th {
  background: #18212d !important;
  color: #e8ff00 !important;
  opacity: 1 !important;
}

.ssc-table tbody tr {
  background: rgba(14, 31, 40, .96) !important;
}

.ssc-table tbody tr:nth-child(even) {
  background: rgba(20, 44, 55, .96) !important;
}

.ssc-table tbody tr:hover {
  background: rgba(34, 69, 79, .98) !important;
}

.ssc-table th,
.ssc-table td {
  color: #f7fbff !important;
  background: transparent !important;
  opacity: 1 !important;
  border-bottom: 1px solid rgba(138,211,27,.13) !important;
  vertical-align: middle;
}

.ssc-table td,
.ssc-table td * {
  color: #f7fbff !important;
  opacity: 1 !important;
}

.ssc-table td:first-child,
.ssc-table td:first-child * {
  color: #ffffff !important;
  font-weight: 800;
}

.ssc-table td:nth-child(2),
.ssc-table td:nth-child(3) {
  color: #d8f2ff !important;
}

.ssc-pill {
  background: rgba(232,255,0,.12) !important;
  color: #e8ff00 !important;
  border: 1px solid rgba(232,255,0,.22);
  box-shadow: none !important;
}

.ssc-card .ssc-table-wrap + p,
.ssc-card p {
  color: #b7d7e8 !important;
}

.ssc-form input,
.ssc-form textarea,
.ssc-form select,
.ssc-inline-form input,
.ssc-inline-form textarea,
.ssc-inline-form select {
  background: #ffffff !important;
  color: #071014 !important;
  border: 1px solid rgba(138,211,27,.28) !important;
}

.ssc-form input::placeholder,
.ssc-form textarea::placeholder,
.ssc-inline-form input::placeholder,
.ssc-inline-form textarea::placeholder {
  color: #7c8794 !important;
  opacity: 1 !important;
}

.ssc-form select option,
.ssc-inline-form select option {
  background: #ffffff !important;
  color: #071014 !important;
}

.ssc-form input[type="date"],
.ssc-form input[type="datetime-local"],
.ssc-form input[type="time"] {
  color-scheme: light;
}

.ssc-page-head p,
.ssc-card > p,
.ssc-muted {
  color: #b7d7e8 !important;
}

/* Campaign generator spacing */
.ssc-pack-card .ssc-pack-form {
  align-items: end;
}

.ssc-pack-card textarea {
  min-height: 104px;
}

.ssc-pack-card .ssc-btn {
  white-space: nowrap;
}

/* Calendar view should use more width */
body.ssc-command-page .ssc-main .ssc-card,
body.ssc-command-page .ssc-main .ssc-grid,
body.ssc-command-page .ssc-main .ssc-dashboard-top {
  width: 100%;
}

@media (min-width: 1200px) {
  body.ssc-command-page .ssc-main {
    padding-right: 48px !important;
  }
}


/* v0.1.8 Client visibility fix */

.ssc-client-list .ssc-mini-card strong,
.ssc-mini-card > strong,
.ssc-approval-card h3,
.ssc-table td:first-child {
  color: #ffffff !important;
  opacity: 1 !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}

.ssc-client-list .ssc-mini-card span,
.ssc-mini-card > span {
  color: #b7d7e8 !important;
  opacity: 1 !important;
}

.ssc-client-list .ssc-mini-card a,
.ssc-mini-card a {
  color: #e8ff00 !important;
  opacity: 1 !important;
  font-weight: 900 !important;
}

.ssc-mini-card {
  background: linear-gradient(180deg, rgba(20, 45, 55, .98), rgba(10, 23, 30, .98)) !important;
  border-color: rgba(138,211,27,.32) !important;
}

.ssc-client-list .ssc-mini-card:hover {
  border-color: rgba(232,255,0,.55) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.28), 0 0 0 1px rgba(232,255,0,.08);
  transform: translateY(-1px);
}


/* v0.1.7 Campaign Pack Generator */

.ssc-pack-card {
  margin-bottom: 18px;
  border-color: rgba(36,174,234,.22) !important;
}

.ssc-pack-form {
  grid-template-columns: minmax(260px, .9fr) minmax(220px, .55fr) minmax(320px, 1.15fr) auto;
  align-items: end;
}

.ssc-pack-form .ssc-form-actions {
  grid-column: auto;
}

.ssc-asset-line {
  margin-top: 10px;
  font-size: 13px;
}

.ssc-asset-line strong {
  color: var(--ssc-text) !important;
}

.ssc-asset-line a {
  margin-left: 8px;
}

@media (max-width: 1200px) {
  .ssc-pack-form {
    grid-template-columns: 1fr;
  }

  .ssc-pack-form .ssc-form-actions {
    grid-column: 1 / -1;
  }
}


/* v0.1.6 Smart Client Discovery */

.ssc-discovery-card {
  margin-bottom: 18px;
  border-color: rgba(232,255,0,.22) !important;
}

.ssc-discovery-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ssc-discovery-head h2 {
  margin-bottom: 8px;
}

.ssc-discovery-form {
  grid-template-columns: 1.1fr .9fr 1.2fr auto;
  align-items: end;
}

.ssc-discovery-form .ssc-form-actions {
  grid-column: auto;
}

.ssc-small-note {
  font-size: 13px;
  margin-top: 14px;
}

@media (max-width: 1100px) {
  .ssc-discovery-form {
    grid-template-columns: 1fr;
  }

  .ssc-discovery-form .ssc-form-actions {
    grid-column: 1 / -1;
  }
}


/* v0.1.5 integrations, asset library, and AI Video Lab refinements */

.ssc-settings-section {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 18px;
  border-top: 1px solid rgba(138,211,27,.16);
}

.ssc-settings-section h2 {
  margin-bottom: 6px;
}

.ssc-card hr {
  border: 0;
  border-top: 1px solid rgba(138,211,27,.16);
  margin: 18px 0;
}

.ssc-stat strong {
  font-size: clamp(22px, 3vw, 38px);
  word-break: break-word;
}

.ssc-table a {
  color: var(--ssc-gold-2) !important;
  font-weight: 900;
}

.ssc-form select {
  cursor: pointer;
}


/* v0.1.4 360 Branding & Marketing color system + private login */

.ssc-shell {
  background:
    radial-gradient(circle at top left, rgba(138,211,27,.20), transparent 30%),
    radial-gradient(circle at top right, rgba(36,174,234,.12), transparent 34%),
    #000000 !important;
}

.ssc-hero {
  background:
    linear-gradient(135deg, rgba(138,211,27,.16), rgba(36,174,234,.10) 45%, rgba(241,154,24,.12)),
    var(--ssc-panel) !important;
}

.ssc-logo {
  align-items: center;
}

.ssc-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 14px;
  background: #000;
  box-shadow: 0 0 20px rgba(138,211,27,.18);
}

.ssc-logo span {
  display: none !important;
}

.ssc-logo strong {
  color: var(--ssc-text) !important;
}

.ssc-sidebar {
  background: linear-gradient(180deg, #000000, #04080c) !important;
}

.ssc-sidebar a {
  color: #c7f37d !important;
}

.ssc-sidebar a:hover {
  background: linear-gradient(135deg, rgba(138,211,27,.15), rgba(36,174,234,.10)) !important;
}

.ssc-btn {
  background: linear-gradient(135deg, var(--ssc-orange), var(--ssc-gold-2), var(--ssc-green)) !important;
  color: #050505 !important;
}

.ssc-btn-light {
  background: rgba(255,255,255,.08) !important;
  color: var(--ssc-text) !important;
  border: 1px solid rgba(138,211,27,.22) !important;
}

.ssc-card {
  background: linear-gradient(180deg, rgba(13,30,39,.92), rgba(7,16,20,.94)) !important;
  border-color: rgba(138,211,27,.16) !important;
}

.ssc-stat strong {
  background: linear-gradient(135deg, var(--ssc-green), var(--ssc-blue), var(--ssc-orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

.ssc-user-box {
  margin-top: 28px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(138,211,27,.14);
}

.ssc-user-box span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ssc-muted) !important;
}

.ssc-user-box strong {
  display: block;
  color: var(--ssc-text) !important;
  margin: 4px 0 10px;
  font-size: 14px;
}

.ssc-user-box a {
  color: var(--ssc-gold-2) !important;
  font-weight: 900;
  text-decoration: none !important;
}

/* Login screen */
.ssc-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 30px;
  background:
    radial-gradient(circle at top left, rgba(138,211,27,.22), transparent 28%),
    radial-gradient(circle at top right, rgba(36,174,234,.18), transparent 32%),
    radial-gradient(circle at bottom, rgba(241,154,24,.12), transparent 36%),
    #000;
  color: var(--ssc-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ssc-login-card {
  width: min(520px, 100%);
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(13,30,39,.96), rgba(7,16,20,.98));
  border: 1px solid rgba(138,211,27,.18);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
  text-align: center;
}

.ssc-login-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.ssc-login-logo {
  width: 190px;
  max-width: 70%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(138,211,27,.18));
}

.ssc-login-card h1 {
  color: var(--ssc-text) !important;
  margin: 0 0 10px;
  font-size: clamp(32px, 6vw, 48px);
  letter-spacing: -0.04em;
}

.ssc-login-card p {
  color: var(--ssc-muted) !important;
}

.ssc-login-form {
  text-align: left;
  margin-top: 22px;
}

.ssc-login-form label {
  color: var(--ssc-text) !important;
  font-weight: 800;
}

.ssc-login-form input[type="text"],
.ssc-login-form input[type="password"] {
  width: 100%;
  border: 1px solid rgba(138,211,27,.20);
  border-radius: 16px;
  padding: 13px 14px;
  background: rgba(0,0,0,.32);
  color: var(--ssc-text);
  margin-top: 6px;
}

.ssc-login-form input[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  background: linear-gradient(135deg, var(--ssc-orange), var(--ssc-gold-2), var(--ssc-green));
  color: #050505;
  font-weight: 900;
  cursor: pointer;
  margin-top: 8px;
}

.ssc-login-form .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ssc-login-note {
  font-size: 13px;
  margin-top: 18px;
}


/* v0.1.3 Full-screen route protection.
   Applies even when Elementor/Artrium wraps the shortcode instead of using the plugin app template. */

body.ssc-command-page,
body[class*="ssc-command-page"] {
  background: #0b0f17 !important;
}

body.ssc-command-page .elementor,
body.ssc-command-page .elementor-section,
body.ssc-command-page .elementor-container,
body.ssc-command-page .elementor-column,
body.ssc-command-page .elementor-widget-wrap,
body.ssc-command-page .elementor-widget-container,
body.ssc-command-page .e-con,
body.ssc-command-page .e-con-inner {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.ssc-command-page .elementor-section .elementor-container,
body.ssc-command-page .elementor-top-section,
body.ssc-command-page .elementor-section-wrap {
  max-width: none !important;
}

body.ssc-command-page .ssc-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  border-radius: 0 !important;
  min-height: 100vh !important;
}

body.ssc-command-page .ssc-main {
  width: 100% !important;
  max-width: none !important;
}

body.ssc-command-page .ssc-hero,
body.ssc-command-page .ssc-grid,
body.ssc-command-page .ssc-card {
  max-width: none !important;
}

body.ssc-command-page .ssc-dashboard-top {
  display: grid;
  grid-template-columns: minmax(420px, 1.15fr) minmax(360px, .85fr);
  gap: 18px;
  align-items: stretch;
}

body.ssc-command-page .ssc-hero {
  margin-bottom: 18px;
}

@media (max-width: 1100px) {
  body.ssc-command-page .ssc-dashboard-top {
    grid-template-columns: 1fr;
  }
}



/* Standalone app mode added in v0.1.2.
   This bypasses the public theme header/banner/sidebar on Social Command pages. */

body.ssc-standalone-app {
  margin: 0 !important;
  padding: 0 !important;
  background: #0b0f17 !important;
  overflow-x: hidden;
}

body.ssc-standalone-app #ssc-app-root {
  min-height: 100vh;
  background: #0b0f17;
}

body.ssc-standalone-app .ssc-shell {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.ssc-standalone-app .ssc-main {
  padding: 34px !important;
}

body.ssc-standalone-app .ssc-hero {
  max-width: 980px;
}

body.ssc-standalone-app .ssc-grid {
  max-width: 1200px;
}

body.ssc-standalone-app.admin-bar .ssc-shell {
  min-height: calc(100vh - 32px) !important;
}

@media (max-width: 782px) {
  body.ssc-standalone-app.admin-bar .ssc-shell {
    min-height: calc(100vh - 46px) !important;
  }
}


/* 360 Social Command app layout protection.
   These rules only apply to pages containing a Social Command shortcode. */

body.ssc-command-page #secondary,
body.ssc-command-page .widget-area,
body.ssc-command-page .site-sidebar,
body.ssc-command-page .theme-sidebar,
body.ssc-command-page .sidebar-area,
body.ssc-command-page aside:not(.ssc-sidebar),
body.ssc-command-page [class*="sidebar"]:not(.ssc-sidebar) {
  display: none !important;
}

body.ssc-command-page .site-content,
body.ssc-command-page .content-area,
body.ssc-command-page .site-main,
body.ssc-command-page main,
body.ssc-command-page article,
body.ssc-command-page .entry-content,
body.ssc-command-page .page-content,
body.ssc-command-page .container,
body.ssc-command-page .wrap {
  max-width: none !important;
}

body.ssc-command-page .content-area,
body.ssc-command-page .site-main,
body.ssc-command-page .entry-content,
body.ssc-command-page .page-content {
  width: 100% !important;
}

body.ssc-command-page .entry-title,
body.ssc-command-page .page-title,
body.ssc-command-page .post-thumbnail,
body.ssc-command-page .entry-meta {
  display: none !important;
}

body.ssc-command-page .entry-content,
body.ssc-command-page .page-content {
  margin: 0 auto !important;
  padding: 20px !important;
}

body.ssc-command-page .ssc-shell,
body.ssc-command-page .ssc-shell * {
  box-sizing: border-box;
}

body.ssc-command-page .ssc-shell {
  max-width: 1500px !important;
  margin: 0 auto !important;
}

/* Stronger color protection against aggressive theme link/heading styles. */
.ssc-shell,
.ssc-shell p,
.ssc-shell li,
.ssc-shell td,
.ssc-shell label,
.ssc-shell span {
  color: var(--ssc-text) !important;
}

.ssc-shell .ssc-muted,
.ssc-shell .ssc-page-head p,
.ssc-shell .ssc-hero p,
.ssc-shell .ssc-list,
.ssc-shell .ssc-list li,
.ssc-shell .ssc-mini-card span {
  color: var(--ssc-muted) !important;
}

.ssc-shell h1,
.ssc-shell h2,
.ssc-shell h3,
.ssc-shell h4,
.ssc-shell h5,
.ssc-shell h6 {
  color: var(--ssc-text) !important;
}

.ssc-shell .ssc-kicker,
.ssc-shell .ssc-table th,
.ssc-shell .ssc-pill {
  color: var(--ssc-gold-2) !important;
}

.ssc-shell .ssc-sidebar a {
  color: var(--ssc-muted) !important;
}

.ssc-shell .ssc-sidebar a:hover {
  color: var(--ssc-text) !important;
}

.ssc-shell a:not(.ssc-btn) {
  color: var(--ssc-gold-2) !important;
}

.ssc-shell .ssc-btn {
  color: #111 !important;
}

.ssc-shell .ssc-btn-light {
  color: var(--ssc-text) !important;
}


:root {
  --ssc-bg: #000000;
  --ssc-panel: #071014;
  --ssc-panel-2: #0d1e27;
  --ssc-text: #f7fbff;
  --ssc-muted: #9bb0bd;
  --ssc-line: rgba(173,255,32,.16);
  --ssc-gold: #f5a623;
  --ssc-gold-2: #e8ff00;
  --ssc-orange: #f19a18;
  --ssc-green: #8ad31b;
  --ssc-blue: #24aeea;
  --ssc-red: #f05a28;
}

.ssc-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 760px;
  background: radial-gradient(circle at top left, rgba(217,164,65,.18), transparent 35%), var(--ssc-bg);
  color: var(--ssc-text);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ssc-sidebar {
  background: rgba(7, 10, 16, .86);
  border-right: 1px solid var(--ssc-line);
  padding: 26px 18px;
}

.ssc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.ssc-logo span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--ssc-gold), #7c4d11);
  color: #111;
  font-weight: 900;
  letter-spacing: -1px;
}

.ssc-logo strong {
  display: block;
  font-size: 17px;
  line-height: 1.1;
}

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

.ssc-sidebar a {
  color: var(--ssc-muted);
  text-decoration: none !important;
  padding: 12px 14px;
  border-radius: 15px;
  transition: .2s ease;
  font-weight: 700;
}

.ssc-sidebar a:hover {
  color: var(--ssc-text);
  background: rgba(255,255,255,.08);
}

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

.ssc-hero {
  max-width: 980px;
  background: linear-gradient(135deg, rgba(217,164,65,.22), rgba(191,44,44,.12)), var(--ssc-panel);
  border: 1px solid var(--ssc-line);
  border-radius: 28px;
  padding: 34px;
  margin-bottom: 24px;
}

.ssc-kicker {
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--ssc-gold-2);
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 8px;
}

.ssc-hero h1,
.ssc-page-head h1 {
  color: var(--ssc-text);
  font-size: clamp(32px, 5vw, 56px);
  line-height: .96;
  margin: 0 0 12px;
  letter-spacing: -0.05em;
}

.ssc-hero p,
.ssc-page-head p,
.ssc-muted {
  color: var(--ssc-muted);
}

.ssc-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.ssc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--ssc-gold), #b97915);
  color: #111 !important;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(217,164,65,.22);
}

.ssc-btn:hover {
  filter: brightness(1.06);
}

.ssc-btn-light {
  background: rgba(255,255,255,.1);
  color: var(--ssc-text) !important;
  box-shadow: none;
  border: 1px solid var(--ssc-line);
}

.ssc-btn-small {
  padding: 9px 13px;
  font-size: 13px;
}

.ssc-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.ssc-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
}

.ssc-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px;
}

.ssc-card {
  background: rgba(18, 24, 38, .92);
  border: 1px solid var(--ssc-line);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.ssc-card h2,
.ssc-card h3 {
  color: var(--ssc-text);
  margin-top: 0;
}

.ssc-stat span {
  color: var(--ssc-muted);
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
}

.ssc-stat strong {
  color: var(--ssc-text);
  font-size: 42px;
  line-height: 1;
}

.ssc-page-head {
  margin-bottom: 22px;
}

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

.ssc-form label,
.ssc-inline-form label {
  display: grid;
  gap: 7px;
  color: var(--ssc-text);
  font-weight: 800;
}

.ssc-form input,
.ssc-form textarea,
.ssc-form select,
.ssc-inline-form input,
.ssc-inline-form textarea,
.ssc-inline-form select {
  width: 100%;
  border: 1px solid var(--ssc-line);
  background: rgba(0,0,0,.2);
  color: var(--ssc-text);
  border-radius: 15px;
  padding: 12px 13px;
  outline: none;
}

.ssc-form select option,
.ssc-inline-form select option {
  background: #111827;
  color: #fff;
}

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

.ssc-form-actions {
  grid-column: 1 / -1;
}

.ssc-inline-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.ssc-inline-form label {
  min-width: 260px;
  flex: 1;
}

.ssc-table-wrap {
  overflow: auto;
}

.ssc-table {
  width: 100%;
  border-collapse: collapse;
}

.ssc-table th,
.ssc-table td {
  border-bottom: 1px solid var(--ssc-line);
  padding: 12px;
  text-align: left;
  color: var(--ssc-text);
}

.ssc-table th {
  color: var(--ssc-gold-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.ssc-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ssc-muted);
}

.ssc-list li {
  margin-bottom: 8px;
}

.ssc-client-list,
.ssc-approval-list {
  display: grid;
  gap: 12px;
}

.ssc-mini-card,
.ssc-approval-card {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--ssc-line);
  border-radius: 18px;
  padding: 15px;
}

.ssc-mini-card strong {
  display: block;
  color: var(--ssc-text);
}

.ssc-mini-card span {
  display: block;
  color: var(--ssc-muted);
  margin: 3px 0 8px;
}

.ssc-mini-card a {
  color: var(--ssc-gold-2);
  font-weight: 800;
  text-decoration: none !important;
}

.ssc-approval-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap: 18px;
  align-items: center;
}

.ssc-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(217,164,65,.16);
  color: var(--ssc-gold-2);
  padding: 5px 10px;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.ssc-generated {
  white-space: pre-wrap;
  background: rgba(0,0,0,.18);
  border: 1px solid var(--ssc-line);
  border-radius: 18px;
  padding: 16px;
  color: var(--ssc-text);
  line-height: 1.55;
}

.ssc-toast {
  background: rgba(52, 211, 153, .15);
  color: #a7f3d0;
  border: 1px solid rgba(52,211,153,.28);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 0 0 16px;
  font-weight: 900;
}

.ssc-wrap {
  background: var(--ssc-bg);
  color: var(--ssc-text);
  border-radius: 22px;
  padding: 24px;
}

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

  .ssc-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--ssc-line);
  }

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

  .ssc-grid-2,
  .ssc-grid-3,
  .ssc-two-col-form,
  .ssc-approval-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ssc-main {
    padding: 18px;
  }

  .ssc-hero {
    padding: 24px;
  }

  .ssc-sidebar nav {
    grid-template-columns: 1fr;
  }
}


/* v0.3.2 FINAL full-width app layout repair.
   This block is intentionally placed at the end of the stylesheet so older rules cannot override it. */

html body.ssc-command-page,
html body.ssc-standalone-app {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0b1118 !important;
  overflow-x: hidden !important;
}

html body.ssc-command-page #ssc-app-root,
html body.ssc-standalone-app #ssc-app-root {
  width: 100vw !important;
  max-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0b1118 !important;
  overflow-x: hidden !important;
}

html body.ssc-command-page #ssc-app-root > .ssc-shell,
html body.ssc-standalone-app #ssc-app-root > .ssc-shell,
html body.ssc-command-page .ssc-shell,
html body.ssc-standalone-app .ssc-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: grid !important;
  grid-template-columns: 280px minmax(0, 1fr) !important;
  background:
    radial-gradient(circle at top left, rgba(138,211,27,.14), transparent 26%),
    radial-gradient(circle at top right, rgba(36,174,234,.10), transparent 32%),
    #000000 !important;
  overflow-x: hidden !important;
}

html body.ssc-command-page .ssc-sidebar,
html body.ssc-standalone-app .ssc-sidebar {
  grid-column: 1 !important;
  width: 280px !important;
  min-width: 280px !important;
  max-width: 280px !important;
  height: auto !important;
  min-height: 100vh !important;
}

html body.ssc-command-page .ssc-main,
html body.ssc-standalone-app .ssc-main {
  grid-column: 2 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 40px clamp(28px, 4vw, 70px) !important;
  overflow-x: hidden !important;
  background:
    radial-gradient(circle at top left, rgba(36,174,234,.08), transparent 28%),
    linear-gradient(180deg, rgba(7,16,20,.96), rgba(0,0,0,1)) !important;
}

html body.ssc-command-page .ssc-main > .ssc-page-head,
html body.ssc-command-page .ssc-main > .ssc-card,
html body.ssc-command-page .ssc-main > .ssc-grid,
html body.ssc-command-page .ssc-main > .ssc-dashboard-top,
html body.ssc-command-page .ssc-main > .ssc-publish-list,
html body.ssc-command-page .ssc-main > .ssc-smart-calendar,
html body.ssc-standalone-app .ssc-main > .ssc-page-head,
html body.ssc-standalone-app .ssc-main > .ssc-card,
html body.ssc-standalone-app .ssc-main > .ssc-grid,
html body.ssc-standalone-app .ssc-main > .ssc-dashboard-top,
html body.ssc-standalone-app .ssc-main > .ssc-publish-list,
html body.ssc-standalone-app .ssc-main > .ssc-smart-calendar {
  width: min(100%, 1320px) !important;
  max-width: 1320px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

html body.ssc-command-page .ssc-main > .ssc-grid-3,
html body.ssc-standalone-app .ssc-main > .ssc-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) !important;
  gap: 18px !important;
}

html body.ssc-command-page .ssc-publish-card,
html body.ssc-standalone-app .ssc-publish-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr) !important;
  width: 100% !important;
  max-width: 100% !important;
}

html body.ssc-command-page .ssc-master-filter-form,
html body.ssc-standalone-app .ssc-master-filter-form {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(150px, 1fr)) !important;
  gap: 14px !important;
  align-items: end !important;
}

html body.ssc-command-page .ssc-filter-card .ssc-inline-form,
html body.ssc-standalone-app .ssc-filter-card .ssc-inline-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  align-items: end !important;
}

html body.ssc-command-page .ssc-filter-card .ssc-inline-form label,
html body.ssc-standalone-app .ssc-filter-card .ssc-inline-form label {
  flex: 1 1 220px !important;
}

html body.ssc-command-page .ssc-form select,
html body.ssc-command-page .ssc-form input,
html body.ssc-command-page .ssc-inline-form select,
html body.ssc-command-page .ssc-inline-form input,
html body.ssc-standalone-app .ssc-form select,
html body.ssc-standalone-app .ssc-form input,
html body.ssc-standalone-app .ssc-inline-form select,
html body.ssc-standalone-app .ssc-inline-form input {
  width: 100% !important;
  min-width: 0 !important;
}

@media (max-width: 1200px) {
  html body.ssc-command-page .ssc-master-filter-form,
  html body.ssc-standalone-app .ssc-master-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body.ssc-command-page .ssc-publish-card,
  html body.ssc-standalone-app .ssc-publish-card {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  html body.ssc-command-page #ssc-app-root > .ssc-shell,
  html body.ssc-standalone-app #ssc-app-root > .ssc-shell,
  html body.ssc-command-page .ssc-shell,
  html body.ssc-standalone-app .ssc-shell {
    grid-template-columns: 1fr !important;
  }

  html body.ssc-command-page .ssc-sidebar,
  html body.ssc-standalone-app .ssc-sidebar {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: auto !important;
  }

  html body.ssc-command-page .ssc-main,
  html body.ssc-standalone-app .ssc-main {
    grid-column: 1 !important;
    padding: 24px !important;
  }

  html body.ssc-command-page .ssc-main > .ssc-grid-3,
  html body.ssc-standalone-app .ssc-main > .ssc-grid-3,
  html body.ssc-command-page .ssc-master-filter-form,
  html body.ssc-standalone-app .ssc-master-filter-form {
    grid-template-columns: 1fr !important;
  }
}


/* v0.3.3 Filter/control visibility repair.
   Keeps the full-width layout but forces form controls to be visible and usable. */

html body.ssc-command-page .ssc-master-filter-card,
html body.ssc-command-page .ssc-filter-card,
html body.ssc-command-page .ssc-calendar-top,
html body.ssc-command-page .ssc-slot-card,
html body.ssc-standalone-app .ssc-master-filter-card,
html body.ssc-standalone-app .ssc-filter-card,
html body.ssc-standalone-app .ssc-calendar-top,
html body.ssc-standalone-app .ssc-slot-card {
  overflow: visible !important;
}

html body.ssc-command-page .ssc-master-filter-form,
html body.ssc-standalone-app .ssc-master-filter-form {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(170px, 1fr)) !important;
  gap: 16px !important;
  align-items: end !important;
  width: 100% !important;
}

html body.ssc-command-page .ssc-inline-form,
html body.ssc-standalone-app .ssc-inline-form {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 16px !important;
  align-items: end !important;
  width: 100% !important;
}

html body.ssc-command-page .ssc-master-filter-form label,
html body.ssc-command-page .ssc-inline-form label,
html body.ssc-command-page .ssc-form label,
html body.ssc-standalone-app .ssc-master-filter-form label,
html body.ssc-standalone-app .ssc-inline-form label,
html body.ssc-standalone-app .ssc-form label {
  display: grid !important;
  gap: 8px !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  min-width: 0 !important;
}

html body.ssc-command-page .ssc-inline-form label,
html body.ssc-standalone-app .ssc-inline-form label {
  flex: 1 1 240px !important;
}

html body.ssc-command-page select,
html body.ssc-command-page input[type="text"],
html body.ssc-command-page input[type="url"],
html body.ssc-command-page input[type="date"],
html body.ssc-command-page input[type="datetime-local"],
html body.ssc-command-page input[type="password"],
html body.ssc-command-page input[type="email"],
html body.ssc-command-page textarea,
html body.ssc-standalone-app select,
html body.ssc-standalone-app input[type="text"],
html body.ssc-standalone-app input[type="url"],
html body.ssc-standalone-app input[type="date"],
html body.ssc-standalone-app input[type="datetime-local"],
html body.ssc-standalone-app input[type="password"],
html body.ssc-standalone-app input[type="email"],
html body.ssc-standalone-app textarea {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(232,255,0,.28) !important;
  background: #ffffff !important;
  color: #071014 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  position: relative !important;
  z-index: 2 !important;
}

html body.ssc-command-page textarea,
html body.ssc-standalone-app textarea {
  min-height: 110px !important;
}

html body.ssc-command-page select,
html body.ssc-standalone-app select {
  height: 48px !important;
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  cursor: pointer !important;
}

html body.ssc-command-page select option,
html body.ssc-standalone-app select option {
  background: #ffffff !important;
  color: #071014 !important;
}

html body.ssc-command-page input[type="date"],
html body.ssc-command-page input[type="datetime-local"],
html body.ssc-standalone-app input[type="date"],
html body.ssc-standalone-app input[type="datetime-local"] {
  color-scheme: light !important;
}

html body.ssc-command-page .ssc-form-actions,
html body.ssc-standalone-app .ssc-form-actions {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  min-height: 48px !important;
}

html body.ssc-command-page .ssc-master-filter-form .ssc-form-actions,
html body.ssc-standalone-app .ssc-master-filter-form .ssc-form-actions {
  grid-column: 1 / -1 !important;
}

html body.ssc-command-page .ssc-btn,
html body.ssc-command-page button.ssc-btn,
html body.ssc-standalone-app .ssc-btn,
html body.ssc-standalone-app button.ssc-btn {
  min-height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* Calendar controls need a little extra spacing */
html body.ssc-command-page .ssc-calendar-top .ssc-inline-form,
html body.ssc-standalone-app .ssc-calendar-top .ssc-inline-form {
  margin-top: 14px !important;
}

html body.ssc-command-page .ssc-calendar-top .ssc-timezone-save,
html body.ssc-standalone-app .ssc-calendar-top .ssc-timezone-save {
  margin-top: 18px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(138,211,27,.14) !important;
}

/* Make empty filter cards taller only when controls are present */
html body.ssc-command-page .ssc-master-filter-card,
html body.ssc-standalone-app .ssc-master-filter-card {
  padding: 20px !important;
}

@media (max-width: 1280px) {
  html body.ssc-command-page .ssc-master-filter-form,
  html body.ssc-standalone-app .ssc-master-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  html body.ssc-command-page .ssc-master-filter-form,
  html body.ssc-standalone-app .ssc-master-filter-form,
  html body.ssc-command-page .ssc-inline-form,
  html body.ssc-standalone-app .ssc-inline-form {
    grid-template-columns: 1fr !important;
    display: grid !important;
  }
}


/* v0.3.4 Filter field cleanup */

html body.ssc-command-page .ssc-filter-heading,
html body.ssc-standalone-app .ssc-filter-heading {
  margin-bottom: 14px !important;
}

html body.ssc-command-page .ssc-filter-heading h3,
html body.ssc-standalone-app .ssc-filter-heading h3 {
  margin: 4px 0 0 !important;
  color: #ffffff !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
}

html body.ssc-command-page .ssc-master-filter-form select,
html body.ssc-standalone-app .ssc-master-filter-form select {
  background-color: #ffffff !important;
  color: #071014 !important;
  text-indent: 0 !important;
  line-height: 1.2 !important;
  overflow: visible !important;
}

html body.ssc-command-page .ssc-master-filter-form select:invalid,
html body.ssc-standalone-app .ssc-master-filter-form select:invalid {
  color: #071014 !important;
}

html body.ssc-command-page .ssc-master-filter-form option,
html body.ssc-standalone-app .ssc-master-filter-form option {
  color: #071014 !important;
  background-color: #ffffff !important;
}

html body.ssc-command-page .ssc-master-filter-form label:nth-child(6),
html body.ssc-standalone-app .ssc-master-filter-form label:nth-child(6) {
  min-width: 210px !important;
}

/* v0.3.5 Maintenance Center + error visibility */
.ssc-maintenance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.ssc-health-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.ssc-health-ok {
  color: #e8ff00 !important;
  background: rgba(232,255,0,.12);
  border: 1px solid rgba(232,255,0,.22);
}

.ssc-health-warning {
  color: #ffd37a !important;
  background: rgba(255,186,73,.12);
  border: 1px solid rgba(255,186,73,.24);
}

.ssc-health-error {
  color: #ff8d8d !important;
  background: rgba(255,80,80,.12);
  border: 1px solid rgba(255,80,80,.25);
}

.ssc-maintenance-table td,
.ssc-maintenance-table th {
  vertical-align: top !important;
}

.ssc-diagnostics-copy {
  width: 100% !important;
  min-height: 260px !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}

@media (max-width: 900px) {
  .ssc-maintenance-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
