@media screen {
  .qt-specialized-links {
    margin: 0 0 18px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
    font: 600 .85rem/1.4 system-ui, sans-serif;
  }
  .qt-specialized-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
  }
  .qt-specialized-links a { text-decoration: underline; text-underline-offset: .2em; }

  .tool-head .qt-tool-highlight {
    margin-top: 9px;
    border-inline-start: 3px solid var(--cat, currentColor);
    padding-inline-start: 9px;
    color: inherit;
    font-family: system-ui, sans-serif;
    font-size: clamp(12px, 2.7vw, 14px);
    line-height: 1.55;
  }

  html:not([lang="en"]) .qt-tool-highlight [lang="en"],
  html[lang="en"] .qt-tool-highlight [lang="ko"] {
    display: none;
  }

 .top .brand:has(.qt-brand-image:not([hidden])) > span:not(.qt-brand-window) {
  display: none;
 }

 .top .qt-brand-window {
  display: none;
 }

 .top .qt-brand-window:has(.qt-brand-image:not([hidden])) {
  display: block;
  position: relative;
  width: clamp(122px, 17vw, 198px);
  aspect-ratio: 1634 / 537;
  overflow: hidden;
 }

 /* Frame the wordmark inside the original 1672 × 941 artwork. */
 .top .qt-brand-image:not([hidden]) {
  display: block;
  position: absolute;
  inset-block-start: calc(-100% * 188 / 537);
  inset-inline-start: calc(-100% * 18 / 1634);
  width: calc(100% * 1672 / 1634);
  height: auto;
 }

 html[data-qt-fixed-header] body {
  padding-block-start: var(--qt-header-height);
 }

 html[data-qt-fixed-header] body > header.top {
  position: fixed;
  inset: 0 0 auto;
 }

 html[data-qt-fixed-footer] {
  scroll-padding-block-end: calc(var(--qt-footer-height) + 8px);
 }

 html[data-qt-fixed-footer] body {
  padding-block-end: var(--qt-footer-height);
 }

 html[data-qt-fixed-footer] body > footer.footer .footer-links {
  position: fixed;
  inset: auto 0 0;
  z-index: 20;
  justify-content: center;
  align-items: center;
  gap: 0 clamp(9px, 2vw, 24px);
  padding: 2px 10px calc(2px + env(safe-area-inset-bottom, 0px));
  border-block-start: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  box-shadow: 0 -2px 10px #15264212;
 }

 html[data-qt-fixed-footer] .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
 }

 .layout :target:not(.directory, .directory-group) {
  scroll-margin-block-start: var(--qt-header-clearance, 132px);
 }

 .top .qt-pro-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 36px;
  padding-inline: 8px;
  border-radius: 8px;
  background: #ffda50;
  color: #203557;
  font-size: .8rem;
  font-weight: 800;
  flex: none;
 }

 .top .qt-pro-compact:hover {
  background: #ffe690;
 }

 .qt-pro-rail {
  display: none;
 }
}

@media screen and (min-width: 1200px) and (min-height: 520px) {
 body:has(.qt-pro-rail) {
  --qt-rail-width: 174px;
  --qt-rail-edge: max(16px, calc((100% - 1440px) / 2 + 16px));
 }

 body > :is(.layout, .shop-main.main):has(~ .qt-pro-rail) {
  padding-inline-end: calc(var(--qt-rail-width) + 32px);
 }

 body > .shop-main.main:has(~ .qt-pro-rail) {
  max-width: 1440px;
 }

 .top .qt-pro-compact {
  display: none;
 }

 .qt-pro-rail {
  position: fixed;
  z-index: 10;
  inset-block-start: var(--qt-header-clearance, 132px);
  inset-inline-end: var(--qt-rail-edge);
  width: var(--qt-rail-width);
  max-height: calc(100dvh - var(--qt-header-clearance, 132px) - 12px);
  overflow: auto;
  display: block;
  padding: 15px 13px 13px;
  border: 1px solid #ccd9ee;
  border-radius: 14px;
  background: #f5f8ff;
  color: #203557;
  box-shadow: 0 5px 16px #20355714;
 }

 .qt-pro-rail h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
 }

 .qt-pro-rail ul {
  display: grid;
  gap: 9px;
  margin-block: 13px;
  padding-inline-start: 16px;
  font-size: .79rem;
  line-height: 1.45;
 }

 .qt-pro-rail li::marker {
  color: #3761a4;
 }

 .qt-pro-rail a {
  display: block;
  padding: 9px 5px;
  border-radius: 7px;
  background: #203557;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
 }

 .qt-pro-rail a:hover {
  background: #324e78;
 }
}

