/* Design tokens */
:root {
  --font-family: "Source Sans 3", sans-serif;
  --font-size-base: 1.25rem;
  --font-size-sm: 1rem;
  --line-height: 1.5;
  --font-weight: 400;

  --bg: #030617;
  --bg-gradient: linear-gradient(to right, #3432cb 0%, #000000 100%);
  --bg-dark-transparent: rgba(3, 6, 23, 0.5);

  --card-bg: #15142B;
  --text: #e9ecff;
  --muted: #a9b0d6;

  --accent: #3533CC;
  --yellow: #ffde59;
  --green: #7ED957;
  --green-light: #CCFFD6;
  --red: #FF3131;  
  --red-light: #FFCACA;
  --purple: #9146ff;
  --grey-dark: #212433;

  --border: #58588B;
  --border-light: #a9b0d6;
  --pill: rgba(255, 255, 255, 0.06);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 30px;
  --radius-circle: 999px;

  --btn-background: rgba(3, 6, 23, 0.5);
}

/* Base */
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  font-weight: var(--font-weight);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s linear;

}
strong {
  font-weight: 500;
}
a:hover,
.btn:hover,
.btn:focus,
.btn:active {
  filter: brightness(1.6);
}
.btn:hover,
.btn:focus,
.btn:active {
  text-shadow: 0 0 1px currentColor;
}
span.btn {
  pointer-events: none
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.visually-hidden,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.25em;
  font-weight: 600;
  line-height: 1.3;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.75rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}
h5 {
  font-size: 1.15rem;
}
h6 {
  font-size: 1rem;
}

/* Utility classes */
.muted {
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.yellow {
  color: var(--yellow);
}
.green {
  color: var(--green);
}
.flex {
  display: flex;
  gap: 1rem;
}
.grid {
  display: grid;
  gap: 2rem;
}
.subgrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
}
.space-between {
  justify-content: space-between;
  width:100%;
}
.bg-gradient {
  background: var(--bg-gradient) !important;
}
.border-light {
  border: 0;
  box-shadow:
    0 0 0 1px var(--border-light),
    0 0 1px 1px var(--border-light);
}
.border-white {
  border: 0;
  box-shadow:
    0 0 0 1px var(--text),
    0 0 1px 1px var(--text);
}
::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  opacity: 0.9;
  background: url("/assets/icons/svgs/solid/solid/x.svg") center / 14px 14px no-repeat;
  cursor: pointer;
}
input:focus::-webkit-search-cancel-button {
  opacity: 1;
}
input::-webkit-search-decoration,
input::-webkit-search-results-button,
input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
.mt-1 {
  margin-top:1rem;
}
.mb-1 {
  margin-bottom: 1rem;
}
.mt-2 {
  margin-top:2rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.mt-3 {
  margin-top:3rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.w100 {
  width:100%;
  display: block;
}

/* Buttons / pills / tags */
.btn {
  border: 2px solid var(--border);
  background: var(--btn-background);
  color: var(--text);
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.7rem;
  cursor: pointer;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn.secondary {
  border: 2px solid var(--text);
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
}
.btn.outline {
  border: 2px solid var(--text);
  background: transparent;
  color: var(--text);
  font-weight: 500;
}
a.text-link-arrow {
  position: relative;
  width: fit-content;
  display:flex;
  align-items: center;
  gap:1rem;
}
a.text-link-arrow:after {
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  content: "\f054";
  color: var(--border-light);
  border: 1px solid var(--border-light);
  font-size:12px;
  padding:3px 8px;
  border-radius: var(--radius-circle);
}
.btn.outline.yellow {
  border: 2px solid var(--yellow);
  color: var(--yellow);
}
.btn.ghost {
  border:0;
  padding-left:0;
}
.btn.ghost i {
  border: 2px solid var(--text);
  border-radius: var(--radius-circle);
  padding:5px 9px;
  font-size: 16px;
}
.btn-nav {
  border: 2px solid var(--border-light);
  color: var(--border-light);
  width: 50px;
  height: 50px;
  padding: 0.5rem;
  border-radius: var(--radius-circle);
  display: grid;
  place-items: center;
}
.pills {
  display: flex;
  flex-direction:column;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size:0.95rem;
}
.pill {
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-dark-transparent);
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1;
  color: var(--text);
  justify-content: center;
}
.pill.large {
  padding: 1rem 1.5rem;
  font-size: var(--font-size);
  gap:1rem;
}
.pill.is-active {
  outline: 2px solid currentColor;
  opacity: 1;
}
.tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
  text-align: center;
}
.tag.feature {
  color: var(--yellow);
  border: 0;
  box-shadow:
    0 0 0 1px var(--yellow),
    0 0 1px 1px var(--yellow);
}
.tag.success {
  color: var(--green);
  border: 0;
  box-shadow:
    0 0 0 1px var(--green),
    0 0 1px 1px var(--green);
}
.tag.error {
  color: var(--red);
  border: 0;
  box-shadow:
    0 0 0 1px var(--red),
    0 0 1px 1px var(--red);
}
.tag.live {
  color: var(--bg);
  border: 0;
  background:var(--red-light);
  box-shadow:none;
}
.tag.upcoming {
  color: var(--bg);
  border: 0;
  background:var(--green-light);
  box-shadow:none;
}
span.dot {
  height:1px;
  opacity: 0;
  display:block
}
/* Layout */
main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Topbar / brand */
.topbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.topbar-stream-detail {
  justify-content: center;
  flex-direction: column;
}
.topbar-stream-detail * {
  width:fit-content
}
.topbar-stream-detail .btn.ghost {
  order:2;
}
.topbar-stream-detail .pill.large {
  order:1;
  padding:0.5rem 1.25rem;
}
.streamer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width:auto;
}
#topbar-creator {
  display: flex;
  flex-direction: column;
}
#topbar-creator .pills {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center
}
#topbar-creator .pills,
#topbar-creator .pills * {
  width: fit-content;
}
.logo {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  background: var(--purple);
  display: grid;
  place-items: center;
  color: var(--text);
  overflow: hidden;
  align-items: center;
}
.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.logo img[src$=".svg"] {
  object-fit: contain;
  width: 24px;
  height: 24px;
  margin-left:2px;
}
.streamer-brand .title {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
  font-size: 1.2rem;
}
.streamer-brand .title span {
  font-size: 0.9rem;
  display: block;
  padding-top: 0.25rem;
}
.creator-social-links {
  display: flex;
  flex-wrap: wrap;
  width:auto;
  align-items: center;
  gap: 1rem;
}
.creator-social-links a:hover {
  color: var(--accent);
}

