:root {
  --bg: #000;
  --bg-2: #000;
  --ink: #edf1f5;
  --muted: #8e9aa7;
  --panel: #000;
  --panel-2: #000;
  --line: #7f171d;
  --line-soft: #4f1115;
  --border-width: 1.5px;
  --accent: #17c3b2;
  --accent-green: #37e021;
  --accent-2: #e43d30;
  --accent-2-rgb: 228, 61, 48;
  --accent-2-border: #ff5a4f;
  --accent-2-hover: #f04d42;
  --accent-2-soft: rgba(var(--accent-2-rgb), 0.14);
  --accent-3: #f7c948;
  --focus: #58a6ff;
  --shadow: rgba(0, 0, 0, 0.42);
  --font-body: "Rajdhani", "Segoe UI", Arial, sans-serif;
  --font-display: "Rajdhani", "Segoe UI", Arial, sans-serif;
}

:root.is-debug-mode {
  --line: #176b3f;
  --line-soft: #0f3f29;
  --accent-2: #2dd47f;
  --accent-2-rgb: 45, 212, 127;
  --accent-2-border: #7cffb2;
  --accent-2-hover: #28b96f;
  --accent-2-soft: rgba(45, 212, 127, 0.16);
  --accent-3: #7cffb2;
}

@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Rajdhani";
  src: url("./assets/fonts/Rajdhani-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
  scrollbar-color: var(--line) #000;
  scrollbar-width: thin;
}

[hidden] {
  display: none !important;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border: 2px solid #000;
  border-radius: 0px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  --app-background-image: url(assets/liverylab_background_01.jpg);
  background: #000;
  background-image: var(--app-background-image, url(assets/background.jpg));
  background-size: cover;
  background-position: center;
}

body[data-app-background="1"] {
  --app-background-image: url(assets/liverylab_background_01.jpg);
}

body[data-app-background="2"] {
  --app-background-image: url(assets/liverylab_background_02.jpg);
}

body[data-app-background="3"] {
  --app-background-image: url(assets/liverylab_background_03.jpg);
}

body[data-app-background="4"] {
  --app-background-image: url(assets/liverylab_background_04.jpg);
}

body[data-app-background="5"] {
  --app-background-image: url(assets/liverylab_background_05.jpg);
}

.startup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7000;
  pointer-events: none;
  background: #020407 url("assets/splash.png") center/cover no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms ease;
}

body.startup-backdrop-active .startup-backdrop {
  opacity: 1;
  visibility: visible;
}

h1,
h2,
h3,
.panel-head h1,
.panel-head h2,
.my-skin-section-title,
.overview-copy h2,
.status-modal-title {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: transparent;
  opacity: 1;
  transition: opacity 650ms ease, visibility 650ms ease;
}
.splash-screen .splash-fallback {
  position: absolute;
  left: 50%;
  bottom: calc(6vh + 80px);
  width: min(560px, 100vw - 48px);
  padding: 16px 18px 14px;
  display: grid;
  gap: 10px;
  transform: translateX(-50%);
  border: var(--border-width) solid rgba(240, 71, 63, 0.95);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.splash-screen .splash-fallback strong {
  font-size: clamp(32px, 5vw, 76px);
  font-style: italic;
  line-height: 1;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.8);
}
.splash-screen .splash-fallback span {
  color: #c8d0d8;
  font-size: clamp(12px, 1.2vw, 20px);
}
.splash-screen .splash-fallback .splash-progress-track {
  width: 100%;
  height: 5px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.38);
  background: rgba(0, 0, 0, 0.68);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.splash-screen .splash-fallback .splash-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  background: #f0473f;
  transition: width 220ms ease;
}
.splash-screen .splash-fallback .splash-progress-text {
  width: 100%;
  min-height: 18px;
  color: #eef3f7;
  font-size: 13px;
  line-height: 1.25;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.9);
}
.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

input.path-drop-target {
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}
input.path-drop-target.is-drag-over {
  border-color: var(--accent-3);
  background: rgba(23, 195, 178, 0.08);
  box-shadow: 0 0 0 1px rgba(23, 195, 178, 0.35);
}

button {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-transform: uppercase;
  border: var(--border-width) solid var(--line);
  background: #000;
  color: var(--ink);
  border-radius: 0px;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
button:hover {
  border-color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.1);
}
button.primary {
  background: var(--accent-2);
  border-color: var(--accent-2-border);
  color: #fff;
  font-weight: 700;
}
button.primary:hover {
  background: var(--accent-2-hover);
}
button.danger {
  background: #a91518;
  border-color: #ff4d55;
  color: #fff;
  font-weight: 700;
}
button.danger:hover {
  background: #c51f24;
  border-color: #ff7077;
}
button.danger-outline {
  background: #000;
  border-color: #ff4d55;
  color: #fff;
}
button.danger-outline:hover {
  background: rgba(255, 77, 85, 0.12);
  border-color: #ff7077;
}
button.preview {
  background: #145ea8;
  border-color: #58a8ff;
  color: #fff;
  font-weight: 700;
}
button.preview:hover {
  background: #1c74cc;
  border-color: #83c0ff;
}
button.orange {
  background: #af4e27;
  border-color: #cc6239;
  color: #fff;
  font-weight: 700;
}
button.orange:hover {
  background: #d84e0e;
  border-color: #dd6c38;
}
button.magenta {
  background: #b60a82;
  border-color: #cf39a2;
  color: #fff;
  font-weight: 700;
}
button.magenta:hover {
  background: #ee04a8;
  border-color: #db47af;
}
button.icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}
button[aria-busy=true], button.is-working {
  cursor: wait;
  opacity: 0.92;
}
button[aria-busy=true] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: currentColor;
}
.button-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

body.workflow-choice-pending {
  overflow: hidden;
}

body.workflow-choice-pending .app-shell {
  visibility: hidden;
  pointer-events: none;
}

[data-workflow-area].is-workflow-hidden {
  display: none !important;
}

.workflow-choice-screen {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: grid;
  grid-template-rows: minmax(0, 0.85fr) auto minmax(28px, 0.15fr);
  gap: 28px;
  min-width: 1280px;
  min-height: 720px;
  padding: 56px 72px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 42%, rgba(0, 0, 0, 0.32) 100%), linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.72) 100%);
  color: #fff;
}

.workflow-choice-screen[hidden] {
  display: none;
}

.workflow-choice-copy {
  display: grid;
  align-content: end;
  gap: 14px;
  max-width: 880px;
}

.workflow-choice-kicker {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-choice-copy h1 {
  margin: 0;
  color: #fff;
  font-size: 96px;
  line-height: 0.9;
}

.workflow-choice-copy p {
  max-width: 760px;
  margin: 0;
  color: #d5dde5;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.38;
}

.workflow-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 1120px;
  max-width: calc(100vw - 144px);
}

.workflow-choice-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(74px, auto) auto auto;
  gap: 12px;
  min-height: 250px;
  padding: 22px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.32);
  background: rgba(4, 7, 11, 0.76);
  color: #fff;
  text-align: left;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.workflow-choice-card:hover,
.workflow-choice-card:focus-visible {
  border-color: var(--accent-3);
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 0 0 2px rgba(255, 202, 82, 0.18), 0 24px 60px rgba(0, 0, 0, 0.52);
}

.workflow-choice-card-official:hover,
.workflow-choice-card-official:focus-visible {
  border-color: var(--accent);
}

.workflow-choice-label {
  justify-self: start;
  padding: 5px 8px;
  border: var(--border-width) solid rgba(255, 202, 82, 0.52);
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-choice-card strong {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-choice-description {
  color: #dce4ec;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.38;
}

.workflow-choice-card:disabled {
  cursor: wait;
}

.workflow-choice-card.is-waiting {
  opacity: 0.46;
}

.workflow-choice-card.is-loading {
  border-color: var(--accent-3);
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 202, 82, 0.18), 0 24px 60px rgba(0, 0, 0, 0.52);
}

.workflow-choice-card-official.is-loading {
  border-color: var(--accent);
}

.workflow-choice-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 22px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.workflow-choice-card.is-loading .workflow-choice-loading {
  display: inline-flex;
}

.workflow-choice-card small {
  align-self: end;
  color: #aeb9c4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.workflow-choice-capability {
  justify-self: start;
  padding: 6px 9px;
  border: var(--border-width) solid currentColor;
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-choice-card-official .workflow-choice-capability {
  color: var(--accent);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  padding: 18px 14px;
  overflow: hidden;
  border-right: var(--border-width) solid var(--line);
  background: none;
  backdrop-filter: blur(30px);
  color: #f6f8fa;
}

.quit-button {
  width: 100%;
  height: 50px;
  border-color: rgba(var(--accent-2-rgb), 0.55);
  background: rgba(var(--accent-2-rgb), 0.12);
  color: #fff;
  font-weight: 700;
}
.quit-button:hover {
  border-color: var(--accent-2-border);
  background: rgba(var(--accent-2-rgb), 0.28);
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.debug-mode-badge {
  display: grid;
  place-items: center;
  min-height: 28px;
  border: var(--border-width) solid var(--accent-2);
  background: var(--accent-2-soft);
  color: #caffdd;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.debug-mode-badge[hidden] {
  display: none;
}

.app-version {
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  text-align: center;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 26px;
  flex-direction: column;
  flex: 0 0 auto;
}
.brand img {
  width: 100%;
  height: auto;
}
.brand small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.brand-logo {
  display: block;
  width: 100%;
}

.sidebar-workflow-badge {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 30px;
  margin: -12px 0 16px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f6f8fa;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-workflow-badge-label {
  display: none;
}

body[data-workflow-scope=advanced] .sidebar-workflow-badge {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: rgba(var(--accent-rgb), 0.14);
  color: #d7f4ff;
}

body[data-workflow-scope=official] .sidebar-workflow-badge {
  border-color: rgba(var(--accent-2-rgb), 0.62);
  background: rgba(var(--accent-2-rgb), 0.14);
  color: #dfffe9;
}

body:not([data-workflow-scope=official]) .sidebar-workflow-badge-advanced,
body[data-workflow-scope=official] .sidebar-workflow-badge-official {
  display: inline;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 0px;
  background: linear-gradient(135deg, var(--accent-2) 0 48%, #111820 48% 54%, var(--accent) 54% 100%);
  font-weight: 800;
  color: #fff;
}

.nav {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-2-rgb), 0.72) rgba(0, 0, 0, 0.18);
}
.nav::-webkit-scrollbar {
  width: 8px;
}
.nav::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.18);
}
.nav::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-2-rgb), 0.72);
}

.nav-section {
  display: grid;
  gap: 6px;
  margin-bottom: 0px;
  border: var(--border-width) solid var(--line-soft);
}

.nav-button {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  justify-content: flex-start;
  text-align: left;
  background: transparent;
  border-color: transparent;
  color: #c7d0d9;
  position: relative;
  min-height: 80px;
}
.nav-button.icon-text {
  justify-content: flex-start;
}
.nav-button.active, .nav-button:hover {
  background: #000;
  border-color: var(--line);
  color: var(--accent-3);
}
.nav-button.active::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  bottom: 0px;
  width: 3px;
  border-radius: 0px;
  background: var(--accent-2);
}
.nav-button.is-setup-locked {
  opacity: 0.42;
  cursor: not-allowed;
}
.nav-button:disabled, .nav-button[aria-disabled=true] {
  color: #69737d;
  pointer-events: none;
}

.nav-label {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  min-height: 0;
  padding: 4px 12px;
  border-color: transparent;
  background: transparent;
  color: #8f9aa6;
  font-size: 15px;
  line-height: 1;
  cursor: default;
  pointer-events: none;
}

.nav-section.is-active .nav-label {
  background: transparent;
  border-color: transparent;
  color: #fff;
}

.nav-category {
  min-height: 32px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.nav-sublist {
  display: grid;
  gap: 4px;
  padding: 0 10px;
  margin-bottom: 10px;
}

.nav-subbutton {
  min-height: 34px;
  padding: 0 10px;
  font-size: 17px;
  color: #aeb8c3;
  border-radius: 0px;
}
.nav-subbutton.active, .nav-subbutton:hover {
  background: #120305;
}
.nav-subbutton.active::before {
  top: 0px;
  bottom: 0px;
}

.workspace {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  height: 100vh;
  min-height: 0;
  max-height: 100vh;
  overflow: hidden;
  background: none;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto auto;
  gap: 8px;
  height: 85px;
  align-items: end;
  padding: 14px 18px;
  border-bottom: var(--border-width) solid var(--line);
  background: #000;
  box-shadow: 0 10px 28px var(--shadow);
}

.language-field select {
  min-width: 140px;
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

input,
select {
  min-height: 34px;
  width: 100%;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  padding: 6px 9px;
  color: var(--ink);
  background: #000;
  outline: none;
}
input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(23, 195, 178, 0.18);
}

input[type=checkbox] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  border: var(--border-width) solid var(--accent-2);
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 11px;
  cursor: pointer;
}
input[type=checkbox]:checked {
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='11' viewBox='0 0 11 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.2 5.8 4.1 8.6 9.8 2.1' fill='none' stroke='%23f0473f' stroke-width='1.8' stroke-linecap='square' stroke-linejoin='miter'/%3E%3C/svg%3E");
}
input[type=checkbox]:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(240, 71, 63, 0.18);
}

.tab {
  display: none;
  min-height: 0;
}
.tab.active {
  display: block;
}

.split {
  display: grid;
  grid-template-columns: minmax(420px, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  height: 100%;
}

.work-area {
  display: grid;
  grid-template-columns: minmax(320px, 36vw) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  min-height: 0;
  padding: 14px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 8px, transparent 8px 16px), transparent;
}

.work-area.uv-mode {
  grid-template-columns: minmax(0, 1fr);
}

.work-area.uv-mode.uv-browser-visible {
  grid-template-columns: minmax(320px, 32vw) minmax(0, 1fr);
}

.work-area.library-mode {
  grid-template-columns: minmax(0, 1fr);
}

.work-area.library-mode.library-browser-visible {
  grid-template-columns: minmax(320px, 32vw) minmax(0, 1fr);
}

.work-area.full-width-mode {
  grid-template-columns: minmax(0, 1fr);
}

.tool-pane {
  display: grid;
  grid-row: 1;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: none !important;
}

.tool-content {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: none !important;
}

.file-panel {
  grid-row: 1;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  gap: 8px;
  min-height: 0;
  overflow: hidden;
}
.file-panel.is-hidden {
  display: none;
}

.grid {
  display: grid;
  gap: 14px;
}
.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid.tight {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.panel {
  background: var(--panel);
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  padding: 14px;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 12px 30px var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  opacity: 0.85;
}

.evo-update-dialog {
  width: min(940px, 100vw - 80px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.evo-update-body,
.evo-update-content {
  display: grid;
  gap: 16px;
}

.evo-update-body {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.evo-update-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.evo-update-step {
  border: var(--border-width) solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.evo-update-step.is-active {
  border-color: var(--accent);
  color: var(--ink);
}
.evo-update-step.is-complete {
  border-color: var(--accent);
  color: var(--accent);
}

.evo-update-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-gutter: stable;
  line-height: 1.5;
}
.evo-update-content h3,
.evo-update-content p {
  margin: 0;
}

.evo-update-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.evo-update-checklist li {
  border: var(--border-width) solid var(--line);
  padding: 10px 12px;
  overflow-wrap: anywhere;
}
.evo-update-checklist li.is-ready {
  border-color: var(--accent);
  color: var(--accent);
}

.evo-update-folder-root {
  overflow-wrap: anywhere;
}

.evo-update-cleanup-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.evo-update-cleanup-list .evo-update-cleanup-package {
  grid-column: 1/-1;
}

.evo-update-warning {
  border-left: 3px solid var(--accent-3);
  padding: 10px 12px;
  background: rgba(var(--accent-rgb), 0.08);
}

.evo-update-actions {
  flex-wrap: wrap;
}

.category-overview {
  gap: 18px;
}

.settings-stack {
  display: grid;
  gap: 18px;
}

#tab-settings-home {
  height: 100%;
  min-height: 0;
}
#tab-settings-home > .category-overview {
  height: 100%;
  min-height: 0;
}
#tab-settings-home .settings-stack {
  grid-template-rows: minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.settings-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.about-features .chip-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
}

.about-features .chip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 18px;
}

.about-features .chip h3 {
  margin: 0;
}

.about-features .chip strong {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 42px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.about-feature-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #fff;
}
.about-feature-icon svg {
  width: 42px;
  height: 42px;
  color: #fff;
  stroke: #fff;
  fill: none;
}

.about-features .chip > span {
  color: #c7d0d9;
  line-height: 1.55;
}

.about-creator {
  align-content: start;
  height: 100%;
}
.about-creator .category-intro {
  max-width: none;
}

.about-creator-copy {
  display: grid;
  gap: 12px;
  color: #c7d0d9;
  line-height: 1.55;
}
.about-creator-copy p {
  margin: 0;
}
.about-creator-copy a {
  color: var(--accent-3);
}
.about-creator-copy a:hover {
  color: #fff;
}
.about-creator-copy .about-support-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border: var(--border-width) solid var(--accent-2-border);
  background: var(--accent-2);
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.about-creator-copy .about-support-button:hover {
  background: var(--accent-2-hover);
  color: #fff;
}

.about-creator-car {
  display: block;
  width: 100%;
  height: auto;
  margin: 8px 0 4px;
}

.about-car-compatibility {
  margin-top: 18px;
}

.car-compatibility-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.car-compatibility-progress {
  display: grid;
  gap: 8px;
  width: 100%;
}

.car-compatibility-progress-meta,
.car-compatibility-progress-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  color: #c7d0d9;
}

.car-compatibility-progress-meta strong {
  color: #fff;
}

.car-compatibility-progress-track {
  height: 8px;
  border: var(--border-width) solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.car-compatibility-progress-track span {
  display: block;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.car-compatibility-progress-counts {
  justify-content: flex-start;
  font-size: 13px;
  text-transform: uppercase;
}

.compatibility-pill,
.compatibility-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 8px;
  border: var(--border-width) solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #dce4ec;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.compatibility-pill.status-ready,
.compatibility-status.status-ready {
  border-color: rgba(95, 210, 154, 0.55);
  color: #92e5bb;
}

.compatibility-pill.status-paint_only,
.compatibility-status.status-paint_only {
  border-color: rgba(95, 210, 154, 0.55);
  color: #92e5bb;
}

.compatibility-pill.status-unsupported,
.compatibility-status.status-unsupported {
  border-color: rgba(228, 99, 99, 0.6);
  color: #f09a9a;
}

.compatibility-pill.status-unknown,
.compatibility-pill.is-loading,
.compatibility-status.status-unknown {
  border-color: rgba(150, 170, 190, 0.5);
  color: #c7d0d9;
}

.compatibility-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 2px 7px;
  border: var(--border-width) solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.035);
  color: #dce4ec;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}
.compatibility-inline-badge.compact {
  min-height: 22px;
  padding: 1px 6px;
  font-size: 12px;
}

.compatibility-inline-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
  font-weight: 900;
}

.compatibility-inline-badge.status-ready {
  border-color: rgba(95, 210, 154, 0.55);
  color: #92e5bb;
}

.compatibility-inline-badge.status-paint_only {
  border-color: rgba(95, 210, 154, 0.55);
  color: #92e5bb;
}

.compatibility-inline-badge.status-unsupported {
  border-color: rgba(228, 99, 99, 0.6);
  color: #f09a9a;
}

.compatibility-inline-badge.status-unknown {
  border-color: rgba(150, 170, 190, 0.5);
  color: #c7d0d9;
}

.workflow-compatibility {
  display: grid;
  gap: 4px;
  margin: 8px 0 10px;
  padding: 8px 0;
  border-top: var(--border-width) solid var(--line-soft);
  border-bottom: var(--border-width) solid var(--line-soft);
  color: var(--muted);
  font-size: 14px;
}
.workflow-compatibility.compact {
  margin: 0 0 8px;
  padding: 7px 0;
}

.workflow-compatibility[hidden] {
  display: none;
}

.workflow-compatibility-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.workflow-compatibility-main strong {
  min-width: 0;
  overflow: hidden;
  color: #dce4ec;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-compatibility-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-compatibility-note {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.car-compatibility-table-wrap {
  max-height: 520px;
  overflow: auto;
}

.car-compatibility-table th,
.car-compatibility-table td {
  vertical-align: top;
}
.car-compatibility-table td:nth-child(1) {
  min-width: 260px;
}
.car-compatibility-table td:nth-child(3),
.car-compatibility-table td:nth-child(4) {
  color: #c7d0d9;
  line-height: 1.45;
}

.settings-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(220px, 280px);
  gap: 10px;
  align-items: end;
}

.settings-inline-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.import-export-panel {
  overflow: auto;
}

.import-export-stack {
  display: grid;
  gap: 18px;
  min-height: 0;
}

.skin-pack-card,
.transfer-bundle-card {
  align-content: start;
}

#tab-my-skin-packages .transfer-bundle-card {
  grid-template-rows: auto auto auto minmax(0, 1fr);
  min-height: 0;
}

.skin-pack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.skin-pack-pane {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}
.skin-pack-pane h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.15;
  text-transform: uppercase;
}

.skin-pack-category-list {
  display: grid;
  gap: 7px;
}

.skin-pack-category-row,
.transfer-livery-category-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.2);
  background: rgba(0, 0, 0, 0.22);
  color: #dce4ec;
}
.skin-pack-category-row input,
.transfer-livery-category-head input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.skin-pack-category-row {
  cursor: pointer;
}
.skin-pack-category-row .skin-pack-category-check {
  position: relative;
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  height: 16px;
  max-height: 16px;
  min-height: 16px;
  margin-top: 2px;
  appearance: none;
  align-self: start;
  justify-self: start;
  flex: 0 0 16px;
  padding: 0;
  border: var(--border-width) solid #ff3b35;
  border-radius: 50%;
  background: #050505;
  cursor: pointer;
}
.skin-pack-category-row .skin-pack-category-check::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: transparent;
}
.skin-pack-category-row .skin-pack-category-check:checked::after {
  background: #ff3b35;
}
.skin-pack-category-row .skin-pack-category-check:focus-visible {
  outline: var(--border-width) solid rgba(255, 59, 53, 0.75);
  outline-offset: 2px;
}

.transfer-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transfer-tabs {
  display: inline-flex;
  justify-self: start;
  border: var(--border-width) solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.transfer-tabs button {
  border: 0;
  border-right: var(--border-width) solid var(--line);
  background: transparent;
}
.transfer-tabs button:last-child {
  border-right: 0;
}
.transfer-tabs button.active {
  background: rgba(23, 195, 178, 0.16);
  color: #fff;
}

.transfer-selection-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.transfer-selection-actions[hidden] {
  display: none;
}

.transfer-panel {
  display: grid;
  gap: 12px;
}
.transfer-panel[hidden] {
  display: none;
}

#tab-my-skin-packages .transfer-panel {
  min-height: 0;
}

#tab-my-skin-packages #transferExportPanel {
  grid-template-rows: minmax(0, 1fr) auto auto auto auto;
}

#tab-my-skin-packages #transferImportPanel {
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
}

.transfer-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

#tab-my-skin-packages .transfer-list {
  min-height: 0;
  align-content: start;
}

#tab-my-skin-packages .transfer-bundle-card .transfer-list {
  max-height: 520px;
}

.transfer-selection-summary {
  display: grid;
  gap: 5px;
  min-height: 42px;
  padding: 9px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.32);
  background: rgba(var(--accent-2-rgb), 0.055);
}
.transfer-selection-summary > strong {
  color: #ffd84a;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.1;
  text-transform: uppercase;
}
.transfer-selection-summary > span {
  color: #dce4ec;
  font-size: 13px;
  font-weight: 700;
}

.settings-maintenance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.error-logs-card {
  align-content: start;
}

.restore-default-card {
  align-content: start;
}

.deleted-liveries-card {
  align-content: start;
}

.deleted-liveries-list {
  display: grid;
  gap: 8px;
  grid-auto-rows: max-content;
  align-content: start;
  max-height: 340px;
  overflow: auto;
}

.deleted-liveries-empty,
.deleted-livery-row,
.deleted-livery-detail {
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.deleted-liveries-empty {
  padding: 10px;
  color: #c7d0d9;
  font-size: 13px;
}

.deleted-livery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  height: auto;
  min-height: 58px;
  padding: 10px;
  color: #dce4ec;
  line-height: 1.2;
  text-align: left;
  overflow: visible;
  cursor: pointer;
}
.deleted-livery-row.is-selected {
  border-color: rgba(45, 212, 127, 0.62);
  background: rgba(45, 212, 127, 0.08);
}
.deleted-livery-row.has-conflict {
  border-color: rgba(247, 201, 72, 0.55);
}

.deleted-livery-main,
.deleted-livery-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.deleted-livery-main strong {
  overflow: hidden;
  color: #fff;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deleted-livery-main span {
  overflow: hidden;
  color: #aab5bf;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deleted-livery-meta {
  justify-items: end;
  color: #c7d0d9;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.deleted-livery-detail {
  display: grid;
  gap: 8px;
  margin-top: -8px;
  padding: 10px;
}
.deleted-livery-detail[hidden] {
  display: none;
}
.deleted-livery-detail > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
}
.deleted-livery-detail strong {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}
.deleted-livery-detail span,
.deleted-livery-detail code {
  min-width: 0;
  color: #dce4ec;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.official-liveries-card {
  align-content: start;
}

