.kol-comments-profile { display: grid; gap: 18px; color: var(--foreground); }
.kol-account-login__profile > .kol-account-login__comments { display: grid; gap: 16px; margin-top: 4px; padding-top: 22px; border-top: 1px solid var(--border); }
.kol-comments-profile__section-head { display: grid; gap: 4px; }
.kol-comments-profile__section-head h2 { margin: 0; color: var(--foreground); font-size: 18px; }
.kol-comments-profile__section-head p { margin: 0; color: var(--muted-foreground); font-size: 13px; }
.kol-comments-profile__editor { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.kol-comments-profile__editor-heading h3 { margin: 0; color: var(--foreground); font-size: 16px; }
.kol-comments-profile__editor-heading p { margin: 4px 0 0 !important; color: var(--muted-foreground); font-size: 13px; }
.kol-comments-profile__editor-fields { display: grid; grid-template-columns: minmax(230px, .8fr) minmax(260px, 1.2fr); gap: 16px; }
.kol-comments-profile__avatar-field { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 12px; min-width: 0; cursor: pointer; }
.kol-comments-profile__editor-avatar { display: grid; width: 52px; height: 52px; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--muted); color: var(--muted-foreground); font-weight: 800; }
.kol-comments-profile__editor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.kol-comments-profile__avatar-field > span { display: grid; min-width: 0; gap: 3px; }
.kol-comments-profile__avatar-field small, .kol-comments-profile__name-field small { color: var(--muted-foreground); font-size: 11px; }
.kol-comments-profile__avatar-field input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.kol-comments-profile__name-field { display: grid; gap: 6px; color: var(--foreground); font-size: 13px; font-weight: 700; }
.kol-comments-profile__name-field input { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; outline: none; background: var(--background); color: var(--foreground); font: inherit; direction: ltr; }
.kol-comments-profile__name-field input:focus { border-color: var(--ring); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 24%, transparent); }
.kol-comments-profile__editor-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kol-comments-profile__editor-actions button { padding: 9px 15px; border: 0; border-radius: 9px; background: var(--primary); color: var(--primary-foreground); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.kol-comments-profile__editor-actions button:disabled { opacity: .65; cursor: wait; }
.kol-comments-profile__editor-message { margin: 0 !important; font-size: 12px; }
.kol-comments-profile__editor-message.is-success { color: var(--starless-success); }
.kol-comments-profile__editor-message.is-error { color: var(--destructive); }

/* Unified account profile: one hero, compact identities, then activity. */
body.kol-account-login .kol-account-login__identity {
  grid-template-columns: 80px minmax(0, 1fr) auto !important;
  gap: 18px !important;
  padding: 24px !important;
  border-color: color-mix(in srgb, var(--primary-foreground) 18%, transparent) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, var(--background))) !important;
}
body.kol-account-login .kol-account-login__avatar-wrap,
body.kol-account-login img.kol-account-login__avatar { width: 80px !important; min-width: 80px !important; max-width: 80px !important; height: 80px !important; min-height: 80px !important; max-height: 80px !important; }
body.kol-account-login .kol-account-login__identity-copy h2 { margin: 3px 0 !important; font-size: clamp(20px, 3vw, 26px) !important; }
body.kol-account-login .kol-account-login__member-badge { align-self: center; }

