:root {
  color-scheme: dark;
  --bg: #0c0b0e;
  --surface: #131115;
  --line: #30252e;
  --pink: #f2abc7;
  --muted: #9a8e99;
  --text: #f5eff3;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  font-size: 14px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 5px;
}
button[hidden],
[hidden] {
  display: none !important;
}
.rail {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 38px 22px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: #100d12;
  z-index: 10;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}
.wordmark img {
  width: 30px;
  height: 34px;
  object-fit: contain;
}
.wordmark span {
  font-size: 12px;
  color: var(--muted);
  align-self: start;
  margin-top: 5px;
}
.rail-label {
  margin: 58px 12px 18px;
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #806e7c;
}
.rail nav {
  display: grid;
  gap: 8px;
}
.rail nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  color: #b2a4af;
  font-size: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}
.rail nav a img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  opacity: 0.75;
}
.rail nav a:hover {
  background: #211820;
  color: var(--text);
}
.rail nav .selected {
  background: #291c27;
  border-color: #624052;
  color: #f3bad1;
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: var(--pink);
  border-radius: 50%;
}
.rail-bottom {
  margin-top: auto;
  padding: 32px 12px 0;
}
.small-flower {
  color: var(--pink);
  font-size: 32px;
}
.rail-bottom p {
  color: #b8a6b4;
  font-size: 12px;
}
.rail-bottom a {
  color: #857581;
  font-size: 10px;
}
.quiet {
  border: 0;
  background: none;
  color: #a999a5;
  padding: 8px 0;
}
.rail-bottom button {
  margin-top: 28px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.workspace {
  margin-left: 224px;
}
header {
  height: 88px;
  padding: 0 44px;
  border-bottom: 1px solid #221c24;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 14px;
  color: #584452;
}
.breadcrumb strong {
  font-weight: 400;
  color: #d7cbd4;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-right button {
  font-size: 11px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #674657;
  background: #30212d;
  border-radius: 50%;
  font-size: 12px;
  color: var(--pink);
}
main {
  max-width: 1500px;
  padding: 38px 44px 0;
  margin: auto;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #ad849a;
}
h1 {
  font-size: clamp(24px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -1.3px;
  margin: 10px 0;
}
h2 {
  font-weight: 500;
  letter-spacing: -0.8px;
}
.pink {
  color: var(--pink);
}
.page-title p {
  color: var(--muted);
  font-size: 12px;
  margin: 12px 0 0;
}
.date {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
}
.launcher {
  position: relative;
  overflow: hidden;
  border: 1px solid #553244;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 88% 42%, #4a253c70, transparent 58%),
    linear-gradient(115deg, #21131e, #171119);
  min-height: 365px;
  padding: 26px 30px;
}
.launcher-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  position: relative;
  z-index: 2;
}
.pill {
  font-size: 8px;
  letter-spacing: 1px;
  color: #bfc5bc;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #98ccad;
}
.version {
  font-size: 10px;
  color: #bd8da6;
  border: 1px solid #674055;
  padding: 5px 8px;
  border-radius: 4px;
}
.launcher-copy {
  position: relative;
  z-index: 2;
  margin-top: 43px;
}
.launcher-copy h2 {
  font-size: clamp(27px, 3vw, 43px);
  line-height: 1.12;
  margin: 14px 0;
}
.launcher-copy p {
  color: #b19caa;
  font-size: 11px;
}
.primary,
.outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 7px;
  background: #120d12;
  color: #f9e5ee;
  border: 1px solid var(--pink);
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.primary {
  margin-top: 16px;
  position: relative;
}
.primary:hover {
  background: #2d1a27;
  box-shadow: 0 0 20px #f2abc730;
}
.primary:hover::after {
  content: "✧";
  position: absolute;
  right: -10px;
  top: -15px;
  color: var(--pink);
  animation: spark 0.7s ease-out both;
}
.primary img,
.outline img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.primary span,
.outline span {
  margin-left: auto;
}
.download-caption {
  display: block;
  color: #887381;
  font-size: 9px;
  margin-top: 12px;
}
.launcher-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #76596b;
  border-top: 1px solid #ffffff0a;
  padding-top: 17px;
  margin-top: 28px;
}
.hero-art {
  position: absolute;
  right: 0;
  top: 48px;
  width: 42%;
  height: 260px;
  opacity: 0.8;
  pointer-events: none;
}
.hero-art > img {
  position: absolute;
  width: 104px;
  height: 128px;
  object-fit: contain;
  left: 50%;
  top: 49%;
  transform: translate(-50%, -50%) rotate(-9deg);
  filter: drop-shadow(0 0 32px #f2abc74a);
}
.orbit {
  position: absolute;
  width: 225px;
  height: 225px;
  border: 1px solid #b9658b25;
  border-radius: 50%;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
}
.orbit-two {
  width: 175px;
  height: 175px;
  top: 40px;
  border-style: dashed;
  animation: orbit 65s linear infinite;
}
.art-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  letter-spacing: 5px;
  font-size: 8px;
  color: #a7728e;
  white-space: nowrap;
}
.spark {
  position: absolute;
  color: var(--pink);
  font-size: 27px;
}
.s1 {
  right: 12%;
  top: 24px;
}
.s2 {
  left: 13%;
  bottom: 35px;
  font-size: 16px;
}
.license {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  background: var(--surface);
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.section-top img {
  width: 15px;
  height: 15px;
  opacity: 0.5;
}
.license-symbol {
  font-size: 43px;
  color: var(--pink);
  margin-top: 22px;
}
.license h2 {
  font-size: 23px;
  margin: 10px 0;
}
.status {
  font-size: 10px;
  color: #96c9ac;
}
.status.error {
  color: #e696a9;
}
.license dl {
  margin: 27px 0 23px;
  font-size: 10px;
}
.license dl div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid #282029;
}
.license dt {
  color: var(--muted);
}
.license dd {
  margin: 0;
  text-align: right;
}
.outline {
  border-color: #503844;
  background: transparent;
  color: #cbb8c5;
}
.outline:hover {
  background: #251b24;
  border-color: #906079;
}
.full {
  width: 100%;
}
.text-button {
  display: block;
  background: none;
  border: 0;
  color: #8e7888;
  font-size: 9px;
  margin: 15px auto 0;
}
.inline-note {
  font-size: 11px;
  color: #bba9b6;
  line-height: 1.6;
}
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 22px;
  margin-top: 32px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.section-heading h2 {
  font-size: 25px;
  margin: 8px 0 22px;
}
.tabs {
  display: flex;
  gap: 16px;
  align-self: center;
}
.tabs button {
  background: none;
  color: #8f7b8a;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 8px 0;
  font-size: 10px;
}
.tabs [aria-selected="true"] {
  color: #f3bad1;
  border-color: #f3bad1;
}
.feed-item {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
}
.feed-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: #241923;
  color: #ba90a8;
  border-radius: 8px;
}
.feed-item h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 3px 0 9px;
}
.feed-item p {
  font-size: 12px;
  line-height: 1.7;
  color: #a394a0;
  white-space: pre-wrap;
  margin: 0;
}
.feed-item small {
  display: block;
  color: #806e7c;
  font-size: 9px;
  margin-top: 12px;
}
.empty {
  padding: 32px 24px;
  border: 1px dashed #47303e;
  border-radius: 10px;
  background: #131015;
}
.empty span {
  color: #c18aa6;
  font-size: 22px;
}
.empty h3 {
  font-size: 15px;
  font-weight: 400;
}
.empty p {
  color: #95818f;
  font-size: 12px;
  line-height: 1.7;
}
.support {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(140deg, #1d141e, #131115);
}
.support h2 {
  font-size: 27px;
  line-height: 1.15;
  margin: 14px 0;
}
.support > p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.support .outline {
  margin: 12px 0 18px;
}
details {
  border-top: 1px solid #352532;
  padding: 12px 0;
}
summary {
  font-size: 10px;
  color: #b9a4b3;
  cursor: pointer;
}
details p,
details a {
  font-size: 11px;
  line-height: 1.7;
  color: #a592a0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  margin-top: 38px;
  border-top: 1px solid #272029;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: #877380;
}
footer div {
  display: flex;
  gap: 20px;
}
.muted {
  color: #655763;
}
.notice {
  padding: 15px;
  border: 1px solid #a5814b;
  background: #302514;
  color: #e6cb9f;
  margin-bottom: 24px;
  border-radius: 8px;
}
#feedback {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  padding: 16px 22px;
  background: #231923;
  border: 1px solid #90617b;
  border-radius: 10px;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  color: #ebd4e2;
  font-size: 12px;
}
#feedback.show {
  opacity: 1;
}
@keyframes orbit {
  to {
    transform: translateX(-50%) rotate(360deg);
  }
}
@keyframes spark {
  to {
    transform: translate(12px, -14px);
    opacity: 0;
  }
}
body.motion-off * {
  animation: none !important;
  scroll-behavior: auto !important;
}
@media (min-width: 1350px) {
  .launcher-copy {
    margin-top: 48px;
  }
  .hero-art {
    right: 15px;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 190px;
    padding: 28px 15px;
  }
  .workspace {
    margin-left: 190px;
  }
  header {
    padding: 0 26px;
  }
  main {
    padding: 28px 26px 0;
  }
  .overview-grid,
  .lower-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .hero-art {
    opacity: 0.27;
  }
  .launcher-copy {
    margin-top: 35px;
  }
  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 0;
  }
  .tabs {
    align-self: start;
    margin-bottom: 20px;
  }
}
@media (max-width: 850px) {
  .rail {
    width: 76px;
    padding: 25px 12px;
  }
  .wordmark {
    justify-content: center;
    font-size: 0;
  }
  .wordmark span,
  .rail-label,
  .rail-bottom,
  .rail nav a .nav-dot {
    display: none;
  }
  .wordmark img {
    width: 30px;
  }
  .rail nav {
    margin-top: 35px;
  }
  .rail nav a {
    font-size: 0;
    padding: 14px;
    gap: 0;
  }
  .rail nav a img {
    width: 20px;
    height: 20px;
  }
  .workspace {
    margin-left: 76px;
  }
  .overview-grid,
  .lower-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    opacity: 0.75;
    width: 40%;
  }
  .license {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
  }
  .license .section-top {
    grid-column: 1/-1;
  }
  .license-symbol {
    display: none;
  }
  .license dl {
    grid-row: 2/5;
    grid-column: 2;
    margin: 0;
  }
  .license .text-button {
    margin: 4px 0;
    text-align: left;
  }
  .license .inline-note {
    grid-column: 1/-1;
  }
  .date {
    display: none;
  }
  .support h2 br {
    display: none;
  }
  .section-heading {
    flex-direction: row;
  }
  .tabs {
    align-self: center;
  }
  .rail nav a {
    position: relative;
  }
}
@media (max-width: 520px) {
  .rail {
    width: 60px;
    padding: 24px 6px;
  }
  .workspace {
    margin-left: 60px;
  }
  header {
    height: 66px;
    padding: 0 18px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .breadcrumb span {
    margin: 0 7px;
  }
  .header-right {
    gap: 10px;
  }
  .header-right button {
    font-size: 9px;
  }
  .avatar {
    width: 28px;
    height: 28px;
  }
  main {
    padding: 26px 16px 0;
  }
  h1 {
    font-size: 27px;
    line-height: 1.2;
  }
  .page-title {
    margin-bottom: 24px;
  }
  .page-title p {
    font-size: 11px;
    line-height: 1.6;
  }
  .launcher {
    padding: 22px 20px;
  }
  .hero-art {
    opacity: 0.22;
    width: 60%;
    right: -15px;
  }
  .launcher-copy h2 {
    font-size: 31px;
  }
  .launcher-footer {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .license {
    display: block;
    padding: 22px;
  }
  .license dl {
    margin: 15px 0;
  }
  .license h2 {
    margin-top: 22px;
  }
  .license .text-button {
    margin: 14px auto 0;
  }
  .section-heading {
    display: block;
  }
  .tabs {
    margin-bottom: 18px;
  }
  .support {
    padding: 22px;
  }
  footer {
    flex-direction: column;
    line-height: 1.8;
  }
  .rail nav a {
    padding: 14px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Monochrome source icons need tinting against the dark surfaces. */
.rail nav a img,
.primary img,
.section-top img {
  filter: brightness(0) saturate(100%) invert(80%) sepia(16%) saturate(650%) hue-rotate(290deg);
  opacity: 0.85;
}
@media (max-width: 850px) {
  .rail-bottom {
    display: block;
    padding: 0;
  }
  .rail-bottom :is(.small-flower, p, a) {
    display: none;
  }
  .rail-bottom button {
    font-size: 0;
    justify-content: center;
    padding: 18px 0;
  }
  .rail-bottom button span {
    font-size: 22px;
  }
  .support h2 br::after {
    content: " ";
  }
}

/* The classic Tsumi atmosphere, with the new dashboard layout. */
body {
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(rgba(8, 4, 8, 0.76), rgba(8, 4, 8, 0.91)),
    url("./tsumi_banner.png") center/cover fixed;
}
.workspace {
  position: relative;
  z-index: 1;
}
.rail {
  background: rgba(16, 10, 18, 0.94);
  border-color: #583043;
  backdrop-filter: blur(18px);
}
.workspace > header {
  background: rgba(14, 9, 17, 0.82);
  border-color: #48303d;
  backdrop-filter: blur(16px);
}
.tsumi-petals {
  opacity: 0.32;
}
.license,
.empty {
  background: rgba(20, 13, 22, 0.92);
}
.support {
  background: linear-gradient(140deg, rgba(38, 20, 34, 0.95), rgba(19, 13, 22, 0.94));
}
.launcher {
  background:
    radial-gradient(ellipse at 88% 42%, #6b305050, transparent 58%),
    linear-gradient(115deg, rgba(38, 18, 32, 0.96), rgba(23, 14, 25, 0.94));
  box-shadow: 0 18px 55px #0003;
}
.license,
.support,
.launcher {
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.license:hover,
.support:hover {
  border-color: #765064;
}
.rail nav .selected {
  --button-border: #f3a1bc;
  --button-bg: #301b28;
  --button-fg: #f3bad1;
}
.quiet,
.text-button {
  border-radius: 7px;
  padding: 8px 12px;
}
.tabs button {
  border-radius: 7px;
  padding: 9px 12px;
}
.tabs {
  gap: 8px;
}
.tabs [aria-selected="true"] {
  --button-border: #f3a1bc;
  --button-bg: #291924;
}
.rail-bottom button {
  padding: 12px;
  margin-top: 22px;
}
.primary:hover::after {
  content: "";
  animation: tsumi-button-petal-right 0.9s ease-out 0.1s;
}
body.motion-off *,
body.motion-off *::before,
body.motion-off *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
body.motion-off .tsumi-petals {
  display: none;
}
body {
  --role-color: #d9a8ff;
  --role-soft: rgba(176, 104, 255, 0.4);
}
body[data-tsumi-role="owner"] {
  --role-color: #ffd166;
  --role-soft: rgba(255, 209, 102, 0.48);
}
body[data-tsumi-role="admin"] {
  --role-color: #ff4d5e;
  --role-soft: rgba(255, 38, 58, 0.52);
}
body[data-tsumi-role="support"] {
  --role-color: #70d9ff;
  --role-soft: rgba(63, 194, 255, 0.46);
}
body[data-tsumi-role="reseller_manager"] {
  --role-color: #76efb5;
  --role-soft: rgba(71, 226, 153, 0.44);
}
#username,
#header-username {
  color: var(--role-color);
  text-shadow:
    0 0 12px var(--role-soft),
    0 0 26px var(--role-soft);
}
.profile-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 7px 10px;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.profile-identity strong {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
  padding: 5px 9px;
  border: 1px solid var(--role-color);
  border-radius: 6px;
  color: var(--role-color);
  background: #100b10;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.8px;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 0 14px var(--role-soft);
}
body[data-tsumi-role="owner"] .role-badge::before {
  content: "♛";
  font-size: 12px;
}
.page-title .role-badge {
  margin-left: 5px;
  letter-spacing: 0.6px;
}
.page-title h1 {
  overflow-wrap: anywhere;
}
.avatar {
  flex-shrink: 0;
  border-color: var(--role-color);
  color: var(--role-color);
  box-shadow: 0 0 15px var(--role-soft);
}
.download-dialog {
  position: fixed;
  inset: 0;
  overflow: visible;
  width: min(490px, calc(100vw - 72px));
  max-height: calc(100dvh - 130px);
  padding: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: var(--text);
}
.download-dialog::backdrop {
  background: rgba(6, 3, 9, 0.74);
  backdrop-filter: blur(7px);
}
.download-popup {
  position: relative;
  max-height: calc(100dvh - 130px);
  overflow-y: auto;
  padding: 32px 34px 25px;
  border: 1px solid #b36b8c;
  border-radius: 18px;
  background: radial-gradient(ellipse at 100% 100%, #71365155, transparent 65%), #1a101b;
  box-shadow:
    0 25px 100px #0009,
    0 0 55px #c65c8422;
}
.popup-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: transparent;
  color: var(--pink);
  font-size: 23px;
  line-height: 1;
}
.popup-icon {
  display: grid;
  place-items: center;
  margin-top: 26px;
  width: 48px;
  height: 48px;
  border: 1px solid #674055;
  border-radius: 13px;
  background: #2a1725;
}
.popup-icon img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(80%) sepia(16%) saturate(650%) hue-rotate(290deg);
}
.download-popup h2 {
  font-size: 29px;
  line-height: 1.15;
  margin: 20px 0 13px;
  max-width: 330px;
}
.download-popup > p {
  max-width: 340px;
  font-size: 13px;
  line-height: 1.7;
  color: #c5afbe;
  margin: 0 0 23px;
}
.popup-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-right: 70px;
}
.popup-actions .primary {
  margin: 0;
}
.popup-footer {
  display: flex;
  gap: 15px;
  margin-top: 28px;
  padding-top: 16px;
  padding-right: 100px;
  border-top: 1px solid #63405066;
  color: #ab839a;
  font-size: 8px;
  letter-spacing: 1px;
}
.popup-girl {
  position: absolute;
  right: -40px;
  bottom: -49px;
  width: 190px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 15px #0007);
}
@media (max-width: 850px) {
  .profile-identity {
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
  }
  .header-right {
    gap: 16px;
  }
}
@media (max-width: 520px) {
  .workspace > header {
    height: auto;
    min-height: 76px;
    padding: 12px 14px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .breadcrumb {
    display: none;
  }
  .header-right {
    width: 100%;
    justify-content: space-between;
  }
  .profile-identity strong {
    max-width: 105px;
  }
  .role-badge {
    font-size: 8px;
    padding: 4px 6px;
  }
  .page-title .role-badge {
    margin-left: 0;
  }
  .tabs {
    flex-wrap: wrap;
  }
  .tabs button {
    font-size: 9px;
  }
  .download-popup {
    padding: 28px 22px 23px;
  }
  .download-popup h2 {
    font-size: 25px;
  }
  .popup-girl {
    width: 135px;
    right: -23px;
    bottom: -35px;
  }
  .popup-actions {
    padding-right: 100px;
  }
  .popup-footer {
    padding-right: 65px;
    font-size: 7px;
  }
  .download-popup > p {
    font-size: 12px;
  }
}
/* Shared workspace status, membership activation and the extended help center. */
.system-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9ed6b4;
  white-space: nowrap;
}
.system-status i {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px #96d8b160;
}
.system-status.is-paused {
  color: #e8c384;
}
.header-right {
  gap: 18px;
}
.next-panel {
  padding: 28px;
  border: 1px solid #503342;
  border-radius: 14px;
  background: rgba(22, 14, 24, 0.94);
  min-width: 0;
}
.next-panel h2 {
  font-size: 27px;
  margin: 11px 0 16px;
}
.next-panel > p,
.reseller-heading p {
  font-size: 12px;
  line-height: 1.7;
  color: #b49dab;
}
input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #684155;
  border-radius: 8px;
  color: #fff1f7;
  background: #100b11;
  font: inherit;
  font-size: 12px;
  outline: none;
}
input::placeholder {
  color: #917786;
}
input:focus-visible {
  border-color: #f3a1bc;
  box-shadow: 0 0 0 3px #f3a1bc18;
}
.license-activation {
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid #4b2e40;
  scroll-margin-top: 24px;
}
.license-activation label {
  font-size: 13px;
  font-weight: 700;
  color: #efd4e3;
}
.license-activation > p {
  font-size: 10px;
  color: #a88c9f;
  line-height: 1.7;
  margin: 8px 0 12px;
}
.license-activation .primary {
  margin-top: 10px;
}
.license-activation #license-message {
  margin: 12px 0 0;
  font-size: 10px;
}
.license {
  align-content: start;
}
.support-note {
  font-size: 11px;
  line-height: 1.7;
  color: #ad94a5;
}
.help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  margin-top: 30px;
  align-items: start;
}
.error-helper {
  scroll-margin-top: 24px;
}
.error-helper label {
  display: block;
  font-size: 12px;
  margin: 22px 0 10px;
  color: #ead0df;
}
.error-examples {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 24px;
}
.error-examples button {
  border-radius: 6px;
  padding: 7px 9px;
  font-size: 9px;
}
.error-result {
  padding: 21px;
  border: 1px solid #503342;
  border-radius: 10px;
  background: #100b1180;
  min-height: 140px;
}
.error-result h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
  margin: 12px 0;
}
.error-result p,
.error-result li {
  font-size: 12px;
  line-height: 1.8;
  color: #c0a6b6;
}
.error-result ol {
  padding-left: 20px;
  margin-bottom: 0;
}
.error-code {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  color: #f3a1bc;
  padding: 5px 8px;
  border: 1px solid #714659;
  border-radius: 5px;
}
.faq details {
  padding: 17px 0;
}
.faq summary {
  font-size: 12px;
  line-height: 1.5;
}
.faq details p {
  font-size: 12px;
  line-height: 1.8;
  color: #b8a0af;
}
.faq details a {
  color: #f3a1bc;
  font-size: 11px;
}
.faq details[open] summary {
  color: #f3a1bc;
}
.faq details:last-child {
  padding-bottom: 0;
}
.reseller-section {
  margin-top: 30px;
  scroll-margin-top: 24px;
}
.reseller-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.reseller-heading .outline {
  flex-shrink: 0;
}
.next-reseller-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.next-reseller-grid:not(:empty) {
  margin-top: 22px;
}
.next-reseller {
  padding: 21px;
  border: 1px solid #4c3040;
  border-radius: 10px;
  background: #1a101b;
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
}
.next-reseller h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.next-reseller p {
  font-size: 12px;
  line-height: 1.7;
  color: #ad93a4;
  overflow-wrap: anywhere;
}
.next-reseller .reseller-price {
  color: #f3a1bc;
}
.next-reseller a {
  margin-top: auto;
}
.purchase-note {
  margin: 24px 0 0 !important;
  padding-top: 18px;
  border-top: 1px solid #4c3040;
  font-size: 10px !important;
  color: #a88c9f !important;
}
@media (max-width: 1100px) {
  .header-right {
    gap: 12px;
  }
  .system-status {
    font-size: 9px;
  }
  .help-grid {
    grid-template-columns: 1fr;
  }
  .reseller-heading {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 850px) {
  .license-activation {
    grid-column: 1/-1;
  }
  .next-reseller-grid {
    grid-template-columns: 1fr;
  }
  .system-status {
    font-size: 10px;
  }
}
@media (max-width: 520px) {
  .header-right {
    flex-wrap: wrap;
  }
  .system-status {
    order: 3;
    flex-basis: 100%;
    padding-top: 5px;
  }
  .next-panel {
    padding: 21px;
  }
  .next-panel h2 {
    font-size: 24px;
  }
  .error-result {
    padding: 16px;
  }
}
.launcher {
  display: flex;
  flex-direction: column;
}
.launcher-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.launcher .hero-art {
  top: 50%;
  transform: translateY(-50%);
}
.launcher-footer {
  flex-shrink: 0;
}
.license-activation .full {
  width: 100%;
}
/* One pink icon palette. Discord's source tile is removed by its inline SVG filter. */
.workspace-icon-defs {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
}
.rail nav a img,
.primary img,
.outline img,
.section-top img {
  filter: url(#workspace-pink) !important;
  opacity: 0.9;
}
img[src$="/discord_logo.png"] {
  filter: none !important;
  opacity: 0.9;
}
@media (min-width: 1101px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) minmax(350px, 0.6fr);
  }
  .launcher-copy h2 {
    font-size: clamp(27px, 2.6vw, 37px);
  }
  .launcher-copy {
    max-width: 65%;
  }
  .launcher .hero-art {
    width: 35%;
    opacity: 0.65;
  }
  .license {
    padding: 28px 30px;
  }
  .license-activation input {
    min-height: 47px;
    font-size: 13px;
  }
}
@media (min-width: 851px) and (max-width: 1100px) {
  .overview-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .launcher-copy h2 {
    font-size: 30px;
  }
  .launcher .hero-art {
    opacity: 0.2;
  }
}

