* { box-sizing: border-box; }
body { font: 14px/1.5 -apple-system, sans-serif; margin: 0; background: #fafafa; color: #222; }
header { background: #1a1a1a; color: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 24px; }
header h1 { font-size: 18px; margin: 0; }
header a { color: #fff; text-decoration: none; }
header nav a { margin-right: 16px; opacity: 0.8; }
header nav a:hover { opacity: 1; }
main { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
h2 { font-size: 20px; }
form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
form label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #666; min-width: 160px; }
input, select, textarea, button { padding: 6px 10px; border: 1px solid #ccc; border-radius: 4px; font: inherit; }
textarea { width: 100%; font-family: ui-monospace, monospace; }
button { background: #0366d6; color: #fff; border: none; cursor: pointer; }
button:hover { background: #024ea2; }
table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04); }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f0f0f0; font-weight: 600; }
.persona-card { background: #fff; padding: 16px; margin: 12px 0; border-radius: 6px; border: 1px solid #e5e5e5; }
.persona-card h3 { margin: 0 0 8px; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; background: #ddd; }
.badge.active { background: #28a745; color: #fff; }
.version-row { padding: 6px 0; border-bottom: 1px dashed #eee; display: flex; gap: 12px; align-items: center; }
.version-row pre { flex: 1; margin: 0; max-height: 80px; overflow: auto; font-size: 11px; background: #f8f8f8; padding: 6px; }

.portal-hero { padding: 24px 0 8px; }
.portal-hero h2 { margin: 0 0 4px; font-size: 28px; }
.portal-hero .sub { color: #666; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.tile { background: #fff; border: 1px solid #e0e0e0; border-radius: 10px; padding: 20px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform 0.15s, box-shadow 0.15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.08); border-color: #1a73e8; }
.tile h3 { margin: 0; font-size: 16px; }
.tile p { margin: 0; color: #666; font-size: 13px; flex: 1; }
.tile .stat { font-size: 11px; color: #888; font-family: ui-monospace, monospace; }
.tile .stat.ext { color: #d93025; }
