/* ============================================================
   AUTH · ARTIFACTS · ADMIN · LOCKS · USER CHIP
   ============================================================ */

/* ---------- AUTH PAGES ---------- */
.auth-wrap { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 40px 20px; position: relative; overflow: hidden; }
.auth-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .7; }
.auth-fade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(70% 60% at 50% 30%, transparent, var(--bg) 92%); }
.auth-card { position: relative; z-index: 2; width: 100%; max-width: 440px; background: linear-gradient(180deg, var(--surface), var(--navy));
  border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: clamp(28px, 4vw, 40px); box-shadow: var(--shadow-lg); }
.auth-card__brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-card__brand .brand__mark { width: 40px; height: 40px; }
.auth-card h1 { font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.auth-card__sub { text-align: center; color: var(--text-2); font-size: 14.5px; margin: 8px 0 26px; }
.oauth-btn { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; padding: 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-family: var(--sans); font-weight: 500; font-size: 15px; transition: .15s; margin-bottom: 12px; }
.oauth-btn:hover { background: var(--surface-3); transform: translateY(-1px); }
.oauth-btn svg { width: 20px; height: 20px; }
.oauth-btn.github svg { color: var(--text); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .1em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-ea { display: flex; align-items: center; gap: 13px; background: linear-gradient(100deg, rgba(59,130,246,.12), rgba(139,92,246,.12));
  border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 16px; margin-bottom: 24px; }
.auth-ea__ic { width: 42px; height: 42px; border-radius: var(--r); flex: none; display: grid; place-items: center;
  background: linear-gradient(150deg, var(--blue), var(--purple)); color: #fff; }
.auth-ea__ic svg { width: 22px; height: 22px; }
.auth-ea b { font-family: var(--display); font-size: 15px; font-weight: 600; display: block; }
.auth-ea span { font-size: 12.5px; color: var(--text-2); }
.auth-foot { text-align: center; font-size: 13.5px; color: var(--text-3); margin-top: 22px; }
.auth-foot a { color: var(--blue-hi); font-weight: 500; }
.auth-trust { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 18px; }
.auth-trust svg { width: 14px; height: 14px; color: var(--success); }
.auth-alert { display: none; align-items: center; gap: 10px; background: rgba(249,115,22,.10); border: 1px solid rgba(249,115,22,.3);
  border-radius: var(--r); padding: 12px 14px; margin-bottom: 18px; font-size: 13px; color: var(--warning); }
.auth-alert.show { display: flex; }
.auth-alert svg { width: 16px; height: 16px; flex: none; }

/* ---------- LOCKED states (agents / modes) ---------- */
.lock-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 100px; background: rgba(249,115,22,.12); color: var(--warning); border: 1px solid rgba(249,115,22,.25); }
.lock-tag svg { width: 11px; height: 11px; }
.agent-card.locked, .mode.locked { position: relative; }
.agent-card.locked .agent-card__cta { background: transparent; border-color: var(--line); color: var(--text-3); }
.agent-card.locked .av, .agent-card.locked .mode__ico { filter: saturate(.5) opacity(.8); }
.mode.locked { opacity: .92; }
.plan-note { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12px; color: var(--text-3);
  background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 100px; padding: 7px 14px; }
.plan-note svg { width: 13px; height: 13px; color: var(--warning); }

/* plan badge on cards */
.plan-pill { font-family: var(--mono); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 100px; }
.plan-pill.explorer { background: rgba(100,112,137,.18); color: var(--text-2); }
.plan-pill.builder { background: rgba(34,211,238,.14); color: var(--cyan); }
.plan-pill.founder { background: rgba(59,130,246,.14); color: var(--blue-hi); }
.plan-pill.studio { background: rgba(139,92,246,.14); color: var(--purple-hi); }

/* ---------- ARTIFACTS LIBRARY ---------- */
.art-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.art-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.art-filter { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.02);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; transition: .14s; }
.art-filter:hover { color: var(--text); border-color: var(--line-2); }
.art-filter.on { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-color: transparent; color: #fff; }
.art-search { margin-left: auto; display: flex; align-items: center; gap: 8px; background: var(--bg); border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 8px 12px; min-width: 180px; }
.art-search svg { width: 15px; height: 15px; color: var(--text-3); }
.art-search input { background: transparent; border: 0; outline: none; color: var(--text); font-family: var(--sans); font-size: 13.5px; width: 100%; }

.art-lib-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 1000px) { .art-lib-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .art-lib-grid { grid-template-columns: 1fr; } }
.art-tile { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; transition: .18s; cursor: pointer; display: flex; flex-direction: column; }
.art-tile:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.art-tile__top { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.art-tile__ic { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none;
  background: rgba(139,92,246,.10); border: 1px solid rgba(139,92,246,.22); color: var(--purple-hi); }
.art-tile__ic svg { width: 18px; height: 18px; }
.art-tile__type { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.art-tile__sc { margin-left: auto; font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--success); }
.art-tile h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: -.01em; }
.art-tile p { font-size: 12.5px; color: var(--text-3); margin: 0 0 14px; line-height: 1.5; }
.art-tile__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.art-tile__date { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.art-tile__open { font-family: var(--mono); font-size: 11.5px; color: var(--blue-hi); display: inline-flex; align-items: center; gap: 5px; }

/* artifact detail drawer */
.art-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 94vw); background: var(--bg-2); border-left: 1px solid var(--line-2);
  z-index: 80; transform: translateX(100%); transition: transform .26s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.art-drawer.show { transform: none; }
.art-drawer__scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 79; opacity: 0; pointer-events: none; transition: .2s; }
.art-drawer__scrim.show { opacity: 1; pointer-events: auto; }
.art-drawer__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.art-drawer__head h3 { font-family: var(--display); font-size: 17px; font-weight: 600; flex: 1; min-width: 0; }
.art-drawer__close { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; flex: none; }
.art-drawer__close svg { width: 16px; height: 16px; }
.art-drawer__body { flex: 1; overflow-y: auto; padding: 22px 20px; }
.art-drawer__body h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; }
.art-drawer__body h4:first-child { margin-top: 0; }
.art-drawer__body p, .art-drawer__body li { font-size: 14px; color: var(--text-2); line-height: 1.65; }
.art-drawer__body ul { margin: 0; padding-left: 18px; }
.art-md { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }
.art-drawer__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--line); }
.art-drawer__actions .btn { width: 100%; justify-content: center; font-size: 13px; }
.art-drawer__actions .btn--full { grid-column: 1 / -1; }