.official-liveries-paths {
  display: grid;
  gap: 8px;
}
.official-liveries-paths div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.official-liveries-paths strong {
  color: #dce5ee;
  font-size: 12px;
  text-transform: uppercase;
}
.official-liveries-paths code {
  min-width: 0;
  overflow: hidden;
  color: #c7d0d9;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-liveries-details {
  margin-top: 0;
}

.official-livery-row .home-health-body {
  gap: 5px;
}

.official-livery-message-list {
  display: grid;
  gap: 3px;
  margin: 2px 0 0;
  padding-left: 18px;
  color: #ffe08a;
  font-size: 12px;
  line-height: 1.35;
}

.transfer-category,
.transfer-category-head,
.transfer-item,
.transfer-empty {
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.transfer-category {
  display: grid;
  gap: 0;
  min-width: 0;
}
.transfer-category.is-disabled {
  opacity: 0.58;
}

.transfer-category-head,
.transfer-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  color: #dce4ec;
}
.transfer-category-head input,
.transfer-item input {
  width: auto;
  min-height: 0;
  margin-top: 3px;
}

.transfer-category > .transfer-category-head {
  border: 0;
  background: transparent;
}

.transfer-category-copy,
.transfer-item-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.transfer-category-copy strong,
.transfer-category-copy small,
.transfer-item-copy strong,
.transfer-item-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}
.transfer-category-copy small,
.transfer-item-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.transfer-items {
  display: grid;
  gap: 6px;
  padding: 0 9px 9px 34px;
}

.transfer-livery-category-group {
  display: grid;
  gap: 6px;
  padding: 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.28);
  background: rgba(var(--accent-2-rgb), 0.055);
}

.transfer-livery-category-head {
  border-color: rgba(var(--accent-2-rgb), 0.22);
  background: rgba(0, 0, 0, 0.2);
}
.transfer-livery-category-head .transfer-category-copy strong {
  color: #ffd84a;
}

.transfer-livery-category-items {
  display: grid;
  gap: 6px;
  padding-left: 24px;
}

.transfer-item {
  background: rgba(0, 0, 0, 0.14);
}

.transfer-path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.transfer-empty {
  padding: 10px;
  color: #c7d0d9;
  font-size: 13px;
  line-height: 1.4;
}
.transfer-empty.is-warning {
  border-color: rgba(247, 201, 72, 0.52);
  background: rgba(247, 201, 72, 0.07);
  color: #ffe7a3;
}

.transfer-progress {
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.transfer-progress .package-progress-bar {
  border-radius: 0;
}

.transfer-progress-path {
  min-height: 34px;
  max-height: 78px;
  overflow: auto;
  padding: 8px 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #05080c;
  color: #dce3e8;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

.root-status {
  min-height: 30px;
  padding: 7px 9px;
  border: var(--border-width) solid rgba(150, 170, 190, 0.34);
  background: rgba(255, 255, 255, 0.035);
  color: #c7d0d9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.settings-form .root-status {
  grid-column: 1/-1;
}

.root-status.is-ok {
  border-color: rgba(45, 212, 127, 0.62);
  background: rgba(45, 212, 127, 0.08);
  color: #caffdd;
}

.root-status.is-warning {
  border-color: rgba(247, 201, 72, 0.64);
  background: rgba(247, 201, 72, 0.08);
  color: #ffe7a3;
}

.root-status.is-error {
  border-color: rgba(var(--accent-2-rgb), 0.62);
  background: rgba(var(--accent-2-rgb), 0.08);
  color: #ffd5d7;
}

.home-setup-panel {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.home-help-guide-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 3px solid #ffca52;
  background: rgba(255, 255, 255, 0.035);
}

.home-help-guide-copy {
  display: grid;
  gap: 6px;
  max-width: 920px;
}

.home-help-guide-copy h2 {
  margin: 0;
  color: var(--accent-3);
  font-size: var(--ui-card-title-size);
  line-height: 1.12;
  text-transform: uppercase;
}

.home-help-guide-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.home-setup-gate {
  margin-bottom: 14px;
}

.home-setup-block {
  display: grid;
  gap: 10px;
}

.home-step-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  min-height: 290px;
  height: 100%;
  padding: 16px;
  border: var(--border-width) solid var(--line);
  background: rgba(15, 19, 24, 0.72);
}
.home-step-card.is-complete {
  border-color: rgba(45, 212, 127, 0.78);
  background: rgba(20, 31, 28, 0.78);
  box-shadow: inset 0 0 0 1px rgba(45, 212, 127, 0.18);
}
.home-step-card.is-blocked {
  border-color: rgba(247, 201, 72, 0.34);
}

body[data-workflow-scope=advanced] .home-requirement-card {
  grid-column: 1/-1;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  height: auto;
  padding: 12px 14px;
}
body[data-workflow-scope=advanced] .home-requirement-card .home-step-head {
  align-items: center;
}
body[data-workflow-scope=advanced] .home-requirement-card .home-step-number {
  min-width: 58px;
  height: 46px;
  font-size: 18px;
}
body[data-workflow-scope=advanced] .home-requirement-card .home-step-head p {
  margin-top: 2px;
}
body[data-workflow-scope=advanced] .home-requirement-card .home-step-body {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
body[data-workflow-scope=advanced] .home-requirement-card .home-step-actions {
  flex-wrap: wrap;
}

body[data-workflow-scope=advanced] .home-step-card:is([data-setup-step=storage],
[data-setup-step=cars]) {
  gap: 10px;
  min-height: 230px;
  padding: 14px;
}

.home-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.home-step-head h2 {
  margin: 0;
  font-size: 18px;
}
.home-step-head p {
  margin: 4px 0 0;
  color: #aeb9c4;
  font-size: 14px;
  line-height: 1.4;
}

.home-step-number {
  display: grid;
  place-items: center;
  min-width: 76px;
  height: 68px;
  border: var(--border-width) solid rgba(23, 195, 178, 0.5);
  color: #9de8df;
  font-size: 26px;
  font-weight: 900;
}

.home-step-status,
.home-health-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(150, 170, 190, 0.4);
  color: #c7d0d9;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-step-status.is-ok,
.home-health-summary-pill.is-ok {
  border-color: rgba(45, 212, 127, 0.62);
  background: rgba(45, 212, 127, 0.08);
  color: #caffdd;
}

.home-step-status.is-warning,
.home-health-summary-pill.is-warning {
  border-color: rgba(247, 201, 72, 0.64);
  background: rgba(247, 201, 72, 0.08);
  color: #ffe7a3;
}

.home-step-status.is-error,
.home-health-summary-pill.is-error {
  border-color: rgba(var(--accent-2-rgb), 0.62);
  background: rgba(var(--accent-2-rgb), 0.08);
  color: #ffd5d7;
}

.home-step-status.is-pending,
.home-health-summary-pill.is-pending {
  background: rgba(255, 255, 255, 0.035);
}

.home-step-body {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.home-content-package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.official-setup-card {
  border-color: rgba(23, 195, 178, 0.38);
}

.official-setup-paths {
  display: grid;
  gap: 8px;
}

.official-setup-paths div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.official-setup-paths strong {
  color: #dce5ee;
  font-size: 12px;
  text-transform: uppercase;
}

.official-setup-paths code,
.official-setup-paths span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #c7d0d9;
  font-size: 13px;
  line-height: 1.35;
}

.home-step-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.home-root-save-pulse,
.setup-action-pulse {
  animation: my-skin-game-sync-pulse 1.05s ease-in-out infinite;
}

.home-step-details {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-top: var(--border-width) solid var(--line-soft);
  padding-top: 8px;
}
.home-step-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.home-health-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-cache-notice {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 8px;
  border: var(--border-width) solid rgba(247, 201, 72, 0.54);
  background: rgba(247, 201, 72, 0.07);
  color: #ffe7a3;
  font-size: 13px;
  line-height: 1.35;
}
.home-cache-notice strong {
  color: #fff1bd;
  text-transform: uppercase;
}

.home-car-analysis {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: var(--border-width) solid var(--line-soft);
}

.home-storage-health {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: var(--border-width) solid var(--line-soft);
}

.health-intro {
  margin: 0;
  color: #c7d0d9;
  font-size: 13px;
  line-height: 1.45;
}

.home-health-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}
.home-health-list.is-idle {
  grid-template-columns: 1fr;
}

.home-health-empty {
  padding: 9px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #c7d0d9;
  font-size: 13px;
}

.home-health-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.home-health-row.is-ok {
  border-color: rgba(45, 212, 127, 0.45);
}
.home-health-row.is-warning {
  border-color: rgba(247, 201, 72, 0.55);
}
.home-health-row.is-error {
  border-color: rgba(var(--accent-2-rgb), 0.55);
}

.home-health-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: var(--border-width) solid currentColor;
  color: #dce5ee;
  font-size: 12px;
  font-weight: 900;
}

.home-health-row.is-ok .home-health-badge {
  color: #9cffbf;
}

.home-health-row.is-warning .home-health-badge {
  color: #ffe08a;
}

.home-health-row.is-error .home-health-badge {
  color: #ffb0b6;
}

.home-health-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.home-health-body p,
.home-health-body small {
  margin: 0;
  color: #aab5bf;
  font-size: 12px;
  line-height: 1.35;
}
.home-health-body code {
  overflow: hidden;
  color: #dce5ee;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-health-title {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  color: #fff;
  font-size: 13px;
}
.home-health-title strong,
.home-health-title span {
  min-width: 0;
}
.home-health-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-health-title span {
  color: #c7d0d9;
  font-weight: 800;
  text-transform: uppercase;
}

.home-package-progress {
  margin-top: 0;
}

.category-intro {
  margin: -6px 0 0;
  max-width: 860px;
  color: #c7d0d9;
  line-height: 1.55;
}

.output-hint {
  margin: -2px 0 4px;
  padding: 7px 9px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #aeb9c4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

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

.overview-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #10161d;
}
.overview-card img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  max-height: 220px;
  object-fit: cover;
  border-radius: 0px;
  border: var(--border-width) solid var(--line);
  background: #0d1116;
}