/* Compact license identity: name on the left, artwork on the right. */
.license .license-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  grid-column: 1 / -1;
}
.license .license-heading h2 {
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
}
.license .license-heading .license-symbol {
  flex: 0 0 64px;
  margin: 0;
}
.license .license-heading .membership-logo {
  width: 64px;
  height: 64px;
}
@keyframes dashboard-card-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-off)
    :is(
      .overview-grid > section,
      .additional-downloads,
      .lower-grid > section,
      .help-grid > article
    ) {
    animation: dashboard-card-in 650ms ease-out both;
  }
  body:not(.motion-off) .overview-grid > section:nth-child(2) {
    animation-delay: 80ms;
  }
  body:not(.motion-off) .additional-downloads {
    animation-delay: 140ms;
  }
  body:not(.motion-off) .lower-grid > section {
    animation-delay: 200ms;
  }
  body:not(.motion-off) .help-grid > article {
    animation-delay: 260ms;
  }
}

/* Keep the overview focused; secondary tools live in sidebar views. */
.dashboard-view[hidden] {
  display: none !important;
}
.dashboard-view {
  display: grid;
  gap: 24px;
}
.dashboard-view > .support {
  max-width: none;
}
.dashboard-view > .updates {
  min-height: 280px;
}
.license-disclosure {
  margin-top: 20px;
  grid-column: 1 / -1;
}
.license-disclosure summary {
  cursor: pointer;
  color: var(--pink);
  font-size: 12px;
  padding: 12px 0;
}
.license-disclosure summary:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}
.license-disclosure .license-activation {
  margin-top: 0;
}
.dashboard-view .overview-grid {
  margin-bottom: 0;
}
.dashboard-view .launcher {
  min-height: 340px;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-off) .dashboard-view > .updates,
  body:not(.motion-off) .dashboard-view > .support {
    animation: dashboard-card-in 650ms ease-out both;
  }
}