@media screen and (max-width: 760px) {
 .top .qt-brand-window:has(.qt-brand-image:not([hidden])) {
  width: clamp(116px, 34vw, 154px);
 }

 .qt-start > div {
  min-width: 0;
 }
}

@media print {
 .qt-pro-rail, .qt-pro-compact {
  display: none !important;
 }
}

[data-palette="electrical"] {
  --cat: #137879;
  --tint: #e4f7f5;
  --shade: #0e6063;
  --edge: #b7e4df;
}

html[data-qt-theme="dark"] [data-palette="electrical"] {
  --qt-theme-hue: 178;
}

.qt-electrical-tool-icon {
  width: 22px;
  height: 22px;
  flex: none;
  object-fit: contain;
  vertical-align: middle;
}

[data-palette="home"],
.portal-nav-inner > .nav-home {
  --nav-art: url(/assets/menu-icons/home.webp);
  --menu-fill: #fff1ce;
  --menu-text: #332710;
  --menu-border: #e3bf79;
  --menu-active: #a87922;
}
[data-palette="construction"] { --nav-art: url(/assets/menu-icons/construction.webp); }
[data-palette="electrical"] { --nav-art: url(/assets/menu-icons/electrical.webp); }
[data-palette="finance"] { --nav-art: url(/assets/menu-icons/finance.webp); }
[data-palette="study"] { --nav-art: url(/assets/menu-icons/study.webp); }
[data-palette="digital"] { --nav-art: url(/assets/menu-icons/digital.webp); }
[data-palette="text"] { --nav-art: url(/assets/menu-icons/text.webp); }
[data-palette="daily"] { --nav-art: url(/assets/menu-icons/daily.webp); }
.portal-nav-inner > .nav-home {
  gap: 6px;
}

:root :is(
  .portal-nav .portal-nav-inner > a:is(.nav-home, [href^="/category/"]),
  .directory .directory-nav > a[data-palette],
  .layout > .sidebar nav > .side-link[data-palette],
  .layout .mobile-nav > a:has(.menu-art)
) {
  background: var(--menu-fill, var(--tint));
  color: var(--menu-text, var(--shade));
  border: 1px solid var(--menu-border, var(--edge));
}

:root :is(
  .portal-nav .portal-nav-inner > a:is(.nav-home, [href^="/category/"]),
  .directory .directory-nav > a[data-palette],
  .layout > .sidebar nav > .side-link[data-palette],
  .layout .mobile-nav > a:has(.menu-art)
):is(:hover, [aria-current]) {
  border-color: var(--menu-active, var(--cat));
}

:root :is(
  .portal-nav .portal-nav-inner > a:is(.nav-home, [href^="/category/"]),
  .directory .directory-nav > a[data-palette],
  .layout > .sidebar nav > .side-link[data-palette],
  .layout .mobile-nav > a:has(.menu-art)
)[aria-current] {
  box-shadow: inset 0 -2px var(--menu-active, var(--cat));
}

.directory-nav > a[data-palette] > small,
.sidebar nav > .side-link[data-palette] > :is(.side-count, .side-icon) {
  color: inherit;
  background: transparent;
}

