:root { color-scheme: light; --bg:#f5f5f5; --card:#fff; --line:#d9d9d9; --accent:#111; --text:#111; --muted:#666; }
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; font-family:Inter,ui-sans-serif,system-ui,sans-serif; color:var(--text); background:var(--bg); }
.container { width:min(650px,calc(100% - 24px)); margin:0 auto; padding:25px 0; }
header { margin-bottom:20px; }
.eyebrow { color:var(--accent); font-size:.78rem; font-weight:800; letter-spacing:.14em; }
h1 { margin:5px 0; font-size:clamp(1.65rem,5vw,2.45rem); letter-spacing:-.035em; line-height:1.08; }
header p { margin:6px 0; color:var(--muted); max-width:620px; font-size:.92rem; }
form { padding:14px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 5px 18px #0000000a; }
label { display:block; margin-bottom:9px; font-size:.85rem; font-weight:700; color:#c8d5e5; }
.search-row { display:flex; gap:10px; }
input { min-width:0; flex:1; padding:11px 13px; border:1px solid var(--line); border-radius:7px; outline:none; background:#fff; color:var(--text); font-size:.95rem; }
input:focus { border-color:#111; box-shadow:0 0 0 2px #00000014; }
button { font:inherit; }
#submit, #random { padding:0 17px; border:1px solid #111; border-radius:6px; font-weight:750; cursor:pointer; }
#submit { background:#111; color:#fff; }
#random { background:#fff; color:#111; }
#submit:disabled, #random:disabled { opacity:.65; cursor:wait; }
.message { min-height:20px; margin:11px 2px; color:var(--muted); font-size:.85rem; }
.message.success { color:#333; } .message.error { color:#b42318; }
.results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.field { position:relative; display:flex; flex-direction:column; align-items:flex-start; min-height:61px; padding:10px 12px; border:1px solid var(--line); border-radius:7px; color:var(--text); background:var(--card); text-align:left; cursor:pointer; transition:.15s ease; }
.field:hover { border-color:#111; transform:translateY(-1px); background:#fafafa; }
.field.wide { grid-column:1/-1; }
.field-label { color:var(--muted); font-size:.76rem; text-transform:uppercase; letter-spacing:.08em; font-weight:700; }
.field-value { margin-top:5px; padding-right:45px; font-size:.92rem; font-weight:600; overflow-wrap:anywhere; }
.copy-hint { position:absolute; top:11px; right:12px; color:#555; font-size:.68rem; opacity:.7; }
.toast { position:fixed; left:50%; bottom:22px; padding:9px 15px; border-radius:999px; background:#111; color:#fff; font-size:.85rem; font-weight:700; transform:translate(-50%,20px); opacity:0; pointer-events:none; transition:.2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.admin-panel { max-width:600px; }
.admin-card { display:grid; gap:10px; margin-bottom:12px; padding:16px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.admin-card button { padding:10px 14px; border:1px solid #111; border-radius:6px; background:#fff; cursor:pointer; font-weight:700; }
.admin-card button.primary { background:#111; color:#fff; }
.admin-card button.danger { border-color:#b42318; color:#b42318; }
.status-line { display:flex; justify-content:space-between; align-items:center; padding-bottom:10px; border-bottom:1px solid var(--line); }
#status { font-size:.78rem; padding:5px 8px; border-radius:5px; background:#eee; }
#status[data-state="running"] { background:#dcfae6; color:#087443; }
#status[data-state="stopped"] { background:#fee4e2; color:#b42318; }
.check { display:flex; gap:9px; align-items:center; margin:4px 0; text-transform:none; }
.check input { flex:0 0 auto; width:17px; height:17px; }
.admin-actions { display:flex; gap:8px; flex-wrap:wrap; }
.admin-note { margin:0; color:var(--muted); font-size:.78rem; }
.log-header { display:flex; justify-content:space-between; align-items:center; margin-top:8px; padding-top:13px; border-top:1px solid var(--line); }
.log-header span { color:var(--muted); font-size:.7rem; }
.logs { display:grid; max-height:260px; overflow:auto; border:1px solid var(--line); border-radius:6px; }
.log-row { display:grid; grid-template-columns:1.3fr .65fr .8fr; gap:7px; align-items:center; padding:7px 9px; border-bottom:1px solid #eee; font-size:.72rem; }
.log-row:last-child { border-bottom:0; }
.log-row time { color:var(--muted); }
.log-row code { color:#111; font-weight:700; }
.log-row small { grid-column:1/-1; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.log-result { justify-self:end; padding:3px 6px; border-radius:4px; background:#eee; text-transform:uppercase; font-size:.62rem; font-weight:800; }
.log-result.guardado { color:#087443; background:#dcfae6; }
.log-result.no-encontrado { color:#b42318; background:#fee4e2; }
.empty-log { padding:12px; margin:0; color:var(--muted); font-size:.78rem; }
@media (max-width:620px) { .container{padding:18px 0}.search-row{flex-direction:column}#submit,#random{padding:10px}.results{grid-template-columns:1fr;gap:7px}.field.wide{grid-column:auto} }