/* ---------- ADMIN ---------- */
.admin-top { display: flex; align-items: center; gap: 12px; padding: 14px 26px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.admin-top .brand__text { font-family: var(--display); font-weight: 600; font-size: 15px; }
.admin-top .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--warning);
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25); padding: 4px 10px; border-radius: 100px; }
.admin-top__right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.admin-users-table-wrap { overflow-x: auto; }
.admin-users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-users-table th { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-users-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-users-table tr:last-child td { border-bottom: none; }
.admin-users-hint { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
@media (max-width: 460px) {
  .admin-top { padding: 12px 16px; gap: 8px; }
  .admin-top .brand__text { font-size: 13px; }
  .admin-top__right .sess-lbl { display: none; }
  .admin-shell { padding: 16px; }
  .dl-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 18px; }
  .admin-actions { flex-wrap: wrap; }
}

.unlock-wrap { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 40px 20px; }
.unlock-card { width: 100%; max-width: 420px; background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line-2);
  border-radius: var(--r-xl); padding: 36px; text-align: center; }
.unlock-card .lock-ic { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.25); color: var(--warning); }
.unlock-card .lock-ic svg { width: 26px; height: 26px; }
.unlock-card h1 { font-family: var(--display); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.unlock-card p { font-size: 13.5px; color: var(--text-3); margin-bottom: 24px; }
.unlock-card input { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text);
  font-family: var(--mono); font-size: 15px; padding: 13px 15px; text-align: center; letter-spacing: .1em; margin-bottom: 14px; }
.unlock-card input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.unlock-card .err { color: #f87171; font-size: 12.5px; font-family: var(--mono); margin-bottom: 12px; display: none; }
.unlock-card .err.show { display: block; }

.admin-shell { max-width: 1280px; margin: 0 auto; padding: 26px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.admin-head h1 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.admin-head .sub { font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.admin-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.admin-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 16px; }
.admin-stat .n { font-family: var(--display); font-size: 20px; font-weight: 600; }
.admin-stat .l { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }

.mod-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; align-items: start; }
@media (max-width: 940px) { .mod-grid { grid-template-columns: 1fr; } }
.queue { display: grid; gap: 10px; }
.queue-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.queue-tab { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.02); border: 1px solid var(--line);
  border-radius: 100px; padding: 7px 13px; transition: .14s; }
