#kt-v1 {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --blue: #2563eb;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #ef4444;
  --dark: #020617;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 12px;
  color: var(--text);
  font-family: SF Pro Display,SF Pro Icons,Helvetica Neue,Helvetica,Arial,sans-serif;
}
#kt-v1 * {
  box-sizing: border-box;
}
#kt-v1 h1,
#kt-v1 h2,
#kt-v1 h3,
#kt-v1 p {
  margin: 0;
}
#kt-v1 button,
#kt-v1 select,
#kt-v1 input {
  font-family: inherit;
}
#kt-v1 button {
  -webkit-tap-highlight-color: transparent;
}
#kt-v1 .hero {
  margin-bottom: 18px;
  text-align: center;
}
#kt-v1 .hero h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.15;
}
#kt-v1 .btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  color: var(--text);
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
}
#kt-v1 .profile-thumb-placeholder {
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.85;
}
#kt-v1 #soundProfileSelect {
  flex: 1;
  min-width: 220px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d9dee7;
  border-radius: 12px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
}
#kt-v1 #soundProfileSelect:hover {
  border-color: #bfc9d8;
}
#kt-v1 #soundProfileSelect:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
#kt-v1 #soundProfileSelect:disabled {
  opacity: 0.65;
  cursor: wait;
}

#kt-v1 .result-panel {
  margin-bottom: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
#kt-v1 .result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
#kt-v1 .result-head h3 {
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
}
#kt-v1 .result-head p {
  color: var(--muted);
  font-size: 13px;
}
#kt-v1 .clear-btn {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  padding: 9px 12px;
  font-weight: bold;
  cursor: pointer;
}
#kt-v1 .result-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 10px;
}
#kt-v1 .progress-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px 14px;
  min-height: 86px;
}
#kt-v1 .progress-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #0f172a;
  font-size: 15px;
  font-weight: bold;
}
#kt-v1 .progress-headline b {
  font-size: 16px;
  color: #0f172a;
}
#kt-v1 .progress-headline em {
  flex-shrink: 0;
  color: #2563eb;
  font-size: 14px;
  font-style: normal;
  font-weight: bold;
}
#kt-v1 .progress-bar {
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
#kt-v1 .progress-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #2563eb;
  transition: width 0.2s ease;
}
#kt-v1 .result-stat {
  min-height: 86px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}
#kt-v1 .stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
#kt-v1 .stat-head span:last-child,
#kt-v1 .result-stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: bold;
}
#kt-v1 .result-stat strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}
#kt-v1 .result-stat.ok strong {
  color: #22c55e;
}
#kt-v1 .result-stat.active strong {
  color: var(--blue);
}
#kt-v1 .result-stat.warn strong {
  color: #f97316;
}
#kt-v1 .result-stat.bad strong {
  color: var(--red);
}
#kt-v1 .result-stat.matrix strong {
  color: #c607c6;
}
#kt-v1 .progress-bar {
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
  width: 100%;
  height: 8px;
}
#kt-v1 .progress-bar i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: #22c55e;
  transition: width 0.2s ease;
}
#kt-v1 .problem-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
#kt-v1 .problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

#kt-v1 .issue {
  display: grid;
  grid-template-columns: 92px 1fr 20px;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #ffffff;
  transition: 0.15s ease;
}
#kt-v1 .issue:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}
#kt-v1 .issue.warn {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fffaf3 0%, #fff7ed 100%);
}
#kt-v1 .issue.bad {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff6f6 0%, #fef2f2 100%);
}
#kt-v1 .issue b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  font-size: 15px;
  font-weight: bold;
  white-space: nowrap;
}
#kt-v1 .issue span {
  color: #1e293b;
  font-size: 15px;
  font-weight: bold;
  line-height: 1.35;
}
#kt-v1 .issue::after {
  content: "›";
  color: #94a3b8;
  font-size: 28px;
  line-height: 1;
}

#kt-v1 .empty {
  padding: 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
