:root {
  --bg: #fcfcfc;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --black: #111111;
  --muted: #666666;
  --quiet: #999999;
  --soft: #fafafa;
  --soft-2: #f4f4f6;
  --line: #e5e5e5;
  --line-dark: #cccccc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1180px;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px 1fr;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-right: 1px solid var(--line);
}

.brand {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.brand-logo {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000000;
  cursor: pointer;
}

.brand-logo:hover {
  color: #333333;
}

.btn-contact {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid #e5e5e1;
  border-radius: 6px;
  background-color: transparent;
  color: #555555;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-contact svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-contact:hover {
  border-color: #111111;
  background-color: #fafafa;
  color: #111111;
}

.sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding: 24px;
}

.field-block {
  margin-bottom: 24px;
}

.field-block.compact {
  margin-bottom: 14px;
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.core-upload {
  width: 100%;
  min-height: 216px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  background: var(--soft);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.core-upload:hover {
  border-color: #999999;
  background: #f5f5f5;
}

.core-upload.has-image {
  padding: 24px;
}

.core-preview {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}

.core-upload img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
}

.core-upload input,
.ref-add input {
  display: none;
}

.upload-status {
  margin-top: 8px;
  color: var(--quiet);
  font-size: 12px;
  line-height: 1.3;
}

.upload-status.ready {
  color: #4a7c59;
}

.upload-status.failed {
  color: #9b2c2c;
}

.upload-plus {
  position: relative;
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
  color: var(--quiet);
}

.upload-plus::before,
.upload-plus::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.upload-plus::after {
  width: 2px;
  height: 16px;
}

.side-textarea,
.selling-points {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: #333333;
  outline: none;
  line-height: 1.5;
  font-family: inherit;
  transition: border-color 0.2s, background-color 0.2s;
}

.side-textarea:focus,
.selling-points:focus {
  border-color: #bbbbbb;
  background: #ffffff;
}

.side-textarea {
  height: 80px;
  min-height: 80px;
  padding: 10px;
  font-size: 13px;
  resize: none;
}

.control,
.inline-select,
.hex-input {
  height: 31px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #333333;
  outline: none;
}

.control {
  width: 100%;
  padding: 0 9px;
  font-size: 13px;
}

.primary {
  border: 0;
  border-radius: 6px;
  background: var(--black);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  transition: opacity 0.2s, background-color 0.2s;
}

.primary:hover:not(:disabled) {
  opacity: 0.9;
}

.primary:disabled {
  background: #eaeaea;
  color: #999999;
  opacity: 1;
}

.wide {
  width: 100%;
  height: 42px;
  font-size: 14px;
  font-weight: 600;
}

.notice {
  margin: -2px 0 10px;
  padding: 8px 9px;
  border: 1px solid #d8d8d4;
  border-radius: 6px;
  background: #fafafa;
  color: #666666;
  font-size: 12px;
  line-height: 1.3;
}

.notice.error {
  border-color: #ead5d5;
  background: #fff7f7;
  color: #9b2c2c;
}

.notice.info {
  border-color: #e3e3e0;
  background: #f7f7f6;
  color: #666666;
}

.notice.success {
  border-color: #cdeedd;
  background: #f3fff8;
  color: #15803d;
}

.divider {
  height: 1px;
  margin: 28px 0 20px;
  background: var(--line);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 40px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s;
}

.history-item:hover {
  background: #f5f5f5;
}

.history-item.active {
  background: #f0f0f0;
  border-color: var(--line);
}

.history-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.history-item strong,
.user-copy strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--ink);
}

.history-item small,
.user-copy span {
  color: var(--quiet);
  font-size: 11px;
}

.user-copy {
  min-width: 0;
}

.user-copy strong,
.user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-item i {
  color: var(--quiet);
  font-style: normal;
  text-align: center;
}

.empty-history {
  padding: 16px 8px;
  color: #929292;
  font-size: 12px;
}

.user-bar {
  height: 69px;
  display: grid;
  grid-template-columns: 34px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9aa7ff, #222831);
}

