.nav2-hero {
  padding: 30px 0 26px;
  border-bottom: 1px solid #e2e6eb;
  background: #f7f8fa;
  color: #17263a;
}

.nav2-hero-inner,
.nav2-shell {
  max-width: 1320px;
}

.nav2-hero .eyebrow {
  margin: 0 0 5px;
  color: #9a7427;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.nav2-hero h1 {
  margin: 0;
  color: #142338;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.nav2-hero-subtitle {
  max-width: 800px;
  margin: 10px 0 0;
  color: #48576a;
  font-size: 0.96rem;
  line-height: 1.65;
}

.nav2-hero-note {
  max-width: 760px;
  margin: 2px 0 0;
  color: #7a8593;
  font-size: 0.79rem;
  line-height: 1.6;
}

.nav2-hero .yh-pwa-install-slot {
  min-height: 0;
  margin-top: 10px;
}

.nav2-page {
  padding: 26px 0 64px;
  background: #fff;
}

.nav2-shell {
  min-width: 0;
}

.nav2-loading {
  margin: 0;
  padding: 28px;
  border: 1px solid #e2e6eb;
  background: #fff;
  color: #657286;
  text-align: center;
}

.nav2-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.nav2-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
}

.nav2-sidebar-inner {
  padding-right: 15px;
  border-right: 1px solid #dde2e8;
}

.nav2-sidebar-inner > p {
  margin: 0 0 9px;
  padding: 0 10px;
  color: #8b96a3;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.nav2-sidebar nav {
  display: grid;
  gap: 2px;
}

.nav2-sidebar a {
  display: block;
  min-height: 38px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 3px 3px 0;
  color: #4a586a;
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 20px;
  text-decoration: none;
}

.nav2-sidebar a:hover,
.nav2-sidebar a:focus-visible {
  background: #f5f6f8;
  color: #17263a;
}

.nav2-sidebar a.active {
  border-left-color: #a47a28;
  background: #f4f5f7;
  color: #17263a;
  font-weight: 800;
}

.nav2-sidebar small {
  display: block;
  margin: 14px 0 0;
  padding: 12px 10px 0;
  border-top: 1px solid #edf0f3;
  color: #9099a5;
  font-size: 0.68rem;
  line-height: 1.55;
}

.nav2-content {
  min-width: 0;
}

.nav2-mobile-tabs {
  display: none;
}

.nav2-recent {
  margin: 0 0 26px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e6e9ed;
}

.nav2-recent[hidden],
.nav2-section[hidden] {
  display: none;
}

.nav2-recent-heading {
  display: flex;
  margin: 0 0 10px;
  align-items: baseline;
  justify-content: space-between;
}

.nav2-recent-heading h2 {
  margin: 0;
  color: #17263a;
  font-size: 0.92rem;
}

.nav2-recent-heading span {
  color: #8a95a2;
  font-size: 0.7rem;
}