#kt-v1 .card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}
#kt-v1 .keyboard-head {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}
#kt-v1 .layout-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef2f7;
}
#kt-v1 .layout-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  padding: 8px 30px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}
#kt-v1 .layout-btn.is-active {
  border-color: #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.06);
}
#kt-v1 .keyboard-shell{
  min-width: 0;
}

#kt-v1 .keyboard-shell {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  transition: height 0.15s ease;
  width: 100%;
  max-width: 100%;
}
#kt-v1 .keyboard {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
}
#kt-v1 .board {
  position: relative;
  flex: 0 0 auto;
  transform-origin: top center;
}
#kt-v1 .key {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid #d4dbe7;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  font-weight: bold;
  box-shadow: inset 0 -1px 0 rgba(15, 23, 42, 0.06);
  transition: 0.08s ease;
}
#kt-v1 .key.active {
  border-color: #93c5fd;
  background: #eff6ff;
  outline: 2px solid rgba(37, 99, 235, 0.12);
}
#kt-v1 .key.ok {
  border-color: #29ee6e;
  background: #f0fdf4;
}
#kt-v1 .key.warn {
  border-color: #fed7aa;
  background: #fff7ed;
}
#kt-v1 .key.bad {
  border-color: #fecaca;
  background: #fef2f2;
}
#kt-v1 .key.matrix {
  border-color: #fdba74;
  background: #c607c6;
  color: #c607c6;
}
#kt-v1 .toast-root {
  position: fixed;
  top: 150px;
  right: 18px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
#kt-v1 .toast {
  width: min(360px, calc(100vw - 36px));
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
  pointer-events: auto;
  transform: translateX(14px);
  opacity: 0;
  animation: ktToastIn 0.22s ease forwards;
}
#kt-v1 .toast-body {
  display: flex;
  gap: 12px;
  padding: 14px 15px 12px;
}
#kt-v1 .toast-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 18px;
}
#kt-v1 .toast-title {
  margin: 0 0 3px;
  color: #0f172a;
  font-size: 14px;
  font-weight: bold;
}
#kt-v1 .toast-message {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
#kt-v1 .toast-progress {
  height: 4px;
  width: 100%;
  background: #dbeafe;
  overflow: hidden;
}
#kt-v1 .toast-progress i {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  animation: ktToastProgress var(--toast-duration, 5s) linear forwards;
}
#kt-v1 .toast.success {
  border-color: #bbf7d0;
}
#kt-v1 .toast.success .toast-icon {
  background: #ecfdf5;
  color: #16a34a;
}
#kt-v1 .toast.success .toast-progress {
  background: #dcfce7;
}
#kt-v1 .toast.error {
  border-color: #fecaca;
}
#kt-v1 .toast.error .toast-icon {
  background: #fef2f2;
  color: #dc2626;
}
@keyframes ktToastIn {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes ktToastOut {
  to {
    transform: translateX(14px);
    opacity: 0;
  }
}
@keyframes ktToastProgress {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}

#kt-v1 .seo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}
#kt-v1 .seo-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #ffffff;
}
#kt-v1 .seo-card h2 {
  margin-bottom: 8px;
  font-size: 18px;
}
#kt-v1 .seo-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

#kt-v1 .profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 14px;
  margin-top: 12px;
  color: #64748b;
  font-size: 13px;
}
#kt-v1 .profile-meta-grid b {
  color: #0f172a;
}
@media (max-width: 900px) {
  #kt-v1 .profile-meta-grid {
    grid-template-columns: 1fr;
  }
}
#kt-v1 .keyboard-head {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  justify-content: stretch;
  margin-bottom: 16px;
}
#kt-v1 .layout-control {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: start;
  justify-content: stretch;
  min-width: 0;
  padding-top: 2px;
}
#kt-v1 .layout-control > span,
#kt-v1 .layout-title {
  display: block;
  color: #334155;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
  text-align: center;
}
#kt-v1 .layout-control .layout-switch {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 5px;
}
#kt-v1 .layout-control .layout-btn {
  width: 100%;
  padding: 10px 12px;
  text-align: center;
}
#kt-v1 .profile {
  min-width: 0;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
