.sc-us-root {
  --sun-purple: #4A1A5C;
  --sun-orange: #F59222;
  --sun-yellow: #FFD204;
  --sun-lavender: #8A6B95;
  --ink: #1b1b1b;
  --muted: #6d6670;
  --line: #e5e1e7;
  position: sticky;
  top: 0;
  z-index: 9997;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(32,24,35,.05);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
}

body.admin-bar .sc-us-root {
  top: 32px;
}

.sc-us-shell {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 6px 14px;
  display: grid;
  grid-template-columns: 150px minmax(320px, 1fr) 74px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
}

.sc-us-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
}

.sc-us-sun {
  font-size: 23px;
  line-height: 1;
  color: var(--sun-yellow);
  flex: 0 0 auto;
}

.sc-us-brand strong {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1;
  letter-spacing: -.15px;
  white-space: nowrap;
}

.sc-us-search {
  position: relative;
  min-width: 0;
}

.sc-us-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-52%);
  font-size: 19px;
  color: #596577;
  pointer-events: none;
}

.sc-us-input {
  width: 100%;
  height: 36px;
  border: 1px solid #d4d9e2;
  border-radius: 10px;
  padding: 0 36px 0 38px;
  font: inherit;
  font-size: 14px;
  line-height: 36px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25,35,48,.04);
}

.sc-us-input::placeholder {
  color: #6d7280;
  opacity: 1;
}

.sc-us-input:focus {
  outline: 2px solid rgba(255,210,4,.75);
  outline-offset: 1px;
  border-color: #c8b856;
}

.sc-us-clear {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 17px;
  line-height: 28px;
  padding: 0;
}

.sc-us-clear:hover {
  background: #f4f2f5;
}

.sc-us-shortcut {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 11px;
  color: #5f5963;
  white-space: nowrap;
}

.sc-us-shortcut kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid #ddd8df;
  border-radius: 5px;
  background: #faf9fb;
  color: var(--sun-purple);
  font: inherit;
  font-weight: 800;
}

.sc-us-panel {
  display: none;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 49px;
  width: min(900px, calc(100vw - 28px));
  max-height: 68vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(31,24,34,.18);
}

.sc-us-root.is-open .sc-us-panel {
  display: block;
}

.sc-us-status {
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
}

.sc-us-group-title {
  padding: 6px 10px;
  background: #f7f4f8;
  color: var(--sun-purple);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.sc-us-result {
  width: 100%;
  display: grid;
  grid-template-columns: 68px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-top: 1px solid #eeeaf0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.sc-us-result:hover,
.sc-us-result:focus {
  background: #fff9e6;
  outline: none;
}

.sc-us-type {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sun-lavender);
}

.sc-us-title {
  font-size: 12px;
  font-weight: 800;
}

.sc-us-sub,
.sc-us-meta {
  font-size: 10px;
  color: var(--muted);
}

.sc-us-meta {
  text-align: right;
}

.sc-us-empty {
  padding: 10px 12px;
}

.sc-us-add {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 7px;
  background: var(--sun-purple);
  color: #fff;
  padding: 7px 11px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sc-us-form {
  padding: 11px;
  border-top: 1px solid var(--line);
  background: #fbfafc;
}

.sc-us-form h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--sun-purple);
}

.sc-us-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.sc-us-field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sc-us-field label {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
}

.sc-us-field input,
.sc-us-field select {
  min-width: 0;
  height: 31px;
  border: 1px solid #d5ced8;
  border-radius: 5px;
  padding: 0 7px;
  background: #fff;
  font: inherit;
  font-size: 11px;
}

.sc-us-wide {
  grid-column: span 2;
}

.sc-us-routing {
  margin-top: 7px;
}

.sc-us-routing summary {
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  color: var(--sun-purple);
}

.sc-us-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 8px;
}

.sc-us-save,
.sc-us-cancel {
  border: 0;
  border-radius: 5px;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.sc-us-save {
  background: var(--sun-orange);
  color: #fff;
}

.sc-us-cancel {
  background: #eee9f0;
  color: var(--sun-purple);
}

.sc-us-message {
  font-size: 11px;
  color: var(--muted);
}

.sc-us-error {
  color: #9f2525;
}

.sc-us-success {
  color: #176333;
  font-weight: 700;
}

.sc-us-legacy-search-hidden {
  display: none !important;
}

.sc-us-enhanced .site-content,
.sc-us-enhanced main {
  scroll-margin-top: 62px;
}

@media (max-width: 900px) {
  .sc-us-shell {
    grid-template-columns: 126px minmax(220px, 1fr) 38px;
    gap: 8px;
    padding: 6px 10px;
  }

  .sc-us-brand strong {
    font-size: 12px;
  }

  .sc-us-shortcut span {
    display: none;
  }
}

@media (max-width: 640px) {
  body.admin-bar .sc-us-root {
    top: 46px;
  }

  .sc-us-shell {
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    gap: 6px;
    padding: 5px 8px;
    min-height: 44px;
  }

  .sc-us-brand strong {
    display: none;
  }

  .sc-us-sun {
    font-size: 22px;
  }

  .sc-us-shortcut {
    justify-content: center;
  }

  .sc-us-input {
    height: 34px;
    line-height: 34px;
    font-size: 12px;
    padding-left: 34px;
  }

  .sc-us-panel {
    top: 45px;
  }

  .sc-us-result {
    grid-template-columns: 58px 1fr;
  }

  .sc-us-meta {
    display: none;
  }

  .sc-us-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
