/* Entraê — painel do corretor. Mesma identidade do site: preto, branco e a luz dourada do logo. */
:root {
  --bg: #f6f5f2; --bg-2: #efeee9; --panel: #ffffff; --line: #e7e5e0; --text: #111111; --muted: #67645e;
  --btn: #111111; --btn-ink: #ffffff; --btn-hover: #262626;
  --gold: #c9944f; --gold-2: #e8bf82; --gold-3: #f7e3c2; --gold-text: #966326; --gold-soft: #f7efe3;
  --glow: radial-gradient(closest-side, rgba(247,217,168,.5), rgba(201,148,79,.16) 55%, transparent);
  --dark: #0d0d0d; --dark-line: #232323;
  --danger: #c4402f; --ok: #2f8a4c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 2px 8px rgba(0,0,0,.04);
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 14px 36px rgba(0,0,0,.08);
  --shadow-lg: 0 2px 4px rgba(0,0,0,.06), 0 34px 80px rgba(0,0,0,.18);
  --display: Poppins, Inter, system-ui, sans-serif;
  --side: 264px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0b0b; --bg-2: #111; --panel: #161616; --line: #262626; --text: #f4f1ec; --muted: #a09b93;
    --btn: #f4f1ec; --btn-ink: #111; --btn-hover: #fff; --gold-text: #e2b778; --gold-soft: #21190f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 14px 36px rgba(0,0,0,.45); --shadow-lg: 0 34px 80px rgba(0,0,0,.6); }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; }
.muted { color: var(--muted); }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* botões */
.btn { appearance: none; border: 1px solid transparent; cursor: pointer; font: 600 14px Inter, sans-serif; color: var(--btn-ink); background: var(--btn);
  padding: 11px 18px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s, border-color .2s; }
.btn:hover { background: var(--btn-hover); box-shadow: 0 8px 24px rgba(201,148,79,.32), 0 0 0 1px rgba(201,148,79,.4); }
.btn:active { transform: translateY(1px); }
.btn .i { width: 17px; height: 17px; }
.btn.ghost { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn.ghost:hover { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); box-shadow: none; }
.btn.gold { background: linear-gradient(135deg, var(--gold-3), var(--gold-2) 45%, var(--gold)); color: #1a1208; }
.btn.gold:hover { box-shadow: 0 10px 28px rgba(201,148,79,.45); }
.btn.danger { background: var(--panel); color: var(--danger); border-color: var(--line); }
.btn.danger:hover { border-color: var(--danger); box-shadow: none; }
.btn.sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn.icon { padding: 7px; width: 34px; height: 34px; }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }

/* layout */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--dark); color: #f4f1ec; display: flex; flex-direction: column; padding: 22px 16px; overflow: hidden; }
.side::before { content: ""; position: absolute; width: 520px; height: 520px; left: -260px; bottom: -240px; background: var(--glow); opacity: .55; pointer-events: none; }
.side > * { position: relative; }
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 26px; }
.brand img { width: 38px; height: 38px; }
.brand b { display: block; font: 500 22px/1 var(--display); letter-spacing: -.02em; }
.brand small { display: block; font: 500 7.5px/1.3 var(--display); letter-spacing: .28em; color: #8e8980; margin-top: 5px; text-transform: uppercase; }
.snav { display: grid; gap: 4px; }
.snav .lbl { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #6f6a62; padding: 16px 12px 6px; }
.snav a, .snav button { white-space: nowrap; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 0; background: none; color: #bdb7ad; font-weight: 500; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.snav a:hover, .snav button:hover { background: rgba(255,255,255,.06); color: #fff; }
.snav .on { background: rgba(255,255,255,.08); color: #fff; box-shadow: inset 2px 0 0 var(--gold-2); }
.snav .on .i { color: var(--gold-2); }
.snav .i { width: 19px; height: 19px; }
.snav .ext { margin-left: auto; width: 14px; height: 14px; opacity: .5; }
.side .sp { flex: 1; }
.promo { border: 1px solid var(--dark-line); border-radius: 16px; padding: 16px; margin-bottom: 14px; background: linear-gradient(160deg, rgba(255,255,255,.04), transparent); }
.promo b { display: block; font-size: 14px; margin-bottom: 4px; }
.promo p { margin: 0 0 12px; font-size: 13px; color: #a09b93; }
.promo .btn { width: 100%; }
.user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; border-top: 1px solid var(--dark-line); }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, var(--gold-3), var(--gold)); color: #1a1208; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: contain; background: #fff; padding: 3px; }
.user .who { flex: 1; min-width: 0; }
.user .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .who span { display: block; font-size: 12px; color: #8e8980; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user button { background: none; border: 1px solid var(--dark-line); color: #bdb7ad; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.user button:hover { color: #fff; border-color: #3a3a3a; }

.main { min-width: 0; padding: 34px 40px 80px; }
.mtop { display: none; }
.page-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-h h1 { margin: 4px 0 0; font-size: 32px; }
.page-h p { margin: 6px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }

/* estatísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; display: flex; gap: 14px; align-items: center; }
.stat .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-text); flex: none; }
.stat .ic .i { width: 21px; height: 21px; }
.stat b { display: block; font: 600 26px/1.1 var(--display); letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); }

/* card do link público */
.share { position: relative; overflow: hidden; background: var(--dark); color: #f4f1ec; border-radius: 22px; padding: 22px 24px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.share::before { content: ""; position: absolute; width: 460px; height: 380px; right: -120px; top: -200px; background: var(--glow); opacity: .7; }
.share > * { position: relative; }
.share .ic { width: 50px; height: 50px; border-radius: 15px; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: var(--gold-2); flex: none; }
.share .ic .i { width: 23px; height: 23px; }
.share .txt { flex: 1; min-width: 220px; }
.share .txt b { display: block; font: 600 16px var(--display); }
.share code { font: 500 14px Inter, sans-serif; color: var(--gold-2); word-break: break-all; }
.share .btn.ghost { background: transparent; color: #fff; border-color: #333; }
.share .btn.ghost:hover { background: #1b1b1b; }

/* barra de ferramentas */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.search { flex: 1; min-width: 220px; position: relative; display: flex; align-items: center; }
.search .i { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); }
.search input { padding-left: 40px; }
.seg { display: flex; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: none; padding: 8px 13px; border-radius: 9px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--btn); color: var(--btn-ink); }

/* formulários */
input, select, textarea { font: 14px Inter, sans-serif; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 11px 13px; width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 18%, transparent); }
textarea { resize: vertical; min-height: 100px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; }
label small { font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0 14px; }
.form-grid > * { grid-column: span 6; }
/* c2 = metade, c3 = um terço, c4 = dois terços */
.c2 { grid-column: span 3 !important; } .c3 { grid-column: span 2 !important; } .c4 { grid-column: span 4 !important; }

/* grade de imóveis */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.prop { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.prop:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.prop .cover { position: relative; aspect-ratio: 16/10; background: var(--bg-2) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); }
.prop .cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.28), transparent 35%); }
.prop .cover > .i { width: 44px; height: 44px; stroke-width: 1.3; opacity: .5; }
.prop .tags { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 6px; z-index: 1; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.94); color: #111; }
.chip .i { width: 12px; height: 12px; }
.chip.dark { background: rgba(12,12,12,.78); color: #fff; backdrop-filter: blur(6px); }
.chip.pub { background: #1f7a43; color: #fff; }
.chip.pub::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8ff0b3; }
.prop .body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.prop .kind { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
.prop .kind .i { width: 14px; height: 14px; }
.prop h3 { margin: 6px 0 2px; font-size: 17px; line-height: 1.3; }
.prop .sub { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 5px; min-height: 20px; }
.prop .sub .i { width: 14px; height: 14px; }
.prop .pr { font: 600 19px var(--display); letter-spacing: -.02em; margin-top: 10px; }
.prop .pr.none { font: 500 14px Inter, sans-serif; color: var(--muted); }
.prop .actions { display: flex; gap: 5px; margin-top: auto; padding-top: 16px; flex-wrap: wrap; align-items: center; }
.prop .actions .sp { flex: 1; }

.empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; background: var(--panel); border: 1px dashed var(--line); border-radius: 24px; }
.empty .mark { position: relative; width: 96px; margin: 0 auto 18px; }
.empty .mark::before { content: ""; position: absolute; inset: -60%; background: var(--glow); opacity: .7; }
.empty .mark img { position: relative; }
.empty h3 { margin: 0 0 6px; font-size: 22px; }
.empty p { margin: 0 auto 20px; color: var(--muted); max-width: 420px; }

/* minha página */
.page-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.sec { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-bottom: 18px; }
.sec-h { display: flex; gap: 14px; align-items: center; margin-bottom: 4px; }
.sec-h .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; flex: none; }
.sec-h .ic .i { width: 19px; height: 19px; }
.sec-h h3 { margin: 0; font-size: 17px; }
.sec-h p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.logo-up { display: flex; gap: 18px; align-items: center; margin-top: 16px; }
.logo-up .pv { width: 92px; height: 92px; border-radius: 22px; border: 1px dashed var(--line); background: var(--bg); display: grid; place-items: center; overflow: hidden; padding: 8px; font: 600 26px var(--display); color: var(--muted); flex: none; }
.logo-up .pv img { width: 100%; height: 100%; object-fit: contain; }
.logo-up .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.slug { display: flex; }
.slug span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 11px 0 0 11px; background: var(--bg); color: var(--muted); font-size: 13px; white-space: nowrap; }
.slug input { border-radius: 0 11px 11px 0; }
.colors { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.colors button { width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line); cursor: pointer; transition: transform .15s; }
.colors button:hover { transform: scale(1.1); }
.colors button.on { box-shadow: 0 0 0 2px var(--text); }
.colors input[type=color] { width: 46px; height: 34px; padding: 3px; cursor: pointer; }
.savebar { position: sticky; bottom: 16px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 14px; background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.savebar .err { margin: 0 auto 0 4px; }

/* prévia ao vivo */
.preview { position: sticky; top: 24px; }
.preview .lbl { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.preview .lbl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2fbf6b; box-shadow: 0 0 0 3px rgba(47,191,107,.2); }
.phone { background: #0d0d0d; border-radius: 34px; padding: 10px; box-shadow: var(--shadow-lg); }
.phone .scr { background: #f6f5f2; border-radius: 26px; overflow: hidden; color: #111; }
.pv-cover { height: 120px; position: relative; background: linear-gradient(135deg, var(--pv, #111), color-mix(in srgb, var(--pv, #111) 70%, #000)); }
.pv-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 14px 14px; }
.pv-card { background: #fff; margin: -44px 12px 0; position: relative; border-radius: 18px; padding: 50px 16px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.1); }
.pv-logo { position: absolute; top: -34px; left: 16px; width: 70px; height: 70px; border-radius: 18px; background: #fff; border: 1px solid #e7e5e0; display: grid; place-items: center; overflow: hidden; padding: 7px; box-shadow: 0 6px 18px rgba(0,0,0,.1); }
.pv-logo img { width: 100%; height: 100%; object-fit: contain; }
.pv-logo span { width: 100%; height: 100%; border-radius: 12px; display: grid; place-items: center; font: 700 20px Inter, sans-serif; background: var(--pv, #111); color: var(--pv-ink, #fff); }
.pv-card h4 { margin: 0; font: 700 19px/1.15 Inter, sans-serif; letter-spacing: -.03em; word-break: break-word; }
.pv-card p { margin: 4px 0 0; font-size: 12px; color: #67645e; }
.pv-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 11px; color: #67645e; }
.pv-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pv-meta .i { width: 12px; height: 12px; }
.pv-btns { display: flex; gap: 6px; margin-top: 12px; align-items: center; }
.pv-wa { flex: 1; background: #1faa59; color: #fff; border-radius: 10px; padding: 8px; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pv-wa .i { width: 14px; height: 14px; }
.pv-circ { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #e7e5e0; display: grid; place-items: center; }
.pv-circ .i { width: 14px; height: 14px; }
.pv-list { padding: 14px 12px 16px; display: grid; gap: 8px; }
.pv-item { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 12px; padding: 8px; border: 1px solid #ecebe7; }
.pv-item .th { width: 54px; height: 42px; border-radius: 8px; background: #e9e6e0 center/cover; flex: none; }
.pv-item b { display: block; font-size: 12px; line-height: 1.25; }
.pv-item small { font-size: 11px; color: var(--pv, #111); font-weight: 700; }
.preview .open { display: flex; justify-content: center; margin-top: 12px; }

/* modais */
.modal { position: fixed; inset: 0; background: rgba(8,8,8,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .18s; }
.dialog { width: min(480px, 100%); background: var(--panel); border-radius: 24px; padding: 26px; box-shadow: var(--shadow-lg); max-height: calc(100vh - 32px); overflow: auto; animation: up .25s cubic-bezier(.2,.8,.2,1); }
.dialog.big { width: min(740px, 100%); }
.dialog .dh { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.dialog .dh .ic { width: 44px; height: 44px; border-radius: 13px; background: #111; color: var(--gold-2); display: grid; place-items: center; flex: none; }
.dialog .dh .ic .i { width: 20px; height: 20px; }
.dialog h2 { margin: 0; font-size: 21px; }
.dialog .dh p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.dialog .foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }
.modes { display: grid; gap: 8px; margin-top: 6px; }
.mode { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; margin: 0; font-weight: 400; transition: border-color .15s, background .15s; }
.mode:hover { border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.mode:has(input:checked) { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.mode input { width: auto; accent-color: #111; }
.mode .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; flex: none; }
.mode .ic .i { width: 19px; height: 19px; }
.mode b { display: block; font-size: 14px; }
.mode span { font-size: 12px; color: var(--muted); }
.toggles { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.tg { display: flex; gap: 10px; align-items: center; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 500; }
.tg input { width: 34px; height: 20px; appearance: none; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; padding: 0; border: 0; transition: background .2s; }
.tg input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.tg input:checked { background: #1f7a43; }
.tg input:checked::after { transform: translateX(14px); }
.tg input:focus { box-shadow: none; }
.covers { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.covers button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4/3; background: var(--bg); }
.covers button.on { border-color: var(--gold); box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 30%, transparent); }
.covers img { width: 100%; height: 100%; object-fit: cover; }
.covers .add { display: grid; place-items: center; align-content: center; gap: 4px; border: 1.5px dashed var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.covers .add .i { width: 18px; height: 18px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; margin: 12px 0 0; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #111; color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 99; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; animation: up .2s; }
.toast .i { color: var(--gold-2); width: 17px; height: 17px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translate(var(--tx, 0), 10px); } }
.toast { --tx: -50%; }
.loading { display: grid; place-items: center; min-height: 60vh; }
.loading img { width: 64px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .4; transform: scale(.94); } }

/* responsivo */
@media (max-width: 1180px) {
  .page-wrap { grid-template-columns: 1fr; }
  .preview { position: static; max-width: 380px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 12px 16px; background: var(--dark); color: #fff; }
  .mtop .brand { padding: 0; }
  .mtop .brand b { font-size: 19px; }
  .mtop .brand img { width: 32px; height: 32px; }
  .mtop .sp { flex: 1; }
  .mtop button, .mtop a:not(.brand) { width: 38px; height: 38px; border-radius: 11px; border: 1px solid #2a2a2a; background: none; color: #ddd; display: grid; place-items: center; cursor: pointer; }
  .mtop .i { width: 18px; height: 18px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--dark); border-top: 1px solid #222; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar button, .tabbar a { border: 0; background: none; color: #8e8980; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; padding: 6px; cursor: pointer; border-radius: 10px; }
  .tabbar .on { color: var(--gold-2); }
  .tabbar .i { width: 21px; height: 21px; }
  .main { padding: 22px 16px 100px; }
  .page-h h1 { font-size: 26px; }
  .c2, .c3, .c4 { grid-column: span 6 !important; }
  .dialog { padding: 22px 18px; }
  .modal { padding: 0; place-items: end stretch; }
  .dialog, .dialog.big { width: 100%; border-radius: 24px 24px 0 0; max-height: 92vh; }
}
@media (min-width: 861px) { .tabbar { display: none; } }
@media (max-width: 520px) { .stats { gap: 10px; } .stat { padding: 14px; } .stat .ic { display: none; } .share { padding: 18px; } .share .btn { flex: 1; } }
