/* Shared styles for the browser-side tools (tool expansion batch 1). Uses the site's tokens. */
/* The hidden attribute must win over the display rules below (and the site's .btn). */
.card [hidden] { display: none !important; }
.mmt-alt.btn { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); box-shadow: none; }
.mmt-alt.btn:hover { background: var(--bg); }
.mmt-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mmt-opts { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 12px 0; font-size: .9rem; }
.mmt-opts label { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; font-weight: 500; max-width: 100%; }
.mmt-opts select { max-width: 100%; }
.mmt-opts select, .mmt-opts input[type=number], .mmt-opts input[type=text] { width: auto; margin: 0; }
.mmt-opts input[type=number] { max-width: 5.5em; }
.mmt-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .mmt-grid2 { grid-template-columns: 1fr; } }
.mmt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; tab-size: 4; }
textarea.mmt-mono { min-height: 240px; }
.mmt-status { margin: 10px 0; font-size: .9rem; min-height: 1.4em; }
.mmt-ok { color: #15803D; font-weight: 600; }
.mmt-err { color: #B91C1C; font-weight: 600; }
.mmt-warn { color: #B45309; }
.mmt-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; font-size: .86rem; }
.mmt-pills span { padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.mmt-seg { display: inline-flex; border: 1.5px solid var(--border, #e5e7eb); border-radius: 10px; overflow: hidden; }
.mmt-seg button { border: 0; background: transparent; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; color: var(--text); }
.mmt-seg button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.mmt-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mmt-table th, .mmt-table td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--border, #e5e7eb); vertical-align: top; word-break: break-word; }
.mmt-table th { width: 38%; color: var(--muted); font-weight: 600; }
.mmt-help h2 { font-size: 1.1rem; margin-top: 18px; }
.mmt-help h2:first-child { margin-top: 0; }
.mmt-alert { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-size: .92rem; }
.mmt-alert.warn { background: #FFFBEB; border: 1px solid #FCD34D; color: #78350F; }
.mmt-alert.good { background: #F0FDF4; border: 1px solid #86EFAC; color: #14532D; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .mmt-alert.warn { background: rgba(245,158,11,.14); color: inherit; }
    :root:not([data-theme="light"]) .mmt-alert.good { background: rgba(22,163,74,.14); color: inherit; }
    :root:not([data-theme="light"]) .mmt-ok { color: #4ADE80; }
    :root:not([data-theme="light"]) .mmt-err { color: #F87171; }
    :root:not([data-theme="light"]) .mmt-warn { color: #FBBF24; }
}
:root[data-theme="dark"] .mmt-alert.warn { background: rgba(245,158,11,.14); color: inherit; }
:root[data-theme="dark"] .mmt-alert.good { background: rgba(22,163,74,.14); color: inherit; }
:root[data-theme="dark"] .mmt-ok { color: #4ADE80; }
:root[data-theme="dark"] .mmt-err { color: #F87171; }
:root[data-theme="dark"] .mmt-warn { color: #FBBF24; }