#kt-v1 .profile-main {
  display: grid;
  grid-template-columns: 74px minmax(0, 1.25fr) minmax(260px, 0.9fr) 58px 98px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}
#kt-v1 .profile-img {
  display: block;
  width: 74px;
  height: 52px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}
#kt-v1 .profile-info {
  min-width: 0;
}
#kt-v1 .profile-info strong,
#kt-v1 .profile-info small {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#kt-v1 .profile-info strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.2;
}
#kt-v1 .profile-info small {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}
#kt-v1 .profile-info small b {
  color: #334155;
}
#kt-v1 .profile-select,
#kt-v1 .profile-sort,
#kt-v1 .profile-search input,
#kt-v1 .profile #soundProfileSelect {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 12px;
  font-size: 13px;
  font-weight: bold;
  outline: none;
}
#kt-v1 .profile-select:focus,
#kt-v1 .profile-sort:focus,
#kt-v1 .profile-search input:focus,
#kt-v1 .profile #soundProfileSelect:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}
#kt-v1 .profile-like,
#kt-v1 .profile-toggle {
  height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  padding: 0 13px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
#kt-v1 .profile-like {
  width: 58px;
  padding: 0;
  color: #e11d48;
}
#kt-v1 .profile-like.is-liked {
  border-color: #f9a8d4;
  background: #fdf2f8;
  color: #db2777;
}
#kt-v1 .profile-like.is-loading {
  pointer-events: none;
  opacity: 0.8;
}
#kt-v1 .profile-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}
#kt-v1 .profile-pagination button {
  height: 34px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  font-weight: bold;
  cursor: pointer;
}
#kt-v1 .profile-pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
#kt-v1 .profile-pagination span {
  color: #64748b;
  font-size: 13px;
  font-weight: bold;
}
#kt-v1 .like-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 14px;
}
#kt-v1 .profile-like.is-loading .like-btn__icon {
  font-size: 0;
}
#kt-v1 .profile-like.is-loading .like-btn__icon::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 999px;
  animation: ktLikeSpin 0.7s linear infinite;
}
#kt-v1 .profile-toggle {
  width: 98px;
  background: #f8fafc;
  color: #334155;
}
#kt-v1 .profile-toggle i {
  font-style: normal;
  font-size: 11px;
  color: #475569;
}
@keyframes ktLikeSpin {
  to {
    transform: rotate(360deg);
  }
}
#kt-v1 .profile-detail {
  display: none;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
}
#kt-v1 .profile-detail.is-open {
  display: block;
}
#kt-v1 .profile-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 10px;
  align-items: center;
}
#kt-v1 .profile-search {
  position: relative;
  display: block;
}
#kt-v1 .profile-search span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}
#kt-v1 .profile-search input {
  padding-left: 36px;
}
#kt-v1 .profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
#kt-v1 .profile-chips button {
  height: 30px;
  border: 1px solid #dbe3ef;
  border-radius: 9px;
  background: #ffffff;
  color: #475569;
  padding: 0 11px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
}
#kt-v1 .profile-chips button.is-active {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #2563eb;
}
#kt-v1 .profile-results {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  padding: 0 0 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
}
#kt-v1 .profile-results::-webkit-scrollbar {
  height: 8px;
}
#kt-v1 .profile-results::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
#kt-v1 .profile-card {
  flex: 0 0 184px;
  width: 184px;
  min-height: 236px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 96px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  transition: 0.15s ease;
}
#kt-v1 .profile-card:hover,
#kt-v1 .profile-card.is-selected {
  border-color: #60a5fa;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}
