/* A compact masthead keeps the tools, filters and results within reach. */
.radar-surface .radar-workspace > :is(.radar-page,.workspace-page) {
  max-width: none;
  min-width: 0;
}
.radar-surface .radar-workspace [hidden] { display: none !important; }
.rd-art-search   { --rd-art: url("icons/radar-search.jpg"); --rd-art-focus: 55% 53%; }
.rd-art-library  { --rd-art: url("icons/radar-library.jpg"); --rd-art-focus: 50% 45%; }
.rd-art-market   { --rd-art: url("icons/radar-markets.jpg"); --rd-art-focus: 50% 50%; }
.rd-art-briefs   { --rd-art: url("icons/radar-briefs.jpg"); --rd-art-focus: 50% 53%; }
.rd-art-clips    { --rd-art: url("icons/radar-clips.jpg"); --rd-art-focus: 50% 48%; }
.rd-art-channel  { --rd-art: url("icons/radar-channel.jpg"); --rd-art-focus: 50% 54%; }
.rd-art-team     { --rd-art: url("icons/radar-team.jpg"); --rd-art-focus: 45% 18%; }

.radar-surface .rd-page-lead {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-height: clamp(148px, 15vw, 205px);
  padding: clamp(24px,3.1vw,48px);
  border: 1px solid #34313b;
  border-radius: 16px;
  background: #19171e;
}
.rd-page-lead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 0 32%;
  background: var(--rd-art) var(--rd-art-focus,center) / cover no-repeat;
}
.rd-page-lead::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg,#19171e 30%,rgba(25,23,30,.88) 45%,rgba(25,23,30,.1) 82%);
}
.radar-surface .rd-page-lead h1, .radar-surface :is(.rd-plan-title,.rd-help-top) h1 {
  margin: 0;
  color: #fbfafc;
  font-size: clamp(34px,3.4vw,54px);
  line-height: 1.07;
  font-weight: 700;
  letter-spacing: -.05em;
}
.radar-surface .rd-page-lead p {
  max-width: min(54ch,57%);
  margin: 0;
  color: #e4dfe8;
  line-height: 1.5;
}
.radar-surface .rd-section-body {
  display: grid;
  min-width: 0;
  gap: 18px;
  margin-top: clamp(19px,2.2vw,30px);
}
.radar-surface .rd-section-grid, .rd-form-pair {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px;
}
.radar-surface .rd-panel, .radar-surface .rd-account #connection,
.radar-surface .rd-account #shared-results {
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: clamp(17px,2.2vw,31px);
  border: 1px solid #35333e;
  border-radius: 14px;
  background: #1a1921;
}
.radar-surface .rd-panel h2, .radar-surface .rd-account h2 {
  margin: 0 0 12px;
  color: #f4f1f7;
  font-size: clamp(19px,1.7vw,25px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.radar-surface .rd-panel p { color: #c3becb; line-height: 1.5; }
.radar-surface .rd-panel p:last-child { margin-bottom: 0; }
.radar-surface .rd-panel label { max-width: none; }
.radar-surface .rd-panel :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  width: 100%; min-width: 0; max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #45414e;
  border-radius: 8px;
  color: #f2eff6;
  background: #14131a;
  font: inherit;
}
.rd-panel :is(input,select,textarea):focus-visible,
.rd-section-body :is(a,summary,button):focus-visible, .rd-account :focus-visible {
  outline: 2px solid #caa8ff; outline-offset: 3px;
}
.radar-surface .rd-actions-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
}
.radar-surface .radar-workspace :is(.rd-primary,.rd-secondary),
.radar-surface #plano :is(.rd-primary,.rd-secondary):not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; gap: 8px; min-height: 40px; width: fit-content;
  max-width: 100%; margin: 0; padding: 9px 14px;
  border-radius: 9px; font: inherit; font-size: 14px; font-weight: 650;
  text-decoration: none; line-height: 1.35;
}
.radar-surface .radar-workspace .rd-primary, .radar-surface #plano .rd-primary:not([hidden]) {
  border: 1px solid #c9a4fa; background: #c2a0ef; color: #201329;
}
.radar-surface .radar-workspace .rd-secondary, .radar-surface #plano .rd-secondary:not([hidden]) {
  border: 1px solid #45424d; background: #26242d; color: #eee9f5;
}
.radar-surface .rd-primary:hover, .radar-surface .rd-secondary:hover { filter: brightness(1.1); }
.radar-surface .rd-primary:disabled, .radar-surface .rd-secondary:disabled { opacity: .55; cursor: default; }
.rd-glyph { display: block; flex: none; width: 20px; height: 20px; }
.rd-account-heading { display: flex; align-items: center; gap: 10px; }
.rd-account-heading .rd-glyph, .rd-benefits .rd-glyph { color: #c9a9f1; }
.radar-surface .rd-account-heading h2 { margin: 0; }
.rd-account .rd-state { min-width: 0; overflow-wrap: anywhere; }
.rd-account .rd-state:empty, #team-lists:empty { display: none; }
.radar-surface #team-form {
  display: grid;
  gap: 13px;
  max-width: 760px;
  margin: 20px 0 0;
  padding: 18px 0 0;
  border: 0; border-top: 1px solid var(--rd-line);
  border-radius: 0; background: none;
}
#team-form label { margin: 0; }
#team-form label :is(select,input) { display: block; margin-top: 5px; }
#team-form #grant-help { margin: 0; }
.rd-account .rd-plan-title,.rd-help-top { margin: 0 0 25px; }
.rd-account .rd-plan-title p,.rd-help-top p { margin: 7px 0 0; color: #beb9ca; }
.rd-plan-options { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 17px; }
.radar-surface .rd-pro-plan {
  border-color: #66527d;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #211c29;
}
.rd-pro-plan::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 166px; z-index: -1;
  background: linear-gradient(90deg,#211c29 30%,rgba(33,28,41,.22)),linear-gradient(0deg,#211c29 1%,transparent 68%),url("icons/radar-clips.jpg") right center / 66% auto no-repeat;
}
.radar-surface .rd-plan-price {
  margin: 29px 0 17px; color: #fff; font-weight: 690;
  font-size: clamp(30px,3.5vw,49px); line-height: 1; letter-spacing: -.05em;
}
.rd-plan-price small { display: inline; font-size: 15px; color: #cac1d4; letter-spacing: 0; }
.rd-benefits { display: grid; gap: 11px; list-style: none; margin: 0 0 22px; padding: 0; }
.rd-benefits li { display: flex; align-items: center; gap: 10px; }
.rd-benefits .rd-glyph { width: 17px; height: 17px; }
.rd-plan-footnote { font-size: 13px; }
.rd-price-content .rd-state { padding-top: 14px; border-top: 1px solid #47394e; }
.rd-help-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.rd-install-steps {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px;
  counter-reset: step; padding: 0; margin: 0 0 24px; list-style: none;
}
.rd-install-steps li {
  counter-increment: step; position: relative; display: flex; flex-direction: column;
  min-width: 0; border: 1px solid #37343e; border-radius: 13px; overflow: hidden;
  background: #1b1921;
}
.rd-install-steps li::before {
  content: counter(step); position: absolute; top: 13px; left: 13px;
  display: grid; place-items: center; width: 25px; height: 25px;
  border-radius: 50%; background: #211d29; color: #e5d5ff;
  border: 1px solid #52445e; font-size: 13px; font-weight: 650;
}
.rd-instruction-art {
  min-height: 105px; padding: 26px 16px 20px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(110deg,#25222c,#33273e); color: #e4d7f4;
}
.rd-art-archive .rd-glyph, .rd-art-folder .rd-glyph { width: 32px; height: 32px; }
.rd-instruction-art span { font-weight: 650; }
.rd-art-browser b { width: 27px; height: 16px; padding: 2px; background: #a777d3; border-radius: 20px; }
.rd-art-browser b::after { display: block; content: ""; width: 12px; height: 12px; margin-left: auto; border-radius: 100%; background: #fff; }
.radar-surface .rd-install-steps h2 { margin: 17px 16px 0; font-size: 18px; }
.radar-surface .rd-install-steps p { margin: 7px 16px 18px; color: #c3becb; }
.rd-help-details { max-width: 880px; }
.rd-help-details details { padding: 14px 0; border-top: 1px solid #35323c; }
.rd-help-details summary,.rd-section-body summary { cursor: pointer; font-weight: 620; }
@media (max-width: 760px) {
  .radar-surface .rd-page-lead { min-height: 141px; padding: 21px; }
  .rd-page-lead::before { left: 17%; }
  .rd-page-lead::after { background: linear-gradient(90deg,rgba(19,17,25,.96),rgba(19,17,25,.82) 48%,rgba(19,17,25,.35)); }
  .radar-surface .rd-page-lead p { max-width: 94%; }
  .radar-surface .rd-section-grid,.rd-form-pair,.rd-plan-options,.rd-install-steps { grid-template-columns: minmax(0,1fr); }
  .rd-install-steps li { display: grid; grid-template-columns: 100px minmax(0,1fr); }
  .rd-install-steps h2 { grid-column: 2; }
  .rd-install-steps .rd-instruction-art { grid-row: 1 / 3; flex-direction: column; padding: 38px 6px 15px; }
  .rd-install-steps li::before { top: 6px; left: 6px; width: 22px; height: 22px; }
}
