/* Model cabinet (/kabinet/) — colours follow the site design tokens (mu-plugins/vs-design.css) */
.vsc, .vsc-toast {
  --ink: #1d1024; --tx: #24172b; --mu: #6c5d72; --line: #efe0e9; --bg: #fbf5f8; --soft: #fdf0f6; --card: #fff;
  --acc: #d81f78; --acc2: #b8165f; --grad: linear-gradient(135deg, #ff5f9e 0%, #e0287f 55%, #a72bb5 100%);
  --ok: #1f8a57; --ok-soft: #e5f6ec; --wait: #b26a00; --wait-soft: #fff3dc; --bad: #c4372d;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--tx); font-size: 16px; line-height: 1.55; text-align: left;
}
.vsc *, .vsc *::before, .vsc *::after { box-sizing: border-box; }
.vsc [hidden] { display: none !important; }
.vsc a { color: var(--acc); }
.vsc p { margin: 0 0 12px; }
body.vsc-page .entry-header { display: none; }
body.vsc-page .site-main .inside-article { padding: 22px; }
.vsc-loading { color: var(--mu); }

/* buttons */
.vsc-btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink) !important; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; line-height: 1.2; transition: transform .12s, box-shadow .12s, background .12s; }
.vsc-btn:hover, .vsc-btn:focus { background: var(--soft); color: var(--ink); }
.vsc-btn:disabled { opacity: .6; cursor: default; transform: none !important; }
.vsc-btn-main, .vsc-btn-main:hover, .vsc-btn-main:focus { background: var(--grad); border: 0; color: #fff !important; box-shadow: 0 10px 24px -12px rgba(216, 31, 120, .7); }
.vsc-btn-main:hover { transform: translateY(-1px); }
.vsc-btn-light, .vsc-btn-light:hover, .vsc-btn-light:focus { background: #fff; border: 0; color: var(--acc) !important; }
.vsc-btn-wide { width: 100%; min-height: 50px; font-size: 16px; }
.vsc-link { appearance: none; border: 0; background: none; padding: 0; color: var(--acc); font: inherit; font-weight: 700; cursor: pointer; }
.vsc-link:hover, .vsc-link:focus { background: none; color: var(--acc2); }
.vsc-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; justify-content: center; }
.vsc-muted { color: var(--mu); font-size: 14px; }
.vsc-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; display: inline-block; animation: vscSpin .7s linear infinite; }
@keyframes vscSpin { to { transform: rotate(360deg); } }

