:root {
  --bg: #ececec;
  --card: #ffffff;
  --line: #dcdcdc;
  --line-soft: #ebebeb;
  --text: #101010;
  --muted: #666666;
  --accent-soft: #fff2bf;
  --accent-line: #ffcb4a;
  --accent-text: #a16300;
  --tag-cyan-bg: #eaf8ff;
  --tag-cyan-line: #cae8f8;
  --tag-cyan-text: #205976;
  --tag-purple-bg: #f2ebff;
  --tag-purple-line: #ddd0ff;
  --tag-purple-text: #5f4593;
  --tag-green-bg: #eaf8f1;
  --tag-green-line: #ccecd9;
  --tag-green-text: #2d6f4f;
  --tag-rose-bg: #ffeef2;
  --tag-rose-line: #f4d2dc;
  --tag-rose-text: #8a3c54;
  --btn-dark: #171717;
  --btn-dark-hover: #0f0f0f;
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.06);
  --shadow-pop: 0 18px 34px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 216, 110, 0.34) 0%, rgba(255, 216, 110, 0) 34%),
    var(--bg);
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.theme-dark {
  --bg: #0f1218;
  --card: #151922;
  --line: #2a3040;
  --line-soft: #242a38;
  --text: #f2f5fb;
  --muted: #9aa3b2;
  --accent-soft: #3d3214;
  --accent-line: #ffbf33;
  --accent-text: #ffd168;
  --btn-dark: #e9edf5;
  --btn-dark-hover: #d8dee9;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 20px 40px rgba(0, 0, 0, 0.45);
  background:
    radial-gradient(circle at 94% 2%, rgba(255, 184, 56, 0.14) 0%, rgba(255, 184, 56, 0) 36%),
    #0f1218;
}

.hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 206, 78, 0.14), rgba(255, 206, 78, 0) 46%),
    linear-gradient(140deg, #f5f6f8 0%, #eceef1 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.62s ease, visibility 0s linear 0.62s;
}

.splash-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 16, 16, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 16, 16, 0.03) 1px, transparent 1px);
  background-size: 84px 84px;
}

.splash-screen.is-exit {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-stage {
  position: relative;
  width: min(980px, calc(100vw - 52px));
  height: min(620px, calc(100vh - 52px));
  border: 1px solid #dde2ea;
  border-radius: 32px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f9fb 36%, #f4f5f7 100%);
  box-shadow: 0 22px 48px rgba(14, 17, 26, 0.12);
  overflow: hidden;
}

.splash-stage::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 78px;
  background: linear-gradient(90deg, #f2f6fc 0%, #f8fbff 100%);
  border-bottom: 1px solid #e6eaf0;
}

.splash-core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, calc(100% - 72px));
  transform: translate(-50%, -50%);
  text-align: center;
  padding: 30px 22px;
  border: 1px solid #e4e8ef;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(20, 24, 32, 0.08);
  animation: splashCoreIn 0.75s cubic-bezier(0.24, 0.85, 0.3, 1) 0.08s both;
}

.splash-core p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7f8a99;
  font-weight: 700;
}

.splash-core h1 {
  margin: 10px 0 0;
  font-size: clamp(30px, 5.2vw, 56px);
  line-height: 1.08;
  color: #101115;
  font-weight: 800;
}

.splash-icon-bubble {
  --delay: 0s;
  position: absolute;
  width: clamp(56px, 6.4vw, 82px);
  height: clamp(56px, 6.4vw, 82px);
  border-radius: 999px;
  border: 1px solid #e3e8ef;
  background: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 22px rgba(12, 15, 22, 0.08);
  color: #151922;
  opacity: 0;
  animation: splashIconMotion 1.35s cubic-bezier(0.23, 0.92, 0.32, 1) var(--delay) both;
}

.splash-icon-bubble svg {
  width: 52%;
  height: 52%;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bubble-1 {
  top: 16%;
  left: 17%;
  --delay: 0.14s;
}

.bubble-2 {
  top: 16%;
  right: 17%;
  --delay: 0.22s;
}

.bubble-3 {
  top: 35%;
  left: 8%;
  --delay: 0.3s;
}

.bubble-4 {
  top: 35%;
  right: 8%;
  --delay: 0.38s;
}

.bubble-5 {
  bottom: 16%;
  left: 19%;
  --delay: 0.46s;
}

.bubble-6 {
  bottom: 13%;
  left: 41%;
  --delay: 0.54s;
}

.bubble-7 {
  bottom: 16%;
  right: 19%;
  --delay: 0.62s;
}

.bubble-8 {
  top: 57%;
  right: 34%;
  --delay: 0.7s;
}

@keyframes splashCoreIn {
  0% {
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes splashIconMotion {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.2);
  }
  34% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  58% {
    transform: translate3d(0, -5px, 0) scale(1);
  }
  76% {
    transform: translate3d(0, 4px, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1);
  }
}

.app-shell {
  width: 100%;
  min-height: 100vh;
  max-width: none;
  margin: 0;
  padding: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.onboarding-panel {
  width: min(560px, 100%);
  margin: 72px auto;
  padding: 34px;
}

.panel-head h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  color: #0f0f0f;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  font-weight: 700;
}

.panel-lead {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.grid-form {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

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

.field-inline input {
  flex: 1;
}

.inline-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  padding: 10px 11px;
  font-size: 12px;
  font-weight: 700;
}

.icon-only-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  justify-content: center;
  border-radius: 12px;
  line-height: 0;
  vertical-align: middle;
}

.icon-only-btn:focus-visible {
  outline: 2px solid rgba(17, 17, 17, 0.2);
  outline-offset: 2px;
}

.icon-only-btn .inline-btn-icon {
  width: 24px;
  height: 24px;
}

.inline-btn-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #dfe5ef;
  background: #f5f7fb;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.inline-btn-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.avatar-preview-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  border: 1px solid #d8dde7;
  background: #ffffff;
  overflow: hidden;
  flex: 0 0 auto;
}

#onboardingAvatarPreview {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

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

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(255, 189, 46, 0.28);
  border-color: #e09c00;
}

.native-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfcfcf;
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.custom-select-trigger:hover {
  border-color: #b8c1d0;
  background: #fbfcfe;
}

