/* Mono Peak search home — persistent query rail + live result canvas. */
.mp-home {
  --mp-ink: #f5f1e8;
  --mp-muted: rgba(232, 226, 214, 0.66);
  --mp-faint: rgba(232, 226, 214, 0.42);
  --mp-line: rgba(222, 177, 105, 0.16);
  --mp-line-strong: rgba(222, 177, 105, 0.3);
  --mp-copper: #dca968;
  --mp-coral: #e0715d;
  --mp-teal: #63c5b5;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
  color: var(--mp-ink);
  background:
    radial-gradient(circle at 88% 9%, rgba(224, 113, 93, 0.13), transparent 27rem),
    radial-gradient(circle at 14% 88%, rgba(99, 197, 181, 0.08), transparent 30rem),
    linear-gradient(145deg, #08121b 0%, #0b1722 48%, #101b27 100%);
  position: relative;
  isolation: isolate;
}

.mp-home::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.27;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.mp-home button,
.mp-home input { font: inherit; }

.mp-homebar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 clamp(18px, 3.4vw, 54px);
  border-bottom: 1px solid var(--mp-line);
  background: rgba(8, 18, 27, 0.72);
  backdrop-filter: blur(18px);
  position: relative;
  z-index: 5;
}

.mp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--mp-ink);
  border: 0;
  background: none;
  cursor: pointer;
  padding: 5px;
}

.mp-brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--mp-line-strong);
  box-shadow: 0 0 24px rgba(220, 169, 104, 0.13);
}

.mp-brand-copy { text-align: start; line-height: 1.1; }
.mp-brand-name { display: block; font-size: 17px; font-weight: 720; letter-spacing: 0.04em; }
.mp-brand-note { display: block; margin-top: 5px; font-size: 10px; color: var(--mp-faint); letter-spacing: 0.08em; }

.mp-home-actions { display: flex; align-items: center; gap: 8px; }
.mp-home-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--mp-muted);
  cursor: pointer;
  transition: 160ms ease;
}
.mp-home-action:hover,
.mp-home-action:focus-visible {
  color: var(--mp-ink);
  border-color: var(--mp-line);
  background: rgba(255, 255, 255, 0.035);
  outline: none;
}
.mp-home-action.primary {
  color: #14202a;
  background: linear-gradient(135deg, #f0c486, var(--mp-copper));
  border-color: rgba(255, 232, 191, 0.5);
  font-weight: 720;
  box-shadow: 0 9px 26px rgba(220, 169, 104, 0.12);
}
.mp-home-action.primary:hover { color: #07131c; transform: translateY(-1px); }
.mp-action-icon { width: 17px; height: 17px; display: inline-flex; }

.mp-workspace {
  height: calc(100vh - 76px);
  height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  direction: ltr;
  overflow: hidden;
}

.mp-search-rail,
.mp-result-canvas { direction: rtl; }

.mp-search-rail {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  overflow-y: auto;
  padding: clamp(28px, 5vh, 58px) clamp(24px, 3.2vw, 46px) 34px;
  border-inline-start: 1px solid var(--mp-line);
  background: rgba(10, 22, 32, 0.76);
  backdrop-filter: blur(22px);
}

.mp-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--mp-copper);
  font-size: 11px;
  font-weight: 720;
  letter-spacing: 0.08em;
  margin-bottom: 17px;
}
.mp-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

.mp-search-title {
  max-width: 350px;
  font-size: clamp(31px, 3.1vw, 48px);
  line-height: 1.16;
  font-weight: 740;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
}
.mp-search-title em { color: var(--mp-copper); font-style: normal; }
.mp-search-intro { max-width: 350px; color: var(--mp-muted); font-size: 14px; line-height: 1.85; margin-bottom: 28px; }