.pro {
  padding: 2px 6px;
  border-radius: 4px;
  background: #f0f0f0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.topup-trigger {
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.topup-trigger:hover {
  opacity: 0.86;
}

.google-login-btn {
  width: 100%;
  min-height: 61px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid #e3e3e0;
  border-radius: 12px;
  background: #ffffff;
  color: #1a1a1a;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.google-login-btn:hover {
  border-color: #d1d1cc;
  background: #fafafa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

.google-icon-svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

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

.btn-main-text {
  color: #10b981;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.btn-sub-text,
.btn-subtext {
  color: #8e8e93;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}

.btn-subtext {
  display: block;
  margin-top: 8px;
  text-align: center;
}

.workspace {
  min-width: 0;
}

.selection-toolbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 320px;
  z-index: 50;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 252, 252, 0.9);
  color: var(--muted);
  font-size: 13px;
  backdrop-filter: blur(8px);
}

.workspace.has-selection .plan-area {
  padding-top: 84px;
}

.muted-button {
  min-width: 112px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: #eaeaea;
  color: #999999;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
}

.muted-button:not(:disabled) {
  background: #111;
  color: #fff;
  font-weight: 500;
}

.plan-area {
  padding: 24px;
}

.suggested-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--soft-2);
  color: #888888;
  font-size: 12px;
  font-weight: 500;
}

.suggested-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.inline-select {
  height: 24px;
  min-width: 0;
  border-color: transparent;
  padding: 0 12px 0 0;
  appearance: none;
  -webkit-appearance: none;
  background-color: transparent;
  background-image: linear-gradient(45deg, transparent 50%, #555555 50%), linear-gradient(135deg, #555555 50%, transparent 50%);
  background-position: calc(100% - 6px) 10px, calc(100% - 1px) 10px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  color: #222222;
  font-weight: 600;
  cursor: pointer;
}

.design-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.design-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  border: 0;
  background: transparent;
  color: #222222;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.color-swatch {
  width: 12px;
  height: 12px;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.03);
}

.color-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 80;
  width: 332px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.color-field {
  position: relative;
  height: 168px;
  overflow: hidden;
  border-radius: 6px;
  cursor: crosshair;
}

.color-field-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.color-tools-row {
  display: grid;
  grid-template-columns: 28px 40px 1fr;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.eyedropper-button {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #777777;
  cursor: pointer;
}

.eyedropper-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyedropper-button:hover {
  color: #222222;
}

.color-popover-row {
  display: block;
  margin-top: 16px;
}

.color-preview {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.hue-range {
  width: 100%;
  height: 14px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff0000, #ffff00, #00ff00, #00ffff, #0000ff, #ff00ff, #ff0000);
  cursor: pointer;
}

.hue-range::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.hue-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.24);
}

.color-hex-field {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 12px;
  color: #222222;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 6px;
  margin-top: 12px;
}

.color-swatch-button {
  width: 20px;
  height: 20px;
  border: 1px solid #d7d7d7;
  border-radius: 50%;
  cursor: pointer;
}

.color-swatch-button.active {
  outline: 2px solid #111111;
  outline-offset: 2px;
}

.color-reset-button {
  width: 100%;
  height: 34px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: #666666;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.info-dot {
  margin-left: auto;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: #dddddd;
  color: #666666;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  align-items: start;
}

.module-column {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 24px;
}

.module-card {
  position: relative;
  width: 100%;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.title-wrap {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 6px;
}

.module-title {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.title-edit-input {
  width: min(100%, 340px);
  min-width: 0;
  height: 30px;
  padding: 1px 8px 2px;
  border: 2px solid #0b66d8;
  border-radius: 5px;
  outline: none;
  background: #ffffff;
  font-family: inherit;
  letter-spacing: 0;
}

.help,
.icon-button {
  border: 0;
  background: transparent;
  color: #b2b2b2;
  font-weight: 500;
}

.help {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cccccc;
  border-radius: 50%;
  color: var(--quiet);
  font-size: 11px;
  line-height: 1;
  background: transparent;
}

.icon-button {
  width: 24px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #bbbbbb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  line-height: 1;
  text-indent: 2px;
}

.menu-wrap {
  position: relative;
}

.module-menu {
  position: absolute;
  z-index: 10;
  right: 0;
  top: 24px;
  width: 150px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.08);
}

.module-menu button,
.type-picker button {
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #333;
  text-align: left;
  font-size: 12px;
}

.module-menu button:hover,
.type-picker button:hover {
  background: #f3f4f6;
}

.type-picker {
  max-height: 210px;
  overflow: auto;
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px solid var(--line);
}

.selling-points {
  height: 72px;
  min-height: 72px;
  padding: 10px;
  font-size: 13px;
  margin-bottom: 16px;
}

.refs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.ref-thumb,
.ref-add {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1px solid var(--line);
}

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

.ref-add {
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-dark);
  color: #888888;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  background: var(--soft);
  transition: border-color 0.2s, background-color 0.2s;
}

