/* LIKE A PRO .DEV — ~/meta
   Previews resemble each platform generically — no logos, approximate metrics. */
.tool-ui input[type="url"] {
    width: 100%; background: #0d0d13; border: 1px solid var(--border); border-radius: 6px;
    padding: .65rem .8rem; font-family: var(--font-mono); font-size: .85rem; color: var(--text); caret-color: var(--accent);
    transition: border-color .2s, box-shadow .2s;
}
.tool-ui input[type="url"]:focus { outline: none; border-color: rgba(200,255,46,.5); box-shadow: 0 0 0 3px var(--accent-soft); }
.tool-ui .t-warn { color: var(--amber); }
.m-count { color: var(--muted); margin-left: .4rem; font-variant-numeric: tabular-nums; }
.m-meter { height: 3px; background: var(--surface-3); border-radius: 2px; overflow: hidden; }
.m-meter i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.m-meter i.is-near { background: var(--amber); }
.m-meter i.is-over { background: var(--red); }
.m-more { margin: .8rem 0 .2rem; border: 1px solid var(--border); border-radius: 8px; padding: .6rem .9rem; background: #0a0a0f; }
.m-more summary { cursor: pointer; color: var(--muted); font-size: .8rem; }
.m-more[open] summary { margin-bottom: .3rem; }
.q-color { display: flex; gap: .5rem; align-items: center; }
.q-color input[type="color"] { flex: none; width: 2.6rem; height: 2.45rem; padding: 3px; border: 1px solid var(--border-strong); border-radius: 6px; background: #0d0d13; cursor: pointer; }

/* fetch */
.m-audit { list-style: none; display: grid; gap: .25rem; font-size: .8rem; }
.m-audit li { padding: .3rem .6rem; border-radius: 4px; background: #0a0a0f; border-left: 2px solid var(--border-strong); word-break: break-word; }
.m-audit li.is-err { border-left-color: var(--red); }
.m-audit li.is-warn { border-left-color: var(--amber); }
.m-audit li.is-ok { border-left-color: var(--green); color: var(--muted); }
.m-audit li.is-info { border-left-color: var(--cyan); color: var(--muted); }
.m-tablewrap { max-height: 22rem; overflow: auto; border: 1px solid var(--border); border-radius: 6px; }
.m-table { width: 100%; border-collapse: collapse; font-size: .76rem; }
.m-table th, .m-table td { text-align: left; vertical-align: top; padding: .35rem .6rem; border-top: 1px solid rgba(255,255,255,.05); }
.m-table thead th { position: sticky; top: 0; background: #0e0e14; color: var(--dim); font-weight: 400; border-top: 0; }
.m-table tbody th { color: var(--violet); font-weight: 500; white-space: nowrap; }
.m-table td { color: var(--text); word-break: break-word; }

/* previews */
.m-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: .5rem; }
.m-card { margin: 0; min-width: 0; }
.m-card figcaption { font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: .4rem; }
.m-card figcaption .t-dim { text-transform: none; letter-spacing: 0; }
.m-serp { grid-column: 1 / -1; }
.m-serp-body { background: #fff; color: #202124; border-radius: 8px; padding: 1rem 1.2rem; font-family: Arial, Helvetica, sans-serif; overflow: hidden; }
.m-serp-site { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; }
.m-serp-site b { display: block; font-weight: 400; font-size: 14px; color: #202124; line-height: 1.3; }
.m-serp-site small { display: block; font-size: 12px; color: #4d5156; line-height: 1.3; word-break: break-all; }
.m-fav { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4; border: 1px solid #dadce0; font: 600 12px/1 Arial, sans-serif; color: #3c4043; }
.m-fav--xs { width: 16px; height: 16px; font-size: 9px; margin-right: .35rem; vertical-align: -3px; }
.m-serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin: 0 0 .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; margin: 0; max-width: 600px; }
.m-serp--mobile { grid-column: auto; }
.m-serp--mobile .m-serp-body { max-width: 380px; border-radius: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.25); }
.m-serp--mobile .m-serp-title { white-space: normal; font-size: 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-serp--mobile .m-serp-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.m-img { position: relative; aspect-ratio: 1.91 / 1; background: #2a2a33; overflow: hidden; }
.m-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-img.is-empty img { display: none; }
.m-img.is-empty::after { content: attr(data-empty); position: absolute; inset: 0; display: grid; place-items: center; font: 12px/1.3 var(--font-mono); color: #8a8a96; background: repeating-linear-gradient(-45deg, #2a2a33 0 10px, #24242c 10px 20px); text-align: center; padding: .5rem; }
.m-img--sq { aspect-ratio: 1; }

.m-fb-body { background: #fff; border: 1px solid #dadde1; border-radius: 4px; overflow: hidden; font-family: Helvetica, Arial, sans-serif; }
.m-fb-text { display: grid; gap: 3px; padding: 10px 12px; background: #f0f2f5; }
.m-fb-text small { font-size: 12px; color: #65676b; letter-spacing: .02em; }
.m-fb-text b { font-size: 16px; color: #050505; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-fb-text span { font-size: 14px; color: #65676b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.m-x-body { background: #000; padding: 12px; border-radius: 12px; border: 1px solid #2f3336; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.m-x-large .m-img { border-radius: 16px; border: 1px solid #2f3336; }
.m-x-badge { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,.77); color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; }
.m-x-from { display: block; color: #71767b; font-size: 13px; margin-top: 4px; }
.m-x-small { display: none; border: 1px solid #2f3336; border-radius: 16px; overflow: hidden; }
.m-x-small .m-img { flex: none; width: 128px; border-right: 1px solid #2f3336; }
.m-x-text { display: grid; align-content: center; gap: 2px; padding: 8px 12px; min-width: 0; font-size: 15px; }
.m-x-text small { color: #71767b; font-size: 15px; }
.m-x-text b { color: #e7e9ea; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-x-text span { color: #71767b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-x-body.is-small .m-x-large { display: none; }
.m-x-body.is-small .m-x-small { display: flex; }

.m-chat { display: flex; gap: 0; border-radius: 6px; overflow: hidden; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
.m-chat-bar { flex: none; width: 4px; }
.m-chat-text { display: grid; gap: 4px; padding: 10px 14px; min-width: 0; font-size: 14px; flex: 1; }
.m-chat-text b { font-weight: 700; }
.m-chat-text span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.m-chat--light { background: #fff; }
.m-chat--light .m-chat-bar { background: #dddddd; }
.m-chat--light small { color: #1d1c1d; font-weight: 700; font-size: 13px; }
.m-chat--light b { color: #1264a3; }
.m-chat--light span { color: #1d1c1d; }
.m-img--thumb { max-width: 360px; border-radius: 6px; margin-top: 4px; }
.m-chat--dark { background: #2b2d31; }
.m-chat--dark .m-chat-bar { background: #1e1f22; }
.m-chat--dark small { color: #dbdee1; font-size: 12px; }
.m-chat--dark b { color: #00a8fc; }
.m-chat--dark span { color: #dbdee1; }
.m-chat--dark .m-img { border-radius: 4px; margin-top: 6px; max-width: 400px; }

.m-head { white-space: pre-wrap; word-break: break-word; font-size: .78rem; max-height: 26rem; overflow: auto; padding-right: 4rem; }

@media (max-width: 900px) {
    .m-previews { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    .m-serp-body { padding: .8rem; }
    .m-x-small .m-img { width: 96px; }
}
