/* roblox-studio — self-contained, system fonts, instant paint. */
:root {
  --bg: #0f1115;
  --bg2: #0b0d10;
  --panel: #16181d;
  --panel2: #1b1e24;
  --line: #262a32;
  --line-soft: #1f232a;
  --text: #e8eaed;
  --muted: #868d99;
  --muted2: #5f6672;
  --accent: #c79a5b;
  --accent-soft: #3a3324;
  --link: #8fb7e8;
  --online: #5bb17a;
  --busy: #d9a15a;
  --danger: #d46b6b;
  --studio: #7fb0d9;
  --radius: 10px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; }

/* ---- top bar ---- */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: 1140px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}
.brand b { font-weight: 650; letter-spacing: -0.2px; }
.brand span { color: var(--muted2); font-size: 12.5px; }
.brand .dot { color: var(--accent); }

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 4px 2px 12px;
  max-width: 560px;
  transition: border-color .12s;
}
.search:focus-within { border-color: #3a4150; }
.search svg { flex: none; opacity: .5; }
.search input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font: 14.5px var(--sans);
  padding: 9px 2px;
  outline: none;
}
.search input::placeholder { color: var(--muted2); }
.search button {
  flex: none;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 6px;
  padding: 7px 14px;
  font: 13.5px var(--sans);
  cursor: pointer;
}
.search button:hover { background: #22262e; }

.acct {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.acct .who {
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.acct .who[hidden] { display: none; }
.acct .who .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--online); }
.ghost {
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 7px;
  padding: 7px 12px;
  font: 13px var(--sans);
  cursor: pointer;
}
.ghost:hover { color: var(--text); border-color: #39404c; }

/* ---- layout ---- */
main { max-width: 1140px; margin: 0 auto; padding: 22px 20px 80px; }

.hint {
  color: var(--muted);
  text-align: center;
  padding: 60px 20px;
}
.hint .big { font-size: 19px; color: var(--text); margin-bottom: 8px; font-weight: 550; }
.hint code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}
.hint .examples { margin-top: 20px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.hint .examples button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
}
.hint .examples button:hover { color: var(--text); border-color: #39404c; }

.grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 820px) { .grid { grid-template-columns: 1fr; } }

/* ---- identity card ---- */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 74px;
}
@media (max-width: 820px) { .card { position: static; } }
.avatar {
  background:
    linear-gradient(0deg, var(--panel2), var(--panel2)),
    repeating-conic-gradient(#1a1d23 0% 25%, #15181d 0% 50%) 50% / 22px 22px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
.avatar img { width: 82%; height: 82%; object-fit: contain; }
.id-body { padding: 15px 16px 16px; }
.id-names { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.id-names .display { font-size: 19px; font-weight: 600; letter-spacing: -0.3px; }
.verified { color: var(--studio); flex: none; }
.id-user { color: var(--muted); font-size: 13.5px; margin-top: 1px; font-family: var(--mono); }
.badges-row { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.tag {
  font-size: 11.5px;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--bg2);
}
.tag.on { color: var(--online); border-color: color-mix(in srgb, var(--online) 40%, var(--line)); }
.tag.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.tag.prem { color: var(--accent); border-color: var(--accent-soft); }

.counts { display: flex; margin: 15px 0 2px; border-top: 1px solid var(--line-soft); }
.counts div {
  flex: 1;
  padding: 11px 4px 9px;
  text-align: center;
  border-right: 1px solid var(--line-soft);
}
.counts div:last-child { border-right: none; }
.counts .n { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.counts .l { font-size: 11px; color: var(--muted2); margin-top: 2px; }

.desc {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line-soft);
  color: #c2c7d0;
  font-size: 13.5px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 160px;
  overflow: auto;
}
.meta-list { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; }
.meta-list .row { display: flex; justify-content: space-between; padding: 3px 0; gap: 12px; }
.meta-list .row span:first-child { color: var(--muted); }
.meta-list .row span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.id-actions { display: flex; gap: 8px; margin-top: 14px; }
.id-actions a {
  flex: 1;
  text-align: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 13px;
}
.id-actions a:hover { color: var(--text); border-color: #39404c; text-decoration: none; }

/* ---- presence strip ---- */
.presence {
  margin-top: 0;
  background: var(--panel2);
  border-top: 1px solid var(--line);
  padding: 13px 16px;
}
.presence .state { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 550; }
.presence .pip { width: 9px; height: 9px; border-radius: 50%; }
.pip.online { background: var(--online); }
.pip.ingame { background: var(--studio); }
.pip.studio { background: var(--busy); }
.pip.offline { background: var(--muted2); }
.presence .loc { color: var(--muted); font-size: 13px; margin-top: 5px; }
.presence .join { display: flex; gap: 8px; margin-top: 11px; }
.presence .join button, .presence .join a {
  flex: 1; text-align: center;
  padding: 8px 10px; border-radius: 7px; font-size: 13px; cursor: pointer;
  border: 1px solid transparent;
}
.btn-join { background: var(--studio); color: #0b1016; font-weight: 600; border: none; }
.btn-join:hover { filter: brightness(1.08); text-decoration: none; }
.btn-copy { background: none; border: 1px solid var(--line) !important; color: var(--muted); }
.btn-copy:hover { color: var(--text); }

/* ---- sections ---- */
.col { display: flex; flex-direction: column; gap: 18px; }
section.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.panel > h2 {
  margin: 0;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line-soft);
}
.panel > h2 .count { color: var(--muted2); font-weight: 500; font-variant-numeric: tabular-nums; }
.panel > h2 .unlocked {
  margin-left: auto;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  padding: 2px 7px;
  border-radius: 4px;
}
.panel .body { padding: 14px 16px; }
.panel .body.tight { padding: 10px 10px; }

/* item grids */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.tile {
  background: var(--bg2);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .12s;
}
.tile:hover { border-color: #363d49; }
.tile .thumb {
  aspect-ratio: 1/1;
  background: var(--panel2) repeating-conic-gradient(#191c22 0 25%, #15181d 0 50%) 50% / 16px 16px;
}
.tile .thumb img { width: 100%; height: 100%; object-fit: contain; }
.tile .cap { padding: 7px 8px 8px; }
.tile .cap .nm { font-size: 12px; line-height: 1.35; max-height: 2.7em; overflow: hidden; }
.tile .cap .sub { font-size: 11.5px; color: var(--accent); margin-top: 3px; font-variant-numeric: tabular-nums; }
.tile .cap .sub.muted { color: var(--muted2); }

/* list rows */
.rows { display: flex; flex-direction: column; }
.lrow {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 4px;
  border-top: 1px solid var(--line-soft);
}
.lrow:first-child { border-top: none; }
.lrow .ic { width: 38px; height: 38px; border-radius: 7px; flex: none; background: var(--bg2); border: 1px solid var(--line-soft); object-fit: contain; }
.lrow .ic.round { border-radius: 50%; }
.lrow .main { flex: 1; min-width: 0; }
.lrow .main .t { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow .main .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.lrow .r { font-size: 12.5px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.lrow .r b { color: var(--text); font-weight: 600; display: block; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-size: 12.5px;
  font-family: var(--mono);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--bg2);
}

/* friends */
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 12px 8px; }
.fr {
  text-align: center;
  cursor: pointer;
}
.fr img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 9px;
  background: var(--bg2) repeating-conic-gradient(#191c22 0 25%, #15181d 0 50%) 50% / 14px 14px;
  border: 1px solid var(--line-soft);
}
.fr:hover img { border-color: var(--studio); }
.fr .nm { font-size: 11.5px; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr .dn { font-size: 10.5px; color: var(--muted2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.loadbtn {
  width: 100%;
  background: var(--panel2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 11px;
  border-radius: 8px;
  font: 13.5px var(--sans);
  cursor: pointer;
}
.loadbtn:hover { background: #22262e; }
.loadbtn:disabled { color: var(--muted2); cursor: default; }

.empty { color: var(--muted2); font-size: 13px; padding: 4px 2px; }

/* ---- search results ---- */
.search-results { max-width: 680px; margin: 0 auto; }
.lrow.sresult { cursor: pointer; padding: 11px 8px; border-radius: 8px; }
.lrow.sresult:hover { background: var(--panel2); }
.lrow.sresult .ic { width: 46px; height: 46px; }
.lrow.sresult .t { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.lrow.sresult .t .verified { color: var(--studio); }
.lrow.sresult .r { color: var(--muted2); font-family: var(--mono); font-size: 11.5px; }
.lrow.sresult .r b { color: var(--muted); font-weight: 600; }
.lrow.sresult:hover .r b { color: var(--accent); }
.searchnote { color: var(--muted2); font-size: 12.5px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.filters { display: flex; gap: 7px; padding: 10px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.fchip {
  background: var(--bg2); border: 1px solid var(--line); color: var(--muted);
  padding: 5px 11px; border-radius: 20px; font: 12.5px var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.fchip:hover:not(:disabled) { color: var(--text); border-color: #39404c; }
.fchip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.fchip span { font-variant-numeric: tabular-nums; opacity: .7; font-size: 11.5px; }
.fchip:disabled { opacity: .4; cursor: default; }
.sresult mark { background: color-mix(in srgb, var(--accent) 26%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---- cookie drawer ---- */
.scrim {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(5,6,8,.6);
  display: none;
}
.scrim.open { display: block; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: 420px; max-width: 92vw;
  background: var(--panel);
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .2s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer h3 { margin: 0; padding: 18px 20px; font-size: 15px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.drawer h3 button { background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; line-height: 1; }
.drawer .inner { padding: 20px; overflow: auto; }
.drawer p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.drawer textarea {
  width: 100%;
  min-height: 92px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font: 12px var(--mono);
  padding: 10px;
  resize: vertical;
  outline: none;
  word-break: break-all;
}
.drawer textarea:focus { border-color: #3a4150; }
.drawer .actions { display: flex; gap: 8px; margin-top: 12px; }
.drawer .actions button { flex: 1; padding: 10px; border-radius: 8px; font: 13.5px var(--sans); cursor: pointer; border: 1px solid var(--line); }
.btn-primary { background: var(--accent); color: #140f06; border: none !important; font-weight: 600; }
.btn-primary:hover { filter: brightness(1.07); }
.drawer .note {
  margin-top: 16px; padding: 12px 13px;
  background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 8px;
  font-size: 12px; color: var(--muted); line-height: 1.6;
}
.drawer .note b { color: var(--text); font-weight: 600; }
.drawer .connected {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 13px; background: var(--bg2); border: 1px solid var(--line-soft); border-radius: 8px; margin-bottom: 14px;
}
.drawer .connected img { width: 40px; height: 40px; border-radius: 8px; }
.drawer .connected .cn { font-weight: 600; }
.drawer .connected .cs { font-size: 12px; color: var(--muted); }
.unlocks { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.unlocks li { margin: 4px 0; }

/* ---- tabs ---- */
.tabs { display: flex; gap: 2px; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; flex: none; }
.tabs button {
  background: none; border: none; color: var(--muted); padding: 6px 14px; border-radius: 6px;
  font: 13px var(--sans); cursor: pointer;
}
.tabs button:hover { color: var(--text); }
.tabs button.on { background: var(--panel2); color: var(--text); }
@media (max-width: 680px) { .brand span { display: none; } .tabs button { padding: 6px 10px; } }

/* ---- game card ---- */
.gcard .gicon { aspect-ratio: 1/1; background: var(--panel2); border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.gcard .gicon img { width: 100%; height: 100%; object-fit: cover; }
.votes { margin-top: 14px; }
.vbar { height: 7px; border-radius: 4px; background: var(--danger); overflow: hidden; }
.vbar span { display: block; height: 100%; background: var(--online); }
.vrow { display: flex; justify-content: space-between; margin-top: 6px; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.vrow .up { color: var(--online); }
.vrow .down { color: var(--danger); }
.vrow .vpct { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12px; }

/* ---- player graph ---- */
.pgraph { width: 100%; height: 150px; display: block; }
.pgraph .gy { fill: var(--muted2); font: 10px var(--mono); }
.graph-foot { display: flex; justify-content: space-between; color: var(--muted2); font-size: 11.5px; margin-top: 4px; }
.graph-foot b, .live-now b { color: var(--text); }
.graph-empty { color: var(--muted); font-size: 13.5px; text-align: center; padding: 24px 10px; }
.live-now { margin-top: 10px; color: var(--accent); font-size: 15px; }

/* ---- servers ---- */
.svfilters { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.svfilters input[type=number] { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 6px; padding: 5px 7px; font: 13px var(--mono); }
.svfilters .chk { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.svfilters .ghost { margin-left: auto; }
.svrow { display: flex; align-items: center; gap: 12px; padding: 9px 2px; border-top: 1px solid var(--line-soft); }
.svrow:first-child { border-top: none; }
.svbar { width: 70px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; flex: none; }
.svbar span { display: block; height: 100%; background: var(--studio); }
.svinfo { font-size: 13px; font-variant-numeric: tabular-nums; min-width: 92px; }
.svinfo b { font-weight: 600; }
.svmeta { flex: 1; font-size: 11.5px; color: var(--muted2); font-variant-numeric: tabular-nums; }
.btn-join.sm, .btn-copy.sm { padding: 5px 12px; font-size: 12px; border-radius: 6px; flex: none; text-decoration: none; }
.btn-copy.sm { background: none; border: 1px solid var(--line); color: var(--muted); cursor: pointer; }
.btn-copy.sm:hover { color: var(--text); }

/* ---- private servers ---- */
.ps-avail { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.ps-avail b { color: var(--text); }
.ps-avail .btn-join.sm { margin-left: auto; }
.ps-paste { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line-soft); }
.ps-label { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ps-row { display: flex; gap: 8px; }
.ps-row input { flex: 1; background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 7px; padding: 8px 10px; font: 12px var(--mono); outline: none; }
.ps-row input:focus { border-color: #3a4150; }
.ps-oneclick { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ps-hint { color: var(--busy); font-size: 12.5px; }
.ps-auth { width: 100%; font-size: 13px; color: var(--muted); }
.ps-auth .btn-join.sm { margin-top: 8px; display: inline-block; }
.ps-auth code { font-family: var(--mono); font-size: 11.5px; background: var(--bg2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 4px; color: var(--accent); }
.ps-auth .ps-row { margin-top: 8px; }

/* ---- places / media ---- */
.plinks { display: flex; gap: 6px; flex: none; }
.mediastrip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.mediastrip img { height: 150px; border-radius: 8px; border: 1px solid var(--line-soft); flex: none; }

/* ---- clone button + modal ---- */
.clone-btn {
  width: 100%; margin-top: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent); color: var(--accent);
  padding: 9px; border-radius: 8px; font: 13.5px var(--sans); font-weight: 600; cursor: pointer;
}
.clone-btn:hover { background: color-mix(in srgb, var(--accent) 24%, transparent); }

.mscrim { position: fixed; inset: 0; z-index: 50; background: rgba(5,6,8,.66); display: none; }
.mscrim.open { display: block; }
.modal {
  position: fixed; z-index: 51; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.98);
  width: 460px; max-width: 94vw; max-height: 88vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
}
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-inner { padding: 0; }
.mhead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; }
.mhead h3 { margin: 0; font-size: 16px; }
.mx { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.mloading, .merr { padding: 40px 20px; text-align: center; color: var(--muted); }
.merr { color: var(--danger); }
.clist { padding: 0 18px; max-height: 42vh; overflow: auto; }
.citem { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.citem:first-child { border-top: none; }
.citem img { width: 40px; height: 40px; border-radius: 7px; background: var(--bg2); border: 1px solid var(--line-soft); flex: none; object-fit: contain; }
.citem.skip { opacity: .55; }
.cmain { flex: 1; min-width: 0; }
.cmain .cn { font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmain .ct { font-size: 11.5px; color: var(--muted2); }
.cr { font-size: 12.5px; font-variant-numeric: tabular-nums; text-align: right; flex: none; }
.cr.buy { color: var(--accent); font-weight: 600; }
.cr.ok { color: var(--online); }
.cr.skip { color: var(--muted2); }
.mwarn { margin: 12px 18px 0; padding: 11px 13px; border-radius: 8px; font-size: 13px; line-height: 1.5;
  background: var(--bg2); border: 1px solid var(--line-soft); color: var(--muted); }
.mwarn b { color: var(--text); }
.mwarn.skip { color: var(--busy); border-color: color-mix(in srgb, var(--busy) 35%, var(--line)); }
.mwarn.bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.mwarn.ok { color: var(--online); border-color: color-mix(in srgb, var(--online) 30%, var(--line)); }
.mactions { display: flex; gap: 8px; padding: 16px 18px; }
.mactions button { flex: 1; padding: 10px; border-radius: 8px; font: 13px var(--sans); cursor: pointer; }
.mactions .btn-primary { flex: 1.3; }
.mactions .clone-save { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.mresult { padding: 6px 18px 4px; font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.mresult b { color: var(--text); }
.mresult .skip { color: var(--busy); }

/* ---- misc states ---- */
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--muted);
  animation: spin .7s linear infinite; display: inline-block; vertical-align: -4px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading { text-align: center; color: var(--muted); padding: 70px 20px; }
.error { text-align: center; color: var(--danger); padding: 60px 20px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--panel2); border: 1px solid var(--line); color: var(--text);
  padding: 10px 18px; border-radius: 8px; font-size: 13.5px; z-index: 60;
  opacity: 0; transition: opacity .2s; pointer-events: none;
}
.toast.show { opacity: 1; }
.ps-locked { margin-top: 12px; color: var(--muted2); font-size: 13px; padding: 10px 12px; background: var(--bg2); border: 1px dashed var(--line); border-radius: 8px; }