.ref-add:hover {
  border-color: #999999;
  background: #f0f0f0;
}

.remove-btn,
.thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 0;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s, background-color 0.2s;
  z-index: 5;
}

.remove-btn::before,
.remove-btn::after,
.thumb-remove::before,
.thumb-remove::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(45deg);
}

.remove-btn::after,
.thumb-remove::after {
  transform: rotate(-45deg);
}

.core-preview:hover .core-remove,
.ref-thumb:hover .thumb-remove {
  opacity: 1;
}

.remove-btn:hover,
.thumb-remove:hover {
  background: rgba(0, 0, 0, 0.72);
}

.fine-tune {
  border-top: 1px solid #f0f0f0;
  border-bottom: 0;
  margin: 0 0 16px;
  padding: 0;
}

.fine-tune summary {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  padding: 10px 0 6px;
  list-style: none;
  cursor: pointer;
}

.fine-tune summary::after {
  content: "▼";
  color: #999999;
  font-size: 8px;
  line-height: 1;
  transition: transform 0.2s;
}

.fine-tune[open] summary::after {
  transform: rotate(180deg);
}

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

.fine-body {
  display: grid;
  gap: 12px;
  padding: 8px 0;
}

.fine-body label,
.split-controls label {
  display: grid;
  gap: 5px;
  color: #888888;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.fine-body .control {
  height: auto;
  min-height: 30px;
  padding: 6px 8px;
  border-radius: 4px;
  color: #333333;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
}

.fine-body select.control {
  padding: 6px;
}

.split-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 45px;
  gap: 10px;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.status {
  margin-right: auto;
  color: var(--quiet);
  font-size: 12px;
}

.generate {
  height: auto;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.gallery {
  columns: 78px 3;
  column-gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #eaeaea;
}

.asset {
  position: relative;
  display: inline-block;
  width: 78px;
  height: 78px;
  aspect-ratio: auto;
  margin: 0 8px 8px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: #f5f5f6;
  color: #777;
  font-size: 12px;
}

.generated-asset {
  width: 100%;
  height: auto;
  break-inside: avoid;
  margin: 0 0 8px;
  background: #ffffff;
}

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

.generated-asset img {
  height: auto;
  object-fit: contain;
}

.asset-preview-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
  text-decoration: none;
}

.generated-asset .asset-preview-trigger {
  height: auto;
}

.asset input {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  accent-color: var(--black);
}

.asset.loading,
.asset.failed {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  break-inside: avoid;
}

.asset.loading::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border: 2px solid #d1d5db;
  border-top-color: #111;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.asset.failed {
  border-color: #ead5d5;
  background: #fff7f7;
  color: #9b2c2c;
  gap: 5px;
  font-size: 11px;
  line-height: 1.1;
}

.asset.refunded {
  border-color: #d8eadf;
  background: #f7fff9;
  color: #4a7c59;
}

.refund-button {
  height: 20px;
  padding: 0 7px;
  border: 0;
  border-radius: 4px;
  background: #111111;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
}

.empty-workspace {
  display: grid;
  place-content: center;
  min-height: calc(100vh - 60px);
  color: #8c8c8c;
  text-align: center;
}

.empty-workspace h1 {
  margin: 0 0 8px;
  color: #111;
  font-size: 18px;
}

