/* clip-studio-1 */
html.cs-open, html.cs-open body { overflow: hidden !important; }
.cs { position: fixed; inset: 0; z-index: 10200; background: #000; color: #fff; font-family: Inter, system-ui, -apple-system, sans-serif; display: grid; place-items: center; touch-action: none; user-select: none; -webkit-user-select: none; }
.cs-view { height: 100%; max-height: 100dvh; width: auto; max-width: 100vw; aspect-ratio: 9/16; object-fit: contain; background: #0b1020; }
@media (max-aspect-ratio: 9/16) { .cs-view { width: 100vw; height: auto; } }
.cs-top { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 12px; }
.cs-x { width: 40px; height: 40px; border-radius: 99px; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 18px; }
.cs-prog { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); overflow: hidden; }
.cs-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f43f5e, #facc15); }
.cs-cd { position: fixed; inset: 0; display: grid; place-items: center; font: 900 120px/1 Inter, system-ui, sans-serif; text-shadow: 0 6px 30px rgba(0,0,0,.6); pointer-events: none; }
.cs-cd.pop { animation: csPop .9s ease; }
@keyframes csPop { 0% { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } 100% { opacity: .2; } }
.cs-side { position: absolute; right: 10px; top: 70px; display: grid; gap: 12px; }
.cs-side button { width: 56px; border: 0; background: rgba(0,0,0,.35); color: #fff; border-radius: 16px; padding: 8px 0 6px; font: 700 20px/1 Inter, system-ui, sans-serif; display: grid; justify-items: center; gap: 4px; backdrop-filter: blur(6px); }
.cs-side small { font-size: 10px; font-weight: 700; opacity: .95; }
.cs-bot { position: absolute; left: 0; right: 0; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-around; padding: 0 20px; gap: 12px; }
.cs-recb { width: 78px; height: 78px; border-radius: 99px; border: 5px solid #fff; background: transparent; padding: 0; display: grid; place-items: center; }
.cs-recb span { width: 60px; height: 60px; border-radius: 99px; background: #f43f5e; transition: all .2s; }
.cs-recb.on span { width: 30px; height: 30px; border-radius: 8px; }
.cs-pick, .cs-sp { width: 56px; display: grid; justify-items: center; gap: 2px; font-size: 26px; cursor: pointer; }
.cs-pick small { font-size: 11px; font-weight: 700; }
.cs-btn { flex: 1; max-width: 200px; border: 0; border-radius: 14px; padding: 14px; background: linear-gradient(135deg, #f43f5e, #f59e0b); color: #fff; font: 800 16px/1 Inter, system-ui, sans-serif; }
.cs-btn.ghost { background: rgba(255,255,255,.18); }
.cs-tray { position: absolute; left: 0; right: 0; bottom: calc(112px + env(safe-area-inset-bottom)); padding: 0 10px; }
.cs-row { display: flex; gap: 8px; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; }
.cs-row::-webkit-scrollbar { display: none; }
.cs-row button, .cs-flt { flex: none; border: 0; border-radius: 99px; padding: 9px 14px; background: rgba(0,0,0,.5); color: #fff; font: 700 13px/1 Inter, system-ui, sans-serif; backdrop-filter: blur(6px); white-space: nowrap; }
.cs-row button.on, .cs-flt.on { background: #fff; color: #111827; }
.cs-flt { display: flex; align-items: center; gap: 6px; }
.cs-flt i { width: 14px; height: 14px; border-radius: 99px; border: 2px solid rgba(255,255,255,.8); }
.cs-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; max-height: 34vh; overflow: auto; background: rgba(0,0,0,.55); border-radius: 18px; padding: 10px; backdrop-filter: blur(8px); }
.cs-grid button { border: 0; background: rgba(255,255,255,.08); border-radius: 12px; padding: 8px 2px; font-size: 24px; color: #fff; min-height: 44px; }
.cs-grid button:nth-child(n+25) { grid-column: span 3; font: 800 14px/1.1 Inter, system-ui, sans-serif; }
.cs-vol { display: grid; gap: 6px; background: rgba(0,0,0,.5); border-radius: 14px; padding: 10px 12px; margin-top: 6px; font-size: 12px; font-weight: 700; }
.cs-vol label { display: grid; gap: 4px; }
.cs-vol input { width: 100%; accent-color: #f43f5e; }
.cs-hint { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,.55); padding: 8px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.cs-sheet { position: absolute; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 3; }
.cs-sheet__in { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.cs-sheet textarea { width: 100%; box-sizing: border-box; background: transparent; border: 0; color: #fff; font: 800 30px/1.2 Inter, system-ui, sans-serif; text-align: center; outline: none; resize: none; text-shadow: 0 2px 6px rgba(0,0,0,.6); }
.cs-cols { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cs-cols button { width: 32px; height: 32px; border-radius: 99px; border: 3px solid rgba(255,255,255,.6); }
.cs-cols button.on { border-color: #fff; transform: scale(1.15); }
.cs-cols .cs-sty { width: auto; padding: 0 10px; background: rgba(255,255,255,.2); color: #fff; font-weight: 900; }
.cs-2 { display: flex; gap: 10px; justify-content: space-between; }
.cs-busy { position: absolute; inset: 0; background: rgba(0,0,0,.65); display: grid; place-content: center; justify-items: center; gap: 14px; z-index: 4; font-weight: 700; }
.cs-spin { width: 54px; height: 54px; border-radius: 99px; border: 5px solid rgba(255,255,255,.25); border-top-color: #f43f5e; animation: csSpin 1s linear infinite; }
@keyframes csSpin { to { transform: rotate(360deg); } }
.cs-toast { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); background: rgba(17,24,39,.92); padding: 12px 16px; border-radius: 14px; max-width: 86vw; text-align: center; font-size: 14px; z-index: 5; }
.cl-studio { background: linear-gradient(135deg, #f43f5e, #f59e0b) !important; color: #fff !important; }
