:root {
  --accent: #967dff;
  --accent-soft: rgba(150, 125, 255, 0.16);
  --on-accent: #0d0b1a;

  --backdrop: rgb(8, 10, 14);
  --background: rgb(25, 28, 37);
  --surface: rgb(34, 38, 49);
  --surface-hover: rgb(44, 48, 63);
  --header: rgb(29, 32, 42);
  --border: rgb(57, 60, 77);
  --text: rgb(236, 237, 243);
  --text-2: rgb(184, 188, 204);
  --muted: rgb(132, 137, 158);

  --window: rgba(25, 28, 37, 0.62);
  --pane: rgba(25, 28, 37, 0.5);
  --sidebar-glass: rgba(21, 24, 32, 0.66);
  --floating: rgba(25, 28, 37, 0.86);
  --raised: rgba(34, 38, 49, 0.55);
  --hairline: rgba(255, 255, 255, 0.08);
  --overlay-hover: rgba(255, 255, 255, 0.05);
  --overlay-active: rgba(255, 255, 255, 0.075);

  --green: #5ad19a;
  --amber: #f0b45a;
  --red: #f0697a;

  --radius: 8px;
  --card-radius: 10px;
  --window-radius: 14px;
  --blur: 40px;
  --sidebar: 220px;
  --topbar: 52px;

  --pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='90' height='46'><g font-size='36' font-family='Yu Gothic, Meiryo, MS Gothic, Noto Sans CJK JP, sans-serif' font-weight='700' fill='white'><text x='0' y='36'>%E6%AD%BB</text><text x='45' y='36'>%E3%81%AD</text></g></svg>");

  --spring: linear(0, 0.028, 0.097, 0.189, 0.291, 0.394, 0.492, 0.582, 0.662, 0.731, 0.79, 0.838, 0.878, 0.911, 0.936, 0.956, 0.971, 0.982, 0.99, 0.996, 1, 1.003, 1.004, 1.005, 1.005, 1.005, 1.005, 1.004, 1.004, 1.003, 1.003, 1.002, 1);
  --spring-duration: 390ms;
  --spring-snappy: linear(0, 0.016, 0.056, 0.112, 0.179, 0.251, 0.324, 0.396, 0.466, 0.531, 0.592, 0.647, 0.697, 0.742, 0.781, 0.816, 0.846, 0.872, 0.895, 0.914, 0.93, 0.944, 0.955, 0.965, 0.973, 0.979, 0.984, 0.988, 0.992, 0.994, 0.996, 0.998, 1);
  --spring-snappy-duration: 190ms;
  --spring-press: linear(0, 0.027, 0.094, 0.185, 0.289, 0.396, 0.5, 0.596, 0.683, 0.759, 0.823, 0.876, 0.918, 0.952, 0.977, 0.996, 1.009, 1.018, 1.023, 1.025, 1.025, 1.024, 1.022, 1.02, 1.017, 1.015, 1.012, 1.01, 1.007, 1.006, 1.004, 1.003, 1);
  --spring-press-duration: 300ms;
  --spring-glide: linear(0, 0.016, 0.057, 0.114, 0.182, 0.255, 0.329, 0.402, 0.472, 0.538, 0.599, 0.654, 0.704, 0.748, 0.788, 0.822, 0.852, 0.877, 0.899, 0.918, 0.934, 0.947, 0.958, 0.967, 0.975, 0.981, 0.986, 0.989, 0.993, 0.995, 0.997, 0.998, 1);
  --spring-glide-duration: 250ms;
  --press-in: 80ms cubic-bezier(0.2, 0, 0, 1);
  --exit: 90ms cubic-bezier(0.4, 0, 1, 1);

  color-scheme: dark;
  accent-color: var(--accent);
  caret-color: var(--accent);
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  scrollbar-width: thin;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

::selection {
  background: rgba(150, 125, 255, 0.35);
  color: var(--text);
}

html,
body {
  height: 100%;
}

body {
  display: grid;
  min-height: 100svh;
  padding: 16px;
  background: linear-gradient(135deg, rgb(14, 16, 22), var(--backdrop) 65%) fixed;
  color: var(--text);
  font: 400 13px/1.45 "Instrument Sans", system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 220vmax;
  height: 220vmax;
  background-image: var(--pattern);
  background-size: 90px 46px;
  opacity: 0.026;
  transform: translate(-50%, -50%) rotate(-25deg);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: url("noise.png") 0 0 / 128px 128px;
  opacity: 0.07;
  mix-blend-mode: overlay;
}

body.centered {
  place-items: center;
}

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

img {
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

ul {
  padding: 0;
  list-style: none;
}

.icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.num {
  font-variant-numeric: tabular-nums;
}

.brand-logo,
.sign-in-logo {
  user-select: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.glass,
.sidebar,
.main {
  position: relative;
  isolation: isolate;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("noise.png") 0 0 / 128px 128px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.glass {
  overflow: hidden;
  background: var(--window);
  border: 1px solid var(--hairline);
  border-radius: var(--window-radius);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 48px rgba(0, 0, 0, 0.5);
}

body.app::before {
  content: none;
}

body.app::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 80% at 10% 5%, rgba(150, 125, 255, 0.09), transparent 55%),
    radial-gradient(ellipse 80% 70% at 100% 105%, rgba(150, 125, 255, 0.055), transparent 50%);
}

.kanji-bg {
  position: fixed;
  z-index: 29;
  pointer-events: none;
  top: 50%;
  left: 50%;
  width: 220vmax;
  height: 220vmax;
  background-image: var(--pattern);
  background-size: 90px 46px;
  opacity: 0.026;
  transform: translate(-50%, -50%) rotate(-25deg);
}

.mascot-bg {
  position: fixed;
  right: -4%;
  bottom: -6%;
  width: 62vh;
  height: 62vh;
  background: url("mascot.png") center / contain no-repeat;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.055;
  pointer-events: none;
  z-index: 29;
}


body.app {
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  height: 100svh;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
}

body.app .kanji-bg,
body.app .mascot-bg,
body.app .grain {
  z-index: -1;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 14px 10px 10px;
  background: var(--sidebar-glass);
  border-right: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 0;
  border-radius: var(--radius);
}

.brand-mark {
  flex: none;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav {
  flex: 1;
  min-height: 0;
  margin-top: 10px;
  overflow-y: auto;
}

.nav-heading {
  padding: 16px 10px 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-2);
  font-weight: 400;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item .icon {
  color: var(--muted);
  transition: color 160ms ease;
}

a.nav-item:hover {
  background: var(--overlay-hover);
  color: var(--text);
}

a.nav-item:hover .icon,
.nav-item.is-active .icon {
  color: var(--text);
}

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

.nav-pill {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid var(--hairline);
  border-radius: inherit;
  background: var(--overlay-active);
  pointer-events: none;
}

.nav-item.is-soon {
  color: var(--muted);
  cursor: default;
}

.nav-item.is-soon .icon {
  opacity: 0.6;
}

.nav-label {
  flex: 1;
  min-width: 0;
}

.soon {
  color: var(--muted);
  font-size: 11px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px -10px -10px;
  padding: 12px 14px;
  border-top: 1px solid var(--hairline);
}

.profile-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.profile-name {
  overflow: hidden;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-role {
  color: var(--muted);
  font-size: 12px;
}

.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--hairline);
}

.avatar-large {
  width: 56px;
  height: 56px;
}

.avatar-empty {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 400;
}

.avatar-large.avatar-empty {
  font-size: 22px;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform var(--spring-press-duration) var(--spring-press);
}

.icon-button:hover {
  background: var(--overlay-active);
  color: var(--text);
}

.icon-button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.icon-button:disabled:hover {
  background: rgba(255, 255, 255, 0.03);
}

.icon-button:active:not(:disabled) {
  transform: scale(0.92);
  transition-timing-function: ease, ease, cubic-bezier(0.2, 0, 0, 1);
  transition-duration: 160ms, 160ms, 80ms;
}

.main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: var(--pane);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  overflow-y: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: var(--topbar);
  padding: 0 20px;
  border-bottom: 1px solid var(--hairline);
  background: rgba(25, 28, 37, 0.72);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
}

.topbar-icon {
  color: var(--text-2);
}

.topbar-title {
  font-size: 14px;
  font-weight: 400;
}

.menu-button {
  display: none;
}

.content {
  flex: 1;
  padding: 16px;
}

.scrim {
  display: none;
}

.columns {
  columns: 2 420px;
  column-gap: 12px;
}

.columns > .slot {
  break-inside: avoid;
  margin-bottom: 12px;
}

.card {
  border-radius: var(--card-radius);
}

.content .card {
  position: relative;
  isolation: isolate;
  background: rgba(34, 38, 49, 0.30);
  border: 1px solid var(--hairline);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
}

.content .card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("noise.png") 0 0 / 128px 128px;
  opacity: 0.04;
  mix-blend-mode: overlay;
  pointer-events: none;
  border-radius: inherit;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 40px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hairline);
}