/* Cards */
.card {
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align:center;
  gap: 1rem;
}
.card.plain {
  background-color: transparent;
  padding:0 1rem;
}
.card .card-title {
  margin: 0 0 0.5rem;
  font-size: var(--font-size-sm);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.featured-stream {
  text-align: center;
}
.featured-stream .view-channels {
  justify-content: center;
  margin-bottom:1rem;
  flex-direction: column;
  margin-top:1rem;
}
.view-channels a+a::before {
  display: none;
}
.featured-stream .pills .btn {
  width:100%;
}
.featured-stream-tag {
  text-transform: uppercase;
  letter-spacing: 0.15rem;
}
.callout.card .pills {
  gap:1.5rem;
  font-size:1.25rem;
  flex-wrap: nowrap;
  text-align: center;
}

/* View channels */
.view-channels {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.view-channels a+a::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--text);
  opacity: 0.8;
}

/* Search */
.searchbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0 0 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  width:100%
  
}
.searchbar input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--text);
  outline: none;
  font-size: var(--font-size-sm);
}
.searchbar input:focus {
  box-shadow: none;
}
.searchbar .btn {
  border-right:0;
  border-top:0;
  border-bottom: 0;
  background:var(--muted);
  color:var(--bg)
}

/* Upcoming list / Search list */
#upcoming-list-header {
  flex-direction: column;
  gap:0;
  align-items: center;
}
#upcoming-list-header div {
  width:100%;
  text-align:center;
}
#upcoming-list,
#search-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width:100%;
}
#upcoming-list .item,
#search-list .item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
#upcoming-list .item .left, 
#search-list .item .left {
  display: flex;
  flex-direction: column; 
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  align-items: center;
  text-align: center;
}
#upcoming-list .item .avatar,
#search-list .avatar {
  width: 60px;
  min-width:60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background:var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}
