:root {
  --page-bg: #ffffff;
  --surface-muted: #ebebeb;
  --surface-card: #f5f5f5;
  --surface-search: rgba(217, 217, 217, 0.2);
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #8c8c8c;
  --border-soft: rgba(51, 51, 51, 0.08);
  --shadow-soft: 0 18px 40px rgba(17, 17, 17, 0.05);
  --shadow-hover: 0 22px 50px rgba(17, 17, 17, 0.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --container-width: 1440px;
  --hero-banner-width: 1920px;
  --hero-banner-height: 640px;
  --hero-banner-image: url("https://www.figma.com/api/mcp/asset/ed70c705-a50f-4e4e-82e1-5e503bbb2dda");
  --header-height: 64px;
  --font-body: "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    sans-serif;
  --font-display: "Alimama ShuHeiTi", "MiSans", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-detail-open,
body.is-login-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  position: relative;
  overflow-x: clip;
}

.container {
  width: min(var(--container-width), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(24.5px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.brand-logo {
  width: 28px;
  height: 32px;
}

.brand-name {
  font-size: 20px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.011em;
  color: #000000;
  font-family: var(--font-display);
}

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  color: var(--text-primary);
}

.main-nav__link {
  position: relative;
  padding: 4px 0;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.011em;
  transition: opacity 160ms ease;
}

.main-nav__link:not(.main-nav__link--active) {
  font-weight: 400;
  opacity: 0.88;
}

.main-nav__link--active {
  font-weight: 600;
}

.main-nav__link:hover {
  opacity: 1;
}

.login-button,
.hero-cta,
.filter-chip {
  border: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.login-button {
  min-width: 88px;
  height: 40px;
  padding: 12px 24px;
  border-radius: 12px;
  background: #333333;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
}

.hero-cta:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.login-button:hover,
.login-button:active,
.login-button:focus,
.login-button:focus-visible {
  transform: none;
}

.hero-section {
  position: relative;
  padding-top: 64px;
}

.hero-surface {
  position: absolute;
  inset: 0 0 auto;
  height: var(--hero-banner-height);
  overflow: hidden;
  background: #000000;
  pointer-events: none;
}

.hero-surface::after {
  display: none;
}

.hero-surface__media {
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100vw, var(--hero-banner-width));
  height: 100%;
  transform: translateX(-50%);
  background: #000000 var(--hero-banner-image) center center / cover no-repeat;
}

.hero-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  filter: saturate(0.94) contrast(1.02);
  transition: opacity 280ms ease;
}

.hero-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #ffffff;
}

.hero-video.is-ready {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: var(--hero-banner-height);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 64px;
  text-align: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: min(100%, 576px);
  animation: rise-in 620ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy h1,
.gallery-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  font-size: clamp(44px, 5vw, 64px);
  color: #ffffff;
}

.hero-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.3;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 198px;
  min-height: 64px;
  padding: 12px 24px;
  border-radius: 16px;
  background: #333333;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  box-shadow: none;
  animation: rise-in 620ms 120ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-cta svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.gallery-section {
  padding: 104px 0 120px;
}

.site-footer {
  min-height: 240px;
  background: #f5f5f5;
}

.footer-inner {
  min-height: 240px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

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

.footer-brand-title,
.footer-brand-subtitle,
.footer-copyright {
  margin: 0;
}

.footer-brand-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
  color: #000000;
  font-family: var(--font-display);
}

.brand-wordmark {
  font-family: var(--font-display);
}

.footer-brand-subtitle {
  font-size: 16px;
  line-height: 1.5;
  color: #b3b3b3;
}

.footer-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  justify-self: center;
  color: #666666;
}

.footer-nav__link {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.011em;
  transition: opacity 160ms ease;
}

.footer-nav__link:hover {
  opacity: 0.72;
}

.footer-copyright {
  justify-self: end;
  font-size: 16px;
  line-height: 1.5;
  color: #cccccc;
  text-align: right;
}

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

.gallery-head h2 {
  font-size: clamp(30px, 3vw, 36px);
  line-height: 1.15;
  color: #000000;
}

.search-box {
  position: relative;
  width: 347px;
  max-width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--surface-search);
  color: var(--text-secondary);
}

.search-box svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0 0 0 12px;
  background: transparent;
  border: 0;
  color: var(--text-primary);
  outline: none;
}

.search-box input::placeholder {
  color: rgba(102, 102, 102, 0.72);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 26px;
}

.filter-chip {
  min-height: 40px;
  padding: 12px 24px;
  border-radius: 12px;
  background: var(--surface-card);
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1;
}

