:root {
  --primary: #68b88e;
  --primary-hover: #5aa87d;
  --primary-light: rgba(104, 184, 142, 0.1);
  --accent: #b86892;
  --accent-hover: #a95781;
  --accent-soft: #fff3f7;
  --accent-dark: #7a3d58;
  --dark: #1a1a1a;
  --text: #333;
  --muted: #667085;
  --line: #e5e5e5;
  --panel: #fff;
  --shadow: 0 18px 46px rgba(21, 30, 25, 0.08);
}

body:has(.prompt-workspace) .reference-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body:has(.prompt-workspace) .reference-thumb.is-loading video {
  opacity: 0.72;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scrollbar-color: transparent #08090a;
  scrollbar-width: thin;
}

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

::-webkit-scrollbar-track {
  background: #08090a;
}

::-webkit-scrollbar-thumb {
  background: transparent;
  border: 1px solid #08090a;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid #08090a;
  background-clip: padding-box;
}

body:has(.koozee-home) {
  background: #08090a;
}

body {
  color: var(--text);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.app {
  min-height: 100vh;
  background: #fff;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  height: 68px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #f0f0f0;
  backdrop-filter: blur(12px);
}

.brand,
.desktop-nav,
.header-actions,
.desktop-nav a,
.nav-dropdown > button,
.solid-button,
.text-button,
.hero-badge,
.composer-header,
.composer-upload,
.composer-footer,
.composer-tools,
.select-tool > button,
.generate-button,
.case-flow,
.mobile-nav,
.footer-links,
.footer-records {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 24px;
  object-fit: contain;
}

.brand .brand-logo-img,
.canvas-brand .brand-logo-img {
  padding: 4px 7px;
  background: #08090a;
  border-radius: 8px;
}

.brand-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

.brand-icon svg {
  width: 28px;
  height: 28px;
  fill: #863bff;
  stroke: none;
}

.desktop-nav {
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.desktop-nav a,
.nav-dropdown > button {
  position: relative;
  height: 38px;
  padding: 0 11px;
  color: #333;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > button {
  color: #1a1a1a;
  background: #f4fbf7;
}

.desktop-nav em {
  margin-left: 3px;
  color: var(--accent-dark);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 10;
  display: grid;
  gap: 6px;
  width: 248px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e7ece9;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(21, 30, 25, 0.13);
  transform: translate(-50%, -4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
}

.nav-menu.narrow {
  width: 218px;
}

.nav-dropdown:hover .nav-menu {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

.nav-menu a {
  display: grid;
  height: auto;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 9px;
}

.nav-menu strong {
  color: #1a1a1a;
  font-size: 14px;
}

.nav-menu span {
  color: #777;
  font-size: 12px;
  line-height: 1.45;
}

.header-actions {
  gap: 10px;
  justify-content: flex-end;
}

.header-actions .text-button[data-open-login],
.header-actions .solid-button[data-open-register] {
  height: 40px;
  min-width: 70px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0;
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.header-actions .text-button[data-open-login] {
  color: #24362d;
  background: transparent;
  border: 1px solid transparent;
}

.header-actions .text-button[data-open-login]:hover {
  color: #10281c;
  background: #f4fbf7;
  border-color: #e2efe8;
}

.header-actions .solid-button[data-open-register] {
  min-width: 78px;
  color: #10281c;
  background: linear-gradient(180deg, #7ac79e 0%, var(--primary) 100%);
  border: 1px solid rgba(92, 171, 130, 0.72);
  box-shadow: 0 10px 24px rgba(104, 184, 142, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header-actions .solid-button[data-open-register]:hover {
  background: linear-gradient(180deg, #82cfa7 0%, var(--primary-hover) 100%);
  border-color: rgba(90, 168, 125, 0.82);
  box-shadow: 0 12px 28px rgba(104, 184, 142, 0.27), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.header-actions .text-button[data-open-login]:focus-visible,
.header-actions .solid-button[data-open-register]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(104, 184, 142, 0.14);
}

.header-user-menu {
  position: relative;
  order: 2;
}

.header-user-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 196px;
  height: 60px;
  padding: 5px 13px 5px 6px;
  color: #17392b;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86) 0%, rgba(244, 252, 248, 0.72) 52%, rgba(255, 246, 250, 0.58) 100%);
  border: 1px solid rgba(205, 226, 216, 0.92);
  border-radius: 999px;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
  box-shadow:
    0 18px 42px rgba(18, 38, 28, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    inset 0 -1px 0 rgba(130, 184, 157, 0.1);
  backdrop-filter: blur(18px) saturate(1.18);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.header-user-card::before {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  content: "";
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.55), transparent 36%, rgba(184, 104, 146, 0.08));
  opacity: 0.7;
}

.header-user-card:hover,
.header-user-menu.open .header-user-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 253, 249, 0.84) 52%, rgba(255, 244, 249, 0.66) 100%);
  border-color: rgba(177, 213, 196, 0.98);
  box-shadow:
    0 22px 52px rgba(18, 38, 28, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(130, 184, 157, 0.16);
  transform: translateY(-1px);
}

.header-avatar {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.18), transparent 36%),
    #0c1712;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(10, 23, 17, 0.18);
  font-size: 15px;
  font-weight: 900;
}

.header-avatar::after {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--primary);
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(104, 184, 142, 0.12);
}

.header-user-copy {
  display: grid;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
}

.header-user-card > svg {
  flex: 0 0 auto;
  width: 15px;
  height: 17px;
  color: rgba(24, 54, 39, 0.72);
  transition: transform 0.18s;
}

.header-user-menu.open .header-user-card > svg {
  transform: rotate(180deg);
}

.header-user-card strong,
.header-user-card small {
  overflow: hidden;
  max-width: 126px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-card strong {
  color: #13231b;
  font-size: 14px;
  font-weight: 880;
  line-height: 1.1;
}

.header-user-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 85;
  display: grid;
  gap: 8px;
  width: 276px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfe9e4;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(11, 24, 17, 0.16);
  backdrop-filter: blur(18px);
}

.header-user-panel::before {
  position: absolute;
  top: -6px;
  right: 40px;
  width: 12px;
  height: 12px;
  content: "";
  background: #fff;
  border-top: 1px solid #dfe9e4;
  border-left: 1px solid #dfe9e4;
  transform: rotate(45deg);
}

.header-user-panel[hidden] {
  display: none;
}

.header-user-panel-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid #eef4f1;
}

.header-user-panel-head .header-avatar {
  width: 42px;
  height: 42px;
}

.header-user-panel-head span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.header-user-panel-head strong,
.header-user-panel-head small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user-panel-head strong {
  color: #10281c;
  font-size: 15px;
  font-weight: 900;
}

.header-user-panel-head small {
  color: #66766e;
  font-size: 12px;
  font-weight: 680;
}

.header-user-menu-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  color: #20382e;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.header-user-menu-item:hover {
  background: #f4fbf7;
  border-color: #e1eee7;
  transform: translateY(-1px);
}

.header-user-menu-item > span:first-child {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #2f7d52;
  background: #eef8f3;
  border-radius: 14px;
}

.header-user-menu-item svg {
  width: 18px;
  height: 18px;
}

.header-user-menu-item strong {
  display: block;
  color: #111814;
  font-size: 14px;
  font-weight: 880;
  line-height: 1.2;
}

.header-user-menu-item small {
  display: block;
  margin-top: 3px;
  color: #64756c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.header-user-menu-item.danger > span:first-child {
  color: #b42318;
  background: #fff4f2;
}

.header-user-menu-item.danger:hover {
  background: #fff8f6;
  border-color: #ffdcd5;
}

.header-user-card small {
  color: rgba(84, 105, 94, 0.9);
  font-size: 12px;
  font-weight: 720;
  line-height: 1.1;
}

.member-menu {
  position: relative;
  order: 1;
}

.member-entry-button {
  display: grid;
  grid-template-columns: 34px minmax(0, auto) 16px;
  align-items: center;
  gap: 10px;
  height: 46px;
  min-width: 170px;
  padding: 5px 14px 5px 6px;
  color: #10281c;
  background: linear-gradient(180deg, #78c79f 0%, var(--primary) 100%);
  border: 1px solid rgba(90, 168, 125, 0.72);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.member-entry-button:hover,
.member-menu.open .member-entry-button {
  background: linear-gradient(180deg, #82cfa7 0%, var(--primary-hover) 100%);
  border-color: rgba(90, 168, 125, 0.86);
  box-shadow: 0 14px 34px rgba(104, 184, 142, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.34);
  transform: translateY(-1px);
}

.member-entry-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #103322;
  background: rgba(255, 255, 255, 0.32);
  border-radius: 50%;
}

.member-entry-icon svg {
  width: 17px;
  height: 17px;
}

.member-entry-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
  text-align: left;
}

.member-entry-copy strong,
.member-entry-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-entry-copy strong {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.1;
}

.member-entry-copy small {
  color: rgba(16, 40, 28, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.member-entry-button > svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s;
}

.member-menu.open .member-entry-button > svg {
  transform: rotate(180deg);
}

.member-menu-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 80;
  display: grid;
  gap: 8px;
  width: 286px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dfe9e4;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(11, 24, 17, 0.16);
  backdrop-filter: blur(18px);
}

.member-menu-panel::before {
  position: absolute;
  top: -6px;
  right: 36px;
  width: 12px;
  height: 12px;
  content: "";
  background: #fff;
  border-top: 1px solid #dfe9e4;
  border-left: 1px solid #dfe9e4;
  transform: rotate(45deg);
}

.member-menu-panel[hidden] {
  display: none;
}

.member-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
}

.member-menu-head strong {
  color: #10281c;
  font-size: 15px;
  font-weight: 900;
}

.member-menu-head span {
  color: #6a7b72;
  font-size: 12px;
  font-weight: 720;
}

.member-menu-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  color: #20382e;
  border: 1px solid transparent;
  border-radius: 16px;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.member-menu-item:hover {
  background: #f4fbf7;
  border-color: #e1eee7;
  transform: translateY(-1px);
}

.member-menu-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #2f7d52;
  background: #eef8f3;
  border-radius: 14px;
}

.member-menu-icon svg {
  width: 18px;
  height: 18px;
}

.member-menu-item strong {
  display: block;
  color: #111814;
  font-size: 14px;
  font-weight: 880;
  line-height: 1.2;
}

.member-menu-item small {
  display: block;
  margin-top: 3px;
  color: #64756c;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

.text-button,
.solid-button {
  justify-content: center;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.text-button {
  color: #333;
  background: #fff;
}

.solid-button {
  color: #10281c;
  background: var(--primary);
  border: 1px solid var(--primary);
}

.solid-button:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--modal-scrollbar-compensation, 0px);
}

body.modal-open .site-header {
  padding-right: calc(28px + var(--modal-scrollbar-compensation, 0px));
}

.wallet-recharge-modal,
.membership-plans-modal,
.admin-wechat-modal,
.admin-credit-modal,
.admin-clear-data-modal,
.app-dialog-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 18, 15, 0.42);
  backdrop-filter: blur(1px);
}

.wallet-recharge-modal[hidden],
.membership-plans-modal[hidden],
.admin-wechat-modal[hidden],
.credit-records-modal[hidden],
.admin-credit-modal[hidden],
.admin-clear-data-modal[hidden],
.app-dialog-modal[hidden] {
  display: none;
}

.wallet-recharge-dialog,
.admin-credit-dialog,
.admin-clear-data-dialog {
  position: relative;
  width: min(500px, 100%);
  padding: 32px;
  color: #171d1a;
  background:
    linear-gradient(180deg, rgba(247, 252, 249, 0.86), rgba(255, 255, 255, 0.98) 34%),
    #fff;
  border: 1px solid rgba(219, 233, 226, 0.92);
  border-radius: 30px;
  box-shadow: 0 36px 96px rgba(12, 18, 15, 0.3);
}

.app-dialog {
  position: relative;
  width: min(438px, 100%);
  padding: 30px;
  color: #111814;
  background:
    linear-gradient(180deg, rgba(244, 251, 247, 0.78), rgba(255, 255, 255, 0.98) 42%),
    #fff;
  border: 1px solid rgba(104, 184, 142, 0.22);
  border-radius: 22px;
  box-shadow: 0 34px 92px rgba(12, 18, 15, 0.3);
}

.app-dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #7d8a83;
  background: transparent;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.app-dialog-close:hover {
  color: #10281c;
  background: #eef8f2;
}

.app-dialog-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 16px;
  font-size: 24px;
  font-weight: 950;
}

.app-dialog-modal[data-tone="danger"] .app-dialog-icon {
  color: #c2412d;
  background: #fff1ec;
}

.app-dialog-modal[data-tone="success"] .app-dialog-icon {
  color: #0b7448;
  background: #eaf8f0;
}

.app-dialog h2 {
  padding-right: 36px;
  color: #111814;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.2;
}

.app-dialog p {
  margin-top: 12px;
  color: #5f6f66;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.app-dialog-field {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.app-dialog-field[hidden],
.app-dialog-error[hidden],
.app-dialog-secondary[hidden] {
  display: none;
}

.app-dialog-field span {
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.app-dialog-field input {
  height: 48px;
  padding: 0 14px;
  color: #111814;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 14px;
  outline: 0;
  font-size: 16px;
  font-weight: 850;
}

.app-dialog-field input:focus {
  border-color: #68b88e;
  box-shadow: 0 0 0 4px rgba(104, 184, 142, 0.12);
}

.app-dialog-error {
  margin-top: 10px;
  color: #c2412d;
  font-size: 13px;
  font-weight: 900;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.app-dialog-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
}

.app-dialog-secondary {
  color: #20382e;
  background: #fff;
  border: 1px solid #dfe9e4;
}

.app-dialog-secondary:hover {
  background: #f4fbf7;
  border-color: rgba(104, 184, 142, 0.38);
}

.app-dialog-primary {
  color: #10281c;
  background: var(--primary);
  border: 1px solid var(--primary);
  box-shadow: 0 12px 26px rgba(104, 184, 142, 0.22);
}

.app-dialog-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.app-dialog-modal[data-tone="danger"] .app-dialog-primary {
  color: #fff;
  background: #d44b35;
  border-color: #d44b35;
  box-shadow: 0 12px 26px rgba(212, 75, 53, 0.2);
}

.wallet-close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #9aa29d;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.wallet-close-button:hover {
  color: #20382e;
  background: #f4fbf7;
}

.wallet-recharge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-right: 42px;
}

.wallet-recharge-head span {
  display: block;
  margin-bottom: 6px;
  color: #2f8c5c;
  font-size: 13px;
  font-weight: 950;
}

.wallet-recharge-dialog h2,
.admin-credit-dialog h2 {
  color: #111814;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.15;
}

.wallet-balance-line,
.admin-credit-target {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  height: 34px;
  margin-top: 2px;
  padding: 0 12px;
  color: #6c7c73;
  background: rgba(244, 251, 247, 0.92);
  border: 1px solid #e0eee6;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.wallet-balance-line strong {
  color: #10281c;
  font-weight: 950;
}

.wallet-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.wallet-preset-grid button {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  height: 82px;
  padding: 0 16px;
  color: #111814;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 950;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s, background 0.18s;
}

.wallet-preset-grid button strong {
  color: #111814;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.wallet-preset-grid button small {
  color: #7d8a83;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.wallet-preset-grid button.active {
  color: #0b7448;
  background: #f2fbf6;
  border-color: #68b88e;
  box-shadow: 0 14px 32px rgba(104, 184, 142, 0.14), inset 0 0 0 1px rgba(104, 184, 142, 0.18);
  transform: translateY(-1px);
}

.wallet-preset-grid button.active strong,
.wallet-preset-grid button.active small {
  color: #0b7448;
}

.wallet-amount-field {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.wallet-amount-field > span {
  color: #5c6761;
  font-size: 14px;
  font-weight: 900;
}

.wallet-amount-field div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 10px 0 18px;
  background: #fbfdfc;
  border: 1px solid #dfe5e2;
  border-radius: 18px;
}

.wallet-amount-field b {
  display: inline-grid;
  place-items: center;
  height: 34px;
  padding: 0 13px;
  color: #2f7d52;
  background: #eef8f3;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  white-space: nowrap;
}

.wallet-amount-field input {
  width: 100%;
  min-width: 0;
  color: #111814;
  border: 0;
  outline: 0;
  font-size: 22px;
  font-weight: 950;
}

.wallet-amount-field input::-webkit-outer-spin-button,
.wallet-amount-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.wallet-amount-field input[type="number"] {
  appearance: textfield;
}

.wallet-arrival-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 20px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(104, 184, 142, 0.18), transparent 34%),
    linear-gradient(135deg, #0c1712, #14271d);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(12, 23, 18, 0.18);
}

.wallet-arrival-box div {
  display: grid;
  gap: 8px;
}

.wallet-arrival-box div:first-child {
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.wallet-arrival-box span,
.wallet-arrival-box small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 820;
}

.wallet-arrival-box strong {
  color: #fff;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
}

.wallet-arrival-box b {
  color: #86d9ac;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.05;
}

.wallet-arrival-box p {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 850;
}

.wallet-arrival-box p em {
  color: #86d9ac;
  font-style: normal;
  font-weight: 950;
}

.wallet-arrival-box em {
  font-style: normal;
}

.wallet-pay-button {
  width: 100%;
  height: 58px;
  margin-top: 22px;
  color: #10281c;
  background: linear-gradient(180deg, #7dcca3 0%, var(--primary) 100%);
  border-radius: 999px;
  font-size: 17px;
  font-weight: 950;
  box-shadow: 0 18px 38px rgba(104, 184, 142, 0.28);
}

.wallet-help-text {
  margin-top: 16px;
  color: #9aa29d;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.wallet-message {
  margin-top: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.credit-records-modal {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 7, 8, 0.72);
  backdrop-filter: blur(12px);
}

.credit-records-dialog {
  position: relative;
  width: min(536px, 100%);
  max-height: min(82vh, 700px);
  padding: 25px 26px 20px;
  overflow: hidden;
  color: rgba(244, 247, 247, 0.94);
  background:
    radial-gradient(circle at 100% 0%, rgba(72, 221, 204, 0.075), transparent 34%),
    linear-gradient(145deg, rgba(28, 31, 33, 0.98), rgba(17, 19, 21, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 16px;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.028);
}

.credit-records-dialog .wallet-close-button {
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  color: rgba(224, 231, 230, 0.56);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 300;
}

.credit-records-dialog .wallet-close-button:hover {
  color: rgba(250, 253, 252, 0.96);
  background: rgba(255, 255, 255, 0.07);
}

.credit-records-head {
  min-height: 56px;
  padding: 2px 44px 0 0;
}

.credit-records-head h2 {
  color: rgba(248, 250, 250, 0.96);
  font-size: 21px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.credit-records-head p {
  margin-top: 8px;
  color: rgba(183, 193, 192, 0.58);
  font-size: 12px;
  font-weight: 500;
}

.credit-records-head p span {
  margin-left: 4px;
  color: rgba(101, 229, 214, 0.94);
  font-family: Inter, "SF Pro Display", sans-serif;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.credit-records-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 10px;
  margin-top: 16px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
}

.credit-records-filter label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.credit-records-filter label span {
  color: rgba(196, 205, 204, 0.58);
  font-size: 11px;
  font-weight: 560;
}

.credit-records-filter input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 10px;
  color: rgba(238, 243, 242, 0.92);
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  outline: 0;
  font-family: Inter, "SF Pro Display", "PingFang SC", sans-serif;
  font-size: 12px;
  font-weight: 540;
  transition: border-color 140ms ease, background 140ms ease;
}

.credit-records-filter input:focus {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(92, 225, 211, 0.45);
}

.credit-records-filter button {
  height: 34px;
  margin-top: 4px;
  color: rgba(213, 249, 243, 0.94);
  background: rgba(73, 221, 205, 0.12);
  border: 1px solid rgba(73, 221, 205, 0.24);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}

.credit-records-filter button:hover {
  color: #e9fffc;
  background: rgba(73, 221, 205, 0.18);
  border-color: rgba(99, 235, 220, 0.42);
}

.credit-records-filter button[data-reset-credit-records] {
  color: rgba(197, 205, 204, 0.64);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.09);
}

.credit-records-count {
  margin: 14px 0 4px;
  color: rgba(183, 193, 192, 0.5);
  font-size: 11px;
  font-weight: 520;
}

.credit-records-list {
  display: grid;
  max-height: min(330px, 37vh);
  gap: 0;
  margin-top: 0;
  overflow: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.065);
}

.credit-record-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 10px 4px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
  transition: background 140ms ease;
}

.credit-record-item:hover {
  background: rgba(255, 255, 255, 0.025);
}

.credit-record-sign {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-family: Inter, "SF Pro Display", sans-serif;
  font-size: 16px;
  font-weight: 650;
}

.credit-record-item.negative .credit-record-sign {
  color: #e4a06d;
  background: rgba(224, 129, 68, 0.12);
}

.credit-record-item.positive .credit-record-sign {
  color: #72dfc2;
  background: rgba(75, 216, 182, 0.11);
}

.credit-record-item strong {
  display: block;
  overflow: hidden;
  color: rgba(241, 245, 245, 0.92);
  font-size: 13px;
  font-weight: 590;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-record-item p {
  margin-top: 4px;
  color: rgba(177, 188, 187, 0.46);
  font-size: 11px;
  font-weight: 500;
}

.credit-record-item time {
  margin-left: 7px;
}

.credit-record-item b {
  color: #74e0c3;
  font-family: Inter, "SF Pro Display", sans-serif;
  font-size: 17px;
  font-weight: 680;
  letter-spacing: -0.04em;
}

.credit-record-item.negative b {
  color: #e5a16e;
}

.credit-record-empty {
  display: grid;
  place-items: center;
  min-height: 128px;
  color: rgba(181, 192, 190, 0.5);
  background: rgba(255, 255, 255, 0.018);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 540;
}

.wallet-message[data-tone="success"] {
  color: #16774c;
}

.page-home {
  min-height: 100vh;
  padding-top: 60px;
  color: #13231b;
  background: #f5faf7;
}

.course-boot .page-home,
.course-boot .home-footer {
  display: none;
}

.course-boot .course-page[hidden] {
  display: block;
}

.hero-section {
  position: relative;
  min-height: calc(100vh - 60px);
  padding: 106px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(105, 185, 143, 0.98) 0%, rgba(78, 155, 109, 0.98) 100%);
}

.hero-surface {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-surface-dots {
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 14px 14px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.72) 18%, transparent 46%);
}

.hero-surface-lines::before,
.hero-surface-lines::after {
  content: "";
  position: absolute;
  right: -9%;
  top: 20%;
  width: 48%;
  height: 38%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.hero-surface-lines::after {
  right: -6%;
  top: 24%;
  width: 42%;
  height: 30%;
  border-color: rgba(255, 255, 255, 0.12);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: min(1060px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-copy {
  width: min(860px, 100%);
}

.hero-badge {
  gap: 6px;
  width: fit-content;
  margin: 0 auto 24px;
  padding: 7px 17px;
  color: #4c3900;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  color: #fff;
  font-size: 54px;
  font-weight: 850;
  line-height: 1.18;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.hero-copy p {
  max-width: 680px;
  margin: 20px auto 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.7;
}

.home-composer {
  width: min(1020px, 100%);
  padding: 18px;
  text-align: left;
  background: rgba(248, 253, 250, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 24px;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.13), 0 24px 70px rgba(33, 87, 55, 0.22);
  backdrop-filter: blur(16px);
}

.composer-header {
  justify-content: space-between;
  gap: 16px;
  padding: 2px 4px 14px;
}

.composer-kicker {
  display: block;
  color: #2f7d52;
  font-size: 13px;
  font-weight: 900;
}

.composer-header strong {
  color: #13231b;
  font-size: 18px;
  font-weight: 900;
}

.composer-upload {
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  color: #17392b;
  background: #e9f8f0;
  border: 1px solid rgba(104, 184, 142, 0.24);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.home-composer textarea {
  display: block;
  width: 100%;
  min-height: 128px;
  padding: 18px 20px;
  resize: vertical;
  color: #13231b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  outline: none;
  font-size: 16px;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.home-composer textarea::placeholder {
  color: #8a9a91;
}

.reference-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.reference-thumb {
  position: relative;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
}

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

.reference-thumb button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
}

.composer-footer {
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.composer-tools {
  flex-wrap: wrap;
  gap: 8px;
}

.icon-tool,
.select-tool > button {
  height: 42px;
  color: #20382e;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(21, 30, 25, 0.05);
}

.icon-tool {
  display: inline-grid;
  place-items: center;
  width: 42px;
}

.select-tool {
  position: relative;
}

.select-tool > button {
  gap: 7px;
  padding: 0 12px;
}

.select-tool > button svg:last-child {
  width: 15px;
  height: 15px;
}

.select-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 20;
  display: none;
  min-width: 138px;
  padding: 7px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(21, 30, 25, 0.15);
}

.select-tool.open .select-menu {
  display: grid;
}

.select-menu button {
  height: 34px;
  padding: 0 10px;
  color: #20382e;
  text-align: left;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.select-menu button:hover,
.select-menu button.active {
  color: #0b7448;
  background: #eaf8f0;
}

.generate-button {
  flex: none;
  gap: 9px;
  height: 44px;
  padding: 0 18px;
  color: #0f2418;
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 14px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(104, 184, 142, 0.32);
}

.generate-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* 余额不足不是生成中的等待态：保留价格信息，用克制的低饱和提示阻止误提交。 */
.generate-button.is-credit-insufficient,
.generate-button:disabled.is-credit-insufficient,
.kling-editor-v2-submit.is-credit-insufficient,
.kling-editor-v2-submit:disabled.is-credit-insufficient {
  cursor: not-allowed;
  opacity: 1;
  color: rgba(255, 226, 226, .9);
  background: linear-gradient(135deg, #4a2d33 0%, #63343c 100%);
  border-color: rgba(255, 165, 175, .28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  filter: none;
  transform: none;
}

.composer-error {
  margin-top: 12px;
  color: #c01048;
  font-size: 13px;
  font-weight: 800;
}

.composer-error[data-tone="success"] {
  color: #16774c;
}

.composer-error[data-tone="status"] {
  color: #9a9ca3;
  font-weight: 600;
}

.generation-results {
  margin-top: 18px;
}

.reverse-prompt-section {
  padding: 88px 24px 104px;
  background:
    radial-gradient(circle at 88% 12%, rgba(184, 104, 146, 0.1), transparent 28%),
    linear-gradient(180deg, #f5faf7 0%, #ffffff 100%);
}

.reverse-prompt-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 28px;
  width: min(1180px, 100%);
  margin: 0 auto;
  align-items: stretch;
}

.reverse-prompt-copy,
.reverse-prompt-tool {
  border: 1px solid rgba(104, 184, 142, 0.2);
  border-radius: 28px;
  box-shadow: 0 22px 58px rgba(21, 30, 25, 0.08);
}

.reverse-prompt-copy {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 56px);
  background:
    radial-gradient(circle at 18% 18%, rgba(104, 184, 142, 0.13), transparent 34%),
    #fff;
}

.section-eyebrow {
  width: fit-content;
  margin-bottom: 18px;
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 900;
}

.reverse-prompt-copy h2 {
  max-width: 560px;
  color: #0f1d17;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 950;
  line-height: 1.08;
}

.reverse-prompt-copy p {
  max-width: 560px;
  margin-top: 22px;
  color: #62736a;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.8;
}

.reverse-prompt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.reverse-prompt-tags span {
  padding: 9px 14px;
  color: #174231;
  background: #edf8f2;
  border: 1px solid rgba(104, 184, 142, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.reverse-prompt-tool {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.reverse-upload {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  text-align: center;
  background: #f7fcf9;
  border: 1.5px dashed rgba(104, 184, 142, 0.42);
  border-radius: 24px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.reverse-upload:hover,
.reverse-upload.dragging {
  background: #eef9f3;
  border-color: var(--primary);
  transform: translateY(-1px);
}

.reverse-upload-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
  color: #0f7b4b;
  background: #e0f5ea;
  border-radius: 18px;
}

.reverse-upload strong {
  color: #10231a;
  font-size: 22px;
  font-weight: 950;
}

.reverse-upload small {
  margin-top: 6px;
  color: #74837b;
  font-size: 14px;
  font-weight: 700;
}

.reverse-preview {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  background: #f7fcf9;
  border: 1px solid #dfeee6;
  border-radius: 20px;
}

.reverse-preview img {
  width: 112px;
  height: 88px;
  object-fit: cover;
  border-radius: 14px;
}

.reverse-preview button {
  width: fit-content;
  padding: 10px 14px;
  color: #153c2a;
  background: #fff;
  border: 1px solid #d7e7df;
  border-radius: 999px;
  font-weight: 900;
}

.reverse-submit {
  height: 58px;
  color: #0d2418;
  background: var(--primary);
  border-radius: 18px;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 16px 38px rgba(104, 184, 142, 0.28);
}

.reverse-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.reverse-message {
  padding: 13px 15px;
  color: #c03d20;
  background: #fff3ed;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}

.reverse-message[data-tone="success"] {
  color: #127349;
  background: #eaf8f0;
}

.reverse-result {
  display: grid;
  gap: 12px;
}

.reverse-result-card {
  padding: 16px;
  background: #fff;
  border: 1px solid #e0ebe5;
  border-radius: 18px;
}

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

.reverse-result-head strong {
  color: #12231b;
  font-size: 15px;
  font-weight: 950;
}

.reverse-result-head button {
  flex: none;
  height: 32px;
  padding: 0 12px;
  color: #175238;
  background: #edf8f2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.reverse-result-card p {
  color: #53655d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.75;
  white-space: pre-wrap;
}

.generation-result-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(21, 30, 25, 0.1);
}

.generation-result-panel.generation-failed {
  border-color: rgba(192, 16, 72, 0.18);
  background: #fffafb;
}

.generation-result-panel.generation-failed .generation-status-pill {
  color: #c01048;
  background: #fff0f4;
}

.generation-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.generation-result-head h3 {
  margin-top: 8px;
  color: #111814;
  font-size: 18px;
  font-weight: 950;
}

.generation-result-head p {
  margin-top: 4px;
  color: #64756c;
  font-size: 13px;
  font-weight: 820;
}

.generation-status-pill {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.generation-soft-button,
.generation-card-actions button,
.generation-card-actions a,
.image-preview-actions a,
.image-preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 12px;
  color: #17392b;
  background: #f4fbf7;
  border: 1px solid #dfe8e2;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 950;
}

.generation-soft-button {
  gap: 7px;
  height: 38px;
  background: #fff;
}

.generation-soft-button:hover,
.generation-card-actions button:hover,
.generation-card-actions a:hover,
.image-preview-actions a:hover,
.image-preview-actions button:hover {
  color: #0f2418;
  background: var(--primary);
  border-color: var(--primary);
}

.generation-card-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.image-preview-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.generation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 168px));
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.generation-card {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 10px;
  min-width: 0;
  width: 100%;
  max-width: 168px;
  padding: 8px;
  color: #17392b;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.generation-card img {
  width: 100%;
  height: 168px;
  aspect-ratio: auto;
  object-fit: cover;
  cursor: zoom-in;
  border-radius: 10px;
  background: #edf7f1;
}

.generation-grid.ratio-16-9 .generation-card img {
  height: 95px;
}

.generation-grid.ratio-16-9 {
  grid-template-columns: repeat(auto-fill, minmax(150px, 180px));
}

.generation-grid.ratio-16-9 .generation-card {
  max-width: 180px;
}

.generation-grid.ratio-16-9 .generation-skeleton div {
  aspect-ratio: 16 / 9;
}

.generation-grid.ratio-9-16 .generation-card img {
  height: 299px;
}

.generation-grid.ratio-9-16 {
  grid-template-columns: repeat(auto-fill, minmax(112px, 142px));
}

.generation-grid.ratio-9-16 .generation-card {
  max-width: 142px;
}

.generation-grid.ratio-9-16 .generation-skeleton div {
  aspect-ratio: 9 / 16;
}

.generation-grid.ratio-4-3 .generation-card img {
  height: 126px;
}

.generation-grid.ratio-4-3 {
  grid-template-columns: repeat(auto-fill, minmax(146px, 178px));
}

.generation-grid.ratio-4-3 .generation-card {
  max-width: 178px;
}

.generation-grid.ratio-4-3 .generation-skeleton div {
  aspect-ratio: 4 / 3;
}

.generation-grid.ratio-3-4 .generation-card img {
  height: 224px;
}

.generation-grid.ratio-3-4 {
  grid-template-columns: repeat(auto-fill, minmax(120px, 150px));
}

.generation-grid.ratio-3-4 .generation-card {
  max-width: 150px;
}

.generation-grid.ratio-3-4 .generation-skeleton div {
  aspect-ratio: 3 / 4;
}

.generation-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.generation-card-meta strong {
  overflow: hidden;
  color: #111814;
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.generation-card-meta span {
  flex: none;
  color: #64756c;
  font-size: 12px;
  font-weight: 850;
}

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

.album-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(21, 30, 25, 0.1);
}

.album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 2px 0;
}

.album-head h3 {
  margin-top: 8px;
  color: #111814;
  font-size: 18px;
  font-weight: 950;
}

.album-head p {
  margin-top: 4px;
  color: #64756c;
  font-size: 13px;
  font-weight: 820;
}

.album-grid {
  display: grid;
  width: 100%;
  max-width: 906px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
  justify-content: start;
}

.album-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.album-thumb-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
  background: #f7faf8;
  border: 0;
  border-radius: 10px;
}

.album-thumb-frame::before {
  position: absolute;
  inset: -14px;
  background-image: inherit;
  background-position: center;
  background-size: cover;
  content: "";
  filter: blur(16px);
  opacity: 0.22;
  transform: scale(1.08);
}

.album-thumb-frame img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
}

.album-card[data-ratio="9-16"] .album-thumb-frame {
  aspect-ratio: 9 / 16;
}

.album-card[data-ratio="3-4"] .album-thumb-frame {
  aspect-ratio: 3 / 4;
}

.album-card[data-ratio="16-9"] .album-thumb-frame {
  aspect-ratio: 16 / 9;
}

.album-card[data-ratio="4-3"] .album-thumb-frame {
  aspect-ratio: 4 / 3;
}

.album-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.album-card-meta strong {
  overflow: hidden;
  color: #111814;
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.album-card-meta span {
  flex: none;
  color: #64756c;
  font-size: 11px;
  font-weight: 850;
}

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

.album-card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 6px;
  color: #17392b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 950;
}

.album-card-actions button:hover {
  color: #0f2418;
  background: var(--primary);
  border-color: var(--primary);
}

.album-card-actions .album-delete-button {
  color: #b94222;
  background: #fff7f3;
  border-color: #f2d8cd;
}

.album-card-actions .album-delete-button:hover {
  color: #fff;
  background: #d85b35;
  border-color: #d85b35;
}

.album-card-actions button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.album-empty {
  grid-column: 1 / -1;
  padding: 22px;
  color: #64756c;
  background: #f8fbf9;
  border: 1px dashed #dfe8e2;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.album-progress {
  display: grid;
  gap: 8px;
  padding: 0 2px 2px;
}

.album-progress-track {
  overflow: hidden;
  height: 10px;
  background: #edf7f1;
  border: 1px solid #dcebe3;
  border-radius: 999px;
}

.album-progress-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #65bd8e, #9ee5b9, #65bd8e);
  border-radius: inherit;
  animation: albumProgress 1.45s ease-in-out infinite;
}

.album-progress small {
  color: #64756c;
  font-size: 12px;
  font-weight: 820;
}

.generation-skeleton {
  display: grid;
  gap: 10px;
  padding: 10px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 16px;
}

.album-grid.ratio-16-9 .generation-skeleton {
  width: 220px;
}

.album-grid.ratio-4-3 .generation-skeleton {
  width: 190px;
}

.album-grid.ratio-3-4 .generation-skeleton,
.album-grid.ratio-9-16 .generation-skeleton {
  width: 150px;
}

.generation-skeleton div,
.generation-skeleton span,
.generation-skeleton small {
  display: block;
  overflow: hidden;
  background: linear-gradient(90deg, #edf7f1, #fff, #edf7f1);
  background-size: 220% 100%;
  border-radius: 11px;
  animation: generationPulse 1.2s ease-in-out infinite;
}

.generation-skeleton div {
  aspect-ratio: 1 / 1;
}

.generation-skeleton span {
  width: 62%;
  height: 16px;
}

.generation-skeleton small {
  width: 86%;
  height: 34px;
}

@keyframes generationPulse {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 220% 50%;
  }
}

@keyframes albumProgress {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(250%);
  }
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 4200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 18, 15, 0.7);
  backdrop-filter: blur(5px);
}

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

.image-preview-dialog {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  padding: 14px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 86px rgba(12, 18, 15, 0.38);
}

.image-preview-dialog img,
.image-preview-dialog video {
  width: 100%;
  max-height: calc(100vh - 148px);
  object-fit: contain;
  background: #f4fbf7;
  border-radius: 12px;
}

.image-preview-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(16, 24, 20, 0.72);
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

.image-preview-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.image-preview-actions .image-preview-download-button {
  min-width: 148px;
  height: 46px;
  padding: 0 24px;
  color: #10281c;
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 13px;
  box-shadow: 0 14px 32px rgba(104, 184, 142, 0.3);
  font-size: 15px;
}

.image-preview-actions .image-preview-download-button:hover {
  color: #10281c;
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 16px 36px rgba(104, 184, 142, 0.38);
}

.canvas-brand,
.canvas-back-home {
  display: flex;
  align-items: center;
}

.canvas-brand {
  gap: 10px;
  font-size: 18px;
  font-weight: 950;
}

.canvas-brand .brand-logo-img {
  height: 23px;
}

.canvas-back-home {
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  color: #17392b;
  background: #fff;
  border: 1px solid #dfe8e2;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
}

.simple-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e1e9e4;
  backdrop-filter: blur(12px);
}

.record-list,
.admin-activity-list {
  display: grid;
  gap: 8px;
}

.record-row,
.admin-activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 12px;
}

.record-row div,
.admin-activity-row div {
  min-width: 0;
}

.record-row strong,
.admin-activity-row strong {
  display: block;
  overflow: hidden;
  color: #20382e;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row span,
.admin-activity-row span {
  display: block;
  overflow: hidden;
  color: #64756c;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-row b,
.admin-activity-row b {
  color: #111814;
  font-size: 14px;
}

.record-row b.positive,
.admin-activity-row b.positive {
  color: #16774c;
}

.record-row b.negative,
.admin-activity-row b.negative {
  color: #c01048;
}

.record-row em,
.admin-activity-row em {
  padding: 4px 8px;
  color: #0b7448;
  background: #eaf8f0;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.record-empty {
  padding: 14px;
  color: #64756c;
  background: #f8fbf9;
  border: 1px solid #edf2ef;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
}

.empty-panel {
  grid-column: 1 / -1;
  padding: 24px;
  color: #64756c;
  font-weight: 800;
}

.admin-login-panel[hidden],
#adminContent[hidden] {
  display: none;
}

.home-section-inner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.case-waterfall-section,
.more-tools-section,
.home-final-section {
  padding: 92px 0;
}

.case-waterfall-section {
  background: #f5faf7;
}

.more-tools-section {
  background: #fff;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.center-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading span {
  display: inline-block;
  margin-bottom: 10px;
  color: #2f7d52;
  font-size: 13px;
  font-weight: 950;
}

.section-heading h2 {
  color: #111814;
  font-size: 34px;
  font-weight: 950;
  line-height: 1.2;
}

.section-heading p {
  margin-top: 12px;
  color: #64756c;
  font-size: 15px;
  line-height: 1.8;
}

.case-waterfall-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 18px;
}

.case-card,
.tool-card {
  position: relative;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.08);
  transition: transform 0.18s, box-shadow 0.18s;
}

.case-card:hover,
.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 46px rgba(104, 184, 142, 0.16);
}

.case-card-featured {
  grid-row: span 2;
}

.case-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #edf7f1;
}

.case-card-featured .case-image {
  aspect-ratio: 4 / 5;
}

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

.pair-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.pair-image div {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.pair-image span,
.slider-label {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  color: #fff;
  background: rgba(17, 24, 20, 0.66);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.pair-image div + div span,
.slider-label.right {
  right: 10px;
  left: auto;
}

.slider-image i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.case-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  color: #102016;
  background: var(--primary);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.case-body {
  padding: 22px;
}

.case-body h3,
.tool-card h3 {
  color: #111814;
  font-size: 20px;
  font-weight: 950;
  line-height: 1.25;
}

.case-body p,
.tool-card p {
  margin-top: 9px;
  color: #64756c;
  font-size: 14px;
  line-height: 1.7;
}

.case-flow {
  gap: 8px;
  margin-top: 16px;
  color: #718278;
  font-size: 13px;
  font-weight: 800;
}

.case-flow strong {
  color: #2f7d52;
}

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

.tool-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 156px;
  padding: 18px;
}

.tool-card img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
}

.tool-card > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #2f7d52;
  background: #f0fbf5;
  border-radius: 999px;
  font-weight: 900;
}

.canvas-flow-section {
  padding: 96px 0;
  color: #fff;
  background: #102018;
}

.canvas-flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 44px;
}

.canvas-ui-preview {
  overflow: hidden;
  background: #f4fbf7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.canvas-shot-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  height: 54px;
  padding: 0 14px;
  color: #17392b;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e3eee8;
}

.canvas-shot-brand {
  font-size: 20px;
  font-weight: 950;
}

.canvas-shot-brand i {
  margin-left: 6px;
  padding: 2px 5px;
  color: #10a464;
  background: #ecfdf4;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
}

.canvas-shot-project {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.canvas-shot-top button {
  width: 34px;
  height: 34px;
  background: #e8f8ef;
  border-radius: 8px;
  font-size: 20px;
}

.canvas-shot-body {
  display: grid;
  grid-template-columns: 210px 1fr;
  min-height: 420px;
}

.canvas-shot-sidebar {
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border-right: 1px solid #e3eee8;
}

.canvas-shot-sidebar-title {
  color: #17392b;
  font-weight: 950;
}

.canvas-shot-helper {
  margin-top: 20px;
  padding: 14px;
  color: #17392b;
  background: #fff;
  border: 1px solid #e3eee8;
  border-radius: 16px;
  text-align: center;
}

.canvas-shot-helper img {
  width: 74px;
  height: 74px;
  margin: 0 auto 8px;
  object-fit: contain;
}

.canvas-shot-helper p {
  margin-top: 6px;
  color: #718278;
  font-size: 12px;
  line-height: 1.55;
}

.canvas-shot-input {
  margin-top: 14px;
  padding: 12px;
  color: #72877e;
  background: #f8fcfa;
  border: 1px solid #e3eee8;
  border-radius: 12px;
  font-size: 12px;
}

.canvas-shot-board {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: radial-gradient(circle at 48% 42%, rgba(104, 184, 142, 0.24), transparent 28%), #eef7f2;
}

.canvas-shot-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(47, 125, 82, 0.45);
}

.canvas-shot-links path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-dasharray: 9 9;
}

.canvas-asset {
  position: absolute;
  z-index: 2;
  width: 138px;
  height: 104px;
  object-fit: cover;
  border: 5px solid #fff;
  border-radius: 16px;
  box-shadow: 0 18px 38px rgba(18, 66, 42, 0.18);
}

.asset-1 { top: 44px; left: 46px; }
.asset-2 { top: 104px; left: 300px; }
.asset-3 { right: 42px; top: 176px; }
.asset-4 { left: 76px; bottom: 46px; }
.asset-5 { right: 166px; bottom: 58px; }

.canvas-flow-copy .section-heading,
.canvas-flow-copy {
  color: #fff;
}

.canvas-flow-copy h2 {
  color: #fff;
}

.canvas-flow-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.canvas-step-list {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.canvas-step-list div {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.canvas-step-list strong {
  color: #8bd2aa;
}

.canvas-step-list p {
  margin-top: 4px;
  font-size: 13px;
}

.primary-home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  color: #102016;
  background: var(--primary);
  border-radius: 999px;
  font-weight: 950;
}

.final-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 34px;
}

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

.final-action-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  color: #13231b;
  background: #fff;
  border: 1px solid #dfe9e4;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(104, 184, 142, 0.1);
}

.final-action-card.dark {
  color: #fff;
  background: #111814;
}

.final-action-card strong {
  align-self: end;
  font-size: 18px;
  font-weight: 950;
}

.final-action-card span {
  color: #718278;
  font-size: 13px;
  font-weight: 800;
}

.final-action-card.dark span {
  color: rgba(255, 255, 255, 0.66);
}

.home-footer {
  background: #101814;
  color: rgba(255, 255, 255, 0.72);
}

.course-page[hidden] {
  display: none;
}

.course-page {
  position: relative;
  min-height: calc(100vh - 76px);
  padding: 38px max(28px, calc((100vw - 1180px) / 2)) 58px;
  background:
    radial-gradient(circle at 16% 8%, rgba(184, 104, 146, 0.16), transparent 32%),
    radial-gradient(circle at 76% 10%, rgba(104, 184, 142, 0.18), transparent 30%),
    linear-gradient(180deg, #f8fcfa 0%, #edf7f1 100%);
}

.course-route .home-footer {
  display: none;
}

.course-route .site-header {
  display: none;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.course-hero-copy,
.course-poster,
.course-signup-card,
.course-points article {
  border: 1px solid rgba(206, 226, 216, 0.92);
  box-shadow: 0 26px 80px rgba(18, 54, 36, 0.1);
}

.course-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 390px;
  padding: clamp(34px, 5vw, 62px);
  background: rgba(255, 255, 255, 0.88);
  border-radius: 34px;
}

.course-eyebrow,
.course-signup-card > div > span,
.course-points article span {
  color: #8f476f;
  font-size: 14px;
  font-weight: 900;
}

.course-hero h1 {
  margin-top: 14px;
  color: #101814;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 950;
  line-height: 1.04;
}

.course-hero-copy p {
  width: min(760px, 100%);
  margin-top: 22px;
  color: #5f7068;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 750;
  line-height: 1.62;
}

.course-hero-cards {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  margin-top: 34px;
}

.course-meta {
  display: grid;
  gap: 8px;
  padding: 18px 22px;
  background: #102118;
  border-radius: 24px;
}

.course-meta strong {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
}

.course-meta span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  font-weight: 760;
}

.course-benefit-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 112px;
  padding: 20px 22px;
  overflow: hidden;
  color: #46220a;
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 255, 255, 0.74), transparent 26%),
    linear-gradient(135deg, #fff3d7 0%, #ffc45c 56%, #ff943d 100%);
  border: 1px solid rgba(255, 150, 54, 0.46);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(255, 147, 48, 0.24);
}

.course-benefit-card::after {
  position: absolute;
  right: -32px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  content: "";
}

.course-benefit-card span {
  color: #9b3f05;
  font-size: 13px;
  font-weight: 950;
}

.course-benefit-card strong {
  position: relative;
  z-index: 1;
  color: #1d1208;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.18;
}

.course-benefit-card small {
  position: relative;
  z-index: 1;
  color: rgba(70, 34, 10, 0.68);
  font-size: 14px;
  font-weight: 820;
}

.course-poster {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(15, 26, 21, 0.88), rgba(15, 26, 21, 0.62)),
    radial-gradient(circle at 30% 20%, rgba(184, 104, 146, 0.45), transparent 38%),
    radial-gradient(circle at 78% 78%, rgba(104, 184, 142, 0.52), transparent 42%),
    #101814;
  border-radius: 34px;
}

.course-poster-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
}

.teacher-card {
  display: grid;
  grid-template-columns: minmax(130px, 155px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  width: min(100%, 520px);
  max-height: none;
  padding: 22px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.teacher-photo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 240px;
  align-self: center;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.teacher-profile {
  min-width: 0;
}

.teacher-profile > span {
  color: #9fe0b9;
  font-size: 13px;
  font-weight: 900;
}

.teacher-profile strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
  line-height: 1.05;
}

.teacher-profile p {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  font-weight: 760;
  line-height: 1.62;
}

.teacher-profile ul {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.teacher-profile li {
  position: relative;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 820;
  line-height: 1.45;
}

.teacher-profile li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 7px;
  height: 7px;
  background: #9fe0b9;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.course-content {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 0.7fr);
  gap: 28px;
  margin-top: 28px;
}

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

.course-points article {
  min-height: 156px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 26px;
}

.course-points article strong {
  display: block;
  margin-top: 20px;
  color: #101814;
  font-size: 24px;
  font-weight: 950;
}

.course-points article p {
  margin-top: 10px;
  color: #687970;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.55;
}

.course-signup-card {
  display: grid;
  gap: 18px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 30px;
}

.course-meeting-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: #20382e;
  background: #f4faf7;
  border: 1px solid #dbece3;
  border-radius: 20px;
}

.course-meeting-card[hidden] {
  display: none;
}

.course-meeting-card span {
  color: #718178;
  font-size: 13px;
  font-weight: 850;
}

.course-meeting-card strong {
  font-size: 17px;
  font-weight: 920;
}

.course-meeting-card a {
  width: fit-content;
  color: #08783f;
  font-size: 14px;
  font-weight: 900;
}

.course-reward-panel {
  display: grid;
  gap: 12px;
}

.course-reward-panel[hidden],
.course-reward-panel button[hidden],
.course-reward-panel label[hidden] {
  display: none;
}

.course-reward-panel button {
  margin-top: 0;
}

.course-reward-panel button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.2);
}

.course-signup-card h2 {
  margin-top: 8px;
  color: #101814;
  font-size: 30px;
  font-weight: 950;
}

.course-signup-card > div > p {
  margin-top: 8px;
  color: #718178;
  font-size: 14px;
  font-weight: 740;
  line-height: 1.55;
}

.course-signup-card label {
  display: grid;
  gap: 9px;
  color: #20382e;
  font-size: 14px;
  font-weight: 900;
}

.course-signup-card input,
.course-signup-card textarea {
  width: 100%;
  color: #102118;
  background: #f8fbf9;
  border: 1px solid #dce9e2;
  border-radius: 18px;
  outline: 0;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.course-signup-card input {
  height: 54px;
  padding: 0 18px;
  font-size: 17px;
  font-weight: 850;
}

.course-signup-card textarea {
  min-height: 100px;
  padding: 16px 18px;
  resize: vertical;
  font-size: 15px;
  font-weight: 720;
  line-height: 1.5;
}

.course-qr-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #f4faf7;
  border: 1px solid #dbece3;
  border-radius: 24px;
}

.course-qr-image {
  display: block;
  width: 178px;
  height: 178px;
  padding: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #d6e7de;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(18, 54, 36, 0.1);
}

.course-qr-card p {
  color: #5f7068;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.55;
}

.course-signup-notice {
  display: inline-flex;
  margin-top: 10px;
  padding: 8px 12px;
  color: #c7351d;
  background: #fff1ec;
  border: 1px solid rgba(214, 77, 43, 0.2);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.course-signup-card input:focus,
.course-signup-card textarea:focus {
  background: #fff;
  border-color: #68b88e;
  box-shadow: 0 0 0 4px rgba(104, 184, 142, 0.15);
}

.course-signup-card button {
  height: 72px;
  margin-top: 8px;
  color: #102118;
  background: linear-gradient(135deg, #78c99e, #5fb584);
  border-radius: 999px;
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 22px 44px rgba(104, 184, 142, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.course-signup-card button:hover {
  filter: brightness(1.02);
  box-shadow: 0 26px 52px rgba(104, 184, 142, 0.38);
  transform: translateY(-1px);
}

.course-signup-card button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.course-signup-message {
  padding: 14px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 850;
}

.course-signup-message[data-tone="success"] {
  color: #08783f;
  background: #eaf8f0;
}

.course-signup-message[data-tone="danger"] {
  color: #bd3c24;
  background: #fff1ec;
}

.course-success-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 24, 18, 0.54);
  backdrop-filter: blur(10px);
}

.course-success-modal[hidden] {
  display: none;
}

.course-success-dialog {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(430px, 100%);
  padding: 38px 34px 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(206, 226, 216, 0.96);
  border-radius: 30px;
  box-shadow: 0 34px 90px rgba(12, 24, 18, 0.28);
}

.course-success-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  color: #738279;
  background: #f3f7f5;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 520;
  line-height: 1;
}

.course-success-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  color: #08783f;
  background: #e8f8ef;
  border-radius: 24px;
  font-size: 40px;
  font-weight: 950;
}

.course-success-dialog h2 {
  margin-top: 20px;
  color: #101814;
  font-size: 34px;
  font-weight: 950;
}

.course-success-dialog p {
  margin-top: 10px;
  color: #687970;
  font-size: 16px;
  font-weight: 760;
  line-height: 1.6;
}

.course-success-dialog > button:last-child {
  width: 100%;
  height: 56px;
  margin-top: 24px;
  color: #102118;
  background: linear-gradient(135deg, #78c99e, #5fb584);
  border-radius: 999px;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 18px 36px rgba(104, 184, 142, 0.28);
}

.footer-content {
  display: grid;
  gap: 18px;
  width: min(1416px, calc(100% - 48px));
  margin: 0 auto;
  padding: 46px 0 38px;
}

.footer-brand .brand-logo-img {
  height: 26px;
  max-width: 144px;
}

.footer-brand p,
.footer-copyright,
.footer-records {
  margin-top: 4px;
  font-size: 13px;
}

.footer-links,
.footer-records {
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  font-weight: 700;
}

.footer-brand p,
.footer-links a,
.footer-copyright,
.footer-records a,
.footer-records span {
  color: rgba(255, 255, 255, 0.58);
}

.mobile-nav {
  display: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 28%, rgba(184, 104, 146, 0.13), transparent 30%),
    radial-gradient(circle at 48% 42%, rgba(104, 184, 142, 0.16), transparent 36%),
    rgba(8, 18, 14, 0.62);
  backdrop-filter: blur(10px);
}

.login-modal[hidden] {
  display: none;
}

.login-dialog {
  position: relative;
  overflow: hidden;
  width: min(520px, 100%);
  padding: 38px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(219, 234, 226, 0.95);
  border-radius: 36px;
  box-shadow: 0 34px 88px rgba(5, 16, 11, 0.24);
  animation: authDialogIn 0.18s ease-out;
}

.login-dialog::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, rgba(184, 104, 146, 0.72), rgba(104, 184, 142, 0.72));
}

.close-button {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #75827b;
  background: #f7faf8;
  border: 1px solid #e3ece7;
  border-radius: 50%;
  transition: color 0.18s, background 0.18s, transform 0.18s;
}

.close-button:hover {
  color: #10281c;
  background: #eef8f3;
  transform: translateY(-1px);
}

.close-button svg {
  width: 22px;
  height: 22px;
}

.login-hero {
  display: block;
  padding-right: 54px;
}

.login-hero span {
  color: #748179;
  font-size: 14px;
  font-weight: 780;
}

.login-dialog h2 {
  margin-top: 3px;
  color: #1a1a1a;
  font-size: 36px;
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-hero p {
  margin-top: 8px;
  color: #64756c;
  font-size: 15px;
  font-weight: 560;
  line-height: 1.55;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0 24px;
  padding: 6px;
  background: #f3f8f5;
  border: 1px solid #e0eee6;
  border-radius: 999px;
}

.login-tabs button {
  height: 50px;
  color: #64756c;
  border-radius: 999px;
  outline: none;
  font-size: 16px;
  font-weight: 780;
  transition: color 0.18s, background 0.18s, box-shadow 0.18s;
}

.login-tabs button.active {
  color: #10281c;
  background: #fff;
  box-shadow: 0 12px 28px rgba(31, 67, 49, 0.08);
}

.login-tabs button:focus-visible {
  box-shadow: 0 0 0 3px rgba(104, 184, 142, 0.18);
}

.login-fields {
  display: grid;
  gap: 20px;
}

.login-field {
  display: grid;
  gap: 10px;
  color: #23362b;
  font-size: 14px;
  font-weight: 760;
}

.login-input-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 0;
  background: #f8fcfa;
  border: 1px solid #dcebe4;
  border-radius: 999px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.login-input-shell:focus-within {
  background: #fff;
  border-color: rgba(104, 184, 142, 0.68);
  box-shadow: 0 0 0 5px rgba(104, 184, 142, 0.11);
}

.login-input-shell input {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 62px;
  min-width: 0;
  padding: 0 24px;
  color: #111814;
  background: transparent;
  border: 0;
  border-radius: inherit;
  outline: none;
  appearance: none;
  background-clip: padding-box;
  font-size: 16px;
  font-weight: 600;
}

.login-input-shell input::placeholder {
  color: #99a59f;
  font-weight: 750;
}

.login-input-shell input:-webkit-autofill,
.login-input-shell input:-webkit-autofill:hover,
.login-input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #111814;
  caret-color: #111814;
  border-radius: 999px;
  box-shadow: 0 0 0 1000px #f8fcfa inset;
  transition: background-color 9999s ease-in-out 0s;
}

#loginPassword {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #708078;
  background: transparent;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: color 0.18s, background 0.18s;
}

.password-toggle:hover {
  color: #123b2a;
  background: #e2f3ea;
  box-shadow: none;
}

.password-toggle svg {
  width: 20px;
  height: 20px;
}

.login-message {
  margin-top: 14px;
  padding: 10px 12px;
  color: #b42318;
  background: #fff4f2;
  border: 1px solid #ffd8d2;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 850;
}

.solid-button.full {
  width: 100%;
}

.login-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 62px;
  margin-top: 24px;
  color: #10281c;
  background: #68b88e;
  border: 1px solid #68b88e;
  border-radius: 999px;
  box-shadow: 0 16px 32px rgba(104, 184, 142, 0.22);
  font-size: 17px;
  font-weight: 850;
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.login-primary:hover {
  background: #5cab82;
  border-color: #5cab82;
  box-shadow: 0 20px 38px rgba(104, 184, 142, 0.31);
  transform: translateY(-1px);
}

.login-primary:disabled {
  cursor: not-allowed;
  opacity: 0.72;
  transform: none;
}

.wechat-login-block {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.wechat-login-block > span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  color: #8b9992;
  font-size: 12px;
  font-weight: 850;
}

.wechat-login-block > span::before,
.wechat-login-block > span::after {
  height: 1px;
  content: "";
  background: #e1ece7;
}

.wechat-login-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 58px;
  color: #113924;
  background: #f7fcf9;
  border: 1px solid #dcebe4;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.wechat-login-button:hover {
  color: #082417;
  background: #effaf4;
  border-color: rgba(104, 184, 142, 0.62);
  box-shadow: 0 14px 30px rgba(40, 108, 70, 0.12);
  transform: translateY(-1px);
}

.wechat-login-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.wechat-login-button svg {
  width: 22px;
  height: 22px;
  color: #0f8f4d;
  fill: currentColor;
}

.wechat-qr-panel {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 9px;
  width: 300px;
  margin: 0 auto;
}

.wechat-qr-panel[hidden] {
  display: none;
}

.wechat-qr-frame {
  width: 280px;
  height: 341px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #ececef;
  border-radius: 14px;
}

.wechat-qr-frame iframe {
  width: 320px;
  height: 390px;
  border: 0;
  transform: scale(0.875);
  transform-origin: left top;
}

.wechat-qr-panel p {
  margin: 0;
  color: #626a66;
  font-size: 14px;
}

.wechat-qr-panel button {
  color: #16884f;
  font-size: 13px;
  font-weight: 700;
}

.login-modal.wechat-qr-active .wechat-login-block,
.login-content-panel.wechat-qr-active .wechat-login-block,
.login-content-panel:has(#wechatQrPanel:not([hidden])) .wechat-login-block {
  display: none;
}

.login-content-panel.wechat-qr-active {
  align-items: center;
  justify-content: center;
  padding: 56px 72px;
}

.login-content-panel.wechat-qr-active .login-hero,
.login-content-panel.wechat-qr-active .login-methods,
.login-content-panel.wechat-qr-active .login-email-panel,
.login-content-panel.wechat-qr-active .login-agreement {
  display: none;
}

.login-content-panel.wechat-qr-active .wechat-qr-panel {
  display: grid;
}

.wechat-qr-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(320px, 100%);
  color: #a1a4a8;
  font-size: 11px;
}

.wechat-qr-or::before,
.wechat-qr-or::after {
  height: 1px;
  content: "";
  background: #e7e8eb;
}

.wechat-qr-panel .wechat-qr-email {
  width: min(320px, 100%);
  height: 52px;
  color: #22252a;
  background: #fff;
  border: 1px solid #dedfe2;
  border-radius: 999px;
  font-size: 15px;
}

.login-switch {
  margin-top: 22px;
  color: #718278;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
}

.login-switch button {
  color: var(--accent-dark);
  font-weight: 900;
  padding: 2px 4px;
}

.login-switch button:hover {
  color: var(--accent-hover);
}

@keyframes authDialogIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1180px) {
  .desktop-nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .case-waterfall-grid,
  .tool-card-grid,
  .final-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .case-card-featured {
    grid-row: auto;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    display: flex;
  }

  .header-actions .text-button[data-open-login],
  .header-actions .solid-button[data-open-register] {
    height: 38px;
    min-width: 58px;
    padding: 0 13px;
    font-size: 13px;
  }

  .header-actions .solid-button[data-open-register] {
    min-width: 64px;
  }

  .credit-records-modal {
    align-items: center;
    padding: 16px;
    overflow: auto;
  }

  .credit-records-dialog {
    max-height: calc(100vh - 32px);
  }

  .credit-records-filter {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero-section {
    min-height: calc(100vh - 60px);
    padding: 74px 18px 54px;
  }

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .composer-footer {
    display: grid;
  }

  .composer-tools {
    display: grid;
    grid-template-columns: 42px 1fr 1fr;
  }

  .model-select-tool {
    grid-column: span 2;
  }

  .generate-button {
    justify-content: center;
    width: 100%;
  }

  .generation-result-head,
  .image-preview-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .generation-soft-button,
  .image-preview-actions a,
  .image-preview-actions button {
    width: 100%;
  }

  .generation-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 180px));
    justify-content: center;
  }

  .generation-card {
    max-width: 180px;
  }

  .generation-card img {
    max-height: 280px;
  }

  .generation-card-actions {
    grid-template-columns: 1fr;
  }

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

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

  .album-card {
    width: auto;
  }

  .album-card-actions {
    grid-template-columns: 1fr;
  }

  .case-waterfall-grid,
  .tool-card-grid,
  .canvas-flow-layout,
  .final-layout,
  .final-actions {
    grid-template-columns: 1fr;
  }

  .tool-card {
    grid-template-columns: 104px minmax(0, 1fr) auto;
  }

  .tool-card img {
    width: 104px;
    height: 104px;
  }

  .canvas-shot-body {
    grid-template-columns: 1fr;
  }

  .canvas-shot-sidebar {
    display: none;
  }

}

@media (max-width: 560px) {
  .simple-topbar,
  .admin-main {
    padding-right: 16px;
    padding-left: 16px;
  }

  .member-menu-panel {
    right: auto;
    left: 50%;
    width: min(286px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .member-menu-panel::before {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .header-user-panel {
    right: auto;
    left: 50%;
    width: min(276px, calc(100vw - 32px));
    transform: translateX(-50%);
  }

  .header-user-panel::before {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .canvas-brand {
    font-size: 16px;
  }

  .canvas-back-home {
    padding: 0 10px;
  }

  .site-header {
    height: 56px;
    padding: 0 16px;
  }

  body.modal-open .site-header {
    padding-right: calc(16px + var(--modal-scrollbar-compensation, 0px));
  }

  .page-home {
    padding-top: 56px;
  }

  .hero-section {
    min-height: calc(100vh - 56px);
  }

  .brand {
    font-size: 17px;
  }

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

  .hero-badge {
    margin-bottom: 18px;
  }

  .home-composer {
    padding: 14px;
    border-radius: 18px;
  }

  .login-modal {
    align-items: flex-end;
    padding: 12px;
  }

  .login-dialog {
    width: 100%;
    padding: 24px;
    border-radius: 30px;
  }

  .login-hero {
    padding-right: 46px;
  }

  .login-dialog h2 {
    font-size: 30px;
  }

  .login-tabs {
    margin: 24px 0 20px;
  }

  .login-tabs button {
    height: 48px;
  }

  .login-input-shell {
    min-height: 60px;
    border-radius: 999px;
  }

  .login-input-shell input {
    height: 58px;
    font-size: 16px;
  }

  .login-primary {
    height: 58px;
    border-radius: 999px;
  }

  .login-hero p {
    font-size: 13px;
  }

  .composer-header {
    align-items: flex-start;
  }

  .composer-upload span {
    display: none;
  }

  .home-composer textarea {
    min-height: 132px;
    font-size: 15px;
  }

  .home-section-inner {
    width: calc(100% - 36px);
  }

  .case-waterfall-section,
  .more-tools-section,
  .canvas-flow-section,
  .home-final-section {
    padding: 58px 0;
  }

  .section-heading h2 {
    font-size: 28px;
  }
}

/* Homepage album uses a capped 4-column grid: 216px cards plus 14px gaps. */
.home-composer .generation-results .album-panel,
.home-composer .generation-results .generation-result-panel {
  overflow: hidden;
}

.home-composer .generation-results .album-grid,
.home-composer .generation-results .generation-grid,
.generation-results .album-grid,
.generation-results .generation-grid {
  display: grid !important;
  width: 100% !important;
  max-width: 906px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: start !important;
  justify-content: start !important;
}

.home-composer .generation-results .album-card,
.home-composer .generation-results .generation-card,
.home-composer .generation-results .generation-skeleton,
.generation-results .album-card,
.generation-results .generation-card,
.generation-results .generation-skeleton {
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
}

.home-composer .generation-results .album-thumb-frame,
.home-composer .generation-results .generation-skeleton div,
.generation-results .album-thumb-frame,
.generation-results .generation-skeleton div {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
}

.home-composer .generation-results .album-thumb-frame img,
.generation-results .album-thumb-frame img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

.home-composer .generation-results .generation-card img,
.generation-results .generation-card img {
  width: 100% !important;
  height: 160px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

.home-composer .generation-results .album-card[data-ratio="9-16"] .album-thumb-frame,
.generation-results .album-card[data-ratio="9-16"] .album-thumb-frame {
  aspect-ratio: 9 / 16 !important;
}

.home-composer .generation-results .album-card[data-ratio="3-4"] .album-thumb-frame,
.generation-results .album-card[data-ratio="3-4"] .album-thumb-frame {
  aspect-ratio: 3 / 4 !important;
}

.home-composer .generation-results .album-card[data-ratio="16-9"] .album-thumb-frame,
.generation-results .album-card[data-ratio="16-9"] .album-thumb-frame {
  aspect-ratio: 16 / 9 !important;
}

.home-composer .generation-results .album-card[data-ratio="4-3"] .album-thumb-frame,
.generation-results .album-card[data-ratio="4-3"] .album-thumb-frame {
  aspect-ratio: 4 / 3 !important;
}

body:has(.page-home:not([hidden])) .site-header {
  display: none;
}

.page-home {
  min-height: 100vh;
  padding-top: 0;
  color: #f6f8f7;
  background: #07090b;
}

.app-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 10%, rgba(104, 184, 142, 0.08), transparent 30%),
    linear-gradient(180deg, #07090b 0%, #0a0c0f 100%);
}

.app-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  width: 66px;
  padding: 18px 0 22px;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(7, 9, 11, 0.94);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.app-rail-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 38px;
  color: #07100c;
  background: #fff;
  border-radius: 13px;
  font-size: 18px;
  font-weight: 950;
}

.app-rail nav,
.app-rail-bottom {
  display: grid;
  gap: 18px;
}

.app-rail nav {
  flex: 1;
  align-content: start;
}

.app-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.app-rail a:hover,
.app-rail a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.app-rail a:hover {
  transform: translateY(-1px);
}

.app-rail a i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  background: #ff4f5e;
  border-radius: 50%;
}

.app-home-main {
  min-height: 100vh;
  padding-left: 66px;
}

.app-home-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  padding: 0 28px;
  background: rgba(7, 9, 11, 0.84);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
}

.app-brand-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 26px;
  font-weight: 950;
  letter-spacing: 0;
}

.app-brand-dark em {
  padding: 3px 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

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

.app-invite-pill,
.app-charge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.app-invite-pill {
  color: #ffe3bf;
  background: rgba(255, 255, 255, 0.09);
}

.app-charge-pill {
  color: #12100d;
  background: #ffd1a5;
}

.app-home-content {
  width: min(1540px, calc(100% - 84px));
  margin: 0 auto;
  padding: 82px 0 96px;
}

.app-hero-board h1 {
  color: #fff;
  text-align: center;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 950;
  line-height: 1.12;
}

.app-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 86px;
}

.app-feature-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  color: #fff;
  background: #1a1d20;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

.app-feature-card::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(180deg, transparent, rgba(7, 9, 11, 0.58) 42%, rgba(51, 183, 196, 0.32));
}

.app-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.app-feature-card > span {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 3px 8px;
  color: #fff;
  background: rgba(0, 0, 0, 0.44);
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.app-feature-card > div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
}

.app-feature-card h2 {
  margin-bottom: 10px;
  color: #fff;
  font-size: 23px;
  font-weight: 950;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.app-feature-card a,
.app-feature-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.app-tool-section {
  margin-top: 90px;
}

.app-tool-section h2 {
  margin-bottom: 26px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.app-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.app-tool-tile {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  padding: 0 26px;
  color: rgba(255, 255, 255, 0.92);
  text-align: left;
  background: #181a1e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  font-size: 17px;
  font-weight: 850;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.app-tool-tile:hover,
.app-tool-tile.active {
  background: linear-gradient(100deg, #1c3d41, #202428);
  border-color: rgba(109, 214, 204, 0.28);
  transform: translateY(-1px);
}

.app-tool-tile svg {
  color: #fff;
}

.app-tool-tile small {
  color: #35d7d0;
  font-size: 13px;
  font-weight: 900;
}

.app-studio-panel {
  width: 100%;
  margin-top: 92px;
  padding: 24px;
  color: #e9f1ed;
  background: #101316;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.studio-panel-head {
  margin-bottom: 22px;
}

.studio-panel-head span {
  color: #76c99d;
  font-size: 14px;
  font-weight: 900;
}

.studio-panel-head h2 {
  margin-top: 4px;
  color: #fff;
  font-size: 32px;
  font-weight: 950;
}

.studio-panel-head p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 15px;
  font-weight: 700;
}

.app-studio-panel .composer-header strong {
  color: #fff;
}

.app-studio-panel .composer-upload,
.app-studio-panel .icon-tool,
.app-studio-panel .select-tool > button {
  color: #f3f8f5;
  background: #1a1d20;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.app-studio-panel textarea {
  color: #f5f8f6;
  background: #080a0c;
  border-color: rgba(255, 255, 255, 0.1);
}

.app-studio-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.app-studio-panel .select-menu {
  background: #181b1f;
  border-color: rgba(255, 255, 255, 0.1);
}

.app-studio-panel .select-menu button {
  color: rgba(255, 255, 255, 0.88);
}

.app-studio-panel .select-menu button:hover,
.app-studio-panel .select-menu button.active {
  color: #71d69e;
  background: rgba(104, 184, 142, 0.12);
}

@media (max-width: 1180px) {
  .app-feature-row,
  .app-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-rail {
    display: none;
  }

  .app-home-main {
    padding-left: 0;
  }

  .app-home-topbar {
    height: auto;
    min-height: 62px;
    padding: 12px 16px;
  }

  .app-brand-dark {
    font-size: 21px;
  }

  .app-invite-pill {
    display: none;
  }

  .app-home-content {
    width: calc(100% - 28px);
    padding: 52px 0 68px;
  }

  .app-hero-board h1 {
    text-align: left;
    font-size: 34px;
  }

  .app-feature-row {
    display: flex;
    gap: 14px;
    margin-top: 34px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .app-feature-card {
    flex: 0 0 82%;
    min-height: 190px;
    scroll-snap-align: start;
  }

  .app-feature-card img {
    min-height: 190px;
  }

  .app-tool-section {
    margin-top: 48px;
  }

  .app-tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-tool-tile {
    min-height: 68px;
    padding: 0 18px;
  }

  .app-studio-panel {
    margin-top: 50px;
    padding: 16px;
    border-radius: 18px;
  }

  .studio-panel-head h2 {
    font-size: 26px;
  }
}

@media (max-width: 980px) {
  .course-page {
    padding: 32px 18px 48px;
  }

  .course-hero,
  .course-content {
    grid-template-columns: 1fr;
  }

  .course-hero-copy,
  .course-poster {
    min-height: auto;
  }

  .course-poster-frame {
    min-height: 0;
  }

  .teacher-card {
    grid-template-columns: 145px minmax(0, 1fr);
    width: min(100%, 500px);
  }

  .teacher-photo {
    max-height: 210px;
  }
}

@media (max-width: 680px) {
  .course-page {
    padding: 22px 14px 38px;
  }

  .course-hero-copy,
  .course-poster,
  .course-signup-card {
    padding: 24px;
    border-radius: 26px;
  }

  .course-poster {
    aspect-ratio: auto;
    height: auto;
    min-height: 0;
    padding: 16px;
  }

  .course-poster-frame {
    height: auto;
    min-height: 0;
    padding: 12px;
    border-radius: 22px;
  }

  .course-hero h1 {
    font-size: 40px;
    line-height: 1.08;
  }

  .course-hero-copy p {
    font-size: 17px;
    line-height: 1.58;
  }

  .course-hero-cards {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 24px;
  }

  .course-meta {
    width: 100%;
    padding: 16px 18px;
    border-radius: 20px;
  }

  .course-meta strong {
    font-size: 18px;
  }

  .course-benefit-card {
    min-height: 102px;
    padding: 18px;
    border-radius: 20px;
  }

  .course-benefit-card strong {
    font-size: 20px;
  }

  .course-points {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: clamp(94px, 28vw, 118px) minmax(0, 1fr);
    justify-items: stretch;
    align-items: center;
    gap: 14px;
    padding: 14px;
    width: 100%;
    margin: 0 auto;
    border-radius: 22px;
  }

  .teacher-photo {
    width: 100%;
    height: auto;
    max-height: none;
    justify-self: center;
    border-radius: 18px;
  }

  .teacher-profile {
    width: 100%;
  }

  .teacher-profile > span {
    font-size: 12px;
  }

  .teacher-profile strong {
    font-size: 28px;
  }

  .teacher-profile p {
    display: -webkit-box;
    margin-top: 10px;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
  }

  .teacher-profile ul {
    gap: 6px;
    margin-top: 10px;
  }

  .teacher-profile li {
    padding-left: 14px;
    font-size: 12px;
    line-height: 1.35;
  }

  .teacher-profile li::before {
    width: 6px;
    height: 6px;
  }

  .course-qr-card {
    grid-template-columns: 1fr;
  }

  .course-qr-image {
    width: 180px;
    height: 180px;
    justify-self: center;
  }

  .course-signup-card button {
    height: 66px;
    font-size: 20px;
  }
}

/* Course page: embedded in the main WanYou visual system. */
.course-route {
  color: #17181a;
  background: #f6f7f8;
}

.course-route .site-header,
body.course-route:has(.koozee-home) .site-header {
  display: grid !important;
}

.course-route .site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: #e9eaec;
}

.course-route .desktop-nav a.active {
  color: #fff;
  background: #17181a;
}

.course-page {
  min-height: 100vh;
  padding: 92px max(24px, calc((100vw - 1180px) / 2)) 70px;
  color: #17181a;
  background: #f6f7f8;
}

.course-context-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: #94979d;
  font-size: 13px;
  font-weight: 700;
}

.course-context-bar a {
  color: #686b71;
}

.course-context-bar strong {
  color: #2b2d31;
}

.course-context-bar em {
  margin-left: auto;
  padding: 6px 10px;
  color: #4d5056;
  background: #fff;
  border: 1px solid #e2e4e7;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
}

.course-hero {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.72fr);
  gap: 18px;
}

.course-hero-copy,
.course-poster,
.course-signup-card,
.course-points article {
  border-color: #e2e4e7;
  box-shadow: none;
}

.course-hero-copy {
  min-height: 438px;
  padding: clamp(38px, 5vw, 64px);
  background: #fff;
  border-radius: 20px;
}

.course-eyebrow,
.course-signup-card > div > span,
.course-points article span {
  color: #777b82;
}

.course-hero h1 {
  max-width: 760px;
  margin-top: 18px;
  color: #111214;
  font-size: clamp(42px, 5.6vw, 70px);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.course-hero-copy > p {
  max-width: 680px;
  margin-top: 24px;
  color: #666a71;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 550;
  line-height: 1.65;
}

.course-hero-cards {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: 10px;
  margin-top: 32px;
}

.course-meta,
.course-benefit-card {
  min-height: 104px;
  padding: 18px 20px;
  border-radius: 14px;
  box-shadow: none;
}

.course-meta {
  background: #17181a;
}

.course-meta strong {
  font-size: 18px;
}

.course-benefit-card {
  color: #17181a;
  background: #f2f3f4;
  border-color: #e2e4e7;
}

.course-benefit-card::after {
  display: none;
}

.course-benefit-card span,
.course-benefit-card small {
  color: #6d7076;
}

.course-benefit-card strong {
  color: #17181a;
  font-size: 21px;
}

.course-poster {
  aspect-ratio: auto;
  padding: 12px;
  color: #fff;
  background: #17181a;
  border-radius: 20px;
}

.course-poster-frame {
  padding: 0;
  border: 0;
  border-radius: 14px;
}

.teacher-card {
  grid-template-columns: 1fr;
  align-content: end;
  gap: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: #232529;
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  backdrop-filter: none;
}

.teacher-photo {
  width: 100%;
  height: 252px;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 20%;
  background: #2b2d31;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.teacher-profile {
  padding: 24px 24px 26px;
}

.teacher-profile > span {
  color: #aeb1b7;
}

.teacher-profile strong {
  margin-top: 5px;
  font-size: 34px;
}

.teacher-profile p {
  margin-top: 12px;
  color: #b5b8be;
  font-weight: 550;
}

.teacher-profile ul {
  display: none;
}

.course-content {
  grid-template-columns: minmax(0, 1fr) minmax(390px, 0.72fr);
  gap: 18px;
  margin-top: 18px;
}

.course-points {
  gap: 10px;
}

.course-points article {
  min-height: 148px;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
}

.course-points article strong {
  margin-top: 18px;
  color: #17181a;
  font-size: 21px;
}

.course-points article p {
  color: #74777d;
  font-weight: 550;
}

.course-signup-card {
  gap: 16px;
  padding: 28px;
  background: #fff;
  border-radius: 18px;
}

.course-signup-card h2 {
  color: #17181a;
  font-size: 28px;
}

.course-signup-card > div > p {
  color: #74777d;
  font-weight: 550;
}

.course-signup-card label {
  color: #34373c;
}

.course-signup-card input,
.course-signup-card textarea {
  color: #17181a;
  background: #f7f8f9;
  border-color: #e1e3e6;
  border-radius: 12px;
}

.course-signup-card input:focus,
.course-signup-card textarea:focus {
  background: #fff;
  border-color: #8f939a;
  box-shadow: 0 0 0 3px rgba(24, 25, 27, 0.08);
}

.course-signup-card button,
.course-success-dialog > button:last-child {
  color: #fff;
  background: #17181a;
  border-radius: 12px;
  box-shadow: none;
}

.course-signup-card button:hover,
.course-success-dialog > button:last-child:hover {
  background: #2b2d31;
  box-shadow: none;
  filter: none;
}

.course-meeting-card {
  color: #2b2d31;
  background: #f6f7f8;
  border-color: #e2e4e7;
  border-radius: 12px;
}

.course-meeting-card a {
  color: #17181a;
  text-decoration: underline;
}

.course-success-dialog {
  border-color: #e2e4e7;
  border-radius: 18px;
}

.course-success-icon {
  color: #fff;
  background: #17181a;
  border-radius: 50%;
}

@media (max-width: 980px) {
  .course-page {
    padding-top: 82px;
  }

  .course-hero,
  .course-content {
    grid-template-columns: 1fr;
  }

  .course-poster {
    padding: 10px;
  }

  .teacher-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .teacher-photo {
    height: 100%;
    min-height: 230px;
  }
}

@media (max-width: 680px) {
  .course-route .site-header {
    display: flex !important;
    justify-content: space-between;
    padding: 0 16px;
  }

  .course-route .desktop-nav {
    display: none;
  }

  .course-page {
    padding: 78px 14px 34px;
  }

  .course-context-bar {
    margin-bottom: 12px;
  }

  .course-hero-copy,
  .course-signup-card {
    padding: 24px;
    border-radius: 16px;
  }

  .course-hero h1 {
    font-size: 39px;
  }

  .course-hero-cards {
    grid-template-columns: 1fr;
  }

  .teacher-card {
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .teacher-photo {
    min-height: 210px;
  }

  .teacher-profile {
    padding: 18px;
  }
}

@media (max-width: 700px) {
  .reverse-prompt-section {
    padding: 56px 16px 70px;
  }

  .reverse-prompt-shell {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reverse-prompt-copy {
    min-height: auto;
    padding: 28px 22px;
    border-radius: 24px;
  }

  .reverse-prompt-copy h2 {
    font-size: 34px;
  }

  .reverse-prompt-copy p {
    font-size: 15px;
  }

  .reverse-prompt-tool {
    padding: 18px;
    border-radius: 24px;
  }

  .reverse-upload {
    min-height: 190px;
    padding: 22px;
  }

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

  .reverse-preview img {
    width: 88px;
    height: 70px;
  }

  .home-composer .generation-results .album-grid,
  .home-composer .generation-results .generation-grid,
  .generation-results .album-grid,
  .generation-results .generation-grid {
    max-width: 446px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .home-composer .generation-results .album-thumb-frame,
  .home-composer .generation-results .generation-skeleton div,
  .generation-results .album-thumb-frame,
  .generation-results .generation-skeleton div {
    height: auto !important;
  }

  .home-composer .generation-results .generation-card img,
  .generation-results .generation-card img {
    height: 132px !important;
  }

}

@media (min-width: 701px) and (max-width: 980px) {
  .reverse-prompt-section {
    padding: 72px 22px 88px;
  }

  .reverse-prompt-shell {
    grid-template-columns: 1fr;
  }

  .home-composer .generation-results .album-grid,
  .home-composer .generation-results .generation-grid,
  .generation-results .album-grid,
  .generation-results .generation-grid {
    max-width: 676px !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Koozee-style dark workbench home */
body:has(.page-home:not([hidden])) .site-header,
body:has(.page-home:not([hidden])) .home-footer {
  display: none;
}

.page-home {
  min-height: 100vh;
  padding-top: 0;
  color: #f7f7f7;
  background: #08090a;
}

.koozee-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #f6f6f6;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #090a0b 0%, #090a0b 52%, #08090a 100%);
  background-size: 78px 78px, auto;
}

.koozee-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: grid;
  grid-template-rows: 80px 1fr auto;
  width: 164px;
  padding: 22px 0 28px;
  background: #08090a;
}

.koozee-brand {
  display: flex;
  align-items: center;
  height: 42px;
  padding-left: 20px;
}

.koozee-brand .brand-logo-img {
  height: 26px;
  max-width: 142px;
}

.koozee-rail,
.koozee-rail-bottom {
  display: grid;
  justify-items: start;
  padding-left: 28px;
}

.koozee-rail {
  align-content: start;
  gap: 24px;
  padding-top: 30px;
}

.koozee-rail-bottom {
  gap: 26px;
}

.koozee-rail a,
.koozee-rail-bottom a {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #85878b;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.koozee-rail a:hover,
.koozee-rail a.active,
.koozee-rail-bottom a:hover {
  color: #fff;
  transform: translateY(-1px);
}

.koozee-rail a.active {
  background: transparent;
}

.koozee-rail svg,
.koozee-rail-bottom svg,
.koozee-chat svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.25;
}

.koozee-rail a.new span {
  position: absolute;
  top: -14px;
  right: -18px;
  display: grid;
  place-items: center;
  height: 18px;
  padding: 0 6px;
  color: #062219;
  background: #b8fff1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.koozee-rail-bottom i {
  position: absolute;
  top: 2px;
  right: 3px;
  width: 7px;
  height: 7px;
  background: #ff4b55;
  border-radius: 50%;
}

.koozee-main {
  min-height: 100vh;
  padding-left: 164px;
}

.koozee-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 164px;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 72px;
  padding: 0 24px 0 0;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.96), rgba(8, 9, 10, 0.78));
  backdrop-filter: blur(12px);
}

.koozee-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.koozee-account button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  color: #f9e3cd;
  border: 0;
  font-weight: 950;
  white-space: nowrap;
}

.koozee-invite {
  gap: 8px;
  padding: 0 20px;
  background: #1c1d20;
  border-radius: 999px;
  font-size: 16px;
}

.koozee-credit {
  gap: 8px;
  min-width: 92px;
  padding: 0 14px;
  background: #31231e;
  border-radius: 999px;
  font-size: 17px;
}

.koozee-credit span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: center / contain no-repeat url("/site-media/images/gravity-bean-v1.png");
}

.koozee-recharge {
  margin-left: 0;
  padding: 0 18px;
  color: #37251d !important;
  background: linear-gradient(180deg, #ffe3c8, #ffd0ad);
  border-radius: 999px;
  font-size: 16px;
}

.koozee-consumption-records {
  margin-left: 0;
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.86) !important;
  background: #1c1d20;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 15px;
  font-weight: 760 !important;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.koozee-consumption-records:hover {
  color: #fff !important;
  background: #292b2f;
  transform: translateY(-1px);
}

.koozee-avatar {
  width: 44px;
  padding: 0;
  color: #fff !important;
  background: radial-gradient(circle at 35% 28%, #5bb6ff, #16425d 58%, #10202b);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  font-size: 15px;
  overflow: hidden;
}

.koozee-content {
  width: min(1720px, calc(100vw - 282px));
  margin: 0 auto;
  padding: 172px 0 52px;
}

.koozee-hero h1 {
  color: #fff;
  text-align: center;
  font-size: clamp(34px, 3.15vw, 58px);
  font-weight: 950;
  line-height: 1.14;
  letter-spacing: 0;
}

.koozee-hero-empty {
  min-height: 545px;
}

.koozee-feature-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 86px;
}

.koozee-feature-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.koozee-feature-card::after {
  position: absolute;
  inset: 48% 0 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, transparent 0%, rgba(11, 12, 14, 0.5) 42%, rgba(10, 97, 104, 0.7) 100%),
    linear-gradient(90deg, rgba(11, 12, 14, 0.34), transparent 54%);
  filter: blur(0.2px);
}

.koozee-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  opacity: 0.92;
}

.koozee-chip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  height: 26px;
  padding: 0 9px;
  color: #fff;
  background: rgba(16, 17, 18, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}

.koozee-card-copy {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  z-index: 2;
}

.koozee-card-copy h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.koozee-card-copy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-width: 98px;
  padding: 0 18px;
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.koozee-gemini-card {
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 196, 174, 0.7), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(155, 235, 255, 0.84), transparent 42%),
    linear-gradient(135deg, #fafafa 0%, #f2f1f7 52%, #c8f4fb 100%);
}

.koozee-gemini-card::after {
  background: linear-gradient(180deg, transparent 42%, rgba(92, 122, 125, 0.24) 70%, rgba(20, 129, 136, 0.72));
}

.koozee-gemini-logo {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #282a2f;
  font-size: 36px;
  font-weight: 850;
}

.koozee-gemini-logo b {
  color: #8569ff;
  font-size: 38px;
}

.koozee-gemini-card .koozee-card-copy h2 {
  color: #fff;
}

.koozee-tools {
  margin-top: 118px;
}

.koozee-tools h2 {
  margin-bottom: 24px;
  color: #fff;
  font-size: 26px;
  font-weight: 950;
}

.koozee-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.koozee-tool {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  min-height: 86px;
  padding: 0 28px;
  color: #f2f2f3;
  background: #1a1b1e;
  border: 0;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 30px rgba(0, 0, 0, 0.2);
  font-size: 18px;
  font-weight: 850;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.koozee-tool:hover {
  background: #202125;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.koozee-tool svg {
  width: 13px;
  height: 13px;
  color: #f2f2f3;
  stroke-width: 2;
}

.koozee-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: #202124;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.36);
}

.home-runtime {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1280px) {
  .koozee-sidebar {
    width: 92px;
  }

  .koozee-brand .brand-logo-img {
    display: none;
  }

  .koozee-brand::before {
    content: "万";
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: #08090a;
    background: #fff;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 950;
  }

  .koozee-main {
    padding-left: 92px;
  }

  .koozee-topbar {
    left: 92px;
  }

  .koozee-content {
    width: min(1120px, calc(100vw - 138px));
  }

  .koozee-feature-row,
  .koozee-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Replace text-simulated brand names with the unified image mark. */
.koozee-vip-title {
  align-items: center;
  gap: 6px;
}

.koozee-vip-title img {
  display: block;
  width: auto;
  height: 20px;
  border-radius: 3px;
}

.koozee-vip-title em {
  color: rgba(255, 255, 255, 0.94);
  font-size: 18px;
  font-weight: 650;
  line-height: 20px;
}

.recharge-showcase-copy .recharge-showcase-brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 25px;
  font-weight: 780;
  line-height: 31px;
}

.recharge-showcase-brand-line img {
  display: block;
  width: auto;
  height: 31px;
  border-radius: 4px;
}

@media (max-width: 720px) {
  .koozee-sidebar {
    display: none;
  }

  .koozee-main {
    padding-left: 0;
  }

  .koozee-topbar {
    left: 0;
    height: 64px;
    padding: 0 12px;
  }

  .koozee-invite {
    display: none !important;
  }

  .koozee-content {
    width: calc(100vw - 28px);
    padding-top: 112px;
  }

  .koozee-hero h1 {
    text-align: left;
    font-size: 38px;
  }

  .koozee-hero-empty {
    min-height: 360px;
  }

  .koozee-feature-row {
    display: flex;
    gap: 14px;
    margin-top: 42px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .koozee-feature-card {
    flex: 0 0 84%;
    min-height: 214px;
    scroll-snap-align: start;
  }

  .koozee-feature-card img {
    min-height: 214px;
  }

  .koozee-tools {
    margin-top: 58px;
  }

  .koozee-tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .koozee-tool {
    min-height: 72px;
  }
}

/* Homepage top controls scroll away naturally; they no longer reserve a black band. */
body:has(.koozee-home):not(.workbench-open) .koozee-topbar {
  position: absolute;
  top: 0;
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none;
}

body:has(.koozee-home):not(.workbench-open) .home-showcase {
  min-height: 100vh;
  margin-top: 0;
}

body:has(.koozee-home).workbench-open .koozee-topbar {
  position: fixed;
  background: #08090a !important;
  background-image: none !important;
  backdrop-filter: none;
}
@keyframes workflow-douniu-breathe {
  0%, 100% { transform: translate3d(0, 1px, 0) scale(1); }
  48% { transform: translate3d(0, -2px, 0) scale(1.012, .988); }
}
@keyframes workflow-douniu-idle-performance {
  0%, 38%, 100% { transform: translateX(0) rotate(0) scale(1); }
  46% { transform: translateX(-2px) rotate(-2.7deg) scale(1.012, .993); }
  52% { transform: translateX(2px) rotate(3.2deg) scale(.994, 1.01); }
  58% { transform: translateX(-1px) rotate(-1.8deg) scale(1.008, .996); }
  64% { transform: translateX(1px) rotate(1.15deg) scale(.998, 1.005); }
  70%, 86% { transform: translateX(0) rotate(0) scale(1); }
  90% { transform: translateY(-1px) rotate(-.8deg) scale(1.004, .998); }
  94% { transform: translateY(0) rotate(.55deg) scale(.999, 1.003); }
}
@keyframes workflow-douniu-happy-performance {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  18% { transform: translateY(2px) rotate(-1.8deg) scale(1.025, .975); }
  42% { transform: translateY(-5px) rotate(2.6deg) scale(.982, 1.035); }
  65% { transform: translateY(0) rotate(-1.2deg) scale(1.012, .99); }
}
@keyframes workflow-douniu-curious-performance {
  0%, 100% { transform: translateX(0) rotate(-1.8deg) scale(1); }
  34% { transform: translateX(-3px) translateY(-2px) rotate(-5.6deg) scale(1.012); }
  68% { transform: translateX(2px) rotate(2deg) scale(.995, 1.012); }
}
@keyframes workflow-douniu-thinking-performance {
  0%, 100% { transform: translateY(0) rotate(-2.4deg); }
  46% { transform: translateY(-2px) rotate(1.2deg) scale(1.008); }
  70% { transform: translateY(-1px) rotate(-.4deg); }
}
@keyframes workflow-douniu-concerned-performance {
  0%, 100% { transform: translateY(1px) rotate(0) scale(1, .99); }
  50% { transform: translateY(-2px) rotate(-1deg) scale(1.012, 1.006); }
}
@keyframes workflow-douniu-proud-performance {
  0%, 100% { transform: translateY(0) rotate(0) scale(1); }
  28% { transform: translateY(-4px) rotate(1.8deg) scale(.992, 1.035); }
  54% { transform: translateY(-2px) rotate(-1deg) scale(1.018, .995); }
  76% { transform: translateY(-3px) rotate(.5deg) scale(1.006); }
}
@keyframes workflow-douniu-sleep-breathe {
  0%, 100% { transform: translateY(2px) scale(1.005, .995); }
  50% { transform: translateY(-1px) scale(.992, 1.014); }
}
@keyframes workflow-douniu-sleep-sway {
  0%, 100% { transform: translateX(-1px) rotate(-2.4deg); }
  50% { transform: translateX(1px) rotate(-.5deg); }
}
@keyframes workflow-douniu-sleep-z {
  0% { opacity: 0; transform: translate3d(-2px, 5px, 0) scale(.78) rotate(-8deg); }
  24% { opacity: .9; }
  76% { opacity: .55; }
  100% { opacity: 0; transform: translate3d(6px, -10px, 0) scale(1.12) rotate(4deg); }
}
@keyframes workflow-douniu-wake-pop {
  0% { transform: translateY(3px) scale(1.03, .95); }
  28% { transform: translateY(-8px) scale(.96, 1.07); }
  54% { transform: translateY(1px) scale(1.035, .98); }
  78% { transform: translateY(-2px) scale(.99, 1.02); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes workflow-douniu-wake-shake {
  0% { transform: rotate(-4deg); }
  28% { transform: rotate(5deg); }
  50% { transform: rotate(-3deg); }
  72% { transform: rotate(1.6deg); }
  100% { transform: rotate(0); }
}
@keyframes workflow-douniu-idle-sway {
  0%, 100% { transform: translateX(0) rotate(0); }
  18% { transform: translateX(-2px) rotate(-2.2deg); }
  38% { transform: translateX(2px) rotate(2.8deg); }
  58% { transform: translateX(-1px) rotate(-1.5deg); }
  76% { transform: translateX(1px) rotate(.9deg); }
}
@keyframes workflow-douniu-idle-nod {
  0%, 18%, 100% { transform: translateY(0) scale(1); }
  38% { transform: translateY(2px) scale(1.018, .982); }
  53% { transform: translateY(-3px) scale(.99, 1.02); }
  68% { transform: translateY(1px) scale(1.008, .994); }
}
@keyframes workflow-douniu-idle-nod-face {
  0%, 18%, 100% { transform: rotate(0); }
  39% { transform: rotate(2deg); }
  54% { transform: rotate(-1.4deg); }
  70% { transform: rotate(.6deg); }
}
@keyframes workflow-douniu-idle-bounce {
  0%, 14%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(2px) scale(1.04, .96); }
  38% { transform: translateY(-7px) scale(.975, 1.04); }
  49% { transform: translateY(0) scale(1.025, .98); }
  61% { transform: translateY(-4px) scale(.986, 1.025); }
  73% { transform: translateY(0) scale(1.012, .992); }
}
@keyframes workflow-douniu-idle-bounce-twist {
  0%, 14%, 100% { transform: rotate(0); }
  38% { transform: rotate(3deg); }
  49% { transform: rotate(-2deg); }
  61% { transform: rotate(1.5deg); }
}
@keyframes workflow-douniu-idle-stretch {
  0%, 16%, 100% { transform: translateY(0) scale(1); }
  34% { transform: translateY(2px) scale(1.035, .97); }
  55%, 72% { transform: translateY(-4px) scale(.975, 1.055); }
  86% { transform: translateY(1px) scale(1.015, .988); }
}
@keyframes workflow-douniu-idle-stretch-chest {
  0%, 16%, 100% { transform: rotate(0); }
  36% { transform: rotate(-2.2deg); }
  58% { transform: rotate(2.6deg); }
  76% { transform: rotate(-.8deg); }
}
@keyframes workflow-douniu-idle-ponder {
  0%, 15%, 100% { transform: translateX(0) rotate(0); }
  34%, 62% { transform: translateX(2px) translateY(-2px) rotate(3.2deg); }
  76% { transform: translateX(-1px) rotate(-1.2deg); }
}
@keyframes workflow-douniu-idle-peek-lift {
  0%, 14%, 100% { transform: translateY(0) scale(1); }
  34%, 68% { transform: translateY(-3px) scale(.992, 1.025); }
}
@keyframes workflow-douniu-idle-peek {
  0%, 14%, 100% { transform: translateX(0) rotate(0); }
  31% { transform: translateX(-3px) rotate(-5deg); }
  52% { transform: translateX(3px) rotate(4deg); }
  70% { transform: translateX(1px) rotate(1.5deg); }
  84% { transform: translateX(-1px) rotate(-.8deg); }
}
@keyframes workflow-douniu-pose-soft {
  0%, 100% { transform: translateY(0) scale(1); }
  22% { transform: translateY(-2px) scale(.992, 1.018); }
  52% { transform: translateY(1px) scale(1.012, .99); }
  76% { transform: translateY(-1px) scale(.998, 1.008); }
}
@keyframes workflow-douniu-pose-spring {
  0%, 100% { transform: translateY(0) scale(1); }
  18% { transform: translateY(3px) scale(1.045, .955); }
  38% { transform: translateY(-8px) scale(.97, 1.06); }
  58% { transform: translateY(1px) scale(1.025, .98); }
  76% { transform: translateY(-3px) scale(.99, 1.025); }
}
@keyframes workflow-douniu-pose-double {
  0%, 100% { transform: translateY(0) scale(1); }
  16%, 54% { transform: translateY(2px) scale(1.03, .97); }
  29%, 67% { transform: translateY(-5px) scale(.982, 1.04); }
  40%, 79% { transform: translateY(0) scale(1.014, .99); }
}
@keyframes workflow-douniu-pose-hold {
  0%, 100% { transform: translateY(0) scale(1); }
  24%, 72% { transform: translateY(-3px) scale(.988, 1.03); }
  48% { transform: translateY(-1px) scale(1.01, .995); }
}
@keyframes workflow-douniu-pose-gesture {
  0%, 100% { transform: rotate(0); }
  24% { transform: rotate(-3.2deg); }
  48% { transform: rotate(2.4deg); }
  70% { transform: rotate(-1.4deg); }
}
@keyframes workflow-douniu-pose-open {
  0%, 100% { transform: rotate(0) scale(1); }
  30%, 66% { transform: rotate(-1.5deg) scale(.985, 1.035); }
  48% { transform: rotate(1.5deg) scale(1.015, .992); }
}
@keyframes workflow-douniu-pose-thoughtful {
  0%, 100% { transform: translateX(0) rotate(0); }
  28%, 68% { transform: translateX(2px) rotate(2.8deg); }
  48% { transform: translateX(-1px) rotate(-1.2deg); }
}
@keyframes workflow-douniu-pose-cute {
  0%, 100% { transform: scale(1) rotate(0); }
  24% { transform: scale(1.025) rotate(-2deg); }
  46% { transform: scale(.992, 1.02) rotate(2deg); }
  68% { transform: scale(1.018, .995) rotate(-.8deg); }
}
@keyframes workflow-douniu-pose-dance {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-4px) rotate(-5deg); }
  42% { transform: translateX(4px) rotate(5.5deg); }
  62% { transform: translateX(-2px) rotate(-3deg); }
  80% { transform: translateX(2px) rotate(2deg); }
}
@keyframes workflow-douniu-pose-proud {
  0%, 100% { transform: translateY(0) rotate(0); }
  28%, 68% { transform: translateY(-3px) rotate(1.6deg) scale(.99, 1.025); }
  48% { transform: translateY(-1px) rotate(-1deg) scale(1.012, .995); }
}
@keyframes workflow-douniu-pose-peek {
  0%, 100% { transform: translateX(0) rotate(0); }
  24%, 70% { transform: translateX(3px) rotate(3.8deg); }
  46% { transform: translateX(-2px) rotate(-2deg); }
}
@keyframes workflow-douniu-blink {
  0%, 35%, 38.4%, 43%, 100% { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
  36.1%, 37.3% { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
  40.2%, 41% { opacity: .96; transform: translate(-50%, -50%) scaleY(.94); }
}
@keyframes workflow-douniu-hover-blink {
  0%, 67%, 71%, 100% { opacity: 0; transform: translate(-50%, -50%) scaleY(0); }
  68.4%, 69.7% { opacity: 1; transform: translate(-50%, -50%) scaleY(1); }
}
@keyframes workflow-douniu-aura {
  0%, 100% { opacity: .42; transform: translateY(5px) scale(.86); }
  50% { opacity: .68; transform: translateY(5px) scale(1.04); }
}
@keyframes workflow-douniu-bean-idle {
  0%, 100% { opacity: .26; transform: translate(-50%, -50%) scale(.78); }
  50% { opacity: .5; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes workflow-douniu-curious {
  0%, 100% { transform: translateX(0) rotate(-1.4deg); }
  28% { transform: translateX(-3px) rotate(-4.8deg); }
  52% { transform: translateX(3px) rotate(3.8deg); }
  74% { transform: translateX(1px) rotate(1.25deg); }
}
@keyframes workflow-douniu-hover-lift {
  0%, 100% { transform: translateY(-2px) scale(1.012); }
  48% { transform: translateY(-7px) scale(.992, 1.035); }
}
@keyframes workflow-douniu-settle-lift {
  0% { transform: translateY(-6px) scale(.99, 1.035); }
  32% { transform: translateY(3px) scale(1.045, .955); }
  58% { transform: translateY(-2px) scale(.982, 1.022); }
  80% { transform: translateY(1px) scale(1.01, .991); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes workflow-douniu-settle-twist {
  0% { transform: rotate(var(--workflow-pet-drag-angle)); }
  36% { transform: rotate(-3.2deg); }
  64% { transform: rotate(1.8deg); }
  84% { transform: rotate(-.7deg); }
  100% { transform: rotate(0); }
}
@keyframes workflow-douniu-activate-hop {
  0% { transform: translateY(0) scale(1); }
  28% { transform: translateY(5px) scale(1.07, .91); }
  66% { transform: translateY(-9px) scale(.965, 1.07); }
  100% { transform: translateY(-3px) scale(1.012); }
}
@keyframes workflow-douniu-activate-twist {
  0% { transform: rotate(0); }
  28% { transform: rotate(-4.5deg); }
  66% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}
.workflow-agent-input-flow.is-submitting :is(.workflow-agent-input-flow-step, footer) { opacity: .48; pointer-events: none; }
@keyframes workflow-agent-progress-letter { 0%, 100% { opacity: .4; transform: translateY(0) scale(1); } 20% { opacity: 1; transform: translateY(0) scale(1.1); } 40% { opacity: .7; transform: translateY(0) scale(1); } }
@keyframes workflow-agent-spinner-color { 0% { background-color: #b8ee00; } 100% { background-color: rgba(184, 238, 0, .16); } }
@keyframes workflow-agent-caret { 0%, 48% { opacity: 1; } 49%, 100% { opacity: .18; } }
@keyframes workflow-agent-live-dots { 0%, 32.99%, 100% { content: "."; } 33%, 65.99% { content: ".."; } 66%, 99.99% { content: "..."; } }
@keyframes workflow-agent-generation-dot { 0%,100% { opacity:.25; transform:translateY(0); } 50% { opacity:1; transform:translateY(-4px); } }

/* Standalone custom service route v172. */
html:has(.custom-service-standalone),
body.custom-service-standalone {
  min-height: 100%;
  margin: 0;
  background: #090a0a;
}

html:has(.custom-service-standalone) {
  scroll-behavior: smooth;
}

.custom-service-standalone :is(#serviceHome, #customWorkflowService, #customDevelopmentService, #customProjectService, #customServiceCases) {
  scroll-margin-top: 92px;
}

body.custom-service-standalone {
  overflow-x: hidden;
}

.custom-service-standalone-main,
.custom-service-standalone .custom-service-page {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0 0 92px;
}

.service-contact-dialog {
  width: min(620px, calc(100vw - 36px));
  padding: 44px;
  color: #eff1ed;
  background: #151717;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .56);
}

.service-contact-dialog::backdrop {
  background: rgba(0, 0, 0, .74);
}

.service-contact-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  color: rgba(241, 243, 239, .62);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
}

.service-contact-dialog > span {
  color: #ff7357;
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .08em;
}

.service-contact-dialog h2 {
  margin: 16px 0 14px;
  color: #f2f3ef;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -.035em;
}

.service-contact-dialog > p {
  max-width: 540px;
  margin: 0 0 30px;
  color: rgba(232, 235, 231, .5);
  font-size: 14px;
  line-height: 1.7;
}

.service-contact-dialog > div {
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.service-contact-dialog article {
  display: grid;
  min-height: 82px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.service-contact-dialog article > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: #121313;
  background: #e8e9e4;
  border-radius: 50%;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.service-contact-dialog article span,
.service-contact-dialog article b,
.service-contact-dialog article small {
  display: block;
}

.service-contact-dialog article b {
  color: rgba(243, 245, 241, .9);
  font-size: 14px;
  font-weight: 600;
}

.service-contact-dialog article small {
  margin-top: 5px;
  color: rgba(232, 235, 231, .43);
  font-size: 12px;
}

.service-contact-dialog article button {
  min-height: 38px;
  padding: 0 14px;
  color: rgba(244, 246, 242, .82);
  background: rgba(255, 255, 255, .06);
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.service-contact-dialog article button:hover {
  color: #151716;
  background: #ff7357;
  border-color: #ff7357;
}

.service-contact-dialog output {
  display: block;
  min-height: 20px;
  margin-top: 16px;
  color: #ff927b;
  font-size: 12px;
}

@media (max-width: 620px) {
  .service-contact-dialog { padding: 36px 24px 24px; }
  .service-contact-dialog article { grid-template-columns: 38px minmax(0, 1fr); padding: 14px 0; }
  .service-contact-dialog article button { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.custom-service-standalone) { scroll-behavior: auto; }
}

/* Custom service studio, editorial redesign v170. */
body.custom-service-open .home-primary-header {
  display: none !important;
}

body:has(.koozee-home):has(.home-primary-header) .custom-service-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 92px;
  background: #090a0a;
}

.service-studio-header {
  position: sticky;
  z-index: 40;
  top: 0;
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(56px, calc((100vw - 1868px) / 2));
  background: rgba(9, 10, 10, .96);
  border-bottom: 1px solid rgba(240, 243, 239, .08);
}

.service-studio-header > a {
  display: inline-flex;
  align-items: center;
}

.service-studio-header > nav {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.service-studio-header > nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  color: rgba(237, 240, 236, .5);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease-out, background-color .18s ease-out;
}

.service-studio-header > nav a:hover {
  color: rgba(247, 248, 245, .92);
}

.service-studio-header > nav a.is-active {
  color: #f6f7f4;
  background: #202222;
}

.service-studio-header > a img {
  display: block;
  width: 126px;
  height: auto;
}

.service-studio-header > button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  overflow: hidden;
  background: #191b1b;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color .2s ease-out, transform .2s cubic-bezier(.23, 1, .32, 1);
}

.service-studio-header > button:hover {
  border-color: rgba(255, 255, 255, .42);
  transform: translateY(-1px);
}

.service-studio-header > button:active {
  transform: scale(.96);
}

.service-studio-header > button:focus-visible,
.service-studio-header > a:focus-visible {
  outline: 2px solid #ff7357;
  outline-offset: 4px;
}

.service-studio-header > button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-studio {
  --studio-margin: max(56px, calc((100vw - 1868px) / 2));
  --studio-accent: #ff7357;
  --studio-ink: #f0f1ee;
  --studio-muted: rgba(232, 235, 231, .52);
  --studio-line: rgba(240, 243, 239, .13);
  overflow: hidden;
  color: var(--studio-ink);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .065) .7px, transparent .8px);
  background-size: 22px 22px;
}

.service-studio-hero {
  display: grid;
  min-height: calc(100vh - 76px);
  grid-template-columns: minmax(520px, .92fr) minmax(500px, 1.08fr);
  align-items: stretch;
  margin: 0 var(--studio-margin);
  padding: 42px 0 72px;
}

.service-studio-hero__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-end;
  padding: 62px clamp(52px, 5vw, 96px) 46px 0;
}

.service-studio-label,
.service-studio-process > header > span,
.service-studio-cases header > div > span,
.service-studio-contact span {
  color: var(--studio-accent);
  font-size: 13px;
  font-weight: 680;
  letter-spacing: .08em;
}

.service-studio-hero h1 {
  margin: 24px 0 30px;
  color: var(--studio-ink);
  font-size: clamp(58px, 5.25vw, 96px);
  font-weight: 610;
  letter-spacing: -.062em;
  line-height: .98;
  text-wrap: balance;
}

.service-studio-hero__copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--studio-muted);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.service-studio-hero__actions {
  display: flex;
  gap: 10px;
  margin-top: 48px;
}

.service-studio-hero__actions a,
.service-studio-chapter__copy > button,
.service-studio-contact button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 20px;
  color: #121313;
  background: var(--studio-ink);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color .2s ease-out, background-color .2s ease-out, transform .2s cubic-bezier(.23, 1, .32, 1);
}

.service-studio-hero__actions a + a {
  color: rgba(240, 241, 238, .82);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--studio-line);
}

.service-studio-hero__actions a:hover,
.service-studio-chapter__copy > button:hover,
.service-studio-contact button:hover {
  color: #fff;
  background: var(--studio-accent);
  transform: translateY(-2px);
}

.service-studio-hero__actions a:active,
.service-studio-chapter__copy > button:active,
.service-studio-contact button:active {
  transform: scale(.97);
}

.service-studio-hero__actions a:focus-visible,
.service-studio-chapter__copy > button:focus-visible,
.service-studio-cases nav button:focus-visible,
.service-studio-contact button:focus-visible {
  outline: 2px solid var(--studio-accent);
  outline-offset: 4px;
}

.service-studio-hero__actions span,
.service-studio-chapter__copy > button span,
.service-studio-contact button span {
  font-size: 18px;
  font-weight: 450;
}

.service-studio-hero__visual {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: #151616;
}

.service-studio-hero__visual::after {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 5, .18);
  content: "";
  pointer-events: none;
}

.service-studio-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-studio-hero__visual figcaption {
  position: absolute;
  z-index: 2;
  right: 32px;
  bottom: 30px;
  left: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 18px;
  color: rgba(249, 250, 247, .88);
  border-top: 1px solid rgba(255, 255, 255, .32);
  font-size: 12px;
}

.service-studio-hero__visual figcaption b {
  font-weight: 520;
  letter-spacing: .02em;
}

.service-studio-hero__visual > i {
  position: absolute;
  z-index: 2;
  top: 30px;
  left: 32px;
  color: rgba(255, 255, 255, .84);
  font-size: 13px;
  font-style: normal;
  font-weight: 720;
  letter-spacing: .1em;
  line-height: 1.32;
}

.service-studio-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 var(--studio-margin);
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-principles p {
  display: grid;
  min-height: 132px;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0 34px 0 0;
}

.service-studio-principles p + p {
  padding-left: 34px;
  border-left: 1px solid var(--studio-line);
}

.service-studio-principles span {
  color: var(--studio-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.service-studio-principles strong {
  color: rgba(239, 242, 238, .78);
  font-size: 15px;
  font-weight: 560;
}

.service-studio-chapter {
  margin-top: 130px;
  padding: 0 var(--studio-margin) 136px;
}

.service-studio-chapter > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 0 32px;
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-chapter > header > span {
  color: var(--studio-accent);
  font-size: clamp(68px, 7vw, 112px);
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: .8;
}

.service-studio-chapter > header p {
  margin: 0;
  color: rgba(240, 242, 239, .88);
  font-size: 19px;
  font-weight: 570;
  line-height: 1.45;
  text-align: right;
}

.service-studio-chapter > header p b {
  color: rgba(232, 235, 231, .42);
  font-size: 13px;
  font-weight: 520;
}

.service-studio-chapter__layout {
  display: grid;
  grid-template-columns: minmax(410px, .78fr) minmax(560px, 1.22fr);
  gap: clamp(64px, 8vw, 148px);
  align-items: center;
  padding-top: 72px;
}

.service-studio-chapter__copy h2 {
  margin: 0 0 30px;
  color: var(--studio-ink);
  font-size: clamp(42px, 4vw, 68px);
  font-weight: 590;
  letter-spacing: -.052em;
  line-height: 1.08;
  text-wrap: balance;
}

.service-studio-chapter__copy > p {
  max-width: 620px;
  margin: 0;
  color: var(--studio-muted);
  font-size: 17px;
  line-height: 1.8;
  text-wrap: pretty;
}

.service-studio-suitable {
  margin: 42px 0 40px;
  padding-top: 22px;
  border-top: 1px solid var(--studio-line);
}

.service-studio-suitable > span {
  color: rgba(232, 235, 231, .4);
  font-size: 12px;
}

.service-studio-suitable ul {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.service-studio-suitable li {
  position: relative;
  margin-top: 12px;
  padding-left: 18px;
  color: rgba(239, 242, 238, .76);
  font-size: 14px;
  line-height: 1.55;
}

.service-studio-suitable li::before {
  position: absolute;
  top: .62em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--studio-accent);
  border-radius: 50%;
  content: "";
}

.service-studio-chapter__visual {
  position: relative;
  min-width: 0;
  height: clamp(470px, 42vw, 720px);
  margin: 0;
  overflow: hidden;
  background: #141616;
}

.service-studio-chapter__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s cubic-bezier(.23, 1, .32, 1);
}

.service-studio-chapter:hover .service-studio-chapter__visual img {
  transform: scale(1.012);
}

.service-studio-chapter__visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  min-height: 76px;
  align-items: center;
  padding: 0 24px;
  color: rgba(246, 248, 245, .78);
  background: rgba(7, 9, 9, .88);
  font-size: 11px;
}

.service-studio-chapter__visual figcaption b {
  color: #fff;
  font-size: 12px;
  font-weight: 620;
}

.service-studio-chapter__visual figcaption span {
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .16);
}

.service-studio-chapter--project {
  margin-top: 0;
  padding-top: 112px;
  color: #171918;
  background: #e7e8e3;
}

.service-studio-development {
  display: grid;
  grid-template-columns: minmax(390px, .72fr) minmax(620px, 1.28fr);
  gap: clamp(64px, 8vw, 140px);
  align-items: center;
  padding: 128px var(--studio-margin) 136px;
  border-top: 1px solid var(--studio-line);
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-development__copy > span {
  color: var(--studio-accent);
  font-size: 12px;
  font-weight: 680;
  letter-spacing: .1em;
}

.service-studio-development__copy h2,
.service-studio-faq h2 {
  margin: 22px 0 28px;
  color: var(--studio-ink);
  font-size: clamp(42px, 4vw, 68px);
  font-weight: 590;
  letter-spacing: -.052em;
  line-height: 1.08;
  text-wrap: balance;
}

.service-studio-development__copy > p {
  max-width: 600px;
  margin: 0;
  color: var(--studio-muted);
  font-size: 17px;
  line-height: 1.8;
}

.service-studio-development__copy ul {
  margin: 38px 0 40px;
  padding: 0;
  border-top: 1px solid var(--studio-line);
  list-style: none;
}

.service-studio-development__copy li {
  display: grid;
  min-height: 66px;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-development__copy li span {
  color: rgba(244, 246, 242, .88);
  font-size: 14px;
  font-weight: 600;
}

.service-studio-development__copy li b {
  color: rgba(232, 235, 231, .46);
  font-size: 13px;
  font-weight: 480;
  line-height: 1.55;
}

.service-studio-development__copy > button {
  display: inline-flex;
  min-width: 210px;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 0 20px;
  color: #121313;
  background: var(--studio-accent);
  border: 0;
  border-radius: 2px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease-out, transform .2s cubic-bezier(.23, 1, .32, 1);
}

.service-studio-development__copy > button:hover {
  background: #ff8a72;
  transform: translateY(-2px);
}

.service-studio-development__copy > button:active {
  transform: scale(.97);
}

.service-studio-development__copy > button:focus-visible {
  outline: 2px solid var(--studio-accent);
  outline-offset: 4px;
}

.service-studio-development__copy > button span {
  font-size: 18px;
  font-weight: 450;
}

.service-studio-development__visual {
  position: relative;
  height: clamp(480px, 43vw, 720px);
  margin: 0;
  overflow: hidden;
  background: #151616;
}

.service-studio-development__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-studio-development__visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 24px;
  color: rgba(246, 248, 245, .76);
  background: rgba(7, 9, 9, .9);
  font-size: 11px;
}

.service-studio-development__visual figcaption span {
  color: #fff;
  font-size: 12px;
  font-weight: 620;
}

.service-studio-chapter--project > header {
  border-bottom-color: rgba(19, 22, 20, .18);
}

.service-studio-chapter--project > header p,
.service-studio-chapter--project .service-studio-chapter__copy h2 {
  color: #151716;
}

.service-studio-chapter--project > header p b,
.service-studio-chapter--project .service-studio-chapter__copy > p,
.service-studio-chapter--project .service-studio-suitable > span {
  color: rgba(22, 25, 23, .55);
}

.service-studio-chapter--project .service-studio-suitable {
  border-top-color: rgba(19, 22, 20, .18);
}

.service-studio-chapter--project .service-studio-suitable li {
  color: rgba(22, 25, 23, .78);
}

.service-studio-chapter--project .service-studio-chapter__layout {
  grid-template-columns: minmax(560px, 1.22fr) minmax(410px, .78fr);
}

.service-studio-chapter--project .service-studio-chapter__visual {
  grid-column: 1;
  grid-row: 1;
}

.service-studio-chapter--project .service-studio-chapter__copy {
  grid-column: 2;
}

.service-studio-chapter--project .service-studio-chapter__copy > button {
  color: #fff;
  background: #171918;
}

.service-studio-decision {
  display: grid;
  grid-template-columns: minmax(360px, .82fr) minmax(580px, 1.18fr);
  gap: clamp(72px, 9vw, 160px);
  margin: 0 var(--studio-margin);
  padding: 122px 0;
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-decision > div:first-child > span {
  color: var(--studio-accent);
  font-size: 13px;
}

.service-studio-decision h2,
.service-studio-process h2,
.service-studio-cases h2,
.service-studio-contact h2 {
  margin: 18px 0 0;
  color: var(--studio-ink);
  font-size: clamp(36px, 3.45vw, 60px);
  font-weight: 580;
  letter-spacing: -.048em;
  line-height: 1.1;
  text-wrap: balance;
}

.service-studio-decision__compare {
  border-top: 1px solid var(--studio-line);
}

.service-studio-decision__compare article {
  display: grid;
  min-height: 124px;
  grid-template-columns: 132px minmax(0, 1fr);
  align-content: center;
  column-gap: 28px;
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-decision__compare article span {
  grid-row: 1 / 3;
  color: rgba(232, 235, 231, .42);
  font-size: 12px;
}

.service-studio-decision__compare strong {
  color: rgba(240, 242, 239, .9);
  font-size: 19px;
  font-weight: 600;
}

.service-studio-decision__compare p {
  margin: 8px 0 0;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.55;
}

.service-studio-process,
.service-studio-cases,
.service-studio-contact {
  margin: 0 var(--studio-margin);
}

.service-studio-faq {
  display: grid;
  grid-template-columns: minmax(340px, .75fr) minmax(580px, 1.25fr);
  gap: clamp(72px, 9vw, 160px);
  margin: 0 var(--studio-margin);
  padding: 112px 0 126px;
  border-top: 1px solid var(--studio-line);
}

.service-studio-faq > header > span {
  color: var(--studio-accent);
  font-size: 13px;
  font-weight: 680;
}

.service-studio-faq h2 {
  margin-top: 18px;
  font-size: clamp(34px, 3vw, 50px);
}

.service-studio-faq > div {
  border-top: 1px solid var(--studio-line);
}

.service-studio-faq details {
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-faq summary {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: rgba(242, 244, 241, .88);
  font-size: 15px;
  font-weight: 560;
  list-style: none;
  cursor: pointer;
}

.service-studio-faq summary::-webkit-details-marker {
  display: none;
}

.service-studio-faq summary span {
  color: var(--studio-accent);
  font-size: 20px;
  font-weight: 400;
  transition: transform .2s cubic-bezier(.23, 1, .32, 1);
}

.service-studio-faq details[open] summary span {
  transform: rotate(45deg);
}

.service-studio-faq details p {
  max-width: 690px;
  margin: -4px 44px 24px 0;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.7;
}

.service-studio-process {
  padding: 120px 0 132px;
  border-bottom: 1px solid var(--studio-line);
}

.service-studio-process > header,
.service-studio-cases > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 56px;
  margin-bottom: 54px;
}

.service-studio-process h2,
.service-studio-cases h2 {
  font-size: clamp(34px, 3vw, 50px);
}

.service-studio-process ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--studio-line);
  list-style: none;
}

.service-studio-process li {
  min-height: 190px;
  padding: 24px 24px 20px 0;
}

.service-studio-process li + li {
  padding-left: 24px;
  border-left: 1px solid var(--studio-line);
}

.service-studio-process li span {
  color: var(--studio-accent);
  font-size: 12px;
}

.service-studio-process li strong {
  display: block;
  margin-top: 56px;
  color: rgba(240, 242, 239, .9);
  font-size: 17px;
  font-weight: 590;
}

.service-studio-process li p {
  margin: 10px 0 0;
  color: var(--studio-muted);
  font-size: 12px;
  line-height: 1.55;
}

.service-studio-cases {
  padding: 126px 0 136px;
}

.service-studio-cases header > div > span {
  color: var(--studio-accent);
}

.service-studio-cases nav {
  display: flex;
  gap: 20px;
}

.service-studio-cases nav button {
  min-height: 40px;
  padding: 0;
  color: rgba(232, 235, 231, .42);
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.service-studio-cases nav button:hover,
.service-studio-cases nav button.is-active {
  color: rgba(244, 246, 243, .92);
  border-bottom-color: var(--studio-accent);
}

.service-studio-case-grid {
  display: grid;
  grid-template-columns: 1.16fr .84fr;
  gap: 76px 28px;
  align-items: start;
}

.service-studio-case[hidden] {
  display: none;
}

.service-studio-case:nth-child(3) {
  padding-top: 80px;
}

.service-studio-case figure,
.service-studio-case {
  min-width: 0;
  margin: 0;
}

.service-studio-case > img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #151616;
  filter: saturate(.88) contrast(1.03);
}

.service-studio-case--wide > img {
  aspect-ratio: 16 / 9;
}

.service-studio-case > div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  padding-top: 20px;
}

.service-studio-case > div > span {
  grid-row: 1 / 3;
  color: var(--studio-accent);
  font-size: 11px;
}

.service-studio-case h3 {
  margin: 0;
  color: rgba(242, 244, 241, .92);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -.02em;
}

.service-studio-case p {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--studio-muted);
  font-size: 13px;
  line-height: 1.65;
}

.service-studio-contact {
  display: grid;
  min-height: 380px;
  grid-template-columns: 1fr minmax(320px, .55fr);
  align-items: end;
  gap: 80px;
  padding: 72px 70px;
  color: #151716;
  background: #e7e8e3;
}

.service-studio-contact span,
.service-studio-contact h2 {
  color: #151716;
}

.service-studio-contact > div:last-child {
  padding-bottom: 4px;
}

.service-studio-contact p {
  margin: 0 0 32px;
  color: rgba(21, 23, 22, .6);
  font-size: 15px;
  line-height: 1.65;
}

.service-studio-contact button {
  width: 100%;
  color: #fff;
  background: #161817;
}

@media (max-width: 1180px) {
  .service-studio { --studio-margin: 48px; }
  .service-studio-header > nav a { padding: 0 10px; font-size: 12px; }
  .service-studio-hero { min-height: 720px; grid-template-columns: 1fr 1fr; }
  .service-studio-hero__copy { padding-right: 46px; }
  .service-studio-chapter__layout,
  .service-studio-chapter--project .service-studio-chapter__layout { grid-template-columns: 1fr 1fr; gap: 50px; }
  .service-studio-decision { grid-template-columns: 1fr 1.2fr; gap: 64px; }
  .service-studio-development { grid-template-columns: 1fr 1.18fr; gap: 52px; }
}

@media (max-width: 820px) {
  .service-studio-header { min-height: 68px; padding: 0 20px; }
  .service-studio-header > a img { width: 112px; }
  .service-studio-header > button { width: 40px; height: 40px; }
  .service-studio-header > nav { display: none; }
  .service-studio { --studio-margin: 20px; }
  .service-studio-hero { min-height: auto; grid-template-columns: 1fr; padding: 34px 0 58px; }
  .service-studio-hero__copy { padding: 54px 0 52px; }
  .service-studio-hero h1 { font-size: clamp(50px, 14vw, 76px); }
  .service-studio-hero__visual { height: 74vw; min-height: 400px; }
  .service-studio-principles { grid-template-columns: 1fr; }
  .service-studio-principles p,
  .service-studio-principles p + p { min-height: 96px; padding: 0; border-top: 1px solid var(--studio-line); border-left: 0; }
  .service-studio-principles p:first-child { border-top: 0; }
  .service-studio-chapter { margin-top: 88px; padding-bottom: 92px; }
  .service-studio-chapter--project { margin-top: 0; padding-top: 84px; }
  .service-studio-chapter__layout,
  .service-studio-chapter--project .service-studio-chapter__layout { grid-template-columns: 1fr; gap: 48px; }
  .service-studio-chapter--project .service-studio-chapter__visual,
  .service-studio-chapter--project .service-studio-chapter__copy { grid-column: 1; grid-row: auto; }
  .service-studio-chapter--project .service-studio-chapter__visual { order: 2; }
  .service-studio-chapter__visual { height: min(78vw, 560px); }
  .service-studio-chapter__visual figcaption { grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 18px; }
  .service-studio-chapter__visual figcaption b { grid-column: 1 / -1; }
  .service-studio-chapter__visual figcaption span { padding-left: 0; border-left: 0; }
  .service-studio-decision { grid-template-columns: 1fr; gap: 50px; padding: 88px 0; }
  .service-studio-development { grid-template-columns: 1fr; gap: 48px; padding: 88px var(--studio-margin); }
  .service-studio-development__visual { height: min(78vw, 560px); }
  .service-studio-process > header,
  .service-studio-cases > header { align-items: flex-start; flex-direction: column; }
  .service-studio-process ol { grid-template-columns: 1fr 1fr; }
  .service-studio-process li,
  .service-studio-process li + li { min-height: 148px; padding: 20px 16px 18px 0; border-top: 1px solid var(--studio-line); border-left: 0; }
  .service-studio-process li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--studio-line); }
  .service-studio-process li strong { margin-top: 34px; }
  .service-studio-case-grid { grid-template-columns: 1fr; gap: 62px; }
  .service-studio-case:nth-child(3) { padding-top: 0; }
  .service-studio-case > div { grid-template-columns: 1fr; gap: 9px; }
  .service-studio-case > div > span { grid-row: auto; }
  .service-studio-contact { grid-template-columns: 1fr; gap: 52px; padding: 50px 30px; }
  .service-studio-faq { grid-template-columns: 1fr; gap: 42px; padding: 88px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .service-studio-hero__actions a,
  .service-studio-chapter__copy > button,
  .service-studio-contact button,
  .service-studio-chapter__visual img { transition: none; }
}
body.admin-route .admin-model-spec-list :is(code, strong),
body.admin-route .admin-model-price-summary strong { overflow-wrap: anywhere; color: #484f57; font-size: 12px; font-weight: 590; line-height: 1.5; }
body.admin-route .admin-message-compose :is(input:not([type="checkbox"]), textarea) { width: 100%; min-height: 38px; padding: 8px 10px; color: #30353c; background: #fafbfc; border: 1px solid #dfe3e8; border-radius: 7px; outline: 0; font-size: 11px; }
body.admin-route .admin-message-compose :is(input:not([type="checkbox"]), textarea):focus { background: #fff; border-color: #85b6f6; box-shadow: 0 0 0 3px rgba(47, 128, 237, .12); }

body.admin-route :is(button, a, summary, [role="switch"]) {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 100ms ease;
}
body.admin-route :is(button:not(:disabled), a[href], summary, [role="switch"]) { cursor: pointer; }
body.admin-route :is(button:not(:disabled), summary):hover { border-color: #cbd2da; box-shadow: 0 4px 12px rgba(31, 39, 51, .08); transform: translateY(-1px); }
body.admin-route :is(button:not(:disabled), summary, a[href]):active { box-shadow: none; transform: translateY(0) scale(.98); }
body.admin-route :is(button, a, summary, input, textarea):focus-visible { outline: 0; border-color: #7facf0; box-shadow: 0 0 0 3px rgba(47, 128, 237, .16); }
.admin-users-table .admin-user-cell :is(strong, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-content-workspace .admin-editor-details[open] :is(input, select) {
  min-height: 36px;
  padding: 7px 10px;
  background: #fafbfc;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  font-size: 11px;
}

.admin-content,
#adminContent {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.record-empty {
  padding: 30px 18px;
  color: #969ca6;
  font-size: 12px;
  text-align: center;
}

/* Video detail: focused playback on the left, reusable creative context on the right. */
body.showcase-detail-open {
  overflow: hidden;
}

.showcase-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 32px;
  animation: showcase-detail-enter 180ms ease both;
}

.showcase-detail-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  background: rgba(3, 4, 5, .78);
  border: 0;
  backdrop-filter: blur(14px);
  cursor: default;
}

.showcase-detail-panel {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 64px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
  background: #1a1b1d;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .56), inset 0 1px 0 rgba(255, 255, 255, .035);
}

.showcase-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.46fr) minmax(340px, .74fr);
  min-height: min(690px, calc(100vh - 64px));
}

.showcase-detail-media {
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  background: #060708;
}

.showcase-detail-media video {
  display: block;
  width: 100%;
  max-height: calc(100vh - 64px);
  background: #060708;
  object-fit: contain;
}

.showcase-detail-aside {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 42px 34px 30px;
  background: linear-gradient(145deg, #222326, #191a1c);
}

.showcase-detail-eyebrow {
  align-self: flex-start;
  padding: 6px 9px;
  color: #8ce8df;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  background: rgba(92, 216, 204, .1);
  border: 1px solid rgba(112, 231, 219, .16);
  border-radius: 999px;
}

.showcase-detail-aside h2 {
  margin: 22px 0 8px;
  color: #f4f5f6;
  font-size: clamp(23px, 2vw, 30px);
  font-weight: 580;
  letter-spacing: -.03em;
  line-height: 1.18;
}

.showcase-detail-author,
.showcase-detail-note {
  margin: 0;
  color: rgba(215, 218, 221, .55);
  font-size: 13px;
  line-height: 1.55;
}

.showcase-detail-prompt {
  flex: 1;
  min-height: 150px;
  margin: 28px 0 24px;
  padding: 18px;
  overflow: auto;
  background: rgba(8, 9, 11, .48);
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
}

.showcase-detail-prompt > span {
  display: block;
  margin-bottom: 10px;
  color: rgba(236, 238, 240, .9);
  font-size: 13px;
  font-weight: 600;
}

.showcase-detail-prompt p {
  margin: 0;
  color: rgba(210, 214, 218, .7);
  font-size: 13px;
  line-height: 1.75;
}

.showcase-detail-recreate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  color: #061414;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  background: #91ece2;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.showcase-detail-recreate svg,
.showcase-detail-close svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.showcase-detail-recreate:hover,
.showcase-detail-recreate:focus-visible {
  background: #b5f5ed;
  box-shadow: 0 10px 22px rgba(82, 224, 211, .18);
  outline: none;
  transform: translateY(-1px);
}

.showcase-detail-note {
  margin-top: 15px;
  font-size: 11px;
}

.showcase-detail-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: rgba(242, 243, 245, .72);
  background: rgba(13, 14, 16, .66);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.showcase-detail-close:hover,
.showcase-detail-close:focus-visible {
  color: #fff;
  background: rgba(49, 51, 55, .94);
  outline: none;
  transform: rotate(5deg);
}

@keyframes showcase-detail-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 820px) {
  .showcase-detail-modal { align-items: start; padding: 14px; overflow: auto; }
  .showcase-detail-panel { width: 100%; max-height: none; }
  .showcase-detail-layout { grid-template-columns: 1fr; min-height: 0; }
  .showcase-detail-media video { max-height: 56vh; }
  .showcase-detail-aside { min-height: 390px; padding: 28px 22px 22px; }
  .showcase-detail-prompt { min-height: 122px; margin: 22px 0; }
}

/* Keep the homepage sections in a real vertical stack. */
body:has(.koozee-home) .home-showcase-feature-row {
  position: relative;
  top: auto;
  left: auto;
  margin: 35px auto 0;
  transform: none;
}

body:has(.koozee-home) .home-template-library {
  margin-top: 36px;
}

@media (max-width: 720px) {
  body:has(.koozee-home) .home-showcase-feature-row {
    margin-top: 62px;
  }
}

/* Final homepage stacking order: carousel, feature buttons, then inspiration cards. */
body:has(.koozee-home) .home-showcase-feature-row {
  position: relative;
  top: auto;
  left: auto;
  margin: 35px auto 0;
  transform: none;
}

body:has(.koozee-home) .home-template-library {
  margin-top: 36px;
}

@media (max-width: 720px) {
  body:has(.koozee-home) .home-showcase-feature-row {
    margin-top: 62px;
  }
}

/* Homepage inspiration library: same dark system, with the reference's browseable structure. */
body:has(.koozee-home) .home-template-library {
  position: relative;
  z-index: 6;
  width: min(1400px, calc(100% - 48px));
  margin: clamp(156px, 9vw, 220px) auto 0;
  padding-bottom: 76px;
}

body:has(.koozee-home) .home-template-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

body:has(.koozee-home) .home-template-heading {
  display: grid;
  gap: 7px;
}

body:has(.koozee-home) .home-template-kicker {
  color: rgba(132, 219, 213, .72);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  line-height: 1;
}

body:has(.koozee-home) .home-template-heading h2 {
  margin: 0;
  color: #f1f1f2;
  font-size: clamp(15px, 1.22vw, 21px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1;
}

body:has(.koozee-home) .home-template-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

body:has(.koozee-home) .home-template-tabs button {
  min-height: 30px;
  padding: 0 12px;
  color: rgba(214, 214, 216, .62);
  font-size: 12px;
  font-weight: 450;
  line-height: 30px;
  background: #151617;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

body:has(.koozee-home) .home-template-tabs button:hover,
body:has(.koozee-home) .home-template-tabs button:focus-visible {
  color: #f1f1f2;
  background: #242526;
  outline: none;
}

body:has(.koozee-home) .home-template-tabs button.is-active {
  color: #8ce8df;
  background: rgba(91, 209, 200, .14);
}

body:has(.koozee-home) .home-template-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

body:has(.koozee-home) .home-template-card {
  min-width: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 12px;
  transition: background 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body:has(.koozee-home) .home-template-card:hover {
  background: #1a1b1c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .22);
  transform: translateY(-1px);
}

body:has(.koozee-home) .home-template-card-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body:has(.koozee-home) .home-template-card-button:focus-visible {
  outline: 2px solid rgba(140, 232, 223, .8);
  outline-offset: -2px;
}

body:has(.koozee-home) .home-template-card-preview-cover {
  position: absolute;
  z-index: 1;
  inset: 0 auto auto 0;
  pointer-events: none;
  opacity: 1;
  transition: opacity 120ms ease;
}

body:has(.koozee-home) .home-template-card-button.is-previewing .home-template-card-preview-cover {
  opacity: 0;
}

body:has(.koozee-home) .home-template-card-button > img,
body:has(.koozee-home) .home-template-card-button > video {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 44%;
  background: #202123;
  border-radius: 12px;
  filter: saturate(.92);
  transition: border-radius 180ms ease, filter 180ms ease, transform 260ms ease;
}

body:has(.koozee-home) .home-template-card:hover .home-template-card-button > img,
body:has(.koozee-home) .home-template-card:hover .home-template-card-button > video {
  filter: saturate(1) brightness(.96);
  transform: scale(1.018);
}

body:has(.koozee-home) .home-template-card-meta {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: 0;
  padding: 0 2px;
  overflow: hidden;
  opacity: 0;
  text-align: left;
  transition: max-height 220ms ease, padding 220ms ease, opacity 150ms ease;
}

body:has(.koozee-home) .home-template-card:hover .home-template-card-meta,
body:has(.koozee-home) .home-template-card:focus-within .home-template-card-meta {
  max-height: 80px;
  padding: 11px 2px 6px;
  opacity: 1;
}

body:has(.koozee-home) .home-template-author {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

body:has(.koozee-home) .home-template-author > img {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 50%;
  object-fit: cover;
}

body:has(.koozee-home) .home-template-author > span {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

body:has(.koozee-home) .home-template-author strong {
  overflow: hidden;
  color: rgba(244, 244, 246, .96);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.koozee-home) .home-template-author time {
  flex: 0 0 auto;
  color: rgba(214, 214, 216, .46);
  font-size: 10px;
  font-weight: 460;
  line-height: 1.2;
}

body:has(.koozee-home) .home-template-work-title {
  overflow: hidden;
  padding-left: 1px;
  color: rgba(222, 222, 225, .7);
  font-size: 13px;
  font-weight: 460;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.koozee-home) .home-template-card-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

body:has(.koozee-home) .home-template-like,
body:has(.koozee-home) .home-template-recreate {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #f5f5f6;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease;
}

body:has(.koozee-home) .home-template-like {
  top: 12px;
  right: 12px;
  min-height: 36px;
  padding: 0 11px;
  background: linear-gradient(145deg, rgba(21, 24, 25, .94), rgba(8, 10, 11, .94));
  border: 0;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .035);
  pointer-events: auto;
  cursor: pointer;
}

body:has(.koozee-home) .home-template-like svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body:has(.koozee-home) .home-template-like b {
  font-size: 12px;
  font-weight: 560;
}

body:has(.koozee-home) .home-template-like.is-liked {
  color: #ff5c65;
}

body:has(.koozee-home) .home-template-like.is-liked svg {
  fill: currentColor;
}

body:has(.koozee-home) .home-template-recreate {
  right: 12px;
  bottom: 15px;
  gap: 5px;
  min-height: 28px;
  padding: 0 8px;
  color: rgba(246, 246, 248, .94);
  font-size: 12px;
  font-weight: 540;
  border-radius: 10px;
  pointer-events: auto;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, opacity 160ms ease, transform 160ms ease;
}

body:has(.koozee-home) .home-template-recreate svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body:has(.koozee-home) .home-template-recreate:hover {
  color: #fff;
  background: #383839;
}

body:has(.koozee-home) .home-template-card:hover .home-template-like,
body:has(.koozee-home) .home-template-card:hover .home-template-recreate,
body:has(.koozee-home) .home-template-card-button:focus-visible .home-template-like,
body:has(.koozee-home) .home-template-card-button:focus-visible .home-template-recreate {
  opacity: 1;
  transform: translateY(0);
}

body:has(.koozee-home) .home-template-card[hidden] {
  display: none;
}

/* Keep the feature row in document flow so the library always starts after it. */
body:has(.koozee-home) .home-showcase-feature-row {
  position: relative;
  top: auto;
  left: auto;
  margin: 35px auto 0;
  transform: none;
}

body:has(.koozee-home) .home-template-library {
  margin-top: 36px;
}

@media (max-width: 1180px) {
  body:has(.koozee-home) .home-showcase-feature-row {
    margin-top: 35px;
  }

  body:has(.koozee-home) .home-template-library {
    margin-top: 36px;
  }

  body:has(.koozee-home) .home-template-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body:has(.koozee-home) .home-showcase-feature-row {
    margin-top: 62px;
  }

  body:has(.koozee-home) .home-template-library {
    width: calc(100% - 24px);
    margin-top: 36px;
    padding-bottom: 48px;
  }

  body:has(.koozee-home) .home-template-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 16px;
  }

  body:has(.koozee-home) .home-template-tabs {
    justify-content: flex-start;
  }

  body:has(.koozee-home) .home-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  body:has(.koozee-home) .home-template-card-meta {
    gap: 7px;
    padding: 10px 2px 7px;
  }
}

/* The workflow home is a separate surface, never a section pushed below the homepage. */
body.workflow-embedded-open .koozee-home .home-showcase,
body.workflow-embedded-open .koozee-home .koozee-content {
  display: none !important;
}

body.workflow-embedded-open .koozee-home .workflow-home-embedded {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 164px;
  z-index: 40;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 960px) {
  body.workflow-embedded-open .koozee-home .workflow-home-embedded {
    left: 92px;
  }
}

@media (max-width: 720px) {
  body.workflow-embedded-open .koozee-home .workflow-home-embedded {
    left: 0;
  }
}

/* Keep the ratio control stable while the preview frame follows the selection. */
body:has(.prompt-workspace) .settings-current-ratio-icon {
  display: grid;
  place-items: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: currentColor;
}

body:has(.prompt-workspace) .settings-current-ratio-icon svg {
  display: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:has(.prompt-workspace) .settings-current-ratio-icon i {
  display: block;
  width: 15px;
  height: 15px;
  box-sizing: border-box;
  border: 1.8px solid currentColor;
  border-radius: 2px;
}

body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="auto"] svg {
  display: block;
}

body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="auto"] i {
  display: none;
}

body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="3-2"] i { width: 18px; height: 12px; }
body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="2-3"] i { width: 12px; height: 18px; }
body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="4-3"] i { width: 18px; height: 14px; }
body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="3-4"] i { width: 14px; height: 18px; }
body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="16-9"] i { width: 20px; height: 11px; }
body:has(.prompt-workspace) .settings-current-ratio-icon[data-current-ratio-icon="9-16"] i { width: 11px; height: 20px; }

/* Light premium home refresh */
body:has(.page-home:not([hidden])) .site-header {
  display: none;
}

.page-home {
  min-height: 100vh;
  padding-top: 0;
  color: #17211c;
  background: #f7f8f4;
}

.app-home {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(28, 42, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(28, 42, 36, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #fbfbf7 0%, #f4f7f3 48%, #eef5f7 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.app-home::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(115deg, rgba(104, 184, 142, 0.16), transparent 32%),
    linear-gradient(245deg, rgba(104, 121, 184, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent 42%);
}

.app-rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  width: 72px;
  padding: 18px 0 22px;
  flex-direction: column;
  align-items: center;
  color: #66756d;
  background: rgba(255, 255, 255, 0.88);
  border-right: 1px solid rgba(37, 54, 45, 0.1);
  box-shadow: 10px 0 30px rgba(35, 48, 42, 0.05);
  backdrop-filter: blur(18px);
}

.app-rail-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 38px;
  color: #fff;
  background: linear-gradient(135deg, #10281c, #4b6fff 54%, #ff7d55);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(16, 40, 28, 0.14);
}

.app-rail nav,
.app-rail-bottom {
  display: grid;
  gap: 16px;
}

.app-rail nav {
  flex: 1;
  align-content: start;
}

.app-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.app-rail a:hover,
.app-rail a.active {
  color: #10281c;
  background: #eef8f2;
  border-color: rgba(104, 184, 142, 0.26);
}

.app-rail a:hover {
  transform: translateY(-1px);
}

.app-rail a i {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  background: #ff6b55;
  border: 2px solid #fff;
  border-radius: 50%;
}

.app-home-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-left: 72px;
}

.app-home-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 34px;
  background: rgba(251, 251, 247, 0.82);
  border-bottom: 1px solid rgba(37, 54, 45, 0.08);
  backdrop-filter: blur(18px);
}

.app-brand-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #101713;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: 0;
}

.app-brand-dark em {
  padding: 4px 8px;
  color: #365447;
  background: #e9f3ed;
  border: 1px solid rgba(104, 184, 142, 0.18);
  border-radius: 6px;
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

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

.app-invite-pill,
.app-charge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 17px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}

.app-invite-pill {
  color: #304238;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(37, 54, 45, 0.12);
}

.app-charge-pill {
  color: #fff;
  background: #111814;
  border: 1px solid #111814;
  box-shadow: 0 12px 26px rgba(17, 24, 20, 0.16);
}

.app-home-content {
  width: min(1440px, calc(100% - 88px));
  margin: 0 auto;
  padding: 76px 0 96px;
}

.app-hero-board {
  display: grid;
  gap: 42px;
}

.app-hero-board h1 {
  max-width: 880px;
  color: #111814;
  text-align: left;
  font-size: clamp(42px, 5.2vw, 76px);
  font-weight: 950;
  line-height: 1.02;
}

.app-feature-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr;
  gap: 18px;
  margin-top: 0;
}

.app-feature-card {
  position: relative;
  min-height: 264px;
  overflow: hidden;
  color: #fff;
  background: #e9efe9;
  border: 1px solid rgba(31, 46, 39, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(31, 46, 39, 0.12);
  isolation: isolate;
}

.app-feature-card::after {
  position: absolute;
  inset: 34% 0 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(10, 18, 14, 0.18) 24%, rgba(10, 18, 14, 0.78));
}

.app-feature-card img {
  width: 100%;
  height: 100%;
  min-height: 264px;
  object-fit: cover;
  transition: transform 0.28s ease, filter 0.28s ease;
}

.app-feature-card:hover img {
  filter: saturate(1.06);
  transform: scale(1.025);
}

.app-feature-card > span {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 9px;
  color: #10281c;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.app-feature-card > div {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
}

.app-feature-card h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34);
}

.app-feature-card a,
.app-feature-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 14px;
  color: #101713;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.app-tool-section {
  margin-top: 70px;
}

.app-tool-section h2 {
  margin-bottom: 18px;
  color: #111814;
  font-size: 22px;
  font-weight: 950;
}

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

.app-tool-tile {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 82px;
  padding: 0 20px;
  color: #17211c;
  text-align: left;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(37, 54, 45, 0.1);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(37, 54, 45, 0.06);
  font-size: 16px;
  font-weight: 880;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.app-tool-tile:hover,
.app-tool-tile.active {
  background: #fff;
  border-color: rgba(104, 184, 142, 0.36);
  box-shadow: 0 18px 42px rgba(37, 54, 45, 0.1);
  transform: translateY(-1px);
}

.app-tool-tile svg {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 7px;
  color: #0d7e50;
  background: #e9f7ef;
  border-radius: 8px;
}

.app-tool-tile:nth-child(3n + 2) svg {
  color: #4b5fd8;
  background: #edf0ff;
}

.app-tool-tile:nth-child(3n) svg {
  color: #c85b3e;
  background: #fff0ea;
}

.app-tool-tile small {
  color: #0b7448;
  font-size: 13px;
  font-weight: 900;
}

.app-studio-panel {
  width: 100%;
  margin-top: 70px;
  padding: 26px;
  color: #18231d;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(37, 54, 45, 0.11);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(37, 54, 45, 0.12);
  backdrop-filter: blur(18px);
}

.studio-panel-head {
  margin-bottom: 22px;
}

.studio-panel-head span {
  color: #4b5fd8;
  font-size: 13px;
  font-weight: 950;
}

.studio-panel-head h2 {
  margin-top: 4px;
  color: #111814;
  font-size: 34px;
  font-weight: 950;
}

.studio-panel-head p {
  margin-top: 4px;
  color: #66756d;
  font-size: 15px;
  font-weight: 760;
}

.app-studio-panel .composer-header strong {
  color: #111814;
}

.app-studio-panel .composer-upload,
.app-studio-panel .icon-tool,
.app-studio-panel .select-tool > button {
  color: #23382e;
  background: #f7faf7;
  border-color: rgba(37, 54, 45, 0.12);
  border-radius: 8px;
  box-shadow: none;
}

.app-studio-panel .composer-upload:hover,
.app-studio-panel .icon-tool:hover,
.app-studio-panel .select-tool > button:hover {
  background: #eef8f2;
  border-color: rgba(104, 184, 142, 0.28);
}

.app-studio-panel textarea {
  color: #111814;
  background: #fbfcfa;
  border-color: rgba(37, 54, 45, 0.13);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.app-studio-panel textarea:focus {
  border-color: rgba(104, 184, 142, 0.58);
  box-shadow: 0 0 0 4px rgba(104, 184, 142, 0.12);
}

.app-studio-panel textarea::placeholder {
  color: #8a9890;
}

.app-studio-panel .select-menu {
  background: #fff;
  border-color: rgba(37, 54, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(37, 54, 45, 0.14);
}

.app-studio-panel .select-menu button {
  color: #24362d;
}

.app-studio-panel .select-menu button:hover,
.app-studio-panel .select-menu button.active {
  color: #0b7448;
  background: #eaf8f0;
}

.generate-button {
  color: #fff;
  background: linear-gradient(135deg, #10281c 0%, #0b7448 52%, #4b6fff 100%);
  border-color: transparent;
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(11, 116, 72, 0.24);
}

.generate-button:hover {
  box-shadow: 0 18px 40px rgba(11, 116, 72, 0.3);
  transform: translateY(-1px);
}

@media (max-width: 1180px) {
  .app-feature-row,
  .app-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-rail {
    display: none;
  }

  .app-home-main {
    padding-left: 0;
  }

  .app-home-topbar {
    height: auto;
    min-height: 62px;
    padding: 12px 16px;
  }

  .app-brand-dark {
    font-size: 21px;
  }

  .app-invite-pill {
    display: none;
  }

  .app-home-content {
    width: calc(100% - 28px);
    padding: 48px 0 68px;
  }

  .app-hero-board {
    gap: 28px;
  }

  .app-hero-board h1 {
    font-size: 38px;
  }

  .app-feature-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .app-feature-card {
    flex: 0 0 82%;
    min-height: 196px;
    scroll-snap-align: start;
  }

  .app-feature-card img {
    min-height: 196px;
  }

  .app-tool-section,
  .app-studio-panel {
    margin-top: 46px;
  }

  .app-tool-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .app-tool-tile {
    min-height: 68px;
    padding: 0 16px;
  }

  .app-studio-panel {
    padding: 16px;
  }

  .studio-panel-head h2 {
    font-size: 27px;
  }
}

/* Final priority lock for the Koozee-style homepage. */
body:has(.koozee-home) .site-header,
body:has(.koozee-home) .home-footer {
  display: none;
}

/* Keep the workbench background clean and uninterrupted. */
body:has(.koozee-home) .koozee-home {
  background: #08090a;
}

body:has(.koozee-home) .page-home {
  padding-top: 0;
  color: #f7f7f7;
  background: #08090a;
}

body:has(.koozee-home) .koozee-home {
  color: #f6f6f6;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.035), transparent 32%),
    radial-gradient(circle at 50% 54%, rgba(104, 184, 142, 0.06), transparent 34%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(180deg, #08090a 0%, #070809 62%, #060708 100%);
  background-size: auto, auto, 78px 78px, auto;
}

body:has(.koozee-home) .koozee-sidebar {
  background: linear-gradient(90deg, rgba(5, 6, 7, 0.96), rgba(8, 9, 10, 0.82));
}

body:has(.koozee-home) .koozee-brand {
  gap: 7px;
  padding-left: 18px;
  font-size: 22px;
  white-space: nowrap;
}

body:has(.koozee-home) .koozee-brand .brand-logo-img {
  height: 26px;
  max-width: 142px;
}

body:has(.koozee-home) .koozee-rail,
body:has(.koozee-home) .koozee-rail-bottom {
  padding-left: 24px;
}

body:has(.koozee-home) .koozee-rail a,
body:has(.koozee-home) .koozee-rail-bottom a {
  color: rgba(255, 255, 255, 0.52);
}

body:has(.koozee-home) .koozee-rail a:hover,
body:has(.koozee-home) .koozee-rail a.active,
body:has(.koozee-home) .koozee-rail-bottom a:hover {
  color: rgba(255, 255, 255, 0.95);
}

body:has(.koozee-home) .koozee-rail svg,
body:has(.koozee-home) .koozee-rail-bottom svg {
  width: 21px;
  height: 21px;
  stroke-width: 2.05;
}

body:has(.koozee-home) .koozee-topbar {
  height: 70px;
  background: linear-gradient(180deg, rgba(8, 9, 10, 0.98), rgba(8, 9, 10, 0.68));
}

body:has(.koozee-home) .koozee-account {
  gap: 8px;
}

body:has(.koozee-home) .koozee-account button {
  height: 40px;
  font-weight: 900;
}

body:has(.koozee-home) .koozee-invite {
  padding: 0 18px;
  background: rgba(28, 29, 32, 0.94);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-size: 15px;
}

body:has(.koozee-home) .koozee-credit {
  min-width: 84px;
  background: #31221d;
  font-size: 16px;
}

body:has(.koozee-home) .koozee-recharge {
  font-size: 15px;
}

body:has(.koozee-home) .koozee-consumption-records {
  font-size: 14px;
}

body:has(.koozee-home) .koozee-avatar {
  width: 42px;
  height: 42px;
}

body:has(.koozee-home) .koozee-content {
  width: min(1500px, calc(100vw - 290px));
  padding-top: 154px;
}

body:has(.koozee-home) .koozee-composer-zone {
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body:has(.koozee-home) .koozee-composer-zone h1 {
  margin: 0 0 74px;
  font-size: clamp(36px, 3.05vw, 56px);
  font-weight: 920;
  text-shadow: 0 12px 36px rgba(0, 0, 0, 0.36);
}

body:has(.koozee-home) .koozee-composer-panel {
  width: min(1120px, 100%);
  margin: 0;
  padding: 18px 20px 20px;
  color: #13231b;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 249, 245, 0.9)),
    #f2faf6;
  border: 1px solid rgba(188, 226, 205, 0.72);
  border-radius: 20px;
  box-shadow:
    0 28px 78px rgba(0, 0, 0, 0.34),
    0 18px 56px rgba(104, 184, 142, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

body:has(.koozee-home) .koozee-composer-panel .studio-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

body:has(.koozee-home) .koozee-composer-panel .studio-panel-head span {
  color: #111a15;
  font-size: 18px;
  font-weight: 950;
}

body:has(.koozee-home) .koozee-composer-panel .composer-upload {
  gap: 9px;
  height: 38px;
  padding: 0 16px;
  color: #183827;
  background: rgba(248, 254, 251, 0.78);
  border: 1px solid rgba(95, 184, 135, 0.22);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 950;
}

body:has(.koozee-home) .koozee-composer-panel .composer-upload svg {
  width: 20px;
  height: 20px;
}

body:has(.koozee-home) .koozee-composer-panel textarea {
  display: block;
  width: 100%;
  min-height: 88px;
  padding: 17px 20px;
  color: #10261c;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(34, 52, 42, 0.1);
  border-radius: 15px;
  outline: 0;
  resize: vertical;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 26px rgba(31, 78, 53, 0.045);
  font-size: 15px;
  font-weight: 720;
  line-height: 1.65;
}

body:has(.koozee-home) .koozee-composer-panel textarea::placeholder {
  color: #94a49b;
}

body:has(.koozee-home) .koozee-composer-panel .reference-strip {
  margin-top: 16px;
}

body:has(.koozee-home) .koozee-composer-panel .composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

body:has(.koozee-home) .koozee-composer-panel .composer-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body:has(.koozee-home) .koozee-composer-panel .icon-tool,
body:has(.koozee-home) .koozee-composer-panel .select-tool > button {
  height: 40px;
  color: #183827;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(40, 70, 52, 0.095);
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(35, 76, 54, 0.075);
  font-size: 14px;
  font-weight: 950;
}

body:has(.koozee-home) .koozee-composer-panel .icon-tool {
  display: inline-grid;
  place-items: center;
  width: 44px;
}

body:has(.koozee-home) .koozee-composer-panel .select-tool > button {
  gap: 8px;
  padding: 0 14px;
}

body:has(.koozee-home) .koozee-composer-panel .icon-tool svg,
body:has(.koozee-home) .koozee-composer-panel .select-tool > button svg {
  width: 19px;
  height: 19px;
}

body:has(.koozee-home) .koozee-composer-panel .select-menu {
  background: #fff;
  border-color: rgba(40, 70, 52, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(24, 56, 39, 0.18);
}

body:has(.koozee-home) .koozee-composer-panel .generate-button {
  flex: 0 0 auto;
  gap: 10px;
  height: 46px;
  min-width: 198px;
  padding: 0 20px;
  color: #0b1f15;
  background: linear-gradient(180deg, #71c694, #61b784);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 14px 28px rgba(70, 162, 108, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  font-size: 16px;
  font-weight: 950;
}

body:has(.koozee-home) .koozee-composer-panel .generate-button svg {
  width: 22px;
  height: 22px;
}

body:has(.koozee-home) .koozee-composer-panel .composer-error {
  margin-top: 14px;
  color: #bd2445;
  font-size: 15px;
  font-weight: 900;
}

body:has(.koozee-home) .koozee-composer-panel .composer-error[data-tone="status"] {
  color: #9a9ca3;
  font-weight: 600;
}

body:has(.koozee-home) .koozee-composer-panel .generation-results {
  margin-top: 24px;
}

body:has(.koozee-home) .koozee-composer-panel .generation-results:not([hidden]) + .composer-static-album {
  display: none;
}

body:has(.koozee-home) .koozee-composer-panel .composer-static-album,
body:has(.koozee-home) .koozee-composer-panel .generation-results .album-panel {
  margin-top: 18px;
  padding: 16px;
  color: #10261c;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(44, 79, 59, 0.11);
  border-radius: 15px;
  box-shadow: 0 12px 30px rgba(31, 78, 53, 0.055);
}

body:has(.koozee-home) .koozee-composer-panel .album-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

body:has(.koozee-home) .koozee-composer-panel .album-head h3 {
  color: #10261c;
  font-size: 18px;
  font-weight: 950;
}

body:has(.koozee-home) .koozee-composer-panel .generation-soft-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  color: #183827;
  background: #fff;
  border: 1px solid rgba(44, 79, 59, 0.13);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 900;
}

body:has(.koozee-home) .koozee-composer-panel .generation-soft-button svg {
  width: 20px;
  height: 20px;
}

body:has(.koozee-home) .koozee-composer-panel .album-empty {
  display: grid;
  place-items: center;
  min-height: 58px;
  color: #708277;
  background: rgba(251, 254, 252, 0.92);
  border: 2px dashed rgba(99, 151, 123, 0.18);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 860;
}

body:has(.koozee-home) .koozee-tools {
  margin-top: 64px;
}

body:has(.koozee-home) .koozee-tools h2 {
  margin-bottom: 22px;
  font-size: 23px;
  font-weight: 920;
}

body:has(.koozee-home) .koozee-tool-grid {
  gap: 16px;
}

body:has(.koozee-home) .koozee-tool {
  min-height: 72px;
  padding: 0 24px;
  color: rgba(255, 255, 255, 0.88);
  background: #17191b;
  border-color: rgba(255, 255, 255, 0.055);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 12px 28px rgba(0, 0, 0, 0.18);
  font-size: 16px;
  font-weight: 820;
}

body:has(.koozee-home) .koozee-tool:hover {
  background: #1d1f22;
  border-color: rgba(255, 255, 255, 0.12);
}

body:has(.koozee-home) .koozee-tool svg {
  width: 23px;
  height: 23px;
  color: rgba(255, 255, 255, 0.9);
}

body:has(.koozee-home) .koozee-chat {
  width: 54px;
  height: 54px;
  background: #202124;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

@media (max-width: 1280px) {
  body:has(.koozee-home) .koozee-composer-panel .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  body:has(.koozee-home) .koozee-composer-panel .generate-button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  body:has(.koozee-home) .koozee-content {
    padding-top: 104px;
  }

  body:has(.koozee-home) .koozee-composer-zone h1 {
    margin-bottom: 34px;
  }

  body:has(.koozee-home) .koozee-composer-panel {
    padding: 18px;
    border-width: 5px;
    border-radius: 24px;
  }

  body:has(.koozee-home) .koozee-composer-panel .studio-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  body:has(.koozee-home) .koozee-composer-panel .studio-panel-head span {
    font-size: 23px;
  }

  body:has(.koozee-home) .koozee-composer-panel textarea {
    min-height: 170px;
    padding: 22px;
    font-size: 17px;
  }

  body:has(.koozee-home) .koozee-composer-panel .icon-tool,
  body:has(.koozee-home) .koozee-composer-panel .select-tool > button {
    height: 52px;
    font-size: 16px;
  }

  body:has(.koozee-home) .koozee-composer-panel .generate-button {
    min-width: 0;
    height: 60px;
    font-size: 19px;
  }
}

/* GPT Image-style prompt workspace */
body:has(.prompt-workspace) .koozee-content {
  width: min(1510px, calc(100vw - 260px));
  padding-top: 130px;
}

body:has(.prompt-workspace) .koozee-composer-zone h1 {
  margin-bottom: 48px;
}

body:has(.prompt-workspace) .koozee-composer-panel {
  width: 100%;
  padding: 0;
  color: #f4f5f6;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.prompt-workspace {
  display: grid;
  grid-template-columns: minmax(620px, 1fr) minmax(320px, 420px);
  gap: 26px;
  align-items: start;
  width: 100%;
}

.prompt-editor {
  min-width: 0;
}

.prompt-model-tabs {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  height: 88px;
  overflow: hidden;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 34px 34px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.prompt-model-tabs button {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  font-size: 17px;
  font-weight: 780;
}

.prompt-model-tabs button span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 31px;
  line-height: 1;
}

.prompt-model-tabs button strong {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 780;
}

.prompt-model-tabs button.active {
  color: #fff;
  background:
    radial-gradient(circle at 50% -20%, rgba(118, 250, 255, 0.48), transparent 62%),
    linear-gradient(180deg, rgba(55, 175, 190, 0.66), rgba(35, 40, 43, 0.12) 72%);
}

.prompt-model-tabs button.active::after {
  position: absolute;
  right: 28px;
  bottom: 0;
  left: 28px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(122, 238, 255, 0.75), transparent);
}

.prompt-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr) auto;
  min-height: clamp(520px, 58vh, 720px);
  padding: 40px 34px 30px;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-top: 0;
  border-radius: 0 0 34px 34px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    0 28px 76px rgba(0, 0, 0, 0.32);
}

.prompt-upload-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 88px;
}

body:has(.prompt-workspace) .reference-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0;
}

body:has(.prompt-workspace) .reference-strip[hidden] {
  display: none;
}

body:has(.prompt-workspace) .reference-thumb {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

body:has(.prompt-workspace) .reference-thumb::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  height: 30px;
  content: "图片";
  color: #fff;
  background: rgba(0, 0, 0, 0.36);
  font-size: 14px;
  font-weight: 900;
}

body:has(.prompt-workspace) .reference-thumb button {
  z-index: 2;
}

.prompt-add-image {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  color: rgba(255, 255, 255, 0.78);
  background: #2a2b2f;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 14px;
}

.prompt-add-image svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.7;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea {
  min-height: 260px;
  padding: 42px 0 24px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  resize: none;
  font-size: clamp(22px, 1.55vw, 29px);
  font-weight: 900;
  line-height: 1.5;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea::placeholder {
  color: #fff;
  opacity: 1;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea:focus {
  box-shadow: none;
}

body:has(.prompt-workspace) .composer-footer {
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
}

body:has(.prompt-workspace) .composer-tools {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  background: rgba(25, 26, 29, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
}

body:has(.prompt-workspace) .koozee-composer-panel .icon-tool {
  display: none;
}

body:has(.prompt-workspace) .model-select-tool,
body:has(.prompt-workspace) .count-select-tool {
  display: none;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button {
  height: 52px;
  padding: 0 20px;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 17px;
  font-weight: 780;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool + .select-tool > button {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button svg {
  width: 21px;
  height: 21px;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  height: 56px;
  min-width: 158px;
  padding: 0 26px;
  color: #07120f;
  background: linear-gradient(135deg, #71ecff 0%, #4df0d2 52%, #83f3c1 100%);
  border: 0;
  border-radius: 12px;
  box-shadow:
    0 18px 38px rgba(70, 238, 217, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  font-size: 22px;
  font-weight: 950;
}

body:has(.prompt-workspace) .koozee-composer-panel .composer-error {
  align-self: start;
  margin: 0;
  color: #ff8ca0;
  font-size: 14px;
}


body:has(.prompt-workspace) .koozee-composer-panel .composer-error[data-tone="status"] {
  color: #9a9ca3;
  font-weight: 500;
}

.prompt-preview-panel,
body:has(.prompt-workspace) .generation-results {
  width: 100%;
}

body:has(.prompt-workspace) .generation-results .album-panel,
body:has(.prompt-workspace) .generation-results .generation-result-panel {
  margin: 0;
  padding: 16px;
  color: #f6f7f8;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 16px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

body:has(.prompt-workspace) .generation-results .album-head h3,
body:has(.prompt-workspace) .generation-results .album-head p {
  color: #fff;
}

/* Shared model failure state. Seedance 2.0 may append a redacted, request-scoped diagnostic. */
body:has(.prompt-workspace) .generation-results .generation-result-panel.generation-failed {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 116px;
  padding: 20px 22px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 91, 123, 0.1), transparent 42%),
    #18191c;
  border-color: rgba(255, 116, 145, 0.18);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.32);
}

body:has(.prompt-workspace) .generation-failure-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ff8ba2;
  background: rgba(255, 91, 123, 0.12);
  border: 1px solid rgba(255, 128, 153, 0.2);
  border-radius: 14px;
}

body:has(.prompt-workspace) .generation-failure-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

body:has(.prompt-workspace) .generation-failure-copy {
  min-width: 0;
}

body:has(.prompt-workspace) .generation-failed .generation-status-pill {
  height: 22px;
  padding: 0 8px;
  color: #ff9daf;
  background: rgba(255, 91, 123, 0.1);
  border: 1px solid rgba(255, 128, 153, 0.16);
  font-size: 11px;
  font-weight: 800;
}

body:has(.prompt-workspace) .generation-failed .generation-failure-copy h3 {
  margin: 7px 0 0;
  color: #f7f8f8;
  font-size: 17px;
  font-weight: 760;
  line-height: 1.3;
}

body:has(.prompt-workspace) .generation-failed .generation-failure-copy p {
  margin: 5px 0 0;
  color: rgba(225, 231, 229, 0.66);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.55;
}

body:has(.prompt-workspace) .generation-failed .generation-failure-copy small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: rgba(123, 242, 202, 0.84);
  font-size: 12px;
  font-weight: 620;
}

body:has(.prompt-workspace) .generation-failed .generation-failure-copy small i {
  width: 5px;
  height: 5px;
  background: #5be4ba;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(91, 228, 186, 0.08);
}

body:has(.prompt-workspace) .generation-failure-diagnostic {
  display: grid;
  gap: 4px;
  margin-top: 11px;
  padding: 9px 10px;
  color: rgba(235, 240, 239, 0.78);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.45;
}

body:has(.prompt-workspace) .generation-failure-diagnostic b {
  color: #f3f5f4;
  font-weight: 760;
}

body:has(.prompt-workspace) .generation-failure-diagnostic span {
  color: rgba(222, 229, 226, 0.62);
}

body:has(.prompt-workspace) .generation-failure-diagnostic em {
  color: #ffb2bf;
  font-style: normal;
  overflow-wrap: anywhere;
}

body:has(.prompt-workspace) .generation-results .generation-failure-retry {
  flex: 0 0 auto;
  min-width: 116px;
  height: 40px;
  padding: 0 15px;
  color: #14221f;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

body:has(.prompt-workspace) .generation-results .generation-failure-retry:hover {
  color: #071714;
  background: #f5f7f6;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

body:has(.prompt-workspace) .generation-results .generation-failure-retry svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 720px) {
  body:has(.prompt-workspace) .generation-results .generation-result-panel.generation-failed {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  body:has(.prompt-workspace) .generation-failure-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  body:has(.prompt-workspace) .generation-results .generation-failure-retry {
    grid-column: 1 / -1;
    width: max-content;
    min-width: 116px;
  }
}

@media (max-width: 1180px) {
  .prompt-workspace {
    grid-template-columns: 1fr;
  }

  .prompt-preview-panel {
    display: none;
  }
}

@media (max-width: 720px) {
  body:has(.prompt-workspace) .koozee-content {
    padding-top: 96px;
  }

  .prompt-model-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    height: auto;
    border-radius: 22px 22px 0 0;
  }

  .prompt-model-tabs button {
    min-height: 72px;
  }

  .prompt-card {
    min-height: 520px;
    padding: 22px 18px;
    border-radius: 0 0 22px 22px;
  }

  body:has(.prompt-workspace) .koozee-composer-panel textarea {
    min-height: 220px;
    font-size: 22px;
  }

  body:has(.prompt-workspace) .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  body:has(.prompt-workspace) .composer-tools {
    width: fit-content;
  }

  body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
    width: 100%;
  }
}

/* Final proportional pass: match the large GPT Image editor proportions. */
body:has(.prompt-workspace) .koozee-content {
  width: min(1840px, calc(100vw - 235px));
  padding-top: 132px;
}

body:has(.prompt-workspace) .koozee-composer-zone h1 {
  margin-bottom: 58px;
}

.prompt-workspace {
  grid-template-columns: 1fr;
  gap: 0;
}

.prompt-editor {
  width: 100%;
}

.prompt-preview-panel {
  display: none;
  margin-top: 24px;
}

.prompt-preview-panel:has(.generation-results:not([hidden])) {
  display: block;
}

.prompt-model-tabs {
  height: 154px;
  background: #202124;
  border-color: rgba(255, 255, 255, 0.04);
  border-radius: 56px 56px 0 0;
}

.prompt-model-tabs button {
  gap: 20px;
  color: rgba(255, 255, 255, 0.72);
}

.prompt-model-tabs button span {
  font-size: 48px;
  opacity: 0.86;
}

.prompt-model-tabs button strong {
  font-size: clamp(24px, 1.5vw, 34px);
  font-weight: 850;
}

.prompt-model-tabs button.active {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(94, 220, 231, 0.62), transparent 58%),
    linear-gradient(180deg, rgba(64, 163, 177, 0.72) 0%, rgba(32, 33, 36, 0.08) 74%);
}

.prompt-model-tabs button.active::after {
  right: 34px;
  left: 34px;
  background: linear-gradient(90deg, transparent, rgba(70, 220, 232, 0.64), transparent);
}

.prompt-card {
  min-height: clamp(720px, 67vh, 940px);
  padding: 76px 64px 54px;
  background: #18191c;
  border-color: rgba(255, 255, 255, 0.045);
  border-radius: 0 0 56px 56px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 36px 90px rgba(0, 0, 0, 0.34);
}

.prompt-card::after {
  position: absolute;
  right: 64px;
  bottom: 0;
  width: 420px;
  height: 120px;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 75% 100%, rgba(73, 242, 218, 0.22), transparent 66%);
  opacity: 0.8;
}

.prompt-upload-row {
  gap: 22px;
  min-height: 158px;
}

body:has(.prompt-workspace) .reference-strip {
  gap: 22px;
}

body:has(.prompt-workspace) .reference-thumb,
.prompt-add-image {
  width: 154px;
  height: 154px;
  border-radius: 22px;
}

body:has(.prompt-workspace) .reference-thumb::after {
  height: 42px;
  font-size: 22px;
}

.prompt-add-image {
  background: #2a2b2f;
  border-color: rgba(255, 255, 255, 0.045);
}

.prompt-add-image svg {
  width: 58px;
  height: 58px;
  stroke-width: 1.55;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea {
  min-height: 360px;
  padding: 70px 0 32px;
  font-size: clamp(33px, 2.15vw, 44px);
  font-weight: 950;
  line-height: 1.36;
}

body:has(.prompt-workspace) .composer-footer {
  position: relative;
  z-index: 1;
  align-items: flex-end;
}

body:has(.prompt-workspace) .composer-tools {
  border-radius: 18px;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button {
  height: 92px;
  padding: 0 38px;
  font-size: 30px;
  font-weight: 850;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button svg {
  width: 31px;
  height: 31px;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  height: 96px;
  min-width: 300px;
  padding: 0 46px;
  border-radius: 18px;
  box-shadow:
    0 24px 48px rgba(70, 238, 217, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
  font-size: 37px;
  font-weight: 950;
}

@media (max-width: 1280px) {
  body:has(.prompt-workspace) .koozee-content {
    width: min(1120px, calc(100vw - 138px));
  }

  .prompt-model-tabs {
    height: 120px;
    border-radius: 38px 38px 0 0;
  }

  .prompt-model-tabs button strong {
    font-size: 22px;
  }

  .prompt-card {
    min-height: 680px;
    padding: 48px 42px 40px;
    border-radius: 0 0 38px 38px;
  }

  body:has(.prompt-workspace) .reference-thumb,
  .prompt-add-image {
    width: 112px;
    height: 112px;
  }

  body:has(.prompt-workspace) .koozee-composer-panel textarea {
    font-size: 30px;
  }

  body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button {
    height: 64px;
    font-size: 20px;
  }

  body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
    height: 68px;
    min-width: 210px;
    font-size: 24px;
  }
}

/* Size correction: keep the GPT editor premium, not gigantic. */
body:has(.prompt-workspace) .koozee-content {
  width: min(1040px, calc(100vw - 360px));
  padding-top: 132px;
}

body:has(.prompt-workspace) .koozee-composer-zone h1 {
  margin-bottom: 46px;
  color: #f8f8f8;
  font-size: clamp(30px, 2.45vw, 44px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 42px rgba(0, 0, 0, 0.42);
  -webkit-text-stroke: 0.18px rgba(255, 255, 255, 0.2);
}

.prompt-model-tabs {
  height: 72px;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(36, 37, 40, 0.96), rgba(30, 31, 34, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.prompt-model-tabs button {
  gap: 5px;
  color: rgba(255, 255, 255, 0.68);
  text-shadow: none;
}

.prompt-model-tabs button span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 23px;
  opacity: 0.82;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.04));
}

.prompt-model-tabs button strong {
  font-size: clamp(13px, 0.84vw, 16px);
  font-weight: 720;
  letter-spacing: 0;
}

.prompt-model-tabs button.active {
  color: #fff;
  background:
    linear-gradient(180deg, rgba(70, 196, 209, 0.58) 0%, rgba(47, 145, 157, 0.34) 42%, rgba(32, 33, 36, 0) 78%);
}

.prompt-model-tabs button.active span {
  color: #fff;
  opacity: 0.96;
  filter: drop-shadow(0 3px 10px rgba(126, 238, 246, 0.24));
}

.prompt-model-tabs button.active strong {
  color: #fff;
  font-weight: 760;
}

.prompt-model-tabs button.active::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 56%;
  height: 34px;
  pointer-events: none;
  content: "";
  background: radial-gradient(ellipse at 50% 0%, rgba(118, 244, 252, 0.2), rgba(74, 198, 210, 0.08) 48%, transparent 78%);
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.prompt-model-tabs button.active::after {
  position: absolute;
  right: 35%;
  bottom: 0;
  left: 35%;
  height: 1px;
  content: "";
  background: rgba(64, 197, 209, 0.34);
}

.prompt-model-tabs {
  justify-items: stretch;
}

.prompt-model-tabs button {
  justify-items: center;
}

.model-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0 !important;
  line-height: 1;
  opacity: 0.86;
}

.model-icon::before,
.model-icon::after {
  position: absolute;
  content: "";
}

.model-icon.banana::before {
  inset: 5px 3px 6px 4px;
  background: currentColor;
  border-radius: 60% 18% 62% 24%;
  clip-path: polygon(3% 58%, 32% 22%, 50% 2%, 64% 38%, 95% 44%, 68% 60%, 77% 95%, 46% 76%, 14% 86%, 24% 64%);
}

.model-icon.gpt {
  display: grid;
  place-items: center;
}

.model-icon.gpt::before {
  width: 23px;
  height: 23px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
}

.model-icon.gpt::after {
  width: 8px;
  height: 8px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
}

.model-icon.gemini::before {
  inset: 0;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 35%, 100% 50%, 62% 65%, 50% 100%, 38% 65%, 0 50%, 38% 35%);
}

.model-icon.sd25-model-icon {
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.prompt-model-tabs button.active .model-icon.sd25-model-icon {
  background: transparent;
}

.sd25-controls .sd25-price-note {
  color: rgba(156, 237, 222, 0.86);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.prompt-model-tabs button.active .model-icon {
  color: #fff;
  filter: drop-shadow(0 3px 10px rgba(126, 238, 246, 0.24));
}

.prompt-card {
  min-height: 360px;
  padding: 26px 28px 24px;
  border-radius: 0 0 22px 22px;
}

.prompt-card::after {
  right: 36px;
  width: 260px;
  height: 86px;
}

.prompt-upload-row {
  gap: 12px;
  min-height: 72px;
}

body:has(.prompt-workspace) .reference-strip {
  gap: 14px;
}

body:has(.prompt-workspace) .reference-thumb,
.prompt-add-image {
  width: 64px;
  height: 64px;
  border-radius: 11px;
}

.prompt-add-image svg {
  width: 27px;
  height: 27px;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea {
  min-height: 150px;
  padding: 30px 0 18px;
  font-size: clamp(18px, 1.08vw, 23px);
  line-height: 1.46;
}

body:has(.prompt-workspace) .composer-tools {
  border-radius: 12px;
  overflow: visible;
  position: relative;
  z-index: 8;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-menu {
  bottom: calc(100% + 9px);
  z-index: 40;
  min-width: 118px;
  padding: 6px;
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

body:has(.prompt-workspace) .koozee-composer-panel .select-menu button {
  height: 32px;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-menu button:hover,
body:has(.prompt-workspace) .koozee-composer-panel .select-menu button.active {
  color: #ffffff;
  background: rgba(69, 216, 205, 0.16);
}

/* Model strip: match the compact KOOZEE reference proportions. */
.prompt-model-tabs {
  height: 80px;
  background: linear-gradient(180deg, #212225 0%, #202124 58%, #1f2022 100%);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-bottom: 1px solid rgba(0, 0, 0, 0.42);
  border-radius: 27px 27px 0 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3),
    0 14px 30px rgba(0, 0, 0, 0.12);
}

.prompt-model-tabs button {
  position: relative;
  z-index: 0;
  gap: 3px;
  padding: 4px 8px 4px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Inter, "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 500;
}

.prompt-model-tabs button strong {
  position: relative;
  z-index: 1;
  overflow: visible;
  max-width: none;
  font-size: clamp(13px, 0.82vw, 15px);
  font-weight: 500;
  white-space: nowrap;
}

.prompt-model-tabs button.active {
  overflow: hidden;
  border-radius: 32px 32px 0 0;
  background: linear-gradient(
    180deg,
    rgba(61, 177, 190, 0.86) 0%,
    rgba(46, 132, 143, 0.62) 32%,
    rgba(38, 78, 83, 0.28) 62%,
    rgba(32, 33, 36, 0) 100%
  );
}

.prompt-model-tabs button.active::before {
  display: none;
}

.prompt-model-tabs button.active::after {
  right: 25%;
  bottom: 0;
  left: 25%;
  height: 1px;
  background: #38b6c3;
  box-shadow: 0 0 5px rgba(56, 182, 195, 0.2);
}

.prompt-model-tabs button:not(.active)::before,
.prompt-model-tabs button:not(.active)::after {
  display: none;
}

.model-icon,
.model-icon::before,
.model-icon::after {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0 !important;
  line-height: 1;
  opacity: 1;
  filter: none;
}

.model-icon::before,
.model-icon::after {
  position: static;
  content: none;
}

.model-icon path {
  fill: currentColor;
}

.model-icon.gpt path + path {
  fill: none;
}

.model-icon.gpt {
  color: rgba(255, 255, 255, 0.92);
}

.prompt-model-tabs button.active .model-icon {
  color: #fff;
  filter: drop-shadow(0 1px 3px rgba(120, 235, 242, 0.24));
}

/* One shared highlight glides between the five model cells. */
.prompt-model-tabs {
  position: relative;
  isolation: isolate;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  --model-index: 0;
}

.prompt-model-tabs::before {
  position: absolute;
  z-index: 0;
  top: 0;
  bottom: 0;
  left: calc(var(--model-index) * 20%);
  width: 20%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(ellipse 78% 58% at 50% -10%, rgba(114, 225, 231, 0.22), transparent 72%),
    linear-gradient(
      180deg,
      #3b9ca8 0%,
      #317985 24%,
      #28545c 45%,
      #223b41 64%,
      rgba(32, 33, 36, 0.45) 82%,
      rgba(32, 33, 36, 0) 100%
    );
  border-radius: 27px 27px 0 0;
  transition: left 480ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.prompt-model-tabs::after {
  position: absolute;
  z-index: 2;
  right: auto;
  bottom: 0;
  left: calc(var(--model-index) * 20% + 5%);
  width: 10%;
  height: 1px;
  pointer-events: none;
  content: "";
  background: #38b6c3;
  box-shadow: 0 0 5px rgba(56, 182, 195, 0.2);
  transition: left 480ms cubic-bezier(0.22, 0.8, 0.22, 1);
}

.prompt-model-tabs button,
.prompt-model-tabs button.active {
  background: transparent;
  border-radius: 0;
  transition: color 260ms ease;
}

.prompt-model-tabs button::before,
.prompt-model-tabs button::after,
.prompt-model-tabs button.active::before,
.prompt-model-tabs button.active::after {
  display: none;
}

.prompt-model-tabs button.active {
  color: #fff;
}

body:has(.prompt-workspace) .koozee-composer-panel .select-tool > button svg {
  width: 17px;
  height: 17px;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  height: 48px;
  min-width: 142px;
  padding: 0 22px;
  border-radius: 11px;
  font-size: 18px;
}

/* Compact editor proportions from the red-box reference. */
body:has(.prompt-workspace) .koozee-content {
  position: relative;
  width: min(840px, calc(100vw - 500px));
}

.prompt-card {
  min-height: 276px;
  padding: 18px 24px 18px;
}

.prompt-upload-row {
  min-height: 56px;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea {
  min-height: 104px;
  padding: 18px 0 12px;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea::placeholder {
  color: rgba(198, 199, 204, 0.62);
  font-weight: 650;
  opacity: 1;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea:placeholder-shown {
  color: rgba(198, 199, 204, 0.62);
  font-weight: 650;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea:not(:placeholder-shown) {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 820;
}

.prompt-card::after {
  display: none !important;
  background: none !important;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

/* Final clean backdrop: remove both the grid and the topbar band. */
body:has(.koozee-home) .koozee-home,
body:has(.koozee-home) .page-home {
  background: #08090a !important;
  background-image: none !important;
}

body:has(.koozee-home) .koozee-topbar {
  position: absolute;
  top: 0;
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none;
}

body:has(.koozee-home) .home-showcase {
  min-height: 100vh;
  margin-top: 0;
}

/* Single, quiet account entry for the new workspace. */
body:has(.koozee-home) .koozee-login-entry {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  height: 100%;
}

body:has(.koozee-home) .koozee-login-button {
  position: relative;
  width: 76px;
  min-width: 76px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  overflow: hidden;
  color: #101112;
  background: #ffffff;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-family: "PingFang SC", "SF Pro Rounded", "Hiragino Sans GB", -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: none;
}

body:has(.koozee-home) .koozee-login-button::before {
  display: none;
}

body:has(.koozee-home) .koozee-login-button:hover {
  color: #101112;
  background: #ffffff;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-login-button:active {
  box-shadow: none;
  transform: none;
}

body:has(.koozee-home) .koozee-login-button:focus-visible {
  outline: 2px solid #46dfec;
  outline-offset: 3px;
}

body:has(.koozee-home) .koozee-login-tip {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  display: grid;
  gap: 6px;
  width: 304px;
  padding: 14px 16px 15px;
  color: #ecffff;
  pointer-events: none;
  visibility: hidden;
  background: linear-gradient(145deg, #20292d, #182025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

body:has(.koozee-home) .koozee-login-tip::before {
  position: absolute;
  top: -9px;
  right: 22px;
  width: 18px;
  height: 18px;
  content: "";
  background: #20292d;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
  transform: rotate(45deg);
}

body:has(.koozee-home) .koozee-login-tip strong,
body:has(.koozee-home) .koozee-login-tip span {
  position: relative;
  z-index: 1;
  letter-spacing: 0;
}

body:has(.koozee-home) .koozee-login-tip strong {
  color: #2ae4ef;
  font-size: 16px;
  font-weight: 700;
}

body:has(.koozee-home) .koozee-login-tip span {
  color: #73f4eb;
  font-size: 14px;
  font-weight: 480;
}

body:has(.koozee-home) .koozee-login-entry:hover .koozee-login-tip,
body:has(.koozee-home) .koozee-login-entry:focus-within .koozee-login-tip {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

body:has(.koozee-home) .koozee-session-strip {
  gap: 7px;
}

body:has(.koozee-home) .course-header-entry,
body:has(.koozee-home) .koozee-login-entry > .koozee-consumption-records {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 12px;
  margin-right: 0;
  overflow: hidden;
  color: #fff !important;
  background: #1b1b1b;
  border: 0;
  border-radius: 8px;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  font-weight: 600 !important;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  isolation: isolate;
}

body:has(.koozee-home) .course-header-entry:has(+ .koozee-consumption-records) {
  margin-right: 0;
}

body:has(.koozee-home) .course-header-entry > span,
body:has(.koozee-home) .koozee-login-entry > .koozee-consumption-records > span {
  position: relative;
  z-index: 1;
}

body:has(.koozee-home) .course-header-entry > span {
  padding-right: 14px;
}

body:has(.koozee-home) .course-header-entry::before,
body:has(.koozee-home) .koozee-login-entry > .koozee-consumption-records::before {
  position: absolute;
  top: 97%;
  left: 0;
  z-index: 0;
  width: 0;
  height: 100%;
  content: "";
  background: linear-gradient(90deg, #14efff, #34ffc5, transparent);
  border-radius: 50%;
  box-shadow: 0 0 50px 0 #14a1ff64;
  transition: width 0.3s ease-in-out;
}

body:has(.koozee-home) .course-header-entry:hover,
body:has(.koozee-home) .koozee-login-entry > .koozee-consumption-records:hover {
  color: #fff !important;
  background: #1b1b1b;
  transform: none;
}

body:has(.koozee-home) .course-header-entry:hover::before,
body:has(.koozee-home) .koozee-login-entry > .koozee-consumption-records:hover::before {
  width: 200%;
}

body:has(.koozee-home) .course-header-entry::after {
  position: absolute;
  top: 3px;
  right: 4px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 10px;
  padding: 0 3px;
  color: #fff;
  background: linear-gradient(180deg, #ff5c67 0%, #e52d3c 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 2px 5px rgba(211, 32, 49, 0.3);
  content: "HOT";
  font-family: Inter, "SF Pro Display", sans-serif;
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

body:has(.koozee-home) .course-header-entry:hover {
  color: #fff;
  background: #1b1b1b;
  border-color: transparent;
}

body:has(.koozee-home) .koozee-session-strip > button {
  height: 32px;
  color: #f0dac8;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0;
}

body:has(.koozee-home) .koozee-session-strip .koozee-invite {
  display: none;
  gap: 6px;
  padding: 0 12px;
  background: rgba(28, 29, 32, 0.88);
  border-radius: 999px;
}

body:has(.koozee-home) .koozee-session-strip .koozee-credit {
  gap: 5px;
  min-width: 64px;
  padding: 0 10px;
  background: rgba(49, 35, 30, 0.88);
  border-radius: 999px;
}

body:has(.koozee-home) .koozee-session-strip .koozee-credit b {
  font-size: 13px;
  font-weight: 700;
}

body:has(.koozee-home) .koozee-session-strip .koozee-credit span {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

body:has(.koozee-home) .koozee-session-strip .koozee-recharge {
  margin-left: 0;
  padding: 0 12px;
  color: #40271b !important;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 740;
}

/* Align the editor with the left edge marked in the reference. */
body:has(.prompt-workspace) .home-composer {
  position: relative;
  left: -270px;
}

body:has(.prompt-workspace) .koozee-composer-zone h1 {
  position: relative;
  left: -270px;
}

/* Place the featured tool wall in the right-side reference area. */
body:has(.koozee-home) .koozee-tools {
  position: absolute;
  top: 232px;
  right: -300px;
  width: 520px;
  margin-top: 0;
}

body:has(.koozee-home) .koozee-tools h2 {
  display: none;
}

body:has(.koozee-home) .koozee-tool-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

body:has(.koozee-home) .koozee-tool {
  grid-template-columns: 32px minmax(0, 1fr);
  min-height: 74px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.86);
  background: #181a1d;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-size: 15px;
  font-weight: 660;
}

body:has(.koozee-home) .koozee-tool svg {
  width: 22px;
  height: 22px;
  color: rgba(255, 255, 255, 0.84);
}

/* KOOZEE-like combined ratio / quality picker. */
body:has(.prompt-workspace) .settings-select-tool {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  overflow: visible;
  background: rgba(24, 25, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    inset 0 0 0 1px rgba(0, 0, 0, 0.22),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button {
  height: 38px;
  padding: 0 14px;
  color: #ffffff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 780;
}

body:has(.prompt-workspace) .settings-ratio-trigger {
  gap: 7px;
}

body:has(.prompt-workspace) .settings-ratio-trigger svg:first-child {
  width: 18px;
  height: 18px;
  stroke-width: 2.3;
}

body:has(.prompt-workspace) .settings-ratio-trigger svg:last-child {
  display: none;
}

body:has(.prompt-workspace) .settings-quality-trigger {
  border-left: 1px solid rgba(255, 255, 255, 0.055) !important;
}

body:has(.prompt-workspace) .koozee-composer-panel .prompt-settings-menu {
  left: 0;
  bottom: calc(100% + 9px);
  z-index: 80;
  width: 438px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.84);
  background: #292a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 22px 58px rgba(0, 0, 0, 0.42);
}

body:has(.prompt-workspace) .settings-menu-section {
  display: grid;
  gap: 10px;
}

body:has(.prompt-workspace) .settings-menu-section + .settings-menu-section {
  margin-top: 17px;
}

body:has(.prompt-workspace) .settings-menu-section > strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 760;
}

body:has(.prompt-workspace) .quality-segment {
  display: grid;
  grid-template-columns: repeat(var(--quality-option-count, 2), minmax(0, 1fr));
  gap: 6px;
  padding: 3px;
  background: rgba(33, 34, 37, 0.82);
  border-radius: 10px;
}

body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button {
  height: 36px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 780;
}

body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button.active,
body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body:has(.prompt-workspace) .ratio-option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 2px;
}

body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button {
  display: grid;
  justify-items: center;
  height: 75px;
  padding: 9px 6px 8px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  background: transparent;
  border-radius: 8px;
  font-weight: 700;
}

body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button.active,
body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

body:has(.prompt-workspace) .ratio-option-grid i {
  display: block;
  width: 18px;
  height: 18px;
  margin-bottom: 4px;
  border: 2px solid currentColor;
  opacity: 0.88;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="auto"] {
  border-style: dashed;
  border-radius: 3px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="3-2"],
body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="4-3"] {
  width: 25px;
  height: 15px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="2-3"],
body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="3-4"] {
  width: 15px;
  height: 25px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="16-9"] {
  width: 27px;
  height: 12px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="9-16"] {
  width: 12px;
  height: 27px;
}

body:has(.prompt-workspace) .ratio-option-grid span {
  font-size: 14px;
  line-height: 1.1;
}

body:has(.prompt-workspace) .ratio-option-grid small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

/* Refined reference match: quieter contrast, centered spacing, no resolution line. */
body:has(.prompt-workspace) .koozee-composer-panel .prompt-settings-menu {
  width: 438px;
  padding: 14px;
  background: #292a2d;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 13px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1),
    0 20px 54px rgba(0, 0, 0, 0.42);
}

body:has(.prompt-workspace) .settings-menu-section {
  gap: 11px;
}

body:has(.prompt-workspace) .settings-menu-section + .settings-menu-section {
  margin-top: 17px;
}

body:has(.prompt-workspace) .settings-menu-section > strong {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 720;
}

body:has(.prompt-workspace) .quality-segment {
  gap: 6px;
  padding: 3px;
  background: #303134;
  border-radius: 10px;
}

body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button {
  height: 36px;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 760;
}

body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button.active {
  color: #ffffff;
  background: #46474b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button:hover {
  color: #ffffff;
  background: #414246;
}

body:has(.prompt-workspace) .ratio-option-grid {
  gap: 8px 10px;
  padding: 3px;
  background: #303134;
  border-radius: 10px;
}

body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button {
  align-content: center;
  gap: 6px;
  height: 63px;
  padding: 8px 5px;
  color: rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  font-weight: 700;
}

body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button.active {
  color: #ffffff;
  background: #46474b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button:hover {
  color: #ffffff;
  background: #414246;
}

body:has(.prompt-workspace) .ratio-option-grid i {
  margin: 0;
  border-width: 2px;
  opacity: 0.82;
}

body:has(.prompt-workspace) .ratio-option-grid span {
  font-size: 14px;
  line-height: 1;
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button {
  color: rgba(255, 255, 255, 0.94);
  font-weight: 620;
}

body:has(.prompt-workspace) .settings-select-tool [data-setting-label] {
  font-family: Inter, "SF Pro Display", "PingFang SC", sans-serif;
  font-weight: 620;
  letter-spacing: 0;
}

/* Bottom controls: keep the generate button compact and top-aligned with settings. */
body:has(.prompt-workspace) .composer-footer {
  align-items: flex-start;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  height: 42px;
  min-width: 132px;
  padding: 0 20px;
  border-radius: 11px;
  font-size: 16px;
  font-weight: 760;
  line-height: 1;
}

/* Red-frame pass: shrink the whole image tool proportionally, not just the shell. */
body:has(.prompt-workspace) .koozee-content {
  width: min(820px, calc(100vw - 520px));
}

.prompt-model-tabs {
  height: 70px;
  border-radius: 22px 22px 0 0;
}

.prompt-model-tabs::before {
  border-radius: 22px 22px 0 0;
}

.prompt-model-tabs button {
  gap: 2px;
  padding: 3px 8px;
}

.model-icon,
.model-icon::before,
.model-icon::after {
  width: 24px;
  height: 24px;
}

.prompt-model-tabs button strong {
  font-size: 13px;
}

.prompt-card {
  grid-template-rows: auto minmax(178px, 1fr) auto;
  min-height: 318px;
  padding: 16px 22px 16px;
  border-radius: 0 0 22px 22px;
}

.prompt-upload-row {
  min-height: 52px;
}

body:has(.prompt-workspace) .reference-thumb,
.prompt-add-image {
  width: 28px;
  height: 28px;
  border-radius: 10px;
}

.prompt-add-image svg {
  width: 24px;
  height: 24px;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea {
  min-height: 96px;
  padding: 16px 0 10px;
  font-size: clamp(16px, 0.98vw, 20px);
}

body:has(.prompt-workspace) .settings-select-tool {
  height: 36px;
  border-radius: 11px;
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button {
  height: 34px;
  padding: 0 12px;
  font-size: 14px;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  height: 38px;
  min-width: 122px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 15px;
}

/* Result board lives directly under the composer; hidden only while empty. */
body:has(.koozee-home) .prompt-preview-panel {
  display: none;
}

body:has(.koozee-home) .prompt-preview-panel:has(.generation-results:not([hidden])) {
  display: block;
}

/* Reference upload thumbnails: small bottom label and loading spinner. */
body:has(.prompt-workspace) .reference-thumb,
body:has(.prompt-workspace) .prompt-add-image {
  width: 58px;
  height: 58px;
  border-radius: 11px;
}

body:has(.prompt-workspace) .prompt-add-image {
  transition: background 150ms ease;
}

body:has(.prompt-workspace) .prompt-add-image:hover,
body:has(.prompt-workspace) .prompt-add-image:focus-visible {
  background: #303239;
  border-color: rgba(255, 255, 255, 0.045);
  outline: none;
  box-shadow: none;
}

body:has(.prompt-workspace) .reference-thumb {
  overflow: hidden;
  background: #27282c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body:has(.prompt-workspace) .reference-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body:has(.prompt-workspace) .reference-thumb::after {
  right: 0;
  bottom: 0;
  left: auto;
  min-width: 48px;
  width: max-content;
  padding: 0 5px;
  height: 22px;
  content: attr(data-label);
  color: rgba(255, 255, 255, 0.96);
  background: rgba(56, 56, 59, 0.78);
  border-radius: 8px 0 10px 0;
  font-size: 12px;
  font-weight: 760;
  line-height: 22px;
  letter-spacing: 0;
}

body:has(.prompt-workspace) .reference-thumb::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  width: 22px;
  height: 22px;
  margin: auto;
  content: "";
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  animation: referenceThumbSpin 0.82s linear infinite;
}

body:has(.prompt-workspace) .reference-thumb.is-loading::before {
  display: block;
}

body:has(.prompt-workspace) .reference-thumb.is-loading img {
  opacity: 0.72;
}

body:has(.prompt-workspace) .reference-thumb button {
  top: 4px;
  right: 4px;
  z-index: 3;
  width: 18px;
  height: 18px;
  background: rgba(36, 36, 38, 0.72);
  font-size: 14px;
  font-weight: 520;
}

body:has(.prompt-workspace) .prompt-add-image {
  color: rgba(255, 255, 255, 0.78);
  background: #2a2b2f;
  border: 1px solid rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

body:has(.prompt-workspace) .prompt-add-image svg {
  width: 25px;
  height: 25px;
  stroke-width: 1.45;
}

@keyframes referenceThumbSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Keep uploaded thumbnail and add-image box perfectly aligned. */
body:has(.prompt-workspace) .prompt-upload-row {
  align-items: flex-start;
  gap: 12px;
}

body:has(.koozee-home) .koozee-composer-panel .reference-strip,
body:has(.prompt-workspace) .reference-strip {
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0 !important;
  line-height: 0;
}

body:has(.prompt-workspace) .reference-thumb,
body:has(.prompt-workspace) .prompt-add-image {
  box-sizing: border-box;
  flex: 0 0 58px;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px;
  min-height: 58px;
  margin: 0;
  transform: none;
}

/* Compact settings popover to match the scaled-down composer. */
body:has(.prompt-workspace) .koozee-composer-panel .prompt-settings-menu {
  bottom: calc(100% + 7px);
  width: 312px;
  min-width: 312px;
  padding: 10px;
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(0, 0, 0, 0.1),
    0 16px 38px rgba(0, 0, 0, 0.36);
}

body:has(.prompt-workspace) .settings-menu-section {
  gap: 8px;
}

body:has(.prompt-workspace) .settings-menu-section + .settings-menu-section {
  margin-top: 11px;
}

body:has(.prompt-workspace) .settings-menu-section > strong {
  font-size: 12px;
  font-weight: 690;
}

body:has(.prompt-workspace) .quality-segment {
  gap: 4px;
  padding: 3px;
  border-radius: 8px;
}

body:has(.prompt-workspace) .koozee-composer-panel .quality-segment button {
  height: 28px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

body:has(.prompt-workspace) .ratio-option-grid {
  gap: 5px;
  padding: 3px;
  border-radius: 8px;
}

body:has(.prompt-workspace) .koozee-composer-panel .ratio-option-grid button {
  gap: 4px;
  height: 46px;
  padding: 5px 3px;
  border-radius: 7px;
  font-weight: 650;
}

body:has(.prompt-workspace) .ratio-option-grid i {
  width: 13px;
  height: 13px;
  border-width: 1.6px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="3-2"],
body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="4-3"] {
  width: 18px;
  height: 11px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="2-3"],
body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="3-4"] {
  width: 11px;
  height: 18px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="16-9"] {
  width: 20px;
  height: 9px;
}

body:has(.prompt-workspace) .ratio-option-grid i[data-ratio-icon="9-16"] {
  width: 9px;
  height: 20px;
}

body:has(.prompt-workspace) .ratio-option-grid span {
  font-size: 12px;
}

/* Move the whole hero workspace as one block to match the left-shifted reference frame. */
body:has(.koozee-home) .koozee-content {
  transform: translateX(-86px);
}

/* Softer prompt placeholder after the editor was scaled down. */
body:has(.prompt-workspace) .koozee-composer-panel textarea {
  font-size: clamp(15px, 0.9vw, 18px);
}

body:has(.prompt-workspace) .koozee-composer-panel textarea::placeholder,
body:has(.prompt-workspace) .koozee-composer-panel textarea:placeholder-shown {
  color: rgba(186, 188, 194, 0.56);
  font-weight: 560;
}

body:has(.prompt-workspace) .settings-select-tool[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .settings-ratio-trigger[hidden],
body:has(.prompt-workspace) .settings-ratio-section[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .koozee-composer-panel .home-prompt-editor {
  display: block;
  width: 100%;
  min-height: 96px;
  padding: 16px 0 10px;
  overflow: auto;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  font: inherit;
  font-size: clamp(16px, 0.98vw, 20px);
  font-weight: 820;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
}

body:has(.prompt-workspace) .koozee-composer-panel .home-prompt-editor:empty::before {
  color: rgba(186, 188, 194, 0.48);
  content: attr(data-placeholder);
  font-weight: 430;
  letter-spacing: 0.005em;
  pointer-events: none;
}

body:has(.prompt-workspace) .reference-mention-chip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  align-items: center;
  max-width: 154px;
  height: 30px;
  gap: 5px;
  margin: 0 4px;
  padding: 2px 8px 2px 3px;
  color: rgba(246, 247, 249, 0.94);
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035) inset;
  font-size: 0.76em;
  font-weight: 620;
  line-height: 1;
  user-select: none;
  white-space: nowrap;
}

body:has(.prompt-workspace) .reference-mention-chip img {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: cover;
  border-radius: 5px;
}

body:has(.prompt-workspace) .reference-mention-chip .reference-mention-token {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body:has(.prompt-workspace) .reference-mention-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured tool buttons: closer to the reference card material. */
body:has(.koozee-home) .koozee-tool-grid {
  gap: 12px 14px;
}

body:has(.koozee-home) .koozee-tool {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 68px;
  padding: 0 18px;
  color: rgba(238, 239, 241, 0.88);
  background: linear-gradient(180deg, #181a1d 0%, #16181b 100%);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.026),
    inset 0 -1px 0 rgba(0, 0, 0, 0.22);
  font-size: 14px;
  font-weight: 610;
  letter-spacing: 0;
}

body:has(.koozee-home) .koozee-tool svg {
  width: 19px;
  height: 19px;
  color: rgba(244, 245, 247, 0.82);
  stroke-width: 2.15;
}

body:has(.koozee-home) .koozee-tool:hover {
  color: rgba(255, 255, 255, 0.94);
  background: linear-gradient(180deg, #1b1d20 0%, #17191c 100%);
  border-color: rgba(255, 255, 255, 0.065);
  transform: translateY(-1px);
}

/* Six-model tab states: grey normal, white hover, cyan only for the selected glide. */
body:has(.prompt-workspace) .prompt-model-tabs {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

body:has(.prompt-workspace) .prompt-model-tabs::before {
  left: calc(var(--model-index) * 12.5%);
  width: 12.5%;
}

body:has(.prompt-workspace) .prompt-model-tabs::after {
  left: calc(var(--model-index) * 12.5% + 3.125%);
  width: 6.25%;
}

body:has(.prompt-workspace) .prompt-model-tabs button {
  color: rgba(221, 222, 226, 0.66);
}

body:has(.prompt-workspace) .prompt-model-tabs button strong {
  color: currentColor;
  font-weight: 500;
}

body:has(.prompt-workspace) .prompt-model-tabs button .model-icon {
  color: currentColor;
  opacity: 0.88;
  filter: none;
}

body:has(.prompt-workspace) .prompt-model-tabs button:hover:not(.active) {
  color: rgba(255, 255, 255, 0.96);
}

body:has(.prompt-workspace) .prompt-model-tabs button:hover:not(.active) .model-icon {
  opacity: 1;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active {
  color: #ffffff;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active strong {
  font-weight: 650;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active .model-icon {
  color: #ffffff;
  opacity: 1;
  filter: drop-shadow(0 1px 3px rgba(120, 235, 242, 0.2));
}

body:has(.prompt-workspace) .model-icon.gpt .openai-knot,
body:has(.prompt-workspace) .model-icon.gpt .openai-knot path {
  fill: none !important;
  stroke: currentColor;
}

body:has(.prompt-workspace) .model-icon.gpt path {
  fill: currentColor !important;
  stroke: none !important;
}

/* Final GPT tab proportion pass: reference uses a larger icon with lighter text. */
body:has(.prompt-workspace) .prompt-model-tabs button {
  gap: 0;
  padding-top: 3px;
  padding-bottom: 7px;
  transition: color 140ms ease-out !important;
}

body:has(.prompt-workspace) .prompt-model-tabs button strong {
  color: currentColor;
  font-size: 13px;
  font-weight: 430;
  line-height: 0.95;
  margin-top: -4px;
  transition: none !important;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active strong {
  font-weight: 510;
}

body:has(.prompt-workspace) .model-icon.gpt {
  color: currentColor;
  width: 40px;
  height: 40px;
  transform: translateY(2px);
  transition: none !important;
}

body:has(.prompt-workspace) .model-icon.gpt g {
  transform-box: fill-box;
  transform-origin: center;
}

body:has(.prompt-workspace) .prompt-model-tabs button:not(.active) .model-icon.gpt {
  color: currentColor;
  opacity: 1;
  filter: none;
}

body:has(.prompt-workspace) .prompt-model-tabs button:hover:not(.active) .model-icon.gpt {
  color: currentColor;
  opacity: 1;
  filter: none;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active .model-icon.gpt {
  color: currentColor;
  filter: drop-shadow(0 1px 3px rgba(120, 235, 242, 0.2));
}

/* Nano Banana uses the uploaded icon as one source: mask for grey/white, color art when active. */
body:has(.prompt-workspace) .model-icon.banana {
  width: 30px;
  height: 30px;
  background-color: currentColor;
  background-image: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  color: currentColor;
  opacity: 1;
  transform: translateY(-1px);
  filter: none;
  transition: none !important;
  -webkit-mask: url("/site-media/images/nano-banana-pro-icon-tight.png") center / contain no-repeat;
  mask: url("/site-media/images/nano-banana-pro-icon-tight.png") center / contain no-repeat;
}

body:has(.prompt-workspace) .prompt-model-tabs button:has(.model-icon.banana) strong {
  margin-top: 3px;
}

body:has(.prompt-workspace) .model-icon.banana::before,
body:has(.prompt-workspace) .model-icon.banana::after {
  display: none !important;
  content: none !important;
}

body:has(.prompt-workspace) .prompt-model-tabs button:not(.active) .model-icon.banana,
body:has(.prompt-workspace) .prompt-model-tabs button:hover:not(.active) .model-icon.banana {
  background-color: currentColor;
  filter: none;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active .model-icon.banana {
  background-color: transparent;
  background-image: url("/site-media/images/nano-banana-pro-icon-tight.png");
  filter: drop-shadow(0 1px 5px rgba(255, 216, 74, 0.22));
  -webkit-mask: none;
  mask: none;
}

body:has(.prompt-workspace) .model-icon.gemini {
  width: 30px;
  height: 30px;
  background: url("/site-media/images/gemini-icon-idle.png") center / contain no-repeat;
  opacity: 1;
  transform: translateY(-1px);
  filter: none;
  transition: none !important;
}

body:has(.prompt-workspace) .prompt-model-tabs button:has(.model-icon.gemini) strong {
  margin-top: 3px;
}

body:has(.prompt-workspace) .model-icon.gemini::before {
  display: none !important;
  content: none !important;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active .model-icon.gemini {
  background-image: url("/site-media/images/gemini-icon-active.png");
  filter: drop-shadow(0 1px 5px rgba(90, 148, 255, 0.24));
}

/* Prompt text: softer typed-input weight, closer to the KOOZEE reference. */
body:has(.prompt-workspace) .koozee-composer-panel textarea {
  color: rgba(244, 245, 248, 0.9);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(15px, 0.86vw, 17px);
  font-weight: 460;
  line-height: 1.42;
  letter-spacing: 0;
  caret-color: #ffffff;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea:not(:placeholder-shown) {
  color: rgba(244, 245, 248, 0.92);
  font-weight: 470;
  text-shadow: none;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea::placeholder,
body:has(.prompt-workspace) .koozee-composer-panel textarea:placeholder-shown {
  color: rgba(190, 193, 200, 0.48);
  font-weight: 440;
  opacity: 1;
  text-shadow: none;
}

/* Generating state: grey, quiet, and genuinely disabled like the reference. */
.generate-button .generate-button-busy {
  display: none;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button.is-generating,
body:has(.prompt-workspace) .koozee-composer-panel .generate-button:disabled.is-generating {
  pointer-events: none;
  cursor: not-allowed;
  color: rgba(179, 180, 186, 0.68);
  background: linear-gradient(180deg, #2b2c31 0%, #27282d 100%);
  border: 1px solid rgba(255, 255, 255, 0.035);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  opacity: 1;
  transform: none;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button.is-generating #generateButtonText {
  display: none;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button.is-generating .generate-button-busy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: currentColor;
  font-size: 15px;
  font-weight: 760;
  line-height: 1;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button.is-generating .generate-button-busy::before {
  content: "生成";
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button[data-mode="prompt"].is-generating .generate-button-busy::before {
  content: "正在回复";
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button.is-generating .generate-button-busy i {
  width: 10px;
  height: 13px;
  border-radius: 55% 45% 55% 45%;
  background: currentColor;
  opacity: 0.72;
  transform: rotate(-26deg);
}

/* Generated images: direct black-stage thumbnails under the editor, no old album cards. */
body:has(.koozee-home) .prompt-preview-panel {
  width: 100%;
  margin-top: 26px;
}

body:has(.koozee-home) .generation-results:not([hidden]) {
  display: block !important;
}

body:has(.prompt-workspace) .generation-results .result-board {
  min-height: 168px;
  padding: 18px;
  color: #f6f7f8;
  background: linear-gradient(180deg, rgba(22, 24, 27, 0.96), rgba(15, 17, 19, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.025),
    0 16px 36px rgba(0, 0, 0, 0.14);
}

body:has(.prompt-workspace) .generation-results .result-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 2px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

body:has(.prompt-workspace) .generation-results .result-board-heading,
body:has(.prompt-workspace) .generation-results .result-board-state {
  display: flex;
  align-items: center;
}

body:has(.prompt-workspace) .generation-results .result-board-heading {
  gap: 10px;
}

body:has(.prompt-workspace) .generation-results .result-board-heading strong {
  color: rgba(248, 249, 250, 0.94);
  font-size: 15px;
  font-weight: 620;
  line-height: 1;
}

body:has(.prompt-workspace) .generation-results .result-board-heading span {
  color: rgba(181, 184, 190, 0.62);
  font-size: 12px;
  font-weight: 480;
}

body:has(.prompt-workspace) .generation-results .result-board-state {
  gap: 7px;
  color: rgba(181, 184, 190, 0.55);
  font-size: 12px;
  font-weight: 480;
}

body:has(.prompt-workspace) .generation-results .result-board-state button {
  min-height: 28px;
  padding: 0 11px;
  color: rgba(247, 249, 249, .9);
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  font: inherit;
}

body:has(.prompt-workspace) .generation-results .result-board-state button:hover {
  background: rgba(255, 255, 255, .13);
}

body:has(.prompt-workspace) .generation-results .result-board-state i {
  width: 6px;
  height: 6px;
  background: #38d7df;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(56, 215, 223, 0.1);
  animation: resultStatePulse 1.35s ease-in-out infinite;
}

body:has(.prompt-workspace) .generation-results .result-progress {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
  color: rgba(245, 246, 248, 0.76);
  font-size: 13px;
  font-weight: 560;
}

body:has(.prompt-workspace) .generation-results .result-progress small {
  color: rgba(178, 181, 188, 0.52);
  font-size: 12px;
  font-weight: 430;
}

body:has(.prompt-workspace) .generation-results .result-board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: flex-start;
  gap: 11px;
  width: 100%;
}

body:has(.prompt-workspace) .generation-results .result-masonry-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 11px;
}

body:has(.prompt-workspace) .generation-results .result-image-card {
  display: block;
  min-width: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
}

body:has(.prompt-workspace) .generation-results .result-image-tile {
  position: relative;
  display: block;
  overflow: hidden;
  width: 168px;
  aspect-ratio: 1 / 1;
  padding: 0;
  background: #111214;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

body:has(.prompt-workspace) .generation-results .result-image-tile:hover,
body:has(.prompt-workspace) .generation-results .result-image-tile:focus-within {
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

body:has(.prompt-workspace) .generation-results .result-image-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

body:has(.prompt-workspace) .generation-results .result-image-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
  background: #050505;
}

body:has(.prompt-workspace) .generation-results .result-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: clamp(42px, var(--video-play-size, 22%), 84px);
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  color: rgba(255, 255, 255, 0.98);
  cursor: pointer;
  background: rgba(12, 14, 17, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

body:has(.prompt-workspace) .generation-results .result-video-play:hover,
body:has(.prompt-workspace) .generation-results .result-video-play:focus-visible {
  background: rgba(30, 33, 38, 0.82);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.42);
  outline: none;
  transform: translate(-50%, -50%) scale(1.06);
}

body:has(.prompt-workspace) .generation-results .result-video-play svg {
  width: 48%;
  height: 48%;
  margin-left: 7%;
  fill: currentColor;
  stroke: none;
}

body:has(.prompt-workspace) .generation-results .result-action-bar {
  position: absolute;
  right: auto;
  bottom: 10px;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  width: 116px;
  max-width: calc(100% - 12px);
  height: 32px;
  padding: 0 4px;
  box-sizing: border-box;
  pointer-events: none;
  background: rgba(29, 31, 34, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, 5px) scale(0.985);
  transition:
    opacity 170ms ease,
    transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(13px) saturate(135%) brightness(0.86);
  -webkit-backdrop-filter: blur(13px) saturate(135%) brightness(0.86);
}

body:has(.prompt-workspace) .generation-results .result-action-bar.is-video-actions {
  grid-template-columns: repeat(3, 1fr);
  width: 90px;
}

body:has(.prompt-workspace) .generation-results .result-action-bar.is-video-actions.single-action {
  grid-template-columns: 1fr;
  width: 38px;
}

body:has(.prompt-workspace) .generation-results .result-image-tile:hover .result-action-bar,
body:has(.prompt-workspace) .generation-results .result-image-tile:focus-within .result-action-bar {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

body:has(.prompt-workspace) .generation-results .result-action-bar button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition:
    color 120ms ease,
    background 120ms ease,
    transform 120ms ease;
}

body:has(.prompt-workspace) .generation-results .result-action-bar button::after {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 3;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.94);
  content: attr(data-tooltip);
  white-space: nowrap;
  pointer-events: none;
  background: rgba(28, 30, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 80ms ease, transform 80ms ease;
}

body:has(.prompt-workspace) .generation-results .result-action-bar button:hover::after,
body:has(.prompt-workspace) .generation-results .result-action-bar button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

body:has(.prompt-workspace) .generation-results .result-action-bar button:hover {
  color: #ffffff;
  background: rgba(161, 163, 170, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: none;
}

body:has(.prompt-workspace) .generation-results .result-action-bar button:disabled,
body:has(.prompt-workspace) .generation-results .result-action-bar button.is-busy {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

body:has(.prompt-workspace) .generation-results .result-action-bar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio="16-9"] .result-image-tile {
  width: 238px;
  aspect-ratio: 16 / 9;
}

body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio="4-3"] .result-image-tile {
  width: 210px;
  aspect-ratio: 4 / 3;
}

body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio="3-2"] .result-image-tile {
  width: 226px;
  aspect-ratio: 3 / 2;
}

body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio="3-4"] .result-image-tile {
  width: 136px;
  aspect-ratio: 3 / 4;
}

body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio="2-3"] .result-image-tile {
  width: 136px;
  aspect-ratio: 2 / 3;
}

body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio="9-16"] .result-image-tile {
  width: 136px;
  aspect-ratio: 9 / 16;
}

/* Keep every generated thumbnail on one column width; only the height follows its ratio. */
body:has(.prompt-workspace) .generation-results .result-image-card[data-ratio] .result-image-tile {
  width: 100%;
}

body:has(.prompt-workspace) .generation-results .result-skeleton {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #151619;
  border-radius: 7px;
}

body:has(.prompt-workspace) .generation-results .result-skeleton div {
  width: 100%;
  height: 100%;
  background: linear-gradient(100deg, #191a1d 0%, #24262a 44%, #191a1d 88%);
  background-size: 220% 100%;
  animation: resultShimmer 1.2s ease-in-out infinite;
}

body:has(.prompt-workspace) .generation-results .result-loading-card {
  position: relative;
}

body:has(.prompt-workspace) .generation-results .result-loading-tile {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #17191c;
}

body:has(.prompt-workspace) .generation-results .result-loading-tile img,
body:has(.prompt-workspace) .generation-results .result-loading-tile video {
  position: relative;
  z-index: -2;
  filter: blur(8px) brightness(0.62) saturate(0.78);
  transform: scale(1.08);
}

body:has(.prompt-workspace) .generation-results .result-loading-tile::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: rgba(9, 12, 17, 0.36);
}

body:has(.prompt-workspace) .generation-results .result-loading-progress {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 62%;
  height: 6px;
  overflow: hidden;
  background: rgba(243, 245, 248, 0.34);
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

body:has(.prompt-workspace) .generation-results .result-loading-progress span {
  display: block;
  width: 8%;
  height: 100%;
  background: #f6f7f8;
  border-radius: inherit;
  transition: width 0.18s linear;
}

@keyframes resultShimmer {
  0% {
    background-position: 120% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

@keyframes resultStatePulse {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

@media (max-width: 1100px) {
  body:has(.prompt-workspace) .generation-results .result-board-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:has(.prompt-workspace) .generation-results .result-board-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  body:has(.prompt-workspace) .generation-results .result-masonry-column {
    gap: 10px;
  }
}

/* Purpose-built Shenniu Academy cover system v143. */
.academy-course-cover {
  --academy-accent: #7ce7e8;
  --academy-accent-rgb: 124, 231, 232;
  background:
    radial-gradient(circle at 72% 38%, rgba(var(--academy-accent-rgb), .09), transparent 30%),
    linear-gradient(145deg, #15191b 0%, #0b0d0f 76%);
}
.academy-course-cover::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 32%, #000);
  opacity: .75;
}
.academy-course-cover--video,
.academy-cover-art--video { --academy-accent: #9bb6ff; --academy-accent-rgb: 155, 182, 255; }
.academy-course-cover--canvas,
.academy-cover-art--canvas { --academy-accent: #86e3c3; --academy-accent-rgb: 134, 227, 195; }
.academy-cover-art--commerce { --academy-accent: #e6ba79; --academy-accent-rgb: 230, 186, 121; }

.academy-cover-art {
  --academy-accent: #7ce7e8;
  --academy-accent-rgb: 124, 231, 232;
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 42%, rgba(var(--academy-accent-rgb), .12), transparent 31%),
    linear-gradient(145deg, #15191b, #0b0d0f 78%);
}
.academy-art-field {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 8%, #000 54%, transparent);
  mask-image: linear-gradient(90deg, transparent 8%, #000 54%, transparent);
}
.academy-art-orbit {
  position: absolute;
  top: 18%;
  right: 8%;
  width: 43%;
  aspect-ratio: 1;
  border: 1px solid rgba(var(--academy-accent-rgb), .3);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(var(--academy-accent-rgb), .025), 0 0 54px rgba(var(--academy-accent-rgb), .08);
  transform: rotate(-14deg) skewX(8deg);
  transition: transform 240ms cubic-bezier(.23, 1, .32, 1), border-color 180ms ease;
}
.academy-art-orbit::before,
.academy-art-orbit::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}
.academy-art-orbit::before { inset: 23%; border: 1px dashed rgba(238,245,245,.17); }
.academy-art-orbit::after { top: 5%; right: 17%; width: 7px; height: 7px; background: var(--academy-accent); box-shadow: 0 0 18px rgba(var(--academy-accent-rgb), .6); }
.academy-art-plane {
  position: absolute;
  right: 12%;
  width: 32%;
  height: 26%;
  border: 1px solid rgba(238,244,245,.14);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.012));
  box-shadow: 0 18px 40px rgba(0,0,0,.25);
  transform: perspective(440px) rotateY(-28deg) rotateX(10deg);
  transition: transform 260ms cubic-bezier(.23, 1, .32, 1);
}
.academy-art-plane--back { top: 28%; right: 18%; opacity: .42; transform: perspective(440px) rotateY(-28deg) rotateX(10deg) translate(22px, -16px); }
.academy-art-plane--front { top: 35%; }
.academy-art-core {
  position: absolute;
  top: 41%;
  right: 20%;
  display: flex;
  width: 18%;
  height: 10%;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(var(--academy-accent-rgb), .38);
  border-radius: 7px;
  background: rgba(var(--academy-accent-rgb), .12);
  box-shadow: 0 0 24px rgba(var(--academy-accent-rgb), .1);
}
.academy-art-core i { display: block; width: 4px; height: 4px; background: var(--academy-accent); border-radius: 50%; opacity: .88; }
.academy-art-track {
  position: absolute;
  right: 8%;
  bottom: 22%;
  width: 43%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--academy-accent-rgb), .62), transparent);
}
.academy-art-track::before,
.academy-art-track::after { position: absolute; top: -2px; width: 5px; height: 5px; background: var(--academy-accent); border-radius: 50%; content: ""; }
.academy-art-track::before { left: 18%; }.academy-art-track::after { right: 13%; opacity: .45; }

.academy-cover-art--detail-page .academy-art-orbit { border-radius: 22%; transform: rotate(9deg) skewX(-4deg); }
.academy-cover-art--detail-page .academy-art-plane--back { transform: perspective(440px) rotateY(-18deg) translate(8px, -24px); }
.academy-cover-art--model-swap .academy-art-orbit { height: 58%; aspect-ratio: .58; border-radius: 45% 45% 18% 18%; transform: rotate(0); }
.academy-cover-art--model-swap .academy-art-plane { right: 16%; width: 23%; height: 34%; border-radius: 44% 44% 18% 18%; }
.academy-cover-art--viral-video .academy-art-plane { width: 18%; height: 42%; border-radius: 7px; }
.academy-cover-art--viral-video .academy-art-plane--back { right: 34%; transform: perspective(440px) rotateY(18deg) translate(-8px, -12px); }
.academy-cover-art--viral-video .academy-art-core { width: 10%; border-radius: 50%; }
.academy-cover-art--canvas-basics .academy-art-plane,
.academy-cover-art--shenniu-flow .academy-art-plane { width: 20%; height: 21%; }
.academy-cover-art--canvas-basics .academy-art-plane--back,
.academy-cover-art--shenniu-flow .academy-art-plane--back { top: 23%; right: 28%; transform: none; }
.academy-cover-art--canvas-basics .academy-art-plane--front,
.academy-cover-art--shenniu-flow .academy-art-plane--front { top: 47%; right: 10%; transform: none; }
.academy-cover-art--canvas-basics .academy-art-track,
.academy-cover-art--shenniu-flow .academy-art-track { right: 14%; bottom: 42%; width: 34%; transform: rotate(26deg); }
.academy-cover-art--poster-light .academy-art-orbit { border-radius: 4px; transform: rotate(45deg) scale(.78); }
.academy-cover-art--poster-light .academy-art-plane { background: linear-gradient(120deg, rgba(var(--academy-accent-rgb), .24), transparent 64%); }
.academy-cover-art--video-storyboard .academy-art-plane { width: 19%; height: 34%; }
.academy-cover-art--video-storyboard .academy-art-plane--back { right: 34%; opacity: .68; transform: perspective(440px) rotateY(10deg) translate(-4px, -9px); }

.academy-cover-shade { z-index: 1; background: linear-gradient(90deg, rgba(8,10,11,.78), rgba(8,10,11,.2) 52%, rgba(8,10,11,.12)); }
.academy-course-cover:hover .academy-cover-art,
.academy-course-cover:focus-visible .academy-cover-art { filter: brightness(.82); }
.academy-course-cover:hover .academy-art-orbit,
.academy-course-cover:focus-visible .academy-art-orbit { border-color: rgba(var(--academy-accent-rgb), .56); transform: rotate(-8deg) skewX(8deg) scale(1.035); }
.academy-course-cover:hover .academy-art-plane--front,
.academy-course-cover:focus-visible .academy-art-plane--front { transform: perspective(440px) rotateY(-22deg) rotateX(7deg) translateX(-5px); }

.academy-lesson-media--designed {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.08);
}
.academy-lesson-media--designed .academy-cover-art { transform: scale(1.02); }
.academy-detail-cover-top {
  position: absolute;
  top: 26px;
  right: 28px;
  left: 28px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.academy-detail-cover-top b { color: rgba(247,249,250,.9); font-size: 12px; letter-spacing: .14em; }
.academy-detail-cover-top em { padding: 6px 9px; color: #071112; background: var(--academy-accent, #7ce7e8); border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 720; }
.academy-detail-cover-number { position: absolute; bottom: 24px; left: 28px; z-index: 2; color: rgba(255,255,255,.12); font-size: clamp(64px, 7vw, 100px); font-weight: 760; line-height: .9; letter-spacing: -.07em; }

@media (prefers-reduced-motion: reduce) {
  .academy-art-orbit,
  .academy-art-plane { transition: none; }
}

/* Shenniu Academy preview v139. */
body.shenniu-academy-open { overflow: hidden; }
.shenniu-academy[hidden] { display: none !important; }

body:has(.koozee-home):has(.home-primary-header) .shenniu-academy {
  position: fixed;
  inset: var(--home-header-height, 72px) max(var(--home-gutter), calc((100vw - var(--home-content-width)) / 2)) 10px;
  z-index: 32;
  overflow: auto;
  color: #f4f6f7;
  background: #090a0b;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

.shenniu-academy-content {
  width: 100%;
  min-height: 100%;
  padding: 34px 0 72px;
  box-sizing: border-box;
}

.shenniu-academy-filters {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 44px;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.shenniu-academy-filters[hidden] { display: none; }
.shenniu-academy-filters button {
  position: relative;
  align-self: stretch;
  padding: 0;
  color: rgba(232, 235, 237, .44);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 580;
  cursor: pointer;
}
.shenniu-academy-filters button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: #f2f4f5;
  border-radius: 2px 2px 0 0;
  content: "";
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1);
}
.shenniu-academy-filters button:hover,
.shenniu-academy-filters button:focus-visible,
.shenniu-academy-filters button.is-active { color: rgba(249, 250, 251, .94); outline: none; }
.shenniu-academy-filters button.is-active::after { opacity: 1; transform: scaleX(1); }

.academy-course-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 20px;
}
.academy-course-card { min-width: 0; }
.academy-course-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  background: #17191b;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.academy-course-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 220ms ease, transform 260ms cubic-bezier(.23, 1, .32, 1);
}
.academy-course-overlay {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  color: #fff;
  opacity: 0;
  background: rgba(8, 9, 10, .72);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 9px;
  transform: translateY(5px);
  transition: opacity 170ms ease, transform 190ms cubic-bezier(.23, 1, .32, 1);
  backdrop-filter: blur(10px);
}
.academy-course-overlay b { font-size: 12px; font-weight: 630; }
.academy-course-overlay i { font-size: 18px; font-style: normal; font-weight: 400; }
.academy-course-cover:hover img,
.academy-course-cover:focus-visible img { filter: brightness(.74); transform: scale(1.025); }
.academy-course-cover:hover .academy-course-overlay,
.academy-course-cover:focus-visible .academy-course-overlay { opacity: 1; transform: none; }
.academy-course-cover:focus-visible { outline: 1px solid rgba(255, 255, 255, .32); outline-offset: 3px; }
.academy-course-copy { padding: 12px 2px 0; }
.academy-course-copy strong {
  display: block;
  overflow: hidden;
  color: rgba(247, 249, 250, .9);
  font-size: 14px;
  font-weight: 610;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.academy-course-copy span {
  display: block;
  margin-top: 6px;
  color: rgba(226, 231, 234, .4);
  font-size: 11px;
}

.academy-lesson-detail { max-width: 1180px; margin: 0 auto; }
.academy-lesson-back {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: rgba(237, 240, 242, .6);
  background: transparent;
  border: 0;
  font-size: 13px;
  cursor: pointer;
}
.academy-lesson-back:hover { color: #fff; }
.academy-lesson-back span { font-size: 18px; }
.academy-lesson-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  margin-top: 24px;
}
.academy-lesson-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #17191b;
  border-radius: 16px;
}
.academy-lesson-media img { width: 100%; height: 100%; object-fit: cover; }
.academy-lesson-copy > span { color: rgba(224, 229, 232, .45); font-size: 12px; }
.academy-lesson-copy h2 { margin: 12px 0 10px; font-size: clamp(25px, 2.4vw, 36px); font-weight: 650; letter-spacing: -.035em; }
.academy-lesson-copy > p { margin: 0; color: rgba(228, 232, 235, .56); font-size: 14px; line-height: 1.7; }
.academy-lesson-copy ol { display: grid; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.academy-lesson-copy li {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: rgba(241, 243, 244, .8);
  background: #151719;
  border-radius: 10px;
  font-size: 13px;
}
.academy-lesson-copy li b {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: #090a0b;
  background: #69e5ec;
  border-radius: 50%;
  font-size: 11px;
}
.academy-lesson-actions { display: flex; gap: 10px; margin-top: 24px; }
.academy-lesson-actions button {
  min-height: 42px;
  padding: 0 16px;
  color: rgba(246, 248, 249, .9);
  background: #1b1d20;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}
.academy-lesson-actions button:first-child { color: #071112; background: #69e5ec; border-color: #69e5ec; }
.academy-lesson-actions button:hover { filter: brightness(1.1); }

@media (max-width: 1050px) {
  .academy-course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .academy-lesson-shell { grid-template-columns: 1fr; }
  .academy-lesson-copy { max-width: 660px; }
}
@media (max-width: 760px) {
  .shenniu-academy-content { padding: 22px 0 48px; }
  .shenniu-academy-filters { gap: 20px; overflow-x: auto; margin-bottom: 22px; }
  .shenniu-academy-filters button { flex: 0 0 auto; font-size: 12px; }
  .academy-course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 11px; }
  .academy-course-overlay { display: none; }
  .academy-course-copy strong { font-size: 12px; }
  .academy-lesson-shell { gap: 24px; margin-top: 16px; }
  .academy-lesson-media { border-radius: 12px; }
  .academy-lesson-actions { flex-direction: column; }
}

@media (max-width: 520px) {
  body:has(.prompt-workspace) .generation-results .result-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Full-size preview follows the homepage's dark glass language. */
body:has(.koozee-home) .image-preview-modal {
  padding: 20px;
  background: rgba(5, 7, 9, 0.82);
  backdrop-filter: blur(14px) saturate(105%);
  -webkit-backdrop-filter: blur(14px) saturate(105%);
}

body:has(.koozee-home) .image-preview-dialog {
  width: min(1040px, 100%);
  max-height: calc(100vh - 40px);
  gap: 12px;
  padding: 12px;
  background: rgba(22, 24, 27, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow:
    0 28px 84px rgba(0, 0, 0, 0.58),
    0 2px 16px rgba(0, 0, 0, 0.3);
}

body:has(.koozee-home) .image-preview-dialog img,
body:has(.koozee-home) .image-preview-dialog video {
  max-height: calc(100vh - 126px);
  background: #0d0f11;
  border-radius: 12px;
}

body:has(.koozee-home) .image-preview-close {
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(247, 248, 249, 0.9);
  background: rgba(24, 27, 30, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

body:has(.koozee-home) .image-preview-close:hover {
  color: #ffffff;
  background: rgba(52, 56, 60, 0.96);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
  transform: scale(1.04);
}

body:has(.koozee-home) .image-preview-close svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
}

body:has(.koozee-home) .image-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(19, 22, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%);
}

body:has(.koozee-home) .image-preview-nav:hover {
  color: #ffffff;
  background: rgba(30, 34, 37, 0.9);
}

body:has(.koozee-home) .image-preview-nav[hidden] {
  display: none;
}

body:has(.koozee-home) .image-preview-nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:has(.koozee-home) .image-preview-prev {
  left: 22px;
}

body:has(.koozee-home) .image-preview-next {
  right: 22px;
}

body:has(.koozee-home) .image-preview-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(150px, 100%);
  min-height: 36px;
  margin: 0 0 0 auto;
  gap: 12px;
  align-items: stretch;
}

body:has(.koozee-home) .image-preview-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 36px;
  padding: 0 16px;
  color: rgba(247, 248, 249, 0.96);
  background: #252629;
  border: 0;
  border-radius: 11px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
}

body:has(.koozee-home) .image-preview-actions button:hover {
  color: #ffffff;
  background: #303236;
  box-shadow: none;
}

body:has(.koozee-home) .image-preview-actions .image-preview-download-button {
  font-size: 0;
}

body:has(.koozee-home) .image-preview-actions .image-preview-download-button::before {
  width: 19px;
  height: 19px;
  margin-right: 9px;
  content: "";
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v13M7 11l5 5 5-5M5 21h14' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3v13M7 11l5 5 5-5M5 21h14' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

body:has(.koozee-home) .image-preview-actions .image-preview-download-button::after {
  content: "下载";
  font-size: 15px;
  line-height: 1;
  font-weight: 600;
}

@media (max-width: 640px) {
  body:has(.koozee-home) .image-preview-modal {
    padding: 10px;
  }

  body:has(.koozee-home) .image-preview-dialog {
    padding: 8px;
    border-radius: 14px;
  }

  body:has(.koozee-home) .image-preview-dialog img,
  body:has(.koozee-home) .image-preview-dialog video {
    max-height: calc(100vh - 92px);
    border-radius: 9px;
  }

  body:has(.koozee-home) .image-preview-close {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
  }

  body:has(.koozee-home) .image-preview-nav {
    width: 40px;
    height: 40px;
  }

  body:has(.koozee-home) .image-preview-prev {
    left: 14px;
  }

  body:has(.koozee-home) .image-preview-next {
    right: 14px;
  }

  body:has(.koozee-home) .image-preview-actions {
    min-height: 42px;
  }

  body:has(.koozee-home) .image-preview-actions {
    width: 100%;
  }

  body:has(.koozee-home) .image-preview-actions button {
    height: 40px;
  }

  body:has(.koozee-home) .image-preview-actions .image-preview-download-button {
    width: 100%;
  }
}

/* Confirmation dialogs use the same dark, quiet hierarchy as the homepage. */
body:has(.koozee-home) .app-dialog-modal {
  z-index: 4300;
  padding: 20px;
  background: rgba(4, 6, 8, 0.78);
  backdrop-filter: blur(12px) saturate(105%);
  -webkit-backdrop-filter: blur(12px) saturate(105%);
}

body:has(.koozee-home) .app-dialog {
  width: min(430px, 100%);
  padding: 30px 30px 30px;
  color: #f6f7f8;
  text-align: center;
  background: #242528;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 17px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.56);
}

body:has(.koozee-home) .app-dialog-icon {
  display: none;
}

body:has(.koozee-home) .app-dialog-close {
  display: none;
}

body:has(.koozee-home) .app-dialog-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

body:has(.koozee-home) .app-dialog h2 {
  padding-right: 0;
  color: #f7f8f9;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}

body:has(.koozee-home) .app-dialog p {
  margin-top: 12px;
  color: rgba(215, 218, 223, 0.7);
  font-size: 15px;
  font-weight: 460;
  line-height: 1.45;
}

body:has(.koozee-home) .app-dialog-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

body:has(.koozee-home) .app-dialog-actions:has(.app-dialog-secondary[hidden]) {
  grid-template-columns: minmax(0, 176px);
  justify-content: center;
}

body:has(.koozee-home) .app-dialog-actions button {
  min-width: 0;
  height: 43px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 650;
}

body:has(.koozee-home) .app-dialog-secondary {
  color: rgba(245, 246, 248, 0.92);
  background: #36373b;
}

body:has(.koozee-home) .app-dialog-secondary:hover {
  color: #ffffff;
  background: #3c3d42;
  border: 0;
}

body:has(.koozee-home) .app-dialog-primary {
  color: #071417;
  background: #25cee7;
  border: 0;
  box-shadow: none;
}

body:has(.koozee-home) .app-dialog-primary:hover {
  color: #071417;
  background: #39d8ed;
  border: 0;
  box-shadow: none;
}

@media (max-width: 520px) {
  body:has(.koozee-home) .app-dialog {
    width: min(360px, 100%);
    padding: 28px 20px 22px;
  }

  body:has(.koozee-home) .app-dialog-actions {
    gap: 10px;
  }
}

/* Settings trigger feedback: quiet hover, brighter open state. */
body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button {
  position: relative;
  z-index: 1;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

body:has(.koozee-home) .koozee-rail a:focus,
body:has(.koozee-home) .koozee-rail-bottom a:focus,
body:has(.koozee-home) .koozee-rail a:focus-visible,
body:has(.koozee-home) .koozee-rail-bottom a:focus-visible {
  outline: none;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-rail-bottom a.active,
body:has(.koozee-home) .koozee-rail-bottom a.active:focus,
body:has(.koozee-home) .koozee-rail-bottom a.active:focus-visible {
  background: transparent;
  outline: none;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-language-picker {
  position: relative;
  width: 36px;
  height: 36px;
}

body:has(.koozee-home) .koozee-language-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

body:has(.koozee-home) .koozee-language-trigger:hover {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-language-trigger:hover .koozee-bottom-icon--outline {
  filter: brightness(0);
}

body:has(.koozee-home) .koozee-language-trigger:focus,
body:has(.koozee-home) .koozee-language-trigger:focus-visible {
  outline: none;
}

body:has(.koozee-home) .koozee-language-picker.open .koozee-language-trigger {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-language-picker.open .koozee-bottom-icon--outline {
  opacity: 0;
}

body:has(.koozee-home) .koozee-language-picker.open .koozee-bottom-icon--solid {
  opacity: 1;
}

body:has(.koozee-home) .koozee-language-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 18px);
  z-index: 90;
  width: 128px;
  padding: 5px 0;
  overflow: hidden;
  background: rgba(44, 46, 50, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.28);
}

body:has(.koozee-home) .koozee-language-menu[hidden] {
  display: none;
}

body:has(.koozee-home) .koozee-language-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  height: 38px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.14s ease, background-color 0.14s ease;
}

body:has(.koozee-home) .koozee-language-menu button:hover,
body:has(.koozee-home) .koozee-language-menu button:focus-visible {
  background: rgba(255, 255, 255, 0.045);
  outline: none;
}

body:has(.koozee-home) .koozee-language-menu button[aria-checked="true"] {
  color: #2bcce2;
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button:hover,
body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: none;
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool.open > button {
  color: #ffffff;
  background: #303134;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool.open > .settings-quality-trigger {
  border-left-color: rgba(255, 255, 255, 0.1) !important;
}

/* Provided sidebar icon set: outline, hover and selected states. */
body:has(.koozee-home) .koozee-rail {
  gap: 18px;
  padding-top: 26px;
  padding-left: 18px;
}

body:has(.koozee-home) .koozee-rail a {
  width: 42px;
  height: 42px;
  overflow: visible;
  border-radius: 11px;
  transform: none;
  transition: background-color 0.14s ease, box-shadow 0.14s ease;
}

body:has(.koozee-home) .koozee-rail a:hover,
body:has(.koozee-home) .koozee-rail a.active {
  transform: none;
}

body:has(.koozee-home) .koozee-rail a:not(.active):hover {
  background: #2bd4ea;
  box-shadow: 0 0 18px rgba(43, 212, 234, 0.14);
}

.koozee-nav-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  transition: opacity 0.12s ease, filter 0.12s ease;
}

.koozee-nav-icon--outline {
  opacity: 0.5;
  filter: brightness(0) invert(1);
}

.koozee-nav-icon--solid {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail a.active .koozee-nav-icon--outline {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail a.active .koozee-nav-icon--solid {
  opacity: 1;
}

body:has(.koozee-home) .koozee-rail a:not(.active):hover .koozee-nav-icon--outline {
  opacity: 1;
  filter: brightness(0);
}

body:has(.koozee-home) .koozee-rail a::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  z-index: 60;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 15px;
  color: #ffffff;
  background: linear-gradient(90deg, #292c31 0%, #292c31 74%, rgba(43, 212, 234, 0.22) 100%);
  border: 1px solid rgba(135, 145, 156, 0.46);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-4px, -50%);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s ease;
  pointer-events: none;
}

body:has(.koozee-home) .koozee-rail a:not(.active):hover::after {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

body:has(.koozee-home) .koozee-rail a.new span {
  top: -8px;
  right: -17px;
}

/* Treat Auto and quality as one control: one shared hover/open surface and clean outer corners. */
body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button:first-of-type {
  border-radius: 10px 0 0 10px;
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool > button:last-of-type {
  border-radius: 0 10px 10px 0;
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool:has(> button:hover) > button,
body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool.open > button {
  color: #ffffff;
  background: #303134;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool:has(> button:hover) > .settings-quality-trigger,
body:has(.prompt-workspace) .koozee-composer-panel .settings-select-tool.open > .settings-quality-trigger {
  border-left-color: rgba(255, 255, 255, 0.1) !important;
}

/* Reference-style compact home rail. Keep this after the legacy rail rules. */
body:has(.koozee-home) .koozee-sidebar {
  --koozee-rail-width: 164px;
  --koozee-icon-left: 15px;
  width: var(--koozee-rail-width);
  grid-template-rows: 70px minmax(0, 1fr) auto;
  padding: 22px 0 30px;
  background: linear-gradient(180deg, #0b0c0e 0%, #090a0b 54%, #08090a 100%);
}

body:has(.koozee-home) .koozee-brand {
  align-items: flex-start;
  height: 44px;
  padding-left: 22px;
}

body:has(.koozee-home) .koozee-brand .brand-logo-img {
  height: 25px;
  max-width: 150px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
}

body:has(.koozee-home) .koozee-rail,
body:has(.koozee-home) .koozee-rail-bottom {
  justify-items: start;
  padding-left: var(--koozee-icon-left);
}

body:has(.koozee-home) .koozee-rail {
  gap: 12px;
  padding-top: 23px;
}

body:has(.koozee-home) .koozee-rail-bottom {
  gap: 22px;
}

body:has(.koozee-home) .koozee-rail a,
body:has(.koozee-home) .koozee-rail-bottom a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.48);
  background: transparent;
  transform: none;
  transition: color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

body:has(.koozee-home) .koozee-rail a:hover,
body:has(.koozee-home) .koozee-rail-bottom a:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

body:has(.koozee-home) .koozee-rail a:not(.active):hover {
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail a.active {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-rail svg,
body:has(.koozee-home) .koozee-rail-bottom svg,
body:has(.koozee-home) .koozee-nav-icon,
body:has(.koozee-home) .koozee-bottom-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

body:has(.koozee-home) [data-open-notifications].notification-arrived .koozee-bottom-icon {
  transform-origin: 50% 12%;
  animation: notification-bell-ring 760ms cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

body:has(.koozee-home) [data-open-notifications].notification-arrived .koozee-notification-dot {
  animation: notification-dot-pop 540ms cubic-bezier(0.2, 0.9, 0.25, 1.35) both;
}

@keyframes notification-bell-ring {
  0%, 100% { transform: rotate(0deg); }
  18% { transform: rotate(13deg); }
  36% { transform: rotate(-11deg); }
  54% { transform: rotate(8deg); }
  72% { transform: rotate(-5deg); }
  88% { transform: rotate(2deg); }
}

@keyframes notification-dot-pop {
  0% { transform: scale(0.25); opacity: 0; }
  55% { transform: scale(1.45); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

body:has(.koozee-home) .koozee-rail-bottom svg {
  stroke-width: 2.05;
}

body:has(.koozee-home) .koozee-nav-icon--outline {
  opacity: 1;
  filter: none;
}

body:has(.koozee-home) .koozee-nav-icon--solid {
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.08));
}

body:has(.koozee-home) .koozee-bottom-icon {
  position: absolute;
  pointer-events: none;
  transition: opacity 0.12s ease, filter 0.12s ease;
}

body:has(.koozee-home) .koozee-bottom-icon--outline {
  opacity: 1;
  filter: none;
}

body:has(.koozee-home) .koozee-bottom-icon--solid {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail a.active .koozee-nav-icon--solid {
  opacity: 1;
}

body:has(.koozee-home) .koozee-rail-bottom a.active .koozee-bottom-icon--outline {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail-bottom a.active .koozee-bottom-icon--solid {
  opacity: 1;
}

body:has(.koozee-home) .koozee-rail a:not(.active):hover .koozee-nav-icon--outline {
  opacity: 1;
  filter: brightness(0);
}

body:has(.koozee-home) .koozee-rail-bottom a:not(.active):hover {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail-bottom a:not(.active):hover .koozee-bottom-icon--outline {
  opacity: 1;
  filter: brightness(0);
}

body:has(.koozee-home) .koozee-rail a.new .koozee-new-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  z-index: 2;
  display: block;
  width: 27px;
  height: 20px;
  max-width: none;
  pointer-events: none;
}

body:has(.koozee-home) .koozee-rail-bottom i {
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  box-shadow: 0 0 0 2px #090a0b;
}

body:has(.koozee-home) .koozee-rail a::after {
  left: calc(100% + 12px);
  min-height: 36px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(25, 27, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  font-size: 14px;
  font-weight: 700;
}

.user-avatar {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.user-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.user-avatar-image.default-avatar::before,
.user-avatar-image.default-avatar::after {
  display: none;
}

.user-avatar-image {
  background: #0b0c0d;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

.user-avatar-image img {
  transform: scale(1.06);
}

.default-avatar {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 70% 68%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #182024, #355d67 52%, #90d7ce);
}

.default-avatar::before,
.default-avatar::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border-radius: inherit;
}

.default-avatar::before {
  background:
    conic-gradient(from 210deg at 52% 50%, rgba(255, 255, 255, 0.22), transparent 16%, rgba(0, 0, 0, 0.22) 36%, transparent 58%, rgba(255, 255, 255, 0.18) 82%, transparent),
    radial-gradient(ellipse at 28% 70%, rgba(255, 214, 168, 0.3), transparent 36%);
  mix-blend-mode: overlay;
}

.default-avatar::after {
  inset: 10%;
  background:
    linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.22) 38%, transparent 58%),
    radial-gradient(circle at 50% 50%, transparent 52%, rgba(255, 255, 255, 0.18) 54%, transparent 58%);
  opacity: 0.7;
  filter: blur(0.2px);
}

.default-avatar i {
  position: absolute;
  inset: 18%;
  border-radius: 42% 58% 48% 52%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12), 0 8px 22px rgba(0, 0, 0, 0.18);
  transform: rotate(-18deg);
}

.default-avatar-1 { background-color: #17464f; background-image: radial-gradient(circle at 28% 25%, #e8fff9, transparent 17%), linear-gradient(145deg, #102025, #2f747b 55%, #8bf0d8); }
.default-avatar-2 { background-color: #312331; background-image: radial-gradient(circle at 34% 24%, #fff1dc, transparent 18%), linear-gradient(145deg, #20151d, #6d4860 52%, #d7b384); }
.default-avatar-3 { background-color: #202d44; background-image: radial-gradient(circle at 34% 24%, #edf6ff, transparent 18%), linear-gradient(145deg, #121927, #405a82 52%, #b6c7e8); }
.default-avatar-4 { background-color: #3a2b17; background-image: radial-gradient(circle at 30% 22%, #fff8cf, transparent 18%), linear-gradient(145deg, #19140e, #7a5c2e 54%, #e2c36f); }
.default-avatar-5 { background-color: #1f3a32; background-image: radial-gradient(circle at 30% 24%, #effff8, transparent 18%), linear-gradient(145deg, #101c18, #426d5c 54%, #b5e6d4); }
.default-avatar-6 { background-color: #2f273d; background-image: radial-gradient(circle at 36% 22%, #f8efff, transparent 17%), linear-gradient(145deg, #18131f, #62517e 54%, #c7b8ff); }
.default-avatar-7 { background-color: #3d2421; background-image: radial-gradient(circle at 32% 24%, #fff0e9, transparent 18%), linear-gradient(145deg, #1e1210, #7b443c 54%, #e2a18e); }
.default-avatar-8 { background-color: #1f303a; background-image: radial-gradient(circle at 30% 22%, #effbff, transparent 18%), linear-gradient(145deg, #11191d, #3c6573 56%, #a6dce9); }
.default-avatar-9 { background-color: #302f26; background-image: radial-gradient(circle at 34% 23%, #fffbe3, transparent 18%), linear-gradient(145deg, #171713, #6b6956 54%, #ddd8aa); }
.default-avatar-10 { background-color: #21342f; background-image: radial-gradient(circle at 33% 23%, #f2fff6, transparent 18%), linear-gradient(145deg, #111b18, #426b63 54%, #72e4c4); }
.default-avatar-11 { background-color: #2e2630; background-image: radial-gradient(circle at 32% 22%, #fff2f7, transparent 18%), linear-gradient(145deg, #171217, #6c5162 54%, #efc3d4); }
.default-avatar-12 { background-color: #202733; background-image: radial-gradient(circle at 32% 24%, #f2f7ff, transparent 18%), linear-gradient(145deg, #111721, #4b5870 54%, #d8dee8); }

body:has(.koozee-home) .koozee-user-trigger {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

body:has(.koozee-home) .koozee-user-trigger:focus {
  outline: none;
}

body:has(.koozee-home) .koozee-user-trigger:focus-visible .koozee-user-trigger-avatar {
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22), 0 0 0 2px rgba(106, 242, 217, 0.28);
}

body:has(.koozee-home) .koozee-user-trigger-avatar {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-user-panel {
  top: calc(100% + 7px);
  right: 0;
  gap: 8px;
  width: 238px;
  padding: 9px 10px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0) 36%),
    linear-gradient(145deg, rgba(43, 43, 47, 0.84), rgba(49, 47, 50, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px) saturate(1.06);
}

body:has(.koozee-home) .koozee-user-panel::before {
  display: none;
}

.koozee-profile-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
}

.koozee-profile-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.koozee-profile-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.koozee-profile-copy strong {
  overflow: hidden;
  color: #ffffff;
  font-size: 15px;
  font-weight: 680;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.koozee-profile-copy span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(235, 237, 241, 0.7);
  font-size: 12.5px;
  font-weight: 430;
}

.koozee-profile-copy button {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  color: rgba(235, 237, 241, 0.64);
  background: transparent;
  border: 0;
}

.koozee-profile-copy button svg,
.koozee-profile-arrow {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.05;
}

.koozee-profile-arrow {
  color: rgba(235, 237, 241, 0.66);
}

.koozee-vip-card {
  display: grid;
  gap: 5px;
  padding: 11px 12px 12px;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 8px;
}

.koozee-vip-title {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  color: #ffffff;
  line-height: 1;
  letter-spacing: 0.01em;
}

.koozee-vip-card .koozee-vip-title span {
  color: #ffffff;
  font-family: Arial Black, Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.koozee-vip-title em {
  font-size: 16px;
  font-weight: 680;
  font-style: italic;
  letter-spacing: 0;
}

.koozee-vip-card > span {
  color: rgba(226, 229, 235, 0.66);
  font-size: 11.5px;
  font-weight: 430;
  line-height: 1.2;
}

.koozee-vip-card button {
  height: 30px;
  margin-top: 4px;
  color: #071411;
  background: linear-gradient(90deg, #65d9ff, #2cf0c0 58%, #78ffd8);
  border: 0;
  border-radius: 7px;
  box-shadow:
    inset 12px 0 22px rgba(50, 205, 255, 0.34),
    inset -14px 0 24px rgba(176, 255, 224, 0.42),
    0 7px 16px rgba(47, 229, 207, 0.12);
  font-size: 12.5px;
  font-weight: 660;
}

body:has(.koozee-home) .koozee-user-panel .koozee-profile-copy button {
  width: 14px;
  height: 14px;
}

body:has(.koozee-home) .koozee-user-panel .koozee-vip-card button {
  height: 30px;
  font-size: 12.5px;
  font-weight: 660;
}

body:has(.koozee-home) .koozee-user-panel .koozee-account-action {
  min-height: 38px;
  height: 38px;
  color: rgba(245, 246, 248, 0.84);
  font-size: 13.5px;
  font-weight: 500;
}

body:has(.koozee-home) .koozee-user-panel .koozee-account-action.danger {
  color: rgba(232, 234, 238, 0.82);
}

.koozee-account-row,
.koozee-account-action {
  width: 100%;
  min-height: 34px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 540;
}

.koozee-account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.035);
}

.koozee-account-row strong {
  color: #ffffff;
  font-size: 15px;
  font-weight: 680;
}

.koozee-account-action {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-top: 0;
  font-size: 13.5px;
  font-weight: 500;
}

.koozee-account-action + .koozee-account-action {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
}

.koozee-account-action:hover,
.koozee-account-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

body:has(.koozee-home) .koozee-user-panel .koozee-account-action:hover {
  color: #041316;
  background: #25cee7;
  border-radius: 8px;
}

body:has(.koozee-home) .koozee-user-panel .koozee-account-action.danger:hover {
  color: #041316;
}

.koozee-account-action.danger {
  color: rgba(235, 237, 241, 0.76);
}

@media (max-width: 1280px) {
  body:has(.koozee-home) .koozee-sidebar {
    --koozee-rail-width: 92px;
    --koozee-icon-left: 3px;
  }

  body:has(.koozee-home) .koozee-brand {
    padding-left: 24px;
  }

  body:has(.koozee-home) .koozee-brand::before {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    font-size: 20px;
  }
}

/* Koozee-style split login modal. */
.login-modal {
  padding: 28px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(4px);
}

.login-dialog {
  display: grid;
  grid-template-columns: minmax(0, 0.436fr) minmax(0, 0.564fr);
  width: min(1180px, calc(100vw - 56px));
  height: min(760px, calc(100vh - 56px));
  min-height: 0;
  max-height: min(760px, calc(100vh - 56px));
  padding: 0;
  background: #ffffff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 26px 78px rgba(0, 0, 0, 0.34);
  transform: scale(0.8);
  transform-origin: center;
  animation: none;
}

.login-dialog::before {
  display: none;
}

.login-dialog .close-button {
  top: 14px;
  right: 14px;
  z-index: 4;
  width: 32px;
  height: 32px;
  color: #ffffff;
  background: #bfc0c2;
  border: 0;
  box-shadow: none;
}

.login-dialog .close-button:hover {
  color: #ffffff;
  background: #aeb0b3;
  transform: none;
}

.login-dialog .close-button svg {
  width: 17px;
  height: 17px;
  stroke-width: 2.1;
}

.login-visual-panel {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto 16px;
  gap: 8px;
  min-width: 0;
  padding: 38px 38px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(200, 181, 255, 0.84), transparent 28%),
    radial-gradient(circle at 14% 34%, rgba(135, 251, 215, 0.9), transparent 36%),
    linear-gradient(155deg, #c8f4ff 0%, #c9c7ff 36%, #8ff5d4 100%);
}

.login-visual-stage {
  position: relative;
  min-height: 0;
}

.login-visual-card {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.34)),
    radial-gradient(circle at 45% 36%, rgba(255, 255, 255, 0.56), transparent 28%),
    linear-gradient(180deg, rgba(245, 247, 241, 0.7), rgba(207, 213, 201, 0.5));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 17px;
  box-shadow: 0 18px 52px rgba(40, 75, 65, 0.18);
}

.login-visual-card.has-runtime-image {
  background-position: center top;
  background-size: cover;
}

.login-visual-card.has-runtime-image::after {
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 15, 13, 0.2));
}

.login-visual-card.has-runtime-image::before {
  display: none;
}

.login-visual-card::after {
  position: absolute;
  inset: 24px 32px 58px;
  content: "";
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 255, 255, 0.5), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(140, 210, 198, 0.08));
}

.login-visual-card::before {
  position: absolute;
  z-index: 1;
  inset: 24px 32px 58px;
  content: "";
  border: 1px dashed rgba(93, 111, 104, 0.22);
  border-radius: 16px;
}

.login-visual-tag {
  position: absolute;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 31px;
  padding: 0 14px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(70, 61, 54, 0.72), rgba(88, 226, 213, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  box-shadow: 0 9px 22px rgba(23, 86, 78, 0.18);
  font-size: 14px;
  font-weight: 690;
  white-space: nowrap;
}

.login-visual-tag.tag-primary {
  top: 52%;
}

.login-visual-tag.tag-secondary {
  top: calc(52% + 46px);
}

.login-visual-thumb {
  position: absolute;
  left: 24px;
  bottom: 32px;
  z-index: 2;
  display: grid;
  place-items: end center;
  width: 62px;
  height: 80px;
  overflow: hidden;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.58) 100%),
    rgba(255, 255, 255, 0.66);
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 9px;
  box-shadow: 0 10px 23px rgba(0, 0, 0, 0.16);
}

.login-visual-thumb.has-runtime-image {
  background-position: center;
  background-size: cover;
}

.login-visual-thumb span {
  padding-bottom: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
}

.login-sparkle {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
}

.login-sparkle::before,
.login-sparkle::after {
  position: absolute;
  inset: 0;
  content: "";
  background: #ffffff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.login-sparkle.sparkle-one {
  top: -12px;
  right: 24px;
}

.login-sparkle.sparkle-two {
  top: 10px;
  right: 6px;
  width: 13px;
  height: 13px;
}

.login-visual-logo {
  justify-self: center;
  width: 84px;
  height: auto;
  filter: brightness(0);
}

.login-visual-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.login-visual-dots span,
.login-visual-dots button {
  width: 5px;
  height: 5px;
  min-width: 5px;
  padding: 0;
  background: rgba(255, 255, 255, 0.64);
  border: 0;
  border-radius: 50%;
}

.login-visual-dots span.active,
.login-visual-dots button.active {
  background: #111111;
}

.koozee-tool-runtime-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* Match the dynamic reverse-prompt card icon to the brighter inline workflow icons. */
body:has(.koozee-home) .koozee-tool-runtime-icon[src*="07-text-effects"] {
  filter: brightness(1.72);
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 12000;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  color: #ffffff;
  background: rgba(24, 31, 28, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  font-size: 13px;
}

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

.login-content-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 58px 72px;
}

.login-content-panel .login-hero {
  width: min(500px, 100%);
  padding: 0;
}

.login-dialog h2 {
  margin: 0;
  color: #202329;
  font-size: 32px;
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: 0;
}

.login-hero p[hidden] {
  display: none;
}

.login-hero p {
  margin-top: 9px;
  color: #8a8e94;
  font-size: 14px;
  font-weight: 430;
  line-height: 1.35;
}

.login-methods,
.login-email-panel {
  display: grid;
  gap: 8px;
  width: min(500px, 100%);
  margin-top: 32px;
}

.login-methods[hidden],
.login-email-panel[hidden] {
  display: none;
}

.login-method-button {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  width: 100%;
  height: 58px;
  color: #33363c;
  background: #ffffff;
  border: 1px solid #d9dadd;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.login-method-button:hover {
  background: #fbfbfc;
  border-color: #cfd1d5;
  transform: translateY(-1px);
}

.login-method-button strong {
  min-width: 0;
  font-size: inherit;
  font-weight: inherit;
  text-align: center;
  white-space: nowrap;
}

.login-provider-icon {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.google-icon {
  color: #4285f4;
  font-family: Arial, sans-serif;
}

.email-icon {
  color: #ffffff;
  background: #63c90d;
}

.email-icon svg {
  width: 6px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
}

.wechat-icon {
  color: #ffffff;
  background: #11c873;
}

.wechat-icon svg {
  width: 10px;
  height: 10px;
  fill: currentColor;
}

.wechat-login-block {
  display: grid;
  gap: 12px;
  width: min(500px, 100%);
  margin-top: 22px;
}

.wechat-login-block[hidden] {
  display: none;
}

.wechat-login-block > span {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: #a1a4a8;
  font-size: 11px;
  font-weight: 620;
}

.wechat-login-block > span::before,
.wechat-login-block > span::after {
  height: 1px;
  background: #e7e8eb;
}

.wechat-login-button {
  margin: 0;
  color: #22252a;
  background: #ffffff;
  border: 1px solid #dedfe2;
  box-shadow: none;
}

.wechat-login-button:hover {
  color: #22252a;
  background: #fbfbfc;
  border-color: #cfd1d5;
  box-shadow: none;
}

.login-agreement {
  width: min(500px, 100%);
  margin-top: 18px;
  color: #81858a;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.5;
}

.login-agreement a {
  color: #2c3036;
  font-weight: 760;
}

/* Give the initial provider-choice view a little more visual presence. */
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-hero,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-methods,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-agreement {
  width: min(540px, 100%);
}

body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 {
  font-size: 35px;
}

body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-methods {
  margin-top: 38px;
}

body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-method-button {
  height: 64px;
  border-radius: 14px;
  font-size: 17px;
}

body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block {
  gap: 14px;
  margin-top: 25px;
}

body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-agreement {
  margin-top: 22px;
  font-size: 14px;
}

.login-tabs {
  gap: 6px;
  margin: 0;
  padding: 5px;
  background: #f4f5f6;
  border: 1px solid #e5e6e8;
  border-radius: 12px;
}

.login-tabs button {
  height: 42px;
  border-radius: 9px;
  font-size: 15px;
}

.login-fields {
  gap: 9px;
}

.login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 118px;
  gap: 9px;
}

.login-code-button {
  min-height: 46px;
  color: #2c5257;
  background: #e9f5f6;
  border: 1px solid #cfe6e8;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
  transition: color 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.login-code-button:hover {
  color: #173b40;
  background: #dff0f2;
  border-color: #bddcdf;
}

.login-code-button:disabled {
  cursor: not-allowed;
  color: #9ca8aa;
  background: #eff2f3;
  border-color: #e5e8e9;
}

.login-field {
  gap: 0;
  color: #34373d;
  font-size: 0;
}

.login-field[hidden],
.login-code-row[hidden],
.login-forgot[hidden] {
  display: none;
}

.login-input-shell {
  min-height: 46px;
  background: #f2f2f3;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  transition: background 0.16s ease;
}

.login-input-shell:focus-within {
  background: #f7f7f8;
  box-shadow: none;
}

.login-input-shell input {
  height: 46px;
  padding: 0 18px;
  color: #202329;
  font-size: 15px;
  font-weight: 420;
}

.login-input-shell input::placeholder {
  color: #bebfc3;
  font-weight: 400;
}

.login-input-shell input:-webkit-autofill,
.login-input-shell input:-webkit-autofill:hover,
.login-input-shell input:-webkit-autofill:focus {
  -webkit-text-fill-color: #202329;
  caret-color: #202329;
  border-radius: 12px;
  box-shadow: 0 0 0 1000px #f2f2f3 inset;
}

.login-input-shell #loginPassword {
  padding-right: 46px;
}

.login-input-shell .password-toggle {
  right: 7px;
  width: 32px;
  height: 32px;
  color: #8e9297;
}

.login-input-shell .password-toggle:hover {
  color: #2b2d30;
  background: transparent;
}

.login-input-shell .password-toggle svg {
  width: 16px;
  height: 16px;
}

.login-primary {
  height: 44px;
  margin-top: 0;
  color: #ffffff;
  background: #2d2e30;
  border-color: #2d2e30;
  border-radius: 11px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 500;
}

.login-primary:hover {
  background: #252628;
  border-color: #252628;
  box-shadow: none;
}

.login-forgot {
  justify-self: end;
  margin-top: 10px;
  padding: 2px 0;
  color: #858a90;
  font-size: 13px;
  font-weight: 500;
}

.login-forgot:hover {
  color: #2c3035;
}

.login-switch {
  margin-top: 2px;
  color: #8f9499;
  font-size: 13px;
  font-weight: 430;
  line-height: 1.3;
  text-align: center;
}

.login-switch button {
  color: #25282d;
  font-weight: 690;
  padding: 2px 3px;
}

.login-switch button:hover {
  color: #111317;
}

.login-message {
  width: min(500px, 100%);
  margin-top: 14px;
  border-radius: 10px;
}

.login-message[data-tone="success"] {
  color: #17613f;
  background: #edf8f2;
  border-color: #ccebd9;
}

body.login-email-expanded .login-content-panel {
  align-items: center;
  justify-content: center;
  padding: 44px 64px;
}

body.login-email-expanded .login-content-panel .login-hero,
body.login-email-expanded .login-email-panel,
body.login-email-expanded .login-message {
  width: min(590px, 100%);
}

body.login-email-expanded .login-dialog h2 {
  font-size: 40px;
  letter-spacing: -0.02em;
}

body.login-email-expanded .login-email-panel {
  gap: 12px;
  margin-top: 38px;
}

body.login-email-expanded .login-fields {
  gap: 12px;
}

body.login-email-expanded .login-code-row {
  grid-template-columns: minmax(0, 1fr) 142px;
  gap: 12px;
}

body.login-email-expanded .login-input-shell {
  min-height: 56px;
  background: #f4f4f5;
  border: 1px solid #eeeeef;
  border-radius: 14px;
}

body.login-email-expanded .login-input-shell:focus-within {
  background: #ffffff;
  border-color: #cfdcda;
  box-shadow: 0 0 0 3px rgba(68, 155, 141, 0.09);
}

body.login-email-expanded .login-input-shell input {
  height: 56px;
  padding: 0 22px;
  font-size: 17px;
}

body.login-email-expanded .login-account-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
}

body.login-email-expanded .login-account-shell::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 8px;
  height: 8px;
  content: "";
  pointer-events: none;
  border-right: 1.5px solid #70747a;
  border-bottom: 1.5px solid #70747a;
  transform: translateY(-70%) rotate(45deg);
}

body.login-email-expanded .login-account-shell input {
  min-width: 0;
}

body.login-email-expanded .login-account-shell select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 34px;
  padding: 0 46px 0 20px;
  color: #4b4e53;
  background-color: transparent;
  border: 0;
  border-left: 1px solid #dfe0e2;
  outline: 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 420;
}

body.login-email-expanded .login-account-shell select:hover {
  color: #1f2226;
}

body.login-email-expanded .login-account-shell select:focus-visible {
  color: #1f2226;
}

body.login-email-expanded .login-code-button {
  position: relative;
  min-height: 56px;
  overflow: hidden;
  color: #ffffff;
  background: #2d2e30;
  border-color: #2d2e30;
  border-radius: 14px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease;
}

body.login-email-expanded .login-code-button::after {
  display: none;
}

body.login-email-expanded .login-code-button:hover:not(:disabled) {
  color: #ffffff;
  background: #242527;
  border-color: #242527;
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

body.login-email-expanded .login-code-button:active:not(:disabled) {
  background: #1f2022;
  box-shadow: none;
  transform: translateY(1px) scale(0.99);
  transition-duration: 60ms;
}

body.login-email-expanded .login-code-button:focus-visible {
  outline: 3px solid rgba(45, 46, 48, 0.18);
  outline-offset: 3px;
}

body.login-email-expanded .login-code-button:disabled {
  color: rgba(255, 255, 255, 0.72);
  background: #77797d;
  border-color: #77797d;
  box-shadow: none;
  transform: none;
}

body.login-email-expanded .login-code-button.is-loading {
  color: #ffffff;
  background: #55575a;
  border-color: #55575a;
  animation: none;
}

body.login-email-expanded .login-primary {
  height: 54px;
  border-radius: 13px;
  font-size: 17px;
  font-weight: 650;
}

body.login-email-expanded .login-forgot,
body.login-email-expanded .login-switch {
  font-size: 15px;
}

body.login-email-expanded .login-methods {
  margin-top: 32px;
}

body.login-email-expanded .wechat-login-block {
  display: none;
}

body.login-email-expanded .login-agreement {
  display: none;
}

@media (max-width: 1120px) {
  .login-dialog {
    grid-template-columns: 1fr;
    width: min(620px, calc(100vw - 28px));
    min-height: 0;
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    transform: none;
  }

  .login-visual-panel {
    display: none;
  }

  .login-content-panel {
    padding: 76px 44px 42px;
  }
}

@media (max-width: 720px) {
  .login-modal {
    align-items: center;
    padding: 12px;
  }

  .login-dialog {
    width: 100%;
    border-radius: 24px;
  }

  .login-content-panel {
    padding: 72px 24px 34px;
  }

  .login-dialog h2 {
    font-size: 30px;
  }

  .login-method-button {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    font-size: 15px;
  }

  .login-agreement {
    font-size: 14px;
  }
}

/* Unified membership and credit recharge center. */
.wallet-recharge-modal {
  padding: 24px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(2.5px);
}

.wallet-recharge-dialog.recharge-center-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 325px minmax(0, 1fr);
  width: min(920px, calc(100vw - 48px));
  height: min(580px, calc(100vh - 48px));
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: hidden;
  color: rgba(247, 248, 249, 0.92);
  background: #121313;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.54);
}

.recharge-showcase {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 78%, rgba(93, 238, 211, 0.78), transparent 35%),
    radial-gradient(circle at 95% 4%, rgba(177, 172, 255, 0.72), transparent 30%),
    linear-gradient(155deg, #bff3ff 0%, #b4d8ff 36%, #86f1d5 100%);
}

.recharge-showcase-grid {
  position: absolute;
  inset: 0;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.68) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.68) 1px, transparent 1px);
  background-size: 36px 36px;
}

.recharge-showcase::after {
  position: absolute;
  inset: auto 18px 22px;
  height: 210px;
  content: "";
  background: linear-gradient(180deg, rgba(215, 255, 250, 0.22), rgba(215, 255, 250, 0.72));
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 26px;
}

.recharge-showcase-copy {
  position: absolute;
  top: 42px;
  left: 28px;
  z-index: 3;
  display: grid;
  gap: 5px;
  color: #071d23;
  line-height: 1.18;
}

.recharge-showcase-copy span,
.recharge-showcase-copy strong {
  font-size: 25px;
  font-weight: 780;
  letter-spacing: 0;
}

.recharge-showcase-copy span b {
  font-size: 28px;
  font-weight: 850;
  font-style: italic;
}

.recharge-showcase-image {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  height: 72%;
  overflow: hidden;
  clip-path: inset(0 0 0 0 round 0 0 0 0);
}

.recharge-showcase-image::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background:
    linear-gradient(180deg, rgba(156, 244, 230, 0.08), transparent 22%),
    linear-gradient(90deg, rgba(140, 246, 223, 0.3), transparent 28%);
  mix-blend-mode: screen;
}

.recharge-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% center;
  filter: saturate(0.78) contrast(0.98) brightness(1.04) sepia(0.04);
}

.recharge-showcase-product {
  position: absolute;
  right: 18px;
  bottom: 28px;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding: 9px 12px;
  color: #06362f;
  background: rgba(221, 255, 248, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(15, 77, 67, 0.16);
  backdrop-filter: blur(8px);
}

.recharge-showcase-product span {
  font-size: 11px;
  font-weight: 560;
}

.recharge-showcase-product strong {
  font-size: 14px;
  font-weight: 760;
}

.recharge-center-content {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  padding: 20px 24px 0;
  flex-direction: column;
  background:
    radial-gradient(circle at 100% 100%, rgba(255, 255, 255, 0.025), transparent 34%),
    #121313;
}

.recharge-center-content .wallet-close-button {
  top: 13px;
  right: 13px;
  z-index: 6;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 300;
}

.recharge-center-content .wallet-close-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.recharge-account-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding-right: 44px;
}

.recharge-account-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.recharge-account-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.recharge-account-head strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-account-head strong small {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
  font-weight: 450;
}

.recharge-account-head span {
  color: rgba(227, 229, 232, 0.68);
  font-size: 13px;
  font-weight: 410;
}

.recharge-center-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 40px;
  margin-top: 12px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
}

.recharge-center-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  color: rgba(238, 239, 241, 0.6);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 540;
}

.recharge-center-tabs button.active {
  color: rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.08);
}

.recharge-center-tabs button:focus,
.recharge-center-tabs button:focus-visible,
.membership-term-list button:focus,
.membership-term-list button:focus-visible,
.recharge-credit-options button:focus,
.recharge-credit-options button:focus-visible {
  outline: 0;
}

.recharge-center-tabs i {
  display: inline-grid;
  place-items: center;
  height: 22px;
  padding: 0 11px;
  color: #071d1a;
  background: #35ead0;
  border-radius: 999px;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 720;
}

.recharge-center-pane {
  min-height: 0;
  padding-top: 12px;
}

.recharge-center-pane[hidden] {
  display: none;
}

.membership-recharge-pane {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 0;
}

.credits-recharge-pane {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.membership-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 26px;
  align-content: center;
  column-gap: 26px;
  row-gap: 9px;
  transform: translateY(8px);
}

.membership-benefits div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  height: 26px;
  color: rgba(244, 245, 247, 0.88);
  font-size: 13px;
  font-weight: 460;
  line-height: 1;
}

.membership-benefits div > span {
  display: flex;
  align-items: center;
  height: 26px;
  line-height: 26px;
}

.membership-benefits i {
  display: grid;
  place-items: center;
  width: 13px;
  height: 13px;
  color: #25d6e9;
  background: rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  font-style: normal;
}

.membership-benefits i svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.membership-term-list {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.membership-term-list button,
.recharge-credit-options button {
  position: relative;
  display: grid;
  grid-template-columns: 24px 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 84px;
  padding: 0 22px;
  color: rgba(255, 255, 255, 0.9);
  text-align: left;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 15px;
  transition: background 0.16s, border-color 0.16s;
}

.membership-term-list button:hover,
.recharge-credit-options button:hover {
  background: rgba(255, 255, 255, 0.085);
  border-color: transparent;
}

.membership-term-list button.active,
.recharge-credit-options button.active {
  background: rgba(255, 255, 255, 0.095);
  border-color: transparent;
  box-shadow: none;
}

.membership-term-list button > i,
.recharge-credit-options button > i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.membership-term-list button.active > i,
.recharge-credit-options button.active > i {
  border: 5px solid #2bd5e7;
  background: #f4ffff;
}

.membership-term-list strong,
.recharge-credit-options strong {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 600;
}

.membership-term-list b,
.recharge-credit-options b {
  color: rgba(255, 255, 255, 0.94);
  font-size: 20px;
  font-weight: 690;
}

.membership-term-list em,
.recharge-credit-options em {
  justify-self: end;
  padding: 5px 9px;
  color: #082c31;
  background: #2bcde2;
  border-radius: 999px;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 720;
}

.membership-billing-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 36px;
  color: rgba(238, 240, 243, 0.68);
  font-size: 12px;
  font-weight: 460;
}

.membership-billing-note span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #ff86b1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.recharge-primary-button,
.wallet-recharge-dialog .recharge-primary-button {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  color: #061411;
  background: linear-gradient(90deg, #26cae7 0%, #28eac1 72%, #2af0bb 100%);
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 650;
}

.recharge-primary-button:hover {
  filter: brightness(1.045);
}

.membership-renewal-footer,
.recharge-help-footer {
  display: grid;
  place-content: center;
  text-align: center;
}

.membership-renewal-footer {
  flex: 1;
  min-height: 0;
  gap: 3px;
}

.recharge-help-footer {
  flex: 1;
  min-height: 0;
}

.recharge-renewal-note,
.wallet-recharge-dialog .wallet-help-text {
  margin: 0;
  color: rgba(232, 234, 237, 0.68);
  font-size: 13px;
  font-weight: 460;
  line-height: 1.45;
  text-align: center;
}

.recharge-manage-link {
  display: block;
  margin: 0 auto;
  padding: 1px 8px;
  color: rgba(239, 241, 243, 0.68);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 500;
}

.recharge-manage-link:hover {
  color: rgba(255, 255, 255, 0.86);
}

.credits-balance-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: rgba(231, 233, 236, 0.62);
  font-size: 12px;
}

.credits-balance-line strong {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

.credits-balance-line span {
  margin-left: auto;
  color: rgba(231, 233, 236, 0.38);
  font-size: 10.5px;
}

.wallet-preset-grid.recharge-credit-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 8px;
  opacity: 1;
}

.wallet-preset-grid.recharge-credit-options button strong,
.wallet-preset-grid.recharge-credit-options button.active strong {
  color: rgba(255, 255, 255, 0.9);
}

.wallet-preset-grid.recharge-credit-options button b,
.wallet-preset-grid.recharge-credit-options button.active b {
  color: rgba(255, 255, 255, 0.94);
}

.recharge-credit-options button {
  grid-template-columns: 24px 118px minmax(0, 1fr) auto;
  height: 54px;
  margin: 0;
}

.recharge-custom-amount {
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.recharge-custom-amount > span {
  color: rgba(237, 239, 241, 0.65);
  font-size: 12px;
  font-weight: 520;
}

.recharge-custom-amount div {
  height: 42px;
  padding-left: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.recharge-custom-amount input {
  color: #ffffff;
  background: transparent;
  font-size: 16px;
  font-weight: 620;
}

.recharge-custom-amount b {
  height: 28px;
  color: #12baa7;
  background: rgba(39, 232, 192, 0.09);
  font-size: 11px;
}

.wallet-arrival-box.recharge-arrival-box {
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  padding: 11px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  box-shadow: none;
}

.recharge-arrival-box div {
  gap: 3px;
}

.recharge-arrival-box div:first-child {
  padding-right: 16px;
}

.recharge-arrival-box b,
.recharge-arrival-box strong {
  color: #ffffff;
  font-size: 18px;
  font-weight: 680;
}

.recharge-arrival-box p {
  grid-column: auto;
  padding-top: 0;
  border-top: 0;
  font-size: 10.5px;
  white-space: nowrap;
}

.wallet-message {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 860px) {
  .wallet-recharge-dialog.recharge-center-dialog {
    grid-template-columns: 1fr;
    width: min(610px, calc(100vw - 32px));
    height: min(570px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
  }

  .recharge-showcase {
    display: none;
  }
}

@media (max-width: 620px) {
  .wallet-recharge-modal {
    padding: 12px;
  }

  .wallet-recharge-dialog.recharge-center-dialog {
    width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    border-radius: 14px;
  }

  .recharge-center-content {
    min-height: 590px;
    padding: 18px 16px 16px;
  }

  .membership-benefits {
    grid-template-columns: 1fr;
    transform: none;
  }

  .membership-term-list button,
  .recharge-credit-options button {
    grid-template-columns: 22px minmax(0, 1fr) auto;
    height: 62px;
    padding: 0 14px;
  }

  .membership-term-list button em,
  .recharge-credit-options button em {
    display: none;
  }

  .membership-term-list button b,
  .recharge-credit-options button b {
    justify-self: end;
  }

  .credits-balance-line span {
    display: none;
  }

  .recharge-custom-amount {
    grid-template-columns: 1fr;
  }
}

/* Fresh Kling Omni editor integration (v2 namespace, independent of legacy video code). */
.prompt-model-tabs {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.minimax-h3-controls { display: flex; align-items: center; gap: 7px; min-width: 0; color: rgba(255, 255, 255, 0.72); font-size: 13px; }

/* Model-exclusive controls must never leak into another model's workspace. */
.minimax-h3-controls[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card:not(.minimax-h3-active) .minimax-h3-controls {
  display: none !important;
}

.minimax-h3-controls > span,
.minimax-h3-controls label > span { display: none; }
.minimax-h3-controls label { display: inline-flex; align-items: center; color: rgba(255, 255, 255, 0.58); white-space: nowrap; }
.minimax-h3-controls select { height: 34px; padding: 0 27px 0 12px; color: rgba(235, 238, 240, 0.82); background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.065); border-radius: 9px; font: inherit; font-weight: 610; }
.minimax-h3-controls .minimax-h3-mode-control select { min-width: 0; }

.prompt-model-tabs::before {
  left: calc(var(--model-index) * 12.5%);
  width: 12.5%;
}

.prompt-model-tabs::after {
  left: calc(var(--model-index) * 12.5% + 3.125%);
  width: 6.25%;
}

.kling-editor-v2-tab-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0;
  object-fit: contain;
  opacity: 0.78;
  transform: translateY(-1px);
}

.happyhorse-video-edit-tab-icon {
  display: block;
  width: 32px;
  height: 32px;
  margin: 0;
  object-fit: contain;
  /* The script swaps the grey / white provider assets; no colour filter is
     needed for the idle state. */
  opacity: 1;
  filter: none;
  transform: translateY(-1px);
}

body:has(.prompt-workspace) .prompt-model-tabs button:has(.happyhorse-video-edit-tab-icon) strong {
  margin-top: 3px;
}

.prompt-model-tabs button.active .happyhorse-video-edit-tab-icon {
  opacity: 1;
  filter: drop-shadow(0 2px 6px rgba(112, 231, 237, 0.22));
}

body:has(.prompt-workspace) .prompt-model-tabs button:has(.kling-editor-v2-tab-icon) strong {
  margin-top: 3px;
}

.prompt-model-tabs button.active .kling-editor-v2-tab-icon {
  opacity: 1;
  filter: drop-shadow(0 3px 10px rgba(69, 216, 205, 0.32));
}

.prompt-card.kling-editor-v2-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
}

.prompt-card.kling-editor-v2-active > .gemini-chat,
.prompt-card.kling-editor-v2-active > .prompt-upload-row,
.prompt-card.kling-editor-v2-active > #homePrompt,
.prompt-card.kling-editor-v2-active > .composer-error,
.prompt-card.kling-editor-v2-active > .composer-footer {
  display: none !important;
}

.kling-editor-v2[hidden] {
  display: none !important;
}

.kling-editor-v2 {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  gap: 0;
  min-height: 0;
  color: rgba(255, 255, 255, 0.94);
}

.kling-editor-v2-media {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 58px;
}

.kling-editor-v2-upload {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  background: #2a2b2f;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 11px;
  box-shadow: none;
  transition: background 150ms ease, color 150ms ease;
}

.kling-editor-v2-upload[hidden] {
  display: none !important;
}

.kling-editor-v2-upload:hover,
.kling-editor-v2-upload:focus-within {
  color: rgba(255, 255, 255, 0.94);
  background: #303239;
  border-color: rgba(255, 255, 255, 0.045);
  box-shadow: none;
  outline: none;
}

.kling-editor-v2-upload-video {
  width: 58px;
}

.kling-editor-v2-upload-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.45;
}

.kling-editor-v2-video-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #0e0f11;
  border-radius: 10px;
}

.kling-editor-v2-video-preview video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kling-editor-v2-video-preview button,
.kling-editor-v2-image-list figure button {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: #fff;
  background: rgba(36, 36, 38, 0.76);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.kling-editor-v2-image-list {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
}

.kling-editor-v2-image-list figure {
  position: relative;
  box-sizing: border-box;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  overflow: hidden;
  background: #0e0f11;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 11px;
}

.kling-editor-v2-image-list img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kling-editor-v2-image-list video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kling-editor-v2-image-list figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  color: #fff;
  font-size: 9px;
  font-weight: 760;
  text-shadow: 0 1px 4px #000;
}

body:has(.prompt-workspace) .koozee-composer-panel .kling-editor-v2-prompt {
  box-sizing: border-box;
  align-self: stretch;
  width: 100%;
  min-height: 120px;
  padding: 16px 0 10px;
  overflow: auto;
  color: rgba(244, 245, 248, 0.92);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  font-size: clamp(16px, 0.98vw, 20px);
  font-weight: 470;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: text;
}

body:has(.prompt-workspace) .koozee-composer-panel .kling-editor-v2-prompt:empty::before {
  color: rgba(190, 193, 200, 0.48);
  content: attr(data-placeholder);
  font-weight: 440;
  pointer-events: none;
}

.kling-editor-v2-mention-menu {
  position: absolute;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  width: min(330px, calc(100% - 8px));
  padding: 12px 10px;
  background: rgba(36, 36, 36, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

.kling-editor-v2-mention-menu[hidden] {
  display: none !important;
}

.kling-editor-v2-mention-option {
  display: flex;
  min-width: 0;
  height: 48px;
  align-items: center;
  gap: 12px;
  padding: 4px 7px;
  color: rgba(244, 245, 247, 0.92);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 480;
  text-align: left;
  transition: color 130ms ease, background 130ms ease, border-color 130ms ease;
}

.kling-editor-v2-mention-option:hover,
.kling-editor-v2-mention-option:focus-visible {
  color: rgba(238, 252, 250, 0.96);
  background: rgba(255, 255, 255, 0.065);
  border-color: transparent;
  outline: none;
}

.kling-editor-v2-mention-option img {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
}

.kling-editor-v2-mention-option span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kling-editor-v2-footer {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
}

.kling-editor-v2-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kling-editor-v2-options label {
  display: grid;
  gap: 4px;
}

.kling-editor-v2-options label[hidden] {
  display: none;
}

.kling-editor-v2-options span {
  padding-left: 3px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  font-weight: 650;
}

.kling-editor-v2-options select {
  height: 38px;
  padding: 0 30px 0 12px;
  color: rgba(255, 255, 255, 0.88);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  outline: none;
  font-size: 13px;
  font-weight: 680;
}

.kling-editor-v2-submit {
  flex: 0 0 auto;
}

.kling-editor-v2-submit:disabled {
  cursor: wait;
  opacity: 0.58;
}

.kling-editor-v2-message {
  margin: -8px 2px 0;
  color: #ff8098;
  font-size: 13px;
  font-weight: 680;
}

.kling-editor-v2-message[data-tone="status"] {
  color: #80d7df;
}

.kling-editor-v2-message[data-tone="success"] {
  color: #77e0ad;
}

.kling-editor-v2-result video {
  width: 100%;
  max-height: 68vh;
  background: #050505;
  border-radius: 18px;
}

.kling-editor-v2-result .generation-result-head > strong {
  color: #75e1e8;
  font-size: 22px;
}

.kling-editor-v2-progress {
  height: 7px;
  margin: 18px 0 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.kling-editor-v2-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4ccbd7, #55e6bd);
  border-radius: inherit;
  transition: width 420ms ease;
}

.kling-editor-v2-result > small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

@media (max-width: 900px) {
  .prompt-model-tabs {
    grid-template-columns: repeat(6, minmax(112px, 1fr));
    overflow-x: auto;
  }

  .prompt-model-tabs::before,
  .prompt-model-tabs::after {
    display: none;
  }

  .kling-editor-v2-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .kling-editor-v2-submit {
    width: 100%;
  }
}

/* 没有已发布视频时，不保留空的轮播高度或发起旧视频请求。 */
body:has(.koozee-home) .home-showcase.home-showcase--empty {
  min-height: 0;
  margin-top: 0;
  overflow: visible;
}

body:has(.koozee-home) .home-showcase.home-showcase--empty .home-showcase-viewport,
body:has(.koozee-home) .home-showcase.home-showcase--empty .home-showcase-arrow,
body:has(.koozee-home) .home-showcase.home-showcase--empty .home-showcase-dots {
  display: none;
}

.koozee-home.workflow-home-open {
  background: #08090a;
}

.koozee-home.workflow-home-open .koozee-content {
  display: none;
}
@keyframes workflow-card-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes workflow-shimmer { to { background-position: -240% 0; } }
@keyframes workflow-library-spin { to { transform: rotate(360deg); } }
#workflowProjectName { width: 46px; height: 26px; padding: 1px 6px 0; color: #ffffff; background: transparent; border: 1px solid transparent; border-radius: 6px; outline: none; font-family: "PingFang SC", "Hiragino Sans GB", -apple-system, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: -.014em; line-height: 25px; text-shadow: 0 0 8px rgba(255,255,255,.08); transition: width .16s ease; }
#workflowProjectName:disabled { opacity: 1; -webkit-text-fill-color: #ffffff; }
#workflowProjectName:hover,
#workflowProjectName:focus { background: transparent; border-color: transparent; }
#workflowSaveState { color: #6f8584; }
@keyframes workflow-product-library-spin { to { transform: rotate(360deg); } }
@keyframes workflow-focus-pulse { 0%,100% { box-shadow: 0 0 0 100vmax rgba(5,7,8,.46), 0 0 0 4px rgba(226,235,233,.10), 0 0 18px rgba(236,243,241,.14); } 50% { box-shadow: 0 0 0 100vmax rgba(5,7,8,.46), 0 0 0 7px rgba(226,235,233,.15), 0 0 28px rgba(236,243,241,.24); } }
@keyframes workflow-spin { to { transform: rotate(360deg); } }

body:has(.koozee-home) .koozee-rail .workflow-rail-entry { display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: auto; min-width: 90px; padding: 0 9px; color: #65dfd2; }
body:has(.koozee-home) .koozee-rail .workflow-rail-entry:hover { color: #071211; background: #4fe0cf; }

@media (max-width: 760px) {
  #workflowProjectName { width: min(98px, 28vw); }
}

/* Featured tools: compact reference-style default and hover states. */
body:has(.koozee-home) .koozee-tool {
  grid-template-columns: 28px minmax(0, 1fr);
  min-height: 68px;
  padding: 0 18px;
  color: rgba(246, 247, 248, 0.94);
  background: linear-gradient(180deg, #191b1e 0%, #17191c 100%);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 11px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
  transform: none;
  transition: background 180ms ease, border-color 180ms ease;
}

body:has(.koozee-home) .koozee-tool:hover,
body:has(.koozee-home) .koozee-tool:focus,
body:has(.koozee-home) .koozee-tool:focus-visible {
  color: rgba(255, 255, 255, 0.98);
  background: linear-gradient(100deg, #31555e 0%, #2b4349 44%, #242629 100%);
  border-color: rgba(255, 255, 255, 0.085);
  outline: none;
  transform: none;
}

body:has(.koozee-home) .koozee-tool-copy {
  position: relative;
  display: flex;
  min-width: 0;
  height: 42px;
  flex-direction: column;
  justify-content: center;
}

body:has(.koozee-home) .koozee-tool-copy strong {
  overflow: hidden;
  font: inherit;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translateY(0);
  transition: transform 180ms ease;
}

body:has(.koozee-home) .koozee-tool-copy small {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  color: #2fe4df;
  font-size: 13px;
  font-weight: 520;
  line-height: 18px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 160ms ease, transform 180ms ease;
}

body:has(.koozee-home) .koozee-tool-copy small b {
  margin-left: 7px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

body:has(.koozee-home) .koozee-tool:hover .koozee-tool-copy strong,
body:has(.koozee-home) .koozee-tool:focus .koozee-tool-copy strong,
body:has(.koozee-home) .koozee-tool:focus-visible .koozee-tool-copy strong {
  transform: translateY(-10px);
}

body:has(.koozee-home) .koozee-tool:hover .koozee-tool-copy small,
body:has(.koozee-home) .koozee-tool:focus .koozee-tool-copy small,
body:has(.koozee-home) .koozee-tool:focus-visible .koozee-tool-copy small {
  opacity: 1;
  transform: translateY(0);
}

/* Compact contact entry and customer service cards. */
.koozee-contact {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
}

body:has(.koozee-home) .koozee-contact .koozee-chat {
  position: relative;
  right: auto;
  bottom: auto;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: rgba(255, 255, 255, 0.94);
  background: #202124;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

body:has(.koozee-home) .koozee-contact .koozee-chat:hover,
body:has(.koozee-home) .koozee-contact .koozee-chat:focus-visible {
  color: #ffffff;
  background: #292b2e;
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 4px rgba(47, 228, 223, 0.07), 0 20px 46px rgba(0, 0, 0, 0.42);
  outline: none;
  transform: translateY(-2px);
}

body:has(.koozee-home) .koozee-contact.open .koozee-chat {
  color: #35e5df;
  background: #292d2f;
  border-color: rgba(53, 229, 223, 0.34);
  box-shadow: 0 0 0 4px rgba(53, 229, 223, 0.09), 0 22px 48px rgba(0, 0, 0, 0.46);
  transform: translateY(-2px);
}

body:has(.koozee-home) .koozee-contact .koozee-chat svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.25;
}

.koozee-contact-label {
  position: absolute;
  top: 50%;
  right: 66px;
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  color: rgba(247, 248, 249, 0.88);
  background: rgba(36, 38, 41, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 520;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(5px, -50%);
  transition: opacity 150ms ease, transform 150ms ease;
}

.koozee-contact:hover .koozee-contact-label,
.koozee-contact:focus-within .koozee-contact-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.koozee-contact.open .koozee-contact-label {
  opacity: 0;
}

.koozee-contact-panel {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 326px;
  padding: 16px;
  color: rgba(248, 249, 250, 0.94);
  background: rgba(35, 36, 39, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  transform-origin: right bottom;
  animation: contact-panel-in 170ms ease-out;
}

.koozee-contact-panel[hidden] {
  display: none;
}

@keyframes contact-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.koozee-contact-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  margin-bottom: 12px;
}

.koozee-contact-panel > header > div {
  display: grid;
  gap: 3px;
}

.koozee-contact-panel > header strong {
  color: #ffffff;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.2;
}

.koozee-contact-panel > header span {
  color: rgba(230, 232, 235, 0.56);
  font-size: 11.5px;
  font-weight: 430;
}

.koozee-contact-panel > header button,
.koozee-contact-card > button {
  display: grid;
  place-items: center;
  padding: 0;
  color: rgba(241, 243, 245, 0.62);
  background: transparent;
  border: 0;
}

.koozee-contact-panel > header button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
}

.koozee-contact-panel > header button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.koozee-contact-panel > header button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.koozee-contact-list {
  display: grid;
  gap: 8px;
}

.koozee-contact-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 10px;
  transition: background 150ms ease, border-color 150ms ease;
}

.koozee-contact-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.075);
}

.koozee-contact-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #d8fffa;
  background: linear-gradient(145deg, #31555e 0%, #202c30 100%);
  border: 1px solid rgba(92, 235, 223, 0.18);
  border-radius: 50%;
  font-size: 15px;
  font-weight: 650;
}

.koozee-contact-card > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.koozee-contact-card > div strong {
  color: rgba(255, 255, 255, 0.94);
  font-size: 14.5px;
  font-weight: 620;
  line-height: 1;
}

.koozee-contact-card > div span {
  overflow: hidden;
  color: rgba(235, 237, 239, 0.62);
  font-size: 12px;
  font-weight: 430;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.koozee-contact-card > button {
  position: relative;
  width: 24px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 8px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.koozee-contact-card > button:hover,
.koozee-contact-card > button:focus-visible {
  color: #36e5df;
  background: rgba(54, 229, 223, 0.08);
  border-color: rgba(54, 229, 223, 0.2);
  outline: none;
}

.koozee-contact-card > button svg {
  position: absolute;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: opacity 140ms ease, transform 140ms ease;
}

.koozee-contact-card > button .check-icon {
  color: #36e5df;
  opacity: 0;
  transform: scale(0.7);
}

.koozee-contact-card > button.copied .copy-icon {
  opacity: 0;
  transform: scale(0.7);
}

.koozee-contact-card > button.copied .check-icon {
  opacity: 1;
  transform: scale(1);
}

.koozee-contact-status {
  min-height: 15px;
  margin: 9px 2px 0;
  color: #66e9df;
  font-size: 11px;
  font-weight: 450;
  line-height: 15px;
  text-align: center;
}

@media (max-width: 620px) {
  .koozee-contact {
    right: 16px;
    bottom: 16px;
  }

  .koozee-contact-panel {
    width: min(326px, calc(100vw - 32px));
  }
}

/* Unified 2026 brand mark sizing across every branded surface. */
.brand-logo-img {
  width: auto;
  height: 27px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 3px;
}

.brand .brand-logo-img,
.canvas-brand .brand-logo-img {
  height: 27px;
  padding: 0;
  background: transparent;
  border-radius: 3px;
}

.footer-brand .brand-logo-img {
  width: auto;
  height: 29px;
  max-width: none;
}

.koozee-brand .brand-logo-img,
body:has(.koozee-home) .koozee-brand .brand-logo-img {
  display: block;
  width: auto;
  height: 28px;
  max-width: 178px;
  border-radius: 3px;
  filter: none;
}

.login-visual-logo {
  justify-self: center;
  width: 130px;
  height: auto;
  border-radius: 3px;
  filter: none;
  box-shadow: 0 8px 20px rgba(12, 25, 27, 0.12);
}

@media (max-width: 1280px) {
  .koozee-brand,
  body:has(.koozee-home) .koozee-brand {
    padding-left: 9px;
    transform: translateY(-13px);
  }

  .koozee-brand .brand-logo-img,
  body:has(.koozee-home) .koozee-brand .brand-logo-img {
    display: block;
    width: 110px;
    height: auto;
    max-width: 110px;
  }

  .koozee-brand::before,
  body:has(.koozee-home) .koozee-brand::before {
    display: none;
    content: none;
  }
}

/* Transparent brand mark: use contrast only, never an image backdrop. */
.brand-logo-img,
.brand .brand-logo-img,
.canvas-brand .brand-logo-img,
.footer-brand .brand-logo-img,
.koozee-brand .brand-logo-img,
body:has(.koozee-home) .koozee-brand .brand-logo-img,
.login-visual-logo,
.koozee-vip-title img,
.recharge-showcase-brand-line img {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Light surfaces present the same transparent artwork in dark ink. */
.brand .brand-logo-img,
.canvas-brand .brand-logo-img,
.login-visual-logo,
.recharge-showcase-brand-line img {
  filter: brightness(0);
}

/* Dark surfaces retain the source artwork's white ink. */
.admin-brand .brand-logo-img,
.koozee-brand .brand-logo-img,
body:has(.koozee-home) .koozee-brand .brand-logo-img,
.footer-brand .brand-logo-img,
.koozee-vip-title img {
  filter: none;
}

.koozee-vip-title img {
  height: 16px;
  transform: translateY(-2px);
}

.recharge-showcase-brand-line img {
  height: 28px;
}

.login-visual-logo {
  width: 130px;
  height: auto;
}

@media (max-width: 1280px) {
  .koozee-brand .brand-logo-img,
  body:has(.koozee-home) .koozee-brand .brand-logo-img {
    width: 110px;
    height: auto;
    max-width: 110px;
  }
}

/* Right-side notification center. */
body.notification-open {
  overflow: hidden;
}

.notification-center {
  position: fixed;
  inset: 0;
  z-index: 5200;
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 240ms;
}

.notification-center.open {
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0s;
}

.notification-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.64);
  border: 0;
  border-radius: 0;
  opacity: 0;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  transition: opacity 220ms ease;
}

.notification-center.open .notification-backdrop {
  opacity: 1;
}

.notification-drawer {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: clamp(390px, 23vw, 460px);
  height: 100dvh;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(29, 30, 33, 0.97);
  border-left: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: -28px 0 70px rgba(0, 0, 0, 0.42);
  transform: translate3d(100%, 0, 0);
  transition: transform 240ms cubic-bezier(0.22, 0.7, 0.2, 1);
  will-change: transform;
}

.notification-center.open .notification-drawer {
  transform: translate3d(0, 0, 0);
}

.notification-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 12px 16px 12px 20px;
  background: rgba(29, 30, 33, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-header > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.notification-header h2 {
  margin: 0;
  color: #f3f4f5;
  font-size: 18px;
  font-weight: 650;
  line-height: 24px;
}

.notification-unread-count {
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-weight: 450;
  line-height: 18px;
}

.notification-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.notification-read-all,
.notification-close {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
}

.notification-read-all {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}

.notification-read-all:hover,
.notification-read-all:focus-visible {
  color: #2ed7e8;
  background: rgba(46, 215, 232, 0.08);
  outline: none;
}

.notification-read-all:disabled {
  color: rgba(255, 255, 255, 0.22);
  background: transparent;
  cursor: default;
}

.notification-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 8px;
}

.notification-close:hover,
.notification-close:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.notification-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.notification-scroll {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 18px 42px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  scrollbar-width: thin;
}

.notification-scroll:focus {
  outline: none;
}

.notification-scroll::-webkit-scrollbar {
  width: 6px;
}

.notification-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.notification-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.notification-date-group + .notification-date-group {
  margin-top: 26px;
}

.notification-date {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.notification-date span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 500;
}

.notification-item {
  position: relative;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 12px;
  transition: background-color 150ms ease, border-color 150ms ease;
}

.notification-item + .notification-item {
  margin-top: 10px;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.085);
}

.notification-item.read {
  opacity: 0.7;
}

.notification-item--service {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  min-height: 100px;
  padding: 16px 16px 15px;
}

.notification-status-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: 1px;
  color: #35d8e7;
  background: rgba(53, 216, 231, 0.09);
  border-radius: 10px;
}

.notification-status-icon--member {
  color: #5ce7c4;
  background: rgba(92, 231, 196, 0.09);
}

.notification-status-icon--membership {
  color: #5ce7c4;
  background: rgba(92, 231, 196, 0.09);
}

.notification-status-icon--credits {
  color: #f1bb78;
  background: rgba(241, 187, 120, 0.09);
}

.notification-status-icon--task {
  color: #92a9ff;
  background: rgba(146, 169, 255, 0.09);
}

.notification-status-icon--record {
  color: #f0b677;
  background: rgba(240, 182, 119, 0.09);
}

.notification-status-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notification-item-copy,
.notification-feature-copy {
  min-width: 0;
}

.notification-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.notification-item-heading h3 {
  min-width: 0;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
}

.notification-item-heading time {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
  font-weight: 450;
  line-height: 20px;
}

.notification-item-copy p,
.notification-feature-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  font-weight: 400;
  line-height: 19px;
}

.notification-unread-marker {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 6px;
  height: 6px;
  background: #31d6e7;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(49, 214, 231, 0.5);
}

.notification-item.read .notification-unread-marker {
  display: none;
}

.notification-text-action {
  min-height: 28px;
  margin-top: 7px;
  padding: 0;
  color: #35d8e7;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 550;
}

.notification-text-action:hover,
.notification-text-action:focus-visible {
  color: #73ecf6;
  outline: none;
}

.notification-item--feature {
  overflow: hidden;
  padding: 12px;
}

.notification-item--feature > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.notification-feature-copy {
  padding: 13px 2px 2px;
}

.notification-primary-action {
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  color: #041416;
  background: #2ccfe4;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 650;
  transition: background-color 140ms ease, filter 140ms ease;
}

.notification-primary-action:hover,
.notification-primary-action:focus-visible {
  background: #43dbec;
  filter: brightness(1.04);
  outline: none;
}

.koozee-notification-dot[hidden] {
  display: none !important;
}

.notification-empty {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 32px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 450;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 620px) {
  .notification-drawer {
    width: 100%;
  }

  .notification-header {
    min-height: 62px;
    padding: 10px 12px 10px 16px;
  }

  .notification-scroll {
    padding: 18px 14px 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notification-center,
  .notification-backdrop,
  .notification-drawer {
    transition-duration: 0.01ms;
  }

  body:has(.koozee-home) [data-open-notifications].notification-arrived .koozee-bottom-icon,
  body:has(.koozee-home) [data-open-notifications].notification-arrived .koozee-notification-dot {
    animation: none;
  }
}

/* Embedded workflow preview */
/* Product editor v47: compact asset editor, not a numbered admin form. */
.product-editor-dialog {
  width: min(620px, calc(100vw - 36px));
  max-height: min(720px, calc(100dvh - 36px));
  background:
    radial-gradient(circle at 88% -12%, rgba(50, 211, 232, 0.055), transparent 32%),
    #101214;
  border-radius: 18px;
}

.product-editor-header {
  min-height: 62px;
  padding: 10px 20px;
}

.product-editor-header h2 {
  font-size: 17px;
  font-weight: 650;
}

.product-editor-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 17px;
}

.product-editor-scroll {
  display: grid;
  gap: 20px;
  padding: 20px 22px 24px;
}

.product-editor-step,
.product-editor-step:last-of-type {
  display: block;
  padding: 0;
  border: 0;
}

.product-step-heading {
  min-height: 0;
  margin: 0 0 10px;
}

.product-step-heading strong {
  color: rgba(244, 247, 248, 0.7);
  font-size: 11px;
  font-weight: 640;
  letter-spacing: 0.02em;
}

.product-step-body,
.product-editor-step-note .product-step-body {
  width: 100%;
}

.product-image-stage {
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: start;
  column-gap: 16px;
  justify-items: stretch;
}

.product-main-upload {
  grid-column: 1;
  grid-row: 1;
  width: 120px;
  height: 120px;
  background: #181b1d;
  border-radius: 13px;
}

.product-main-upload:not(.has-image) {
  border-style: dashed;
}

.product-main-upload:not(.has-image) .product-upload-plus {
  width: 30px;
  height: 30px;
  color: rgba(142, 232, 242, 0.72);
  font-size: 23px;
}

.product-main-upload:not(.has-image) strong {
  color: rgba(235, 240, 242, 0.48);
  font-size: 10px;
}

.product-main-remove {
  position: absolute;
  z-index: 4;
  top: 8px;
  left: 84px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(6, 8, 9, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  backdrop-filter: blur(9px);
  font-size: 16px;
  line-height: 1;
}

.product-main-remove:hover,
.product-main-remove:focus-visible {
  color: #ffffff;
  background: rgba(203, 70, 79, 0.72);
  border-color: rgba(255, 151, 158, 0.34);
  outline: none;
}

.product-main-label {
  display: none;
}

.product-main-label {
  top: auto;
  right: 8px;
  bottom: 8px;
  left: 8px;
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  overflow: hidden;
  color: rgba(234, 249, 251, 0.9);
  background: rgba(6, 9, 10, 0.66);
  border-color: rgba(255, 255, 255, 0.12);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-angle-block {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.product-angle-heading {
  min-height: 22px;
  margin-bottom: 8px;
}

.product-angle-heading strong {
  color: rgba(241, 245, 247, 0.56);
  font-size: 10px;
}

.product-angle-heading span {
  font-size: 8px;
}

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

.product-angle-card,
.product-angle-add {
  border-radius: 11px;
}

.product-angle-card > div {
  inset: auto 3px 3px;
}

.product-angle-card button {
  min-height: 22px;
  border-radius: 6px;
  font-size: 8px;
}

.product-angle-add span {
  font-size: 21px;
}

.product-editor-field input {
  height: 44px;
  padding: 0 13px;
  font-size: 12px;
  background: #171a1c;
  border-radius: 10px;
}

.product-tag-editor {
  min-height: 112px;
  gap: 11px;
  padding: 12px;
  background: #171a1c;
  border-radius: 12px;
}

.product-tag-editor-list {
  gap: 6px;
}

.product-tag-editor-input {
  min-height: 30px;
}

.product-tag-editor-input > span {
  font-size: 15px;
}

.product-tag-editor-meta {
  justify-content: flex-end;
  margin-top: 6px;
}

.product-tag-editor-meta > span {
  display: none;
}

.product-editor-message {
  margin: -6px 0 0;
}

.product-editor-footer {
  min-height: 66px;
  padding: 12px 20px;
}

.product-editor-footer button {
  min-width: 82px;
  height: 40px;
  border-radius: 9px;
  font-size: 11px;
}

.product-editor-footer .primary {
  min-width: 132px;
}

@media (max-width: 640px) {
  .product-editor-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .product-editor-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-image-stage {
    grid-template-columns: 112px minmax(0, 1fr);
    column-gap: 12px;
  }

  .product-main-upload {
    width: 112px;
    height: 112px;
  }

  .product-main-remove {
    left: 76px;
  }

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

@media (max-width: 430px) {
  .product-image-stage {
    display: block;
  }

  .product-angle-block {
    margin-top: 14px;
  }
}

/* Home workspace layout: one responsive frame for the title, editor and tools. */
body:has(.koozee-home) .koozee-content {
  position: relative;
  display: flex;
  width: min(1400px, calc(100vw - 368px));
  margin: 0 auto;
  padding: 116px 0 52px;
  flex-direction: column;
  align-items: center;
  transform: translateX(-82px);
}

body:has(.koozee-home) .koozee-composer-zone {
  display: contents;
}

body:has(.prompt-workspace) .koozee-composer-zone h1 {
  position: static;
  width: min(1120px, 100%);
  margin: 0 auto 30px;
  color: #f5f5f6;
  text-align: center;
  font-size: clamp(30px, 2.2vw, 40px);
  font-weight: 740;
  line-height: 1.2;
  letter-spacing: 0;
}

body:has(.prompt-workspace) .home-composer {
  position: static;
  left: auto;
  align-self: center;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 0 auto;
}

body:has(.prompt-workspace) .koozee-composer-panel {
  width: 100%;
  min-width: 0;
}

body:has(.prompt-workspace) .prompt-workspace,
body:has(.prompt-workspace) .prompt-editor {
  width: 100%;
  min-width: 0;
}

body:has(.prompt-workspace) .prompt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body:has(.prompt-workspace) .prompt-model-tabs {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  height: 72px;
  border-radius: 20px 20px 0 0;
}

body:has(.prompt-workspace) .prompt-model-tabs button {
  min-width: 0;
}

body:has(.prompt-workspace) .prompt-card {
  grid-template-rows: auto minmax(120px, 1fr) auto;
  min-height: 360px;
  padding: 16px 20px 18px;
  border-radius: 0 0 18px 18px;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 360px;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .composer-tools > :not(.minimax-h3-controls) {
  display: none;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .composer-tools {
  gap: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-controls:not([hidden]) {
  display: flex !important;
}

/* MiniMax uses the same footer buttons and popup treatment as the Kling editor. */
body:has(.prompt-workspace) .prompt-card.minimax-h3-active .composer-footer {
  align-items: center;
  flex-direction: row;
  gap: 14px;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-controls {
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-controls label {
  display: inline-flex;
  align-items: center;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-controls select {
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 27px 0 12px;
  appearance: none;
  field-sizing: content;
  color: rgba(235, 238, 240, 0.82);
  background-color: rgba(255, 255, 255, 0.035);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23aeb5b8' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.018) inset;
  outline: none;
  font-size: 13px;
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-controls select:hover,
body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker.open .minimax-h3-picker-trigger {
  color: rgba(248, 249, 250, 0.94);
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.09);
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-native-select {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-trigger {
  display: inline-flex;
  width: auto;
  height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 11px 0 12px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(24, 25, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.022), inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12);
  outline: none;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-trigger > i {
  width: 7px;
  height: 7px;
  margin: -4px 1px 0 0;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  opacity: 0.82;
  transform: rotate(45deg);
  transition: margin 140ms ease, transform 140ms ease;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-trigger:hover,
body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker.open .minimax-h3-picker-trigger {
  color: rgba(248, 249, 250, 0.94);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker.open .minimax-h3-picker-trigger > i {
  margin: 3px 1px 0 0;
  transform: rotate(225deg);
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  width: max-content;
  min-width: 100%;
  padding: 5px;
  background: #222326;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-menu[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-option {
  display: flex;
  width: 100%;
  height: 34px;
  min-width: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
  white-space: nowrap;
  transition: color 120ms ease, background 120ms ease;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-option:hover {
  color: rgba(248, 249, 250, 0.94);
  background: rgba(255, 255, 255, 0.055);
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-option.active {
  color: rgba(217, 246, 242, 0.96);
  background: rgba(69, 216, 205, 0.09);
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-option > i {
  width: 5px;
  height: 9px;
  margin: -2px 2px 0 0;
  border-right: 1.35px solid #62d9cf;
  border-bottom: 1.35px solid #62d9cf;
  opacity: 0;
  transform: rotate(45deg);
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-picker-option.active > i {
  opacity: 0.9;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active.minimax-h3-text-mode .prompt-upload-row {
  display: none;
}

/* Seedance 2.0 and 2.5 reuse the established video-control visuals only.
   Their available modes and request data stay model-specific in script/server. */
body:has(.prompt-workspace) .prompt-card.minimax-h3-active .sd25-controls > span:first-child {
  display: inline;
  max-width: 235px;
  overflow: hidden;
  color: rgba(235, 238, 240, 0.58);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .sd25-controls .sd25-price-note,
body:has(.prompt-workspace) .prompt-card.minimax-h3-active .sd20-controls .sd25-price-note {
  display: inline;
  color: rgba(156, 237, 222, 0.86);
}

/* Shared role label for video-model upload slots: video, reference image, first/last frame, etc. */
body:has(.prompt-workspace) .media-upload-slot[hidden],
body:has(.prompt-workspace) .media-upload-slot-label[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .media-upload-slot {
  position: relative;
  overflow: hidden;
}

body:has(.prompt-workspace) .media-upload-slot-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  height: 17px;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(9, 10, 12, 0.7);
  backdrop-filter: blur(5px);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

/* Seedance 2.0: 首帧独立；参考图采用其他模型的普通缩略图表现。
   已上传参考图占满自己的格子，固定的 + 入口始终留在最右侧继续添加。 */
body:has(.prompt-workspace) .prompt-card[data-sd20-mode="firstReference"] .prompt-upload-row > #minimaxH3PrimaryUpload { order: 1; }
body:has(.prompt-workspace) .prompt-card[data-sd20-mode="firstReference"] .prompt-upload-row > #referenceStrip { order: 2; }
body:has(.prompt-workspace) .prompt-card[data-sd20-mode="firstReference"] .prompt-upload-row > #minimaxH3LastFrameUpload { order: 3; }

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-upload-slot.has-image > svg {
  opacity: 0;
}

body:has(.prompt-workspace) .prompt-card.minimax-h3-active .minimax-h3-upload-slot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 御灵 Gemini Omni Flash 的源视频与参考图共用素材行；视频保持独立缩略图，
   右上角删除和底部类型标签始终位于预览之上。 */
body:has(.prompt-workspace) .yuling-omni-video-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: rgba(20, 22, 24, 0.94);
}

body:has(.prompt-workspace) .yuling-omni-video-upload > svg {
  position: relative;
  z-index: 1;
}

/* Same corner delete treatment used by the Kling media uploads. */
body:has(.prompt-workspace) .media-upload-slot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 4;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(36, 36, 38, 0.76);
  border: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

body:has(.prompt-workspace) .media-upload-slot-remove:hover {
  background: rgba(56, 57, 61, 0.94);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2 {
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: 58px minmax(0, 1fr) auto 38px;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-media {
  grid-row: 1;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-prompt {
  grid-row: 2;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-message {
  grid-row: 3;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-footer {
  grid-row: 4;
  height: 38px;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options {
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options label {
  display: inline-flex;
  align-items: center;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options label[hidden] {
  display: none;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options label > span {
  display: none;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options select {
  width: auto;
  min-width: 0;
  height: 34px;
  padding: 0 27px 0 12px;
  appearance: none;
  field-sizing: content;
  color: rgba(235, 238, 240, 0.82);
  background-color: rgba(255, 255, 255, 0.035);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%23aeb5b8' stroke-width='1.15' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 8px 5px;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 9px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.018) inset;
  outline: none;
  font-size: 13px;
  font-weight: 610;
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options select:hover {
  color: rgba(248, 249, 250, 0.94);
  background-color: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.09);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-options select:focus-visible {
  color: rgba(248, 249, 250, 0.96);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.025);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-native-select {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-duration-readout {
  display: inline-flex;
  height: 34px;
  align-items: center;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(24, 25, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.022), inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12);
  font-family: Inter, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px !important;
  font-weight: 620 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
  pointer-events: none;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-duration-readout[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-trigger {
  display: inline-flex;
  width: auto;
  height: 34px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 0 11px 0 12px;
  color: rgba(255, 255, 255, 0.94);
  background: rgba(24, 25, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.022), inset 0 0 0 1px rgba(0, 0, 0, 0.22), 0 8px 20px rgba(0, 0, 0, 0.12);
  outline: none;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px !important;
  font-weight: 620 !important;
  line-height: 1 !important;
  letter-spacing: 0;
  white-space: nowrap;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker.is-fixed .kling-editor-v2-picker-trigger {
  padding-right: 12px;
  color: rgba(235, 238, 240, 0.78);
  background: rgba(24, 25, 28, 0.68);
  border-color: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.014);
  cursor: default;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker.is-fixed .kling-editor-v2-picker-trigger:hover {
  color: rgba(235, 238, 240, 0.78);
  background: rgba(24, 25, 28, 0.68);
  border-color: rgba(255, 255, 255, 0.052);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-trigger > i {
  width: 7px;
  height: 7px;
  margin: -4px 1px 0 0;
  border-right: 1.3px solid currentColor;
  border-bottom: 1.3px solid currentColor;
  opacity: 0.82;
  transform: rotate(45deg);
  transition: margin 140ms ease, transform 140ms ease;
}

/* 覆盖旧版标签的 10px 灰字，与 Image2 左下角采用同一字级。 */
body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-trigger .kling-editor-v2-picker-label {
  color: rgba(255, 255, 255, 0.94) !important;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 14px !important;
  font-weight: 620 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-trigger:hover,
body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker.open .kling-editor-v2-picker-trigger {
  color: rgba(248, 249, 250, 0.94);
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(255, 255, 255, 0.14);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-trigger:focus,
body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-trigger:focus-visible {
  outline: none;
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.022);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker.open .kling-editor-v2-picker-trigger > i {
  margin: 3px 1px 0 0;
  transform: rotate(225deg);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  z-index: 60;
  display: grid;
  width: max-content;
  min-width: 100%;
  padding: 5px;
  background: #222326;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.4), 0 1px 0 rgba(255, 255, 255, 0.025) inset;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-menu[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-option {
  display: flex;
  width: 100%;
  height: 34px;
  min-width: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.94);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 620;
  text-align: left;
  white-space: nowrap;
  transition: color 120ms ease, background 120ms ease;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-option > span {
  color: inherit;
  font-size: 14px !important;
  font-weight: 620 !important;
  line-height: 1;
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-option:hover {
  color: rgba(248, 249, 250, 0.94);
  background: rgba(255, 255, 255, 0.055);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-option.active {
  color: rgba(217, 246, 242, 0.96);
  background: rgba(69, 216, 205, 0.09);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-option > i {
  width: 5px;
  height: 9px;
  margin: -2px 2px 0 0;
  border-right: 1.35px solid #62d9cf;
  border-bottom: 1.35px solid #62d9cf;
  opacity: 0;
  transform: rotate(45deg);
}

body:has(.prompt-workspace) .prompt-card.kling-editor-v2-active .kling-editor-v2-picker-option.active > i {
  opacity: 0.9;
}

body:has(.prompt-workspace) .koozee-composer-panel textarea {
  min-height: 92px;
}

body:has(.prompt-workspace) .koozee-composer-panel .composer-footer {
  align-items: center;
  flex-direction: row;
  gap: 14px;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 118px;
  height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 720;
  line-height: 1;
  text-align: center;
}

body:has(.prompt-workspace) .koozee-composer-panel .generate-button #generateButtonText {
  display: block;
  line-height: 1;
  transform: translateY(-0.5px);
}

body:has(.koozee-home) .koozee-tools {
  position: static;
  top: auto;
  right: auto;
  align-self: center;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  margin: 40px auto 0;
}

body:has(.koozee-home) .koozee-tools-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0 0 18px;
}

body:has(.koozee-home) .koozee-tools-heading span {
  color: rgba(89, 255, 222, 0.72);
  font-size: 12px;
  font-weight: 680;
  line-height: 1;
}

body:has(.koozee-home) .koozee-tools h2 {
  display: block;
  margin: 0;
  color: rgba(247, 248, 250, 0.88);
  font-size: 18px;
  font-weight: 620;
  line-height: 1.2;
}

body:has(.koozee-home) .koozee-tools-heading p {
  max-width: 560px;
  margin: 0;
  color: rgba(189, 194, 199, 0.58);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

body:has(.koozee-home) .koozee-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

body:has(.koozee-home) .koozee-tool {
  grid-template-columns: 28px minmax(0, 1fr);
  min-width: 0;
  min-height: 72px;
  padding: 0 16px;
}

body:has(.koozee-home) .koozee-tool-copy,
body:has(.koozee-home) .koozee-tool-copy strong {
  min-width: 0;
}

body:has(.koozee-home) .home-generation-stage {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 30px auto 0;
  scroll-margin-top: 92px;
}

body:has(.koozee-home) .home-generation-stage:has(.generation-results[hidden]) {
  display: none;
}

body:has(.koozee-home) .home-generation-stage .generation-results,
body:has(.koozee-home) .home-generation-stage .result-board {
  width: 100%;
}

body:has(.koozee-home) .home-generation-stage .result-board {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:has(.koozee-home) .home-generation-stage .result-board-header {
  margin-bottom: 18px;
  padding: 0;
  border-bottom: 0;
}

body:has(.koozee-home) .home-generation-stage .result-board-grid {
  grid-template-columns: repeat(var(--result-columns, 4), minmax(0, 1fr));
  width: 100% !important;
  max-width: 1120px !important;
  margin: 0 auto;
}

body:has(.koozee-home) .home-generation-stage .result-board-grid[data-columns] {
  max-width: 1120px !important;
}

body:has(.koozee-home) .home-generation-stage .result-image-tile {
  width: 100%;
}

body:has(.koozee-home) .koozee-tool-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1440px) {
  body:has(.koozee-home) .koozee-content {
    width: min(1400px, calc(100vw - 368px));
    margin: 0 auto;
    padding-top: 108px;
  }

  body:has(.prompt-workspace) .koozee-composer-zone h1 {
    font-size: clamp(30px, 2.6vw, 38px);
  }

  body:has(.koozee-home) .koozee-tool {
    padding: 0 16px;
  }
}

@media (max-width: 1280px) and (min-width: 721px) {
  body:has(.koozee-home) .koozee-content {
    width: min(1120px, calc(100vw - 224px));
    transform: translateX(-46px);
  }
}

@media (max-width: 1080px) {
  body:has(.koozee-home) .koozee-content {
    width: min(1120px, calc(100vw - 224px));
    padding-top: 104px;
  }

  body:has(.koozee-home) .koozee-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.koozee-home) .koozee-tool {
    min-height: 72px;
  }
}

@media (max-width: 720px) {
  body:has(.koozee-home) .koozee-content {
    width: calc(100% - 28px);
    padding: 94px 0 38px;
    transform: none;
  }

  body:has(.prompt-workspace) .koozee-composer-zone h1 {
    font-size: clamp(25px, 7vw, 32px);
    margin-bottom: 30px;
    text-align: center;
  }

  body:has(.prompt-workspace) .prompt-model-tabs {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    height: 70px;
    border-radius: 18px 18px 0 0;
  }

  body:has(.prompt-workspace) .prompt-card {
    min-height: 330px;
    padding: 16px;
    border-radius: 0 0 18px 18px;
  }

  body:has(.prompt-workspace) .koozee-composer-panel .composer-footer {
    align-items: stretch;
    flex-direction: column;
  }

  body:has(.prompt-workspace) .koozee-composer-panel .generate-button {
    width: 100%;
  }

  body:has(.koozee-home) .home-generation-stage {
    margin-top: 26px;
    scroll-margin-top: 72px;
  }

  body:has(.koozee-home) .koozee-tools {
    margin-top: 46px;
  }
}

@media (max-width: 560px) {
  body:has(.koozee-home) .koozee-tool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Gemini prompt assistant: conversation above, compact composer anchored below. */
body:has(.prompt-workspace) .prompt-card.is-gemini {
  display: block;
  min-height: 430px;
  padding: 0;
  overflow: hidden;
}

body:has(.prompt-workspace) .prompt-card.is-gemini > .prompt-upload-row,
body:has(.prompt-workspace) .prompt-card.is-gemini > #homePrompt,
body:has(.prompt-workspace) .prompt-card.is-gemini > .composer-error,
body:has(.prompt-workspace) .prompt-card.is-gemini > .composer-footer {
  display: none !important;
}

body:has(.prompt-workspace) .gemini-chat[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .gemini-chat {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  height: 430px;
  min-height: 0;
  background: #17181b;
}

body:has(.prompt-workspace) .gemini-chat-messages {
  min-height: 0;
  padding: 28px 34px 18px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
  scrollbar-width: thin;
}

body:has(.prompt-workspace) .gemini-chat-empty {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: rgba(235, 237, 241, 0.58);
}

body:has(.prompt-workspace) .gemini-chat-empty strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

body:has(.prompt-workspace) .gemini-empty-mark,
body:has(.prompt-workspace) .gemini-answer-mark {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

body:has(.prompt-workspace) .gemini-empty-mark::before,
body:has(.prompt-workspace) .gemini-answer-mark::before {
  position: absolute;
  inset: 1px;
  content: "";
  background: linear-gradient(135deg, #4b8cff 8%, #8a70ee 42%, #dc6dad 72%, #ff9167 100%);
  clip-path: polygon(50% 0, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0 50%, 39% 38%);
}

body:has(.prompt-workspace) .gemini-message {
  width: fit-content;
  max-width: min(780px, 86%);
  margin: 0 0 24px;
  color: rgba(245, 246, 248, 0.92);
  letter-spacing: 0;
}

body:has(.prompt-workspace) .gemini-message-user {
  margin-left: auto;
  padding: 11px 16px;
  color: rgba(250, 250, 251, 0.94);
  background: #2a2b2f;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 16px 16px 4px 16px;
}

body:has(.prompt-workspace) .gemini-message-images {
  display: flex;
  max-width: 440px;
  margin: -3px -8px 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body:has(.prompt-workspace) .gemini-message-images img {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: cover;
  object-position: center;
  background: #202125;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

body:has(.prompt-workspace) .gemini-message-assistant {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 920px;
  margin-right: auto;
}

body:has(.prompt-workspace) .gemini-message-assistant.is-error {
  color: #e7a5aa;
}

body:has(.prompt-workspace) .gemini-answer-body {
  min-width: 0;
}

body:has(.prompt-workspace) .gemini-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  font-weight: 430;
  line-height: 1.75;
}

body:has(.prompt-workspace) .gemini-message-user .gemini-message-text {
  line-height: 1.55;
}

body:has(.prompt-workspace) .gemini-message-markdown {
  white-space: normal;
  font-size: 15.5px;
}

body:has(.prompt-workspace) .gemini-stream-cursor {
  display: inline-block;
  width: 7px;
  height: 1.08em;
  margin-left: 3px;
  vertical-align: -0.16em;
  background: rgba(245, 246, 248, 0.82);
  border-radius: 1px;
  animation: gemini-stream-cursor-pulse 760ms ease-in-out infinite alternate;
}

@keyframes gemini-stream-cursor-pulse {
  from { opacity: 0.28; }
  to { opacity: 0.92; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.prompt-workspace) .gemini-stream-cursor {
    animation: none;
  }
}

body:has(.prompt-workspace) .gemini-message-markdown p,
body:has(.prompt-workspace) .gemini-message-markdown ul,
body:has(.prompt-workspace) .gemini-message-markdown ol {
  margin: 0 0 12px;
}

body:has(.prompt-workspace) .gemini-message-markdown p:last-child,
body:has(.prompt-workspace) .gemini-message-markdown ul:last-child,
body:has(.prompt-workspace) .gemini-message-markdown ol:last-child {
  margin-bottom: 0;
}

body:has(.prompt-workspace) .gemini-message-markdown h2,
body:has(.prompt-workspace) .gemini-message-markdown h3 {
  color: #f7f8fa;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

body:has(.prompt-workspace) .gemini-message-markdown h2 {
  margin: 24px 0 10px;
  font-size: 21px;
  font-weight: 760;
}

body:has(.prompt-workspace) .gemini-message-markdown h3 {
  margin: 18px 0 8px;
  font-size: 17.5px;
  font-weight: 710;
}

body:has(.prompt-workspace) .gemini-message-markdown h2:first-child,
body:has(.prompt-workspace) .gemini-message-markdown h3:first-child {
  margin-top: 0;
}

body:has(.prompt-workspace) .gemini-message-markdown ul,
body:has(.prompt-workspace) .gemini-message-markdown ol {
  padding-left: 1.5em;
}

body:has(.prompt-workspace) .gemini-message-markdown li {
  margin: 4px 0;
  padding-left: 0.15em;
}

body:has(.prompt-workspace) .gemini-message-markdown strong {
  color: #fff;
  font-weight: 760;
}

body:has(.prompt-workspace) .gemini-message-markdown code {
  padding: 0.12em 0.35em;
  color: #f1f2f4;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
}

body:has(.prompt-workspace) .gemini-message-markdown pre {
  max-width: 100%;
  margin: 8px 0 14px;
  padding: 14px 16px;
  overflow-x: auto;
  color: #eceef2;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

body:has(.prompt-workspace) .gemini-message-markdown pre code {
  padding: 0;
  color: inherit;
  background: transparent;
  border-radius: 0;
  font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.75;
}

body:has(.prompt-workspace) .gemini-message-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 10px;
}

body:has(.prompt-workspace) .gemini-message-actions button {
  display: inline-flex;
  width: 30px;
  height: 30px;
  padding: 0;
  align-items: center;
  justify-content: center;
  color: rgba(218, 220, 225, 0.56);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

body:has(.prompt-workspace) .gemini-message-actions button:hover,
body:has(.prompt-workspace) .gemini-message-actions button.is-copied,
body:has(.prompt-workspace) .gemini-message-actions button.is-selected {
  color: #f5f6f8;
  background: rgba(255, 255, 255, 0.07);
}

body:has(.prompt-workspace) .gemini-message-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body:has(.prompt-workspace) .gemini-message-actions .gemini-more-icon {
  fill: currentColor;
  stroke: none;
}

body:has(.prompt-workspace) .gemini-message-actions button.is-selected svg {
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.45;
}

body:has(.prompt-workspace) .gemini-message-actions [aria-disabled="true"] {
  cursor: default;
}

body:has(.prompt-workspace) .gemini-chat-composer {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 42px;
  gap: 10px;
  width: calc(100% - 40px);
  min-height: 66px;
  margin: 0 20px 18px;
  padding: 11px 12px;
  align-items: end;
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

body:has(.prompt-workspace) .gemini-reference-strip {
  grid-column: 1 / -1;
  display: flex;
  min-width: 0;
  padding: 1px 1px 3px;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

body:has(.prompt-workspace) .gemini-reference-strip[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .gemini-reference-strip .reference-thumb {
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
  min-width: 52px;
  min-height: 52px;
  border-radius: 9px;
}

body:has(.prompt-workspace) .gemini-reference-strip .reference-thumb::after {
  display: grid;
  right: 0;
  bottom: 0;
  left: auto;
  min-width: 38px;
  width: max-content;
  padding: 0 3px;
  height: 15px;
  place-items: center;
  border-radius: 7px 0 8px 0;
  font-size: 8px;
  line-height: 1;
}

body:has(.prompt-workspace) .gemini-mention-menu {
  position: absolute;
  z-index: 70;
  bottom: calc(100% + 8px);
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  width: min(330px, calc(100% - 24px));
  padding: 12px 10px;
  background: rgba(36, 36, 36, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

body:has(.prompt-workspace) .gemini-mention-menu[hidden] { display: none !important; }

body:has(.prompt-workspace) .gemini-mention-menu button {
  display: flex;
  min-width: 0;
  height: 48px;
  align-items: center;
  gap: 12px;
  padding: 4px 7px;
  color: rgba(244, 245, 247, 0.92);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 480;
}

body:has(.prompt-workspace) .gemini-mention-menu button:hover,
body:has(.prompt-workspace) .gemini-mention-menu button:focus-visible {
  color: rgba(238, 252, 250, 0.96);
  background: rgba(255, 255, 255, 0.065);
  border-color: transparent;
  outline: none;
}

body:has(.prompt-workspace) .gemini-mention-menu img {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
}

body:has(.prompt-workspace) .gemini-mention-menu span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.prompt-workspace) .gemini-add-reference,
body:has(.prompt-workspace) .gemini-send {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

body:has(.prompt-workspace) .gemini-add-reference {
  color: rgba(235, 237, 241, 0.72);
  background: transparent;
  border: 0;
}

body:has(.prompt-workspace) .gemini-add-reference:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

body:has(.prompt-workspace) .gemini-add-reference svg,
body:has(.prompt-workspace) .gemini-send svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

body:has(.prompt-workspace) .gemini-reference-count {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  place-items: center;
  color: #071315;
  background: #45dce5;
  border: 2px solid #242529;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

body:has(.prompt-workspace) .gemini-reference-count[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-card.is-gemini #geminiPromptInput {
  width: 100%;
  min-height: 38px;
  max-height: 120px;
  padding: 8px 0 6px;
  resize: none;
  overflow-y: auto;
  color: rgba(247, 248, 250, 0.92);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  font-size: 15px;
  font-weight: 430;
  line-height: 1.5;
}

body:has(.prompt-workspace) .prompt-card.is-gemini #geminiPromptInput:empty::before {
  color: rgba(194, 197, 203, 0.42);
  content: attr(data-placeholder);
  font-weight: 420;
  pointer-events: none;
}

body:has(.prompt-workspace) .gemini-send {
  width: 42px;
  height: 42px;
  color: #071315;
  background: linear-gradient(135deg, #53d8f2 0%, #67ecc4 100%);
  border: 0;
  box-shadow: 0 6px 18px rgba(72, 220, 216, 0.16);
  transition: filter 140ms ease, transform 140ms ease, opacity 140ms ease;
}

body:has(.prompt-workspace) .gemini-send:hover:not(:disabled) {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Keep insufficient-credit state distinct from the neutral processing state. */
body:has(.prompt-workspace) .koozee-composer-panel .generate-button.is-credit-insufficient,
body:has(.prompt-workspace) .koozee-composer-panel .generate-button:disabled.is-credit-insufficient,
body:has(.prompt-workspace) .kling-editor-v2-submit.is-credit-insufficient,
body:has(.prompt-workspace) .kling-editor-v2-submit:disabled.is-credit-insufficient {
  cursor: not-allowed;
  opacity: 1;
  color: rgba(255, 232, 232, .94);
  background: linear-gradient(135deg, #4a2d33 0%, #68343c 100%);
  border-color: rgba(255, 166, 176, .3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1);
  filter: none;
  transform: none;
}

body:has(.prompt-workspace) .gemini-send:disabled {
  cursor: wait;
  opacity: 0.48;
}

body:has(.prompt-workspace) .gemini-typing {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 5px;
}

body:has(.prompt-workspace) .gemini-typing i {
  width: 5px;
  height: 5px;
  background: rgba(228, 230, 234, 0.58);
  border-radius: 50%;
  animation: geminiTyping 1.05s ease-in-out infinite;
}

body:has(.prompt-workspace) .gemini-typing i:nth-child(2) {
  animation-delay: 120ms;
}

body:has(.prompt-workspace) .gemini-typing i:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes geminiTyping {
  0%, 70%, 100% { opacity: 0.35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 720px) {
  body:has(.prompt-workspace) .prompt-card.is-gemini,
  body:has(.prompt-workspace) .gemini-chat {
    min-height: 420px;
    height: 420px;
  }

  body:has(.prompt-workspace) .gemini-chat-messages {
    padding: 22px 18px 14px;
  }

  body:has(.prompt-workspace) .gemini-message {
    max-width: 92%;
  }

  body:has(.prompt-workspace) .gemini-message-assistant {
    max-width: 100%;
  }

  body:has(.prompt-workspace) .gemini-message-images {
    max-width: 300px;
  }

  body:has(.prompt-workspace) .gemini-message-images img {
    width: 82px;
    height: 82px;
  }

  body:has(.prompt-workspace) .gemini-chat-composer {
    width: calc(100% - 24px);
    margin: 0 12px 12px;
  }
}

/* Keep the home canvas and its navigation rail on one uninterrupted black surface. */
body:has(.koozee-home) .page-home,
body:has(.koozee-home) .koozee-home,
body:has(.koozee-home) .koozee-sidebar {
  background: #08090a;
  background-image: none;
}

body:has(.koozee-home) .koozee-sidebar {
  border-right: 0;
  box-shadow: none;
}

/* Product library: a quiet, reusable home for each product. */
body.product-library-open {
  overflow: hidden;
}

body.product-library-open .koozee-contact {
  display: none;
}

.product-library-page[hidden],
.product-editor-modal[hidden] {
  display: none !important;
}

.product-library-page {
  position: fixed;
  inset: 0 0 0 164px;
  z-index: 32;
  min-width: 0;
  overflow: auto;
  color: #f4f6f7;
  background: #08090a;
}

.product-library-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  min-height: 138px;
  padding: 42px clamp(34px, 4vw, 74px) 12px;
  background: #08090a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.product-library-eyebrow,
.product-detail-kicker {
  display: block;
  margin-bottom: 8px;
  color: #2bd1e8;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.12em;
}

.product-library-header h1 {
  margin: 0;
  color: #f7f8f9;
  font-size: clamp(25px, 2vw, 34px);
  font-weight: 720;
  line-height: 1.14;
  letter-spacing: -0.025em;
}

.product-library-header p {
  margin: 9px 0 0;
  color: rgba(235, 239, 242, 0.58);
  font-size: 14px;
}

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

.product-library-empty button,
.product-detail-actions button,
.product-library-error button {
  min-height: 44px;
  padding: 0 18px;
  color: rgba(244, 247, 249, 0.82);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 720;
}

.product-library-empty button,
.product-detail-actions .primary {
  color: #031417;
  background: #2bd1e8;
  border-color: #2bd1e8;
  box-shadow: 0 10px 30px rgba(43, 209, 232, 0.16);
}

.product-library-empty button:hover,
.product-detail-actions .primary:hover {
  background: #57dff0;
  border-color: #57dff0;
}

.product-detail-actions button:not(.primary):hover,
.product-library-error button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.095);
}

.product-library-content {
  width: min(1400px, calc(100% - 68px));
  margin: 0 auto;
  padding: 18px 0 64px;
}

.product-library-page.is-detail-view .product-library-header {
  display: none;
}

.product-library-page.is-detail-view .product-library-content {
  padding-top: 30px;
  transform: translateX(-82px);
}

.product-library-view {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.product-library-view > * {
  transition: opacity 0.18s ease, transform 0.18s cubic-bezier(0.22, 0.72, 0.24, 1);
}

.product-library-view.is-leaving {
  opacity: 0.12;
}

.product-library-view.is-entering,
.product-library-view.is-entering-back {
  opacity: 0;
}

.product-library-view.is-entering > * {
  opacity: 0.7;
  transform: translateY(5px);
}

.product-library-view.is-entering-back > * {
  opacity: 0.7;
  transform: translateY(-3px);
}

.product-library-loading {
  padding: 40px;
  color: rgba(255, 255, 255, 0.56);
  text-align: center;
}

.product-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.product-list-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.product-list-heading strong {
  color: #f6f7f8;
  font-size: 20px;
}

.product-list-heading span,
.product-list-heading p {
  color: rgba(230, 235, 238, 0.46);
  font-size: 13px;
}

.product-list-heading p {
  margin: 0;
}

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(216px, 252px));
  align-items: stretch;
  gap: 18px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(155deg, #17191c 0%, #121416 100%);
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: rgba(74, 219, 235, 0.38);
  box-shadow: 0 15px 32px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(43, 209, 232, 0.04);
  outline: none;
  transform: translateY(-1px);
}

.product-card:focus-visible {
  border-color: rgba(74, 219, 235, 0.34);
  outline: 2px solid rgba(43, 209, 232, 0.22);
  outline-offset: 2px;
}

.product-card:active {
  border-color: rgba(74, 219, 235, 0.26);
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.2);
  transform: scale(0.996);
  transition-duration: 0.06s;
}

.product-card-cover {
  position: relative;
  isolation: isolate;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1c1f22;
  line-height: 0;
}

.product-card-cover::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgba(5, 7, 8, 0.62), transparent);
  content: "";
  pointer-events: none;
}

.product-card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transform: translateZ(0);
  transition: filter 0.2s ease;
}

.product-card:hover .product-card-cover img {
  filter: saturate(1.04);
}

.product-card-kind,
.product-card-stats {
  position: absolute;
  z-index: 1;
  padding: 4px 7px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(8, 10, 12, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  font-size: 10px;
  line-height: 1;
}

.product-card-kind {
  top: 10px;
  left: 10px;
  color: rgba(179, 244, 250, 0.9);
  letter-spacing: 0.08em;
}

.product-card-stats {
  right: 10px;
  bottom: 9px;
}

.product-card-body {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 94px;
  margin-top: -1px;
  padding: 12px 14px 13px;
  background: linear-gradient(155deg, #17191c 0%, #121416 100%);
}

.product-card-info {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.product-card-body strong {
  overflow: hidden;
  color: #f4f5f6;
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-body span {
  color: rgba(232, 236, 239, 0.42);
  font-size: 10px;
}

.product-card-tags {
  display: flex;
  min-width: 0;
  min-height: 20px;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  overflow: hidden;
}

.product-card-tags .product-tag-chip {
  max-width: 78px;
  min-height: 18px;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
}

.product-card-tags .product-tag-chip b {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-tags em,
.product-card-tags i {
  color: rgba(230, 235, 238, 0.3);
  font-size: 9px;
  font-style: normal;
  white-space: nowrap;
}

.product-card-tags i {
  padding: 2px 4px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 4px;
}

.product-create-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 20px;
  color: rgba(236, 241, 243, 0.58);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.01));
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.product-create-card:hover,
.product-create-card:focus-visible {
  color: #a8f0f8;
  background: rgba(43, 209, 232, 0.035);
  border-color: rgba(43, 209, 232, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.product-create-card:active {
  transform: scale(0.996);
  transition-duration: 0.06s;
}

@media (prefers-reduced-motion: reduce) {
  .product-library-view,
  .product-library-view > *,
  .product-card,
  .product-card-cover img,
  .product-create-card {
    transition: none !important;
  }
}

.product-create-card-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #041619;
  background: linear-gradient(135deg, #2bc9e5, #29e4ba);
  border-radius: 11px;
  box-shadow: 0 8px 22px rgba(43, 209, 232, 0.14);
  font-size: 22px;
}

.product-create-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: left;
}

.product-create-card-copy strong {
  color: rgba(247, 249, 250, 0.88);
  font-size: 13px;
}

.product-create-card-copy small {
  color: rgba(230, 235, 238, 0.38);
  font-size: 10px;
  white-space: nowrap;
}

.product-library-empty,
.product-library-error {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: min(600px, calc(100vh - 220px));
  padding: 32px 20px 76px;
  text-align: center;
}

.product-library-content:has(.product-library-empty) {
  display: grid;
  min-height: calc(100vh - 138px);
  padding-top: 0;
  padding-bottom: 0;
}

.product-library-content:has(.product-library-empty) .product-library-view {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transform: translate(-82px, -18px);
}

.product-library-content:has(.product-library-empty) .product-library-empty {
  width: 100%;
  min-height: 0;
  padding: 0 20px;
}

.product-library-content:has(.product-library-empty) .product-library-empty h2 {
  margin-top: 0;
}

.product-library-empty h2,
.product-library-error strong {
  margin: 22px 0 0;
  color: #f5f6f7;
  font-size: 24px;
}

.product-library-empty p,
.product-library-error p {
  max-width: 460px;
  margin: 10px 0 24px;
  color: rgba(229, 234, 237, 0.52);
  line-height: 1.7;
}

.product-detail-view {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.product-detail-back {
  display: block;
  width: 100%;
  max-width: 886px;
  min-height: 30px;
  margin: 0 auto 14px;
  padding: 0;
  color: rgba(230, 236, 239, 0.58);
  background: transparent;
  border: 0;
  font-size: 12px;
  text-align: left;
}

.product-detail-back:hover {
  color: #ffffff;
}

.product-detail-shell {
  display: grid;
  width: 100%;
  max-width: 886px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 46px);
  align-items: start;
  margin: 0 auto;
}

.product-detail-main {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #141619;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.product-detail-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-detail-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 9px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.product-detail-thumbnails button {
  width: 56px;
  height: 56px;
  padding: 0;
  overflow: hidden;
  background: #17191c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  flex: 0 0 auto;
}

.product-detail-thumbnails button.active {
  border-color: #2bd1e8;
  box-shadow: 0 0 0 2px rgba(43, 209, 232, 0.11);
}

.product-detail-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-copy {
  display: flex;
  aspect-ratio: 1 / 1;
  flex-direction: column;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(43, 209, 232, 0.025), transparent 42%),
    #111315;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 17px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.product-detail-copy h2 {
  margin: 0;
  color: #f7f8f9;
  font-size: clamp(25px, 2.3vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.025em;
}

.product-detail-meta {
  margin: 9px 0 0;
  color: rgba(229, 234, 237, 0.46);
  font-size: 13px;
}

.product-detail-note {
  margin: 34px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 14px;
}

.product-detail-note strong {
  color: rgba(245, 247, 248, 0.86);
  font-size: 13px;
}

.product-detail-note p {
  margin: 9px 0 0;
  color: rgba(229, 234, 237, 0.58);
  font-size: 14px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.product-detail-tags {
  display: grid;
  gap: 11px;
  margin: 20px 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 14px;
}

.product-detail-tags-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-detail-tags-head strong {
  color: rgba(245, 247, 248, 0.86);
  font-size: 13px;
}

.product-detail-tags-head span,
.product-detail-tags > p {
  margin: 0;
  color: rgba(229, 234, 237, 0.38);
  font-size: 10px;
}

.product-tag-list,
.product-tag-editor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.product-tag-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  max-width: 100%;
  gap: 5px;
  padding: 3px 9px;
  color: rgba(177, 235, 243, 0.92);
  background: rgba(49, 207, 230, 0.08);
  border: 1px solid rgba(49, 207, 230, 0.2);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.35;
}

.product-tag-chip b {
  overflow: hidden;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-tag-chip button {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  color: currentColor;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  border-radius: 50%;
  font-size: 12px;
  opacity: 0.62;
}

.product-tag-chip button:hover,
.product-tag-chip button:focus-visible {
  opacity: 1;
  outline: none;
}

.product-tag-chip[data-product-tag-field="origin"] {
  color: rgba(248, 211, 148, 0.94);
  background: rgba(225, 170, 75, 0.09);
  border-color: rgba(236, 188, 103, 0.22);
}

.product-tag-chip[data-product-tag-field="material"],
.product-tag-chip[data-product-tag-field="specification"] {
  color: rgba(205, 181, 255, 0.94);
  background: rgba(139, 101, 220, 0.1);
  border-color: rgba(171, 132, 248, 0.22);
}

.product-tag-chip[data-product-tag-field="sellingPoint"] {
  color: rgba(152, 235, 190, 0.96);
  background: rgba(72, 197, 133, 0.09);
  border-color: rgba(91, 211, 150, 0.22);
}

.product-tag-chip[data-product-tag-field="audience"],
.product-tag-chip[data-product-tag-field="scenario"] {
  color: rgba(153, 195, 255, 0.96);
  background: rgba(72, 126, 219, 0.1);
  border-color: rgba(101, 154, 242, 0.22);
}

.product-tag-chip[data-product-tag-field="color"] {
  color: rgba(247, 174, 220, 0.95);
  background: rgba(213, 93, 167, 0.09);
  border-color: rgba(232, 126, 193, 0.22);
}

.product-tag-chip[data-product-tag-field="constraint"] {
  color: rgba(255, 164, 171, 0.96);
  background: rgba(231, 78, 92, 0.09);
  border-color: rgba(247, 105, 118, 0.22);
}

.product-tag-chip.duplicate {
  animation: product-tag-duplicate 0.85s ease;
}

@keyframes product-tag-duplicate {
  40% { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(248, 211, 148, 0.12); }
}

.product-knowledge-card {
  margin: -14px 0 30px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(43, 209, 232, 0.045), transparent 46%),
    rgba(255, 255, 255, 0.022);
  border: 1px solid rgba(89, 222, 239, 0.1);
  border-radius: 14px;
}

.product-knowledge-card.attention {
  animation: product-knowledge-attention 1.7s ease;
}

@keyframes product-knowledge-attention {
  0%, 100% {
    border-color: rgba(89, 222, 239, 0.1);
    box-shadow: none;
  }
  35% {
    border-color: rgba(248, 211, 148, 0.52);
    box-shadow: 0 0 0 4px rgba(248, 211, 148, 0.08), 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

.product-knowledge-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.product-knowledge-head > div {
  display: grid;
  gap: 3px;
}

.product-knowledge-head span {
  color: #7ee8f4;
  font-size: 12px;
  font-weight: 740;
}

.product-knowledge-head strong {
  color: rgba(247, 249, 250, 0.88);
  font-size: 14px;
  font-weight: 680;
}

.product-knowledge-head > small {
  color: rgba(224, 231, 234, 0.34);
  font-size: 10px;
  white-space: nowrap;
}

.product-knowledge-empty {
  margin: 13px 0 0;
  color: rgba(228, 234, 237, 0.43);
  font-size: 12px;
  line-height: 1.65;
}

.product-knowledge-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.product-knowledge-fact {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 11px 30px 11px 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 9px;
}

.product-knowledge-fact > span {
  color: rgba(126, 232, 244, 0.62);
  font-size: 9px;
  font-weight: 700;
}

.product-knowledge-fact > strong {
  overflow: hidden;
  color: rgba(246, 248, 249, 0.88);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.product-knowledge-fact > small {
  color: rgba(226, 232, 235, 0.3);
  font-size: 9px;
}

.product-knowledge-fact > button {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 20px;
  padding: 0;
  color: rgba(231, 236, 239, 0.28);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 15px;
  line-height: 1;
}

.product-knowledge-fact > button:hover,
.product-knowledge-fact > button:focus-visible {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.product-knowledge-review {
  display: grid;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.product-knowledge-review-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.product-knowledge-review-title strong {
  color: rgba(248, 211, 148, 0.86);
  font-size: 11px;
}

.product-knowledge-review-title span {
  color: rgba(228, 233, 236, 0.3);
  font-size: 9px;
}

.product-knowledge-suggestion {
  display: grid;
  gap: 10px;
  padding: 11px;
  background: rgba(255, 190, 81, 0.035);
  border: 1px solid rgba(255, 197, 100, 0.1);
  border-radius: 9px;
}

.product-knowledge-suggestion > div:first-child {
  display: grid;
  gap: 3px;
}

.product-knowledge-suggestion > div:first-child span {
  color: rgba(248, 211, 148, 0.65);
  font-size: 9px;
}

.product-knowledge-suggestion > div:first-child strong {
  color: rgba(248, 249, 250, 0.88);
  font-size: 12px;
}

.product-knowledge-suggestion > div:first-child small {
  overflow: hidden;
  color: rgba(228, 233, 236, 0.34);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-knowledge-suggestion > div:last-child {
  display: flex;
  gap: 7px;
}

.product-knowledge-suggestion button {
  min-height: 28px;
  padding: 0 9px;
  color: rgba(235, 239, 241, 0.55);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 680;
}

.product-knowledge-suggestion button.confirm {
  color: #071617;
  background: #7ee8f4;
  border-color: #7ee8f4;
}

.product-knowledge-suggestion button:disabled {
  opacity: 0.45;
  cursor: wait;
}

.product-knowledge-more {
  margin: 0;
  color: rgba(228, 233, 236, 0.34);
  font-size: 9px;
  line-height: 1.5;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  margin-top: auto;
}

.product-detail-actions button {
  min-height: 39px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
}

.product-detail-actions .danger {
  color: rgba(246, 151, 157, 0.8);
  background: transparent;
  border-color: rgba(243, 91, 101, 0.18);
}

.product-creation-tool-menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 9px;
  padding: 8px;
  background: rgba(43, 209, 232, 0.025);
  border: 1px solid rgba(74, 219, 235, 0.11);
  border-radius: 13px;
}

.product-creation-tool-menu button {
  display: grid;
  min-width: 0;
  min-height: 64px;
  align-content: center;
  gap: 5px;
  padding: 12px;
  color: rgba(246, 248, 249, 0.86);
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}

.product-creation-tool-menu button:hover,
.product-creation-tool-menu button:focus-visible {
  background: rgba(43, 209, 232, 0.09);
  border-color: rgba(74, 219, 235, 0.28);
  outline: none;
}

.product-creation-tool-menu strong {
  color: #eef9fa;
  font-size: 12px;
  font-weight: 720;
}

.product-creation-tool-menu span {
  overflow: hidden;
  color: rgba(230, 236, 239, 0.4);
  font-size: 9px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.product-creation-archive {
  max-width: 886px;
  margin: 42px auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.product-creation-archive-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.product-creation-archive-head > div {
  display: grid;
  gap: 5px;
}

.product-creation-archive-head span {
  color: #68dfed;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.product-creation-archive-head h3 {
  margin: 0;
  color: #f4f6f7;
  font-size: clamp(19px, 1.8vw, 24px);
  letter-spacing: -0.02em;
}

.product-creation-archive-head p {
  margin: 0;
  color: rgba(230, 235, 238, 0.42);
  font-size: 12px;
}

.product-creation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 258px));
  gap: 14px;
}

.product-creation-card {
  min-width: 0;
  background: transparent;
}

.product-creation-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  background: #17191c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-creation-cover:hover,
.product-creation-cover:focus-visible {
  border-color: rgba(74, 219, 235, 0.32);
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.22);
  outline: none;
}

.product-creation-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-creation-cover:hover img {
  transform: scale(1.01);
}

.product-creation-cover span {
  position: absolute;
  top: 9px;
  left: 9px;
  max-width: calc(100% - 18px);
  padding: 5px 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(6, 8, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  backdrop-filter: blur(8px);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-creation-card-copy {
  display: grid;
  grid-template-areas:
    "prompt"
    "time";
  gap: 2px;
  padding: 9px 2px 0;
}

.product-creation-card-copy small {
  grid-area: time;
  color: rgba(228, 233, 236, 0.36);
  font-size: 9px;
}

.product-creation-card-copy strong {
  grid-area: prompt;
  overflow: hidden;
  color: rgba(245, 247, 248, 0.7);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-creation-card-copy button,
.product-creation-archive-empty button,
.product-creation-archive-state button {
  min-height: 31px;
  color: #85e7f3;
  background: rgba(43, 209, 232, 0.075);
  border: 1px solid rgba(43, 209, 232, 0.16);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 720;
}

.product-creation-card-copy button {
  grid-area: action;
  min-height: 26px;
  padding: 0;
  color: rgba(120, 226, 239, 0.72);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 10px;
  white-space: nowrap;
}

.product-creation-card-copy button:hover,
.product-creation-archive-empty button:hover,
.product-creation-archive-state button:hover {
  color: #061416;
  background: #58ddec;
  border-color: #58ddec;
}

.product-creation-card-copy button:hover,
.product-creation-card-copy button:focus-visible {
  color: #83eaf5;
  background: transparent;
  outline: none;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-creation-archive-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.product-creation-archive-more button {
  min-height: 38px;
  padding: 0 18px;
  color: rgba(220, 242, 245, 0.7);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 680;
}

.product-creation-archive-more button:hover {
  color: #071618;
  background: #63dfea;
  border-color: #63dfea;
}

.product-creation-archive-more button:disabled {
  opacity: 0.48;
  cursor: wait;
}

.product-creation-archive-state,
.product-creation-archive-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 30px;
  color: rgba(231, 236, 239, 0.44);
  background: rgba(255, 255, 255, 0.018);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: center;
}

.product-creation-archive-state.is-error,
.product-creation-archive-empty {
  align-content: center;
  gap: 8px;
}

.product-creation-archive-state button,
.product-creation-archive-empty button {
  min-width: 118px;
  margin-top: 8px;
  padding: 0 14px;
}

.product-creation-archive-empty strong {
  color: rgba(247, 249, 250, 0.82);
  font-size: 15px;
}

.product-creation-archive-empty p {
  margin: 0;
  color: rgba(230, 235, 238, 0.42);
  font-size: 12px;
}

/* Product create/edit dialog. */
.product-editor-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
}

.product-editor-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.76);
  border: 0;
  backdrop-filter: blur(9px);
}

.product-editor-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(600px, calc(100vw - 40px));
  max-height: min(760px, calc(100dvh - 40px));
  overflow: hidden;
  color: #f3f5f6;
  background: #1b1c20;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.56);
}

.product-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
  padding: 10px 16px;
}

.product-editor-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.product-editor-header h2 {
  margin: 0;
  color: #f6f6f7;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.product-editor-title span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 1px 7px;
  color: rgba(241, 245, 246, 0.62);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 560;
}

.product-editor-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.045);
  border: 0;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
}

.product-editor-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.product-editor-scroll {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 18px 20px;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

.product-editor-step {
  position: relative;
}

.product-step-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: rgba(255, 255, 255, 0.76);
}

.product-step-heading > b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.86);
  background: #2a2b2f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 570;
}

.product-step-heading strong {
  font-size: 14px;
  font-weight: 620;
}

.product-step-heading small {
  margin-left: -4px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  font-weight: 500;
}

.product-step-body {
  position: relative;
  margin-left: 14px;
  padding: 8px 0 12px 14px;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
}

.product-editor-step-note .product-step-body {
  padding-bottom: 2px;
  border-left-color: transparent;
}

.product-tag-editor {
  display: grid;
  gap: 10px;
  min-height: 92px;
  padding: 11px;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-tag-editor:focus-within {
  border-color: rgba(49, 212, 232, 0.62);
  box-shadow: 0 0 0 3px rgba(49, 212, 232, 0.05);
}

.product-tag-editor-empty {
  color: rgba(255, 255, 255, 0.27);
  font-size: 10px;
}

.product-tag-editor-input {
  display: flex;
  align-items: center;
  min-height: 30px;
  gap: 6px;
  margin-top: auto;
  color: rgba(116, 225, 239, 0.62);
}

.product-tag-editor-input > span {
  font-size: 17px;
  font-weight: 360;
}

.product-tag-editor-input input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0;
  color: rgba(246, 248, 249, 0.88);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 11px;
}

.product-tag-editor-input input::placeholder {
  color: rgba(255, 255, 255, 0.27);
}

.product-tag-editor-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: rgba(231, 236, 239, 0.32);
  font-size: 9px;
}

.product-tag-editor-meta small {
  font-size: 9px;
}

.product-image-stage {
  display: grid;
  justify-items: center;
}

.product-main-upload {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 124px;
  height: 124px;
  min-height: 0;
  overflow: hidden;
  gap: 5px;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 8px;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.product-main-upload:not(.has-image)::after {
  content: "1张即可";
  position: absolute;
  right: 7px;
  bottom: 6px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 10px;
  line-height: 1;
}

.product-main-upload:hover,
.product-main-upload:focus-visible {
  color: #ffffff;
  background: #27292d;
  border-color: #31d4e8;
  outline: none;
}

.product-upload-plus {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, 0.74);
  background: transparent;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
}

.product-main-upload strong {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 560;
}

.product-main-upload small {
  display: none;
}

.product-main-upload.has-image {
  border-style: solid;
}

.product-main-upload.has-image > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #222327;
}

.product-main-label {
  position: absolute;
  z-index: 1;
  padding: 5px 7px;
  border-radius: 5px;
  backdrop-filter: blur(10px);
}

.product-main-label {
  top: 7px;
  left: 7px;
  color: #041619;
  background: #2bd1e8;
  font-size: 9px;
  font-weight: 720;
}

.product-main-remove {
  margin-top: 6px;
  padding: 0;
  color: rgba(242, 154, 160, 0.7);
  background: transparent;
  border: 0;
  font-size: 10px;
}

.product-main-remove:hover {
  color: #ff9fa6;
}

.product-angle-block {
  width: 100%;
  margin-top: 14px;
}

.product-angle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.product-angle-heading strong {
  color: rgba(244, 247, 248, 0.64);
  font-size: 12px;
  font-weight: 600;
}

.product-angle-heading span {
  color: rgba(231, 236, 239, 0.36);
  font-size: 10px;
}

.product-angle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
}

.product-angle-card,
.product-angle-add {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}

.product-angle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-angle-card > div {
  position: absolute;
  inset: auto 4px 4px;
  display: flex;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.14s ease;
}

.product-angle-card:hover > div,
.product-angle-card:focus-within > div {
  opacity: 1;
}

.product-angle-card button {
  min-width: 0;
  min-height: 24px;
  padding: 0 4px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(5, 7, 9, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  font-size: 9px;
  flex: 1;
}

.product-angle-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: rgba(234, 238, 241, 0.48);
  border-style: dashed;
  font-size: 10px;
}

.product-angle-add:hover {
  color: #9cedf7;
  border-color: rgba(43, 209, 232, 0.45);
}

.product-angle-add span {
  font-size: 20px;
}

.product-editor-field {
  position: relative;
  display: block;
  width: 100%;
}

.product-editor-field input,
.product-editor-field textarea {
  box-sizing: border-box;
  width: 100%;
  color: #f4f6f7;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  outline: none;
  font-size: 13px;
}

.product-editor-field input {
  height: 40px;
  padding: 0 12px;
}

.product-editor-field textarea {
  min-height: 82px;
  padding: 11px 12px 25px;
  line-height: 1.65;
  resize: vertical;
}

.product-editor-field input:focus,
.product-editor-field textarea:focus {
  border-color: rgba(49, 212, 232, 0.72);
}

.product-editor-field input::placeholder,
.product-editor-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.product-note-count {
  position: absolute;
  right: 9px;
  bottom: 8px;
  color: rgba(231, 236, 239, 0.32);
  font-size: 10px;
}

.product-editor-message {
  margin: 4px 0 0 42px;
  padding: 8px 10px;
  color: #ffb0b6;
  background: rgba(255, 91, 104, 0.08);
  border: 1px solid rgba(255, 91, 104, 0.16);
  border-radius: 7px;
  font-size: 11px;
}

.product-editor-message[data-tone="success"] {
  color: #9ce5bd;
  background: rgba(73, 199, 132, 0.08);
  border-color: rgba(73, 199, 132, 0.16);
}

.product-editor-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding: 11px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.product-editor-footer > span {
  color: rgba(255, 255, 255, 0.34);
  font-size: 10px;
}

.product-editor-footer > div {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.product-editor-footer button {
  min-width: 78px;
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  color: rgba(245, 247, 248, 0.62);
  background: #2a2b2f;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 620;
}

.product-editor-footer button:hover {
  color: #ffffff;
  background: #303136;
}

.product-editor-footer .primary {
  min-width: 142px;
  color: #061214;
  background: linear-gradient(100deg, #2bc9e5, #29e4ba);
  box-shadow: 0 10px 22px rgba(38, 221, 190, 0.08);
}

.product-editor-footer .primary:hover {
  color: #061214;
  background: linear-gradient(100deg, #36d3ec, #35ebc3);
}

.product-editor-footer button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.tool-product-source {
  min-height: 28px;
  padding: 0 10px;
  color: rgba(157, 236, 246, 0.78);
  background: rgba(49, 206, 229, 0.07);
  border: 1px solid rgba(49, 206, 229, 0.15);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}

.tool-product-source:hover,
.tool-product-source:focus-visible {
  color: #baf5fb;
  background: rgba(49, 206, 229, 0.12);
  border-color: rgba(49, 206, 229, 0.35);
  outline: none;
}

.detail-product-upload-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-product-upload-head .tool-product-source {
  min-height: 24px;
  padding: 0 8px;
}

.tool-product-context {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 24px;
  align-items: center;
  width: min(100%, 280px);
  min-height: 42px;
  gap: 8px;
  margin-top: 8px;
  padding: 5px 6px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 7px;
}

.tool-product-context[hidden] {
  display: none;
}

.tool-product-context img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  background: #121316;
  border-radius: 5px;
}

.tool-product-context > span {
  display: grid;
  min-width: 0;
}

.tool-product-context strong,
.tool-product-context small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-product-context strong {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 620;
}

.tool-product-context small {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 9px;
}

.tool-product-context > button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  color: rgba(255, 255, 255, 0.38);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 16px;
}

.tool-product-context > button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}

.detail-product-context {
  width: 100%;
  margin: 0 0 10px;
}

.tool-product-picker[hidden] {
  display: none;
}

.tool-product-picker {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  padding: 20px;
}

.tool-product-picker-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  background: rgba(0, 0, 0, 0.76);
  border: 0;
  backdrop-filter: blur(9px);
}

.tool-product-picker-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(620px, calc(100vw - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  overflow: hidden;
  color: #f3f5f6;
  background: #1b1c20;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.56);
}

.tool-product-picker-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}

.tool-product-picker-dialog > header > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.tool-product-picker-dialog > header h2 {
  margin: 0;
  color: #f6f6f7;
  font-size: 18px;
  font-weight: 650;
}

.tool-product-picker-dialog > header span {
  padding: 3px 7px;
  color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 4px;
  font-size: 10px;
}

.tool-product-picker-dialog > header > button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.045);
  border: 0;
  border-radius: 6px;
  font-size: 20px;
}

.tool-product-picker-view {
  min-height: 280px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
  scrollbar-width: thin;
}

.tool-product-picker-loading,
.tool-product-picker-empty {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 300px;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}

.tool-product-picker-empty strong {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
}

.tool-product-picker-empty p {
  max-width: 340px;
  margin: 7px 0 14px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  line-height: 1.7;
}

.tool-product-picker-empty button,
.tool-product-picker-product-head > button {
  min-height: 32px;
  padding: 0 11px;
  color: rgba(255, 255, 255, 0.64);
  background: #2a2b2f;
  border: 0;
  border-radius: 6px;
  font-size: 11px;
}

.tool-product-picker-product-head > button {
  display: grid;
  place-items: center;
  width: 32px;
  padding: 0;
  border-radius: 7px;
  font-size: 15px;
}

.tool-product-picker-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}

.tool-product-picker-intro strong {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.tool-product-picker-intro span {
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
}

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

.tool-product-picker-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: left;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
}

.tool-product-picker-card:hover {
  color: #ffffff;
  background: #25262a;
  border-color: rgba(49, 206, 229, 0.24);
}

.tool-product-picker-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #141518;
}

.tool-product-picker-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-product-picker-cover i {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 5px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(0, 0, 0, 0.62);
  border-radius: 4px;
  font-size: 8px;
  font-style: normal;
}

.tool-product-picker-card > span:last-child {
  display: grid;
  min-width: 0;
  padding: 9px 10px 10px;
}

.tool-product-picker-card strong,
.tool-product-picker-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-product-picker-card strong {
  font-size: 12px;
  font-weight: 620;
}

.tool-product-picker-card small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9px;
}

.tool-product-picker-product-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tool-product-picker-product-head > div {
  display: grid;
}

.tool-product-picker-product-head strong {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.tool-product-picker-images {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.tool-product-picker-images > button {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  background: #151619;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px;
}

.tool-product-picker-images > button:hover,
.tool-product-picker-images > button.active {
  border-color: rgba(49, 206, 229, 0.72);
  box-shadow: inset 0 0 0 1px rgba(49, 206, 229, 0.22);
}

.tool-product-picker-images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-product-picker-images span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  padding: 3px 5px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 0, 0, 0.62);
  border-radius: 4px;
  font-size: 8px;
}

.tool-product-picker-images i {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #061214;
  background: #31cee5;
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  opacity: 0;
}

.tool-product-picker-images > button.active i {
  opacity: 1;
}

.tool-product-picker-dialog > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  gap: 12px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.tool-product-picker-dialog > footer[hidden] {
  display: none;
}

.tool-product-picker-dialog > footer > span {
  color: rgba(255, 255, 255, 0.36);
  font-size: 10px;
}

.tool-product-picker-dialog > footer button {
  min-width: 126px;
  height: 38px;
  padding: 0 14px;
  color: #061214;
  background: linear-gradient(100deg, #2bc9e5, #29e4ba);
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.tool-product-picker-dialog > footer button:disabled {
  color: rgba(255, 255, 255, 0.34);
  background: #303136;
  cursor: not-allowed;
}

@media (max-width: 1280px) {
  .product-library-page {
    left: 92px;
  }

  .product-library-page.is-detail-view .product-library-content {
    transform: translateX(-46px);
  }

  .product-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 246px));
  }

  .product-creation-grid {
    grid-template-columns: repeat(auto-fill, minmax(214px, 250px));
  }

  .product-library-content:has(.product-library-empty) .product-library-view {
    transform: translate(-46px, -87px);
  }
}

@media (max-width: 900px) {
  .product-library-header {
    align-items: flex-start;
    min-height: 0;
    padding: 40px 24px 12px;
    flex-direction: column;
  }

  .product-library-content {
    width: calc(100% - 40px);
    padding-top: 24px;
  }

  .product-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 238px));
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-detail-view {
    max-width: 620px;
  }

  .product-detail-gallery {
    width: min(100%, 500px);
    margin: 0 auto;
  }

  .product-detail-copy {
    aspect-ratio: auto;
    padding: 20px;
  }

  .product-creation-grid {
    grid-template-columns: repeat(auto-fill, minmax(204px, 242px));
  }
}

@media (max-width: 720px) {
  .product-library-page {
    left: 0;
  }

  .product-library-page.is-detail-view .product-library-content {
    transform: none;
  }

  .product-knowledge-facts {
    grid-template-columns: 1fr;
  }

  .product-knowledge-review-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .product-library-header h1 {
    font-size: 25px;
  }

  .product-library-header p {
    font-size: 13px;
  }

  .product-library-content {
    width: calc(100% - 28px);
  }

  .product-library-content:has(.product-library-empty) {
    min-height: calc(100dvh - 150px);
  }

  .product-library-content:has(.product-library-empty) .product-library-view {
    transform: translateY(-93px);
  }

  .product-card-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-view {
    max-width: 440px;
  }

  .product-detail-gallery {
    width: min(100%, 400px);
  }

  .product-detail-copy {
    padding: 17px;
    border-radius: 14px;
  }

  .product-creation-archive {
    margin-top: 38px;
    padding-top: 26px;
  }

  .product-creation-archive-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-creation-grid {
    grid-template-columns: 1fr;
  }

  .product-creation-tool-menu {
    grid-template-columns: 1fr;
  }

  .product-creation-tool-menu button {
    min-height: 58px;
  }

  .product-creation-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .product-creation-cover {
    height: 100%;
    min-height: 132px;
    aspect-ratio: auto;
  }

  .product-card {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
  }

  .product-create-card {
    min-height: 118px;
    padding: 16px;
  }

  .product-card-cover {
    aspect-ratio: 1 / 1;
  }

  .product-card-body {
    min-height: 118px;
    align-items: center;
  }

  .product-editor-modal {
    padding: 0;
  }

  .product-editor-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .product-editor-header,
  .product-editor-footer,
  .product-editor-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-main-upload {
    width: 112px;
    height: 112px;
    min-height: 0;
  }

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

  .tool-product-picker {
    padding: 0;
  }

  .tool-product-picker-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .tool-product-picker-dialog > header > div {
    display: grid;
    gap: 3px;
  }

  .tool-product-picker-dialog > header span {
    padding: 0;
    background: transparent;
  }

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

  .tool-product-picker-images {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Reverse prompt workflow */
body.reverse-workflow-open {
  overflow: hidden;
}

/* The workbench starts directly below the 70px topbar. While it is open,
   stop painting the homepage canvas so its animated model underline cannot
   leak through during scroll/compositor updates. */
body.reverse-workflow-open:has(.koozee-home) .koozee-topbar {
  z-index: 65;
  background: #08090a !important;
}

body.reverse-workflow-open:has(.koozee-home) .koozee-content > :not(.reverse-workflow) {
  visibility: hidden;
  pointer-events: none;
}

/* The workflow owns the canvas after the compact global icon rail, not after
   the full home-sidebar logo width. Keep both rails visible and adjacent. */
body.reverse-workflow-open:has(.koozee-home) .koozee-sidebar {
  --koozee-rail-width: 72px;
  width: 72px;
  z-index: 70;
  overflow: visible;
  background: #08090a;
}

body.reverse-workflow-open:has(.koozee-home) .koozee-rail,
body.reverse-workflow-open:has(.koozee-home) .koozee-rail-bottom {
  width: 72px;
  box-sizing: border-box;
}

body.reverse-workflow-open:has(.koozee-home) .koozee-brand {
  width: 164px;
}

/* Public course opens inside the existing home workbench. */
body.course-event-open {
  overflow: hidden;
}

body.course-event-open:has(.koozee-home) .koozee-sidebar {
  z-index: 180;
}

body.course-event-open:has(.koozee-home) .koozee-content,
body.course-event-open:has(.koozee-home) .koozee-topbar {
  visibility: hidden;
  pointer-events: none;
}

body.course-event-open .course-page {
  position: fixed;
  inset: 0 0 0 164px;
  z-index: 170;
  min-height: 0;
  padding: 34px max(24px, calc((100vw - 1320px) / 2)) 60px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f3f4f6;
}

/* Course is a native dark workbench module, not a light marketing page. */
body.course-event-open .course-page {
  color: #f3f5f7;
  background: #08090a;
}

body.course-event-open .course-context-bar {
  min-height: 70px;
  margin-bottom: 0;
  color: rgba(235, 239, 242, 0.42);
  background: rgba(8, 9, 10, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.055);
}

body.course-event-open .course-context-bar a {
  display: none;
}

body.course-event-open .course-context-bar > span {
  display: none;
}

body.course-event-open .course-context-bar strong {
  color: #f7f8f9;
  font-size: 16px;
  font-weight: 720;
}

body.course-event-open .course-context-bar strong::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 10px;
  background: #2bd1e8;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(43, 209, 232, 0.5);
  content: "";
}

body.course-event-open .course-context-bar em {
  margin-left: 12px;
  padding: 5px 9px;
  color: rgba(235, 239, 242, 0.56);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.075);
}

body.course-event-open .course-embed-close {
  margin-left: auto;
  color: rgba(235, 239, 242, 0.68);
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.08);
}

body.course-event-open .course-embed-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

body.course-event-open .course-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  width: min(1360px, 100%);
  margin: 0 auto;
  padding-top: clamp(36px, 5vw, 72px);
  align-items: stretch;
}

body.course-event-open .course-hero-copy,
body.course-event-open .course-poster,
body.course-event-open .course-signup-card,
body.course-event-open .course-points article {
  border-color: rgba(255, 255, 255, 0.075);
  box-shadow: none;
}

body.course-event-open .course-hero-copy {
  min-height: 0;
  padding: 12px clamp(10px, 2vw, 28px) 24px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.course-event-open .course-eyebrow,
body.course-event-open .course-signup-card > div > span,
body.course-event-open .course-points article span {
  color: #2bd1e8;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

body.course-event-open .course-hero h1 {
  max-width: 800px;
  margin-top: 14px;
  color: #f7f8f9;
  font-size: clamp(38px, 4.4vw, 62px);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

body.course-event-open .course-hero-copy > p {
  max-width: 680px;
  margin-top: 20px;
  color: rgba(235, 239, 242, 0.56);
  font-size: 17px;
  font-weight: 450;
  line-height: 1.7;
}

body.course-event-open .course-hero-cards {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.64fr);
  gap: 10px;
  max-width: 780px;
  margin-top: 30px;
}

body.course-event-open .course-meta,
body.course-event-open .course-benefit-card {
  min-height: 94px;
  padding: 17px 18px;
  background: #0f1113;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 12px;
  box-shadow: none;
}

body.course-event-open .course-meta strong,
body.course-event-open .course-benefit-card strong {
  color: #f4f6f7;
  font-size: 18px;
  font-weight: 680;
}

body.course-event-open .course-meta span,
body.course-event-open .course-benefit-card span,
body.course-event-open .course-benefit-card small {
  color: rgba(235, 239, 242, 0.46);
  font-weight: 520;
}

body.course-event-open .course-benefit-card::after {
  display: none;
}

body.course-event-open .course-poster {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.course-event-open .course-poster-frame {
  padding: 0;
  border: 0;
}

body.course-event-open .teacher-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  height: auto;
  min-height: 218px;
  padding: 18px;
  background: #0f1113;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
}

body.course-event-open .course-poster {
  align-self: start;
}

body.course-event-open .teacher-photo {
  width: 112px;
  height: 146px;
  min-height: 0;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
}

body.course-event-open .teacher-profile {
  padding: 0;
}

body.course-event-open .teacher-profile > span {
  color: #2bd1e8;
}

body.course-event-open .teacher-profile strong {
  margin-top: 6px;
  color: #f7f8f9;
  font-size: 30px;
  font-weight: 680;
}

body.course-event-open .teacher-profile p {
  margin-top: 12px;
  color: rgba(235, 239, 242, 0.5);
  font-size: 13px;
  font-weight: 450;
}

body.course-event-open .course-content {
  grid-template-columns: minmax(0, 1fr) 410px;
  gap: 18px;
  width: min(1360px, 100%);
  margin: 26px auto 0;
}

body.course-event-open .course-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.course-event-open .course-points article {
  min-height: 132px;
  padding: 21px;
  background: #0c0e10;
  border-radius: 12px;
}

body.course-event-open .course-points article strong {
  margin-top: 14px;
  color: #f2f4f6;
  font-size: 18px;
  font-weight: 650;
}

body.course-event-open .course-points article p {
  margin-top: 8px;
  color: rgba(235, 239, 242, 0.44);
  font-size: 13px;
  font-weight: 450;
}

body.course-event-open .course-signup-card {
  gap: 14px;
  padding: 24px;
  background: #0f1113;
  border-radius: 14px;
}

body.course-event-open .course-signup-card h2 {
  color: #f7f8f9;
  font-size: 24px;
  font-weight: 650;
}

body.course-event-open .course-signup-card > div > p {
  color: rgba(235, 239, 242, 0.46);
  font-weight: 450;
}

body.course-event-open .course-signup-card label {
  color: rgba(244, 246, 247, 0.72);
  font-size: 13px;
}

body.course-event-open .course-signup-card input,
body.course-event-open .course-signup-card textarea {
  color: #f3f5f7;
  background: #090b0c;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
}

body.course-event-open .course-signup-card input::placeholder,
body.course-event-open .course-signup-card textarea::placeholder {
  color: rgba(235, 239, 242, 0.28);
}

body.course-event-open .course-signup-card input:focus,
body.course-event-open .course-signup-card textarea:focus {
  background: #090b0c;
  border-color: rgba(43, 209, 232, 0.65);
  box-shadow: 0 0 0 3px rgba(43, 209, 232, 0.1);
}

body.course-event-open .course-signup-card button {
  height: 54px;
  color: #041316;
  background: #2bd1e8;
  border: 0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 760;
  box-shadow: 0 12px 30px rgba(43, 209, 232, 0.14);
}

body.course-event-open .course-signup-card button:hover {
  background: #57dff0;
  box-shadow: 0 12px 30px rgba(43, 209, 232, 0.2);
}

body.course-event-open .course-meeting-card {
  color: #f3f5f7;
  background: #090b0c;
  border-color: rgba(255, 255, 255, 0.085);
}

body.course-event-open .course-meeting-card a {
  color: #2bd1e8;
}

body.course-event-open .course-context-bar {
  position: sticky;
  top: -34px;
  z-index: 5;
  min-height: 58px;
  margin: -34px calc(-1 * max(24px, calc((100vw - 1320px) / 2))) 22px;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  background: rgba(243, 244, 246, 0.94);
  border-bottom: 1px solid #e2e4e7;
  backdrop-filter: blur(14px);
}

.course-embed-close {
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: 4px;
  color: #60636a;
  background: #fff;
  border: 1px solid #dedfe3;
  border-radius: 10px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

body.course-event-open .course-embed-close {
  display: grid;
}

body.course-event-open .course-hero {
  grid-template-columns: minmax(0, 1.14fr) minmax(320px, 0.62fr);
}

body.course-event-open .course-hero-copy {
  min-height: 390px;
}

body.course-event-open .course-poster {
  min-height: 390px;
}

body.course-event-open .teacher-photo {
  height: 220px;
}

body.course-event-open .course-content {
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.66fr);
}

@media (max-width: 1280px) {
  body.course-event-open .course-page {
    left: 92px;
  }
}

@media (max-width: 980px) {
  body.course-event-open .course-hero,
  body.course-event-open .course-content {
    grid-template-columns: 1fr;
  }

  body.course-event-open .course-poster {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  body.course-event-open .course-page {
    inset: 0;
    z-index: 220;
    padding: 22px 14px 38px;
  }

  body.course-event-open .course-context-bar {
    top: -22px;
    margin: -22px -14px 14px;
    padding: 0 14px;
  }

  body.course-event-open .course-context-bar a,
  body.course-event-open .course-context-bar > span {
    display: none;
  }

  body.course-event-open .course-context-bar em {
    margin-left: auto;
  }
}

/* Final embedded-course layout overrides. */
body.course-event-open .course-context-bar {
  min-height: 70px;
  margin: -34px calc(-1 * max(24px, calc((100vw - 1320px) / 2))) 0;
  color: rgba(235, 239, 242, 0.42);
  background: rgba(8, 9, 10, 0.94);
  border-bottom-color: rgba(255, 255, 255, 0.055);
}

body.course-event-open .course-hero {
  grid-template-columns: minmax(0, 1fr) 340px;
}

body.course-event-open .course-hero-copy,
body.course-event-open .course-poster {
  min-height: 0;
}

body.course-event-open .teacher-photo {
  height: 146px;
}

body.course-event-open .course-content {
  grid-template-columns: minmax(0, 1fr) 410px;
}

@media (max-width: 980px) {
  body.course-event-open .course-hero,
  body.course-event-open .course-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.course-event-open .course-context-bar {
    margin: -22px -14px 0;
  }
}

/* Simplified native course view: three clear information layers. */
body.course-event-open .course-page {
  padding-top: 0;
}

body.course-event-open .course-context-bar,
body.course-event-open .course-embed-close {
  display: none !important;
}

body.course-event-open .course-hero {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(36px, 5vw, 78px);
  padding-top: clamp(58px, 7vh, 84px);
}

body.course-event-open .course-hero-copy {
  padding: 0;
}

body.course-event-open .course-hero h1 {
  max-width: 680px;
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.04;
}

body.course-event-open .course-hero-copy > p {
  max-width: 620px;
  margin-top: 18px;
  font-size: 16px;
}

body.course-event-open .course-hero-cards {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 760px;
  margin-top: 30px;
  padding: 17px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

body.course-event-open .course-meta,
body.course-event-open .course-benefit-card {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body.course-event-open .course-meta {
  flex: 1 1 auto;
}

body.course-event-open .course-benefit-card {
  flex: 0 0 230px;
  margin-left: 28px;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

body.course-event-open .course-meta strong,
body.course-event-open .course-benefit-card strong {
  font-size: 17px;
}

body.course-event-open .teacher-card {
  grid-template-columns: 94px minmax(0, 1fr);
  gap: 15px;
  min-height: 0;
  padding: 15px;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.075);
}

body.course-event-open .teacher-photo {
  width: 94px;
  height: 122px;
}

body.course-event-open .teacher-profile strong {
  font-size: 26px;
}

body.course-event-open .teacher-profile p {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
}

body.course-event-open .course-content {
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(28px, 4vw, 64px);
  margin-top: 48px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

body.course-event-open .course-points {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 34px;
}

body.course-event-open .course-points article {
  min-height: 0;
  padding: 20px 0 22px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 0;
}

body.course-event-open .course-points article strong {
  display: inline-block;
  margin: 0 0 0 14px;
  font-size: 17px;
}

body.course-event-open .course-points article p {
  margin: 9px 0 0 35px;
}

body.course-event-open .course-signup-card {
  align-self: start;
  padding: 0 0 0 30px;
  background: transparent;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
}

body.course-event-open .course-signup-card h2 {
  font-size: 23px;
}

body.course-event-open .course-signup-card textarea {
  min-height: 76px;
}

body.course-event-open .course-signup-card button {
  height: 50px;
}

body.course-event-open .course-meeting-card {
  padding: 15px;
}

@media (max-width: 980px) {
  body.course-event-open .course-hero,
  body.course-event-open .course-content {
    grid-template-columns: 1fr;
  }

  body.course-event-open .course-poster {
    width: min(440px, 100%);
  }

  body.course-event-open .course-signup-card {
    padding: 26px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 0;
  }
}

@media (max-width: 680px) {
  body.course-event-open .course-page {
    padding-top: 0;
  }

  body.course-event-open .course-hero {
    padding-top: 34px;
  }

  body.course-event-open .course-hero-cards {
    display: grid;
    gap: 16px;
  }

  body.course-event-open .course-benefit-card {
    margin-left: 0;
    padding: 16px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
    border-left: 0;
  }

  body.course-event-open .course-points {
    grid-template-columns: 1fr;
  }
}

/* Focused two-column course composition. */
body.course-event-open .course-page {
  display: grid;
  align-items: center;
  padding: 54px clamp(32px, 6vw, 100px);
}

.course-focus-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: clamp(64px, 8vw, 132px);
  align-items: stretch;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.course-account-bar {
  position: fixed;
  top: 0;
  right: 0;
  left: 164px;
  z-index: 181;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 70px;
  padding: 0 24px 0 0;
  pointer-events: none;
}

.course-account-bar .koozee-login-entry {
  height: 100%;
  pointer-events: auto;
}

.course-account-bar .koozee-session-strip {
  padding: 0;
}

.course-account-bar .koozee-login-tip {
  right: 0;
  left: auto;
}

.course-focus-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.course-focus-eyebrow {
  color: #2bd1e8;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.course-focus-copy h1 {
  max-width: none;
  margin-top: 16px;
  color: #f7f8f9;
  font-size: clamp(40px, 3.7vw, 54px);
  font-weight: 670;
  letter-spacing: -0.04em;
  line-height: 1.08;
  white-space: nowrap;
}

.course-focus-intro {
  max-width: 600px;
  margin-top: 20px;
  color: rgba(235, 239, 242, 0.52);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.7;
}

.course-focus-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr);
  gap: 28px;
  margin-top: 36px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.course-focus-meta div {
  display: grid;
  gap: 7px;
}

.course-focus-meta span,
.course-teacher-inline span {
  color: rgba(235, 239, 242, 0.4);
  font-size: 12px;
  font-weight: 600;
}

.course-focus-meta strong {
  color: #f3f5f7;
  font-size: 17px;
  font-weight: 650;
}

.course-flow-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  color: rgba(235, 239, 242, 0.62);
  font-size: 13px;
  font-weight: 560;
}

.course-flow-line span {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.course-flow-line span:not(:last-child)::after {
  color: rgba(43, 209, 232, 0.5);
  content: "→";
}

.course-teacher-inline {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-top: auto;
  padding-top: 30px;
}

.course-teacher-inline img {
  width: 58px;
  height: 68px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 9px;
}

.course-teacher-inline div {
  min-width: 0;
}

.course-teacher-inline strong {
  display: inline-block;
  margin-left: 8px;
  color: #f3f5f7;
  font-size: 17px;
  font-weight: 650;
}

.course-teacher-inline p {
  margin-top: 7px;
  color: rgba(235, 239, 242, 0.42);
  font-size: 12px;
  line-height: 1.55;
}

body.course-event-open .course-focus-shell .course-signup-card {
  height: 100%;
  gap: 15px;
  padding: 30px;
  background: #0e1012;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
}

body.course-event-open .course-focus-shell .course-signup-card h2 {
  margin-top: 8px;
  font-size: 24px;
}

body.course-event-open .course-focus-shell .course-signup-card > div > p {
  max-width: 310px;
  margin-top: 9px;
  line-height: 1.6;
}

body.course-event-open .course-focus-shell .course-signup-card textarea {
  min-height: 76px;
}

body.course-event-open .course-focus-shell .course-signup-card button {
  margin-top: 2px;
}

body.course-event-open .course-focus-shell .course-signup-card > label[hidden],
body.course-event-open .course-focus-shell .course-signup-card > div[hidden] {
  display: none !important;
}

body.course-event-open .course-focus-shell .course-signup-card.is-complete {
  display: flex;
  align-items: stretch;
  min-height: 0;
  padding: 32px;
  background: #0e1012;
  border: 1px solid rgba(255, 255, 255, 0.075);
}

body.course-event-open .course-focus-shell .course-signup-card.is-complete .course-meeting-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

body.course-event-open .course-focus-shell .course-signup-card.is-complete .course-meeting-card > span {
  color: #2bd1e8;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

body.course-event-open .course-focus-shell .course-signup-card.is-complete .course-meeting-card h2 {
  margin: 16px 0 0;
  color: #f5f7f8;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

body.course-event-open .course-focus-shell .course-signup-card.is-complete .course-meeting-card > p {
  margin: 14px 0 0;
  color: rgba(235, 239, 242, 0.5);
  font-size: 13px;
  line-height: 1.7;
}

body.course-event-open .course-focus-shell .course-signup-card.is-complete .course-meeting-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 24px;
  padding: 0 20px;
  color: #071014;
  background: #31c9df;
  border-radius: 9px;
  font-size: 16px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

.course-meeting-reward-note {
  display: grid;
  gap: 5px;
  margin-top: auto;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
}

.course-meeting-reward-note strong {
  color: rgba(245, 247, 248, 0.88);
  font-size: 14px;
}

.course-meeting-reward-note p {
  margin: 0;
  color: rgba(235, 239, 242, 0.45);
  font-size: 12px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  body.course-event-open .course-page {
    align-items: start;
    padding: 38px 26px 54px;
  }

  .course-focus-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    width: min(680px, 100%);
  }

  .course-focus-copy h1 {
    white-space: normal;
  }

  .course-account-bar {
    left: 92px;
  }
}

@media (max-width: 720px) {
  .course-account-bar {
    left: 0;
    height: 64px;
    padding: 0 12px;
  }
}

@media (max-width: 680px) {
  body.course-event-open .course-page {
    display: block;
    padding: 32px 20px 44px;
  }

  .course-focus-copy h1 {
    font-size: 40px;
  }

  .course-focus-meta {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .course-flow-line {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .course-flow-line span::after {
    display: none;
  }

  body.course-event-open .course-focus-shell .course-signup-card {
    padding: 24px;
  }
}

.course-activation-modal[hidden] {
  display: none;
}

.course-activation-modal {
  position: fixed;
  inset: 0;
  z-index: 6200;
  display: grid;
  place-items: center;
  padding: 24px;
}

.course-activation-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.68);
  border: 0;
  border-radius: 0;
  backdrop-filter: blur(6px);
}

.course-activation-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
  width: min(520px, 100%);
  padding: 16px;
  color: #f3f5f7;
  background: #111315;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.course-activation-dialog input {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  color: #f5f7f8;
  background: #0b0d0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  outline: 0;
}

.course-activation-dialog > button {
  height: 52px;
  color: #041316;
  background: #2bd1e8;
  border: 0;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 760;
}

.course-activation-dialog > button:hover:not(:disabled) {
  background: #57dff0;
}

.course-activation-dialog > button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.course-activation-dialog input:focus {
  background: #0d0f11;
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: none;
}

.course-activation-dialog input::placeholder {
  color: rgba(235, 239, 242, 0.28);
}

.course-activation-message {
  grid-column: 1 / -1;
  padding: 11px 13px;
  border-radius: 9px;
  font-size: 13px !important;
  font-weight: 650;
}

.course-activation-message[data-tone="danger"] {
  color: #ff9e8e;
  background: rgba(255, 91, 70, 0.1);
}

.course-activation-message[data-tone="success"] {
  color: #6ce5b0;
  background: rgba(53, 207, 139, 0.1);
}

@media (max-width: 520px) {
  .course-activation-dialog {
    grid-template-columns: 1fr;
  }
}

.reverse-workflow[hidden] {
  display: none !important;
}

.reverse-workflow {
  position: fixed;
  inset: 70px 0 10px 72px;
  z-index: 60;
  display: grid;
  grid-template-columns: 72px minmax(350px, 360px) 92px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #f4f5f6;
  background: #101114;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.22),
    inset 1px 0 0 rgba(255, 255, 255, 0.014);
  font-family: Inter, "SF Pro Display", "PingFang SC", sans-serif;
  transition: grid-template-columns 180ms ease;
}

.reverse-workflow button,
.reverse-workflow textarea {
  font: inherit;
  letter-spacing: 0;
}

.reverse-workflow-nav {
  position: relative;
  z-index: 2;
  padding: 7px 5px 16px;
  overflow-y: auto;
  pointer-events: auto;
  background: #191a1e;
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.18);
}

.reverse-workflow-nav > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.reverse-workflow-nav .reverse-tool-tab {
  display: grid;
  grid-template-rows: auto auto;
  align-content: center;
  justify-items: center;
  gap: 4px;
  width: 100%;
  min-height: 72px;
  margin-bottom: 7px;
  padding: 5px 3px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.reverse-workflow-nav svg {
  box-sizing: content-box;
  width: 20px;
  height: 20px;
  padding: 9px 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  border-radius: 7px;
  transition: color 140ms ease, background-color 140ms ease, transform 100ms ease;
}

.reverse-workflow-nav .reverse-prompt-tool-icon,
.reverse-workflow-nav .detail-image-tool-icon {
  box-sizing: border-box;
  width: 40px;
  height: 36px;
  padding: 5px 6px;
  stroke-width: 1.65;
  border-radius: 10px;
}

.reverse-workflow-nav .reverse-prompt-tool-icon {
  grid-row: 1;
  grid-column: 1;
  object-fit: contain;
  background: transparent;
  filter: none;
  transition: opacity 140ms ease, background-color 140ms ease, transform 100ms ease;
}

.reverse-workflow-nav .reverse-prompt-tool-icon--outline {
  opacity: 1;
}

.reverse-workflow-nav .reverse-prompt-tool-icon--fill {
  opacity: 0;
}

.reverse-workflow-nav .reverse-prompt-tool-icon--hover {
  opacity: 0;
}

.reverse-workflow-nav .reverse-prompt-tool-icon {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reverse-workflow-nav .reverse-prompt-tool-spark {
  fill: currentColor;
  stroke: none;
}

.reverse-workflow-nav .detail-image-tool-icon {
  grid-row: 1;
  grid-column: 1;
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
  transition: opacity 140ms ease, background-color 140ms ease, transform 100ms ease;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.reverse-workflow-nav .detail-image-tool-icon--outline {
  opacity: 1;
}

.reverse-workflow-nav .detail-image-tool-icon--hover,
.reverse-workflow-nav .detail-image-tool-icon--fill {
  opacity: 0;
}

.reverse-workflow-nav .detail-image-tool-spark {
  fill: currentColor;
  stroke: none;
}

.reverse-workflow-nav span {
  font-size: 11px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.12px;
  text-align: center;
}

.reverse-workflow-nav .reverse-tool-tab:hover {
  color: #f7f7f8;
  background: transparent;
}

.reverse-workflow-nav .reverse-tool-tab:hover svg {
  color: #f7f7f8;
  background: #393a3f;
}

.reverse-workflow-nav .reverse-tool-tab:hover .reverse-prompt-tool-icon--outline {
  opacity: 0;
}

.reverse-workflow-nav > input:not(:checked) + .reverse-tool-tab:hover .reverse-prompt-tool-icon--hover {
  opacity: 1;
  background: #393a3f;
}

.reverse-workflow-nav .reverse-tool-tab:hover .detail-image-tool-icon--outline {
  opacity: 0;
}

.reverse-workflow-nav > input:not(:checked) + .reverse-tool-tab:hover .detail-image-tool-icon--hover {
  opacity: 1;
  background: #393a3f;
}

.reverse-workflow-nav .reverse-tool-tab:active svg {
  background: #414247;
  transform: scale(0.96);
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab {
  color: #f7f7f8;
  background: transparent;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab svg {
  color: #061215;
  background: #31cee5;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab .reverse-prompt-tool-icon--outline {
  opacity: 0;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab .reverse-prompt-tool-icon--fill {
  opacity: 1;
  background: #31cee5;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab .detail-image-tool-icon--outline {
  opacity: 0;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab .detail-image-tool-icon--fill {
  opacity: 1;
  background: #31cee5;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab:hover svg {
  color: #061215;
  background: #31cee5;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab:hover .reverse-prompt-tool-icon--fill {
  background: #31cee5;
}

.reverse-workflow-nav > input:checked + .reverse-tool-tab:hover .detail-image-tool-icon--fill {
  background: #31cee5;
}

.reverse-workflow:has(#reversePromptToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="reverse-prompt"]),
.reverse-workflow:has(#detailImageToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="detail-image"]),
.reverse-workflow:has(#videoUpscaleToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="video-upscale"]),
.reverse-workflow:has(#videoSubtitleRemoveToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="video-subtitle-remove"]),
.reverse-workflow:has(#hySpeechToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="hy-speech"]),
.reverse-workflow:has(#hyImageToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="hy-image"]),
.reverse-workflow:has(#hyMattingToolTab:checked) [data-reverse-panel]:not([data-reverse-panel="hy-matting"]) {
  display: none;
}

.detail-image-workbench {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #1b1c20;
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 0 18px 18px 0;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.012);
}

.detail-image-header {
  display: flex;
  align-items: center;
  min-height: 60px;
  padding: 9px 16px 7px;
}

.detail-image-header h2 {
  margin: 0;
  color: #f5f6f7;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.detail-image-title {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.detail-model-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 2px 8px 2px 6px;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.055);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 560;
  white-space: nowrap;
}

.detail-model-badge svg {
  width: 15px;
  height: 15px;
  color: #31cee5;
  fill: currentColor;
  stroke: none;
}

.detail-image-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 16px 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.detail-image-step {
  position: relative;
}

.detail-image-step + .detail-image-step { margin-top: 10px; }

.detail-image-step:not(:last-child)::after {
  display: none;
}

.detail-image-step > header {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: rgba(255, 255, 255, 0.76);
}

.detail-image-step > header b {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.86);
  background: #2a2b2f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 570;
}

.detail-image-step > header strong {
  color: rgba(255, 255, 255, 0.77);
  font-size: 14px;
  font-weight: 620;
}

.detail-image-step-body {
  position: relative;
  margin-left: 14px;
  padding: 10px 0 16px 14px;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
}

.detail-image-upload {
  position: relative;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 10px;
  cursor: pointer;
}

.detail-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 104px);
  justify-content: center;
  gap: 14px;
}

.detail-product-upload-head,
.detail-optional-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 620;
}

.detail-product-upload-head small,
.detail-optional-upload-head small {
  color: rgba(255, 255, 255, 0.3);
  font-size: 10px;
  font-weight: 500;
}

.detail-product-slots {
  display: grid;
  grid-template-columns: repeat(3, 104px);
  justify-content: center;
  gap: 12px;
}

.detail-product-slot {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
}

.detail-product-slot > label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 9px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 9px;
  cursor: pointer;
}

.detail-product-slot > label > span {
  font-size: 26px;
  font-weight: 220;
  line-height: 1;
}

.detail-product-slot > label > strong {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
}

.detail-product-slot > label:hover {
  color: #2bd4e8;
  background: #292a2e;
  border-color: rgba(49, 206, 229, 0.25);
}

.detail-product-slot > button {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: none;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
}

.detail-product-slot.has-image > button { display: grid; }
.detail-product-slot.has-image:hover > button { background: rgba(0, 0, 0, 0.78); }

.detail-product-slot .detail-upload-cover { z-index: 1; }

.detail-product-slot.has-image > label > span,
.detail-product-slot.has-image > label > strong { opacity: 0; }

.detail-product-slot[data-detail-product-slot="0"].has-image::after {
  content: "主参考";
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 2;
  padding: 3px 5px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.62);
  border-radius: 4px;
  font-size: 9px;
  pointer-events: none;
}

.detail-optional-upload-head { margin-top: 14px; }

.detail-optional-upload-grid {
  grid-template-columns: repeat(2, 94px);
}

.detail-upload-grid.detail-optional-upload-grid .detail-image-upload {
  width: 94px;
  height: 94px;
}

.detail-upload-grid .detail-image-upload {
  width: 104px;
  height: 104px;
  margin: 0;
}

.detail-upload-grid .detail-image-upload-primary {
  grid-column: auto;
  height: 104px;
  color: rgba(255, 255, 255, 0.74);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.detail-image-upload strong {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 25px;
  color: currentColor;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.detail-image-upload strong em {
  position: absolute;
  top: -58px;
  right: -1px;
  margin: 0;
  padding: 2px 4px;
  color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
}

.detail-upload-previews {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.detail-upload-previews[hidden] { display: none; }

.detail-upload-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  overflow: hidden;
  background: #141518;
  border-radius: inherit;
  pointer-events: none;
}

.detail-upload-cover.count-2,
.detail-upload-cover.count-3 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
}

.detail-upload-cover.count-3 img:first-child { grid-row: span 2; }

.detail-upload-cover img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.detail-image-upload.has-image > span,
.detail-image-upload.has-image > strong { opacity: 0; }

.detail-image-upload.has-image > small {
  z-index: 2;
  padding: 3px 5px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.62);
  border-radius: 4px;
}

.detail-image-upload.has-image:hover .detail-upload-cover { opacity: 0.82; }

.detail-upload-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: #101113;
  border-radius: 7px;
}

.detail-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-upload-preview span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  padding: 2px 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 3px;
  font-size: 8px;
}

.detail-image-upload:hover {
  color: #2bd4e8;
  background: #292a2e;
  border-color: rgba(49, 206, 229, 0.3);
}

.detail-image-upload > span {
  position: absolute;
  top: 22px;
  left: 50%;
  font-size: 30px;
  font-weight: 220;
  line-height: 1;
  transform: translateX(-50%);
}

.detail-image-upload small {
  position: absolute;
  right: 8px;
  bottom: 7px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

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

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

.detail-field-grid label,
.detail-note-field {
  display: grid;
  gap: 8px;
}

.detail-field-grid .detail-field-wide { grid-column: auto; }

.detail-field-grid label > span,
.detail-choice-block > span,
.detail-note-field > span,
.detail-module-head > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 620;
}

.detail-custom-select {
  position: relative;
  min-width: 0;
}

.detail-custom-select > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.9);
  background: #26272b;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.detail-custom-select > button i {
  width: 8px;
  height: 8px;
  margin: -4px 2px 0 12px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.58);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.58);
  transform: rotate(45deg);
  transition: transform 150ms ease;
}

.detail-custom-select.open > button {
  border-color: #31cee5;
  box-shadow: 0 0 0 2px rgba(49, 206, 229, 0.09);
}

.detail-custom-select.open > button i {
  margin-top: 4px;
  transform: rotate(225deg);
}

.detail-custom-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding: 6px;
  background: #2b2c30;
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

.detail-custom-select.open .detail-custom-menu { display: grid; }

.detail-custom-menu button {
  min-height: 36px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.detail-custom-menu button:hover,
.detail-custom-menu button.active {
  color: #2bd4e8;
  background: rgba(49, 206, 229, 0.08);
}

.detail-choice-block {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

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

.detail-choice-language {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin-top: 14px;
}

.detail-choice-language > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 620;
}

.detail-choice-row,
.detail-ratio-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-choice-row button,
.detail-ratio-row button,
.detail-module-grid button,
.detail-ratio-grid button {
  min-height: 46px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.68);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}

.detail-choice-row button.active,
.detail-ratio-row button.active,
.detail-module-grid button.active,
.detail-ratio-grid button.active {
  color: #24d8ef;
  background: #20282d;
  border-color: rgba(49, 206, 229, 0.08);
  font-weight: 620;
}

.detail-choice-row,
.detail-ratio-row {
  height: 40px;
  padding: 3px;
  gap: 3px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 8px;
}

.detail-choice-row button,
.detail-ratio-row button {
  min-height: 0;
  height: 100%;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 560;
}

.detail-choice-row button:hover,
.detail-ratio-row button:hover {
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.035);
}

.detail-choice-row button.active,
.detail-ratio-row button.active {
  color: #17181b;
  background: #f1f2f3;
  border-color: transparent;
  font-weight: 620;
}

.detail-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
}

.detail-module-head button {
  padding: 4px 8px;
  color: #31cee5;
  background: transparent;
  border: 0;
  font-size: 12px;
  cursor: pointer;
}

.detail-module-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 8px;
}

.detail-module-grid button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-height: 38px;
  padding: 0 6px;
  color: rgba(255, 255, 255, 0.64);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
  text-align: left;
}

.detail-module-grid button::before {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  color: #071315;
  background: #26272b;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.detail-module-grid button:hover {
  color: rgba(255, 255, 255, 0.84);
  background: rgba(255, 255, 255, 0.025);
}

.detail-module-grid button.active {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.025);
  border-color: transparent;
  font-weight: 580;
}

.detail-module-grid button.active::before {
  content: "✓";
  background: #31cee5;
  border-color: #31cee5;
}

.detail-note-field {
  position: relative;
}

.detail-note-input {
  position: relative;
  overflow: hidden;
  background: #101113;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.detail-note-input:focus-within {
  border-color: rgba(49, 206, 229, 0.34);
  box-shadow: 0 0 0 2px rgba(49, 206, 229, 0.055);
}

.detail-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px 0;
}

.detail-note-tags[hidden] {
  display: none;
}

.detail-note-tags .product-tag-chip {
  min-height: 24px;
  padding: 2px 7px;
  font-size: 10px;
}

.detail-note-input textarea {
  display: block;
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px 13px 28px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 12px;
  line-height: 1.6;
}

.detail-note-tags:not([hidden]) + textarea {
  min-height: 82px;
  padding-top: 8px;
}

.detail-note-input > small {
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.28);
  font-size: 10px;
}

.detail-note-input > small b { font-weight: 500; }

.detail-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.detail-ratio-select-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

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

.detail-ratio-select-pair > label {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.detail-ratio-select-pair > label > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 620;
}

.detail-ratio-select-pair > label[hidden] {
  display: none;
}

.detail-hero-ratio-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.detail-hero-ratio-field > span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 620;
}

.detail-ratio-select > button {
  justify-content: flex-start;
  padding: 3px 12px;
  background: #111216;
  border-color: rgba(255, 255, 255, 0.035);
}

.detail-ratio-select > button svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.detail-ratio-select > button span {
  margin-left: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 620;
}

.detail-ratio-select > button i { margin-left: auto; }

.detail-ratio-menu { min-width: 100%; }

.detail-ratio-menu-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
}

.detail-ratio-menu-grid button { text-align: center; }

.detail-image-message {
  margin: 12px 0 0;
  padding: 9px 10px;
  color: #ffafb3;
  background: rgba(255, 91, 99, 0.08);
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.5;
}

.detail-image-message[data-tone="status"] {
  color: #91e9f2;
  background: rgba(49, 212, 232, 0.08);
}

.detail-image-setting-row button,
.detail-image-ratio {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.9);
  background: #26272b;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
}

.detail-image-setting-row i,
.detail-image-ratio i {
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(255, 255, 255, 0.46);
  border-bottom: 2px solid rgba(255, 255, 255, 0.46);
  transform: rotate(45deg) translateY(-2px);
}

.detail-image-copy-box {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 132px;
  margin-top: 9px;
  padding: 14px 13px 42px;
  color: rgba(255, 255, 255, 0.34);
  background: #101113;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 7px;
}

.detail-image-copy-box strong {
  font-size: 12px;
  font-weight: 600;
}

.detail-image-copy-box > span {
  font-size: 12px;
}

.detail-image-copy-box small {
  position: absolute;
  right: 10px;
  bottom: 9px;
  padding: 7px 10px;
  color: rgba(49, 206, 229, 0.68);
  background: #17191b;
  border-radius: 8px;
  font-size: 12px;
}

.detail-image-ratio {
  width: 100%;
  margin-top: 9px;
}

.detail-image-generate {
  width: 100%;
  height: 46px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.38);
  background: #313236;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1px;
  transition: filter 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.detail-image-generate:not(:disabled) {
  color: #071416;
  background: linear-gradient(100deg, #35c9e3 0%, #2ce2bc 100%);
  cursor: pointer;
}

.detail-image-generate:not(:disabled):hover {
  filter: brightness(1.05);
}

.detail-image-generate:not(:disabled):active {
  transform: translateY(1px);
}

.detail-image-generate[aria-busy="true"] { opacity: 0.7; cursor: wait; }

.detail-image-history {
  grid-column: 3;
  grid-row: 1;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  padding: 20px 8px;
  color: rgba(255, 255, 255, 0.35);
  background: #18191d;
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 0 24px 24px 0;
}

.detail-image-history span {
  font-size: 11px;
}

.detail-image-history p {
  margin: 0;
  font-size: 10px;
}

#detailImageHistory {
  display: grid;
  gap: 7px;
  width: 100%;
  overflow-y: auto;
}

.detail-history-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  background: #101113;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
}

.detail-history-card img { width: 100%; height: 100%; object-fit: cover; }
.detail-history-card.active { border-color: #31cee5; }

.detail-image-library {
  grid-column: 3;
  grid-row: 1;
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  background: #090a0b;
}

.detail-image-library-empty {
  display: grid;
  justify-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.3);
  text-align: center;
}

.detail-image-library-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.detail-image-library-empty strong {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.detail-image-library-empty span {
  font-size: 11px;
}

#detailImageLibrary { width: 100%; min-height: 100%; }

#detailImageLibrary:has(.detail-image-library-empty) {
  display: grid;
  place-items: center;
}

.detail-image-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 228px));
  grid-auto-rows: 6px;
  grid-auto-flow: row dense;
  gap: 10px;
  align-content: start;
  justify-content: start;
}

.detail-image-result-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  background: transparent;
  border: 0;
  border-radius: 6px;
  contain: paint;
  isolation: isolate;
}

.detail-image-result-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100%;
  background: #111214;
  border-radius: 6px;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.detail-image-result-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  backface-visibility: hidden;
}

.detail-image-result-card img.detail-image-decode-pending {
  opacity: 0;
}

.detail-image-result-card img.detail-image-decode-ready {
  opacity: 1;
  transition: opacity 140ms ease-out;
}

.detail-image-module-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  max-width: calc(100% - 16px);
  padding: 4px 7px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
  background: rgba(25, 27, 31, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.13);
  font-size: 10px;
  font-weight: 500;
  line-height: 1;
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
}

.detail-image-result-card .result-action-bar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  width: 116px;
  max-width: calc(100% - 12px);
  height: 32px;
  padding: 0 4px;
  box-sizing: border-box;
  pointer-events: none;
  background: rgba(29, 31, 34, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  opacity: 0;
  transform: translate(-50%, 5px) scale(0.985);
  transition: opacity 170ms ease, transform 170ms cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(13px) saturate(135%) brightness(0.86);
  -webkit-backdrop-filter: blur(13px) saturate(135%) brightness(0.86);
}

.detail-image-result-media:hover .result-action-bar,
.detail-image-result-media:focus-within .result-action-bar {
  pointer-events: auto;
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.detail-image-result-card .result-action-bar button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.96);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  transition: color 120ms ease, background 120ms ease, transform 120ms ease;
}

.detail-image-result-card .result-action-bar button::after {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 3;
  padding: 5px 8px;
  color: rgba(255, 255, 255, 0.94);
  content: attr(data-tooltip);
  white-space: nowrap;
  pointer-events: none;
  background: rgba(28, 30, 34, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity 80ms ease, transform 80ms ease;
}

.detail-image-result-card .result-action-bar button:hover::after,
.detail-image-result-card .result-action-bar button:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.detail-image-result-card .result-action-bar button:hover {
  color: #fff;
  background: rgba(161, 163, 170, 0.32);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: none;
}

.detail-image-result-card .result-action-bar button:disabled,
.detail-image-result-card .result-action-bar button.is-busy {
  cursor: wait;
  opacity: 0.58;
}

.detail-image-result-card .result-action-bar svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: none) {
  .detail-image-result-card .result-action-bar {
    pointer-events: auto;
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

.reverse-workbench {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  background: #1b1c20;
  border-right: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 0 18px 18px 0;
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.012);
}

.reverse-workbench-header,
.reverse-library > header,
.reverse-history > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reverse-workbench-header {
  min-height: 60px;
  padding: 9px 16px 7px;
  border-bottom: 0;
}

.reverse-workbench-header > div > span,
.reverse-library > header span {
  color: rgba(242, 239, 195, 0.92);
  font-size: 10px;
  font-weight: 560;
}

.reverse-library > header span {
  display: block;
}

.reverse-workbench-title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.reverse-workbench-title > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 20px;
  padding: 1px 6px 1px 4px;
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 4px;
  white-space: nowrap;
}

.reverse-workbench-title > span img {
  display: block;
  width: 13px;
  height: 13px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(87, 137, 255, 0.18));
}

.reverse-workbench-title > span .reverse-agent-openai {
  display: block;
  width: 13px;
  height: 13px;
  fill: currentColor;
  filter: drop-shadow(0 1px 3px rgba(255, 255, 255, 0.12));
}

.reverse-workbench-header h2 {
  margin: 0;
  color: #f6f6f7;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
}

.reverse-library > header button,
.reverse-history > header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: rgba(255, 255, 255, 0.64);
  background: rgba(255, 255, 255, 0.045);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.reverse-library > header button:hover,
.reverse-history > header button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.reverse-workbench-scroll {
  min-height: 0;
  overflow: auto;
  padding: 6px 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.16) transparent;
}

.reverse-step {
  position: relative;
}

.reverse-step + .reverse-step {
  margin-top: 8px;
}

.reverse-step-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  color: rgba(255, 255, 255, 0.76);
}

.reverse-step-heading b {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.86);
  background: #2a2b2f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 570;
}

.reverse-step-heading strong {
  font-size: 14px;
  font-weight: 620;
}

.reverse-step-heading small {
  margin-left: -4px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
  font-weight: 500;
}

.reverse-step-body {
  position: relative;
  margin-left: 14px;
  padding: 8px 0 12px 12px;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
}

.reverse-step-settings .reverse-step-body {
  padding-bottom: 2px;
}

.reverse-step-detail {
  margin-top: 10px;
}

.reverse-step-detail .reverse-step-body {
  padding-top: 6px;
  padding-bottom: 2px;
  border-left-color: transparent;
}

.reverse-detail-segment {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  height: 38px;
  padding: 3px;
  background: #111216;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 7px;
}

.reverse-detail-segment button {
  border: 0;
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.42);
  background: transparent;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}

.reverse-detail-segment button.active {
  color: #17181b;
  background: #f1f2f3;
}

.reverse-detail-segment button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 1px;
}

.reverse-upload-stage {
  display: grid;
  justify-items: center;
}

.reverse-workflow .reverse-upload {
  display: grid;
  place-items: center;
  position: relative;
  width: 96px;
  height: 96px;
  min-height: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.62);
  background: #242529;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.reverse-workflow .reverse-upload::after {
  content: "0/1";
  position: absolute;
  right: 7px;
  bottom: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  line-height: 1;
}

.reverse-upload-stage:has(.reverse-preview:not([hidden])) .reverse-upload {
  display: none;
}

.reverse-workflow .reverse-upload:hover,
.reverse-workflow .reverse-upload.is-dragging {
  color: #fff;
  background: #24262a;
  border-color: #31d4e8;
}

.reverse-workflow .reverse-upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border-radius: 0;
}

.reverse-workflow .reverse-upload-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.reverse-workflow .reverse-upload strong,
.reverse-workflow .reverse-upload small {
  display: none;
}

.reverse-workflow .reverse-upload strong {
  color: #f0f1f2;
  font-size: 15px;
  font-weight: 650;
}

.reverse-workflow .reverse-upload small {
  margin-top: 6px;
  font-size: 12px;
}

.reverse-workflow .reverse-preview {
  display: block;
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.reverse-workflow .reverse-preview[hidden] {
  display: none !important;
}

.reverse-workflow .reverse-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 7px;
}

.reverse-preview > div {
  position: absolute;
  inset: auto 0 0;
  min-width: 0;
  padding: 16px 7px 6px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.reverse-preview strong,
.reverse-preview span {
  display: none;
}

.reverse-preview strong {
  font-size: 14px;
  font-weight: 650;
}

.reverse-preview span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.reverse-preview button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 10px;
  cursor: pointer;
}

.reverse-note-field {
  display: block;
  margin: 0;
}

.reverse-note-field > span,
.reverse-options > div > span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 650;
}

.reverse-note-field small {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 500;
}

.reverse-note-field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 68px;
  resize: vertical;
  padding: 12px;
  color: #f4f4f5;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  outline: none;
  font-size: 13px;
  line-height: 1.65;
}

.reverse-note-field textarea:focus {
  border-color: rgba(49, 212, 232, 0.72);
}

.reverse-note-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.reverse-workflow .reverse-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 26px);
  height: 38px;
  min-height: 38px;
  margin: 12px 0 0 26px;
  color: #061214;
  background: linear-gradient(100deg, #2bc9e5, #29e4ba);
  border: 0;
  border-radius: 7px;
  box-shadow: 0 10px 22px rgba(38, 221, 190, 0.08);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.reverse-submit small {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.66;
}

.reverse-workflow .reverse-submit:disabled:not(.is-busy) {
  color: rgba(255, 255, 255, 0.38);
  background: #303136;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.reverse-workflow .reverse-submit.is-busy {
  cursor: wait;
  opacity: 0.72;
}

.reverse-workflow .reverse-message {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #ffafb3;
  background: rgba(255, 91, 99, 0.08);
  border-radius: 6px;
  font-size: 12px;
}

.reverse-workflow .reverse-message[data-tone="status"] {
  color: #91e9f2;
  background: rgba(49, 212, 232, 0.08);
}

.reverse-workflow .reverse-result {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reverse-workflow .reverse-result[hidden] {
  display: none !important;
}

.reverse-result-card {
  padding: 15px;
  background: #222327;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 7px;
}

.reverse-result-head button {
  color: #75eaf2;
  background: rgba(49, 212, 232, 0.08);
  border: 1px solid rgba(49, 212, 232, 0.2);
  border-radius: 5px;
  cursor: pointer;
}

.reverse-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reverse-result-head strong {
  font-size: 13px;
  font-weight: 650;
}

.reverse-workflow .reverse-result-head strong {
  color: rgba(255, 255, 255, 0.9);
}

.reverse-result-head button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 11px;
}

.reverse-result-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.69);
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.reverse-history {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: 10px 9px 12px;
  overflow: hidden;
  background: #18191d;
  border-right: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 0 24px 24px 0;
  box-shadow:
    inset 1px 0 0 rgba(255, 255, 255, 0.018),
    10px 0 24px rgba(0, 0, 0, 0.08);
}

.reverse-history > header {
  min-height: 36px;
  padding: 0 0 8px;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
}

.reverse-history > header .reverse-history-toggle {
  width: 32px;
  height: 32px;
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border-radius: 7px;
  transition:
    width 180ms ease,
    height 180ms ease,
    color 140ms ease,
    background-color 140ms ease,
    transform 180ms ease;
}

.reverse-history > header .reverse-history-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.reverse-history-toggle-expanded {
  display: block;
  font: 300 23px/1 Arial, sans-serif;
  letter-spacing: -4px;
  transform: translate(-2px, -1px);
}

.reverse-history-toggle-collapsed {
  display: none;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 620;
}

.reverse-history-toggle-collapsed b {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-1px);
}

#reversePromptHistory {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overflow-anchor: none;
  scrollbar-width: none;
}

#reversePromptHistory::-webkit-scrollbar {
  display: none;
}

#reversePromptHistory > p {
  margin: 12px 0;
  color: rgba(255, 255, 255, 0.27);
  font-size: 10px;
  text-align: center;
}

#reversePromptHistory .reverse-history-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

#reversePromptHistory .reverse-history-preview {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  background: #25262a;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

#reversePromptHistory .reverse-history-preview:not(.is-active):hover {
  background: #292a2f;
  border-color: rgba(255, 255, 255, 0.16);
  filter: brightness(1.035);
}

#reversePromptHistory .reverse-history-preview.is-active {
  border-color: rgba(53, 212, 230, 0.88);
  box-shadow: 0 0 0 1px rgba(53, 212, 230, 0.14), 0 5px 16px rgba(20, 171, 193, 0.12);
}

#reversePromptHistory .reverse-history-delete {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  padding: 0;
  color: rgba(255, 255, 255, 0.84);
  font: 400 15px/1 Arial, sans-serif;
  background: rgba(8, 9, 10, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  opacity: 0.72;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: opacity 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

#reversePromptHistory .reverse-history-delete:hover,
#reversePromptHistory .reverse-history-delete:focus-visible {
  color: #fff;
  background: rgba(17, 18, 20, 0.92);
  border-color: rgba(255, 255, 255, 0.34);
  opacity: 1;
  outline: none;
}

#reversePromptHistory .reverse-history-delete:disabled {
  opacity: 0.32;
  cursor: wait;
}

#reversePromptHistory img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reverse-library {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 14px 14px 28px;
  background: #090a0b;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.reverse-library > header {
  display: none;
}

.reverse-library > header strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
  font-weight: 650;
}

.reverse-library > header small {
  display: block;
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  font-weight: 500;
}

.reverse-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 228px));
  grid-auto-rows: 6px;
  grid-auto-flow: row dense;
  gap: 10px;
  align-content: start;
  justify-content: start;
}

.reverse-library-card {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  background: #18191c;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 6px;
  cursor: pointer;
}

.reverse-library-card.is-loading {
  background: linear-gradient(100deg, #18191c 18%, #24262a 44%, #18191c 72%);
  background-size: 220% 100%;
  animation: reverseLibraryLoading 1.15s linear infinite;
}

@keyframes reverseLibraryLoading {
  to { background-position: -220% 0; }
}

.reverse-library-card img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 108px;
  object-fit: cover;
  opacity: 1;
  transition: opacity 180ms ease;
}

.reverse-library-card.is-loading img {
  opacity: 0;
}

.reverse-library-card span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  color: #061214;
  background: #43dce8;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.reverse-library-card:hover {
  border-color: rgba(255, 255, 255, 0.045);
}

.reverse-library-card:hover span {
  opacity: 1;
  transform: none;
}

.reverse-library-empty {
  margin: 80px 0;
  color: rgba(255, 255, 255, 0.36);
  font-size: 13px;
  text-align: center;
}

.reverse-workflow.history-collapsed {
  grid-template-columns: 72px minmax(350px, 360px) 0 minmax(0, 1fr);
}

.reverse-workflow.history-collapsed .reverse-history {
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.reverse-workflow.history-collapsed .reverse-history > header {
  position: absolute;
  top: 0;
  left: 12px;
  width: max-content;
  min-height: 0;
  padding: 0;
}

.reverse-workflow.history-collapsed .reverse-history > header .reverse-history-toggle {
  width: 92px;
  height: 40px;
  color: rgba(255, 255, 255, 0.94);
  background: #2b2c30;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.reverse-workflow.history-collapsed .reverse-history > header .reverse-history-toggle:hover {
  background: #34353a;
}

.reverse-workflow.history-collapsed .reverse-history-toggle-expanded {
  display: none;
}

.reverse-workflow.history-collapsed .reverse-history-toggle-collapsed {
  display: inline-flex;
}

.reverse-workflow.history-collapsed #reversePromptHistory {
  visibility: hidden;
  pointer-events: none;
}

/* AI 电商视频工具。左侧只保留必要输入，右侧专门承接处理中和最终结果。 */
.video-utility-workbench {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #1b1c20;
  border-radius: 0 18px 18px 0;
}

.video-utility-header {
  min-height: 72px;
  padding: 14px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
}

.video-utility-header h2 { margin: 0; color: #f5f6f7; font-size: 20px; font-weight: 620; line-height: 1.25; }
.video-utility-header p { margin: 5px 0 0; color: rgba(255, 255, 255, .42); font-size: 12px; line-height: 1.5; }
.video-utility-header > span {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .045);
  border-radius: 6px;
  font-size: 11px;
}
.video-utility-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.video-utility-title > span { padding: 4px 7px; color: rgba(255,255,255,.58); background: rgba(255,255,255,.05); border-radius: 6px; font-size: 10px; font-weight: 560; }
[data-video-utility="hy-matting"] .video-utility-header { min-height: 60px; padding: 9px 16px 7px; }
[data-video-utility="hy-matting"] .video-utility-header h2 { font-size: 18px; font-weight: 650; }
[data-video-utility="hy-matting"] .video-utility-scroll { padding: 8px 16px 24px; }
[data-video-utility="hy-matting"] .video-utility-step + .video-utility-step { margin-top: 8px; }

.video-utility-scroll { min-height: 0; padding: 20px 22px 24px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.video-utility-step + .video-utility-step { margin-top: 24px; }
.video-utility-step > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.video-utility-step > header b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  color: rgba(255,255,255,.78);
  background: #292a2f;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 580;
}
.video-utility-step > header div { display: grid; gap: 2px; }
.video-utility-step > header strong { color: rgba(255,255,255,.84); font-size: 14px; font-weight: 580; }
.video-utility-step > header small { color: rgba(255,255,255,.34); font-size: 11px; }
.video-utility-step-body { position: relative; margin-left: 13px; padding: 10px 0 18px 15px; border-left: 1px dashed rgba(255,255,255,.18); }
.video-utility-step-body--last { padding-bottom: 3px; border-left-color: transparent; }

.video-utility-dropzone {
  min-height: 238px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: rgba(255,255,255,.66);
  background: #141519;
  border: 1px dashed rgba(255,255,255,.14);
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(.23,1,.32,1), border-color 180ms cubic-bezier(.23,1,.32,1), transform 120ms cubic-bezier(.23,1,.32,1);
}
.video-utility-dropzone[hidden] { display: none; }
.video-utility-dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.video-utility-dropzone:hover,
.video-utility-dropzone.is-dragging { background: #17191d; border-color: rgba(49,206,229,.5); }
.video-utility-dropzone:active { transform: scale(.99); }
.video-utility-dropzone > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 5px; color: #31cee5; background: rgba(49,206,229,.1); border-radius: 10px; }
.video-utility-dropzone svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.video-utility-dropzone strong { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 560; }
.video-utility-dropzone small { color: rgba(255,255,255,.34); font-size: 11px; }

.video-utility-preview { overflow: hidden; background: #111216; border-radius: 12px; }
.video-utility-preview[hidden] { display: none; }
.video-utility-preview video { display: block; width: 100%; max-height: 320px; background: #08090a; object-fit: contain; }
.video-utility-preview > div { min-height: 56px; padding: 10px 12px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 12px; }
.video-utility-preview strong { overflow: hidden; color: rgba(255,255,255,.8); font-size: 12px; font-weight: 560; text-overflow: ellipsis; white-space: nowrap; }
.video-utility-preview span { grid-column: 1; margin-top: 2px; color: rgba(255,255,255,.35); font-size: 11px; }
.video-utility-preview button { grid-column: 2; grid-row: 1 / span 2; min-height: 32px; padding: 0 10px; color: rgba(255,255,255,.6); background: rgba(255,255,255,.055); border: 0; border-radius: 6px; cursor: pointer; }
.video-utility-preview button:hover { color: #fff; background: rgba(255,255,255,.09); }

.video-utility-resolution { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.video-utility-resolution button { min-height: 44px; color: rgba(255,255,255,.5); background: #141519; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 100ms ease; }
.video-utility-resolution button:hover { color: rgba(255,255,255,.84); background: #202126; }
.video-utility-resolution button.active { color: #eafcff; background: rgba(49,206,229,.1); border-color: rgba(49,206,229,.34); }
.video-utility-resolution button:active { transform: scale(.97); }
.video-utility-resolution button:focus-visible,
.video-utility-dropzone:focus-within { outline: 2px solid rgba(49,206,229,.68); outline-offset: 2px; }

.video-utility-segment { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.video-utility-segment button { min-height: 44px; color: rgba(255,255,255,.5); background: #141519; border: 1px solid transparent; border-radius: 8px; cursor: pointer; transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, transform 100ms ease; }
.video-utility-segment button:hover { color: rgba(255,255,255,.84); background: #202126; }
.video-utility-segment button.active { color: #eafcff; background: rgba(49,206,229,.1); border-color: rgba(49,206,229,.34); }
[data-video-utility="hy-matting"] .video-utility-segment { height: 46px; padding: 3px; gap: 3px; background: #111216; border: 1px solid rgba(255,255,255,.025); border-radius: 8px; }
[data-video-utility="hy-matting"] .video-utility-segment button { min-height: 0; height: 100%; color: rgba(255,255,255,.42); background: transparent; border: 0; border-radius: 6px; font-size: 13px; font-weight: 560; }
[data-video-utility="hy-matting"] .video-utility-segment button:hover { color: rgba(255,255,255,.74); background: rgba(255,255,255,.035); }
[data-video-utility="hy-matting"] .video-utility-segment button.active { color: #17181b; background: #f1f2f3; }
[data-video-utility="hy-matting"] .video-utility-submit-row { width: calc(100% - 26px); margin: 14px 0 0 26px; padding-top: 14px; display: grid; grid-template-columns: minmax(0,1fr); justify-content: stretch; align-items: stretch; gap: 9px; }
[data-video-utility="hy-matting"] .video-utility-submit-row button { width: 100%; min-height: 40px; border-radius: 7px; background: linear-gradient(100deg,#2bc9e5,#29e4ba); font-size: 12px; }
[data-video-utility="hy-matting"] .video-utility-submit-row button:disabled { color: rgba(255,255,255,.38); background: #303136; opacity: 1; }
.video-utility-segment button:active { transform: scale(.97); }
.video-utility-segment button:focus-visible { outline: 2px solid rgba(49,206,229,.68); outline-offset: 2px; }

.video-utility-note { margin-top: 22px; padding: 14px; display: flex; gap: 10px; color: rgba(255,255,255,.48); background: rgba(255,255,255,.03); border-radius: 9px; }
.video-utility-note svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.video-utility-note p { margin: 0; display: grid; gap: 4px; }
.video-utility-note strong { color: rgba(255,255,255,.7); font-size: 12px; font-weight: 560; }
.video-utility-note span { font-size: 11px; line-height: 1.5; }

.video-utility-submit-row { margin-top: 28px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid rgba(255,255,255,.045); }
.video-utility-submit-row p { margin: 0; color: rgba(255,255,255,.38); font-size: 11px; line-height: 1.45; }
.video-utility-submit-row p[data-tone="error"] { color: #ff8f86; }
.video-utility-submit-row p[data-tone="success"] { color: #70dec0; }
.video-utility-submit-row button { min-width: 142px; min-height: 44px; padding: 7px 14px; display: grid; place-items: center; color: #071114; background: #31cee5; border: 0; border-radius: 8px; cursor: pointer; font-weight: 650; transition: filter 140ms ease, transform 100ms ease, opacity 140ms ease; }
.video-utility-submit-row button:hover:not(:disabled) { filter: brightness(1.08); }
.video-utility-submit-row button:active:not(:disabled) { transform: scale(.97); }
.video-utility-submit-row button:disabled { cursor: not-allowed; opacity: .34; }
.video-utility-submit-row button small { margin-top: 2px; color: rgba(7,17,20,.62); font-size: 10px; font-weight: 560; }
.video-utility-submit-row button:focus-visible,
.video-utility-preview button:focus-visible,
.video-utility-result a:focus-visible { outline: 2px solid rgba(49,206,229,.72); outline-offset: 2px; }

.video-utility-result-pane {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: auto;
  background: #101114;
}
.video-utility-empty { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; }
.video-utility-empty svg { width: 34px; height: 34px; margin-bottom: 14px; fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.35; }
.video-utility-empty strong { color: rgba(255,255,255,.46); font-size: 13px; font-weight: 560; }
.video-utility-empty span { margin-top: 5px; color: rgba(255,255,255,.26); font-size: 11px; }
.video-utility-progress { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; }
.video-utility-progress i { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.12); border-top-color: #31cee5; border-radius: 50%; animation: videoUtilitySpin .9s linear infinite; }
.video-utility-progress strong { margin-top: 16px; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 580; }
.video-utility-progress span { max-width: 320px; margin-top: 6px; color: rgba(255,255,255,.34); font-size: 11px; line-height: 1.5; }
.video-utility-result { max-width: 820px; margin: 0 auto; }
.video-utility-result header { margin-bottom: 14px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.video-utility-result h3 { margin: 0; color: #f4f5f6; font-size: 17px; font-weight: 610; }
.video-utility-result header span { color: rgba(255,255,255,.34); font-size: 11px; }
.video-utility-result video { display: block; width: 100%; max-height: calc(100vh - 230px); background: #070809; border-radius: 12px; }
.video-utility-result footer { margin-top: 12px; display: flex; justify-content: flex-end; }
.video-utility-result a { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; color: #071114; background: #31cee5; border-radius: 7px; font-size: 12px; font-weight: 650; text-decoration: none; }
.video-utility-result-error { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; }
.video-utility-result-error strong { color: #ff9c94; font-size: 14px; font-weight: 590; }
.video-utility-result-error span { max-width: 340px; margin-top: 7px; color: rgba(255,255,255,.36); font-size: 11px; line-height: 1.5; }
@keyframes videoUtilitySpin { to { transform: rotate(360deg); } }

/* HY 电商小工具。用一套低噪声工作台承接轻量处理，结果区保持足够留白。 */
.hy-tool-workbench {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #1b1c20;
  border-radius: 0 18px 18px 0;
}
.hy-tool-header {
  min-height: 60px;
  padding: 9px 16px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.045);
}
.hy-tool-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.hy-tool-title h2 { margin: 0; color: #f5f6f7; font-size: 18px; font-weight: 650; line-height: 1.2; }
.hy-tool-title > span { padding: 4px 7px; color: rgba(255,255,255,.58); background: rgba(255,255,255,.05); border-radius: 6px; font-size: 10px; font-weight: 560; }
.hy-tool-header em { flex: 0 0 auto; padding: 5px 8px; color: #8be6d2; background: rgba(62,203,164,.09); border-radius: 6px; font-size: 10px; font-style: normal; font-weight: 590; }
.hy-tool-scroll { min-height: 0; padding: 8px 16px 24px; overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.14) transparent; }
.hy-mode-switch { width: calc(100% - 26px); height: 40px; margin: 0 0 14px 26px; padding: 3px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; background: #111216; border: 1px solid rgba(255,255,255,.025); border-radius: 8px; }
.hy-mode-switch button { min-height: 34px; padding: 0 13px; color: rgba(255,255,255,.4); background: transparent; border: 0; border-radius: 6px; font-size: 12px; cursor: pointer; transition: color 140ms ease, background-color 140ms ease; }
.hy-mode-switch button:hover { color: rgba(255,255,255,.72); }
.hy-mode-switch button.active { color: #17181b; background: #f1f2f3; }
.hy-tool-card + .hy-tool-card { margin-top: 8px; }
.hy-tool-card > header { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.hy-tool-card > header b { position: relative; z-index: 1; width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; color: rgba(255,255,255,.86); background: #2a2b2f; border-radius: 50%; font-size: 13px; font-weight: 570; }
.hy-tool-card > header div { display: grid; gap: 2px; }
.hy-tool-card > header strong { color: rgba(255,255,255,.82); font-size: 14px; font-weight: 560; }
.hy-tool-card > header small { color: rgba(255,255,255,.34); font-size: 11px; }
.hy-tool-card-body { position: relative; margin-left: 14px; padding: 0 0 16px 14px; border-left: 1px dashed rgba(255,255,255,.18); }
.hy-tool-card-body--last { padding-bottom: 3px; border-left-color: transparent; }
.hy-compact-upload { min-height: 74px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.58); background: #222327; border: 1px solid rgba(255,255,255,.07); border-radius: 8px; cursor: pointer; }
.hy-compact-upload:hover { background: #25262a; border-color: rgba(49,206,229,.52); }
.hy-compact-upload input, .hy-image-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hy-compact-upload svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: #31cee5; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.hy-compact-upload > span { min-width: 0; display: grid; gap: 4px; }
.hy-compact-upload strong { color: rgba(255,255,255,.76); font-size: 12px; font-weight: 560; }
.hy-compact-upload small { overflow: hidden; color: rgba(255,255,255,.32); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.hy-field { display: grid; gap: 7px; min-width: 0; }
.hy-compact-upload + .hy-field { margin-top: 12px; }
.hy-field > span { color: rgba(255,255,255,.38); font-size: 10px; }
.hy-field > input { width: 100%; height: 40px; padding: 0 11px; color: rgba(255,255,255,.76); background: #222327; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; outline: 0; font: inherit; font-size: 12px; }
.hy-field > input:focus { border-color: rgba(49,206,229,.52); }
.hy-tool-select > button { background: #222327; border-color: rgba(255,255,255,.07); }
.hy-tool-select .detail-custom-menu { min-width: 100%; max-height: 246px; overflow-y: auto; }
.hy-textarea { position: relative; display: block; }
.hy-textarea textarea { display: block; width: 100%; min-height: 116px; padding: 12px 12px 30px; resize: vertical; color: rgba(255,255,255,.82); background: #222327; border: 1px solid rgba(255,255,255,.07); border-radius: 7px; outline: 0; font-size: 13px; line-height: 1.65; }
.hy-textarea textarea::placeholder { color: rgba(255,255,255,.22); }
.hy-textarea textarea:focus { border-color: rgba(49,206,229,.42); }
.hy-textarea > small { position: absolute; right: 11px; bottom: 9px; color: rgba(255,255,255,.26); font-size: 10px; }
.hy-image-upload { width: 104px; height: 104px; min-height: 0; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: rgba(255,255,255,.52); background: #242529; border: 1px solid rgba(255,255,255,.045); border-radius: 10px; cursor: pointer; }
.hy-image-upload[hidden] { display: none; }
.hy-image-upload:hover, .hy-image-upload.is-dragging { background: #17191d; border-color: rgba(49,206,229,.46); }
.hy-image-upload > span { color: #31cee5; font-size: 26px; font-weight: 300; line-height: 1; }
.hy-image-upload strong { max-width: 82px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 560; text-align: center; }
.hy-image-upload small { color: rgba(255,255,255,.34); font-size: 9px; }
.hy-image-preview { overflow: hidden; background: #121316; border-radius: 11px; }
.hy-image-preview[hidden] { display: none; }
.hy-image-preview { width: 100%; }
.hy-image-preview img { display: block; width: 100%; max-height: 240px; object-fit: contain; background: #090a0b; }
.hy-image-preview > div { min-height: 48px; padding: 8px 11px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hy-image-preview strong { overflow: hidden; color: rgba(255,255,255,.66); font-size: 11px; font-weight: 520; text-overflow: ellipsis; white-space: nowrap; }
.hy-image-preview button { min-height: 30px; padding: 0 9px; color: rgba(255,255,255,.55); background: rgba(255,255,255,.05); border: 0; border-radius: 6px; cursor: pointer; }
.hy-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 12px; }
.hy-tool-submit-row { width: calc(100% - 26px); margin: 14px 0 0 26px; padding-top: 14px; display: grid; gap: 9px; border-top: 1px solid rgba(255,255,255,.045); }
.hy-tool-submit-row p { margin: 0; color: rgba(255,255,255,.38); font-size: 11px; line-height: 1.45; }
.hy-tool-submit-row p[data-tone="error"] { color: #ff8f86; }
.hy-tool-submit-row p[data-tone="success"] { color: #70dec0; }
.hy-tool-submit-row button { width: 100%; min-height: 40px; padding: 7px 14px; display: grid; place-items: center; color: #061214; background: linear-gradient(100deg,#2bc9e5,#29e4ba); border: 0; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 700; }
.hy-tool-submit-row button:hover:not(:disabled) { filter: brightness(1.08); }
.hy-tool-submit-row button:active:not(:disabled) { transform: scale(.97); }
.hy-tool-submit-row button:disabled { opacity: .36; cursor: not-allowed; }
.hy-tool-submit-row button small { margin-top: 2px; color: rgba(7,17,20,.62); font-size: 10px; }
.hy-tool-result-pane { grid-column: 3; grid-row: 1; min-width: 0; min-height: 0; padding: 24px; overflow: auto; background: #101114; }
.hy-tool-empty, .hy-tool-progress, .hy-tool-result-error { min-height: 100%; display: grid; place-content: center; justify-items: center; text-align: center; }
.hy-tool-empty svg { width: 34px; height: 34px; margin-bottom: 14px; fill: none; stroke: rgba(255,255,255,.18); stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.hy-tool-empty strong { color: rgba(255,255,255,.46); font-size: 13px; font-weight: 550; }
.hy-tool-empty span { margin-top: 5px; color: rgba(255,255,255,.26); font-size: 11px; }
.hy-tool-progress i { width: 34px; height: 34px; border: 2px solid rgba(255,255,255,.12); border-top-color: #31cee5; border-radius: 50%; animation: videoUtilitySpin .9s linear infinite; }
.hy-tool-progress strong { margin-top: 16px; color: rgba(255,255,255,.76); font-size: 14px; font-weight: 560; }
.hy-tool-progress span { margin-top: 6px; color: rgba(255,255,255,.34); font-size: 11px; }
.hy-tool-result-error strong { color: #ff9c94; font-size: 14px; font-weight: 570; }
.hy-tool-result-error span { max-width: 340px; margin-top: 7px; color: rgba(255,255,255,.36); font-size: 11px; line-height: 1.5; }
.hy-audio-result, .hy-image-result { width: min(760px, 100%); margin: 0 auto; }
.hy-audio-result header, .hy-image-result header { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 14px; }
.hy-audio-result header span, .hy-image-result header span { color: #70dec0; font-size: 10px; }
.hy-audio-result h3, .hy-image-result h3 { margin: 4px 0 0; color: #f4f5f6; font-size: 18px; font-weight: 600; }
.hy-audio-result header em, .hy-image-result header em { color: rgba(255,255,255,.32); font-size: 10px; font-style: normal; }
.hy-audio-visual { height: 190px; padding: 0 12%; display: flex; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle at 50% 50%, rgba(49,206,229,.12), transparent 52%), #0c0d0f; border-radius: 13px; }
.hy-audio-visual i { width: 5px; height: 22%; background: linear-gradient(#76e5ef,#31cee5); border-radius: 3px; opacity: .72; }
.hy-audio-visual i:nth-child(2n) { height: 44%; }.hy-audio-visual i:nth-child(3n) { height: 65%; }.hy-audio-visual i:nth-child(5n) { height: 34%; }
.hy-audio-result audio { display: block; width: 100%; margin-top: 14px; }
.hy-image-result img { display: block; width: 100%; max-height: calc(100vh - 250px); object-fit: contain; background: #090a0b; border-radius: 12px; }
.hy-audio-result footer, .hy-image-result footer { margin-top: 13px; display: flex; justify-content: flex-end; }
.hy-audio-result a, .hy-image-result a { min-height: 38px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; color: #071114; background: #31cee5; border-radius: 7px; font-size: 12px; font-weight: 650; text-decoration: none; }

/* Complex workflows can opt into a wider control surface without changing
   the compact reverse-prompt layout. Keep enough room for results on the right. */
.reverse-workflow:has(#detailImageToolTab:checked),
.reverse-workflow.history-collapsed:has(#detailImageToolTab:checked),
.reverse-workflow:has(#videoUpscaleToolTab:checked),
.reverse-workflow:has(#videoSubtitleRemoveToolTab:checked),
.reverse-workflow:has(#hySpeechToolTab:checked),
.reverse-workflow:has(#hyImageToolTab:checked),
.reverse-workflow:has(#hyMattingToolTab:checked) {
  grid-template-columns: 72px minmax(480px, 540px) minmax(360px, 1fr);
}

@media (max-width: 1380px) {
  .reverse-workflow {
    grid-template-columns: 72px minmax(330px, 350px) 84px minmax(0, 1fr);
  }
  .reverse-workflow.history-collapsed {
    grid-template-columns: 72px minmax(330px, 350px) 0 minmax(0, 1fr);
  }
  .reverse-workflow:has(#detailImageToolTab:checked),
  .reverse-workflow.history-collapsed:has(#detailImageToolTab:checked),
  .reverse-workflow:has(#videoUpscaleToolTab:checked),
  .reverse-workflow:has(#videoSubtitleRemoveToolTab:checked),
  .reverse-workflow:has(#hySpeechToolTab:checked),
  .reverse-workflow:has(#hyImageToolTab:checked),
  .reverse-workflow:has(#hyMattingToolTab:checked) {
    grid-template-columns: 72px minmax(440px, 480px) minmax(300px, 1fr);
  }
  .reverse-workflow-nav span { font-size: 10px; }
  .reverse-library-grid { grid-template-columns: repeat(auto-fill, minmax(154px, 206px)); }
}

@media (max-width: 1060px) {
  .reverse-workflow {
    grid-template-columns: minmax(340px, 380px) 70px minmax(0, 1fr);
  }
  .reverse-workflow.history-collapsed {
    grid-template-columns: minmax(340px, 380px) 0 minmax(0, 1fr);
  }
  .reverse-workflow:has(#detailImageToolTab:checked),
  .reverse-workflow.history-collapsed:has(#detailImageToolTab:checked),
  .reverse-workflow:has(#videoUpscaleToolTab:checked),
  .reverse-workflow:has(#videoSubtitleRemoveToolTab:checked),
  .reverse-workflow:has(#hySpeechToolTab:checked),
  .reverse-workflow:has(#hyImageToolTab:checked),
  .reverse-workflow:has(#hyMattingToolTab:checked) {
    grid-template-columns: minmax(400px, 460px) minmax(280px, 1fr);
  }
  .reverse-workflow-nav { display: none; }
  .reverse-library-grid { grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
  .detail-image-workbench { grid-column: 1; }
  .detail-image-library { grid-column: 2; }
  .video-utility-workbench { grid-column: 1; }
  .video-utility-result-pane { grid-column: 2; }
  .hy-tool-workbench { grid-column: 1; }
  .hy-tool-result-pane { grid-column: 2; }
}

@media (max-width: 760px) {
  .reverse-workflow {
    inset: 0;
    z-index: 80;
    display: block;
    overflow: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .reverse-workbench { min-height: 100vh; }
  .reverse-workbench,
  .detail-image-workbench,
  .video-utility-workbench,
  .hy-tool-workbench { min-height: 100vh; border-radius: 0; }
  .reverse-history { display: none; }
  .reverse-library { min-height: 70vh; padding: 0 14px 24px; }
  .reverse-library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-image-history { display: none; }
  .detail-image-workbench,
  .detail-image-library,
  .video-utility-result-pane,
  .hy-tool-result-pane { min-height: 70vh; }
  .video-utility-result-pane,
  .hy-tool-result-pane { padding: 18px 14px; }
  .hy-control-grid { grid-template-columns: 1fr; }
  .video-utility-resolution { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .reverse-options { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .video-utility-progress i { animation-duration: 1.8s; }
  .video-utility-dropzone,
  .video-utility-resolution button,
  .video-utility-submit-row button { transition: none; }
}

/* Product experience v46: one visual language across library, detail and picker. */
.product-library-page {
  --product-accent: #32d3e8;
  --product-accent-soft: rgba(50, 211, 232, 0.12);
  --product-panel: #111315;
  --product-panel-raised: #15181a;
  --product-line: rgba(255, 255, 255, 0.085);
  background:
    radial-gradient(circle at 62% -18%, rgba(39, 198, 219, 0.07), transparent 34%),
    #08090a;
}

.product-library-header {
  display: block;
  min-height: 0;
  padding: 46px 0 25px;
  background: rgba(8, 9, 10, 0.92);
  border-bottom-color: rgba(255, 255, 255, 0.055);
}

.product-library-header > div,
.product-library-content {
  width: min(1240px, calc(100% - 64px));
  margin-right: auto;
  margin-left: auto;
}

.product-library-eyebrow {
  margin-bottom: 9px;
  font-size: 11px;
  letter-spacing: 0.16em;
}

.product-library-header h1 {
  max-width: 720px;
  font-size: clamp(26px, 2.2vw, 38px);
  font-weight: 680;
  letter-spacing: -0.035em;
}

.product-library-header p {
  margin-top: 10px;
  color: rgba(232, 237, 240, 0.43);
  font-size: 12px;
}

.product-library-content {
  padding: 25px 0 72px;
}

.product-library-page.is-detail-view .product-library-content {
  width: min(1240px, calc(100% - 64px));
  padding-top: 26px;
  transform: none;
}

.product-library-view {
  transition: opacity 0.14s ease;
}

.product-library-view > * {
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.22, 0.72, 0.24, 1);
}

.product-library-view.is-leaving {
  opacity: 0;
}

.product-library-view.is-entering > *,
.product-library-view.is-entering-back > * {
  opacity: 0;
  transform: translateY(4px) scale(0.998);
}

.product-list-heading {
  min-height: 34px;
  margin-bottom: 15px;
}

.product-list-heading > div {
  gap: 9px;
}

.product-list-heading strong {
  font-size: 17px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.product-list-heading span {
  padding: 3px 7px;
  color: rgba(226, 234, 237, 0.42);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 999px;
  font-size: 10px;
}

.product-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 252px));
  gap: 16px;
}

.product-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  color: #f5f7f8;
  text-align: left;
  background: #121416;
  border: 1px solid rgba(255, 255, 255, 0.095);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
  isolation: isolate;
  transform: translateZ(0);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.product-card:hover {
  border-color: rgba(83, 222, 239, 0.46);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(50, 211, 232, 0.05);
  transform: translateZ(0);
}

.product-card:active {
  border-color: rgba(83, 222, 239, 0.58);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.26);
  transform: translateZ(0);
}

.product-card:focus-visible {
  border-color: rgba(83, 222, 239, 0.62);
  outline: 2px solid rgba(50, 211, 232, 0.22);
  outline-offset: 3px;
}

.product-card-cover {
  position: absolute;
  inset: 0;
  aspect-ratio: auto;
  background: #171a1c;
}

.product-card-cover::after {
  z-index: 1;
  height: 68%;
  background: linear-gradient(to top, rgba(5, 7, 8, 0.98) 0%, rgba(5, 7, 8, 0.75) 34%, transparent 100%);
}

.product-card-cover img {
  transform: scale(1.001);
  transition: transform 0.45s cubic-bezier(0.22, 0.72, 0.24, 1), filter 0.3s ease;
}

.product-card:hover .product-card-cover img {
  filter: saturate(1.04) contrast(1.015);
  transform: scale(1.026);
}

.product-card-stats {
  top: 12px;
  right: 12px;
  bottom: auto;
  padding: 6px 8px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(7, 9, 10, 0.62);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
}

.product-card-body {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: block;
  min-height: 0;
  margin: 0;
  padding: 66px 15px 15px;
  background: transparent;
}

.product-card-info {
  gap: 5px;
}

.product-card-body strong {
  color: #f7f8f9;
  font-size: 16px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.product-card-body span {
  color: rgba(232, 237, 240, 0.46);
  font-size: 9px;
}

.product-card-tags {
  min-height: 21px;
  gap: 5px;
  margin-top: 4px;
}

.product-card-tags .product-tag-chip {
  min-height: 20px;
  max-width: 86px;
  padding: 2px 7px;
  background: rgba(8, 11, 12, 0.55);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  font-size: 9px;
}

.product-card-tags em,
.product-card-tags i {
  color: rgba(236, 241, 243, 0.42);
}

.product-create-card {
  aspect-ratio: 4 / 5;
  min-height: 0;
  padding: 22px;
  background:
    radial-gradient(circle at 50% 38%, rgba(50, 211, 232, 0.07), transparent 34%),
    rgba(255, 255, 255, 0.015);
  border-color: rgba(255, 255, 255, 0.11);
  border-radius: 18px;
  flex-direction: column;
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.product-create-card:hover,
.product-create-card:focus-visible,
.product-create-card:active {
  color: #b6f3f8;
  background: rgba(50, 211, 232, 0.035);
  border-color: rgba(50, 211, 232, 0.42);
  transform: none;
}

.product-create-card-icon {
  width: 42px;
  height: 42px;
  color: #b8f4f9;
  background: rgba(50, 211, 232, 0.1);
  border: 1px solid rgba(50, 211, 232, 0.22);
  border-radius: 14px;
  box-shadow: none;
  font-size: 23px;
}

.product-create-card-copy {
  display: grid;
  gap: 5px;
  text-align: center;
}

.product-create-card-copy strong {
  color: rgba(244, 247, 248, 0.8);
  font-size: 13px;
}

.product-create-card-copy small {
  color: rgba(229, 235, 238, 0.34);
  font-size: 9px;
}

.product-library-content:has(.product-library-empty) .product-library-view {
  transform: none;
}

.product-detail-view {
  max-width: 1120px;
}

.product-detail-back {
  display: inline-flex;
  width: auto;
  max-width: none;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  margin: 18px 0 18px 40px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
}

.product-detail-back:hover,
.product-detail-back:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.product-detail-back span:first-child {
  color: #6fdee9;
  font-size: 14px;
}

.product-detail-shell {
  max-width: 1040px;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: stretch;
  gap: 22px;
}

.product-detail-gallery {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-detail-main {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.28);
}

.product-detail-main img {
  display: block;
  object-fit: cover;
}

.product-detail-thumbnails {
  gap: 7px;
  margin-top: 10px;
}

.product-detail-thumbnails button {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  transition: border-color 0.18s ease, opacity 0.18s ease;
}

.product-detail-thumbnails button:not(.active) {
  opacity: 0.62;
}

.product-detail-thumbnails button:hover,
.product-detail-thumbnails button.active {
  opacity: 1;
}

.product-detail-copy {
  aspect-ratio: auto;
  min-height: 100%;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(50, 211, 232, 0.065), transparent 35%),
    #111315;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 20px;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.2);
}

.product-detail-kicker {
  margin-bottom: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
}

.product-detail-copy h2 {
  font-size: clamp(28px, 2.3vw, 38px);
  font-weight: 680;
  letter-spacing: -0.04em;
}

.product-detail-meta {
  margin-top: 11px;
  font-size: 11px;
}

.product-detail-tags {
  gap: 13px;
  margin: 24px 0;
  padding: 18px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 0;
}

.product-detail-tags.attention,
.product-tag-editor.attention {
  animation: product-tags-attention 1.7s ease;
}

@keyframes product-tags-attention {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.075);
  }
  35% {
    border-color: rgba(77, 213, 230, 0.5);
    background: rgba(49, 207, 230, 0.035);
    box-shadow: 0 0 0 4px rgba(49, 207, 230, 0.06);
  }
}

.product-detail-tags-head strong {
  font-size: 12px;
}

.product-detail-actions {
  margin-top: auto;
}

.product-detail-actions button {
  min-height: 42px;
  border-radius: 10px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.product-creation-archive {
  max-width: 1040px;
  margin-top: 46px;
  padding-top: 34px;
}

.product-creation-grid {
  grid-template-columns: repeat(auto-fill, minmax(214px, 246px));
  gap: 18px;
}

.product-creation-cover {
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.product-creation-cover:hover,
.product-creation-cover:focus-visible {
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
}

.product-creation-cover:hover img {
  transform: scale(1.025);
}

/* Create and edit product without the old stepper/timeline feel. */
.product-editor-backdrop,
.tool-product-picker-backdrop {
  background: rgba(2, 3, 4, 0.78);
  backdrop-filter: blur(14px);
  animation: product-backdrop-in 0.18s ease both;
}

.product-editor-dialog,
.tool-product-picker-dialog {
  color: #f4f6f7;
  background:
    radial-gradient(circle at 86% -15%, rgba(50, 211, 232, 0.07), transparent 34%),
    #121416;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.68);
  animation: product-dialog-in 0.22s cubic-bezier(0.22, 0.72, 0.24, 1) both;
}

.product-editor-dialog {
  width: min(760px, calc(100vw - 40px));
  max-height: min(820px, calc(100dvh - 40px));
}

.product-editor-header,
.tool-product-picker-dialog > header {
  min-height: 70px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.product-editor-header h2,
.tool-product-picker-dialog > header h2 {
  font-size: 18px;
  font-weight: 660;
  letter-spacing: -0.02em;
}

.product-editor-close,
.tool-product-picker-dialog > header > button {
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}

.product-editor-scroll {
  display: block;
  padding: 0 24px 12px;
}

.product-editor-step {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.product-editor-step:last-of-type {
  border-bottom: 0;
}

.product-step-heading {
  min-height: 24px;
  align-items: center;
  align-self: start;
  gap: 8px;
}

.product-step-heading > b {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  color: #8de8f2;
  background: rgba(50, 211, 232, 0.09);
  border: 1px solid rgba(50, 211, 232, 0.16);
  border-radius: 7px;
  font-size: 10px;
  font-weight: 720;
}

.product-step-heading strong {
  color: rgba(245, 248, 249, 0.78);
  font-size: 12px;
  font-weight: 640;
}

.product-step-body,
.product-editor-step-note .product-step-body {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.product-image-stage {
  justify-items: start;
}

.product-main-upload {
  width: 136px;
  height: 136px;
  background: #1a1d1f;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 14px;
}

.product-main-upload:not(.has-image)::after {
  display: none;
}

.product-main-upload:hover,
.product-main-upload:focus-visible {
  background: #1d2123;
  border-color: rgba(50, 211, 232, 0.62);
  box-shadow: 0 0 0 3px rgba(50, 211, 232, 0.055);
}

.product-main-upload.has-image > img {
  border-radius: inherit;
}

.product-main-label {
  top: 9px;
  left: 9px;
  padding: 5px 8px;
  color: #baf4f8;
  background: rgba(5, 12, 13, 0.66);
  border: 1px solid rgba(94, 228, 241, 0.24);
  border-radius: 999px;
  font-size: 8px;
}

.product-angle-block {
  margin-top: 16px;
}

.product-angle-grid {
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 9px;
}

.product-angle-card,
.product-angle-add {
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.product-angle-add:hover,
.product-angle-add:focus-visible {
  color: #a5eef5;
  background: rgba(50, 211, 232, 0.035);
  border-color: rgba(50, 211, 232, 0.48);
  outline: none;
}

.product-editor-field input,
.product-editor-field textarea,
.product-tag-editor {
  background: #191c1e;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 11px;
}

.product-editor-field input {
  height: 46px;
  padding: 0 14px;
}

.product-tag-editor {
  min-height: 104px;
  padding: 13px;
}

.product-editor-message {
  margin: 10px 0 0 154px;
  border-radius: 10px;
}

.product-editor-footer {
  min-height: 72px;
  justify-content: flex-end;
  padding: 14px 24px;
  border-top-color: rgba(255, 255, 255, 0.065);
}

.product-editor-footer > div {
  margin-left: 0;
}

.product-editor-footer button {
  height: 42px;
  border-radius: 10px;
}

.product-editor-footer .primary {
  min-width: 150px;
  background: linear-gradient(105deg, #36cce4, #32dfbd);
  box-shadow: 0 12px 28px rgba(42, 218, 194, 0.1);
}

/* Product picker: the same asset-card behavior in a focused selection flow. */
.tool-product-picker-dialog {
  width: min(760px, calc(100vw - 40px));
  max-height: min(780px, calc(100dvh - 40px));
}

.tool-product-picker-view {
  padding: 22px 24px 26px;
}

.tool-product-picker-intro {
  margin-bottom: 14px;
}

.tool-product-picker-intro strong {
  color: rgba(247, 249, 250, 0.82);
  font-size: 12px;
  font-weight: 640;
}

.tool-product-picker-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-product-picker-card {
  aspect-ratio: 4 / 5;
  background: #171a1c;
  border-color: rgba(255, 255, 255, 0.085);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-product-picker-card:hover,
.tool-product-picker-card:focus-visible {
  background: #171a1c;
  border-color: rgba(50, 211, 232, 0.48);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  outline: none;
}

.tool-product-picker-cover {
  height: 100%;
  aspect-ratio: auto;
}

.tool-product-picker-card > span.tool-product-picker-cover {
  display: block;
  padding: 0;
}

.tool-product-picker-cover::after {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(5, 7, 8, 0.97), transparent);
  content: "";
}

.tool-product-picker-cover img {
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 0.72, 0.24, 1);
}

.tool-product-picker-card:hover img {
  transform: scale(1.025);
}

.tool-product-picker-cover i {
  z-index: 3;
  top: 9px;
  right: 9px;
  bottom: auto;
  padding: 5px 7px;
  background: rgba(7, 9, 10, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.tool-product-picker-card-copy {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  display: grid;
  min-width: 0;
  padding: 48px 12px 12px;
}

.tool-product-picker-card-copy strong,
.tool-product-picker-card-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-product-picker-card-copy strong {
  color: #f5f7f8;
  font-size: 12px;
  font-weight: 650;
}

.tool-product-picker-card-copy small {
  margin-top: 3px;
  color: rgba(235, 240, 242, 0.4);
  font-size: 8px;
}

.tool-product-picker-product-head {
  margin-bottom: 18px;
}

.tool-product-picker-product-head > button {
  width: 34px;
  min-height: 34px;
  color: #89e6ef;
  background: rgba(50, 211, 232, 0.07);
  border: 1px solid rgba(50, 211, 232, 0.13);
  border-radius: 9px;
}

.tool-product-picker-images {
  gap: 12px;
}

.tool-product-picker-images > button {
  border-radius: 13px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.tool-product-picker-images > button:not(.active) {
  opacity: 0.76;
}

.tool-product-picker-images > button:hover,
.tool-product-picker-images > button.active {
  opacity: 1;
  border-color: rgba(50, 211, 232, 0.82);
  box-shadow: inset 0 0 0 1px rgba(50, 211, 232, 0.28), 0 12px 28px rgba(0, 0, 0, 0.2);
}

.tool-product-picker-dialog > footer {
  min-height: 72px;
  padding: 12px 24px;
  border-top-color: rgba(255, 255, 255, 0.065);
}

.tool-product-picker-dialog > footer button {
  min-width: 150px;
  height: 42px;
  border-radius: 10px;
}

@keyframes product-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes product-dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 900px) {
  .product-library-header > div,
  .product-library-content,
  .product-library-page.is-detail-view .product-library-content {
    width: min(100% - 40px, 760px);
  }

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

  .product-detail-back {
    margin: 12px 0 16px;
  }

  .product-detail-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .product-detail-copy {
    min-height: 420px;
  }

  .product-editor-step {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
  }

  .tool-product-picker-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-library-header {
    padding: 30px 0 19px;
  }

  .product-library-header > div,
  .product-library-content,
  .product-library-page.is-detail-view .product-library-content {
    width: calc(100% - 28px);
  }

  .product-library-header h1 {
    font-size: 25px;
  }

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

  .product-card {
    display: block;
    aspect-ratio: 4 / 5;
  }

  .product-card-cover {
    position: absolute;
    aspect-ratio: auto;
  }

  .product-card-body {
    min-height: 0;
    padding: 54px 12px 12px;
  }

  .product-card-body strong {
    font-size: 14px;
  }

  .product-card-tags .product-tag-chip:nth-child(n + 2) {
    display: none;
  }

  .product-create-card {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }

  .product-detail-view,
  .product-detail-shell,
  .product-detail-gallery {
    width: 100%;
    max-width: none;
  }

  .product-detail-copy {
    min-height: 380px;
    padding: 22px;
  }

  .product-editor-dialog,
  .tool-product-picker-dialog {
    border-radius: 0;
    animation: none;
  }

  .product-editor-header,
  .tool-product-picker-dialog > header {
    padding-right: 16px;
    padding-left: 16px;
  }

  .product-editor-scroll {
    padding: 0 16px 12px;
  }

  .product-editor-step {
    display: block;
    padding: 20px 0;
  }

  .product-step-heading {
    margin-bottom: 13px;
  }

  .product-main-upload {
    width: 124px;
    height: 124px;
  }

  .product-editor-message {
    margin-left: 0;
  }

  .product-editor-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .tool-product-picker-view {
    padding: 18px 16px 24px;
  }

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

  .tool-product-picker-dialog > footer {
    padding-right: 16px;
    padding-left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-editor-backdrop,
  .tool-product-picker-backdrop,
  .product-editor-dialog,
  .tool-product-picker-dialog {
    animation: none !important;
  }
}

/* Product editor v49: one clean, bottom-aligned image rail. */
.product-editor-step.product-image-editor {
  grid-template-columns: 108px minmax(0, 1fr);
  column-gap: 24px;
  padding-top: 24px;
  padding-bottom: 26px;
}

.product-image-editor .product-step-heading {
  align-self: start;
  margin: 3px 0 0;
}

.product-image-editor .product-image-stage {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  width: 100%;
  min-width: 0;
}

.product-image-editor .product-main-upload {
  flex: 0 0 120px;
  width: 120px;
  height: 120px;
}

.product-image-editor .product-main-remove {
  top: 8px;
  left: 85px;
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.product-image-editor .product-angle-block {
  flex: 0 1 342px;
  width: min(342px, calc(100% - 142px));
  min-width: 0;
  margin: 0;
}

.product-image-editor .product-angle-heading {
  min-height: 20px;
  margin: 0 0 10px;
}

.product-image-editor .product-angle-heading strong {
  font-size: 10px;
  line-height: 20px;
}

.product-image-editor .product-angle-heading span {
  font-size: 8px;
  line-height: 20px;
}

.product-image-editor .product-angle-grid {
  grid-template-columns: repeat(4, 78px);
  grid-auto-rows: 78px;
  gap: 10px;
  justify-content: start;
}

.product-image-editor .product-angle-card,
.product-image-editor .product-angle-add {
  width: 78px;
  height: 78px;
  aspect-ratio: auto;
}

@media (max-width: 640px) {
  .product-editor-step.product-image-editor {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 14px;
  }

  .product-image-editor .product-image-stage {
    gap: 14px;
  }

  .product-image-editor .product-main-upload {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
  }

  .product-image-editor .product-main-remove {
    left: 71px;
  }

  .product-image-editor .product-angle-block {
    flex-basis: 254px;
    width: min(254px, calc(100% - 118px));
  }

  .product-image-editor .product-angle-grid {
    grid-template-columns: repeat(3, 78px);
  }
}

@media (max-width: 430px) {
  .product-editor-step.product-image-editor {
    display: block;
  }

  .product-image-editor .product-step-heading {
    margin-bottom: 12px;
  }

  .product-image-editor .product-image-stage {
    align-items: flex-end;
  }
}

/* Product editor v50: one shared left edge for every editable field. */
.product-editor-step:not(.product-image-editor) {
  grid-template-columns: 108px minmax(0, 1fr);
  column-gap: 24px;
}

@media (max-width: 640px) {
  .product-editor-step:not(.product-image-editor) {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 14px;
  }
}

@media (max-width: 430px) {
  .product-editor-step:not(.product-image-editor) {
    display: block;
  }

  .product-editor-step:not(.product-image-editor) .product-step-heading {
    margin-bottom: 12px;
  }
}

/* Product card v51: neutral edge, no cyan selection ring. */
.product-card,
.product-card:hover,
.product-card:active {
  border-color: rgba(255, 255, 255, 0.09);
}

.product-card:hover {
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
}

.product-card:focus-visible {
  border-color: rgba(255, 255, 255, 0.16);
  outline: 1px solid rgba(255, 255, 255, 0.18);
  outline-offset: 3px;
}

/* Product empty state v52: one quiet, unmistakable action. */
.product-library-content:has(.product-library-empty) .product-library-view {
  transform: translateY(-28px);
}

.product-library-empty {
  min-height: min(560px, calc(100dvh - 250px));
  padding: 0;
}

.product-library-empty .product-library-empty-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 136px;
  height: 46px;
  padding: 0 19px;
  color: #a9edf4;
  background: rgba(50, 211, 232, 0.075);
  border: 1px solid rgba(69, 219, 236, 0.26);
  border-radius: 12px;
  box-shadow: none;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.product-library-empty .product-library-empty-action span {
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.product-library-empty .product-library-empty-action strong {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.product-library-empty .product-library-empty-action:hover,
.product-library-empty .product-library-empty-action:focus-visible {
  color: #d8fbff;
  background: rgba(50, 211, 232, 0.12);
  border-color: rgba(89, 229, 244, 0.45);
  outline: none;
  transform: translateY(-1px);
}

.product-library-empty .product-library-empty-action:active {
  transform: translateY(0);
}

/* Product empty state v53: make creation a header action, not a floating empty-state ornament. */
.product-library-header-create {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 116px;
  height: 42px;
  padding: 0 17px;
  color: #0b0d0e;
  background: #eef2f3;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 680;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.product-library-header-create span {
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}

.product-library-page:has(.product-library-empty) .product-library-header-create {
  display: inline-flex;
}

.product-library-header-create:hover,
.product-library-header-create:focus-visible {
  background: #ffffff;
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.28);
  outline: none;
  transform: translateY(-1px);
}

.product-library-header-create:active {
  transform: translateY(0);
}

.product-library-content:has(.product-library-empty) {
  display: block;
  min-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.product-library-content:has(.product-library-empty) .product-library-view {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
}

.product-library-content:has(.product-library-empty) .product-library-empty {
  display: none;
}

@media (max-width: 900px) {
  .product-library-page:has(.product-library-empty) .product-library-header-create {
    align-self: flex-start;
  }
}

/* Product empty state v54: CTA belongs to the title block. */
.product-library-header-create {
  min-width: 104px;
  height: 38px;
  margin-top: 18px;
  padding: 0 15px;
  color: rgba(247, 249, 250, 0.86);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 650;
}

.product-library-header-create:hover,
.product-library-header-create:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

/* Product empty state v55: reference-matched create button. */
.product-library-header-create {
  gap: 11px;
  width: 134px;
  min-width: 134px;
  height: 44px;
  padding: 0 18px;
  color: #ffffff;
  background: #4b8ded;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(40, 104, 205, 0.3);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-library-header-create svg {
  flex: 0 0 23px;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-library-header-create:hover,
.product-library-header-create:focus-visible {
  color: #ffffff;
  background: #5697f1;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(40, 104, 205, 0.34);
}

.product-library-header-create:active {
  background: #4384e2;
  box-shadow: 0 5px 12px rgba(40, 104, 205, 0.26);
}

/* Product editor v56: compact single-column asset editor. */
.product-editor-dialog {
  width: min(650px, calc(100vw - 40px));
  max-height: min(740px, calc(100dvh - 40px));
  background:
    radial-gradient(circle at 86% -18%, rgba(75, 141, 237, 0.08), transparent 34%),
    #111315;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 36px 96px rgba(0, 0, 0, 0.68);
}

.product-editor-header {
  min-height: 60px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.012);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.product-editor-header h2 {
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.product-editor-close {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.product-editor-scroll {
  display: block;
  padding: 6px 24px 12px;
}

.product-editor-step,
.product-editor-step.product-image-editor,
.product-editor-step:not(.product-image-editor) {
  display: block;
  padding: 18px 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.product-editor-step:last-of-type {
  border-bottom: 0;
}

.product-editor-step .product-step-heading,
.product-image-editor .product-step-heading,
.product-editor-step:not(.product-image-editor) .product-step-heading {
  min-height: 0;
  margin: 0 0 11px;
}

.product-editor-step .product-step-heading strong {
  color: rgba(244, 247, 248, 0.72);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.product-image-editor .product-image-stage {
  display: flex;
  align-items: flex-end;
  gap: 18px;
}

.product-image-editor .product-main-upload {
  flex: 0 0 112px;
  width: 112px;
  height: 112px;
  background: #181b1d;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 13px;
}

.product-image-editor .product-main-upload:not(.has-image) {
  border-style: dashed;
}

.product-main-remove[hidden] {
  display: none !important;
}

.product-image-editor .product-main-remove {
  top: 8px;
  left: 78px;
  width: 25px;
  height: 25px;
}

.product-image-editor .product-angle-block {
  flex: 0 1 342px;
  width: min(342px, calc(100% - 130px));
}

.product-editor-field input {
  height: 42px;
  padding: 0 13px;
  color: rgba(249, 250, 251, 0.9);
  background: #171a1c;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  font-size: 12px;
}

.product-editor-field input:focus {
  border-color: rgba(75, 141, 237, 0.62);
  box-shadow: 0 0 0 3px rgba(75, 141, 237, 0.07);
}

.product-tag-editor {
  min-height: 82px;
  gap: 8px;
  padding: 11px 13px;
  background: #171a1c;
  border-color: rgba(255, 255, 255, 0.09);
  border-radius: 11px;
}

.product-tag-editor-list:empty {
  display: none;
}

.product-tag-editor-input {
  min-height: 32px;
  margin-top: auto;
}

.product-tag-editor:focus-within {
  border-color: rgba(75, 141, 237, 0.62);
  box-shadow: 0 0 0 3px rgba(75, 141, 237, 0.07);
}

.product-tag-editor-meta {
  margin-top: 5px;
}

.product-editor-footer {
  min-height: 64px;
  padding: 11px 22px;
  background: rgba(255, 255, 255, 0.01);
  border-top-color: rgba(255, 255, 255, 0.07);
}

.product-editor-footer button {
  height: 40px;
  border-radius: 9px;
  font-size: 11px;
}

.product-editor-footer .primary {
  min-width: 132px;
  box-shadow: 0 10px 22px rgba(42, 218, 194, 0.1);
}

.product-editor-message {
  margin: 8px 0 0;
}

@media (max-width: 720px) {
  .product-editor-dialog {
    width: 100vw;
    height: 100dvh;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .product-editor-scroll {
    padding-right: 16px;
    padding-left: 16px;
  }
}

/* Product editor v57: proportionally larger without changing the layout. */
@media (min-width: 721px) {
  .product-editor-dialog {
    width: min(690px, calc(100vw - 40px));
    max-height: min(780px, calc(100dvh - 40px));
  }

  .product-editor-header {
    min-height: 64px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .product-editor-header h2 {
    font-size: 19px;
  }

  .product-editor-close {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .product-editor-scroll {
    padding-right: 26px;
    padding-left: 26px;
  }

  .product-editor-step,
  .product-editor-step.product-image-editor,
  .product-editor-step:not(.product-image-editor) {
    padding-top: 20px;
    padding-bottom: 22px;
  }

  .product-editor-step .product-step-heading {
    margin-bottom: 12px;
  }

  .product-editor-step .product-step-heading strong {
    font-size: 12px;
  }

  .product-image-editor .product-main-upload {
    flex-basis: 120px;
    width: 120px;
    height: 120px;
  }

  .product-image-editor .product-main-remove {
    left: 85px;
    width: 26px;
    height: 26px;
  }

  .product-image-editor .product-angle-block {
    width: min(352px, calc(100% - 140px));
  }

  .product-editor-field input {
    height: 46px;
    padding-right: 15px;
    padding-left: 15px;
    font-size: 13px;
  }

  .product-tag-editor {
    min-height: 90px;
    padding: 13px 15px;
  }

  .product-tag-editor-input input {
    font-size: 12px;
  }

  .product-editor-footer {
    min-height: 68px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .product-editor-footer button {
    height: 42px;
    font-size: 12px;
  }

  .product-editor-footer .primary {
    min-width: 140px;
  }
}

/* Product create button v58: layered finish, quieter icon and type. */
.product-library-header-create {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  gap: 10px;
  width: 134px;
  min-width: 134px;
  height: 44px;
  padding: 0 18px;
  color: rgba(255, 255, 255, 0.96);
  background: linear-gradient(180deg, #5a98f1 0%, #4a88e9 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.19),
    inset 0 -1px 0 rgba(27, 73, 145, 0.16),
    0 9px 22px rgba(30, 91, 184, 0.28),
    0 2px 5px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 660;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(19, 61, 126, 0.24);
}

.product-library-header-create::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 52%);
  content: "";
  pointer-events: none;
}

.product-library-header-create svg {
  flex-basis: 18px;
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  filter: drop-shadow(0 1px 1px rgba(20, 59, 119, 0.2));
}

.product-library-header-create:hover,
.product-library-header-create:focus-visible {
  color: #ffffff;
  background: linear-gradient(180deg, #64a0f4 0%, #5190ed 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(27, 73, 145, 0.14),
    0 11px 26px rgba(30, 91, 184, 0.32),
    0 2px 5px rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.product-library-header-create:active {
  background: linear-gradient(180deg, #4784e1 0%, #417ddb 100%);
  box-shadow:
    inset 0 1px 2px rgba(23, 66, 134, 0.22),
    0 4px 10px rgba(30, 91, 184, 0.22);
  transform: translateY(0);
}

/* Product detail v60: visually center against the full viewport, including the rail. */
@media (min-width: 1281px) {
  .product-library-page.is-detail-view .product-library-content {
    transform: translateX(-82px);
  }
}

@media (min-width: 721px) and (max-width: 1280px) {
  .product-library-page.is-detail-view .product-library-content {
    transform: translateX(-46px);
  }
}

@media (max-width: 720px) {
  .product-library-page.is-detail-view .product-library-content {
    transform: none;
  }
}
.private-release-viewer {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.private-release-viewer.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.private-release-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 6, .76);
  backdrop-filter: blur(14px);
}

.private-release-viewer__panel {
  position: relative;
  width: min(620px, calc(100vw - 40px));
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 38px;
  border: 1px solid rgba(130, 153, 157, .22);
  border-radius: 26px;
  color: #f5f7f7;
  background:
    radial-gradient(circle at 86% 8%, rgba(49, 202, 214, .11), transparent 32%),
    linear-gradient(145deg, #151a1c 0%, #0d1113 100%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .58), inset 0 1px rgba(255, 255, 255, .035);
  transform: translateY(10px) scale(.985);
  transition: transform 180ms ease;
}

.private-release-viewer.is-visible .private-release-viewer__panel {
  transform: translateY(0) scale(1);
}

.private-release-viewer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0 0 3px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
  color: #9ca7a9;
  background: rgba(255, 255, 255, .045);
  font: 300 25px/1 system-ui, sans-serif;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}

.private-release-viewer__close:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09);
}

.private-release-viewer__eyebrow {
  color: #3ad0dc;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .2em;
}

.private-release-viewer__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-top: 16px;
}

.private-release-viewer__heading h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1;
  letter-spacing: -.04em;
}

.private-release-viewer__heading p {
  margin: 12px 0 0;
  color: #c8cfd0;
  font-size: 17px;
  font-weight: 600;
}

.private-release-viewer__date {
  flex: 0 0 auto;
  padding-bottom: 2px;
  color: #707b7e;
  font-size: 13px;
}

.private-release-viewer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.private-release-viewer__meta span {
  padding: 7px 10px;
  border: 1px solid rgba(107, 132, 136, .18);
  border-radius: 999px;
  color: #8b999b;
  background: rgba(255, 255, 255, .025);
  font-size: 12px;
}

.private-release-viewer__summary {
  margin: 28px 0 20px;
  color: #9aa5a7;
  font-size: 14px;
  line-height: 1.75;
}

.private-release-viewer__changes {
  border-top: 1px solid rgba(255, 255, 255, .07);
}

.private-release-viewer__change {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 17px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.private-release-viewer__change > span {
  color: #3bcbd6;
  font: 650 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .08em;
}

.private-release-viewer__change p {
  margin: 0;
  color: #d0d6d7;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 620px) {
  .private-release-viewer {
    padding: 18px;
  }

  .private-release-viewer__panel {
    width: 100%;
    padding: 30px 24px 24px;
    border-radius: 22px;
  }

  .private-release-viewer__heading {
    display: block;
  }

  .private-release-viewer__date {
    display: block;
    margin-top: 12px;
  }
}

/* Credit records shares the recharge center's account-first dark language. */
.credit-records-modal {
  padding: 24px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(2.5px);
}

.credit-records-dialog {
  width: min(590px, calc(100vw - 48px));
  max-height: min(700px, calc(100vh - 48px));
  padding: 20px 24px 18px;
  color: rgba(247, 248, 249, 0.92);
  background: #121313;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 13px;
  box-shadow: 0 32px 88px rgba(0, 0, 0, 0.54);
}

.credit-records-dialog .wallet-close-button {
  top: 13px;
  right: 13px;
  z-index: 3;
  width: 28px;
  height: 28px;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-family: Arial, sans-serif;
  font-size: 27px;
  font-weight: 300;
}

.credit-records-dialog .wallet-close-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.credit-records-account-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding-right: 44px;
}

.credit-records-account-avatar {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.credit-records-account-head > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.credit-records-account-head strong {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.credit-records-account-head strong small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 450;
}

.credit-records-account-head > div > span {
  color: rgba(227, 229, 232, 0.68);
  font-size: 13px;
  font-weight: 410;
}

.credit-records-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
  margin-top: 18px;
  padding: 0 2px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.credit-records-summary h2 {
  margin: 0;
  color: rgba(248, 250, 250, 0.96);
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.credit-records-summary p {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.credit-records-summary .credit-records-balance-label {
  color: rgba(223, 228, 229, 0.5);
  font-size: 12px;
  font-weight: 560;
  line-height: 1;
  white-space: nowrap;
}

.credit-records-balance-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 84px;
}

.credit-records-summary p strong {
  color: #37d6d7;
  font-family: Inter, "SF Pro Display", sans-serif;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.credit-records-filter {
  gap: 8px;
  margin-top: 14px;
  padding: 0;
  border: 0;
}

.credit-records-filter label {
  gap: 5px;
}

.credit-records-filter label span {
  color: rgba(225, 231, 232, 0.54);
  font-size: 11px;
  font-weight: 500;
}

.credit-records-filter input {
  height: 34px;
  color: rgba(238, 243, 242, 0.88);
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.075);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
}

.credit-records-filter button {
  height: 34px;
  margin-top: 3px;
  color: rgba(212, 247, 244, 0.92);
  background: rgba(55, 214, 215, 0.12);
  border-color: rgba(55, 214, 215, 0.26);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 620;
}

.credit-records-filter button[data-reset-credit-records] {
  color: rgba(221, 227, 228, 0.66);
  background: #181a1d;
  border-color: rgba(255, 255, 255, 0.065);
}

.credit-records-count {
  margin: 16px 0 7px;
  color: rgba(224, 230, 230, 0.48);
  font-size: 11px;
  font-weight: 500;
}

.credit-records-list {
  max-height: min(284px, 32vh);
  gap: 8px;
  padding-right: 2px;
  border: 0;
}

.credit-record-item {
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 62px;
  padding: 11px 12px;
  background: #181a1d;
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 11px;
}

.credit-record-item:hover {
  background: #1d2023;
}

.credit-record-sign {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 650;
}

.credit-record-item strong {
  color: rgba(245, 248, 248, 0.92);
  font-size: 13px;
  font-weight: 600;
}

.credit-record-item p {
  margin-top: 4px;
  color: rgba(203, 212, 212, 0.47);
  font-size: 11px;
  font-weight: 480;
}

.credit-record-item b {
  font-size: 18px;
  font-weight: 700;
}

@media (max-width: 620px) {
  .credit-records-modal {
    padding: 14px;
  }

  .credit-records-dialog {
    width: 100%;
    max-height: calc(100vh - 28px);
    padding: 20px 18px 16px;
    border-radius: 13px;
  }

  .credit-records-summary {
    padding: 0 14px;
  }
}

/* Credit balance and recharge are one joined control, not two separated pills. */
.koozee-wallet-actions {
  display: inline-flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-radius: 999px;
  isolation: isolate;
}

.koozee-wallet-actions .koozee-credit {
  margin: 0;
  border-radius: 999px 0 0 999px;
}

.koozee-wallet-actions .koozee-recharge {
  margin: 0;
  border-radius: 0 999px 999px 0;
}

body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions > button {
  height: 32px;
  color: #f0dac8;
  font-size: 13px;
  font-weight: 740;
  letter-spacing: 0;
}

body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions .koozee-credit {
  position: relative;
  z-index: 1;
  min-width: 86px;
  padding: 0 20px 0 10px;
  overflow: visible;
  border-radius: 999px;
  isolation: isolate;
}

/* Extend the left balance background behind the recharge pill, so its curved
   edge never exposes the page background above or below the join. */
body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions .koozee-credit::after {
  position: absolute;
  top: 0;
  right: -16px;
  z-index: 0;
  width: 32px;
  height: 100%;
  content: "";
  background: rgba(49, 35, 30, 0.88);
}

body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions .koozee-credit > span,
body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions .koozee-credit > b {
  position: relative;
  z-index: 1;
}

body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions .koozee-recharge {
  position: relative;
  z-index: 2;
  margin-left: -16px;
  color: #40271b !important;
  border-radius: 999px;
}

body:has(.koozee-home) .koozee-session-strip .koozee-wallet-actions {
  overflow: visible;
}

/* 引力豆：所有引力豆入口共用同一枚低饱和度图标。 */
.credit-bean,
.koozee-credit span {
  display: inline-block;
  flex: 0 0 auto;
  background: center / contain no-repeat url("/site-media/images/gravity-bean-v1.png");
  filter: saturate(0.62) brightness(1.18) contrast(0.9);
}

body:has(.koozee-home) .koozee-session-strip .koozee-credit span {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  align-self: center;
  background-position: center;
  transform: translateY(-0.5px);
}

.credit-bean {
  width: 16px;
  height: 16px;
  vertical-align: -2px;
}

.credit-price,
.credit-cost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}

.credit-price {
  gap: 9px;
}

.credit-cost {
  gap: 6px;
}

.credit-cost::before {
  content: "·";
  display: inline-block;
  margin-right: 1px;
  line-height: 1;
  transform: translateY(-1px);
}

.credit-cost b {
  display: inline-block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.credit-cost .credit-cost-bean {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  vertical-align: 0;
}

.credits-balance-line .credits-balance-label {
  margin-left: auto;
  color: rgba(231, 233, 236, 0.38);
  font-size: 10.5px;
}

.credits-balance-line .credits-balance-bean {
  width: 15px;
  height: 15px;
  vertical-align: 0;
}

.recharge-credit-options button > i.recharge-plan-bean,
.recharge-credit-options button.active > i.recharge-plan-bean {
  display: block;
  width: 20px;
  height: 20px;
  align-self: center;
  justify-self: center;
  background: center / contain no-repeat url("/site-media/images/gravity-bean-v1.png");
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: saturate(0.62) brightness(1.18) contrast(0.9);
  vertical-align: 0;
}

.wallet-arrival-box strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wallet-arrival-bean {
  width: 20px;
  height: 20px;
  vertical-align: 0;
}

.credit-record-sign .credit-record-bean {
  width: 18px;
  height: 18px;
  vertical-align: 0;
}

.credit-records-summary p {
  gap: 12px;
}

.credit-records-balance-bean {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  vertical-align: 0;
}

.member-menu-head .member-menu-head-balance,
.header-user-copy small,
.header-user-panel-head small {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.member-menu-credit-bean,
.header-credit-bean {
  width: 14px;
  height: 14px;
  vertical-align: 0;
}

/* A single source image prevents the MiniMax waveform from changing size between states. */
body:has(.prompt-workspace) .prompt-model-tabs .minimax-h3-tab-icon {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0;
  object-fit: contain;
  opacity: 1;
  transform: translateY(-1px) scale(1.16);
  filter: grayscale(1) saturate(0) brightness(1.25) contrast(0.78) !important;
}


body:has(.prompt-workspace) .prompt-model-tabs button:has(.minimax-h3-tab-icon) strong {
  margin-top: 3px;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active .minimax-h3-tab-icon {
  filter: none !important;
}

/* Model tabs share one 30px icon canvas; provider artwork must not change cell balance. */
body:has(.prompt-workspace) .prompt-model-tabs .model-icon,
body:has(.prompt-workspace) .prompt-model-tabs .model-icon::before,
body:has(.prompt-workspace) .prompt-model-tabs .model-icon::after {
  width: 30px;
  height: 30px;
}

body:has(.prompt-workspace) .prompt-model-tabs .minimax-h3-tab-icon {
  transform: translateY(-1px);
}

body:has(.prompt-workspace) .prompt-model-tabs .sd25-model-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  transform: translateY(-1px);
}

/* HappyHorse uses the supplied official horse mark. Normalise its raster bounds;
   the idle/active colour rules live with the base icon rule above. */
body:has(.prompt-workspace) .prompt-model-tabs .happyhorse-video-edit-tab-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  transform: translateY(-1px);
}

/* The GPT SVG artwork has built-in whitespace, so it needs a larger canvas to match the 30px visible marks. */
body:has(.prompt-workspace) .prompt-model-tabs .model-icon.gpt {
  width: 40px;
  height: 40px;
}

/* Visible models share a single equal-width row; hidden integrations do not consume a slot. */
body:has(.prompt-workspace) .prompt-model-tabs {
  grid-template-columns: repeat(var(--model-count, 8), minmax(0, 1fr));
  grid-auto-flow: row;
  overflow-x: auto;
  overflow-y: hidden;
}

body:has(.prompt-workspace) .prompt-model-tabs button[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .prompt-model-tabs::before {
  left: calc(var(--model-index) * (100% / var(--model-count, 8)));
  width: calc(100% / var(--model-count, 8));
}

body:has(.prompt-workspace) .prompt-model-tabs::after {
  left: calc((var(--model-index) + 0.25) * (100% / var(--model-count, 8)));
  width: calc(50% / var(--model-count, 8));
}

/* Model-tab contract: every tab has one icon row and one name row. Keep this
   final so provider-specific artwork cannot disturb the shared grid. */
body:has(.prompt-workspace) .prompt-model-tabs button {
  display: grid;
  grid-template-rows: 30px 14px;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  row-gap: 4px;
  padding: 5px 8px 7px;
}

body:has(.prompt-workspace) .prompt-model-tabs button .model-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .minimax-h3-tab-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .happyhorse-video-edit-tab-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .sd25-model-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .sd20-model-icon {
  grid-row: 1;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  align-self: center;
  justify-self: center;
  transform: none;
}

/* GPT Image 2's SVG viewBox is normalised to the same 30px icon canvas. */
body:has(.prompt-workspace) .prompt-model-tabs button .model-icon.gpt {
  grid-row: 1;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  margin: 0;
  align-self: center;
  justify-self: center;
  transform: none;
}

body:has(.prompt-workspace) .prompt-model-tabs button strong,
body:has(.prompt-workspace) .prompt-model-tabs button:has(.model-icon.banana) strong,
body:has(.prompt-workspace) .prompt-model-tabs button:has(.minimax-h3-tab-icon) strong {
  grid-row: 2;
  align-self: center;
  width: 100%;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: currentColor;
  font-size: 13px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
}

body:has(.prompt-workspace) .prompt-model-tabs button.active strong {
  font-weight: 500;
}

body:has(.prompt-workspace) .prompt-model-tabs button .model-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .minimax-h3-tab-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .happyhorse-video-edit-tab-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .sd25-model-icon,
body:has(.prompt-workspace) .prompt-model-tabs button .sd20-model-icon {
  width: 30px !important;
  height: 36px !important;
  transform: none !important;
}

body:has(.prompt-workspace) .prompt-model-tabs button strong,
body:has(.prompt-workspace) .prompt-model-tabs button:has(.model-icon.banana) strong,
body:has(.prompt-workspace) .prompt-model-tabs button:has(.minimax-h3-tab-icon) strong {
  grid-row: 2 !important;
  margin: 0 !important;
  font-weight: 500 !important;
  line-height: 14px !important;
}

/* MiniMax H3: type @ in the prompt to select an already uploaded reference image. */
body:has(.prompt-workspace) .minimax-h3-mention-menu {
  position: absolute;
  z-index: 70;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  width: 330px;
  max-width: min(330px, calc(100% - 16px));
  padding: 12px 10px;
  background: rgba(36, 36, 36, 0.99);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}

body:has(.prompt-workspace) .minimax-h3-mention-menu[hidden] {
  display: none !important;
}

body:has(.prompt-workspace) .minimax-h3-mention-menu button {
  display: flex;
  min-width: 0;
  height: 48px;
  align-items: center;
  gap: 12px;
  padding: 4px 7px;
  color: rgba(244, 245, 247, 0.92);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-size: 15px;
  font-weight: 480;
}

body:has(.prompt-workspace) .minimax-h3-mention-menu button:hover,
body:has(.prompt-workspace) .minimax-h3-mention-menu button:focus-visible {
  color: rgba(238, 252, 250, 0.96);
  background: rgba(255, 255, 255, 0.065);
  border-color: transparent;
  outline: none;
}

body:has(.prompt-workspace) .minimax-h3-mention-menu img {
  display: block;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
}

body:has(.prompt-workspace) .minimax-h3-mention-menu span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Native file drops use the same upload controls as click-to-upload, with a
   quiet visual affordance while the pointer is carrying files. */
.prompt-add-image.is-file-dragover,
.kling-editor-v2-upload.is-file-dragover {
  color: rgba(238, 255, 251, .98);
  background: rgba(62, 81, 82, .92);
  border-color: rgba(96, 226, 212, .7);
  box-shadow: 0 0 0 2px rgba(82, 226, 210, .16), 0 8px 18px rgba(0, 0, 0, .16);
}

/* Final priority: workflow uses the same neutral rail color treatment. */
body:has(.koozee-home) .koozee-rail .workflow-rail-entry,
body:has(.koozee-home) .koozee-rail .workflow-rail-entry:focus-visible {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  gap: 0;
  color: #85878b;
  background: transparent;
  border-radius: 10px;
}

body:has(.koozee-home) .koozee-rail .workflow-rail-entry:not(.active):hover,
body:has(.koozee-home) .koozee-rail .workflow-rail-entry:not(.active):focus-visible {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail .workflow-rail-entry.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-rail .workflow-rail-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.12s ease;
}

body:has(.koozee-home) .koozee-rail .workflow-rail-icon--idle {
  opacity: 1;
  filter: none;
}

body:has(.koozee-home) .koozee-rail .workflow-rail-icon--hover,
body:has(.koozee-home) .koozee-rail .workflow-rail-icon--active {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail .workflow-rail-icon--hover {
  filter: brightness(0);
}

body:has(.koozee-home) .koozee-rail .workflow-rail-icon--active {
  filter: brightness(0) invert(1);
}

body:has(.koozee-home) .koozee-rail .workflow-rail-entry:not(.active):hover .workflow-rail-icon--idle,
body:has(.koozee-home) .koozee-rail .workflow-rail-entry:not(.active):focus-visible .workflow-rail-icon--idle {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail .workflow-rail-entry:not(.active):hover .workflow-rail-icon--hover,
body:has(.koozee-home) .koozee-rail .workflow-rail-entry:not(.active):focus-visible .workflow-rail-icon--hover,
body:has(.koozee-home) .koozee-rail .workflow-rail-entry.active .workflow-rail-icon--active {
  opacity: 1;
}

body:has(.koozee-home) .home-v2-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin: 54px 0 10px;
  padding: 24px 26px;
  color: rgba(242, 246, 246, 0.88);
  background:
    radial-gradient(circle at 8% 20%, rgba(55, 214, 215, 0.11), transparent 30%),
    #111315;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 42px rgba(0, 0, 0, 0.2);
}

body:has(.koozee-home) .home-v2-bridge-copy {
  min-width: 0;
}

body:has(.koozee-home) .home-v2-bridge-copy > span {
  color: #6ee5dc;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body:has(.koozee-home) .home-v2-bridge-copy h2 {
  margin-top: 5px;
  color: #f5f8f8;
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

body:has(.koozee-home) .home-v2-bridge-copy p {
  max-width: 620px;
  margin-top: 5px;
  color: rgba(220, 229, 229, 0.52);
  font-size: 13px;
  line-height: 1.6;
}

body:has(.koozee-home) .home-v2-bridge-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

body:has(.koozee-home) .home-v2-bridge-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 13px;
  color: rgba(244, 248, 248, 0.8);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 680;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

body:has(.koozee-home) .home-v2-bridge-actions a:last-child {
  color: #071517;
  background: #63d9d3;
  border-color: #63d9d3;
}

body:has(.koozee-home) .home-v2-bridge-actions a:hover,
body:has(.koozee-home) .home-v2-bridge-actions a:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.18);
  outline: none;
  transform: translateY(-1px);
}

body:has(.koozee-home) .home-v2-bridge-actions a:last-child:hover,
body:has(.koozee-home) .home-v2-bridge-actions a:last-child:focus-visible {
  color: #071517;
  background: #82e9e1;
  border-color: #82e9e1;
}

/* New workbench icon. The house icon above remains the homepage icon. */
body:has(.koozee-home) .koozee-rail .koozee-workbench-entry,
body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:focus-visible {
  display: grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  color: rgba(255, 255, 255, 0.52);
  background: transparent;
  border-radius: 10px;
}

body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:not(.active):hover,
body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:not(.active):focus-visible {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail .koozee-workbench-entry.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-workbench-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 22px;
  height: 22px;
  object-fit: contain;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 120ms ease;
}

body:has(.koozee-home) .koozee-workbench-icon--idle {
  opacity: 1;
  filter: none;
}

body:has(.koozee-home) .koozee-workbench-icon--hover,
body:has(.koozee-home) .koozee-workbench-icon--active {
  opacity: 0;
}

body:has(.koozee-home) .koozee-workbench-icon--hover {
  filter: brightness(0);
}

body:has(.koozee-home) .koozee-workbench-icon--active {
  filter: brightness(0) invert(1);
}

body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:not(.active):hover .koozee-workbench-icon--idle,
body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:not(.active):focus-visible .koozee-workbench-icon--idle {
  opacity: 0;
}

body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:not(.active):hover .koozee-workbench-icon--hover,
body:has(.koozee-home) .koozee-rail .koozee-workbench-entry:not(.active):focus-visible .koozee-workbench-icon--hover,
body:has(.koozee-home) .koozee-workbench-entry.active .koozee-workbench-icon--active {
  opacity: 1;
}

/* Product Card menu icon: outline at rest and hover, solid only when active. */
body:has(.koozee-home) .koozee-rail .koozee-product-card-entry,
body:has(.koozee-home) .koozee-rail .koozee-product-card-entry:focus-visible {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  color: #85878b;
  background: transparent;
  border-radius: 10px;
}

body:has(.koozee-home) .koozee-rail .koozee-product-card-entry:not(.active):hover,
body:has(.koozee-home) .koozee-rail .koozee-product-card-entry:not(.active):focus-visible {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail .koozee-product-card-entry.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-product-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: none !important;
  object-fit: contain !important;
  pointer-events: none;
  transform: translate(-50%, -50%) !important;
  transition: opacity 120ms ease;
}

body:has(.koozee-home) .koozee-product-card-icon--idle {
  opacity: 1 !important;
  filter: none !important;
}

body:has(.koozee-home) .koozee-product-card-icon--hover,
body:has(.koozee-home) .koozee-product-card-icon--active {
  opacity: 0 !important;
}

body:has(.koozee-home) .koozee-product-card-icon--hover {
  filter: brightness(0) !important;
}

body:has(.koozee-home) .koozee-product-card-icon--active {
  filter: brightness(0) invert(1) !important;
}

body:has(.koozee-home) .koozee-product-card-entry:not(.active):hover .koozee-product-card-icon--idle,
body:has(.koozee-home) .koozee-product-card-entry:not(.active):focus-visible .koozee-product-card-icon--idle {
  opacity: 0 !important;
}

body:has(.koozee-home) .koozee-product-card-entry:not(.active):hover .koozee-product-card-icon--hover,
body:has(.koozee-home) .koozee-product-card-entry:not(.active):focus-visible .koozee-product-card-icon--hover,
body:has(.koozee-home) .koozee-product-card-entry.active .koozee-product-card-icon--active {
  opacity: 1 !important;
}

body:has(.koozee-home) .koozee-rail .koozee-product-card-entry.active .koozee-product-card-icon--idle,
body:has(.koozee-home) .koozee-rail .koozee-product-card-entry.active .koozee-product-card-icon--hover {
  opacity: 0 !important;
}

/* Membership rail icon: homepage-grey outline at rest, outline on hover, filled when selected. */
body:has(.koozee-home) .koozee-rail .koozee-membership-entry,
body:has(.koozee-home) .koozee-rail .koozee-membership-entry:focus-visible {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  color: #858586;
  background: transparent;
  border-radius: 10px;
}

body:has(.koozee-home) .koozee-rail .koozee-membership-entry:not(.active):hover,
body:has(.koozee-home) .koozee-rail .koozee-membership-entry:not(.active):focus-visible {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail .koozee-membership-entry.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-membership-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: none !important;
  object-fit: contain !important;
  pointer-events: none;
  transform: translate(-50%, -50%) !important;
  transition: opacity 120ms ease;
}

body:has(.koozee-home) .koozee-membership-icon--idle {
  opacity: 1 !important;
  filter: none !important;
}

body:has(.koozee-home) .koozee-membership-icon--hover,
body:has(.koozee-home) .koozee-membership-icon--active {
  opacity: 0 !important;
}

body:has(.koozee-home) .koozee-membership-icon--hover {
  filter: brightness(0) !important;
}

body:has(.koozee-home) .koozee-membership-icon--active {
  filter: brightness(0) invert(1) !important;
}

body:has(.koozee-home) .koozee-membership-entry:not(.active):hover .koozee-membership-icon--idle,
body:has(.koozee-home) .koozee-membership-entry:not(.active):focus-visible .koozee-membership-icon--idle,
body:has(.koozee-home) .koozee-membership-entry.active .koozee-membership-icon--idle,
body:has(.koozee-home) .koozee-membership-entry.active .koozee-membership-icon--hover {
  opacity: 0 !important;
}

body:has(.koozee-home) .koozee-membership-entry:not(.active):hover .koozee-membership-icon--hover,
body:has(.koozee-home) .koozee-membership-entry:not(.active):focus-visible .koozee-membership-icon--hover,
body:has(.koozee-home) .koozee-membership-entry.active .koozee-membership-icon--active {
  opacity: 1 !important;
}

/* Model Card rail icon: homepage-grey outline at rest, outline on hover, filled when selected. */
body:has(.koozee-home) .koozee-rail .koozee-model-card-entry,
body:has(.koozee-home) .koozee-rail .koozee-model-card-entry:focus-visible {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  color: #858586;
  background: transparent;
  border-radius: 10px;
}

body:has(.koozee-home) .koozee-rail .koozee-model-card-entry:not(.active):hover,
body:has(.koozee-home) .koozee-rail .koozee-model-card-entry:not(.active):focus-visible {
  color: #050607;
  background: #27cee6;
  box-shadow: 0 0 18px rgba(39, 206, 230, 0.12);
}

body:has(.koozee-home) .koozee-rail .koozee-model-card-entry.active {
  color: #fff;
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .koozee-model-card-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block !important;
  width: 22px !important;
  height: 22px !important;
  max-width: none !important;
  object-fit: contain !important;
  pointer-events: none;
  transform: translate(-50%, -50%) !important;
  transition: opacity 120ms ease;
}

body:has(.koozee-home) .koozee-model-card-icon--idle {
  opacity: 1 !important;
  filter: none !important;
}

body:has(.koozee-home) .koozee-model-card-icon--hover,
body:has(.koozee-home) .koozee-model-card-icon--active {
  opacity: 0 !important;
}

body:has(.koozee-home) .koozee-model-card-icon--hover {
  filter: brightness(0) !important;
}

body:has(.koozee-home) .koozee-model-card-icon--active {
  filter: brightness(0) invert(1) !important;
}

body:has(.koozee-home) .koozee-model-card-entry:not(.active):hover .koozee-model-card-icon--idle,
body:has(.koozee-home) .koozee-model-card-entry:not(.active):focus-visible .koozee-model-card-icon--idle,
body:has(.koozee-home) .koozee-model-card-entry.active .koozee-model-card-icon--idle,
body:has(.koozee-home) .koozee-model-card-entry.active .koozee-model-card-icon--hover {
  opacity: 0 !important;
}

body:has(.koozee-home) .koozee-model-card-entry:not(.active):hover .koozee-model-card-icon--hover,
body:has(.koozee-home) .koozee-model-card-entry:not(.active):focus-visible .koozee-model-card-icon--hover,
body:has(.koozee-home) .koozee-model-card-entry.active .koozee-model-card-icon--active {
  opacity: 1 !important;
}

/* Canvas badge replaces the old course "New" marker. */
body:has(.koozee-home) .koozee-rail .workflow-rail-entry .koozee-workflow-badge {
  position: absolute;
  top: -7px;
  right: -35px;
  z-index: 2;
  display: block;
  width: 54px;
  height: 18px;
  max-width: none;
  pointer-events: none;
}

/* The homepage is an empty shell; the existing workbench is shown only in its own state. */
body:has(.koozee-home):not(.workbench-open) .koozee-main > .koozee-content {
  display: none;
}

body:has(.koozee-home).workbench-open .koozee-main > .koozee-content {
  display: block;
}

/* Homepage showcase: a quiet, cinematic video carousel with one focused frame. */
body:has(.koozee-home) .home-showcase {
  position: relative;
  display: block;
  min-height: calc(100vh - 70px);
  margin-top: 70px;
  overflow: hidden;
  background: #08090a;
}

body:has(.koozee-home).workbench-open .home-showcase {
  display: none;
}

body:has(.koozee-home) .home-showcase-viewport {
  position: relative;
  width: 100%;
  height: clamp(220px, 15.15vw, 520px);
  margin-top: clamp(94px, calc(5vh + 66px), 136px);
  overflow: visible;
}

body:has(.koozee-home) .home-showcase-card {
  position: absolute;
  top: 50%;
  width: min(23.2vw, 800px);
  height: auto;
  aspect-ratio: 1.76 / 1;
  overflow: hidden;
  background: #15171a;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.32);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: left 560ms cubic-bezier(.22, .72, .24, 1), right 560ms cubic-bezier(.22, .72, .24, 1), width 560ms cubic-bezier(.22, .72, .24, 1), opacity 420ms ease, transform 560ms cubic-bezier(.22, .72, .24, 1), filter 420ms ease;
}

body:has(.koozee-home) .home-showcase-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #131517;
}

body:has(.koozee-home) .home-showcase-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(4, 5, 7, .58);
  pointer-events: none;
  transition: background 420ms ease;
}

body:has(.koozee-home) .home-showcase-card.is-center {
  left: 50%;
  z-index: 4;
  width: min(35.6vw, 1220px);
  aspect-ratio: 2.35 / 1;
  border-color: transparent;
  border-radius: 24px;
  box-shadow: 0 30px 88px rgba(0, 0, 0, .52);
  opacity: 1;
  pointer-events: auto;
  filter: none;
  transform: translate(-50%, -50%) scale(1);
}

body:has(.koozee-home) .home-showcase-card.is-center::after {
  background: transparent;
}

body:has(.koozee-home) .home-showcase-card.is-prev,
body:has(.koozee-home) .home-showcase-card.is-next {
  z-index: 2;
  opacity: .78;
  filter: brightness(.72) saturate(.8);
  pointer-events: auto;
}

body:has(.koozee-home) .home-showcase-card.is-prev::after,
body:has(.koozee-home) .home-showcase-card.is-next::after {
  background: rgba(4, 5, 7, .42);
}

body:has(.koozee-home) .home-showcase-card.is-prev {
  left: calc(50% - (35.6vw / 2) - min(23.2vw, 800px));
  transform: translate(0, -50%) scale(.98);
}

body:has(.koozee-home) .home-showcase-card.is-next {
  right: calc(50% - (35.6vw / 2) - min(23.2vw, 800px));
  transform: translate(0, -50%) scale(.98);
}

body:has(.koozee-home) .home-showcase-card.is-hidden {
  left: 50%;
  z-index: 0;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.88);
}

body:has(.koozee-home) .home-showcase-arrow {
  position: absolute;
  top: clamp(192px, calc(5vh + 7.575vw + 66px), 396px);
  z-index: 8;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: rgba(255, 255, 255, .94);
  background: rgba(12, 13, 15, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .34);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

body:has(.koozee-home) .home-showcase-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.1;
}

body:has(.koozee-home) .home-showcase:has(.home-showcase-viewport:hover) .home-showcase-arrow,
body:has(.koozee-home) .home-showcase:has(.home-showcase-arrow:hover) .home-showcase-arrow,
body:has(.koozee-home) .home-showcase:focus-within .home-showcase-arrow {
  opacity: 1;
  pointer-events: auto;
}

body:has(.koozee-home) .home-showcase-arrow:hover,
body:has(.koozee-home) .home-showcase-arrow:focus-visible {
  background: rgba(40, 42, 46, .92);
  border-color: rgba(255, 255, 255, .3);
  outline: none;
  transform: translateY(-50%) scale(1.04);
}

body:has(.koozee-home) .home-showcase-arrow--prev {
  left: calc(50% - (35.6vw / 2) - min(23.2vw, 800px) + min(3vw, 36px));
}

body:has(.koozee-home) .home-showcase-arrow--next {
  right: calc(50% - (35.6vw / 2) - min(23.2vw, 800px) + min(3vw, 36px));
}

body:has(.koozee-home) .home-showcase-dots {
  position: absolute;
  top: clamp(315px, calc(5vh + 17.6vw + 55px), 655px);
  bottom: auto;
  left: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 2px;
  transform: translateX(-50%);
}

body:has(.koozee-home) .home-showcase-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  background: rgba(255, 255, 255, .3);
  border: 0;
  border-radius: 999px;
  transition: width 180ms ease, background 180ms ease, transform 180ms ease;
}

body:has(.koozee-home) .home-showcase-dots button.is-active {
  width: 24px;
  background: rgba(255, 255, 255, .9);
}

body:has(.koozee-home) .home-showcase-feature-row {
  position: relative;
  /* The carousel dots sit independently above this row. Keep a real visual
     buffer here; the inspiration library follows this row in normal flow. */
  margin: 72px auto 0;
  z-index: 7;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1400px, calc(100% - 48px));
  transform: none;
}

body:has(.koozee-home) .home-showcase-feature-card {
  position: relative;
  display: flex;
  --feature-card-height: 88px;
  height: var(--feature-card-height);
  min-height: var(--feature-card-height);
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  align-self: start;
  color: #f4f4f5;
  text-align: left;
  overflow: hidden;
  background: #1c1c1d;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

body:has(.koozee-home) .home-showcase-feature-card:hover,
body:has(.koozee-home) .home-showcase-feature-card:focus-visible {
  background: #242425;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
  outline: none;
}

body:has(.koozee-home) .home-showcase-feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, .92);
  background: #29292b;
  border-radius: 9px;
}

body:has(.koozee-home) .home-showcase-feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body:has(.koozee-home) .home-showcase-feature-copy {
  position: absolute;
  inset: 0;
  display: block;
  min-width: 0;
  pointer-events: none;
}

body:has(.koozee-home) .home-showcase-feature-title {
  position: absolute;
  top: 20px;
  right: 48px;
  left: 10px;
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  transform: translateY(calc(var(--feature-card-height) - 50px));
  transition: left 240ms ease, transform 260ms cubic-bezier(.22, .72, .24, 1);
}

body:has(.koozee-home) .home-showcase-feature-card:hover .home-showcase-feature-title,
body:has(.koozee-home) .home-showcase-feature-card:focus-visible .home-showcase-feature-title {
  left: 60px;
  transform: translateY(0);
}

body:has(.koozee-home) .home-showcase-feature-title strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.koozee-home) .home-showcase-feature-title em {
  flex: 0 0 auto;
  padding: 2px 5px;
  color: #8f8f93;
  font-size: 10px;
  font-weight: 450;
  font-style: normal;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 5px;
}

body:has(.koozee-home) .home-showcase-feature-title em.is-new {
  color: #25d5ff;
  background: rgba(37, 213, 255, .12);
  border-color: rgba(37, 213, 255, .22);
}

body:has(.koozee-home) .home-showcase-feature-description {
  position: absolute;
  right: 46px;
  bottom: 10px;
  left: 10px;
  display: block;
  max-height: 0;
  overflow: hidden;
  color: rgba(214, 214, 216, .78);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(5px);
  transition: max-height 220ms ease, opacity 180ms ease, transform 220ms ease;
}

body:has(.koozee-home) .home-showcase-feature-arrow {
  position: absolute;
  top: 50%;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: rgba(231, 231, 233, .82);
  background: #2d2d2f;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(5px);
  transition: opacity 180ms ease, transform 220ms ease, background 180ms ease;
}

body:has(.koozee-home) .home-showcase-feature-card:hover .home-showcase-feature-description,
body:has(.koozee-home) .home-showcase-feature-card:focus-visible .home-showcase-feature-description {
  max-height: 24px;
  opacity: 1;
  transform: translateY(0);
}

body:has(.koozee-home) .home-showcase-feature-card:hover .home-showcase-feature-arrow,
body:has(.koozee-home) .home-showcase-feature-card:focus-visible .home-showcase-feature-arrow {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

body:has(.koozee-home) .home-showcase-feature-card:hover .home-showcase-feature-arrow,
body:has(.koozee-home) .home-showcase-feature-card:focus-visible .home-showcase-feature-arrow {
  background: #343436;
}

body:has(.koozee-home) .home-showcase-feature-card:hover .home-showcase-feature-arrow:hover {
  color: #fff;
  background: #3e3e41;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  transform: translateY(-50%) translateX(2px) scale(1.08);
}

@media (max-width: 1180px) {
  body:has(.koozee-home) .home-showcase-feature-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100% - 48px);
    gap: 14px;
  }

  body:has(.koozee-home) .home-showcase-feature-card {
    --feature-card-height: 168px;
    height: var(--feature-card-height);
    min-height: var(--feature-card-height);
    padding: 20px;
  }
}

@media (max-width: 720px) {
  body:has(.koozee-home) .home-showcase-viewport {
    height: clamp(180px, 42.55vw, 520px);
    margin-top: 84px;
  }

  body:has(.koozee-home) .home-showcase-card.is-center {
    width: calc(100vw - 48px);
    aspect-ratio: 2.35 / 1;
    border-radius: 18px;
  }

  body:has(.koozee-home) .home-showcase-card.is-prev,
  body:has(.koozee-home) .home-showcase-card.is-next {
    width: calc(100vw - 48px);
    aspect-ratio: 2.35 / 1;
    opacity: 0;
  }

  body:has(.koozee-home) .home-showcase-arrow {
    top: clamp(174px, calc(84px + 21.3vw), 344px);
    width: 44px;
    height: 44px;
  }

  body:has(.koozee-home) .home-showcase-arrow svg {
    width: 22px;
    height: 22px;
  }

  body:has(.koozee-home) .home-showcase-arrow--prev {
    left: 14px;
  }

  body:has(.koozee-home) .home-showcase-arrow--next {
    right: 14px;
  }

  body:has(.koozee-home) .home-showcase-dots {
    top: clamp(290px, calc(84px + 42.55vw + 36px), 638px);
  }

  body:has(.koozee-home) .home-showcase-feature-row {
    top: auto;
    margin-top: 62px;
    width: calc(100% - 24px);
    gap: 10px;
  }

  body:has(.koozee-home) .home-showcase-feature-card {
    --feature-card-height: 132px;
    height: var(--feature-card-height);
    min-height: var(--feature-card-height);
    padding: 14px;
    gap: 8px;
  }

  body:has(.koozee-home) .home-showcase-feature-icon {
    width: 48px;
    height: 48px;
  }

  body:has(.koozee-home) .home-showcase-feature-icon svg {
    width: 27px;
    height: 27px;
  }

  body:has(.koozee-home) .home-showcase-feature-title strong {
    font-size: 14px;
  }
}

@media (max-width: 720px) {
  body:has(.koozee-home) .home-v2-bridge {
    align-items: stretch;
    flex-direction: column;
    margin-top: 38px;
    padding: 20px;
  }

  body:has(.koozee-home) .home-v2-bridge-actions {
    justify-content: stretch;
  }

  body:has(.koozee-home) .home-v2-bridge-actions a {
    flex: 1 1 160px;
    justify-content: center;
  }
}

/* Homepage top controls scroll away naturally; they no longer reserve a black band. */
body:has(.koozee-home):not(.workbench-open) .koozee-topbar {
  position: absolute;
  top: 0;
  background: transparent !important;
  background-image: none !important;
  backdrop-filter: none;
}

body:has(.koozee-home):not(.workbench-open) .home-showcase {
  min-height: 100vh;
  margin-top: 0;
}

body:has(.koozee-home).workbench-open .koozee-topbar {
  position: fixed;
  background: #08090a !important;
  background-image: none !important;
  backdrop-filter: none;
}

/* Match the reference navigation's local font resolution without changing other views. */
@font-face {
  font-family: "WanYou Navigation Sans";
  src: local("PingFang SC"), local("Arial"), local("Tahoma"), local("Hiragino Sans GB"), local("Microsoft YaHei"), local("sans-serif");
  font-style: normal;
  font-weight: 400;
}

/* Centered homepage and horizontal primary navigation. Other tool views keep their own layout. */
.home-primary-header { display: contents; }
body:has(.koozee-home):has(.home-primary-header) { --home-content-width: 1760px; --home-gutter: clamp(24px, 4.5vw, 80px); }
body:has(.koozee-home):has(.home-primary-header) .home-primary-header {
  position: relative; z-index: 180; display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: end; gap: 28px;
  width: min(var(--home-content-width), calc(100% - var(--home-gutter) * 2));
  min-height: 92px; margin: 0 auto; padding: 12px 0; box-sizing: border-box;
  transform: translateY(-12px);
}
body:has(.koozee-home):has(.home-primary-header) .koozee-sidebar { display: contents; }
body:has(.koozee-home):has(.home-primary-header) .koozee-brand { width: auto; height: auto; padding: 0; margin-inline-start: 0; justify-self: start; align-items: center; }
body:has(.koozee-home):has(.home-primary-header) .koozee-brand::before { display: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-brand .brand-logo-img { display: block; width: auto; height: 21px; max-width: none; margin: 0; }
body:has(.koozee-home):has(.home-primary-header) .koozee-brand .brand-logo-img--shenniu {
  width: auto !important;
  height: 26px !important;
  transform: translate(-1px, -1px);
  mix-blend-mode: screen;
  filter: none;
}
/* The wordmark artwork has 4px of black lower padding at its rendered size. */
body:has(.koozee-home):has(.home-primary-header) .koozee-rail,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom,
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
  transform: translateY(-4px);
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail {
  display: flex; align-self: end; align-items: flex-end; justify-content: flex-start;
  gap: 32px; width: auto; min-width: 0; padding: 0; overflow-x: auto; scrollbar-width: thin;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a {
  display: flex; align-items: flex-end; flex: 0 0 auto; width: auto; height: 40px; padding: 0;
  color: #d8d8d8; background: transparent; border-radius: 0; box-shadow: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a > img, body:has(.koozee-home):has(.home-primary-header) .koozee-rail a::before { display: none !important; }
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a::after, body:has(.koozee-home):has(.home-primary-header) .koozee-rail a:not(.active):hover::after {
  content: attr(aria-label); position: static; display: block;
  min-height: 0; padding: 0; color: inherit; background: none;
  border: 0; border-radius: 0; box-shadow: none;
  font-family: "WanYou Navigation Sans", system-ui;
  -webkit-font-smoothing: auto;
  font-feature-settings: "kern" on;
  font-variation-settings: "opsz" auto;
  font-size: 14px; font-weight: 400; line-height: 22px; letter-spacing: .56px;
  white-space: nowrap; opacity: 1; visibility: visible; transform: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a:hover, body:has(.koozee-home):has(.home-primary-header) .koozee-rail a:not(.active):hover, body:has(.koozee-home):has(.home-primary-header) .koozee-rail a.active {
  color: #fff; background: transparent; box-shadow: none; transform: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a.active { box-shadow: none; color: #27cee6; }
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a[aria-disabled="true"] { color: #d8d8d8; cursor: default; }
body:has(.koozee-home):has(.home-primary-header) .koozee-rail a:focus-visible { outline: 2px solid #b6f1e6; outline-offset: 4px; }
body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom { display: flex; align-self: end; align-items: center; gap: 10px; width: auto; padding: 0; }
body:has(.koozee-home):has(.home-primary-header) .koozee-language-menu { top: calc(100% + 12px); bottom: auto; left: auto; right: 0; }
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
  position: static; display: flex; align-self: end; min-width: 0; width: auto; height: auto; min-height: 0;
  padding: 0; background: transparent !important; backdrop-filter: none;
}
/* The avatar is taller than the other account controls, so this group must share its lower edge. */
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > *,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip > * {
  align-self: flex-end;
  align-items: flex-end;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar > :first-child:empty { display: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry { gap: 8px; min-width: 0; max-width: 100%; flex-wrap: wrap; }
body:has(.koozee-home):has(.home-primary-header) .koozee-main { min-height: calc(100vh - 72px); padding: 0; margin: 0; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase, body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase.home-showcase--empty {
  --home-carousel-height: clamp(190px, 22vw, 330px);
  width: min(var(--home-content-width), calc(100% - var(--home-gutter) * 2));
  min-height: calc(100vh - 72px); margin: 0 auto; padding: 0 0 64px;
  overflow: hidden; box-sizing: border-box;
}
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-viewport { width: 100%; height: var(--home-carousel-height); margin: 0; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card, body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-center,
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-prev, body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-next {
  top: 0; width: calc((100% - 36px) / 3); height: 100%;
  aspect-ratio: auto; border-radius: 14px; transform: none; box-shadow: none;
}
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-center { left: calc((100% - 36px) / 3 + 18px); right: auto; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-prev { left: 0; right: auto; opacity: 1; filter: none; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-next { left: auto; right: 0; opacity: 1; filter: none; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-center::after, body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-prev::after,
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-next::after { background: transparent; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-arrow { top: calc(var(--home-carousel-height) / 2); }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-arrow--prev { left: 12px; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-arrow--next { right: 12px; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-dots { position: relative; top: auto; left: auto; justify-content: center; margin: 18px auto 0; transform: none; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-feature-row { width: 100%; margin: 32px auto 0; gap: 18px; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase.home-showcase--empty .home-showcase-feature-row { margin-top: 0; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-library { width: 100%; margin: 48px auto 0; padding-bottom: 0; }
body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1100px) {
  body:has(.koozee-home):has(.home-primary-header) .home-primary-header { gap: 18px; grid-template-columns: auto 1fr auto; padding-top: 20px; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-brand { grid-column: 1; grid-row: 1; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-topbar { grid-column: 3; grid-row: 1; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: 28px; padding-bottom: 8px; overflow-x: auto; scrollbar-width: thin; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body:has(.koozee-home):has(.home-primary-header) { --home-gutter: 20px; }
  body:has(.koozee-home):has(.home-primary-header) .home-primary-header { grid-template-columns: auto 1fr; gap: 8px 12px; padding-top: 16px; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-topbar { grid-column: 1 / -1; grid-row: 2; justify-content: flex-end; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail { grid-row: 3; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-brand .brand-logo-img { width: 112px; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail { gap: 22px; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom { gap: 4px; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase { --home-carousel-height: clamp(200px, 52vw, 350px); padding-top: 16px; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-center { left: 0; width: 100%; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-prev { left: -110%; width: 100%; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-card.is-next { right: -110%; width: 100%; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-arrow { top: calc(16px + var(--home-carousel-height) / 2); opacity: 1; pointer-events: auto; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-showcase-feature-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-library { margin-top: 36px; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-header { align-items: flex-start; flex-direction: column; gap: 16px; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-tabs { flex-wrap: wrap; }
  body:has(.koozee-home):not(:is(.workbench-open, .reverse-workflow-open, .product-library-open, .course-event-open, .workflow-embedded-open)) .home-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* The primary navigation remains above every embedded home tool. */
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
  visibility: visible; pointer-events: auto;
}
body:has(.koozee-home):has(.home-primary-header) .reverse-workflow,
body:has(.koozee-home):has(.home-primary-header) .product-library-page {
  inset: var(--home-header-height, 72px) max(var(--home-gutter), calc((100vw - var(--home-content-width)) / 2)) 10px;
  width: auto; max-width: none;
}
body:has(.koozee-home):has(.home-primary-header).reverse-workflow-open .home-showcase,
body:has(.koozee-home):has(.home-primary-header).product-library-open .home-showcase {
  display: none;
}

/* A single still banner replaces the homepage video carousel. */
@font-face {
  font-family: "ShenNiu Display";
  src: url("./fonts/Alibaba-PuHuiTi-Heavy.ttf") format("truetype");
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
}

@font-face {
  font-family: "ShenNiu Display Black";
  src: url("./fonts/AlibabaPuHuiTi-2-115-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "ShenNiu Headline";
  src: url("./fonts/AlimamaShuHeiTi-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

body:has(.koozee-home) .home-static-banner {
  position: relative; isolation: isolate; width: 100%; aspect-ratio: 5.85 / 1; overflow: hidden; border-radius: 24px;
  background: #641f18;
}
body:has(.koozee-home) .home-static-banner--fashion {
  background: linear-gradient(90deg, #a9ad91 0%, #7f8961 52%, #485638 100%);
}
body:has(.koozee-home) .home-hero-carousel {
  position: relative; width: 100%; aspect-ratio: 5.85 / 1; overflow: visible; border-radius: 24px; background: #151614;
}
body:has(.koozee-home) .home-hero-carousel .home-static-banner {
  position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: inherit;
  opacity: 0; pointer-events: none; transform: scale(1.015);
  transition: opacity 520ms cubic-bezier(.23, 1, .32, 1), transform 760ms cubic-bezier(.23, 1, .32, 1);
}
body:has(.koozee-home) .home-hero-carousel .home-static-banner.is-active {
  z-index: 1; opacity: 1; pointer-events: auto; transform: scale(1);
}
body:has(.koozee-home) .home-static-banner--background-preview .home-static-banner__visual,
body:has(.koozee-home) .home-static-banner--background-preview .home-static-banner__copy {
  display: none;
}
body:has(.koozee-home) .home-static-banner__visual {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
body:has(.koozee-home) .home-static-banner__visual::before {
  content: ""; position: absolute; inset: 0;
  background: url("/site-media/images/home-banner-meadow-nodes-v1.webp") center 53% / cover no-repeat;
  transform: scale(1.012); transform-origin: 65% 50%;
  transition: transform 900ms cubic-bezier(.23, 1, .32, 1);
  will-change: transform;
}
body:has(.koozee-home) .home-static-banner__visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(21, 30, 18, .20) 0%, rgba(21, 30, 18, .08) 39%, rgba(21, 30, 18, 0) 61%),
    linear-gradient(0deg, rgba(18, 27, 15, .12) 0%, rgba(18, 27, 15, 0) 58%);
  pointer-events: none;
}
body:has(.koozee-home) .home-static-banner--replica .home-static-banner__visual::before {
  background-image: url("/site-media/images/home-banner-video-replica-poster-v1.png");
  background-position: 56% center; transform-origin: 62% 50%;
}
body:has(.koozee-home) .home-static-banner--replica .home-static-banner__visual::after {
  background: linear-gradient(90deg, rgba(11, 12, 12, .18) 0%, rgba(11, 12, 12, .08) 36%, rgba(11, 12, 12, 0) 61%);
}
body:has(.koozee-home) .home-static-banner--agent { background: #070a0b; }
body:has(.koozee-home) .home-static-banner--agent .home-static-banner__visual::before { background-image: url("/site-media/images/home-banner-shenniu-poster-night-v1.png"); background-position: 72% center; transform-origin: 72% 50%; }
body:has(.koozee-home) .home-static-banner--agent .home-static-banner__visual::after { background: linear-gradient(90deg, #070a0b 0%, rgba(7, 10, 11, .96) 30%, rgba(7, 10, 11, .26) 66%, rgba(7, 10, 11, .04) 100%); }
body:has(.koozee-home) .home-static-banner--agent .home-static-banner__copy { width: min(42%, 660px); color: #f4f0e7; }
body:has(.koozee-home) .home-static-banner--agent .home-static-banner__copy h2 { transform: none; }
body:has(.koozee-home) .home-static-banner--agent .home-static-banner__copy h2 .home-static-banner__eyebrow { color: #d8ffa7; }
body:has(.koozee-home) .home-static-banner--agent .home-static-banner__copy h2 strong { gap: 0; color: #f4f0e7; -webkit-text-stroke: .6px currentColor; text-shadow: none; }
body:has(.koozee-home) .home-agent-hub { margin-top: clamp(26px, 2.35vw, 42px); }
body:has(.koozee-home) .home-agent-console { position: relative; z-index: auto; }
body:has(.koozee-home) .home-agent-console__header { display: flex; align-items: center; justify-content: space-between; height: clamp(22px, 1.85vw, 31px); }
body:has(.koozee-home) .home-agent-console__header > div { display: inline-flex; align-items: center; gap: 10px; }
body:has(.koozee-home) .home-agent-console__status { width: 7px; height: 7px; border-radius: 50%; background: #a4d17d; box-shadow: 0 0 0 3px rgba(164, 209, 125, .10); }
body:has(.koozee-home) .home-agent-console__header h2 { margin: 0; color: #f1f1ef; font-family: "WanYou Navigation Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; font-size: clamp(15px, 1.22vw, 21px); font-weight: 500; line-height: 1; letter-spacing: -.025em; }
body:has(.koozee-home) .home-agent-console__header a { display: inline-flex; align-items: center; min-height: clamp(28px, 2.25vw, 38px); padding: 0 clamp(13px, 1.05vw, 18px); border-radius: 999px; color: rgba(241, 241, 239, .94); background: #292a2b; font-family: "WanYou Navigation Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; font-size: clamp(11px, .88vw, 15px); font-weight: 520; text-decoration: none; transition: background-color 180ms ease, transform 180ms ease; }
body:has(.koozee-home) .home-agent-console__header a span { margin-left: 10px; font-size: 1.22em; line-height: 1; }
body:has(.koozee-home) .home-agent-console__header a:hover { color: #fff; background: #363738; transform: translateY(-1px); }
body:has(.koozee-home) .home-agent-console__stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: clamp(144px, 10.8vw, 190px); margin-top: clamp(12px, 1vw, 18px); padding: clamp(18px, 1.4vw, 25px); border: 0; border-radius: clamp(16px, 1.55vw, 25px); background: #1d1e1f; }
body:has(.koozee-home) .home-agent-console__composer { position: relative; display: flex; align-items: center; width: min(55%, 690px); height: clamp(36px, 3vw, 52px); overflow: hidden; border: 0; border-radius: 999px; background: #303031; box-shadow: none; }
body:has(.koozee-home) .home-agent-console__add, body:has(.koozee-home) .home-agent-console__send { display: grid; place-items: center; flex: 0 0 auto; border: 0; cursor: pointer; }
body:has(.koozee-home) .home-agent-console__add { width: clamp(34px, 2.8vw, 48px); height: 100%; color: rgba(245, 245, 242, .68); background: transparent; font-size: clamp(20px, 1.9vw, 30px); font-weight: 260; line-height: 1; transform: translateY(-2px); }
body:has(.koozee-home) .home-agent-console__composer input { position: relative; z-index: 2; min-width: 0; flex: 1; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; color: #f4f4f2; background: transparent; font-family: "PingFang SC", "Hiragino Sans GB", sans-serif; font-size: clamp(11px, .9vw, 15px); font-weight: 460; line-height: 1; transform: translateY(1px); }
body:has(.koozee-home) .home-agent-console__composer input::placeholder { color: transparent; }
body:has(.koozee-home) .home-agent-console__upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
body:has(.koozee-home) .home-agent-console__upload-preview { position: relative; z-index: 4; display: inline-flex; flex: 0 0 auto; width: 25px; height: 25px; margin-right: 5px; overflow: hidden; border-radius: 7px; background: #1d1e1f; }
body:has(.koozee-home) .home-agent-console__upload-preview[hidden] { display: none; }
body:has(.koozee-home) .home-agent-console__upload-preview img { width: 100%; height: 100%; object-fit: cover; }
body:has(.koozee-home) .home-agent-console__upload-preview button { position: absolute; top: -3px; right: -3px; display: grid; width: 13px; height: 13px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: #171717; background: #f1f1ef; font-size: 12px; line-height: 1; cursor: pointer; }
body:has(.koozee-home) .home-agent-console__typing { position: absolute; z-index: 1; top: 0; bottom: 0; left: clamp(34px, 2.8vw, 48px); right: clamp(37px, 2.8vw, 50px); display: flex; align-items: center; overflow: hidden; padding-top: 2px; color: rgba(244, 244, 242, .43); font-family: "PingFang SC", "Hiragino Sans GB", sans-serif; font-size: clamp(11px, .9vw, 15px); font-weight: 460; line-height: 1; pointer-events: none; transition: opacity 130ms ease; }
body:has(.koozee-home) .home-agent-console__typing > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body:has(.koozee-home) .home-agent-console__typing i { width: 1.5px; height: 1.08em; flex: 0 0 1.5px; margin-left: 2px; background: currentColor; animation: homeAgentCursorBlink 880ms steps(1, end) infinite; }
body:has(.koozee-home) .home-agent-console__composer.is-editing .home-agent-console__typing { opacity: 0; }
@keyframes homeAgentCursorBlink { 0%, 47% { opacity: 1; } 48%, 100% { opacity: 0; } }
body:has(.koozee-home) .home-agent-console__send { position: relative; z-index: 3; width: clamp(28px, 2.25vw, 38px); height: clamp(28px, 2.25vw, 38px); flex: 0 0 clamp(28px, 2.25vw, 38px); margin-right: 7px; border-radius: 50%; color: rgba(255, 255, 255, .70); background: #464647; font-size: clamp(18px, 1.4vw, 23px); font-weight: 320; line-height: 1; transition: background-color 180ms ease, color 180ms ease, transform 180ms ease; }
body:has(.koozee-home) .home-agent-console__send:hover { color: #16220f; background: #b9e48e; transform: translateY(-1px); }
body:has(.koozee-home) .home-agent-console__skills { display: flex; align-items: center; justify-content: center; gap: clamp(7px, .8vw, 13px); width: 100%; margin-top: clamp(8px, .8vw, 13px); }
body:has(.koozee-home) .home-agent-console__skills button { display: inline-flex; align-items: center; min-width: 0; height: clamp(27px, 2.5vw, 41px); padding: 0 clamp(9px, .8vw, 13px) 0 4px; border: 0; border-radius: 999px; color: rgba(245, 245, 242, .82); background: #262728; cursor: pointer; font-family: "PingFang SC", "Hiragino Sans GB", sans-serif; transition: background-color 180ms ease, transform 180ms ease; }
body:has(.koozee-home) .home-agent-console__skills button:hover { background: #343535; transform: translateY(-1px); }
body:has(.koozee-home) .home-agent-console__skills button.is-selected { color: #ecf9e0; background: #31402b; }
body:has(.koozee-home) .home-agent-console__skills span { overflow: hidden; max-width: 13em; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(10px, .86vw, 14px); font-weight: 520; }
body:has(.koozee-home) .home-agent-console__skills em { margin-left: 7px; color: rgba(245, 245, 242, .36); font-size: clamp(9px, .72vw, 12px); font-style: normal; white-space: nowrap; }
body:has(.koozee-home) .home-agent-console__thumb { display: block; flex: 0 0 auto; width: clamp(30px, 2.75vw, 44px); height: clamp(24px, 2.1vw, 34px); margin-right: 7px; border-radius: 999px; background-size: cover; background-position: center; }
body:has(.koozee-home) .home-agent-console__thumb--replica { background-image: url("/site-media/images/home-agent-skill-replica-v1.png"); background-position: 52% center; }
body:has(.koozee-home) .home-agent-console__thumb--product { background-image: url("/site-media/images/home-agent-skill-product-v1.png"); background-position: 50% center; }
body:has(.koozee-home) .home-agent-console__thumb--fashion { background-image: url("/site-media/images/home-agent-skill-fashion-v1.png"); background-position: 50% center; }
body:has(.koozee-home) .home-agent-console__response { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:has(.koozee-home) .home-static-banner:hover .home-static-banner__visual::before { transform: scale(1.028); }
@media (prefers-reduced-motion: reduce) {
  body:has(.koozee-home) .home-static-banner__visual::before { transition: none; }
  body:has(.koozee-home) .home-hero-carousel .home-static-banner,
  body:has(.koozee-home) .home-hero-carousel__controls button { transition: none; }
  body:has(.koozee-home) .home-agent-console__typing i { animation: none; }
}
body:has(.koozee-home) .home-static-banner__copy {
  display: flex; position: relative; z-index: 2; flex-direction: column; align-items: flex-start; justify-content: center;
  width: min(42%, 660px); height: 100%; margin-left: clamp(28px, 4.3vw, 86px); color: #f4f0e7;
  text-shadow: none;
}
body:has(.koozee-home) .home-static-banner__copy::after {
  content: none;
}
body:has(.koozee-home) .home-static-banner__eyebrow {
  margin: 0 0 8px; color: #42d9ec; font-family: "WanYou Navigation Sans", system-ui, sans-serif;
  font-size: clamp(11px, .85vw, 15px); font-weight: 500; letter-spacing: .1em;
}
body:has(.koozee-home) .home-static-banner__copy h2 {
  display: grid; gap: clamp(5px, .5vw, 11px); max-width: 680px; margin: 0; color: #f4f0e7;
  transform: translateY(clamp(-22px, -1.1vw, -14px));
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision;
}
body:has(.koozee-home) .home-static-banner__copy h2 .home-static-banner__eyebrow {
  display: block; color: #9bd8d0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.22vw, 24px); font-weight: 650; line-height: 1; letter-spacing: .055em;
}
body:has(.koozee-home) .home-static-banner__copy h2 strong {
  display: flex; align-items: center; gap: clamp(12px, 1.15vw, 23px); color: rgba(247, 239, 222, .96); font-family: "ShenNiu Headline", "PingFang SC", "Hiragino Sans GB", sans-serif; font-size: clamp(38px, 2.75vw, 56px); font-weight: 700; line-height: .96; letter-spacing: -.038em; white-space: nowrap;
  -webkit-text-stroke: 1.15px currentColor; paint-order: stroke fill;
  text-shadow: 0 1px 0 rgba(51, 58, 28, .22), 0 8px 24px rgba(27, 39, 19, .20);
}
body:has(.koozee-home) .home-static-banner__copy h2 strong > span { display: block; white-space: nowrap; }
body:has(.koozee-home) .home-static-banner__copy h2 strong > i { width: .16em; height: .16em; flex: 0 0 .16em; border-radius: 50%; background: currentColor; }
body:has(.koozee-home) .home-static-banner--replica .home-static-banner__copy { width: min(39%, 610px); }
body:has(.koozee-home) .home-static-banner--replica .home-static-banner__copy h2 { transform: none; }
body:has(.koozee-home) .home-static-banner--replica .home-static-banner__copy h2 strong { gap: clamp(10px, .85vw, 17px); font-size: clamp(34px, 2.55vw, 52px); }
body:has(.koozee-home) .home-static-banner__detail {
  max-width: none; margin: 13px 0 0; color: rgba(239, 235, 227, .72); white-space: nowrap;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: clamp(12px, .95vw, 17px); font-weight: 520; line-height: 1.45; letter-spacing: .02em;
}
body:has(.koozee-home) .home-static-banner__detail--agent { color: rgba(244, 240, 232, .64); }
body:has(.koozee-home) .home-hero-carousel__controls {
  position: absolute; z-index: 3; right: auto; bottom: -32px; left: 50%;
  display: inline-flex; align-items: center; gap: 9px; transform: translateX(-50%);
}
body:has(.koozee-home) .home-hero-carousel__controls button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(220, 224, 221, .38); cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}
body:has(.koozee-home) .home-hero-carousel__controls button.is-active { background: #eef0ec; transform: scale(1.35); }
body:has(.koozee-home) .home-hero-carousel__controls button:focus-visible { outline: 2px solid #9bd8d0; outline-offset: 4px; }
body:has(.koozee-home) .home-static-banner__subline {
  order: -1; display: flex; align-items: baseline; gap: 9px; margin: 0 0 15px; color: rgba(244, 240, 231, .70);
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: clamp(12px, .88vw, 16px); font-weight: 520; line-height: 1; letter-spacing: .025em;
}
body:has(.koozee-home) .home-static-banner__subline strong {
  position: static; color: #27cee6; font-weight: 680;
}
body:has(.koozee-home) .home-static-banner__description {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0; width: auto; max-width: 560px; min-height: 0; margin: 14px 0 0; padding: 11px 0 0;
  color: rgba(244, 240, 231, .78); border: 0; border-top: 1px solid rgba(244, 240, 231, .38); border-radius: 0; background: none;
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: clamp(11px, .83vw, 15px); font-weight: 470; line-height: 1.2; letter-spacing: .025em;
}
body:has(.koozee-home) .home-static-banner__description span + span {
  display: inline-flex; align-items: center;
}
body:has(.koozee-home) .home-static-banner__description span + span::before {
  content: "/"; display: inline-block; width: auto; height: auto; margin: 0 clamp(9px, .75vw, 14px); border-radius: 0; background: none; color: #27cee6;
}
body:has(.koozee-home) .home-static-banner__action {
  display: inline-flex; align-items: center; gap: 16px; min-width: 112px; height: 34px; padding: 0 15px;
  color: #062226; background: #27cee6; border: 1px solid #27cee6; border-radius: 7px; cursor: pointer;
  font-family: "WanYou Navigation Sans", system-ui, sans-serif; font-size: 14px; font-weight: 500;
  transition: transform .2s ease, background-color .2s ease;
}
body:has(.koozee-home) .home-static-banner__action:hover { transform: translateY(-1px); background: #79e6f3; }
body:has(.koozee-home) .home-static-banner__action:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 720px) {
  body:has(.koozee-home) .home-static-banner { aspect-ratio: 1.8 / 1; border-radius: 18px; }
  body:has(.koozee-home) .home-hero-carousel { aspect-ratio: 1.8 / 1; border-radius: 18px; }
  body:has(.koozee-home) .home-static-banner__visual { inset: 0; opacity: .50; }
  body:has(.koozee-home) .home-static-banner__visual::before { background-position: 68% center; }
  body:has(.koozee-home) .home-static-banner__copy { width: auto; margin: 0 28px; }
  body:has(.koozee-home) .home-static-banner__copy::after { display: none; }
  body:has(.koozee-home) .home-static-banner__copy h2 { gap: 6px; }
  body:has(.koozee-home) .home-static-banner__copy h2 { transform: none; }
  body:has(.koozee-home) .home-static-banner__copy h2 .home-static-banner__eyebrow { font-size: 15px; }
  body:has(.koozee-home) .home-static-banner__copy h2 strong { font-size: clamp(28px, 8.2vw, 38px); white-space: normal; }
  body:has(.koozee-home) .home-static-banner--replica .home-static-banner__copy { width: auto; }
  body:has(.koozee-home) .home-static-banner--replica .home-static-banner__copy h2 strong { gap: 9px; font-size: clamp(24px, 6.65vw, 29px); }
  body:has(.koozee-home) .home-static-banner--replica .home-static-banner__visual::before { background-position: 65% center; }
  body:has(.koozee-home) .home-static-banner--agent .home-static-banner__visual::before { background-position: 69% center; }
  body:has(.koozee-home) .home-static-banner--agent .home-static-banner__visual::after { background: linear-gradient(90deg, rgba(7, 10, 11, .90) 0%, rgba(7, 10, 11, .52) 70%, rgba(7, 10, 11, .22) 100%); }
  body:has(.koozee-home) .home-static-banner--agent .home-static-banner__copy { width: auto; }
  body:has(.koozee-home) .home-agent-hub { margin-top: 22px; }
  body:has(.koozee-home) .home-agent-console__header { height: 22px; }
  body:has(.koozee-home) .home-agent-console__header h2 { font-size: 14px; }
  body:has(.koozee-home) .home-agent-console__header a { min-height: 28px; padding: 0 12px; font-size: 10px; }
  body:has(.koozee-home) .home-agent-console__stage { min-height: 140px; margin-top: 8px; padding: 16px 8px; border-radius: 15px; }
  body:has(.koozee-home) .home-agent-console__composer { width: min(88%, 430px); height: 34px; }
  body:has(.koozee-home) .home-agent-console__add { width: 34px; font-size: 23px; }
  body:has(.koozee-home) .home-agent-console__composer input { font-size: 11px; }
  body:has(.koozee-home) .home-agent-console__upload-preview { width: 22px; height: 22px; margin-right: 4px; border-radius: 6px; }
  body:has(.koozee-home) .home-agent-console__send { width: 26px; height: 26px; flex-basis: 26px; margin-right: 4px; font-size: 17px; }
  body:has(.koozee-home) .home-agent-console__skills { gap: 5px; margin-top: 7px; }
  body:has(.koozee-home) .home-agent-console__skills button { height: 27px; padding-right: 7px; }
  body:has(.koozee-home) .home-agent-console__skills span { max-width: 7.7em; font-size: 9px; }
  body:has(.koozee-home) .home-agent-console__skills em { display: none; }
  body:has(.koozee-home) .home-agent-console__thumb { width: 28px; height: 22px; margin-right: 4px; }
  body:has(.koozee-home) .home-static-banner__detail { margin-top: 10px; font-size: 12px; letter-spacing: 0; }
}
}
body:has(.koozee-home) .home-showcase--carousel .home-showcase-feature-row {
  margin-top: 32px;
}

/* Keep the original canvas badge above its label in the horizontal navigation. */
body:has(.koozee-home):has(.home-primary-header) .koozee-rail {
  padding: 0;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail .workflow-rail-entry {
  position: relative;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail .workflow-rail-entry > .koozee-workflow-badge {
  display: block !important;
  top: 0;
  left: 3px;
  right: auto;
  width: 54px;
  height: 18px;
  transform: none;
  opacity: 1;
  filter: none;
  pointer-events: none;
}

/* Inbox notification control supplied for the top navigation. */
body:has(.koozee-home) .inbox-btn {
  width: 32px; height: 32px; flex: 0 0 32px; padding: 0;
  border-radius: 50%; border: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, .082);
  display: flex; align-items: center; justify-content: center;
  position: relative; background-color: #464646;
  cursor: pointer; transition: transform .3s;
}
body:has(.koozee-home) .inbox-btn[hidden] {
  display: none !important;
}
body:has(.koozee-home) .inbox-btn svg {
  width: 14px; height: 14px; stroke: none; transition: transform .3s;
}
body:has(.koozee-home) .inbox-btn svg path { fill: white; }
body:has(.koozee-home) .inbox-btn .msg-count {
  position: absolute; top: -4px; right: -4px;
  background-color: #fff; border-radius: 50%;
  font-size: 9px; font-weight: 400; color: #000;
  width: 15px; height: 15px;
  display: flex; align-items: center; justify-content: center;
}
body:has(.koozee-home) .inbox-btn .msg-count[hidden] { display: none; }
body:has(.koozee-home) .inbox-btn:hover { transform: scale(1.1); }
body:has(.koozee-home) .inbox-btn:focus-visible { outline: 2px solid #27cee6; outline-offset: 4px; }

/* Homepage account controls: one compact, repeatable visual system. */
body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom {
  align-items: flex-end;
}
body:has(.koozee-home):has(.home-primary-header) .inbox-btn {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-radius: 11px;
  background: #202123;
  box-shadow: none;
}
body:has(.koozee-home):has(.home-primary-header) .inbox-btn:hover {
  background: #2a2b2d;
  transform: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry {
  height: 36px;
  align-items: center;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > .koozee-consumption-records {
  display: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip {
  display: inline-flex;
  height: 36px;
  align-items: center;
  gap: 8px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions {
  display: inline-flex;
  height: 36px;
  overflow: hidden;
  border-radius: 11px;
  background: #282320;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit,
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge {
  height: 36px;
  margin: 0;
  border-radius: 0;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit {
  min-width: 76px;
  padding: 0 11px;
  color: #f0ddd0;
  background: transparent;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit::after {
  display: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge {
  padding: 0 13px;
  color: #35251e !important;
  background: #f0d8c7;
  font-size: 13px;
  font-weight: 700;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge:hover {
  color: #241812 !important;
  background: #ffe6d4;
}
body:has(.koozee-home):has(.home-primary-header) .header-user-menu,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar {
  width: 36px;
  height: 36px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar {
  border-radius: 11px;
}

/* Account panel: profile, membership and credit information read as one quiet hierarchy. */
body:has(.koozee-home) .koozee-user-panel {
  top: calc(100% + 12px); width: 320px; gap: 10px; padding: 10px; color: rgba(247, 247, 245, .92);
  background: #1d1e1f; border: 0; border-radius: 16px; box-shadow: 0 24px 56px rgba(0, 0, 0, .42); backdrop-filter: blur(18px) saturate(1.02);
}
body:has(.koozee-home) .koozee-user-panel .koozee-profile-head { grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 10px; min-height: 58px; padding: 9px 10px; background: #292a2b; border-radius: 12px; }
body:has(.koozee-home) .koozee-user-panel .koozee-profile-avatar { width: 44px; height: 44px; border: 0; border-radius: 11px; }
body:has(.koozee-home) .koozee-user-panel .koozee-profile-copy { gap: 4px; }
body:has(.koozee-home) .koozee-user-panel .koozee-profile-copy strong { font-size: 14px; font-weight: 620; }
body:has(.koozee-home) .koozee-user-panel .koozee-profile-copy span { color: rgba(242, 243, 244, .44); font-size: 11px; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card { gap: 8px; padding: 12px; background: linear-gradient(135deg, #312917, #292516 72%); border-radius: 12px; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-title em { color: #f3e3b7; font-size: 14px; font-style: normal; font-weight: 650; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card__top > span { color: rgba(246, 239, 217, .58); font-size: 11px; white-space: nowrap; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card__rule { display: block; height: 3px; background: linear-gradient(90deg, #4ed7f0 0 62%, rgba(255, 255, 255, .10) 62%); border-radius: 999px; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card > small { color: rgba(246, 239, 217, .52); font-size: 11px; line-height: 1.3; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card button { align-self: end; width: auto; height: 25px; min-width: 70px; margin: -1px 0 0; padding: 0 9px; color: #f1e2bd; background: rgba(0, 0, 0, .34); border-radius: 999px; box-shadow: none; font-size: 11px; font-weight: 600; }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 0 12px; text-align: left; color: rgba(245, 246, 247, .88); background: #242526; border: 0; border-radius: 12px; cursor: pointer; }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview > span { display: flex; align-items: center; justify-content: space-between; gap: 7px; color: rgba(244, 245, 246, .70); font-size: 12px; }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview b { color: #35d3e9; font-size: 13px; font-weight: 680; }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview > i { color: rgba(244, 245, 246, .64); font-size: 17px; font-style: normal; }
body:has(.koozee-home) .koozee-user-panel .koozee-panel-menu { display: grid; gap: 6px; padding: 6px 0 2px; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action { display: flex; align-items: center; justify-content: space-between; min-height: 38px; height: 38px; padding: 0 10px; color: rgba(246, 247, 248, .76); border: 0; border-radius: 8px; font-size: 12px; font-weight: 520; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action + .koozee-account-action { border: 0; border-radius: 8px; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action i { color: rgba(246, 247, 248, .38); font-size: 16px; font-style: normal; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action:hover { color: #fff; background: #2c2d2e; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action.danger { color: rgba(238, 178, 178, .78); }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action.danger:hover { color: #ffb8b8; background: rgba(176, 60, 60, .12); }

/* Signed-out controls belong to the same quiet header system. */
body:has(.koozee-home):has(.home-primary-header) .inbox-btn { width: 34px; height: 34px; flex-basis: 34px; color: rgba(245, 246, 247, .76); background: #1d1e1f; border-radius: 10px; }
body:has(.koozee-home):has(.home-primary-header) .inbox-btn svg { width: 15px; height: 15px; opacity: .86; }
body:has(.koozee-home):has(.home-primary-header) .inbox-btn:hover { color: #fff; background: #2a2b2c; }
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > .koozee-login-button { width: auto; min-width: 64px; height: 34px; min-height: 34px; padding: 0 14px; color: rgba(247, 247, 245, .92); background: #242526; border: 0; border-radius: 10px; box-shadow: none; font-size: 13px; font-weight: 600; }
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > .koozee-login-button:hover { color: #141516; background: #f1f1ef; }
body:has(.koozee-home) .koozee-user-panel,
body:has(.koozee-home) .koozee-user-panel button,
body:has(.koozee-home):has(.home-primary-header) .inbox-btn,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > .koozee-login-button { accent-color: #35d3e9; }

/* The signed-in header reads as one quiet utility line, not three competing buttons. */
body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom { gap: 4px; }
body:has(.koozee-home):has(.home-primary-header) .inbox-btn { width: 32px; height: 32px; flex-basis: 32px; color: rgba(245, 246, 247, .58); background: transparent; border-radius: 8px; }
body:has(.koozee-home):has(.home-primary-header) .inbox-btn:hover { color: #fff; background: rgba(255, 255, 255, .065); }
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip { height: 32px; gap: 10px; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions { height: 32px; overflow: visible; border-radius: 0; background: transparent; box-shadow: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit { min-width: 0; height: 32px; padding: 0 5px 0 0; color: rgba(247, 230, 218, .94); background: transparent; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit span { width: 16px; height: 16px; flex-basis: 16px; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit b { font-size: 14px; font-weight: 650; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge { position: relative; height: 32px; padding: 0 0 0 12px; color: rgba(245, 246, 247, .68) !important; background: transparent; font-size: 12px; font-weight: 560; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge::before { position: absolute; top: 9px; left: 4px; width: 1px; height: 14px; content: ""; background: rgba(255, 255, 255, .13); }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge:hover { color: #fff !important; background: transparent; }
body:has(.koozee-home):has(.home-primary-header) .header-user-menu,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar { width: 32px; height: 32px; }
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .10); }

/* Scoped adaptation of the supplied popup template. */
body:has(.koozee-home) .koozee-user-panel { gap: 8px; padding: 6px; background: hsl(0, 0%, 10%); border-radius: 10px; box-shadow: hsl(0, 0%, 12%) 0 0 0 1px, 0 22px 50px rgba(0, 0, 0, .42); }
body:has(.koozee-home) .koozee-user-panel .koozee-profile-head { border-radius: 10px; }
body:has(.koozee-home) .koozee-user-panel .koozee-vip-card,
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview { border-radius: 10px; }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview { transition: background-color 500ms; }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview:hover { background: hsla(0, 0%, 45%, .20); }
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview:focus,
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview:active { background: hsl(0, 0%, 10%); }
body:has(.koozee-home) .koozee-user-panel .koozee-panel-menu { gap: 2px; padding: 2px 0 0; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action { min-height: 36px; height: 36px; padding: 0 12px; background: transparent; border-radius: 10px 5px 5px 10px; transition: background-color 500ms; }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action:hover { color: rgba(255, 255, 255, .9); background: hsla(0, 0%, 45%, .20); }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action:focus,
body:has(.koozee-home) .koozee-user-panel .koozee-account-action:active { background: hsl(0, 0%, 10%); }
body:has(.koozee-home) .koozee-user-panel .koozee-account-action.danger:hover { color: #fff; background: #962434; }

/* Account capsule: remaining credits on the left, identity on the right. */
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip {
  height: 42px;
  gap: 10px;
  padding: 0 4px 0 13px;
  background: #303132;
  border-radius: 14px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions { height: 42px; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit {
  height: 42px;
  padding: 0;
  color: rgba(247, 247, 245, .92);
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit span { display: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit b { font-size: 15px; font-weight: 650; letter-spacing: .02em; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-recharge { display: none; }
body:has(.koozee-home):has(.home-primary-header) .header-user-menu,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar { width: 34px; height: 34px; }
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar { border-radius: 50%; box-shadow: none; }
body:has(.koozee-home) .koozee-reference-avatar { background: transparent; }
body:has(.koozee-home) .koozee-reference-avatar img { width: 100%; height: 100%; object-fit: contain; transform: none; }

/* Header account: bare information at rest; a compact capsule only on intent. */
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip {
  height: 36px;
  gap: 7px;
  padding: 0 4px 0 8px;
  background: transparent;
  border-radius: 999px;
  transition: background-color 180ms ease;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions {
  height: 36px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  height: 36px;
  gap: 6px;
  padding: 0;
  color: rgba(247, 247, 245, .92);
  background: transparent;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit::before { display: none; content: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit span {
  display: block;
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  align-self: center;
  background-position: center calc(50% + 1px);
  transform: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit b {
  position: static;
  display: block;
  color: rgba(247, 247, 245, .92);
  font-size: 15px;
  font-weight: 650;
  line-height: 1;
  opacity: 1;
}
body:has(.koozee-home):has(.home-primary-header) .header-user-menu,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar {
  width: 32px;
  height: 32px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger {
  display: grid;
  place-items: center;
  padding: 0;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar {
  display: block;
  border-radius: 50%;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-session-strip:hover,
body:has(.koozee-home):has(.home-primary-header) .koozee-session-strip:focus-within,
body:has(.koozee-home):has(.home-primary-header) .koozee-session-strip:has(.koozee-user-menu.open) {
  background: #303132;
}

/* Keep the avatar inside the hovered capsule instead of bottom-aligning it. */
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip > * {
  height: 40px;
  align-self: center;
  align-items: center;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions,
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit {
  height: 40px;
}
body:has(.koozee-home):has(.home-primary-header) .header-user-menu,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger,
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar {
  width: 32px;
  height: 32px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip {
  display: inline-flex;
  align-items: center !important;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip > .koozee-wallet-actions,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip > .header-user-menu {
  display: flex;
  align-self: center !important;
  align-items: center !important;
  justify-content: center;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .header-user-menu .koozee-user-trigger {
  display: grid;
  place-items: center;
}

/* The complete credit-and-avatar capsule is the personal-panel trigger. */
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-account-shell {
  display: block;
  width: auto;
  height: 40px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger {
  width: auto;
  padding: 0 4px 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger:focus {
  outline: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger:focus-visible {
  box-shadow: 0 0 0 2px rgba(53, 211, 233, .52);
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-shell.open .koozee-account-trigger {
  background: #303132;
}

/* A dedicated branded purchase entry, separate from the personal capsule. */
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 40px;
  min-height: 40px;
  flex: 0 0 auto;
  gap: 7px;
  padding: 0 13px 0 11px;
  color: rgba(247, 247, 245, .9);
  background: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store[hidden] { display: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store > img {
  display: block;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  object-fit: contain;
  opacity: 1;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store > b {
  font-size: 13px;
  font-weight: 620;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store:hover {
  color: #fff;
  background: #303132;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store:active {
  background: rgba(255, 255, 255, .09);
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store:focus {
  outline: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store:focus-visible {
  outline: 2px solid #27cee6;
  outline-offset: 2px;
  box-shadow: none;
}

/* Keep all signed-in utilities in one right-aligned rhythm. */
body:has(.koozee-home):has(.home-primary-header) .home-primary-header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
  display: inline-flex;
  height: 40px;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-quick-actions {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 6px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry {
  display: inline-flex;
  height: 40px;
  align-items: center !important;
  flex-wrap: nowrap;
  gap: 8px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger {
  background: #2b2c2d;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger:hover,
body:has(.koozee-home):has(.home-primary-header) .koozee-account-shell.open .koozee-account-trigger {
  background: #343536;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar > *,
body:has(.koozee-home):has(.home-primary-header) .koozee-quick-actions > *,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > * {
  align-self: center !important;
}

/* A slimmer shared profile for the store and account capsules. */
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar,
body:has(.koozee-home):has(.home-primary-header) .koozee-quick-actions,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry,
body:has(.koozee-home):has(.home-primary-header) .koozee-account-shell,
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-session-strip,
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions,
body:has(.koozee-home):has(.home-primary-header) .koozee-wallet-actions .koozee-credit {
  height: 36px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-bean-store {
  height: 36px;
  min-height: 36px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-user-trigger-avatar {
  width: 30px;
  height: 30px;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-account-shell {
  display: flex;
  width: auto;
  height: 36px;
  align-items: center !important;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry .koozee-account-trigger {
  height: 36px;
  align-self: center !important;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-account-trigger > .koozee-user-trigger-avatar {
  width: 30px;
  height: 30px;
}
/* Match the utility group's visual center to the logo and navigation text on desktop. */
@media (min-width: 1101px) {
  body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
    transform: translateY(3px);
  }
}

/* Pure CSS notification bell, adapted to the compact header control. */
body:has(.koozee-home) .inbox-btn.notification {
  position: relative;
  top: -2px;
  left: -3px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: background-color 300ms ease;
}
body:has(.koozee-home) .inbox-btn.notification:hover {
  background: rgba(170, 170, 170, .062);
  transform: none;
}
body:has(.koozee-home) .inbox-btn.notification .bell-container {
  position: relative;
  display: block;
  width: 16px;
  height: 15px;
  transform-origin: 50% 18%;
}
body:has(.koozee-home) .inbox-btn.notification .bell {
  position: absolute;
  top: 1px;
  left: 50%;
  display: block;
  width: 11px;
  height: 12px;
  box-sizing: border-box;
  border: 1.6px solid rgba(245, 246, 247, .82);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: transparent;
  transform: translateX(-50%);
}
body:has(.koozee-home) .inbox-btn.notification .bell::before,
body:has(.koozee-home) .inbox-btn.notification .bell::after {
  position: absolute;
  left: 50%;
  display: block;
  height: 1.6px;
  content: "";
  border-radius: 999px;
  background: rgba(245, 246, 247, .82);
  transform: translateX(-50%);
}
body:has(.koozee-home) .inbox-btn.notification .bell::before {
  top: 100%;
  width: 16px;
}
body:has(.koozee-home) .inbox-btn.notification .bell::after {
  top: calc(100% + 3px);
  width: 5px;
}
body:has(.koozee-home) .inbox-btn.notification:hover .bell,
body:has(.koozee-home) .inbox-btn.notification:hover .bell::before,
body:has(.koozee-home) .inbox-btn.notification:hover .bell::after {
  border-color: #fff;
  background-color: #fff;
}
body:has(.koozee-home) .inbox-btn.notification:hover .bell {
  background: transparent;
}
body:has(.koozee-home) .inbox-btn.notification:hover > .bell-container {
  animation: bell-animation 650ms ease-out 0s 1 normal both;
}
body:has(.koozee-home) .inbox-btn.notification .msg-count {
  top: 0;
  right: -1px;
  width: 13px;
  height: 13px;
  color: #fff;
  background: #f04444;
  font-size: 9px;
  font-weight: 650;
  line-height: 13px;
}
@keyframes bell-animation {
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-15deg) scale(1.1); }
  60% { transform: rotate(10deg) scale(1.1); }
  80% { transform: rotate(-10deg); }
  0%, 100% { transform: rotate(0deg) scale(1); }
}

/* The store and support entries now live in the personal panel. */
body:has(.koozee-home) .koozee-contact > .koozee-contact-label,
body:has(.koozee-home) .koozee-contact > .koozee-chat {
  display: none;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span > img,
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span > svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span > img {
  opacity: .72;
  filter: grayscale(1) invert(1);
  transition: opacity 180ms ease;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action:hover > span > img {
  opacity: 1;
}

/* Give the personal panel and its action labels a more comfortable reading scale. */
body:has(.koozee-home) .koozee-user-panel {
  width: 260px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-profile-head {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  min-height: 62px;
  padding: 8px 11px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-profile-avatar {
  width: 46px;
  height: 46px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-profile-copy strong {
  font-size: 15px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-profile-copy span {
  font-size: 12px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview {
  min-height: 50px;
  padding: 0 13px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview > span {
  font-size: 13px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview b {
  font-size: 14px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action {
  min-height: 40px;
  height: 40px;
  padding: 0 13px;
  font-size: 13px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span {
  gap: 10px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span > img,
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span > svg {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > span > svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Show the 神牛TV project home directly below the persistent home navigation. */
body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .koozee-home .workflow-home-embedded {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  width: min(var(--home-content-width), calc(100% - var(--home-gutter) * 2));
  min-height: calc(100vh - 92px);
  margin: 0 auto;
  padding: 24px 0 80px;
  overflow: visible;
  box-sizing: border-box;
  pointer-events: auto;
}
body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-home-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: none;
}
body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-loading {
  position: absolute;
  inset: 0;
}
body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-recent-heading h1 {
  font-size: 22px;
}
body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-project-grid {
  min-height: clamp(420px, 30vw, 550px);
}
body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-library-section {
  display: none;
}
@media (min-width: 761px) and (max-width: 1100px) {
  body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-project-grid {
    min-height: 430px;
  }
}
@media (max-width: 720px) {
  body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .koozee-home .workflow-home-embedded {
    min-height: calc(100vh - 132px);
    padding: 18px 0 56px;
  }
  body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-recent-heading h1 {
    font-size: 20px;
  }
  body.workflow-embedded-open:has(.koozee-home):has(.home-primary-header) .workflow-home-embedded .workflow-project-grid {
    min-height: 280px;
  }
}
body:has(.koozee-home) .home-agent-console__stage { margin-top: 0; }
@media (prefers-reduced-motion: reduce) {
  body:has(.koozee-home) .inbox-btn { transition: none; }
  body:has(.koozee-home) .inbox-btn:hover { transform: none; }
  body:has(.koozee-home) .inbox-btn.notification:hover > .bell-container { animation: none; }
  body:has(.koozee-home) .koozee-bean-store { transition: none; }
  body:has(.koozee-home) .koozee-bean-store:hover,
  body:has(.koozee-home) .koozee-bean-store:active { transform: none; }
}


/* Compact dark login: preserve the current rounded modal footprint and focus it on WeChat authorization. */
.login-modal {
  padding: 20px;
  background: rgba(0, 0, 0, .70);
  backdrop-filter: blur(8px);
}

.login-dialog {
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  width: min(900px, calc(100vw - 40px));
  height: min(540px, calc(100vh - 40px));
  max-height: min(540px, calc(100vh - 40px));
  color: #f6f6f4;
  background: #191919;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 22px;
  box-shadow: 0 28px 86px rgba(0, 0, 0, .56);
  transform: none;
}

.login-dialog .close-button {
  top: 16px;
  right: 16px;
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .065);
  border-radius: 50%;
}

.login-dialog .close-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .13);
}

.login-visual-panel {
  display: block;
  padding: 0;
  background: #101112;
}

.login-visual-stage,
.login-visual-card {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
}

.login-visual-card {
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background-image:
    linear-gradient(180deg, rgba(5, 7, 8, .04) 18%, rgba(5, 7, 8, .12) 44%, rgba(5, 7, 8, .88) 100%),
    url("/site-media/images/home-banner-shenniu-poster-night-v1.png");
  background-position: center;
  background-size: cover;
}

.login-visual-card.has-runtime-image {
  background-position: center;
  background-size: cover;
}

.login-visual-card::before,
.login-visual-card::after,
.login-visual-tag,
.login-visual-thumb,
.login-sparkle,
.login-visual-logo,
.login-visual-dots {
  display: none;
}

.login-visual-copy {
  position: absolute;
  right: 34px;
  bottom: 30px;
  left: 34px;
  z-index: 2;
  display: grid;
  gap: 8px;
  text-align: left;
}

.login-visual-copy span {
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: .08em;
}

.login-visual-copy strong {
  color: #fff;
  font-size: 25px;
  font-weight: 690;
  line-height: 1.26;
  letter-spacing: -.03em;
}

.login-content-panel {
  align-items: stretch;
  justify-content: center;
  padding: 58px 42px 34px;
  background: #191919;
}

.login-content-panel .login-hero,
.login-methods,
.login-email-panel,
.wechat-login-block,
.login-agreement,
.login-message,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-hero,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-methods,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-agreement {
  width: 100%;
}

.login-content-panel .login-hero {
  order: 1;
  padding: 0;
}

.login-dialog h2,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 {
  color: #fff;
  font-size: 28px;
  font-weight: 670;
  letter-spacing: -.035em;
}

.login-hero p {
  margin-top: 9px;
  color: rgba(255, 255, 255, .46);
  font-size: 13px;
}

.wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block {
  order: 2;
  gap: 12px;
  margin-top: 34px;
}

.wechat-login-block > span { display: none; }

.login-methods,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-methods {
  order: 3;
  margin-top: 12px;
}

.login-agreement,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-agreement {
  order: 4;
  margin-top: 20px;
  color: rgba(255, 255, 255, .36);
  font-size: 11px;
  text-align: center;
}

.login-agreement a { color: rgba(255, 255, 255, .66); }

.login-method-button,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-method-button {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  height: 50px;
  color: rgba(255, 255, 255, .84);
  background: rgba(255, 255, 255, .055);
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 11px;
  font-size: 14px;
}

.login-method-button:hover,
.wechat-login-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .17);
  transform: none;
}

.wechat-login-button {
  color: #111;
  background: #f4f4f1;
  border-color: #f4f4f1;
  box-shadow: none;
}

.wechat-login-button:hover {
  color: #111;
  background: #fff;
  border-color: #fff;
}

.wechat-icon { color: #0eac5b; background: transparent; }
.wechat-icon svg { width: 19px; height: 19px; }
.email-icon { color: rgba(255, 255, 255, .82); background: transparent; }
.email-icon svg { width: 17px; height: 17px; }

body.login-email-expanded .login-content-panel {
  padding: 46px 42px 34px;
}

body.login-email-expanded .login-content-panel .login-hero,
body.login-email-expanded .login-email-panel,
body.login-email-expanded .login-message {
  width: 100%;
}

body.login-email-expanded .login-dialog h2 { color: #fff; font-size: 27px; }
body.login-email-expanded .login-email-panel { margin-top: 28px; }
body.login-email-expanded .login-input-shell { background: rgba(255, 255, 255, .075); border-color: rgba(255, 255, 255, .08); }
body.login-email-expanded .login-input-shell:focus-within { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22); box-shadow: 0 0 0 3px rgba(255, 255, 255, .05); }
body.login-email-expanded .login-input-shell input { color: #fff; }
body.login-email-expanded .login-input-shell input::placeholder { color: rgba(255, 255, 255, .34); }
body.login-email-expanded .login-input-shell input:-webkit-autofill,
body.login-email-expanded .login-input-shell input:-webkit-autofill:hover,
body.login-email-expanded .login-input-shell input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; box-shadow: 0 0 0 1000px #2a2a2a inset; }
body.login-email-expanded .login-account-shell select { color: rgba(255, 255, 255, .62); border-left-color: rgba(255, 255, 255, .12); }
body.login-email-expanded .login-account-shell::after { border-color: rgba(255, 255, 255, .5); }
body.login-email-expanded .login-primary,
body.login-email-expanded .login-code-button { color: #111; background: #f4f4f1; border-color: #f4f4f1; }
body.login-email-expanded .login-primary:hover,
body.login-email-expanded .login-code-button:hover:not(:disabled) { color: #111; background: #fff; border-color: #fff; box-shadow: none; }
body.login-email-expanded .login-forgot { color: rgba(255, 255, 255, .48); }
body.login-email-expanded .login-forgot:hover,
body.login-email-expanded .login-switch button { color: rgba(255, 255, 255, .88); }
body.login-email-expanded .login-switch { color: rgba(255, 255, 255, .42); }

@media (max-width: 760px) {
  .login-modal { padding: 12px; }
  .login-dialog { grid-template-columns: 1fr; width: min(420px, calc(100vw - 24px)); height: auto; min-height: 500px; max-height: calc(100vh - 24px); border-radius: 20px; }
  .login-visual-panel { display: block; min-height: 155px; }
  .login-visual-copy { right: 24px; bottom: 20px; left: 24px; }
  .login-visual-copy strong { font-size: 20px; }
  .login-content-panel { padding: 38px 24px 28px; }
  body.login-email-expanded .login-content-panel { padding: 38px 24px 28px; }
}


/* The image sits inside a dark rim; the right side is a QR-only login surface. */
.login-visual-panel {
  padding: 12px;
  background: #171717;
}

.login-visual-stage {
  inset: 12px;
}

.login-visual-card {
  border-radius: 13px;
}

.login-visual-copy {
  right: 46px;
  bottom: 44px;
  left: 46px;
}

.login-content-panel {
  position: relative;
  align-items: center;
  padding: 64px 42px 34px;
}

.login-auth-brand {
  position: absolute;
  top: 34px;
  left: 42px;
  display: flex;
  align-items: center;
  height: 18px;
}

.login-auth-brand img {
  display: block;
  width: auto;
  height: 17px;
  object-fit: contain;
}

.login-content-panel .login-hero {
  align-self: stretch;
  text-align: left;
}

.login-dialog h2,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 {
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.045em;
}

.login-hero p {
  display: none;
}

.wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: 34px;
}

body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-methods,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-agreement {
  display: none;
}

.wechat-login-button,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-button {
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  padding: 10px;
  color: #111;
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}

.wechat-login-button:hover,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-button:hover {
  color: #111;
  background: #fff;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
  transform: translateY(-1px);
}

.wechat-login-button strong {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wechat-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.wechat-qr-pattern {
  position: relative;
  display: block;
  width: 148px;
  height: 148px;
  background:
    linear-gradient(90deg, #111 0 7px, transparent 7px 14px, #111 14px 21px, transparent 21px 28px, #111 28px 35px, transparent 35px 49px, #111 49px 56px, transparent 56px 63px, #111 63px 70px, transparent 70px 84px, #111 84px 91px, transparent 91px 98px, #111 98px 105px, transparent 105px 119px, #111 119px 126px, transparent 126px 133px, #111 133px 140px, transparent 140px),
    linear-gradient(#111 0 7px, transparent 7px 14px, #111 14px 21px, transparent 21px 28px, #111 28px 35px, transparent 35px 42px, #111 42px 49px, transparent 49px 63px, #111 63px 70px, transparent 70px 77px, #111 77px 84px, transparent 84px 98px, #111 98px 105px, transparent 105px 112px, #111 112px 119px, transparent 119px 133px, #111 133px 140px, transparent 140px);
  background-blend-mode: multiply;
  filter: contrast(1.15);
}

.wechat-qr-pattern::before,
.wechat-qr-pattern::after {
  position: absolute;
  width: 35px;
  height: 35px;
  content: "";
  background: #fff;
  border: 7px solid #111;
  box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 14px #111;
}

.wechat-qr-pattern::before {
  top: 0;
  left: 0;
}

.wechat-qr-pattern::after {
  top: 0;
  right: 0;
}

.wechat-qr-frame::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 35px;
  height: 35px;
  content: "";
  background: #fff;
  border: 7px solid #111;
  box-shadow: inset 0 0 0 7px #fff, inset 0 0 0 14px #111;
}

.login-agreement {
  position: absolute;
  right: 28px;
  bottom: 31px;
  left: 28px;
  display: block !important;
  width: auto !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, .40);
  font-size: 11px !important;
  line-height: 1.45;
  text-align: center;
}

.login-agreement a { color: rgba(255, 255, 255, .62); }

@media (max-width: 760px) {
  .login-visual-panel { padding: 9px; }
  .login-visual-stage { inset: 9px; }
  .login-visual-copy { right: 27px; bottom: 25px; left: 27px; }
  .login-content-panel { min-height: 350px; padding: 58px 24px 30px; }
  .login-auth-brand { top: 24px; left: 24px; }
  .login-dialog h2,
  body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 { font-size: 27px; }
  .wechat-login-button,
  body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-button { width: 156px; height: 156px; }
  .wechat-qr-pattern { transform: scale(.84); }
}


/* QR login refinement: match the reference's centered, restrained composition. */
.login-dialog {
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, .66fr);
}

.login-auth-brand {
  right: 42px;
  left: 42px;
  justify-content: center;
}

.login-auth-brand img {
  mix-blend-mode: screen;
}

.login-content-panel .login-hero {
  text-align: center;
}

.login-dialog h2,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -.04em;
}

.wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block {
  margin-top: 28px;
}

.wechat-login-button,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-button {
  width: 176px;
  height: 176px;
  padding: 12px;
  border-radius: 11px;
}

.wechat-qr-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  background: #fff;
}

.wechat-qr-image {
  display: block;
  width: 152px;
  height: 152px;
  object-fit: contain;
  image-rendering: pixelated;
}

.wechat-qr-pattern,
.wechat-qr-frame::after {
  display: none;
}

@media (max-width: 760px) {
  .login-dialog { grid-template-columns: 1fr; }
  .login-auth-brand { right: 24px; left: 24px; }
  .wechat-login-button,
  body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-button { width: 156px; height: 156px; padding: 10px; }
  .wechat-qr-frame,
  .wechat-qr-image { width: 136px; height: 136px; }
}


/* The QR is served directly by the official WeChat authorization page. */
.wechat-login-button { display: none !important; }
.wechat-qr-frame {
  display: block;
  width: 176px;
  height: 176px;
  overflow: hidden;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .18);
}
.wechat-qr-frame iframe {
  display: block;
  width: 176px;
  height: 176px;
  border: 0;
}
@media (max-width: 760px) {
  .wechat-qr-frame,
  .wechat-qr-frame iframe { width: 156px; height: 156px; }
}


/* Center the login QR as one deliberate composition. */
body:not(.login-email-expanded) .login-content-panel .login-hero {
  position: absolute;
  top: calc(50% - 145px);
  right: 32px;
  left: 32px;
}

body:not(.login-email-expanded) .login-dialog h2,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.035em;
}

body:not(.login-email-expanded) .wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

body:not(.login-email-expanded) .login-agreement {
  bottom: 52px;
}

@media (max-width: 760px) {
  body:not(.login-email-expanded) .login-content-panel .login-hero { top: 78px; }
  body:not(.login-email-expanded) .login-dialog h2,
  body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 { font-size: 22px; }
  body:not(.login-email-expanded) .login-agreement { bottom: 30px; }
}


/* Local preview fallback: never leave an empty authorization square. */
.wechat-qr-fallback {
  display: block;
  width: 176px;
  height: 176px;
  object-fit: contain;
  image-rendering: pixelated;
}
.wechat-qr-fallback[hidden] { display: none; }
@media (max-width: 760px) {
  .wechat-qr-fallback { width: 156px; height: 156px; }
}


/* One-tap login keeps the original secure top-level WeChat authorization flow. */
.wechat-qr-frame,
.wechat-qr-fallback { display: none !important; }
.wechat-one-tap-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 176px;
  height: 48px;
  padding: 0 20px;
  color: #151515;
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
  font-size: 15px;
  font-weight: 650;
}
.wechat-one-tap-button:hover { color: #151515; background: #f5f5f2; transform: translateY(-1px); }
.wechat-one-tap-button:disabled { opacity: .7; cursor: wait; transform: none; }
.wechat-one-tap-icon { display: grid; place-items: center; width: 20px; height: 20px; color: #10a95b; }
.wechat-one-tap-icon svg { width: 20px; height: 20px; fill: currentColor; }


/* QR-only login: one square, centered exactly on the right panel's vertical axis. */
.wechat-one-tap-button { display: none !important; }
body:not(.login-email-expanded) .login-content-panel .login-hero {
  right: 0;
  left: 0;
  width: 100%;
  text-align: center;
}
body:not(.login-email-expanded) .login-dialog h2,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .login-dialog h2 {
  margin: 0 auto;
  font-size: 24px;
  line-height: 1.2;
  text-align: center;
}
.wechat-qr-button {
  display: grid;
  place-items: center;
  width: 176px;
  height: 176px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 11px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .2);
}
.wechat-qr-button:hover { background: #fff; box-shadow: 0 15px 34px rgba(0, 0, 0, .28); transform: none; }
.wechat-qr-button img { display: block; width: 176px; height: 176px; object-fit: contain; image-rendering: pixelated; }
.wechat-qr-button strong { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:not(.login-email-expanded) .wechat-login-block,
body:not(.login-email-expanded) .login-modal:not(.wechat-qr-active) .wechat-login-block { left: 50%; transform: translate(-50%, -50%); }
@media (max-width: 760px) {
  .wechat-qr-button,
  .wechat-qr-button img { width: 156px; height: 156px; }
}

/* Signed-out login hover stays within the dark header palette. */
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > .koozee-login-button:hover,
body:has(.koozee-home):has(.home-primary-header) .koozee-login-entry > .koozee-login-button:focus-visible {
  color: #f6f6f3;
  background: #303132;
}

/* Login-carousel photography stays legible behind its own changing copy. */
.login-visual-card.has-runtime-image::after {
  display: block;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 7, 8, .03) 34%, rgba(5, 7, 8, .76) 100%);
  border-radius: inherit;
}

/* Login carousel, image-first editorial treatment. */
@media (min-width: 761px) {
  .login-dialog {
    grid-template-columns: 3fr 2fr;
    width: min(900px, calc(100vw - 40px), calc((100dvh - 40px) * 5 / 3));
    height: auto;
    aspect-ratio: 5 / 3;
  }
}

@media (max-width: 760px) {
  .login-visual-panel {
    aspect-ratio: 1;
    min-height: 0;
  }
  body:not(.login-email-expanded) .login-content-panel .login-hero {
    top: 62px;
  }
}

.login-visual-copy {
  display: none;
}

.login-visual-card {
  background-color: #151515;
  opacity: 1;
}


.login-visual-card.has-runtime-image::after {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .login-visual-card {
    transition: none;
  }
}

/* Compact pagination floats over the photograph, without a footer strip. */
.login-visual-panel { padding: 12px; }
.login-visual-stage { position: relative; inset: auto; width: 100%; aspect-ratio: 1; }
.login-carousel-previous {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-position: center;
  background-size: cover;
  pointer-events: none;
}
.login-visual-dots {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 28px;
  z-index: 2;
}
.login-visual-dots button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 28px;
  padding: 0;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}
.login-visual-dots button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .32);
  transition: background-color 150ms ease-out;
}
.login-visual-dots button.active { background: transparent; }
.login-visual-dots button.active::before { background: #ececea; }
.login-visual-dots button:hover::before { background: #b8b8b6; }
.login-visual-dots button:focus-visible { outline: 1px solid #ececea; outline-offset: -3px; }
@media (min-width: 761px) {
  .login-dialog {
    width: min(900px, calc(100vw - 40px), calc((100dvh - 60px) * 5 / 3));
    aspect-ratio: auto;
    max-height: calc(100dvh - 40px);
  }
}
@media (max-width: 760px) {
  .login-visual-panel { aspect-ratio: auto; padding: 9px; }
  .login-visual-dots { bottom: 15px; }
}

/* Asset library workspace v131. */
body:has(.koozee-home) .product-library-page {
  --asset-line: rgba(255, 255, 255, .075);
  --asset-muted: rgba(232, 235, 238, .48);
  background: #090a0b;
}

body:has(.koozee-home) .product-library-header {
  display: block;
  min-height: 0;
  padding: 18px 0 0;
  background: #090a0b;
  border-bottom: 1px solid var(--asset-line);
}

body:has(.koozee-home) .product-library-header-inner,
body:has(.koozee-home) .product-library-content {
  width: 100%;
  margin: 0;
  padding-right: 0;
  padding-left: 0;
  box-sizing: border-box;
}

body:has(.koozee-home) .product-library-header-inner {
  display: block;
}

body:has(.koozee-home) .product-library-title-block h1 {
  margin: 0;
  color: rgba(247, 248, 249, .94);
  font-size: 24px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
}

body:has(.koozee-home) .product-library-title-block p {
  margin: 6px 0 0;
  color: var(--asset-muted);
  font-size: 12px;
  line-height: 1.5;
}

body:has(.koozee-home) .product-library-title-block {
  grid-column: 1;
  grid-row: 1;
}

body:has(.koozee-home) .product-library-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  margin-top: 0;
}

body:has(.koozee-home) .product-library-tabs {
  display: flex;
  align-items: center;
  gap: 28px;
}

body:has(.koozee-home) .product-library-tabs button {
  position: relative;
  min-height: 42px;
  padding: 0;
  color: rgba(229, 232, 235, .5);
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 570;
  transition: color 160ms cubic-bezier(.23, 1, .32, 1);
}

body:has(.koozee-home) .product-library-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: rgba(240, 243, 244, .92);
  border-radius: 2px 2px 0 0;
  content: "";
  opacity: 0;
  transform: scaleX(.7);
  transition: opacity 160ms cubic-bezier(.23, 1, .32, 1), transform 160ms cubic-bezier(.23, 1, .32, 1);
}

body:has(.koozee-home) .product-library-tabs button:hover,
body:has(.koozee-home) .product-library-tabs button:focus-visible,
body:has(.koozee-home) .product-library-tabs button.is-active {
  color: rgba(247, 248, 249, .94);
  outline: none;
}

body:has(.koozee-home) .product-library-tabs button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

body:has(.koozee-home) .product-library-search {
  display: flex;
  width: min(340px, 34vw);
  height: 38px;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 0 12px;
  color: rgba(230, 234, 236, .42);
  background: #101114;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 9px;
}

body:has(.koozee-home) .product-library-search:focus-within {
  color: rgba(238, 241, 243, .72);
  border-color: rgba(255, 255, 255, .2);
}

body:has(.koozee-home) .product-library-search svg {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

body:has(.koozee-home) .product-library-search input {
  width: 100%;
  min-width: 0;
  color: rgba(244, 246, 247, .9);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

body:has(.koozee-home) .product-library-search input::placeholder {
  color: rgba(229, 233, 235, .38);
}

body:has(.koozee-home) .product-library-header-create,
body:has(.koozee-home) .product-library-page:has(.product-library-empty) .product-library-header-create {
  display: inline-flex;
  width: auto;
  min-width: 108px;
  height: 38px;
  margin: 0;
  padding: 0 14px;
  color: rgba(247, 249, 250, .9);
  background: #1b1d20;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 9px;
  box-shadow: none;
  text-shadow: none;
  font-size: 12px;
  font-weight: 620;
}

body:has(.koozee-home) .product-library-header-create::before { display: none; }
body:has(.koozee-home) .product-library-header-create svg { width: 16px; height: 16px; filter: none; }
body:has(.koozee-home) .product-library-header-create:hover,
body:has(.koozee-home) .product-library-header-create:focus-visible {
  color: #fff;
  background: #24272a;
  border-color: rgba(255, 255, 255, .2);
  box-shadow: none;
  outline: none;
  transform: translateY(-1px);
}
body:has(.koozee-home) .product-library-header-create:active { transform: scale(.97); }

body:has(.koozee-home) .product-library-content,
body:has(.koozee-home) .product-library-content:has(.product-library-empty) {
  display: block;
  min-height: calc(100dvh - 230px);
  padding-top: 32px;
  padding-bottom: 64px;
}

body:has(.koozee-home) .asset-library-section-heading {
  display: flex;
  min-height: 46px;
  align-items: center;
  margin: 0 0 26px;
}

body:has(.koozee-home) .asset-library-section-heading h2 {
  margin: 0;
  color: rgba(246, 248, 249, .92);
  font-size: 20px;
  font-weight: 620;
  line-height: 1.25;
  letter-spacing: -.02em;
}

body:has(.koozee-home) .asset-library-switcher {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

body:has(.koozee-home) .asset-library-switcher button {
  position: relative;
  height: 46px;
  padding: 0;
  color: rgba(232, 235, 237, .42);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color 170ms cubic-bezier(.23, 1, .32, 1);
}

body:has(.koozee-home) .asset-library-switcher button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #f1f3f4;
  border-radius: 2px 2px 0 0;
  content: "";
  opacity: 0;
  transform: scaleX(.55);
  transition: opacity 170ms cubic-bezier(.23, 1, .32, 1), transform 170ms cubic-bezier(.23, 1, .32, 1);
}

body:has(.koozee-home) .asset-library-switcher button:hover,
body:has(.koozee-home) .asset-library-switcher button:focus-visible {
  color: rgba(247, 248, 249, .86);
  outline: none;
}

body:has(.koozee-home) .asset-library-switcher button.is-active {
  color: rgba(250, 251, 252, .94);
  background: transparent;
  box-shadow: none;
}

body:has(.koozee-home) .asset-library-switcher button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

body:has(.koozee-home) .product-list-heading { min-height: 28px; margin-bottom: 16px; }
body:has(.koozee-home) .product-list-heading strong { font-size: 15px; font-weight: 620; }
body:has(.koozee-home) .product-list-heading span { font-size: 10px; }

body:has(.koozee-home) .product-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
  align-items: start;
}

body:has(.koozee-home) .product-card {
  aspect-ratio: auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body:has(.koozee-home) .product-card:hover,
body:has(.koozee-home) .product-card:active {
  border: 0;
  box-shadow: none;
}

body:has(.koozee-home) .product-card:focus-visible {
  border: 0;
  outline: 1px solid rgba(255, 255, 255, .28);
  outline-offset: 5px;
}

body:has(.koozee-home) .product-card-cover {
  position: relative;
  aspect-ratio: 1.56 / 1;
  overflow: hidden;
  background: #181a1d;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 14px;
}

body:has(.koozee-home) .product-card-cover::after { height: 36%; }
body:has(.koozee-home) .product-card-stats { top: auto; right: 9px; bottom: 9px; }

body:has(.koozee-home) .product-card-body {
  position: static;
  height: auto;
  min-height: 58px;
  padding: 12px 2px 0;
  background: transparent;
}

body:has(.koozee-home) .product-card-body strong { font-size: 13px; font-weight: 590; }
body:has(.koozee-home) .product-card-info > span { margin-top: 5px; }
body:has(.koozee-home) .product-card-tags { display: flex; margin-top: 8px; }

body:has(.koozee-home) .product-create-card {
  min-height: 0;
  aspect-ratio: 1.56 / 1;
  align-self: start;
  padding: 18px;
  background: #111315;
  border: 1px dashed rgba(255, 255, 255, .16);
  border-radius: 14px;
}

body:has(.koozee-home) .product-create-card-icon {
  width: 36px;
  height: 36px;
  color: rgba(240, 244, 245, .62);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 10px;
  box-shadow: none;
}

body:has(.koozee-home) .product-create-card-copy { text-align: left; }

body:has(.koozee-home) .product-create-card {
  flex-direction: column;
  gap: 15px;
  justify-content: center;
  color: rgba(243, 245, 246, .82);
  background: #1b1d20;
  border-style: solid;
}

body:has(.koozee-home) .product-create-card-copy { text-align: center; }
body:has(.koozee-home) .product-create-card-copy strong { font-size: 13px; font-weight: 590; }

@media (max-width: 1320px) {
  body:has(.koozee-home) .product-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  body:has(.koozee-home) .product-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

body:has(.koozee-home) .product-library-content:has(.asset-library-empty) .product-library-view {
  display: block;
  width: 100%;
  height: auto;
  transform: none;
}

body:has(.koozee-home) .product-library-content:has(.asset-library-empty) .asset-library-empty {
  display: grid;
  min-height: min(520px, calc(100dvh - 230px));
  place-items: center;
  align-content: center;
  padding: 40px 20px;
}

body:has(.koozee-home) .asset-library-empty h2 { margin: 18px 0 0; font-size: 18px; font-weight: 620; }
body:has(.koozee-home) .asset-library-empty p { margin: 8px 0 20px; font-size: 12px; }
body:has(.koozee-home) .asset-library-empty button { min-height: 38px; padding: 0 15px; font-size: 12px; }

body:has(.koozee-home) .asset-library-empty-icon {
  position: relative;
  display: block;
  width: 76px;
  height: 58px;
  background: #15171a;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 12px;
}
body:has(.koozee-home) .asset-library-empty-icon::before {
  position: absolute;
  top: 19px;
  left: 21px;
  width: 34px;
  height: 22px;
  background: rgba(230, 234, 236, .24);
  clip-path: polygon(0 100%, 34% 18%, 58% 66%, 76% 40%, 100% 100%);
  content: "";
}
body:has(.koozee-home) .asset-library-empty-icon::after {
  position: absolute;
  top: 13px;
  right: 18px;
  width: 6px;
  height: 6px;
  background: rgba(230, 234, 236, .3);
  border-radius: 50%;
  content: "";
}
body:has(.koozee-home) .asset-library-empty-icon--model::before {
  top: 12px;
  left: 27px;
  width: 22px;
  height: 22px;
  background: rgba(230, 234, 236, .28);
  border-radius: 50%;
  clip-path: none;
}
body:has(.koozee-home) .asset-library-empty-icon--model::after {
  top: 35px;
  right: auto;
  left: 19px;
  width: 38px;
  height: 15px;
  background: rgba(230, 234, 236, .22);
  border-radius: 18px 18px 7px 7px;
}

@media (max-width: 760px) {
  body:has(.koozee-home) .product-library-header { padding-top: 12px; }
  body:has(.koozee-home) .product-library-header-inner,
  body:has(.koozee-home) .product-library-content { padding-right: 0; padding-left: 0; }
  body:has(.koozee-home) .product-library-title-block h1 { font-size: 20px; }
  body:has(.koozee-home) .product-library-title-block p { display: none; }
  body:has(.koozee-home) .product-library-toolbar { flex-wrap: wrap; gap: 10px; margin-top: 0; }
  body:has(.koozee-home) .product-library-tabs { width: 100%; gap: 22px; }
  body:has(.koozee-home) .product-library-tabs button { min-height: 38px; font-size: 12px; }
  body:has(.koozee-home) .product-library-search { order: 2; flex: 1 1 150px; width: auto; margin-left: 0; }
  body:has(.koozee-home) .product-library-header-create { order: 2; flex: 0 0 auto; width: auto; min-width: 94px; height: 36px; padding: 0 11px; }
  body:has(.koozee-home) .product-library-content { padding-top: 20px; }
  body:has(.koozee-home) .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  body:has(.koozee-home) .product-card { padding: 0; }
  body:has(.koozee-home) .product-card-body { min-height: 54px; }
  body:has(.koozee-home) .product-create-card { flex-direction: column; gap: 8px; padding: 12px; }
  body:has(.koozee-home) .product-create-card-copy { text-align: center; }
  body:has(.koozee-home) .product-create-card-copy small { display: none; }
}

@media (max-width: 420px) {
  body:has(.koozee-home) .asset-library-section-heading { min-height: 42px; margin-bottom: 18px; }
  body:has(.koozee-home) .asset-library-section-heading h2 { font-size: 18px; }
  body:has(.koozee-home) .asset-library-switcher { gap: 26px; }
  body:has(.koozee-home) .asset-library-switcher button { height: 42px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  body:has(.koozee-home) .product-library-tabs button,
  body:has(.koozee-home) .product-library-tabs button::after,
  body:has(.koozee-home) .product-library-header-create { transition: none; }
}

/* Workbench center alignment v133. */
body:has(.koozee-home).workbench-open .koozee-main > .koozee-content {
  transform: none;
}

/* Canvas-backed asset waterfall v135. */
body:has(.koozee-home) .product-library-content {
  min-height: calc(100dvh - 82px);
  padding: 42px 0 72px;
}

body:has(.koozee-home) .product-library-loading {
  padding: 18px 0;
  color: rgba(235, 238, 240, .44);
  text-align: left;
  font-size: 12px;
}

body:has(.koozee-home) .canvas-asset-waterfall {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(var(--result-columns, 5), minmax(0, 1fr));
  align-items: start;
  gap: 14px;
}

body:has(.koozee-home) .canvas-asset-waterfall .result-masonry-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
}

body:has(.koozee-home) .canvas-asset-card {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #151719;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .2);
}

body:has(.koozee-home) .canvas-asset-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #151719;
}

body:has(.koozee-home) .canvas-asset-preview {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
}

body:has(.koozee-home) .canvas-asset-tile img,
body:has(.koozee-home) .canvas-asset-tile video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms cubic-bezier(.23, 1, .32, 1), filter 220ms ease;
}

body:has(.koozee-home) .canvas-asset-card:hover img,
body:has(.koozee-home) .canvas-asset-card:hover video {
  filter: brightness(.92);
  transform: scale(1.012);
}

body:has(.koozee-home) .canvas-asset-tile .result-video-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  color: #fff;
  background: rgba(7, 8, 9, .68);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  cursor: pointer;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

body:has(.koozee-home) .canvas-asset-tile .result-video-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

body:has(.koozee-home) .canvas-asset-actions {
  position: absolute;
  right: auto;
  bottom: 10px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 5px;
  padding: 5px;
  opacity: 0;
  background: rgba(9, 10, 11, .72);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  transform: translate(-50%, 5px);
  transition: opacity 160ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1);
  backdrop-filter: blur(10px);
}

body:has(.koozee-home) .canvas-asset-card:hover .canvas-asset-actions,
body:has(.koozee-home) .canvas-asset-card:focus-within .canvas-asset-actions {
  opacity: 1;
  transform: translate(-50%, 0);
}

body:has(.koozee-home) .canvas-asset-actions button {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  padding: 0;
  color: rgba(245, 247, 248, .82);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

body:has(.koozee-home) .canvas-asset-actions button:hover,
body:has(.koozee-home) .canvas-asset-actions button:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  outline: none;
}

body:has(.koozee-home) .canvas-asset-actions button:last-child:hover,
body:has(.koozee-home) .canvas-asset-actions button:last-child:focus-visible {
  color: #ff9b9b;
  background: rgba(255, 92, 92, .13);
}

body:has(.koozee-home) .canvas-asset-actions button:disabled { opacity: .45; cursor: wait; }
body:has(.koozee-home) .canvas-asset-actions svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}
body:has(.koozee-home) .canvas-asset-actions [data-canvas-asset-video] svg { fill: currentColor; stroke: none; }

body:has(.koozee-home) .canvas-asset-library-empty {
  margin: 0;
  padding: 28px 0;
  color: rgba(235, 238, 240, .42);
  font-size: 13px;
}

@media (max-width: 760px) {
  body:has(.koozee-home) .product-library-content {
    padding: 24px 0 48px;
  }
  body:has(.koozee-home) .canvas-asset-waterfall,
  body:has(.koozee-home) .canvas-asset-waterfall[data-columns] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  body:has(.koozee-home) .canvas-asset-waterfall .result-masonry-column { gap: 10px; }
  body:has(.koozee-home) .canvas-asset-card { border-radius: 9px; }
  body:has(.koozee-home) .canvas-asset-actions {
    right: auto;
    bottom: 7px;
    left: 50%;
    opacity: 1;
    transform: translateX(-50%);
  }
}

/* Membership benefits preview v141. */
body.membership-benefits-open { overflow: hidden; }
.membership-benefits-page[hidden] { display: none !important; }
body:has(.koozee-home):has(.home-primary-header) .membership-benefits-page {
  position: fixed;
  inset: var(--home-header-height, 72px) max(var(--home-gutter), calc((100vw - var(--home-content-width)) / 2)) 10px;
  z-index: 32;
  overflow: auto;
  color: #f4f6f7;
  background: #090a0b;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .12) transparent;
}

/* Unified academy covers and capability-led membership v142. */
.academy-course-grid { gap: 20px; }
.academy-course-cover {
  isolation: isolate;
  background: #111416;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
}
.academy-course-cover::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 26px 26px;
  content: "";
  opacity: .45;
  pointer-events: none;
}
.academy-course-cover img {
  filter: brightness(.48) saturate(.7) contrast(1.05);
  transform: scale(1.03);
}
.academy-cover-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7,9,10,.12), rgba(7,9,10,.18) 38%, rgba(7,9,10,.92));
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .2);
}
.academy-cover-top {
  position: absolute;
  top: 17px;
  right: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(247,249,250,.9);
}
.academy-cover-top b { font-size: 10px; font-weight: 760; letter-spacing: .12em; }
.academy-cover-top em {
  padding: 5px 8px;
  color: #071112;
  background: rgba(149, 240, 238, .92);
  border-radius: 6px;
  font-size: 9px;
  font-style: normal;
  font-weight: 720;
}
.academy-cover-number {
  position: absolute;
  top: 48px;
  left: 17px;
  z-index: 2;
  color: rgba(255,255,255,.12);
  font-size: clamp(42px, 4vw, 66px);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -.06em;
}
.academy-cover-title {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: block;
  text-align: left;
  transition: opacity 160ms ease, transform 180ms ease;
}
.academy-cover-title small { display: block; margin-bottom: 6px; color: rgba(228,234,236,.55); font-size: 9px; font-weight: 520; letter-spacing: .04em; }
.academy-cover-title strong { display: block; color: #fff; font-size: clamp(15px, 1.35vw, 20px); font-weight: 650; letter-spacing: -.025em; }
.academy-course-overlay {
  inset: 50% auto auto 50%;
  z-index: 3;
  width: auto;
  min-width: 104px;
  min-height: 38px;
  justify-content: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 20px;
  transform: translate(-50%, calc(-50% + 7px));
}
.academy-course-cover:hover img,
.academy-course-cover:focus-visible img { filter: brightness(.32) saturate(.55); transform: scale(1.055); }
.academy-course-cover:hover .academy-course-overlay,
.academy-course-cover:focus-visible .academy-course-overlay { transform: translate(-50%, -50%); }
.academy-course-cover:hover .academy-cover-title,
.academy-course-cover:focus-visible .academy-cover-title { opacity: .28; transform: translateY(3px); }
.academy-course-copy { display: none; }

/* Academy cover finishing and VIP entitlement v144. */
.academy-course-cover::before {
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: .72;
}
.academy-cover-shade {
  z-index: 1;
  background: linear-gradient(90deg, rgba(8,10,11,.78), rgba(8,10,11,.25) 53%, rgba(8,10,11,.08));
  box-shadow: inset 0 0 70px rgba(0,0,0,.14);
}
.academy-cover-top > span { display: flex; align-items: center; gap: 6px; }
.academy-cover-top i {
  padding: 4px 6px;
  color: rgba(240,245,245,.7);
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 740;
  letter-spacing: .08em;
}
@media (max-width: 760px) {
  .academy-cover-top > span { gap: 4px; }
  .academy-cover-top i { padding: 3px 4px; font-size: 6px; }
}

/* Neutral editorial academy covers v145. */
.academy-course-cover {
  background: #1b1c1d;
  border-color: rgba(255,255,255,.1);
  border-radius: 10px;
}
.academy-course-card:nth-child(4n + 1) .academy-course-cover { background: linear-gradient(132deg, #252627, #151617 72%); }
.academy-course-card:nth-child(4n + 2) .academy-course-cover { background: linear-gradient(132deg, #292826, #171716 72%); }
.academy-course-card:nth-child(4n + 3) .academy-course-cover { background: linear-gradient(132deg, #262525, #161616 72%); }
.academy-course-card:nth-child(4n + 4) .academy-course-cover { background: linear-gradient(132deg, #242628, #151617 72%); }
.academy-cover-art { display: none; }
.academy-course-cover::before {
  top: 0;
  right: 25%;
  bottom: 0;
  left: auto;
  width: 1px;
  background: linear-gradient(transparent 12%, rgba(255,255,255,.12) 12%, rgba(255,255,255,.12) 88%, transparent 88%);
  content: "";
  opacity: 1;
  -webkit-mask-image: none;
  mask-image: none;
}
.academy-course-cover::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 25%;
  background: rgba(255,255,255,.025);
  content: "";
}
.academy-cover-shade { display: none; }
.academy-cover-top { z-index: 2; }
.academy-cover-top b { color: rgba(247,247,245,.72); font-weight: 620; letter-spacing: .1em; }
.academy-cover-top em,
.academy-cover-top i {
  color: rgba(247,247,245,.72);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
}
.academy-cover-top em { padding: 5px 7px; font-weight: 620; }
.academy-cover-top i { padding: 4px 6px; }
.academy-cover-number {
  top: 50%;
  right: 4.5%;
  left: auto;
  z-index: 1;
  color: rgba(247,247,245,.17);
  font-size: clamp(46px, 4.2vw, 68px);
  font-weight: 520;
  transform: translateY(-50%);
}
.academy-cover-title { right: 29%; z-index: 2; }
.academy-cover-title small { color: rgba(247,247,245,.44); }
.academy-cover-title strong { color: #f1f1ef; font-weight: 610; }
.academy-course-overlay {
  top: auto;
  right: 4%;
  bottom: 13px;
  left: auto;
  min-width: auto;
  min-height: 30px;
  padding: 0 9px;
  background: #eeeeeb;
  border: 0;
  border-radius: 5px;
  color: #171817;
  transform: translateY(4px);
  backdrop-filter: none;
}
.academy-course-overlay b { font-size: 10px; }
.academy-course-overlay i { display: none; }
.academy-course-cover:hover .academy-course-overlay,
.academy-course-cover:focus-visible .academy-course-overlay { transform: none; }
.academy-course-cover:hover .academy-cover-title,
.academy-course-cover:focus-visible .academy-cover-title { opacity: 1; transform: none; }
.academy-course-cover:hover,
.academy-course-cover:focus-visible { filter: brightness(1.08); }
.academy-lesson-media--designed { background: linear-gradient(132deg, #292a2b, #151617 72%); border-radius: 12px; }
.academy-lesson-media--designed::before { position: absolute; inset: 0 25% 0 auto; width: 1px; background: rgba(255,255,255,.11); content: ""; }
.academy-lesson-media--designed::after { position: absolute; inset: 0 0 0 auto; width: 25%; background: rgba(255,255,255,.025); content: ""; }
.academy-detail-cover-top { z-index: 2; }
.academy-detail-cover-top em { color: rgba(247,247,245,.72); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); }
.academy-detail-cover-number { right: 6%; bottom: 50%; left: auto; z-index: 2; color: rgba(247,247,245,.18); font-weight: 520; transform: translateY(50%); }

@media (max-width: 760px) {
  .academy-cover-number { right: 4%; font-size: 30px; }
  .academy-cover-title { right: 29%; }
  .academy-course-overlay { right: 3%; bottom: 8px; min-height: 24px; padding: 0 6px; }
  .academy-course-overlay b { font-size: 7px; }
}

/* Pin the homepage and balance header spacing v147. */
html:has(.koozee-home),
body:has(.koozee-home) {
  overscroll-behavior-y: none;
}
body:has(.koozee-home) .koozee-home {
  overflow-x: clip;
  overflow-y: visible;
}
body:has(.koozee-home):has(.home-primary-header) .home-primary-header {
  position: sticky;
  top: 0;
  z-index: 180;
  min-height: 80px;
  padding-block: 0;
  align-items: center;
  background: #08090a;
  transform: none;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-brand,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail-bottom,
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
  align-self: center;
  transform: none;
}

/* Restore the five personal-panel actions and keep them caret-free v148. */
body:has(.koozee-home) .koozee-user-panel .koozee-profile-arrow,
body:has(.koozee-home) .koozee-user-panel .koozee-credit-overview > i,
body:has(.koozee-home) .koozee-user-panel .koozee-account-action > i {
  display: none;
}

/* Raise the navigation container so the Shenniu badge stays inside its scroll area v152. */
body:has(.koozee-home):has(.home-primary-header) .koozee-rail {
  transform: translateY(-4px) !important;
}

/* Make both halves of the membership offer explicit v153. */
.membership-capability-copy p {
  max-width: 470px;
}
.membership-capability-note {
  margin: 16px 2px 0;
  color: rgba(228, 233, 235, .42);
  font-size: 11px;
  line-height: 1.6;
}

/* Membership offer, editorial value-led layout v154. */
body:has(.koozee-home):has(.home-primary-header) .membership-benefits-page {
  background: #090a0b;
}

.membership-benefits-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: clamp(42px, 5.4vw, 78px) 0 88px;
}

.membership-offer {
  --membership-accent: #83e1e3;
  --membership-ink: #f2f4f4;
  --membership-muted: rgba(231, 235, 236, .54);
  --membership-line: rgba(255, 255, 255, .11);
  width: 100%;
}

.membership-offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(360px, .72fr);
  min-height: 360px;
  border-top: 1px solid var(--membership-line);
  border-bottom: 1px solid var(--membership-line);
}

.membership-offer-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 52px clamp(40px, 5vw, 76px) 54px 0;
}

.membership-offer-kicker,
.membership-offer-benefits > header > span {
  color: var(--membership-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}

.membership-offer-copy h1 {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--membership-ink);
  font-size: clamp(42px, 4.4vw, 68px);
  font-weight: 520;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.membership-offer-copy h1 strong {
  color: rgba(242, 244, 244, .52);
  font-weight: inherit;
}

.membership-offer-copy > p {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--membership-muted);
  font-size: 15px;
  line-height: 1.7;
  text-wrap: pretty;
}

.membership-offer-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 34px;
}

.membership-offer-primary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 20px;
  color: #0b1516;
  background: var(--membership-accent);
  border: 1px solid var(--membership-accent);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(.23, 1, .32, 1), border-color 180ms cubic-bezier(.23, 1, .32, 1), transform 180ms cubic-bezier(.23, 1, .32, 1);
}

.membership-offer-primary i { font-size: 17px; font-style: normal; font-weight: 450; }
.membership-offer-primary:hover { background: #a2edef; border-color: #a2edef; transform: translateY(-1px); }
.membership-offer-primary:active { transform: scale(.97); }
.membership-offer-primary:focus-visible,
.membership-offer-pillar > button:focus-visible { outline: 2px solid rgba(131, 225, 227, .86); outline-offset: 4px; }

.membership-offer-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(231, 235, 236, .46);
  font-size: 12px;
}

.membership-offer-status > i {
  width: 7px;
  height: 7px;
  background: #64696b;
  border-radius: 50%;
}

.membership-offer-status.is-active > i {
  background: var(--membership-accent);
  box-shadow: 0 0 0 4px rgba(131, 225, 227, .1);
}

.membership-offer-map {
  display: flex;
  min-width: 0;
  align-self: stretch;
  flex-direction: column;
  justify-content: center;
  padding: 38px 0 38px clamp(34px, 4vw, 58px);
  border-left: 1px solid var(--membership-line);
}

.membership-offer-map-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 22px;
}

.membership-offer-map-head span { color: rgba(231, 235, 236, .42); font-size: 11px; }
.membership-offer-map-head b { color: rgba(242, 244, 244, .75); font-size: 12px; font-weight: 580; }

.membership-offer-map-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  border-top: 1px solid var(--membership-line);
}

.membership-offer-map-item > span { color: var(--membership-accent); font-size: 11px; font-variant-numeric: tabular-nums; }
.membership-offer-map-item div b { display: block; color: rgba(242, 244, 244, .88); font-size: 15px; font-weight: 610; }
.membership-offer-map-item div small { display: block; margin-top: 5px; color: rgba(231, 235, 236, .42); font-size: 11px; }
.membership-offer-map-item > svg { width: 22px; height: 22px; fill: none; stroke: rgba(231, 235, 236, .42); stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.membership-offer-map > p { margin: 20px 0 0; color: rgba(231, 235, 236, .38); font-size: 11px; line-height: 1.6; }

.membership-offer-benefits {
  padding-top: clamp(64px, 7vw, 98px);
}

.membership-offer-benefits > header {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .95fr);
  align-items: end;
  column-gap: 60px;
  padding-bottom: 30px;
}

.membership-offer-benefits > header > span { grid-column: 1 / -1; margin-bottom: 14px; }
.membership-offer-benefits > header h2 {
  max-width: 660px;
  margin: 0;
  color: var(--membership-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 540;
  line-height: 1.18;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.membership-offer-benefits > header p { max-width: 490px; margin: 0; color: var(--membership-muted); font-size: 13px; line-height: 1.7; text-wrap: pretty; }

.membership-offer-pillars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--membership-line);
  border-bottom: 1px solid var(--membership-line);
}

.membership-offer-pillar {
  min-width: 0;
  padding: 38px clamp(30px, 4vw, 58px) 40px 0;
}

.membership-offer-pillar + .membership-offer-pillar {
  padding-right: 0;
  padding-left: clamp(30px, 4vw, 58px);
  border-left: 1px solid var(--membership-line);
}

.membership-offer-pillar-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 14px;
  padding-bottom: 28px;
}

.membership-offer-pillar-head > span { color: var(--membership-accent); font-size: 12px; font-variant-numeric: tabular-nums; }
.membership-offer-pillar-head small { color: rgba(231, 235, 236, .42); font-size: 10px; }
.membership-offer-pillar-head h3 { margin: 5px 0 0; color: var(--membership-ink); font-size: 21px; font-weight: 610; letter-spacing: -.02em; }
.membership-offer-pillar-head > i { display: grid; width: 46px; height: 46px; place-items: center; color: rgba(231, 235, 236, .58); background: rgba(255, 255, 255, .045); border-radius: 10px; }
.membership-offer-pillar-head > i svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }

.membership-offer-pillar ul { margin: 0; padding: 0; list-style: none; }
.membership-offer-pillar li {
  position: relative;
  min-height: 64px;
  padding: 17px 18px 17px 34px;
  border-top: 1px solid rgba(255, 255, 255, .075);
}
.membership-offer-pillar li::before { position: absolute; top: 22px; left: 2px; width: 14px; height: 7px; border-bottom: 1.5px solid var(--membership-accent); border-left: 1.5px solid var(--membership-accent); content: ""; transform: rotate(-45deg); }
.membership-offer-pillar li b { display: block; color: rgba(242, 244, 244, .88); font-size: 14px; font-weight: 600; }
.membership-offer-pillar li span { display: block; margin-top: 6px; color: rgba(231, 235, 236, .43); font-size: 11px; line-height: 1.55; }

.membership-offer-pillar > button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 0;
  color: var(--membership-accent);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms cubic-bezier(.23, 1, .32, 1), transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.membership-offer-pillar > button i { font-size: 16px; font-style: normal; }
.membership-offer-pillar > button:hover { color: #b0f1f2; transform: translateX(3px); }
.membership-offer-pillar > button:active { transform: scale(.97); }

.membership-offer-boundary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  column-gap: clamp(30px, 4vw, 60px);
  padding: 50px 0 0;
}
.membership-offer-boundary > i { width: 1px; height: 100%; min-height: 86px; background: var(--membership-line); }
.membership-offer-boundary > div > span { color: rgba(231, 235, 236, .4); font-size: 10px; letter-spacing: .08em; }
.membership-offer-boundary > div > b { display: block; margin-top: 9px; color: rgba(242, 244, 244, .82); font-size: 16px; font-weight: 600; }
.membership-offer-boundary > div > p { max-width: 560px; margin: 9px 0 0; color: rgba(231, 235, 236, .43); font-size: 11px; line-height: 1.65; }
.membership-offer-credit { grid-column: 1 / -1; margin: 38px 0 0; padding-top: 18px; color: rgba(231, 235, 236, .42); border-top: 1px solid rgba(255, 255, 255, .075); font-size: 11px; line-height: 1.6; }
.membership-offer-credit strong { margin-right: 10px; color: var(--membership-accent); font-weight: 620; }

@media (max-width: 980px) {
  .membership-offer-hero { grid-template-columns: 1fr; }
  .membership-offer-map { padding: 30px 0; border-top: 1px solid var(--membership-line); border-left: 0; }
  .membership-offer-benefits > header { grid-template-columns: 1fr; row-gap: 16px; }
}

@media (max-width: 760px) {
  .membership-benefits-content { padding: 32px 0 64px; }
  .membership-offer-copy { padding: 34px 0 38px; }
  .membership-offer-copy h1 { font-size: clamp(36px, 11vw, 52px); }
  .membership-offer-copy > p { font-size: 13px; }
  .membership-offer-actions { align-items: flex-start; flex-direction: column; gap: 17px; }
  .membership-offer-primary { width: 100%; }
  .membership-offer-benefits { padding-top: 58px; }
  .membership-offer-benefits > header { padding-bottom: 24px; }
  .membership-offer-pillars { grid-template-columns: 1fr; }
  .membership-offer-pillar { padding: 30px 0; }
  .membership-offer-pillar + .membership-offer-pillar { padding: 30px 0; border-top: 1px solid var(--membership-line); border-left: 0; }
  .membership-offer-boundary { grid-template-columns: 1fr; row-gap: 26px; padding-top: 38px; }
  .membership-offer-boundary > i { width: 100%; height: 1px; min-height: 1px; }
  .membership-offer-credit { grid-column: auto; margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .membership-offer-primary,
  .membership-offer-pillar > button { transition: none; }
}

/* Membership product page v155. */
.membership-benefits-content {
  max-width: 1320px;
  padding: clamp(34px, 4vw, 56px) 0 76px;
}

.membership-product {
  --member-accent: #8edfe1;
  --member-bg: #0b0d0e;
  --member-panel: #111315;
  --member-panel-raised: #17191b;
  --member-ink: #f1f3f3;
  --member-muted: rgba(232, 235, 236, .5);
  --member-line: rgba(255, 255, 255, .09);
  color: var(--member-ink);
}

.membership-product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 280px;
  overflow: hidden;
  background: var(--member-panel);
  border: 1px solid var(--member-line);
  border-radius: 14px;
}

.membership-product-intro {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 42px clamp(38px, 5vw, 68px);
}

.membership-product-intro > span,
.membership-product-section-title > span,
.membership-product-compare-head span,
.membership-product-footer span {
  color: var(--member-accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.membership-product-intro h1 {
  margin: 14px 0 0;
  color: var(--member-ink);
  font-size: clamp(38px, 4vw, 54px);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.04em;
}

.membership-product-intro > p {
  max-width: 640px;
  margin: 15px 0 0;
  color: var(--member-muted);
  font-size: 14px;
  line-height: 1.65;
}

.membership-product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.membership-product-tags i {
  padding: 7px 10px;
  color: rgba(239, 242, 242, .68);
  background: rgba(255, 255, 255, .045);
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  line-height: 1;
}

.membership-product-state {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: 38px 36px;
  background: var(--member-panel-raised);
  border-left: 1px solid var(--member-line);
}

.membership-product-state > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(233, 236, 237, .46);
  font-size: 11px;
}

.membership-product-state > span i {
  width: 7px;
  height: 7px;
  background: #676c6e;
  border-radius: 50%;
}

.membership-product-state.is-active > span i {
  background: var(--member-accent);
  box-shadow: 0 0 0 4px rgba(142, 223, 225, .1);
}

.membership-product-state > strong {
  margin-top: 22px;
  color: var(--member-ink);
  font-size: 27px;
  font-weight: 620;
  letter-spacing: -.03em;
}

.membership-product-state > p {
  margin: 7px 0 0;
  color: var(--member-muted);
  font-size: 11px;
}

.membership-product-state > button,
.membership-product-footer > button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 15px;
  color: #0a1415;
  background: var(--member-accent);
  border: 1px solid var(--member-accent);
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(.23, 1, .32, 1), border-color 180ms cubic-bezier(.23, 1, .32, 1), transform 180ms cubic-bezier(.23, 1, .32, 1);
}

.membership-product-state > button i,
.membership-product-footer > button i { font-size: 16px; font-style: normal; }
.membership-product-state > button:hover,
.membership-product-footer > button:hover { background: #adebed; border-color: #adebed; transform: translateY(-1px); }
.membership-product-state > button:active,
.membership-product-footer > button:active { transform: scale(.98); }
.membership-product-state > button:focus-visible,
.membership-product-rights article > button:focus-visible,
.membership-product-footer > button:focus-visible { outline: 2px solid rgba(142, 223, 225, .9); outline-offset: 3px; }

.membership-product-section {
  padding-top: 66px;
}

.membership-product-section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
  align-items: end;
  gap: 40px;
  padding: 0 2px 25px;
}

.membership-product-section-title > span { grid-column: 1 / -1; margin-bottom: -25px; }
.membership-product-section-title h2,
.membership-product-compare-head h2 {
  max-width: 720px;
  margin: 0;
  color: var(--member-ink);
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 580;
  line-height: 1.2;
  letter-spacing: -.03em;
  text-wrap: balance;
}

.membership-product-section-title > p,
.membership-product-compare-head > p {
  margin: 0;
  color: var(--member-muted);
  font-size: 12px;
  line-height: 1.65;
}

.membership-product-rights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  background: var(--member-panel);
  border: 1px solid var(--member-line);
  border-radius: 14px;
}

.membership-product-rights > article {
  min-width: 0;
  padding: 30px 34px 28px;
}

.membership-product-rights > article + article { border-left: 1px solid var(--member-line); }

.membership-product-rights article > header {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 16px;
  padding-bottom: 24px;
}

.membership-product-rights article > header > i {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(238, 242, 242, .7);
  background: rgba(255, 255, 255, .05);
  border-radius: 9px;
}
.membership-product-rights article > header > i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.membership-product-rights article > header span { color: var(--member-accent); font-size: 9px; letter-spacing: .08em; }
.membership-product-rights article > header h3 { margin: 4px 0 0; color: var(--member-ink); font-size: 20px; font-weight: 610; letter-spacing: -.02em; }

.membership-product-rights ul { margin: 0; padding: 0; list-style: none; }
.membership-product-rights li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  min-height: 67px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.membership-product-rights li > i { color: rgba(142, 223, 225, .58); font-size: 9px; font-style: normal; font-variant-numeric: tabular-nums; }
.membership-product-rights li b { display: block; color: rgba(241, 243, 243, .86); font-size: 13px; font-weight: 600; }
.membership-product-rights li span { display: block; margin-top: 5px; color: rgba(232, 235, 236, .4); font-size: 10px; line-height: 1.55; }
.membership-product-rights article > button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 0;
  color: var(--member-accent);
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms cubic-bezier(.23, 1, .32, 1), transform 160ms cubic-bezier(.23, 1, .32, 1);
}
.membership-product-rights article > button i { font-size: 15px; font-style: normal; }
.membership-product-rights article > button:hover { color: #b2eff0; transform: translateX(3px); }
.membership-product-rights article > button:active { transform: scale(.97); }

.membership-product-compare {
  padding-top: 66px;
}

.membership-product-compare-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .58fr);
  align-items: end;
  gap: 40px;
  padding: 0 2px 24px;
}
.membership-product-compare-head > div > span { display: block; margin-bottom: 13px; }

.membership-product-table {
  overflow: hidden;
  background: var(--member-panel);
  border: 1px solid var(--member-line);
  border-radius: 12px;
}
.membership-product-table > div {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(130px, .5fr) minmax(160px, .6fr);
  min-height: 54px;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .065);
}
.membership-product-table > div:first-child { border-top: 0; }
.membership-product-table > div > * { height: 100%; padding: 0 22px; display: flex; align-items: center; box-sizing: border-box; }
.membership-product-table > div > * + * { border-left: 1px solid rgba(255, 255, 255, .065); }
.membership-product-table span { color: rgba(239, 242, 242, .7); font-size: 11px; }
.membership-product-table i { color: rgba(232, 235, 236, .38); font-size: 10px; font-style: normal; }
.membership-product-table b { color: rgba(241, 243, 243, .86); font-size: 10px; font-weight: 600; }
.membership-product-table-head { background: var(--member-panel-raised); }
.membership-product-table-head span { color: rgba(232, 235, 236, .42); font-size: 9px; letter-spacing: .05em; }
.membership-product-table-head span:last-child { color: var(--member-accent); }

.membership-product-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: center;
  gap: 38px;
  margin-top: 18px;
  padding: 24px 26px;
  background: rgba(255, 255, 255, .025);
  border-radius: 10px;
}
.membership-product-footer p { margin: 6px 0 0; color: var(--member-muted); font-size: 11px; line-height: 1.55; }
.membership-product-footer > button { margin-top: 0; }

@media (max-width: 900px) {
  .membership-product-hero { grid-template-columns: 1fr 290px; }
  .membership-product-intro { padding: 36px; }
  .membership-product-state { padding: 32px 28px; }
  .membership-product-section-title,
  .membership-product-compare-head { grid-template-columns: 1fr; gap: 12px; }
  .membership-product-section-title > span { margin-bottom: 0; }
}

@media (max-width: 700px) {
  .membership-benefits-content { padding: 26px 0 58px; }
  .membership-product-hero { grid-template-columns: 1fr; }
  .membership-product-intro { padding: 32px 24px 30px; }
  .membership-product-intro h1 { font-size: 38px; }
  .membership-product-state { padding: 25px 24px 28px; border-top: 1px solid var(--member-line); border-left: 0; }
  .membership-product-state > strong { margin-top: 16px; font-size: 23px; }
  .membership-product-state > button { margin-top: 20px; }
  .membership-product-section,
  .membership-product-compare { padding-top: 52px; }
  .membership-product-section-title h2,
  .membership-product-compare-head h2 { font-size: 28px; }
  .membership-product-rights { grid-template-columns: 1fr; }
  .membership-product-rights > article { padding: 26px 24px 24px; }
  .membership-product-rights > article + article { border-top: 1px solid var(--member-line); border-left: 0; }
  .membership-product-table { overflow-x: auto; }
  .membership-product-table > div { min-width: 640px; }
  .membership-product-footer { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .membership-product-state > button,
  .membership-product-rights article > button,
  .membership-product-footer > button { transition: none; }
}

/* Professional personal center v157. */
.membership-benefits-content {
  max-width: 1420px;
  margin: 0 auto;
  padding: 32px 0 72px;
}

.personal-center {
  --account-accent: #83d9da;
  --account-ink: #f1f3f4;
  --account-muted: rgba(229, 233, 235, .5);
  --account-line: rgba(255, 255, 255, .085);
  --account-panel: #111315;
  --account-panel-raised: #15181a;
  width: 100%;
  color: var(--account-ink);
}

.personal-center--expanded {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.personal-center-sidebar {
  position: sticky;
  top: 0;
  overflow: hidden;
  background: var(--account-panel);
  border: 1px solid var(--account-line);
  border-radius: 12px;
}

.personal-center-sidebar-profile {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 30px 20px 23px;
  text-align: center;
}

.personal-center-sidebar-avatar {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
}
.personal-center-sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.personal-center-sidebar-profile strong { max-width: 100%; margin-top: 16px; overflow: hidden; font-size: 16px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.personal-center-sidebar-profile > span { margin-top: 7px; color: var(--account-muted); font-size: 10px; }

.personal-center-sidebar-balance {
  margin: 0 14px 16px;
  padding: 17px 16px 15px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 9px;
}
.personal-center-sidebar-balance > span { color: var(--account-muted); font-size: 9px; }
.personal-center-sidebar-balance strong { display: block; margin-top: 8px; font-size: 24px; font-weight: 620; font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.personal-center-sidebar-balance strong i { color: var(--account-muted); font-size: 10px; font-style: normal; font-weight: 500; }
.personal-center-sidebar-balance button {
  width: 100%;
  min-height: 36px;
  margin-top: 14px;
  color: #0b1516;
  background: var(--account-accent);
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.personal-center-sidebar nav { padding: 7px 10px 12px; border-top: 1px solid var(--account-line); }
.personal-center-sidebar nav button {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  color: rgba(230, 234, 236, .48);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: color 160ms ease, background-color 180ms cubic-bezier(.23, 1, .32, 1);
}
.personal-center-sidebar nav button:hover { color: rgba(244, 246, 247, .8); background: rgba(255, 255, 255, .035); }
.personal-center-sidebar nav button.is-active { color: var(--account-ink); background: rgba(131, 217, 218, .085); }
.personal-center-sidebar nav button i { display: grid; place-items: center; font-style: normal; }
.personal-center-sidebar nav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.personal-center-main { min-width: 0; }
.personal-center-welcome {
  display: flex;
  min-height: 156px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 31px 34px;
  background:
    radial-gradient(circle at 87% 18%, rgba(131, 217, 218, .09), transparent 27%),
    linear-gradient(105deg, #15191b, #111315 63%);
  border: 1px solid var(--account-line);
  border-radius: 12px;
}
.personal-center-welcome > div:first-child > span { color: var(--account-accent); font-size: 10px; }
.personal-center-welcome h1 { margin: 8px 0 0; font-size: clamp(27px, 3vw, 38px); font-weight: 610; line-height: 1.15; letter-spacing: -.035em; }
.personal-center-welcome p { margin: 10px 0 0; color: var(--account-muted); font-size: 11px; }
.personal-center-welcome > div:last-child { display: flex; gap: 9px; }
.personal-center-welcome button {
  min-height: 40px;
  padding: 0 16px;
  color: rgba(240, 243, 244, .78);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 630;
  cursor: pointer;
}
.personal-center-welcome button.is-primary { color: #0a1516; background: var(--account-accent); border-color: var(--account-accent); }

.personal-center-section {
  scroll-margin-top: 16px;
  margin-top: 18px;
  padding: 26px 30px 28px;
  background: var(--account-panel);
  border: 1px solid var(--account-line);
  border-radius: 12px;
}
.personal-center-section > header {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--account-line);
}
.personal-center-section > header h2 { margin: 0; font-size: 18px; font-weight: 610; letter-spacing: -.02em; }
.personal-center-section > header p { margin: 0; color: var(--account-muted); font-size: 10px; }
.personal-center-section > header > i {
  padding: 5px 8px;
  color: rgba(239, 242, 243, .5);
  background: rgba(255, 255, 255, .05);
  border-radius: 5px;
  font-size: 9px;
  font-style: normal;
}
.personal-center-membership-panel.is-active > header > i { color: var(--account-accent); background: rgba(131, 217, 218, .09); }

.personal-center-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.personal-center-profile-grid > div {
  display: grid;
  min-height: 58px;
  grid-template-columns: minmax(90px, .45fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.personal-center-profile-grid > div:nth-child(odd) { padding-right: 24px; border-right: 1px solid rgba(255, 255, 255, .055); }
.personal-center-profile-grid > div:nth-child(even) { padding-left: 24px; }
.personal-center-profile-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }
.personal-center-profile-grid span { color: var(--account-muted); font-size: 10px; }
.personal-center-profile-grid strong { overflow: hidden; color: rgba(241, 243, 244, .82); font-size: 11px; font-weight: 540; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.personal-center-profile-grid button { padding: 0; color: var(--account-accent); background: transparent; border: 0; font: inherit; font-size: 9px; cursor: pointer; }

.personal-center-membership-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0 22px;
}
.personal-center-membership-summary small { color: var(--account-muted); font-size: 9px; }
.personal-center-membership-summary strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 620; letter-spacing: -.03em; }
.personal-center-membership-summary p { max-width: 680px; margin: 9px 0 0; color: var(--account-muted); font-size: 10px; line-height: 1.6; }
.personal-center-membership-summary > button {
  display: flex;
  min-width: 136px;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  color: #0a1516;
  background: var(--account-accent);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.personal-center-rights { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--account-line); border-bottom: 1px solid var(--account-line); }
.personal-center-rights article { display: flex; min-width: 0; gap: 12px; padding: 18px 16px; border-right: 1px solid var(--account-line); }
.personal-center-rights article:first-child { padding-left: 0; }
.personal-center-rights article:last-child { padding-right: 0; border-right: 0; }
.personal-center-rights article > i { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; color: rgba(239, 242, 243, .6); background: rgba(255, 255, 255, .045); border-radius: 7px; }
.personal-center-rights svg, .personal-center-service-grid svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.personal-center-rights strong { display: block; color: rgba(242, 244, 245, .82); font-size: 10px; font-weight: 600; }
.personal-center-rights span { display: block; margin-top: 5px; color: var(--account-muted); font-size: 9px; line-height: 1.5; }
.personal-center-membership-note { margin: 15px 0 0; color: rgba(229, 233, 235, .36); font-size: 9px; }

.personal-center-record-filters { display: flex; gap: 5px; }
.personal-center-record-filters button {
  min-height: 29px;
  padding: 0 10px;
  color: var(--account-muted);
  background: transparent;
  border: 0;
  border-radius: 5px;
  font: inherit;
  font-size: 9px;
  cursor: pointer;
}
.personal-center-record-filters button:hover { color: rgba(242, 244, 245, .82); background: rgba(255, 255, 255, .04); }
.personal-center-record-filters button.is-active { color: var(--account-accent); background: rgba(131, 217, 218, .085); }
.personal-center-record-head,
.personal-center-record-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(90px, .45fr) minmax(90px, .42fr) minmax(110px, .55fr);
  gap: 16px;
  align-items: center;
}
.personal-center-record-head { min-height: 44px; color: rgba(229, 233, 235, .34); font-size: 9px; }
.personal-center-record-row { min-height: 56px; border-top: 1px solid rgba(255, 255, 255, .055); }
.personal-center-record-row > span { display: flex; min-width: 0; align-items: center; gap: 10px; }
.personal-center-record-row > span > i { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; background: rgba(255, 255, 255, .045); border-radius: 6px; }
.personal-center-record-row .credit-bean { transform: scale(.65); }
.personal-center-record-row strong { overflow: hidden; color: rgba(240, 243, 244, .78); font-size: 10px; font-weight: 540; text-overflow: ellipsis; white-space: nowrap; }
.personal-center-record-row em { color: var(--account-muted); font-size: 9px; font-style: normal; }
.personal-center-record-row > b { font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; }
.personal-center-record-row > b.is-positive { color: #8ddcb3; }
.personal-center-record-row > b.is-negative { color: rgba(240, 243, 244, .56); }
.personal-center-record-row time { color: rgba(229, 233, 235, .36); font-size: 9px; font-variant-numeric: tabular-nums; }
.personal-center-record-empty { display: grid; min-height: 110px; place-items: center; color: var(--account-muted); font-size: 10px; border-top: 1px solid rgba(255, 255, 255, .055); }
.personal-center-section > footer:not(.personal-center-security) { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; border-top: 1px solid var(--account-line); }
.personal-center-section > footer:not(.personal-center-security) span { color: var(--account-muted); font-size: 9px; }
.personal-center-section > footer:not(.personal-center-security) button { color: var(--account-accent); background: transparent; border: 0; font: inherit; font-size: 9px; cursor: pointer; }

.personal-center-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.personal-center-service-grid button {
  display: grid;
  min-height: 78px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 13px 18px 13px 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--account-line);
  font: inherit;
  cursor: pointer;
  transition: background-color 180ms cubic-bezier(.23, 1, .32, 1);
}
.personal-center-service-grid button:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--account-line); }
.personal-center-service-grid button:nth-child(even) { padding-left: 24px; }
.personal-center-service-grid button:nth-last-child(-n + 2) { border-bottom: 0; }
.personal-center-service-grid button:hover { background: rgba(255, 255, 255, .025); }
.personal-center-service-grid button > i { display: grid; width: 34px; height: 34px; place-items: center; color: rgba(239, 242, 243, .58); background: rgba(255, 255, 255, .045); border-radius: 7px; }
.personal-center-service-grid strong { display: block; color: rgba(241, 243, 244, .82); font-size: 10px; font-weight: 590; }
.personal-center-service-grid small { display: block; margin-top: 5px; color: var(--account-muted); font-size: 9px; }
.personal-center-service-grid b { color: rgba(240, 243, 244, .28); font-size: 14px; font-weight: 400; transition: color 160ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1); }
.personal-center-service-grid button:hover b { color: var(--account-accent); transform: translateX(3px); }

.personal-center-security { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--account-line); }
.personal-center-security strong { display: block; font-size: 10px; font-weight: 590; }
.personal-center-security span { display: block; margin-top: 5px; color: var(--account-muted); font-size: 9px; }
.personal-center-security button { min-height: 34px; padding: 0 13px; color: rgba(241, 166, 166, .75); background: transparent; border: 1px solid rgba(231, 127, 127, .17); border-radius: 6px; font: inherit; font-size: 9px; cursor: pointer; }
.personal-center-security button:hover { color: #ffc2c2; background: rgba(231, 127, 127, .065); }

.personal-center button { transition: color 160ms ease, background-color 180ms cubic-bezier(.23, 1, .32, 1), border-color 180ms ease, transform 180ms cubic-bezier(.23, 1, .32, 1); }
.personal-center button:active { transform: scale(.97); }
.personal-center button:focus-visible { outline: 2px solid rgba(131, 217, 218, .82); outline-offset: 3px; }

.personal-center--signed-out { display: grid; min-height: calc(100vh - 180px); place-items: center; }
.personal-center-login { width: min(400px, 100%); text-align: center; }
.personal-center-login > span { display: grid; width: 56px; height: 56px; place-items: center; margin: 0 auto 20px; color: rgba(238, 242, 243, .68); background: #151719; border: 1px solid var(--account-line); border-radius: 12px; }
.personal-center-login svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.personal-center-login h1 { margin: 0; font-size: 28px; font-weight: 600; letter-spacing: -.03em; }
.personal-center-login p { margin: 10px 0 24px; color: var(--account-muted); font-size: 11px; }
.personal-center-login button { min-height: 42px; padding: 0 22px; color: #0b1516; background: var(--account-accent); border: 0; border-radius: 7px; font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; }

@media (max-width: 1050px) {
  .personal-center--expanded { grid-template-columns: 210px minmax(0, 1fr); gap: 16px; }
  .personal-center-rights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-center-rights article:nth-child(2) { border-right: 0; }
  .personal-center-rights article:nth-child(-n + 2) { border-bottom: 1px solid var(--account-line); }
  .personal-center-rights article:nth-child(3) { padding-left: 0; }
}

@media (max-width: 760px) {
  .membership-benefits-content { padding: 18px 0 52px; }
  .personal-center--expanded { grid-template-columns: 1fr; }
  .personal-center-sidebar { position: static; }
  .personal-center-sidebar-profile { align-items: center; flex-direction: row; padding: 18px; text-align: left; }
  .personal-center-sidebar-avatar { width: 54px; height: 54px; }
  .personal-center-sidebar-profile strong { margin: 0 0 0 13px; }
  .personal-center-sidebar-profile > span { margin: 0 0 0 auto; }
  .personal-center-sidebar-balance { display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .personal-center-sidebar-balance strong { grid-row: 2; }
  .personal-center-sidebar-balance button { grid-row: 1 / 3; grid-column: 2; width: auto; margin: 0; padding: 0 12px; }
  .personal-center-sidebar nav { display: flex; overflow-x: auto; }
  .personal-center-sidebar nav button { min-width: max-content; grid-template-columns: 18px auto; }
  .personal-center-welcome { align-items: flex-start; flex-direction: column; }
  .personal-center-profile-grid { grid-template-columns: 1fr; }
  .personal-center-profile-grid > div:nth-child(odd), .personal-center-profile-grid > div:nth-child(even) { padding: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .055); }
  .personal-center-profile-grid > div:last-child { border-bottom: 0; }
  .personal-center-membership-summary { align-items: flex-start; flex-direction: column; }
  .personal-center-membership-summary > button { width: 100%; }
  .personal-center-record-head { display: none; }
  .personal-center-record-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 12px 0; }
  .personal-center-record-row em { display: none; }
  .personal-center-record-row time { grid-column: 1; padding-left: 37px; }
  .personal-center-record-row > b { grid-row: 1 / 3; grid-column: 2; }
}

@media (max-width: 560px) {
  .personal-center-welcome, .personal-center-section { padding: 22px 18px; }
  .personal-center-welcome > div:last-child { width: 100%; }
  .personal-center-welcome button { flex: 1; }
  .personal-center-section > header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .personal-center-rights, .personal-center-service-grid { grid-template-columns: 1fr; }
  .personal-center-rights article, .personal-center-rights article:first-child, .personal-center-rights article:nth-child(3), .personal-center-rights article:last-child { padding: 15px 0; border-right: 0; border-bottom: 1px solid var(--account-line); }
  .personal-center-rights article:last-child { border-bottom: 0; }
  .personal-center-service-grid button, .personal-center-service-grid button:nth-child(odd), .personal-center-service-grid button:nth-child(even) { padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--account-line); }
  .personal-center-service-grid button:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .personal-center button, .personal-center-service-grid b { transition: none; }
}

/* Personal center full-width borderless refinement v158. */
.membership-benefits-content {
  width: 100%;
  max-width: var(--home-content-width, 1760px);
  padding-top: 34px;
}

.personal-center--expanded {
  grid-template-columns: 276px minmax(0, 1fr);
  gap: 28px;
}

.personal-center-sidebar,
.personal-center-welcome,
.personal-center-section {
  border: 0;
  box-shadow: none;
}

.personal-center-sidebar {
  background: #111416;
  border-radius: 10px;
}

.personal-center-sidebar-profile {
  padding: 36px 24px 29px;
}

.personal-center-sidebar-avatar {
  width: 88px;
  height: 88px;
}

.personal-center-sidebar-profile strong {
  margin-top: 19px;
  font-size: 20px;
}

.personal-center-sidebar-profile > span {
  margin-top: 8px;
  font-size: 13px;
}

.personal-center-sidebar-balance {
  margin: 0 18px 19px;
  padding: 21px 19px 18px;
  background: #181c1e;
  border: 0;
}

.personal-center-sidebar-balance > span { font-size: 12px; }
.personal-center-sidebar-balance strong { margin-top: 10px; font-size: 30px; }
.personal-center-sidebar-balance strong i { font-size: 12px; }
.personal-center-sidebar-balance button { min-height: 42px; margin-top: 17px; font-size: 12px; }

.personal-center-sidebar nav {
  padding: 11px 12px 15px;
  border-top-color: rgba(255, 255, 255, .065);
}

.personal-center-sidebar nav button {
  min-height: 50px;
  grid-template-columns: 27px minmax(0, 1fr);
  gap: 11px;
  padding: 0 14px;
  font-size: 14px;
}
.personal-center-sidebar nav svg { width: 18px; height: 18px; }

.personal-center-welcome {
  min-height: 184px;
  padding: 40px 44px;
  background:
    radial-gradient(circle at 88% 15%, rgba(131, 217, 218, .1), transparent 29%),
    linear-gradient(105deg, #161a1c, #111416 64%);
  border-radius: 10px;
}
.personal-center-welcome > div:first-child > span { font-size: 12px; }
.personal-center-welcome h1 { margin-top: 10px; font-size: clamp(38px, 3.4vw, 48px); }
.personal-center-welcome p { margin-top: 13px; font-size: 14px; }
.personal-center-welcome button { min-height: 44px; padding: 0 19px; font-size: 13px; }

.personal-center-section {
  margin-top: 22px;
  padding: 34px 38px 36px;
  background: #111416;
  border-radius: 10px;
}
.personal-center-section > header {
  min-height: 44px;
  padding-bottom: 24px;
}
.personal-center-section > header h2 { font-size: 24px; }
.personal-center-section > header p { font-size: 13px; }
.personal-center-section > header > i { padding: 6px 10px; font-size: 11px; }

.personal-center-profile-grid > div {
  min-height: 72px;
  grid-template-columns: minmax(108px, .42fr) minmax(0, 1fr) auto;
}
.personal-center-profile-grid span { font-size: 13px; }
.personal-center-profile-grid strong { font-size: 14px; }
.personal-center-profile-grid button { font-size: 12px; }

.personal-center-membership-summary { padding: 30px 0 27px; }
.personal-center-membership-summary small { font-size: 12px; }
.personal-center-membership-summary strong { margin-top: 8px; font-size: 31px; }
.personal-center-membership-summary p { margin-top: 11px; font-size: 13px; }
.personal-center-membership-summary > button { min-width: 156px; min-height: 44px; padding: 0 17px; font-size: 13px; }
.personal-center-rights article { gap: 14px; padding: 22px 18px; }
.personal-center-rights article > i { width: 38px; height: 38px; }
.personal-center-rights svg, .personal-center-service-grid svg { width: 18px; height: 18px; }
.personal-center-rights strong { font-size: 13px; }
.personal-center-rights span { margin-top: 6px; font-size: 11px; }
.personal-center-membership-note { margin-top: 18px; font-size: 11px; }

.personal-center-record-filters button { min-height: 34px; padding: 0 13px; font-size: 12px; }
.personal-center-record-head { min-height: 49px; font-size: 11px; }
.personal-center-record-row { min-height: 64px; }
.personal-center-record-row > span > i { width: 32px; height: 32px; }
.personal-center-record-row strong { font-size: 13px; }
.personal-center-record-row em,
.personal-center-record-row > b,
.personal-center-record-row time { font-size: 12px; }
.personal-center-record-empty { min-height: 130px; font-size: 13px; }
.personal-center-section > footer:not(.personal-center-security) { padding-top: 20px; }
.personal-center-section > footer:not(.personal-center-security) span,
.personal-center-section > footer:not(.personal-center-security) button { font-size: 12px; }

.personal-center-service-grid button {
  min-height: 92px;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 15px;
}
.personal-center-service-grid button > i { width: 40px; height: 40px; }
.personal-center-service-grid strong { font-size: 13px; }
.personal-center-service-grid small { margin-top: 6px; font-size: 11px; }
.personal-center-service-grid b { font-size: 16px; }
.personal-center-security { min-height: 76px; margin-top: 22px; padding-top: 22px; }
.personal-center-security strong { font-size: 13px; }
.personal-center-security span { margin-top: 6px; font-size: 11px; }
.personal-center-security button { min-height: 38px; padding: 0 15px; font-size: 11px; }

@media (max-width: 1050px) {
  .personal-center--expanded { grid-template-columns: 230px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 760px) {
  .personal-center--expanded { grid-template-columns: 1fr; }
  .personal-center-sidebar-avatar { width: 60px; height: 60px; }
  .personal-center-welcome { min-height: 170px; padding: 30px 26px; }
  .personal-center-welcome h1 { font-size: 36px; }
  .personal-center-section { padding: 27px 24px 29px; }
}

/* Personal center membership account v159. */
.personal-center-membership-panel {
  padding: 0;
  overflow: hidden;
  background: #101315;
}

.personal-center-membership-panel > header {
  min-height: 92px;
  padding: 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.personal-center-membership-panel > header > div > span {
  display: block;
  margin-bottom: 6px;
  color: rgba(132, 220, 221, .72);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .16em;
}

.personal-center-membership-panel > header > i {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  color: rgba(233, 237, 238, .62);
  background: rgba(255, 255, 255, .045);
  border-radius: 999px;
  font-size: 11px;
}

.personal-center-membership-panel > header > i::before {
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  content: "";
}

.personal-center-membership-panel.is-active > header > i {
  color: #8fe1d2;
  background: rgba(93, 201, 181, .09);
}

.personal-center-membership-layout {
  display: grid;
  grid-template-columns: minmax(270px, .7fr) minmax(0, 1.8fr);
  min-height: 410px;
}

.personal-center-membership-pass {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px 38px 34px;
  background:
    radial-gradient(circle at 84% 16%, rgba(137, 221, 222, .16), transparent 26%),
    linear-gradient(145deg, #1c2224, #15191b 68%);
}

.personal-center-membership-pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(243, 246, 246, .78);
}

.personal-center-membership-pass-top span {
  font-size: 17px;
  font-weight: 720;
  letter-spacing: -.02em;
}

.personal-center-membership-pass-top b {
  color: rgba(232, 237, 238, .34);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .16em;
}

.personal-center-membership-pass > div:nth-child(2) {
  margin-top: auto;
  padding-top: 68px;
}

.personal-center-membership-pass small {
  color: rgba(230, 235, 236, .42);
  font-size: 11px;
}

.personal-center-membership-pass strong {
  display: block;
  margin-top: 9px;
  color: #f3f5f5;
  font-size: clamp(28px, 2.4vw, 36px);
  font-weight: 610;
  letter-spacing: -.035em;
}

.personal-center-membership-pass > p {
  max-width: 320px;
  margin: 15px 0 0;
  color: rgba(230, 235, 236, .48);
  font-size: 12px;
  line-height: 1.65;
}

.personal-center-membership-pass > button {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
  padding: 0 17px;
  color: #0b1717;
  background: #8adbdc;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 720;
  cursor: pointer;
}

.personal-center-membership-pass > button span { font-size: 17px; font-weight: 450; }
.personal-center-membership-pass > button:hover { background: #a4e7e8; transform: translateY(-1px); }

.personal-center-membership-value {
  min-width: 0;
  padding: 37px 40px 35px;
  background: #121517;
}

.personal-center-membership-value-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 27px;
}

.personal-center-membership-value-head > span {
  color: #eef1f2;
  font-size: 20px;
  font-weight: 610;
  letter-spacing: -.02em;
}

.personal-center-membership-value-head > p {
  max-width: 350px;
  margin: 0;
  color: rgba(229, 234, 235, .4);
  font-size: 11px;
  line-height: 1.55;
  text-align: right;
}

.personal-center-membership-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .075);
  border-bottom: 1px solid rgba(255, 255, 255, .075);
}

.personal-center-membership-groups > section {
  min-width: 0;
  padding: 27px 28px 24px 0;
}

.personal-center-membership-groups > section + section {
  padding-right: 0;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, .075);
}

.personal-center-membership-groups section > header {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 48px;
}

.personal-center-membership-groups section > header > i {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(139, 220, 221, .78);
  background: rgba(132, 220, 221, .075);
  border-radius: 9px;
}

.personal-center-membership-groups svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.personal-center-membership-groups header span {
  display: block;
  color: rgba(139, 220, 221, .66);
  font-size: 10px;
}

.personal-center-membership-groups header strong {
  display: block;
  margin-top: 4px;
  color: rgba(241, 244, 245, .84);
  font-size: 14px;
  font-weight: 600;
}

.personal-center-membership-groups ul { margin: 20px 0 0; padding: 0; list-style: none; }
.personal-center-membership-groups li { position: relative; padding: 15px 0 15px 24px; border-top: 1px solid rgba(255, 255, 255, .055); }
.personal-center-membership-groups li::before { position: absolute; top: 22px; left: 2px; width: 9px; height: 5px; border-bottom: 1.5px solid #83d9da; border-left: 1.5px solid #83d9da; content: ""; transform: rotate(-45deg); }
.personal-center-membership-groups li b { display: block; color: rgba(242, 244, 245, .82); font-size: 13px; font-weight: 610; }
.personal-center-membership-groups li span { display: block; margin-top: 5px; color: rgba(229, 234, 235, .4); font-size: 11px; line-height: 1.55; }

.personal-center-membership-rule {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 66px;
  padding: 0 38px;
  background: #0e1112;
}

.personal-center-membership-rule span {
  color: rgba(139, 220, 221, .66);
  font-size: 11px;
  font-weight: 650;
}

.personal-center-membership-rule p {
  margin: 0;
  color: rgba(229, 234, 235, .38);
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1120px) {
  .personal-center-membership-layout { grid-template-columns: 290px minmax(0, 1fr); }
  .personal-center-membership-value-head { align-items: start; flex-direction: column; gap: 8px; }
  .personal-center-membership-value-head > p { text-align: left; }
  .personal-center-membership-groups { grid-template-columns: 1fr; }
  .personal-center-membership-groups > section { padding-right: 0; }
  .personal-center-membership-groups > section + section { padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .075); border-left: 0; }
}

@media (max-width: 760px) {
  .personal-center-membership-panel { padding: 0; }
  .personal-center-membership-panel > header { min-height: 82px; padding: 0 24px; }
  .personal-center-membership-layout { grid-template-columns: 1fr; }
  .personal-center-membership-pass,
  .personal-center-membership-value { padding: 29px 24px; }
  .personal-center-membership-pass > div:nth-child(2) { padding-top: 54px; }
  .personal-center-membership-rule { grid-template-columns: 1fr; gap: 6px; padding: 18px 24px; }
}

/* Membership validity progress v160. */
.personal-center-membership-pass > div:nth-child(2) {
  padding-top: 42px;
}

.personal-center-membership-progress {
  margin-top: 23px;
}

.personal-center-membership-progress > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.personal-center-membership-progress > div:first-child strong {
  margin: 0;
  color: rgba(244, 247, 247, .94);
  font-size: 19px;
  font-weight: 610;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

.personal-center-membership-progress > div:first-child span {
  color: rgba(230, 235, 236, .42);
  font-size: 10px;
}

.personal-center-membership-progress-track {
  position: relative;
  height: 3px;
  overflow: hidden;
  margin-top: 11px;
  background: rgba(255, 255, 255, .09);
  border-radius: 999px;
}

.personal-center-membership-progress-track > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #79d0d2, #a5e5dc);
  border-radius: inherit;
}

.personal-center-membership-progress > small {
  display: block;
  margin-top: 9px;
  color: rgba(230, 235, 236, .35);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.personal-center-membership-progress + button {
  margin-top: 22px;
}

@media (max-width: 760px) {
  .personal-center-membership-pass > div:nth-child(2) { padding-top: 42px; }
}

/* Personal center membership, account-led layout v161. */
.personal-center-membership-panel--v2 {
  padding: 34px 38px 0;
  overflow: hidden;
  background: #111416;
}

.personal-center-membership-panel--v2 > header {
  min-height: auto;
  padding: 0 0 25px;
  border-bottom: 0;
}

.personal-center-membership-panel--v2 > header > div {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.personal-center-membership-panel--v2 > header > div > span { display: none; }
.personal-center-membership-panel--v2 > header > div > p { color: rgba(229, 234, 235, .38); font-size: 12px; }
.personal-center-membership-panel--v2 > header > i { min-height: 28px; padding: 0 11px; font-size: 10px; }

.personal-center-member-overview {
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) minmax(240px, .9fr) 126px;
  align-items: center;
  gap: 24px;
  min-height: 144px;
  padding: 28px 30px;
  background:
    radial-gradient(circle at 74% 15%, rgba(131, 217, 218, .075), transparent 30%),
    linear-gradient(110deg, #1a1f21, #161a1c 62%, #141819);
  border-radius: 10px;
}

.personal-center-member-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.personal-center-member-identity > i {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: #95ddde;
  background: rgba(131, 217, 218, .09);
  border-radius: 50%;
}

.personal-center-member-identity svg,
.personal-center-member-benefits svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.personal-center-member-identity span,
.personal-center-member-benefits article span {
  color: rgba(131, 217, 218, .66);
  font-size: 10px;
}

.personal-center-member-identity strong {
  display: block;
  margin-top: 5px;
  color: #f2f4f4;
  font-size: 24px;
  font-weight: 610;
  letter-spacing: -.025em;
}

.personal-center-member-identity p {
  margin: 7px 0 0;
  color: rgba(229, 234, 235, .42);
  font-size: 12px;
  line-height: 1.55;
}

.personal-center-member-validity {
  display: grid;
  grid-template-columns: auto minmax(130px, 1fr);
  align-items: center;
  gap: 22px;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, .075);
}

.personal-center-member-validity > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.personal-center-member-validity > div:first-child strong {
  color: #f0f3f3;
  font-size: 31px;
  font-weight: 590;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.035em;
}

.personal-center-member-validity > div:first-child span { color: rgba(229, 234, 235, .4); font-size: 10px; }
.personal-center-member-validity-detail > div:first-child { display: flex; align-items: flex-start; flex-direction: column; gap: 4px; }
.personal-center-member-validity-detail span { color: rgba(229, 234, 235, .38); font-size: 9px; }
.personal-center-member-validity-detail b { color: rgba(238, 241, 242, .67); font-size: 10px; font-weight: 550; font-variant-numeric: tabular-nums; }
.personal-center-member-validity-detail .personal-center-membership-progress-track { margin-top: 10px; }

.personal-center-member-overview > button {
  display: flex;
  min-height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  color: #0b1717;
  background: #8bdadb;
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  cursor: pointer;
}

.personal-center-member-overview > button span { font-size: 16px; font-weight: 450; }
.personal-center-member-overview > button:hover { background: #a6e6e7; transform: translateY(-1px); }

.personal-center-member-benefits-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 38px 2px 22px;
}

.personal-center-member-benefits-head span { color: rgba(131, 217, 218, .65); font-size: 10px; }
.personal-center-member-benefits-head strong { display: block; margin-top: 5px; color: rgba(242, 244, 245, .9); font-size: 18px; font-weight: 610; }
.personal-center-member-benefits-head > p { max-width: 450px; margin: 0; color: rgba(229, 234, 235, .39); font-size: 11px; line-height: 1.55; text-align: right; }

.personal-center-member-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .075);
}

.personal-center-member-benefits article {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 25px 24px 28px 0;
}

.personal-center-member-benefits article + article {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, .075);
}

.personal-center-member-benefits article > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: rgba(227, 233, 234, .56);
  background: rgba(255, 255, 255, .045);
  border-radius: 8px;
}

.personal-center-member-benefits svg { width: 18px; height: 18px; }
.personal-center-member-benefits article strong { display: block; margin-top: 5px; color: rgba(242, 244, 245, .84); font-size: 14px; font-weight: 610; }
.personal-center-member-benefits article p { margin: 7px 0 0; color: rgba(229, 234, 235, .37); font-size: 11px; line-height: 1.55; }

.personal-center-membership-panel--v2 > .personal-center-membership-rule {
  min-height: 58px;
  margin: 0 -38px;
  padding: 0 38px;
  background: #0e1112;
}

@media (max-width: 1180px) {
  .personal-center-member-overview { grid-template-columns: minmax(280px, 1fr) minmax(260px, .8fr); }
  .personal-center-member-overview > button { grid-column: 1 / -1; width: 160px; justify-self: end; margin-top: -8px; }
  .personal-center-member-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .personal-center-member-benefits article:nth-child(3) { padding-left: 0; border-top: 1px solid rgba(255, 255, 255, .075); border-left: 0; }
  .personal-center-member-benefits article:nth-child(4) { border-top: 1px solid rgba(255, 255, 255, .075); }
}

@media (max-width: 760px) {
  .personal-center-membership-panel--v2 { padding: 27px 24px 0; }
  .personal-center-membership-panel--v2 > header { min-height: auto; padding: 0 0 22px; }
  .personal-center-membership-panel--v2 > header > div { align-items: flex-start; flex-direction: column; gap: 6px; }
  .personal-center-member-overview { grid-template-columns: 1fr; gap: 23px; padding: 24px; }
  .personal-center-member-validity { padding: 21px 0 0; border-top: 1px solid rgba(255, 255, 255, .075); border-left: 0; }
  .personal-center-member-overview > button { grid-column: auto; width: 100%; justify-self: stretch; margin-top: 0; }
  .personal-center-member-benefits-head { align-items: flex-start; flex-direction: column; gap: 8px; padding-top: 31px; }
  .personal-center-member-benefits-head > p { text-align: left; }
  .personal-center-member-benefits { grid-template-columns: 1fr; }
  .personal-center-member-benefits article,
  .personal-center-member-benefits article + article { padding: 21px 0; border-top: 1px solid rgba(255, 255, 255, .075); border-left: 0; }
  .personal-center-member-benefits article:first-child { border-top: 0; }
  .personal-center-membership-panel--v2 > .personal-center-membership-rule { margin: 0 -24px; padding: 17px 24px; }
}

/* Normalize the former icon-only profile entry inside the text navigation v168. */
body:has(.koozee-home):has(.home-primary-header) .koozee-rail .koozee-membership-entry,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail .koozee-membership-entry:focus-visible {
  display: flex;
  width: auto !important;
  min-width: 0 !important;
  height: 40px !important;
  padding: 0 !important;
  color: #d8d8d8;
  background: transparent !important;
  border-radius: 0;
  box-shadow: none !important;
}

body:has(.koozee-home):has(.home-primary-header) .koozee-rail .koozee-membership-entry.active {
  color: #27cee6;
}

body:has(.koozee-home):has(.home-primary-header) .koozee-rail .koozee-membership-entry:not(.active):hover {
  color: #fff;
  background: transparent !important;
}

/* Dedicated custom service page v169. */
.custom-service-page[hidden] {
  display: none !important;
}

body.custom-service-open {
  background: #090b0b;
}

body:has(.koozee-home):has(.home-primary-header) .custom-service-page {
  width: calc(100% - 180px);
  max-width: 1880px;
  margin: 0 auto;
  padding: 34px 0 96px;
  color: #edf0ef;
}

.custom-service-shell {
  --service-accent: #80d6d5;
  --service-ink: #edf0ef;
  --service-muted: rgba(226, 232, 231, .52);
  --service-line: rgba(232, 239, 238, .11);
}

.custom-service-hero {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  align-items: end;
  gap: 80px;
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--service-line);
}

.custom-service-kicker,
.custom-service-cases header > div > span,
.custom-service-contact > div > span {
  display: block;
  color: var(--service-accent);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .13em;
}

.custom-service-hero h1 {
  max-width: 980px;
  margin: 20px 0 24px;
  color: var(--service-ink);
  font-size: clamp(48px, 4.8vw, 82px);
  font-weight: 590;
  letter-spacing: -.055em;
  line-height: 1.08;
  text-wrap: balance;
}

.custom-service-hero__copy > p {
  max-width: 700px;
  margin: 0;
  color: var(--service-muted);
  font-size: 18px;
  line-height: 1.7;
  text-wrap: pretty;
}

.custom-service-hero__routes {
  border-top: 1px solid var(--service-line);
}

.custom-service-hero__routes a {
  display: grid;
  min-height: 116px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  column-gap: 20px;
  color: inherit;
  border-bottom: 1px solid var(--service-line);
  text-decoration: none;
  transition: color .22s cubic-bezier(.23, 1, .32, 1), transform .22s cubic-bezier(.23, 1, .32, 1);
}

.custom-service-hero__routes a:hover {
  color: var(--service-accent);
  transform: translateX(6px);
}

.custom-service-hero__routes a:focus-visible,
.custom-service-offer__content > button:focus-visible,
.custom-service-cases nav button:focus-visible,
.custom-service-contact > button:focus-visible {
  outline: 2px solid var(--service-accent);
  outline-offset: 4px;
}

.custom-service-hero__routes span {
  grid-row: 1 / 3;
  color: rgba(226, 232, 231, .33);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.custom-service-hero__routes strong {
  color: currentColor;
  font-size: 19px;
  font-weight: 610;
}

.custom-service-hero__routes small {
  margin-top: 8px;
  color: var(--service-muted);
  font-size: 13px;
}

.custom-service-main {
  display: grid;
  gap: 0;
}

.custom-service-offer {
  display: grid;
  min-height: 650px;
  grid-template-columns: minmax(0, 1.08fr) minmax(410px, .92fr);
  gap: clamp(60px, 7vw, 128px);
  align-items: center;
  padding: 104px 0;
  border-bottom: 1px solid var(--service-line);
}

.custom-service-offer--project .custom-service-offer__visual {
  grid-column: 2;
}

.custom-service-offer--project .custom-service-offer__content {
  grid-column: 1;
  grid-row: 1;
}

.custom-service-offer__visual {
  position: relative;
  height: clamp(420px, 34vw, 610px);
  overflow: hidden;
  background: #141818;
  border-radius: 12px;
}

.custom-service-offer__visual::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(to bottom, transparent, rgba(4, 6, 6, .76));
  content: "";
  pointer-events: none;
}

.custom-service-offer__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s cubic-bezier(.23, 1, .32, 1);
}

.custom-service-offer:hover .custom-service-offer__visual img {
  transform: scale(1.015);
}

.custom-service-offer__visual > span {
  position: absolute;
  z-index: 1;
  right: 24px;
  bottom: 22px;
  color: rgba(245, 248, 247, .86);
  font-size: 13px;
  font-weight: 560;
}

.custom-service-index {
  color: var(--service-accent);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
}

.custom-service-offer__content h2 {
  margin: 22px 0 24px;
  color: var(--service-ink);
  font-size: clamp(38px, 3.4vw, 58px);
  font-weight: 580;
  letter-spacing: -.045em;
  line-height: 1.13;
  text-wrap: balance;
}

.custom-service-offer__content > p {
  max-width: 600px;
  margin: 0;
  color: var(--service-muted);
  font-size: 17px;
  line-height: 1.72;
  text-wrap: pretty;
}

.custom-service-offer__content ul {
  margin: 36px 0 38px;
  padding: 0;
  border-top: 1px solid var(--service-line);
  list-style: none;
}

.custom-service-offer__content li {
  display: grid;
  min-height: 66px;
  grid-template-columns: 118px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid var(--service-line);
}

.custom-service-offer__content li b {
  color: rgba(241, 244, 243, .92);
  font-size: 14px;
  font-weight: 600;
}

.custom-service-offer__content li span {
  color: rgba(226, 232, 231, .44);
  font-size: 13px;
  line-height: 1.5;
}

.custom-service-offer__content > button,
.custom-service-contact > button {
  display: inline-flex;
  min-width: 210px;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 20px;
  color: #0b1717;
  background: var(--service-accent);
  border: 0;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
  transition: background-color .2s ease-out, transform .2s cubic-bezier(.23, 1, .32, 1);
}

.custom-service-offer__content > button:hover,
.custom-service-contact > button:hover {
  background: #9ee4e2;
  transform: translateY(-2px);
}

.custom-service-offer__content > button:active,
.custom-service-contact > button:active {
  transform: scale(.97);
}

.custom-service-offer__content > button span,
.custom-service-contact > button span {
  font-size: 18px;
  font-weight: 450;
}

.custom-service-process {
  padding: 104px 0 112px;
  border-bottom: 1px solid var(--service-line);
}

.custom-service-process > header,
.custom-service-cases > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 44px;
}

.custom-service-process h2,
.custom-service-cases h2,
.custom-service-contact h2 {
  margin: 0;
  color: var(--service-ink);
  font-size: clamp(30px, 2.6vw, 44px);
  font-weight: 590;
  letter-spacing: -.035em;
  line-height: 1.16;
}

.custom-service-process > header p,
.custom-service-contact p {
  max-width: 520px;
  margin: 0;
  color: var(--service-muted);
  font-size: 14px;
  line-height: 1.6;
}

.custom-service-process ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--service-line);
  list-style: none;
}

.custom-service-process li {
  min-height: 162px;
  padding: 24px 28px 20px 0;
}

.custom-service-process li + li {
  padding-left: 28px;
  border-left: 1px solid var(--service-line);
}

.custom-service-process li span {
  display: block;
  color: var(--service-accent);
  font-size: 12px;
}

.custom-service-process li strong {
  display: block;
  margin-top: 36px;
  color: rgba(241, 244, 243, .9);
  font-size: 17px;
  font-weight: 610;
}

.custom-service-process li small {
  display: block;
  margin-top: 9px;
  color: rgba(226, 232, 231, .4);
  font-size: 12px;
  line-height: 1.5;
}

.custom-service-cases {
  padding: 110px 0 120px;
}

.custom-service-cases header > div > span {
  margin-bottom: 14px;
}

.custom-service-cases nav {
  display: flex;
  gap: 4px;
  padding-bottom: 2px;
}

.custom-service-cases nav button {
  min-height: 40px;
  padding: 0 14px;
  color: rgba(226, 232, 231, .46);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.custom-service-cases nav button:hover,
.custom-service-cases nav button.is-active {
  color: #eaf3f2;
  background: rgba(128, 214, 213, .1);
}

.custom-service-case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 54px 30px;
}

.custom-service-case-grid article[hidden] {
  display: none;
}

.custom-service-case-grid article {
  min-width: 0;
}

.custom-service-case-grid article > img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #141818;
  border-radius: 10px;
  filter: saturate(.82) contrast(1.04);
}

.custom-service-case-grid article > div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  column-gap: 22px;
  padding-top: 18px;
}

.custom-service-case-grid article span {
  grid-row: 1 / 3;
  color: var(--service-accent);
  font-size: 12px;
}

.custom-service-case-grid article h3 {
  margin: 0;
  color: rgba(241, 244, 243, .93);
  font-size: 20px;
  font-weight: 610;
  letter-spacing: -.02em;
}

.custom-service-case-grid article p {
  max-width: 620px;
  margin: 9px 0 0;
  color: rgba(226, 232, 231, .42);
  font-size: 13px;
  line-height: 1.65;
}

.custom-service-contact {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 54px 62px;
  background: #121717;
  border-radius: 12px;
}

.custom-service-contact h2 {
  margin: 14px 0 14px;
}

@media (max-width: 1180px) {
  body:has(.koozee-home):has(.home-primary-header) .custom-service-page { width: calc(100% - 96px); }
  .custom-service-hero { grid-template-columns: 1fr; gap: 54px; }
  .custom-service-hero__routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-service-hero__routes a + a { padding-left: 28px; border-left: 1px solid var(--service-line); }
  .custom-service-offer { grid-template-columns: 1fr 1fr; gap: 48px; }
  .custom-service-process ol { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .custom-service-process li:nth-child(4) { padding-left: 0; border-top: 1px solid var(--service-line); border-left: 0; }
  .custom-service-process li:nth-child(5) { border-top: 1px solid var(--service-line); }
}

@media (max-width: 800px) {
  body:has(.koozee-home):has(.home-primary-header) .custom-service-page { width: calc(100% - 36px); padding-top: 12px; }
  .custom-service-hero { min-height: auto; padding: 54px 0 44px; }
  .custom-service-hero h1 { font-size: clamp(40px, 11vw, 58px); }
  .custom-service-hero__routes { grid-template-columns: 1fr; }
  .custom-service-hero__routes a + a { padding-left: 0; border-left: 0; }
  .custom-service-offer { min-height: 0; grid-template-columns: 1fr; gap: 42px; padding: 72px 0; }
  .custom-service-offer--project .custom-service-offer__visual,
  .custom-service-offer--project .custom-service-offer__content { grid-column: 1; grid-row: auto; }
  .custom-service-offer--project .custom-service-offer__visual { order: 0; }
  .custom-service-offer--project .custom-service-offer__content { order: 1; }
  .custom-service-offer__visual { height: min(68vw, 470px); }
  .custom-service-process > header,
  .custom-service-cases > header { align-items: flex-start; flex-direction: column; gap: 22px; }
  .custom-service-process ol { grid-template-columns: 1fr 1fr; }
  .custom-service-process li,
  .custom-service-process li + li { min-height: 142px; padding: 22px 18px 18px 0; border-top: 1px solid var(--service-line); border-left: 0; }
  .custom-service-process li:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--service-line); }
  .custom-service-case-grid { grid-template-columns: 1fr; }
  .custom-service-contact { align-items: flex-start; flex-direction: column; padding: 40px 28px; }
  .custom-service-contact > button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .custom-service-hero__routes a,
  .custom-service-offer__visual img,
  .custom-service-offer__content > button,
  .custom-service-contact > button { transition: none; }
}

/* Custom service shell v174: navigation first, content intentionally blank. */
.custom-service-page--shell {
  min-height: 100vh;
  padding: 0 !important;
  color: #f4f4f2;
  background-color: #090a0a;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .045) .7px, transparent .8px);
  background-size: 22px 22px;
}

.custom-service-page--shell .service-studio-header {
  min-height: 78px;
  padding-inline: max(42px, calc((100vw - 1840px) / 2));
  background: rgba(9, 10, 10, .97);
  border-bottom: 0;
}

.custom-service-page--shell .service-studio-header > nav {
  display: flex;
  gap: 14px;
}

.custom-service-page--shell .service-studio-header > nav a {
  min-height: 34px;
  padding-inline: 12px;
  color: rgba(244, 244, 242, .5);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -.01em;
}

.custom-service-page--shell .service-studio-header > nav a:is(:hover, .is-active) {
  color: #f7f7f5;
}

.custom-service-page--shell .service-studio-header > nav a.is-active {
  background: #202121;
}

.custom-service-page--shell .service-studio-header > a img {
  width: auto;
  height: 26px;
  mix-blend-mode: screen;
}

.custom-service-page--shell .service-studio-header > button {
  width: 30px;
  height: 30px;
  border: 0;
}

.service-studio-blank {
  min-height: calc(100vh - 78px);
}

@media (max-width: 980px) {
  .custom-service-page--shell .service-studio-header {
    padding-inline: 24px;
  }

  .custom-service-page--shell .service-studio-header > nav {
    max-width: calc(100vw - 250px);
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .custom-service-page--shell .service-studio-header > nav::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 680px) {
  .custom-service-page--shell .service-studio-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 14px 18px 0;
  }

  .custom-service-page--shell .service-studio-header > nav {
    position: static;
    transform: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: calc(100vw - 36px);
    max-width: none;
  }

  .custom-service-page--shell .service-studio-header > nav a {
    padding-inline: 14px;
    font-size: 14px;
  }

  .service-studio-blank {
    min-height: calc(100vh - 126px);
  }
}

/* Shared compact account dropdown for home and standalone services. */
.service-account-menu { position: relative; width: 30px; height: 30px; }
.service-account-trigger { display: block; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.service-account-trigger img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.header-user-menu > .restored-account-panel {
  position: absolute; top: calc(100% + 16px); right: 0; z-index: 300;
  display: block; width: 280px; max-width: calc(100vw - 36px); padding: 10px;
  color: #ddd; background: #191a1a; border: 1px solid #2b2c2c; border-radius: 14px;
  box-shadow: 0 16px 48px #0005; text-align: left;
}
.header-user-menu > .restored-account-panel[hidden] { display: none !important; }
.restored-account-panel > button, .restored-account-membership > button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 42px; padding: 10px 12px; color: inherit;
  font: inherit; font-size: 14px; font-weight: 450; text-align: left;
  border: 0; border-radius: 7px; background: transparent; cursor: pointer;
}
.restored-account-panel > button:hover { background: #282a2a; color: white; }
.restored-account-panel > button i { color: #747777; font-size: 20px; font-style: normal; }
.restored-account-panel > button b { color: #98d8d6; font-size: 14px; font-weight: 500; }
.restored-account-panel > .restored-account-identity { display: block; padding: 14px 12px; background: #242626; }
.restored-account-identity strong { display: block; font-size: 17px; font-weight: 550; }
.restored-account-identity small { display: flex; justify-content: space-between; margin-top: 8px; color: #979b9b; font-size: 12px; }
.restored-account-membership { margin: 8px 0; padding: 12px; background: #25261f; border-radius: 8px; }
.restored-account-membership > strong { color: #dfd6b7; font-size: 14px; font-weight: 550; }
.restored-account-membership > button { min-height: 32px; padding: 8px 0 0; color: #bcb7a4; font-size: 12px; }
.restored-account-panel > .danger { color: #c79595; }
.restored-account-panel button:focus-visible, .service-account-trigger:focus-visible { outline: 2px solid #aaa; outline-offset: 2px; }
body .header-user-menu > .restored-account-panel > button {
  position: static; width: 100%; height: auto; min-height: 42px;
  transform: none; white-space: normal;
}
body .header-user-menu > .restored-account-panel > .restored-account-identity {
  display: block; min-height: 80px; padding: 14px 12px;
}
.restored-account-panel::before, .restored-account-panel::after { display: none; }

/* Service overview: upright portrait panels, with restrained image motion. */
.service-poster-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 36px);
  width: min(1760px, calc(100% - 112px));
  margin: 24px auto 32px;
}
.service-poster {
  position: relative;
  height: clamp(520px, calc(100svh - 134px), 960px);
  min-width: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #191a1b;
  color: #f5f5f1;
  scroll-margin-top: 102px;
}
.service-poster > summary { position: absolute; inset: 0; display: block; list-style: none; cursor: pointer; }
.service-poster > summary::-webkit-details-marker { display: none; }
.service-poster-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 280ms ease-out; }
.service-poster--1 .service-poster-image { object-position: 62% center; }
.service-poster--3 .service-poster-image { object-position: 50% 30%; }
.service-poster-shade { position: absolute; inset: 0; background: linear-gradient(180deg, #08090b65 0%, transparent 28%, #08090b10 43%, #08090bc9 77%, #08090bf5 100%); }
.service-poster-top { position: absolute; top: 26px; left: 28px; right: 28px; display: flex; justify-content: space-between; gap: 12px; font-size: 11px; font-weight: 450; color: #f0f0ece0; }
.service-poster-caption { position: absolute; left: clamp(22px, 2.2vw, 40px); right: clamp(22px, 2.2vw, 40px); bottom: 88px; transition: transform 240ms ease-out; }
.service-poster-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: clamp(26px, 2.35vw, 42px); font-weight: 500; letter-spacing: -.025em; line-height: 1.3; }
.service-poster-title svg { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 240ms ease-out; }
.service-poster-tagline { display: block; margin-top: 16px; color: #d7d8d5; font-size: clamp(13px, 1vw, 16px); line-height: 1.6; }
.service-poster-note { position: absolute; bottom: 27px; left: clamp(22px, 2.2vw, 40px); color: #a5a8a5; font-size: 10px; }
.service-poster-description { position: absolute; pointer-events: none; left: clamp(22px, 2.2vw, 40px); right: clamp(22px, 2.2vw, 40px); bottom: 66px; color: #c2c5c1; font-size: 13px; line-height: 1.75; }
.service-poster[open] .service-poster-caption { transform: translateY(-88px); }
.service-poster[open] .service-poster-title svg { transform: rotate(45deg); }
.service-poster > summary:focus-visible { outline: 2px solid #efefeb; outline-offset: -5px; border-radius: inherit; }
@media (hover: hover) {
  .service-poster:hover .service-poster-image, .service-poster:focus-within .service-poster-image { transform: scale(1.035); }
  .service-poster:not([open]):hover .service-poster-title svg { transform: translate(3px, -3px); }
}
@media (max-width: 1000px) {
  .service-poster-grid { width: calc(100% - 48px); gap: 16px; }
  .service-poster-top { left: 20px; right: 20px; }
  .service-poster-top > span:first-child { max-width: 12em; }
}
@media (max-width: 680px) {
  .service-poster-grid { grid-template-columns: 1fr; width: calc(100% - 36px); margin-top: 22px; gap: 20px; }
  .service-poster { height: min(76svh, 720px); min-height: 500px; }
  .service-poster-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-poster-image, .service-poster-caption, .service-poster-title svg { transition: none; }
}
.service-poster-hover-copy { position: absolute; pointer-events: none; left: clamp(22px, 2.2vw, 40px); right: clamp(22px, 2.2vw, 40px); bottom: 66px; color: #c2c5c1; font-size: 13px; line-height: 1.75; opacity: 0; transform: translateY(6px); transition: opacity 220ms ease-out, transform 220ms ease-out; }
@media (hover: hover) {
  .service-poster:not([open]):hover .service-poster-caption { transform: translateY(-88px); }
  .service-poster:not([open]):hover .service-poster-hover-copy { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .service-poster-hover-copy { transition: none; } }

/* Plain service panels: no cover imagery. */
.service-poster { background: #151717; }

/* Approved black relief service triptych. Keep imagery separate from live text. */
.custom-service-standalone .custom-service-standalone-main { padding-bottom: 0; }
.custom-service-standalone .custom-service-page--shell { background: #090a0a; }
.service-relief-grid { width: calc(100% - 64px); max-width: 1800px; gap: 22px; margin: 28px auto 32px; }
.service-relief { position: relative; min-width: 0; height: clamp(560px, calc(100svh - 144px), 940px); overflow: hidden; border: 0; border-radius: 12px; background: radial-gradient(ellipse at 48% 36%, #232323, #171717 65%, #141414); color: #f2f2f2; scroll-margin-top: 100px; }
.service-relief > summary { position: absolute; inset: 0; display: block; list-style: none; cursor: pointer; }
.service-relief > summary::-webkit-details-marker { display: none; }
.service-relief-heading { position: absolute; top: 7%; left: 10%; right: 7%; }
.service-relief-title { display: block; font-size: clamp(28px, 2.55vw, 44px); font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.service-relief-subtitle { display: block; margin-top: 16px; font-size: clamp(14px, 1.2vw, 20px); line-height: 1.7; color: #bababa; }
.service-relief-art { position: absolute; left: 6%; width: 88%; top: 30%; aspect-ratio: 410 / 365; background-image: url('/site-media/images/custom-service/black-relief-concept.png'); background-size: 374.634% 280.548%; background-repeat: no-repeat; mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 90%, transparent); }
.service-relief-art--1 { background-position: 6.217% 53.11%; }
.service-relief-art--2 { background-position: 50.622% 53.11%; }
.service-relief-art--3 { background-position: 94.139% 53.11%; }
.service-relief-action { position: absolute; left: 10%; bottom: 10%; display: flex; gap: 24px; align-items: center; font-size: clamp(16px, 1.35vw, 22px); font-weight: 450; }
.service-relief-action svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.2; transition: transform 180ms ease-out; }
.service-relief-description { position: absolute; bottom: 3%; left: 10%; right: 10%; font-size: 14px; line-height: 1.7; color: #c3c3c3; pointer-events: none; }
.service-relief[open] .service-relief-action { bottom: 15%; }
.service-relief[open] .service-relief-action svg { transform: rotate(90deg); }
.service-relief summary:focus-visible { outline: 2px solid #eee; outline-offset: -5px; border-radius: inherit; }
@media (hover:hover) { .service-relief:not([open]):hover .service-relief-action svg { transform: translateX(5px); } }
@media (min-width:1800px) { .service-relief-grid { width: calc(100% - 112px); } }
@media (max-width:1000px) { .service-relief-grid { width: calc(100% - 40px); gap: 14px; } .service-relief-title { font-size: 26px; } .service-relief-subtitle { font-size: 14px; } }
@media (max-width:700px) { .service-relief-grid { grid-template-columns: 1fr; width: calc(100% - 32px); margin-top: 20px; gap: 20px; } .service-relief { height: 680px; max-height: 85svh; min-height: 560px; } .service-relief-title { font-size: 32px; } .service-relief-art { max-height: 46%; top: 29%; } }
@media (prefers-reduced-motion:reduce) { .service-relief-action svg { transition: none; } }

/* Curated videos follow the same quiet browse pattern as the recreation gallery. */
body:has(.koozee-home) .home-curated-library {
  position: relative;
  z-index: 6;
  width: 100%;
  margin: 48px auto 0;
  padding-bottom: 76px;
  color: #f1f1f2;
  scroll-margin-top: 110px;
}
.home-curated-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 320px);
  align-items: center;
  gap: 22px 28px;
  margin-bottom: 26px;
}
.home-curated-header h2 {
  grid-column: 1 / -1;
  grid-row: 1;
  margin: 0;
  color: rgba(242, 244, 243, .94);
  font-size: 26px;
  font-weight: 520;
  letter-spacing: -.018em;
  line-height: 1.2;
  transform: translateY(5px);
}
.home-curated-search {
  position: relative;
  display: flex;
  width: 100%;
  height: 40px;
  align-items: center;
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
}
.home-curated-search svg {
  position: absolute;
  left: 15px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: rgba(228, 232, 231, .42);
  stroke-linecap: round;
  stroke-width: 1.7;
  pointer-events: none;
}
.home-curated-search input {
  width: 100%;
  height: 100%;
  padding: 0 42px;
  border: 0 !important;
  border-radius: 999px;
  outline: 0;
  background: #1d1e1f !important;
  color: #f1f3f2;
  font: inherit;
  font-size: 12px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.home-curated-search input::placeholder { color: rgba(219, 224, 222, .32); }
.home-curated-search input:hover { background: #1d1e1f !important; }
.home-curated-search input:focus { border: 0 !important; background: #1d1e1f !important; box-shadow: none !important; }
.home-curated-search:focus-within svg { stroke: #8ce8df; }
.home-curated-filters {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  grid-column: 1;
  grid-row: 2;
  justify-content: flex-start;
  gap: 30px;
  min-height: 40px;
  border-bottom: 0;
}
.home-curated-filters button {
  position: relative;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(220, 223, 222, .48);
  font: inherit;
  font-size: 12px;
  font-weight: 440;
  line-height: 40px;
  cursor: pointer;
  transition: color 160ms ease;
}
.home-curated-filters button:hover,
.home-curated-filters button:focus-visible { color: rgba(244, 246, 245, .9); background: transparent; }
.home-curated-filters button:focus-visible,
.home-curated-player:focus-visible,
.home-curated-recreate:focus-visible { outline: 2px solid #8ce8df; outline-offset: 3px; }
.home-curated-filters button.is-active { color: #f0f2f1; background: transparent; }
.home-curated-filters button.is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: #f0f2f1;
}
.home-curated-grid { display: grid; width: 100%; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-curated-empty { margin: 72px 0 96px; color: rgba(224, 229, 227, .48); font-size: 13px; text-align: center; }
.home-curated-video[hidden] { display: none; }
.home-curated-media { position: relative; overflow: hidden; isolation: isolate; clip-path: inset(0 round 16px); border-radius: 16px; aspect-ratio: 9 / 16; background: #080a0a; container-type: size; }
.home-curated-direct-video { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: #080a0a; cursor: pointer; }
.home-curated-direct-video[hidden], .home-curated-inline-frame[hidden], .home-curated-toggle[hidden] { display: none; }
.home-curated-inline-frame { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; border: 0; background: #080a0a; }
@supports (transform: scale(calc(100cqw / 360px))) {
  .home-curated-inline-frame { inset: 0 auto auto 0; width: 360px; height: 640px; transform-origin: top left; transform: scale(calc(100cqw / 360px)); }
}
body:has(.koozee-home) .home-curated-player { overflow: hidden; border-radius: 12px; color: inherit; text-decoration: none; background: radial-gradient(circle at 50% 38%, #303838, #151919 80%); }
body:has(.koozee-home) .home-curated-video.has-inline-preview .home-curated-player { position: absolute; inset: 0; height: 100%; pointer-events: none; }
body:has(.koozee-home) .home-curated-video.has-inline-preview .home-curated-player > img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
body:has(.koozee-home) .home-curated-video.has-inline-preview .home-curated-player-fallback,
body:has(.koozee-home) .home-curated-video.has-inline-preview .home-curated-player-play { display: none; }
body:has(.koozee-home) .home-curated-video.is-player-loading .home-curated-player { z-index: 2; }
body:has(.koozee-home) .home-curated-video.is-player-loading .home-curated-player-fallback { display: block; top: 50%; transform: translateY(-50%); }
body:has(.koozee-home) .home-curated-video.is-poster-only .home-curated-player { z-index: 2; }
body:has(.koozee-home) .home-curated-video.is-poster-only .home-curated-player-fallback { display: block; top: 50%; transform: translateY(-50%); }
body:has(.koozee-home) .home-curated-video.is-direct:has(.home-curated-player > img.is-loaded) .home-curated-player { z-index: 2; opacity: 1; transition: opacity 120ms ease; }
body:has(.koozee-home) .home-curated-video.is-direct.is-playing:has(.home-curated-player > img.is-loaded) .home-curated-player { opacity: 0; }
.home-curated-toggle { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 52px; height: 52px; padding: 0 0 1px 3px; place-items: center; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.46); border-radius: 50%; background: rgba(8, 10, 10, .72); color: #fff; font: inherit; font-size: 23px; cursor: pointer; transition: opacity 160ms ease, background 160ms ease; }
.home-curated-toggle:hover, .home-curated-toggle:focus-visible { background: rgba(8, 10, 10, .9); }
.home-curated-toggle:focus-visible { outline: 2px solid #8ce8df; outline-offset: 3px; }
.home-curated-video.is-playing .home-curated-toggle { opacity: 0; }
.home-curated-video.is-playing .home-curated-media:hover .home-curated-toggle, .home-curated-video.is-playing .home-curated-toggle:focus-visible { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .home-curated-video .home-curated-toggle { display: none; }
}
body:has(.koozee-home) .home-curated-player > img { opacity: 0; transition: opacity 160ms ease, border-radius 180ms ease, filter 180ms ease, transform 260ms ease; }
body:has(.koozee-home) .home-curated-player > img.is-loaded { opacity: 1; }
.home-curated-player-fallback { position: absolute; top: 35%; left: 12px; right: 12px; color: #ecf2f0; font-size: clamp(16px, 1.5vw, 22px); font-weight: 570; line-height: 1.3; text-align: center; transition: opacity 160ms ease; }
.home-curated-player-fallback small { display: block; margin-top: 10px; color: rgba(235,245,241,.54); font-size: 12px; font-weight: 440; }
.home-curated-player:has(img.is-loaded) .home-curated-player-fallback { opacity: 0; }
.home-curated-player-play { position: absolute; top: 68%; left: 50%; display: inline-flex; min-height: 30px; align-items: center; padding: 0 10px; transform: translate(-50%, -50%); border: 1px solid rgba(255,255,255,.28); border-radius: 7px; background: rgba(0,0,0,.6); font-size: 11px; white-space: nowrap; transition: opacity 160ms ease; }
.home-curated-player:has(img.is-loaded) .home-curated-player-play { opacity: 0; }
.home-curated-player:has(img.is-loaded):is(:hover, :focus-visible) .home-curated-player-play { opacity: 1; }
.home-curated-views { position: absolute; z-index: 3; top: 9px; left: 9px; display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 8px; border-radius: 8px; background: rgba(10, 13, 13, .84); color: #f1f4f3; font-size: 11px; pointer-events: none; }
.home-curated-views b { font-weight: 580; white-space: nowrap; }
body:has(.koozee-home) .home-curated-video .home-template-card-meta,
body:has(.koozee-home) .home-curated-video:hover .home-template-card-meta,
body:has(.koozee-home) .home-curated-video:focus-within .home-template-card-meta { max-height: none; padding: 14px 2px 7px; overflow: visible; opacity: 1; }
.home-curated-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; min-height: 46px; }
.home-curated-tags span { display: inline-flex; align-items: center; max-width: 100%; min-height: 21px; padding: 0 6px; border: 1px solid #343a3a; border-radius: 5px; color: #bec5c3; font-size: 11px; line-height: 19px; white-space: nowrap; }
.home-curated-tags .home-curated-tag-focus { border-color: #226f61; background: #10352e; color: #7fe1c8; }
@media (min-width: 1500px) { .home-curated-tags { min-height: 21px; } }
.home-curated-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-top: 1px; }
.home-curated-source { flex: 0 0 auto; color: #9bded7; font-size: 11px; text-decoration: none; white-space: nowrap; }
.home-curated-source:hover { color: #e2fffb; }
.home-curated-recreate { flex: 0 0 auto; color: #f0f2f1; font-size: 12px; font-weight: 570; text-decoration: none; white-space: nowrap; }
.home-curated-recreate:hover { color: #9bded7; }
.home-curated-actions a:focus-visible { outline: 2px solid #8ce8df; outline-offset: 2px; }
body:has(.koozee-home) .home-template-author > .home-curated-avatar { position: relative; display: grid; flex: 0 0 27px; width: 27px; height: 27px; overflow: hidden; place-items: center; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; background: #25312e; color: #c5e8e3; font-size: 11px; font-weight: 600; }
.home-curated-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 160ms ease; }
.home-curated-avatar img.is-loaded { opacity: 1; }
@media (max-width: 1100px) {
  .home-curated-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .home-curated-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  body:has(.koozee-home) .home-curated-library { width: 100%; margin-top: 36px; padding-bottom: 48px; }
  .home-curated-header { grid-template-columns: 1fr; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
  .home-curated-search { grid-column: 1; grid-row: 2; max-width: none; }
  .home-curated-filters { grid-column: 1; grid-row: 3; justify-content: flex-start; }
  .home-curated-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 390px; margin-inline: auto; }
  .home-curated-player-fallback { font-size: 17px; }
}
@media (hover: none) {
  .home-curated-player:has(img.is-loaded) .home-curated-player-play { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .home-curated-inline-frame,
  .home-curated-player > img,
  .home-curated-player-fallback,
  .home-curated-avatar img { transition: none; }
}

/* Homepage header v185: center the complete navigation group after removing the wordmark. */
body:has(.koozee-home):has(.home-primary-header) .home-primary-header {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 0;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-rail {
  grid-column: 2;
  justify-self: center;
  justify-content: center;
}
body:has(.koozee-home):has(.home-primary-header) .koozee-topbar {
  grid-column: 3;
  justify-self: end;
}

/* Homepage section rhythm v186: one consistent gap from hero to agent to gallery. */
body:has(.koozee-home) .home-agent-hub,
body:has(.koozee-home) .home-curated-library {
  margin-top: 32px;
}
body:has(.koozee-home) .home-agent-hub {
  margin-top: 56px;
}
body:has(.koozee-home) .home-curated-library {
  margin-top: 40px;
}

/* Curated case detail v200. */
body.home-case-detail-open { overflow: hidden; }
.home-curated-video { cursor: pointer; }
.home-curated-video:focus-visible { outline: 2px solid #8ce8df; outline-offset: 5px; border-radius: 16px; }
.home-case-detail[hidden] { display: none; }
.home-case-detail {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
}
.home-case-detail__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(3, 4, 4, .58);
  backdrop-filter: blur(18px) brightness(.42);
  cursor: default;
}
.home-case-detail__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(420px, 1fr);
  width: min(940px, calc(100vw - 64px));
  height: min(680px, calc(100vh - 64px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  background: #111212;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .5);
}
.home-case-detail__close {
  position: absolute;
  z-index: 5;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: rgba(247, 248, 247, .78);
  font: 300 25px/1 system-ui;
  cursor: pointer;
}
.home-case-detail__close:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.home-case-detail__media { position: relative; min-width: 0; overflow: hidden; background: #080909; }
.home-case-detail__media video,
.home-case-detail__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home-case-detail__media video { z-index: 2; opacity: 0; transition: opacity 180ms ease; }
.home-case-detail__media video.is-ready { opacity: 1; }
.home-case-detail__media > img { z-index: 1; }
.home-case-detail__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 66px;
  height: 66px;
  padding: 0 0 1px 4px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 50%;
  background: rgba(10, 11, 11, .5);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  transition: opacity 160ms ease, background 160ms ease;
}
.home-case-detail__media.is-playing .home-case-detail__play { opacity: 0; }
.home-case-detail__media:hover .home-case-detail__play { opacity: 1; }
.home-case-detail__duration { position: absolute; z-index: 3; bottom: 18px; left: 18px; color: #fff; font: 600 13px/1 ui-monospace, monospace; text-shadow: 0 1px 8px #000; }
.home-case-detail__info { display: flex; min-width: 0; flex-direction: column; padding: 32px 30px 26px; color: #eff1f0; }
.home-case-detail__author { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.home-case-detail__avatar { display: grid; width: 46px; height: 46px; flex: 0 0 46px; overflow: hidden; place-items: center; border-radius: 50%; background: #27312f center/cover no-repeat; color: #cce8e3; font-size: 15px; font-weight: 650; }
.home-case-detail__author > span:last-child { display: grid; gap: 3px; min-width: 0; }
.home-case-detail__author strong { overflow: hidden; font-size: 16px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.home-case-detail__author small { color: rgba(228, 232, 230, .43); font-size: 11px; }
.home-case-detail__info h2 { margin: 30px 0 24px; color: #f4f5f4; font-size: 22px; font-weight: 570; line-height: 1.45; letter-spacing: -.02em; }
.home-case-detail__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-case-detail__metrics > span { display: grid; min-height: 84px; align-content: center; gap: 10px; padding: 0 17px; border-radius: 12px; background: #191a1a; }
.home-case-detail__metrics small { color: rgba(225, 230, 228, .42); font-size: 11px; }
.home-case-detail__metrics strong { color: #f5f6f5; font-size: 20px; font-weight: 650; }
.home-case-detail__facts { display: grid; gap: 17px; margin: 22px 0 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.075); }
.home-case-detail__facts > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: start; }
.home-case-detail__facts dt { color: rgba(226, 230, 228, .42); font-size: 12px; }
.home-case-detail__facts dd { margin: 0; color: rgba(242, 244, 243, .82); font-size: 12px; }
.home-case-detail__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.home-case-detail__tags span { min-height: 24px; padding: 0 8px; border-radius: 5px; background: #202222; color: rgba(239, 242, 240, .68); font-size: 11px; line-height: 24px; }
.home-case-detail__tags span:last-child { background: #12372f; color: #7fe1c8; }
.home-case-detail__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: auto; }
.home-case-detail__actions a,
.home-case-detail__actions button { display: flex; min-height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: transparent; color: rgba(244,246,245,.82); font: inherit; font-size: 12px; font-weight: 560; text-decoration: none; cursor: pointer; }
.home-case-detail__actions .home-case-detail__recreate { grid-column: 1 / -1; border: 0; background: linear-gradient(105deg, #1cc8d0, #176cf2); color: #fff; }
.home-case-detail__actions a:hover,
.home-case-detail__actions button:hover { border-color: rgba(255,255,255,.24); color: #fff; }
@media (max-width: 820px) {
  .home-case-detail { padding: 18px; }
  .home-case-detail__dialog { grid-template-columns: 1fr; width: min(430px, calc(100vw - 36px)); height: calc(100vh - 36px); overflow-y: auto; }
  .home-case-detail__media { min-height: 62vh; }
  .home-case-detail__info { min-height: 480px; }
}



/* AI ecommerce secondary menu: anchored, compact and borderless. */
.ecommerce-nav-label { display: none; }
.custom-service-nav-label { display: none; }
body:has(.koozee-home):has(.home-primary-header) .koozee-rail [data-ecommerce-menu-trigger]::after,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail [data-ecommerce-menu-trigger]:hover::after,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail [data-custom-service-menu-trigger]::after,
body:has(.koozee-home):has(.home-primary-header) .koozee-rail [data-custom-service-menu-trigger]:hover::after {
  display: none !important;
  content: none !important;
}
body:has(.koozee-home):has(.home-primary-header) .ecommerce-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 92px;
  font-family: "WanYou Navigation Sans", system-ui;
  -webkit-font-smoothing: auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: .56px;
  white-space: nowrap;
}
body:has(.koozee-home):has(.home-primary-header) .custom-service-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "WanYou Navigation Sans", system-ui;
  -webkit-font-smoothing: auto;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: .56px;
  white-space: nowrap;
}
body:has(.koozee-home):has(.home-primary-header) .ecommerce-nav-label i {
  display: block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  opacity: .78;
  transform: translateY(-1px) rotate(45deg);
  transform-origin: 55% 55%;
  transition: transform 170ms cubic-bezier(0.23, 1, 0.32, 1);
}
body:has(.koozee-home):has(.home-primary-header) .custom-service-nav-label i {
  display: block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-right: 1.25px solid currentColor;
  border-bottom: 1.25px solid currentColor;
  opacity: .78;
  transform: translateY(-1px) rotate(45deg);
  transform-origin: 55% 55%;
  transition: transform 170ms cubic-bezier(0.23, 1, 0.32, 1);
}
body:has(.koozee-home):has(.home-primary-header) .custom-service-nav-label svg {
  display: block;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
  transform: translateY(.5px);
  transition: transform 170ms cubic-bezier(0.23, 1, 0.32, 1);
}
body:has(.koozee-home):has(.home-primary-header) [data-ecommerce-menu-trigger][aria-expanded="true"] .ecommerce-nav-label i {
  transform: translateY(1px) rotate(225deg);
}
body:has(.koozee-home):has(.home-primary-header) [data-custom-service-menu-trigger][aria-expanded="true"] .custom-service-nav-label i {
  transform: translateY(2px) rotate(225deg);
}
body:has(.koozee-home):has(.home-primary-header) [data-custom-service-menu-trigger][aria-expanded="true"] .custom-service-nav-label svg {
  transform: translateY(.5px) rotate(180deg);
}
.ecommerce-tools-menu {
  position: absolute;
  top: 68px;
  left: var(--ecommerce-menu-left, 0px);
  z-index: 190;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(300px, calc(100vw - 32px));
  padding: 16px;
  color: #f4f5f5;
  background: #111315;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transform-origin: 0 0;
  transition: opacity 170ms cubic-bezier(0.23, 1, 0.32, 1), transform 170ms cubic-bezier(0.23, 1, 0.32, 1);
}
.ecommerce-tools-menu[hidden] { display: none; }
.ecommerce-tools-menu.is-open { opacity: 1; transform: translateY(0) scale(1); }
.ecommerce-tools-menu__group { min-width: 0; padding: 0; border: 0; }
.ecommerce-tools-menu__group > span {
  display: block;
  margin: 0 0 6px 8px;
  color: rgba(255, 255, 255, .38);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
}
.ecommerce-tools-menu__group button,
.ecommerce-tools-menu__group > a {
  display: grid;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  color: rgba(255, 255, 255, .82);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease, transform 140ms ease;
}
.ecommerce-tools-menu__group button:hover,
.ecommerce-tools-menu__group button:focus-visible,
.ecommerce-tools-menu__group > a:hover,
.ecommerce-tools-menu__group > a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .05);
  outline: none;
}
.ecommerce-tools-menu__group button:focus-visible,
.ecommerce-tools-menu__group > a:focus-visible { box-shadow: inset 0 0 0 1px rgba(39, 206, 230, .55); }
.ecommerce-tools-menu__group button:active,
.ecommerce-tools-menu__group > a:active { transform: scale(.98); }
.ecommerce-tools-menu__group strong { font-size: 14px; font-weight: 500; line-height: 1.35; }
.ecommerce-tools-menu__group small {
  margin-top: 2px;
  color: rgba(255, 255, 255, .36);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}
.ecommerce-tools-menu__group button:hover small,
.ecommerce-tools-menu__group button:focus-visible small,
.ecommerce-tools-menu__group > a:hover small,
.ecommerce-tools-menu__group > a:focus-visible small { color: rgba(255, 255, 255, .54); }
@media (max-width: 900px) {
  .ecommerce-tools-menu { width: min(300px, calc(100vw - 32px)); max-height: calc(100vh - 96px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ecommerce-tools-menu { transition: opacity 100ms linear; transform: translateY(0); }
}

/* Case detail controls and analysis stay inside the existing modal. */
.home-case-controls { position: absolute; z-index: 4; inset: auto 0 0; display: grid; gap: 10px; padding: 34px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: white; }
.home-case-controls__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.home-case-controls input[type="range"] { width: 100%; min-width: 0; margin: 0; accent-color: #23c5d1; cursor: pointer; }
.home-case-controls [data-home-case-volume] { width: 76px; flex: 0 0 76px; }
.home-case-controls output { margin-right: auto; font: 12px/1.5 ui-monospace, monospace; white-space: nowrap; }
.home-case-controls button { min-height: 32px; border: 0; padding: 4px 6px; background: transparent; color: white; font: inherit; font-size: 12px; cursor: pointer; }
.home-case-controls :focus-visible { outline: 2px solid #64e1e6; outline-offset: 3px; }
.home-case-analysis { min-width: 0; margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); }
.home-case-analysis[hidden] { display: none; }
.home-case-analysis p { margin: 0 0 10px; font-size: 12px; line-height: 1.6; color: #bbb; }
.home-case-analysis__text { max-height: 220px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.8; }
.home-case-analysis button { margin-top: 12px; min-height: 40px; padding: 8px 14px; border: 1px solid #454949; border-radius: 8px; background: #202626; color: #f0f2f1; font: inherit; font-size: 12px; cursor: pointer; }
.home-case-analysis button[hidden] { display: none; }
.home-case-analysis button:disabled { opacity: .5; cursor: wait; }
.home-case-detail__info { overflow-y: auto; }
.home-case-detail__actions { margin-top: 20px; }

/* The public course fills the area below the shared desktop navigation. */
body.course-event-open:has(.home-primary-header) .koozee-main,
body.course-event-open:has(.home-primary-header) .home-footer {
  visibility: hidden;
  pointer-events: none;
}
body.course-event-open:has(.home-primary-header) .course-page { inset: 80px 0 0; }
body.course-event-open:has(.home-primary-header) .course-account-bar { display: none; }
body.course-event-open:has(.home-primary-header) .home-primary-header .koozee-topbar {
  visibility: visible;
  pointer-events: auto;
}

/* Keep every primary destination readable on phones instead of centering an
   oversized navigation strip beyond both edges of the viewport. */
@media (max-width: 720px) {
  body.course-event-open:has(.home-primary-header) .page-home { display: none; }
  body.course-event-open:has(.home-primary-header) .course-page { inset: 0; }
  body.course-event-open:has(.home-primary-header) .course-account-bar { display: flex; left: 0; }
  body:has(.koozee-home):has(.home-primary-header) .home-primary-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 12px;
    padding-block: 12px 8px;
  }
  body:has(.koozee-home):has(.home-primary-header) .koozee-brand { grid-column: 1; grid-row: 1; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-topbar { grid-column: 2; grid-row: 1; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding-block: 12px 0;
    overflow: visible;
  }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail a { height: 36px; }
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail a::after,
  body:has(.koozee-home):has(.home-primary-header) .koozee-rail a:not(.active):hover::after { font-size: 13px; }
}


/* Storage usage information extension (read-only). */
/* Storage information only. Existing asset layouts, cards and controls retain
   their original styles; every amount comes from the shared usage endpoint. */
.canvas-asset-storage-usage {
  margin: 0 0 16px;
  color: rgba(225, 231, 233, .68);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.workflow-asset-library-meta[data-asset-storage-usage] {
  color: rgba(225, 231, 233, .68);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}
.asset-storage-usage-copy { color: inherit; font-size: 12px; font-weight: 400; }
.asset-storage-usage-copy b { font-size: 13px; font-weight: 500; }
.asset-storage-usage-divider, .asset-storage-usage-note { font-weight: 400; }
.asset-storage-usage-status { font-size: 12px; font-weight: 400; line-height: 1.6; }
.asset-storage-usage-status button {
  padding: 2px 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.asset-storage-usage-status button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.personal-center-sidebar-storage {
  margin: 0 18px 19px;
  padding: 15px 19px 16px;
  color: var(--account-ink, #e6ebed);
  background: #181c1e;
  border-radius: 9px;
}
.personal-center-sidebar-storage header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.personal-center-sidebar-storage header > span { color: #b9c2c5; font-size: 13px; font-weight: 400; }
.personal-center-sidebar-storage header button {
  min-height: 30px;
  padding: 0;
  color: #b9c2c5;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
}
.personal-center-sidebar-storage header button:hover { color: var(--account-accent, #83d9da); }
.personal-center-sidebar-storage button:focus-visible { outline: 1px solid var(--account-accent, #83d9da); outline-offset: 3px; }
.personal-center-storage-value { display: block; margin: 0; color: var(--account-ink, #e6ebed); font-size: 18px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; }
.personal-center-storage-value > span { color: #b9c2c5; font-size: 12px; font-weight: 400; }
.personal-center-storage-remaining { margin: 7px 0 0; color: #b9c2c5; font-size: 12px; font-weight: 400; line-height: 1.6; font-variant-numeric: tabular-nums; }
.personal-center-storage-remaining > span { display: block; margin-top: 3px; color: #a6b0b5; font-size: 11px; }
.restored-account-storage { margin: 4px 0 7px; padding: 9px 12px 11px; color: #ddd; background: #242626; border-radius: 8px; }
.restored-account-storage header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.restored-account-storage header > span { color: #b8bebe; font-size: 13px; font-weight: 400; }
.restored-account-storage header button { min-height: 28px; padding: 0; color: #a8cecc; background: transparent; border: 0; font: inherit; font-size: 12px; font-weight: 400; cursor: pointer; }
.restored-account-storage header button:hover { color: #d7e9e8; }
.restored-account-storage .personal-center-storage-value { color: #ddd; font-size: 15px; font-weight: 500; }
.restored-account-storage .personal-center-storage-value > span { font-size: 12px; font-weight: 400; }
.restored-account-storage .personal-center-storage-remaining { margin-top: 5px; font-size: 11px; }
.personal-center-storage-value > em { margin-right: 6px; color: #b9c2c5; font-size: 11px; font-style: normal; font-weight: 400; }
/* Quiet storage ratio. Neutral rings represent unavailable proportions. */
.asset-storage-usage-ring { display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; overflow: visible; vertical-align: middle; }
.asset-storage-usage-ring circle { fill: none; stroke-width: 1.4; }
.asset-storage-usage-ring-track { stroke: rgba(213, 225, 222, .18); }
.asset-storage-usage-ring-value { stroke: #9bc6c0; stroke-linecap: butt; }
.asset-storage-usage-ring.is-unavailable .asset-storage-usage-ring-track { stroke: rgba(213, 225, 222, .23); }
.asset-storage-usage-line, .asset-storage-usage-status { display: inline-flex; max-width: 100%; align-items: center; gap: 7px; vertical-align: middle; }
.asset-storage-usage-line > .asset-storage-usage-copy { min-width: 0; }
.asset-storage-usage-ring--card { width: 26px; height: 26px; flex-basis: 26px; }
.asset-storage-card-usage { display: flex; align-items: center; gap: 10px; }
.asset-storage-card-copy { min-width: 0; }
.asset-storage-usage-note button, .personal-center-storage-remaining button { padding: 0; color: inherit; background: transparent; border: 0; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.asset-storage-usage-note button:focus-visible, .personal-center-storage-remaining button:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
/* A small focusable tooltip supplies precise amounts without enlarging the ring. */
.asset-storage-usage-meter { position: relative; display: inline-flex; width: 18px; height: 18px; flex: 0 0 18px; align-items: center; justify-content: center; border-radius: 50%; vertical-align: middle; cursor: help; }
.asset-storage-usage-meter--card { width: 26px; height: 26px; flex-basis: 26px; }
.asset-storage-usage-meter:focus-visible { outline: 1px solid #9bc6c0; outline-offset: 3px; }
.asset-storage-usage-tooltip { position: absolute; top: calc(100% + 8px); left: -7px; z-index: 30; display: none; box-sizing: border-box; width: 196px; max-width: calc(100vw - 40px); padding: 11px 12px; color: #dce2e1; background: #242828; border: 1px solid rgba(213,225,222,.13); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.24); text-align: left; font-size: 11px; font-weight: 400; line-height: 1.7; font-variant-numeric: tabular-nums; white-space: normal; cursor: default; }
.asset-storage-usage-tooltip::before { position: absolute; right: 0; bottom: 100%; left: 0; height: 9px; content: ""; }
.asset-storage-usage-tooltip > strong { display: block; margin-bottom: 5px; color: #edf1f0; font-size: 12px; font-weight: 500; }
.asset-storage-usage-tooltip > span { display: flex; justify-content: space-between; gap: 12px; }
.asset-storage-usage-tooltip i { color: #aeb9b7; font-style: normal; }
.asset-storage-usage-tooltip b { color: inherit; font-size: 11px; font-weight: 400; }
.asset-storage-usage-meter:not([data-asset-storage-tooltip-dismissed]):hover > .asset-storage-usage-tooltip,
.asset-storage-usage-meter:not([data-asset-storage-tooltip-dismissed]):focus > .asset-storage-usage-tooltip { display: block; }

/* Asset lifecycle states reuse the existing cards, viewer and toast. */
.canvas-asset-audio, .canvas-asset-unavailable { display: grid; width: 100%; min-height: 160px; align-content: center; justify-items: center; gap: 10px; padding: 24px 16px 46px; color: inherit; background: rgba(255,255,255,.035); text-align: center; }
.canvas-asset-audio svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .7; }
.canvas-asset-audio span, .canvas-asset-unavailable strong { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.canvas-asset-unavailable p { margin: 0; color: #a8b0b2; font-size: 11px; line-height: 1.6; }
.canvas-asset-unavailable button, .canvas-asset-unavailable > span { padding: 0; color: #b9cfca; font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.canvas-asset-actions button:disabled { opacity: .3; cursor: not-allowed; }
.workflow-asset-audio, .workflow-asset-unavailable { display: grid; width: 100%; aspect-ratio: 1.15; place-content: center; justify-items: center; gap: 8px; color: #b9c4c1; background: #141617; }
.workflow-asset-audio svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.workflow-asset-audio i, .workflow-asset-unavailable { font-size: 11px; font-style: normal; font-weight: 400; }
.workflow-asset-card.is-unavailable > button:first-child { opacity: .8; cursor: default; }
.workflow-asset-card.is-unavailable small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-asset-preview { position: absolute; top: 7px; left: 7px; padding: 4px 7px; border-radius: 6px; color: #eee; background: rgba(15,16,17,.7); font-size: 10px; opacity: 0; }
.workflow-asset-card:hover .workflow-asset-preview, .workflow-asset-preview:focus-visible { opacity: 1; }
.workflow-asset-retry-text { display: block; padding: 0 10px 9px; color: #b9cfca; font-size: 11px; text-align: left; }
.workflow-asset-retry { margin-top: 8px; padding: 7px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; color: inherit; font-size: 12px; }
.workflow-asset-save-feedback { display: flex; align-items: center; gap: 12px; pointer-events: auto; }
.workflow-asset-save-feedback > span { min-width: 0; }
.workflow-asset-save-feedback button { flex: 0 0 auto; padding: 3px 0; color: inherit; font: inherit; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
body .image-preview-modal .audio-preview-dialog { width: min(460px, calc(100vw - 48px)); padding: 36px 24px 24px; color: #e4e8e7; background: #1b1d1f; border: 1px solid rgba(255,255,255,.12); }
.audio-preview-dialog > p { margin: 0 0 18px; color: #e4e8e7; font-size: 14px; overflow-wrap: anywhere; }
.audio-preview-dialog audio { display: block; width: 100%; color-scheme: dark; }
body .image-preview-modal .audio-preview-dialog .image-preview-download-button { padding: 10px 15px; color: #1b1d1f; background: #e4e8e7; border: 0; border-radius: 8px; font-size: 12px; font-weight: 500; }
body .image-preview-modal .audio-preview-dialog .image-preview-download-button:hover { background: #f2f4f3; }

/* Account menu refinement 20261024: retain the existing home theme. */
.restored-account-panel > .restored-account-credits {
  margin: 4px 0 7px;
  color: #c1c7ca;
  background: #22262a;
  border-radius: 8px;
}
.restored-account-panel > .restored-account-credits b { color: #d0dde1; }
.restored-account-panel > .restored-account-credits:hover { color: #f0f3f3; background: #2b3034; }
.restored-account-panel > .restored-account-credits:focus-visible { outline: 2px solid #b8c7cb; outline-offset: 2px; }
.asset-storage-card-usage { align-items: flex-start; }
.asset-storage-card-usage > .asset-storage-usage-meter--card { margin-top: 7px; }
.asset-storage-card-copy .personal-center-storage-value,
.asset-storage-card-copy .personal-center-storage-remaining {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  color: #b9c2c5;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.asset-storage-card-copy .personal-center-storage-remaining { flex-wrap: wrap; margin-top: 3px; }
.asset-storage-card-copy .personal-center-storage-value > em,
.asset-storage-card-copy .personal-center-storage-remaining > em {
  flex: 0 0 3em;
  margin: 0;
  color: #b9c2c5;
  font-size: inherit;
  font-style: normal;
  font-weight: 400;
}
.asset-storage-card-copy .personal-center-storage-value > .asset-storage-amount,
.asset-storage-card-copy .personal-center-storage-remaining > .asset-storage-amount { color: #e0e5e4; font-size: inherit; font-weight: 500; }
.asset-storage-card-copy .personal-center-storage-value > .asset-storage-total { color: #b9c2c5; font-size: inherit; font-weight: 400; white-space: nowrap; }
.asset-storage-card-copy .personal-center-storage-remaining > .asset-storage-card-note { flex-basis: 100%; margin-top: 2px; color: #a6b0b5; font-size: 11px; font-weight: 400; }

/* Capacity values are not legacy note spans. */
.asset-storage-card-copy .personal-center-storage-value > .asset-storage-amount,
.asset-storage-card-copy .personal-center-storage-remaining > .asset-storage-amount { display: inline; margin: 0; opacity: 1; }

/* Only used capacity is emphasized. */
.asset-storage-card-copy .personal-center-storage-remaining > .asset-storage-amount { color: #b9c2c5; font-weight: 400; }

/* Match the homepage account menu's inherited type in every host. */
.restored-account-panel { font-size: 16px; line-height: 1.6; }
.restored-account-membership > button { height: 40px; min-height: 40px; }

/* Keep the storage card header at its original homepage height. */
.restored-account-storage > header > button { height: 40px; min-height: 40px; }
