.top-features {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 12px;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.workspace-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.winner-company strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
.workspace-label > div {
  overflow-wrap: anywhere;
}
.top-features > button {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--ink);
}
.top-features > button:hover {
  background: var(--soft);
}
.feature-icon {
  font-size: 17px;
  color: var(--purple);
}
.top-features > button:last-child {
  margin-left: auto;
  background: var(--soft);
  color: var(--purple);
}
.company-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 19px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, var(--soft), var(--card));
  flex-wrap: wrap;
}
.company-logo-slot {
  width: 66px;
  min-height: 66px;
  border: 1px dashed #95b4a9;
  border-radius: 11px;
  flex-shrink: 0;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  padding: 5px;
}
.company-logo-slot img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}
.logo-placeholder {
  font-size: 24px;
  color: var(--purple);
  line-height: 1.2;
}
.company-logo-slot small {
  font-size: 11px;
  color: var(--muted);
}
.company-info {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.company-info > button {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: left;
  padding: 0;
  line-height: 1.4;
}
.company-info p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 0 0;
}
.company-info a {
  display: inline-block;
  font-size: 12px;
  color: var(--purple);
  margin-top: 4px;
}
.company-info a[hidden] {
  display: none;
}
.brand-options {
  font-size: 12px;
  color: var(--purple);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--card);
  padding: 9px 11px;
  white-space: nowrap;
}
.company-bar:not(.has-company) .company-info > button {
  color: var(--purple);
}
#current-wheel-style {
  font-size: 12px;
  color: var(--purple);
  align-self: flex-start;
  margin: 6px 20px 0;
  padding: 4px 0;
  border-radius: 5px;
}
.branding-settings-shortcut {
  padding: 15px;
  background: var(--soft);
  border-radius: 9px;
  margin: 15px 0;
}
.branding-settings-shortcut > strong {
  font-size: 11px;
  letter-spacing: 1px;
}
.branding-settings-shortcut p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 8px 0;
}
.branding-settings-shortcut button {
  font-size: 13px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  background: var(--card);
  border-radius: 7px;
}
.logo-upload-zone {
  width: 100%;
  padding: 20px;
  border: 2px dashed #b4cec2;
  border-radius: 10px;
  color: var(--purple);
  background: var(--soft);
  font-size: 14px;
  font-weight: 600;
}
.logo-help {
  font-size: 12px !important;
  line-height: 1.6;
  color: var(--muted);
}
.branding-logo-preview {
  min-height: 90px;
  background: var(--input);
  border-radius: 9px;
  margin: 15px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
.branding-logo-preview img {
  max-width: 200px;
  max-height: 100px;
  object-fit: contain;
}
dialog.wide-dialog {
  width: 880px;
  max-width: calc(100% - 30px);
}
.style-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}
.style-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 12px;
  background: var(--input);
}
.style-choice.selected {
  border: 2px solid var(--purple);
  background: var(--soft);
}
.style-choice canvas {
  width: 140px;
  height: 140px;
  margin-bottom: 15px;
}
.style-choice strong {
  font-size: 15px;
}
.style-choice small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 6px;
}
.template-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0 20px;
}
.template-filters button {
  font-size: 12px;
  padding: 8px 11px;
  border-radius: 7px;
  background: var(--input);
  border: 1px solid var(--line);
}
.template-filters button.active {
  background: var(--purple);
  color: white;
  border-color: transparent;
}
.starter-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}
.starter-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  overflow: hidden;
  background: var(--card);
  padding: 0;
}
.starter-card:hover {
  transform: translateY(-3px);
  border-color: #87b6a1;
}
.starter-visual {
  position: relative;
  background: #f0f5f2;
  display: flex;
  justify-content: center;
  padding: 20px;
}
.starter-visual canvas {
  width: 125px;
  height: 125px;
  filter: drop-shadow(0 4px 4px #1439291a);
}
.starter-visual.style-marquee {
  background: #fcf2e7;
}
.starter-visual.style-spotlight {
  background: #1b303b;
}
.starter-visual.style-donut {
  background: #eaf3f4;
}
.template-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: #ffffffd9;
  color: #496d5d;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 10px;
}
.starter-copy {
  padding: 15px;
}
.starter-copy small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.starter-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 6px;
}
.starter-copy p {
  font-size: 12px !important;
  line-height: 1.6 !important;
  margin: 7px 0;
  color: var(--muted);
}
.starter-copy > span {
  display: block;
  font-size: 12px;
  color: var(--purple);
  margin-top: 12px;
}
.template-large-preview {
  display: block;
  width: 210px;
  height: 210px;
  margin: 20px auto;
}
.winner-company {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.winner .winner-company img {
  width: 45px;
  height: 45px;
  max-height: 45px;
  object-fit: contain;
  border-radius: 5px;
}
body[data-wheel-style="spotlight"] .wheel-stage {
  background: radial-gradient(ellipse at center, #476778, #142b37 78%);
}
body[data-wheel-style="spotlight"] .orbit {
  border-color: #a1c4c744;
}
body[data-wheel-style="spotlight"] .spark {
  color: #d8b985;
}
body[data-wheel-style="minimal"] .wheel-card:before {
  display: none;
}
body[data-wheel-style="minimal"] .wheel-stage .spark,
body[data-wheel-style="minimal"] .orbit-two {
  display: none;
}
body[data-wheel-style="marquee"] .wheel-stage {
  background-color: #fffaf2;
}
body[data-wheel-style="marquee"] .spark {
  color: #d5a148;
}
.dark .company-bar {
  background: linear-gradient(110deg, #28443b, #1c3235);
}
.dark .top-features > button:last-child,
.dark .feature-icon,
.dark .brand-options,
.dark .company-info a,
.dark .company-bar:not(.has-company) .company-info > button,
.dark #current-wheel-style,
.dark .starter-copy > span,
.dark .logo-placeholder,
.dark .logo-upload-zone {
  color: #c0d8cb;
}
.dark .starter-visual {
  background: #2b453b;
}
.dark .starter-visual.style-spotlight {
  background: #11242e;
}
.dark .starter-visual.style-marquee {
  background: #4b4030;
}
.dark .starter-visual.style-donut {
  background: #29434a;
}
.dark[data-wheel-style="marquee"] .wheel-stage {
  background-color: #2b372f;
}
.stream-view .company-bar {
  justify-content: center;
  background: transparent;
  border: 0;
}
.stream-view .company-info {
  flex: 0 1 auto;
}
.stream-view .company-logo-slot {
  border: 0;
  background: transparent;
}
.stream-view .company-info button {
  color: var(--ink);
}
.stream-view .brand-options,
.stream-view .company-bar:not(.has-company) {
  display: none;
}
.presentation .top-features {
  display: none;
}
@media (max-width: 1250px) {
  .top-features {
    gap: 4px;
  }
  .top-features > button {
    padding: 9px;
    font-size: 12px;
  }
  .brand-options {
    margin-left: auto;
  }
  .company-bar {
    padding: 16px;
  }
  .company-info {
    flex-basis: 140px;
  }
}
@media (max-width: 840px) {
  .starter-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .style-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-info {
    flex: 1;
  }
  .company-info > button {
    font-size: 18px;
  }
}
@media (max-width: 520px) {
  .top-features {
    padding: 9px;
    gap: 5px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .top-features > button {
    font-size: 12px;
    padding: 10px;
    gap: 7px;
    white-space: normal;
    min-height: 42px;
  }
  .top-features > button:last-child {
    margin-left: 0;
  }
  .company-bar {
    gap: 12px;
    padding: 15px;
  }
  .company-logo-slot {
    width: 60px;
    min-height: 60px;
  }
  .company-logo-slot img {
    width: 48px;
    height: 48px;
  }
  .company-info {
    flex: 1;
    min-width: 140px;
  }
  .company-info > button {
    font-size: 17px;
  }
  .brand-options {
    font-size: 12px;
    margin-left: auto;
  }
  .starter-gallery,
  .style-gallery {
    grid-template-columns: 1fr;
  }
  .starter-card {
    display: grid;
    grid-template-columns: 125px minmax(0, 1fr);
  }
  .starter-visual {
    padding: 20px 10px;
    align-items: center;
  }
  .starter-visual canvas {
    width: 100px;
    height: 100px;
  }
  .starter-copy {
    padding: 14px 12px;
  }
  .style-choice {
    padding: 20px;
  }
  .style-choice canvas {
    width: 155px;
    height: 155px;
  }
  .template-filters {
    gap: 6px;
  }
  .template-filters button {
    font-size: 12px;
  }
  .company-info p {
    font-size: 12px;
  }
  .winner-company {
    font-size: 15px;
  }
  .stream-view .company-info {
    min-width: 0;
  }
  .stream-view .top-features {
    display: none;
  }
}