/* Two balanced pages, with related resources sharing a row. */
.dashboard-view-resources {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: start;
}
.dashboard-view-resources > .help-grid,
.dashboard-view-resources > .reseller-section {
  grid-column: 1 / -1;
}
@media (max-width: 1000px) {
  .dashboard-view-resources {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Matching surfaces and a single spacing rhythm across the resource page. */
.dashboard-view-resources {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}
.dashboard-view-resources > .additional-downloads,
.dashboard-view-resources > .support,
.dashboard-view-resources > .help-grid,
.dashboard-view-resources > .reseller-section {
  margin: 0;
}
.dashboard-view-resources .help-grid {
  gap: 24px;
}
.dashboard-view-resources .next-panel,
.dashboard-view-resources > .support {
  padding: 28px;
  border: 1px solid #503342;
  border-radius: 14px;
  background: rgba(22, 14, 24, 0.94);
  box-shadow: none;
}
.dashboard-view-resources > .support h2,
.dashboard-view-resources .additional-downloads-heading h2 {
  font-size: 27px;
  line-height: 1.2;
  margin: 12px 0 16px;
}
.dashboard-view-resources > .support h2 br {
  display: none;
}
.dashboard-view-resources > .support h2 br::after {
  content: " ";
}
.dashboard-view-resources > .support > p {
  margin: 0 0 20px;
}
.dashboard-view-resources > .support .outline {
  margin: 0 0 12px;
}
.dashboard-view-resources > .support .support-note {
  margin: 8px 0 0;
}
.dashboard-view-resources .additional-downloads-grid {
  grid-template-columns: minmax(0, 1fr);
}
.overview-help {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid #9a607d;
  border-radius: 999px;
  background: #281624;
  color: #fff1f7;
  box-shadow: 0 8px 28px #0005;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.overview-help[hidden] {
  display: none;
}
.overview-help img {
  width: 23px;
  height: 23px;
  object-fit: contain;
}
.overview-help:hover {
  background: #3a2032;
  border-color: #f3a1bc;
}
.overview-help:focus-visible {
  outline: 2px solid #f3a1bc;
  outline-offset: 4px;
}
.dashboard-view-overview ~ footer {
  padding-bottom: 88px;
}
@media (max-width: 1000px) {
  .dashboard-view-resources {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 520px) {
  .dashboard-view-resources .next-panel,
  .dashboard-view-resources > .support {
    padding: 22px;
  }
  .overview-help {
    right: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
  }
}

.announcement-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
}

.dashboard-view-resources > .tutorial-panel {
  grid-column: 1 / -1;
  margin: 0;
}
.tutorial-video {
  width: min(100%, 880px);
  aspect-ratio: 16 / 9;
  margin: 20px auto 0;
  overflow: hidden;
  border-radius: 10px;
  background: #100b12;
}
.tutorial-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.announcement-icon { filter: url(#workspace-pink); opacity: 1; }
