/* Jimbo Art Studio */
.ja-i { width: 18px; height: 18px; flex: none; }
.ja-page, .ja-sheet { display: block; }
.ja { display: grid; gap: 16px; padding-bottom: 24px; color: var(--color-text); }
.ja-hero { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 22px 22px; color: #fff; isolation: isolate;
  background: radial-gradient(90% 80% at 100% 0%, rgb(255 77 141 / .45), transparent 60%), radial-gradient(80% 90% at 0% 100%, rgb(61 242 255 / .32), transparent 60%),
  radial-gradient(60% 60% at 60% 60%, rgb(245 165 36 / .28), transparent 70%), linear-gradient(135deg, #140b24, #1d1538 55%, #0d0f1c); }
.ja-hero::before { content: ''; position: absolute; inset: -40%; z-index: -1; opacity: .35;
  background: conic-gradient(from 0deg, #ff4d8d, #f5a524, #3df2ff, #8a5cff, #ff4d8d); filter: blur(60px); animation: ja-spin 18s linear infinite; }
@keyframes ja-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .ja-hero::before { animation: none; } }
.ja-kick { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 12px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: #ffb3cf; }
.ja-hero h1 { margin: 0 0 10px; font: 800 clamp(30px, 7vw, 48px)/1.02 var(--font-display, var(--font-body)); letter-spacing: -.02em;
  background: linear-gradient(90deg, #fff, #ffd1e2 40%, #b8f8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ja-hero > p { margin: 0 0 18px; max-width: 48ch; color: rgb(255 255 255 / .85); font-size: 15px; line-height: 1.5; }
.ja-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ja-modes button { display: grid; grid-template-columns: 22px 1fr; column-gap: 10px; row-gap: 2px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px;
  border: 1px solid rgb(255 255 255 / .18); background: rgb(255 255 255 / .08); color: #fff; font: inherit; cursor: pointer; transition: transform .15s, background .15s, border-color .15s; }
.ja-modes button .ja-i { grid-row: span 2; width: 22px; height: 22px; color: #ffb3cf; }
.ja-modes b { font-size: 14.5px; } .ja-modes small { color: rgb(255 255 255 / .72); font-size: 12px; line-height: 1.3; }
.ja-modes button:hover { transform: translateY(-2px); background: rgb(255 255 255 / .14); }
.ja-modes button.is-on { border-color: #ff4d8d; background: rgb(255 77 141 / .2); }
@media (max-width: 560px) { .ja-modes { grid-template-columns: 1fr; } }

.ja { container-type: inline-size; }
.ja-work { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container (min-width: 860px) { .ja-work { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); } }
.ja-ctl, .ja-out { display: grid; gap: 12px; min-width: 0; }
.ja-card { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: var(--js-card, var(--color-surface, #fff)); border: 1px solid var(--js-line, var(--color-border, #e3e6ea)); color: var(--color-text); min-width: 0; }
.ja-card[hidden] { display: none; }
.ja-card--row { grid-template-columns: auto 1fr; align-items: center; }
.ja-lab { font: 800 11.5px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--color-text-muted); }
.ja-card textarea, .ja-txt input, .ja-post textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--js-line, var(--color-border, #d9dde3));
  background: var(--color-bg, #fff); color: var(--color-text); font: 500 16px/1.4 var(--font-body); resize: vertical; }
.ja-card textarea:focus, .ja-txt input:focus { outline: 2px solid #ff4d8d; outline-offset: 1px; }
.ja-ideas, .ja-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ja-ideas button, .ja-chips button { padding: 7px 11px; border-radius: 999px; border: 1px solid var(--js-line, var(--color-border, #d9dde3)); background: transparent; color: var(--color-text); font: 600 12.5px/1.2 var(--font-body); cursor: pointer; text-align: left; }
.ja-ideas button:hover, .ja-chips button:hover { border-color: #ff4d8d; }
.ja-chips button.is-on { background: #ff4d8d; border-color: #ff4d8d; color: #fff; }
.ja-heard { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ja-heard:empty { display: none; }
.ja-heard .ja-hl { font: 800 11px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #ff4d8d; margin-right: 2px; }
.ja-heard span:not(.ja-hl) { display: inline-flex; gap: 5px; align-items: baseline; padding: 5px 9px; border-radius: 10px; background: rgb(255 77 141 / .1); font: 700 12.5px/1.2 var(--font-body); animation: ja-pop .25s ease-out both; }
.ja-heard small { font-weight: 600; color: var(--color-text-muted); font-size: 11px; }
@keyframes ja-pop { from { transform: scale(.85); opacity: 0; } }
.ja-drop { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 22px; border-radius: 14px; border: 2px dashed var(--js-line, var(--color-border, #cfd4da)); cursor: pointer; font-weight: 700; }
.ja-drop:hover { border-color: #ff4d8d; color: #ff4d8d; }
#jaPh img { width: 100%; max-height: 180px; object-fit: cover; border-radius: 12px; display: block; }
.ja-styles { display: grid; grid-auto-flow: column; grid-auto-columns: 84px; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; }
.ja-styles button { display: grid; gap: 5px; justify-items: center; padding: 0; border: 0; background: none; color: var(--color-text); font: 700 11.5px/1.2 var(--font-body); cursor: pointer; scroll-snap-align: start; text-align: center; }
.ja-styles canvas { width: 84px; height: 105px; border-radius: 12px; background: rgb(127 127 127 / .15); border: 2px solid transparent; transition: transform .15s, border-color .15s; }
.ja-styles button:hover canvas { transform: translateY(-2px); }
.ja-styles button.is-on canvas { border-color: #ff4d8d; box-shadow: 0 6px 18px rgb(255 77 141 / .35); }
.ja-go { justify-content: center; gap: 8px; min-height: 52px; font-size: 16px; display: inline-flex; align-items: center; background: linear-gradient(90deg, #ff4d8d, #f5a524); border: 0; color: #fff; }
.ja-fine { margin: 0; color: var(--color-text-muted); font-size: 12.5px; line-height: 1.45; }

.ja-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ja-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 48px 20px; border-radius: 18px; border: 2px dashed var(--js-line, var(--color-border, #d9dde3)); color: var(--color-text-muted); }
.ja-empty .ja-i { width: 34px; height: 34px; color: #ff4d8d; } .ja-empty b { color: var(--color-text); font-size: 16px; }
.ja-take { position: relative; padding: 0; border: 3px solid transparent; border-radius: 16px; overflow: hidden; background: rgb(127 127 127 / .14); cursor: pointer; aspect-ratio: auto; transition: transform .18s, border-color .18s; }
.ja-take canvas { display: block; width: 100%; height: auto; }
.ja-take.is-wait { min-height: 160px; }
.ja-take.is-wait::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); background-size: 200% 100%; animation: ja-shim 1s linear infinite; }
@keyframes ja-shim { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.ja-take:not(.is-wait) { animation: ja-in .35s ease-out both; }
@keyframes ja-in { from { transform: scale(.94); opacity: 0; } }
.ja-take:hover { transform: translateY(-2px); }
.ja-take.is-on { border-color: #ff4d8d; box-shadow: 0 8px 24px rgb(255 77 141 / .3); }
.ja-sel { display: grid; gap: 10px; }
.ja-sel[hidden] { display: none; }
.ja-big { position: relative; border-radius: 18px; overflow: hidden; background: #111; box-shadow: 0 16px 40px rgb(0 0 0 / .3); }
.ja-big canvas { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.ja-busy { position: absolute; inset: auto 12px 12px auto; padding: 7px 12px; border-radius: 999px; background: rgb(0 0 0 / .7); color: #fff; font: 700 12.5px var(--font-body); pointer-events: none; }
.ja-busy[hidden] { display: none; }
.ja-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ja-acts button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px; border-radius: 12px; border: 1px solid var(--js-line, var(--color-border, #d9dde3));
  background: var(--js-card, var(--color-surface, #fff)); color: var(--color-text); font: 700 13px/1.2 var(--font-body); cursor: pointer; }
.ja-acts button:hover { border-color: #ff4d8d; color: #ff4d8d; }
.ja-txt { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--js-card, var(--color-surface, #fff)); border: 1px solid var(--js-line, var(--color-border, #e3e6ea)); }
.ja-txt[hidden] { display: none; }
.ja-row { display: flex; gap: 8px; } .ja-row .btn { flex: 1; justify-content: center; gap: 8px; display: inline-flex; align-items: center; min-height: 50px; }
.ja-mine { display: grid; gap: 8px; } .ja-mine:empty { display: none; }
.ja-mrow { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.ja-m { position: relative; flex: none; }
.ja-m > button:first-child { padding: 0; border: 0; background: none; cursor: pointer; }
.ja-m img { display: block; width: 72px; height: 90px; object-fit: cover; border-radius: 10px; }
.ja-mx { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 8px; background: rgb(0 0 0 / .6); color: #fff; cursor: pointer; }
.ja-mx .ja-i { width: 14px; height: 14px; }

.ja-modal .js-modal__box { max-width: 520px; }
.ja-modal--full .js-modal__box { max-width: 1100px; width: min(1100px, 96vw); max-height: 94vh; overflow-y: auto; }
.ja-post { display: grid; gap: 10px; }
.ja-post .ja-kick { color: #ff4d8d; }
.ja-post img { width: 100%; max-height: 52vh; object-fit: contain; border-radius: 14px; background: #111; }
.ja-post .btn { justify-content: center; gap: 8px; display: inline-flex; align-items: center; min-height: 48px; }

.ja-pbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 2px; padding: 8px 10px 8px 12px; border-radius: 14px;
  background: linear-gradient(90deg, rgb(255 77 141 / .12), rgb(61 242 255 / .1)); border: 1px solid rgb(255 77 141 / .25); }
.ja-pbar > span { display: inline-flex; align-items: center; gap: 7px; font: 800 13px/1.2 var(--font-body); color: var(--color-text); min-width: 0; }
.ja-pbar > span .ja-i { color: #ff4d8d; }
.ja-pbar small { font-weight: 600; color: var(--color-text-muted); }
.ja-pbar button { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 7px 12px; border-radius: 999px; border: 0; background: #ff4d8d; color: #fff; font: 700 12.5px/1 var(--font-body); cursor: pointer; }
.ja-pbar button .ja-i { width: 15px; height: 15px; }