.filter-chip.is-active {
  background: #333333;
  color: #ffffff;
}

.prompt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}

.prompt-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.prompt-card {
  width: 100%;
  break-inside: avoid;
  opacity: 0;
  transform: translateY(16px);
  animation: card-in 520ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  cursor: default;
}

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

.prompt-visual {
  margin: 0;
  padding: 16px;
  border-radius: var(--radius-xl);
  background: var(--surface-card);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease;
  cursor: pointer;
}

.prompt-card:hover .prompt-visual,
.prompt-visual:focus-visible {
  transform: translateY(-3px);
  background: #ffffff;
  box-shadow: 0 12px 12px rgba(0, 0, 0, 0.05);
  outline: none;
}

.prompt-media {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: none;
}

.prompt-overlay {
  position: absolute;
  inset: 16px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(51, 51, 51, 0) 46%,
    rgba(51, 51, 51, 0.58) 100%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 1;
}

.prompt-overlay__content {
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.prompt-overlay__text {
  margin: 0;
  max-width: 306px;
  max-height: 44px;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  line-height: 22px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.prompt-copy {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  color: #333333;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease;
}

.prompt-copy::before {
  content: "已复制";
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(51, 51, 51, 0.92);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.prompt-copy svg {
  width: 24px;
  height: 24px;
}

.prompt-copy:hover,
.prompt-copy:active,
.prompt-copy:focus,
.prompt-copy:focus-visible {
  transform: none;
}

.prompt-copy:active,
.prompt-copy.is-feedback,
.prompt-copy.is-copied {
  background: #333333;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.prompt-copy.is-copied::before {
  opacity: 1;
}

.prompt-card:hover .prompt-overlay {
  opacity: 1;
  pointer-events: auto;
}

.prompt-visual:focus-visible .prompt-overlay {
  opacity: 1;
  pointer-events: auto;
}

.prompt-card[data-shape="wide"] .prompt-media {
  aspect-ratio: 432 / 316;
}

.prompt-card[data-shape="short"] .prompt-media {
  aspect-ratio: 432 / 269;
}

.prompt-card[data-shape="tall"] .prompt-media {
  aspect-ratio: 432 / 583;
}

.prompt-card[data-shape="square"] .prompt-media {
  aspect-ratio: 1 / 1;
}

.prompt-title {
  margin: 16px 0 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  color: var(--text-primary);
}

.empty-state {
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.account-entry {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.login-button.is-logged-in {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  background: #d8edff;
  box-shadow: none;
  overflow: hidden;
}

.login-button.is-logged-in:hover,
.login-button.is-logged-in:active,
.login-button.is-logged-in:focus,
.login-button.is-logged-in:focus-visible {
  background: #d8edff;
  box-shadow: none;
}

.login-button__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 28px);
  left: 0;
  z-index: 24;
}

.account-dropdown[hidden] {
  display: none;
}

.account-dropdown__panel {
  width: min(240px, calc(100vw - 24px));
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 20px 56px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.account-dropdown__profile {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
}

.account-dropdown__avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  flex: 0 0 48px;
  object-fit: cover;
}

.account-dropdown__meta {
  min-width: 0;
}

.account-dropdown__name,
.account-dropdown__phone {
  margin: 0;
}

.account-dropdown__name {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #333333;
}

.account-dropdown__phone {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.2;
  color: #999999;
}

.account-dropdown__divider {
  height: 1px;
  background: rgba(51, 51, 51, 0.08);
}

.account-dropdown__action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 0;
  background: #ffffff;
  color: #333333;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.account-dropdown__action:hover,
.account-dropdown__action:focus-visible {
  background: #fafafa;
  outline: none;
}

.account-dropdown__action svg,
.account-dropdown__action-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(30px);
}

.login-modal__dialog {
  position: relative;
  width: min(402px, calc(100vw - 32px));
  min-height: 354px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.login-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #c6bdb3;
  box-shadow: inset 0 0 0 1px #d8d0c7;
  cursor: pointer;
}

.login-modal__close svg {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
}

.login-modal__close:hover {
  background: rgba(216, 208, 199, 0.08);
}

.login-modal__body {
  padding: 40px 48px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-form__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
  color: #333333;
  padding-right: 32px;
}

.login-form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-form__input-wrap {
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #ffffff;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.login-form__input-wrap:focus-within {
  border-color: rgba(39, 19, 68, 0.24);
  box-shadow: 0 0 0 4px rgba(39, 19, 68, 0.04);
}

.login-form__prefix,
.login-form__input,
.login-form__code-button {
  font-size: 16px;
  line-height: normal;
}

.login-form__prefix {
  padding-left: 16px;
  color: #101010;
  font-weight: 600;
  white-space: nowrap;
}

.login-form__input {
  width: 100%;
  height: 100%;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: #101010;
  outline: none;
  font-weight: 600;
}

.login-form__input::placeholder {
  color: rgba(171, 171, 171, 0.72);
}

.login-form__code-row .login-form__input {
  padding-right: 12px;
}

.login-form__divider {
  width: 1px;
  height: 12px;
  background: #ececec;
  flex: 0 0 1px;
}

.login-form__code-button {
  flex-shrink: 0;
  min-width: 111px;
  padding: 0 0 0 9px;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: #333333;
  white-space: nowrap;
  cursor: pointer;
  font-weight: 400;
}

.login-form__code-button:disabled {
  color: #333333;
  cursor: default;
}

.login-form__submit {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #333333;
  color: #ffffff;
  font-size: 16px;
  line-height: normal;
  transition:
    background-color 180ms ease,
    opacity 180ms ease;
  cursor: pointer;
  margin-top: 16px;
}

.login-form__submit:disabled {
  background: #d9d9d9;
  color: rgba(255, 255, 255, 0.92);
  cursor: not-allowed;
}

.login-form__submit.is-loading,
.login-form__submit.is-success {
  background: #333333;
  color: #ffffff;
}

.login-form__feedback {
  min-height: 18px;
  margin: -4px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #999999;
}

.login-form__feedback.is-error {
  color: #d34d4d;
}

.login-form__feedback.is-success {
  color: #4d8f59;
}

.login-form__agreement {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #999999;
  margin-top: 0;
}

.login-form__agreement a {
  color: #333333;
}

.settings-page {
  padding: 56px 0 96px;
  background: #ffffff;
}

.settings-shell {
  display: flex;
  justify-content: center;
}

.settings-card {
  width: min(720px, 100%);
  background: transparent;
}

.settings-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 0 20px;
}

.settings-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #333333;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 500;
  cursor: pointer;
}