.portal-nav-inner > .nav-home::before,
.menu-art {
  content: "";
  display: inline-block;
  width: 21px;
  height: 21px;
  flex: none;
  background: var(--nav-art) center / contain no-repeat;
  vertical-align: middle;
}

#all-tools .directory-group > header h3 {
  min-width: 0;
  font-size: 18px;
}

#all-tools .directory-group > header h3 small {
  flex: none;
}

#all-tools .directory-group > header h3 .menu-art {
  width: 28px;
  height: 28px;
}

.intro-icon .menu-art {
  width: 76%;
  height: 76%;
}

.mobile-nav .menu-art {
  width: 18px;
  height: 18px;
  margin-inline-end: 4px;
}

@media (max-width: 640px) {
  #all-tools .directory-group > header h3 {
    font-size: 16px;
  }

  #all-tools .directory-group > header h3 .menu-art {
    width: 24px;
    height: 24px;
  }

  .directory-nav .menu-art,
  .portal-nav-inner > .nav-home::before {
    width: 18px;
    height: 18px;
  }
}

@media screen {
  .top .portal-nav :is(.portal-nav-inner, .portal-quick-links) > a {
    box-sizing: border-box;
    min-block-size: 35px;
    margin-block: 3px;
    padding: 6px 10px;
    line-height: 1.15;
  }

  html:not([data-qt-interface="refined"]) .top .portal-nav .portal-quick-links > a.nav-shop {
    border-radius: 9px;
  }

  html:not([data-qt-interface="refined"]) {
    --qt-readable-copy: #293748;
  }

  html[data-qt-theme="dark"]:not([data-qt-interface="refined"]) {
    --qt-readable-copy: #dbe5f4;
  }

  html:not([data-qt-interface="refined"]) .top .portal-nav .portal-quick-links > a.nav-shop {
    border: 1px solid transparent;
  }

  html:not([data-qt-interface="refined"]) .top .portal-nav .portal-quick-links > a.nav-shop:hover {
    background: var(--tint);
    color: var(--shade);
    border-color: var(--cat);
  }

  html:not([data-qt-interface="refined"]) :is(#main, .account-shell, .account-card) :is(
    .article p, .article li, .info-panel p, .info-panel li,
    .tool-head p, .category-intro p, .xhint, .xempty, .help, .account-card p
  ) {
    color: var(--qt-readable-copy);
    font-size: 15px;
    line-height: 1.65;
  }

  html:not([data-qt-interface="refined"]) #main .card-link .tool-description {
    color: var(--qt-readable-copy);
    font-size: 14px;
    line-height: 1.55;
    display: block;
    overflow-wrap: anywhere;
  }

  html:not([data-qt-interface="refined"]) :is(.directory-nav h2, .sidebar .side-label) {
    color: var(--qt-readable-copy);
    font-size: 14px;
    font-weight: 700;
  }

  html:not([data-qt-interface="refined"]) :is(.directory-nav, .sidebar nav) > a[data-palette] {
    --menu-text: var(--qt-readable-copy);
    font-size: 14px;
    line-height: 1.4;
  }

  html:not([data-qt-interface="refined"]) :is(.directory-nav, .sidebar) :is(small, .side-count) {
    color: inherit;
    font-size: 12px;
  }

  html:not([data-qt-interface="refined"]) .qt-pro-rail ul {
    color: var(--qt-readable-copy);
    font-size: 14px;
    line-height: 1.55;
    word-break: keep-all;
  }
}


@media screen and (max-width: 640px) {
  .top .portal-nav :is(.portal-nav-inner, .portal-quick-links) > a {
    min-block-size: 30px;
    padding: 5px 8px;
  }
}

@media screen {
  .qt-start-caption {
    color: var(--muted);
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .qt-start .qt-desk .qt-desk-quota {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.45;
  }

  html[data-qt-interface="refined"] .qt-start-caption {
    color: var(--refined-ivory-muted);
  }
}