.nav2-recent-list {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.nav2-recent-item {
  position: relative;
  min-width: 148px;
  max-width: 190px;
  flex: 1 0 148px;
  border: 1px solid #dfe4e9;
  border-radius: 4px;
  background: #fff;
}

.nav2-recent-item > a {
  display: flex;
  min-width: 0;
  min-height: 52px;
  padding: 9px 34px 9px 9px;
  color: #243449;
  text-decoration: none;
  align-items: center;
}

.nav2-recent-item:hover,
.nav2-recent-item:focus-within {
  border-color: #bda15f;
  background: #fcfbf8;
}

.nav2-recent-icon {
  position: relative;
  display: inline-flex;
  width: 27px;
  height: 27px;
  margin-right: 8px;
  border: 1px solid #e5dfd1;
  border-radius: 3px;
  background: #f8f5ed;
  color: #88661f;
  font-size: 0.65rem;
  font-weight: 800;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav2-recent-item b {
  min-width: 0;
  overflow: hidden;
  font-size: 0.77rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav2-section {
  scroll-margin-top: 102px;
  margin: 0 0 32px;
}

.nav2-section-heading {
  margin: 0 0 11px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e6eb;
}

.nav2-favorites-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.nav2-add-custom {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #233b57;
  border-radius: 3px;
  background: #fff;
  color: #233b57;
  cursor: pointer;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav2-add-custom:hover,
.nav2-add-custom:focus-visible {
  background: #f2f5f8;
}

.nav2-add-custom:disabled,
.nav2-favorite:disabled,
.nav2-favorite-tools button:disabled,
.nav2-merge-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.nav2-section-heading h2 {
  margin: 0;
  color: #15253a;
  font-size: 1.08rem;
  line-height: 1.35;
}

.nav2-section-heading p {
  margin: 3px 0 0;
  color: #768292;
  font-size: 0.75rem;
  line-height: 1.5;
}

.nav2-section-featured .nav2-section-heading h2 {
  color: #8d691f;
}

.nav2-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
  gap: 8px;
}

.nav2-section-featured .nav2-card-grid {
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
}

.nav2-card {
  position: relative;
  min-width: 0;
  min-height: 104px;
  overflow: hidden;
  border: 1px solid #dfe4e9;
  border-radius: 4px;
  background: #fff;
}

.nav2-card:hover,
.nav2-card:focus-within {
  border-color: #b89a56;
  background: #fcfbf8;
}

.nav2-card-link {
  display: flex;
  min-width: 0;
  min-height: 104px;
  padding: 13px 34px 11px 11px;
  color: inherit;
  text-decoration: none;
  align-items: flex-start;
}

.nav2-section-featured .nav2-card,
.nav2-section-featured .nav2-card-link {
  min-height: 112px;
}

.nav2-card-icon {
  position: relative;
  display: inline-flex;
  width: 31px;
  height: 31px;
  margin-right: 9px;
  border: 1px solid #e3ded2;
  border-radius: 4px;
  background: #f8f6f0;
  color: #86631e;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.nav2-card-icon img,
.nav2-recent-icon img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  object-fit: contain;
}

.nav2-card-icon img[hidden],
.nav2-recent-icon img[hidden] {
  display: none;
}

.nav2-card-copy {
  display: flex;
  min-width: 0;
  min-height: 78px;
  flex: 1;
  flex-direction: column;
}

.nav2-card-title-row {
  display: flex;
  min-width: 0;
  gap: 5px;
  padding-right: 2px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.nav2-card-title-row b {
  min-width: 0;
  color: #1d2e43;
  font-size: 0.81rem;
  line-height: 1.4;
}

.nav2-external {
  display: inline-flex;
  padding: 1px 4px;
  border: 1px solid #d8dde3;
  border-radius: 2px;
  color: #7d8793;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav2-badge {
  display: inline-flex;
  padding: 1px 4px;
  border: 1px solid #ddc98e;
  border-radius: 2px;
  background: #fbf7e9;
  color: #85631c;
  font-size: 0.56rem;
  font-weight: 700;
  line-height: 1.25;
}

.nav2-card-description {
  display: -webkit-box;
  margin-top: 5px;
  overflow: hidden;
  color: #707d8d;
  font-size: 0.69rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nav2-card-category {
  margin-top: auto;
  padding-top: 5px;
  color: #a07a2f;
  font-size: 0.61rem;
  font-weight: 700;
}

.nav2-favorite-card .nav2-card-link {
  padding-bottom: 34px;
}

.nav2-favorite-tools {
  position: absolute;
  z-index: 3;
  right: 7px;
  bottom: 6px;
  left: 7px;
  display: flex;
  min-width: 0;
  gap: 3px;
  justify-content: flex-end;
}

.nav2-favorite-tools button {
  min-width: 25px;
  min-height: 23px;
  padding: 0 6px;
  border: 1px solid #d9dee4;
  border-radius: 2px;
  background: #fff;
  color: #586577;
  cursor: pointer;
  font: inherit;
  font-size: 0.63rem;
  line-height: 1;
}

.nav2-favorite-tools button:hover:not(:disabled),
.nav2-favorite-tools button:focus-visible {
  border-color: #af934f;
  color: #76581c;
}

.nav2-favorite {
  position: absolute;
  z-index: 2;
  top: 3px;
  right: 2px;
  display: inline-flex;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #9a7427;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

.nav2-favorite:hover {
  background: #f3efe5;
}

.nav2-recent-favorite {
  top: 8px;
  right: 2px;
}

.nav2-empty {
  margin: 0;
  padding: 16px 18px;
  border: 1px dashed #ccd3db;
  border-radius: 3px;
  background: #fafbfc;
  color: #758191;
  font-size: 0.78rem;
  line-height: 1.6;
}

.nav2-merge-notice {
  display: flex;
  gap: 12px;
  margin: 0 0 10px;
  padding: 9px 11px;
  border: 1px solid #e3d6ad;
  border-radius: 3px;
  background: #fcfaf3;
  color: #5e5031;
  font-size: 0.73rem;
  line-height: 1.5;
  align-items: center;
  justify-content: space-between;
}

.nav2-merge-notice[hidden] {
  display: none;
}

.nav2-merge-actions {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.nav2-merge-actions button {
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #c8b378;
  border-radius: 2px;
  background: #fff;
  color: #70551e;
  cursor: pointer;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
}

.nav2-inline-message {
  margin: 0 0 10px;
  padding: 8px 10px;
  border-left: 3px solid #2f7c58;
  background: #f2f8f5;
  color: #316047;
  font-size: 0.72rem;
  line-height: 1.5;
}

.nav2-inline-message[hidden] {
  display: none;
}

.nav2-inline-message.is-error {
  border-left-color: #a84444;
  background: #fbf3f3;
  color: #853b3b;
}

.nav2-modal-backdrop {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: grid;
  overflow-y: auto;
  padding: 24px;
  background: rgba(13, 24, 38, 0.48);
  place-items: center;
}

.nav2-modal-backdrop[hidden] {
  display: none;
}

.nav2-modal-open {
  overflow: hidden;
}

.nav2-modal {
  width: min(440px, 100%);
  padding: 18px;
  border: 1px solid #d8dee5;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(17, 32, 50, 0.18);
}

.nav2-modal-heading {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  align-items: center;
  justify-content: space-between;
}

.nav2-modal-heading h2 {
  margin: 0;
  color: #17283d;
  font-size: 1rem;
}

.nav2-modal-heading button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: #f3f5f7;
  color: #536174;
  cursor: pointer;
  font: inherit;
  font-size: 1.2rem;
}

.nav2-modal form,
.nav2-modal label {
  display: grid;
  gap: 6px;
}

.nav2-modal form {
  gap: 12px;
}

.nav2-modal label span {
  color: #35455a;
  font-size: 0.74rem;
  font-weight: 700;
}

.nav2-modal input,
.nav2-modal textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #ccd3db;
  border-radius: 3px;
  background: #fff;
  color: #17283d;
  font: inherit;
  font-size: 0.8rem;
}

.nav2-modal input {
  min-height: 40px;
  padding: 0 10px;
}

.nav2-modal textarea {
  min-height: 72px;
  padding: 9px 10px;
  resize: vertical;
}

.nav2-modal input:focus,
.nav2-modal textarea:focus {
  border-color: #a07a2f;
  outline: 2px solid rgba(160, 122, 47, 0.15);
}

.nav2-form-error {
  margin: 0;
  color: #a13e3e;
  font-size: 0.72rem;
  line-height: 1.5;
}

.nav2-form-error[hidden] {
  display: none;
}

.nav2-modal-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}

.nav2-modal-actions button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 3px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 750;
}

.nav2-button-secondary {
  border: 1px solid #cfd6de;
  background: #fff;
  color: #536174;
}

.nav2-button-primary {
  border: 1px solid #203851;
  background: #203851;
  color: #fff;
}

.nav2-placeholder {
  display: flex;
  min-height: 88px;
  padding: 16px;
  border: 1px dashed #cfd6dd;
  border-radius: 4px;
  background: #fafbfc;
  align-items: center;
}

.nav2-placeholder-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  margin-right: 12px;
  border-radius: 4px;
  background: #172b42;
  color: #dbc17e;
  font-size: 0.78rem;
  font-weight: 800;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

.nav2-placeholder h3 {
  margin: 0 0 3px;
  color: #213247;
  font-size: 0.88rem;
}

.nav2-placeholder p {
  margin: 0;
  color: #758191;
  font-size: 0.71rem;
  line-height: 1.55;
}

.nav2-privacy-note {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid #edf0f3;
  color: #8a95a2;
  font-size: 0.68rem;
  line-height: 1.6;
}

.nav2-breadcrumb {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
  color: #7a8696;
  font-size: 0.8rem;
  align-items: center;
}

.nav2-breadcrumb a {
  color: #8c6922;
  text-decoration: none;
}

.nav2-breadcrumb b {
  color: #26374b;
}

.nav2-error {
  padding: 32px 24px;
  border: 1px solid #e0e5ea;
  background: #fff;
  text-align: center;
}

.nav2-error h2 {
  margin: 0 0 8px;
  color: #17263a;
}

.nav2-error p {
  margin: 0 0 18px;
  color: #687587;
}

.nav2-error a {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 3px;
  background: #172b42;
  color: #fff;
  text-decoration: none;
  align-items: center;
}

.nav2-sidebar a:focus-visible,
.nav2-mobile-tabs a:focus-visible,
.nav2-card-link:focus-visible,
.nav2-recent-item a:focus-visible,
.nav2-favorite:focus-visible,
.nav2-add-custom:focus-visible,
.nav2-favorite-tools button:focus-visible,
.nav2-merge-actions button:focus-visible,
.nav2-modal button:focus-visible,
.nav2-breadcrumb a:focus-visible,
.nav2-error a:focus-visible {
  outline: 2px solid rgba(166, 125, 40, 0.42);
  outline-offset: 2px;
}

@media (max-width: 1040px) {
  .nav2-layout {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
  }

  .nav2-card-grid,
  .nav2-section-featured .nav2-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
}

@media (max-width: 860px) {
  .nav2-page {
    padding-top: 0;
  }

  .nav2-mobile-tabs {
    position: sticky;
    z-index: 12;
    top: 76px;
    display: flex;
    gap: 0;
    margin: 0 -22px 22px;
    overflow-x: auto;
    padding: 0 14px;
    border-bottom: 1px solid #dfe4e9;
    background: rgba(255, 255, 255, 0.98);
    scrollbar-width: none;
  }

  .nav2-mobile-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav2-mobile-tabs a {
    display: inline-flex;
    min-width: max-content;
    min-height: 45px;
    padding: 0 12px;
    border-bottom: 2px solid transparent;
    color: #5c6878;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    align-items: center;
  }

  .nav2-mobile-tabs a.active {
    border-bottom-color: #a47a28;
    color: #18283c;
  }

  .nav2-layout {
    display: block;
  }

  .nav2-sidebar {
    display: none;
  }

  .nav2-section {
    scroll-margin-top: 132px;
  }
}

@media (max-width: 600px) {
  .nav2-hero {
    padding: 22px 0 18px;
  }

  .nav2-hero h1 {
    font-size: 1.75rem;
  }

  .nav2-hero-subtitle {
    margin-top: 7px;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .nav2-hero-note {
    font-size: 0.7rem;
  }

  .nav2-page {
    padding-bottom: 48px;
  }

  .nav2-mobile-tabs {
    margin-right: -22px;
    margin-bottom: 18px;
    margin-left: -22px;
  }

  .nav2-recent {
    margin-bottom: 22px;
    padding-bottom: 14px;
  }

  .nav2-recent-item {
    min-width: 138px;
    flex-basis: 138px;
  }

  .nav2-section {
    margin-bottom: 27px;
  }

  .nav2-section-heading {
    margin-bottom: 9px;
    padding-bottom: 7px;
  }

  .nav2-section-heading h2 {
    font-size: 1rem;
  }

  .nav2-favorites-heading {
    gap: 8px;
    align-items: flex-start;
  }

  .nav2-favorites-heading > div {
    min-width: 0;
  }

  .nav2-add-custom {
    min-height: 38px;
    padding: 0 9px;
  }

  .nav2-card-grid,
  .nav2-section-featured .nav2-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .nav2-card,
  .nav2-card-link,
  .nav2-section-featured .nav2-card,
  .nav2-section-featured .nav2-card-link {
    min-height: 118px;
  }

  .nav2-card-link {
    display: block;
    padding: 11px 32px 10px 10px;
  }

  .nav2-favorite-card .nav2-card-link {
    padding-bottom: 38px;
  }

  .nav2-card-icon {
    width: 29px;
    height: 29px;
    margin: 0 0 7px;
  }

  .nav2-card-copy {
    min-height: 65px;
  }

  .nav2-card-title-row b {
    font-size: 0.76rem;
  }

  .nav2-card-description {
    margin-top: 3px;
    font-size: 0.64rem;
    -webkit-line-clamp: 1;
  }

  .nav2-card-category {
    padding-top: 4px;
    font-size: 0.58rem;
  }

  .nav2-favorite {
    top: 1px;
    right: 0;
    width: 42px;
    height: 42px;
    font-size: 1.08rem;
  }

  .nav2-recent-favorite {
    top: 5px;
    width: 40px;
    height: 40px;
  }

  .nav2-placeholder {
    padding: 13px;
  }

  .nav2-placeholder-icon {
    width: 34px;
    height: 34px;
    margin-right: 10px;
  }

  .nav2-favorite-tools {
    right: 5px;
    bottom: 5px;
    left: 5px;
  }

  .nav2-favorite-tools button {
    min-width: 29px;
    min-height: 28px;
    padding: 0 5px;
  }

  .nav2-merge-notice {
    display: grid;
    gap: 7px;
  }

  .nav2-merge-actions {
    width: 100%;
  }

  .nav2-merge-actions button {
    min-height: 36px;
    flex: 1;
  }

  .nav2-modal-backdrop {
    padding: 14px;
    place-items: end center;
  }

  .nav2-modal {
    max-height: calc(100vh - 28px);
    overflow-y: auto;
    padding: 16px;
  }
}

@media (max-width: 390px) {
  .nav2-mobile-tabs a {
    padding: 0 10px;
  }

  .nav2-card-title-row b {
    font-size: 0.73rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav2-sidebar a,
  .nav2-mobile-tabs a,
  .nav2-card,
  .nav2-recent-item {
    scroll-behavior: auto;
  }
}