.custom-select-trigger:focus-visible {
  outline: 2px solid rgba(255, 189, 46, 0.28);
  outline-offset: 2px;
  border-color: #e09c00;
}

.custom-select-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.64;
}

.custom-select-trigger-icon,
.custom-select-option-icon,
.custom-select-trigger-caret,
.custom-select-option-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.custom-select-trigger-icon,
.custom-select-option-icon {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  border: 1px solid #dde3ec;
  background: #f8fafc;
  color: #1e2a39;
}

.custom-select-trigger-icon svg,
.custom-select-option-icon svg,
.custom-select-trigger-caret svg,
.custom-select-option-indicator svg {
  width: 16px;
  height: 16px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.custom-select-trigger-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-trigger-caret {
  width: 18px;
  height: 18px;
  color: #667182;
  transition: transform 0.18s ease;
}

.custom-select.is-open .custom-select-trigger-caret {
  transform: rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 55;
  border: 1px solid #dde3ec;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 32px rgba(15, 20, 29, 0.12);
  padding: 8px;
  display: grid;
  gap: 6px;
  max-height: 296px;
  overflow-y: auto;
}

.custom-select-option {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #1b2533;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.custom-select-option:hover {
  background: #f7f9fc;
  border-color: #ebeff5;
}

.custom-select-option.active {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border-color: #dde4ef;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.98) inset,
    0 10px 22px rgba(15, 20, 29, 0.11),
    0 2px 5px rgba(15, 20, 29, 0.04);
  transform: translateY(-1px);
}

.custom-select-option:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.custom-select-option-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-select-option-indicator {
  width: 18px;
  height: 18px;
  color: transparent;
}

.custom-select-option.active .custom-select-option-indicator {
  color: #121212;
}

.custom-select-option.active .custom-select-option-icon {
  background: #ffffff;
  border-color: #d7deea;
  box-shadow: 0 4px 10px rgba(15, 20, 29, 0.08);
}

.custom-select-option.active .custom-select-option-label {
  color: #121822;
}

.custom-select-project {
  flex: 1;
  min-width: 0;
}

.custom-select-project .custom-select-trigger {
  min-height: 34px;
  border: 0;
  background: transparent;
  padding: 0 2px 0 0;
  box-shadow: none;
}

.custom-select-project .custom-select-trigger:hover {
  background: transparent;
}

.custom-select-project .custom-select-trigger-icon,
.custom-select-project .custom-select-option-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
}

.custom-select-project .custom-select-trigger-icon svg,
.custom-select-project .custom-select-option-icon svg {
  width: 15px;
  height: 15px;
  display: block;
  margin: auto;
}

.custom-select-project .custom-select-trigger-label {
  font-size: 14px;
}

.custom-select-project .custom-select-menu {
  top: calc(100% + 12px);
  min-width: 220px;
}

textarea {
  resize: vertical;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--btn-dark);
  color: #fff;
}

.btn-primary:hover {
  background: var(--btn-dark-hover);
}

.btn-soft {
  border-color: #cdcdcd;
  background: #fafafa;
  color: #1a1a1a;
}

.btn-danger {
  border-color: #e6c6c6;
  background: #fbf3f3;
  color: #772323;
}

.btn-ghost {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: #5f3b00;
}

.btn.full {
  width: 100%;
}

.workspace {
  height: calc(100vh - 36px);
  min-height: 760px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 10px;
}

.workspace-topbar {
  min-height: 74px;
  border-radius: 16px;
  background: linear-gradient(90deg, #f9fbff 0%, #eff4ff 52%, #f7f9fc 100%);
  border-color: #d9dee8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-pill {
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  background: #ffffff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  box-shadow: 0 4px 14px rgba(12, 20, 32, 0.07);
}

.brand-pill img {
  height: 34px;
  max-height: 34px;
  width: auto;
  max-width: min(320px, 40vw);
  object-fit: contain;
  object-position: left center;
  display: block;
  flex: 0 0 auto;
  filter: none;
  image-rendering: auto;
  transform: none;
}

.topbar-user-pill {
  border: 1px solid #dde3ee;
  border-radius: 999px;
  background: #ffffff;
  color: #101418;
  padding: 6px 12px 6px 7px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: default;
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #d6deeb;
  background: linear-gradient(160deg, #f3f7ff 0%, #e8eef9 100%);
  color: #263041;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.topbar-user-avatar.has-avatar {
  overflow: hidden;
  padding: 0;
  border-color: #d4dce9;
  background: #ffffff;
}

.topbar-user-avatar.has-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  image-rendering: pixelated;
}

.topbar-project-pill {
  border: 1px solid #dde3ee;
  border-radius: 999px;
  background: #ffffff;
  padding: 6px 8px 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 248px;
}

.project-pill-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #748094;
  font-weight: 700;
}

#projectSelect {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  min-width: 120px;
  color: #111111;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

#projectSelect:focus {
  outline: none;
}

.project-pill-add,
.project-pill-delete {
  width: 30px;
  height: 30px;
  border: 1px solid #d5ddeb;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.project-pill-add {
  margin-left: auto;
  background: #111111;
  color: #ffffff;
}

.project-pill-delete {
  margin-left: 0;
  background: #ffffff;
  color: #9f2133;
  border-color: #e4c7ce;
}

.project-pill-add svg,
.project-pill-delete svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-pill-add:hover {
  background: #000000;
  transform: translateY(-1px);
}

.project-pill-delete:hover {
  background: #fff4f6;
  border-color: #daabb5;
  color: #8f1128;
  transform: translateY(-1px);
}

.project-pill-delete:disabled {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
}

.project-pill-add.is-limit {
  opacity: 0.5;
  cursor: pointer;
  background: #818892;
  border-color: #cdd5e2;
  transform: none;
}

.topbar-settings-wrap {
  position: relative;
}

.topbar-icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #dce2ec;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2a3a;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: border-color 0.18s ease, background-color 0.18s ease;
  padding: 0;
  line-height: 0;
  overflow: hidden;
}

.topbar-icon-btn:hover {
  background: #f8fbff;
  border-color: #cfd8e7;
}