.settings-back svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.settings-card__body {
  padding: 0;
}

.settings-heading h1,
.settings-heading p,
.settings-field__label,
.settings-field__hint,
.settings-value,
.settings-status {
  margin: 0;
}

.settings-heading h1 {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  color: #333333;
}

.settings-heading p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: #666666;
}

.settings-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.settings-field--avatar {
  padding: 24px;
  border-radius: 24px;
  background: #f7f7f7;
}

.settings-field__copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-field__label {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  color: #333333;
}

.settings-field__hint,
.settings-value,
.settings-status {
  font-size: 14px;
  line-height: 1.6;
  color: #8c8c8c;
}

.settings-avatar-editor {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.settings-avatar-preview {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 88px;
}

.settings-avatar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
}

.settings-input {
  width: 100%;
  height: 52px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 0 16px;
  background: #ffffff;
  color: #333333;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.settings-input:focus {
  border-color: rgba(51, 51, 51, 0.24);
  box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.05);
}

.settings-input::placeholder {
  color: #b4b4b4;
}

.settings-status {
  min-height: 22px;
}

.settings-status.is-success {
  color: #2a7b4f;
}

.settings-status.is-error {
  color: #c9524b;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.settings-primary-button,
.settings-secondary-button {
  min-width: 120px;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    opacity 160ms ease;
}

.settings-primary-button {
  border: 0;
  background: #333333;
  color: #ffffff;
}

.settings-primary-button:disabled {
  background: #d9d9d9;
  color: rgba(255, 255, 255, 0.9);
  cursor: not-allowed;
}

.settings-secondary-button {
  border: 1px solid #dfdfdf;
  background: #ffffff;
  color: #333333;
}

.settings-secondary-button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.admin-page {
  background: #f4f5f7;
}

.admin-prompt-editor-page {
  overflow: hidden;
}

.admin-page .container {
  width: calc(100% - 48px);
  max-width: none;
}

.admin-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(24px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.admin-topbar__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-topbar__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.admin-topbar__link,
.admin-button,
.admin-input,
.admin-select,
.admin-textarea,
.admin-prompt-item {
  font: inherit;
}

.admin-topbar__link,
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(51, 51, 51, 0.1);
  background: #ffffff;
  color: #333333;
  padding: 12px 18px;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease;
}

.admin-topbar__link:hover,
.admin-button:hover {
  border-color: rgba(51, 51, 51, 0.18);
}

.admin-button--danger-fill {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.admin-button--primary {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

.admin-button--danger {
  border-color: rgba(201, 82, 75, 0.18);
  color: #c9524b;
}

.admin-layout {
  display: grid;
  grid-template-columns: 272px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding: 24px 0 40px;
}

.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.admin-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(24px);
}

.admin-confirm-modal__dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.08);
}

