/* Mods Hub · estilo base (fase 2b.2). El pulido con el tema del panel llega en la fase 5. */
:root {
  color-scheme: dark;
  --bg: #15181c; --panel: #1e2228; --panel-2: #262b32; --ink: #e3e7ec; --muted: #9aa4b2;
  --green: #78c850; --gold: #e8b53a; --red: #ff7b72; --outline: #000;
  --frame: inset 1px 1px 0 rgba(255,255,255,.10), inset -1px -1px 0 rgba(0,0,0,.55);
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 2rem 1.25rem; }
main.narrow { max-width: 440px; padding-top: 12vh; }
.card { background: var(--panel); border: 2px solid var(--outline); box-shadow: var(--frame); padding: 1.25rem 1.5rem; margin-bottom: 1.25rem; }
h1 { margin: 0 0 .25rem; font-size: 1.4rem; letter-spacing: .02em; }
h2 { margin: 0 0 .75rem; font-size: 1.05rem; }
.muted { color: var(--muted); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.pill { display: inline-block; padding: .2rem .65rem; border: 2px solid var(--outline); background: var(--panel-2); box-shadow: var(--frame); font-weight: 600; }
.ok { color: var(--green); } .warn { color: var(--gold); } .bad { color: var(--red); }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: .75rem 0 0; }
dt { color: var(--muted); } dd { margin: 0; }
label { display: block; margin: .75rem 0 .25rem; color: var(--muted); }
input, select { width: 100%; padding: .55rem .7rem; background: #0b0d10; color: var(--ink); border: 2px solid var(--outline); box-shadow: inset 1px 1px 0 rgba(0,0,0,.6); font: inherit; }
input:focus, select:focus { outline: none; border-color: var(--green); }
button { font: inherit; font-weight: 600; padding: .5rem 1rem; color: #fff; background: #6b6f75; border: 2px solid var(--outline);
  box-shadow: inset 2px 2px 0 rgba(255,255,255,.3), inset -2px -2px 0 rgba(0,0,0,.45); cursor: pointer; text-shadow: 1px 1px 0 rgba(0,0,0,.55); }
button:hover { color: #fff2a8; border-color: #e6e9ee; }
button:active { box-shadow: inset 2px 2px 0 rgba(0,0,0,.45), inset -2px -2px 0 rgba(255,255,255,.12); transform: translateY(1px); }
button.primary { background: #5fb236; } button.danger { background: #c03a30; } button.small { padding: .25rem .6rem; font-size: .9rem; }
button:disabled { opacity: .5; cursor: default; }
.error { color: var(--red); margin-top: .75rem; min-height: 1.5em; }
.notice { color: var(--green); margin-top: .75rem; min-height: 1.5em; }
table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
th, td { text-align: left; padding: .5rem .4rem; border-top: 1px solid rgba(0,0,0,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: .9rem; border-top: 0; }
code, .mono { font-family: ui-monospace, Consolas, monospace; font-size: .9em; }
.linkbox { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.linkbox input { flex: 1; }
.grass::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: .5rem; vertical-align: -1px;
  background: linear-gradient(to bottom, #78c850 0 40%, #7a5230 40% 100%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.5); }
[hidden] { display: none !important; }
@media (max-width: 600px) { main { padding: 1rem .75rem; } .card { padding: 1rem; } th:nth-child(4), td:nth-child(4) { display: none; } }

ul { margin: .25rem 0 .75rem 1.25rem; padding: 0; } li { list-style: square; }
details summary { cursor: pointer; }
#profRows select { min-width: 130px; }
#consoleBox .bad { color: #ff7b72; } #consoleBox .warn { color: #e8b53a; } #consoleBox .echo { color: #78c850; font-weight: 600; }
button.chip { background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px currentColor; text-shadow: none; color: #fff; } button.chip.warn { color: #e8b53a; } button.chip.bad { color: #ff7b72; } button.chip.off { opacity: .45; box-shadow: none; }

/* diálogo propio (hub.confirm / hub.notice) */
dialog.hub { background: var(--panel); color: var(--ink); border: 2px solid var(--outline); box-shadow: var(--frame), 0 16px 48px rgba(0,0,0,.65); padding: 1.25rem 1.5rem; width: min(440px, calc(100vw - 2rem)); }
dialog.hub::backdrop { background: rgba(0,0,0,.6); }
dialog.hub .dlg-title { margin: 0 0 .5rem; }
dialog.hub .dlg-msg { white-space: pre-line; margin: 0 0 1.1rem; }
dialog.hub .dlg-btns { justify-content: flex-end; }
#statusAt { font-size: .8rem; }