#kt-v1 .profile-card-img {
  width: 100%;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: #e2e8f0;
}
#kt-v1 .profile-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#kt-v1 .profile-thumb-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #64748b;
  font-size: 26px;
}
#kt-v1 .profile-card-body {
  min-width: 0;
}
#kt-v1 .profile-card-body b,
#kt-v1 .profile-card-body small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}
#kt-v1 .profile-card-body b {
  -webkit-line-clamp: 2;
  min-height: 32px;
  color: #1d4ed8;
  font-size: 13px;
  line-height: 1.25;
}
#kt-v1 .profile-card-body small {
  -webkit-line-clamp: 2;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  line-height: 1.3;
}
#kt-v1 .profile-card-body em {
  display: block;
  margin-top: 5px;
  color: #16a34a;
  font-size: 11px;
  font-style: normal;
  font-weight: bold;
  line-height: 1.4;
  white-space: normal;
}
#kt-v1 .profile-card-like {
  align-self: end;
  color: #e11d48;
  font-size: 12px;
  font-weight: bold;
}
#kt-v1 .profile-empty {
  flex: 1 1 100%;
  width: 100%;
  min-height: 170px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: #ffffff;
  color: #64748b;
  text-align: center;
  padding: 15px;
}
#kt-v1 .profile-empty div {
  font-size: 36px;
}
#kt-v1 .profile-empty b {
  color: #0f172a;
}
#kt-v1 .profile-empty button {
  margin-top: 4px;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  color: #334155;
  padding: 9px 12px;
  font-weight: bold;
  cursor: pointer;
}
#kt-v1 .profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 18px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eef2f7;
}
@media (max-width: 1180px) {
  #kt-v1 .keyboard-head {
    grid-template-columns: 1fr;
  }
  #kt-v1 .layout-control {
    max-width: 360px;
    margin: 0 auto;
  }
  #kt-v1 .profile-main {
    grid-template-columns: 74px minmax(0, 1fr) 58px 98px;
  }
  #kt-v1 .profile-select,
  #kt-v1 .profile #soundProfileSelect {
    grid-column: 2 / -1;
  }
}
@media (max-width: 720px) {
  #kt-v1 .profile-main,
  #kt-v1 .profile-search-row,
  #kt-v1 .profile-meta {
    grid-template-columns: 1fr;
  }
  #kt-v1 .layout-control {
    align-items: stretch;
  }
  #kt-v1 .profile-img {
    width: 100%;
    height: 150px;
  }
  #kt-v1 .profile-select,
  #kt-v1 .profile #soundProfileSelect {
    grid-column: auto;
  }
  #kt-v1 .profile-like,
  #kt-v1 .profile-toggle {
    width: 100%;
    min-height: 42px;
  }
}

#kt-v1 .profile-spice-loading-fx {
  position: absolute;
  inset: 0;
  z-index: 50;
  overflow: hidden;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(3px);
  pointer-events: none;
  opacity: 1;
  transition: opacity .32s ease, transform .32s ease;
}

#kt-v1 .profile-spice-loading-fx[hidden] {
  display: none;
}

#kt-v1 .profile-spice-loading-fx.is-closing {
  opacity: 0;
  transform: scale(1.025);
}

#kt-v1 .profile-spice-hand {
  position: absolute;
  bottom: 60%;
  left: 48%;
  z-index: 3;
  font-size: 88px;
  transform-origin: 70% 80%;
  filter: drop-shadow(0 18px 24px rgba(15, 23, 42, .22));
  animation: profileSpiceHandShake .62s infinite ease-in-out;
}

#kt-v1 .profile-spice-particles {
  position: absolute;
  top: 26%;
  left: 48%;
  width: 260px;
  height: 330px;
  transform: translateX(-50%);
  z-index: 2;
}

#kt-v1 .profile-spice-particle {
  position: absolute;
  top: 0;
  left: 45%;
  font-size: var(--size, 12px);
  color: #f59e0b;
  opacity: 0;
  text-shadow:
    0 0 8px rgba(245, 158, 11, .55),
    0 0 18px rgba(251, 191, 36, .35);
  animation:
    profileSpiceFall var(--dur, 1.2s) infinite ease-in,
    profileSpiceTwinkle .72s infinite ease-in-out;
  animation-delay: var(--delay, 0s);
}

