:root {
  --nova-bg: #06101f;
  --nova-bg-deep: #030b16;
  --nova-surface: #0a182b;
  --nova-surface-2: #0d2038;
  --nova-surface-3: #102846;
  --nova-border: rgba(117, 168, 219, 0.22);
  --nova-border-strong: rgba(75, 158, 255, 0.46);
  --nova-text: #f6f9ff;
  --nova-muted: #9fb1c8;
  --nova-soft: #7288a3;
  --nova-blue: #258cff;
  --nova-blue-2: #1261e8;
  --nova-cyan: #49c8ff;
  --nova-green: #48d49a;
  --nova-red: #ff5368;
  --nova-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

body.portal-mode {
  background:
    radial-gradient(circle at 78% 8%, rgba(26, 103, 228, 0.16), transparent 28%),
    linear-gradient(145deg, var(--nova-bg-deep), var(--nova-bg) 48%, #081a31);
}

.portal-dashboard {
  min-height: 100vh;
  color: var(--nova-text);
  background:
    radial-gradient(circle at 74% 12%, rgba(29, 104, 231, 0.18), transparent 29%),
    linear-gradient(145deg, #030a15 0%, #071326 46%, #091c35 100%);
  font-size: 15px;
}

.portal-app-header {
  height: 86px;
  padding: 0 clamp(22px, 3vw, 48px);
  border-bottom: 1px solid rgba(115, 162, 214, 0.18);
  background: rgba(3, 10, 21, 0.92);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  gap: 26px;
}

.portal-app-brand {
  min-width: 218px;
}

.portal-app-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #3ebcff, #1d71f1 52%, #5148f5);
  box-shadow: 0 10px 30px rgba(39, 126, 255, 0.34);
}

.portal-app-brand strong {
  font-size: 17px;
  letter-spacing: 0.1em;
}

.portal-app-brand small {
  color: #70bfff;
  font-size: 9px;
  letter-spacing: 0.22em;
}

.portal-top-nav {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 6px;
  margin-left: 18px;
}

.portal-top-nav button {
  position: relative;
  border: 0;
  background: transparent;
  color: #afbdd0;
  padding: 0 17px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.portal-top-nav button:hover,
.portal-top-nav button.active {
  color: #fff;
}

.portal-top-nav button.active::after {
  content: "";
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #36b7ff, #256cff);
  box-shadow: 0 0 16px rgba(52, 151, 255, 0.62);
}

.portal-app-header-actions {
  gap: 9px;
}

.device-status-badge {
  padding: 8px 12px;
  background: rgba(59, 211, 149, 0.11);
  border: 1px solid rgba(78, 219, 166, 0.28);
  color: #75eab8;
  font-size: 12px;
}

.portal-header-button {
  border: 1px solid var(--nova-border);
  background: rgba(9, 24, 43, 0.84);
  color: #dce7f5;
  border-radius: 11px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
}

.portal-workspace {
  grid-template-columns: 246px minmax(0, 1fr);
  min-height: calc(100vh - 86px);
}

.portal-sidebar {
  position: sticky;
  top: 86px;
  height: calc(100vh - 86px);
  overflow-y: auto;
  padding: 27px 18px 28px;
  border-right: 1px solid rgba(112, 163, 218, 0.17);
  background: linear-gradient(180deg, rgba(4, 14, 27, 0.93), rgba(4, 16, 31, 0.78));
}

.portal-device-summary {
  margin: 0 2px 22px;
  padding: 16px;
  border: 1px solid rgba(69, 142, 214, 0.2);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(16, 42, 72, 0.72), rgba(7, 21, 39, 0.76));
}

.portal-device-summary small {
  color: #69819d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.portal-device-summary strong {
  font-size: 14px;
  line-height: 1.4;
}

.portal-device-summary span {
  color: #5cb8ff;
  font-size: 11px;
}

.portal-nav {
  gap: 7px;
}

.portal-nav button {
  min-height: 49px;
  padding: 0 13px;
  border-radius: 12px;
  color: #aebdd0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.portal-nav button:hover {
  border-color: rgba(56, 142, 242, 0.2);
  background: rgba(29, 103, 195, 0.09);
  color: #eaf4ff;
}

.portal-nav button.active {
  color: #fff;
  border-color: rgba(53, 139, 255, 0.39);
  background: linear-gradient(135deg, rgba(25, 90, 202, 0.38), rgba(17, 60, 134, 0.2));
  box-shadow: inset 3px 0 0 #2c97ff, 0 12px 24px rgba(0, 0, 0, 0.13);
}

.portal-nav-icon {
  width: 27px;
  color: #69baff;
  font-size: 17px;
}

.portal-nav-divider {
  height: 1px;
  margin: 12px 8px;
  background: rgba(116, 157, 198, 0.14);
}

.portal-sidebar-bottom {
  margin-top: 20px;
  padding-top: 15px;
}

.portal-sidebar-bottom button {
  color: #899db5;
  font-size: 13px;
}

.portal-content {
  width: 100%;
  max-width: none;
  padding: 31px clamp(24px, 3.2vw, 52px) 56px;
}

.portal-page {
  max-width: 1480px;
  margin: 0 auto;
}

.page-heading {
  align-items: center;
  margin-bottom: 22px;
}

.page-kicker {
  margin-bottom: 7px;
  color: #55b7ff;
  font-size: 10px;
  letter-spacing: 0.18em;
}

.page-heading h1 {
  font-size: clamp(30px, 2.7vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.page-heading p {
  max-width: 790px;
  margin-top: 8px;
  color: #98abc3;
  font-size: 15px;
  line-height: 1.55;
}

.counter {
  border: 1px solid rgba(71, 145, 215, 0.3);
  background: rgba(8, 25, 45, 0.82);
  color: #bcd0e7;
  font-size: 12px;
  padding: 7px 11px;
}

.playlist-summary-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.playlist-summary-card {
  min-height: 88px;
  padding: 15px 17px;
  border: 1px solid var(--nova-border);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(14, 36, 62, 0.96), rgba(7, 22, 39, 0.96));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.playlist-summary-card small {
  display: block;
  color: #6f89a8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.playlist-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-summary-card span {
  display: block;
  margin-top: 4px;
  color: #7188a4;
  font-size: 11px;
}

.playlist-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, auto) repeat(3, auto);
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding: 12px;
  border: 1px solid var(--nova-border);
  border-radius: 16px;
  background: rgba(8, 24, 42, 0.82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.playlist-search {
  position: relative;
  min-width: 0;
}

.playlist-search::before {
  content: "⌕";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6e91b8;
  font-size: 19px;
  pointer-events: none;
}

.playlist-search input {
  width: 100%;
  height: 43px;
  padding: 0 14px 0 40px;
  border: 1px solid rgba(88, 143, 198, 0.28);
  border-radius: 11px;
  background: #071522;
  color: #f3f8ff;
  font-size: 14px;
  outline: none;
}

.playlist-search input:focus {
  border-color: #298eff;
  box-shadow: 0 0 0 3px rgba(37, 142, 255, 0.11);
}

.playlist-device-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 43px;
  padding: 0 13px;
  border: 1px solid rgba(88, 143, 198, 0.25);
  border-radius: 11px;
  background: rgba(9, 26, 45, 0.9);
  color: #b9c9dc;
}

.playlist-device-badge .device-badge-icon {
  color: #37a5ff;
  font-size: 18px;
}

.playlist-device-badge small {
  display: block;
  color: #627d9a;
  font-size: 9px;
  line-height: 1.1;
}

.playlist-device-badge strong {
  display: block;
  max-width: 155px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #dbeaff;
  font-size: 11px;
  line-height: 1.2;
}

.playlist-toolbar .source-action {
  height: 43px;
  padding: 0 15px;
  border: 1px solid rgba(68, 145, 248, 0.36);
  border-radius: 10px;
  background: linear-gradient(145deg, #2797ff, #145ce0);
  color: #fff;
  box-shadow: 0 8px 20px rgba(21, 94, 218, 0.19);
  font-size: 13px;
  white-space: nowrap;
}

.playlist-toolbar .source-action.secondary {
  background: linear-gradient(145deg, #1f78f0, #174fc0);
  border-color: rgba(75, 142, 238, 0.32);
}

.playlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.playlist-list-card,
.source-editor {
  border: 1px solid var(--nova-border);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(10, 28, 49, 0.98), rgba(5, 18, 34, 0.98));
  box-shadow: var(--nova-shadow);
}

.playlist-list-card {
  padding: 0;
  overflow: hidden;
}

.playlist-list-card .panel-top {
  display: none;
}

.playlist-table-head {
  display: grid;
  grid-template-columns: minmax(210px, 1.3fr) minmax(125px, .7fr) 120px 132px 190px;
  gap: 14px;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(108, 157, 207, 0.17);
  background: rgba(12, 34, 58, 0.72);
  color: #8299b5;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.playlist-list {
  display: block;
}

.playlist-item {
  display: grid;
  grid-template-columns: 54px minmax(150px, 1.1fr) minmax(115px, .7fr) 120px 132px 190px;
  gap: 12px;
  align-items: center;
  min-height: 84px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid rgba(106, 153, 199, 0.13);
  border-radius: 0;
  background: transparent;
}

.playlist-item:last-child {
  border-bottom: 0;
}

.playlist-item:hover {
  background: rgba(36, 111, 194, 0.065);
}

.playlist-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(73, 151, 255, 0.25);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(44, 129, 255, 0.24), rgba(46, 61, 175, 0.18));
  color: #70c1ff;
  font-size: 15px;
}

.playlist-copy {
  min-width: 0;
}

.playlist-title-row {
  display: block;
}

.playlist-title-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f7faff;
  font-size: 14px;
}

.playlist-security-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 2px 7px;
  border: 1px solid rgba(95, 136, 181, 0.26);
  border-radius: 999px;
  color: #899db5;
  font-size: 9px;
}