#upcoming-list .item .meta,
#search-list .item .meta {
  flex: 0 1 50%;
}
#upcoming-list .item .meta .title,
#search-list .item .meta .title {
  margin: 0;
  display: block;
}
#upcoming-list .item .meta .time,
#search-list .item .meta .time {
  display: block;
}
#upcoming-list .item .btn-nav,
#search-list .item .btn-nav {
  margin-left: auto;
  flex: 0 0 auto; 
  display:none;
}
#feed-results {
  width:100%;
}
#feed-results .helper {
  margin-left:20px;
}
#search-list {
  margin-top:2rem;
}

/* Stream details */
#stream-details {
  display:grid;
  width:100%;
}
#stream-details .detail-item {
  display:flex;
  flex-direction: column;
  justify-content:space-between;
  gap:0;
  padding:0.75rem 0;
  border-bottom: 1px solid var(--border-light)
}
#stream-details .detail-item:last-child {
  border:0;
}
#stream-details .detail-item a {
  text-decoration: underline;
}
#stream-links {
  display:grid;
  gap:1rem;
  justify-items: center;
}
#stream-links a {
  color: var(--purple);
  position: relative;
  width: fit-content;
  display:flex;
  align-items: center;
  gap:1rem;
}
#stream-links a:after {
  font-family: "Font Awesome 7 Free";
  font-weight: 900;
  content: "\f054";
  color: var(--border-light);
  border: 1px solid var(--border-light);
  font-size:12px;
  padding:3px 8px;
  border-radius: var(--radius-circle);
  display: none;
}

/* Fundraising details */
#fundraising-details .fundraising-details-intro {
  display:flex;
  flex-direction: column;
  justify-content:space-between;
  align-items: center;
  gap:1rem;
  flex-wrap:wrap;
  margin:1rem 0;
  width:100%;
}
#fundraising-details .fundraising-details-intro .text-link-arrow:after {
  display: none;
}
#fundraising-details .fundraising-milestones {
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  justify-content: center;
}
/* Sidebar / nav */
.sidebar {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: 1.5rem 1rem;
}
.sidebar h1 {
  font-size:1.25rem;
  margin-bottom:1rem;
  text-align: center;
}
.sidebar .nav a {
  padding:0.25rem 0
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav a {
  padding: 0.5rem;
  color: var(--muted);
}
.nav a.active {
  color: var(--texzt);
}
.nav small {
  color: var(--muted);
}
.nav-mobile {
  display: block;
  margin-bottom: 12px;
}
.nav-mobile select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  outline: none;
}
.sidebar .nav {
  display: none;
}
/* Forms */
.formgrid {
  display: grid;
  gap: 2rem;
}
fieldset,
.fieldset { 
  border: 0; 
  padding: 0; 
  margin: 0; 
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
label,
legend  {
  font: inherit;
  color: var(--white);
}
input,
select,
textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  outline: none;
  width: 100%;
}
.select-wrap {
	position: relative;
}
input:focus,
textarea:focus,
select:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 1px var(--text);
}
textarea {
  min-height: 100px;
  resize: vertical;
  border-radius: var(--radius-sm);
}
select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  color-scheme: dark;
}
.topbar select {
  border-radius: var(--radius-pill);
  padding:8px 24px
}
select option,
select optgroup {
  background:var(--bg);
  color: #e9ecff;
}
select option:hover,
select option:checked,
select option:focus,
select option:active,
select option:selected {
  background: var(--accent);
  color: var(--text);
}
input[type="file"]{
  background: rgba(15, 20, 38, 0.65);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  width: 100%;
}
input[type="file"]::file-selector-button{
  background: transparent; 
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  margin-right: 12px;
  cursor: pointer;
}
input[type="file"]::-webkit-file-upload-button{
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.5rem 1rem;
  margin-right: 12px;
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover,
input[type="file"]::-webkit-file-upload-button:hover{
  filter: brightness(1.6);
}
.checkgrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:1rem;
  margin-top: 1rem;
}
.check{
  display:flex;
  align-items:center;
  gap:0.5rem;
  cursor:pointer;
  user-select:none;
  line-height:1.2;
  position: relative;
}
.check > input{
  position:absolute;
  opacity:0;
  width:1px;
  height:1px;
  margin:0;
}
.check .control{
  width: 20px;
  height: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 20px;
  position: relative;
  top:-1px;
}
.check [type="checkbox"] + .control {
  border-radius: 4px;
}
.check > input:focus-visible + .control{
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(120,140,255,.22);
}
.check > input[type="checkbox"]:checked + .control{
  background:  var(--accent);
  border-color: var(--accent);
}
.check > input[type="checkbox"]:checked + .control::after{
  content:"";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(-45deg);
  margin-top: -1px;
}
.check > input:disabled + .control{
  opacity: .55;
  cursor: not-allowed;
}
.check > input:disabled ~ .label{
  opacity: .6;
  cursor: not-allowed;
}
.check.radio .control{
  border-radius: var(--radius-circle);
}
.check.radio > input[type="radio"]:checked + .control{
  background: var(--accent);
  border-color: var(--accent);
}
.check.radio > input[type="radio"]:checked + .control::after{
  content:"";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}