#kt-v1 .profile-spice-panel {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  width: min(560px, calc(100% - 48px));
  min-height: 86px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border: 1px solid rgba(226, 232, 240, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 50px rgba(15, 23, 42, .14);
}

#kt-v1 .profile-spice-icon,
#kt-v1 .profile-spice-bowl {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 34px;
}

#kt-v1 .profile-spice-title {
  font-size: 16px;
  font-weight: bold;
  color: #0f172a;
  margin-bottom: 5px;
}

#kt-v1 .profile-spice-sub {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
}

#kt-v1 .profile-spice-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

#kt-v1 .profile-spice-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  transition: width .18s ease;
}

#kt-v1 .profile-spice-loading-fx.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 55% 52%, rgba(251, 191, 36, .38), transparent 38%);
  animation: profileSpiceFlash .42s ease-out forwards;
  z-index: 1;
}

@keyframes profileSpiceHandShake {
  0%, 100% {
    transform: translateX(-50%) rotate(-14deg);
  }
  50% {
    transform: translateX(-50%) rotate(18deg) translateY(8px);
  }
}

@keyframes profileSpiceFall {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(.5) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform:
      translate(var(--dx, 0px), var(--dy, 230px))
      scale(var(--scale, .55))
      rotate(var(--rot, 180deg));
  }
}

@keyframes profileSpiceTwinkle {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.8);
  }
}

