:root {
  color-scheme: dark;
  --bg: #080b18;
  --bg-soft: #0d1122;
  --surface: rgba(18, 23, 44, 0.86);
  --surface-solid: #12172c;
  --surface-high: #181f39;
  --surface-hover: #202846;
  --text: #f6f7ff;
  --text-soft: #c2c7dc;
  --muted: #7e879f;
  --line: rgba(175, 185, 226, 0.12);
  --line-strong: rgba(175, 185, 226, 0.22);
  --accent: #8967ff;
  --accent-strong: #7657ff;
  --accent-blue: #4c8dff;
  --success: #39d9a0;
  --warning: #ffc76b;
  --danger: #ff718e;
  --nav-bg: rgba(10, 13, 28, 0.94);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f6fb;
  --bg-soft: #edf0f8;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-high: #f1f3fa;
  --surface-hover: #e9ecf5;
  --text: #11162a;
  --text-soft: #474f68;
  --muted: #7b849d;
  --line: rgba(35, 45, 80, 0.1);
  --line-strong: rgba(35, 45, 80, 0.18);
  --accent: #7657ed;
  --accent-strong: #6545df;
  --accent-blue: #367be9;
  --success: #0f9e70;
  --warning: #bd7b13;
  --danger: #d84563;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --shadow: 0 20px 50px rgba(45, 51, 78, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% -5%, rgba(115, 80, 255, 0.16), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(39, 118, 255, 0.12), transparent 28%),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent-blue);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(85px);
  opacity: 0.16;
}

.ambient-one {
  top: 18%;
  left: -150px;
  background: #7d52ff;
}

.ambient-two {
  right: -170px;
  bottom: 14%;
  background: #257aff;
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--safe-top);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px 18px;
  border-bottom: 1px solid transparent;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 96%, transparent), color-mix(in srgb, var(--bg) 86%, transparent));
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(154, 120, 255, 0.3);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(139, 99, 255, 0.2), rgba(45, 120, 255, 0.09));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 28px rgba(83, 55, 199, 0.2);
}

.brand-mark svg {
  width: 29px;
  fill: var(--accent);
}

.brand-mark .brand-cut {
  fill: var(--surface-solid);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connection-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}

.connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--warning) 13%, transparent);
}

.connection-badge.is-online {
  color: var(--success);
}

.connection-badge.is-online .connection-dot {
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 13%, transparent);
}