.check .label{ opacity: .95; }
.help {
	margin: 0.25rem 0 0;
	font-size: 0.92rem;
}
label +.help {
  margin: 0 0 0.25rem;
}

/* Table */
.table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.table th {
  font-size: 1.2rem;
  text-align: left;
  font-weight:500;
}
.table th,
.table td {
  padding:0.5rem;
  border: 1px solid var(--border);
  border-top:0;
  border-left:0;
}
.table td {
  font-size: 1rem;
}
.table td:first-child {
  border-left:0
}
.table th:last-child,
.table td:last-child {
  border-right:0
}
.table tr:last-child td {
  border-bottom:0
}
.table-stack thead {
  display: none;
}
.table-stack,
.table-stack tbody,
.table-stack tr,
.table-stack td {
  display: block;
  width: 100%;
}
.table-stack tr {
  margin: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}
.table-stack tr:last-child {
  border-bottom:0;
}
.table-stack td {
  border: 0;    
}
.table-stack td:last-child {
  padding: 0 0 1rem;
}
.table-stack td:first-child {
  border: 0;    
}
.table-stack td::before {
  content: attr(data-label) ": ";
  font-weight: 500;
  color: var(--muted);
  display:block
}
.table-stack tr:last-child td:last-child {
  padding: 0;
}
.table-stack td + td {
  margin-top: 0.35rem;
}

/* Misc components */
.alert-circle {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  background: var(--white);
  display: inline-block;
  animation: pulse 2s infinite;
}
.alert-circle.green {
  background: var(--green);
}
.alert-circle.red {
  background: var(--red);
}
.actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
  width:100%;
}
#creatorPanel .actions {
  margin-top: 2rem;
  flex-direction: column;
  justify-content: space-between;
  gap:1rem;
}
.actions .grouped {
  display: flex;
  flex-direction: column;
  gap:1rem;
}
#loadMoreArea.actions {
  justify-content: center;
}
.hr {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}
.note,
.kicker {
  font-size: 0.85rem;
  color: var(--muted);
}
.kicker {
  margin: 0 0 10px;
}
.accordion {
  overflow: hidden;
  width:100%;
}
.accordion > .accordion-summary{
  overflow: hidden;
  max-height: 3rem;
  opacity: 1;
  padding-top:1rem;
  transition: max-height .18s ease, opacity .18s ease, padding .18s ease;
}
.accordion:not([open]) > .accordion-summary{
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}
.accordion-summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  color: var(--text);
}
.accordion .accordion-summary h2 {
  font-size:1.5rem;
  margin:0
}
.accordion-summary::-webkit-details-marker {
  display: none;
}
.accordion-chev {
  color: var(--text);
  transition: transform 0.18s ease;
}
.accordion[open] .accordion-chev {
  transform: rotate(180deg);
}
.accordion-content {
  overflow:hidden;
  padding:0 0.5rem;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
  font-weight: 400;
}
.accordion[open] .accordion-content {
  opacity: 1;
  transform: translateY(0);
}

