:root {
  color-scheme: light;
  --deep-blue: #0b1f3a;
  --digital-teal: #00a7a7;
  --transition-orange: #ff7a00;
  --tech-blue: #0052ff;
  --cloud: #f5f7fa;
  --void: #07111f;
  --bg: var(--cloud);
  --ink: var(--deep-blue);
  --muted: #64748b;
  --soft: rgba(11, 31, 58, 0.06);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(11, 31, 58, 0.12);
  --line-strong: rgba(0, 167, 167, 0.58);
  --cyan: #00a7a7;
  --teal: #00a7a7;
  --blue: #0052ff;
  --violet: #0b1f3a;
  --yellow: #ff7a00;
  --shadow: 0 28px 80px rgba(11, 31, 58, 0.14);
}

@font-face {
  font-family: "layui-icon";
  font-display: swap;
  src:
    url("./common/ui/layui/font/iconfont.woff2?v=282") format("woff2"),
    url("./common/ui/layui/font/iconfont.woff?v=282") format("woff");
}

.layui-icon {
  font-family: "layui-icon" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.layui-icon-set-fill::before {
  content: "\e614";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(0, 167, 167, 0.16), transparent 28%),
    radial-gradient(circle at 86% 8%, rgba(0, 82, 255, 0.14), transparent 28%),
    radial-gradient(circle at 78% 72%, rgba(255, 122, 0, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 46%, #eaf0f8 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(11, 31, 58, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 72%);
}

button {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1440px, calc(100% - 44px));
  margin: 0 auto;
  padding: 18px 0 44px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  width: min(260px, 58vw);
  min-width: 190px;
  padding: 0;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(11, 31, 58, 0.16));
}

.language-picker {
  position: relative;
  display: flex;
  align-items: center;
}

.language-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 50%;
  color: var(--cloud);
  background: var(--deep-blue);
  box-shadow: 0 14px 30px rgba(11, 31, 58, 0.18);
  font-weight: 900;
  backdrop-filter: blur(22px);
}

.language-button:hover,
.language-button[aria-expanded="true"] {
  color: var(--cloud);
  background: var(--tech-blue);
}

#nf-setting-trigger {
  margin-left: 10px;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

#nf-setting-trigger:hover {
  background: var(--tech-blue);
  transform: scale(1.05);
}

.language-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  min-width: 148px;
  padding: 8px;
  border: 1px solid rgba(11, 31, 58, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.language-popover[hidden] {
  display: none;
}

.language-popover button {
  height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  outline: 0;
  color: var(--deep-blue);
  background: transparent;
  font-weight: 750;
  text-align: left;
}

.language-popover button:hover,
.language-popover button.active {
  color: var(--cloud);
  background: var(--tech-blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(340px, 0.68fr);
  gap: 18px;
  align-items: center;
  min-height: min(420px, calc(100vh - 180px));
  padding: 20px 0 0;
}

.hero-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: none;
  padding: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--tech-blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.panel-desc,
.section-heading p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
}

.primary-button,
.secondary-button {
  display: inline-grid;
  min-height: 46px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.primary-button {
  padding: 0 24px;
  color: var(--cloud);
  background: linear-gradient(135deg, var(--tech-blue), var(--digital-teal));
  box-shadow: 0 18px 42px rgba(0, 82, 255, 0.28);
}

.secondary-button {
  padding: 0 22px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.primary-button.full {
  width: 100%;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  opacity: 0.88;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(360px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 82, 255, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(0, 167, 167, 0.14), transparent 62%),
    conic-gradient(from 130deg, transparent, rgba(0, 167, 167, 0.22), transparent, rgba(0, 82, 255, 0.2), transparent, rgba(255, 122, 0, 0.14), transparent);
  filter: drop-shadow(0 0 42px rgba(0, 82, 255, 0.16));
}

.mascot-stage {
  position: relative;
  display: grid;
  width: min(350px, 70vw);
  aspect-ratio: 1;
  place-items: center;
  isolation: isolate;
}

.mascot-stage::before {
  content: "";
  position: absolute;
  inset: 13% 5% 2%;
  z-index: -2;
  border-radius: 44% 56% 48% 52%;
  background:
    radial-gradient(circle at 32% 24%, rgba(245, 247, 250, 0.92), transparent 28%),
    linear-gradient(135deg, rgba(0, 167, 167, 0.16), rgba(0, 82, 255, 0.18));
  box-shadow: var(--shadow);
}

.mascot-stage::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 12%;
  bottom: 3%;
  z-index: -1;
  height: 20px;
  border-radius: 50%;
  background: rgba(11, 31, 58, 0.16);
  filter: blur(12px);
}

.mascot-icon {
  width: min(298px, 66vw);
  max-height: 322px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(11, 31, 58, 0.14));
}

.mascot-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(0, 82, 255, 0.13);
  border-radius: 50%;
}