body.kol-account-login .kol-account-login__account-connections { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
body.kol-account-login .kol-account-login__connection {
  min-height: 72px;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  gap: 11px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  background: color-mix(in srgb, var(--card) 88%, var(--secondary)) !important;
  box-shadow: none !important;
  transform: none !important;
  transition: none !important;
}
body.kol-account-login img.kol-account-login__connection-avatar { width: 42px !important; min-width: 42px !important; max-width: 42px !important; height: 42px !important; min-height: 42px !important; max-height: 42px !important; }
body.kol-account-login .kol-account-login__connection--link:hover { border-color: var(--border) !important; background: color-mix(in srgb, var(--card) 88%, var(--secondary)) !important; transform: none !important; }

body.kol-account-login .kol-account-login__profile-summary { padding: 18px !important; border-radius: 14px !important; background: var(--card) !important; }
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__section-title { margin-bottom: 14px; font-size: 16px; }
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta > div { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(0, 1.25fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta dt,
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta dd { min-width: 0; }
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta dd { overflow-wrap: anywhere; }
body.kol-account-login .kol-account-login__profile-summary [data-kol-profile-email-display] { direction: ltr; text-align: start; unicode-bidi: plaintext; }
body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta > div:nth-last-child(-n + 2) { border-bottom: 0; }

.kol-account-login__comments-state { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--starless-success) 30%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--starless-success) 8%, var(--card)); }
.kol-account-login__comments-state p { margin: 0 !important; }
.kol-account-login__comments-state .kol-account-login__hint { margin-inline-start: auto !important; }
.kol-comments-profile__header { display: flex; align-items: flex-end; gap: 18px; min-height: 130px; padding: 24px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 16%, var(--card)), var(--card)); }
.kol-comments-profile__avatar { width: 96px; height: 96px; flex: 0 0 96px; border: 4px solid var(--card); border-radius: 50%; background: var(--muted); object-fit: cover; }
.kol-comments-profile__avatar--fallback { display: grid; place-items: center; color: var(--muted-foreground); font-size: 24px; font-weight: 700; }
.kol-comments-profile__identity { min-width: 0; flex: 1; }
.kol-comments-profile__identity h2 { margin: 0; color: var(--foreground); font-size: 26px; }
.kol-comments-profile__identity p { margin: 4px 0 0; color: var(--muted-foreground); }
.kol-comments-profile__role { padding: 5px 10px; border-radius: 999px; background: var(--secondary); color: var(--secondary-foreground); font-size: 12px; font-weight: 700; }
.kol-comments-profile__stats { display: grid; grid-template-columns: repeat(5, 1fr); overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.kol-comments-profile__stat { display: grid; gap: 3px; padding: 14px 10px; text-align: center; }
.kol-comments-profile__stat + .kol-comments-profile__stat { border-inline-start: 1px solid var(--border); }
.kol-comments-profile__stat strong { color: var(--foreground); font-size: 18px; }
.kol-comments-profile__stat span { color: var(--muted-foreground); font-size: 11px; }
.kol-comments-profile__tabs { display: flex; width: 100%; gap: 0; border-bottom: 1px solid var(--border); }
.kol-comments-profile__tabs button { flex: 1 1 0; min-width: 0; margin: 0; padding: 11px 8px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted-foreground); font: inherit; font-size: 13px; font-weight: 700; text-align: center; cursor: pointer; }
.kol-comments-profile__tabs button.is-active { border-bottom-color: var(--primary); color: var(--foreground); }
.kol-comments-profile__panel { display: none; gap: 12px; }
.kol-comments-profile__panel.is-active { display: grid; }
.kol-comments-profile__activity { display: grid; gap: 9px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.kol-comments-profile__activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kol-comments-profile__activity-head strong { color: var(--foreground); font-size: 13px; }
.kol-comments-profile__activity-head time { color: var(--muted-foreground); font-size: 11px; }
.kol-comments-profile__activity p { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--foreground); line-height: 1.75; white-space: pre-line; }
.kol-comments-profile__stars { color: var(--rating); letter-spacing: 2px; }
.kol-comments-profile__titles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.kol-comments-profile__title-card { display: flex; min-width: 0; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); }
.page .kol-comments-profile__title-card img,
.kol-comments-profile__title-card img { display: block; width: 54px !important; min-width: 54px; max-width: 54px !important; height: 72px !important; min-height: 72px; max-height: 72px; flex: 0 0 54px; margin: 0 !important; border-radius: 7px; object-fit: cover; }
.kol-comments-profile__title-card div { display: grid; min-width: 0; gap: 4px; }
.kol-comments-profile__title-card strong { overflow: hidden; color: var(--foreground); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.kol-comments-profile__title-card small, .kol-comments-profile__message { color: var(--muted-foreground); }
.kol-comments-profile__message { margin: 0; padding: 18px; text-align: center; }
.kol-comments-profile-shortcode { width: 100%; max-width: none; margin-inline: 0; box-sizing: border-box; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--secondary); }