.empty-workspace p {
  margin: 0;
  max-width: 420px;
  font-size: 15px;
  line-height: 1.55;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.compare-layer {
  z-index: 1010;
}

.modal-card {
  position: relative;
  display: flex;
  width: 90%;
  max-width: 960px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.login-modal-card {
  width: 90%;
  max-width: 420px;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  border-radius: 16px;
  text-align: center;
}

.login-title {
  margin: 0 0 32px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.login-modal-google {
  max-width: 300px;
}

.why-modal-card {
  width: 92%;
  max-width: 980px;
  flex-direction: column;
  max-height: calc(100vh - 64px);
  overflow: auto;
  padding: 36px;
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.why-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.why-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.why-close-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.why-modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.why-modal-header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.why-modal-header p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.4;
}

.why-comparison-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-traditional-block {
  padding: 20px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 16px;
  background-color: #f8fafc;
}

.why-block-banner,
.why-lazy60-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.why-block-banner {
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}

.why-block-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.why-block-tag {
  color: #475569;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.why-block-subtitle {
  color: #64748b;
  font-size: 12px;
  line-height: 1.2;
}

.why-badge-red,
.why-badge-green {
  flex: 0 0 auto;
  border-radius: 20px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.why-badge-red {
  padding: 4px 10px;
  border: 1px solid #fecdd3;
  background: #fef2f2;
  color: #dc2626;
}

.why-pain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.why-pain-card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
}

.why-pain-card-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
}

.why-pain-img-box {
  width: 100%;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
}

.why-pain-img-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.why-lazy60-block {
  position: relative;
  padding: 20px;
  border: 2px solid #38bdf8;
  border-radius: 16px;
  background-color: #f0f9ff;
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.12);
}

.why-lazy60-tag {
  display: flex;
  align-items: center;
  color: #0284c7;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.why-lazy60-tag svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.why-badge-green {
  padding: 4px 12px;
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #059669;
}

.why-steps-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.why-step-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.why-step-item.highlight {
  border-color: #0f172a;
  background: #0f172a;
  color: #ffffff;
}

.why-step-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: #0284c7;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-step-item.highlight .why-step-icon {
  stroke: #ffffff;
}

.why-step-label {
  color: inherit;
  font-size: 9px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.7;
}

.why-step-title {
  margin-top: 1px;
  color: inherit;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  white-space: nowrap;
}

.why-arrow-divider {
  flex: 0 0 auto;
  color: #0284c7;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  opacity: 0.6;
}

.founder-modal-card {
  width: 90%;
  max-width: 400px;
  flex-direction: column;
  align-items: center;
  padding: 32px 28px 28px;
  border-radius: 16px;
  text-align: center;
}

.founder-badge {
  margin-bottom: 16px;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: #f4f4f6;
  color: #8e8e93;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.founder-avatar-wrapper {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
}

.founder-avatar {
  width: 100%;
  height: 100%;
  border: 1px solid #e5e5e1;
  border-radius: 50%;
  object-fit: cover;
}

.founder-status-dot {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background-color: #10b981;
}

.founder-headline {
  margin: 0 0 8px;
  color: #111111;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.founder-desc {
  margin: 0 0 20px;
  color: #666666;
  font-size: 13px;
  line-height: 1.5;
}

.founder-email-box {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 8px 12px;
  border: 1px solid #e5e5e1;
  border-radius: 8px;
  background-color: #fafafa;
  transition: border-color 0.2s ease;
}

.founder-email-box:hover {
  border-color: #bbbbbb;
}

.founder-email-text {
  overflow: hidden;
  color: #1a1a1a;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-copy-email {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #e5e5e1;
  border-radius: 4px;
  background-color: #ffffff;
  color: #444444;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-copy-email:hover {
  border-color: #111111;
  background-color: #111111;
  color: #ffffff;
}

.topup-modal-card {
  width: 92%;
  max-width: 860px;
  flex-direction: column;
  padding: 32px 36px 28px;
  border-radius: 16px;
  overflow: visible;
}

.topup-header {
  margin-bottom: 30px;
  text-align: center;
}

.topup-title {
  margin: 0 0 8px;
  color: #111111;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.8px;
}