.overview-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}
.overview-copy h2 {
  margin: 0;
  font-size: 30px;
}
.overview-copy p {
  margin: 0;
  color: #c7d0d9;
  line-height: 1.5;
}
.overview-copy button {
  justify-self: start;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.panel-head.compact {
  margin-bottom: 6px;
}

h1,
h2 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

h1 {
  font-size: 20px;
  color: #fff;
  color: var(--accent-3);
}

h2 {
  font-size: 16px;
  color: #fff;
  color: var(--accent-3);
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
  gap: 8px;
  margin-bottom: 10px;
}

.home-package-action-row {
  grid-template-columns: minmax(0, 1fr) auto auto auto;
}

.path-file-name {
  grid-column: 1/-1;
  min-height: 18px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-subsection {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.panel-subsection h2 {
  margin: 0;
  font-size: 15px;
}

.textarea-label,
.stacked-field {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

textarea {
  min-height: 84px;
  resize: vertical;
}

.dynamic-path-list {
  display: grid;
  gap: 8px;
}

.dynamic-path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.skin-tool-row {
  margin-top: 10px;
}

.skin-project-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.skin-project-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 86px;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.skin-project-option input {
  margin-top: 4px;
}
.skin-project-option span {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.skin-project-option strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}
.skin-project-option small {
  color: #c7d0d9;
  line-height: 1.35;
}
.skin-project-option:has(input:checked) {
  border-color: rgba(23, 195, 178, 0.75);
  background: rgba(23, 195, 178, 0.08);
}

.skin-template-start {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: var(--border-width) solid rgba(23, 195, 178, 0.6);
  border-left: 3px solid var(--accent);
  background: rgba(23, 195, 178, 0.06);
}

.skin-template-copy {
  display: grid;
  gap: 6px;
  max-width: 980px;
}
.skin-template-copy strong {
  color: #fff;
  font-size: 20px;
}
.skin-template-copy span,
.skin-template-copy small {
  color: #c7d0d9;
  line-height: 1.45;
}
.skin-template-copy small {
  color: var(--muted);
}
.skin-template-copy code {
  color: #fff;
  padding: 1px 4px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(0, 0, 0, 0.24);
}

.skin-cardesign-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.skin-cardesign-picker input {
  border-color: rgba(23, 195, 178, 0.8);
  background: #0d1718;
}

.skin-visual-variant-info {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: var(--border-width) solid rgba(23, 195, 178, 0.52);
  background: rgba(23, 195, 178, 0.085);
}
.skin-visual-variant-info[hidden] {
  display: none;
}
.skin-visual-variant-info.is-unknown {
  border-color: rgba(247, 201, 72, 0.55);
  background: rgba(247, 201, 72, 0.075);
}

.skin-visual-variant-kicker {
  color: #9de8df;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.skin-visual-variant-label {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.skin-visual-variant-meta {
  min-height: 16px;
  color: #c7d0d9;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.skin-paint-variant-row {
  display: grid;
  gap: 6px;
  color: #dbe6ea;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.skin-paint-variant-row[hidden] {
  display: none;
}
.skin-paint-variant-row select {
  min-height: 38px;
  border-color: rgba(23, 195, 178, 0.65);
  background: #0d1718;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.skin-template-toggle {
  justify-self: start;
  border-color: rgba(23, 195, 178, 0.45);
  background: rgba(23, 195, 178, 0.1);
}

.skin-template-advanced {
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.skin-template-advanced[hidden] {
  display: none;
}

.skin-identity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.skin-identity-grid .skin-name-field,
.skin-identity-grid .skin-id-preview,
.skin-identity-grid .skin-author-field,
.skin-identity-grid .skin-description-field,
.skin-identity-grid .skin-id-override {
  width: 100%;
  min-width: 0;
}

.official-project-fields {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.official-project-fields[hidden] {
  display: none;
}

body[data-workflow-scope=advanced] #tab-skin.active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

body[data-workflow-scope=advanced] .tool-content:has(#tab-skin.active) {
  overflow: hidden;
}

body[data-workflow-scope=advanced] #tab-skin > .panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body[data-workflow-scope=advanced] #skinIdentityAnchor,
body[data-workflow-scope=advanced] #skinCreatorActionsAnchor {
  display: none;
}

body[data-workflow-scope=official] #tab-skin.active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

body[data-workflow-scope=official] .tool-content:has(#tab-skin.active) {
  overflow: hidden;
}

body[data-workflow-scope=official] #tab-skin > .panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body[data-workflow-scope=official] #skinIdentityAnchor,
body[data-workflow-scope=official] #skinCreatorActionsAnchor {
  display: none;
}

body[data-workflow-scope=official] #officialExternalProjectFields {
  grid-row: 2;
  min-height: 0;
}

.official-creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.official-car-catalog,
.official-creator-details {
  min-width: 0;
  align-self: start;
}

.official-creator-details {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-2-rgb), 0.72) rgba(0, 0, 0, 0.18);
}

.official-car-catalog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.official-car-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.official-car-search {
  flex: 1 1 260px;
  min-width: 180px;
  max-width: 360px;
  height: 30px;
  padding: 6px 10px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6ea;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.official-car-search::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.official-car-search:focus {
  border-color: rgba(23, 195, 178, 0.7);
  outline: none;
}

.official-car-search::-webkit-search-cancel-button {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.official-car-search::-webkit-search-cancel-button:hover {
  background: #fff;
}

.official-car-toolbar span {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.official-car-toolbar button {
  min-height: 30px;
  padding: 6px 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6ea;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.official-car-toolbar button.active, .official-car-toolbar button:hover, .official-car-toolbar button:focus-visible {
  border-color: rgba(23, 195, 178, 0.7);
  background: rgba(23, 195, 178, 0.12);
  color: var(--accent-3);
}

.official-creator-panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

body:not([data-workflow-scope=official]) .official-creator-panel-actions {
  display: none;
}

.official-creator-panel-actions .home-health-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.official-car-grid {
  --official-car-gap: 10px;
  --official-card-width: calc((100% - 40px) / 5);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--official-car-gap);
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-gutter: stable;
}

.official-car-group {
  display: grid;
  gap: 8px;
  flex: 1 0 100%;
  min-width: 0;
}

.official-car-group-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 3px 0 5px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.official-car-group-head strong {
  color: var(--accent-3);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.official-car-group-body {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--official-car-gap);
  min-width: 0;
}

@media (max-width: 1700px) {
  .official-car-grid {
    --official-card-width: calc((100% - 30px) / 4);
  }
}
@media (max-width: 1360px) {
  .official-car-grid {
    --official-card-width: calc((100% - 20px) / 3);
  }
}
.official-creator-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.official-creator-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.official-creator-form input,
.official-creator-form select {
  width: 100%;
}

.official-saved-car-picker {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.official-saved-car-picker.is-automatic {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(93, 214, 156, 0.36);
  background: rgba(14, 45, 34, 0.72);
}

.official-saved-car-picker.is-automatic span,
.official-saved-car-picker.is-automatic small {
  color: var(--text-muted);
}

.official-saved-car-picker.is-automatic strong {
  color: #74e6aa;
}

.official-saved-car-picker select {
  grid-column: 1;
}

.official-saved-car-picker button {
  grid-column: 2;
  grid-row: 2;
  min-height: 38px;
  white-space: nowrap;
}

.official-vehicle-variant-row small {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.official-selected-car {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-bottom: 6px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.official-selected-car span {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.official-selected-car strong {
  color: var(--accent-3);
  font-size: 36px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.official-selected-car small {
  color: #aeb9c2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.official-creator-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 0;
}

.official-creator-identity .skin-id-preview {
  min-height: 36px;
}

.official-creator-actions {
  display: grid;
  margin-top: 2px;
}

.official-creator-actions .primary {
  width: 100%;
  justify-content: center;
}

.creator-preview-asset-status {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
}
.creator-preview-asset-status span {
  color: #aeb9c2;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.creator-preview-asset-status strong {
  color: #dbe6ea;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.creator-preview-asset-status small {
  color: #aeb9c2;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.creator-preview-asset-status.is-ready {
  border-color: rgba(163, 217, 119, 0.58);
  background: rgba(163, 217, 119, 0.08);
}
.creator-preview-asset-status.is-ready strong {
  color: #c7f0a4;
}
.creator-preview-asset-status.is-warning, .creator-preview-asset-status.is-loading {
  border-color: rgba(247, 201, 72, 0.58);
  background: rgba(247, 201, 72, 0.075);
}
.creator-preview-asset-status.is-warning strong, .creator-preview-asset-status.is-loading strong {
  color: #f3d46d;
}
.creator-preview-asset-status.is-idle {
  opacity: 0.82;
}

.official-car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 var(--official-card-width);
  max-width: var(--official-card-width);
  min-width: 0;
  width: auto;
  padding: 0;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0;
  background: #05070a;
  color: #dbe6ea;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.official-car-card:hover, .official-car-card:focus-visible {
  border-color: rgba(23, 195, 178, 0.7);
  background: #05070a;
}
.official-car-card.active {
  border-color: var(--accent);
  background: #05070a;
}
.official-car-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
}

.official-car-favorite-toggle {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: var(--border-width) solid transparent;
  background: rgba(0, 0, 0, 0.42);
  color: #aeb9c2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.official-car-favorite-toggle.is-active, .official-car-favorite-toggle:hover, .official-car-favorite-toggle:focus-visible {
  color: #f3d46d;
  background: rgba(0, 0, 0, 0.56);
  outline: none;
}

.official-car-thumb-frame {
  position: relative;
  min-width: 0;
  background: #111820;
}

.official-car-thumb-pills {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 12px);
  pointer-events: none;
}

.official-car-thumb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 10, 0.74);
  color: #dbe6ea;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.official-car-thumb-pill.is-race {
  border-color: rgba(255, 202, 82, 0.58);
  color: #ffdd88;
}
.official-car-thumb-pill.is-road {
  border-color: rgba(23, 195, 178, 0.58);
  color: var(--accent-3);
}
.official-car-thumb-pill.is-ready, .official-car-thumb-pill.is-variants {
  border-color: rgba(163, 217, 119, 0.5);
  color: #c7f0a4;
}
.official-car-thumb-pill.is-warning {
  border-color: rgba(255, 113, 113, 0.58);
  color: #ff9a9a;
}

.official-car-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #111820;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.official-car-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 11px;
  background: #05070a;
}
.official-car-info strong,
.official-car-info small,
.official-car-info span {
  overflow-wrap: anywhere;
}
.official-car-info strong {
  color: var(--accent-3);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}
.official-car-info small,
.official-car-info span {
  color: #aeb9c2;
  font-size: 13px;
  line-height: 1.25;
}

.advanced-creator-panel-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

body[data-workflow-scope=official] .advanced-creator-panel-actions {
  display: none;
}

.advanced-creator-panel-actions .home-health-summary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  min-height: 34px;
  padding-top: 0;
  padding-bottom: 0;
  line-height: 1;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.advanced-creator-fields {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  align-content: start;
  align-items: stretch;
  gap: 0;
  margin-top: 0;
  padding: 0;
  min-height: 0;
  height: 100%;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.advanced-creator-fields[hidden] {
  display: none;
}

body[data-workflow-scope=advanced] #advancedCreatorFields {
  grid-row: 2;
  min-height: 0;
}

.advanced-creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  align-content: start;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.advanced-car-catalog,
.advanced-creator-details {
  min-width: 0;
  align-self: start;
}

.advanced-creator-details {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-2-rgb), 0.72) rgba(0, 0, 0, 0.18);
}

.advanced-car-catalog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.advanced-car-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.advanced-car-search {
  flex: 1 1 260px;
  min-width: 180px;
  max-width: 360px;
  height: 30px;
  padding: 6px 10px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6ea;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.advanced-car-search::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.advanced-car-search:focus {
  border-color: rgba(23, 195, 178, 0.7);
  outline: none;
}

.advanced-car-toolbar span {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.advanced-car-toolbar button {
  min-height: 30px;
  padding: 6px 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe6ea;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.advanced-car-toolbar button.active, .advanced-car-toolbar button:hover, .advanced-car-toolbar button:focus-visible {
  border-color: rgba(23, 195, 178, 0.7);
  background: rgba(23, 195, 178, 0.12);
  color: var(--accent-3);
}

.advanced-car-grid {
  --advanced-car-gap: 10px;
  --advanced-card-width: calc((100% - 40px) / 5);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--advanced-car-gap);
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
  scrollbar-gutter: stable;
}

.advanced-car-group {
  display: grid;
  gap: 8px;
  flex: 1 0 100%;
  min-width: 0;
}

.advanced-car-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding: 3px 0 5px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.advanced-car-group-head strong {
  color: var(--accent-3);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.advanced-car-group-head span {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.advanced-car-group-body {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  align-items: flex-start;
  gap: var(--advanced-car-gap);
  min-width: 0;
}

@media (max-width: 1700px) {
  .advanced-car-grid {
    --advanced-card-width: calc((100% - 30px) / 4);
  }
}
@media (max-width: 1360px) {
  .advanced-car-grid {
    --advanced-card-width: calc((100% - 20px) / 3);
  }
}
.advanced-creator-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.advanced-creator-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.advanced-creator-form input,
.advanced-creator-form select {
  width: 100%;
}

.advanced-creator-identity {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 0;
}

.advanced-creator-identity .skin-id-preview {
  min-height: 36px;
}

.advanced-creator-actions {
  display: grid;
  margin-top: 2px;
}

.advanced-creator-actions .primary {
  width: 100%;
  justify-content: center;
}

.advanced-creator-template-row small {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.creator-option-group {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.creator-option-group[hidden] {
  display: none;
}

.creator-option-group-head {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.creator-option-group-head span {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-option-group-head small {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.creator-option-list {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.creator-option-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.035);
  color: #dbe6ea;
  cursor: pointer;
}

.creator-option-card:hover,
.creator-option-card:focus-within,
.creator-option-card.active {
  border-color: rgba(23, 195, 178, 0.7);
  background: rgba(23, 195, 178, 0.08);
}

.creator-option-card.has-thumb {
  grid-template-columns: 18px 72px minmax(0, 1fr);
  align-items: center;
}

.creator-option-card.official-variant-option {
  grid-template-columns: minmax(0, 1fr);
}

.creator-option-card.official-variant-option.has-thumb {
  grid-template-columns: 72px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
}

.creator-option-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.creator-option-control {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(5, 7, 10, 0.72);
}

.creator-option-card input:checked + .creator-option-control {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px #05070a;
  background: var(--accent);
}

.creator-option-card.has-thumb .creator-option-control {
  margin-top: 0;
}

.creator-option-thumb {
  display: block;
  width: 72px;
  height: 72px;
  aspect-ratio: 1/1;
  min-width: 0;
  overflow: hidden;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 7, 10, 0.72);
}

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

.creator-template-empty {
  padding: 9px 10px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: #aeb9c2;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}
.creator-template-empty.is-warning {
  border-color: rgba(247, 201, 72, 0.5);
  background: rgba(247, 201, 72, 0.065);
  color: #f3d46d;
}

.creator-template-option.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
}

.creator-option-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.creator-option-copy strong {
  color: var(--accent-3);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.creator-option-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.creator-option-meta span {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  color: #aeb9c2;
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.creator-option-meta b {
  color: #dbe6ea;
  font-weight: 900;
  text-transform: uppercase;
}

.advanced-selected-car {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding-bottom: 6px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.advanced-selected-car span {
  color: #aeb9c2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.advanced-selected-car strong {
  color: var(--accent-3);
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.advanced-selected-car small {
  color: #aeb9c2;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.advanced-car-card {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 var(--advanced-card-width);
  max-width: var(--advanced-card-width);
  min-width: 0;
  padding: 0;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0;
  background: #05070a;
  color: #dbe6ea;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}
.advanced-car-card:hover, .advanced-car-card:focus-visible {
  border-color: rgba(23, 195, 178, 0.7);
  background: #05070a;
}
.advanced-car-card.active {
  border-color: var(--accent);
  background: #05070a;
}

.advanced-car-favorite-toggle {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: var(--border-width) solid transparent;
  background: rgba(0, 0, 0, 0.42);
  color: #aeb9c2;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.advanced-car-favorite-toggle.is-active, .advanced-car-favorite-toggle:hover, .advanced-car-favorite-toggle:focus-visible {
  color: #f3d46d;
  background: rgba(0, 0, 0, 0.56);
  outline: none;
}

.advanced-car-thumb-frame {
  position: relative;
  min-width: 0;
  background: #111820;
}

.advanced-car-thumb-pills {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 12px);
  pointer-events: none;
}

.advanced-car-thumb-pill {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 3px 6px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 7, 10, 0.74);
  color: #dbe6ea;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.advanced-car-thumb-pill.is-race {
  border-color: rgba(255, 202, 82, 0.58);
  color: #ffdd88;
}
.advanced-car-thumb-pill.is-road {
  border-color: rgba(23, 195, 178, 0.58);
  color: var(--accent-3);
}
.advanced-car-thumb-pill.is-ready, .advanced-car-thumb-pill.is-variants {
  border-color: rgba(163, 217, 119, 0.5);
  color: #c7f0a4;
}
.advanced-car-thumb-pill.is-warning {
  border-color: rgba(255, 113, 113, 0.58);
  color: #ff9a9a;
}

.advanced-car-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #111820;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.advanced-car-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px 11px;
  background: #05070a;
}

.advanced-car-info strong,
.advanced-car-info small,
.advanced-car-info span {
  overflow-wrap: anywhere;
}

.advanced-car-info strong {
  color: var(--accent-3);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
}

.advanced-car-info small,
.advanced-car-info span {
  color: #aeb9c2;
  font-size: 13px;
  line-height: 1.25;
}

.skin-id-preview {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
  color: #c7d0d9;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.skin-id-override[hidden] {
  display: none;
}

.numberplate-creator-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 10px;
  align-items: end;
  padding: 14px;
  border: var(--border-width) solid rgba(23, 195, 178, 0.45);
  border-left: 3px solid var(--accent);
  background: rgba(23, 195, 178, 0.045);
}
.numberplate-creator-box label {
  min-width: 0;
}
.numberplate-creator-box .inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
}
.numberplate-creator-box .inline-check input {
  width: auto;
  min-height: 0;
}

.numberplate-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: var(--border-width) solid var(--line-soft);
}
.numberplate-section h2,
.numberplate-section h3 {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0;
}
.numberplate-section h2 {
  font-size: 18px;
}
.numberplate-section h3 {
  color: var(--muted);
  font-size: 14px;
}

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

.numberplate-asset-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.numberplate-asset-preview {
  width: 92px;
  height: 52px;
  object-fit: contain;
  border: var(--border-width) solid var(--line-soft);
  background: #0c0f14;
}

.numberplate-asset-copy {
  min-width: 0;
}

.numberplate-asset-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}

.numberplate-asset-action {
  width: 100%;
}

[data-loading-surface] {
  position: relative;
}

.tool-loading {
  display: grid;
  place-items: center;
  gap: 10px;
  min-width: 220px;
  min-height: 0;
  padding: 22px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #dce4ec;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
}
.tool-loading .button-spinner {
  width: 22px;
  height: 22px;
}

.tool-loading-overlay {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.skin-tool-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.03);
}
.skin-tool-status span {
  color: var(--muted);
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
  word-break: break-all;
}

.actions,
.toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.toggles label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 15px;
}
.toggles label.is-disabled {
  opacity: 0.5;
}
.toggles input {
  width: auto;
  min-height: 0;
}

.crumbs {
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  border-bottom: var(--border-width) solid var(--line);
  margin-bottom: 6px;
  padding-bottom: 6px;
}
.crumbs button {
  min-height: 28px;
}

.browser-favorites {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}
.browser-favorites label {
  min-width: 0;
}
.browser-favorites select {
  min-width: 0;
}

.favorite-col,
.favorite-cell,
.compat-col,
.compat-cell {
  width: 34px;
  text-align: center;
}

.favorite-col,
.compat-col {
  padding-left: 4px;
  padding-right: 4px;
}

.compat-col,
.compat-cell {
  width: 26px;
  min-width: 26px;
  max-width: 26px;
  padding-left: 2px;
  padding-right: 2px;
}

.browser-compat-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: var(--border-width) solid var(--line);
  border-radius: 0;
  color: #c7d0d9;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.browser-scope-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  overflow: hidden;
  color: #707985;
  font-size: 0;
}
.browser-scope-status::before {
  content: "";
  width: 13px;
  height: 13px;
  background: currentColor;
}
.browser-scope-status.is-locked::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 7V5.5C5 3.57 6.57 2 8.5 2S12 3.57 12 5.5V7h.5A1.5 1.5 0 0 1 14 8.5v4A1.5 1.5 0 0 1 12.5 14h-8A1.5 1.5 0 0 1 3 12.5v-4A1.5 1.5 0 0 1 4.5 7H5Zm1.5 0h4V5.5a2 2 0 0 0-4 0V7Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 7V5.5C5 3.57 6.57 2 8.5 2S12 3.57 12 5.5V7h.5A1.5 1.5 0 0 1 14 8.5v4A1.5 1.5 0 0 1 12.5 14h-8A1.5 1.5 0 0 1 3 12.5v-4A1.5 1.5 0 0 1 4.5 7H5Zm1.5 0h4V5.5a2 2 0 0 0-4 0V7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.browser-scope-status.is-unlocked {
  color: #8a95a1;
}
.browser-scope-status.is-unlocked::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.5 7h6A1.5 1.5 0 0 1 14 8.5v4a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 12.5v-4A1.5 1.5 0 0 1 4.5 7H5V5.5C5 3.57 6.57 2 8.5 2c1.57 0 2.9 1.04 3.34 2.47l-1.43.43A2 2 0 0 0 6.5 5.5V7Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M6.5 7h6A1.5 1.5 0 0 1 14 8.5v4a1.5 1.5 0 0 1-1.5 1.5h-8A1.5 1.5 0 0 1 3 12.5v-4A1.5 1.5 0 0 1 4.5 7H5V5.5C5 3.57 6.57 2 8.5 2c1.57 0 2.9 1.04 3.34 2.47l-1.43.43A2 2 0 0 0 6.5 5.5V7Z'/%3E%3C/svg%3E") center/contain no-repeat;
}

:root.is-debug-mode .browser-scope-status {
  color: #c7d0d9;
}

.browser-compat-status.status-ready {
  border-color: rgba(95, 210, 154, 0.55);
  color: #92e5bb;
}

.browser-compat-status.status-paint_only {
  border-color: rgba(95, 210, 154, 0.55);
  color: #92e5bb;
}

.browser-compat-status.status-liverylab_livery {
  border-color: #f7c948;
  color: #f7c948;
}

.browser-compat-status.status-unsupported {
  border-color: rgba(228, 99, 99, 0.6);
  color: #f09a9a;
}

.browser-compat-status.status-unknown {
  border-color: rgba(150, 170, 190, 0.5);
  color: #c7d0d9;
}

.browser-analysis-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 9px;
  padding: 9px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.browser-analysis-legend[hidden] {
  display: none;
}
.browser-analysis-legend > span {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  min-width: 0;
}
.browser-analysis-legend .browser-compat-status {
  grid-row: 1/span 2;
}
.browser-analysis-legend strong,
.browser-analysis-legend small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.browser-analysis-legend strong {
  color: #d9e1e8;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.browser-analysis-legend small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.15;
}

.browser-favorite-toggle {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: var(--border-width) solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}
.browser-favorite-toggle:hover {
  color: #f3d46d;
  background: rgba(255, 255, 255, 0.04);
}
.browser-favorite-toggle.is-active {
  color: #f3d46d;
}

.table-wrap {
  overflow: auto;
  min-height: 0;
  height: auto;
  flex: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  font-weight: 600;
}

th,
td {
  border-bottom: var(--border-width) solid var(--line-soft);
  padding: 8px 7px;
  text-align: left;
  vertical-align: middle;
  color: #d9e1e8;
}

th {
  color: var(--muted);
  font-weight: 700;
  background: #10161d;
  position: sticky;
  top: 0;
  z-index: 1;
}

tr.browser-row-muted td {
  color: #6f7882;
}
tr.browser-row-muted .browser-favorite-toggle,
tr.browser-row-muted button {
  color: #6f7882;
  opacity: 0.72;
}

tr.browser-row-hard-locked {
  cursor: not-allowed;
}

:root.is-debug-mode tr.browser-row-muted td {
  color: #d9e1e8;
}
:root.is-debug-mode tr.browser-row-muted .browser-favorite-toggle,
:root.is-debug-mode tr.browser-row-muted button {
  color: inherit;
  opacity: 1;
}

.browser-workflow-target {
  color: #92e5bb;
  font-weight: 800;
}

.browser-workflow-liverylab {
  color: #f7c948;
  font-weight: 800;
}

.browser-workflow-blocked {
  color: #f09a9a;
  font-weight: 800;
}

tr.browser-row-template-unsupported td {
  color: #f0b0b0;
}

tr.selected {
  background: var(--accent-2);
  color: #fff;
  outline: var(--border-width) solid rgba(var(--accent-2-rgb), 0.72);
}
tr.selected td {
  color: #fff;
}
tr.selected td:first-child {
  font-weight: 700;
}
tr.selected .browser-workflow-target,
tr.selected .browser-workflow-liverylab,
tr.selected button,
tr.selected .browser-favorite-toggle {
  color: #fff;
}
tr.is-dragging {
  opacity: 0.55;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.035);
}
tbody tr.selected:hover {
  background: var(--accent-2);
}

.chip-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.chip-list.compact {
  grid-template-columns: 1fr;
  margin-top: 0;
}

.chip {
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  padding: 9px;
  background: var(--panel-2);
  min-width: 0;
}
.chip.danger {
  border-color: rgba(255, 92, 92, 0.5);
  background: rgba(255, 92, 92, 0.08);
}
.chip strong,
.chip span {
  display: block;
  overflow-wrap: anywhere;
}
.chip span {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

.about-features .chip strong {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
}

.about-features .chip > span {
  color: #c7d0d9;
  font-size: 16px;
  line-height: 1.55;
}

.about-creator-copy {
  font-size: 16px;
}

.output,
.logbar pre {
  white-space: pre-wrap;
  overflow: auto;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}

.output {
  background: #0d1116;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  padding: 10px;
  min-height: 260px;
  max-height: calc(100vh - 395px);
  box-shadow: inset 3px 0 0 rgba(var(--accent-2-rgb), 0.58);
}
.output.small {
  min-height: 210px;
  max-height: 250px;
}
.output.tall {
  min-height: calc(100vh - 315px);
}

.selection-box {
  border-top: var(--border-width) solid var(--line);
  padding-top: 10px;
  min-height: 0;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.quick-actions button {
  padding: 0 6px;
  min-width: 0;
  color: #d7e0e8;
  background: #141b22;
}

.file-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}
.file-actions button {
  min-width: 0;
}
.file-actions .danger {
  border-color: rgba(var(--accent-2-rgb), 0.55);
  background: rgba(var(--accent-2-rgb), 0.14);
}

.preview-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px 34px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.preview-search input {
  min-width: 0;
}
.preview-search span {
  min-width: 46px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.preview-search button {
  min-width: 0;
  padding: 0;
}

.my-skins-empty,
.numberplate-template-empty,
.tyre-brand-empty,
.uv-group-empty,
.uv-glass-empty,
.home-health-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 74px;
  padding: 14px;
  border: var(--border-width) dashed var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.my-skins-empty.small {
  min-height: 52px;
  justify-items: start;
  text-align: left;
}

.my-skins-empty.small strong {
  color: #fff;
}

.my-skins-empty.small span {
  color: #c7d0d9;
}

.inspect-search {
  margin-bottom: 10px;
}

.preview-hit {
  border-radius: 0px;
  background: rgba(247, 201, 72, 0.34);
  color: #fff;
  user-select: text;
  -webkit-user-select: text;
}
.preview-hit.active {
  background: #f7c948;
  color: #111820;
}

.inspect-editor,
.mechanical-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  background: #111820;
}
.inspect-editor[hidden],
.mechanical-editor[hidden] {
  display: none;
}

.inspect-editor-title,
.mechanical-editor-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.inspect-editor-title strong,
.mechanical-editor-title strong {
  color: #fff;
}
.inspect-editor-title span,
.mechanical-editor-title span {
  color: var(--muted);
  font-size: 14px;
}

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

.inspect-editor-field {
  display: grid;
  gap: 5px;
}
.inspect-editor-field input,
.inspect-editor-field select {
  user-select: text;
  -webkit-user-select: text;
}
.inspect-editor-field span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.inspect-editor-subtitle {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.inspect-editor-block {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.inspect-numberplate-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
}

.inspect-numberplate-subgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.inspect-reference-list,
.mechanical-visual-list {
  display: grid;
  gap: 6px;
}

.mechanical-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.mechanical-add-row input {
  min-width: 0;
}

.inspect-reference-row,
.mechanical-visual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
}
.inspect-reference-row span,
.mechanical-visual-row span {
  overflow-wrap: anywhere;
  color: #d9e1e8;
  font-family: var(--font-body);
  font-size: 14px;
}
.inspect-reference-row button,
.mechanical-visual-row button {
  min-height: 30px;
  border-color: rgba(var(--accent-2-rgb), 0.55);
  background: rgba(var(--accent-2-rgb), 0.14);
}

.inspect-reference-row {
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
}
.inspect-reference-row input {
  min-width: 0;
}

.inspect-reference-meta {
  display: grid;
  gap: 3px;
}
.inspect-reference-meta strong {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
}
.inspect-reference-meta span {
  color: var(--muted);
  font-size: 14px;
}

.inspect-editor-actions {
  display: flex;
  justify-content: flex-end;
}

.inspect-summary-box {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 280px;
}

.uv-stage {
  padding: 12px;
  border: var(--border-width) solid var(--line);
  background: #0f1419;
  border-radius: 0px;
  overflow: auto;
  min-height: 0;
  height: 100%;
}

#uvCanvas {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 450px);
  width: auto;
  height: auto;
  background: linear-gradient(45deg, #1b232c 25%, transparent 25%), linear-gradient(-45deg, #1b232c 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #1b232c 75%), linear-gradient(-45deg, transparent 75%, #1b232c 75%);
  background-size: 32px 32px;
  background-position: 0 0, 0 16px, 16px -16px, -16px 0;
  border: var(--border-width) solid #2b3642;
}

.uv-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.uv-workspace {
  display: grid;
  grid-template-columns: minmax(400px, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  height: 100%;
}

.uv-controls {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.uv-control-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.uv-control-tab {
  min-height: 36px;
}
.uv-control-tab.active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
}
.uv-control-tab.active:hover, .uv-control-tab.active:focus-visible {
  background: rgba(var(--accent-2-rgb), 0.3);
}

.uv-control-panel {
  display: none;
  gap: 12px;
  align-content: start;
}
.uv-control-panel.active {
  display: grid;
}

.uv-control-panel[data-uv-panel=setup] > .form-row:has(#useUvSlot) {
  grid-template-columns: minmax(0, 1fr) auto;
}
.uv-control-panel[data-uv-panel=setup] > .form-row:has(#useUvSlot) label {
  min-width: 0;
}
.uv-control-panel[data-uv-panel=setup] > .form-row:has(#useUvSlot) .output-hint {
  grid-column: 1;
  margin: 0;
  align-self: center;
}
.uv-control-panel[data-uv-panel=setup] > .form-row:has(#useUvSlot) #exportUvTemplate {
  grid-column: 2;
  min-width: 170px;
}

.uv-display {
  min-width: 0;
  min-height: 0;
  display: flex;
}

.uv-preset-box {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  background: #11171d;
}

.uv-preset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.uv-group-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}
.uv-group-tools strong {
  font-size: 15px;
  color: #fff;
}

.uv-group-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.uv-group-filter {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.uv-group-filter label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #cbd5e1;
}
.uv-group-filter input[type=number] {
  width: 92px;
}

.uv-material-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.uv-material-filters button {
  min-height: 30px;
  padding: 4px 9px;
}
.uv-material-filters button.active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
}

.uv-group-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  align-content: start;
  height: 680px;
  overflow: auto;
  margin-top: 10px;
  padding: 10px;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  background: #0f1419;
}

.uv-group-empty {
  grid-column: 1/-1;
  padding: 10px 12px;
  color: #94a3b8;
  font-size: 14px;
}

.uv-group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 0px;
  cursor: pointer;
  border: var(--border-width) solid transparent;
}
.uv-group-item.is-hovered {
  background: rgba(88, 166, 255, 0.12);
  border-color: rgba(88, 166, 255, 0.45);
}
.uv-group-item.is-focused {
  background: rgba(255, 184, 77, 0.12);
  border-color: rgba(255, 184, 77, 0.55);
}
.uv-group-item input, .uv-group-item select {
  width: auto;
}
.uv-group-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uv-glass-diagnostics {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.uv-glass-empty,
.uv-glass-card {
  border: var(--border-width) solid var(--line);
  background: #0f1419;
  border-radius: 0px;
  padding: 10px;
}

.uv-glass-empty {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.025);
  color: #94a3b8;
  font-size: 14px;
}

.uv-glass-card {
  display: grid;
  gap: 8px;
}
.uv-glass-card strong {
  color: #fff;
}

.uv-glass-list {
  display: grid;
  gap: 4px;
}
.uv-glass-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.6fr) minmax(0, 1fr);
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}
.uv-glass-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uv-glass-list span:first-child {
  color: #94a3b8;
}

.logbar {
  grid-column: 1/-1;
  grid-row: 2;
  border-top: var(--border-width) solid var(--line);
  background: #090b0e;
  color: #dce3e8;
  padding: 10px 12px;
  min-width: 0;
  height: 80px;
  min-height: 80px;
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  border-left: none;
  border-radius: 0px;
  box-shadow: 0 12px 30px var(--shadow);
}
.logbar pre {
  height: 100%;
}

#tab-library {
  height: 100%;
}

.my-skins-panel {
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.my-skins-layout {
  display: grid;
  grid-template-columns: minmax(300px, 530px) minmax(0, 1fr);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.my-skins-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.my-skins-scope-tabs {
  display: inline-flex;
  min-height: 36px;
  border: var(--border-width) solid var(--line);
  background: #090d12;
}
.my-skins-scope-tabs button {
  min-width: 104px;
  border: 0;
  border-right: var(--border-width) solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.my-skins-scope-tabs button:last-child {
  border-right: 0;
}
.my-skins-scope-tabs button.active {
  background: rgba(23, 195, 178, 0.18);
  color: #d7fffb;
}

.start-game-button {
  margin-left: auto;
  border-color: rgba(55, 224, 33, 0.72);
  background: #1f8f27;
  color: #fff;
}

.start-game-button:hover,
.start-game-button:focus-visible {
  border-color: var(--accent-green);
  background: #26a630;
}

#openLiveryImport {
  border-color: #9b6cff;
  background: #7c3aed;
  color: #fff;
}

#openLiveryImport:hover,
#openLiveryImport:focus-visible {
  border-color: #b79aff;
  background: #8b5cf6;
}

.my-skins-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.my-skins-list,
.my-skins-detail {
  position: relative;
  height: 100%;
  min-height: 0;
  max-height: none;
}

.my-skins-loading {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #dce4ec;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
}
.my-skins-loading .button-spinner {
  width: 22px;
  height: 22px;
}

.my-skins-loading-overlay {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.my-skins-loading-overlay .my-skins-loading {
  min-width: 220px;
  min-height: 0;
}

.my-skin-package-box {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.livery-import-highlight {
  animation: livery-import-highlight 1.05s ease-in-out 3;
}

@keyframes livery-import-highlight {
  0%, 100% {
    border-color: var(--line);
    box-shadow: none;
  }
  50% {
    border-color: rgba(255, 202, 82, 0.82);
    box-shadow: 0 0 0 2px rgba(255, 202, 82, 0.22), 0 0 24px rgba(255, 202, 82, 0.26);
  }
}
.my-skin-package-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}
.my-skin-package-row label {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.my-skin-package-row input {
  width: 100%;
}
.my-skin-package-row button {
  white-space: nowrap;
}

.my-skins-list {
  display: grid;
  gap: 8px;
  align-content: start;
  overflow: auto;
  padding-right: 4px;
}

.my-skins-library-tools {
  position: sticky;
  z-index: 6;
  top: 0;
  display: grid;
  gap: 0;
  border: var(--border-width) solid var(--line);
  border-bottom: 0;
  background: #07080a;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.32);
}

.my-skins-category-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.045);
}
.my-skins-category-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.my-skins-category-actions button:hover, .my-skins-category-actions button:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.18);
  color: #fff;
}
.my-skins-category-actions button:disabled {
  opacity: 0.45;
}

.my-skins-category-sort {
  display: grid;
  grid-template-columns: auto repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
  min-height: 38px;
  padding: 6px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.035);
}
.my-skins-category-sort span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}
.my-skins-category-sort button {
  min-width: 0;
  min-height: 28px;
  padding: 4px 8px;
  border-color: rgba(var(--accent-2-rgb), 0.34);
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.my-skins-category-sort button.active {
  border-color: rgba(255, 216, 74, 0.72);
  background: rgba(255, 216, 74, 0.12);
  color: #ffd84a;
}

.my-skins-category-search {
  display: grid;
  gap: 5px;
  padding: 8px 10px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.035);
}
.my-skins-category-search label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.my-skins-category-search input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.34);
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}
.my-skins-category-search input:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  outline: none;
  box-shadow: 0 0 0 1px rgba(var(--accent-2-rgb), 0.28);
}
.my-skins-category-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.my-skins-category-search input::-webkit-search-cancel-button {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.my-skins-category-search input::-webkit-search-cancel-button:hover {
  background: #fff;
}
.my-skins-category-search span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.my-skins-category-add-row {
  display: grid;
  gap: 8px;
  padding: 8px 10px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.035);
}
.my-skins-category-add-row[hidden] {
  display: none;
}
.my-skins-category-add-row label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.my-skins-category-add-row button {
  white-space: nowrap;
}

.my-skins-category-add-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  min-width: 0;
}
.my-skins-category-add-controls input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.34);
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}
.my-skins-category-add-controls input:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  outline: none;
  box-shadow: 0 0 0 1px rgba(var(--accent-2-rgb), 0.28);
}

.my-skins-category-list {
  display: grid;
  gap: 0;
  border: var(--border-width) solid var(--line);
  background: #07080a;
}

.my-skins-category-group {
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
}
.my-skins-category-group:last-child {
  border-bottom: none;
}

.my-skins-category-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) repeat(2, 32px);
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  border-bottom: var(--border-width) solid rgba(var(--accent-2-rgb), 0.18);
  background: rgba(var(--accent-2-rgb), 0.09);
}
.my-skins-category-head strong {
  overflow: hidden;
  color: #ffd84a;
  font-family: var(--font-display);
  font-size: 15px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.my-skins-category-head.is-custom-sort {
  grid-template-columns: 32px minmax(0, 1fr) repeat(4, 32px);
}
.my-skins-category-head.is-workflow-reference {
  grid-template-columns: 32px minmax(0, 1fr);
}

.my-skins-category-rename-input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 7px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.72);
  border-radius: 0;
  background: #000;
  color: #ffd84a;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.my-skins-category-rename-input:focus {
  outline: none;
  box-shadow: 0 0 0 1px rgba(var(--accent-2-rgb), 0.28);
}

.my-skins-category-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  border-color: rgba(var(--accent-2-rgb), 0.36);
  background: #000;
  color: #fff;
}
.my-skins-category-icon-button .button-icon {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
}
.my-skins-category-icon-button svg {
  width: 16px;
  height: 16px;
}
.my-skins-category-icon-button:hover, .my-skins-category-icon-button:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.18);
}
.my-skins-category-icon-button:disabled {
  opacity: 0.42;
}

.my-skins-category-body {
  display: grid;
  gap: 8px;
  padding: 8px;
}

.my-skins-category-group.is-collapsed .my-skins-category-body {
  display: none;
}

