/* FreeConverter platform: palette, related, fav/recent */
.fc-palette[hidden] { display: none !important; }
.fc-palette {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: start center;
  padding: 10vh 16px 16px;
}
.fc-palette-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
}
.fc-palette-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8ebf5;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  overflow: hidden;
}
.fc-palette-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f8;
}
.fc-palette-search svg { color: #9aa3b8; flex: 0 0 auto; }
.fc-palette-search input {
  flex: 1;
  border: 0;
  outline: none;
  font-size: 16px;
  color: #10172f;
  background: transparent;
}
.fc-palette-search kbd {
  font-size: 11px;
  font-weight: 700;
  color: #5c6478;
  background: #f4f6fb;
  border: 1px solid #e8ebf5;
  border-radius: 6px;
  padding: 3px 7px;
}
.fc-palette-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid #eef1f8;
}
.fc-palette-tabs button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #5c6478;
  cursor: pointer;
}
.fc-palette-tabs button.is-active {
  background: #fff0ef;
  color: #E53935;
}
.fc-palette-list {
  overflow: auto;
  padding: 8px;
  flex: 1;
}
.fc-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: inherit;
  text-decoration: none !important;
  font: inherit;
}
.fc-palette-item:hover,
.fc-palette-item.is-active {
  background: #f4f6fb;
}
.fc-palette-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #fff5f5;
  font-size: 16px;
  flex: 0 0 auto;
}
.fc-palette-text { min-width: 0; flex: 1; }
.fc-palette-text strong {
  display: block;
  font-size: 14px;
  color: #10172f;
}
.fc-palette-text span {
  display: block;
  font-size: 12px;
  color: #5c6478;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fc-palette-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.fc-palette-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  background: #E53935;
  border-radius: 6px;
  padding: 3px 7px;
}
.fc-fav-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #c5cad8;
  padding: 4px;
}
.fc-fav-btn.is-on { color: #E53935; }
.fc-palette-empty {
  padding: 28px 16px;
  text-align: center;
  color: #5c6478;
  font-size: 14px;
  font-weight: 600;
}
.fc-palette-hint {
  padding: 8px 14px;
  border-top: 1px solid #eef1f8;
  color: #8a93a8;
  font-size: 11px;
  font-weight: 600;
}

.fc-related {
  padding: 36px 0;
  background: #f7f8fc;
}
.fc-related-inner {
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 28px rgba(17, 24, 47, 0.04);
}
.fc-related-head { margin-bottom: 16px; }
.fc-related-head h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  color: #10172f;
}
.fc-related-head p {
  margin: 0;
  color: #5c6478;
  font-size: 14px;
}
.fc-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.fc-related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e8ebf5;
  border-radius: 14px;
  text-decoration: none !important;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.fc-related-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(17, 24, 47, 0.08);
}
.fc-related-icon { font-size: 20px; }
.fc-related-card strong {
  font-size: 14px;
  font-weight: 800;
  color: #10172f;
}
.fc-related-card span {
  font-size: 12px;
  color: #5c6478;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fc-related-more {
  display: inline-flex;
  margin-top: 14px;
  color: #E53935;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none !important;
}

.fc-hub-panel {
  margin: 0 0 28px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e8ebf5;
  border-radius: 16px;
}
.fc-hub-panel h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #10172f;
}
.fc-hub-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fc-hub-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #e8ebf5;
  background: #f7f8fc;
  color: #10172f;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.fc-hub-chip:hover { border-color: #f0c7c6; background: #fff7f6; }
.fc-tool-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.fc-launcher-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #10172f;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(16, 23, 47, 0.28);
}
.fc-launcher-fab kbd {
  font-size: 10px;
  background: rgba(255,255,255,.15);
  border-radius: 4px;
  padding: 2px 5px;
}

@media (max-width: 991px) {
  .fc-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .fc-related-grid { grid-template-columns: 1fr; }
  .fc-launcher-fab span { display: none; }
}
