/* AI Humanizer widget — portable stylesheet.
 *
 * Generated 18 Nov 2026 from the inline <style> of /tools/humanizer/ so the same
 * humanizer runs on landing pages that use /css/landing.css (different design
 * system, no :root tokens). Every selector is scoped under .studio-wrap and the
 * tokens are declared ON .studio-wrap, so nothing here can repaint the host page.
 * Page chrome (nav, hero, sections, FAQ, footer, ads) is left out.
 *
 * Pair with the .studio-wrap markup block from /tools/humanizer/ (put
 * <div class="toast" id="toast"></div> inside it) and ts-tiers.js, ts-limits.js,
 * tools-common.js, humanizer.js. If /tools/humanizer/ restyles, regenerate this.
 */

.studio-wrap {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #fafbff;
  --border: #e6e9f1;
  --border-strong: #d6dbe6;
  --ink: #0f1729;
  --ink-2: #344056;
  --muted: #6b7591;
  --muted-2: #9aa3b8;
  --brand: #3788d8;
  --brand-2: #2c6cb0;
  --brand-soft: #e3effb;
  --brand-softer: #eef5fc;
  --green: #119d5b;
  --green-soft: #e6f6ee;
  --red: #e11d48;
  --red-soft: #fde8ec;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --violet: #7c3aed;
  --violet-soft: #f3e8ff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.02);
  --shadow-md: 0 2px 6px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.04);
  --shadow-lg: 0 30px 80px -30px rgba(15,23,42,.22), 0 8px 24px -8px rgba(15,23,42,.10);
}

.studio-wrap * { box-sizing: border-box; }
.studio-wrap a { color: inherit; }
.studio-wrap button { font-family: inherit; cursor: pointer; }
.studio-wrap .btn {
  height: 38px; padding: 0 14px;
  border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border);
  background: #fff; color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease, box-shadow .2s ease, border-color .15s ease;
}
.studio-wrap .btn:hover { background: var(--surface-2); }
.studio-wrap .btn.primary {
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 10px rgba(55,136,216,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.studio-wrap .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(55,136,216,.34); }
.studio-wrap .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.studio-wrap .btn.ghost:hover { background: var(--surface-2); color: var(--ink-2); }
@keyframes detBreathe {
  0%, 100% { opacity: .32; transform: scale(.94); }
  50%      { opacity: .9;  transform: scale(1.03); }
}
@keyframes detRingSpin { to { transform: rotate(360deg); } }
@keyframes detVPop {
  0%   { opacity: 0; transform: translateY(8px) scale(.9); }
  100% { opacity: 1; transform: none; }
}
@keyframes detDotPulse { 0%,100% { transform: scale(.6); opacity: .5; } 50% { transform: scale(1); opacity: 1; } }
@keyframes detBlink { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
@keyframes detShimmer { to { background-position: -200% 0; } }
@keyframes humBlink { 50% { opacity: 0; } }

.studio-wrap .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.studio-wrap .tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1040px) {
  .studio-wrap .tg { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
}
@keyframes ds-pop {
  0% { transform: translateY(0) scale(.96); }
  60% { transform: translateY(-3px) scale(1.02); }
  100% { transform: translateY(-1px) scale(1); }
}
@keyframes ba-pulse {
  0% { transform: scale(.6); opacity: .5; }
  100% { transform: scale(2.2); opacity: 0; }
}
@keyframes sticky-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74,222,128,.7); }
  70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}