.playlist-security-badge.locked {
  border-color: rgba(105, 159, 227, 0.3);
  background: rgba(34, 89, 166, 0.12);
  color: #91bdf0;
}

.playlist-copy > span {
  display: none;
}

.playlist-source-cell,
.playlist-status-cell,
.playlist-sync-cell {
  min-width: 0;
  color: #9cb0c8;
  font-size: 12px;
}

.playlist-source-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid rgba(61, 143, 241, 0.28);
  border-radius: 8px;
  background: rgba(35, 100, 185, 0.13);
  color: #78bdff;
  font-size: 10px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playlist-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(43, 190, 127, 0.11);
  color: #63dda5;
  font-size: 10px;
  font-weight: 800;
}

.playlist-status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #41d896;
  box-shadow: 0 0 8px rgba(65, 216, 150, 0.5);
}

.playlist-sync-cell {
  line-height: 1.4;
  color: #7e95b1;
}

.playlist-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: nowrap;
}

.playlist-action-button {
  width: 38px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 9px;
  overflow: hidden;
  font-size: 0;
}

.playlist-action-button::before {
  font-size: 15px;
  line-height: 1;
}

.playlist-action-button[data-action="lock"]::before {
  content: "⌁";
}

.playlist-action-button[data-action="edit"]::before {
  content: "✎";
}

