/* Sylveco Strefa wiedzy - profile / account (scoped under .sq-prof) */
.sq-prof { font-size: 16px; }
.sq-prof__title { margin-bottom: 16px; }
.sq-prof__sec { margin-top: 32px; }
.sq-prof__h { margin: 0 0 12px !important; }
.sq-prof__count { margin: 0 0 12px; }

.sq-prof__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.sq-prof__stat { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--sq-soft, #f4f3f1); }
.sq-prof__stat .sq-ic { width: 28px; height: 28px; }
.sq-prof__stat > div { display: flex; flex-direction: column; min-width: 0; }
.sq-prof__num { font-size: 1.75rem; font-weight: 500; line-height: 1.1; }
.sq-prof__lab { font-size: 16px; color: var(--sq-muted, #6b6a68); line-height: 1.3; }

.sq-prof__nudge { margin-top: 16px; background: var(--sq-butter, #f7efcf); }
.sq-prof__nudge-t { font-weight: 500; font-size: 1.05rem; margin: 0 0 12px; }
.sq-prof__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sq-prof__btns .sq-btn { flex: 1 1 160px; }

.sq-skel { display: grid; gap: 8px; }
.sq-skel__line { display: block; height: 20px; background: linear-gradient(90deg, #f4f3f1 25%, #ebeae7 50%, #f4f3f1 75%); background-size: 200% 100%; animation: sq-shim 1.2s linear infinite; }
.sq-skel__line:first-child { height: 72px; }
@keyframes sq-shim { to { background-position: -200% 0; } }

/* badges */
.sq-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .sq-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .sq-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sq-badge { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--sq-line, #e4e3e0); background: #fff; min-height: 120px; }
.sq-badge.is-earned { background: var(--sq-sage, #e0eadf); border-color: #cfdccd; }
.sq-badge.is-locked { color: var(--sq-muted, #6b6a68); }
.sq-badge__ic { display: inline-flex; margin-bottom: 4px; }
.sq-badge__name { font-weight: 500; line-height: 1.25; color: var(--sq-ink, #0e0e0e); }
.sq-badge.is-locked .sq-badge__name { color: var(--sq-muted, #6b6a68); }
.sq-badge__desc { font-size: 16px; line-height: 1.35; }

/* album */
.sq-prof__album { display: grid; gap: 12px; }
.sq-prof__album-t { display: flex; flex-direction: column; min-width: 0; }
.sq-prof__album-t strong { font-size: 1.25rem; font-weight: 500; }
.sq-prof__album .sq-progress { background: #fff; }
.sq-prof__album-btn { justify-self: start; }
@media (max-width: 520px) { .sq-prof__album-btn { justify-self: stretch; } }

/* calendar host: keep height stable while loading */
.sq-prof__calbox { min-height: 120px; }

/* settings */
.sq-prof__toggle { padding: 4px 0; margin: 0; }
.sq-prof__toggle + .sq-prof__toggle { margin-top: 12px; }
.sq-prof__toggle > span { display: flex; flex-direction: column; gap: 2px; }
.sq-prof__hint { display: block; }

/* coupons */
.sq-ctable-wrap { width: 100%; }
.sq-ctable { width: 100%; border-collapse: collapse; border: 0; margin: 0; }
.sq-ctable th { text-align: left; font-weight: 500; font-size: 14px; color: var(--sq-muted, #6b6a68); padding: 8px 12px; border-bottom: 1px solid var(--sq-ink, #0e0e0e); background: none; }
.sq-ctable td { padding: 12px; border: 0; border-bottom: 1px solid var(--sq-line, #e4e3e0); vertical-align: middle; background: none; }
.sq-ctable__add { white-space: normal; line-height: 1.25; padding: 8px 16px; }
.sq-ctable__row.is-used, .sq-ctable__row.is-expired, .sq-ctable__row.is-unavailable { color: var(--sq-muted, #6b6a68); }
.sq-cp { display: flex; align-items: center; gap: 12px; min-width: 220px; position: relative; }
.sq-cp__imgwrap { flex: 0 0 56px; display: block; }
.sq-cp__img { display: block; width: 56px; height: 56px; object-fit: contain; background: var(--sq-soft, #f4f3f1); }
.sq-cp__name { color: inherit; text-decoration: none; line-height: 1.3; flex: 1 1 auto; }
.sq-cp__name:hover { text-decoration: underline; }
.sq-cp__heart.sq-heart { flex: 0 0 48px; width: 48px; background: transparent; }
.sq-codecell { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sq-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; padding: 4px 8px; background: var(--sq-soft, #f4f3f1); letter-spacing: .02em; word-break: break-all; }
.sq-copy { display: inline-flex; align-items: center; gap: 4px; min-height: 48px; padding: 0 12px; border: 1px solid var(--sq-ink, #0e0e0e); background: #fff; font: inherit; font-size: 16px; color: var(--sq-ink, #0e0e0e); cursor: pointer; }
.sq-copy:hover { background: var(--sq-soft, #f4f3f1); }
.sq-copy .sq-ic { width: 18px; height: 18px; }
.sq-status { display: inline-block; justify-self: start; padding: 2px 8px; font-size: 14px; background: var(--sq-soft, #f4f3f1); }
.sq-status--active { background: var(--sq-sage, #e0eadf); color: #1f4a29; }
.sq-status--unavailable { background: var(--sq-blush, #f6e3e0); color: #7a2d26; }
.sq-hist { margin-top: 24px; }
.sq-hist > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 500; }
.sq-hist > summary:focus-visible { outline: 2px solid var(--sq-ink, #0e0e0e); outline-offset: 2px; }

/* stacked layout below 900px */
@media (max-width: 899px) {
  .sq-ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sq-ctable, .sq-ctable tbody { display: block; }
  .sq-ctable__row { display: block; padding: 16px; margin-bottom: 12px; border: 1px solid var(--sq-line, #e4e3e0); background: #fff; }
  .sq-ctable td { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border: 0; }
  .sq-ctable td::before { content: attr(data-label); font-size: 14px; color: var(--sq-muted, #6b6a68); }
  .sq-ctable td.sq-ctable__prod { display: block; padding-bottom: 8px; }
  .sq-ctable td.sq-ctable__prod::before { display: none; }
  .sq-ctable td.sq-ctable__act { display: block; padding-top: 12px; }
  .sq-ctable td.sq-ctable__act::before { display: none; }
  .sq-ctable td.sq-ctable__act:empty { display: none; }
  .sq-ctable__add { width: 100%; min-height: 48px; }
  .sq-cp { min-width: 0; }
}
@media (min-width: 900px) { .sq-codecell { flex-direction: column; align-items: flex-start; gap: 4px; } .sq-copy { min-height: 36px; } }

/* Embedded in My Account: no zone page chrome */
.woocommerce-MyAccount-content .sq-account.sq-app { max-width: none; margin: 0; padding: 0 0 32px; min-height: 0; }
.woocommerce-MyAccount-content .sq-account .sq-app h2, .woocommerce-MyAccount-content .sq-account h2 { margin: 32px 0 12px; font-size: 1.25rem; line-height: 1.3; }
.woocommerce-MyAccount-content .sq-account h2.sq-prof__title { margin: 0 0 16px; font-size: 1.6rem; }