.orbit-one {
  inset: 8% 3% 10%;
  transform: rotate(-14deg);
}

.orbit-two {
  inset: 18% 12% 16%;
  border-color: rgba(0, 167, 167, 0.14);
  transform: rotate(18deg);
}

.mascot-node {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--transition-orange);
  box-shadow: 0 0 14px rgba(255, 122, 0, 0.34);
}

.node-one {
  top: 20%;
  right: 14%;
}

.node-two {
  bottom: 18%;
  left: 18%;
  background: var(--digital-teal);
  box-shadow: 0 0 20px rgba(0, 167, 167, 0.55);
}

.node-three {
  right: 22%;
  bottom: 12%;
  background: var(--tech-blue);
  box-shadow: 0 0 20px rgba(0, 82, 255, 0.55);
}

.main-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  margin-top: -32px;
}

.settings-panel {
  display: grid;
  align-self: stretch;
}

.glass-panel,
.board-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.glass-panel {
  padding: 22px;
}

.panel-desc {
  margin-bottom: 20px;
}

.selected-panel {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  height: min(760px, calc(100vh - 68px));
  border-color: rgba(0, 82, 255, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.72)),
    radial-gradient(circle at 16% 14%, rgba(0, 167, 167, 0.12), transparent 40%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 167, 167, 0.1),
    0 28px 74px rgba(0, 82, 255, 0.12);
  overflow: hidden;
}

.selected-panel h2 {
  margin-bottom: 10px;
  color: var(--deep-blue);
  text-shadow: 0 10px 24px rgba(0, 82, 255, 0.12);
}

.selected-panel p {
  color: var(--muted);
}

.selected-art,
.device-art {
  display: grid;
  place-items: center;
}

