.sticky-specs-shell,
.sticky-specs-shell:has(#custom-specs-sticky-summary) {
  width: 100%;
  box-sizing: border-box;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.sticky-specs-shell.summary-is-booting {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

.sticky-specs-shell.summary-hidden-by-main,
.sticky-specs-shell.summary-hidden-by-main:has(#custom-specs-sticky-summary) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#custom-specs-sticky-summary:empty {
  display: none;
}

@media (max-width: 1024.98px) {
  .sticky-specs-shell {
    display: none !important;
  }

  .sticky-specs-shell:has(#custom-specs-sticky-summary) {
    display: none !important;
  }
}

#custom-specs-sticky-summary .sticky-specs-card,
#custom-specs-sticky-summary .specs-summary-card {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 16px 14px 14px;
  color: #ffffff;
}

#custom-specs-sticky-summary .summary-view-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 30px;
  margin: 0 0 4px;
}

#custom-specs-sticky-summary .summary-view-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 4px 9px 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#custom-specs-sticky-summary .summary-view-tab:hover,
#custom-specs-sticky-summary .summary-view-tab.is-active {
  border-color: #009bff;
  background: rgba(0, 155, 255, 0.12);
  color: #009bff;
}

#custom-specs-sticky-summary .summary-view-switch {
  position: relative;
  width: 25px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

#custom-specs-sticky-summary .summary-view-switch-dot {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.22s ease, background 0.22s ease;
}

#custom-specs-sticky-summary .summary-view-tab.is-active .summary-view-switch {
  background: #009bff;
}

#custom-specs-sticky-summary .summary-view-tab.is-active .summary-view-switch-dot {
  transform: translateX(11px);
}

#custom-specs-sticky-summary .summary-view-panel[hidden] {
  display: none !important;
}

#custom-specs-sticky-summary .summary-view-panel.is-active {
  animation: summary-panel-in 0.24s ease both;
}

@keyframes summary-panel-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

#custom-specs-sticky-summary .summary-clock-stage {
  position: relative;
  width: min(100%, 560px);
  min-height: clamp(460px, 62vw, 540px);
  aspect-ratio: 1 / 1;
  overflow: visible;
  margin: 0 auto 8px;
  border-radius: 18px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.03) 26%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0));
}

#custom-specs-sticky-summary .summary-center-case {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(44%, 220px);
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 1;
}

#custom-specs-sticky-summary .summary-center-case-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 255px;
  object-fit: contain;
  margin: 0 auto;
}

#custom-specs-sticky-summary .summary-clock-node {
  --summary-node-x: 50%;
  --summary-node-y: 50%;
  position: absolute;
  left: var(--summary-node-x);
  top: var(--summary-node-y);
  transform: translateX(-50%);
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  border: 0;
  background: transparent;
  color: #ffffff;
  padding: 0;
  font-family: Inter, sans-serif;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  z-index: 3;
}

#custom-specs-sticky-summary .summary-clock-node.is-hidden {
  opacity: 0.25;
  pointer-events: none;
}

#custom-specs-sticky-summary .summary-pos-cooler,
#custom-specs-sticky-summary .summary-pos-psu {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

#custom-specs-sticky-summary .summary-clock-icon-frame {
  width: min(100%, 64px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-sizing: border-box;
  position: relative;
  border-radius: 8px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);

  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

#custom-specs-sticky-summary .summary-clock-node:hover .summary-clock-icon-frame,
#custom-specs-sticky-summary .summary-clock-node.is-selected .summary-clock-icon-frame {
  border-color: #009bff;
  background: rgba(0, 155, 255, 0.12);
  box-shadow: 0 0 0 1px rgba(0, 155, 255, 0.28), 0 0 16px rgba(0, 155, 255, 0.14);
  transform: translateY(-1px);
}

#custom-specs-sticky-summary .summary-clock-icon {
  display: block;
  width: 72%;
  height: 72%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  opacity: 0.92;
  transition: opacity 0.12s ease;
}

#custom-specs-sticky-summary .summary-clock-node:hover .summary-clock-icon,
#custom-specs-sticky-summary .summary-clock-node.is-selected .summary-clock-icon {
  filter: brightness(0) saturate(100%) invert(40%) sepia(99%) saturate(2905%) hue-rotate(183deg) brightness(104%) contrast(103%);
  opacity: 1;
}

#custom-specs-sticky-summary .summary-clock-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-wrap: balance;
}

#custom-specs-sticky-summary .summary-clock-node:hover .summary-clock-label,
#custom-specs-sticky-summary .summary-clock-node.is-selected .summary-clock-label {
  color: #009bff;
}

