@charset "UTF-8";
/* The Kynd Avatar Creator on the web.
   Deliberately the same class names and the same proportions as the desktop
   app's renderer/avatar-settings.css, so the two wardrobes stay one design as
   they change. Only the palette is rebound to KyndCreate's own tokens. */

/* ── The mark itself ─────────────────────────────────────────────────────── */
/* Anywhere the creator's Kynd appears: the profile button, the sidebar's
   account row, and whatever opts in later with data-kynd-avatar. */
.kynd-avatar-mark { display: block; width: 100%; height: 100%; overflow: visible; }

.profile-button { padding: 0; display: grid; place-items: center; overflow: hidden; background: #b1b9d818; transition: border-color .2s, transform .2s; }
.profile-button:has(.kynd-avatar-mark) { background: radial-gradient(ellipse at 50% 22%, #b99ce726, transparent 70%), #171a25; }
.profile-button:hover:not(:disabled) { border-color: #c9b6ff6b; transform: translateY(-1px); }
/* The mark measures and centres itself (fitMarkToContent), so it needs no
   nudging here — a fixed offset centred a bare heart and cropped a hat. */
.profile-button .kynd-avatar-mark { width: 100%; height: 100%; }

.account-nav .kynd-avatar-nav { width: 21px; height: 21px; flex: none; margin: -2px 0; }
.account-nav .kynd-avatar-nav .kynd-avatar-mark { width: 100%; height: 100%; }


/* ── The creator ─────────────────────────────────────────────────────────── */
/* 100dvw, not 100%: the studio page can be a little wider than the viewport
   (its aura and orbit decorations overhang), and a percentage would measure
   that wider page and push the dialog off the right edge of a phone. */
dialog:has(.avatar-creator) { width: min(860px, calc(100dvw - 32px)); }
.avatar-creator { text-align: left; color: var(--ink); }
.avatar-creator .eyebrow, .avatar-creator h2, .avatar-creator .dialog-description { text-align: left; }
.avatar-creator .dialog-description { margin-bottom: 22px; }

.kas-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 20px; }
.kas-showcase { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; padding: 26px 16px; text-align: center; border: 1px solid #b99ce724; border-radius: 20px; background: radial-gradient(ellipse at 50% 36%, #b49be41c, transparent 68%), var(--panel); }
.kas-kicker { color: #bca9d1; font-size: 9px; font-weight: 600; letter-spacing: 1.8px; }
.kas-showcase > svg { display: block; width: min(100%, 240px); height: 240px; margin: 4px 0 0; overflow: visible; }
.kas-showcase > strong { font-size: 14px; font-weight: 500; letter-spacing: -.3px; }
.kas-showcase > p { max-width: 230px; margin: 9px 0 0; color: #b5a6c7; font-size: 11px; line-height: 1.7; text-wrap: balance; }

.kas-wardrobe { min-width: 0; }
.kas-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding-bottom: 14px; border-bottom: 1px solid #b99ce724; }
.kas-tabs button { min-width: 0; padding: 9px 3px; border: 0; border-radius: 9px; background: transparent; color: #b5a6c7; font: inherit; font-size: 11px; }
.kas-tabs button[aria-selected=true] { background: #b99ce721; color: #eee0ff; }

.kas-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; font-size: 10px; color: #b5a6c7; }
.kas-category > span:last-child { flex: none; font-size: 9px; color: var(--muted); }

.kas-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 91px; gap: 8px; max-height: 289px; padding: 3px; margin: -3px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #a38abd55 transparent; }
.kas-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; position: relative; border: 1px solid #b99ce724; border-radius: 13px; padding: 7px 3px; background: var(--panel); color: #b5a6c7; transition: background .2s, border-color .2s, transform .2s; }
.kas-option .kynd-avatar-mark { width: 61px; height: 59px; }
.kas-option > span { font-size: 10px; line-height: 1.25; text-align: center; }
.kas-option:hover { transform: translateY(-2px); border-color: #b99ce755; background: #b99ce716; }
.kas-option[aria-pressed=true] { border-color: #c5a8f191; background: linear-gradient(140deg, #b99ce724, #929dd012); color: #eee0ff; }
.kas-option[aria-pressed=true]::after { content: '✓'; position: absolute; top: 4px; right: 6px; font-size: 10px; color: #c5adea; }

.kas-tools { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.kas-tools button, .kas-save button { border: 0; border-radius: 6px; padding: 5px 0; background: transparent; color: #b5a6c7; font: inherit; font-size: 11px; }
.kas-tools button:first-child { margin-right: auto; color: var(--lilac); }
.kas-tools button:first-child span { margin-left: 4px; }
.kas-tools button:disabled { opacity: .35; }

.kas-save { display: flex; align-items: center; gap: 12px; min-height: 48px; margin-top: 22px; padding-top: 15px; border-top: 1px solid #b99ce724; font-size: 11px; color: #b5a6c7; }
.kas-save button { flex: none; margin-left: auto; color: var(--lilac); border: 1px solid #b99ce740; padding: 6px 10px; }
.avatar-creator[data-save-state=error] .kas-save { color: #efaaaa; }
.avatar-creator[data-save-state=saved] .kas-save { color: #a6d5c4; }

@media (max-width: 760px) {
  .kas-layout { grid-template-columns: 1fr; gap: 20px; }
  .kas-showcase { padding: 20px 14px; }
  .kas-showcase > svg { width: 190px; height: 190px; }
  .kas-showcase > p { max-width: 320px; }
  .kas-options { grid-template-columns: repeat(3, minmax(0, 1fr)); max-height: 226px; }
}
@media (max-width: 420px) { .kas-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kas-category { flex-wrap: wrap; padding: 10px 0; gap: 4px; } }
@media (max-height: 720px) { .kas-showcase > svg { width: 190px; height: 190px; } .kas-options { max-height: 190px; } }
@media (prefers-reduced-motion: reduce) { .kas-option, .profile-button { transition: none; } .kas-option:hover, .profile-button:hover:not(:disabled) { transform: none; } }

/* ── Your account ────────────────────────────────────────────────────────── */
.profile-identity { display: flex; align-items: center; gap: 22px; padding: 22px; margin-bottom: 20px; border: 1px solid #b99ce724; border-radius: 16px; background: radial-gradient(ellipse at 8% 30%, #b49be41c, transparent 60%), var(--panel); }
.profile-avatar { width: 96px; height: 96px; flex: none; }
.profile-identity-text { min-width: 0; max-width: 100%; }
.profile-identity-text > strong { overflow-wrap: anywhere; }
.profile-back { margin: 0 0 14px; }
.profile-back .secondary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding-inline: 16px; font-size: 13px; }
.profile-identity-text > strong { display: block; font-size: 19px; font-weight: 500; letter-spacing: -.5px; margin-bottom: 7px; }
.profile-identity-text > p { max-width: 62ch; margin: 0 0 15px; color: #9497aa; font-size: 11px; line-height: 1.8; }

.profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.profile-card { display: flex; flex-direction: column; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
.profile-card .eyebrow { margin-bottom: 11px; }
.profile-card h2 { font-size: 17px; font-weight: 450; letter-spacing: -.4px; margin: 0 0 9px; }
.profile-card > p { margin: 0; color: #9497aa; font-size: 11px; line-height: 1.8; }
.profile-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; }
.profile-card-actions .secondary-button { text-decoration: none; }

.profile-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 4px 0 0; }
.profile-facts div { min-width: 0; }
.profile-facts dt { font-size: 8px; letter-spacing: 1.6px; color: #697187; font-weight: 600; text-transform: uppercase; margin-bottom: 5px; }
.profile-facts dd { margin: 0; font-size: 13px; color: #d3d4e1; }
/* Only the status word comes from the service in lower case; capitalising
   every cell turned £12 a month into £12 A Month. */
.profile-facts dd.is-status { text-transform: capitalize; }
.profile-note { margin: 16px 0 0; padding: 11px 13px; border: 1px solid #a8b5cb1a; border-radius: 9px; background: #a8b5cb06; color: #919bb0; font-size: 10px; line-height: 1.7; }
/* A deadline close enough to act on. Warm rather than alarming: nothing has gone wrong, there is
   simply something to spend before a date. */
/* The payment list. A plain three-column row — date, what it bought, what it cost — because that
   is the order a person reads a bank statement in. */
.profile-payments { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 1px; }
.profile-payments li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid #a8b5cb14; font-size: 11px; color: #919bb0; }
.profile-payments li:first-child { border-top: 0; }
.profile-payments b { color: #e7e9f0; font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) { .profile-payments li { grid-template-columns: 1fr auto; } .profile-payments li span:nth-child(2) { grid-column: 1 / -1; } }
.profile-note.is-warning { border-color: #e8b98a33; background: #e8b98a0a; color: #e8b98a; }

.profile-credits { background: radial-gradient(ellipse at 100% 0, #9eb7d019, transparent 70%), var(--panel); }
.profile-balance { display: block; font-size: 44px; font-weight: 300; letter-spacing: -2px; line-height: 1.1; margin-bottom: 11px; color: #dce7ee; }
.profile-foot { display: block; margin-top: 6px; font-size: 9px; }

@media (max-width: 860px) {
  .profile-grid { grid-template-columns: 1fr; gap: 14px; }
  .profile-identity { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; }
  .profile-avatar { width: 78px; height: 78px; }
  .profile-facts { gap: 12px; }
}
