@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format('woff2'); }
:root {
  --brand: #4b53c8; --brand-dark: #3a3fb0; --brand-soft: #eceefe; --bg: #eef0f8; --side: #f7f8fd; --panel: #fff;
  --text: #1f2430; --muted: #4b5563; --line: #d9dcec; --field: #cfd4e8;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #b45309; --warn-bg: #fef3c7; --err: #b91c1c; --err-bg: #fee2e2; --off: #4a5568; --off-bg: #e3e6f2;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 'Inter', 'Segoe UI', system-ui, sans-serif; }
a { color: var(--brand-dark); } a:hover { color: var(--brand); }
h1 { margin: 0; font-size: 26px; font-weight: 700; } h2 { margin: 0; font-size: 15px; font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: 13px; } .mono { font-family: Consolas, 'Courier New', monospace; }
.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.side { flex: 0 0 232px; background: var(--side); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 12px 18px; font-size: 16px; font-weight: 700; color: var(--brand-dark); text-decoration: none; }
.nav { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none; }
.nav:hover { background: var(--brand-soft); color: var(--text); } .nav.on, .nav.on:hover { background: var(--brand); color: #fff; }
.grow { flex: 1 1 auto; }
.me { padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.me form { margin-top: 6px; }
.main { flex: 999 1 560px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.head p { margin: 4px 0 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.card.hl { border-color: #b9bdf0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); font: 600 14px 'Inter', sans-serif; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--side); color: var(--text); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; } .btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { color: var(--err); border-color: #e3b3b3; } .btn-sm { min-height: 40px; padding: 0 12px; }
.btn:focus-visible, .inp:focus-visible, .chip:focus-visible, .nav:focus-visible { outline: 3px solid #b9bdf0; outline-offset: 1px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .row16 { display: flex; flex-wrap: wrap; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.row16 > .fld { flex: 1 1 200px; }
.lbl { font-weight: 600; font-size: 13px; }
.inp { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; font: 400 14px 'Inter', sans-serif; color: var(--text); background: #fff; }
textarea.inp { padding: 10px 12px; line-height: 1.5; min-height: 92px; resize: vertical; }
select.inp { padding-right: 8px; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--field); border-radius: 10px; font-weight: 600; cursor: pointer; background: #fff; }
.opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.opt .inp { width: 90px; min-height: 36px; margin-left: auto; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.keybox { background: var(--brand-soft); border-radius: 10px; padding: 14px; font: 600 15px Consolas, 'Courier New', monospace; color: var(--brand-dark); word-break: break-all; line-height: 1.5; }
.keybox.empty { background: #fff; border: 1px dashed #b9bdf0; color: var(--muted); font: 400 14px 'Inter', sans-serif; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.cols > .l { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; } .cols > .r { flex: 2 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.search { position: relative; } .search svg { position: absolute; left: 14px; top: 15px; } .search .inp { padding-left: 42px; min-height: 48px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field); background: #fff; color: var(--text); font-weight: 600; text-decoration: none; }
.chip span { background: var(--brand-soft); color: var(--brand-dark); padding: 1px 8px; border-radius: 999px; font-size: 12px; }
.chip.on, .chip.on:hover { background: var(--brand); border-color: var(--brand); color: #fff; } .chip.on span { background: rgba(255,255,255,.22); color: #fff; }
.tablebox { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--side); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid #eceefe; vertical-align: middle; } tr:last-child td { border-bottom: 0; }
td.r { text-align: right; white-space: nowrap; }
.fn { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 12px; font-weight: 600; margin: 0 4px 4px 0; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-activa, .b-active { background: var(--ok-bg); color: var(--ok); } .b-pronto { background: var(--warn-bg); color: var(--warn); } .b-vencida { background: var(--err-bg); color: var(--err); } .b-suspendida, .b-suspended { background: var(--off-bg); color: var(--off); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--side); font-size: 13px; color: var(--muted); }
.pager { display: flex; gap: 6px; } .pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; text-decoration: none; color: var(--text); }
.pager a.cur { background: var(--brand); border-color: var(--brand); color: #fff; } .pager span.dis { opacity: .45; }
.flash { padding: 12px 14px; border-radius: 10px; font-weight: 600; } .flash.ok { background: var(--ok-bg); color: #14532d; border: 1px solid #a7e3bb; } .flash.err { background: var(--err-bg); color: #991b1b; border: 1px solid #f0b3b3; }
.bar { height: 6px; border-radius: 999px; background: var(--off-bg); overflow: hidden; margin-top: 4px; } .bar i { display: block; height: 100%; background: var(--brand); } .bar i.full { background: var(--warn); }
.pub { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px; }
.pub .box { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 20px; }
.pub .logo { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 22px; font-weight: 700; color: var(--brand-dark); }
.pub .logo small { font-size: 14px; font-weight: 600; color: var(--muted); border-left: 1px solid #c3c8e0; padding-left: 10px; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 28px; background: var(--side); border-bottom: 1px solid var(--line); }
.topbar .brand { padding: 0; } .center { max-width: 880px; margin: 0 auto; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.hist { display: flex; flex-direction: column; gap: 8px; } .hist div { font-size: 13px; color: var(--muted); }
code.ph { background: var(--brand-soft); color: var(--brand-dark); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.hidden { display: none !important; }
@media (max-width: 760px) {
  .side { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 8px 0 0; } .me { border-top: 0; flex-direction: row; align-items: center; gap: 10px; padding: 0; } .main { padding: 18px 14px; } .grid2 { grid-template-columns: 1fr; }
}
.col { display: flex; flex-direction: column; gap: 18px; } .col14 { display: flex; flex-direction: column; gap: 14px; }
.lead { margin: 0; color: var(--muted); }
table.compact { min-width: 0; } .compact td.r { white-space: normal; } .compact td.r .btn { margin: 2px 0; }