.playlist-action-button[data-action="remove"]::before {
  content: "×";
}

.playlist-action-button.ghost-button {
  border-color: rgba(51, 134, 234, 0.35);
  color: #45a7ff;
  background: rgba(18, 67, 126, 0.16);
}

.playlist-action-button.delete-button {
  border: 1px solid rgba(255, 76, 99, 0.44);
  background: rgba(144, 27, 45, 0.09);
  color: #ff5a6f;
}

.source-editor {
  position: sticky;
  top: 105px;
  padding: 20px;
  max-height: calc(100vh - 126px);
  overflow-y: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.source-editor.is-collapsed {
  display: none;
}

.source-editor .panel-top {
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(104, 154, 206, 0.15);
}

.source-editor .panel-top h2 {
  font-size: 21px;
}

.source-editor-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(91, 142, 193, 0.26);
  border-radius: 9px;
  background: rgba(8, 24, 41, 0.76);
  color: #9fb2c9;
  font-size: 18px;
  cursor: pointer;
}

.source-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 15px;
  padding: 4px;
  border: 1px solid rgba(83, 137, 191, 0.22);
  border-radius: 11px;
  background: #071522;
}

.source-type-tabs button {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #8398b1;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.source-type-tabs button.active {
  border-color: rgba(55, 143, 255, 0.48);
  background: linear-gradient(145deg, rgba(29, 112, 232, 0.31), rgba(20, 70, 156, 0.18));
  color: #fff;
}