.connection-label {
  display: none;
  font-size: 11px;
  font-weight: 700;
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sun-icon,
:root[data-theme="light"] .moon-icon {
  display: none;
}

:root[data-theme="light"] .sun-icon {
  display: block;
}

.main-content {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 8px 16px calc(118px + var(--safe-bottom));
}

.view {
  display: none;
  min-height: calc(100vh - 190px);
  animation: view-enter 0.24s ease both;
}

.view.is-active {
  display: block;
}

@keyframes view-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-card {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  padding: 34px 26px;
  border: 1px solid rgba(151, 119, 255, 0.23);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(121, 80, 255, 0.19), transparent 44%),
    linear-gradient(155deg, #171c38 0%, #0d132a 62%, #10152b 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  isolation: isolate;
}

:root[data-theme="light"] .hero-card {
  background:
    linear-gradient(135deg, rgba(121, 80, 255, 0.14), transparent 45%),
    linear-gradient(155deg, #ffffff 0%, #f2f4ff 65%, #edf2ff 100%);
}

.hero-card::after {
  position: absolute;
  z-index: -1;
  right: -50px;
  bottom: -100px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 137, 255, 0.25), transparent 67%);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 400px;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.13em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.eyebrow span {
  width: 20px;
  height: 1px;
  background: currentColor;
}

.hero-card h1 {
  margin: 0;
  font-size: clamp(34px, 10vw, 52px);
  font-weight: 850;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero-card h1 em {
  color: transparent;
  background: linear-gradient(95deg, #a883ff, #6ea4ff);
  background-clip: text;
  font-style: normal;
}

.hero-card p {
  max-width: 330px;
  margin: 20px 0 25px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

.primary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  box-shadow: 0 12px 32px rgba(100, 79, 232, 0.31);
  font-weight: 750;
  cursor: pointer;
}

.primary-action:active {
  transform: translateY(1px) scale(0.99);
}

.primary-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.orbit-one {
  top: -90px;
  right: -80px;
  width: 260px;
  height: 260px;
}

.orbit-two {
  top: -10px;
  right: -20px;
  width: 150px;
  height: 150px;
}

.sound-wave {
  position: absolute;
  right: 18px;
  bottom: 21px;
  display: flex;
  height: 58px;
  align-items: center;
  gap: 4px;
  opacity: 0.52;
}

.sound-wave i {
  width: 3px;
  height: 18%;
  border-radius: 999px;
  background: linear-gradient(to top, var(--accent), var(--accent-blue));
  animation: wave 2.3s ease-in-out infinite;
}

.sound-wave i:nth-child(2n) { height: 55%; animation-delay: -0.4s; }
.sound-wave i:nth-child(3n) { height: 92%; animation-delay: -1s; }
.sound-wave i:nth-child(5n) { height: 38%; animation-delay: -1.5s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.65); }
  50% { transform: scaleY(1.1); }
}

.section-block {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.section-heading h2,
.page-heading h1 {
  margin: 5px 0 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.text-button {
  min-height: 40px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: none;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.tool-card {
  position: relative;
  min-height: 152px;
  overflow: hidden;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-align: left;
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.tool-card:active {
  background: var(--surface-hover);
}

.tool-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
}

.gradient-purple { background: linear-gradient(135deg, #a56dff, #7357ff); }
.gradient-blue { background: linear-gradient(135deg, #589fff, #5264f3); }
.gradient-pink { background: linear-gradient(135deg, #ff73a7, #a655ed); }
.gradient-cyan { background: linear-gradient(135deg, #42d3d0, #3e77ed); }

.tool-card strong,
.tool-card small {
  display: block;
}

.tool-card strong {
  font-size: 14px;
  line-height: 1.25;
}

.tool-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.soon-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-high) 75%, transparent);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-list {
  display: grid;
  gap: 11px;
}

.work-card {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  min-height: 88px;
  align-items: center;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
}

.work-cover {
  position: relative;
  display: grid;
  width: 66px;
  height: 66px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(157, 132, 255, 0.16);
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.86);
  background:
    radial-gradient(circle at 25% 20%, rgba(174, 129, 255, 0.7), transparent 34%),
    linear-gradient(145deg, #283169, #161d3f 70%);
  font-size: 20px;
  font-weight: 800;
}

.work-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.work-copy strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-copy span {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.work-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.round-action {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-high);
  cursor: pointer;
}

.round-action.primary {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
}

.round-action svg {
  width: 16px;
  fill: currentColor;
}

.work-card.is-video .work-cover::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  padding: 3px 5px;
  border-radius: 6px;
  color: #fff;
  background: rgba(5, 7, 18, 0.75);
  content: "VIDEO";
  font-size: 6px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.skeleton-card {
  height: 88px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: linear-gradient(90deg, var(--surface) 20%, var(--surface-high) 42%, var(--surface) 64%);
  background-size: 250% 100%;
  animation: skeleton 1.45s ease infinite;
}

.skeleton-card.tall {
  height: 96px;
}

@keyframes skeleton {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.empty-card,
.error-card {
  padding: 28px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--surface);
}

.empty-card strong,
.error-card strong {
  display: block;
  font-size: 15px;
}

.empty-card p,
.error-card p {
  margin: 8px auto 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.small-action {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-high);
  font-weight: 700;
}

.page-heading {
  padding: 18px 2px 20px;
}

.page-heading h1 {
  font-size: 32px;
}

.page-heading p {
  max-width: 470px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
  font-weight: 700;
}

.filter-chip.is-active {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}

.create-stack {
  display: grid;
  gap: 11px;
}

.create-feature {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  min-height: 112px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.create-feature.featured {
  border-color: rgba(136, 101, 255, 0.3);
  background: linear-gradient(135deg, rgba(126, 83, 255, 0.15), var(--surface) 52%);
}

.create-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 11px;
  font-weight: 850;
}

.create-feature strong {
  display: block;
  margin-top: 1px;
  font-size: 15px;
}

.create-feature p {
  margin: 7px 0 28px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.feature-status {
  position: absolute;
  right: 16px;
  bottom: 14px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.notice-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 11px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(74, 142, 255, 0.2);
  border-radius: 17px;
  background: rgba(69, 119, 232, 0.08);
}

.notice-card > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-blue);
  background: rgba(76, 141, 255, 0.13);
  font-size: 13px;
  font-weight: 800;
}

.notice-card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.5;
}

.balance-card {
  position: relative;
  min-height: 196px;
  overflow: hidden;
  padding: 27px;
  border: 1px solid rgba(143, 110, 255, 0.27);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(112, 78, 236, 0.3), rgba(27, 36, 78, 0.68)), var(--surface-solid);
  box-shadow: var(--shadow);
}

.balance-label {
  display: block;
  color: rgba(229, 226, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:root[data-theme="light"] .balance-label {
  color: var(--text-soft);
}

.balance-card > strong {
  display: inline-block;
  margin-top: 25px;
  font-size: 52px;
  letter-spacing: -0.05em;
}

.balance-card > small {
  margin-left: 7px;
  color: var(--text-soft);
  font-size: 12px;
}

.balance-glow {
  position: absolute;
  top: -90px;
  right: -50px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 150, 255, 0.32), transparent 68%);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.balance-stats {
  margin-top: 13px;
}

.stat-grid article {
  min-width: 0;
  padding: 15px 12px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.balance-stats span,
.balance-stats small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.balance-stats strong {
  display: block;
  margin: 8px 0 5px;
  font-size: 23px;
}

.disabled-action {
  width: 100%;
  min-height: 52px;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--muted);
  background: var(--surface);
}

.profile-hero {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px 2px 20px;
}

.profile-avatar {
  display: grid;
  width: 74px;
  height: 74px;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(172, 144, 255, 0.33);
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(145deg, #9a6cff, #377eef);
  box-shadow: 0 14px 34px rgba(88, 63, 205, 0.25);
  font-size: 28px;
  font-weight: 850;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hero h1 {
  margin: 6px 0 4px;
  font-size: 25px;
  letter-spacing: -0.03em;
}

.profile-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.profile-stats article {
  text-align: center;
}

.profile-stats strong,
.profile-stats span {
  display: block;
}

.profile-stats strong {
  font-size: 22px;
}

.profile-stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.settings-list {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.settings-list button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  min-height: 70px;
  align-items: center;
  gap: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 17px;
  text-align: left;
  background: var(--surface);
}

.settings-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 11%, transparent);
  font-weight: 800;
}

.settings-list strong,
.settings-list small {
  display: block;
}

.settings-list strong {
  font-size: 13px;
}

.settings-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.settings-list b {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.version-label {
  margin: 20px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(74px + var(--safe-bottom));
  padding: 8px 8px var(--safe-bottom);
  border-top: 1px solid var(--line);
  background: var(--nav-bg);
  box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(20px);
}

.nav-item {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 650;
  cursor: pointer;
}

.nav-item > svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.is-active {
  color: var(--accent);
}

.create-nav {
  overflow: visible;
}

.create-nav-button {
  display: grid;
  width: 47px;
  height: 47px;
  margin-top: -31px;
  place-items: center;
  border: 5px solid var(--nav-bg);
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
  box-shadow: 0 10px 25px rgba(92, 71, 218, 0.35);
}

.create-nav-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.create-nav > span:last-child {
  margin-top: -1px;
}

.player {
  position: fixed;
  z-index: 45;
  right: 10px;
  bottom: calc(80px + var(--safe-bottom));
  left: 10px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 42px 36px 36px;
  min-height: 66px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-solid) 91%, transparent);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(22px);
}

.player-cover,
.player-play,
.player-download,
.player-more {
  display: grid;
  padding: 0;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.player-cover {
  width: 46px;
  height: 46px;
  overflow: hidden;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #9b6aff, #376fdb);
  font-weight: 800;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.player-copy strong,
.player-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-copy strong {
  font-size: 12px;
}

.player-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.player-progress {
  width: 100%;
  height: 3px;
  margin: 7px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.player-play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-blue));
}

.player-play svg {
  width: 19px;
  fill: currentColor;
}

.player .pause-shape,
.player.is-playing .play-shape {
  display: none;
}

.player.is-playing .pause-shape {
  display: block;
}

.player-more {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-soft);
  background: transparent;
  font-size: 20px;
}

.player-download {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--surface-high);
  font-size: 17px;
  font-weight: 750;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 20px;
  bottom: calc(96px + var(--safe-bottom));
  left: 20px;
  max-width: 460px;
  margin: auto;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: var(--text);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fatal-state {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 34px;
  text-align: center;
  background: var(--bg);
}

.fatal-mark {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 23px;
  color: #fff;
  background: linear-gradient(145deg, var(--accent), var(--accent-blue));
  box-shadow: 0 20px 50px rgba(91, 69, 220, 0.3);
  font-size: 29px;
  font-weight: 850;
}

.fatal-state h2 {
  margin: 24px 0 9px;
  font-size: 23px;
}

.fatal-state p {
  max-width: 330px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (min-width: 520px) {
  .topbar {
    padding-right: max(22px, calc((100vw - 760px) / 2));
    padding-left: max(22px, calc((100vw - 760px) / 2));
  }

  .connection-label {
    display: inline;
  }

  .hero-card {
    min-height: 390px;
    padding: 44px 40px;
  }

  .quick-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-card {
    min-height: 170px;
  }

  .bottom-nav,
  .player {
    right: max(0px, calc((100vw - 760px) / 2));
    left: max(0px, calc((100vw - 760px) / 2));
  }

  .bottom-nav {
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
  }

  .player {
    right: max(10px, calc((100vw - 740px) / 2));
    left: max(10px, calc((100vw - 740px) / 2));
  }
}

@media (max-width: 359px) {
  .main-content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-copy small,
  .connection-badge {
    display: none;
  }

  .hero-card {
    padding: 28px 20px;
  }

  .hero-card h1 {
    font-size: 32px;
  }

  .tool-card {
    min-height: 145px;
    padding: 14px;
  }

  .work-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .work-cover {
    width: 58px;
    height: 58px;
  }

  .round-action.secondary-action {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