.my-skin-card {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: auto;
  min-height: 126px;
  gap: 12px;
  text-align: left;
  padding: 12px;
  overflow: hidden;
  border-radius: 0px;
  background: #11171d;
  border: var(--border-width) solid var(--accent-green);
  color: inherit;
  cursor: pointer;
  font: inherit;
  transition: opacity 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.my-skin-card strong {
  color: var(--accent-3);
  font-size: 17px;
}
.my-skin-card > span {
  color: var(--muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.my-skin-card.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 3px 0 0 var(--accent-2-border), inset 0 0 0 var(--border-width) rgba(var(--accent-2-rgb), 0.98);
}
.my-skin-card.inactive {
  border: var(--border-width) solid var(--line);
}
.my-skin-card.needs-game-sync {
  border-color: #ffca52;
}
.my-skin-card:hover, .my-skin-card:focus-visible {
  opacity: 1;
}

.my-skin-favorite-toggle {
  position: absolute;
  z-index: 3;
  top: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: var(--border-width) solid transparent;
  background: rgba(0, 0, 0, 0.24);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.my-skin-favorite-toggle:hover, .my-skin-favorite-toggle:focus-visible {
  color: #f3d46d;
  background: rgba(255, 255, 255, 0.04);
  outline: none;
}
.my-skin-favorite-toggle.is-active {
  color: #f3d46d;
}

.my-skin-card-top {
  display: flex;
  flex: 1;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.my-skin-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.my-skin-card-copy .small {
  font-size: 14px;
}
.my-skin-card-copy .skin-id {
  color: #8995a0;
  font-size: 13px;
}

.my-skin-thumb-frame,
.my-skin-preview-frame {
  position: relative;
  display: block;
  background: #0d1116;
}
.my-skin-thumb-frame::after,
.my-skin-preview-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 50% auto auto 50%;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: rotate(0deg);
}
.my-skin-thumb-frame.is-loading::before,
.my-skin-preview-frame.is-loading::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(5, 8, 12, 0.34);
  pointer-events: none;
}
.my-skin-thumb-frame.is-loading::after,
.my-skin-preview-frame.is-loading::after {
  opacity: 1;
  animation: my-skin-thumb-spinner 0.75s linear infinite;
}

.my-skin-thumb-frame {
  width: 100px;
  height: 100px;
  flex: 0 0 100px;
  max-width: 100px;
  aspect-ratio: 1/1;
}

.my-skin-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
  border: var(--border-width) solid var(--line-soft);
  background: #0d1116;
}
.my-skin-thumb.is-loading {
  opacity: 0.6;
}

.my-skin-meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 8px;
  align-items: flex-end;
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: var(--border-width) solid var(--line);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.status.complete {
  border-color: rgba(23, 195, 178, 0.55);
  background: rgba(23, 195, 178, 0.14);
  color: #d9fffb;
}
.status.partial {
  border-color: rgba(247, 201, 72, 0.55);
  background: rgba(247, 201, 72, 0.12);
  color: #fff0bf;
}
.status.missing {
  border-color: rgba(var(--accent-2-rgb), 0.55);
  background: rgba(var(--accent-2-rgb), 0.14);
  color: #ffe8e5;
}
.status.game-sync {
  border-color: rgba(255, 202, 82, 0.72);
  background: rgba(255, 202, 82, 0.14);
  color: #fff0bf;
}

.my-skins-detail {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 12px;
  border: var(--border-width) solid var(--line);
  border-radius: 0px;
  background: #11171d;
  overflow: auto;
}

.my-skin-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}
.my-skin-detail-head h2 {
  margin: 0;
}

.my-skin-project-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding: 10px 12px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
}
.my-skin-project-metadata strong {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}
.my-skin-project-metadata span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--text);
}

.my-skin-detail-tabs {
  display: inline-flex;
  width: fit-content;
  border: var(--border-width) solid var(--line);
  background: #0b0f14;
}
.my-skin-detail-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 8px 14px;
  border: 0;
  border-right: var(--border-width) solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.my-skin-detail-tabs button:last-child {
  border-right: 0;
}
.my-skin-detail-tabs button.active {
  background: rgba(var(--accent-rgb), 0.16);
  color: #fff;
}

.my-skin-detail-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}
.my-skin-detail-panel[hidden] {
  display: none;
}

.my-skin-diagnostics-panel {
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #0d1116;
}

.my-skin-preview-panel {
  display: grid;
  align-content: stretch;
  justify-items: stretch;
  width: 100%;
  aspect-ratio: 1/1;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
  align-self: start;
}

.my-skin-preview-frame {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.my-skin-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0px;
  border: var(--border-width) solid var(--line);
  background: #10161d;
}
.my-skin-preview-image.is-loading {
  opacity: 0.6;
}

@keyframes my-skin-thumb-spinner {
  to {
    transform: rotate(360deg);
  }
}
.my-skin-ace-preview-state {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #10161d;
}

.my-skin-ace-preview-copy {
  display: grid;
  gap: 6px;
  justify-items: start;
  text-align: left;
}
.my-skin-ace-preview-copy strong {
  color: #fff;
  font-size: 14px;
}
.my-skin-ace-preview-copy small {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.my-skin-ace-preview-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
}
.my-skin-ace-preview-actions .icon-text {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
}

.my-skin-edit-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.72fr) minmax(360px, 1.28fr);
  gap: 14px;
  align-items: stretch;
}

.my-skin-edit-card {
  display: grid;
  align-content: stretch;
  min-width: 0;
}

.my-skin-edit-card-preview {
  grid-column: 1;
  grid-row: 1;
}

.my-skin-edit-card-edit {
  grid-column: 2;
  grid-row: 1;
}

.my-skin-edit-name-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}
.my-skin-edit-name-row label {
  min-width: 0;
}
.my-skin-edit-name-row input {
  width: 100%;
}
.my-skin-edit-name-row .my-skin-edit-actions {
  align-self: end;
}
.my-skin-edit-name-row .primary {
  white-space: nowrap;
}

.my-skin-edit-metadata-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr) auto;
  gap: 10px;
  align-items: end;
}
.my-skin-edit-metadata-row label {
  min-width: 0;
}
.my-skin-edit-metadata-row input {
  width: 100%;
}
.my-skin-edit-metadata-row .primary {
  min-height: 34px;
  height: 34px;
  white-space: nowrap;
}

.my-skin-readonly-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.my-skin-readonly-metadata > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}
.my-skin-readonly-metadata .is-wide {
  grid-column: 1/-1;
}
.my-skin-readonly-metadata span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.my-skin-readonly-metadata strong {
  min-width: 0;
  color: #f4f8ff;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.my-skin-edit-card-tyres {
  grid-column: 1;
  grid-row: 2;
}

.my-skin-edit-card-tyres .my-skin-edit-grid {
  grid-template-columns: minmax(0, 1fr);
}
.my-skin-edit-card-tyres .my-skin-edit-actions .primary {
  width: 100%;
  justify-content: center;
}

.my-skin-edit-card-tyres .my-skin-tyre-grid {
  grid-template-columns: minmax(0, 1fr) auto;
}

.my-skin-edit-subsection {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.my-skin-edit-subsection + .my-skin-edit-subsection {
  margin-top: 16px;
  padding-top: 14px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
}

.my-skin-section-subtitle {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.my-skin-edit-card-numberplate {
  grid-column: 2;
  grid-row: 2;
}
.my-skin-edit-card-numberplate .my-skin-section {
  position: relative;
  min-height: 100%;
}

.my-skin-numberplate-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#mySkinNumberplateNonePanel:not([hidden]) {
  display: grid;
  gap: 10px;
  text-align: left;
}
#mySkinNumberplateNonePanel:not([hidden]) label {
  display: grid;
  gap: 6px;
  width: min(180px, 100%);
  color: var(--text);
  font-weight: 700;
}
#mySkinNumberplateNonePanel:not([hidden]) input {
  width: 100%;
}

.my-skin-edit-card-numberplate.is-numberplate-disabled .my-skin-numberplate-fields {
  opacity: 0.28;
  filter: grayscale(0.8);
  pointer-events: none;
}

.my-skin-numberplate-disabled-overlay {
  position: absolute;
  inset: 38px 0 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 11, 15, 0.72);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.my-skin-subtitle {
  color: var(--muted);
  font-size: 15px;
}

.my-skin-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.my-skin-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.my-skin-toolbar-primary {
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #0d1116;
}

.my-skin-toolbar-secondary {
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #10151b;
}

.my-skin-sync-notice {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: var(--border-width) solid rgba(255, 202, 82, 0.55);
  background: rgba(255, 202, 82, 0.1);
  color: #fff0bf;
}
.my-skin-sync-notice summary {
  display: grid;
  gap: 4px;
  cursor: pointer;
  list-style-position: inside;
}
.my-skin-sync-notice strong {
  color: #fff4c2;
  font-size: 14px;
  text-transform: uppercase;
}
.my-skin-sync-notice span {
  color: #f8e4a8;
  font-size: 14px;
}
.my-skin-sync-notice .my-skin-sync-list {
  margin: 2px 0 0;
  padding-left: 18px;
  color: #f8e4a8;
  font-size: 14px;
  line-height: 1.35;
}
.my-skin-sync-notice .my-skin-sync-list li + li {
  margin-top: 2px;
}
.my-skin-sync-notice.danger {
  border-color: rgba(255, 92, 92, 0.7);
  background: rgba(255, 92, 92, 0.11);
}
.my-skin-sync-notice.danger strong {
  color: #ffd0d0;
}
.my-skin-sync-notice.danger span {
  color: #ffc2c2;
}

.my-skin-official-health {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #0d1116;
  color: #e7eef7;
}
.my-skin-official-health.is-ready {
  border-color: rgba(65, 214, 133, 0.45);
}
.my-skin-official-health.is-warning {
  border-color: rgba(255, 202, 82, 0.58);
}
.my-skin-official-health.is-danger {
  border-color: rgba(255, 92, 92, 0.72);
}
.my-skin-official-health.is-idle {
  border-color: rgba(142, 153, 168, 0.5);
}
.my-skin-official-health p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.my-skin-official-health-head {
  display: grid;
  gap: 3px;
}
.my-skin-official-health-head strong {
  color: #f4f8ff;
  font-size: 14px;
  text-transform: uppercase;
}
.my-skin-official-health-head span {
  color: #b8c3d1;
  font-size: 14px;
}

.my-skin-official-health-grid {
  display: grid;
  gap: 6px;
}

.my-skin-official-health-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 10px;
  border: var(--border-width) solid rgba(142, 153, 168, 0.32);
  background: rgba(255, 255, 255, 0.025);
}
.my-skin-official-health-row > span {
  display: inline-flex;
  justify-content: center;
  min-height: 22px;
  padding: 3px 6px;
  border: var(--border-width) solid rgba(142, 153, 168, 0.42);
  color: #d7e0ea;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.my-skin-official-health-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.my-skin-official-health-row strong {
  color: #f4f8ff;
  font-size: 14px;
}
.my-skin-official-health-row p,
.my-skin-official-health-row em {
  margin: 0;
  color: #b8c3d1;
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}
.my-skin-official-health-row em {
  color: #d9c27e;
}
.my-skin-official-health-row.is-ok > span {
  border-color: rgba(65, 214, 133, 0.5);
  color: #a9f2c7;
}
.my-skin-official-health-row.is-warning > span {
  border-color: rgba(255, 202, 82, 0.58);
  color: #ffe09a;
}
.my-skin-official-health-row.is-error > span {
  border-color: rgba(255, 92, 92, 0.72);
  color: #ffc4c4;
}

.my-skin-game-sync-pulse {
  animation: my-skin-game-sync-pulse 1.05s ease-in-out infinite;
}

@keyframes my-skin-game-sync-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 202, 82, 0.7), 0 0 0 0 rgba(255, 202, 82, 0.28);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(255, 202, 82, 0.28), 0 0 18px 2px rgba(255, 202, 82, 0.38);
  }
}
.my-skin-toolbar-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #10151b;
  color: #dce3e8;
  font-size: 14px;
}
.my-skin-toolbar-check small {
  color: var(--muted);
}

.my-skin-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.my-skin-info-grid > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
}
.my-skin-info-grid span {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}
.my-skin-info-grid strong {
  color: #fff;
  overflow-wrap: anywhere;
}

.my-skin-edit-grid.my-skin-browse-grid {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: end;
}

.my-skin-grid-wide {
  grid-column: 1/-1;
}

.my-skin-inline-action {
  align-self: end;
  min-height: 34px;
  height: 34px;
}

.my-skin-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.my-skin-edit-grid label {
  display: grid;
  gap: 6px;
}

.my-skin-edit-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.my-skin-edit-actions-inline {
  align-self: end;
  flex-wrap: nowrap;
}
.my-skin-edit-actions-inline .primary {
  min-height: 34px;
  height: 34px;
  white-space: nowrap;
}

.my-skin-numberplate-color {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(96px, 130px);
  gap: 10px;
  grid-column: 1/-1;
  align-items: end;
}
.my-skin-numberplate-color label {
  display: grid;
  gap: 6px;
}
.my-skin-numberplate-color input[type=color] {
  width: 100%;
  height: 38px;
  padding: 0;
  border: var(--border-width) solid var(--line);
  border-radius: 0;
  background: #10151b;
}

.package-progress {
  display: grid;
  gap: 8px;
}

.package-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  border: var(--border-width) solid var(--line);
  background: #0d1116;
}

.package-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent), var(--accent-3));
  transition: width 120ms linear;
}

.package-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.package-progress-meta strong {
  color: #fff;
}
.package-progress-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-skin-technical-details {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #0d1116;
}
.my-skin-technical-details summary {
  cursor: pointer;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.my-skin-official-details .my-skin-sync-notice {
  margin: 0;
}

.my-skin-technical-body {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.my-skin-technical-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 14px;
  align-items: start;
}

.my-skin-section {
  display: grid;
  gap: 8px;
}
.my-skin-section.is-framed {
  align-content: start;
  height: 100%;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #0d1116;
}

.my-skin-section-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.my-skin-section.is-framed > .my-skin-section-title {
  font-size: 17px;
}

.my-skin-file-list,
.my-skin-loc-list {
  display: grid;
  gap: 6px;
}

.my-skin-file-row,
.my-skin-loc-row {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
}

.my-skin-file-row {
  grid-template-columns: 140px minmax(0, 1fr) 80px;
  align-items: center;
}
.my-skin-file-row .kind,
.my-skin-file-row .state {
  color: var(--muted);
  font-size: 14px;
  text-transform: uppercase;
}
.my-skin-file-row .path {
  color: #d9e1e8;
  font-family: var(--font-body);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.my-skin-file-row.is-found .state {
  color: var(--accent);
}
.my-skin-file-row.is-missing .state {
  color: #ff7b72;
}

.my-skin-loc-row {
  color: #d9e1e8;
  font-family: var(--font-body);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.my-skins-empty {
  padding: 18px;
  border: var(--border-width) dashed var(--line);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: center;
}
.my-skins-empty.small {
  padding: 12px;
  font-size: 14px;
  gap: 4px;
}

.preview3d-live-panel {
  display: grid;
  gap: 12px;
}

.preview3d-viewer-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  border-radius: 0px;
  background: #101113;
}

.preview3d-viewer-frame canvas {
  display: block;
  width: 100%;
  height: 420px;
}

.preview3d-viewer-frame span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  pointer-events: none;
}

.preview3d-texture-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  overflow: hidden;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  border-radius: 0px;
  background: #101113;
}

.preview3d-texture-frame img {
  display: none;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain;
}

.preview3d-texture-frame span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
}

.preview3d-status {
  min-height: 112px;
  padding: 12px;
  white-space: pre-wrap;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}

.livery-preview-workspace {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  --numberplate-panel-width: clamp(360px, 28vw, 440px);
  --numberplate-dev-panel-width: clamp(420px, 34vw, 560px);
  --scene-settings-panel-width: clamp(360px, 28vw, 440px);
  width: 100vw;
  height: 100vh;
  background: #090b0e;
  color: var(--ink);
}

.livery-preview-workspace.is-numberplate-panel-open {
  grid-template-rows: auto minmax(0, 1fr);
}

.livery-preview-workspace.is-numberplate-dev-panel-open {
  grid-template-rows: auto minmax(0, 1fr);
}

.livery-preview-workspace.is-scene-settings-panel-open {
  grid-template-rows: auto minmax(0, 1fr);
}

.livery-preview-workspace.has-splat-legend {
  grid-template-rows: auto auto minmax(0, 1fr);
}

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

.livery-preview-topbar {
  grid-row: 1;
  position: relative;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 18, 22, 0.98);
}

.livery-preview-splat-legend {
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 14px;
  gap: 18px;
  overflow-x: auto;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
  background: rgba(9, 11, 14, 0.96);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  white-space: nowrap;
}

.livery-preview-splat-legend[hidden] {
  display: none;
}

.livery-preview-splat-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.livery-preview-splat-swatch {
  display: inline-block;
  width: 22px;
  height: 12px;
  flex: 0 0 auto;
  border: var(--border-width) solid rgba(255, 255, 255, 0.28);
  background: var(--splat-color);
}

.livery-preview-title {
  display: grid;
  gap: 3px;
  flex: 1 1 auto;
  min-width: 0;
}

.livery-preview-title strong {
  font-size: 15px;
  line-height: 1.2;
}

.livery-preview-title span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.livery-preview-menu {
  position: relative;
  z-index: 31;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: flex-end;
  gap: 2px;
  max-width: 100%;
}

.livery-preview-menu-group {
  position: relative;
  display: flex;
  align-items: stretch;
}

.livery-preview-menu-group.is-disabled {
  opacity: 0.38;
  filter: grayscale(0.8);
}

.livery-preview-menu-trigger,
.livery-preview-menu > button {
  min-height: 53px;
  padding: 0 13px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.livery-preview-menu-trigger:hover,
.livery-preview-menu-trigger:focus-visible,
.livery-preview-menu-group.is-open > .livery-preview-menu-trigger,
.livery-preview-menu > button:hover,
.livery-preview-menu > button:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.livery-preview-menu-trigger:disabled,
.livery-preview-menu-dropdown button:disabled,
.livery-preview-menu-check input:disabled + span {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.5);
}

.livery-preview-menu > .primary {
  align-self: center;
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 12px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.72);
  border-radius: 0px;
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
}

.livery-preview-menu > .primary:hover,
.livery-preview-menu > .primary:focus-visible {
  background: rgba(var(--accent-2-rgb), 0.3);
}

.livery-preview-menu > .livery-preview-action {
  align-self: center;
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 12px;
  border: var(--border-width) solid #ff4d55;
  border-radius: 0;
  background: #000;
  color: #fff;
}

.livery-preview-menu > .livery-preview-action.primary {
  border-color: var(--accent-2-border);
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}

.livery-preview-menu > .livery-preview-action:hover,
.livery-preview-menu > .livery-preview-action:focus-visible {
  border-color: #ff7077;
  background: rgba(255, 77, 85, 0.14);
}

.livery-preview-menu > .livery-preview-action.primary:hover,
.livery-preview-menu > .livery-preview-action.primary:focus-visible {
  background: var(--accent-2-hover);
}

.livery-preview-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 40;
  display: none;
  min-width: 224px;
  max-width: 320px;
  padding: 7px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  border-radius: 0 0 8px 8px;
  background: rgba(12, 14, 18, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.livery-preview-menu-group.is-open > .livery-preview-menu-dropdown {
  display: grid;
  gap: 3px;
}

.livery-preview-menu-dropdown button,
.livery-preview-menu-check,
.livery-preview-menu-select {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 0px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  text-align: left;
}

.livery-preview-menu-dropdown button:hover,
.livery-preview-menu-dropdown button:focus-visible,
.livery-preview-menu-check:hover,
.livery-preview-menu-select:hover,
.livery-preview-menu-select:focus-within {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.livery-preview-menu-dropdown button.active,
.livery-preview-menu-dropdown button[aria-checked=true] {
  background: rgba(var(--accent-2-rgb), 0.22);
  color: #fff;
}

.livery-preview-menu-dropdown button.active::before,
.livery-preview-menu-dropdown button[aria-checked=true]::before {
  content: "";
  width: 6px;
  min-width: 6px;
  height: 18px;
  background: var(--accent-2);
}

.livery-preview-menu-check input[type=checkbox] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
}

.livery-preview-menu-select {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 5px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: rgba(var(--accent-2-rgb), 0.06);
}
.livery-preview-menu-select:hover, .livery-preview-menu-select:focus-within {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.12);
}

.livery-preview-menu-select span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.livery-preview-menu-label {
  display: block;
  padding: 2px 8px 1px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.livery-preview-menu-select select {
  width: 100%;
  min-height: 28px;
  padding: 3px 26px 3px 8px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
}
.livery-preview-menu-select select:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
}

.livery-preview-menu-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
}

.livery-preview-menu-toggle button {
  justify-content: center;
}

.livery-preview-menu-list {
  display: grid;
  gap: 3px;
  width: 100%;
  max-height: min(48vh, 360px);
  overflow: auto;
}

.livery-preview-menu-list button {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  justify-content: flex-start;
  column-gap: 8px;
  row-gap: 2px;
}

.livery-preview-menu-list button::before {
  grid-column: 1;
  grid-row: 1/span 2;
}

.livery-preview-menu-list button span,
.livery-preview-menu-list button small {
  grid-column: 2;
}

.livery-preview-menu-list button small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.2;
}

.livery-preview-menu-color {
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
}

.livery-preview-menu-color span {
  align-self: center;
}

.livery-preview-menu-color input[type=color] {
  width: 44px;
  height: 28px;
  padding: 2px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.42);
  border-radius: 0;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.livery-preview-camera-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.livery-preview-camera-presets button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: rgba(255, 255, 255, 0.16);
  font-size: 14px;
}

.livery-preview-camera-presets button.active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
}

.livery-preview-menu button.is-active-danger {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.24);
  color: #fff;
}

.livery-preview-watch-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 30px;
  max-width: 220px;
  padding: 5px 10px;
  overflow: hidden;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.livery-preview-watch-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.livery-preview-watch-badge.is-loading::before,
.livery-preview-watch-badge.is-reloading::before {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(255, 202, 82, 0.28);
  border-top-color: #ffca52;
  background: transparent;
  animation: livery-preview-watch-spin 0.8s linear infinite;
}

.livery-preview-watch-badge.is-watching::before {
  background: #2dd47f;
}

.livery-preview-watch-badge.is-reloading::before {
  border-top-color: #ffca52;
}

.livery-preview-watch-badge.is-error::before {
  background: var(--accent-2);
}

.livery-preview-watch-badge.is-stopped::before {
  background: rgba(255, 255, 255, 0.38);
}

.livery-preview-watch-badge.is-success::before {
  background: #2dd47f;
}

@keyframes livery-preview-watch-spin {
  to {
    transform: rotate(360deg);
  }
}
.livery-preview-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.42);
  border-radius: 0px;
  background: rgba(var(--accent-2-rgb), 0.06);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}
.livery-preview-select:hover, .livery-preview-select:focus-within {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.12);
}

.livery-preview-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.14);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.livery-preview-check input[type=checkbox] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  margin: 0;
}

.livery-preview-select select {
  min-height: 24px;
  padding: 2px 24px 2px 8px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background-color: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
}
.livery-preview-select select:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
}

.livery-preview-body {
  grid-row: 2;
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
}

.livery-preview-workspace.has-splat-legend .livery-preview-body {
  grid-row: 3;
}

.livery-preview-workspace.is-numberplate-panel-open .livery-preview-body {
  margin-right: var(--numberplate-panel-width);
}

.livery-preview-workspace.is-numberplate-dev-panel-open .livery-preview-body {
  margin-right: var(--numberplate-dev-panel-width);
}

.livery-preview-workspace.is-scene-settings-panel-open .livery-preview-body {
  margin-right: var(--scene-settings-panel-width);
}

.livery-preview-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.livery-preview-workspace.is-material-inspector-open .livery-preview-stage {
  grid-template-columns: minmax(0, 1fr) minmax(420px, 490px);
}

.livery-preview-workspace.is-material-finish-open .livery-preview-stage {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.livery-preview-workspace.is-wheel-diagnostics-open .livery-preview-stage {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
}

.livery-preview-canvas-wrap {
  position: relative;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: #101113;
}

.livery-preview-canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.livery-preview-canvas-wrap span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  pointer-events: none;
}

.livery-preview-material-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-left: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 10, 0.98);
}

.livery-preview-material-panel[hidden] {
  display: none;
}

.livery-preview-material-finish-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-left: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 10, 0.98);
}

.livery-preview-material-finish-panel[hidden] {
  display: none;
}

.livery-preview-wheel-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-left: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 7, 10, 0.98);
}

.livery-preview-wheel-panel[hidden] {
  display: none;
}