@media (min-width: 900px) {
  .kol-comments-profile-shortcode {
    max-width: 1180px;
    margin-inline: auto;
    padding-inline: clamp(24px, 4vw, 56px);
  }
}

/* Public translator profile. */
.kol-translator-profile { display: grid; gap: 22px; }
.kol-translator-profile__hero { display: flex; min-height: 190px; align-items: flex-end; gap: 22px; padding: 32px; border: 1px solid var(--border); border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 20%, var(--card)), var(--card) 58%); box-shadow: 0 14px 40px color-mix(in srgb, var(--foreground) 8%, transparent); }
.kol-translator-profile__hero .kol-comments-profile__avatar { width: 116px; height: 116px; flex-basis: 116px; }
.kol-translator-profile__hero h1 { margin: 2px 0 4px; color: var(--foreground); font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.kol-translator-profile__eyebrow { display: inline-flex; padding: 5px 11px; border-radius: 999px; background: var(--primary); color: var(--primary-foreground); font-size: 12px; font-weight: 800; }
.kol-translator-profile__stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.kol-translator-profile__stats > div { display: grid; gap: 4px; padding: 16px 12px; text-align: center; }
.kol-translator-profile__stats > div + div { border-inline-start: 1px solid var(--border); }
.kol-translator-profile__stats dt { color: var(--muted-foreground); font-size: 12px; }
.kol-translator-profile__stats dd { margin: 0; color: var(--foreground); font-size: 21px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kol-translator-profile .kol-comments-profile__tabs { position: sticky; z-index: 5; top: 0; border: 1px solid var(--border); border-radius: 14px; background: color-mix(in srgb, var(--background) 92%, transparent); backdrop-filter: blur(10px); }
.kol-translator-profile .kol-comments-profile__tabs button { min-height: 48px; }
.kol-translator-profile__works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kol-translator-profile__work { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); color: var(--foreground) !important; text-decoration: none !important; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.kol-translator-profile__work:hover, .kol-translator-profile__work:focus-visible { border-color: var(--primary); outline: none; box-shadow: 0 10px 24px color-mix(in srgb, var(--foreground) 8%, transparent); transform: translateY(-2px); }
.kol-translator-profile__work img, .kol-translator-profile__cover-fallback { display: grid; width: 68px !important; min-width: 68px; max-width: 68px !important; height: 92px !important; min-height: 92px; max-height: 92px !important; flex: 0 0 68px; margin: 0 !important; place-items: center; border-radius: 9px; background: var(--muted); object-fit: cover; }
.kol-translator-profile__work-copy { display: grid; min-width: 0; gap: 6px; }
.kol-translator-profile__work-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kol-translator-profile__work-copy small { color: var(--muted-foreground); }
.kol-translator-profile__rating-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.kol-translator-profile__rating-summary > div:first-child { display: grid; gap: 3px; }
.kol-translator-profile__rating-summary strong { color: var(--foreground); font-size: 25px; }
.kol-translator-profile__rating-summary span, .kol-translator-profile__login-note { color: var(--muted-foreground); }
.kol-translator-profile__stars { display: inline-flex; direction: ltr; gap: 3px; }
.kol-translator-profile__stars button, .kol-translator-profile__stars span { padding: 2px; border: 0; background: transparent; color: color-mix(in srgb, var(--muted-foreground) 35%, transparent); font: inherit; font-size: 28px; line-height: 1; }
.kol-translator-profile__stars button { border-radius: 6px; cursor: pointer; }
.kol-translator-profile__stars .is-filled { color: var(--rating); }
.kol-translator-profile__stars button:hover, .kol-translator-profile__stars button:focus-visible { outline: 2px solid var(--ring); color: var(--rating); }
.kol-translator-profile__feedback-form { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(0, 1.4fr); gap: 12px 24px; padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--card); }
.kol-translator-profile__feedback-form > h3 { margin: 0; }
.kol-translator-profile__link-button { justify-self: start; padding: 0; border: 0; background: transparent; color: var(--destructive); font: inherit; font-size: 12px; cursor: pointer; }
.kol-translator-profile__review-form { display: grid; grid-column: 2; grid-row: 1 / span 3; gap: 10px; }
.kol-translator-profile__review-form h3 { margin: 0 0 2px; }
.kol-translator-profile__review-form input, .kol-translator-profile__review-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; outline: none; background: var(--background); color: var(--foreground); font: inherit; }
.kol-translator-profile__review-form input:focus, .kol-translator-profile__review-form textarea:focus { border-color: var(--ring); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ring) 22%, transparent); }
.kol-translator-profile__review-form > button { justify-self: end; padding: 10px 18px; border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-foreground); font: inherit; font-weight: 800; cursor: pointer; }
.kol-translator-profile__reviews { display: grid; gap: 12px; }
.kol-translator-profile__reviews > h2 { margin: 10px 0 0; font-size: 20px; }
.kol-translator-profile__review { display: grid; gap: 10px; padding: 17px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); }
.kol-translator-profile__review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.kol-translator-profile__review-head > div:first-child { display: grid; gap: 2px; }
.kol-translator-profile__review time, .kol-translator-profile__edited { color: var(--muted-foreground); font-size: 11px; }
.kol-translator-profile__review h3, .kol-translator-profile__review p { margin: 0; }
.kol-translator-profile__review p { line-height: 1.8; white-space: pre-wrap; }
.kol-translator-profile__review-actions button { padding: 5px 9px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--muted-foreground); font: inherit; font-size: 11px; cursor: pointer; }
@media (max-width: 640px) {
  body.kol-account-login .kol-account-login__identity { grid-template-columns: 64px minmax(0, 1fr) !important; padding: 18px !important; }
  body.kol-account-login .kol-account-login__avatar-wrap,
  body.kol-account-login img.kol-account-login__avatar { width: 64px !important; min-width: 64px !important; max-width: 64px !important; height: 64px !important; min-height: 64px !important; max-height: 64px !important; }
  body.kol-account-login .kol-account-login__account-connections,
  body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta { grid-template-columns: 1fr !important; }
  body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta > div:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
  body.kol-account-login .kol-account-login__profile-summary .kol-account-login__meta > div:last-child { border-bottom: 0; }
  .kol-account-login__comments-state { align-items: flex-start; flex-direction: column; }
  .kol-account-login__comments-state .kol-account-login__hint { margin-inline-start: 0 !important; }
  .kol-comments-profile__header { align-items: center; flex-direction: column; text-align: center; }
  .kol-comments-profile__stats { grid-template-columns: repeat(2, 1fr); }
  .kol-comments-profile__stat + .kol-comments-profile__stat { border-inline-start: 0; }
  .kol-comments-profile__titles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kol-comments-profile__title-card { gap: 8px; padding: 8px; }
  .page .kol-comments-profile__title-card img,
  .kol-comments-profile__title-card img { width: 44px !important; min-width: 44px; max-width: 44px !important; height: 59px !important; min-height: 59px; max-height: 59px; flex-basis: 44px; }
  .kol-comments-profile__title-card strong { font-size: 12px; }
  .kol-comments-profile__editor-fields { grid-template-columns: 1fr; }
  .kol-comments-profile__editor-actions { align-items: stretch; flex-direction: column; }
  .kol-comments-profile__editor-actions button { width: 100%; }
  .kol-comments-profile-shortcode { padding: 12px; }
  .kol-translator-profile__hero { align-items: center; flex-direction: column; min-height: 0; padding: 22px 16px; text-align: center; }
  .kol-translator-profile__hero .kol-comments-profile__avatar { width: 88px; height: 88px; flex-basis: 88px; }
  .kol-translator-profile__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kol-translator-profile__stats > div + div { border-inline-start: 0; border-top: 1px solid var(--border); }
  .kol-translator-profile__stats > div:nth-child(2) { border-top: 0; }
  .kol-translator-profile__stats > div:nth-child(even) { border-inline-start: 1px solid var(--border); }
  .kol-translator-profile__works { grid-template-columns: 1fr; }
  .kol-translator-profile__rating-summary { align-items: flex-start; flex-direction: column; }
  .kol-translator-profile__feedback-form { grid-template-columns: 1fr; }
  .kol-translator-profile__review-form { grid-column: 1; grid-row: auto; }
}
