/* Cat Studio. Needs ../ui/base.css for tokens and buttons. */
.st-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.st-tab { cursor: pointer; font: 600 15px var(--head); color: var(--ink); background: transparent; border: 2px solid var(--line); border-radius: 999px; padding: 8px 16px; }
.st-tab[aria-selected=true] { background: var(--butter); border-color: var(--outline); color: #3D3330; }
.st-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
@media (max-width: 760px) { .st-main { grid-template-columns: 1fr; } }
.st-preview { background: var(--bg); border-radius: 20px; padding: 24px 24px 10px; max-width: 420px; margin: 0 auto; }
.st-preview[hidden], .st-photo[hidden], .st-editor[hidden], .st-drop[hidden] { display: none; }
.st-drop { border: 3px dashed var(--line); border-radius: 20px; padding: 32px 16px; text-align: center; background: var(--bg); }
.st-drop p { margin: 4px 0 10px; }
.st-file { max-width: 100%; }
.st-hint { font-size: 13px; color: var(--muted); margin: 6px 0; min-height: 1em; }
.st-tools { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.st-tool { cursor: pointer; font: 600 13px var(--head); color: var(--ink); background: var(--bg); border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.st-tool.on { background: var(--peach); border-color: var(--outline); color: #3D3330; }
.st-canvas { display: block; max-width: 100%; max-height: 520px; border-radius: 16px; touch-action: none; cursor: crosshair; margin: 0 auto; }
.st-canvas.busy { opacity: .6; cursor: progress; }
.st-sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 12px; }
.st-field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.st-field > span { color: var(--muted); font-weight: 500; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.st-right h3 { font-size: 17px; margin: 14px 0 8px; }
.st-right h3:first-child { margin-top: 0; }
.st-right .btn { margin: 2px 0 6px; }
.st-save { display: block; width: 100%; font-size: 16px; padding: 11px; margin-top: 16px !important; }
.st-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.st-styles:empty { display: none; }
.st-style { cursor: pointer; text-align: center; font: inherit; color: var(--ink); background: var(--bg); border: 3px solid var(--line); border-radius: 18px; padding: 10px 8px; transition: transform .15s; }
.st-style:hover:not(:disabled) { transform: translateY(-2px) rotate(-1deg); }
.st-style.on { border-color: var(--outline); background: var(--butter); color: #3D3330; }
.st-style:disabled { opacity: .45; cursor: not-allowed; }
.st-style b { display: block; font: 600 14px var(--head); }
.st-style small { display: block; font-size: 11px; opacity: .8; line-height: 1.3; }
.st-style-art { height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.st-style-art > * { width: 130px; }

.st-ai { background: var(--bg); border: 2px dashed var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0 14px; }
.st-ai[hidden], .st-portrait[hidden], .btn[hidden] { display: none; }
.st-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-portrait { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; border: 2px solid var(--outline); }

.st-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--butter); color: #3D3330; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font: 600 16px var(--head); }
.st-banner[hidden], .st-tabs[hidden] { display: none; }
.st-tools.editing [data-tool=tap], .st-tools.editing [data-tool=add] { display: none; }

.st-aicat { margin: 0 0 16px; } .st-aicat input[type=text] { width: 100%; }
.st-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; margin: 8px 0 10px; } .st-check input { margin-top: 3px; }
.st-pbox { display: flex; gap: 14px; align-items: center; background: var(--bg); border-radius: 16px; padding: 12px; margin-top: 14px; } .st-pbox[hidden] { display: none; }
.st-pimg { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; border: 2px solid var(--outline); flex: none; }
