/* LabelStudio customer pages. Uses the host design tokens (--ink, --ivory, --porcelain, --line, --stone). */
.ls-page { min-height: 70vh; padding: 150px 20px 80px; }
.ls-container { max-width: 1240px; margin: 0 auto; }
.ls-eyebrow { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.ls-title { margin-top: 10px; font-size: 34px; line-height: 1.15; }
.ls-lead { margin-top: 12px; max-width: 640px; font-size: 14px; line-height: 1.75; color: var(--stone); }
.ls-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 12px 26px; background: var(--ink); color: #fff; border: 1px solid var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.ls-button:disabled { opacity: .5; cursor: progress; }
.ls-button--ghost { background: transparent; color: var(--ink); }
.ls-link { text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }

/* Gallery */
.ls-gallery { display: grid; gap: 32px; margin-top: 40px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.ls-card { display: flex; flex-direction: column; gap: 14px; }
.ls-card-media { aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ls-card-media img { width: 100%; height: 100%; object-fit: contain; }
.ls-card h2 { font-size: 22px; }
.ls-card p { font-size: 13px; line-height: 1.6; color: var(--stone); }
.ls-section-title { margin-top: 64px; font-size: 24px; }
.ls-designs { display: grid; gap: 12px; margin-top: 20px; }
.ls-design-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; font-size: 14px; }
.ls-empty { margin-top: 32px; padding: 48px; border: 1px solid var(--line); text-align: center; color: var(--stone); }

/* Studio page (the editor itself is styled by label_studio/studio.css) */
.ls-page--studio { padding: 118px 12px 56px; background: var(--porcelain, #f6f4f0); }
.ls-page--studio .ls-studio { max-width: 1480px; margin: 0 auto; }
.ls-heading-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; }
.ls-heading-row .ls-section-title { margin-top: 64px; }
.ls-button--small { min-height: 38px; padding: 8px 16px; font-size: 11px; }
.ls-button--block { width: 100%; }
.ls-link--danger { color: #8a3929; background: none; border: 0; padding: 0; cursor: pointer; }
.ls-note { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--stone); }

/* My designs */
.ls-design-grid { display: grid; gap: 28px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.ls-design-card { display: flex; flex-direction: column; gap: 12px; }
.ls-design-thumb { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 4; background: #ebe8e2; border: 1px solid var(--line); overflow: hidden; padding: 16px; }
.ls-design-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 10px 24px rgba(0, 0, 0, .14); background: #fff; transition: transform .25s; }
.ls-design-thumb:hover img { transform: scale(1.02); }
.ls-chip { position: absolute; left: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #fff; }
.ls-chip--ok { color: #2f5d3a; }
.ls-design-meta { display: flex; flex-direction: column; gap: 4px; }
.ls-rename-form { display: flex; align-items: center; gap: 6px; margin: 0; }
.ls-name-input--card { flex: 1; min-width: 0; border: 1px solid transparent; padding: 4px 6px; font-family: var(--font-serif, Georgia, serif); font-size: 19px; background: transparent; }
.ls-name-input--card:hover, .ls-name-input--card:focus { border-color: var(--line); outline: none; background: #fff; }
.ls-rename-submit { opacity: 0; font-size: 11px; background: none; border: 0; cursor: pointer; text-decoration: underline; }
.ls-rename-form:focus-within .ls-rename-submit { opacity: 1; }
.ls-design-sub { font-size: 12px; color: var(--stone); padding-left: 6px; }
.ls-design-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ls-design-actions form { margin: 0; }
.ls-empty-state { margin-top: 32px; padding: 56px 24px; border: 1px solid var(--line); background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ls-empty-state p { max-width: 460px; font-size: 14px; line-height: 1.7; color: var(--stone); }

/* Proof page */
.ls-proof-page .ls-proof-layout { margin-top: 28px; }
.ls-proof-note { font-size: 12px; color: var(--stone); line-height: 1.6; }

@media (min-width: 768px) { .ls-page { padding: 180px 40px 96px; } .ls-title { font-size: 42px; } }
@media (min-width: 768px) { .ls-page--studio { padding: 132px 24px 64px; } }