.admin-confirm-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #c6bdb3;
  box-shadow: inset 0 0 0 1px #d8d0c7;
  cursor: pointer;
}

.admin-confirm-modal__close svg {
  width: 12px;
  height: 12px;
}

.admin-confirm-modal__body {
  padding: 28px;
}

.admin-confirm-modal__eyebrow,
.admin-confirm-modal__title,
.admin-confirm-modal__message {
  margin: 0;
}

.admin-confirm-modal__eyebrow {
  font-size: 13px;
  line-height: 1.4;
  color: #8c8c8c;
}

.admin-confirm-modal__title {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 700;
  color: #333333;
}

.admin-confirm-modal__message {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.7;
  color: #666666;
}

.admin-confirm-modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.admin-sidebar,
.admin-content {
  min-width: 0;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.admin-sidebar .admin-panel--compact {
  min-height: calc(100vh - 120px);
}

.admin-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-panel {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 48px rgba(17, 17, 17, 0.06);
  padding: 28px;
}

.admin-panel--compact {
  padding: 20px;
}

.admin-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-panel__eyebrow,
.admin-panel__note,
.admin-feedback,
.admin-inline-code,
.admin-prompt-item__meta,
.admin-account-card__status,
.admin-account-card__phone {
  margin: 0;
}

.admin-panel__eyebrow {
  font-size: 13px;
  line-height: 1.2;
  color: #8c8c8c;
}

.admin-panel__title {
  margin: 8px 0 0;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
}

.admin-panel__note,
.admin-inline-code,
.admin-feedback,
.admin-empty,
.admin-prompt-item__meta,
.admin-account-card__status,
.admin-account-card__phone {
  font-size: 14px;
  line-height: 1.6;
  color: #8c8c8c;
}

.admin-inline-code {
  margin-top: 10px;
  font-family: "SFMono-Regular", "Consolas", monospace;
}

.admin-side-nav {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-side-nav__link {
  display: block;
  border-radius: 12px;
  padding: 10px 12px;
  color: #333333;
  font-size: 15px;
  line-height: 1.2;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.admin-side-nav__link:hover {
  background: rgba(51, 51, 51, 0.04);
}

.admin-side-nav__link.is-active {
  background: #333333;
  color: #ffffff;
}

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

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 20px;
  margin-top: 20px;
}

.admin-dashboard-card {
  border-radius: 24px;
  background: #f7f7f7;
  padding: 20px;
}

.admin-dashboard-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-dashboard-card__title,
.admin-activity-item__title,
.admin-activity-item__meta {
  margin: 0;
}

.admin-dashboard-card__title {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 600;
}

.admin-stat-card {
  border-radius: 20px;
  background: #f7f7f7;
  padding: 20px;
}

.admin-stat-card__label {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  color: #8c8c8c;
}

.admin-stat-card__value {
  display: block;
  margin-top: 14px;
  font-size: 32px;
  line-height: 1;
  font-weight: 600;
  color: #333333;
}

.admin-form,
.admin-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.admin-field__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-field__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #8c8c8c;
}

.admin-field--full {
  grid-column: 1 / -1;
}

.admin-field__label {
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
}

.admin-input,
.admin-select,
.admin-textarea {
  width: 100%;
  border: 1px solid #e5e5e5;
  border-radius: 16px;
  background: #ffffff;
  color: #333333;
  padding: 14px 16px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.admin-input,
.admin-select {
  height: 52px;
}

.admin-textarea {
  resize: vertical;
  min-height: 124px;
}

.admin-input:focus,
.admin-select:focus,
.admin-textarea:focus {
  border-color: rgba(51, 51, 51, 0.24);
  box-shadow: 0 0 0 4px rgba(51, 51, 51, 0.04);
}

.admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.admin-actions--inline {
  justify-content: flex-start;
}

.admin-feedback {
  min-height: 22px;
}

.admin-category-manager {
  border-radius: 24px;
  background: #f7f7f7;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-banner-manager {
  border-radius: 24px;
  background: #f7f7f7;
  padding: 20px;
  margin-top: 20px;
}

.admin-banner-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-banner-preview {
  min-height: 220px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0f10;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.admin-banner-preview.is-empty {
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e7e7e7;
  color: #8c8c8c;
  text-align: center;
  padding: 24px;
}

.admin-banner-preview p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.admin-banner-preview img,
.admin-banner-preview video,
.admin-banner-preview iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: block;
}

.admin-banner-preview img,
.admin-banner-preview video {
  object-fit: cover;
  object-position: center;
}

.admin-banner-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-banner-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-category-chip {
  min-width: 140px;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-category-chip__body {
  min-width: 0;
}

.admin-category-chip__label,
.admin-category-chip__value {
  display: block;
}

.admin-category-chip__label {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #333333;
}

.admin-category-chip__value {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
  color: #8c8c8c;
  word-break: break-all;
}

.admin-category-chip__delete {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c9524b;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.admin-category-chip__delete:hover {
  opacity: 0.72;
}

.admin-category-create {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-category-create .admin-button {
  align-self: flex-start;
}

.admin-detail-editor {
  border-radius: 24px;
  background: #f7f7f7;
  padding: 20px;
}

.admin-detail-sections {
  margin-top: 20px;
}

.admin-detail-section-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.admin-detail-section-empty {
  margin: 0;
  border-radius: 20px;
  background: #ffffff;
  padding: 18px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #8c8c8c;
}

.admin-detail-section-card {
  border-radius: 20px;
  background: #ffffff;
  padding: 16px;
}

.admin-detail-section-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-detail-section-card__head strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #333333;
}

.admin-detail-section-card__delete {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c9524b;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.admin-detail-section-card__delete:hover {
  opacity: 0.72;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
}

.admin-check input {
  margin: 0;
}

.admin-feedback.is-success {
  color: #2a7b4f;
}

.admin-feedback.is-error {
  color: #c9524b;
}

.admin-prompt-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.admin-search {
  width: min(360px, 100%);
}

.admin-prompt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(440px, 520px);
  gap: 28px;
  align-items: start;
}

.admin-page--prompt-gallery .admin-prompt-layout {
  display: block;
}

.admin-page--prompt-gallery .admin-editor {
  display: none;
}

.admin-user-table__rows,
.admin-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 0.8fr 0.9fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
}

.admin-user-row--head {
  background: transparent;
  padding: 0 4px 4px;
  color: #8c8c8c;
}

.admin-user-row__name {
  font-weight: 600;
  color: #333333;
}

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

.admin-usage-item {
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.admin-usage-item span,
.admin-activity-item__meta {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: #8c8c8c;
}

.admin-usage-item strong {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  line-height: 1;
  font-weight: 600;
}

.admin-activity-card {
  margin-top: 20px;
}

.admin-activity-item {
  border-radius: 18px;
  background: #ffffff;
  padding: 16px;
}

.admin-activity-item__title {
  font-size: 15px;
  line-height: 1.5;
  color: #333333;
}

.admin-activity-item__meta {
  margin-top: 6px;
}

.admin-prompt-list {
  display: grid;
  grid-template-columns: repeat(var(--admin-prompt-gallery-columns, 3), minmax(0, 1fr));
  gap: 24px;
  align-items: start;
  min-height: 520px;
}

.admin-prompt-list > .admin-empty {
  grid-column: 1 / -1;
}

.admin-prompt-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-prompt-item {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: #333333;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease;
}

.admin-prompt-item:hover {
  transform: translateY(-2px);
}

.admin-prompt-item__frame {
  display: block;
  padding: 14px;
  border-radius: 28px;
  background: #f7f7f7;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.admin-prompt-item:hover .admin-prompt-item__frame {
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 17, 17, 0.08);
}

.admin-prompt-item.is-active .admin-prompt-item__frame {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 2px rgba(51, 51, 51, 0.1),
    0 18px 36px rgba(17, 17, 17, 0.1);
}

.admin-prompt-item__image {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  background: #ffffff;
}

.admin-prompt-item[data-shape="wide"] .admin-prompt-item__image {
  aspect-ratio: 432 / 316;
}

.admin-prompt-item[data-shape="short"] .admin-prompt-item__image {
  aspect-ratio: 432 / 269;
}

.admin-prompt-item[data-shape="tall"] .admin-prompt-item__image {
  aspect-ratio: 432 / 583;
}

.admin-prompt-item[data-shape="square"] .admin-prompt-item__image {
  aspect-ratio: 1 / 1;
}

.admin-prompt-item__body {
  display: block;
  padding-top: 14px;
}

.admin-prompt-item__title {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.admin-prompt-item__meta {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.4;
  color: #8c8c8c;
}

.admin-editor {
  border-radius: 24px;
  background: #f7f7f7;
  padding: 20px;
}

.admin-prompt-editor-main {
  min-height: 100vh;
  padding: 20px 0;
}

.admin-prompt-editor-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.02fr) minmax(420px, 0.98fr);
  gap: 20px;
  height: calc(100vh - 40px);
  min-height: 0;
  padding: 20px;
  border-radius: 40px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}

.admin-prompt-editor-preview {
  min-width: 0;
  min-height: 0;
  border-radius: 32px;
  background: #f5f5f5;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.admin-prompt-editor-preview__controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 16px;
}

.admin-prompt-editor-preview__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #8c8c8c;
}

.admin-prompt-editor-preview__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.admin-prompt-editor-preview__surface {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: #efefef;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.admin-prompt-editor-preview__card {
  width: 100%;
  max-width: 880px;
  max-height: calc(100vh - 120px);
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.08);
}