.mp-search-form { position: relative; }
.mp-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  min-height: 58px;
  border: 1px solid var(--mp-line-strong);
  border-radius: 17px;
  background: rgba(245, 241, 232, 0.065);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025), 0 18px 50px rgba(0, 0, 0, 0.17);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
  overflow: hidden;
}
.mp-search-box:focus-within {
  border-color: rgba(220, 169, 104, 0.62);
  background: rgba(245, 241, 232, 0.085);
  box-shadow: 0 0 0 4px rgba(220, 169, 104, 0.08), 0 22px 54px rgba(0, 0, 0, 0.2);
}
.mp-query {
  width: 100%;
  height: 56px;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
  color: var(--mp-ink);
  font-size: 16px;
}
.mp-query::placeholder { color: var(--mp-faint); }
.mp-submit {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  margin-inline-end: 6px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: #13202a;
  background: linear-gradient(135deg, #f1c486, var(--mp-copper));
  transition: transform 150ms ease, filter 150ms ease;
}
.mp-submit:hover { transform: scale(1.045); filter: brightness(1.06); }
.mp-submit svg { width: 19px; height: 19px; }

.mp-scopes { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.mp-scope {
  border: 1px solid var(--mp-line);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--mp-faint);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  font-size: 11px;
  transition: 150ms ease;
}
.mp-scope:hover { color: var(--mp-ink); border-color: var(--mp-line-strong); }
.mp-scope.active { color: #13202a; background: var(--mp-copper); border-color: var(--mp-copper); font-weight: 740; }

.mp-suggestions { margin-top: 34px; }
.mp-section-label { color: var(--mp-faint); font-size: 10px; font-weight: 720; letter-spacing: 0.08em; margin-bottom: 12px; }
.mp-suggestion-list { display: flex; flex-direction: column; gap: 6px; }
.mp-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid rgba(222, 177, 105, 0.09);
  background: none;
  color: var(--mp-muted);
  text-align: start;
  cursor: pointer;
}
.mp-suggestion:hover { color: var(--mp-ink); }
.mp-suggestion svg { width: 15px; color: var(--mp-copper); opacity: 0.76; }

.mp-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 32px;
  padding-top: 19px;
  border-top: 1px solid var(--mp-line);
  color: var(--mp-faint);
  font-size: 11px;
  line-height: 1.65;
}
.mp-privacy-note svg { flex: 0 0 auto; width: 15px; margin-top: 2px; color: var(--mp-teal); }

.mp-result-canvas {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow-y: auto;
  padding: clamp(24px, 4vw, 58px);
  position: relative;
}

.mp-result-canvas::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  left: -110px;
  top: -120px;
  border: 1px solid rgba(99, 197, 181, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(99, 197, 181, 0.018), 0 0 0 108px rgba(99, 197, 181, 0.012);
  pointer-events: none;
}

.mp-result-inner { max-width: 880px; margin: 0 auto; position: relative; z-index: 1; }
.mp-result-meta { min-height: 31px; display: flex; justify-content: space-between; gap: 18px; align-items: center; color: var(--mp-faint); font-size: 11px; margin-bottom: 20px; }
.mp-result-meta strong { color: var(--mp-copper); font-weight: 720; }

.mp-welcome {
  min-height: calc(100vh - 210px);
  min-height: calc(100dvh - 210px);
  display: grid;
  align-content: center;
  padding: 20px 0 54px;
}
.mp-welcome-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid var(--mp-line-strong);
  border-radius: 19px;
  color: var(--mp-copper);
  background: linear-gradient(145deg, rgba(220, 169, 104, 0.1), rgba(224, 113, 93, 0.04));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  margin-bottom: 25px;
}
.mp-welcome-mark svg { width: 29px; height: 29px; }
.mp-welcome h2 { max-width: 620px; font-size: clamp(27px, 3.2vw, 45px); line-height: 1.3; letter-spacing: -0.035em; margin-bottom: 14px; }
.mp-welcome > p { max-width: 620px; color: var(--mp-muted); font-size: 15px; line-height: 1.9; }

.mp-capabilities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin-top: 34px; }
.mp-capability {
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
}
.mp-capability-icon { color: var(--mp-copper); width: 19px; height: 19px; margin-bottom: 19px; }
.mp-capability h3 { font-size: 13px; margin-bottom: 7px; }
.mp-capability p { color: var(--mp-faint); font-size: 11px; line-height: 1.6; }