.livery-preview-wheel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.livery-preview-wheel-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}
.livery-preview-wheel-head span {
  grid-column: 1/-1;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.livery-preview-wheel-head button {
  min-height: 30px;
  padding: 5px 9px;
  border-color: rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.livery-preview-wheel-unsaved {
  color: #ffca52 !important;
  font-weight: 800;
  text-transform: uppercase;
}

.livery-preview-wheel-actions {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) repeat(3, auto);
  gap: 6px;
  align-items: end;
}
.livery-preview-wheel-actions label {
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.livery-preview-wheel-actions select {
  min-height: 30px;
  border-color: rgba(255, 255, 255, 0.16);
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 13px;
}
.livery-preview-wheel-actions button {
  min-width: 0;
  white-space: nowrap;
}

.livery-preview-wheel-content {
  display: grid;
  align-content: start;
  gap: 13px;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.livery-preview-wheel-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.35;
}

.livery-preview-wheel-section {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
}
.livery-preview-wheel-section:last-child {
  border-bottom: 0;
}
.livery-preview-wheel-section.is-warning {
  padding: 10px;
  border: var(--border-width) solid rgba(247, 201, 72, 0.28);
  background: rgba(247, 201, 72, 0.06);
}
.livery-preview-wheel-section h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
}

.livery-preview-wheel-stats {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}
.livery-preview-wheel-stats div {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}
.livery-preview-wheel-stats span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.livery-preview-wheel-stats strong {
  min-width: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-wheel-table-wrap {
  max-width: 100%;
  overflow: auto;
}

.livery-preview-wheel-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}
.livery-preview-wheel-table th,
.livery-preview-wheel-table td {
  padding: 6px 7px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.livery-preview-wheel-table th {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  text-transform: uppercase;
}
.livery-preview-wheel-table td:first-child {
  color: #fff;
  font-weight: 700;
}

.livery-preview-material-head {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.livery-preview-material-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}
.livery-preview-material-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-head input[type=search] {
  width: 100%;
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.livery-preview-material-finish-head {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.livery-preview-material-finish-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}
.livery-preview-material-finish-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.livery-preview-material-finish-content {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 14px;
}
.livery-preview-material-finish-content label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 7px 10px;
  align-items: center;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.livery-preview-material-finish-content label span {
  justify-self: end;
  color: rgba(255, 255, 255, 0.54);
  font-variant-numeric: tabular-nums;
}
.livery-preview-material-finish-content input[type=range] {
  grid-column: 1/-1;
  width: 100%;
}
.livery-preview-material-finish-content input[type=number] {
  grid-column: 1/-1;
  min-height: 32px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.livery-preview-material-finish-presets,
.livery-preview-material-finish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.livery-preview-material-finish-presets button,
.livery-preview-material-finish-actions button {
  min-height: 31px;
  border-color: rgba(255, 255, 255, 0.16);
}

.livery-preview-material-finish-actions {
  flex-direction: column;
  padding-top: 4px;
}
.livery-preview-material-finish-actions button {
  width: 100%;
}

.livery-preview-material-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.livery-preview-material-filters button {
  min-height: 27px;
  padding: 4px 8px;
  border-color: rgba(255, 255, 255, 0.14);
  font-size: 13px;
}
.livery-preview-material-filters button.active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
}

.livery-preview-material-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.livery-preview-material-check input {
  width: 14px;
  min-width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
}

.livery-preview-material-content {
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 16px;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.livery-preview-material-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-card {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.1);
}
.livery-preview-material-card:last-child {
  border-bottom: 0;
}

.livery-preview-material-card summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}
.livery-preview-material-card summary span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.livery-preview-material-card summary small {
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-body);
  font-size: 13px;
  text-transform: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-card dl {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 5px 9px;
  margin: 0;
  font-size: 14px;
}
.livery-preview-material-card dl dt {
  color: rgba(255, 255, 255, 0.48);
  text-transform: uppercase;
}
.livery-preview-material-card dl dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  color: rgba(255, 255, 255, 0.76);
}

.livery-preview-material-subhead {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.livery-preview-material-list {
  display: grid;
  gap: 5px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.livery-preview-material-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.08);
  border-radius: 0px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-list strong {
  color: #fff;
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-list span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-channel {
  color: #ff5963;
  font-weight: 700;
}

.livery-preview-material-analysis {
  display: grid;
  gap: 10px;
  margin: 12px 0;
  padding: 11px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.24);
  border-radius: 0px;
  background: rgba(var(--accent-2-rgb), 0.06);
}

.livery-preview-material-analysis-head {
  display: grid;
  gap: 3px;
}
.livery-preview-material-analysis-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}
.livery-preview-material-analysis-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-material-analysis-channel {
  display: grid;
  gap: 5px;
  padding-top: 9px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.1);
}
.livery-preview-material-analysis-channel h3 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
}

.livery-preview-bottombar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 7px 14px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.86);
}

.livery-preview-bottombar .livery-preview-camera-presets {
  flex: 0 0 auto;
  margin-left: auto;
  justify-content: flex-end;
}

.livery-preview-numberplate-panel,
.livery-preview-numberplate-dev-panel {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  align-items: start;
  gap: 12px;
  width: var(--numberplate-panel-width);
  max-width: var(--numberplate-panel-width);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  border-left: var(--border-width) solid rgba(var(--accent-2-rgb), 0.52);
  background: rgba(0, 0, 0, 0.94);
  box-shadow: -10px 0 32px rgba(0, 0, 0, 0.35);
}

.livery-preview-numberplate-dev-panel {
  width: var(--numberplate-dev-panel-width);
  max-width: var(--numberplate-dev-panel-width);
}

.livery-preview-numberplate-panel[hidden],
.livery-preview-numberplate-dev-panel[hidden] {
  display: none;
}

.livery-preview-numberplate-dev-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.livery-preview-numberplate-dev-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.livery-preview-numberplate-dev-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
}
.livery-preview-numberplate-dev-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.35;
}

.livery-preview-numberplate-dev-column,
.livery-preview-numberplate-main-column {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.livery-preview-numberplate-dev-column[hidden] {
  display: none;
}

.livery-preview-numberplate-fields {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 10px;
  min-width: 0;
}
.livery-preview-numberplate-fields strong {
  grid-column: 1/-1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}

.livery-preview-numberplate-hint {
  grid-column: 1/-1;
  margin: -4px 0 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.35;
}

.livery-preview-numberplate-panel label,
.livery-preview-numberplate-dev-panel label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-transform: uppercase;
}
.livery-preview-numberplate-panel label input,
.livery-preview-numberplate-panel label select,
.livery-preview-numberplate-dev-panel label input,
.livery-preview-numberplate-dev-panel label select {
  min-width: 0;
  width: 100%;
}
.livery-preview-numberplate-panel label select,
.livery-preview-numberplate-dev-panel label select {
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background-color: rgba(0, 0, 0, 0.3);
}
.livery-preview-numberplate-panel label select:focus,
.livery-preview-numberplate-dev-panel label select:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
}

.livery-preview-numberplate-fields > label {
  max-width: none;
}

.livery-preview-numberplate-info-slot {
  display: grid;
  min-width: 0;
}

.livery-preview-numberplate-selected {
  display: grid;
  grid-column: 1/-1;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}
.livery-preview-numberplate-selected span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  text-transform: uppercase;
}
.livery-preview-numberplate-selected strong {
  overflow: hidden;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.livery-preview-numberplate-status {
  grid-column: 1/-1;
  align-self: end;
  justify-self: stretch;
  min-height: 34px;
  padding: 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}
.livery-preview-numberplate-status.is-dirty {
  border-color: rgba(255, 193, 7, 0.58);
  color: #ffe08a;
}
.livery-preview-numberplate-status.needs-apply {
  border-color: rgba(var(--accent-rgb), 0.58);
  color: rgb(var(--accent-rgb));
}
.livery-preview-numberplate-status.is-applied {
  border-color: rgba(22, 163, 74, 0.58);
  color: #86efac;
}

.livery-preview-numberplate-tools {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.livery-preview-numberplate-tools button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  width: 100%;
  padding-right: 8px;
  padding-left: 8px;
  border-color: rgba(255, 255, 255, 0.14);
}
.livery-preview-numberplate-tools button.active {
  border-color: rgba(var(--accent-2-rgb), 0.78);
  background: rgba(var(--accent-2-rgb), 0.22);
  color: #fff;
}
.livery-preview-numberplate-tools .tool-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  min-width: 18px;
  height: 18px;
  font-size: 15px;
  line-height: 1;
}
.livery-preview-numberplate-tools .tool-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.livery-preview-numberplate-text-control {
  max-width: 110px;
}

.livery-preview-numberplate-grid {
  display: grid;
  grid-column: 1/-1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.livery-preview-numberplate-fit .livery-preview-numberplate-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.livery-preview-numberplate-panel .livery-preview-numberplate-check,
.livery-preview-numberplate-dev-panel .livery-preview-numberplate-check {
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
}
.livery-preview-numberplate-panel .livery-preview-numberplate-check input,
.livery-preview-numberplate-dev-panel .livery-preview-numberplate-check input {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin: 0;
}

.livery-preview-numberplate-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.livery-preview-numberplate-actions button {
  width: 100%;
  justify-content: center;
}
.livery-preview-numberplate-actions .numberplate-action-spaced {
  margin-top: 12px;
}

.livery-preview-numberplate-actions-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.livery-preview-numberplate-actions-compact button {
  min-height: 34px;
  padding-right: 8px;
  padding-left: 8px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
}

.livery-preview-numberplate-advanced {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.livery-preview-numberplate-advanced summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
}
.livery-preview-numberplate-advanced .livery-preview-numberplate-actions {
  margin-top: 8px;
}

.livery-preview-numberplate-diagnostics {
  display: grid;
  min-width: 0;
  align-items: start;
  gap: 8px;
  padding-top: 10px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.livery-preview-numberplate-diagnostics strong {
  color: #fff;
  font-size: 14px;
}
.livery-preview-numberplate-diagnostics pre {
  max-height: 180px;
  padding: 9px;
  overflow: auto;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  border-radius: 0px;
  background: rgba(0, 0, 0, 0.26);
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.livery-preview-numberplate-panel p,
.livery-preview-numberplate-dev-panel p {
  margin: 0;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.livery-preview-scene-settings-panel {
  position: absolute;
  top: 54px;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  width: var(--scene-settings-panel-width);
  max-width: var(--scene-settings-panel-width);
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px;
  border-left: var(--border-width) solid rgba(var(--accent-2-rgb), 0.52);
  background: rgba(0, 0, 0, 0.94);
  box-shadow: -10px 0 32px rgba(0, 0, 0, 0.35);
}

.livery-preview-scene-settings-panel[hidden] {
  display: none;
}

.livery-preview-scene-settings-head {
  display: grid;
  gap: 4px;
}
.livery-preview-scene-settings-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 17px;
  text-transform: uppercase;
}
.livery-preview-scene-settings-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.livery-preview-scene-settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.livery-preview-scene-settings-subhead {
  grid-column: 1/-1;
  padding-top: 8px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: uppercase;
}

.livery-preview-scene-settings-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-transform: uppercase;
}
.livery-preview-scene-settings-fields label:first-child {
  grid-column: 1/-1;
}
.livery-preview-scene-settings-fields label input,
.livery-preview-scene-settings-fields label select {
  min-width: 0;
  width: 100%;
}
.livery-preview-scene-settings-fields label input[type=color] {
  height: 34px;
  padding: 2px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: rgba(0, 0, 0, 0.3);
}
.livery-preview-scene-settings-fields label select,
.livery-preview-scene-settings-fields label input[type=number] {
  min-height: 34px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background-color: rgba(0, 0, 0, 0.3);
  color: #fff;
}

.livery-preview-scene-settings-check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  align-content: center;
  min-height: 58px;
  padding: 8px 9px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}
.livery-preview-scene-settings-check input[type=checkbox] {
  width: 15px;
  min-width: 15px;
  height: 15px;
  min-height: 15px;
  margin: 0;
}

.livery-preview-scene-settings-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.livery-preview-scene-settings-actions button {
  width: 100%;
  justify-content: center;
}

.livery-preview-scene-settings-panel p {
  margin: 0;
  min-height: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.35;
}

.livery-preview-status-wrap {
  min-height: 0;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.livery-preview-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 0 14px;
  gap: 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  text-transform: uppercase;
}

.livery-preview-status-head button {
  min-height: 24px;
  padding: 0 9px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-transform: none;
}
.livery-preview-status-head button:hover, .livery-preview-status-head button:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.14);
  color: #fff;
}

.livery-preview-status {
  min-height: 58px;
  max-height: 120px;
  overflow: auto;
  padding: 10px 14px;
  white-space: pre-wrap;
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.4;
}

.livery-preview-status-wrap.is-collapsed .livery-preview-status {
  display: none;
}

.layer-studio-workspace {
  --layer-studio-layers-col: 260px;
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
  background: var(--bg);
  color: var(--ink);
}

.layer-studio-workspace[hidden] {
  display: none;
}

.status-modal:has(.layer-studio-shortcut-grid) .status-modal-dialog {
  width: min(1260px, 100vw - 48px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.status-modal:has(.layer-studio-shortcut-grid) .status-modal-body {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.layer-studio-shortcut-grid {
  column-count: 3;
  column-gap: 22px;
  min-width: 0;
  white-space: normal;
}

.layer-studio-shortcut-column {
  display: grid;
  align-content: start;
  gap: 7px;
  break-inside: avoid;
  min-width: 0;
  margin: 0 0 18px;
}

.layer-studio-shortcut-column > strong {
  color: var(--accent-3) !important;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.2;
  text-transform: uppercase;
}

.layer-studio-shortcut-row {
  display: grid;
  grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  min-width: 0;
  color: #d9e1e8;
  font-size: 14px;
  line-height: 1.35;
}

.layer-studio-shortcut-row code {
  display: inline-block;
  margin-right: 3px;
  padding: 1px 5px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  background: #07090c;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  white-space: nowrap;
}

.layer-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(0, 0, 0, 0.98);
}

.layer-studio-topbar-main {
  display: grid;
  grid-template-columns: minmax(0, calc(var(--layer-studio-layers-col) - 14px)) auto;
  align-items: center;
  min-width: 0;
}

.layer-studio-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.layer-studio-title strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.2;
  text-transform: uppercase;
}

.layer-studio-title span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.layer-studio-dirty-state {
  min-width: 108px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.layer-studio-dirty-state.is-dirty {
  color: rgb(var(--accent-2-rgb));
}

.layer-studio-actions > .livery-preview-action {
  align-self: center;
  min-height: 34px;
  margin-left: 8px;
  padding: 6px 12px;
  border: var(--border-width) solid #ff4d55;
  border-radius: 0;
  background: #000;
  color: #fff;
}

.layer-studio-actions > .livery-preview-action:hover,
.layer-studio-actions > .livery-preview-action:focus-visible {
  border-color: #ff7077;
  background: rgba(255, 77, 85, 0.14);
}

.layer-studio-update-texture-wrap {
  position: relative;
  display: inline-flex;
}

.layer-studio-update-texture-wrap > .layer-studio-update-texture {
  border-color: rgba(55, 224, 33, 0.72);
  background: #1f8f27;
  color: #fff;
  font-weight: 700;
}

.layer-studio-update-texture-wrap > .layer-studio-update-texture:hover,
.layer-studio-update-texture-wrap > .layer-studio-update-texture:focus-visible {
  border-color: var(--accent-green);
  background: #26a630;
  color: #fff;
}

.layer-studio-update-texture-feedback {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 40;
  width: max-content;
  max-width: 320px;
  padding: 8px 10px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.3);
  background: #080b0f;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.46);
  color: #e7edf4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.layer-studio-update-texture-feedback[hidden] {
  display: none;
}

.layer-studio-update-texture-feedback.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.layer-studio-update-texture-feedback.is-update-required {
  border-color: rgba(247, 201, 72, 0.72);
  color: #fff0bf;
}

.layer-studio-update-texture-feedback.is-local {
  border-color: rgba(55, 224, 33, 0.58);
  color: #dcffd7;
}

.layer-studio-body {
  --layer-studio-library-col: 52px;
  --layer-studio-layers-col: 260px;
  --layer-studio-editor-col: minmax(0, 1fr);
  --layer-studio-preview-col: minmax(0, 1fr);
  --layer-studio-splitter-col: 7px;
  position: relative;
  display: grid;
  grid-template-columns: var(--layer-studio-layers-col) var(--layer-studio-editor-col) var(--layer-studio-splitter-col) var(--layer-studio-preview-col) var(--layer-studio-library-col);
  min-height: 0;
  background: #000;
}

.layer-studio-body.is-library-collapsed {
  --layer-studio-library-col: 52px;
}

.layer-studio-body.is-editor-collapsed {
  --layer-studio-editor-col: 52px;
  --layer-studio-splitter-col: 0;
  --layer-studio-preview-col: minmax(0, 1fr);
}

.layer-studio-body.is-preview-collapsed {
  --layer-studio-editor-col: minmax(0, 1fr);
  --layer-studio-splitter-col: 0;
  --layer-studio-preview-col: 52px;
}

.layer-studio-body.is-view-resizing,
.layer-studio-body.is-view-resizing * {
  cursor: col-resize !important;
  user-select: none;
}

.layer-studio-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  position: relative;
  min-width: 0;
  min-height: 0;
  border-top: var(--border-width) solid rgba(var(--accent-2-rgb), 0.28);
  background: var(--panel);
}
.layer-studio-panel + .layer-studio-panel {
  border-left: var(--border-width) solid var(--line);
}

.layer-studio-editor-panel {
  position: relative;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.layer-studio-editor-panel .layer-studio-panel-head {
  align-items: stretch;
  padding-block: 0;
}

.layer-studio-editor-panel .layer-studio-panel-head > div:first-child {
  justify-content: center;
  padding-block: 12px;
}

.layer-studio-texture-title {
  align-content: center;
}

.layer-studio-texture-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding-left: 0;
}

.layer-studio-texture-picker select {
  min-width: 128px;
  max-width: 180px;
  height: 30px;
}

.layer-studio-texture-picker button {
  flex: 0 0 auto;
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.layer-studio-preview-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.layer-studio-view-splitter {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-top: var(--border-width) solid rgba(var(--accent-2-rgb), 0.28);
  border-left: var(--border-width) solid var(--line);
  border-right: var(--border-width) solid var(--line);
  background: #000;
  cursor: col-resize;
}
.layer-studio-view-splitter::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 52px;
  background: var(--accent-3);
  box-shadow: -2px 0 0 rgba(var(--accent-2-rgb), 0.28), 2px 0 0 rgba(var(--accent-2-rgb), 0.28);
  transform: translate(-50%, -50%);
}
.layer-studio-view-splitter:hover, .layer-studio-view-splitter:focus-visible, .layer-studio-view-splitter.is-active {
  outline: none;
  background: rgba(var(--accent-2-rgb), 0.16);
}
.layer-studio-view-splitter:focus-visible::before, .layer-studio-view-splitter:hover::before, .layer-studio-view-splitter.is-active::before {
  background: var(--accent-2);
}

.layer-studio-body.is-editor-collapsed .layer-studio-view-splitter,
.layer-studio-body.is-preview-collapsed .layer-studio-view-splitter {
  display: none;
}

.layer-studio-panel-collapse {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 42px;
  min-height: 100%;
  padding-inline: 8px;
  border-right: none;
  border-bottom: none;
  border-top: none;
}

.layer-studio-panel.is-collapsed-horizontal {
  grid-template-rows: minmax(0, 1fr);
  width: 52px;
  min-width: 52px;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-panel-head {
  display: grid;
  justify-items: center;
  min-height: 100%;
  padding: 0;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-panel-head > div,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-editor-head-tools,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-texture-stage,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-preview-stage,
.layer-studio-panel.is-collapsed-horizontal .layer-studio-status {
  display: none;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-panel-collapse {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  border-left: none;
}

.layer-studio-library-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 42;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  width: min(560px, 100vw - 64px);
  max-width: calc(100vw - 64px);
  min-width: 0;
  border-left: var(--border-width) solid var(--line);
  box-shadow: -18px 0 28px rgba(0, 0, 0, 0.34);
  transition: width 0.16s ease, box-shadow 0.16s ease;
}

.layer-studio-library-panel.is-collapsed {
  grid-template-rows: minmax(0, 1fr);
  z-index: 8;
  width: 52px;
  min-width: 52px;
  box-shadow: none;
}

.layer-studio-library-panel.is-collapsed .layer-studio-panel-head {
  display: grid;
  justify-items: center;
  min-height: 100%;
  padding: 0;
  border-bottom: 0;
}

.layer-studio-library-panel.is-collapsed .layer-studio-panel-head > div,
.layer-studio-library-panel.is-collapsed .layer-studio-library-actions,
.layer-studio-library-panel.is-collapsed .layer-studio-library-search,
.layer-studio-library-panel.is-collapsed .layer-studio-library-list {
  display: none;
}

.layer-studio-library-panel.is-collapsed .layer-studio-icon-button {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.layer-studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 65px;
  padding: 0px 0 0px 14px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(0, 0, 0, 0.98);
}
.layer-studio-panel-head #layerStudioLibraryToggle {
  height: 100%;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-top: none;
}

.layer-studio-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  line-height: 1;
}
.layer-studio-icon-button svg {
  display: block;
}

.layer-studio-library-rail-label {
  display: inline-block;
  color: #ffd84a;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  transform: rotate(90deg);
  transform-origin: center;
}

.layer-studio-panel-head > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.layer-studio-panel-head > .layer-studio-preview-menu {
  display: flex;
  flex: 1 1 auto;
  align-self: stretch;
  justify-content: flex-end;
  min-width: 0;
}

.layer-studio-preview-menu .livery-preview-menu-trigger,
.layer-studio-preview-menu > button {
  min-height: 64px;
}

.layer-studio-panel-head strong {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
  text-transform: uppercase;
}

.layer-studio-panel-head span {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-right: none;
}

#layerStudioLibraryToggle span {
  color: var(--accent-3) !important;
}

.layer-studio-editor-head-tools {
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 0;
}

.layer-studio-toolstrip-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  align-self: stretch;
  padding-inline: 10px;
  border-right: var(--border-width) solid var(--line);
  color: rgba(255, 255, 255, 0.62);
  font-family: var(--font-display);
  font-size: 13px;
  text-transform: uppercase;
}

.layer-studio-toolstrip {
  display: grid;
  grid-template-columns: auto repeat(9, 48px);
  align-items: stretch;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
  padding: 0;
  overflow-x: auto;
  border-inline: var(--border-width) solid var(--line);
  border-top: none;
  border-bottom: none;
  background: rgba(var(--accent-2-rgb), 0.055);
}

.layer-studio-toolstrip .layer-studio-history-button {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  padding: 0;
}

.layer-studio-toolstrip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0 10px;
  border-top: none;
  border-bottom: none;
  border-left: var(--border-width) solid rgba(var(--accent-2-rgb), 0.42);
  border-right: none;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  white-space: nowrap;
}
.layer-studio-toolstrip button:hover, .layer-studio-toolstrip button:focus-visible, .layer-studio-toolstrip button.is-active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.18);
  color: #fff;
}

.layer-studio-tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: currentColor;
}
.layer-studio-tool-icon svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.layer-studio-tool-icon-text svg text {
  fill: currentColor;
  stroke: none;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0;
}

.layer-studio-library-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 42px;
  padding: 6px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.045);
}

.layer-studio-library-tabs {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.layer-studio-library-actions button,
.layer-studio-library-item button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 30px;
  padding: 4px 8px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: #000;
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}
.layer-studio-library-actions button svg,
.layer-studio-library-item button svg {
  display: block;
  flex: 0 0 auto;
}

.layer-studio-library-tabs button.is-active {
  border-color: #f7c948;
  background: rgba(247, 201, 72, 0.18);
  color: #f7c948;
  font-size: 16px;
  font-weight: 900;
}

.layer-studio-library-actions button:hover,
.layer-studio-library-actions button:focus-visible,
.layer-studio-library-item button:hover,
.layer-studio-library-item button:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.18);
  color: #fff;
}

.layer-studio-library-search {
  display: grid;
  gap: 5px;
  padding: 8px 10px 10px;
  border-bottom: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.035);
}
.layer-studio-library-search label {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.layer-studio-library-search input {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.34);
  border-radius: 0;
  background: #000;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
}
.layer-studio-library-search input:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  outline: none;
  box-shadow: 0 0 0 1px rgba(var(--accent-2-rgb), 0.28);
}
.layer-studio-library-search input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.layer-studio-library-search input::-webkit-search-cancel-button {
  width: 15px;
  height: 15px;
  margin-left: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 4l8 8M12 4l-8 8' stroke='black' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.layer-studio-library-search input::-webkit-search-cancel-button:hover {
  background: #fff;
}

.layer-studio-library-list {
  min-height: 0;
  overflow: auto;
  background: #07080a;
}

.layer-studio-library-group {
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.08);
}

.layer-studio-library-group.is-drop-target {
  background: rgba(var(--accent-2-rgb), 0.1);
}
.layer-studio-library-group.is-drop-target .layer-studio-library-group-head {
  border-bottom-color: var(--accent-2-border);
  box-shadow: inset 3px 0 0 var(--accent-2-border);
}

.layer-studio-library-group-head {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 32px 32px;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px;
  border-bottom: var(--border-width) solid rgba(var(--accent-2-rgb), 0.18);
  background: rgba(var(--accent-2-rgb), 0.09);
}
.layer-studio-library-group-head strong {
  overflow: hidden;
  color: #ffd84a;
  font-family: var(--font-display);
  font-size: 15px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.layer-studio-library-group-head span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.layer-studio-library-group.is-collapsed .layer-studio-library-group-body {
  display: none;
}

.layer-studio-library-item {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 10px 44px 10px 12px;
  border-bottom: var(--border-width) solid var(--line);
  color: rgba(255, 255, 255, 0.78);
}

.layer-studio-library-item:hover {
  background: rgba(var(--accent-2-rgb), 0.1);
}

.layer-studio-library-item.is-missing {
  color: rgba(255, 255, 255, 0.44);
}

.layer-studio-library-item.is-dragging {
  opacity: 0.55;
}

.layer-studio-layer-row.is-missing {
  border-color: rgba(255, 90, 79, 0.52);
}

.layer-studio-library-thumb {
  display: grid;
  place-items: center;
  width: 68px;
  height: 62px;
  overflow: hidden;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.26);
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.06) 75%), #000;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.layer-studio-library-thumb img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.layer-studio-library-thumb span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  text-transform: uppercase;
}

.layer-studio-library-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.layer-studio-library-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-items: end;
}

.layer-studio-library-group-head .layer-studio-icon-button,
.layer-studio-library-item-actions .layer-studio-icon-button {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
}

.layer-studio-library-drag-handle {
  position: absolute;
  top: 6px;
  right: 6px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  min-width: 28px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ff4d55;
  cursor: grab;
}
.layer-studio-library-drag-handle:hover, .layer-studio-library-drag-handle:focus-visible {
  outline: none;
  color: #ff7077;
}
.layer-studio-library-drag-handle:active {
  cursor: grabbing;
}

.layer-studio-library-main strong,
.layer-studio-library-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-library-main strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.15;
}

.layer-studio-library-main span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.layer-studio-texture-stage,
.layer-studio-preview-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.035) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.035) 75%), #07080a;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.layer-studio-canvas-host {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layer-studio-canvas-host canvas {
  display: block;
}

.layer-studio-guide-bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 8, 10, 0.84);
  backdrop-filter: blur(10px);
}

.layer-studio-guide-bar button {
  min-height: 24px;
  padding: 3px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layer-studio-guide-bar button:hover,
.layer-studio-guide-bar button.is-active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  color: #fff;
}