#custom-specs-sticky-summary .summary-clock-value {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  color: #bdbdbd;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

#custom-specs-sticky-summary .summary-pos-psu .summary-clock-value {
  display: -webkit-box;
  max-height: calc(1.2em * 2);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#custom-specs-sticky-summary .summary-clock-value.summary-value-overridden {
  color: rgb(76, 175, 80);
  font-weight: 700;
}

#custom-specs-sticky-summary .summary-clock-value.summary-value-overridden::before {
  content: "▲ ";
  font-size: 11px;
}

#custom-specs-sticky-summary .summary-pos-cooler .summary-clock-value,
#custom-specs-sticky-summary .summary-pos-ram .summary-clock-value,
#custom-specs-sticky-summary .summary-pos-gpu .summary-clock-value {
  font-size: 10.5px;
  line-height: 1.18;
}

#custom-specs-sticky-summary .summary-list-title {
  margin: 8px 0 12px;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
}

#custom-specs-sticky-summary .summary-list {
  display: flex;
  flex-direction: column;
}

#custom-specs-sticky-summary .summary-list-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#custom-specs-sticky-summary .summary-list-item.is-hidden {
  display: none;
}

#custom-specs-sticky-summary .summary-list-icon-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
  aspect-ratio: 1 / 1;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 8px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.03);
}

#custom-specs-sticky-summary .summary-list-icon {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#custom-specs-sticky-summary .summary-list-text {
  min-width: 0;
  flex: 1 1 auto;
}

#custom-specs-sticky-summary .summary-list-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

#custom-specs-sticky-summary .summary-list-label {
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

#custom-specs-sticky-summary .summary-list-value {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

#custom-specs-sticky-summary .summary-list-value.summary-value-overridden {
  color: rgb(76, 175, 80);
  font-weight: 700;
}

#custom-specs-sticky-summary .summary-list-value.summary-value-overridden::before {
  content: "\25B2  ";
}

#custom-specs-sticky-summary .sticky-specs-inline-upgrade {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid #009bff;
  border-radius: 3px;
  background: transparent;
  color: #009bff;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

#custom-specs-sticky-summary .sticky-specs-inline-upgrade:hover {
  background: #009bff;
  color: #ffffff;
}

#custom-specs-sticky-summary .summary-accessories-box {
  margin-top: 0;
  padding-top: 0;
  min-height: 0;
  background: transparent;
  border: 0 !important;
  border-radius: 0;
}

#custom-specs-sticky-summary .summary-accessories-box::before,
#custom-specs-sticky-summary .summary-accessories-head::before {
  display: none !important;
  content: none !important;
}

#custom-specs-sticky-summary .summary-accessories-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 5px;
  padding-top: 0;
  border: 0 !important;
}

#custom-specs-sticky-summary #summary-item-addons {
  display: block;
  padding: 0;
  border: 0;
}

#custom-specs-sticky-summary .sticky-addon-none {
  color: #8f8f8f;
  font-weight: 600;
}

#custom-specs-sticky-summary .summary-accessories-title {
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}

#custom-specs-sticky-summary #summary-item-addons {
  display: block;
  border-bottom: 0;
  padding-bottom: 0;
}

#custom-specs-sticky-summary .sticky-specs-text-full {
  width: 100%;
}

#custom-specs-sticky-summary .sticky-specs-value-multiline {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

#custom-specs-sticky-summary .sticky-addon-line {
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
}

#custom-specs-sticky-summary .sticky-addon-price {
  color: rgb(76, 175, 80);
  font-weight: 700;
}

#custom-specs-sticky-summary .sticky-specs-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  padding: 0;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#custom-specs-sticky-summary .sticky-specs-reset-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

#custom-specs-sticky-summary .sticky-specs-reset-btn::before {
  content: "";
  width: 20px;
  height: 20px;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9A8 8 0 1 1 6.7 17.1' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.5 9V4.8H8.7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9A8 8 0 1 1 6.7 17.1' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4.5 9V4.8H8.7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

#custom-specs-sticky-summary .sticky-specs-reset-btn:hover,
#custom-specs-sticky-summary .sticky-specs-reset-btn.is-reset {
  border-color: #009bff;
  background: rgba(0, 155, 255, 0.14);
  color: #009bff;
}

#custom-specs-sticky-summary .sticky-specs-total {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

#custom-specs-sticky-summary .sticky-specs-total-main {
  min-width: 0;
  flex: 1 1 auto;
}