/* login / reset */
.vsc-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 24px; max-width: 920px; margin: 10px auto; align-items: stretch; }
.vsc-auth-card, .vsc-card, .vsc-auth-side { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.vsc-auth-card h2, .vsc-narrow h2 { margin: 0 0 14px; font-size: 26px; color: var(--ink); font-weight: 800; line-height: 1.2; }
.vsc-auth-side { background: var(--grad); color: #fff; border: 0; }
.vsc-auth-side h3 { margin: 0 0 12px; color: #fff; font-size: 21px; }
.vsc-auth-side ul { margin: 0 0 18px; padding: 0; list-style: none; }
.vsc-auth-side li { padding: 6px 0 6px 28px; position: relative; font-weight: 600; }
.vsc-auth-side li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .25); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.vsc-auth-side a, .vsc-auth-side .vsc-muted { color: #fff; }
.vsc-auth-side .vsc-muted { opacity: .85; }
.vsc-auth-alt { margin: 14px 0 0; text-align: center; font-size: 15px; }
.vsc-notice { padding: 12px 14px; border-radius: 12px; margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.vsc-notice-err { background: #fde9e7; color: var(--bad); }
.vsc-notice-ok { background: var(--ok-soft); color: var(--ok); }
.vsc-narrow { max-width: 620px; margin: 10px auto; text-align: center; }
.vsc-pending-ic { font-size: 46px; line-height: 1; margin-bottom: 10px; }

/* forms */
.vsc label:not(.vsc-check):not(.vsc-drop) { display: block; font-size: 14px; font-weight: 700; color: var(--tx); margin: 0 0 14px; }
.vsc label input:not([type=checkbox]):not([type=file]), .vsc-linkrow input { display: block; width: 100%; height: 48px; margin-top: 6px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; font-size: 16px; font-weight: 500; color: var(--ink); }
.vsc input:focus { outline: none; border-color: var(--acc) !important; background: #fff !important; box-shadow: 0 0 0 4px rgba(216, 31, 120, .12); }
.vsc label small { display: block; margin-top: 5px; font-weight: 500; color: var(--mu); font-size: 13px; }
.vsc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin: 0 0 16px; cursor: pointer; line-height: 1.45; }
.vsc-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--acc); }

/* app shell */
.vsc-preview { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; background: var(--wait-soft); color: var(--wait); font-size: 14.5px; }
.vsc-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 26px; align-items: start; }
.vsc-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 6px; }
.vsc-me { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.vsc-me b { display: block; color: var(--ink); font-size: 16px; line-height: 1.2; word-break: break-all; }
.vsc-me span:not(.vsc-ava) { font-size: 13px; color: var(--mu); }
.vsc-ava { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 19px; }
.vsc-nav { display: flex; flex-direction: column; gap: 2px; }
.vsc-nav-i, .vsc-support { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--tx) !important; text-decoration: none !important; font-weight: 600; font-size: 15px; transition: background .12s, color .12s; }
.vsc-nav-i svg, .vsc-support svg, .vsc-drop svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vsc-nav-i:hover { background: var(--soft); }
.vsc-nav-i.is-on { background: var(--soft); color: var(--acc) !important; }
.vsc-support { margin-top: 10px; color: var(--mu) !important; font-size: 14px; }
.vsc-support:hover { background: var(--bg); }
.vsc-logout { padding: 6px 12px; color: var(--mu) !important; font-size: 14px; }
.vsc-main { min-width: 0; }
.vsc-h { margin: 0 0 16px; font-size: 26px; line-height: 1.2; color: var(--ink); font-weight: 800; }
.vsc-card { margin: 0 0 18px; padding: 22px; }
.vsc-card-h { margin: 0 0 14px; font-size: 18px; color: var(--ink); font-weight: 800; line-height: 1.3; }
.vsc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.vsc-grid > .vsc-card { margin: 0; }
.vsc-grid + .vsc-card, .vsc-grid + .vsc-grid { margin-top: 18px; }

/* home */
.vsc-hero { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 24px 26px; border-radius: 22px; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 20px 40px -24px rgba(167, 43, 181, .8); }
.vsc-hero > div:first-child { display: flex; flex-direction: column; gap: 2px; }
.vsc-hero-l { font-size: 14px; font-weight: 700; opacity: .9; text-transform: uppercase; letter-spacing: .05em; }
.vsc-hero-v { font-size: 40px; font-weight: 800; line-height: 1.1; }
.vsc-hero-s { font-size: 14.5px; opacity: .9; }
.vsc-hero-note { max-width: 300px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .18); font-size: 14.5px; }
.vsc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vsc-tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.vsc-tile span { display: block; font-size: 12.5px; font-weight: 700; color: var(--mu); text-transform: uppercase; letter-spacing: .04em; }
.vsc-tile b { font-size: 22px; color: var(--ink); }
.vsc-updated { margin: 8px 2px 18px !important; font-size: 13px; color: var(--mu); }
.vsc-cred { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.vsc-cred:last-of-type { margin-bottom: 16px; }
.vsc-cred > span:first-child { color: var(--mu); font-size: 14px; }
.vsc-cred-b { display: flex; gap: 6px; }
.vsc-cred code { min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px; color: var(--ink); background: var(--bg); padding: 6px 10px; border-radius: 8px; word-break: break-all; }
.vsc-copy { appearance: none; border: 1px solid var(--line); background: #fff; color: var(--acc); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.vsc-copy:hover, .vsc-copy:focus { background: var(--soft); color: var(--acc); }
.vsc-steps { display: flex; flex-direction: column; gap: 8px; }
.vsc-step { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none !important; color: var(--tx) !important; transition: border-color .12s, background .12s; }
.vsc-step:hover { border-color: #f2b8d3; background: var(--soft); }
.vsc-step b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.vsc-step small { color: var(--mu); font-size: 13.5px; }
.vsc-step-n { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--soft); color: var(--acc); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.vsc-step.is-done .vsc-step-n { background: var(--ok-soft); color: var(--ok); }
.vsc-step.is-done b { color: var(--mu); }

/* money */
.vsc-avail { margin: -4px 0 14px; font-size: 15px; color: var(--mu); }
.vsc-avail b { color: var(--ok); font-size: 18px; }
.vsc-est { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 0 0 14px; border-radius: 12px; background: var(--soft); }
.vsc-est b { font-size: 24px; color: var(--acc); }
.vsc-est small { color: var(--mu); font-size: 12.5px; }
.vsc-pending-box { padding: 14px; border-radius: 14px; background: var(--wait-soft); font-size: 15px; line-height: 1.55; }
.vsc-chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.vsc-chip-ok { background: var(--ok-soft); color: var(--ok); }
.vsc-chip-wait { background: var(--wait-soft); color: var(--wait); }
.vsc-chip-off { background: #f0eef3; color: var(--mu); }
.vsc-tablewrap { overflow-x: auto; }
.vsc-table { width: 100%; border-collapse: collapse; margin: 0; border: 0; font-size: 15px; }
.vsc-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--mu); padding: 8px 10px; border: 0; border-bottom: 1px solid var(--line); background: none; }
.vsc-table td { padding: 10px; border: 0; border-bottom: 1px solid var(--line); }
.vsc-table tr:last-child td { border-bottom: 0; }
.vsc-num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.vsc-bars { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 6px; }
.vsc-bar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; }
.vsc-bar-b { width: 100%; max-width: 44px; border-radius: 9px 9px 3px 3px; background: var(--grad); }
.vsc-bar-v { font-size: 12.5px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.vsc-bar-m { font-size: 12.5px; color: var(--mu); }
.vsc-loadbox { display: flex; align-items: center; gap: 10px; color: var(--mu); padding: 30px 0; }

/* guides */
.vsc-article { font-size: 16px; line-height: 1.7; }
.vsc-article h2 { font-size: 21px; margin: 26px 0 10px; color: var(--ink); line-height: 1.3; }
.vsc-article h2:first-child { margin-top: 0; }
.vsc-article img { display: block; max-width: 100%; height: auto; margin: 12px 0 16px; border-radius: 14px; border: 1px solid var(--line); }
.vsc-article ol, .vsc-article ul { padding-left: 22px; }
.vsc-article .vsc-toc { background: var(--bg); border-radius: 14px; padding: 14px 18px 14px 36px; margin: 0 0 18px; }
.vsc-article .vsc-toc a { text-decoration: none; font-weight: 600; }
.vsc-cta { margin: 6px 0 16px; }
.vsc-list { margin: 0; padding-left: 20px; }
.vsc-list li { margin: 4px 0; }

/* promo / site */
.vsc-drop { position: relative; display: block; margin: 0 0 14px; border: 2px dashed #ecc3d7; border-radius: 16px; background: var(--bg); cursor: pointer; transition: border-color .12s, background .12s; }
.vsc-drop:hover { border-color: var(--acc); background: var(--soft); }
.vsc-drop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.vsc-drop > span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 28px 16px; text-align: center; color: var(--acc); pointer-events: none; }
.vsc-drop svg { width: 30px; height: 30px; }
.vsc-drop b { color: var(--ink); }
.vsc-drop small { color: var(--mu); }
.vsc-drop-sm > span { padding: 16px; }
.vsc-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0 0 8px; }
.vsc-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.vsc-thumb img, .vsc-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border: 0; border-radius: 0; }
.vsc-thumb-tag { position: absolute; left: 6px; bottom: 6px; font-size: 11px; font-weight: 700; color: #fff; background: rgba(0, 0, 0, .55); padding: 1px 6px; border-radius: 6px; }
.vsc-thumb-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0; background: rgba(0, 0, 0, .6); color: #fff; font-size: 17px; line-height: 1; cursor: pointer; }
.vsc-progress { height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; margin: 0 0 12px; }
.vsc-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.vsc-linkrow { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) 40px; gap: 8px; margin: 0 0 10px; align-items: center; }
.vsc-linkrow input { margin-top: 0 !important; }
.vsc-linkrow-x { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--mu); font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.vsc-linkrow-x:hover, .vsc-linkrow-x:focus { background: #fde9e7; color: var(--bad); }
#vsc-site .vsc-link { margin: 0 0 16px; }
.vsc-l { font-size: 14px; font-weight: 700; color: var(--tx); margin: 4px 0 8px; }
.vsc textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); font: inherit; font-size: 15px; color: var(--ink); resize: vertical; }
.vsc textarea:focus { outline: none; border-color: var(--acc); background: #fff; box-shadow: 0 0 0 4px rgba(216, 31, 120, .12); }
.vsc-site-top { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: start; }
.vsc-avatar-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; margin: 0; }
.vsc-avatar-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
#vsc-photo-prev { width: 120px; height: 120px; border-radius: 50%; border: 2px dashed #ecc3d7; background: var(--bg) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: var(--acc); font-weight: 700; font-size: 14px; }
.vsc-avatar-pick small { color: var(--acc); font-weight: 600; font-size: 13px; }
.vsc-card-live { background: var(--soft); border-color: #f6cfe1; }
.vsc-sitebar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.vsc-sitebar > div { display: flex; flex-direction: column; min-width: 0; }
.vsc-siteurl { font-size: 18px; font-weight: 800; word-break: break-all; text-decoration: none; }
a.vsc-copy { text-decoration: none; display: inline-flex; align-items: center; }

/* toast */
.vsc-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100001; max-width: calc(100% - 32px); background: #1d1024; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); transition: opacity .4s, transform .4s; }
.vsc-toast-bad { background: var(--bad); }
.vsc-toast-out { opacity: 0; transform: translate(-50%, 10px); }

@media (max-width: 900px) {
  body.vsc-page .site-main .inside-article { padding: 14px 12px; }
  .vsc-auth { grid-template-columns: 1fr; }
  .vsc-auth-card, .vsc-card, .vsc-auth-side { padding: 20px 16px; }
  .vsc-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .vsc-side { position: static; min-width: 0; }
  .vsc-me { padding-bottom: 10px; margin-bottom: 0; }
  .vsc-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; scrollbar-width: none; }
  .vsc-nav::-webkit-scrollbar { display: none; }
  .vsc-nav-i { flex: 0 0 auto; padding: 8px 12px; border: 1px solid var(--line); font-size: 14px; }
  .vsc-nav-i svg { width: 18px; height: 18px; flex-basis: 18px; }
  .vsc-support, .vsc-logout { display: none; }
  .vsc-h { font-size: 22px; }
  .vsc-hero { padding: 20px; }
  .vsc-hero-v { font-size: 34px; }
  .vsc-hero .vsc-btn { width: 100%; }
  .vsc-tiles { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .vsc-tile { padding: 10px; }
  .vsc-tile b { font-size: 16px; }
  .vsc-tile span { font-size: 10.5px; }
  .vsc-grid { grid-template-columns: 1fr; }
  .vsc-linkrow { grid-template-columns: minmax(0, 1fr) 40px; gap: 6px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
  .vsc-linkrow input:first-child { grid-column: 1; }
  .vsc-linkrow input:nth-child(2) { grid-column: 1; grid-row: 2; }
  .vsc-linkrow-x { grid-column: 2; grid-row: 1 / span 2; height: 100%; }
  .vsc-site-top { grid-template-columns: 1fr; }
  .vsc-cred { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .vsc-cred code { grid-column: 1 / -1; grid-row: 2; }
  .vsc-bars { height: 150px; gap: 6px; }
}