.layer-studio-guide-bar button:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.layer-studio-guide-bar-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.layer-studio-guide-bar-group-arrange {
  margin-left: auto;
}

.layer-studio-guide-bar-group-align {
  margin-left: 10px;
}

.layer-studio-guide-bar-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.layer-studio-guide-bar-group-arrange .layer-studio-guide-bar-label,
.layer-studio-guide-bar-group-align .layer-studio-guide-bar-label {
  margin-right: 2px;
}

.layer-studio-guide-bar-group-arrange .layer-studio-guide-bar-label:not(:first-child) {
  margin-left: 8px;
}

.layer-studio-guide-bar .layer-studio-guide-icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  min-width: 28px;
  height: 24px;
  padding: 0;
}

.layer-studio-guide-icon-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

#layerStudioGuideSummary {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  white-space: nowrap;
}

#layerStudioGuideSummary[hidden] {
  display: none;
}

.layer-studio-preview-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.layer-studio-preview-camera-bar {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 36px;
  padding: 6px 10px;
  border-top: var(--border-width) solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 8, 10, 0.84);
  backdrop-filter: blur(10px);
}

.layer-studio-preview-camera-bar .livery-preview-camera-presets {
  justify-content: flex-end;
  gap: 6px;
}

.layer-studio-preview-camera-bar .livery-preview-camera-presets button {
  min-height: 24px;
  padding: 3px 8px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.layer-studio-preview-camera-bar .livery-preview-camera-presets button:hover,
.layer-studio-preview-camera-bar .livery-preview-camera-presets button.active {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  color: #fff;
}

.layer-studio-paint-finish-panel {
  position: absolute;
  z-index: 24;
  top: 65px;
  right: 0;
  bottom: 42px;
  width: min(360px, 42%);
  min-width: 300px;
  box-shadow: -18px 0 28px rgba(0, 0, 0, 0.32);
}

.layer-studio-paint-finish-panel[hidden],
.layer-studio-panel.is-collapsed-horizontal .layer-studio-paint-finish-panel {
  display: none;
}

.layer-studio-texture-stage > span,
.layer-studio-preview-stage > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}

.layer-studio-status {
  overflow: auto;
  padding: 10px 14px;
  border-top: var(--border-width) solid var(--line);
  background: rgba(var(--accent-2-rgb), 0.06);
  color: rgba(255, 255, 255, 0.76);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
}

.layer-studio-properties-panel {
  grid-template-rows: auto minmax(0, 1fr);
}

.layer-studio-properties-body {
  min-height: 0;
  background: #07080a;
}

.layer-studio-layer-list {
  height: 100%;
  min-height: 0;
  overflow: auto;
}

.layer-studio-layer-empty {
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.layer-studio-layer-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  width: 100%;
  min-height: 58px;
  padding: 8px 42px 8px 10px;
  border: 0;
  border-bottom: var(--border-width) solid var(--line);
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  text-align: left;
  user-select: none;
}
.layer-studio-layer-row:hover, .layer-studio-layer-row:focus-visible {
  outline: none;
  background: rgba(var(--accent-2-rgb), 0.12);
  color: #fff;
}
.layer-studio-layer-row.is-hovered:not(.is-selected) {
  background: rgba(var(--accent-2-rgb), 0.12);
  color: #fff;
  box-shadow: inset 3px 0 0 rgba(var(--accent-2-rgb), 0.46);
}
.layer-studio-layer-row.is-selected {
  border-bottom-color: rgba(var(--accent-2-rgb), 0.42);
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--accent-2-border), inset 0 0 0 var(--border-width) rgba(var(--accent-2-rgb), 0.98);
}
.layer-studio-layer-row.is-stripe.is-selected, .layer-studio-layer-row.is-stripe.is-point-editing {
  border-bottom-color: rgba(var(--accent-2-rgb), 0.68);
  background: rgba(var(--accent-2-rgb), 0.24);
  box-shadow: inset 3px 0 0 var(--accent-2-border), inset 0 0 0 2px rgba(var(--accent-2-rgb), 0.46);
}
.layer-studio-layer-row.is-multi-selected {
  background: rgba(var(--accent-2-rgb), 0.15);
  box-shadow: inset 3px 0 0 var(--accent-3), inset 0 0 0 var(--border-width) rgba(var(--accent-2-rgb), 0.22);
}
.layer-studio-layer-row.is-dragging {
  opacity: 0.55;
}
.layer-studio-layer-row.is-drop-target {
  border-bottom-color: var(--accent-2-border);
  background: rgba(var(--accent-2-rgb), 0.18);
  box-shadow: inset 0 -3px 0 var(--accent-2-border);
}
.layer-studio-layer-row.is-hidden {
  color: rgba(255, 255, 255, 0.42);
}
.layer-studio-layer-row.is-locked {
  background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent);
}
.layer-studio-layer-row.is-virtual {
  border-bottom-color: rgba(var(--accent-2-rgb), 0.34);
  background: rgba(255, 255, 255, 0.1);
}
.layer-studio-layer-row.is-compact-overlay {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  min-height: 42px;
  padding: 7px 10px;
}
.layer-studio-layer-row.is-compact-overlay .layer-studio-layer-main {
  align-self: center;
}
.layer-studio-layer-row.is-compact-overlay .layer-studio-layer-name {
  align-self: center;
}
.layer-studio-layer-row.is-compact-overlay .layer-studio-layer-controls {
  justify-self: end;
}
.layer-studio-layer-row.is-group {
  background: rgba(var(--accent-2-rgb), 0.2);
}
.layer-studio-layer-row.is-group strong {
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
}
.layer-studio-layer-row.is-mask-group {
  background: rgba(255, 206, 84, 0.2);
}
.layer-studio-layer-row.is-group-child {
  padding-left: 28px;
  border-left: var(--border-width) solid rgba(var(--accent-2-rgb), 0.35);
  background: rgba(var(--accent-2-rgb), 0.1);
}
.layer-studio-layer-row.is-mask-child {
  border-left-color: rgba(255, 206, 84, 0.55);
  background: rgba(255, 206, 84, 0.1);
}

.layer-studio-layer-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.layer-studio-layer-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.layer-studio-layer-stroke-swatch {
  appearance: none;
  display: inline-block;
  flex: 0 0 30px;
  width: 30px;
  height: 12px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.34);
  background: var(--layer-studio-layer-stroke, #f07a00);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.68);
  cursor: pointer;
}

.layer-studio-layer-row.is-stripe:hover .layer-studio-layer-stroke-swatch,
.layer-studio-layer-row.is-stripe:focus-visible .layer-studio-layer-stroke-swatch,
.layer-studio-layer-row.is-stripe.is-hovered .layer-studio-layer-stroke-swatch,
.layer-studio-layer-row.is-stripe.is-selected .layer-studio-layer-stroke-swatch {
  border-color: var(--accent-2-border);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.78), 0 0 0 2px rgba(var(--accent-2-rgb), 0.24);
}

.layer-studio-layer-row strong,
.layer-studio-layer-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-layer-row strong {
  align-self: end;
  font-size: 14px;
  line-height: 1.1;
}

.layer-studio-layer-name[data-layer-rename] {
  cursor: text;
}

.layer-studio-layer-drag-handle {
  position: absolute;
  top: 4px;
  right: 0px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-2);
  cursor: grab;
}
.layer-studio-layer-drag-handle:hover, .layer-studio-layer-drag-handle:focus-visible {
  outline: none;
  color: var(--accent-2-border);
}
.layer-studio-layer-drag-handle:active {
  cursor: grabbing;
}

.layer-studio-layer-rename-input {
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 2px 6px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.72);
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 14px;
  user-select: text;
}
.layer-studio-layer-rename-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
}

.layer-studio-layer-row span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.layer-studio-layer-flags {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
}

.layer-studio-layer-controls {
  display: flex;
  gap: 4px;
}

.layer-studio-layer-controls.is-uv-overlay {
  display: inline-grid;
  grid-template-columns: repeat(2, 28px);
  justify-content: start;
  width: max-content;
}

.layer-studio-layer-controls button {
  min-width: 0;
  min-height: 24px;
  padding: 2px 4px;
  border-color: rgba(var(--accent-2-rgb), 0.34);
  background: #000;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}
.layer-studio-layer-controls button:hover, .layer-studio-layer-controls button:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  color: #fff;
}
.layer-studio-layer-controls button:disabled {
  opacity: 0.35;
}

.layer-studio-layer-controls .layer-studio-icon-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
}

.layer-studio-icon-button svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.layer-studio-properties-form {
  position: absolute;
  top: 65px;
  left: 0;
  right: 0;
  z-index: 4;
  display: flex;
  grid-template-columns: minmax(150px, 1.5fr) minmax(180px, 1.8fr) minmax(110px, 1fr) minmax(78px, 0.8fr) minmax(72px, 0.75fr) repeat(7, minmax(62px, 0.75fr));
  align-items: end;
  gap: 8px;
  min-width: 0;
  max-height: 82px;
  padding: 8px 10px;
  border-top: var(--border-width) solid var(--line);
  border-bottom: var(--border-width) solid var(--line);
  background: #000;
  opacity: 1;
  overflow: visible;
  transform: translateY(0);
  transition: max-height 0.16s ease, opacity 0.14s ease, padding 0.16s ease, transform 0.16s ease, border-color 0.16s ease;
}
.layer-studio-properties-form.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
}
.layer-studio-properties-form #layerStudioPropNameWrap {
  max-width: 120px;
  min-width: 120px;
}

.layer-studio-properties-form label {
  display: grid;
  gap: 4px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  text-transform: uppercase;
  flex: 1;
}

.layer-studio-properties-form .layer-studio-ratio-lock {
  align-self: end;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
}
.layer-studio-properties-form .layer-studio-ratio-lock svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.layer-studio-properties-form .layer-studio-ratio-lock.is-active {
  color: #0b1216;
  border-color: var(--accent-2-border);
  background: var(--accent-2);
}

.layer-studio-properties-form input,
.layer-studio-properties-form select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: var(--border-width) solid var(--accent-2);
  background: #000;
  color: #fff;
  font: inherit;
}
.layer-studio-properties-form input:focus,
.layer-studio-properties-form select:focus {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.16);
  outline: none;
}

.layer-studio-properties-form input:disabled,
.layer-studio-properties-form select:disabled {
  opacity: 0.46;
}

.layer-studio-properties-form input[type=color] {
  padding: 2px;
  cursor: pointer;
}
.layer-studio-properties-form input[type=color]:hover {
  border-color: rgba(var(--accent-2-rgb), 0.88);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.12);
}
.layer-studio-properties-form input[type=color]:focus-visible {
  border-color: var(--accent-2-border);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.2);
}

.layer-studio-properties-form .is-stroke-control input[type=color]:not(:disabled) {
  border-color: var(--accent-2-border);
  box-shadow: inset 0 0 0 1px rgba(var(--accent-2-rgb), 0.32);
}

.layer-studio-color-favorites-dock {
  position: absolute;
  z-index: 18;
  top: 147px;
  right: 10px;
  display: grid;
  justify-items: end;
  width: min(310px, 100% - 20px);
  pointer-events: none;
  transition: top 0.16s ease;
}

.layer-studio-properties-form.is-collapsed + .layer-studio-color-favorites-dock {
  top: 65px;
}

.layer-studio-panel.is-collapsed-horizontal .layer-studio-color-favorites-dock {
  display: none;
}

.layer-studio-color-favorites-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.48);
  background: rgba(0, 0, 0, 0.94);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  pointer-events: auto;
}
.layer-studio-color-favorites-toggle:hover, .layer-studio-color-favorites-toggle:focus-visible, .layer-studio-color-favorites-toggle.is-open {
  border-color: var(--accent-2);
  background: #000;
  color: #fff;
  outline: none;
}
.layer-studio-color-favorites-toggle:disabled {
  opacity: 0.46;
  cursor: not-allowed;
}
.layer-studio-color-favorites-toggle svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.14s ease;
}
.layer-studio-color-favorites-toggle.is-open svg {
  transform: rotate(180deg);
}

.layer-studio-active-color-swatch {
  width: 15px;
  height: 15px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.54);
  background: var(--layer-studio-active-color, #e43d30);
}

.layer-studio-color-favorites-panel {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.58);
  background: rgba(0, 0, 0, 0.97);
  box-shadow: -12px 14px 24px rgba(0, 0, 0, 0.42);
  pointer-events: auto;
  animation: layer-studio-color-favorites-in 0.14s ease-out;
}

.layer-studio-color-favorites-panel[hidden] {
  display: none;
}

@keyframes layer-studio-color-favorites-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.layer-studio-color-favorites-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: var(--border-width) solid rgba(255, 255, 255, 0.12);
}
.layer-studio-color-favorites-head strong {
  color: var(--accent-3);
  font-size: 12px;
  text-transform: uppercase;
}
.layer-studio-color-favorites-head span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.layer-studio-color-favorites-list {
  display: grid;
  gap: 5px;
  padding-top: 8px;
}

.layer-studio-color-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px 30px;
  align-items: center;
  gap: 5px;
  min-height: 32px;
}
.layer-studio-color-favorite-row.is-editing {
  grid-template-columns: 32px minmax(0, 1fr) auto 30px;
}
.layer-studio-color-favorite-row.is-active .layer-studio-color-favorite-apply {
  border-color: var(--accent-2);
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.layer-studio-color-favorite-apply {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 32px;
  padding: 3px 8px 3px 3px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  text-align: left;
}
.layer-studio-color-favorite-apply:hover, .layer-studio-color-favorite-apply:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  outline: none;
}
.layer-studio-color-favorite-apply code {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  font-family: Consolas, monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-studio-color-favorite-swatch {
  width: 28px;
  height: 24px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.34);
  background: var(--layer-studio-favorite-color, #000);
}

.layer-studio-color-favorite-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  border: var(--border-width) solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.72);
}
.layer-studio-color-favorite-icon:hover, .layer-studio-color-favorite-icon:focus-visible {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  color: #fff;
  outline: none;
}
.layer-studio-color-favorite-icon.is-delete:hover, .layer-studio-color-favorite-icon.is-delete:focus-visible {
  border-color: rgba(255, 90, 79, 0.72);
  color: #ff7077;
}
.layer-studio-color-favorite-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.layer-studio-color-favorite-picker {
  width: 32px;
  min-width: 32px;
  height: 30px;
  padding: 2px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.58);
  background: #000;
}

.layer-studio-color-favorite-hex {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 4px 7px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.18);
  background: #000;
  color: #fff;
  font-family: Consolas, monospace;
  font-size: 12px;
}
.layer-studio-color-favorite-hex:focus {
  border-color: var(--accent-2);
  outline: none;
}

.layer-studio-color-favorite-row.is-editing > button[data-color-favorite-action=save] {
  height: 30px;
  padding: 4px 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.58);
  background: rgba(var(--accent-2-rgb), 0.14);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.layer-studio-color-favorites-status {
  display: block;
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.3;
}
.layer-studio-color-favorites-status:empty {
  display: none;
}
.layer-studio-color-favorites-status.is-error {
  color: #ff8a8f;
}

.layer-studio-splat-palette {
  display: grid;
  grid-template-columns: repeat(4, 30px);
  align-items: end;
  gap: 6px;
  flex: 0 0 auto;
}

.layer-studio-splat-palette button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: var(--border-width) solid rgba(255, 255, 255, 0.24);
  background: var(--layer-studio-splat-color, #000);
  color: transparent;
  cursor: pointer;
}

.layer-studio-splat-palette button.is-active,
.layer-studio-splat-palette button:hover,
.layer-studio-splat-palette button:focus-visible {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 2px rgba(var(--accent-2-rgb), 0.18);
  outline: none;
}

.layer-studio-splat-legend {
  position: absolute;
  z-index: 5;
  top: 154px;
  right: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 4px 10px;
  width: max-content;
  min-width: 0;
  max-width: calc(100% - 24px);
  padding: 6px 8px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(7, 8, 10, 0.92);
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.25;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
  pointer-events: none;
}

.layer-studio-splat-legend[hidden] {
  display: none;
}

.layer-studio-splat-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  white-space: nowrap;
}

.layer-studio-splat-legend i {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.28);
  background: var(--splat-color, #000);
}

.layer-studio-splat-legend strong {
  color: var(--text);
  font-weight: 700;
}

.layer-studio-gradient-control {
  position: relative;
  align-self: end;
  flex: 0 0 142px;
  min-width: 142px;
}

.layer-studio-gradient-toggle {
  display: grid;
  grid-template-columns: auto minmax(58px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: var(--border-width) solid var(--accent-2);
  background: #000;
  color: #fff;
  font: inherit;
  text-transform: uppercase;
}

.layer-studio-gradient-toggle-preview,
.layer-studio-gradient-preview {
  background: var(--layer-studio-gradient-preview), linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%), linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%), linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%), linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.18) 75%), #2f3338;
  background-position: 0 0, 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: auto, 16px 16px, 16px 16px, 16px 16px, 16px 16px;
}

.layer-studio-gradient-toggle-preview {
  height: 16px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.28);
}

.layer-studio-gradient-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 20;
  display: grid;
  gap: 10px;
  width: 282px;
  padding: 12px;
  border: var(--border-width) solid var(--accent-2);
  background: #050608;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.52);
}

.layer-studio-gradient-preview {
  height: 58px;
  border: var(--border-width) solid rgba(255, 255, 255, 0.24);
}

.layer-studio-gradient-fields {
  display: grid;
  grid-template-columns: 78px minmax(72px, 1fr) 78px;
  gap: 12px;
  align-items: end;
}

.layer-studio-gradient-stop,
.layer-studio-gradient-angle {
  display: grid;
  gap: 7px;
}

.layer-studio-gradient-stop-a {
  grid-column: 1;
}

.layer-studio-gradient-angle {
  grid-column: 2;
}

.layer-studio-gradient-stop-b {
  grid-column: 3;
}

.layer-studio-gradient-stop label,
.layer-studio-gradient-angle {
  display: grid !important;
  gap: 4px;
  min-width: 0 !important;
  flex: none !important;
}

.layer-studio-gradient-stop input,
.layer-studio-gradient-angle input {
  width: 100%;
}

.layer-studio-gradient-stop input[type=color] {
  height: 30px;
}

.layer-studio-gradient-stop input[type=number],
.layer-studio-gradient-angle input[type=number] {
  height: 30px;
  text-align: center;
}

.layer-studio-property-wide {
  grid-column: auto;
}

.layer-studio-property-check {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  min-height: 32px;
  padding: 0 8px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.32);
  background: #000;
}

.layer-studio-property-check input {
  width: auto;
  height: auto;
}

@media (max-width: 1280px) {
  .layer-studio-body {
    --layer-studio-library-col: 52px;
    --layer-studio-layers-col: 260px;
    --layer-studio-editor-col: minmax(0, 1fr);
    --layer-studio-preview-col: minmax(0, 1fr);
  }
  .layer-studio-body.is-library-collapsed {
    --layer-studio-library-col: 52px;
  }
  .layer-studio-body.is-editor-collapsed {
    --layer-studio-editor-col: 52px;
    --layer-studio-splitter-col: 0;
    --layer-studio-preview-col: minmax(0, 1fr);
  }
  .layer-studio-body.is-preview-collapsed {
    --layer-studio-editor-col: minmax(0, 1fr);
    --layer-studio-splitter-col: 0;
    --layer-studio-preview-col: 52px;
  }
}
#tab-numberplate-creator {
  height: 100%;
}

.numberplate-studio-panel {
  gap: 16px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  --studio-content-height: calc(100dvh - 190px);
}

.numberplate-studio {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(360px, 1fr) minmax(320px, 420px);
  gap: 14px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.numberplate-template-rail,
.numberplate-studio-preview,
.numberplate-studio-editor {
  min-width: 0;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.numberplate-template-rail,
.numberplate-studio-editor {
  padding: 12px;
  overflow: auto;
}

.numberplate-studio-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  padding: 12px;
}

.numberplate-studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.numberplate-template-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: calc(var(--studio-content-height) - 122px);
  overflow: auto;
}

.numberplate-template-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.numberplate-template-thumb {
  width: 82px;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line-soft);
  background: #0c0f14;
  object-fit: contain;
}

.numberplate-template-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.numberplate-template-copy strong,
.numberplate-template-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.numberplate-template-copy strong {
  color: var(--accent-3);
  font-size: 17px;
}

.numberplate-template-item.active {
  border-color: var(--accent);
  background: rgba(23, 195, 178, 0.08);
}

.numberplate-template-item span,
.numberplate-template-empty,
.numberplate-studio-status {
  color: var(--muted);
  font-size: 13px;
}

.numberplate-template-actions,
.numberplate-studio-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.numberplate-template-actions button:first-child {
  grid-column: 1/-1;
}

.numberplate-template-download {
  grid-column: 1/-1;
}

.numberplate-studio-actions .primary {
  grid-column: 1/-1;
}

.numberplate-studio-actions button {
  grid-column: 1/-1;
}

.numberplate-template-save-pulse {
  animation: numberplate-template-save-pulse 1.25s ease-in-out infinite;
}

@keyframes numberplate-template-save-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 202, 82, 0.5);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 202, 82, 0.16);
  }
}
.numberplate-preview-stage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.numberplate-preview-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.numberplate-preview-card h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.numberplate-studio-canvas {
  width: min(100%, 230px);
  justify-self: center;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line);
  background: #0c0f14;
}

.numberplate-editor-grid,
.numberplate-text-controls,
.numberplate-color-controls {
  display: grid;
  gap: 10px;
}

.numberplate-editor-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.numberplate-editor-grid label,
.numberplate-text-controls label,
.numberplate-color-controls label {
  min-width: 0;
}

.numberplate-editor-grid select,
.numberplate-editor-grid input,
.numberplate-text-controls input,
.numberplate-color-controls input {
  width: 100%;
}

.numberplate-editor-grid label button {
  width: 100%;
  margin-top: 6px;
}

.numberplate-field-status {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.numberplate-field-status.is-ok {
  color: #92e5bb;
}

.numberplate-field-status.is-warning {
  color: #ffe7a3;
}

.numberplate-field-status.is-error {
  color: #ff9da3;
}

.numberplate-font-source {
  gap: 6px;
}

.numberplate-editor-grid label select[data-numberplate-base-source] {
  margin-top: 8px;
}

.numberplate-editor-grid label:nth-child(n+3),
.numberplate-editor-grid label:nth-child(6) {
  grid-column: 1/-1;
}

.numberplate-workflow-note,
.numberplate-advanced-bases {
  grid-column: 1/-1;
}

.numberplate-workflow-note {
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.numberplate-advanced-bases {
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.018);
}

.numberplate-advanced-bases summary {
  cursor: pointer;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
}

.numberplate-advanced-base-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 10px 10px;
}

.numberplate-advanced-base-grid label {
  grid-column: auto;
}

.numberplate-text-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 14px;
}

.numberplate-color-controls {
  grid-template-columns: minmax(0, 1fr) 120px;
  margin-top: 10px;
}

.numberplate-color-controls input[type=color] {
  min-height: 36px;
  padding: 2px;
}

#numberplateTemplateSummary {
  margin-top: 12px;
  min-height: 150px;
  max-height: min(26dvh, 240px);
}

@media (max-width: 1280px) {
  .numberplate-studio {
    grid-template-columns: 320px minmax(0, 1fr);
    align-content: start;
    overflow: auto;
  }
  .numberplate-studio-editor {
    grid-column: 1/-1;
    overflow: visible;
  }
}
#tab-tyre-brands {
  height: 100%;
}

.tyre-brand-studio-panel {
  gap: 16px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  --studio-content-height: calc(100dvh - 190px);
}

.tyre-brand-studio {
  display: grid;
  grid-template-columns: minmax(320px, 380px) minmax(360px, 1fr) minmax(320px, 420px);
  gap: 14px;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

.tyre-brand-rail,
.tyre-brand-detail,
.tyre-brand-editor {
  min-width: 0;
  min-height: 0;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  overflow: auto;
}

.tyre-brand-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.tyre-brand-status,
.tyre-brand-empty,
.tyre-brand-item span,
.tyre-brand-item small,
.tyre-brand-paths span,
.tyre-brand-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.tyre-brand-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: calc(var(--studio-content-height) - 122px);
  overflow: auto;
}

.tyre-brand-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.tyre-brand-item.active {
  border-color: var(--accent);
  background: rgba(23, 195, 178, 0.08);
}

.tyre-brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line-soft);
  background: #0c0f14;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.tyre-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.tyre-brand-mark.is-large {
  width: 68px;
}

.tyre-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.tyre-brand-copy strong,
.tyre-brand-copy span,
.tyre-brand-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tyre-brand-copy strong {
  color: var(--accent-3);
  font-size: 17px;
}

.tyre-brand-detail-body {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.tyre-brand-preview-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 12px 0 0;
}

.tyre-brand-preview-card {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tyre-brand-preview-card h2 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.tyre-brand-canvas {
  width: min(100%, 280px);
  justify-self: center;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line);
  background: #0c0f14;
}

.tyre-brand-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tyre-brand-hero strong {
  color: #fff;
  font-size: 18px;
}