.queue-tab.on { background: var(--surface-3); color: var(--text); border-color: var(--line-2); }
.queue-tab .n { color: var(--text-3); }
.q-item { text-align: left; width: 100%; background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 16px; transition: .15s; cursor: pointer; }
.q-item:hover { border-color: var(--line-2); }
.q-item.on { border-color: var(--blue); box-shadow: 0 0 24px -10px var(--glow-blue); }
.q-item__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.q-item__cat { font-family: var(--mono); font-size: 10.5px; color: var(--blue-hi); }
.q-item h3 { font-size: 15px; margin-bottom: 6px; }
.q-item__meta { font-family: var(--mono); font-size: 11px; color: var(--text-3); display: flex; gap: 12px; }

.detail-card { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.detail-card__head { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.detail-card__head h2 { font-family: var(--display); font-size: 20px; font-weight: 600; flex: 1; }
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin-bottom: 22px; }
.dl-grid .full { grid-column: 1 / -1; }
.dl dt, .dl-item dt { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin: 0 0 4px; font-style: normal; }
.dl-item dd { font-size: 14px; color: var(--text); font-style: normal; margin: 0; }
.private-box { background: rgba(249,115,22,.06); border: 1px solid rgba(249,115,22,.22); border-radius: var(--r); padding: 14px 16px; margin-bottom: 22px; }
.private-box .lbl { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--warning); margin-bottom: 10px; }
.private-box .lbl svg { width: 13px; height: 13px; }
.public-preview { background: var(--bg); border: 1px dashed var(--line-2); border-radius: var(--r); padding: 16px; margin-bottom: 8px; }
.public-preview .pp-lbl { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.admin-field { margin-bottom: 16px; }
.admin-field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.admin-field textarea, .admin-field input, .admin-field select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); font-family: var(--sans); font-size: 14px; padding: 11px 13px; }
.admin-field textarea { resize: vertical; min-height: 70px; }
.admin-field textarea:focus, .admin-field input:focus, .admin-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.seg-status { display: flex; gap: 6px; }
.seg-status button { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 9px; transition: .14s; }
.seg-status button.on { background: var(--surface-3); color: var(--text); border-color: var(--blue); }
.admin-actions { display: flex; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); margin-top: 4px; }
.admin-two-col { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); gap: 18px; align-items: start; }
.admin-list { display: grid; gap: 10px; }
.admin-list__item { width: 100%; text-align: left; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; background: var(--surface); color: var(--text); transition: .14s; }
.admin-list__item:hover { border-color: var(--line-2); }
.admin-list__item.on { border-color: var(--blue); box-shadow: 0 0 24px -12px var(--glow-blue); }
.admin-list__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
.admin-list__top span { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.admin-check { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
@media (max-width: 860px) { .admin-two-col { grid-template-columns: 1fr; } }
.btn--danger { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #f87171; }
.btn--danger:hover { background: rgba(239,68,68,.2); }
.btn--success { background: linear-gradient(180deg, #22c55e, #16a34a); border: 1px solid transparent; color: #fff; }
.btn--success:hover { background: linear-gradient(180deg, #4ade80, #22c55e); }
.detail-empty { display: grid; place-items: center; min-height: 320px; text-align: center; color: var(--text-3); }
.detail-empty svg { width: 44px; height: 44px; margin-bottom: 14px; color: var(--line-2); }

/* ---------- PROFILE ---------- */
.profile-hero { display: flex; align-items: center; gap: 20px; background: linear-gradient(140deg, #0c1530, #0a0f1f 60%, #140c2a);
  border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 26px; margin-bottom: 16px; flex-wrap: wrap; }
[data-theme="light"] .profile-hero { background: linear-gradient(140deg, #eef3fb, #fff 60%, #f3eefb); }
.profile-hero .av { width: 74px; height: 74px; font-size: 28px; border-radius: 20px; }
.profile-hero__meta { min-width: 0; flex: 1; }
.profile-hero__meta h1 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.profile-hero__meta .role { font-family: var(--mono); font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.profile-hero__badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.profile-hero__cta { display: flex; gap: 10px; }
.profile-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }
.about-text { font-size: 14.5px; color: var(--text-2); line-height: 1.7; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.contrib-bar { display: flex; align-items: flex-end; gap: 4px; height: 80px; }
.contrib-bar .cb { flex: 1; background: linear-gradient(180deg, var(--blue), rgba(37,99,235,.3)); border-radius: 2px; min-height: 4px; }
.contrib-bar .cb.p { background: linear-gradient(180deg, var(--purple), rgba(139,92,246,.3)); }
.mini-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stat { background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.mini-stat .n { font-family: var(--display); font-size: 22px; font-weight: 600; }
.mini-stat .l { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }

/* ---------- SETTINGS ---------- */
.set-layout { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; max-width: 920px; }
@media (max-width: 760px) { .set-layout { grid-template-columns: 1fr; } .set-nav { display: flex; flex-wrap: wrap; gap: 6px; position: static !important; } }
.set-nav { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; }
.set-nav a { font-size: 14px; color: var(--text-2); padding: 9px 12px; border-radius: var(--r-sm); transition: .14s; }
.set-nav a:hover { background: rgba(255,255,255,.03); color: var(--text); }
.set-nav a.on { background: rgba(59,130,246,.12); color: var(--blue-hi); }
.set-section { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px; scroll-margin-top: 88px; }
.set-section h2 { font-family: var(--display); font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.set-section .sub { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.set-field { margin-bottom: 16px; }
.set-field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.set-field input, .set-field textarea, .set-field select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); font-family: var(--sans); font-size: 14.5px; padding: 11px 13px; }
.set-field input:focus, .set-field textarea:focus, .set-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.set-field textarea { resize: vertical; min-height: 84px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; font: inherit; text-align: left; width: 100%; }
button.toggle-row { cursor: pointer; }
button.toggle-row:disabled { cursor: not-allowed; opacity: .65; }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row__meta b { font-size: 14px; font-weight: 500; display: block; }
.toggle-row__meta span { font-size: 12.5px; color: var(--text-3); }
.tgl { width: 44px; height: 26px; border-radius: 100px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; flex: none; cursor: pointer; transition: .18s; }
.tgl::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-2); transition: .18s; }
.tgl.on { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-color: transparent; }
.tgl.on::after { transform: translateX(18px); background: #fff; }
.set-conn { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.set-conn:last-child { border-bottom: 0; }
.set-conn__ic { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); flex: none; }
.set-conn__ic svg { width: 18px; height: 18px; }
.set-conn__meta { flex: 1; } .set-conn__meta b { font-size: 14px; } .set-conn__meta span { display: block; font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.danger-zone { border-color: rgba(239,68,68,.3) !important; }
.danger-zone h2 { color: #f87171; }

/* ---------- MY IDEAS ---------- */
.mi-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.mi-tab { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: rgba(255,255,255,.02); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; transition: .14s; }
.mi-tab.on { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-color: transparent; color: #fff; }
.mi-tab .n { opacity: .7; }
.mi-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
@media (max-width: 760px) { .mi-grid { grid-template-columns: 1fr; } }
.mi-card { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; transition: .18s; }
.mi-card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.mi-card__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.mi-card__cat { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-hi); }
.mi-card h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -.01em; }
.mi-card p { font-size: 13.5px; color: var(--text-2); margin: 0 0 16px; line-height: 1.55; }
.mi-stage { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mi-stage .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mi-stage .step { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.mi-stage .step.done { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.mi-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.mi-card__metric { display: flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.mi-card__metric svg { width: 13px; height: 13px; }
.mi-empty { text-align: center; padding: 60px 20px; }
.mi-empty svg { width: 48px; height: 48px; color: var(--line-2); margin-bottom: 16px; }

/* ---------- SUBMISSION WIZARD ---------- */
.app-main--submit { max-width: none; display: flex; justify-content: center; align-items: flex-start; }
.submit-wizard-shell { width: min(100%, 780px); padding: clamp(8px, 2vw, 22px) 0 42px; }
.submit-wizard-panel { display: grid; gap: 16px; width: 100%; }
.submit-wizard-notice { margin-top: 0; }
.wiz-wrap { max-width: 720px; margin: 0 auto; }
.wiz-steps { display: flex; align-items: center; margin-bottom: 28px; }
.wiz-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; position: relative; }
.wiz-step::after { content: ""; position: absolute; top: 17px; left: 50%; right: -50%; height: 2px; background: var(--line-2); z-index: 0; }
.wiz-step:last-child::after { display: none; }
.wiz-step.done::after { background: linear-gradient(90deg, var(--blue), var(--purple)); }
.wiz-step__num { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; position: relative; z-index: 1;
  background: var(--surface-2); border: 1.5px solid var(--line-2); color: var(--text-3); font-family: var(--display); font-weight: 600; font-size: 14px; }
.wiz-step.done .wiz-step__num { background: linear-gradient(180deg, var(--blue), var(--purple)); border-color: transparent; color: #fff; }
.wiz-step.current .wiz-step__num { border-color: var(--blue); color: var(--blue-hi); box-shadow: 0 0 16px -4px var(--glow-blue); }
.wiz-step__num svg { width: 16px; height: 16px; }
.wiz-step__lbl { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); text-align: center; }
.wiz-step.current .wiz-step__lbl, .wiz-step.done .wiz-step__lbl { color: var(--text-2); }
@media (max-width: 560px) { .wiz-step__lbl { display: none; } }
.wiz-card { background: linear-gradient(180deg, var(--surface), var(--navy)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px,3vw,34px); }
.wiz-card h2 { font-family: var(--display); font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.wiz-card .step-sub { font-size: 13.5px; color: var(--text-3); margin-bottom: 22px; }
.wiz-panel { display: none; }
.wiz-panel.active { display: block; animation: navpop .2s ease; }
.wiz-field { margin-bottom: 18px; }
.wiz-field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 8px; }
.wiz-field label .opt { color: var(--text-3); text-transform: none; letter-spacing: 0; opacity: .7; }
.wiz-field input, .wiz-field textarea, .wiz-field select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  color: var(--text); font-family: var(--sans); font-size: 15px; padding: 12px 14px; }
.wiz-field input:focus, .wiz-field textarea:focus, .wiz-field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.16); }
.wiz-field textarea { resize: vertical; min-height: 96px; }
.wiz-field.err input, .wiz-field.err textarea, .wiz-field.err select { border-color: #f87171; }
.wiz-field .wiz-msg { font-family: var(--mono); font-size: 11px; color: #f87171; margin-top: 6px; display: none; }
.wiz-field.err .wiz-msg { display: block; }
.wiz-field label.consent-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 0;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: rgba(59,130,246,.06);
  color: var(--text);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  transition: border-color .15s ease, background .15s ease;
}
.wiz-field label.consent-switch:hover { border-color: rgba(96,165,250,.55); background: rgba(59,130,246,.09); }
.wiz-field label.consent-switch input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
}
.consent-switch__track {
  width: 46px;
  height: 26px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-3);
  flex: none;
  padding: 2px;
  transition: background .16s ease, border-color .16s ease;
}
.consent-switch__thumb {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--text-2);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transition: transform .16s ease, background .16s ease;
}
.consent-switch input[type="checkbox"]:focus-visible + .consent-switch__track { box-shadow: 0 0 0 3px rgba(59,130,246,.22); }
.consent-switch input[type="checkbox"]:checked + .consent-switch__track { background: linear-gradient(180deg, var(--blue), var(--blue-deep)); border-color: transparent; }
.consent-switch input[type="checkbox"]:checked + .consent-switch__track .consent-switch__thumb { transform: translateX(20px); background: #fff; }
.consent-switch__copy { color: var(--text); }
.wiz-field.err label.consent-switch { border-color: #f87171; background: rgba(248,113,113,.08); }
.wiz-hint { font-family: var(--mono); font-size: 11px; color: var(--text-3); margin-top: 6px; }
.wiz-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .wiz-choice { grid-template-columns: 1fr; } }
.wiz-opt { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); cursor: pointer; transition: .15s; background: var(--bg); }
.wiz-opt:hover { border-color: var(--line-2); background: rgba(255,255,255,.02); }
.wiz-opt.sel { border-color: var(--blue); background: rgba(59,130,246,.08); }
.wiz-opt input { display: none; }
.wiz-opt__box { width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--line-2); flex: none; margin-top: 1px; display: grid; place-items: center; color: transparent; }
.wiz-opt.sel .wiz-opt__box { background: var(--blue); border-color: transparent; color: #fff; }
.wiz-opt__box svg { width: 12px; height: 12px; }
.wiz-opt b { font-size: 14px; font-weight: 500; display: block; }
.wiz-opt span { font-size: 12px; color: var(--text-3); }
.wiz-review { display: grid; gap: 0; }
.wiz-review__row { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wiz-review__row:last-child { border-bottom: 0; }
.wiz-review__row dt { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-style: normal; margin: 0; }
.wiz-review__row dd { color: var(--text); font-style: normal; margin: 0; }
@media (max-width: 560px) { .wiz-review__row { grid-template-columns: 1fr; gap: 3px; } }
.wiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.wiz-notice { display: flex; gap: 10px; background: rgba(59,130,246,.06); border: 1px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; font-size: 12.5px; color: var(--text-2); line-height: 1.55; margin-top: 4px; }
.wiz-notice svg { width: 16px; height: 16px; color: var(--blue-hi); flex: none; margin-top: 1px; }
.wiz-success { text-align: center; padding: 30px 10px; }
.wiz-success__tick { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.35); color: #4ade80; animation: copop .5s cubic-bezier(.2,1.4,.4,1); }
.wiz-success__tick svg { width: 32px; height: 32px; }
.wiz-success h2 { font-size: 24px; margin-bottom: 10px; }
