/* Prensa — light UI in the same idiom as Vassoura: Inter, zinc palette, white cards on a zinc-50 page, indigo accent. */
:root {
  --bg: #fafafa; --card: #ffffff; --text: #18181b; --text-2: #3f3f46; --muted: #71717a; --line: #e4e4e7; --line-2: #d4d4d8;
  --brand: #4f46e5; --brand-700: #4338ca; --brand-50: #eef2ff; --brand-100: #e0e7ff;
  --ok: #047857; --ok-bg: #ecfdf5; --warn: #b45309; --warn-bg: #fffbeb; --err: #b91c1c; --err-bg: #fef2f2; --chip: #f4f4f5;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 20px; font-weight: 600; }
h2 { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
h3 { font-size: 13px; font-weight: 600; margin: 14px 0 4px; }
.label { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.muted { color: var(--muted); font-size: 12px; }
.small { font-size: 12px; }
code, pre { font-family: var(--mono); font-size: 12px; }
pre { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; overflow-x: auto; margin: 6px 0 12px; white-space: pre-wrap; word-break: break-all; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1 1 220px; }
.spacer { flex: 1; }
select, input[type=text], input[type=url] { width: 100%; height: 34px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--text); font: inherit; }
select:focus, input:focus { outline: 2px solid var(--brand-100); border-color: var(--brand); }
button, a.button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
button:hover, a.button:hover { background: var(--chip); text-decoration: none; }
button.primary, a.button.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
button.primary:hover, a.button.primary:hover { background: var(--brand-700); }
button.small { height: 26px; padding: 0 8px; font-size: 12px; }
button.link { border: none; background: none; color: var(--brand); padding: 0; height: auto; }
button:disabled { opacity: .5; cursor: default; }
.drop { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 28px 16px; text-align: center; color: var(--muted); cursor: pointer; background: #fff; }
.drop.over { border-color: var(--brand); background: var(--brand-50); }
.drop strong { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: var(--chip); border-radius: 999px; padding: 2px 9px; font-size: 12px; color: var(--text-2); }
.chip b { font-weight: 600; color: var(--text); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--chip); color: var(--text-2); white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); } .pill.err { background: var(--err-bg); color: var(--err); }
.msg { padding: 9px 12px; border-radius: 6px; font-size: 13px; margin: 8px 0; border: 1px solid transparent; }
.msg.err { background: var(--err-bg); color: var(--err); border-color: #fecaca; }
.msg.warn { background: var(--warn-bg); color: var(--warn); border-color: #fde68a; }
.msg.info { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.msg.ok { background: var(--ok-bg); color: var(--ok); border-color: #a7f3d0; }
textarea { width: 100%; min-height: 340px; font: 12.5px/1.5 var(--mono); border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--text); padding: 10px; resize: vertical; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.key { font-family: var(--mono); font-size: 12px; word-break: break-all; }
.overflow { overflow-x: auto; }
.hidden { display: none !important; }
details summary { cursor: pointer; font-weight: 600; font-size: 13px; }

/* ---- public page ---- */
.top { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.brand b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; display: block; line-height: 1.1; }
.brand span { font-size: 11px; color: var(--muted); }
main.public { max-width: 1000px; margin: 0 auto; padding: 0 20px 56px; }
.hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin: 8px 0 24px; }
.hero h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.hero p { font-size: 15px; color: var(--text-2); max-width: 620px; margin: 10px 0 0; }
.hero img { width: 180px; height: auto; }
@media (max-width: 700px) { .hero { grid-template-columns: 1fr; } .hero img { display: none; } }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 13px; color: var(--text-2); background: #fff; }
.tier b { display: block; color: var(--text); margin-bottom: 4px; }
ul.plain { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }

/* ---- app shell ---- */
.shell { display: flex; min-height: 100vh; }
aside { width: 240px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
aside .brand { padding: 0 8px 12px; }
.me { margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 8px 10px; font-size: 12px; }
.me .who { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .role { display: inline-block; margin-top: 4px; padding: 1px 6px; border-radius: 999px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: #e4e4e7; color: #3f3f46; }
.me .role.admin { background: var(--brand-100); color: var(--brand-700); }
.me .out { float: right; margin-top: 4px; font-size: 11px; color: var(--muted); }
nav.side { display: flex; flex-direction: column; gap: 2px; }
nav.side a, nav.side button { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 6px; border: none; background: none; color: var(--text-2); font-weight: 500; font-size: 13px; cursor: pointer; text-align: left; width: 100%; text-decoration: none; }
nav.side a:hover, nav.side button:hover { background: var(--chip); color: var(--text); text-decoration: none; }
nav.side .active { background: var(--brand-50); color: var(--brand-700); }
nav.side svg { width: 16px; height: 16px; flex-shrink: 0; }
.navlabel { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.content { flex: 1; min-width: 0; padding: 20px 28px 48px; max-width: 1080px; }
.content header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.content header h1 { font-size: 18px; }
.view { display: none; } .view.active { display: block; }
.lang { width: auto; height: 30px; font-size: 12px; }
@media (max-width: 800px) { .shell { flex-direction: column; } aside { width: auto; height: auto; position: static; border-right: none; border-bottom: 1px solid var(--line); } nav.side { flex-direction: row; flex-wrap: wrap; } .navlabel { width: 100%; } .content { padding: 16px; } }