.admin-prompt-editor-preview__card.is-html {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
}

.admin-prompt-editor-preview__card[data-shape="wide"] {
  aspect-ratio: 432 / 316;
  width: min(100%, calc((100vh - 140px) * 432 / 316));
}

.admin-prompt-editor-preview__card[data-shape="short"] {
  aspect-ratio: 432 / 269;
  width: min(100%, calc((100vh - 140px) * 432 / 269));
}

.admin-prompt-editor-preview__card[data-shape="tall"] {
  aspect-ratio: 432 / 583;
  width: min(100%, calc((100vh - 140px) * 432 / 583));
}

.admin-prompt-editor-preview__card[data-shape="square"] {
  aspect-ratio: 1 / 1;
  width: min(100%, calc(100vh - 140px));
}

.admin-prompt-editor-preview__frame {
  width: 100%;
  height: 100%;
  display: block;
  background: #ffffff;
  border: 0;
}

.admin-prompt-editor-form {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.admin-prompt-editor-form::-webkit-scrollbar {
  display: none;
}

.admin-prompt-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-prompt-editor-toolbar__back,
.admin-prompt-editor-toolbar__icon {
  border: 0;
  background: transparent;
  color: #333333;
}

.admin-prompt-editor-toolbar__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.admin-prompt-editor-toolbar__back svg,
.admin-prompt-editor-toolbar__icon svg,
.admin-prompt-editor-section__icon svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.admin-prompt-editor-toolbar__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.admin-prompt-editor-toolbar__icon:hover,
.admin-prompt-editor-toolbar__back:hover {
  background: #f5f5f5;
}

.admin-prompt-editor-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-prompt-editor-header__title,
.admin-prompt-editor-header__intro {
  width: 100%;
  border: 0;
  background: transparent;
  color: #333333;
  outline: none;
  padding: 0;
  resize: none;
}

.admin-prompt-editor-header__title {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.15;
  font-weight: 600;
}

.admin-prompt-editor-header__intro {
  min-height: 96px;
  font-size: 14px;
  line-height: 1.8;
  color: #737373;
}

.admin-prompt-editor-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-prompt-editor-block__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-prompt-editor-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: #f5f5f5;
}

