.tool-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 40px rgba(10, 5, 35, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Ensure tool internals respect the [hidden] attribute */
#faviconTool [hidden] {
  display: none !important;
}

.tool-shell label {
  display: block;
  margin: 12px 0 6px;
  font-weight: 600;
  color: var(--berry-black-60);
}

.tool-shell input[type="text"] {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(10, 5, 35, 0.18);
  background: #fff;
  color: var(--berry-black-60);
  font-size: 16px;
}

.tool-shell input[type="text"]:focus {
  outline: none;
  border-color: rgba(0, 106, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

.fav-grid {
  display: grid;
  grid-template-columns: 1fr minmax(160px, auto);
  gap: 12px;
  align-items: end;
}

@media (max-width: 720px) {
  .fav-grid {
    grid-template-columns: 1fr;
  }
  .fav-actions {
    justify-content: flex-start;
  }
}

.fav-actions {
  display: flex;
  justify-content: flex-end;
}

/* Fix global .btn_more (width:100%) for the tool CTA */
.fav-actions .fav-btn {
  width: auto;
  min-width: 140px;
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.fav-actions .fav-btn .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
}

.fav-actions .fav-btn .icon svg {
  width: 18px;
  height: 18px;
}

.fav-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 5, 35, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: var(--berry-black-60);
}

.fav-status.is-ok {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.08);
}

.fav-status.is-err {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.08);
}

.fav-paste {
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(10, 5, 35, 0.18);
  background: rgba(255, 255, 255, 0.7);
}

.fav-paste-title {
  font-weight: 700;
  color: var(--berry-black-60);
  margin-bottom: 4px;
}

.fav-paste textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(10, 5, 35, 0.18);
  background: #fff;
  padding: 12px;
  font-size: 14px;
  color: var(--berry-black-60);
  resize: vertical;
}

.fav-paste textarea:focus {
  outline: none;
  border-color: rgba(0, 106, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
}

.fav-paste-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

/* Progress bar (BMTE-style) */
#faviconTool .progress {
  margin-top: 12px;
  border: 1px solid rgba(10, 5, 35, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px 14px;
}

#faviconTool .progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(10, 5, 35, 0.72);
  font-weight: 600;
}

#faviconTool .bar {
  height: 10px;
  background: rgba(10, 5, 35, 0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

#faviconTool #progressBar {
  height: 100%;
  width: 0%;
  background: #16a34a;
  border-radius: 999px;
  transition: width 180ms ease;
}

.fav-checks {
  margin-top: 14px;
  border: 1px solid rgba(10, 5, 35, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
}

.fav-checks-head {
  padding: 14px 14px;
  font-weight: 700;
  color: var(--berry-black-60);
  background: rgba(10, 5, 35, 0.03);
  border-bottom: 1px solid rgba(10, 5, 35, 0.08);
}

.fav-check-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 14px;
  align-items: center;
}

.fav-check-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10, 5, 35, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.fav-check-item.is-pass .fav-check-icon {
  border-color: rgba(22, 163, 74, 0.25);
  background: rgba(22, 163, 74, 0.10);
}

.fav-check-item.is-fail .fav-check-icon {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(239, 68, 68, 0.10);
}

.fav-check-item.is-pass .fav-check-icon::before {
  content: "✓";
  font-weight: 700;
  color: #16a34a;
}

.fav-check-item.is-fail .fav-check-icon::before {
  content: "×";
  font-weight: 700;
  color: #ef4444;
  font-size: 20px;
  line-height: 1;
}

.fav-check-title {
  font-weight: 700;
  color: var(--berry-black-60);
}

.fav-check-message {
  margin-top: 2px;
  color: rgba(10, 5, 35, 0.62);
}

.fav-results {
  margin-top: 14px;
}

.fav-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 8px;
}

.fav-results-title {
  font-weight: 700;
  color: var(--berry-black-60);
}

.fav-table {
  border: 1px solid rgba(10, 5, 35, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.85);
}

.fav-row {
  display: grid;
  grid-template-columns: 96px 140px 160px 1fr;
  gap: 0;
  border-top: 1px solid rgba(10, 5, 35, 0.08);
}

.fav-row--head {
  border-top: 0;
  background: rgba(10, 5, 35, 0.04);
}

.fav-cell {
  padding: 12px;
  font-size: 14px;
  color: rgba(10, 5, 35, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-row--head .fav-cell {
  font-weight: 700;
  color: var(--berry-black-60);
}

@media (max-width: 920px) {
  .fav-row {
    grid-template-columns: 96px 1fr;
    grid-template-rows: auto auto auto;
  }

  .fav-row--head {
    display: none;
  }

  .fav-cell:nth-child(2)::before {
    content: "Sizes: ";
    font-weight: 700;
    color: var(--berry-black-60);
  }

  .fav-cell:nth-child(3)::before {
    content: "Type: ";
    font-weight: 700;
    color: var(--berry-black-60);
  }

  .fav-cell:nth-child(4)::before {
    content: "URL: ";
    font-weight: 700;
    color: var(--berry-black-60);
  }

  /* Make the preview span all rows so details don't inherit its tall row height */
  .fav-cell:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .fav-cell:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .fav-cell:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
    padding-top: 6px;
  }

  .fav-cell:nth-child(4) {
    grid-column: 2;
    grid-row: 3;
    padding-top: 6px;
  }
}

.fav-preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid rgba(10, 5, 35, 0.10);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  box-sizing: border-box;
}

.fav-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Clear button below results */
#faviconTool .fav-clear.btn_more {
  margin-top: 12px;
  width: 100%;
  height: 44px;
  border-radius: 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: rgba(10, 5, 35, 0.78);
  box-shadow: none;
}

#faviconTool .fav-clear.btn_more:hover {
  background: rgba(239, 68, 68, 0.12);
}

.fav-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(10, 5, 35, 0.12);
  background: rgba(255, 255, 255, 0.8);
  color: rgba(10, 5, 35, 0.78);
  max-width: 100%;
}

.fav-link {
  color: inherit;
  text-decoration: underline;
  word-break: break-all;
}

.tool-meta
{
    margin-top: 15px;
    font-size: 13px;
    color: var(--berry-black-60-opacity80);
}

/* --- Below-tool content typography (match other tool pages) --- */
.main > .container{
  margin-bottom: 0;
}

.content-card{
  margin-top: 100px; /* gap after tool section */
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.content-card h2{
  margin: 0 0 12px 0;
  color: black;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

.content-card h3{
  margin: 18px 0 8px;
  color: black;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

.content-card p{
  margin: 0 0 12px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

.content-card ol,
.content-card ul{
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: black;
  line-height: 1.55;
}

.content-card ul{ list-style: disc; }
.content-card ol{ list-style: decimal; }

.content-card li{
  margin: 0 0 8px;
  color: black;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}