.selected-art {
  flex: 1;
  min-height: 260px;
  margin: 22px 0;
  border: 1px solid rgba(11, 31, 58, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(11, 31, 58, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(11, 31, 58, 0.06) 1px, transparent 1px),
    linear-gradient(145deg, rgba(245, 247, 250, 0.92), rgba(0, 167, 167, 0.08));
  background-size: 24px 24px;
}

.selected-art::before,
.device-art::before {
  content: "";
  display: block;
  width: 150px;
  height: 82px;
  border: 5px solid #151d2b;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18px 18px, #d9f9ff 0 5px, transparent 6px),
    radial-gradient(circle at 132px 18px, #d9f9ff 0 5px, transparent 6px),
    radial-gradient(circle at 18px 64px, #d9f9ff 0 5px, transparent 6px),
    radial-gradient(circle at 132px 64px, #d9f9ff 0 5px, transparent 6px),
    linear-gradient(135deg, #1cc6b6, #2878d8);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
}

.selected-art[data-visual="esp32"]::before,
.device-art[data-visual="esp32"]::before {
  width: 132px;
  height: 92px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 101px 28px, #fff 0 4px, transparent 5px),
    radial-gradient(circle at 101px 50px, #fff 0 4px, transparent 5px),
    linear-gradient(90deg, #263143 0 30px, transparent 30px),
    linear-gradient(135deg, #111827, #273449);
}

.selected-art[data-visual="arduino"]::before,
.device-art[data-visual="arduino"]::before {
  width: 148px;
  height: 86px;
  border-radius: 24px 14px 20px 14px;
  background:
    radial-gradient(circle at 48px 43px, transparent 0 15px, #e8f7ff 16px 19px, transparent 20px),
    radial-gradient(circle at 96px 43px, transparent 0 15px, #e8f7ff 16px 19px, transparent 20px),
    linear-gradient(135deg, #1777bd, #22b7c7);
}

.selected-art[data-visual="python"]::before,
.device-art[data-visual="python"]::before {
  width: 116px;
  height: 116px;
  border: 0;
  border-radius: 28px;
  background:
    radial-gradient(circle at 43px 30px, #fff 0 5px, transparent 6px),
    radial-gradient(circle at 73px 86px, #fff 0 5px, transparent 6px),
    linear-gradient(135deg, #3776ab 0 50%, #ffd343 50%);
}

.selected-art[data-visual="microbit"]::before,
.device-art[data-visual="microbit"]::before {
  width: 130px;
  height: 104px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 36px 34px, #ff4f82 0 4px, transparent 5px),
    radial-gradient(circle at 64px 34px, #ff4f82 0 4px, transparent 5px),
    radial-gradient(circle at 92px 34px, #ff4f82 0 4px, transparent 5px),
    radial-gradient(circle at 50px 62px, #ff4f82 0 4px, transparent 5px),
    radial-gradient(circle at 78px 62px, #ff4f82 0 4px, transparent 5px),
    linear-gradient(135deg, #161b2a, #05070d);
}

.selected-art[data-visual="matrix"]::before,
.device-art[data-visual="matrix"]::before {
  width: 138px;
  height: 92px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 34px 28px, #ffb761 0 3px, transparent 4px),
    radial-gradient(circle at 50px 28px, #ffb761 0 3px, transparent 4px),
    radial-gradient(circle at 66px 28px, #ff6d8d 0 3px, transparent 4px),
    radial-gradient(circle at 82px 28px, #ff6d8d 0 3px, transparent 4px),
    radial-gradient(circle at 98px 28px, #ffb761 0 3px, transparent 4px),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0 4px, transparent 4px 10px),
    linear-gradient(135deg, #171c26, #05070d);
}

.selected-art[data-visual="robot"]::before,
.device-art[data-visual="robot"]::before {
  width: 148px;
  height: 70px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 32px 34px, #ff6b6b 0 4px, transparent 5px),
    radial-gradient(circle at 112px 34px, #7dfff0 0 4px, transparent 5px),
    linear-gradient(135deg, #e6edf5, #aebdca);
}

.board-section {
  min-width: 0;
}

.board-panel {
  height: min(760px, calc(100vh - 68px));
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 18%, rgba(0, 167, 167, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.62));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 167, 167, 0.5) transparent;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 20px;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p {
  margin-bottom: 0;
}

.board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.empty-board {
  display: grid;
  min-height: 238px;
  grid-column: 1 / -1;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
  font-weight: 800;
}

.board-card {
  position: relative;
  display: grid;
  min-height: 238px;
  padding: 14px;
  border-radius: 20px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.board-card:hover {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(0, 82, 255, 0.05), rgba(0, 167, 167, 0.06)),
    rgba(255, 255, 255, 0.82);
  transform: translateY(-4px);
}

.board-card.active {
  border-color: rgba(0, 82, 255, 0.74);
  background:
    linear-gradient(135deg, rgba(0, 82, 255, 0.13), rgba(0, 167, 167, 0.15)),
    rgba(255, 255, 255, 0.94);
  box-shadow:
    inset 0 0 0 2px rgba(0, 167, 167, 0.2),
    0 20px 46px rgba(0, 82, 255, 0.18);
  transform: translateY(-2px);
}

.board-card.active:hover {
  border-color: rgba(0, 82, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(0, 82, 255, 0.15), rgba(0, 167, 167, 0.17)),
    rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.active-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(0, 82, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--tech-blue), var(--digital-teal));
  box-shadow: 0 10px 22px rgba(0, 82, 255, 0.16);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.device-art {
  min-height: 112px;
  margin-bottom: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.07), rgba(245, 247, 250, 0.86));
}

.device-art::before {
  width: 108px;
  height: 58px;
  border-width: 4px;
}

.board-info {
  display: grid;
  gap: 8px;
  align-content: start;
}

.board-info strong {
  font-size: 18px;
  line-height: 1.16;
}

.board-info small {
  color: var(--tech-blue);
  font-size: 13px;
  font-weight: 800;
}

.board-info span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.mixly-setting-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 17, 31, 0.42);
  backdrop-filter: blur(8px);
}

.mixly-setting-overlay[hidden] {
  display: none;
}

.mixly-setting-dialog {
  display: flex;
  width: min(760px, 100%);
  height: min(540px, calc(100vh - 48px));
  flex-direction: column;
  border: 1px solid rgba(11, 31, 58, 0.16);
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(11, 31, 58, 0.28);
  overflow: hidden;
}

.mixly-setting-header {
  display: flex;
  height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid #e8e8e8;
  background: #ffffff;
}

.mixly-setting-header h2 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 650;
}

.mixly-setting-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  color: #777;
  background: transparent;
  font-size: 24px;
  line-height: 1;
}

.mixly-setting-close:hover {
  color: #111;
  background: #f2f2f2;
}

.mixly-setting-main {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 160px minmax(0, 1fr);
}

.mixly-setting-tabs {
  padding: 5px;
  border-right: 1px solid #f0f0f0;
  background: #ffffff;
  overflow-y: auto;
}

.mixly-setting-tabs button {
  display: block;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 5px;
  color: #333;
  background: transparent;
  font-size: 14px;
  text-align: left;
}

.mixly-setting-tabs button:hover {
  background: #f2f2f2;
}

.mixly-setting-tabs button.active {
  color: #fff;
  background: #009688;
}

.mixly-setting-content {
  min-width: 0;
  background: #fff;
  overflow: auto;
}

.mixly-setting-pane {
  display: none;
  padding: 8px;
}

.mixly-setting-pane.active {
  display: block;
}

.setting-group {
  margin-bottom: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 3px;
  background: #fff;
}

.setting-group h3 {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid #e6e6e6;
  background: #fafafa;
  color: #333;
  font-size: 14px;
  font-weight: 650;
}

.setting-group label {
  display: grid;
  min-height: 46px;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid #f2f2f2;
  color: #333;
  font-size: 14px;
}

.setting-group label:last-child {
  border-bottom: 0;
}

.setting-group select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #d2d2d2;
  border-radius: 2px;
  color: #333;
  background: #fff;
}

.setting-about {
  padding: 15px;
  color: #333;
  line-height: 1.8;
}

.setting-about h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.setting-about p {
  margin: 0 0 10px;
}

.mixly-setting-footer {
  display: flex;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-top: 1px solid #eee;
  background: #ffffff;
}

.mixly-setting-footer button {
  min-width: 74px;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: #009688;
  font-size: 14px;
}

.mixly-setting-footer .mixly-setting-reset {
  background: #1e9fff;
}

.mixly-setting-footer button:hover {
  filter: brightness(0.95);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 48px));
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: rgba(8, 13, 24, 0.88);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  backdrop-filter: blur(18px);
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Keep the delivered desktop composition intact and fit it as one canvas. */
.homepage-viewport,
.homepage-scale-box {
  display: contents;
}

html.homepage-fit,
html.homepage-fit body {
  width: 100%;
  min-height: 100%;
}

html.homepage-fit body {
  overflow: auto;
}

html.homepage-fit .homepage-viewport {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100vh;
  overflow: visible;
}

html.homepage-fit .homepage-scale-box {
  position: relative;
  display: block;
  margin: 0 auto;
}

html.homepage-fit .page-shell {
  position: absolute;
  top: 0;
  left: 0;
  width: 1440px;
  margin: 0;
  padding: 18px 0 44px;
  transform: scale(var(--homepage-scale, 1));
  transform-origin: top left;
}

html.homepage-fit .brand {
  width: 260px;
}

html.homepage-fit .page-shell h2 {
  font-size: 44px;
}

html.homepage-fit .hero {
  min-height: 420px;
}

html.homepage-fit .hero-visual::before {
  width: 360px;
}

html.homepage-fit .mascot-stage {
  width: 350px;
}

html.homepage-fit .mascot-icon {
  width: 298px;
}

html.homepage-fit .selected-panel,
html.homepage-fit .board-panel {
  height: 760px;
}

html.homepage-narrow .hero,
html.homepage-narrow .main-grid {
  grid-template-columns: 1fr;
}

html.homepage-narrow .hero {
  min-height: auto;
}

html.homepage-narrow .hero-copy {
  padding: 0;
}

html.homepage-narrow h1 {
  font-size: 56px;
}

html.homepage-narrow .hero-visual {
  min-height: 360px;
}

html.homepage-narrow .settings-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.homepage-narrow .selected-panel {
  position: static;
  min-height: 460px;
}

html.homepage-narrow .board-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
}

@media (max-width: 820px) {
  .mixly-setting-dialog {
    height: calc(100vh - 28px);
  }

  .mixly-setting-main {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .mixly-setting-tabs {
    display: flex;
    border-right: 0;
    border-bottom: 1px solid #f0f0f0;
    overflow-x: auto;
  }

  .mixly-setting-tabs button {
    width: auto;
    min-width: 96px;
  }

  .setting-group label {
    grid-template-columns: 1fr;
    gap: 6px;
  }

}

html.homepage-mobile .page-shell {
  width: min(100% - 28px, 1440px);
}

html.homepage-mobile .topbar {
  align-items: center;
  flex-direction: row;
}

html.homepage-mobile .brand {
  width: min(220px, 68vw);
  min-width: 0;
}

html.homepage-mobile .hero {
  gap: 18px;
  padding-top: 28px;
}

html.homepage-mobile .hero-copy {
  padding: 0;
}

html.homepage-mobile h1 {
  font-size: 34px;
}

html.homepage-mobile .hero-copy p:not(.eyebrow) {
  font-size: 16px;
}

html.homepage-mobile .hero-visual {
  min-height: 310px;
}

html.homepage-mobile .settings-panel,
html.homepage-mobile .board-grid {
  grid-template-columns: 1fr;
}

html.homepage-mobile .board-panel {
  padding: 16px;
}

html.homepage-phone h1 {
  font-size: 30px;
}