/* Streamer Dashboard */
.settings-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}
.streaming-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
  margin-top:1rem;
}
.stream-row {
	display: grid;
	grid-template-columns: 92px 1fr;
	align-items: center;
	gap: 10px;
}
.stream-row.add-service {
	grid-template-columns: 1fr;
}
.service-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 34px;
	padding: 0 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .12);
	font-size: .9rem;
}
.label-with-badge {
	display: flex;
	align-items: center;
	gap: 8px;
}
.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
}
.branding-grid { align-items: start; }
.branding-controls { display: grid; grid-template-columns: 1fr; gap: 14px; }
.branding-grid .controls {
  order:1
}
.branding-grid .preview {
  order:2
}
.branding-view .card {
  padding:0
}
.color-row {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 10px;
  align-items: center;
}
.swatch {
  width: 38px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.file-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}
.file-pill {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  white-space: nowrap;
}
.preview-shell {
  position: relative;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  padding: 12px;
  overflow: hidden;
  max-width: 100%;
}
.preview-topbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.preview-dot {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
}
.preview-pill {
  width: 78px; height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3533CD 0%, #010102 100%);
  opacity: .9;
}
.preview-phone {
  border-radius: 18px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
  padding: 12px;
}
.preview-avatar {
  width: 26px; height: 26px;
  border-radius: 999px;
  background: rgba(120,140,255,.25);
  border: 1px solid rgba(120,140,255,.35);
  margin-bottom: 10px;
}
.preview-hero {
  height: 92px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(90,110,255,.55), rgba(0,0,0,.10));
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 10px;
}
.preview-lines span {
  display:block;
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  margin: 10px 0;
}
.preview-cta {
  height: 34px;
  width: 60%;
  border-radius: 12px;
  margin-top: 12px;
  background: linear-gradient(90deg, rgba(90,110,255,.80), rgba(53,51,205,.45));
  border: 1px solid rgba(255,255,255,.10);
}
.addon-cards{
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr; /* mobile first */
}
.addon-card{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  padding: 1rem;
  min-height: 165px;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.addon-card-title{
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 500;
}
.addon-card-title-link{
  color: var(--text);
  text-decoration: none;
}
.addon-card-desc{
  margin: 0;
  color: var(--text);
  font-size: .95rem;
}
.addon-card-hint{
  display: inline-block;
  color: var(--green);
  white-space: nowrap;
}
.addon-card-footer{
  margin-top: auto;
}
.addon-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .38rem .75rem;
  border-radius: var(--radius-pill);
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}
.addon-pill-buy{
  background: var(--border);
  border-color: var(--border);
  color: var(--text);
}
.addon-pill-soon {
  background: var(--grey-dark);
  border-color: var(--grey-dark);
  color:var(--muted);
}
.addon-pill-owned{
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
  font-weight: 500;
}
.addon-pill-icon{
  font-size: 1rem;
  line-height: 1;
}  
#schedule-table .table--stack,
#schedule-table .table--stack tbody,
#schedule-table .table--stack tr,
#schedule-table .table--stack td {
  display: block;
  width: 100%;
}
#schedule-table .table--stack thead {
  display: none;
}
#schedule-table .table--stack tbody tr {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.9rem;
  margin: 0 0 1rem;
  background: var(--panel, transparent); 
}
#schedule-table .table--stack td + td {
  margin-top: 0.55rem;
}
#schedule-table .table--stack td + td,
#schedule-table .table--stack td:first-child {
  border-right:0
}
#schedule-table .table--stack td:first-child {
  border-bottom: 0;
}
#schedule-table .table--stack th:last-child,
#schedule-table .table--stack td:last-child {
  border:0
}
#schedule-table .table--stack td::before {
  content: attr(data-label);
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}
#schedule-table .table--stack td:first-child {
  margin-bottom: 0.65rem;
}
#schedule-table .table--stack td:first-child::before {
  content: "";
  display: none;
}
#schedule-table .table--stack td:first-child i {
  font-size: 1.1rem;
  opacity: 0.9;
}
#schedule-table .table--stack td:last-child .tag {
  display: inline-flex; 
  align-items: center;
  justify-content: center;
}
#schedule-table .icon-btn{
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}
#creatorPanel .actions.row-end {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#creatorPanel #stream_form_actions.actions {
  flex-direction: column;
}
#creatorPanel .actions button[type="submit"],
#creatorPanel #stream_form_actions.actions button[type="submit"]  {
  order:1
}

