/* =========================================================
   G7 Studio — owner app (self-hosted fonts, no outside requests)
   ========================================================= */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/fraunces-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/fraunces-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-latin-700-normal.woff2) format("woff2"); }
:root {
  --ink: #1c0744;
  --ink-2: #2a0a5e;
  --ink-3: color-mix(in srgb, var(--ink-2) 78%, #fff);
  --orange: #f24d0d;
  --orange-d: #d63f00;
  --accent: var(--orange);
  --accent-d: var(--orange-d);
  --orange-soft: color-mix(in srgb, var(--accent) 9%, #fff);
  --bg: #f4f2f8;
  --card: #ffffff;
  --line: #e6e1ef;
  --line-2: #d6cfe3;
  --text: #1d1828;
  --muted: #6b6479;
  --green: #11975a;
  --green-soft: #e7f7ef;
  --yellow: #c98a00;
  --yellow-soft: #fff6dd;
  --red: #d33a3a;
  --red-soft: #fdecec;
  --radius: 14px;
  --shadow: 0 1px 2px color-mix(in srgb, var(--ink) 5%, transparent), 0 8px 24px color-mix(in srgb, var(--ink) 6%, transparent);
  --shadow-lg: 0 24px 60px color-mix(in srgb, var(--ink) 18%, transparent);
  --f-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: "Fraunces", Georgia, serif;
  --f-label: "Barlow Condensed", "Inter", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--f-ui); color: var(--text); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
button { font: inherit; }
a { color: var(--ink-3); }
h1, h2, h3, h4 { margin: 0; color: var(--ink); }
.as-muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons & fields ---------- */
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .1s, box-shadow .15s; white-space: nowrap; line-height: 1.2; }
.as-btn:active { transform: translateY(1px); }
.as-btn svg { width: 18px; height: 18px; flex: none; }
.as-btn-primary { background: var(--orange); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 28%, transparent); }
.as-btn-primary:hover { background: var(--orange-d); }
.as-btn-dark { background: var(--ink); color: #fff; }
.as-btn-dark:hover { background: var(--ink-2); }
.as-btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.as-btn-ghost:hover { border-color: var(--ink); }
.as-btn-quiet { background: transparent; color: var(--ink-3); padding: 8px 10px; }
.as-btn-quiet:hover { background: rgba(61, 23, 132, .07); }
.as-btn-danger { background: #fff; color: var(--red); border-color: #f2c9c9; }
.as-btn-danger:hover { background: var(--red-soft); }
.as-btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.as-btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 8px; }
.as-btn-block { width: 100%; }
.as-btn[disabled] { opacity: .55; cursor: not-allowed; }

.as-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; }
.as-label { font-weight: 600; color: var(--ink); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.as-label .as-req { color: var(--orange); }
.as-label .as-opt { color: var(--muted); font-weight: 500; font-size: 12px; }
.as-help { color: var(--muted); font-size: 13px; margin: -2px 0 2px; }
.as-input, .as-select, .as-textarea { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; }
.as-input:focus, .as-select:focus, .as-textarea:focus { outline: none; border-color: var(--ink-3); box-shadow: 0 0 0 4px rgba(61, 23, 132, .12); }
.as-textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.as-textarea-lg { min-height: 240px; }
.as-counter { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.as-counter b.ok { color: var(--green); }
.as-counter b.warn { color: var(--yellow); }
.as-counter b.bad { color: var(--red); }
.as-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin: 0 0 18px; cursor: pointer; }
.as-check input { width: 18px; height: 18px; accent-color: var(--orange); }
.as-example { background: var(--bg); border: 1px dashed var(--line-2); border-radius: 10px; padding: 10px 12px; font-size: 13px; color: var(--muted); }
.as-example b { color: var(--green); }
.as-example i { color: var(--red); font-style: normal; font-weight: 600; }
.as-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.as-alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin: 0 0 16px; }
.as-alert-error { background: var(--red-soft); color: #8f1f1f; border: 1px solid #f3c6c6; }
.as-alert-info { background: #efeafb; color: var(--ink-2); border: 1px solid #ddd2f5; }
.as-alert-warn { background: var(--yellow-soft); color: #7a5300; border: 1px solid #f1dda4; }

/* ---------- Login ---------- */
.as-login-body { background: var(--ink); }
.as-login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.as-login-single { grid-template-columns: 1fr; }
.as-login-art { position: relative; overflow: hidden; background:
  radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 40%),
  radial-gradient(circle at 10% 90%, rgba(91, 47, 180, .55), transparent 45%),
  linear-gradient(160deg, color-mix(in srgb, var(--ink-2) 92%, #000), color-mix(in srgb, var(--ink) 70%, #000)); color: #fff; display: flex; align-items: flex-end; padding: 56px; }
.as-login-art::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to top, #000, transparent 85%); }
.as-login-art-inner { position: relative; max-width: 480px; }
.as-eyebrow { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .2em; font-weight: 700; color: var(--orange); font-size: 15px; margin: 0 0 14px; }
.as-login-art h2 { font-family: var(--f-display); color: #fff; font-size: clamp(34px, 4vw, 52px); line-height: 1.05; margin: 0 0 28px; }
.as-login-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.as-login-art li { display: flex; gap: 14px; align-items: center; color: #d9d0ee; font-size: 16px; }
.as-login-art li span { font-family: var(--f-label); font-weight: 700; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 4px 8px; font-size: 14px; }
.as-login-panel { background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.as-login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 34px 30px 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.as-login-logo { width: 128px; height: 128px; object-fit: contain; align-self: center; margin: -4px 0 10px; }
.as-login-card h1 { font-family: var(--f-display); font-size: 30px; text-align: center; }
.as-login-card > .as-muted { text-align: center; margin: 4px 0 22px; }
.as-pass { position: relative; display: block; }
.as-pass .as-input { padding-right: 68px; }
.as-pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg); color: var(--ink-3); font-weight: 600; font-size: 13px; padding: 6px 10px; border-radius: 7px; cursor: pointer; }
.as-link-sm { display: block; text-align: center; margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.as-back { color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) {
  .as-login { grid-template-columns: 1fr; }
  .as-login-art { display: none; }
  .as-login-panel { min-height: 100vh; background: linear-gradient(180deg, var(--ink) 0 220px, var(--bg) 220px); }
}

/* ---------- App shell ---------- */
.as-boot { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--muted); }
.as-boot img { width: 96px; animation: as-pulse 1.4s ease-in-out infinite; }
@keyframes as-pulse { 50% { opacity: .5; transform: scale(.96); } }

.as-shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.as-side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 92%, #000) 0%, color-mix(in srgb, var(--ink) 78%, #000) 100%); color: #cfc5e4; display: flex; flex-direction: column; padding: 22px 16px; }
.as-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; text-decoration: none; }
.as-brand img { width: 46px; height: 46px; background: #fff; border-radius: 50%; padding: 2px; }
.as-brand b { display: block; font-family: var(--f-display); color: #fff; font-size: 20px; line-height: 1; }
.as-brand small { font-family: var(--f-label); letter-spacing: .18em; text-transform: uppercase; color: var(--orange); font-weight: 700; font-size: 12px; }
.as-new-btn { margin: 0 4px 18px; }
.as-nav { display: flex; flex-direction: column; gap: 2px; }
.as-nav-label { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-size: 12px; color: #8a7fa6; padding: 14px 12px 6px; }
.as-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #d6cdea; text-decoration: none; font-weight: 500; transition: background .15s, color .15s; }
.as-nav a svg { width: 19px; height: 19px; opacity: .85; }
.as-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.as-nav a.is-active { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 3px 0 0 var(--orange); }
.as-nav a .as-badge { margin-left: auto; }
.as-side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 14px; }
.as-user { display: flex; align-items: center; gap: 10px; padding: 10px 12px 4px; }
.as-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 700; }
.as-user b { color: #fff; display: block; font-size: 14px; }
.as-user small { color: #8a7fa6; font-size: 12px; }

.as-main { min-width: 0; display: flex; flex-direction: column; }
.as-top { position: sticky; top: 0; z-index: 30; background: rgba(244, 242, 248, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 14px 32px; display: flex; align-items: center; gap: 14px; min-height: 68px; }
.as-top h1 { font-family: var(--f-display); font-size: 24px; line-height: 1.1; }
.as-top .as-crumb { font-size: 13px; color: var(--muted); }
.as-top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.as-content { padding: 28px 32px 60px; max-width: 1320px; width: 100%; }
.as-mobile-top, .as-tabbar { display: none; }

/* ---------- Cards ---------- */
.as-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.as-card-pad { padding: 22px; }
.as-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.as-card-head h2, .as-card-head h3 { font-size: 17px; font-family: var(--f-ui); font-weight: 700; }
.as-section-title { font-family: var(--f-display); font-size: 22px; margin: 0 0 4px; }
.as-section-sub { color: var(--muted); margin: 0 0 18px; }
.as-badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 3px 10px; font-size: 12px; font-weight: 700; background: var(--bg); color: var(--muted); }
.as-badge-live { background: var(--green-soft); color: var(--green); }
.as-badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.as-badge-draft { background: var(--yellow-soft); color: var(--yellow); }
.as-badge-orange { background: var(--orange); color: #fff; }

/* ---------- Dashboard ---------- */
.as-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 32px; color: #e4dcf5; background:
  radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 45%),
  linear-gradient(135deg, var(--ink-2), color-mix(in srgb, var(--ink) 80%, #000)); margin-bottom: 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.as-hero h2 { font-family: var(--f-display); color: #fff; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; margin: 0 0 8px; }
.as-hero p { margin: 0; max-width: 560px; font-size: 16px; }
.as-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.as-hero .as-btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.as-hero .as-btn-ghost:hover { background: rgba(255, 255, 255, .18); border-color: #fff; }
.as-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.as-stat { padding: 18px 20px; }
.as-stat span { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--muted); font-size: 13px; }
.as-stat b { display: block; font-family: var(--f-display); font-size: 34px; color: var(--ink); line-height: 1.1; margin-top: 4px; }
.as-stat small { color: var(--muted); }
.as-dash-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.as-coach { list-style: none; margin: 0; padding: 6px 0; }
.as-coach li { display: flex; gap: 12px; padding: 12px 22px; align-items: flex-start; }
.as-coach li + li { border-top: 1px solid var(--line); }
.as-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; margin-top: 1px; }
.as-dot.ok { background: var(--green); }
.as-dot.warn { background: var(--yellow); }
.as-dot.bad { background: var(--red); }
.as-coach b { display: block; color: var(--ink); font-size: 14px; }
.as-coach span { color: var(--muted); font-size: 13px; }
.as-coach a { font-size: 13px; font-weight: 600; }
.as-svc-cover { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 18px 22px 22px; }
.as-svc-pill { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; background: #fff; }
.as-svc-pill b { font-size: 13px; color: var(--ink); }
.as-svc-pill span { font-size: 12px; color: var(--muted); }
.as-svc-pill.is-empty { border-style: dashed; background: var(--orange-soft); border-color: #f6c6ad; }
.as-svc-pill.is-empty span { color: var(--orange-d); font-weight: 600; }

/* ---------- Project list ---------- */
.as-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.as-search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.as-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; color: var(--muted); }
.as-search .as-input { padding-left: 38px; }
.as-seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.as-seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 13px; }
.as-seg button.is-active { background: var(--ink); color: #fff; }
.as-plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.as-pcard { overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.as-pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.as-pcard-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #ece7f5, #ddd5ec); display: grid; place-items: center; color: #9b91b3; cursor: pointer; }
.as-pcard-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-pcard-img .as-badge { position: absolute; top: 12px; left: 12px; }
.as-pcard-score { position: absolute; top: 12px; right: 12px; background: #fff; border-radius: 99px; padding: 3px 9px; font-size: 12px; font-weight: 800; }
.as-pcard-body { padding: 16px 18px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.as-pcard-body h3 { font-size: 16px; font-family: var(--f-ui); font-weight: 700; line-height: 1.3; cursor: pointer; }
.as-pcard-meta { color: var(--muted); font-size: 13px; }
.as-pcard-actions { display: flex; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
.as-pcard-actions .as-btn-quiet { flex: 1; }
.as-empty { text-align: center; padding: 56px 24px; }
.as-empty-ico { width: 72px; height: 72px; border-radius: 20px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; margin: 0 auto 16px; }
.as-empty-ico svg { width: 34px; height: 34px; }
.as-empty h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 6px; }
.as-empty p { color: var(--muted); max-width: 420px; margin: 0 auto 18px; }

/* ---------- Editor ---------- */
.as-steps { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px; margin-bottom: 22px; box-shadow: var(--shadow); overflow-x: auto; }
.as-step { flex: 1; min-width: 130px; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; color: var(--muted); }
.as-step i { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 13px; background: var(--bg); color: var(--muted); border: 1.5px solid var(--line-2); }
.as-step b { display: block; font-size: 14px; color: inherit; }
.as-step small { display: block; font-size: 12px; color: var(--muted); }
.as-step:hover { background: var(--bg); }
.as-step.is-active { background: var(--ink); color: #fff; }
.as-step.is-active i { background: var(--orange); color: #fff; border-color: var(--orange); }
.as-step.is-active small { color: #bfb3dc; }
.as-step.is-done i { background: var(--green); border-color: var(--green); color: #fff; }
.as-editor { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.as-panel { padding: 26px; }
.as-panel-head { margin-bottom: 20px; }
.as-panel-head h2 { font-family: var(--f-display); font-size: 24px; }
.as-panel-head p { color: var(--muted); margin: 4px 0 0; }
.as-panel-nav { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.as-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.as-tile { position: relative; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 14px 12px; cursor: pointer; text-align: left; display: flex; flex-direction: column; gap: 8px; color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.25; transition: border-color .15s, background .15s, box-shadow .15s; }
.as-tile svg { width: 24px; height: 24px; color: var(--ink-3); }
.as-tile:hover { border-color: var(--ink-3); }
.as-tile.is-active { border-color: var(--orange); background: var(--orange-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.as-tile.is-active svg { color: var(--orange); }
.as-tile.is-active::after { content: "✓"; position: absolute; top: 8px; right: 10px; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 12px; display: grid; place-items: center; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line-2); background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.as-chip:hover { border-color: var(--ink-3); }
.as-chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.as-chip.is-suggest { border-style: dashed; color: var(--muted); font-weight: 500; }
.as-chip.is-suggest::before { content: "+"; font-weight: 800; color: var(--orange); }
.as-chip x { font-style: normal; opacity: .7; margin-left: 2px; }
.as-list-add { display: flex; gap: 8px; margin-top: 10px; }
.as-list-add .as-input { flex: 1; }

/* Photos */
.as-drop { border: 2px dashed var(--line-2); border-radius: 16px; background: #faf9fc; padding: 34px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; display: block; }
.as-drop:hover, .as-drop.is-over { border-color: var(--orange); background: var(--orange-soft); }
.as-drop-ico { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 16px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.as-drop-ico svg { width: 28px; height: 28px; }
.as-drop b { display: block; font-size: 17px; color: var(--ink); }
.as-drop span { color: var(--muted); font-size: 14px; }
.as-drop input { display: none; }
.as-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px,100%), 1fr)); gap: 14px; margin-top: 18px; }
.as-photo { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.as-photo.is-drag { opacity: .4; }
.as-photo.is-target { outline: 3px solid var(--orange); }
.as-photo-img { position: relative; aspect-ratio: 4 / 3; background: #eee; cursor: grab; }
.as-photo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-photo-cover { position: absolute; top: 8px; left: 8px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; }
.as-photo-progress { position: absolute; inset: 0; background: rgba(20, 4, 48, .65); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 13px; }
.as-bar { width: 70%; height: 6px; background: rgba(255, 255, 255, .25); border-radius: 9px; overflow: hidden; }
.as-bar i { display: block; height: 100%; background: var(--orange); width: 0; transition: width .2s; }
.as-photo-err { position: absolute; inset: 0; background: rgba(211, 58, 58, .88); color: #fff; padding: 12px; font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; }
.as-photo-body { padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.as-photo-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.as-photo-labels button { border: 1px solid var(--line-2); background: #fff; border-radius: 7px; padding: 5px 0; font-size: 11px; font-weight: 700; color: var(--muted); cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.as-photo-labels button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.as-photo-labels button.is-on[data-l=after] { background: var(--orange); border-color: var(--orange); }
.as-photo-alt { font-size: 13px !important; padding: 7px 9px !important; }
.as-photo-tools { display: flex; gap: 4px; }
.as-photo-tools button { flex: 1; border: 0; background: var(--bg); border-radius: 7px; padding: 6px; cursor: pointer; color: var(--ink-3); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 4px; }
.as-photo-tools button:hover { background: #e9e4f2; }
.as-photo-tools button.is-danger { color: var(--red); }
.as-photo-tools svg { width: 15px; height: 15px; }

/* Story builder */
.as-qa { display: grid; gap: 14px; margin-bottom: 18px; }
.as-qa-item { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.as-qa-item .as-label { margin-bottom: 4px; }
.as-qa-item .as-textarea { min-height: 70px; font-size: 15px; }
.as-qa-num { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; display: inline-grid; place-items: center; }
.as-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 600; margin: 22px 0; }
.as-divider::before, .as-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.as-words { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.as-words .as-bar { width: 140px; background: var(--line); height: 6px; }
.as-words .as-bar i { transition: width .3s, background .3s; }

/* SEO rail */
.as-rail { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.as-score { padding: 20px; display: flex; gap: 16px; align-items: center; }
.as-ring { position: relative; width: 84px; height: 84px; flex: none; }
.as-ring svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.as-ring circle { fill: none; stroke-width: 8; }
.as-ring .bg { stroke: var(--line); }
.as-ring .fg { stroke-linecap: round; transition: stroke-dashoffset .5s, stroke .3s; }
.as-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--f-display); font-size: 26px; color: var(--ink); }
.as-score h3 { font-size: 16px; font-family: var(--f-ui); }
.as-score p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.as-checklist { list-style: none; margin: 0; padding: 4px 0; max-height: 380px; overflow: auto; }
.as-checklist li { display: flex; gap: 10px; padding: 9px 18px; font-size: 13px; align-items: flex-start; }
.as-checklist li + li { border-top: 1px solid var(--line); }
.as-checklist .as-dot { width: 18px; height: 18px; font-size: 10px; }
.as-checklist b { display: block; color: var(--ink); font-weight: 600; }
.as-checklist span { color: var(--muted); }
.as-serp { padding: 16px 18px; font-family: arial, sans-serif; }
.as-serp-site { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #202124; }
.as-serp-site img { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #ddd; background: #fff; }
.as-serp-site small { display: block; color: #4d5156; }
.as-serp-title { color: #1a0dab; font-size: 18px; line-height: 1.3; margin: 6px 0 3px; }
.as-serp-desc { color: #4d5156; font-size: 13px; line-height: 1.5; }
.as-rail-actions { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.as-autosave { font-size: 12px; color: var(--muted); text-align: center; }
.as-seo-fields .as-field { margin-bottom: 20px; }
.as-auto-tag { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--green); background: var(--green-soft); border-radius: 99px; padding: 2px 8px; }
.as-auto-tag.is-manual { color: var(--muted); background: var(--bg); }
.as-mscore { display: none; }

/* ---------- Headers ---------- */
.as-hgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.as-hcard { overflow: hidden; }
.as-hprev { position: relative; aspect-ratio: 16 / 7; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 14px; }
.as-hprev::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, var(--ink) 55%, transparent) 60%, color-mix(in srgb, var(--ink) 25%, transparent)); }
.as-hprev b { position: relative; color: #fff; font-family: var(--f-display); font-size: 20px; }
.as-hprev .as-badge { position: absolute; top: 12px; right: 12px; }
.as-hbody { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.as-hbody .as-seg { align-self: flex-start; }
.as-hbody-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.as-hgroup { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .16em; font-weight: 700; color: var(--muted); font-size: 14px; margin: 28px 0 12px; }
.as-hgroup:first-child { margin-top: 0; }

/* ---------- Brand ---------- */
.as-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.as-asset { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.as-asset-img { aspect-ratio: 4 / 3; border-radius: 10px; background: repeating-conic-gradient(#f1eef6 0 25%, #fff 0 50%) 0 0 / 18px 18px; display: grid; place-items: center; padding: 18px; border: 1px solid var(--line); }
.as-asset-img img { max-height: 100%; object-fit: contain; }
.as-asset h3 { font-size: 15px; font-family: var(--f-ui); }
.as-asset p { margin: 0; color: var(--muted); font-size: 13px; }
.as-switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.as-switch input { display: none; }
.as-switch i { flex: none; width: 46px; height: 26px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .2s; }
.as-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
.as-switch input:checked + i { background: var(--orange); }
.as-switch input:checked + i::after { transform: translateX(20px); }
.as-switch b { display: block; color: var(--ink); }
.as-switch span { color: var(--muted); font-size: 13px; }
.as-swatches { display: flex; gap: 8px; margin-top: 8px; }
.as-swatches i { width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, .08); }

/* ---------- Help ---------- */
.as-help-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.as-acc { border-bottom: 1px solid var(--line); }
.as-acc:last-child { border-bottom: 0; }
.as-acc summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 14px; font-weight: 700; color: var(--ink); font-size: 16px; }
.as-acc summary::-webkit-details-marker { display: none; }
.as-acc summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--orange); font-weight: 400; transition: transform .2s; }
.as-acc[open] summary::after { transform: rotate(45deg); }
.as-acc-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex: none; }
.as-acc-ico svg { width: 20px; height: 20px; }
.as-acc-body { padding: 0 22px 22px 74px; color: #3a3448; font-size: 15px; line-height: 1.65; }
.as-acc-body ol, .as-acc-body ul { padding-left: 20px; margin: 8px 0; }
.as-acc-body li { margin: 6px 0; }
.as-acc-body p { margin: 0 0 10px; }
.as-tip { background: var(--orange-soft); border-radius: 10px; padding: 10px 12px; color: #7a2b06; font-size: 14px; margin-top: 10px; }

/* ---------- Toasts & modal ---------- */
.as-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.as-toast { pointer-events: auto; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; font-weight: 500; min-width: 240px; max-width: 380px; animation: as-in .25s ease; }
.as-toast.is-ok { border-left: 4px solid #3ddc84; }
.as-toast.is-err { background: var(--red); }
.as-toast a { color: #ffd2bd; font-weight: 700; margin-left: auto; }
@keyframes as-in { from { opacity: 0; transform: translateY(10px); } }
.as-modal-back { position: fixed; inset: 0; background: rgba(18, 4, 44, .55); backdrop-filter: blur(3px); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 20px; animation: as-fade .2s; }
@keyframes as-fade { from { opacity: 0; } }
.as-modal { background: #fff; border-radius: 18px; max-width: 440px; width: 100%; padding: 26px; box-shadow: var(--shadow-lg); animation: as-in .25s ease; }
.as-modal h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 8px; }
.as-modal p { color: var(--muted); margin: 0 0 20px; }
.as-modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.as-publish-ok { text-align: center; }
.as-publish-ok .as-empty-ico { background: var(--green-soft); color: var(--green); }

.as-spin { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: as-rot .7s linear infinite; }
.as-btn-ghost .as-spin { border-color: var(--line-2); border-top-color: var(--ink); }
@keyframes as-rot { to { transform: rotate(360deg); } }
.as-skel { background: linear-gradient(90deg, #ece8f3, #f6f4f9, #ece8f3); background-size: 200% 100%; animation: as-sh 1.2s infinite; border-radius: 12px; }
@keyframes as-sh { to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .as-editor { grid-template-columns: minmax(0, 1fr) 320px; }
  .as-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .as-shell { grid-template-columns: 1fr; }
  .as-side { display: none; }
  .as-mobile-top { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 40; }
  .as-mobile-top img { width: 36px; height: 36px; border-radius: 50%; background: #fff; padding: 2px; }
  .as-mobile-top b { font-family: var(--f-display); font-size: 18px; }
  .as-mobile-top small { font-family: var(--f-label); color: var(--orange); letter-spacing: .14em; text-transform: uppercase; font-weight: 700; font-size: 11px; display: block; line-height: 1; }
  .as-mobile-top a { margin-left: auto; color: #d6cdea; font-size: 13px; text-decoration: none; font-weight: 600; }
  .as-top { position: static; padding: 16px; min-height: 0; flex-wrap: wrap; }
  .as-top h1 { font-size: 22px; }
  .as-top-actions .as-hide-m { display: none; }
  .as-content { padding: 16px 16px calc(110px + var(--safe-b)); }
  .as-tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--safe-b)); box-shadow: 0 -8px 24px color-mix(in srgb, var(--ink) 8%, transparent); }
  .as-tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600; padding: 6px 0; }
  .as-tabbar a svg { width: 22px; height: 22px; }
  .as-tabbar a.is-active { color: var(--ink); }
  .as-tabbar a.is-active svg { color: var(--orange); }
  .as-tabbar .as-tab-new span { width: 50px; height: 50px; margin-top: -24px; border-radius: 16px; background: var(--orange); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
  .as-tabbar .as-tab-new svg { color: #fff !important; }
  .as-editor { grid-template-columns: 1fr; }
  .as-rail { position: static; }
  .as-rail-actions { display: none; }
  .as-mscore { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; cursor: pointer; }
  .as-mscore b { font-family: var(--f-display); font-size: 20px; }
  .as-mscore span { color: var(--muted); font-size: 13px; }
  .as-mbar { position: fixed; left: 0; right: 0; bottom: calc(64px + var(--safe-b)); z-index: 45; background: #fff; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 8px; box-shadow: 0 -6px 18px color-mix(in srgb, var(--ink) 6%, transparent); }
  .as-mbar .as-btn { flex: 1; }
  .as-panel-nav { display: none; }
  .as-dash-grid, .as-help-grid { grid-template-columns: 1fr; }
  .as-brand-grid { grid-template-columns: 1fr 1fr; }
  .as-toasts { left: 16px; right: 16px; bottom: calc(140px + var(--safe-b)); }
  .as-step { min-width: 0; padding: 8px; justify-content: center; }
  .as-step b, .as-step small { display: none; }
  .as-step.is-active b { display: block; }
}
@media (min-width: 981px) { .as-mbar { display: none; } }
@media (max-width: 560px) {
  .as-row { grid-template-columns: 1fr; gap: 0; }
  .as-panel { padding: 18px; }
  .as-hero { padding: 24px; }
  .as-stats { gap: 10px; }
  .as-stat { padding: 14px; }
  .as-stat b { font-size: 28px; }
  .as-tiles { grid-template-columns: 1fr 1fr; }
  .as-photos { grid-template-columns: 1fr; gap: 12px; }
  .as-photo-labels button { font-size: 10px; }
  .as-brand-grid { grid-template-columns: 1fr; }
  .as-acc-body { padding-left: 22px; }
  .as-plist { grid-template-columns: 1fr; }
}
.as-label svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.as-pcard-img > svg { width: 48px; height: 48px; }
.as-label { flex-wrap: wrap; }

.as-login-join { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.as-login-join a { color: var(--orange-d); font-weight: 700; }
.as-signup { max-width: 460px; }
.as-person { display: flex; align-items: center; gap: 14px; padding: 14px 22px; flex-wrap: wrap; }
.as-person + .as-person { border-top: 1px solid var(--line); }
.as-person-info { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.as-person-info b { color: var(--ink); }
.as-person-info span { color: var(--muted); font-size: 13px; }
.as-person-info q { display: block; margin-top: 6px; font-size: 14px; color: var(--text); background: var(--bg); border-radius: 8px; padding: 8px 10px; quotes: "“" "”"; }
.as-person-actions { display: flex; gap: 8px; align-items: center; }
.as-role-sel { width: auto; font-size: 14px; padding: 7px 10px; }
.as-roles { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.as-roles li { margin: 6px 0; }
.as-roles b { color: var(--ink); }
.as-copy { display: flex; gap: 8px; }
.as-copy .as-input { font-size: 13px; }
.as-menu-btn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; padding: 7px 11px; font-weight: 600; font-size: 13px; cursor: pointer; }
.as-menu-btn svg { width: 18px; height: 18px; }
.as-msheet { position: fixed; top: 60px; left: 12px; right: 12px; z-index: 60; background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 92%, #000), color-mix(in srgb, var(--ink) 78%, #000)); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); }
.as-msheet[hidden] { display: none; }
@media (min-width: 981px) { .as-msheet { display: none !important; } }
@media (max-width: 980px) { .as-dash-grid[style] { grid-template-columns: 1fr !important; } }

.as-badge-del { background: var(--red-soft); color: var(--red); }
.as-hprev { background-color: var(--ink); }
/* Page section editor */
.as-secs { display: flex; flex-direction: column; gap: 12px; }
.as-sec { overflow: hidden; }
.as-sec.is-hidden { opacity: .6; }
.as-sec.is-open { box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.as-sec-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.as-sec-head:hover { background: #faf9fc; }
.as-sec-num { width: 26px; height: 26px; border-radius: 8px; background: var(--bg); color: var(--muted); font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.as-sec-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; flex: none; }
.as-sec-ico svg { width: 20px; height: 20px; }
.as-sec-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.as-sec-name b { color: var(--ink); font-size: 15px; }
.as-sec-name em { color: var(--muted); font-style: normal; font-weight: 500; }
.as-sec-name small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-sec-tools { display: flex; gap: 4px; flex: none; }
.as-sec-tools button, .as-rep-tools button { width: 32px; height: 32px; border: 1px solid var(--line); background: #fff; border-radius: 8px; cursor: pointer; color: var(--ink-3); display: grid; place-items: center; font-size: 15px; }
.as-sec-tools button:hover, .as-rep-tools button:hover { border-color: var(--ink-3); }
.as-sec-tools button[disabled] { opacity: .35; cursor: default; }
.as-sec-tools button.is-danger, .as-rep-tools button.is-danger { color: var(--red); }
.as-sec-tools svg { width: 16px; height: 16px; }
.as-sec-body { padding: 6px 20px 20px; border-top: 1px solid var(--line); background: #fdfcfe; }
.as-sec-body .as-field:first-child { margin-top: 16px; }
.as-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 2px; margin: 0 0 18px; background: #fff; }
.as-group legend { font-weight: 700; color: var(--ink); padding: 0 6px; font-size: 14px; }
.as-rep { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.as-rep-item { border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.as-rep-item > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink); }
.as-rep-item > summary::-webkit-details-marker { display: none; }
.as-rep-item > summary > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-rep-item[open] > summary { border-bottom: 1px solid var(--line); }
.as-rep-tools { display: flex; gap: 4px; }
.as-rep-tools button { width: 28px; height: 28px; font-size: 13px; }
.as-rep-body { padding: 14px 14px 0; }
.as-note { background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.as-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 18px; max-height: 60vh; overflow: auto; }
.as-pick { text-align: left; border: 1.5px solid var(--line-2); background: #fff; border-radius: 12px; padding: 14px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.as-pick:hover { border-color: var(--orange); background: var(--orange-soft); }
.as-pick svg { width: 22px; height: 22px; color: var(--orange); margin-bottom: 4px; }
.as-pick b { color: var(--ink); }
.as-pick span { color: var(--muted); font-size: 13px; }
.as-pagecard { display: flex; flex-direction: column; justify-content: space-between; }
.as-pagecard > div:first-child { padding: 18px; }
.as-pagecard h3 { font-family: var(--f-ui); font-size: 16px; margin-bottom: 4px; }
@media (max-width: 560px) { .as-sec-tools button[data-dup] { display: none; } .as-sec-ico { display: none; } }
.as-rail h3 svg { width: 16px; height: 16px; vertical-align: -3px; color: var(--orange); }

/* 2.1 — photo picker, episodes */
.as-imgpick { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px dashed var(--line-2); border-radius: 12px; background: #fafafa; }
.as-imgpick img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.as-imgpick-empty { width: 96px; height: 72px; border-radius: 8px; background: var(--bg); display: grid; place-items: center; color: var(--muted); font-size: 12px; flex: none; text-align: center; }
.as-imgpick-empty svg { width: 22px; height: 22px; display: block; margin: 0 auto 2px; }
.as-imgpick-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.as-ep-list { display: grid; gap: 14px; }
.as-ep-row { display: grid; grid-template-columns: 160px 1fr auto; gap: 16px; align-items: center; padding: 12px; }
.as-ep-row img, .as-ep-row .as-ep-noimg { width: 160px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.as-ep-row h3 { font-size: 17px; font-family: var(--f-ui); margin-bottom: 4px; }
.as-ep-row .as-muted { font-size: 14px; }
.as-ep-prev { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--ink); display: grid; place-items: center; color: #fff; margin-bottom: 14px; }
.as-ep-prev img { width: 100%; height: 100%; object-fit: cover; }
.as-ep-watch { display: grid; grid-template-columns: 140px 1fr 1fr 1.4fr 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 760px) {
  .as-ep-row { grid-template-columns: 110px 1fr; }
  .as-ep-row img, .as-ep-row .as-ep-noimg { width: 110px; }
  .as-ep-row .as-pcard-actions { grid-column: 1 / -1; }
  .as-ep-watch { grid-template-columns: 1fr 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
  .as-ep-watch [data-w=url] { grid-column: 1 / -1; }
}

/* ---------- Leads inbox ---------- */
.as-lead-banner { display: flex; align-items: center; gap: 10px; text-decoration: none; margin: 0 0 18px; }
.as-lead-banner svg { width: 20px; height: 20px; flex: none; }
.as-lead-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 520px; }
.as-lead-seg { margin-bottom: 16px; flex-wrap: wrap; }
.as-lead-list { display: grid; gap: 14px; }
.as-lead { padding: 18px 20px; border-left: 4px solid transparent; }
.as-lead.is-new { border-left-color: var(--orange); }
.as-lead-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.as-lead-top h3 { margin: 0 0 2px; font-size: 18px; }
.as-lead-msg { white-space: pre-wrap; margin: 12px 0 0; line-height: 1.55; overflow-wrap: anywhere; }
.as-lead-fields { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 14px; }
.as-lead-fields dt { color: var(--muted); font-weight: 600; }
.as-lead-fields dd { margin: 0; overflow-wrap: anywhere; }
.as-lead-contact, .as-lead-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.as-lead-contact .as-btn { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-lead-more { margin-top: 12px; }
.as-lead-more summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; }
.as-lead-more[open] summary { margin-bottom: 10px; }
@media (max-width: 560px) { .as-lead-fields { grid-template-columns: 1fr; } .as-lead-fields dd { margin-bottom: 6px; } }

/* ---------- Backups ---------- */
.as-bk-wrap { overflow-x: auto; }
.as-bk { width: 100%; border-collapse: collapse; font-size: 14px; }
.as-bk th { text-align: left; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.as-bk td { padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.as-bk-act { text-align: right; }
.as-tab-badge { position: relative; }
.as-tab-badge .as-badge { position: absolute; top: 2px; left: 50%; margin-left: 6px; padding: 1px 6px; font-size: 11px; }

/* ---------- Events & Updates ---------- */
.as-ev-list { display: grid; gap: 12px; margin-bottom: 18px; }
.as-ev-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 12px 16px; }
.as-ev-row.is-past { opacity: .7; }
.as-ev-row h3 { font-size: 17px; font-family: var(--f-ui); margin-bottom: 4px; }
.as-ev-row .as-muted { font-size: 14px; }
.as-ev-date { text-align: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 4px; line-height: 1.1; }
.as-ev-date small { display: block; text-transform: uppercase; font-size: 11px; letter-spacing: .1em; font-weight: 700; color: var(--orange); }
.as-ev-date b { display: block; font-size: 24px; font-family: var(--f-display); }
.as-ev-past summary { cursor: pointer; font-weight: 600; color: var(--muted); margin: 8px 0 12px; }
.as-up-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; padding: 12px; }
.as-up-row img, .as-up-row .as-ep-noimg { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--bg); display: grid; place-items: center; color: var(--muted); }
.as-up-row h3 { font-size: 17px; font-family: var(--f-ui); margin-bottom: 4px; }
@media (max-width: 640px) {
  .as-ev-row { grid-template-columns: 54px 1fr; }
  .as-ev-row .as-pcard-actions, .as-up-row .as-pcard-actions { grid-column: 1 / -1; }
  .as-up-row { grid-template-columns: 90px 1fr; }
  .as-up-row img, .as-up-row .as-ep-noimg { width: 90px; }
}
.as-demo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.as-demo h3 { font-size: 18px; font-family: var(--f-ui); margin: 0; }
.as-demo .as-help { min-height: 66px; margin-bottom: 14px; }
.as-demo.is-on { border-color: var(--orange); box-shadow: 0 0 0 2px color-mix(in srgb, var(--orange) 30%, transparent); }

/* Photos sent with a lead (G7 Contact Pro) */
.as-lead-files { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 0; }
.as-lead-files a { display: block; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--soft, #f4f3f7); }
.as-lead-files img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-lead-files span { display: grid; place-items: center; height: 100%; font-weight: 700; color: var(--muted); }
/* Forms screen hosts the G7 Contact Pro builder */
.as-forms-host .g7cpb { max-width: none; }
.as-forms-host .g7cpb-sticky { top: 16px; }
.as-seg a { padding: 7px 12px; border-radius: 7px; font-weight: 600; color: var(--muted); font-size: 13px; text-decoration: none; }
.as-seg a.is-active { background: var(--ink); color: #fff; }

/* G7Life Media credit */
.as-by { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: rgba(255, 255, 255, .55); text-decoration: none; border-radius: 8px; }
.as-by:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.as-by img { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.as-login-card .as-by { justify-content: center; color: var(--muted); margin-top: 18px; }
.as-login-card .as-by:hover { color: var(--ink); background: transparent; }
.as-help-g7 { display: flex; gap: 16px; align-items: flex-start; }
.as-help-g7 img { width: 48px; height: 48px; border-radius: 50%; flex: none; }

/* =========================================================
   Studio 2.6 — photo picker, photo options, library, design panel
   ========================================================= */
.as-imgpick.has-img { align-items: flex-start; flex-wrap: wrap; background: #fff; border-style: solid; }
.as-imgprev { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.as-imgframe { position: relative; display: inline-block; cursor: crosshair; border-radius: 8px; overflow: hidden; line-height: 0; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.as-imgpick .as-imgframe img { width: auto; height: auto; max-width: min(260px, 62vw); max-height: 170px; object-fit: contain; border-radius: 0; display: block; user-select: none; -webkit-user-drag: none; }
.as-focus { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; background: var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, .35), 0 4px 10px rgba(0, 0, 0, .3); pointer-events: none; transition: left .15s, top .15s; }
.as-crops { display: flex; gap: 6px; align-items: flex-end; }
.as-crops span { display: block; background-size: cover; border-radius: 6px; border: 1px solid var(--line); }
.as-crops span:nth-child(1) { width: 78px; height: 40px; }
.as-crops span:nth-child(2) { width: 52px; height: 52px; }
.as-crops span:nth-child(3) { width: 40px; height: 60px; }
.as-imgpick.has-img .as-imgpick-btns { width: 100%; }
.as-imgopts { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.as-imgopts > summary { list-style: none; cursor: pointer; padding: 9px 12px; font-weight: 600; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.as-imgopts > summary::-webkit-details-marker { display: none; }
.as-imgopts > summary svg { width: 15px; height: 15px; }
.as-imgopts[open] > summary { border-bottom: 1px solid var(--line); }
.as-imgopts-warn { font-style: normal; font-weight: 600; font-size: 12px; color: var(--yellow); background: var(--yellow-soft); border-radius: 99px; padding: 1px 8px; }
.as-imgopts-body { padding: 4px 14px 12px; }
.as-imgopts-body .as-field { margin-top: 12px; }
.as-imgopts-tip:empty { display: none; }
.as-imgopts-tip { margin-top: 10px; }
.as-imgopts-body .as-check { margin: 10px 0 6px; }

.as-fold { border: 1px solid var(--line-2); border-radius: 12px; background: #fff; margin: 6px 0 18px; }
.as-fold > summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 14.5px; }
.as-fold > summary::-webkit-details-marker { display: none; }
.as-fold > summary svg { width: 18px; height: 18px; color: var(--accent); }
.as-fold > summary::after { content: "Show"; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.as-fold[open] > summary::after { content: "Hide"; }
.as-fold[open] > summary { border-bottom: 1px solid var(--line); }
.as-fold-body { padding: 0 16px 14px; }
.as-range { width: 100%; accent-color: var(--accent); margin-top: 6px; }
.as-range-val { margin-left: auto; font-weight: 700; color: var(--accent-d); font-size: 13px; }

.as-rep-thumb { width: 30px; height: 30px; object-fit: cover; border-radius: 6px; vertical-align: middle; margin-right: 8px; display: inline-block; }
.as-sec-thumb { width: 54px; height: 40px; object-fit: cover; border-radius: 8px; flex: none; border: 1px solid var(--line); }
@media (max-width: 560px) { .as-sec-thumb { display: none; } .as-sec-tools button[data-copysec] { display: none; } }

.as-modal-wide { max-width: 860px; max-height: calc(100vh - 40px); overflow: auto; }
.as-modal-wide .as-picker { max-height: none; overflow: visible; }
.as-pick-cat { font-family: var(--f-label); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; color: var(--muted); margin: 16px 0 8px; }
.as-pick-paste { width: 100%; margin: 6px 0 4px; border-color: var(--accent); background: var(--orange-soft); }

/* Photo library */
.as-lib { max-width: 980px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; padding: 22px; }
.as-lib-head p { margin-bottom: 12px; }
.as-lib-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.as-lib-search { position: relative; flex: 1; min-width: 200px; }
.as-lib-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.as-lib-search .as-input { padding-left: 38px; }
.as-lib-grid { flex: 1; overflow: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 16px 0 10px; padding: 2px; align-content: start; min-height: 200px; }
.as-lib-item { position: relative; aspect-ratio: 1; border: 2px solid transparent; border-radius: 10px; padding: 0; overflow: hidden; background: var(--bg); cursor: pointer; }
.as-lib-item img { width: 100%; height: 100%; object-fit: cover; }
.as-lib-item:hover { border-color: var(--ink-3); }
.as-lib-item.is-on { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.as-lib-size { position: absolute; left: 6px; bottom: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 99px; }
.as-lib-small { position: absolute; right: 6px; bottom: 6px; background: var(--yellow); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 99px; }
.as-lib-check { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.as-lib-check svg { width: 15px; height: 15px; }
.as-lib-more { text-align: center; }
.as-lib-more:empty { display: none; }
@media (max-width: 560px) { .as-lib { padding: 16px; } .as-lib-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } }

.as-switch-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fafafa; cursor: pointer; }
.as-switch-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); }
.as-switch-row small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* ---------- Search & Sharing ---------- */
.sx-tabs { margin-bottom: 20px; flex-wrap: wrap; }
.sx-stats .sx-ok { color: var(--green); } .sx-stats .sx-warn { color: var(--yellow); } .sx-stats .sx-bad { color: var(--red); }
.sx-stats .sx-sm { font-size: 28px; }
.sx-home { margin-bottom: 24px; }
.sx-home-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.sx-previews { display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 18px; align-items: start; }
.sx-pv h4 { display: flex; align-items: center; gap: 6px; font-family: var(--f-label); text-transform: uppercase; letter-spacing: .1em; font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.sx-pv h4 svg { width: 15px; height: 15px; }
.sx-g { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-family: Arial, sans-serif; }
.sx-g-site { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.sx-g-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; overflow: hidden; flex: none; }
.sx-g-fav img { width: 18px; height: 18px; object-fit: contain; }
.sx-g-site b { display: block; font-size: 14px; color: #202124; font-weight: 400; }
.sx-g-site small { display: block; font-size: 12px; color: #4d5156; word-break: break-all; }
.sx-g-title { color: #1a0dab; font-size: 20px; line-height: 1.3; margin-bottom: 4px; }
.sx-g-desc { color: #4d5156; font-size: 14px; line-height: 1.58; }
.sx-fb { border: 1px solid #dadde1; border-radius: 10px; overflow: hidden; background: #fff; font-family: Helvetica, Arial, sans-serif; }
.sx-fb-img { aspect-ratio: 1.91 / 1; background: #eef0f3 center / cover no-repeat; }
.sx-fb-none { display: grid; place-items: center; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(45deg, #f3f1f7 0 10px, #fff 10px 20px); }
.sx-fb-body { background: #f0f2f5; padding: 10px 12px; }
.sx-fb-body small { display: block; font-size: 12px; color: #65676b; letter-spacing: .02em; }
.sx-fb-body b { display: block; font-size: 16px; color: #050505; line-height: 1.25; margin: 3px 0; }
.sx-fb-body span { display: block; font-size: 14px; color: #65676b; line-height: 1.35; }
.sx-msg { max-width: 260px; border-radius: 18px; overflow: hidden; background: #e9e9eb; font-family: -apple-system, system-ui, sans-serif; }
.sx-msg-img { aspect-ratio: 1.91 / 1; background: #ddd center / cover no-repeat; }
.sx-msg-body { padding: 9px 13px 11px; }
.sx-msg-body b { display: block; font-size: 14px; color: #000; line-height: 1.25; }
.sx-msg-body small { color: #6e6e73; font-size: 12px; }
.sx-hidden-note { border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 14px; background: #fff; }
.sx-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 14px; }
.sx-tools .as-search { flex: 1; min-width: 220px; max-width: 420px; }
.sx-list { display: grid; gap: 10px; }
.sx-row { display: flex; gap: 16px; padding: 14px 16px; color: inherit; text-decoration: none; transition: box-shadow .15s, border-color .15s; border: 1px solid transparent; }
.sx-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.sx-row-main { flex: 1; min-width: 0; }
.sx-row-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sx-row-top b { color: var(--ink); font-size: 16px; }
.sx-row-g { color: #1a0dab; font-size: 15px; margin-top: 4px; font-family: Arial, sans-serif; }
.sx-row-d { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 2px; }
.sx-row-img { width: 132px; aspect-ratio: 1.91 / 1; border-radius: 8px; background: #eee center / cover no-repeat; flex: none; align-self: center; }
.sx-flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.sx-flag { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.sx-flag svg { width: 12px; height: 12px; }
.sx-flag-ok { background: var(--green-soft); color: var(--green); }
.sx-flag-warn { background: var(--yellow-soft); color: #7a5300; }
.sx-flag-bad { background: var(--red-soft); color: var(--red); }
.sx-flag-info { background: #efeafb; color: var(--ink-2); }
.sx-back { display: inline-block; margin-bottom: 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.sx-ed-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.sx-ed-head a { font-size: 13px; word-break: break-all; }
.sx-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 22px; align-items: start; }
.sx-ed-form { display: grid; gap: 18px; }
.sx-ed-pv .sx-sticky { position: sticky; top: 20px; display: grid; gap: 18px; }
.sx-h { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 4px; color: var(--ink); }
.sx-h svg { width: 18px; height: 18px; }
.sx-ta { min-height: 90px; }
.sx-img { border: 1px solid var(--line); border-radius: 10px; min-height: 90px; display: grid; place-items: center; overflow: hidden; position: relative; background: #faf9fc; max-width: 420px; }
.sx-img img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; display: block; }
.sx-img .as-badge { position: absolute; left: 8px; top: 8px; background: #fff; }
.sx-img-btns [hidden] { display: none !important; }
.sx-img-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.sx-rd { display: grid; gap: 10px; margin-bottom: 14px; }
.sx-rd-row { display: grid; grid-template-columns: 1fr auto 1.4fr auto auto; gap: 10px; align-items: end; }
.sx-rd-row label span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.sx-arrow { padding-bottom: 12px; color: var(--muted); }
.sx-rd-hits { font-size: 12px; color: var(--muted); padding-bottom: 12px; white-space: nowrap; }
.sx-rd-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sx-miss { display: grid; gap: 6px; }
.sx-miss-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.sx-miss-row code { font-size: 14px; color: var(--ink); word-break: break-all; }
.sx-miss-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
@media (max-width: 1180px) { .sx-previews { grid-template-columns: 1fr 1fr; } .sx-ed { grid-template-columns: 1fr; } .sx-ed-pv .sx-sticky { position: static; } }
@media (max-width: 720px) {
  .sx-previews { grid-template-columns: 1fr; }
  .sx-row-img { width: 88px; }
  .sx-rd-row { grid-template-columns: 1fr auto; }
  .sx-rd-row label { grid-column: 1 / -1; }
  .sx-arrow, .sx-rd-hits { display: none; }
}

/* ---------- Creator tools ---------- */
.cr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cr-gear { display: flex; gap: 14px; padding: 14px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.cr-gear:hover { border-color: var(--line-2); }
.cr-gear img, .cr-gear .cr-noimg { width: 84px; height: 84px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); flex: none; }
.cr-gear b { display: block; color: var(--ink); line-height: 1.3; }
.cr-gear small { display: block; color: var(--muted); font-size: 13px; margin-top: 3px; }
.cr-gear .as-badge { margin: 6px 6px 0 0; }
.cr-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cr-cols > div { display: grid; gap: 18px; }
.cr-link { display: grid; grid-template-columns: 1fr 2fr .8fr auto; gap: 10px; align-items: end; margin-bottom: 10px; }
.cr-link label span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.cr-img { border: 1px solid var(--line); border-radius: 12px; background: #fff; display: grid; place-items: center; min-height: 160px; overflow: hidden; }
.cr-img img { max-height: 260px; width: 100%; object-fit: contain; padding: 10px; }
.cr-img-logo { min-height: 110px; background: repeating-conic-gradient(#f1eef6 0 25%, #fff 0 50%) 0 0 / 16px 16px; } .cr-img-logo img { max-height: 110px; }
.cr-img-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cr-actions { display: flex; gap: 10px; margin-top: 18px; align-items: center; }
.cr-list { display: grid; gap: 10px; }
.cr-sp { display: flex; align-items: center; gap: 16px; padding: 14px 16px; }
.cr-sp-logo { width: 130px; height: 64px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; flex: none; }
.cr-sp-logo img { max-height: 54px; max-width: 116px; object-fit: contain; }
.cr-sp-main { flex: 1; min-width: 0; } .cr-sp-main b { display: block; color: var(--ink); } .cr-sp-main small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.cr-nl-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cr-nl-head .as-search { flex: 1; max-width: 360px; }
.cr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cr-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cr-table td { padding: 10px 16px; border-bottom: 1px solid var(--line); word-break: break-word; }
.cr-pager { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px; }
@media (max-width: 900px) { .cr-cols { grid-template-columns: 1fr; } .cr-link { grid-template-columns: 1fr 1fr; } .cr-link .cr-link-url { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 600px) { .cr-table th:nth-child(4), .cr-table td:nth-child(4) { display: none; } }

/* 3.0 Reviews & Articles editor */
.st-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.st-tile { padding: 20px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: transform .15s, box-shadow .15s; }
.st-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.st-tile-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--orange, #e8641b) 14%, #fff); color: var(--orange-d, #c94f0c); font-size: 20px; font-weight: 800; }
.st-tile b { font-size: 17px; }
.st-tile small { color: var(--muted); line-height: 1.45; }
.st-tile em { font-size: 12px; color: var(--muted); font-style: normal; border-top: 1px dashed var(--line); padding-top: 8px; margin-top: auto; }
.st-tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: var(--muted); }
.st-tips b { color: var(--ink); }
.st-editor > aside { display: grid; gap: 16px; align-content: start; }
.st-editor .st-title { font-size: 20px; font-weight: 700; }
.st-b { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 0; overflow: hidden; }
.st-b-h { display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 16px; background: var(--soft, #f6f4f9); border-bottom: 1px solid var(--line); }
.st-b-h span { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-right: auto; }
.st-b-h button { border: 0; background: transparent; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 15px; color: var(--muted); }
.st-b-h button:hover:not(:disabled) { background: #fff; color: var(--ink); }
.st-b-h button:disabled { opacity: .3; cursor: default; }
.st-b-body { padding: 14px 16px; }
.st-b-body > .as-field:last-child, .st-b-body .as-field { margin-bottom: 10px; }
.st-b-h2 .st-b-body input { font-size: 20px; font-weight: 700; }
.st-b-h3 .st-b-body input { font-size: 17px; font-weight: 700; }
.st-b-verdict { border-left: 4px solid var(--orange, #e8641b); }
.st-b-product { border-color: color-mix(in srgb, var(--orange, #e8641b) 40%, var(--line)); }
.st-ta { width: 100%; line-height: 1.6; }
.st-ins { display: flex; justify-content: center; padding: 6px 0; position: relative; }
.st-ins > button { width: 30px; height: 30px; border-radius: 50%; border: 1.5px dashed var(--line); background: #fff; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; opacity: .7; }
.st-ins > button:hover { opacity: 1; border-style: solid; color: var(--orange-d, #c94f0c); border-color: currentColor; }
.st-menu { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; box-shadow: var(--shadow-lg); }
.st-menu button { text-align: left; border: 1px solid transparent; background: var(--soft, #f6f4f9); border-radius: 10px; padding: 9px 11px; cursor: pointer; display: grid; gap: 2px; }
.st-menu button:hover { border-color: var(--orange, #e8641b); background: #fff; }
.st-menu b { font-size: 14px; }
.st-menu small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.st-photo { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.st-photo img { width: 180px; height: 120px; object-fit: cover; border-radius: 10px; }
.st-photo > span { width: 180px; height: 120px; border: 1.5px dashed var(--line); border-radius: 10px; display: grid; place-items: center; }
.st-photo-btns { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.st-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-bottom: 8px; }
.st-gal div { position: relative; }
.st-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.st-gal button { position: absolute; top: 4px; right: 4px; border: 0; background: #fff; border-radius: 6px; padding: 1px 7px; cursor: pointer; }
.st-prod { display: flex; gap: 14px; align-items: center; background: var(--soft, #f6f4f9); border-radius: 12px; padding: 10px; margin-bottom: 10px; }
.st-prod img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 8px; }
.st-prod div { display: grid; gap: 2px; font-size: 14px; }
.st-prod small { color: var(--muted); }
.st-prod .st-warn { color: #b26b00; }
.st-more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.st-more summary { cursor: pointer; font-weight: 700; margin-bottom: 10px; }
.st-faq { border-bottom: 1px dashed var(--line); padding-bottom: 10px; margin-bottom: 12px; }
.st-link { border: 0; background: none; color: var(--orange-d, #c94f0c); font-weight: 700; cursor: pointer; padding: 0; font: inherit; font-size: 14px; text-decoration: underline; }
.st-cover { aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--soft, #f6f4f9); display: grid; place-items: center; margin: 6px 0 8px; border: 1.5px dashed var(--line); }
.st-cover img { width: 100%; height: 100%; object-fit: cover; }
.st-cover span { color: var(--muted); font-size: 13px; }
.st-wr { display: grid; grid-template-columns: 90px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-wr-pic { display: grid; gap: 6px; justify-items: center; }
.st-wr-pic img, .st-wr-pic span { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--soft, #f6f4f9); display: grid; place-items: center; font-size: 12px; color: var(--muted); }
.cr-pair { display: grid; grid-template-columns: 1fr 140px auto; gap: 8px; margin-bottom: 8px; }
@media (max-width: 600px) { .cr-pair { grid-template-columns: 1fr 100px auto; } .st-photo img, .st-photo > span { width: 100%; } }
#st-checks .as-checklist li { display: block; }
.st-lk { display: grid; grid-template-columns: 150px 1fr 100px auto; gap: 8px; margin-bottom: 8px; }
.st-buy { background: color-mix(in srgb, var(--orange, #e8641b) 5%, #fff); border: 1px solid color-mix(in srgb, var(--orange, #e8641b) 25%, var(--line)); border-radius: 12px; padding: 10px 14px; margin-top: 12px; }
.st-quick { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
@media (max-width: 700px) { .st-lk { grid-template-columns: 1fr 90px auto; } .st-lk [data-lk=url] { grid-column: 1 / -1; grid-row: 2; } }

/* 3.1 Music screen */
.mu-link { display: grid; grid-template-columns: 170px 1fr auto; gap: 8px; margin-bottom: 8px; }
.mu-track { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mu-num { font-weight: 800; color: var(--muted); padding-top: 10px; text-align: right; }
.mu-track-row { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.mu-track details { margin-top: 6px; }
.mu-track summary { cursor: pointer; font-size: 13px; font-weight: 700; color: var(--orange-d, #c94f0c); margin-bottom: 6px; }
.mu-track-btns { display: flex; gap: 2px; }
.mu-art { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--soft, #f6f4f9); display: grid; place-items: center; border: 1.5px dashed var(--line); margin-bottom: 10px; }
.mu-art img { width: 100%; height: 100%; object-fit: cover; }
.mu-card img { aspect-ratio: 1; object-fit: cover; }
@media (max-width: 600px) { .mu-link { grid-template-columns: 1fr auto; } .mu-link [data-l=url] { grid-column: 1 / -1; grid-row: 2; } }