.source-editor .form-stack {
  gap: 12px;
}

.source-editor label {
  color: #dbe7f5;
  font-size: 12px;
  font-weight: 700;
}

.source-editor input,
.source-editor select {
  min-height: 44px;
  margin-top: 6px;
  padding: 0 13px;
  border: 1px solid rgba(91, 147, 203, 0.31);
  border-radius: 10px;
  background: #061421;
  color: #eff6ff;
  font-size: 13px;
}

.source-editor input:focus,
.source-editor select:focus {
  border-color: #278fff;
  box-shadow: 0 0 0 3px rgba(39, 143, 255, 0.1);
}

.source-editor select {
  display: none;
}

.source-help {
  border-color: rgba(56, 137, 232, 0.2);
  background: rgba(25, 78, 145, 0.1);
  color: #91a8c1;
  font-size: 11px;
}

.source-security-note {
  margin: 12px 0 2px;
  padding: 12px 13px;
  border: 1px solid rgba(54, 128, 220, 0.23);
  border-radius: 10px;
  background: rgba(16, 57, 110, 0.13);
  color: #91a7c0;
  font-size: 11px;
  line-height: 1.45;
}

.source-security-note strong {
  color: #d8e9fb;
}

.check-row {
  align-items: flex-start;
  gap: 9px;
  margin-top: 3px;
  padding: 10px 0;
}

.check-row input {
  width: 17px;
  min-height: 17px;
  margin-top: 2px;
  accent-color: #258cff;
}

.check-row span {
  color: #9fb1c6;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
}

.source-editor .portal-submit {
  min-height: 46px;
  margin-top: 2px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2797ff, #1158df);
  box-shadow: 0 13px 28px rgba(20, 91, 218, 0.23);
  font-size: 13px;
  font-weight: 800;
}

.playlist-compliance {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(69, 139, 218, 0.23);
  border-radius: 15px;
  background: linear-gradient(100deg, rgba(25, 72, 145, 0.19), rgba(9, 27, 49, 0.75));
}

.playlist-compliance-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(64, 151, 255, 0.36);
  border-radius: 12px;
  background: rgba(27, 93, 185, 0.2);
  color: #62b7ff;
  font-size: 21px;
}

.playlist-compliance strong {
  display: block;
  color: #e9f3ff;
  font-size: 13px;
}

.playlist-compliance span {
  display: block;
  margin-top: 3px;
  color: #849ab4;
  font-size: 11px;
}

.overview-card,
.portal-panel,
.credential-card,
.security-card,
.recovery-card,
.activation-hero {
  border-color: var(--nova-border);
  background: linear-gradient(155deg, rgba(13, 34, 58, 0.95), rgba(6, 20, 37, 0.97));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.14);
}

.overview-card {
  min-height: 112px;
  padding: 18px;
}

.overview-card strong {
  font-size: 19px;
}