.admin-prompt-editor-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-prompt-editor-section__label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-prompt-editor-section__label strong {
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  color: #333333;
}

.admin-prompt-editor-section__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333333;
}

.admin-prompt-editor-section__textarea {
  min-height: 120px;
  background: #ffffff;
}

.admin-prompt-editor-custom {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-prompt-editor-custom__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-prompt-editor-section__title-input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #333333;
  padding: 0;
  outline: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.admin-prompt-editor-section__delete {
  flex: 0 0 auto;
  border: 0;
  padding: 0;
  background: transparent;
  color: #c9524b;
  font: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
}

.admin-prompt-editor-section__delete:hover {
  opacity: 0.72;
}

@media (max-width: 1560px) {
  .admin-prompt-layout {
    grid-template-columns: 1fr;
  }

  .admin-prompt-list {
    min-height: auto;
  }

  .admin-prompt-editor-shell {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
  }

  .admin-prompt-editor-preview {
    min-height: 420px;
  }

  .admin-prompt-editor-preview__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-prompt-editor-preview__actions {
    width: 100%;
    flex-direction: column;
  }

  .admin-prompt-editor-preview__surface {
    min-height: 380px;
    height: auto;
  }

  .admin-prompt-editor-form {
    height: auto;
  }
}

.admin-account-card {
  display: flex;
  align-items: center;
  gap: 20px;
  border-radius: 24px;
  background: #f7f7f7;
  padding: 24px;
}

.admin-account-card__avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 72px;
}