@keyframes profileSpiceFlash {
  0% {
    opacity: 0;
    transform: scale(.9);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
#kt-v1 .profile-card{position:relative;}
#kt-v1 .profile-card-img{position:relative;}
#kt-v1 .profile-preview-btn{position:absolute;top:18px;right:18px;z-index:3;width:34px;height:34px;display:grid;place-items:center;border:1px solid rgba(226,232,240,.96);border-radius:999px;background:rgba(255,255,255,.94);color:#0f172a;font-size:13px;font-weight:bold;line-height:1;cursor:pointer;box-shadow:0 8px 18px rgba(15,23,42,.16);backdrop-filter:blur(8px);}
#kt-v1 .profile-preview-btn:hover{border-color:#93c5fd;color:#1d4ed8;transform:translateY(-1px);}
#kt-v1 .profile-preview-btn.is-loading,#kt-v1 .profile-preview-btn.is-playing{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8;}
#kt-v1 .profile-preview-btn.is-loading{pointer-events:none;font-size:0;}
#kt-v1 .profile-preview-btn.is-loading::before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:999px;animation:ktLikeSpin .7s linear infinite;}
#kt-v1 .profile-preview-popover{display:none;margin-top:8px;padding:10px 11px;border:1px solid #bfdbfe;border-radius:13px;background:linear-gradient(180deg,#eff6ff,#f8fbff);color:#1e3a8a;font-size:12px;line-height:1.4;box-shadow:inset 0 1px 0 rgba(255,255,255,.85);}
#kt-v1 .profile-card.is-previewing .profile-preview-popover{display:block;}
#kt-v1 .profile-preview-popover b{display:flex;align-items:center;gap:6px;margin-bottom:6px;color:#1d4ed8;font-size:12px;font-weight:bold;}
#kt-v1 .profile-preview-popover span{display:block;color:#334155;}
#kt-v1 .profile-preview-progress{height:5px;margin-top:9px;border-radius:999px;background:#dbeafe;overflow:hidden;}
#kt-v1 .profile-preview-progress i{display:block;width:0%;height:100%;border-radius:inherit;background:#2563eb;transition:width .12s linear;}
#kt-v1 .profile-preview-time{display:block!important;margin-top:5px;color:#64748b!important;font-size:11px!important;font-weight:bold;}
#kt-v1 .profile-card-footer{align-self:end;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;width:100%;}
#kt-v1 .profile-card-like,#kt-v1 .profile-card-play-count{display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:bold;line-height:1;}
#kt-v1 .profile-card-like{color:#e11d48;}
#kt-v1 .profile-card-play-count{margin-left:auto;color:#64748b;}
#kt-v1 .profile-card-play-count::first-letter{color:#2563eb;}
.kt-library-banner{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:22px;
  margin:0 auto 18px;
  padding:26px 32px;
  border-radius:22px;
  background:
    radial-gradient(circle at 12% 50%, var(--kicap-color-accent-subtle), transparent 26%),
    linear-gradient(135deg,var(--kicap-surface-elevated) 0%,var(--kicap-surface) 52%,var(--kicap-surface-elevated) 100%);
  border:1px solid var(--kicap-border);
  box-shadow:var(--kicap-shadow-soft);
  color:var(--kicap-text);
}

.kt-library-banner__glow{
  position:absolute;
  right:-90px;
  bottom:-110px;
  width:380px;
  height:260px;
  background:radial-gradient(circle, var(--kicap-color-accent-subtle), transparent 68%);
  pointer-events:none;
}

.kt-library-banner__icon{
  position:relative;
  z-index:1;
  width:74px;
  height:74px;
  display:grid;
  place-items:center;
  border-radius:24px;
  font-size:34px;
  background:var(--kicap-color-accent-subtle);
  border:1px solid var(--kicap-border-strong);
  box-shadow:var(--kicap-shadow-soft);
  color:var(--kicap-color-accent);
}

.kt-library-banner__content,
.kt-library-banner__stats,
.kt-library-banner__btn{
  position:relative;
  z-index:1;
}

.kt-library-banner__eyebrow{
  display:inline-flex;
  padding:5px 11px;
  margin-bottom:8px;
  border-radius:999px;
  background:var(--kicap-color-accent-subtle);
  color:var(--kicap-color-accent-strong);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
}

.kt-library-banner h2{
  margin:0 0 8px;
  font-size:28px;
  line-height:1.12;
  color:var(--kicap-text);
}

.kt-library-banner p{
  max-width:520px;
  margin:0;
  color:var(--kicap-text-muted);
  line-height:1.55;
  font-size:15px;
}

.kt-library-banner p b{
  color:var(--kicap-text);
}

.kt-library-banner__stats{
  display:flex;
  gap:18px;
  padding:0 10px;
}

.kt-library-banner__stats span{
  min-width:88px;
  color:var(--kicap-text-muted);
  font-size:13px;
  line-height:1.35;
}

.kt-library-banner__stats b{
  display:block;
  color:var(--kicap-text);
  font-size:18px;
  margin-bottom:2px;
}

.kt-library-banner__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:230px;
  height:52px;
  padding:0 22px;
  border-radius:13px;
  background:linear-gradient(135deg,var(--kicap-color-accent),var(--kicap-color-accent-strong));
  color:var(--kicap-paper);
  font-weight:800;
  text-decoration:none;
  box-shadow:var(--kicap-shadow-soft);
  transition:transform .18s ease, box-shadow .18s ease;
}

.kt-library-banner__btn:hover{
  transform:translateY(-1px);
  box-shadow:var(--kicap-shadow-elevated);
}

@media (max-width:900px){
  .kt-library-banner{
    grid-template-columns:auto 1fr;
    padding:22px;
  }

  .kt-library-banner__stats{
    grid-column:1 / -1;
    padding:0;
  }

  .kt-library-banner__btn{
    grid-column:1 / -1;
    width:100%;
  }
}

/* Human Frame v2 palette only — legacy Keytest geometry and states stay intact. */
#kt-v1 {
  --bg: var(--kicap-page);
  --card: var(--kicap-surface);
  --text: var(--kicap-text);
  --muted: var(--kicap-text-muted);
  --line: var(--kicap-border);
  --blue: var(--kicap-color-accent);
  --green: var(--kicap-status-success);
  --orange: var(--kicap-status-warning);
  --red: var(--kicap-status-danger);
  --dark: var(--kicap-surface-inverse);
  color: var(--kicap-text);
  font-family: var(--kicap-font-sans);
}
#kt-v1 :is(.result-panel,.card,.progress-card,.result-stat,.profile,.profile-detail,.seo-card,.profile-card,.profile-empty){border-color:var(--kicap-border);background:var(--kicap-surface);color:var(--kicap-text)}
#kt-v1 :is(button,input,select,.clear-btn,.btn,.profile-toggle,.profile-empty button,.profile-chips button,.profile-pagination button){border-color:var(--kicap-border);background:var(--kicap-surface-elevated);color:var(--kicap-text)}
#kt-v1 :is(.result-head p,.profile-info small,.profile-card-body small,.profile-pagination span,.profile-meta,.profile-empty,.profile-spice-sub){color:var(--kicap-text-muted)}
#kt-v1 .hero p{color:var(--kicap-text-muted)}
#kt-v1 :is(input,select):focus-visible,#kt-v1 button:focus-visible,#kt-v1 a:focus-visible{outline:var(--kicap-focus-width) solid var(--kicap-focus-ring);outline-offset:var(--kicap-focus-offset);box-shadow:0 0 0 4px var(--kicap-focus-shadow)}
#kt-v1 :is(.progress-bar,.profile-spice-bar){background:var(--kicap-skeleton)}#kt-v1 :is(.progress-bar i,.profile-spice-bar span){background:var(--kicap-color-accent)}
#kt-v1 .result-stat.ok strong,#kt-v1 .profile-card-body em{color:var(--kicap-status-success)}#kt-v1 .result-stat.active strong{color:var(--kicap-color-accent-strong)}#kt-v1 .result-stat.warn strong{color:var(--kicap-status-warning)}#kt-v1 .result-stat.bad strong{color:var(--kicap-status-danger)}#kt-v1 .result-stat.matrix strong{color:var(--kicap-status-info)}
#kt-v1 .keyboard-shell{background:var(--kicap-surface-elevated)}#kt-v1 .key{border-color:var(--kicap-border-strong);background:var(--kicap-surface-elevated);color:var(--kicap-text)}#kt-v1 .key.ok{border-color:var(--kicap-status-success);background:var(--kicap-status-success-subtle);color:var(--kicap-status-success)}#kt-v1 .key.active{border-color:var(--kicap-color-accent);background:var(--kicap-color-accent);color:var(--kicap-text-inverse)}#kt-v1 .key.warn{border-color:var(--kicap-status-warning);background:var(--kicap-status-warning-subtle);color:var(--kicap-status-warning)}#kt-v1 .key.bad{border-color:var(--kicap-status-danger);background:var(--kicap-status-danger-subtle);color:var(--kicap-status-danger)}#kt-v1 .key.matrix{border-color:var(--kicap-status-info);background:var(--kicap-status-info-subtle);color:var(--kicap-status-info)}
#kt-v1 :is(.profile-card:hover,.profile-card.is-selected,.profile-chips button.is-active,.profile-preview-btn:hover,.profile-preview-btn.is-loading,.profile-preview-btn.is-playing){border-color:var(--kicap-color-accent);background:var(--kicap-color-accent-subtle);color:var(--kicap-color-accent-strong)}#kt-v1 .profile-card-body b{color:var(--kicap-text)}#kt-v1 :is(.profile-card-img,.profile-thumb-placeholder){background:var(--kicap-skeleton)}#kt-v1 .profile-card-like{color:var(--kicap-status-danger)}#kt-v1 .profile-preview-btn{background:var(--kicap-surface-elevated);color:var(--kicap-text)}
#kt-v1 .profile-spice-loading-fx{background:color-mix(in srgb,var(--kicap-page) 80%,transparent)}#kt-v1 .profile-spice-panel{border-color:var(--kicap-border);background:var(--kicap-surface-elevated);box-shadow:var(--kicap-shadow-elevated)}#kt-v1 .profile-spice-title{color:var(--kicap-text)}
@media (prefers-reduced-motion:reduce){#kt-v1 *,#kt-v1 *::before,#kt-v1 *::after{animation-duration:.01ms;animation-iteration-count:1;transition-duration:.01ms}}