.tyre-brand-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.tyre-brand-metrics div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: var(--border-width) solid var(--line-soft);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.tyre-brand-metrics strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tyre-brand-paths {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tyre-brand-paths code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tyre-brand-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.tyre-brand-rail-actions button:first-child {
  grid-column: 1/-1;
}

.tyre-brand-template-download {
  grid-column: 1/-1;
}

.tyre-brand-actions button:only-child,
.tyre-brand-actions .primary {
  grid-column: 1/-1;
}

.tyre-brand-technical {
  margin-top: 12px;
}

.tyre-brand-technical summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.tyre-brand-technical pre {
  margin-top: 8px;
  min-height: 150px;
  max-height: min(26dvh, 240px);
}

.tyre-brand-editor {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tyre-brand-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.tyre-brand-editor-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tyre-brand-editor-grid input,
.tyre-brand-editor-grid select {
  width: 100%;
}

.tyre-brand-inline-action {
  margin-top: 6px;
  width: 100%;
}

.tyre-brand-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 15px;
}

.tyre-brand-grid-wide {
  grid-column: 1/-1;
}

.tyre-brand-grid-wide button {
  grid-column: 1/-1;
}

@media (max-width: 1280px) {
  .tyre-brand-studio {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
  }
  .tyre-brand-rail,
  .tyre-brand-detail,
  .tyre-brand-editor {
    overflow: visible;
  }
  .tyre-brand-editor-grid {
    grid-template-columns: 1fr;
  }
  .tyre-brand-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
#tab-drivers {
  height: 100%;
}

.driver-profile-panel {
  --driver-content-height: calc(100dvh - 190px);
  gap: 16px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.driver-profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.driver-profile-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 14px;
  flex: 1 1 auto;
  height: auto;
  max-height: none;
  min-height: 0;
  overflow: hidden;
}

.driver-profile-rail,
.driver-profile-detail {
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  overflow: auto;
}

.driver-profile-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.driver-profile-list-actions,
.driver-profile-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.driver-profile-list-actions {
  margin-top: 10px;
}

.driver-profile-list-actions button {
  flex: 1 1 0;
}

.driver-profile-white-icon {
  color: #fff;
}

.driver-profile-white-icon .button-icon,
.driver-profile-white-icon .button-icon svg,
.driver-profile-white-icon .button-icon path {
  color: #fff;
  stroke: #fff !important;
}

.driver-profile-preview-action {
  border-color: rgba(var(--accent-2-rgb), 0.72);
  background: rgba(var(--accent-2-rgb), 0.2);
  color: #fff;
}

.driver-profile-preview-action:hover,
.driver-profile-preview-action:focus-visible {
  background: rgba(var(--accent-2-rgb), 0.3);
  color: #fff;
}

.driver-profile-create {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: var(--border-width) solid var(--line-soft);
}

.driver-profile-create label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-create select,
.driver-profile-create input,
.driver-profile-create button {
  width: 100%;
}

.driver-profile-status,
.driver-profile-empty,
.driver-profile-item span,
.driver-profile-item small,
.driver-profile-paths span {
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: none;
  overflow: auto;
}

.driver-profile-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 82px;
  padding: 14px 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
  overflow: hidden;
}

.driver-profile-item.active {
  border-color: var(--accent);
  background: rgba(23, 195, 178, 0.08);
}

.driver-profile-mark {
  align-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  min-height: 52px;
  justify-self: start;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line-soft);
  background: #0c0f14;
  color: #fff;
  overflow: hidden;
}

.driver-profile-mark .button-icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.driver-profile-mark svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.driver-profile-mark.is-large {
  width: 68px;
  height: 68px;
  min-height: 68px;
  flex: 0 0 68px;
}

.driver-profile-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.driver-profile-copy strong,
.driver-profile-copy span,
.driver-profile-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-profile-copy strong {
  color: var(--accent-3);
  font-size: 17px;
}

.driver-profile-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.driver-profile-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.driver-profile-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.driver-profile-status-pill {
  font-size: 13px;
  text-transform: none;
  white-space: nowrap;
}

.driver-profile-detail-toolbar {
  margin-top: 14px;
}

.driver-profile-paths {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin-top: 14px;
}

.driver-profile-paths code {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-profile-technical {
  margin-top: 12px;
}

.driver-profile-preview-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.driver-profile-png-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.driver-profile-png-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: var(--border-width) solid var(--line-soft);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.driver-profile-png-frame {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1/1;
  min-width: 0;
  overflow: hidden;
  border: var(--border-width) solid var(--line-soft);
  background: #0b0f14;
}

.driver-profile-png-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.driver-profile-png-state {
  position: absolute;
  inset: auto 8px 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.driver-profile-png-frame:not(.is-missing) .driver-profile-png-state:empty {
  display: none;
}

.driver-profile-png-meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.driver-profile-png-meta strong,
.driver-profile-png-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-profile-png-meta span {
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-workflow-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
  align-items: stretch;
}

.driver-profile-team-logo-box,
.driver-profile-details-box,
.driver-profile-appearance {
  display: grid;
  gap: 10px;
  border: var(--border-width) solid var(--line-soft);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.driver-profile-team-logo-box {
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.driver-profile-team-logo-preview {
  display: grid;
  place-items: center;
  min-height: 96px;
}

.driver-profile-team-logo-preview .driver-profile-mark {
  width: min(100%, 112px);
  height: auto;
  min-height: 0;
  aspect-ratio: 1/1;
}

.driver-profile-team-logo-box button {
  width: 100%;
}

.driver-profile-details-box {
  align-content: start;
}

.driver-profile-details-box label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-details-box input,
.driver-profile-details-box select,
.driver-profile-details-box button {
  width: 100%;
}

.driver-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.driver-profile-section-head span,
.driver-profile-material-meta span {
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-color-list {
  display: grid;
  gap: 8px;
}

.driver-profile-color-control {
  display: grid;
  grid-template-columns: 160px minmax(140px, 220px) minmax(0, 1fr);
  align-items: end;
  gap: 10px;
  min-width: 0;
}

.driver-profile-color-control label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-color-control input {
  width: 100%;
}

.driver-profile-color-control input[type=color] {
  height: 38px;
  padding: 2px;
}

.driver-profile-appearance-actions {
  display: flex;
  justify-content: flex-end;
}

.driver-profile-material-meta {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.driver-profile-material-meta.is-wide {
  margin-top: -2px;
}

.driver-profile-material-meta code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.driver-profile-technical summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.driver-profile-technical pre {
  margin-top: 8px;
  min-height: 150px;
  max-height: min(34dvh, 320px);
}

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

.driver-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  width: 100vw;
  height: 100vh;
  padding: 0;
  background: #090b0e;
}

.driver-preview-backdrop {
  display: none;
}

.driver-preview-dialog {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100vw;
  height: 100vh;
  min-width: 0;
  min-height: 0;
  border: 0;
  background: #090b0e;
  overflow: hidden;
}

.driver-preview-head,
.driver-preview-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-bottom: var(--border-width) solid var(--line-soft);
  background: rgba(16, 18, 22, 0.98);
}

.driver-preview-foot {
  justify-content: space-between;
  border-top: var(--border-width) solid var(--line-soft);
  border-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.driver-preview-foot .is-error {
  color: var(--danger);
}

.driver-preview-title {
  display: grid;
  gap: 3px;
  min-width: 220px;
}

.driver-preview-title strong {
  color: #fff;
  font-size: 18px;
}

.driver-preview-title span {
  color: var(--muted);
  font-size: 13px;
}

.driver-preview-model-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.driver-preview-model-tabs button {
  min-width: 96px;
}

.driver-preview-model-tabs button.active {
  border-color: var(--accent);
  color: #fff;
  background: rgba(23, 195, 178, 0.12);
}

.driver-preview-action {
  margin-left: auto;
  min-height: 34px;
  padding: 6px 12px;
  border: var(--border-width) solid var(--accent-2-border);
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}

.driver-preview-action:hover,
.driver-preview-action:focus-visible {
  background: var(--accent-2-hover);
  color: #fff;
}

.driver-preview-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  background: #212121;
}

.driver-preview-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.driver-preview-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.driver-preview-appearance-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  gap: 12px;
  width: min(320px, 100% - 28px);
  padding: 12px;
  border: var(--border-width) solid rgba(var(--accent-2-rgb), 0.46);
  background: rgba(5, 7, 10, 0.92);
}

.driver-preview-appearance-panel[hidden] {
  display: none;
}

.driver-preview-appearance-head {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.driver-preview-appearance-head strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  text-transform: uppercase;
}

.driver-preview-appearance-head span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.driver-preview-appearance-controls {
  display: grid;
  gap: 10px;
}

.driver-preview-color-control {
  display: grid;
  grid-template-columns: 1fr 112px;
  gap: 8px;
  min-width: 0;
}

.driver-preview-color-control label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.driver-preview-color-control input {
  width: 100%;
  min-width: 0;
}

.driver-preview-color-control input[type=color] {
  height: 34px;
  padding: 2px;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: rgba(0, 0, 0, 0.3);
}

.driver-preview-save-appearance {
  width: 100%;
  border-color: var(--accent-2-border);
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}

.driver-preview-save-appearance:hover,
.driver-preview-save-appearance:focus-visible {
  background: var(--accent-2-hover);
  color: #fff;
}

@media (max-width: 1280px) {
  .driver-profile-layout {
    grid-template-columns: 1fr;
    align-content: start;
    overflow: auto;
  }
  .driver-profile-rail,
  .driver-profile-detail {
    overflow: visible;
  }
  .driver-profile-workflow-grid {
    grid-template-columns: 1fr;
  }
  .driver-profile-color-control {
    grid-template-columns: 1fr;
  }
  .driver-preview-dialog {
    width: 100%;
  }
  .driver-preview-appearance-panel {
    position: absolute;
    top: 10px;
    right: 10px;
  }
  .driver-preview-color-control {
    grid-template-columns: 1fr;
  }
}
#tab-custom-grids {
  height: 100%;
}

.custom-grid-panel {
  --custom-grid-height: calc(100dvh - 190px);
  gap: 16px;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.custom-grid-actions,
.custom-grid-detail-actions,
.custom-grid-entry-actions,
.custom-grid-save-row,
.custom-grid-rail-actions,
.custom-grid-tool-actions,
.custom-grid-cache-actions,
.custom-grid-cache-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.custom-grid-layout {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 14px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.custom-grid-rail,
.custom-grid-detail {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 0;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  padding: 12px;
  overflow: auto;
}

.custom-grid-toolbar,
.custom-grid-detail-head,
.custom-grid-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.custom-grid-detail-head {
  align-items: flex-start;
}

.custom-grid-status,
.custom-grid-empty,
.custom-grid-item-copy span,
.custom-grid-item small,
.custom-grid-detail-head span,
.custom-grid-section-head span,
.custom-grid-tool-head span,
.custom-grid-tool-status span:last-child,
.custom-grid-bridge-status span:last-child,
.custom-grid-cache-status span:last-child,
.custom-grid-entry-copy span,
.custom-grid-technical {
  color: var(--muted);
  font-size: 13px;
}

.custom-grid-list {
  position: relative;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.custom-grid-loading {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 180px;
  padding: 22px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  color: #dce4ec;
  font-family: var(--font-display);
  font-size: 14px;
  text-transform: uppercase;
}

.custom-grid-loading .button-spinner {
  width: 22px;
  height: 22px;
}

.custom-grid-loading-overlay {
  position: absolute;
  z-index: 12;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(5, 7, 10, 0.72);
  backdrop-filter: blur(2px);
  pointer-events: none;
}

.custom-grid-loading-overlay .custom-grid-loading {
  min-width: 220px;
  min-height: 0;
}

.custom-grid-rail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.custom-grid-rail-actions button:first-child {
  grid-column: 1/-1;
}

.custom-grid-bridge-tools {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}

.custom-grid-tool-head {
  gap: 8px;
}

.custom-grid-tool-head strong {
  color: #fff;
}

.custom-grid-tool-status {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.custom-grid-tool-status span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-grid-tool-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.custom-grid-tool-actions button {
  min-width: 0;
}

.custom-grid-bridge-install.primary {
  border-color: var(--accent-green);
  background: #1c7f14;
  color: #fff;
  font-weight: 800;
}

.custom-grid-bridge-install.primary:hover,
.custom-grid-bridge-install.primary:focus-visible {
  border-color: #7cff6e;
  background: #239b19;
}

.custom-grid-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
  text-align: left;
}

.custom-grid-item.active {
  border-color: var(--accent);
  background: rgba(23, 195, 178, 0.08);
}

.custom-grid-mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line-soft);
  background: #0c0f14;
  color: #fff;
  overflow: hidden;
}

.custom-grid-mark span {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.custom-grid-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-grid-entry-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-grid-entry-thumb span {
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.custom-grid-mark.is-large {
  width: 112px;
}

.custom-grid-item-copy,
.custom-grid-entry-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.custom-grid-item-copy strong,
.custom-grid-item-copy span,
.custom-grid-item small,
.custom-grid-entry-copy strong,
.custom-grid-entry-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-grid-item-copy strong,
.custom-grid-detail-head strong {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.custom-grid-item-copy strong > span:first-child,
.custom-grid-detail-head strong > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--accent-3);
  font-size: 17px;
}

.custom-grid-active-pill {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 0 7px;
  font-size: 11px;
}

.custom-grid-item-active-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 94px;
  min-height: 52px;
}

.custom-grid-detail {
  gap: 14px;
}

.custom-grid-detail-head > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: min(360px, 40%);
}

.custom-grid-title-block h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.custom-grid-subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.25;
}

.custom-grid-bridge-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.custom-grid-bridge-status span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-grid-action-status {
  display: grid;
  justify-items: end;
  gap: 4px;
  flex: 1 1 230px;
  min-width: 190px;
  max-width: 320px;
  margin-right: 2px;
  text-align: right;
}

.custom-grid-action-status span:last-child {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.custom-grid-detail-actions {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  min-width: 0;
}

.custom-grid-detail-actions button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.custom-grid-white-icon {
  color: #fff;
}

.custom-grid-white-icon .button-icon,
.custom-grid-white-icon .button-icon svg,
.custom-grid-white-icon .button-icon path {
  color: #fff;
  stroke: #fff !important;
}

.custom-grid-detail-actions .icon-text,
.custom-grid-add-row .icon-text,
.custom-grid-save-row .icon-text {
  white-space: nowrap;
}

.custom-grid-editor-grid {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.custom-grid-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

#addCustomGridSkin {
  min-width: 150px;
}

.custom-grid-preview-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: var(--border-width) solid var(--line-soft);
  padding: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.custom-grid-preview-stage {
  display: grid;
  place-items: center;
  min-height: 116px;
}

.custom-grid-preview-stage .custom-grid-mark {
  width: min(100%, 132px);
}

.custom-grid-preview-box button {
  width: 100%;
}

.custom-grid-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.custom-grid-editor-grid label,
.custom-grid-add-row label,
.custom-grid-entry label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

.custom-grid-editor-grid input,
.custom-grid-add-row select,
.custom-grid-entry input,
.custom-grid-entry select {
  width: 100%;
}

.custom-grid-entry-list {
  display: grid;
  gap: 8px;
}

.custom-grid-entry {
  display: grid;
  grid-template-columns: 52px 52px minmax(150px, 1.1fr) minmax(140px, 0.9fr) minmax(130px, 0.7fr) minmax(130px, 0.7fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: var(--border-width) solid var(--line-soft);
  background: rgba(255, 255, 255, 0.025);
}

.custom-grid-entry-thumb {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line-soft);
  background: #0c0f14;
  color: #fff;
  overflow: hidden;
}

.custom-grid-entry-index {
  align-self: center;
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1/1;
  border: var(--border-width) solid var(--line-soft);
  color: #fff;
  font-weight: 700;
}

.custom-grid-item-copy strong,
.custom-grid-entry-copy strong {
  color: #fff;
}

.custom-grid-entry-copy {
  align-self: center;
}

.custom-grid-entry-actions {
  align-self: end;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.custom-grid-entry-actions .icon-text svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.custom-grid-detail-actions .button-icon svg,
.custom-grid-add-row .button-icon svg,
.custom-grid-save-row .button-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#saveCustomGrid {
  min-width: 170px;
}

.custom-grid-technical {
  border-top: var(--border-width) solid var(--line-soft);
  padding-top: 10px;
}

.custom-grid-technical summary {
  cursor: pointer;
  color: #fff;
}

.custom-grid-technical pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
}

.custom-grid-cache-status {
  margin-top: 10px;
  min-width: 0;
}

.custom-grid-cache-status span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-grid-cache-actions {
  margin-top: 10px;
}

.custom-grid-guide-modal .status-modal-dialog {
  width: min(760px, 100vw - 80px);
}

.custom-grid-guide-image-slot {
  display: grid;
  place-items: center;
  width: 100%;
  border: var(--border-width) dashed var(--line-soft);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)), #0c0f14;
  color: var(--muted);
  overflow: hidden;
}

.custom-grid-guide-image-slot img {
  display: block;
  width: 100%;
  height: auto;
}

.custom-grid-guide-image-slot span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .custom-grid-layout,
  .custom-grid-editor-grid {
    grid-template-columns: 1fr;
  }
  .custom-grid-detail-head {
    display: grid;
    align-items: start;
  }
  .custom-grid-detail-head > div:first-child {
    max-width: none;
  }
  .custom-grid-detail-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .custom-grid-preview-box {
    grid-row: auto;
  }
  .custom-grid-entry {
    grid-template-columns: 52px 52px minmax(0, 1fr);
    align-items: start;
  }
  .custom-grid-entry label,
  .custom-grid-entry-actions {
    grid-column: 3;
  }
  .custom-grid-entry-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .custom-grid-entry-copy {
    grid-column: 3;
  }
}
.online-league-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.online-league-view-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.online-league-view-tabs button {
  min-width: 170px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
}

.online-league-view-tabs button.active {
  border-bottom-color: #f0be46;
  color: #fff;
  background: rgba(240, 190, 70, 0.08);
}

.online-league-view {
  min-height: 0;
  overflow: auto;
}

.online-league-builder-shell {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
}

.online-league-sidebar,
.online-league-detail,
.online-league-block,
.online-league-editor,
.online-league-toolbar {
  display: grid;
  gap: 12px;
}

.online-league-sidebar,
.online-league-detail {
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.online-league-sidebar,
.online-league-block {
  align-content: start;
  grid-auto-rows: max-content;
}

.online-league-block,
.online-league-editor,
.online-league-toolbar,
.online-league-detail {
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
}

.online-league-import-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(420px, 1.35fr);
  gap: 14px 24px;
  align-items: end;
}

.online-league-import-card h2,
.online-league-library-head h2,
.online-league-section-head h2 {
  margin: 0 0 4px;
}

.online-league-import-card p,
.online-league-library-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

.online-league-import-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.online-league-import-controls label,
.online-league-export-field label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.online-league-import-card .root-status {
  grid-column: 1/-1;
}

.online-league-library-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 22px 0 10px;
}

.online-league-library-head > span {
  color: rgba(255, 255, 255, 0.64);
  white-space: nowrap;
}

.online-league-installed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.online-league-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.online-league-list-item,
.online-league-installed {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
}

.online-league-list-item.active {
  border-color: rgba(240, 190, 70, 0.85);
  background: rgba(240, 190, 70, 0.12);
}

.online-league-installed {
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-content: start;
  padding: 12px;
}

.online-league-installed.is-expanded {
  border-color: rgba(255, 255, 255, 0.22);
}

.online-league-installed.is-active {
  border-left: 3px solid #74d18a;
}

.online-league-installed.is-partial {
  border-left: 3px solid #f0be46;
}

.online-league-item-copy,
.online-league-item-copy strong,
.online-league-item-copy span,
.online-league-item-copy small,
.online-league-installed span,
.online-league-installed small,
.online-league-empty {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
}

.online-league-empty-card {
  grid-column: 1/-1;
  padding: 28px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  text-align: center;
}

.online-league-item-copy {
  display: grid;
  gap: 4px;
}

.online-league-item-copy strong {
  color: #fff;
  font-size: 1rem;
}

.online-league-installed-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  gap: 8px;
  align-self: center;
}

.online-league-installed-actions button {
  min-width: 104px;
}

.online-league-installed-toggle {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  padding: 9px 2px 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  font-size: 0.82rem;
}

.online-league-installed-toggle:hover,
.online-league-installed-toggle:focus-visible {
  background: transparent;
  color: #fff;
}

.online-league-installed-toggle-icon {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 120ms ease;
  margin: -4px 5px 0 12px;
}

.online-league-installed-toggle[aria-expanded=true] .online-league-installed-toggle-icon {
  transform: rotate(225deg);
  margin-top: 4px;
}

.online-league-installed-detail-panel {
  grid-column: 1/-1;
  display: grid;
  gap: 12px;
  min-width: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.online-league-installed-detail-panel[hidden] {
  display: none;
}

.online-league-installed-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.online-league-installed-detail-head strong {
  color: #fff;
  font-size: 0.92rem;
}

.online-league-installed-detail-head span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
}

.online-league-installed-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 520px;
}

.online-league-installed-facts span {
  display: grid;
  gap: 2px;
  white-space: normal;
  padding: 6px;
  background: rgba(255, 255, 255, 0.035);
  text-align: center;
  font-size: 0.72rem;
}

.online-league-installed-facts strong {
  color: #fff;
  font-size: 0.95rem;
}

.online-league-installed-livery-scroll {
  max-height: 468px;
  min-width: 0;
  overflow: auto;
  padding-right: 4px;
}

.online-league-installed-livery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 8px;
}

.online-league-installed-livery {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 106px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.online-league-installed-livery-thumb {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #0c0f14;
}

.online-league-installed-livery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-league-installed-livery-thumb span {
  padding: 6px;
  color: rgba(255, 255, 255, 0.42);
  white-space: normal;
  text-align: center;
  font-size: 0.62rem;
  text-transform: uppercase;
}

.online-league-installed-livery-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.online-league-installed-livery-copy > span,
.online-league-installed-livery-copy > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-league-installed-livery-copy > span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.8rem;
}

.online-league-installed-livery-copy > small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
}

.online-league-installed-livery-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.72rem;
  line-height: 1.35;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.online-league-installed-livery-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.online-league-installed-livery-title strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
}

.online-league-installed-livery-state {
  flex: 0 0 auto;
  padding: 2px 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.64rem;
  line-height: 1.2;
}

.online-league-installed-livery-state.is-active {
  border-color: rgba(116, 209, 138, 0.46);
  color: #92e4a5;
}

.online-league-installed-livery-state.is-reused {
  border-color: rgba(240, 190, 70, 0.46);
  color: #f0c968;
}

.online-league-advanced summary {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
}

.online-league-pack-mark {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c0f14;
  color: #fff;
  overflow: hidden;
}

.online-league-pack-mark.is-large {
  width: min(100%, 132px);
}

.online-league-pack-mark img,
.online-league-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.online-league-pack-mark span {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.online-league-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.online-league-section-head > div {
  min-width: 0;
}

.online-league-section-head span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
}

.online-league-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.online-league-detail-head h2 {
  margin: 6px 0 4px;
}

.online-league-detail-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.online-league-summary {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  text-align: right;
}

.online-league-save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.online-league-save-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.76rem;
  white-space: nowrap;
}

.online-league-save-state::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #74d18a;
}

.online-league-save-state.is-dirty {
  color: #f0be46;
}

.online-league-save-state.is-dirty::before {
  background: #f0be46;
}

.online-league-editor {
  grid-template-columns: minmax(160px, 190px) minmax(0, 1fr);
  align-items: start;
}

.online-league-editor-main {
  display: grid;
  gap: 12px;
}

.online-league-export-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.online-league-export-field button {
  min-width: 150px;
}

.online-league-advanced {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 10px;
}

.online-league-advanced .online-league-export-field {
  margin-top: 10px;
}

.online-league-preview-box {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

.online-league-preview-stage {
  display: grid;
  place-items: center;
  min-height: 116px;
}

.online-league-preview-box button {
  width: 100%;
}

.online-league-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.online-league-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.online-league-toolbar-copy {
  display: grid;
  gap: 3px;
}

.online-league-toolbar-copy span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.82rem;
}

.online-league-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
}

.online-league-entry-list {
  display: grid;
  gap: 10px;
}

.online-league-entry {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 112px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
}

.online-league-entry.is-ready {
  border-left: 3px solid #74d18a;
}

.online-league-entry.is-warning {
  border-left: 3px solid #f0be46;
}

.online-league-entry.is-error {
  border-left: 3px solid #ff766d;
}

.online-league-thumb {
  position: relative;
  width: 64px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.online-league-entry-media {
  display: grid;
  gap: 6px;
  width: 64px;
}

.online-league-entry-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.online-league-entry-copy strong,
.online-league-entry-copy span,
.online-league-entry-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.online-league-entry-copy span,
.online-league-entry-copy small {
  color: rgba(255, 255, 255, 0.64);
}

.online-league-entry-editor {
  grid-column: 1/-1;
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.online-league-entry-editor[hidden] {
  display: none;
}

.online-league-entry-fields {
  display: grid;
  grid-template-columns: 70px repeat(5, minmax(110px, 1fr));
  gap: 8px;
}

.online-league-entry-fields label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.68);
}

.online-league-entry-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.online-league-entry-side {
  display: grid;
  gap: 8px;
  align-self: start;
}

.online-league-entry-status {
  display: inline-grid;
  place-items: center;
  width: 100%;
  min-height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-transform: uppercase;
  font-size: 0.68rem;
}

.online-league-entry-status.is-ready {
  color: #74d18a;
}

.online-league-entry-status.is-warning {
  color: #f0be46;
}

.online-league-entry-status.is-error {
  color: #ff766d;
}

.online-league-entry-issues {
  grid-column: 1/-1;
  display: grid;
  gap: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
}