.primary-action,
.source-action {
  background: linear-gradient(145deg, #2ca0ff, #155de3);
}

.empty-state {
  margin: 18px;
  padding: 46px 24px;
  border-color: rgba(71, 139, 202, 0.3);
  color: #8198b3;
}

@media (max-width: 1320px) {
  .portal-top-nav button {
    padding: 0 10px;
  }
  .playlist-toolbar {
    grid-template-columns: minmax(220px, 1fr) minmax(170px, auto) repeat(3, auto);
  }
  .playlist-layout {
    grid-template-columns: minmax(0, 1fr) 350px;
  }
  .playlist-table-head {
    grid-template-columns: minmax(180px, 1.2fr) 115px 105px 115px 155px;
  }
  .playlist-item {
    grid-template-columns: 48px minmax(130px, 1fr) 110px 105px 115px 155px;
  }
}

@media (max-width: 1120px) {
  .portal-top-nav {
    display: none;
  }
  .portal-workspace {
    grid-template-columns: 214px minmax(0, 1fr);
  }
  .playlist-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .playlist-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .playlist-toolbar .source-action {
    width: 100%;
  }
  .playlist-layout {
    grid-template-columns: 1fr;
  }
  .source-editor {
    position: relative;
    top: auto;
    max-height: none;
  }
  .playlist-table-head {
    display: none;
  }
  .playlist-item {
    grid-template-columns: 48px minmax(150px, 1fr) auto;
    gap: 12px;
  }
  .playlist-source-cell,
  .playlist-status-cell,
  .playlist-sync-cell {
    grid-column: 2;
  }
  .playlist-actions {
    grid-column: 2 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .portal-app-header {
    min-height: 72px;
    height: auto;
  }
  .portal-app-brand {
    min-width: 0;
  }
  .portal-workspace {
    display: block;
  }
  .portal-sidebar {
    position: static;
    height: auto;
  }
  .portal-content {
    padding: 24px 15px 42px;
  }
  .playlist-summary-row {
    grid-template-columns: 1fr 1fr;
  }
  .playlist-toolbar {
    grid-template-columns: 1fr;
  }
  .playlist-device-badge {
    width: 100%;
  }
  .playlist-item {
    grid-template-columns: 44px minmax(0, 1fr);
  }
  .playlist-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .playlist-summary-row {
    grid-template-columns: 1fr;
  }
  .page-heading h1 {
    font-size: 29px;
  }
}


/* Functional page layouts for the locked Nova Player customer dashboard. */

/* /device is a dedicated application page. The marketing homepage must never
   occupy space or become visible while scrolling inside the control center. */
html.nova-device-route,
html.nova-device-route body {
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #06111f;
}

html.nova-device-route body {
  overflow-x: hidden;
}

html.nova-device-route #homeShell,
html.nova-device-route .home-shell {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

html.nova-device-route #deviceDashboard {
  display: block !important;
  min-height: 100vh;
  margin: 0;
}

html.nova-device-route body::before,
html.nova-device-route body::after {
  display: none !important;
  content: none !important;
}

.source-fields[hidden],
.playlist-pin-fields[hidden],
.playlist-protect-toggle[hidden] {
  display: none !important;
}

.source-type-hidden {
  display: none !important;
}

.portal-page.source-closed .playlist-layout {
  grid-template-columns: 1fr;
}

.portal-page.source-editor-mode > .page-heading,
.portal-page.source-editor-mode .playlist-toolbar,
.portal-page.source-editor-mode .playlist-list-card,
.portal-page.source-editor-mode .playlist-compliance {
  display: none !important;
}

.portal-page.source-editor-mode .playlist-layout {
  display: block;
}

.portal-page.source-editor-mode .source-editor {
  position: relative;
  top: auto;
  width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.portal-page.source-editor-mode .source-editor .panel-top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  margin: 0 0 46px;
  padding: 0 22px;
  border: 1px solid rgba(92, 151, 211, 0.24);
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(16, 38, 64, 0.98), rgba(8, 24, 43, 0.98));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

.portal-page.source-editor-mode .source-editor .panel-top > div {
  display: flex;
  align-items: center;
}

.portal-page.source-editor-mode .source-editor .panel-top .page-kicker {
  display: none !important;
}

.portal-page.source-editor-mode .source-editor .panel-top h2 {
  margin: 0;
  color: #f6f9ff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.source-editor-back {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  padding: 0;
  border: 1px solid rgba(83, 151, 224, 0.3);
  border-radius: 11px;
  background: rgba(8, 25, 44, 0.9);
  color: #eaf4ff;
  font-size: 22px;
  line-height: 1;
}

.portal-page.source-editor-mode .source-editor .form-stack {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 24px;
  padding: 0 2px 18px;
}

.portal-page.source-editor-mode .source-editor .form-stack > label:not(.check-row) {
  min-width: 0;
}

.portal-page.source-editor-mode .source-fields:not([hidden]) {
  display: contents;
}

.portal-page.source-editor-mode .source-help,
.portal-page.source-editor-mode .check-row,
.portal-page.source-editor-mode .playlist-pin-fields,
.portal-page.source-editor-mode .source-editor .portal-submit,
.portal-page.source-editor-mode #playlistMessage {
  grid-column: 1 / -1;
}

.portal-page.source-editor-mode .source-editor label {
  color: #aebed1;
  font-size: 14px;
  font-weight: 600;
}

.portal-page.source-editor-mode .source-editor input,
.portal-page.source-editor-mode .source-editor select {
  width: 100%;
  min-height: 54px;
  margin-top: 8px;
  padding: 0 16px;
  border: 1px solid rgba(91, 147, 203, 0.32);
  border-radius: 11px;
  background: #071522;
  color: #f3f8ff;
  font-size: 15px;
  outline: none;
}

.portal-page.source-editor-mode .source-editor input:focus {
  border-color: #2d97ff;
  box-shadow: 0 0 0 3px rgba(45, 151, 255, 0.11);
}

.field-optional {
  margin-left: 6px;
  color: #7088a5;
  font-size: 12px;
  font-weight: 500;
}

.portal-page.source-editor-mode .source-editor .portal-submit {
  min-height: 50px;
  width: min(100%, 240px);
  justify-self: end;
  margin-top: 18px;
  border-radius: 10px;
  background: linear-gradient(145deg, #2ca0ff, #155de3);
  box-shadow: 0 12px 26px rgba(20, 91, 218, 0.22);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.playlist-protect-toggle {
  padding: 20px 0 4px;
  border-top: 1px solid rgba(104, 154, 206, 0.15);
}

.playlist-protect-toggle span {
  display: grid;
  gap: 4px;
}

.playlist-protect-toggle strong {
  color: #eef6ff;
  font-size: 14px;
}

.playlist-protect-toggle small {
  color: #91a6bf;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.playlist-pin-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 20px;
  padding: 18px;
  border: 1px solid rgba(58, 139, 235, 0.22);
  border-radius: 14px;
  background: rgba(16, 57, 110, 0.11);
}

.account-details-card {
  overflow: hidden;
  padding: 0;
}

.account-details-card .info-row {
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 0 24px;
}

.account-details-card .info-row:last-child {
  border-bottom: 0;
}

.account-details-card .info-row span {
  color: #8fa5be;
  font-size: 14px;
}

.account-details-card .info-row strong {
  color: #f4f8ff;
  font-size: 16px;
  text-align: right;
  word-break: break-word;
}

.account-details-card #detailsStatus {
  justify-self: end;
  width: max-content;
  padding: 7px 12px;
  border: 1px solid rgba(78, 219, 166, 0.28);
  border-radius: 999px;
  background: rgba(59, 211, 149, 0.1);
  color: #75eab8;
  font-size: 13px;
}

.account-details-card #detailsStatus[data-status="EXPIRED"],
.account-details-card #detailsStatus[data-status="BLOCKED"],
.account-details-card #detailsStatus[data-status="INACTIVE"] {
  border-color: rgba(255, 105, 119, 0.34);
  background: rgba(255, 105, 119, 0.09);
  color: #ff8d98;
}

@media (max-width: 900px) {
  .portal-page.source-editor-mode .source-editor .form-stack,
  .playlist-pin-fields {
    grid-template-columns: 1fr;
  }

  .portal-page.source-editor-mode .source-editor .panel-top {
    margin-bottom: 28px;
  }

  .portal-page.source-editor-mode .source-editor .portal-submit {
    width: 100%;
  }

  .account-details-card .info-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 15px 18px;
  }

  .account-details-card .info-row strong,
  .account-details-card #detailsStatus {
    justify-self: start;
    text-align: left;
  }
}