@media (max-width: 640px) {
  .studio-wrap .tg, .studio-wrap .tg > * {
    min-width: 0;
  }
  .studio-wrap .tg { grid-template-columns: 1fr !important; }
}
.studio-wrap .ts-ad {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.studio-wrap .ts-ad-inner {
  position: relative;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, #fafbff, #fafbff 12px, #f4f6fb 12px, #f4f6fb 24px);
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: var(--muted-2);
  min-height: 96px; padding: 18px;
}
.studio-wrap .ts-ad[data-ts-ad="leaderboard"] .ts-ad-inner { min-height: 110px; }
.studio-wrap .ts-ad-inner .ts-ad-lbl {
  position: absolute; top: 8px; left: 10px;
  font-size: 9px; font-weight: 800; letter-spacing: .12em;
  color: var(--muted-2); text-transform: uppercase;
}
.studio-wrap .ts-ad-inner .ts-ad-body { font-size: 13px; font-weight: 600; }
.studio-wrap .ts-ad-inner .ts-ad-body b { color: var(--ink-2); }
.studio-wrap .ts-ad-inner .ts-ad-up {
  display: block; margin-top: 5px; font-size: 11.5px; color: var(--brand); font-weight: 700; text-decoration: none;
}
.studio-wrap .ts-ad-inner .ts-ad-up:hover { text-decoration: underline; }
.studio-wrap .ts-scrim {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12,19,34,.55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.studio-wrap .ts-scrim.open { opacity: 1; pointer-events: auto; }
.studio-wrap .ts-modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.25,1);
  max-height: 92vh; overflow-y: auto;
}
.studio-wrap .ts-scrim.open .ts-modal { transform: none; }
.studio-wrap .ts-modal-top { position: relative; padding: 22px 28px 20px; color: #fff; text-align: center; }
.studio-wrap .ts-modal.signup .ts-modal-top { background: linear-gradient(135deg, #2c6cb0, #3788d8); }
.studio-wrap .ts-modal.upgrade .ts-modal-top { background: linear-gradient(135deg, #2c6cb0, #7c3aed); }
.studio-wrap .ts-modal-top .ts-close {
  position: absolute; right: 14px; top: 14px; width: 30px; height: 30px; border-radius: 8px;
  border: 0; background: rgba(255,255,255,.16); color: #fff; display: grid; place-items: center;
}
.studio-wrap .ts-modal-top .ts-close:hover { background: rgba(255,255,255,.28); }
.studio-wrap .ts-modal-top h3 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.studio-wrap .ts-modal-top p { margin: 8px auto 0; font-size: 14px; opacity: .92; max-width: 40ch; line-height: 1.5; }

.studio-wrap .ts-modal-body { padding: 20px 28px 24px; }
.studio-wrap .ts-feat { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.studio-wrap .ts-feat li { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.studio-wrap .ts-feat li svg { flex: 0 0 17px; margin-top: 1px; }
.studio-wrap .ts-modal.signup .ts-feat li svg { color: var(--brand); }
.studio-wrap .ts-modal.upgrade .ts-feat li svg { color: var(--violet); }
.studio-wrap .ts-cta { display: flex; gap: 10px; }
.studio-wrap .ts-cta a, .studio-wrap .ts-cta button {
  flex: 1; min-height: 50px; text-align: center; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease;
}
.studio-wrap .ts-cta .fill { background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; box-shadow: 0 10px 24px -8px rgba(124,58,237,.6); }
.studio-wrap .ts-cta .fill:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -10px rgba(124,58,237,.7); }
.studio-wrap .ts-cta .fill small { font-size: 11px; font-weight: 600; opacity: .82; margin-top: 2px; }
.studio-wrap .ts-cta .ghost { border: 1px solid var(--border); color: var(--ink-2); background: #fff; flex: 0 0 auto; padding: 0 20px; }
.studio-wrap .ts-pro-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em;
  background: rgba(255,255,255,.2); color: #fff;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.studio-wrap .ts-perk {
  display: flex; align-items: flex-start; gap: 13px;
  background: linear-gradient(135deg, var(--violet-soft), #faf5ff);
  border: 1px solid #ead8fb;
  border-radius: 13px; padding: 14px 16px; margin-bottom: 16px;
}
.studio-wrap .ts-perk-ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 11px; background: #fff; color: var(--violet); display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(124,58,237,.35); }
.studio-wrap .ts-perk { margin-bottom: 13px; }
.studio-wrap .ts-perk-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.studio-wrap .ts-perk-body b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.studio-wrap .ts-perk-body span { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.studio-wrap .ts-price-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface-3); margin-bottom: 15px;
}
.studio-wrap .ts-price-amt { font-size: 30px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.studio-wrap .ts-price-amt span { font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.studio-wrap .ts-price-meta { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.studio-wrap .ts-price-note { font-size: 11.5px; color: var(--muted); }
.studio-wrap .ts-save-pill {
  background: var(--green); color: #fff; font-weight: 800; font-size: 11px;
  letter-spacing: .03em; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 10px -4px rgba(17,157,91,.5);
}
.studio-wrap .ts-price-was { font-size: 11.5px; color: var(--muted); }
.studio-wrap .ts-price-was s { color: var(--muted-2); }

.studio-wrap .ts-feat-head { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 11px; }

.studio-wrap .ts-modal-foot { text-align: center; margin-top: 14px; font-size: 12px; color: var(--muted); }
.studio-wrap .ts-modal-foot b { color: var(--ink-2); }
.studio-wrap .ts-modal-foot a { color: var(--brand); font-weight: 700; text-decoration: none; }
.studio-wrap .ts-modal-foot a:hover { text-decoration: underline; }
.studio-wrap .ts-switch {
  position: fixed; left: 16px; bottom: 16px; z-index: 250;
  background: var(--ink); color: #fff; border-radius: 13px;
  box-shadow: 0 18px 40px -16px rgba(15,23,42,.5);
  padding: 9px 11px; font-size: 12px;
  display: flex; flex-direction: column; gap: 7px; max-width: 230px;
}
.studio-wrap .ts-switch .ts-sw-lbl { font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #9aa3b8; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.studio-wrap .ts-switch .ts-sw-lbl svg { opacity: .8; }
.studio-wrap .ts-switch .ts-seg { display: flex; background: rgba(255,255,255,.08); border-radius: 9px; padding: 3px; gap: 2px; }
.studio-wrap .ts-switch .ts-seg button {
  flex: 1; border: 0; background: transparent; color: #c4cbd9; font-weight: 700; font-size: 11.5px;
  padding: 6px 9px; border-radius: 7px; cursor: pointer; font-family: inherit; transition: background .15s, color .15s;
}
.studio-wrap .ts-switch .ts-seg button:hover { color: #fff; }
.studio-wrap .ts-switch .ts-seg button.on { background: #fff; color: var(--ink); }
.studio-wrap .ts-switch .ts-sw-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #9aa3b8; }
.studio-wrap .ts-switch .ts-sw-foot b { color: #fff; }
.studio-wrap .ts-switch .ts-reset { background: none; border: 0; color: #9ec5ee; font-weight: 700; font-size: 11px; cursor: pointer; padding: 0; font-family: inherit; }
.studio-wrap .ts-switch .ts-reset:hover { color: #fff; }

@media (max-width: 640px) {
  .studio-wrap .ts-feat { grid-template-columns: 1fr; }
  .studio-wrap .ts-switch { left: 8px; bottom: 8px; right: 8px; max-width: none; }
  .studio-wrap .ts-ad { padding: 0 14px; }
}
.studio-wrap { max-width: 1180px; margin: -16px auto 0; padding: 0 32px 10px; position: relative; z-index: 2; }
.studio-wrap .studio {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.studio-wrap .studio-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcfe, #fff);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.studio-wrap .studio-head .sh-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.studio-wrap .studio-head .sh-ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px;
  background: var(--brand-softer); color: var(--brand);
  display: grid; place-items: center;
}
.studio-wrap .studio-head .sh-title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.studio-wrap .studio-head .sh-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.studio-wrap .usage { display: flex; align-items: center; gap: 10px; }
.studio-wrap .usage .u-text { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.studio-wrap .usage .u-text b { color: var(--ink); }
.studio-wrap .usage .u-bar { width: 92px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.studio-wrap .usage .u-bar > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), #5aa3e8); border-radius: 999px; transition: width .4s ease; }
.studio-wrap .usage.low .u-bar > i { background: linear-gradient(90deg, var(--amber), #f59e0b); }
.studio-wrap .usage.out .u-bar > i { background: linear-gradient(90deg, var(--red), #f43f5e); }

.studio-wrap .studio-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
}
.studio-wrap .studio-left { padding: 20px; border-right: 1px solid var(--border); min-width: 0; border-bottom-left-radius: var(--radius-lg); }
.studio-wrap .left-sticky { position: sticky; top: 80px; }
@keyframes scanmove { 0% { top: -140px; } 100% { top: 100%; } }
.studio-wrap .studio-right { padding: 20px; min-width: 0; background: var(--surface-3); border-bottom-right-radius: var(--radius-lg); }
.studio-wrap .rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.studio-wrap .rp-title { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted-2); }
.studio-wrap .rp-badge {
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em;
  padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted);
}
.studio-wrap .rp-badge.scanning { background: var(--brand-softer); color: var(--brand); }
.studio-wrap .rp-badge.done { background: var(--green-soft); color: var(--green); }
.studio-wrap .rp-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 360px; gap: 12px; color: var(--muted); }
.studio-wrap .rp-idle .ri-ic { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-2); }
.studio-wrap .rp-idle h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink-2); }
.studio-wrap .rp-idle p { margin: 0; font-size: 13px; max-width: 32ch; line-height: 1.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.studio-wrap .verdict { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.studio-wrap .verdict.ai { background: var(--red-soft); border-color: #f6c9d3; }
.studio-wrap .verdict.human { background: var(--green-soft); border-color: #b5e4c8; }
.studio-wrap .price-toggle { display: inline-flex; gap: 4px; margin: 0 auto 24px; background: var(--surface-2); border-radius: 11px; padding: 4px; }
.studio-wrap .price-toggle button { border: 0; background: transparent; padding: 8px 16px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-family: inherit; transition: background .15s, color .15s; }
.studio-wrap .price-toggle button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15,23,42,.08); }
.studio-wrap .modal {
  background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(14px) scale(.98); transition: transform .28s cubic-bezier(.2,.8,.25,1);
  max-height: 92vh; overflow-y: auto;
}
.studio-wrap .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 210;
  background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 10px;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.studio-wrap .toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 920px) {
  .studio-wrap .studio-grid { grid-template-columns: 1fr; }
  .studio-wrap .left-sticky { position: static; top: auto; }
  .studio-wrap .studio-left { border-right: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
}
@media (max-width: 640px) {
  .studio-wrap { padding: 0 14px 10px; }
  .studio-wrap .studio-left, .studio-wrap .studio-right { padding: 14px; }
  .studio-wrap .studio-head { flex-wrap: wrap; }
  .studio-wrap .verdict { flex-direction: column; text-align: center; }
}

.studio-wrap {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --surface-3: #fafbff;
  --border: #e6e9f1;
  --border-strong: #d6dbe6;
  --ink: #0f1729;
  --ink-2: #344056;
  --muted: #6b7591;
  --muted-2: #9aa3b8;
  --brand: #3788d8;
  --brand-2: #2c6cb0;
  --brand-soft: #e3effb;
  --brand-softer: #eef5fc;
  --green: #119d5b;
  --green-soft: #e6f6ee;
  --red: #e11d48;
  --red-soft: #fde8ec;
  --amber: #f59e0b;
  --amber-soft: #fef3c7;
  --violet: #7c3aed;
  --violet-soft: #f3e8ff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.04), 0 1px 1px rgba(15,23,42,.02);
  --shadow-md: 0 2px 6px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.04);
  --shadow-lg: 0 30px 80px -30px rgba(15,23,42,.22), 0 8px 24px -8px rgba(15,23,42,.10);
}

.studio-wrap * { box-sizing: border-box; }
.studio-wrap a { color: inherit; }
.studio-wrap button { font-family: inherit; cursor: pointer; }
.studio-wrap .btn {
  height: 38px; padding: 0 14px;
  border-radius: 10px;
  font-weight: 600; font-size: 13.5px;
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border);
  background: #fff; color: var(--ink-2);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s ease, transform .12s ease, box-shadow .2s ease, border-color .15s ease;
}
.studio-wrap .btn:hover { background: var(--surface-2); }
.studio-wrap .btn.primary {
  background: linear-gradient(180deg, #4a99e6, #2c6cb0);
  border-color: transparent; color: #fff;
  box-shadow: 0 4px 10px rgba(55,136,216,.22), inset 0 1px 0 rgba(255,255,255,.2);
}
.studio-wrap .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(55,136,216,.34); }
.studio-wrap .btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.studio-wrap .btn.ghost:hover { background: var(--surface-2); color: var(--ink-2); }
.studio-wrap { max-width: 1180px; margin: -16px auto 0; padding: 0 32px 10px; position: relative; z-index: 2; }
.studio-wrap .studio { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.studio-wrap .studio-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #fbfcfe, #fff);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.studio-wrap .studio-head .sh-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.studio-wrap .studio-head .sh-ic { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); display: grid; place-items: center; }
.studio-wrap .studio-head .sh-title { font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.studio-wrap .studio-head .sh-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.studio-wrap .usage { display: flex; align-items: center; gap: 10px; }
.studio-wrap .usage .u-text { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.studio-wrap .usage .u-text b { color: var(--ink); }
.studio-wrap .usage .u-bar { width: 92px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.studio-wrap .usage .u-bar > i { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), #5aa3e8); border-radius: 999px; transition: width .4s ease; }
.studio-wrap .usage.low .u-bar > i { background: linear-gradient(90deg, var(--amber), #f59e0b); }
.studio-wrap .usage.out .u-bar > i { background: linear-gradient(90deg, var(--red), #f43f5e); }

.studio-wrap .studio-grid { display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch; }
.studio-wrap .studio-left { padding: 20px; border-right: 1px solid var(--border); min-width: 0; border-bottom-left-radius: var(--radius-lg); }
.studio-wrap .left-sticky { position: sticky; top: 80px; }
.studio-wrap .studio-right { padding: 20px; min-width: 0; background: var(--surface-3); border-bottom-right-radius: var(--radius-lg); }
.studio-wrap .mode-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.studio-wrap .mode-tab { border: 1px solid var(--border); background: #fff; border-radius: 999px; padding: 7px 13px; font-weight: 700; font-size: 12.5px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.studio-wrap .mode-tab.on { border-color: var(--brand); background: var(--brand-softer); color: var(--brand); }
.studio-wrap .mode-tab.pro { color: var(--violet); }
.studio-wrap .mode-tab .lk { font-size: 9px; font-weight: 800; background: var(--violet-soft); color: var(--violet); padding: 1px 5px; border-radius: 4px; }
.studio-wrap .tool-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.studio-wrap .tool-bar .tb-btn { font-size: 12px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.studio-wrap .tool-bar .tb-btn:hover { border-color: var(--brand); color: var(--brand); }
.studio-wrap .tool-bar .tb-spacer { flex: 1; }
.studio-wrap .tool-bar .tb-note { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.studio-wrap .tool-editor { width: 100%; min-height: 320px; resize: vertical; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; font-family: inherit; font-size: 15px; line-height: 1.6; color: var(--ink); background: #fff; }
.studio-wrap .tool-editor::placeholder { color: var(--muted-2); }
.studio-wrap .tool-editor:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-softer); }
.studio-wrap .editor-actions { margin-top: 12px; }
.studio-wrap .btn-run { height: 42px; padding: 0 20px; border-radius: 11px; border: 0; background: linear-gradient(180deg, #8b5cf6, #7c3aed); color: #fff; font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 4px 12px rgba(124,58,237,.26); cursor: pointer; }
.studio-wrap .btn-run:hover { transform: translateY(-1px); }
.studio-wrap .rp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.studio-wrap .rp-title { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--muted-2); }
.studio-wrap .rp-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.studio-wrap .rp-badge.scanning { background: var(--violet-soft); color: var(--violet); }
.studio-wrap .rp-badge.done { background: var(--green-soft); color: var(--green); }

.studio-wrap .rp-idle { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 360px; gap: 12px; color: var(--muted); }
.studio-wrap .rp-idle .ri-ic { width: 60px; height: 60px; border-radius: 16px; background: #fff; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-2); }
.studio-wrap .rp-idle h3 { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink-2); }
.studio-wrap .rp-idle p { margin: 0; font-size: 13px; max-width: 32ch; line-height: 1.5; }

.studio-wrap .tb-note { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.studio-wrap .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.studio-wrap .toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 210; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.studio-wrap .toast.show { opacity: 1; transform: translateX(-50%); }
@media (max-width: 920px) {
  .studio-wrap .studio-grid { grid-template-columns: 1fr; }
  .studio-wrap .left-sticky { position: static; top: auto; }
  .studio-wrap .studio-left { border-right: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
}
@media (max-width: 640px) {
  .studio-wrap { padding: 0 14px 10px; }
  .studio-wrap .studio-left, .studio-wrap .studio-right { padding: 14px; }
  .studio-wrap .studio-head { flex-wrap: wrap; }
}