.topup-subtitle {
  margin: 0;
  color: #777777;
  font-size: 13px;
  line-height: 1.35;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.pricing-card {
  position: relative;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 20px;
  border: 1px solid #e3e3e0;
  border-radius: 12px;
  background: #ffffff;
}

.pricing-card.has-strip {
  padding-top: 42px;
}

.pricing-card.featured {
  border: 2px solid #111111;
}

.pricing-card.pro-card {
  border-color: #d0d0cc;
}

.badge-header-strip {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
  background: #111111;
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pricing-card.featured .badge-header-strip {
  top: -2px;
  left: -2px;
  right: -2px;
}

.badge-header-strip.muted {
  background: #555555;
}

.plan-name {
  margin-bottom: 14px;
  color: #1a1a1a;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.pts-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 33px;
}

.main-pts {
  color: #111111;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
}

.bonus-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border: 1px solid #98f0c8;
  border-radius: 5px;
  background: #e9fff5;
  color: #10b981;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  white-space: nowrap;
}

.img-calc-desc {
  margin-top: 5px;
  color: #4b4b4b;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
}

.unit-price-spec {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px dashed #e8e8e4;
  color: #8c8c8c;
  font-size: 11px;
  line-height: 1.5;
}

.card-price-bottom {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.price-display {
  color: #111111;
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
}

.btn-purchase {
  height: 36px;
  width: 100%;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.btn-purchase.outline {
  border: 1px solid #e3e3e0;
  background: #ffffff;
  color: #111111;
}

.btn-purchase.solid {
  border: 0;
  background: #111111;
  color: #ffffff;
}

.btn-purchase:hover {
  opacity: 0.88;
}

.topup-footer {
  padding-top: 24px;
  border-top: 1px dashed #e1e1dd;
  text-align: center;
}

.secure-tag {
  margin-bottom: 14px;
  color: #a1a1a1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

.payment-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.pay-logo {
  flex: 0 0 54px;
  width: 54px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid #dddddd;
  background: #ffffff;
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
}

.pay-logo.stripe {
  border-color: #635bff;
  background: #635bff;
  color: #ffffff;
  font-size: 11px;
}

.topup-success-modal-card {
  position: relative;
  width: 90%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding: 24px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.topup-success-icon-wrapper {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #10b981;
}

.topup-success-title {
  margin: 0 0 6px;
  color: #111111;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.topup-success-message {
  margin: 0;
  color: #666666;
  font-size: 13px;
  line-height: 1.4;
}

.topup-success-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #10b981;
}

.topup-success-modal-card.animating .topup-success-progress-bar {
  animation: shrinkProgress 4s linear forwards;
}

.pay-logo.visa {
  border-color: #172274;
  background: #172274;
  color: #ffffff;
}

.pay-logo.amex {
  border-color: #0070ba;
  background: #0070ba;
  color: #ffffff;
}

.pay-logo.apple {
  border-color: #111111;
  background: #111111;
  color: #ffffff;
}

.pay-logo.gpay {
  color: #444444;
  font-weight: 700;
}

.pay-logo.mastercard {
  position: relative;
  border-color: #222222;
  background: #222222;
  color: transparent;
}

.pay-logo.mastercard i,
.pay-logo.mastercard b {
  position: absolute;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
}

.pay-logo.mastercard i {
  left: 19px;
  background: #eb001b;
}

.pay-logo.mastercard b {
  left: 26px;
  background: #f79e1b;
  opacity: 0.92;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal-close-btn:hover {
  background-color: #f5f5f5;
  color: var(--black);
}

.modal-close-btn.compact-close {
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  font-size: 14px;
}

.preview-modal-card {
  max-width: 960px;
}

.preview-left {
  position: relative;
  flex: 1;
  min-width: 500px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f4f3f1;
}

.preview-image-container {
  width: 480px;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.preview-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.arrow-btn {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-50%);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.arrow-btn:hover:not(:disabled) {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-50%) scale(1.05);
}

.arrow-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.arrow-left {
  left: 16px;
}

.arrow-right {
  right: 16px;
}

.preview-checkbox-wrapper {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.preview-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--black);
}

.preview-checkbox-label {
  color: #333333;
  font-size: 12px;
  font-weight: 500;
  user-select: none;
  cursor: pointer;
}

.preview-right {
  width: 360px;
  height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-left: 1px solid var(--line);
  background-color: #ffffff;
}

.panel-top-content {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 4px;
}

.panel-module-badge {
  display: inline-block;
  margin-bottom: 12px;
  padding: 3px 8px;
  border-radius: 4px;
  background-color: #f4f4f6;
  color: #888888;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.panel-section-title {
  margin: 20px 0 8px;
  color: #444444;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.panel-thumbs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.panel-thumb-box {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background-color: #fcfcfc;
}

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

.panel-empty {
  color: #aaaaaa;
  font-size: 11px;
}

.panel-text-block {
  padding: 10px;
  border: 1px solid #f0f0f0;
  border-radius: 6px;
  background-color: #fafafa;
  color: #555555;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.panel-accordion {
  margin-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.panel-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

.panel-accordion summary::after {
  content: "▼";
  color: var(--quiet);
  font-size: 8px;
  transition: transform 0.2s;
}

.panel-accordion[open] summary::after {
  transform: rotate(180deg);
}

.panel-accordion-content {
  padding-top: 8px;
  color: #555555;
  font-size: 12px;
  line-height: 1.45;
}

.panel-info-row {
  margin-bottom: 6px;
}

.panel-info-label {
  margin-right: 4px;
  color: #888888;
  font-weight: 600;
}

.panel-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.modal-primary {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
}

.btn-outline {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background-color: transparent;
  color: var(--black);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.btn-outline:hover {
  border-color: var(--black);
  background-color: #fafafa;
}

.compare-modal-card {
  width: 95%;
  max-width: 1024px;
  flex-direction: column;
  padding: 24px;
}

.compare-title {
  margin: 0 0 4px;
  color: var(--black);
  font-size: 18px;
  font-weight: 700;
}

.compare-subtitle {
  color: #888888;
  font-size: 12px;
}

.compare-container {
  display: flex;
  gap: 24px;
  margin-top: 16px;
}

.compare-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.compare-pane-title {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.compare-box {
  position: relative;
  width: 100%;
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #f4f3f1;
}

.compare-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.compare-thumbs-section {
  width: 100%;
  margin-top: 16px;
}

.compare-thumbs-title {
  margin-bottom: 8px;
  color: #888888;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.compare-thumbs-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.compare-thumb-wrapper {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.compare-thumb-wrapper.active {
  border-color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.compare-thumb-wrapper::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: transparent;
}

.compare-thumb-wrapper.active::after {
  background-color: var(--black);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes shrinkProgress {
  from {
    width: 100%;
  }

  to {
    width: 0%;
  }
}

.admin-shell {
  grid-column: 1 / -1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
  background: #f7f7f7;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: var(--paper);
}

.admin-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.admin-brand strong {
  color: #000000;
  font-size: 20px;
  font-weight: 800;
}

.admin-brand span,
.admin-topbar span,
.admin-panel-head p,
.admin-sample-row small {
  color: var(--quiet);
  font-size: 12px;
}

.admin-new-sample,
.secondary-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.admin-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.admin-nav a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.admin-nav a:hover,
.admin-nav a.active {
  border-color: var(--line-dark);
  background: var(--soft-2);
  color: var(--black);
}

.admin-new-sample {
  width: 100%;
  text-align: left;
}

.admin-new-sample:hover,
.secondary-button:hover {
  border-color: var(--line-dark);
  background: var(--soft);
}

.admin-sample-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
}

.admin-sample-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.admin-sample-row:hover,
.admin-sample-row.active {
  border-color: var(--line);
  background: var(--soft-2);
}

.admin-sample-row span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.admin-sample-row strong {
  overflow: hidden;
  color: var(--black);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sample-row i {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eeeeee;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-topbar,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

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

.admin-kicker {
  margin: 0 0 4px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.admin-topbar h1 {
  margin: 0 0 4px;
  color: #000000;
  font-size: 24px;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-publish {
  min-height: 36px;
  padding: 0 16px;
}

.admin-notice {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid #c8eadb;
  border-radius: 8px;
  background: #f2fbf7;
  color: #11845b;
  font-size: 13px;
  font-weight: 600;
}

.admin-notice.error {
  border-color: #f0c7c7;
  background: #fff4f4;
  color: #9b2c2c;
}

.admin-access-panel {
  max-width: 460px;
  margin: 22vh auto 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  text-align: center;
}

.admin-access-panel h1 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: 22px;
  font-weight: 800;
}

.admin-access-panel p {
  margin: 0 0 22px;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.45;
}

.admin-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  text-decoration: none;
}

.admin-prompt-textarea {
  width: 100%;
  min-height: 420px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: #222222;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

.admin-prompt-textarea:focus,
.admin-prompt-module textarea:focus {
  border-color: var(--line-dark);
  background: var(--paper);
}

.admin-token-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--quiet);
  font-size: 12px;
}

.admin-token-row code {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
}

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

.admin-prompt-module {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-prompt-module strong,
.admin-prompt-module small {
  display: block;
}

.admin-prompt-module strong {
  color: var(--black);
  font-size: 13px;
  font-weight: 800;
}

.admin-prompt-module small {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 11px;
}

.admin-prompt-module textarea {
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  color: #333333;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  resize: vertical;
  outline: none;
}

.admin-log-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.admin-metric {
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-metric span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.admin-metric strong {
  color: var(--black);
  font-size: 24px;
  font-weight: 800;
}

.admin-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-log-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 12px;
}

.admin-log-table th,
.admin-log-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eeeeee;
  color: #333333;
  text-align: left;
  vertical-align: top;
}

.admin-log-table th {
  color: var(--quiet);
  background: var(--soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

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

.admin-log-failure {
  max-width: 300px;
  color: #9b2c2c;
  line-height: 1.35;
}

.admin-mini-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
}

.admin-mini-button:hover {
  border-color: #d2d2d2;
  background: #f8f8f8;
}

.admin-log-body-modal-card {
  width: min(880px, calc(100vw - 48px));
  max-height: min(760px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.admin-log-body-head {
  margin-bottom: 16px;
  padding-right: 44px;
}

.admin-log-body-head h2 {
  margin: 3px 0 4px;
  color: var(--black);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.admin-log-body-head span {
  color: var(--quiet);
  font-size: 13px;
}

.admin-log-body-json {
  flex: 1;
  min-height: 320px;
  margin: 0;
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111111;
  color: #f3f3f3;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eeeeee;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: capitalize;
}

.admin-status-pill.succeeded,
.admin-status-pill.paid {
  background: #e8f7ef;
  color: #11845b;
}

.admin-status-pill.failed,
.admin-status-pill.timeout {
  background: #fff0f0;
  color: #a33a3a;
}

.admin-status-pill.refunded {
  background: #eef1f6;
  color: #4a5568;
}

.admin-status-pill.creating,
.admin-status-pill.waiting,
.admin-status-pill.queuing,
.admin-status-pill.generating,
.admin-status-pill.pending {
  background: #fff7e8;
  color: #8a5a00;
}

.admin-empty-row {
  padding: 20px;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  color: var(--quiet);
  font-size: 13px;
  text-align: center;
}

.admin-panel {
  margin-bottom: 16px;
  padding: 20px 24px;
}

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

.admin-panel-head.sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  margin: -20px -24px 18px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.admin-panel-head h2 {
  margin: 0 0 4px;
  color: var(--black);
  font-size: 16px;
  font-weight: 800;
}

.admin-panel-head p {
  margin: 0;
}

.admin-panel-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.admin-form-grid.compact label,
.admin-brief-field,
.admin-module-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.admin-input-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.admin-product-uploader {
  position: relative;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px dashed var(--line-dark);
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.admin-product-uploader img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.admin-product-uploader input,
.admin-image-slot input {
  display: none;
}

.admin-brief-field .side-textarea {
  min-height: 180px;
}

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

.admin-module-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-module-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-module-head > div:last-child {
  min-width: 0;
  flex: 1;
}

.admin-module-title-input {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--black);
  font-size: 17px;
  font-weight: 800;
  outline: none;
}

.admin-module-head small {
  display: block;
  margin-top: 2px;
  color: var(--quiet);
  font-size: 11px;
}

.admin-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  flex: none;
}

.admin-toggle input {
  position: absolute;
  opacity: 0;
}

.admin-toggle span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #d7d7d7;
}

.admin-toggle span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--paper);
  transition: transform 0.15s ease;
}

.admin-toggle input:checked + span {
  background: var(--black);
}

.admin-toggle input:checked + span::after {
  transform: translateX(16px);
}

.admin-selling-points {
  min-height: 92px;
  margin-bottom: 14px;
  resize: vertical;
}

.admin-media-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid #f0f0f0;
}

.admin-mini-label {
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.admin-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-image-slot {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--line-dark);
  border-radius: 6px;
  background: var(--soft);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.admin-image-slot.filled {
  border-style: solid;
  background: var(--paper);
}

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

.admin-thumb-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.78);
  color: var(--paper);
  font-size: 16px;
  line-height: 1;
}

.admin-finetune {
  margin-top: 2px;
}

@media (max-width: 1280px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }

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

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

@media (max-width: 760px) {
  .why-modal-card {
    max-height: calc(100vh - 32px);
    overflow: auto;
    padding: 28px 20px 20px;
  }

  .why-modal-header h2 {
    font-size: 22px;
  }

  .why-block-banner,
  .why-lazy60-banner,
  .why-block-title-group {
    align-items: flex-start;
    flex-direction: column;
  }

  .why-pain-grid {
    grid-template-columns: 1fr;
  }

  .why-pain-img-box {
    height: 220px;
  }

  .why-steps-row {
    align-items: stretch;
    flex-direction: column;
  }

  .why-arrow-divider {
    display: none;
  }
}