#creatorPanel .actions button[type="reset"],
#creatorPanel #stream_form_actions.actions button[type="reset"]  {
  order:2
}
.import-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap:1rem;
}
.settings-view .actions .btn,
.import-grid .actions .outline,
.import-header span {
  order: 2;
}
.settings-view .actions .btn.primary,
.import-grid .actions .primary,
.import-header span.tag {
  order: 1;
}
.feilds-email {
  display: flex;
  flex-direction: column;
  gap:1rem;
}
.feilds-email .reset-password{ 
  white-space: nowrap;
}

/* Footer  */
.footer {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  padding:0 0 1rem;
}

/* Responsive */
@media (min-width: 513px) {
  .flex-end {
    justify-content: flex-end;
  }
  .card {
    text-align:left;
  }
  span.dot {
    height:auto;
    opacity: 1;
    display:inline
  }
  .pill.large {
    width: fit-content;
  }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); 
    align-items: center;
  }
  .streamer-brand {
    flex-direction: row;
  }
  .streamer-brand,
  .creator-social-links{
    min-width: 0; 
  }
  .streamer-brand .title {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }
  .topbar-stream-detail {
    grid-template-columns: 1fr 1fr; 
  }
  .topbar-stream-detail .btn.ghost {
    order:1
  }
  .topbar-stream-detail .pill.large {
      margin-left: auto;
      order:2
  }
  .creator-social-links {
    justify-self: end;
    justify-content: flex-end;
    padding: 0.5rem 1rem;
    border-radius: 3rem;
    box-shadow: 0 0 2px 1px var(--border-light);
  }
  .pills {
    flex-direction: row; 
  }
  .topbar .pills {
    align-items: center;
  }
  .featured-stream {
    text-align: left;
  }
  .featured-stream .view-channels {
    justify-content: flex-start;
  }
  .featured-stream .pills .btn {
    width:auto;
  }
  #stream-details .detail-item {
    flex-direction: row;
    gap:1rem;
  }
  #upcoming-list-header {
    flex-direction: row;
    align-items: flex-end
  }
  #upcoming-list-header div {
    text-align:left;
    width: auto;
  }
  #upcoming-list .item .left,
  #search-list .item .left {
    align-items: flex-start;
    text-align: left;
  }
  #upcoming-list .item .btn-nav,
  #search-list .item .btn-nav {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
  }
  #stream-links {
    justify-items: start;
  }
  #stream-links a:after {
    display: block;
  }
  .callout.card .pills {
    text-align: left;
  }
  #fundraising-details .fundraising-details-intro {
    flex-direction: row;
    justify-content: space-between;
  }
  #fundraising-details .fundraising-details-intro .text-link-arrow:after {
    display:block;

  } 
  #fundraising-details .fundraising-milestones {
    justify-content: flex-start;
  }
  .featured-stream .view-channels {
    flex-direction: row;
    margin-top:0;
  }
  .view-channels a+a::before {
    display:inline
  }
  .table-stack {
    width: 100%;
    table-layout: fixed;
  }
  .table-stack,
  .table-stack thead,
  .table-stack tbody,
  .table-stack tr {
    display: table-row-group;
  }
  .table-stack thead { 
    display: table-header-group; 
  }
  .table-stack { 
    display: table; 
  }
  .table-stack tr { 
    display: table-row; 
  }
  .table-stack th,
  .table-stack td { 
    display: table-cell;
  }
  .table-stack th:first-child,
  .table-stack td:first-child {
    width: 140px;
    white-space: nowrap;
  }
  .table-stack th:last-child,
  .table-stack td:last-child {
    width: auto;
  }
  .table-stack tbody tr {
    background: transparent;
    padding: 0;
    margin: 0;
  }  
  .table-stack th,
  .table-stack td,  
  .table-stack th:last-child,
  .table-stack td:last-child,
  .table-stack tr:last-child td:last-child  { 
    padding:0.5rem 1rem;
  }
  .table-stack td,
  .table-stack td:first-child {
    border-bottom: 1px solid var(--border);
    border-left: 1px solid var(--border);
  }
  .table-stack td:first-child {
    border-left:0;
  }
  .table-stack th:first-child,
  .table-stack td:first-child {
    padding-left:0
  }
  .table-stack td::before { 
    content: none; 
  }
  .addon-cards{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #creatorPanel .actions {
     justify-content: space-between;
     flex-direction: row;
  }
  #creatorPanel .actions.row-end {
    flex-direction: row;
  }
  #creatorPanel .actions button[type="reset"] {
    order: 1;
  }
  #creatorPanel .actions button[type="submit"] {
    order: 2;
  }
  .import-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .import-grid .actions .outline,
  .import-header span {
    order: 1;
  }
  .import-grid .actions .primary,
  .import-header span.tag {
    order: 2;
  }
}
@media (min-width:621px) {
  #upcoming-list .item, 
  #search-list .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #upcoming-list .item .left,
  #search-list .item .left {
    flex-direction: row;
    align-items: center;
    width:100%;
    gap: 2rem;
  }
  #upcoming-list .item .meta,
  #search-list .item .meta {
    min-width: 0;
    flex: 1 1 auto;
  }
  #upcoming-list .item .tag-wrapper,
  #search-list .item .tag-wrapper {
    white-space: nowrap; 
    width: 160px;
    flex: 0 0 160px;
    text-align: center;
    white-space: nowrap;
  }
  .checkgrid{ grid-template-columns: 1fr 1fr 1fr 1fr; }
  #topbar-creator .pills {
    justify-items: end
  }
  #topbar-creator .pills,
  #topbar-creator .pills * {
    width: fit-content;
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  #creatorPanel #stream_form_actions.actions,
  #creatorPanel #stream_form_actions.actions .grouped{
    flex-direction: row;
  }
  #creatorPanel #stream_form_actions.actions button[type="submit"]  {
    order:1
  }
  #creatorPanel #stream_form_actions.actions button[type="reset"]  {
    order:2
  }
}
@media (min-width: 860px) {
  .branding-controls { gap: 16px; }
  .grid.cols-2 {
    grid-template-columns: 200px 1fr;
  }
  .formgrid {
    grid-template-columns: 1fr 1fr;
  }
  .settings-grid {
		grid-template-columns: 0.7fr 1fr;
		gap: 2rem;
	}
  .subgrid { 
    grid-template-columns: 1fr 1fr; 
  }
  .nav-mobile {
    display: none;
  }
  .sidebar {
    position: sticky;
    top: 14px;
    height: fit-content;
  }
  .sidebar h1 {
    text-align: left;
  }
  .sidebar .nav {
    display: flex;
  }
  #creatorPanel .actions.row-end {
    justify-content: flex-end;
  }
  #creatorPanel .actions.space-between {
    justify-content: space-between;
  }
  .branding-grid .controls {
    order:2
  }
  .branding-grid .preview {
    order:1
  }
  .branding-grid .preview {
    position: sticky;
    top:15px;
  }
  #topbar-creator.topbar {  
    display: flex;
    flex-direction: row;
    align-items: center;  
    justify-content: space-between
  }
  #schedule-table .table--stack {
    display: table;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
  }
  #schedule-table .table--stack thead {
    display: table-header-group;
  }
  #schedule-table .table--stack tbody {
    display: table-row-group;
  }
  #schedule-table .table--stack tr {
    display: table-row;
  }
  #schedule-table .table--stack td,
  #schedule-table .table--stack th {
    display: table-cell;
    width: auto;
  }
  #schedule-table .table--stack td:last-child,
  #schedule-table .table--stack tr:last-child td {
    border-bottom:1px solid var(--border);
  }
  #schedule-table .table--stack td + td,
  #schedule-table .table--stack td:first-child {
    border-right:1px solid var(--border)
  }
  #schedule-table .table--stack th:last-child, 
  #schedule-table .table--stack td:first-child {
    border-bottom: 1px solid var(--border);
  }
  #schedule-table .table--stack tbody tr {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
  }
  #schedule-table .table--stack td::before {
    content: none;
    display: none;
  }
  .preview-shell {
    max-width: 360px;
  }
  .feilds-email {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
@media (min-width: 1025px) {
  .addon-cards{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.35);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .accordion-content,
  .accordion-chev {
    transition: none;
  }
}