.admin-account-card__meta {
  flex: 1;
}

.admin-account-card__name {
  margin: 6px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.admin-account-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.admin-account-metric {
  border-radius: 20px;
  background: #f7f7f7;
  padding: 18px 20px;
}

.admin-account-metric__label,
.admin-account-metric__value {
  margin: 0;
}

.admin-account-metric__label {
  font-size: 13px;
  line-height: 1.5;
  color: #8c8c8c;
}

.admin-account-metric__value {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
  color: #111111;
}

.admin-account-table__rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-account-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.8fr 0.72fr 0.72fr 0.9fr;
  gap: 12px;
  align-items: center;
  border-radius: 18px;
  background: #ffffff;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #666666;
}

.admin-account-row--head {
  background: transparent;
  padding: 0 4px 4px;
  color: #8c8c8c;
}

.admin-account-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-account-user__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 40px;
}

.admin-account-user__meta {
  min-width: 0;
}

.admin-account-user__name {
  display: block;
  font-weight: 600;
  color: #333333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-account-permissions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-account-permission,
.admin-account-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f5f5f5;
  color: #333333;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.detail-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(221, 221, 221, 0.72);
  backdrop-filter: blur(22px);
}

.detail-modal__dialog {
  position: relative;
  width: min(1560px, calc(100vw - 48px));
  height: min(920px, calc(100vh - 48px));
  max-height: min(920px, calc(100vh - 48px));
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 0.95fr);
  gap: 16px;
  padding: 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 120px rgba(17, 17, 17, 0.12);
  overflow: hidden;
}

.detail-modal__preview-shell {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.detail-modal__preview-surface {
  height: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-radius: 24px;
  background: #f5f5f5;
  overflow: hidden;
}

.detail-modal__preview-viewport {
  width: 100%;
  max-height: calc(100vh - 136px);
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-radius: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-modal__preview-image {
  width: 100%;
  max-height: none;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(17, 17, 17, 0.06);
}

.detail-modal__content {
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 4px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.detail-modal__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-icon-button,
.detail-copy-full,
.detail-section__copy,
.detail-section__chevron {
  border: 0;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.detail-icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: transparent;
  color: #333333;
}

.detail-icon-button svg,
.detail-copy-full svg,
.detail-section__copy svg,
.detail-section__chevron svg,
.detail-summary-card__icon svg,
.detail-section__icon svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.detail-modal__preview-viewport::-webkit-scrollbar,
.detail-modal__content::-webkit-scrollbar {
  display: none;
}

.detail-icon-button:hover,
.detail-copy-full:hover,
.detail-section__copy:hover,
.detail-section__chevron:hover,
.detail-section__toggle:hover {
  background: #f5f5f5;
}

.detail-icon-button.is-copied {
  background: #333333;
  color: #ffffff;
}

.detail-modal__header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-modal__title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #333333;
}

.detail-modal__intro,
.detail-summary-card__text,
.detail-section__content p {
  margin: 0;
  font-size: 12px;
  line-height: 1.8;
  color: #737373;
}

.detail-summary-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #f5f5f5;
}

.detail-summary-card__head,
.detail-section__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-summary-card__label,
.detail-section__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #333333;
  font-size: 14px;
  line-height: 1.8;
  font-weight: 500;
}

.detail-summary-card__icon,
.detail-section__icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
}

.detail-copy-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 10px;
  background: #ffffff;
  color: #333333;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.detail-copy-full.is-copied {
  background: #333333;
  color: #ffffff;
}

.detail-section-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.detail-section {
  padding: 16px;
  border-radius: 16px;
  background: #f5f5f5;
}

