.mochi-experiences-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(100%, 1560px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 24px) clamp(12px, 2vw, 28px) 40px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}
.mochi-experiences-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(245, 158, 11, 0.16),
      rgba(97, 175, 239, 0.08) 52%,
      rgba(18, 18, 18, 0.94)
    ),
    #171717;
}
.mochi-experiences-eyebrow {
  color: #f59e0b;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mochi-experiences-header h2, .mochi-experiences-editor h3, .mochi-experiences-library h3 {
  color: #fff;
  margin: 0 0 6px;
  font-weight: 800;
}
.mochi-experiences-header h2 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
}
.mochi-experiences-header p, .mochi-experiences-editor p, .mochi-experiences-library p {
  color: #c8d0d8;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}
.mochi-experiences-header-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
}
.mochi-experiences-state {
  min-width: 142px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #202020;
  border-left: 3px solid #98c379;
}
.mochi-experiences-state span, .mochi-experiences-stats span {
  display: block;
  color: #7f848e;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.mochi-experiences-state strong {
  display: block;
  color: #fff;
  font-size: 20px;
  margin-top: 6px;
}
.mochi-primary-button, .mochi-publish-button {
  border: 1px solid #98c379 !important;
  background: #2f4a31 !important;
  color: #eaffdf !important;
}
.mochi-experiences-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr)) minmax(190px, 1.5fr);
  gap: 8px;
}
.mochi-experiences-stats > div {
  padding: 12px 14px;
  border-radius: 8px;
  background: #202020;
  border: 1px solid #343434;
}
.mochi-experiences-stats strong {
  display: block;
  color: #fff;
  font-size: 22px;
  margin-top: 4px;
}
.mochi-experiences-stats > div:last-child {
  display: flex;
  align-items: center;
}
.mochi-experiences-workbench {
  display: grid;
  grid-template-columns: minmax(330px, 0.82fr) minmax(420px, 1.18fr);
  gap: 16px;
  align-items: start;
}
.mochi-experiences-library, .mochi-experiences-preview-shell, .mochi-experiences-editor {
  border-radius: 14px;
  background: #202020;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(16px, 2vw, 22px);
}
.mochi-experiences-library-head, .mochi-experiences-preview-head, .mochi-modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.mochi-experiences-preview-shell {
  position: sticky;
  top: 92px;
}
.mochi-experiences-preview-head h3 {
  color: #fff;
  margin: 0;
  font-size: 18px;
}
.mochi-preview-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.mochi-preview-actions > span {
  color: #98c379;
  background: rgba(152, 195, 121, 0.12);
  border: 1px solid rgba(152, 195, 121, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}
.mochi-publish-button:disabled {
  border-color: #49604a !important;
  background: #243326 !important;
  color: #98c379 !important;
  cursor: default !important;
  opacity: 0.85;
}
.mochi-experiences-preview {
  min-height: clamp(440px, 60vh, 720px);
  border-radius: 12px;
  background: #111;
  border: 1px solid #343434;
  padding: 12px;
  overflow: auto;
}
.mochi-experiences-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mochi-experiences-row, .mochi-experiences-empty {
  border-radius: 8px;
  background: #171717;
  border: 1px solid #333;
  padding: 14px;
}
.mochi-experiences-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  transition: border-color 0.15s, background 0.15s;
}
.mochi-experiences-row:hover, .mochi-experiences-row.is-selected {
  border-color: #61afef;
  background: #1b2832;
}
.mochi-experiences-row:focus-visible,
.mochi-experiences-actions button:focus-visible,
.mochi-experiences-row button:focus-visible,
.mochi-modal-head button:focus-visible,
.mochi-primary-button:focus-visible,
.mochi-experiences-form input:focus-visible,
.mochi-experiences-form select:focus-visible,
.mochi-experiences-form textarea:focus-visible {
  outline: 3px solid #61afef;
  outline-offset: 2px;
}
.mochi-experiences-row-actions, .mochi-modal-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mochi-experiences-row.is-selected {
  box-shadow: inset 3px 0 #61afef;
}
.mochi-experiences-row-copy {
  min-width: 0;
}
.mochi-experiences-row-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mochi-experiences-row-meta > span:first-child {
  color: #f59e0b;
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.mochi-lifecycle {
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.5px !important;
}
.mochi-lifecycle--live {
  color: #98c379 !important;
  background: rgba(152, 195, 121, 0.13);
}
.mochi-lifecycle--scheduled {
  color: #61afef !important;
  background: rgba(97, 175, 239, 0.13);
}
.mochi-lifecycle--draft {
  color: #e5c07b !important;
  background: rgba(229, 192, 123, 0.13);
}
.mochi-lifecycle--expired, .mochi-lifecycle--archived {
  color: #e06c75 !important;
  background: rgba(224, 108, 117, 0.13);
}
.mochi-experiences-row strong, .mochi-experiences-empty strong {
  display: block;
  color: #fff;
  margin: 5px 0;
}
.mochi-experiences-row p, .mochi-experiences-empty {
  color: #9aa4ae;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}
.mochi-experiences-row small {
  display: block;
  color: #7f848e;
  margin-top: 8px;
}
.mochi-experiences-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}
.mochi-experiences-actions button,
.mochi-experiences-row button,
.mochi-modal-head button,
.mochi-primary-button {
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  background: #2d2d2d;
  color: #e0e0e0;
  padding: 9px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.mochi-experiences-actions button:hover,
.mochi-experiences-row button:hover,
.mochi-modal-head button:hover {
  border-color: #61afef;
  background: #263847;
}
.mochi-experiences-actions button:disabled {
  color: #7f848e;
  cursor: wait;
}
.mochi-modal[hidden] {
  display: none;
}
.mochi-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px;
  overflow: auto;
}
.mochi-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(4px);
}
.mochi-modal-panel {
  position: relative;
  width: min(1060px, 100%);
  max-height: calc(100vh - 64px);
  overflow: auto;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.mochi-experiences-editor {
  display: grid;
  gap: 16px;
}
.mochi-experiences-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mochi-experiences-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mochi-experiences-form label > span {
  color: #7f848e;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.mochi-experiences-form input, .mochi-experiences-form select, .mochi-experiences-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #3d3d3d;
  border-radius: 8px;
  background: #151515;
  color: #e0e0e0;
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
}
.mochi-experiences-form textarea {
  min-height: 260px;
  resize: vertical;
  font-family: "JetBrains Mono", Monaco, Consolas, monospace;
  line-height: 1.45;
}
.mochi-experiences-wide, .mochi-modal-actions {
  grid-column: 1/-1;
}
.mochi-publish-state {
  grid-column: 1/-1;
  color: #98c379;
  background: rgba(152, 195, 121, 0.1);
  border-left: 3px solid #98c379;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
}
.mochi-modal [hidden] {
  display: none !important;
}
.mochi-modal[data-mode="view"] .mochi-experiences-form input:disabled,
.mochi-modal[data-mode="view"] .mochi-experiences-form select:disabled,
.mochi-modal[data-mode="view"] .mochi-experiences-form textarea:disabled {
  opacity: 1;
  color: #e0e0e0;
  border-color: #333;
}
.mochi-control { border: 1px solid #343434; border-radius: 14px; background: #202020; overflow: hidden; }
.mochi-control-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, 2vw, 22px); cursor: pointer; list-style: none; }
.mochi-control-summary::-webkit-details-marker { display: none; }
.mochi-control-summary h3 { color: #fff; margin: 0 0 5px; font-size: 19px; }
.mochi-control-summary p { color: #9aa4ae; margin: 0; font-size: 13px; line-height: 1.5; }
.mochi-control-summary-action { flex: 0 0 auto; color: #61afef; border: 1px solid rgba(97, 175, 239, .38); border-radius: 999px; padding: 8px 11px; font-size: 11px; font-weight: 800; }
.mochi-control-summary-action b { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.mochi-control[open] .mochi-control-summary { border-bottom: 1px solid #343434; background: #1c2227; }
.mochi-control[open] .mochi-control-summary-action b { transform: rotate(180deg); }
.mochi-control-body { padding: clamp(14px, 2vw, 22px); }
.mochi-control-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mochi-control-toolbar strong { display: block; color: #fff; font-size: 14px; }
.mochi-control-toolbar span { display: block; color: #9aa4ae; margin-top: 4px; font-size: 12px; }
.mochi-control-toolbar code { color: #e5c07b; font-family: "JetBrains Mono", monospace; font-size: 11px; }
.mochi-control-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mochi-control-grid > section { background: #171717; border: 1px solid #333; border-radius: 10px; padding: 15px; }
.mochi-control-grid h4 { color: #fff; margin: 0 0 5px; font-size: 14px; }
.mochi-control-grid section > p { color: #7f848e; margin: 0 0 12px; font-size: 12px; }
.mochi-control-load, .mochi-control-fields { display: grid; gap: 8px; }
.mochi-control-load { grid-template-columns: minmax(180px, 1fr) auto; }
.mochi-control input, .mochi-control select, .mochi-control textarea, .mochi-control button { border: 1px solid #3d3d3d; border-radius: 8px; background: #151515; color: #e0e0e0; padding: 9px 10px; font: inherit; font-size: 12px; }
.mochi-control button { cursor: pointer; font-weight: 800; }
.mochi-control button:hover { border-color: #61afef; background: #263847; }
.mochi-control textarea { min-height: 84px; resize: vertical; }
.mochi-control pre { white-space: pre-wrap; overflow: auto; color: #c8d0d8; font: 11px/1.5 "JetBrains Mono", monospace; }
.mochi-control-status { color: #98c379; margin: 0 0 12px; font-size: 12px; }
.mochi-control-status[data-tone="error"] { color: #e06c75; }
.mochi-control-list button, .mochi-control-releases article { display: grid; width: 100%; text-align: left; gap: 3px; }
.mochi-control-releases article { box-sizing: border-box; padding: 10px; border-left: 3px solid #61afef; background: #1c2227; border-radius: 6px; margin-top: 8px; }
@media (max-width: 1120px) {
  .mochi-experiences-workbench {
    grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr);
  }
  .mochi-experiences-row {
    flex-direction: column;
  }
  .mochi-experiences-row-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 900px) {
  .mochi-experiences-stats, .mochi-experiences-workbench, .mochi-experiences-form {
    grid-template-columns: 1fr;
  }
  .mochi-experiences-preview-shell {
    position: static;
  }
  .mochi-modal {
    padding: 12px;
  }
  .mochi-modal-panel {
    max-height: calc(100vh - 24px);
  }
  .mochi-preview-actions {
    justify-content: flex-start;
  }
  .mochi-control-grid { grid-template-columns: 1fr; }
  .mochi-control-toolbar { align-items: flex-start; flex-direction: column; }
  .mochi-control-load { width: 100%; }
}
@media (max-width: 560px) {
  .mochi-experiences-page { gap: 12px; padding: 10px 10px 28px; }
  .mochi-experiences-header { gap: 14px; padding: 18px; }
  .mochi-experiences-header h2 { font-size: 31px; }
  .mochi-experiences-header-actions { width: 100%; }
  .mochi-experiences-state, .mochi-primary-button { flex: 1 1 140px; }
  .mochi-experiences-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .mochi-experiences-stats > div:last-child { grid-column: 1 / -1; }
  .mochi-experiences-library, .mochi-experiences-preview-shell { padding: 15px; }
  .mochi-experiences-library-head, .mochi-experiences-preview-head, .mochi-modal-head { flex-direction: column; }
  .mochi-experiences-actions, .mochi-preview-actions { width: 100%; justify-content: flex-start; }
  .mochi-experiences-actions button, .mochi-preview-actions button { flex: 1 1 auto; min-height: 42px; }
  .mochi-experiences-row { padding: 13px; }
  .mochi-experiences-row-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .mochi-experiences-row-actions button { min-height: 40px; padding: 8px 5px; font-size: 11px; }
  .mochi-experiences-preview { min-height: 390px; padding: 8px; }
  .mochi-control-summary { align-items: flex-start; flex-direction: column; gap: 10px; }
  .mochi-control-summary-action { width: 100%; box-sizing: border-box; }
  .mochi-control-load { grid-template-columns: 1fr; }
  .mochi-control-load button { min-height: 42px; }
  .mochi-modal { padding: 0; align-items: flex-end; }
  .mochi-modal-panel { width: 100%; max-height: calc(100vh - 8px); border-radius: 16px 16px 0 0; }
}