.topbar-icon-btn[aria-expanded="true"] {
  background: #f7faff;
  border-color: #c8d5ea;
  box-shadow: 0 0 0 3px rgba(73, 126, 255, 0.08);
}

.topbar-icon-btn svg,
.topbar-icon-btn img {
  width: 19px;
  height: 19px;
  display: block;
  margin: auto;
  object-fit: contain;
  stroke: currentColor;
  flex: 0 0 auto;
}

.topbar-settings-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 228px;
  border: 1px solid #d8dfe9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 22, 32, 0.15);
  padding: 8px;
  display: grid;
  gap: 6px;
  z-index: 45;
}

.menu-action-btn {
  border: 1px solid #e2e6ee;
  border-radius: 9px;
  background: #fafbfd;
  color: #1b2533;
  text-align: left;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.menu-action-btn:hover {
  background: #f3f6fa;
}

.menu-action-icon {
  width: 20px;
  height: 20px;
  border-radius: 7px;
  border: 1px solid #d6deea;
  background: #ffffff;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  line-height: 0;
  overflow: hidden;
}

.menu-action-icon svg {
  width: 14px;
  height: 14px;
  display: block;
  margin: auto;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.theme-dark .workspace-topbar {
  background: linear-gradient(90deg, #171d2a 0%, #1b2232 52%, #171d2a 100%);
  border-color: #2a3346;
}

body.theme-dark .brand-pill,
body.theme-dark .topbar-user-pill,
body.theme-dark .topbar-project-pill,
body.theme-dark .topbar-icon-btn,
body.theme-dark .topbar-settings-menu {
  background: #1a2130;
  border-color: #303b50;
  color: #f3f6fb;
}

body.theme-dark .brand-pill {
  background: #ffffff;
  border-color: #d7deea;
}

body.theme-dark .brand-pill img {
  filter: none;
}

body.theme-dark .topbar-user-avatar {
  background: linear-gradient(160deg, #2a3448 0%, #222c3e 100%);
  border-color: #3d4a61;
  color: #eaf1ff;
}

body.theme-dark .topbar-user-avatar.has-avatar {
  background: #131a27;
  border-color: #475874;
}

body.theme-dark .topbar-user-pill[aria-expanded="true"],
body.theme-dark .topbar-icon-btn[aria-expanded="true"] {
  background: #20293b;
  border-color: #4a5b79;
  box-shadow: 0 0 0 3px rgba(120, 156, 255, 0.14);
}

body.theme-dark #projectSelect {
  color: #f3f6fb;
}

body.theme-dark .project-pill-label {
  color: #a8b3c7;
}

body.theme-dark .project-pill-add {
  background: #0f131b;
  border-color: #3e4a61;
}

body.theme-dark .project-pill-add.is-limit {
  background: #2a3140;
  border-color: #46536c;
  color: #b8c2d6;
}

body.theme-dark .project-pill-delete {
  background: #2a1c25;
  border-color: #5a3a49;
  color: #ffb8c5;
}

body.theme-dark .project-pill-delete:hover {
  background: #341f2b;
  border-color: #6b4152;
  color: #ffd2db;
}

body.theme-dark .menu-action-btn {
  background: #111827;
  border-color: #313d54;
  color: #eaf0fb;
}

body.theme-dark .menu-action-btn:hover {
  background: #1a2436;
}

body.theme-dark .menu-action-icon {
  background: #131b2a;
  border-color: #3b4962;
}

body.theme-dark .inline-btn-icon {
  background: #1a2334;
  border-color: #3b4962;
}

body.theme-dark .custom-select-trigger {
  background: #121925;
  border-color: #343f54;
  color: #eef3fb;
}

body.theme-dark .custom-select-trigger:hover {
  background: #172132;
  border-color: #41506a;
}

body.theme-dark .custom-select-trigger-icon,
body.theme-dark .custom-select-option-icon {
  background: #182132;
  border-color: #3a4760;
  color: #eaf0fa;
}

body.theme-dark .custom-select-trigger-caret {
  color: #aab5c7;
}

body.theme-dark .custom-select-menu {
  background: rgba(21, 27, 39, 0.96);
  border-color: #334056;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.35);
}

body.theme-dark .custom-select-option {
  color: #eef3fb;
}

body.theme-dark .custom-select-option:hover {
  background: #1a2436;
  border-color: #2e3b52;
}

body.theme-dark .custom-select-option.active {
  background: linear-gradient(180deg, #1c2433 0%, #171f2d 100%);
  border-color: #465874;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 24px rgba(0, 0, 0, 0.28),
    0 2px 6px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

body.theme-dark .custom-select-option.active .custom-select-option-indicator {
  color: #f4f7fc;
}

body.theme-dark .custom-select-option.active .custom-select-option-icon {
  background: #202a3b;
  border-color: #52627d;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

body.theme-dark .custom-select-project .custom-select-trigger {
  background: transparent;
}

body.theme-dark .avatar-preview-box {
  background: #101722;
  border-color: #3a4961;
}

body.theme-dark .right-summary-box summary {
  color: #a6b0c0;
}

body.theme-dark .right-summary-box summary::after {
  border-color: #3c4860;
  color: #ced8ea;
}

@media (max-width: 680px) {
  .field-inline {
    flex-wrap: wrap;
  }

  .field-inline input {
    min-width: 0;
    width: calc(100% - 50px);
  }
}

body.theme-dark .panel,
body.theme-dark .left-info-panel,
body.theme-dark .canvas-center,
body.theme-dark .right-function-panel,
body.theme-dark .step-panel,
body.theme-dark .left-user-card,
body.theme-dark .left-project-box,
body.theme-dark .left-section,
body.theme-dark .summary-box,
body.theme-dark .upload-control,
body.theme-dark .product-control-box,
body.theme-dark .product-picker-box,
body.theme-dark .batch-preview-card,
body.theme-dark .batch-preview-empty {
  background: #151b27;
  border-color: #2d374b;
  color: #edf2fb;
}

body.theme-dark .left-panel-top,
body.theme-dark .left-mode-tabs,
body.theme-dark .left-panel-footer,
body.theme-dark .canvas-toolbar,
body.theme-dark .batch-preview-section,
body.theme-dark .right-panel-head,
body.theme-dark .step-nav {
  background: #141a25;
  border-color: #2d374b;
}

body.theme-dark .canvas-stage {
  background-image:
    linear-gradient(45deg, #1f2837 25%, transparent 25%),
    linear-gradient(-45deg, #1f2837 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f2837 75%),
    linear-gradient(-45deg, transparent 75%, #1f2837 75%);
}

body.theme-dark .batch-preview-kicker {
  color: #f3be4f;
}

body.theme-dark .batch-preview-card-head strong,
body.theme-dark .batch-preview-head h4 {
  color: #edf2fb;
}

body.theme-dark .batch-preview-meta,
body.theme-dark .batch-preview-note,
body.theme-dark .batch-preview-placeholder {
  color: #9aa8bf;
}

body.theme-dark .export-size-display,
body.theme-dark .coming-soon-card {
  background: #151b27;
  border-color: #2d374b;
}

body.theme-dark .export-preview-frame {
  border-color: #314057;
  background-image:
    linear-gradient(45deg, #1f2837 25%, transparent 25%),
    linear-gradient(-45deg, #1f2837 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f2837 75%),
    linear-gradient(-45deg, transparent 75%, #1f2837 75%);
}

body.theme-dark .export-size-display strong,
body.theme-dark .coming-soon-card strong {
  color: #edf2fb;
}

body.theme-dark .export-size-display span,
body.theme-dark .coming-soon-card p {
  color: #9aa8bf;
}

body.theme-dark .export-preview-placeholder {
  color: #9aa8bf;
}

body.theme-dark .coming-soon-badge {
  border-color: rgba(243, 190, 79, 0.35);
  background: rgba(243, 190, 79, 0.14);
  color: #ffd77f;
}

body.theme-dark .batch-preview-badge {
  border-color: rgba(243, 190, 79, 0.35);
  background: rgba(243, 190, 79, 0.14);
  color: #ffd77f;
}

body.theme-dark .batch-preview-edit-btn {
  border-color: #314057;
  background: #182132;
  color: #edf2fb;
}

body.theme-dark .batch-preview-edit-btn:hover {
  border-color: #455772;
  box-shadow: 0 10px 20px rgba(4, 10, 21, 0.34);
}

body.theme-dark .batch-preview-editing-indicator {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(12, 18, 30, 0.88);
  box-shadow: 0 12px 24px rgba(4, 10, 21, 0.34);
}

body.theme-dark .batch-preview-frame {
  border-color: #314057;
  background-image:
    linear-gradient(45deg, #1f2837 25%, transparent 25%),
    linear-gradient(-45deg, #1f2837 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #1f2837 75%),
    linear-gradient(-45deg, transparent 75%, #1f2837 75%);
}

body.theme-dark .batch-preview-card.is-error {
  border-color: #694244;
  background: #22181c;
}

body.theme-dark .batch-preview-card.is-editing {
  border-color: rgba(243, 190, 79, 0.6);
  box-shadow: 0 16px 30px rgba(243, 190, 79, 0.1);
}

body.theme-dark .batch-preview-card.is-error .batch-preview-frame {
  border-color: #694244;
}

body.theme-dark input,
body.theme-dark select,
body.theme-dark textarea {
  background: #0f1520;
  border-color: #374258;
  color: #edf2fb;
}

body.theme-dark .btn-soft,
body.theme-dark .left-mode-tab,
body.theme-dark .left-assets-tab,
body.theme-dark .head-tab,
body.theme-dark .step-link,
body.theme-dark .layer-item-btn,
body.theme-dark .upload-item-btn {
  background: #1a2231;
  border-color: #374259;
  color: #eaf0fb;
}

body.theme-dark .btn-primary {
  background: #e8edf7;
  color: #10151e;
}

body.theme-dark .btn-primary:hover {
  background: #dce4f1;
}

body.theme-dark .step-link:hover,
body.theme-dark .layer-item-btn:hover,
body.theme-dark .upload-item-btn:hover {
  background: #232d40;
}

body.theme-dark .decor-action-box,
body.theme-dark .copy-layer-item {
  background: #121a28;
  border-color: #2f3a50;
}

body.theme-dark .decor-trigger {
  background: #0f1520;
  border-color: #3a4860;
  color: #eaf0fb;
}

body.theme-dark .decor-trigger:hover {
  border-color: #63779d;
  background: #171f30;
}

body.theme-dark .decor-action-note {
  color: #a4b0c4;
}

body.theme-dark .copy-stroke-toggle {
  background: #0f1520;
  border-color: #3a4860;
  color: #dbe5f7;
}

body.theme-dark .compact-field input[type="number"],
body.theme-dark .compact-field input[type="color"] {
  border-color: #3a4860;
  background: #0f1520;
  color: #eaf0fb;
}

.figma-layout {
  position: relative;
  height: 100%;
  display: grid;
  --left-panel-width: 280px;
  --right-panel-width: 0px;
  grid-template-columns: var(--left-panel-width) minmax(0, 1fr) var(--right-panel-width);
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  transition: grid-template-columns 0.22s ease;
}

.figma-layout.right-panel-open {
  --right-panel-width: 420px;
}

.left-info-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8f8f8;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 0;
  overflow: hidden;
}

.left-panel-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid #e7e7e7;
}

.panel-logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.left-panel-top strong {
  font-size: 14px;
}

.left-panel-top p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #787878;
}

.left-mode-tabs {
  padding: 10px;
  border-bottom: 1px solid #e7e7e7;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.left-mode-tab {
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #f3f3f3;
  color: #6a6a6a;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.left-mode-tab.active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.left-mode-content {
  min-height: 0;
  overflow-y: auto;
  padding-bottom: 4px;
}

.left-pane {
  display: none;
}

.left-pane.active {
  display: block;
}

.left-assets-tabs {
  margin: 10px 10px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.left-assets-tab {
  border: 1px solid #dddddd;
  border-radius: 10px;
  background: #f3f3f3;
  color: #6a6a6a;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.left-assets-tab.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.assets-pane {
  display: none;
}

.assets-pane.active {
  display: block;
}

.left-user-card,
.left-project-box,
.left-section {
  margin: 10px;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  padding: 11px;
}

.left-card-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 700;
}

.left-user-card h3 {
  margin: 8px 0 0;
  font-size: 18px;
  line-height: 1.2;
}

.user-tags {
  margin-top: 10px;
  display: flex;
  gap: 6px;
}

.mini-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dce4ec;
  border-radius: 999px;
  background: #f8fbff;
  padding: 4px 8px;
  font-size: 11px;
  color: #35556e;
}

.left-project-box ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.left-project-box li {
  display: flex;
  gap: 8px;
  align-items: center;
}

.left-project-box span {
  font-size: 12px;
  color: #717171;
}

.left-project-box strong {
  margin-left: auto;
  font-size: 12px;
  text-align: right;
}

.left-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.left-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.left-section-head h4 {
  margin: 0;
  font-size: 14px;
}

.left-section-head span {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  min-height: 0;
}

.upload-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  min-height: 0;
}

.upload-item {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
  padding: 0;
}

.upload-item-btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 7px 9px;
  text-align: left;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.upload-item-btn:hover {
  background: #f2f2f2;
}

.upload-item-btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.upload-item-name {
  font-size: 12px;
  color: #1d1d1d;
  font-weight: 600;
}

.upload-item-meta {
  font-size: 11px;
  color: #7a7a7a;
}

.layer-item-btn {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #fafafa;
  padding: 7px 9px;
  text-align: left;
  display: grid;
  gap: 3px;
  cursor: pointer;
}

.layer-item-btn:hover {
  background: #f2f2f2;
}

.layer-item-btn.active {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.layer-item-btn:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.layer-name {
  font-size: 12px;
  color: #1d1d1d;
  font-weight: 600;
}

.layer-meta {
  font-size: 11px;
  color: #7a7a7a;
}

.layer-empty {
  border: 1px dashed #dddddd;
  border-radius: 10px;
  background: #fcfcfc;
  font-size: 12px;
  color: #8a8a8a;
  text-align: center;
  padding: 10px;
}

.left-panel-footer {
  padding: 10px;
  border-top: 1px solid #e7e7e7;
  background: #f5f5f5;
}

.canvas-center {
  min-height: 0;
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.canvas-center.is-batch-preview-only {
  grid-template-rows: auto 1fr;
}

.canvas-toolbar {
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fbfbfb;
}

.canvas-toolbar h3 {
  margin: 0;
  font-size: 18px;
}

.canvas-toolbar p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.canvas-stage-wrap {
  min-height: 0;
  padding: 16px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.canvas-stage {
  width: 100%;
  min-height: 100%;
  height: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background-image:
    linear-gradient(45deg, #ececec 25%, transparent 25%),
    linear-gradient(-45deg, #ececec 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ececec 75%),
    linear-gradient(-45deg, transparent 75%, #ececec 75%);
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}

.canvas-container {
  width: fit-content;
  height: fit-content;
  max-width: none;
  max-height: none;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
  border-radius: 8px;
}

.canvas-container canvas {
  border-radius: 8px;
}

.batch-preview-section {
  display: none;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fcfcfd 0%, #f7f8fb 100%);
  min-height: 0;
  overflow: auto;
}

.batch-preview-section.visible {
  display: block;
}

.canvas-center.is-batch-preview-only .batch-preview-section {
  border-top: 0;
  padding-top: 18px;
}

.batch-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.batch-preview-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9c7b1d;
}

.batch-preview-head h4 {
  margin: 0;
  font-size: 16px;
}

.batch-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.batch-preview-empty {
  border: 1px dashed #d6dbe5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-size: 13px;
  line-height: 1.6;
  color: #697384;
}

.batch-preview-card {
  border: 1px solid #dde3ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.batch-preview-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

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

.batch-preview-card-head strong {
  display: block;
  font-size: 14px;
  color: #18202d;
}

.batch-preview-meta {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #798396;
}

.batch-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #efd28d;
  background: #fff7df;
  color: #7a5600;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.batch-preview-frame {
  position: relative;
  border: 1px solid #e2e7ef;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: var(--preview-ratio, 1 / 1);
  background:
    linear-gradient(45deg, #f0f1f4 25%, transparent 25%),
    linear-gradient(-45deg, #f0f1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f1f4 75%),
    linear-gradient(-45deg, transparent 75%, #f0f1f4 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
}

.batch-preview-placeholder,
.batch-preview-image,
.batch-preview-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.batch-preview-placeholder {
  display: grid;
  place-items: center;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #7b8797;
}

.batch-preview-image {
  object-fit: contain;
  display: block;
  background: transparent;
}

.batch-preview-canvas {
  display: block;
  background: transparent;
}

.batch-preview-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #667084;
}

.batch-preview-card.is-loading .batch-preview-placeholder {
  color: #7c6830;
}

.batch-preview-card.is-error {
  border-color: #efc1c1;
  background: #fff8f8;
}

.batch-preview-card.is-error .batch-preview-frame {
  border-color: #efcfcf;
}

.batch-preview-card.is-error .batch-preview-placeholder,
.batch-preview-card.is-error .batch-preview-note {
  color: #9c4c4c;
}

.right-function-panel {
  position: relative;
  width: 100%;
  min-height: 0;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9f9f9;
  box-shadow: var(--shadow-pop);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform: translateX(14px);
  opacity: 0;
  pointer-events: none;
  z-index: 8;
}

.figma-layout.right-panel-open .right-function-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.right-panel-head {
  padding: 10px;
  border-bottom: 1px solid #e7e7e7;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.right-head-tabs {
  display: flex;
  gap: 6px;
}

.head-tab {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  background: #f8f8f8;
  color: #666;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
}

.head-tab.active {
  background: #111;
  border-color: #111;
  color: #fff;
}

.panel-close-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  color: #4a4a4a;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.step-nav {
  padding: 10px;
  border-bottom: 1px solid #e7e7e7;
  display: grid;
  gap: 6px;
}

.nav-title {
  margin: 0 6px 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b67200;
  font-weight: 700;
}

.step-link {
  border: 1px solid transparent;
  background: transparent;
  color: #2f2f2f;
  border-radius: 11px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}

.step-link:hover {
  background: #efefef;
}

.step-link.active {
  background: #ffffff;
  border-color: #e2e2e2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  color: #141414;
}

.step-link-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #5f5f5f;
  background: #f5f5f5;
  border: 1px solid #e4e4e4;
  flex: 0 0 24px;
}

.step-link-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-link-text {
  flex: 1;
}

.step-link-index {
  min-width: 26px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background: #fafafa;
  color: #717171;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  padding: 0 6px;
}

.step-link.active .step-link-index {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.step-link.active .step-link-icon {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-text);
}

.step-panels {
  min-height: 0;
  overflow-y: auto;
  padding: 10px;
}

.step-panel {
  display: none;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
  gap: 10px;
}

.step-panel.active {
  display: grid;
}

.upload-field {
  gap: 7px;
}

.upload-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid #d8dce4;
  border-radius: 14px;
  background: #fbfbfc;
}

.upload-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #aeb7c6;
  border-radius: 10px;
  background: #ffffff;
  color: #0e1219;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: 0.18s ease;
  flex: 0 0 auto;
}

.upload-trigger:hover {
  border-color: #0e1219;
  background: #f8fafc;
  box-shadow: 0 2px 6px rgba(12, 17, 26, 0.08);
}

.upload-trigger-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  color: #253244;
}

.upload-trigger-icon svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-file-name {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  color: #6a7380;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-name.has-file {
  color: #1b2432;
  font-weight: 600;
}

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

.product-thumb-card {
  border: 1px solid #d9dee8;
  border-radius: 12px;
  background: #fbfcfd;
  padding: 8px;
  display: grid;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.product-thumb-card:hover {
  border-color: #aeb8c9;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(16, 21, 31, 0.08);
}

.product-thumb-card.active {
  border-color: #ffb100;
  box-shadow: 0 0 0 1px rgba(255, 177, 0, 0.3), 0 8px 18px rgba(255, 177, 0, 0.18);
  background: #fffef8;
}

.product-thumb-card.product-missing {
  border-style: dashed;
  border-color: #c8d0dd;
  background: #f4f6f9;
}

.product-thumb-card.product-missing:hover {
  border-color: #b7c1cf;
  background: #f7f8fb;
  box-shadow: 0 8px 18px rgba(37, 46, 60, 0.08);
}

.product-thumb-media {
  position: relative;
  border: 1px solid #e2e7ef;
  border-radius: 10px;
  aspect-ratio: 1.35 / 1;
  background:
    linear-gradient(45deg, #f0f1f4 25%, transparent 25%),
    linear-gradient(-45deg, #f0f1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f1f4 75%),
    linear-gradient(-45deg, transparent 75%, #f0f1f4 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  overflow: hidden;
}

.product-thumb-media.is-placeholder {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(180deg, #eef2f6 0%, #e3e8ef 100%);
  border-color: #d6dde7;
}

.product-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
}

.product-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #8a95a7;
  font-weight: 700;
  z-index: 0;
}

.product-thumb-placeholder-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  padding: 12px;
}

.product-thumb-placeholder-card {
  width: 100%;
  min-height: calc(100% - 4px);
  border-radius: 12px;
  border: 1px solid rgba(143, 154, 170, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(239, 243, 248, 0.86) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  text-align: center;
  padding: 14px 12px;
}

.product-thumb-placeholder-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(153, 164, 181, 0.36);
  color: #778398;
  box-shadow: 0 4px 10px rgba(77, 90, 109, 0.1);
}

.product-thumb-placeholder-icon.tone-slate {
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(153, 164, 181, 0.36);
  color: #778398;
}

.product-thumb-placeholder-icon.tone-sky {
  background: rgba(236, 245, 255, 0.92);
  border-color: rgba(143, 186, 255, 0.44);
  color: #5377b7;
}

.product-thumb-placeholder-icon.tone-violet {
  background: rgba(244, 240, 255, 0.94);
  border-color: rgba(181, 165, 255, 0.42);
  color: #7257b7;
}

.product-thumb-placeholder-icon.tone-amber {
  background: rgba(255, 247, 225, 0.94);
  border-color: rgba(247, 199, 102, 0.42);
  color: #9b6a07;
}

.product-thumb-placeholder-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-thumb-placeholder-title {
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  color: #516073;
  letter-spacing: 0.01em;
}

.product-thumb-placeholder-subtitle {
  max-width: 168px;
  font-size: 9px;
  line-height: 1.45;
  color: #7d8796;
}

.product-thumb-card.product-missing .product-thumb-media img {
  opacity: 0;
}

.product-thumb-name {
  font-size: 12px;
  font-weight: 700;
  color: #1f2837;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-thumb-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: -2px;
}

.product-thumb-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 8px 3px 5px;
  border-radius: 999px;
  border: 1px solid #dde3ec;
  background: #ffffff;
  color: #2a3343;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.product-thumb-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #eef2f7;
  color: inherit;
  line-height: 0;
}

.product-thumb-badge-icon svg {
  width: 11px;
  height: 11px;
  display: block;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.product-thumb-badge.tone-amber {
  border-color: #f1d48e;
  background: #fff8e7;
  color: #6e4a00;
}

.product-thumb-badge.tone-amber .product-thumb-badge-icon {
  background: #ffecb8;
}

.product-thumb-badge.tone-sky {
  border-color: #cfe0ff;
  background: #f4f8ff;
  color: #244b8f;
}

.product-thumb-badge.tone-sky .product-thumb-badge-icon {
  background: #dce8ff;
}

.product-thumb-badge.tone-violet {
  border-color: #ddd8ff;
  background: #f8f6ff;
  color: #5443a4;
}

.product-thumb-badge.tone-violet .product-thumb-badge-icon {
  background: #e9e3ff;
}

.product-thumb-badge.tone-rose {
  border-color: #f3d8df;
  background: #fff7f8;
  color: #8a4257;
}

.product-thumb-badge.tone-rose .product-thumb-badge-icon {
  background: #fde6eb;
}

.product-thumb-badge.tone-slate {
  border-color: #d7dde6;
  background: #f7f9fb;
  color: #4f5f75;
}

.product-thumb-badge.tone-slate .product-thumb-badge-icon {
  background: #e8edf3;
}

.product-thumb-note {
  margin-top: -2px;
  font-size: 11px;
  color: #7d8796;
  line-height: 1.35;
  min-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb-note.placeholder {
  margin-top: -2px;
  color: #7f8a9b;
  line-height: 1.32;
  min-height: auto;
  display: block;
  -webkit-line-clamp: initial;
  white-space: normal;
  overflow: visible;
}

.product-control-box {
  border: 1px solid #e1e5ed;
  border-radius: 12px;
  background: #fbfcff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.product-picker-box {
  border: 1px solid #dbe1ea;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.product-control-title {
  margin: 0;
  font-size: 12px;
  color: #6d7686;
  font-weight: 700;
}

.product-range-field {
  gap: 6px;
}

.product-range-field > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-value {
  font-size: 12px;
  color: #1e2532;
}

.product-range-field input[type="range"] {
  width: 100%;
  accent-color: #111111;
}

.product-range-field input[type="range"]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.step-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1b1b1b;
}

.panel-hint {
  margin: -2px 0 2px;
  font-size: 12px;
  color: #7a7a7a;
  line-height: 1.45;
}

.decor-action-box {
  border: 1px solid #d8dce4;
  border-radius: 14px;
  background: #fbfbfc;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.decor-trigger {
  width: 100%;
  justify-content: flex-start;
}

.decor-action-note {
  font-size: 12px;
  color: #667283;
  line-height: 1.45;
}

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

.decor-shape-btn {
  border: 1px solid #d2d9e6;
  border-radius: 12px;
  background: #ffffff;
  min-height: 44px;
  color: #18202d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.decor-shape-btn:hover {
  border-color: #9faac0;
  background: #f9fbff;
  transform: translateY(-1px);
}

.decor-number-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.decor-symbol-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.decor-number-btn {
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  background: #ffffff;
  min-height: 40px;
  color: #1a2230;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.decor-number-btn:hover {
  border-color: #97a5bf;
  background: #f8fbff;
  transform: translateY(-1px);
}

.decor-style-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 8px;
  align-items: end;
}

.decor-style-box input[type="color"] {
  height: 40px;
  padding: 4px;
}

.decor-style-box input[type="color"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.batch-export-box {
  gap: 10px;
}

.batch-size-grid {
  display: grid;
  gap: 8px;
}

.batch-size-item {
  border: 1px solid #d8e0ec;
  border-radius: 11px;
  background: #ffffff;
  min-height: 42px;
  padding: 9px 11px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
}

.batch-size-item input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #111111;
}

.batch-toggle-row {
  border: 1px solid #dbe2ed;
  border-radius: 11px;
  background: #fafbfd;
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #344154;
  font-weight: 600;
  cursor: pointer;
}

.batch-toggle-row input[type="checkbox"] {
  margin: 0;
  width: 15px;
  height: 15px;
  accent-color: #111111;
}

.batch-status {
  margin-top: 8px;
}

.export-ready-box {
  display: grid;
  gap: 12px;
}

.file-protocol-notice {
  border: 1px solid #e8cf94;
  border-radius: 16px;
  background: linear-gradient(180deg, #fffaf0 0%, #fff4d8 100%);
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.file-protocol-notice-copy {
  display: grid;
  gap: 6px;
}

.file-protocol-notice strong {
  font-size: 13px;
  color: #5d4300;
}

.file-protocol-notice p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #755820;
}

.file-protocol-notice code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 6px;
  background: rgba(91, 65, 0, 0.08);
  color: #5d4300;
}

.export-size-display {
  border: 1px solid #d8deea;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
  padding: 16px 18px;
  display: grid;
  gap: 6px;
}

.export-size-display strong {
  font-size: 24px;
  line-height: 1;
  color: #151b26;
}

.export-size-display span {
  font-size: 13px;
  line-height: 1.55;
  color: #657186;
}

.single-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.coming-soon-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.coming-soon-card {
  border: 1px solid #dbe2ec;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 252, 0.96) 100%);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.coming-soon-card strong {
  font-size: 15px;
  color: #171e29;
}

.coming-soon-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #667084;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #efd28d;
  background: #fff7df;
  color: #7a5600;
  font-size: 11px;
  font-weight: 800;
}

.decor-effects-grid {
  display: grid;
  gap: 10px;
}

.decor-effect-btn {
  border: 1px solid #d7dde8;
  border-radius: 14px;
  background: #ffffff;
  color: #1d2430;
  min-height: 46px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.decor-effect-btn:hover:not(:disabled) {
  border-color: #111111;
  transform: translateY(-1px);
}

.decor-effect-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.decor-effect-btn.is-active {
  border-color: #161616;
  background: #111111;
  color: #ffffff;
}

.decor-effect-btn.is-reset {
  color: #7c1e2d;
  border-color: #ecced5;
  background: #fffafb;
}

.decor-effect-btn.is-reset:hover:not(:disabled) {
  border-color: #d7a8b2;
  background: #fff2f5;
}

.decor-effect-icon {
  width: 24px;
  height: 24px;
  border-radius: 9px;
  border: 1px solid #d9dfe9;
  background: #f7f9fc;
  display: grid;
  place-items: center;
}

.decor-effect-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decor-effect-btn.is-active .decor-effect-icon {
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.18);
}

body.theme-dark .decor-effect-btn {
  border-color: #313c52;
  background: #182133;
  color: #ecf2ff;
}

body.theme-dark .decor-effect-btn:hover:not(:disabled) {
  border-color: #5b6f93;
}

body.theme-dark .decor-effect-btn.is-active {
  border-color: #cdd9ef;
  background: #f2f7ff;
  color: #121a27;
}

body.theme-dark .decor-effect-btn.is-reset {
  border-color: #664150;
  background: #2a1d27;
  color: #ffbcc8;
}

body.theme-dark .decor-effect-icon {
  border-color: #3a4862;
  background: #111827;
}

body.theme-dark .decor-shape-btn,
body.theme-dark .decor-number-btn {
  background: #152033;
  border-color: #354359;
  color: #eaf1ff;
}

body.theme-dark .decor-shape-btn:hover,
body.theme-dark .decor-number-btn:hover {
  border-color: #5a6f94;
  background: #1b2a41;
}

body.theme-dark .batch-size-item,
body.theme-dark .batch-toggle-row {
  background: #121c2d;
  border-color: #35445d;
  color: #dfebff;
}

.copy-layer-grid {
  display: grid;
  gap: 10px;
}

.copy-generate-row {
  margin-bottom: 8px;
}

.copy-generation-status {
  margin-top: -2px;
}

.copy-layer-item {
  border: 1px solid #d8dde6;
  border-radius: 12px;
  background: #fafbfd;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.copy-style-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
}

.compact-field {
  gap: 5px;
}

.compact-field input[type="number"] {
  height: 40px;
}

.compact-field input[type="color"] {
  height: 40px;
  padding: 4px;
}

.copy-stroke-toggle {
  width: 100%;
  min-height: 40px;
  border: 1px solid #d4dbe8;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  cursor: pointer;
}

.copy-stroke-toggle input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-col {
  display: grid;
  gap: 8px;
}

.file-trigger {
  display: grid;
  place-items: center;
}

.summary-box {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
}

.summary-box p {
  margin: 0;
  font-size: 12px;
  color: #676767;
}

.summary-box ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 13px;
}

.summary-box li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-key {
  font-size: 12px;
  color: #717171;
}

.summary-box li strong {
  margin-left: auto;
  color: #1d1d1d;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.right-summary-box {
  margin: 10px;
  border-top: 1px solid #e7e7e7;
}

.right-summary-box summary {
  list-style: none;
  cursor: pointer;
  margin: 0;
  font-size: 12px;
  color: #676767;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.right-summary-box summary::after {
  content: "+";
  width: 18px;
  height: 18px;
  border: 1px solid #d5dbe6;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  color: #4c5668;
  font-size: 12px;
  line-height: 1;
}

.right-summary-box[open] summary::after {
  content: "-";
}

.right-summary-box:not([open]) ul {
  display: none;
}

.right-panel-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
  border-radius: 16px;
  z-index: 12;
}

.right-panel-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

hr {
  border: 0;
  border-top: 1px solid var(--line-soft);
  margin: 12px 0;
}

@media (max-width: 1280px) {
  .figma-layout {
    --left-panel-width: 250px;
  }

  .figma-layout.right-panel-open {
    --right-panel-width: 380px;
  }
}

@media (max-width: 980px) {
  .splash-stage {
    width: calc(100vw - 32px);
    height: min(560px, calc(100vh - 32px));
    border-radius: 24px;
  }

  .splash-core {
    width: calc(100% - 48px);
    padding: 24px 16px;
  }

  .bubble-1 {
    top: 14%;
    left: 10%;
  }

  .bubble-2 {
    top: 14%;
    right: 10%;
  }

  .bubble-3 {
    top: 34%;
    left: 4%;
  }

  .bubble-4 {
    top: 34%;
    right: 4%;
  }

  .bubble-5 {
    bottom: 14%;
    left: 11%;
  }

  .bubble-6 {
    bottom: 11%;
    left: 39%;
  }

  .bubble-7 {
    bottom: 14%;
    right: 11%;
  }

  .bubble-8 {
    top: 57%;
    right: 28%;
  }

  .workspace-topbar {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar-left,
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-project-pill {
    min-width: 0;
    flex: 1;
  }

  .workspace {
    height: auto;
    min-height: 0;
  }

  .figma-layout,
  .figma-layout.right-panel-open {
    --right-panel-width: 0px;
    grid-template-columns: 1fr;
    min-height: 760px;
    transition: none;
  }

  .left-info-panel {
    min-height: 420px;
  }

  .canvas-center {
    min-height: 620px;
  }

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

  .right-function-panel {
    position: fixed;
    top: 22px;
    right: 12px;
    bottom: 22px;
    width: min(410px, calc(100vw - 24px));
    transform: translateX(calc(100% + 18px));
    z-index: 30;
  }

  .right-function-panel.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .right-panel-overlay {
    position: fixed;
    inset: 0;
    border-radius: 0;
  }
}

@media (max-width: 560px) {
  .copy-style-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .splash-screen::before {
    background-size: 56px 56px;
  }

  .splash-stage {
    width: calc(100vw - 20px);
    height: min(520px, calc(100vh - 20px));
    border-radius: 20px;
  }

  .splash-stage::before {
    height: 56px;
  }

  .splash-core {
    width: calc(100% - 28px);
    border-radius: 18px;
    padding: 16px 12px;
  }

  .splash-core p {
    font-size: 11px;
  }

  .splash-icon-bubble {
    width: 52px;
    height: 52px;
  }

  .bubble-3,
  .bubble-4,
  .bubble-8 {
    display: none;
  }

  .bubble-6 {
    left: 46%;
  }

  .workspace-topbar {
    padding: 9px 10px;
    border-radius: 12px;
  }

  .brand-pill {
    padding: 6px 9px;
  }

  .brand-pill img {
    height: 26px;
  }

  .topbar-user-pill {
    padding: 4px 10px 4px 6px;
    font-size: 13px;
  }

  .topbar-user-avatar {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .topbar-project-pill {
    min-height: 38px;
  }

  .project-pill-label {
    display: none;
  }

  #projectSelect {
    font-size: 13px;
    min-width: 0;
  }

  .project-pill-add,
  .project-pill-delete,
  .topbar-icon-btn {
    width: 34px;
    height: 34px;
  }

  .app-shell {
    padding: 10px;
  }

  .onboarding-panel {
    margin: 18px auto;
    padding: 20px;
  }

  .panel-head h1 {
    font-size: 24px;
  }

  .canvas-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .batch-preview-head {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .btn {
    flex: 1;
  }

  .batch-preview-grid {
    grid-template-columns: 1fr;
  }

  .btn-row {
    grid-template-columns: 1fr;
  }

  .upload-control {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .upload-file-name {
    flex-basis: 100%;
  }

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

@media (prefers-reduced-motion: reduce) {
  .splash-core,
  .splash-icon-bubble {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .splash-screen {
    transition-duration: 0.24s;
  }
}