.detail-section__toggle {
  flex: 1;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.detail-section__label {
  min-width: 0;
}

.detail-section__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.detail-section__copy,
.detail-section__chevron {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: #333333;
}

.detail-section__copy.is-copied {
  background: #333333;
  color: #ffffff;
}

.detail-section__content {
  margin-top: 12px;
}

.detail-section__content[hidden] {
  display: none;
}

.detail-section.is-open .detail-section__chevron svg {
  transform: rotate(180deg);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

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

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

  .hero-content {
    gap: 48px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .admin-prompt-layout {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-prompt-list {
    min-height: auto;
  }
}

@media (max-width: 920px) {
  .header-inner {
    min-height: auto;
    padding: 16px 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand,
  .account-entry {
    order: 1;
  }

  .main-nav {
    order: 2;
    width: 100%;
    justify-content: center;
    gap: 28px;
  }

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

  .search-box {
    width: 100%;
  }

  .gallery-section {
    padding-top: 72px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 24px;
    padding: 56px 0;
  }

  .footer-brand-block,
  .footer-copyright {
    justify-self: center;
    text-align: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    gap: 20px 28px;
  }

  .detail-modal {
    padding: 16px;
  }

  .login-modal {
    padding: 16px;
  }

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

  .detail-modal__dialog {
    width: min(100vw - 32px, 960px);
    height: min(920px, calc(100vh - 32px));
    max-height: min(920px, calc(100vh - 32px));
    grid-template-columns: 1fr;
  }

  .detail-modal__preview-surface {
    min-height: 320px;
  }

  .detail-modal__preview-viewport {
    max-height: 42vh;
  }

  .detail-modal__preview-image {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(var(--container-width), calc(100% - 32px));
  }

  .admin-page .container {
    width: calc(100% - 32px);
  }

  .admin-prompt-editor-page {
    overflow: auto;
  }

  .hero-section {
    --hero-banner-height: 480px;
    padding-top: 32px;
  }

  .hero-surface {
    height: var(--hero-banner-height);
  }

  .hero-content {
    min-height: var(--hero-banner-height);
  }

  .hero-content {
    padding: 72px 0;
    gap: 40px;
  }

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

  .filter-row {
    gap: 12px;
  }

  .site-footer,
  .footer-inner {
    min-height: auto;
  }

  .footer-inner {
    gap: 20px;
    padding: 40px 0 48px;
  }

  .footer-brand-title {
    font-size: 16px;
  }

  .footer-brand-subtitle,
  .footer-copyright,
  .footer-nav__link {
    font-size: 14px;
  }

  .filter-chip {
    padding-inline: 18px;
  }

  .prompt-overlay {
    padding: 14px;
  }

  .prompt-overlay__content {
    gap: 12px;
  }

  .prompt-overlay__text {
    max-width: none;
    flex: 1;
  }

  .detail-modal {
    padding: 12px;
  }

  .login-modal {
    padding: 12px;
  }

  .admin-topbar__inner,
  .admin-prompt-tools,
  .admin-account-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar__actions,
  .admin-actions,
  .admin-actions--inline {
    width: 100%;
  }

  .admin-topbar__actions,
  .admin-actions,
  .admin-actions--inline {
    flex-direction: column;
  }

  .admin-topbar__link,
  .admin-button {
    width: 100%;
  }

  .admin-sidebar,
  .admin-stat-grid,
  .admin-form-grid,
  .admin-usage-grid {
    grid-template-columns: 1fr;
  }

  .admin-category-create {
    flex-direction: column;
  }

  .admin-user-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .admin-user-row--head {
    display: none;
  }

  .admin-account-summary,
  .admin-account-row {
    grid-template-columns: 1fr;
  }

  .admin-account-row--head {
    display: none;
  }

  .admin-account-permissions {
    margin-top: 2px;
  }

  .settings-page {
    padding: 32px 0 64px;
  }

  .profile-shell .header-inner {
    justify-content: space-between;
  }

  .settings-toolbar {
    padding: 0 0 16px;
  }

  .settings-heading h1 {
    font-size: 28px;
  }

  .settings-avatar-editor {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-avatar-actions,
  .settings-actions {
    width: 100%;
  }

  .settings-actions {
    flex-direction: column-reverse;
  }

  .settings-primary-button,
  .settings-secondary-button {
    width: 100%;
  }

  .account-dropdown__panel {
    width: min(240px, calc(100vw - 24px));
  }

  .login-modal__body {
    padding: 36px 24px 28px;
  }

  .detail-modal__dialog {
    width: calc(100vw - 24px);
    height: min(920px, calc(100vh - 24px));
    max-height: min(920px, calc(100vh - 24px));
    padding: 12px;
    border-radius: 20px;
  }

  .detail-modal__preview-surface {
    min-height: 240px;
    padding: 16px;
    border-radius: 16px;
  }

  .detail-modal__preview-viewport {
    max-height: 38vh;
  }

  .detail-modal__content {
    gap: 12px;
  }

  .detail-summary-card__head,
  .detail-section__row {
    align-items: flex-start;
  }

  .detail-copy-full {
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