#custom-specs-sticky-summary .sticky-specs-total-label {
  color: #bdbdbd;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

#custom-specs-sticky-summary .sticky-specs-total-value {
  color: #ffffff;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

#custom-specs-sticky-summary .sticky-specs-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  margin-top: 0;
}

#custom-specs-sticky-summary .sticky-specs-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 30px;
  padding: 0 12px;

  border: 1px solid #ffffff;
  border-radius: 8px;
  background: #ffffff;
  color: #000000;

  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#custom-specs-sticky-summary .sticky-specs-copy-btn:hover {
  background: #000000;
  color: #ffffff;
  border-color: #ffffff;
}

#custom-specs-sticky-summary .sticky-specs-copy-btn.is-copied {
  background: #ffffff;
  color: rgb(76, 175, 80);
  border-color: rgb(76, 175, 80);
}

@media (max-width: 1200px) {
  #custom-specs-sticky-summary .summary-clock-stage {
    min-height: 460px;
  }

  #custom-specs-sticky-summary .summary-center-case {
    width: min(44%, 180px);
  }

  #custom-specs-sticky-summary .summary-center-case-img {
    max-height: 210px;
  }

  #custom-specs-sticky-summary .summary-clock-icon-frame {
    width: min(100%, 56px);
  }

  #custom-specs-sticky-summary .summary-clock-icon {
    width: 70%;
    height: 70%;
  }

  #custom-specs-sticky-summary .summary-clock-label {
    font-size: 14px;
  }

  #custom-specs-sticky-summary .summary-accessories-title {
    font-size: 14px;
  }

  #custom-specs-sticky-summary .summary-clock-value {
    font-size: 12px;
  }

}

@media (min-width: 1025px) and (max-height: 920px) {
  #custom-specs-sticky-summary .sticky-specs-card,
  #custom-specs-sticky-summary .specs-summary-card {
    max-height: calc(100vh - 170px);
    overflow-y: auto;
    padding: 12px 12px 10px;
    scrollbar-width: thin;
  }

  #custom-specs-sticky-summary .summary-view-toolbar {
    min-height: 22px;
    margin-bottom: 0;
  }

  #custom-specs-sticky-summary .summary-view-tab {
    min-height: 22px;
    padding: 3px 8px 3px 5px;
    font-size: 11px;
  }

  #custom-specs-sticky-summary .summary-clock-stage {
    min-height: 390px;
    aspect-ratio: auto;
    margin-bottom: 2px;
  }

  #custom-specs-sticky-summary .summary-center-case {
    width: min(38%, 175px);
  }

  #custom-specs-sticky-summary .summary-center-case-img {
    max-height: 180px;
  }

  #custom-specs-sticky-summary .summary-clock-node {
    gap: 3px;
  }

  #custom-specs-sticky-summary .summary-clock-icon-frame {
    width: min(100%, 46px);
  }

  #custom-specs-sticky-summary .summary-clock-icon {
    width: 68%;
    height: 68%;
  }

  #custom-specs-sticky-summary .summary-clock-label {
    font-size: 12.5px;
    line-height: 1.08;
  }

  #custom-specs-sticky-summary .summary-clock-value {
    min-height: 0;
    font-size: 10.5px;
    line-height: 1.15;
  }

  #custom-specs-sticky-summary .summary-pos-cooler .summary-clock-value,
  #custom-specs-sticky-summary .summary-pos-ram .summary-clock-value,
  #custom-specs-sticky-summary .summary-pos-gpu .summary-clock-value {
    font-size: 10px;
    line-height: 1.13;
  }

  #custom-specs-sticky-summary .summary-accessories-head {
    margin-bottom: 4px;
  }

  #custom-specs-sticky-summary .summary-accessories-title {
    font-size: 13px;
  }

  #custom-specs-sticky-summary .sticky-specs-reset-btn {
    width: 30px;
    height: 30px;
  }

  #custom-specs-sticky-summary .sticky-specs-reset-btn::before {
    width: 18px;
    height: 18px;
  }

  #custom-specs-sticky-summary .sticky-specs-total {
    margin-top: 8px;
    padding-top: 8px;
  }

  #custom-specs-sticky-summary .sticky-specs-total-label {
    font-size: 10px;
  }

  #custom-specs-sticky-summary .sticky-specs-total-value {
    font-size: 18px;
  }

  #custom-specs-sticky-summary .sticky-specs-copy-btn {
    min-height: 28px;
    padding: 0 10px;
    font-size: 10px;
  }
}
