.moments-mounted > .tool-titlebar,
.moments-mounted .tool-titlebar + .timestamp-grid {
  display: none;
}

.moments-workbench {
  width: min(100% - 48px, 1440px) !important;
  margin: 34px auto 46px !important;
  position: relative;
  z-index: 2;
}

.moments-page {
  overflow: auto !important;
}

.moments-page .home-footer {
  position: relative;
  z-index: 2;
}

.moments-titlebar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.moments-titlebar span {
  display: inline-flex;
  height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 11px;
  color: #0d7a68;
  background: #e8fbf5;
  font-size: 12px;
  font-weight: 760;
}

.moments-titlebar h1 {
  margin: 12px 0 8px;
  color: #071230;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.08;
  letter-spacing: 0;
}

.moments-titlebar p {
  max-width: 820px;
  margin: 0;
  color: #607399;
  font-size: 15px;
  line-height: 1.7;
}

.moments-badge {
  display: grid;
  min-width: 128px;
  min-height: 82px;
  place-items: center;
  border: 1px solid rgba(190, 224, 215, 0.82);
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #f0fff9);
  box-shadow: 0 18px 48px rgba(22, 128, 112, 0.1);
}

.moments-badge b {
  color: #0d9c82;
  font-size: 30px;
  line-height: 1;
}

.moments-badge small {
  color: #6b7d9e;
  font-size: 12px;
  font-weight: 720;
}

.moments-shell {
  display: grid;
  grid-template-columns: minmax(440px, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  align-items: start;
}

.moments-panel {
  overflow: hidden;
  border: 1px solid rgba(201, 214, 238, 0.86);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 60px rgba(31, 76, 154, 0.1);
}

.moments-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(222, 230, 244, 0.9);
  background: linear-gradient(180deg, #fff, #f4fffb);
}

.moments-panel-head h2 {
  margin: 0;
  color: #081631;
  font-size: 18px;
}

.moments-panel-head span {
  color: #66799e;
  font-size: 13px;
  font-weight: 700;
}

.moments-body,
.moments-result {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.moments-grid-form {
  display: grid;
  gap: 14px;
}

.moments-grid-form.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.moments-field {
  display: grid;
  gap: 7px;
  color: #405b88;
  font-size: 13px;
  font-weight: 760;
}

.moments-field.wide {
  grid-column: 1 / -1;
}

.moments-field input,
.moments-field select,
.moments-field textarea {
  width: 100%;
  border: 1px solid #bed6e4;
  border-radius: 12px;
  outline: 0;
  color: #081631;
  background: #fff;
  font: inherit;
  font-weight: 520;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.moments-field input,
.moments-field select {
  height: 40px;
  padding: 0 12px;
}

.moments-field textarea {
  min-height: 112px;
  padding: 13px 14px;
  line-height: 1.65;
  resize: vertical;
}

.moments-field input:focus,
.moments-field select:focus,
.moments-field textarea:focus {
  border-color: #0d9c82;
  box-shadow: 0 0 0 4px rgba(13, 156, 130, 0.11);
}

.moments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.moments-btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 15px;
  color: #34517f;
  background: #edf6fb;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.moments-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(22, 128, 112, 0.13);
}

.moments-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, #1d72ff, #15b79f);
  box-shadow: 0 14px 34px rgba(21, 183, 159, 0.22);
}

.moments-btn:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
  box-shadow: none;
}

.moments-empty {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 28px;
  color: #7485a8;
  text-align: center;
}

.moments-empty strong {
  display: block;
  margin-bottom: 8px;
  color: #081631;
  font-size: 20px;
}

.moments-strategy,
.moments-section {
  border: 1px solid rgba(207, 219, 243, 0.74);
  border-radius: 16px;
  background: #fff;
}

.moments-strategy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  background: linear-gradient(135deg, #fff, #f1fff9);
}

.moments-strategy span {
  color: #0d9c82;
  font-size: 12px;
  font-weight: 800;
}

.moments-strategy h2 {
  margin: 7px 0 8px;
  color: #071230;
  font-size: 22px;
}

.moments-strategy p {
  margin: 0;
  color: #526589;
  font-size: 13px;
  line-height: 1.7;
}

.moments-source {
  display: grid;
  flex: 0 0 auto;
  width: 86px;
  height: 70px;
  place-items: center;
  border-radius: 16px;
  color: #0d9c82;
  background: #e8fbf5;
}

.moments-source b {
  font-size: 20px;
}

.moments-source small {
  color: #607399;
  font-size: 12px;
  font-weight: 760;
}

.moments-notice {
  display: block;
  margin-top: 10px;
  color: #8a6a16;
  font-size: 12px;
  line-height: 1.6;
}

.moments-section {
  padding: 16px;
}

.moments-section h3 {
  margin: 0 0 12px;
  color: #081631;
  font-size: 14px;
  font-weight: 820;
}

.moments-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #506589;
  font-size: 13px;
  line-height: 1.6;
}

.moments-copy-list {
  display: grid;
  gap: 13px;
}

.moments-copy-card {
  overflow: hidden;
  border: 1px solid rgba(211, 223, 240, 0.9);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.moments-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(222, 230, 244, 0.82);
}

.moments-card-head span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, #1d72ff, #15b79f);
  font-size: 12px;
  font-weight: 900;
}

.moments-card-head strong {
  flex: 1;
  color: #081631;
  font-size: 14px;
}

.moments-card-head button {
  min-height: 30px;
  border: 0;
  border-radius: 9px;
  padding: 0 10px;
  color: #0d9c82;
  background: #e8fbf5;
  font-size: 12px;
  font-weight: 760;
}

.moments-copy-card pre {
  margin: 0;
  padding: 16px 16px 14px;
  color: #263a5f;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.82;
  white-space: pre-wrap;
}

.moments-card-meta {
  display: grid;
  gap: 7px;
  padding: 0 16px 16px;
}

.moments-card-meta p {
  margin: 0;
  color: #607399;
  font-size: 12px;
  line-height: 1.55;
}

.moments-card-meta b {
  margin-right: 8px;
  color: #162b54;
}

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

.moments-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  padding-left: 0 !important;
  list-style: none;
}

.moments-tags li {
  border-radius: 999px;
  padding: 6px 10px;
  color: #0d7a68;
  background: #e8fbf5;
  font-size: 12px;
  font-weight: 720;
}

.moments-toast {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 90;
  padding: 12px 16px;
  border-radius: 14px;
  color: #fff;
  background: #10224a;
  box-shadow: 0 18px 42px rgba(17, 35, 74, 0.22);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.moments-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  .moments-workbench {
    width: min(100% - 32px, 960px) !important;
  }

  .moments-shell,
  .moments-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .moments-titlebar,
  .moments-grid-form.two,
  .moments-strategy {
    display: grid;
    grid-template-columns: 1fr;
  }

  .moments-badge {
    min-height: 70px;
  }
}
