/* v1.10 studio: the page around the app (the app itself is styled by the plugin's app.css) */
html, body { margin: 0; padding: 0; }
body.aivs-studio {
  background: #f6f7f7; color: #1d2327;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai", "Sarabun", "Leelawadee UI", "Thonburi", Tahoma, sans-serif;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
body.aivs-studio #aivs-app {
  margin: 0 auto; padding: 12px max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left));
}
body.aivs-studio button, body.aivs-studio input, body.aivs-studio select, body.aivs-studio textarea { font-family: inherit; }
body.aivs-studio .aivs-loading { padding: 40px 0; text-align: center; }

/* log in / set a password */
.st-wrap { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 16px; box-sizing: border-box;
  background: linear-gradient(180deg, #eef3f8 0%, #f6f7f7 60%); }
.st-card { width: 100%; max-width: 384px; box-sizing: border-box; background: #fff; border: 1px solid #dcdcde; border-radius: 16px;
  padding: 28px 24px 24px; box-shadow: 0 12px 32px rgba(29, 35, 39, .07); }
.st-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.st-brand img { width: 34px; height: 34px; }
.st-title { font-size: 16px; font-weight: 600; margin: 20px 0 4px; }
.st-sub { color: #646970; margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; }
.st-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 13.5px; font-weight: 600; }
.st-field small { font-weight: 400; color: #646970; }
.st-field input { font-size: 16px; padding: 11px 12px; border: 1px solid #c3c4c7; border-radius: 9px; background: #fff; color: #1d2327; }
.st-field input:focus { outline: 2px solid #2271b1; outline-offset: 0; border-color: #2271b1; }
.st-btn { width: 100%; font-size: 16px; font-weight: 600; padding: 12px; border: 0; border-radius: 9px; background: #2271b1; color: #fff; cursor: pointer; margin-top: 4px; }
.st-btn:hover { background: #135e96; }
.st-btn[disabled] { opacity: .6; cursor: default; }
.st-err { color: #8a1f1f; background: #fcf0f1; border: 1px solid #f0c3c4; border-radius: 9px; padding: 9px 11px; font-size: 13.5px; margin: 0 0 14px; line-height: 1.45; }
.st-warn { color: #6b4500; background: #fcf9e8; border: 1px solid #f0d78a; border-radius: 9px; padding: 9px 11px; font-size: 13px; margin: 0 0 14px; line-height: 1.45; }
.st-note { color: #646970; font-size: 12.5px; margin: 16px 0 0; line-height: 1.55; }
.st-code { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #1d2327; color: #e7e9ee;
  padding: 10px 12px; border-radius: 8px; font-size: 12px; line-height: 1.5; word-break: break-all; margin-top: 8px; user-select: all; }
.st-role { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eef3f8; color: #135e96; }
.st-link { display: inline-block; margin-top: 14px; font-size: 14px; color: #2271b1; }