@media (max-width: 1280px) {
  .online-league-builder-shell {
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .online-league-import-card {
    grid-template-columns: 1fr;
  }
  .online-league-import-card .root-status {
    grid-column: 1;
  }
  .online-league-entry-fields {
    grid-template-columns: repeat(3, minmax(100px, 1fr));
  }
}
.tutorial-mode-toggle {
  width: 100%;
  min-height: 36px;
  justify-content: flex-start;
  border-color: rgba(var(--accent-2-rgb), 0.42);
  background: rgba(0, 0, 0, 0.42);
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
}
.tutorial-mode-toggle.is-active {
  border-color: var(--accent-3);
  background: rgba(247, 201, 72, 0.14);
  color: var(--accent-3);
}

:root.is-tutorial-mode [data-tutorial-id] {
  position: relative;
}

:root.is-tutorial-mode [data-tutorial-id]::after {
  content: "?";
  position: absolute;
  z-index: 6;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 2px solid var(--accent-3);
  background: #080600;
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(247, 201, 72, 0.16), 0 0 18px rgba(247, 201, 72, 0.22);
  pointer-events: none;
  transition: background 140ms ease-out, color 140ms ease-out, box-shadow 140ms ease-out;
}

:root.is-tutorial-mode [data-tutorial-id].is-tutorial-focus {
  z-index: 8;
  outline: 2px solid rgba(247, 201, 72, 0.92);
  outline-offset: 3px;
  box-shadow: inset 0 0 0 1px rgba(247, 201, 72, 0.28), 0 0 0 4px rgba(247, 201, 72, 0.08), 0 0 28px rgba(247, 201, 72, 0.22);
  transition: outline-color 140ms ease-out, outline-offset 140ms ease-out, box-shadow 140ms ease-out;
}

:root.is-tutorial-mode [data-tutorial-id].is-tutorial-focus::after {
  background: var(--accent-3);
  color: #000;
  box-shadow: 0 0 0 2px #000, 0 0 24px rgba(247, 201, 72, 0.48);
}

.tutorial-mode-tooltip {
  position: fixed;
  z-index: 10020;
  width: calc(100vw - 24px);
  max-width: 340px;
  border: var(--border-width) solid var(--accent-3);
  background: #000;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  color: var(--ink);
  padding: 12px 14px;
  pointer-events: none;
}
.tutorial-mode-tooltip[hidden] {
  display: none;
}
.tutorial-mode-tooltip strong {
  display: block;
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}
.tutorial-mode-tooltip p {
  margin: 8px 0 0;
  color: #d9e0e7;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

@media (max-width: 1280px) {
  .tutorial-mode-tooltip {
    max-width: 300px;
  }
}
.workflow-choice-migration {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 1120px;
  max-width: calc(100vw - 144px);
}
.workflow-choice-migration button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 16px;
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(4, 7, 11, 0.78);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}
.workflow-choice-migration button:hover, .workflow-choice-migration button:focus-visible {
  border-color: var(--accent-3);
  background: rgba(0, 0, 0, 0.92);
}
.workflow-choice-migration span {
  max-width: 680px;
  color: #b8c2cb;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.workflow-choice-migration .legacy-migration-workflow-status {
  max-width: 760px;
  padding: 9px 12px;
  border-left: 3px solid var(--accent-3);
  background: rgba(4, 7, 11, 0.72);
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.status-modal.legacy-migration-modal {
  place-items: stretch;
  padding: 12px;
}
.status-modal.legacy-migration-modal .status-modal-dialog {
  width: 100%;
  height: calc(100dvh - 24px);
  max-height: none;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
}
.status-modal.legacy-migration-modal .status-modal-body {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.status-modal.legacy-migration-modal .status-modal-actions {
  flex-wrap: wrap;
  flex: 0 0 auto;
  padding-top: 12px;
  border-top: var(--border-width) solid var(--line-soft);
}

.legacy-migration-body {
  gap: 14px;
  align-content: start;
  grid-auto-rows: max-content;
}

.legacy-migration-path-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.legacy-migration-path-row input {
  min-width: 0;
}

.legacy-migration-status {
  padding: 10px 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #000;
  color: #dce4ec;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: pre-line;
}

.legacy-migration-long-paths,
.legacy-official-migration-continuation,
.legacy-official-migration-cleanup {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: var(--border-width) solid rgba(247, 201, 72, 0.68);
  background: rgba(247, 201, 72, 0.08);
}
.legacy-migration-long-paths[hidden],
.legacy-official-migration-continuation[hidden],
.legacy-official-migration-cleanup[hidden] {
  display: none;
}
.legacy-migration-long-paths strong,
.legacy-official-migration-continuation strong,
.legacy-official-migration-cleanup strong {
  color: var(--accent-3);
}
.legacy-migration-long-paths span,
.legacy-migration-long-paths small,
.legacy-official-migration-continuation span,
.legacy-official-migration-continuation small,
.legacy-official-migration-cleanup span,
.legacy-official-migration-cleanup small {
  color: #dce4ec;
  line-height: 1.4;
}

.legacy-migration-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.legacy-migration-progress[hidden] {
  display: none;
}

.legacy-migration-progress-metrics span {
  overflow-wrap: anywhere;
}

.legacy-migration-progress-warning {
  padding: 10px 12px;
  border: var(--border-width) solid rgba(247, 201, 72, 0.58);
  background: rgba(247, 201, 72, 0.08);
  color: #f7d978;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

#legacyMigrationBusy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
}
#legacyMigrationBusy[hidden] {
  display: none;
}

.legacy-migration-summary {
  display: grid;
  gap: 12px;
}

.legacy-migration-summary[hidden] {
  display: none;
}

.legacy-migration-source {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #000;
}
.legacy-migration-source span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.legacy-migration-source strong {
  color: #fff;
  font-size: 18px;
}
.legacy-migration-source small {
  grid-column: 1/-1;
  color: #aeb9c4;
  font-size: 13px;
  overflow-wrap: anywhere;
  user-select: text;
}

.legacy-migration-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.legacy-migration-metrics > div {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #000;
}
.legacy-migration-metrics span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}
.legacy-migration-metrics strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.legacy-migration-targets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.legacy-migration-target {
  display: grid;
  gap: 5px;
  min-height: 92px;
  padding: 12px;
  border-color: var(--line-soft);
  background: #000;
  color: #fff;
  text-align: left;
}
.legacy-migration-target span {
  color: #aeb9c4;
  font-size: 13px;
  line-height: 1.4;
}
.legacy-migration-target.is-selected {
  border-color: var(--accent-3);
  background: rgba(247, 201, 72, 0.08);
}

.legacy-migration-livery-review {
  display: grid;
  gap: 8px;
}
.legacy-migration-livery-review[hidden] {
  display: none;
}
.legacy-migration-livery-review > span {
  color: #aeb9c4;
  font-size: 13px;
}

.legacy-migration-livery-rows {
  display: grid;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
}

.legacy-migration-livery-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 9px 10px;
  border: var(--border-width) solid var(--line-soft);
  background: #000;
}
.legacy-migration-livery-row strong {
  color: #fff;
}
.legacy-migration-livery-row span,
.legacy-migration-livery-row small {
  color: #aeb9c4;
  font-size: 12px;
}
.legacy-migration-livery-row small {
  grid-column: 1/-1;
}
.legacy-migration-livery-row[data-status=ready] > span, .legacy-migration-livery-row[data-status=converted] > span, .legacy-migration-livery-row[data-status=already_installed] > span {
  color: #7ff0b2;
}
.legacy-migration-livery-row[data-status=ready_with_feature_loss] > span, .legacy-migration-livery-row[data-status=blocked] > span {
  color: #f7d978;
}
.legacy-migration-livery-row[data-status=incomplete] > span, .legacy-migration-livery-row[data-status=failed] > span {
  color: #ff8d8d;
}

.legacy-official-migration-summary {
  color: #fff;
  font-weight: 700;
}

.legacy-official-migration-cleanup {
  margin-top: 4px;
  border-color: rgba(70, 216, 140, 0.68);
  background: rgba(70, 216, 140, 0.09);
}
.legacy-official-migration-cleanup strong {
  color: #7ff0b2;
}

.legacy-migration-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.legacy-migration-detail-grid > div {
  padding: 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #000;
}
.legacy-migration-detail-grid > div[hidden] {
  display: none;
}
.legacy-migration-detail-grid strong {
  color: #fff;
  font-size: 15px;
}
.legacy-migration-detail-grid ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: #b8c2cb;
  font-size: 14px;
  line-height: 1.45;
}

.legacy-migration-policy-note {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: var(--border-width) solid rgba(247, 201, 72, 0.58);
  background: rgba(247, 201, 72, 0.08);
}
.legacy-migration-policy-note strong {
  color: var(--accent-3);
  font-size: 15px;
}
.legacy-migration-policy-note span {
  color: #dce4ec;
  font-size: 14px;
  line-height: 1.4;
}

.legacy-migration-completion {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: var(--border-width) solid rgba(70, 216, 140, 0.68);
  background: rgba(70, 216, 140, 0.09);
}
.legacy-migration-completion[hidden] {
  display: none;
}
.legacy-migration-completion strong {
  color: #7ff0b2;
  font-size: 16px;
}
.legacy-migration-completion span {
  color: #dce4ec;
  font-size: 14px;
  line-height: 1.45;
}

.legacy-migration-modal[data-migration-complete=true] #legacyMigrationCloseX {
  display: none;
}

.legacy-migration-modal[data-migration-running=true] .legacy-migration-path-row,
.legacy-migration-modal[data-migration-running=true] #legacyMigrationCloseX {
  display: none;
}

.status-modal {
  --modal-accent: #58a6ff;
  --modal-accent-rgb: 88, 166, 255;
  --modal-accent-border: #8bc2ff;
  --modal-accent-hover: #3f8fe5;
  --modal-accent-text: #e4f1ff;
  --modal-accent-button-text: #fff;
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: start center;
  padding: 60px 24px 24px;
}
.status-modal[hidden] {
  display: none;
}
.status-modal:not([hidden]) .status-modal-dialog {
  animation: status-modal-slide-in 180ms ease-out both;
}

.status-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 13, 0.72);
  backdrop-filter: blur(4px);
}

.status-modal-dialog {
  position: relative;
  width: min(680px, 100vw - 32px);
  max-height: min(78vh, 820px);
  display: grid;
  gap: 16px;
  padding: 18px;
  border: var(--border-width) solid var(--modal-accent-border);
  border-radius: 0px;
  background: linear-gradient(180deg, #161d25, #12171d);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  transform: translateY(-100%);
}

@keyframes status-modal-slide-in {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
.status-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.status-modal-badge {
  min-width: 72px;
  min-height: 32px;
  padding: 6px 10px;
  border: var(--border-width) solid rgba(var(--modal-accent-rgb), 0.7);
  border-radius: 0px;
  background: rgba(var(--modal-accent-rgb), 0.16);
  color: var(--modal-accent-text);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.status-modal-headcopy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.status-modal-headcopy strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}
.status-modal-headcopy span {
  color: var(--muted);
  font-size: 15px;
}

.status-modal-close {
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  font-size: 24px;
  line-height: 1;
}

.status-modal-body {
  display: grid;
  gap: 12px;
  min-height: 0;
}

.status-modal-message {
  margin: 0;
  color: #edf1f5;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-modal-error {
  border: var(--border-width) solid rgba(var(--modal-accent-rgb), 0.85);
  background: rgba(var(--modal-accent-rgb), 0.12);
  color: #fff1ef;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.status-step-list {
  display: grid;
  gap: 7px;
}

.status-step {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 30px;
  padding: 6px 8px;
  border: var(--border-width) solid var(--line-soft);
  background: #000;
}

.status-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.status-step-icon .button-icon,
.status-step-icon svg {
  width: 16px;
  height: 16px;
}

.status-step-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-step-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.status-step-running .status-step-icon {
  color: var(--accent-3);
}

.status-step-done .status-step-icon {
  color: var(--accent);
}

.status-step-error {
  border-color: rgba(var(--accent-2-rgb), 0.8);
}

.status-step-error .status-step-icon,
.status-step-error .status-step-note {
  color: #ff6b70;
}

.status-modal-details {
  border: var(--border-width) solid var(--line-soft);
  border-radius: 0px;
  background: #0d1116;
  overflow: hidden;
}
.status-modal-details summary {
  cursor: pointer;
  padding: 10px 12px;
  color: #dce3e8;
  font-weight: 600;
  list-style: none;
}
.status-modal-details summary::-webkit-details-marker {
  display: none;
}
.status-modal-details pre {
  margin: 0;
  max-height: 100px;
  overflow: auto;
  padding: 0 12px 12px;
  color: #c9d4de;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
}

.status-modal[data-modal-class=saved-car-profile-conflict] .status-modal-dialog {
  height: min(78vh, 820px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.status-modal[data-modal-class=saved-car-profile-conflict] .status-modal-body {
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}
.status-modal[data-modal-class=saved-car-profile-conflict] .status-modal-details {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
.status-modal[data-modal-class=saved-car-profile-conflict] .status-modal-details pre {
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}

.status-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: flex-end;
}
.status-modal-actions #statusModalOpenFolder {
  margin-right: auto;
}
.status-modal-actions .primary {
  background: var(--modal-accent);
  border-color: var(--modal-accent-border);
  color: var(--modal-accent-button-text);
}
.status-modal-actions .primary:hover, .status-modal-actions .primary:focus-visible {
  background: var(--modal-accent-hover);
}

.confirm-modal[data-modal-class=export-package] .status-modal-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.confirm-modal[data-modal-class=export-package] #confirmModalAlternate,
.confirm-modal[data-modal-class=export-package] #confirmModalConfirm {
  width: 100%;
  justify-content: center;
}
.confirm-modal[data-modal-class=export-package] #confirmModalAlternate {
  grid-column: 1;
}
.confirm-modal[data-modal-class=export-package] #confirmModalConfirm {
  grid-column: 2;
}

.startup-info-modal {
  z-index: 12100;
  place-items: start center;
  padding: 60px 24px 24px;
}
.startup-info-modal .status-modal-dialog {
  width: min(620px, 100vw - 32px);
  transform: translateY(0);
}

.startup-info-actions {
  align-items: center;
  justify-content: space-between;
}

.startup-info-dismiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}
.startup-info-dismiss input {
  width: 16px;
  height: 16px;
}

#statusModalClose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.status-modal[data-blocked=true] .status-modal-backdrop,
.status-modal[data-blocked=true] #statusModalClose {
  cursor: wait;
}

.button-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: button-spinner-rotate 760ms linear infinite;
  display: inline-block;
}

#confirmModalConfirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.confirm-modal[data-action-layout=danger-left] #confirmModalConfirm {
  order: -1;
  margin-right: auto;
}

.confirm-modal[data-busy=true] #confirmModalConfirm,
.confirm-modal[data-busy=true] #confirmModalCancel,
.confirm-modal[data-busy=true] #confirmModalAlternate,
.confirm-modal[data-busy=true] #confirmModalCloseX {
  cursor: wait;
}

.package-extract-modal {
  z-index: 12200;
}
.package-extract-modal .status-modal-dialog {
  width: min(720px, 100vw - 32px);
}
.package-extract-modal .status-modal-head {
  border-bottom-color: var(--line-soft);
}

.package-extract-progress {
  display: grid;
  gap: 12px;
}

.package-extract-stats,
.package-extract-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

#liveryPreviewInfoModal .status-modal-dialog {
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.livery-preview-info-body {
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.livery-preview-info-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.livery-preview-info-steps li {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: var(--border-width) solid var(--line);
}
.livery-preview-info-steps strong {
  color: var(--ink);
}
.livery-preview-info-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.livery-preview-info-note {
  margin: 0;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
  line-height: 1.5;
}

.package-extract-metrics span:last-child {
  flex: 1 0 100%;
}

.package-extract-stats strong {
  color: #fff;
  font-size: 18px;
}

.package-extract-path {
  min-height: 44px;
  max-height: 92px;
  overflow: auto;
  padding: 10px 12px;
  border: var(--border-width) solid var(--line-soft);
  background: #05080c;
  color: #dce3e8;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  user-select: text;
  -webkit-user-select: text;
}

#packageExtractModalBusy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: wait;
}

#packageExtractModalCancel[disabled] {
  cursor: wait;
}

@keyframes button-spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}
.confirm-modal-details {
  border: var(--border-width) solid var(--line-soft);
  background: #000;
  color: #c9d4de;
  max-height: 100px;
  overflow: auto;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-modal-input {
  display: grid;
  gap: 6px;
}

.confirm-modal-option {
  display: grid;
  gap: 4px;
  margin-right: auto;
  max-width: min(360px, 52%);
  color: #dce3e8;
  font-size: 14px;
  text-align: left;
}
.confirm-modal-option > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.confirm-modal-option input {
  width: 16px;
  height: 16px;
}
.confirm-modal-option small {
  color: var(--muted);
  line-height: 1.35;
}

.confirm-modal-option[hidden] {
  display: none;
}

.confirm-modal-input[hidden] {
  display: none;
}

.confirm-modal:not([data-mode=input]) .confirm-modal-input {
  display: none !important;
}

.confirm-modal[data-type=danger] {
  --modal-accent: #a91518;
  --modal-accent-rgb: 228, 61, 48;
  --modal-accent-border: #ff4d55;
  --modal-accent-hover: #c51f24;
  --modal-accent-text: #fff1ef;
}

.status-modal[data-type=success] {
  --modal-accent: #37e021;
  --modal-accent-rgb: 55, 224, 33;
  --modal-accent-border: #7cff6e;
  --modal-accent-hover: #2fc51d;
  --modal-accent-text: #e8ffe4;
}

.status-modal[data-type=warning] {
  --modal-accent: #f7c948;
  --modal-accent-rgb: 247, 201, 72;
  --modal-accent-border: #ffe082;
  --modal-accent-hover: #dcae2e;
  --modal-accent-text: #fff4c2;
  --modal-accent-button-text: #090909;
}

.status-modal[data-type=error] {
  --modal-accent: #e43d30;
  --modal-accent-rgb: 228, 61, 48;
  --modal-accent-border: #ff5a4f;
  --modal-accent-hover: #f04d42;
  --modal-accent-text: #fff1ef;
}

:root {
  --ui-page-title-size: 26px;
  --ui-detail-title-size: 22px;
  --ui-detail-meta-size: 15px;
  --ui-card-title-size: 17px;
  --ui-subsection-title-size: 13px;
  --ui-list-title-size: 17px;
  --ui-list-meta-size: 13px;
  --ui-body-copy-size: 14px;
}

.ui-page-title,
.panel-head h1,
.panel-head h2,
.file-panel h1,
.tool-pane h1 {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: var(--ui-page-title-size);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ui-detail-title,
.my-skin-detail-head h2,
.custom-grid-title-block h2,
.driver-profile-hero strong,
.tyre-brand-hero strong,
.driver-preview-title strong,
.about-features .chip strong {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: var(--ui-detail-title-size);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ui-detail-meta,
.category-intro,
.my-skin-subtitle,
.custom-grid-subtitle,
.driver-preview-title span,
.tyre-brand-paths span,
.driver-profile-paths span,
.about-features .chip > span,
.about-creator-copy {
  color: var(--muted);
  font-size: var(--ui-detail-meta-size);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}

.ui-card-title,
.my-skin-section.is-framed > .my-skin-section-title,
.my-skin-section-title,
.custom-grid-section-head strong,
.custom-grid-tool-head strong,
.driver-profile-section-head strong,
.driver-preview-appearance-head strong,
.tyre-brand-preview-card h2,
.numberplate-preview-card h2,
.numberplate-section h2,
.settings-card h2,
.home-step-head h2,
.inspect-editor-title strong,
.skin-template-copy strong,
.livery-preview-numberplate-fields strong,
.livery-preview-scene-settings-head strong,
.livery-preview-material-card strong {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: var(--ui-card-title-size);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ui-subsection-title,
.my-skin-section-subtitle,
.numberplate-section h3,
.custom-grid-section-head span,
.driver-profile-section-head span,
.driver-profile-material-meta span,
.numberplate-preview-card h2,
.tyre-brand-preview-card h2,
.inspect-editor-field span,
.inspect-editor-subtitle,
.inspect-reference-meta strong,
.home-step-details summary,
.livery-preview-scene-settings-subhead,
.livery-preview-numberplate-diagnostics strong,
.livery-preview-material-list strong {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--ui-subsection-title-size);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ui-list-title,
.my-skin-card strong,
.driver-profile-copy strong,
.custom-grid-item-copy strong > span:first-child,
.custom-grid-entry-copy strong,
.tyre-brand-copy strong,
.numberplate-template-copy strong,
.numberplate-asset-copy strong,
.uv-group-tools strong,
.uv-glass-card strong,
.chip strong {
  color: var(--accent-3);
  font-family: var(--font-display);
  font-size: var(--ui-list-title-size);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ui-list-meta,
.my-skin-card > span,
.my-skin-card-copy .small,
.my-skin-card-copy .skin-id,
.driver-profile-item span,
.driver-profile-item small,
.driver-profile-copy span,
.driver-profile-copy small,
.custom-grid-item-copy span,
.custom-grid-item small,
.custom-grid-entry-copy span,
.tyre-brand-item span,
.tyre-brand-item small,
.tyre-brand-copy span,
.tyre-brand-copy small,
.numberplate-template-item span,
.numberplate-template-copy span,
.numberplate-asset-copy span,
.numberplate-asset-copy small,
.uv-group-item span,
.uv-glass-list span,
.inspect-reference-meta span,
.chip span,
.settings-form small,
.settings-card small {
  color: var(--muted);
  font-size: var(--ui-list-meta-size);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: 0;
  text-transform: none;
}

.ui-body-copy,
.skin-template-copy span,
.skin-template-copy small,
.numberplate-workflow-note,
.livery-preview-numberplate-hint,
.livery-preview-numberplate-panel p,
.livery-preview-numberplate-dev-panel p,
.livery-preview-scene-settings-panel p,
.home-step-head p,
.inspect-editor-title span,
.inspect-summary-box,
.my-skins-empty.small,
.driver-profile-empty,
.tyre-brand-empty,
.numberplate-template-empty,
.custom-grid-empty,
.uv-group-empty,
.uv-glass-empty {
  font-size: var(--ui-body-copy-size);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0;
  text-transform: none;
}

.about-features .chip strong {
  gap: 10px;
}

.about-features .chip > span,
.about-creator-copy {
  color: #c7d0d9;
}

@media (max-width: 1360px) {
  .work-area {
    gap: 12px;
    padding: 12px;
  }
  .overview-grid,
  .overview-grid-two {
    grid-template-columns: 1fr;
  }
  .overview-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .overview-card img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
  }
  .settings-form {
    grid-template-columns: 1fr;
  }
  .settings-inline-actions {
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .my-skins-layout {
    grid-template-columns: 1fr;
  }
  .my-skins-detail > .flex {
    flex-direction: column;
  }
  .my-skin-edit-layout {
    grid-template-columns: 1fr;
  }
  .my-skin-edit-name-row {
    grid-template-columns: 1fr;
  }
  .my-skin-edit-name-row .primary {
    width: 100%;
    justify-content: center;
  }
  .my-skin-edit-card-preview,
  .my-skin-edit-card-edit,
  .my-skin-edit-card-tyres,
  .my-skin-edit-card-numberplate {
    grid-column: 1;
    grid-row: auto;
  }
  .uv-group-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-height: 860px) {
  .work-area {
    gap: 10px;
    padding: 10px;
  }
  .panel {
    padding: 12px;
  }
}
.margin-top-40 {
  margin-top: 40px;
}

.flex {
  display: flex;
  gap: 10px;
}

.flex-center {
  justify-content: center;
}

.flex-column {
  flex-direction: column;
}

.button-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workspace,
.work-area,
.tool-pane,
.tool-content,
.file-panel,
.panel,
.topbar,
.overview-card,
.home-setup-panel,
.settings-card,
.file-browser,
.file-tree,
.file-preview,
.output,
.logbar,
.chip,
.my-skins-list,
.my-skins-detail,
.my-skin-card,
.my-skin-preview-panel,
.my-skin-preview-image,
.my-skin-section.is-framed,
.my-skin-toolbar-check,
.my-skin-info-grid > div,
.my-skin-file-row,
.my-skin-loc-row,
.status-modal-dialog,
.status-modal-details,
.preview3d-viewer-frame,
.preview3d-texture-frame,
.preview3d-live-panel,
.livery-preview-topbar,
.livery-preview-canvas-wrap,
.livery-preview-status,
.livery-preview-check,
.uv-canvas-wrap,
.uv-sidebar-panel,
.numberplate-template-rail,
.numberplate-studio-preview,
.numberplate-studio-editor,
.inspect-reference-row,
.actor-resource-row {
  background: rgba(0, 0, 0, 0.6);
  border-color: var(--line);
  backdrop-filter: blur(5px);
}

.status-modal-dialog {
  border-color: var(--modal-accent-border);
  background: rgba(0, 0, 0, 0.7);
}

input,
select,
textarea {
  background: #000;
  border-color: var(--line);
}

table,
thead,
tbody,
tr,
td,
th {
  background-color: #000;
}

tr.selected,
tr.selected td {
  background-color: var(--accent-2);
}

.panel::before {
  background: var(--accent-2);
}

.nav-button:not(.nav-label),
.nav-subbutton {
  background: #000;
}

.nav-button.active:not(.nav-label),
.nav-button:hover:not(.nav-label),
.nav-subbutton.active,
.nav-subbutton:hover {
  background: #120305;
  border-color: var(--line);
}

.nav-label,
.nav-label:hover {
  background: transparent;
  border-color: transparent;
}

/*# sourceMappingURL=styles.css.map */
