:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --line: #e5e9f0;
  --line-strong: #d6dce5;
  --text: #172033;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-strong: #1d4ed8;
  --primary-soft: #eff6ff;
  --success: #138a5b;
  --shadow: 0 8px 28px rgba(18, 31, 53, .07);
  --radius: 16px;
  --sidebar-width: 250px;
  --mobile-appbar-height: 66px;
  --mobile-toolbar-height: 80px;
  --mobile-fixed-stack: calc(var(--mobile-appbar-height) + var(--mobile-toolbar-height));
}

* { box-sizing: border-box; }

html {
  display: block !important;
  min-height: 100%;
  height: auto !important;
  color-scheme: light;
  background: var(--bg);
}

body {
  display: block !important;
  min-height: 100vh;
  height: auto !important;
  margin: 0;
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif !important;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before,
body::after { display: none !important; }

/* Desktop-first: the compact mobile bar must never reserve desktop space. */
.mobile-header { display: none !important; }

a { color: inherit; }
button, input, select, option { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  width: var(--sidebar-width) !important;
  height: 100vh !important;
  display: block !important;
  padding: 22px 14px !important;
  background: #fff !important;
  border-right: 1px solid var(--line) !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  color: var(--text) !important;
  z-index: 1200 !important;
  transform: none !important;
  overflow-y: auto;
}

.logo-area-sidebar {
  width: 100% !important;
  min-height: 92px;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 10px 20px !important;
  border-right: 0;
  border-bottom: 1px solid var(--line);
}

.logo-area-sidebar .logo-link {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

.logo-area-sidebar img { width: 178px !important; height: 62px !important; object-fit: contain !important; filter: none !important; }

.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.secure-auth-modal { position: fixed; inset: 0; z-index: 10000; display: none; place-items: center; padding: 20px; background: rgba(15, 23, 42, .52); backdrop-filter: blur(4px); }
.secure-auth-modal.show { display: grid; }
.secure-auth-dialog { position: relative; width: min(100%, 380px); padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 24px 70px rgba(15, 23, 42, .2); text-align: center; }
.secure-auth-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; color: #64748b; font-size: 27px; line-height: 1; cursor: pointer; }
.secure-auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px; background: #eaf2ff; color: #124b89; font-size: 21px; }
.secure-auth-dialog h2 { margin: 0 0 7px; color: #0f2742; font-size: 22px; }
.secure-auth-dialog > p { margin: 0 0 20px; color: #64748b; font-size: 14px; }
.secure-auth-dialog input { box-sizing: border-box; width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #0f172a; font-size: 16px; outline: none; }
.secure-auth-dialog input:focus { border-color: #2469ad; box-shadow: 0 0 0 3px rgba(36, 105, 173, .14); }
.secure-auth-message { min-height: 20px; margin: 7px 0; color: #c2413b; font-size: 13px; text-align: left; }
.secure-auth-submit { width: 100%; height: 46px; border: 0; border-radius: 10px; background: #124b89; color: #fff; font-weight: 700; cursor: pointer; }
.secure-auth-submit:disabled { opacity: .62; cursor: wait; }

.menu {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 18px 0 0 !important;
  padding-inline-start: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.menu li {
  width: 100% !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  list-style: none !important;
  list-style-type: none !important;
}

.menu li::marker { content: "" !important; font-size: 0 !important; }

.menu a {
  width: 100% !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 13px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: #4b5563 !important;
  box-shadow: none !important;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.menu a::after { display: none !important; content: none !important; }
.menu a i { flex: 0 0 18px; }

.menu a:hover,
.menu a:focus-visible {
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
  outline: none;
}

.menu a i { width: 18px; color: #94a3b8 !important; text-align: center; }
.menu a:hover i { color: var(--primary) !important; }

.main {
  position: relative !important;
  top: 0 !important;
  margin-left: var(--sidebar-width) !important;
  margin-top: 0 !important;
  width: calc(100% - var(--sidebar-width)) !important;
  max-width: none !important;
  padding: 0 !important;
  padding-top: 0 !important;
  min-height: 100vh;
  background: var(--bg) !important;
}

.header-center {
  position: sticky !important;
  top: 0 !important;
  margin: 0 !important;
  min-height: 92px !important;
  padding: 0 !important;
  display: block !important;
  background: rgba(255,255,255,.92) !important;
  border-bottom: 1px solid var(--line) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px);
  z-index: 1100 !important;
}

.header-inner {
  width: 100%;
  min-height: 92px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.page-heading { display: flex; flex-direction: column; line-height: 1.2; }
.page-heading .eyebrow { color: #94a3b8; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.page-heading strong { margin-top: 5px; color: var(--text); font-size: 22px; letter-spacing: -.02em; }

.system-log { display: none !important; }

.remote-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 17px !important;
  border: 1px solid var(--primary) !important;
  border-radius: 10px !important;
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(37, 99, 235, .18) !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0 !important;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.remote-link:hover { background: var(--primary-strong) !important; transform: translateY(-1px); }
.remote-link:focus-visible { outline: 3px solid rgba(37,99,235,.24); outline-offset: 2px; }

.content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 28px 32px 48px !important;
  display: flex !important;
  flex-direction: column;
  gap: 20px;
}

#card-linkhub { order: 1; }
#post-view { order: 2; }
#card-downloads { order: 3; }

.card {
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(20px, 3vw, 30px) !important;
  overflow: hidden;
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: var(--shadow) !important;
}

.notice-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.ascii-header {
  margin: 0 !important;
  color: var(--text) !important;
  font-family: inherit !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -.025em !important;
  text-shadow: none !important;
}

#card-downloads > .ascii-header { margin-bottom: 18px !important; }

.linkhub-actions { display: flex; gap: 7px !important; flex-wrap: wrap; }
.lh-btn,
.hacker-btn {
  min-height: 36px !important;
  padding: 7px 13px !important;
  margin: 0 !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: #556070 !important;
  box-shadow: none !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.filter-buttons-wrapper .hacker-btn,
.filter-buttons-wrapper button,
.filters .hacker-btn,
.filters button {
  color: #556070 !important;
  background: #fff !important;
  border-color: var(--line-strong) !important;
  text-shadow: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.lh-btn:hover,
.hacker-btn:hover { border-color: #aac3ef !important; background: var(--primary-soft) !important; color: var(--primary) !important; transform: none !important; }

.lh-btn.is-active,
.hacker-btn.active,
.hacker-btn.btn-active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.filter-buttons-wrapper .hacker-btn.active,
.filter-buttons-wrapper .hacker-btn.btn-active,
.filter-buttons-wrapper button.active,
.filter-buttons-wrapper button.btn-active {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
  outline: none !important;
  box-shadow: none !important;
}

.filter-buttons-wrapper .hacker-btn:hover,
.filter-buttons-wrapper button:hover {
  border-color: #aac3ef !important;
  background: var(--primary-soft) !important;
  color: var(--primary) !important;
}

.filter-buttons-wrapper .hacker-btn.active:hover,
.filter-buttons-wrapper .hacker-btn.btn-active:hover,
.filter-buttons-wrapper button.active:hover,
.filter-buttons-wrapper button.btn-active:hover {
  border-color: var(--primary) !important;
  background: var(--primary) !important;
  color: #fff !important;
}

.link-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px !important;
}

.link-card {
  position: relative;
  min-height: 82px;
  padding: 17px 48px 17px 18px !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  background: var(--surface-soft) !important;
  color: var(--text) !important;
  box-shadow: none !important;
  text-decoration: none;
}

.link-card:hover { border-color: #c6d5ed !important; background: #fff !important; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(18,31,53,.08) !important; }
.link-card:active { border-color: #aac3ef !important; background: var(--primary-soft) !important; }
.link-card .title { display: block; color: var(--text) !important; font-weight: 750; }
.link-card .desc { display: block; margin-top: 3px; color: var(--muted) !important; font-size: 13px; }
.link-card > i { right: 18px !important; left: auto !important; color: #94a3b8 !important; opacity: 1 !important; filter: none !important; }
.link-card:hover > i { color: var(--primary) !important; filter: none !important; }

.linkhub-empty {
  width: 100%;
  padding: 28px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.filter-buttons-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 0 20px !important;
  flex-wrap: wrap !important;
}

.search-field {
  width: min(260px, 100%);
  min-height: 40px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-soft);
  color: #94a3b8;
}

.search-field:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.10); }
.search-field input { width: 100%; min-width: 0; border: 0 !important; outline: 0 !important; background: transparent !important; color: var(--text) !important; }
.search-field input::placeholder { color: #9aa4b2; }
#downloadSearch::placeholder { color: #9aa4b2 !important; }
#downloadSearch::-webkit-search-cancel-button { filter: none !important; opacity: .65 !important; }
#downloadSearch:hover::-webkit-search-cancel-button { filter: none !important; opacity: 1 !important; }

.download-list { display: grid !important; gap: 9px !important; margin: 0 !important; padding: 0 !important; list-style: none; }
.download-item { margin: 0 !important; border: 1px solid var(--line) !important; border-radius: 12px !important; background: #fff !important; box-shadow: none !important; overflow: hidden; }
.download-item:hover { border-color: #c6d5ed !important; background: #fff !important; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(18,31,53,.06) !important; }

.download-button {
  display: flex !important;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 12px 14px !important;
  color: var(--text) !important;
  text-decoration: none;
}

.file-icon { width: 40px; height: 40px; flex: 0 0 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); }
.file-icon > i { font-size: 14px; line-height: 1; }
.file-extension-badge { max-width: 34px; overflow: hidden; font-size: 8px; font-weight: 850; line-height: 1; letter-spacing: .03em; text-overflow: ellipsis; white-space: nowrap; }
.file-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.file-copy strong { overflow: hidden; color: var(--text); font-size: 14px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.file-copy small { margin-top: 2px; color: var(--muted) !important; font-size: 12px; }
.download-action { display: inline-flex; align-items: center; gap: 7px; color: var(--primary); font-size: 12px; font-weight: 750; }

.download-empty,
#no-results-msg { padding: 34px 12px; color: var(--muted) !important; text-align: center; }
#no-results-msg { display: none; margin-top: 12px; }

.footer {
  width: calc(100% - var(--sidebar-width)) !important;
  margin: 0 0 0 var(--sidebar-width) !important;
  border-top: 1px solid var(--line) !important;
  background: var(--bg) !important;
  color: var(--muted) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

.footer p { width: 100%; margin: 0 !important; text-align: center !important; }

@media (min-width: 769px) {
  .mobile-header { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
  .sidebar {
    top: 0 !important;
    padding: 0 14px 22px !important;
  }
  .logo-area-sidebar {
    height: 92px !important;
    min-height: 92px !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
  }
  .main { top: 0 !important; margin-top: 0 !important; }
  .header-center { top: 0 !important; margin-top: 0 !important; }
}

.modal-overlay,
.modal { background: rgba(15, 23, 42, .42) !important; backdrop-filter: blur(4px); }

.modal-content,
.remote-box {
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  background: #fff !important;
  color: var(--text) !important;
  box-shadow: 0 24px 60px rgba(15,23,42,.18) !important;
}

.modal-content input { border: 1px solid var(--line-strong) !important; border-radius: 10px !important; background: #fff !important; color: var(--text) !important; }
.modal-content button { border-radius: 10px !important; background: var(--primary) !important; color: #fff !important; }
.modal-close, .close { color: var(--muted) !important; }

#page-transition { background: #fff !important; }

@media (max-width: 768px) {
  .mobile-header {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    height: var(--mobile-appbar-height) !important;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    padding: 0 18px !important;
    border-bottom: 1px solid var(--line) !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: none !important;
    backdrop-filter: blur(12px);
    z-index: 3000 !important;
  }
  .hamburger {
    position: absolute !important;
    left: 18px !important;
    top: 50% !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    color: var(--text) !important;
    border: 0 !important;
    background: transparent !important;
    font-size: 22px;
    z-index: 1;
  }
  .mobile-header .logo {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    transform: translate(-50%, -50%) !important;
  }
  .mobile-header .logo img { max-height: 34px !important; filter: none !important; }
  .sidebar {
    top: var(--mobile-fixed-stack) !important;
    right: auto !important;
    bottom: 0 !important;
    width: 270px !important;
    height: calc(100vh - var(--mobile-fixed-stack)) !important;
    height: calc(100dvh - var(--mobile-fixed-stack)) !important;
    margin-top: 0 !important;
    display: block !important;
    padding: 0 !important;
    border-right: 1px solid var(--line) !important;
    border-bottom: 0 !important;
    transform: translateX(-100%) !important;
    box-shadow: 12px 0 30px rgba(15,23,42,.14) !important;
    z-index: 2800 !important;
  }
  .logo-area-sidebar {
    display: none !important;
  }
  .menu { display: block !important; margin: 0 !important; padding: 16px 14px !important; }
  .menu li { margin: 4px 0 !important; }
  .sidebar.show { transform: translateX(0) !important; }
  .sidebar-overlay {
    position: fixed !important;
    inset: var(--mobile-fixed-stack) 0 0 0 !important;
    display: none !important;
    pointer-events: none !important;
    z-index: 2700 !important;
  }
  .sidebar-overlay.show {
    display: block !important;
    pointer-events: auto !important;
    background: rgba(15,23,42,.35) !important;
  }
  .main {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    padding-top: var(--mobile-fixed-stack) !important;
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
  }
  .header-center {
    position: fixed !important;
    top: var(--mobile-appbar-height) !important;
    right: 0 !important;
    left: 0 !important;
    min-height: var(--mobile-toolbar-height) !important;
    height: var(--mobile-toolbar-height) !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2900 !important;
  }
  .header-inner {
    width: 100%;
    min-height: var(--mobile-toolbar-height);
    height: var(--mobile-toolbar-height);
    padding: 0 18px;
  }
  .page-heading strong { font-size: 18px; }
  .remote-link { min-height: 40px; padding: 0 13px !important; }
  .content {
    width: 100% !important;
    padding: 18px 12px 36px !important;
    touch-action: pan-y !important;
  }
  .card { border-radius: 14px !important; padding: 18px !important; }
  .notice-header { align-items: flex-start; flex-direction: column; }
  .link-row { grid-template-columns: 1fr; }
  .filter-buttons-wrapper { justify-content: flex-start !important; }
  .hacker-btn { min-width: auto !important; flex: 0 0 auto !important; }
  .search-field { order: -1; width: 100%; margin: 0 0 5px; }
  .download-action span { display: none; }
  .footer { width: 100% !important; margin-left: 0 !important; }
}

@media (min-width: 769px) {
  .logo-area-sidebar,
  .logo-area-sidebar .logo-link {
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Printer installer: isolated addition to the existing white theme */
#card-installer { order: 0; position: relative; overflow: hidden; }
.installer-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.installer-kicker { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 7px; color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .1em; }
.installer-heading h3 { margin: 0 0 7px; color: var(--text); font-size: 24px; }
.installer-heading p { margin: 0; color: var(--muted); font-size: 13px; }
.installer-os { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: #52677f; font-size: 11px; font-weight: 720; }
.installer-os i { color: #087cd5; font-size: 15px; }
.installer-form { display: grid; grid-template-columns: minmax(190px,1fr) minmax(190px,1fr) auto; align-items: end; gap: 12px; }
.installer-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; color: #506278; font-size: 12px; font-weight: 750; }
.installer-field select, .ip-control { width: 100%; min-height: 48px; border: 1px solid #cfdbe8; border-radius: 13px; background: #fff; box-sizing: border-box; }
.installer-field select { padding: 0 38px 0 14px; color: var(--text); font: 650 13px system-ui,-apple-system,sans-serif; }
.ip-control { display: flex; align-items: center; gap: 10px; padding: 0 13px; }
.ip-control i { color: #7690aa; }
.ip-control input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 650 14px system-ui,-apple-system,sans-serif; }
.installer-field select:focus, .ip-control:focus-within { border-color: #4e8fe3; box-shadow: 0 0 0 4px rgba(37,99,235,.1); outline: 0; }
.installer-submit { min-height: 48px; padding: 0 18px; border: 0; border-radius: 13px; background: linear-gradient(135deg,#1557b8,#2878d5); color: #fff; box-shadow: 0 9px 20px rgba(21,87,184,.2); display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.installer-feedback { min-height: 18px; margin-top: 9px; color: var(--muted); font-size: 11px; }
.installer-feedback.error { color: #c24141; }
.installer-steps { margin-top: 14px; padding: 13px 15px; border: 1px solid #e0e8f1; border-radius: 13px; background: #f8fafc; color: #62748a; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 11px; }
.installer-steps span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.installer-steps b { width: 20px; height: 20px; border-radius: 7px; background: #e5eef9; color: var(--primary); display: grid; place-items: center; font-size: 10px; }
.installer-steps > i { color: #b8c5d3; font-size: 8px; }
.installer-vendors { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.vendor-chip { padding: 5px 8px; border: 1px solid #dde6ef; border-radius: 999px; background: #fff; color: #77889c; font-size: 9px; font-weight: 700; }
.vendor-chip.ready { border-color: rgba(28,161,103,.19); background: rgba(28,161,103,.07); color: #187a52; }

@media (max-width: 768px) {
  .installer-heading { flex-direction: column; margin-bottom: 18px; }
  .installer-os { align-self: flex-start; }
  .installer-form { grid-template-columns: 1fr; }
  .installer-submit { width: 100%; }
  .installer-steps { align-items: stretch; flex-direction: column; }
  .installer-steps > i { display: none; }
}


/* Printer installer: vendor/model tab selector */
.installer-form-tabs {
  display: block;
}

.installer-selector-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 14px;
  margin-bottom: 14px;
}

.installer-picker {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce5ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.installer-picker-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.installer-picker-number {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #edf4fd;
  color: #2368ba;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .04em;
}

.installer-picker-heading > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.installer-picker-heading strong {
  color: #203247;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -.015em;
}

.installer-picker-heading small {
  color: #8a99aa;
  font-size: 10px;
  font-weight: 600;
}

.installer-tab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.installer-vendor-tab {
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #dce5ef;
  border-radius: 13px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #40546a;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.installer-vendor-tab:hover {
  border-color: #b9cce2;
  background: #fbfdff;
}

.installer-vendor-tab[aria-selected="true"] {
  border-color: #78a9df;
  background: #f1f7fe;
  box-shadow: 0 0 0 3px rgba(43, 113, 190, .08);
}

.installer-vendor-tab:focus-visible,
.installer-model-option:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .18);
  outline-offset: 2px;
}

.installer-vendor-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid #e0e8f1;
  border-radius: 10px;
  background: #f7f9fc;
  display: grid;
  place-items: center;
  color: #5e7187;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.installer-vendor-tab[aria-selected="true"] .installer-vendor-mark {
  border-color: #c7dcf3;
  background: #fff;
  color: #1f67b5;
}

.installer-vendor-copy,
.installer-model-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.installer-vendor-copy {
  gap: 3px;
}

.installer-vendor-copy strong {
  overflow: hidden;
  color: #263a50;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installer-vendor-copy small {
  overflow: hidden;
  color: #8a99aa;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installer-model-grid {
  min-height: 124px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 8px;
}

.installer-model-option {
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid #dce5ef;
  border-radius: 13px;
  background: #fff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 9px;
  color: #40546a;
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.installer-model-option:hover:not(:disabled) {
  border-color: #b9cce2;
  background: #fbfdff;
}

.installer-model-option.is-selected {
  border-color: #78a9df;
  background: #f1f7fe;
  box-shadow: 0 0 0 3px rgba(43, 113, 190, .08);
}

.installer-model-option:disabled {
  cursor: not-allowed;
  opacity: .58;
}

.installer-model-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f3f6fa;
  color: #708399;
  font-size: 13px;
}

.installer-model-option.is-selected .installer-model-icon {
  background: #fff;
  color: #2368ba;
}

.installer-model-copy {
  gap: 3px;
}

.installer-model-copy strong {
  overflow: hidden;
  color: #263a50;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: -.01em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installer-model-copy small {
  color: #7f91a5;
  font-size: 9px;
  font-weight: 650;
}

.installer-model-state {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f4f8;
  color: #9aa8b8;
  font-size: 9px;
}

.installer-model-option.is-selected .installer-model-state {
  background: #2471c8;
  color: #fff;
}

.installer-picker-loading,
.installer-picker-empty {
  grid-column: 1 / -1;
  min-height: 72px;
  padding: 12px;
  border: 1px dashed #dce5ef;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8b9bad;
  font-size: 10px;
  font-weight: 650;
  text-align: center;
}

.installer-picker-empty.error {
  color: #b64747;
}

.installer-install-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.installer-ip-field {
  max-width: 430px;
}

.installer-feedback {
  padding-left: 2px;
  font-weight: 620;
}

@media (max-width: 900px) {
  .installer-selector-grid {
    grid-template-columns: 1fr;
  }

  .installer-model-grid {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .installer-picker {
    padding: 13px;
    border-radius: 14px;
  }

  .installer-tab-grid,
  .installer-model-grid {
    grid-template-columns: 1fr;
  }

  .installer-install-row {
    grid-template-columns: 1fr;
  }

  .installer-ip-field {
    max-width: none;
  }

  .installer-vendor-tab,
  .installer-model-option {
    min-height: 56px;
  }
}


/* Printer installer: compact manufacturer/model dropdown selector */
.installer-form-dropdowns {
  display: grid;
  grid-template-columns: minmax(150px, .82fr) minmax(210px, 1.18fr) minmax(210px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.installer-select-field {
  position: relative;
}

.installer-select-control {
  position: relative;
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfdbe8;
  border-radius: 13px;
  background: #fff;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.installer-select-control > i:first-child {
  position: absolute;
  left: 13px;
  z-index: 1;
  color: #7c91a8;
  font-size: 12px;
  pointer-events: none;
}

.installer-select-control select {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 46px;
  padding: 0 38px 0 36px;
  border: 0;
  border-radius: 12px;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  color: #26394e;
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -.015em;
  cursor: pointer;
}

.installer-select-control select:disabled {
  color: #9aa8b7;
  cursor: not-allowed;
  background: #f7f9fb;
}

.installer-select-arrow {
  position: absolute;
  right: 13px;
  z-index: 1;
  color: #8da0b4;
  font-size: 9px;
  pointer-events: none;
}

.installer-select-control:focus-within {
  border-color: #4e8fe3;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
}

.installer-select-field > span:first-child,
.installer-form-dropdowns > .installer-field > span:first-child {
  color: #41566e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.installer-form-dropdowns .ip-control {
  min-height: 48px;
}

.installer-vendors {
  margin-top: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.installer-vendors::before {
  content: "지원 제조사";
  display: inline-flex;
  align-items: center;
  margin-right: 2px;
  color: #9aa8b7;
  font-size: 9px;
  font-weight: 750;
}

.vendor-chip {
  padding: 5px 9px;
  border: 1px solid #dce5ef;
  border-radius: 999px;
  background: #fff;
  color: #75879b;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
}

.vendor-chip.ready {
  border-color: rgba(28,161,103,.20);
  background: rgba(28,161,103,.07);
  color: #187a52;
}

@media (max-width: 980px) {
  .installer-form-dropdowns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .installer-form-dropdowns .installer-submit {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .installer-form-dropdowns {
    grid-template-columns: 1fr;
  }
  .installer-select-control,
  .installer-form-dropdowns .ip-control,
  .installer-form-dropdowns .installer-submit {
    min-height: 50px;
  }
  .installer-select-control select {
    min-height: 48px;
    font-size: 16px;
  }
}

/* Printer installer: polished custom dropdown menus */
#card-installer { overflow: visible; z-index: 3; }
.installer-select-field { position: relative; }
.installer-select-field.is-open { z-index: 80; }
.installer-field-label { color: #41566e; font-size: 11px; font-weight: 800; letter-spacing: -.01em; }
.installer-custom-select { position: relative; min-width: 0; }
.installer-select-trigger {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #cfdbe8;
  border-radius: 13px;
  background: #fff;
  color: #26394e;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.installer-select-trigger > i:first-child { color: #7890a8; font-size: 12px; text-align: center; }
.installer-select-trigger.is-placeholder .installer-select-value { color: #7f91a4; font-weight: 660; }
.installer-select-trigger:not(.is-placeholder) .installer-select-value { color: #24384e; font-weight: 790; }
.installer-select-trigger:hover:not(:disabled) { border-color: #b8cada; background: #fcfdff; }
.installer-select-trigger:focus-visible,
.installer-select-field.is-open .installer-select-trigger {
  border-color: #4e8fe3;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
  outline: 0;
}
.installer-select-trigger:disabled { border-color: #dce4ed; background: #f7f9fb; color: #9aa8b7; cursor: not-allowed; }
.installer-select-trigger:disabled > i { color: #a9b5c2; }
.installer-select-value { min-width: 0; overflow: hidden; font-size: 13px; letter-spacing: -.015em; text-overflow: ellipsis; white-space: nowrap; }
.installer-select-chevron { color: #8da0b4; font-size: 9px; text-align: center; transition: transform .18s ease; }
.installer-select-field.is-open .installer-select-chevron { transform: rotate(180deg); }

.installer-select-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: 310px;
  padding: 7px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid #d7e1eb;
  border-radius: 15px;
  background: rgba(255,255,255,.99);
  box-shadow: 0 18px 45px rgba(38,58,80,.16), 0 4px 12px rgba(38,58,80,.06);
  scrollbar-width: thin;
  scrollbar-color: #c6d3df transparent;
}
.installer-select-menu[hidden] { display: none !important; }
.installer-select-menu::-webkit-scrollbar { width: 7px; }
.installer-select-menu::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: #c6d3df; background-clip: padding-box; }

.installer-dropdown-option {
  width: 100%;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #253a50;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: Pretendard, "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease;
}
.installer-dropdown-option + .installer-dropdown-option { margin-top: 3px; }
.installer-dropdown-option:hover:not(:disabled),
.installer-dropdown-option:focus-visible {
  border-color: #d5e3f1;
  background: #f5f9fe;
  outline: 0;
}
.installer-dropdown-option:active:not(:disabled) { transform: translateY(1px); }
.installer-dropdown-option[aria-selected="true"] { border-color: #bcd5ef; background: #f0f6fd; }
.installer-dropdown-option:disabled { opacity: .58; cursor: not-allowed; }
.installer-option-mark {
  width: 34px;
  height: 34px;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #f7f9fc;
  color: #637c95;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}
.installer-model-dropdown-option .installer-option-mark { font-size: 13px; }
.installer-dropdown-option[aria-selected="true"] .installer-option-mark { border-color: #c8dcf0; background: #fff; color: #2568b5; }
.installer-option-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.installer-option-copy strong { overflow: hidden; color: #263a50; font-size: 13px; font-weight: 820; letter-spacing: -.018em; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.installer-option-copy small { overflow: hidden; color: #8999aa; font-size: 10px; font-weight: 620; letter-spacing: -.01em; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.installer-option-status {
  min-width: max-content;
  padding: 5px 7px;
  border: 1px solid #dce6ef;
  border-radius: 999px;
  background: #fff;
  color: #74879b;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 780;
  line-height: 1;
}
.installer-option-status.is-selected { border-color: rgba(37,105,181,.18); background: rgba(37,105,181,.08); color: #2568b5; }
.installer-option-status.is-muted { background: #f5f7fa; color: #a0adba; }

@media (max-width: 620px) {
  .installer-select-trigger { min-height: 50px; }
  .installer-select-value { font-size: 16px; }
  .installer-select-menu { max-height: 280px; }
  .installer-dropdown-option { min-height: 62px; padding: 10px; }
  .installer-option-copy strong { font-size: 14px; }
  .installer-option-copy small { font-size: 11px; }
}

/* Printer installer: package options (scanner/default printer) */
.installer-package-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}
.installer-package-options[hidden],
.installer-choice[hidden],
.installer-default-option[hidden],
.installer-default-select[hidden] { display: none !important; }
.installer-choice,
.installer-default-option {
  min-width: 0;
  border: 1px solid #d8e3ee;
  border-radius: 13px;
  background: #f9fbfd;
}
.installer-choice {
  min-height: 58px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-sizing: border-box;
}
.installer-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.installer-choice-box {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 1px solid #c7d5e4;
  border-radius: 6px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  font-size: 10px;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.installer-choice input:checked + .installer-choice-box {
  border-color: #2e78cc;
  background: #2e78cc;
  color: #fff;
}
.installer-choice input:focus-visible + .installer-choice-box {
  box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.installer-choice-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.installer-choice-copy strong {
  color: #2a3e54;
  font-size: 12px;
  font-weight: 820;
}
.installer-choice-copy small {
  color: #7f91a5;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
}
.installer-default-option {
  min-height: 58px;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, .55fr);
  align-items: stretch;
  overflow: visible;
}
.installer-default-option .installer-choice {
  border: 0;
  border-radius: 0;
  background: transparent;
}
.installer-default-select {
  border-left: 1px solid #e0e8f1;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: #fff;
}
.installer-default-select > span {
  color: #71849a;
  font-size: 9px;
  font-weight: 760;
}
.installer-default-queue-select {
  width: 100%;
  position: relative;
}
.installer-default-queue-trigger {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  grid-template-columns: 17px minmax(0, 1fr) 14px;
  gap: 7px;
}
.installer-default-queue-trigger .installer-select-value {
  font-size: 11px;
  font-weight: 800;
}
.installer-default-select.is-open .installer-default-queue-trigger {
  border-color: #4e8fe3;
  box-shadow: 0 0 0 4px rgba(37,99,235,.10);
  outline: 0;
}
.installer-default-select.is-open .installer-default-queue-trigger .installer-select-chevron {
  transform: rotate(180deg);
}
.installer-default-queue-menu {
  left: auto;
  right: 0;
  width: min(360px, calc(100vw - 36px));
  max-height: 220px;
  z-index: 120;
}
.installer-default-queue-option {
  min-height: 56px;
}
.installer-default-queue-option .installer-option-mark {
  font-size: 13px;
}
@media (max-width: 760px) {
  .installer-package-options { grid-template-columns: 1fr; }
  .installer-default-option { grid-template-columns: 1fr; }
  .installer-default-select { border-left: 0; border-top: 1px solid #e0e8f1; }
  .installer-default-queue-menu { left: 0; right: 0; width: 100%; }
}

/* Printer installer capability status */
.installer-capability-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 16px;
  background: rgba(248, 250, 252, .92);
}
.installer-capability-panel[hidden] { display: none !important; }
.installer-capability-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}
.installer-capability-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.installer-capability-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .30);
  background: rgba(255,255,255,.82);
  color: #94a3b8;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -.01em;
}
.installer-capability-chip.is-supported {
  border-color: rgba(37, 99, 235, .20);
  background: rgba(37, 99, 235, .075);
  color: #1d4ed8;
}
.installer-capability-chip.is-supported i { color: #2563eb; }

@media (max-width: 640px) {
  .installer-capability-panel { padding: 12px; }
  .installer-capability-chip { flex: 1 1 calc(50% - 8px); justify-content: center; }
}


/* Printer installer compact option row */
.installer-capability-panel { display: none !important; }
.installer-package-options {
  grid-template-columns: minmax(150px, .72fr) minmax(150px, .72fr) minmax(360px, 1.7fr);
  gap: 8px;
  align-items: stretch;
  padding-top: 4px;
}
.installer-choice,
.installer-default-option {
  min-height: 48px;
  border-radius: 11px;
}
.installer-choice {
  padding: 7px 10px;
  gap: 8px;
}
.installer-choice-box {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
  border-radius: 5px;
}
.installer-choice-copy { gap: 1px; }
.installer-choice-copy strong {
  font-size: 11px;
  line-height: 1.2;
}
.installer-choice-copy small {
  font-size: 9px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.installer-default-option {
  grid-template-columns: minmax(150px, .9fr) minmax(190px, 1.1fr);
}
.installer-default-option .installer-choice {
  min-height: 46px;
  padding: 7px 10px;
}
.installer-default-select {
  min-width: 0;
  padding: 6px 8px;
  gap: 2px;
}
.installer-default-select > span {
  font-size: 8px;
  line-height: 1.1;
}
.installer-default-queue-trigger {
  min-height: 30px;
  padding: 0 8px;
  border-radius: 8px;
}
.installer-default-queue-trigger .installer-select-value {
  font-size: 10px;
}
@media (max-width: 900px) {
  .installer-package-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .installer-default-option {
    grid-column: 1 / -1;
  }
}
@media (max-width: 620px) {
  .installer-package-options { grid-template-columns: 1fr; }
  .installer-default-option {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .installer-default-select {
    border-left: 0;
    border-top: 1px solid #e0e8f1;
  }
}


/* Printer installer: exact compact 50/50 option bar
   Left half = Scanner + FAX, right half = Default printer. */
.installer-package-options {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}
#scannerInstallOption,
#faxInstallOption {
  grid-column: span 1;
}
#defaultPrinterOption {
  grid-column: span 2;
}
.installer-package-options.has-scanner:not(.has-fax) #scannerInstallOption,
.installer-package-options.has-fax:not(.has-scanner) #faxInstallOption {
  grid-column: span 2;
}
.installer-package-options:not(.has-scanner):not(.has-fax) #defaultPrinterOption {
  grid-column: 1 / -1;
}
.installer-package-options:not(.has-default).has-scanner.has-fax #scannerInstallOption,
.installer-package-options:not(.has-default).has-scanner.has-fax #faxInstallOption {
  grid-column: span 2;
}
#scannerInstallOption,
#faxInstallOption,
#defaultPrinterOption {
  min-height: 52px;
}
@media (max-width: 760px) {
  .installer-package-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #scannerInstallOption,
  #faxInstallOption { grid-column: span 1; }
  #defaultPrinterOption { grid-column: 1 / -1; }
  .installer-package-options.has-scanner:not(.has-fax) #scannerInstallOption,
  .installer-package-options.has-fax:not(.has-scanner) #faxInstallOption {
    grid-column: 1 / -1;
  }
}
@media (max-width: 480px) {
  .installer-package-options { grid-template-columns: 1fr; }
  #scannerInstallOption,
  #faxInstallOption,
  #defaultPrinterOption,
  .installer-package-options.has-scanner:not(.has-fax) #scannerInstallOption,
  .installer-package-options.has-fax:not(.has-scanner) #faxInstallOption {
    grid-column: 1;
  }
}


/* 2026-09-01: unify remote / Link Hub / download filters with Smart Installer CTA */
.remote-link {
  min-height: 48px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 13px !important;
  background: linear-gradient(135deg,#1557b8,#2878d5) !important;
  color: #fff !important;
  box-shadow: 0 9px 20px rgba(21,87,184,.2) !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}
.remote-link:hover {
  background: linear-gradient(135deg,#124fa8,#216dcc) !important;
  box-shadow: 0 11px 24px rgba(21,87,184,.24) !important;
}
.lh-btn,
.hacker-btn,
.filter-buttons-wrapper .hacker-btn,
.filter-buttons-wrapper button,
.filters .hacker-btn,
.filters button {
  color: #41566e !important;
  font-family: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
}
.lh-btn.is-active,
.hacker-btn.active,
.hacker-btn.btn-active,
.filter-buttons-wrapper .hacker-btn.active,
.filter-buttons-wrapper .hacker-btn.btn-active,
.filter-buttons-wrapper button.active,
.filter-buttons-wrapper button.btn-active {
  border-color: transparent !important;
  background: linear-gradient(135deg,#1557b8,#2878d5) !important;
  color: #fff !important;
  box-shadow: 0 6px 15px rgba(21,87,184,.16) !important;
}
.lh-btn.is-active:hover,
.hacker-btn.active:hover,
.hacker-btn.btn-active:hover,
.filter-buttons-wrapper .hacker-btn.active:hover,
.filter-buttons-wrapper .hacker-btn.btn-active:hover,
.filter-buttons-wrapper button.active:hover,
.filter-buttons-wrapper button.btn-active:hover {
  border-color: transparent !important;
  background: linear-gradient(135deg,#124fa8,#216dcc) !important;
  color: #fff !important;
}
.lh-btn.is-protected { gap: 6px; }
.lh-btn.is-protected i { font-size: 9px; opacity: .72; }
.lh-btn.is-protected.is-active i { opacity: 1; }

/* Documents reuse Link Hub A/B/C's pill, spacing and lock glyph. */
.filter-buttons-wrapper .lh-btn.is-protected {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#documentLockButton[hidden] { display: none !important; }
/* Keep search after all filters, including 기타, across re-renders. */
.filter-buttons-wrapper > button { order: 0 !important; }
.filter-buttons-wrapper > .search-field,
.filter-buttons-wrapper > #downloadSearch { order: 1 !important; }

/* 2026-09-01: footer / download-search / printer-IP polish */
.footer {
  padding: 30px 20px 36px !important;
  border-top: 0 !important;
  background: transparent !important;
}
.footer p {
  position: relative;
  width: auto !important;
  min-height: 38px;
  margin: 0 auto !important;
  padding: 0 16px 0 33px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dfe7f1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
  box-shadow: 0 8px 24px rgba(18,31,53,.055);
  color: #6f7f92 !important;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .045em;
  line-height: 1;
  white-space: nowrap;
}
.footer p::before {
  content: "";
  position: absolute;
  left: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1557b8, #2878d5);
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

/* Replace the legacy neon search clear icon with the current blue/white UI tone. */
#downloadSearch::-webkit-search-cancel-button {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  margin-left: 6px;
  border-radius: 50%;
  background-color: #eef3f8 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7f96' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 12px 12px !important;
  filter: none !important;
  opacity: 1 !important;
  cursor: pointer;
  transition: background-color .16s ease, transform .16s ease;
}
#downloadSearch:hover::-webkit-search-cancel-button {
  background-color: #dbeafe !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") !important;
  filter: none !important;
  opacity: 1 !important;
}

/* Site-native validation for printer IP; native browser validation bubbles are disabled. */
/* Keep labels/controls at a stable top edge when the IP message wraps. */
.installer-form-dropdowns { align-items: start; }
.installer-form-dropdowns > .installer-submit { margin-top: 21px; }
@media (max-width: 620px) {
  .installer-form-dropdowns > .installer-submit { margin-top: 0; }
}
.installer-field-message {
  display: none;
  min-height: 16px;
  margin: -1px 2px 0;
  color: #b84a4a;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.4;
}
.installer-field.is-invalid .installer-field-message { display: block; }
.installer-field.is-invalid .ip-control {
  border-color: #e4a1a1 !important;
  background: #fffafa;
  box-shadow: 0 0 0 4px rgba(194,65,65,.075) !important;
}
.installer-field.is-invalid > span:first-child { color: #b84a4a; }
.installer-field.is-invalid .ip-control i { color: #c86a6a; }
@media (max-width: 480px) {
  .footer p { max-width: 100%; padding-right: 14px; font-size: 10px; letter-spacing: .025em; white-space: normal; line-height: 1.35; }
}