.card-title {
  font-size: 13px;
  font-weight: 400;
}

.card-meta {
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 6px;
}

.identity-name {
  overflow: hidden;
  font-size: 16px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rows {
  padding: 4px 14px 10px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.row dt {
  color: var(--text-2);
}

.row dd {
  font-weight: 400;
}

.products {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.product:hover {
  background: var(--overlay-hover);
}

.product.is-expired .product-name,
.product.is-expired .product-left {
  color: var(--text-2);
}

.product-main,
.product-end {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.product-end {
  align-items: flex-end;
  text-align: right;
}

.product-name,
.product-left {
  font-weight: 400;
}

.product-sub {
  color: var(--muted);
  font-size: 12px;
}

.empty {
  padding: 18px 14px;
  color: var(--text-2);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.form-stack {
  gap: 10px;
}

.form-stack .field input {
  width: 100%;
}

.form-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.identity-flush {
  padding: 0;
}

.hint-text {
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.card-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--hairline);
}

.notice-ok {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--green);
  font-size: 12px;
}

.button-quiet,
.file-input::file-selector-button {
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: inherit;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform var(--spring-press-duration) var(--spring-press);
}

.button-quiet:hover,
.file-input::file-selector-button:hover {
  background: var(--overlay-active);
  color: var(--text);
}

.button-quiet:active {
  transform: scale(0.97);
  transition-timing-function: ease, ease, cubic-bezier(0.2, 0, 0, 1);
  transition-duration: 160ms, 160ms, 80ms;
}

.button-danger,
.button-danger:hover {
  color: var(--red);
}

.button.button-small {
  height: 30px;
  margin-top: 0;
  padding: 0 14px;
}

.file-input {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
}

.file-input::file-selector-button {
  margin-right: 10px;
}

.sessions {
  padding: 2px 14px;
}

.session {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.session + .session {
  border-top: 1px solid var(--hairline);
}

.session-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.session-here {
  margin-left: 6px;
  color: var(--green);
  font-size: 12px;
}

.session-sub {
  color: var(--muted);
  font-size: 12px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.releases {
  padding: 4px 14px;
}

.releases-toggle {
  padding: 0 14px;
}

.releases-toggle > .releases {
  padding: 0;
}

.releases-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.releases-summary::-webkit-details-marker {
  display: none;
}

.releases-summary::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid var(--muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 160ms ease;
}

.releases-toggle[open] > .releases-summary::before {
  transform: rotate(90deg);
}

.releases-scroll {
  max-height: 320px;
  overflow-y: auto;
}

.pattern-list {
  padding: 0 14px;
}

.pattern-row {
  display: grid;
  grid-template-columns: 1fr 120px 80px 100px;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12px;
}

.pattern-row + .pattern-row {
  border-top: 1px solid var(--hairline);
}

.pattern-row-header {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.pattern-col-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pattern-col-module {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
}

.pattern-col-cache code {
  font-size: 11px;
}

.pattern-col-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.muted {
  color: var(--muted);
}

.pattern-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 90vw);
  padding: 20px;
  background: var(--floating);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  border: 1px solid var(--hairline);
  border-radius: var(--card-radius);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  color: var(--text);
  z-index: 40;
}

.pattern-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dialog-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 14px;
}

.release {
  padding: 10px 0 12px;
}

.release + .release {
  border-top: 1px solid var(--hairline);
}

.release-collapse {
  list-style: none;
}

.release-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.release-head::-webkit-details-marker {
  display: none;
}

.release-head::after {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform 160ms ease;
}

.release-collapse[open] > .release-head::after {
  transform: rotate(180deg);
}

.release-collapse > .changelog {
  padding-top: 8px;
}

.release-version {
  color: var(--muted);
  font-size: 12px;
}

.release-date {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.changes {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 6px;
  padding-left: 14px;
  list-style: none;
}

.changes li {
  position: relative;
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.changes li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: -10px;
  width: 4px;
  height: 1px;
  background: var(--muted);
}

.changelog {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 8px;
}

.changelog .changes {
  margin-top: 0;
}

.changelog .changes + .changes {
  margin-top: 12px;
}

.changelog-heading {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.changelog-preview {
  padding: 10px 12px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.changelog-preview[hidden] {
  display: none;
}

.changelog-preview-label {
  color: var(--muted);
  font-size: 12px;
}

.sign-in,
.notice,
.landing-card {
  width: min(360px, 100%);
  padding: 30px 28px 24px;
  text-align: center;
  animation: open var(--spring-duration) var(--spring) both;
}

.content .notice {
  margin: 40px auto 0;
  background: var(--raised);
  border: 1px solid var(--hairline);
  animation: none;
}

.sign-in-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
}

.kanji {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: "Yu Gothic", "Meiryo", "Hiragino Sans", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.muted {
  color: var(--muted);
}

.sign-in .muted,
.notice .muted {
  margin-top: 4px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
  text-align: left;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.field input {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.button {
  display: inline-grid;
  place-items: center;
  height: 34px;
  margin-top: 6px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  color: var(--text);
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform var(--spring-press-duration) var(--spring-press);
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.11);
  background: var(--overlay-active);
}

.button:active {
  transform: scale(0.97);
  transition-timing-function: ease, ease, cubic-bezier(0.2, 0, 0, 1);
  transition-duration: 160ms, 160ms, 80ms;
}

.notice .button {
  margin-top: 18px;
}

.hint {
  color: var(--muted);
  font-size: 11px;
}

.turnstile {
  min-height: 65px;
  color-scheme: normal;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.two-factor-setup {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.qr-frame {
  padding: 8px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0 0 1px var(--hairline);
}

.qr {
  display: block;
  width: 100%;
  height: auto;
}

.two-factor-steps {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--text-2);
}

.two-factor-key {
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  .two-factor-setup {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .qr-frame {
    width: 168px;
  }
}

.sign-in .switch {
  margin-top: 16px;
  font-size: 12px;
}

.link {
  color: var(--accent);
  font-weight: 400;
  text-underline-offset: 2px;
  transition: filter 160ms ease;
}

.link:hover {
  filter: brightness(1.15);
  text-decoration: underline;
}

.error {
  padding: 8px 10px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
  font-size: 12px;
  font-weight: 400;
}

.store-note {
  margin: 10px 14px 0;
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 12px;
}

.card > .error,
.card > .notice-ok {
  margin: 10px 14px 0;
}

.store-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  list-style: none;
}

.store-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.store-item:hover {
  background: var(--overlay-hover);
}

.store-main,
.store-end {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.store-main {
  flex: 1;
}

.store-end {
  flex: none;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.store-end .button {
  margin-top: 0;
}

.store-sub {
  color: var(--muted);
  font-size: 12px;
}

.store-sub .status,
.store-sub .status-offline {
  font-size: 12px;
}

.store-description {
  margin-top: 2px;
  color: var(--text-2);
  font-size: 12px;
}

.store-price {
  color: var(--text);
}

.button:disabled {
  color: var(--muted);
  cursor: default;
  opacity: 0.6;
}

.button:disabled:hover {
  border-color: var(--hairline);
  background: rgba(255, 255, 255, 0.045);
}

.button:disabled:active {
  transform: none;
}

.person.is-off .person-name {
  color: var(--text-2);
}

.orders {
  display: flex;
  flex-direction: column;
  padding: 2px 14px 6px;
  list-style: none;
}

.order {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.order + .order {
  border-top: 1px solid var(--hairline);
}

.order-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.order-name {
  color: var(--text-2);
}

.order-name .link-plain {
  color: var(--text);
}

.order-sub {
  color: var(--muted);
  font-size: 12px;
}

.order-amount {
  flex: none;
  color: var(--text);
}

.download {
  align-items: flex-start;
}

.download-text {
  color: var(--text-2);
}

.download-button,
.discord-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
}

.setup {
  width: min(400px, 100%);
}

.setup-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 2px 0 14px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  list-style: none;
}

.setup-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.setup-steps li + li::before {
  content: "";
  width: 12px;
  height: 1px;
  background: var(--hairline);
}

.setup-steps .is-done {
  color: var(--text-2);
}

.setup-steps .is-current {
  color: var(--text);
}

.setup-host {
  grid-template-columns: minmax(0, 1fr) 88px;
}

.setup-keep {
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.setup-keep .button-quiet {
  margin-top: 2px;
}

.setup-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.setup-actions .button {
  margin-top: 0;
}

.setup-actions .button-quiet {
  height: 34px;
}

.setup-config {
  max-height: 240px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text-2);
  font: 11px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace;
  white-space: pre;
  user-select: all;
}

.setup-alone {
  margin-top: 16px;
  text-align: left;
}

.path {
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.shake {
  animation: open var(--spring-duration) var(--spring) both, shake 600ms ease-out both;
}

@keyframes open {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shake {
  0% { translate: 0; }
  6% { translate: 5px; }
  13% { translate: -3.5px; }
  21% { translate: 2.4px; }
  29% { translate: -1.6px; }
  38% { translate: 1px; }
  50% { translate: -0.5px; }
  100% { translate: 0; }
}

.settled .sign-in,
.settled .notice,
.settled .landing-card,
.settled .landing-mascot {
  animation: none;
}

body:has(.landing) {
  overflow: hidden;
}

.landing {
  position: relative;
  display: grid;
  place-items: center;
  width: min(360px, 100%);
  margin-right: 150px;
}

.landing-card {
  padding-top: 34px;
}

.landing-title {
  font-size: 30px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.landing-products {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.landing-product-item {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  cursor: default;
  border-radius: 8px;
  outline: none;
  animation: icon-pop var(--spring-duration) var(--spring) both;
}

.landing-product-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.landing-product-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  user-select: none;
  transition:
    transform var(--spring-press-duration) var(--spring-press),
    filter 180ms ease;
}

.landing-product-item:hover .landing-product-icon,
.landing-product-item:focus-visible .landing-product-icon {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 10px rgba(150, 125, 255, 0.25));
}

.landing-product-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px) scale(0.92);
  transform-origin: bottom center;
  padding: 4px 9px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--floating);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  z-index: 10;
}

.landing-product-item:hover .landing-product-tooltip,
.landing-product-item:focus-visible .landing-product-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  transition:
    opacity 140ms ease,
    transform var(--spring-snappy-duration) var(--spring-snappy);
}

.lpi-1 { animation-delay: 420ms; }
.lpi-2 { animation-delay: 480ms; }
.lpi-3 { animation-delay: 540ms; }
.lpi-4 { animation-delay: 600ms; }
.lpi-5 { animation-delay: 660ms; }
.lpi-6 { animation-delay: 720ms; }
.lpi-7 { animation-delay: 780ms; }
.lpi-8 { animation-delay: 840ms; }

@keyframes icon-pop {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.settled .landing-product-item {
  animation: none;
}

.landing-tagline {
  margin-top: 22px;
}

.landing-card .landing-tagline-ja {
  margin-top: 4px;
  font-family: "Yu Gothic", "Meiryo", "Hiragino Sans", sans-serif;
  font-size: 12px;
}

.landing-actions {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
}

.landing-actions .button {
  width: 100%;
  margin-top: 0;
}

.landing-card:has(.landing-discord) {
  padding-bottom: 14px;
}

.landing-discord {
  justify-self: center;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 2px;
  transition: color 160ms ease;
}

.landing-discord:hover {
  color: var(--text-2);
  text-decoration: underline;
}

.ban-reason {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.ban-reason-label {
  color: var(--muted);
  font-size: 11px;
}

.ban-reason-text {
  max-height: 30vh;
  margin-top: 2px;
  overflow-y: auto;
  color: var(--text-2);
  font-size: 12px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.landing-actions form {
  display: grid;
}

.landing-mascot {
  position: absolute;
  right: -210px;
  bottom: -90px;
  width: 340px;
  height: auto;
  filter: invert(1);
  mix-blend-mode: screen;
  opacity: 0.85;
  user-select: none;
  pointer-events: none;
  animation: peek 1100ms var(--spring) 250ms both;
}

@keyframes peek {
  from {
    opacity: 0;
    transform: translateX(40px) rotate(6deg);
  }
  to {
    opacity: 0.85;
    transform: none;
  }
}

@media (max-width: 720px) {
  .landing {
    margin-top: 150px;
    margin-right: 0;
  }

  .landing-mascot {
    top: -200px;
    right: 50%;
    bottom: auto;
    width: 220px;
    translate: 50% 0;
  }
}

.settled .shake {
  animation: shake 600ms ease-out both;
}

@view-transition {
  navigation: auto;
}

.vt .nav-pill {
  view-transition-name: nav-pill;
}

.vt .topbar-title {
  view-transition-name: page-title;
}

.vt .topbar-icon {
  view-transition-name: page-icon;
}

.vt .grain {
  view-transition-name: grain;
}

::view-transition-group(grain) {
  mix-blend-mode: overlay;
  animation: none;
}

::view-transition-old(grain) {
  display: none;
}

::view-transition-new(grain) {
  animation: none;
}

.vt:not(.vt-scrolled) .content {
  view-transition-name: page;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 120ms;
}

::view-transition-group(*) {
  animation-duration: var(--spring-glide-duration);
  animation-timing-function: var(--spring-glide);
}

::view-transition-group(page),
::view-transition-group(page-title) {
  animation: none;
}

::view-transition-old(page-title),
::view-transition-new(page-title) {
  width: auto;
  height: 100%;
}

::view-transition-old(nav-pill) {
  display: none;
}

::view-transition-new(nav-pill) {
  height: 100%;
  animation: none;
}

::view-transition-old(page),
::view-transition-old(page-title),
::view-transition-old(page-icon) {
  animation: page-out var(--exit) both;
}

::view-transition-new(page),
::view-transition-new(page-title),
::view-transition-new(page-icon) {
  animation:
    page-fade 150ms cubic-bezier(0.2, 0, 0, 1) both,
    page-in var(--spring-duration) var(--spring) both;
}

html {
  --page-shift: 0px;
}

html:active-view-transition-type(forward) {
  --page-shift: 10px;
}

html:active-view-transition-type(back) {
  --page-shift: -10px;
}

html:active-view-transition-type(same) {
  --page-shift: 4px;
}

::view-transition-old(page-title),
::view-transition-new(page-title),
::view-transition-old(page-icon),
::view-transition-new(page-icon) {
  --page-shift: 0px;
}

@keyframes page-out {
  to {
    opacity: 0;
    translate: 0 calc(var(--page-shift) * -0.5);
  }
}

@keyframes page-fade {
  from {
    opacity: 0;
  }
}

@keyframes page-in {
  from {
    translate: 0 var(--page-shift);
  }
}

.columns-full {
  columns: 1;
  max-width: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.content .table-card {
  overflow: visible;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
}

.toolbar-search {
  display: flex;
  flex: 1 1 260px;
  align-items: center;
  gap: 8px;
  max-width: 360px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.toolbar-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.toolbar-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  outline: none;
}

.toolbar select {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text);
  font: inherit;
}

.toolbar .button {
  margin-left: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  text-align: left;
  white-space: nowrap;
}

.table td {
  height: 52px;
  padding: 0 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--text-2);
  white-space: nowrap;
}

.table tbody tr {
  transition: background-color 160ms ease;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.table tbody tr:last-child td {
  border-bottom: 0;
}

.table td.muted {
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
}

.ban-flag {
  position: relative;
  color: var(--red);
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, var(--red) 45%, transparent);
  text-underline-offset: 3px;
  cursor: help;
}

.ban-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  width: max-content;
  max-width: 280px;
  padding: 6px 10px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--floating);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  white-space: pre-line;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px) scale(0.96);
  transform-origin: top right;
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.ban-flag.tip-up .ban-tip {
  top: auto;
  bottom: calc(100% + 8px);
  transform: translateY(4px) scale(0.96);
  transform-origin: bottom right;
}

.ban-flag:hover .ban-tip,
.ban-flag:focus-visible .ban-tip {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition:
    opacity 140ms ease,
    transform var(--spring-snappy-duration) var(--spring-snappy);
}

.active-table .active-user {
  color: var(--text);
}

.active-table .active-actions {
  width: 1%;
  text-align: right;
}

.actions .hint {
  flex: 1;
  min-width: 0;
}

.hwid-compare tbody tr.is-changed td {
  color: var(--amber);
}

.hwid-compare tbody tr.is-changed th {
  color: var(--amber);
}

.hwid-compare tbody th[scope="row"] {
  color: var(--text-2);
  font-weight: 400;
}

.hwid-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  transition: color 160ms ease;
}

.sort:hover,
.sort.is-active {
  color: var(--text);
}

.sort-icon {
  width: 12px;
  height: 12px;
}

.member {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.member-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.member-name {
  color: var(--text);
}

.member:hover .member-name {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.member-role {
  color: var(--muted);
  font-size: 12px;
}

.cell-actions {
  width: 1%;
  text-align: right;
}

.menu {
  position: relative;
  display: inline-block;
}

.menu summary {
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu[open] summary {
  background: var(--overlay-active);
  color: var(--text);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  min-width: 190px;
  padding: 5px;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--floating);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  text-align: left;
  transform-origin: top right;
  opacity: 0;
  transform: scale(0.97) translateY(-3px);
  transition: opacity var(--exit), transform var(--exit);
}

.menu[open] .menu-panel {
  opacity: 1;
  transform: none;
  transition:
    opacity 120ms cubic-bezier(0.2, 0, 0, 1),
    transform var(--spring-snappy-duration) var(--spring-snappy);
}

@starting-style {
  .menu[open] .menu-panel {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
}

.menu-up .menu-panel {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom right;
  transform: scale(0.97) translateY(3px);
}

@starting-style {
  .menu-up[open] .menu-panel {
    opacity: 0;
    transform: scale(0.96) translateY(4px);
  }
}

.menu::details-content {
  transition: content-visibility 90ms allow-discrete;
}

.menu-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text-2);
  transition: background-color 120ms ease, color 120ms ease;
}

.menu-panel a .icon {
  color: var(--muted);
}

.menu-panel a:hover,
.menu-panel a:focus-visible {
  background: var(--overlay-active);
  color: var(--text);
  outline: none;
}

.menu-panel hr {
  height: 1px;
  margin: 4px 6px;
  border: 0;
  background: var(--hairline);
}

.card-link,
.link-plain {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.18);
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.card-link {
  font-size: 12px;
}

.card-link:hover,
.link-plain:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.card-divided {
  border-top: 1px solid var(--hairline);
}

.card-note {
  padding: 12px 14px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.search {
  padding-bottom: 6px;
}

.people {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}

.person {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.person:hover {
  background: var(--overlay-hover);
}

.person-main,
.person-end {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.person-end {
  align-items: flex-end;
  text-align: right;
}

.person-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-undetected { color: var(--green); }
.status-testing { color: var(--accent); }
.status-updating { color: var(--amber); }
.status-detected,
.status-offline { color: var(--red); }

.log {
  padding: 2px 14px 6px;
}

.log-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.log-row + .log-row {
  border-top: 1px solid var(--hairline);
}

.log-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.log-what {
  color: var(--text-2);
}

.log-what a {
  color: var(--text);
}

.log-detail {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 12px;
}

.log-when {
  flex: none;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.form-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.form-row .field {
  flex: 1;
  min-width: 0;
}

.form-row .field input,
.form-row .field select {
  width: 100%;
}

.field-static {
  display: flex;
  align-items: center;
  height: 34px;
  padding: 0 11px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius);
  color: var(--text-2);
}

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

.field-pair input,
.field-pair select {
  width: 100%;
}

.field select,
.field textarea,
.form-inline select,
.input-days {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field textarea {
  padding: 8px 11px;
  line-height: 1.45;
  resize: vertical;
}

.field select:focus,
.field textarea:focus,
.form-inline select:focus,
.input-days:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-inline select,
.input-days {
  min-height: 30px;
}

.input-days {
  width: 72px;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}

.check {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
  cursor: pointer;
}

.check input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05) center / 12px no-repeat;
  appearance: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform var(--spring-press-duration) var(--spring-press);
}

.check:hover input {
  border-color: rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.08);
}

.check input:checked {
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.16);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='m5 12 5 5 9-10'/></svg>");
}

.check input:active {
  transform: scale(0.9);
  transition-timing-function: ease, ease, cubic-bezier(0.2, 0, 0, 1);
  transition-duration: 160ms, 160ms, 80ms;
}

.check input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check span {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.check-sub {
  color: var(--muted);
  font-size: 12px;
}

.check-danger input:checked + span {
  color: var(--red);
}

.codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
}

.code {
  font: 12px/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
  user-select: all;
}

.invites {
  padding: 2px 14px 6px;
}

.invite {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.invite + .invite {
  border-top: 1px solid var(--hairline);
}

.invite-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  line-height: 1.35;
}

.invite-sub {
  color: var(--muted);
  font-size: 12px;
}

.invite-state {
  font-size: 12px;
}

.state-open { color: var(--green); }
.state-used { color: var(--text-2); }
.state-expired,
.state-revoked { color: var(--muted); }

.invite.is-done .code {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.14);
}

.product-edit {
  grid-template-columns: minmax(0, 1fr) auto;
}

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

.button-tiny {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
}

.release-head form {
  margin-left: 4px;
}

.pager {
  flex-direction: row;
  justify-content: space-between;
}

.product-icon {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.product-icon-empty {
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
}

.product-icon-small {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  font-size: 11px;
}

.product-icon-large {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  font-size: 24px;
}

.product-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person-main {
  flex: 1;
}

.release-head .product-icon {
  align-self: center;
}

.icon-editor {
  flex-direction: row;
  align-items: center;
  gap: 14px;
}

.icon-editor-forms {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

.icon-editor-forms .form-inline {
  width: 100%;
}

.toolbar select,
.field select,
.form-inline select {
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23848a9e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  cursor: pointer;
}

select option {
  background-color: rgb(25, 28, 37);
  color: var(--text);
}

.dropdown {
  position: relative;
  display: inline-flex;
}

.dropdown > select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}

.field .dropdown {
  display: flex;
}

.dropdown-button {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 128px;
  height: 30px;
  padding: 0 10px 0 11px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field .dropdown-button {
  height: 34px;
}

.dropdown-button:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.dropdown-button:focus-visible,
.dropdown.is-open .dropdown-button {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}

.dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-chevron {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--muted);
  transition: transform var(--spring-snappy-duration) var(--spring-snappy);
}

.dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  max-height: 264px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: var(--floating);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  transform-origin: top left;
  transition:
    opacity 120ms cubic-bezier(0.2, 0, 0, 1),
    transform var(--spring-snappy-duration) var(--spring-snappy),
    display var(--spring-snappy-duration) allow-discrete;
}

.dropdown-list[hidden] {
  display: none;
  opacity: 0;
  transform: scale(0.97) translateY(-3px);
  transition:
    opacity var(--exit),
    transform var(--exit),
    display 90ms allow-discrete;
}

@starting-style {
  .dropdown-list:not([hidden]) {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
}

.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--text-2);
  white-space: nowrap;
  cursor: pointer;
}

.dropdown-option.is-active {
  background: var(--overlay-active);
  color: var(--text);
}

.dropdown-option[aria-selected="true"] {
  color: var(--text);
}

.dropdown-option .icon {
  width: 14px;
  height: 14px;
  visibility: hidden;
}

.dropdown-option[aria-selected="true"] .icon {
  visibility: visible;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 14px 0;
}

@media (max-width: 600px) {
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.stat-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.4);
}

.stat-label {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-value {
  color: var(--text);
  font-size: 17px;
  line-height: 1.2;
}

.stat-sub {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-box {
  padding: 14px;
}

.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.chart-title {
  color: var(--text-2);
  font-size: 13px;
}

.chart-sub {
  color: var(--muted);
  font-size: 11px;
}

.chart-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-gridline {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-dasharray: 4 4;
}

.chart-gridlabel {
  fill: var(--muted);
  font-size: 10px;
  font-family: inherit;
}

.chart-datelabel {
  fill: var(--muted);
  font-size: 10px;
  font-family: inherit;
  text-anchor: middle;
}

.chart-col {
  cursor: pointer;
  outline: none;
}

.chart-bar-bg {
  fill: rgba(255, 255, 255, 0.025);
  rx: 3px;
}

.chart-bar {
  fill: rgba(150, 125, 255, 0.45);
  rx: 3px;
  transition: fill 160ms ease, opacity 160ms ease;
}

.chart-col:hover .chart-bar,
.chart-col:focus-visible .chart-bar {
  fill: var(--accent);
  filter: drop-shadow(0 0 6px rgba(150, 125, 255, 0.6));
}

.chart-line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-dot {
  fill: rgb(8, 10, 14);
  stroke: var(--accent);
  stroke-width: 2;
  transition: r 160ms ease, stroke 160ms ease, fill 160ms ease;
}

.chart-col:hover .chart-dot,
.chart-col:focus-visible .chart-dot {
  r: 5;
  stroke: #ffffff;
  fill: var(--accent);
}

.product-distribution {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--hairline);
}

.distribution-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
}

.distribution-title {
  color: var(--text-2);
}

.distribution-meta {
  color: var(--muted);
  font-size: 11px;
}

.distribution-track {
  display: block;
  width: 100%;
  height: 8px;
  margin-bottom: 12px;
  border-radius: 4px;
  overflow: hidden;
}

.distribution-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.distribution-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.distribution-lead {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.distribution-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dist-dot-0 { background: #967dff; }
.dist-dot-1 { background: #5ad19a; }
.dist-dot-2 { background: #f0b45a; }
.dist-dot-3 { background: #5ab4f0; }
.dist-dot-4 { background: #f0697a; }

.distribution-name {
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.distribution-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.distribution-subs {
  color: var(--text-2);
}

.distribution-rev {
  color: var(--muted);
}

.distribution-pct {
  min-width: 36px;
  text-align: right;
  color: var(--text);
}

@media (max-width: 1100px) {
  .columns {
    columns: 1;
  }
}

@media (max-width: 860px) {
  body.app {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: min(280px, 84vw);
    background: var(--floating);
    box-shadow: 18px 0 48px rgba(0, 0, 0, 0.45);
    transform: translateX(-104%);
    transition: transform var(--spring-snappy-duration) var(--spring-snappy);
  }

  .drawer-open .sidebar {
    transform: none;
    transition: transform var(--spring-duration) var(--spring);
  }

  .vt .sidebar {
    view-transition-name: sidebar;
  }

  .vt .scrim {
    view-transition-name: scrim;
  }

  .scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10;
    background: rgba(8, 10, 14, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease;
  }

  .drawer-open .scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .menu-button {
    display: grid;
    margin-left: -6px;
  }

  .topbar {
    padding: 0 14px;
  }

  .content {
    padding: 12px;
  }

  .products {
    gap: 0;
    padding: 0 6px;
  }

  .product {
    padding: 10px 8px;
    border-radius: 0;
  }

  .product + .product {
    border-top: 1px solid var(--hairline);
  }

  .product-edit {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .field-pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .invite {
    flex-wrap: wrap;
  }

  .table th:nth-child(3),
  .table td:nth-child(3),
  .table th:nth-child(4),
  .table td:nth-child(4),
  .table th:nth-child(5),
  .table td:nth-child(5) {
    display: none;
  }

  .toolbar .button {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  html {
    --page-shift: 0px !important;
  }

  ::view-transition-group(*) {
    animation-duration: 1ms !important;
  }

  ::view-transition-old(*),
  ::view-transition-new(*) {
    filter: none !important;
    animation-delay: 0ms !important;
  }
}

.button:has(> .icon),
.actions .button-quiet,
.ws-tile-action .button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.actions a.button-quiet {
  color: var(--text-2);
  text-decoration: none;
}

.ws-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
  margin-left: -6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.ws-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, color 160ms ease;
}

.ws-tab:hover {
  background: var(--overlay-hover);
  color: var(--text);
}

.ws-tab.is-active {
  border-color: var(--hairline);
  background: var(--overlay-active);
  color: var(--text);
}

.ws-tab-count {
  color: var(--muted);
  font-size: 12px;
}

.ws-publish {
  flex: none;
}

.ws-flash {
  padding: 12px 14px 0;
}

.ws-empty {
  max-width: 64ch;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 6px;
  padding: 8px;
  list-style: none;
}

.ws-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px;
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.ws-tile:hover {
  background: var(--overlay-hover);
}

.ws-cover {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(8, 10, 14, 0.45);
}

.ws-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ws-cover-empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
}

.ws-cover-empty .icon {
  width: 22px;
  height: 22px;
}

.ws-tile-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 8px 2px 0;
}

.ws-tile-title {
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-tile-title:hover {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 3px;
}

.ws-tile-sub {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-tile-summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-2);
  font-size: 12px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.ws-tile-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  margin-top: auto;
  padding-top: 6px;
}

.ws-tile-action {
  margin-left: auto;
}

.ws-tile-action .button.button-small {
  height: 28px;
  padding: 0 12px;
}

.ws-tile-action .button-quiet {
  height: 28px;
}

.ws-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: var(--muted);
  vertical-align: middle;
}

.ws-star {
  width: 13px;
  height: 13px;
  color: rgba(255, 255, 255, 0.22);
}

.ws-star.is-on {
  color: var(--text);
  fill: currentColor;
}

.ws-stars-value {
  margin-left: 5px;
  color: var(--text-2);
  font-size: 12px;
}

.ws-stars-none {
  font-size: 12px;
}

.ws-subscribers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 12px;
}

.ws-subscribers .icon {
  width: 13px;
  height: 13px;
}

.ws-redeem {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.ws-redeem-field {
  display: flex;
  flex: 1 1 260px;
  flex-direction: column;
  gap: 4px;
  max-width: 360px;
}

.ws-redeem-field span {
  color: var(--muted);
  font-size: 12px;
}

.ws-redeem-field input {
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
  color: var(--text);
  font: 12px/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.ws-redeem-field input::placeholder {
  color: var(--muted);
}

.ws-redeem-field input:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.ws-redeem-field input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ws-redeem .error,
.ws-redeem .notice-ok {
  flex-basis: 100%;
}

.ws-gallery {
  overflow: hidden;
}

.ws-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  outline: none;
}

.ws-track::-webkit-scrollbar {
  display: none;
}

.ws-track:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.ws-slide {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: rgba(8, 10, 14, 0.6);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.ws-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ws-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px;
  border-top: 1px solid var(--hairline);
}

.ws-gallery-count {
  min-width: 44px;
  color: var(--text-2);
  font-size: 12px;
  text-align: center;
}

.ws-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 6px;
}

.ws-head-icon {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.ws-head-icon .icon {
  width: 18px;
  height: 18px;
}

.ws-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-head-text .identity-name {
  overflow-wrap: anywhere;
}

.ws-summary {
  padding: 0 14px 6px;
  color: var(--text-2);
}

.ws-inset {
  margin: 4px 14px 8px;
}

.ws-actions-body {
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
}

.ws-description {
  max-width: 72ch;
  padding: 12px 14px 14px;
  color: var(--text-2);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.ws-rate {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ws-rate-stars {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  border: 0;
}

.ws-rate-stars legend {
  float: left;
  margin-right: 10px;
  color: var(--text-2);
  line-height: 28px;
}

.ws-rate-row {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 2px;
}

.ws-rate-row label {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms ease, transform var(--spring-press-duration) var(--spring-press);
}

.ws-rate-row label .ws-star {
  width: 16px;
  height: 16px;
  transition: color 160ms ease, fill 160ms ease;
}

.ws-rate-row label:hover {
  background: var(--overlay-hover);
}

.ws-rate-row label:active {
  transform: scale(0.92);
  transition-duration: 160ms, 80ms;
}

.ws-rate-row input:checked ~ label .ws-star {
  color: var(--text);
  fill: currentColor;
}

.ws-rate-row:hover input ~ label .ws-star {
  color: rgba(255, 255, 255, 0.22);
  fill: none;
}

.ws-rate-row:hover label:hover .ws-star,
.ws-rate-row:hover label:hover ~ label .ws-star {
  color: var(--text);
  fill: currentColor;
}

.ws-rate-row input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.ws-rate .error,
.ws-rate .notice-ok {
  flex-basis: 100%;
}

.ws-thumbs {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  list-style: none;
}

.ws-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.ws-thumb:hover {
  background: var(--overlay-hover);
}

.ws-thumb img {
  flex: none;
  width: 96px;
  height: 54px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(8, 10, 14, 0.45);
  object-fit: cover;
}

.ws-thumb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-thumb-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.icon-button:disabled {
  opacity: 0.6;
  color: var(--muted);
  cursor: default;
}

.icon-button:disabled:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ws-add-images {
  border-top: 1px solid var(--hairline);
}

@media (max-width: 560px) {
  .ws-tabs .ws-tab-count,
  .ws-publish-label {
    display: none;
  }

  .ws-publish.button.button-small {
    width: 30px;
    padding: 0;
  }

  .ws-tab {
    padding: 0 8px;
  }

  .ws-thumb {
    flex-wrap: wrap;
  }

  .ws-thumb-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.ws-versions {
  list-style: none;
}

.ws-optional {
  margin-left: 4px;
  color: var(--muted);
  opacity: 0.7;
}

.ws-segment {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ws-segment-label {
  margin-bottom: 4px;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
}

.ws-segment-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.45);
}

.ws-segment-option {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.ws-segment-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ws-segment-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--text-2);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform var(--spring-press-duration) var(--spring-press);
}

.ws-segment-option:hover span {
  background: var(--overlay-hover);
  color: var(--text);
}

.ws-segment-option:active span {
  transform: scale(0.97);
  transition-duration: 160ms, 160ms, 160ms, 80ms;
}

.ws-segment-input:checked + span {
  border-color: rgba(255, 255, 255, 0.14);
  background: var(--overlay-active);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.ws-segment-input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ws-shader-note {
  display: none;
  margin-top: -4px;
}

.ws-publish-form:has(.ws-segment-input[value="shader"]:checked) .ws-product-field {
  display: none;
}

.ws-publish-form:has(.ws-segment-input[value="shader"]:checked) .ws-shader-note {
  display: block;
}

.ws-drop {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 12px;
  padding: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(8, 10, 14, 0.3);
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform var(--spring-press-duration) var(--spring-press);
}

.ws-drop:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: var(--overlay-hover);
}

.ws-drop.is-over {
  border-color: var(--accent);
  border-style: solid;
  background: var(--accent-soft);
  transform: scale(1.01);
}

.ws-drop:has(.ws-drop-input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.ws-drop.has-files {
  border-style: solid;
  border-color: var(--hairline);
}

.ws-drop-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ws-drop-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
}

.ws-drop.has-files .ws-drop-icon {
  color: var(--text);
}

.ws-drop-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ws-drop-title {
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-drop-hint {
  color: var(--muted);
  font-size: 12px;
}

.ws-drop-previews {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.ws-drop-previews[hidden] {
  display: none;
}

.ws-drop-previews img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: rgba(8, 10, 14, 0.45);
  object-fit: cover;
  animation: ws-pop var(--spring-duration) var(--spring) both;
}

.ws-drop-previews img:first-child {
  border-color: rgba(255, 255, 255, 0.22);
}

@keyframes ws-pop {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
}

.ws-publish-card .actions {
  padding-top: 4px;
}

.help-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 820px;
}

.help-tabs {
  margin-left: -4px;
}

.faq-group {
  padding: 6px 6px 8px;
}

.faq-group + .faq-group {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
}

.faq-heading {
  padding: 8px 8px 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.faq-item {
  border-radius: var(--radius);
  transition: background-color 160ms ease;
}

.faq-item:hover,
.faq-item[open] {
  background: var(--overlay-hover);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "";
  flex: none;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
  transition: transform var(--spring-snappy-duration) var(--spring-snappy);
}

.faq-item[open] > .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer,
.clause-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 70ch;
  color: var(--text-2);
  line-height: 1.6;
}

.faq-answer {
  padding: 0 10px 12px;
}

.help-foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--hairline);
  color: var(--text-2);
}

.terms-warning {
  margin: 14px 14px 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--red) 13%, transparent);
  color: var(--text);
  line-height: 1.55;
}

.terms-warning strong {
  color: color-mix(in srgb, var(--red) 55%, var(--text));
  font-weight: 600;
}

.terms {
  padding: 4px 14px 6px;
  list-style: none;
}

.clause {
  padding: 14px 0;
  scroll-margin-top: calc(var(--topbar) + 12px);
}

.clause + .clause {
  border-top: 1px solid var(--hairline);
}

.clause-title {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.clause-number {
  display: inline-block;
  min-width: 2.2ch;
  color: var(--muted);
  font-weight: 400;
}

.clause-body ul,
.clause-body ol {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 18px;
  list-style: disc;
}

.clause-body ul li::marker,
.clause-body ol li::marker {
  color: var(--muted);
}

.clause-body strong {
  color: var(--text);
  font-weight: 600;
}

.clause:target .clause-title {
  color: var(--accent);
}

body.centered:has(.doc) {
  height: auto;
  place-items: start center;
}

.doc {
  width: min(780px, 100%);
  margin-block: 16px;
  animation: open var(--spring-duration) var(--spring) both;
}

.doc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--hairline);
}

.doc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.doc-brand img {
  width: 28px;
  height: 28px;
  user-select: none;
}

.doc-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 18px;
}

.doc .help {
  background: rgba(34, 38, 49, 0.3);
  border: 1px solid var(--hairline);
}

.landing-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  font-size: 12px;
}

.landing-links a {
  color: var(--muted);
  transition: color 160ms ease;
}

.landing-links a:hover {
  color: var(--text);
}

@media (max-width: 560px) {
  .doc-top,
  .doc-body {
    padding-inline: 12px;
  }

  .terms {
    padding-inline: 12px;
  }
}

.reqs {
  display: flex;
  flex-direction: column;
  padding: 8px 14px 4px;
  list-style: none;
}

.req {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
}

.req + .req {
  border-top: 1px solid var(--hairline);
}

.req-what {
  color: var(--muted);
}

.req-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.req-needs {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.req-note {
  color: var(--text-2);
}

.reqs + .terms {
  border-top: 1px solid var(--hairline);
}

@media (max-width: 560px) {
  .reqs {
    padding-inline: 12px;
  }

  .req {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
}

.clause-body ol {
  list-style: decimal;
}

.verify-address {
  margin-top: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.verify .verify-sub {
  margin-top: 10px;
}

.verify-flash {
  margin-top: 16px;
}

.verify-help {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 12px;
}

.verify-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
}

.verify-help p + .verify-links {
  margin-top: 8px;
}

.verify-help > .verify-links:first-child {
  margin-top: 0;
}

.verify-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted);
}

.verify-form {
  margin-top: 18px;
  text-align: left;
}

.verify-form .button {
  width: 100%;
}

.verify-signout {
  margin-top: 16px;
  font-size: 12px;
}

.verify-quiet {
  color: var(--muted);
  transition: color 160ms ease;
}

.verify-quiet:hover {
  color: var(--text);
}