.mp-results-head { margin-bottom: 25px; }
.mp-results-kicker { color: var(--mp-copper); font-size: 11px; margin-bottom: 9px; }
.mp-results-head h2 { font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.mp-results-head p { color: var(--mp-muted); margin-top: 9px; font-size: 13px; }

.mp-results-list { display: grid; gap: 12px; }
.mp-result-card {
  width: 100%;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--mp-line);
  border-radius: 18px;
  color: var(--mp-ink);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.043), rgba(255, 255, 255, 0.018));
  text-align: start;
  cursor: pointer;
  transition: 170ms ease;
  text-decoration: none;
}
.mp-result-card:hover,
.mp-result-card:focus-visible {
  border-color: var(--mp-line-strong);
  background: linear-gradient(145deg, rgba(220, 169, 104, 0.08), rgba(255, 255, 255, 0.025));
  transform: translateY(-2px);
  outline: none;
}
.mp-result-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--mp-copper); background: rgba(220, 169, 104, 0.09); border: 1px solid rgba(220, 169, 104, 0.12); }
.mp-result-icon svg { width: 22px; height: 22px; }
.mp-result-copy { min-width: 0; }
.mp-result-type { display: block; color: var(--mp-faint); font-size: 10px; margin-bottom: 3px; }
.mp-result-title { display: block; font-size: 16px; font-weight: 720; margin-bottom: 4px; }
.mp-result-desc { display: block; color: var(--mp-muted); font-size: 12px; line-height: 1.7; }
.mp-result-host { display: block; direction: ltr; text-align: start; color: var(--mp-teal); font-size: 10px; margin-top: 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-result-arrow { color: var(--mp-copper); font-size: 20px; transform: rotate(180deg); }

.mp-search-notice {
  margin: -8px 0 18px;
  padding: 11px 14px;
  border: 1px solid rgba(224, 113, 93, 0.25);
  border-radius: 12px;
  color: rgba(245, 241, 232, 0.76);
  background: rgba(224, 113, 93, 0.07);
  font-size: 11px;
  line-height: 1.7;
}

.mp-empty {
  min-height: 54vh;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed var(--mp-line-strong);
  border-radius: 24px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.016);
}
.mp-empty-icon { width: 58px; height: 58px; margin: 0 auto 18px; display: grid; place-items: center; color: var(--mp-copper); border: 1px solid var(--mp-line); border-radius: 18px; }
.mp-empty-icon svg { width: 26px; height: 26px; }
.mp-empty h2 { font-size: 22px; margin-bottom: 8px; }
.mp-empty p { max-width: 430px; color: var(--mp-muted); font-size: 13px; line-height: 1.8; }

.mp-loading { min-height: 55vh; display: grid; place-items: center; color: var(--mp-muted); }
.mp-loading-ring { width: 37px; height: 37px; border: 2px solid var(--mp-line); border-top-color: var(--mp-copper); border-radius: 50%; animation: mpSpin 650ms linear infinite; margin: 0 auto 13px; }
@keyframes mpSpin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .mp-home { overflow-y: auto; }
  .mp-homebar { position: sticky; top: 0; height: 68px; }
  .mp-brand-note, .mp-action-label.optional { display: none; }
  .mp-workspace {
    height: auto;
    min-height: calc(100dvh - 68px);
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    overflow: visible;
  }
  .mp-search-rail { grid-column: 1; grid-row: 1; overflow: visible; border-inline-start: 0; border-bottom: 1px solid var(--mp-line); padding: 34px 22px 28px; }
  .mp-search-title, .mp-search-intro { max-width: 620px; }
  .mp-search-title { font-size: clamp(29px, 8vw, 42px); }
  .mp-suggestions, .mp-privacy-note { display: none; }
  .mp-result-canvas { grid-column: 1; grid-row: 2; overflow: visible; padding: 28px 22px 44px; }
  .mp-welcome { min-height: auto; padding: 18px 0 24px; }
}

@media (max-width: 560px) {
  .mp-homebar { padding: 0 13px; }
  .mp-brand { gap: 8px; }
  .mp-brand img { width: 34px; height: 34px; }
  .mp-brand-name { font-size: 14px; }
  .mp-home-action { padding: 8px 10px; }
  .mp-home-action:not(.primary) .mp-action-label { display: none; }
  .mp-home-action.primary .mp-action-icon { display: none; }
  .mp-search-rail { padding: 28px 16px 24px; }
  .mp-result-canvas { padding: 24px 16px 38px; }
  .mp-capabilities { grid-template-columns: 1fr; }
  .mp-capability { min-height: 104px; }
  .mp-result-card { grid-template-columns: 43px minmax(0, 1fr); padding: 15px; }
  .mp-result-icon { width: 43px; height: 43px; }
  .mp-result-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-home *, .mp-home *::before, .mp-home *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
