* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, sans-serif; color: #1f2937; background: #f4f7f9; }
a { color: inherit; }
.guest { max-width: 1100px; margin: 0 auto; padding: 24px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { background: #102a43; color: #e6f0f6; padding: 20px; }
.sidebar h1 { font-size: 18px; margin: 0 0 20px; }
.sidebar a { display: block; color: #e6f0f6; text-decoration: none; padding: 10px 12px; border-radius: 6px; margin-bottom: 4px; }
.sidebar a:hover { background: rgba(255,255,255,.12); }
.topbar { background: white; border-bottom: 1px solid #d9e2ec; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; }
.content { padding: 22px; }
.card { background: white; border: 1px solid #d9e2ec; border-radius: 8px; padding: 18px; margin-bottom: 16px; }
.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; } .col-12 { grid-column: span 12; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; padding: 10px 11px; border: 1px solid #cbd5e1; border-radius: 6px; font: inherit; }
textarea { min-height: 90px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #cbd5e1; background: white; padding: 9px 13px; border-radius: 6px; text-decoration: none; cursor: pointer; font: inherit; }
.btn.primary { background: #0f766e; border-color: #0f766e; color: white; }
.btn.danger { border-color: #dc2626; color: #dc2626; }
.actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 14px; border: 1px solid #d9e2ec; background: white; }
.alert.success { background: #ecfdf3; border-color: #bbf7d0; }
.alert.error { background: #fef2f2; border-color: #fecaca; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #e5edf3; text-align: left; vertical-align: top; }
.badge { display: inline-block; padding: 4px 8px; border-radius: 999px; background: #e0f2fe; font-size: 12px; }
.muted { color: #667085; }
.stat { font-size: 32px; font-weight: 700; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { border: 1px solid #cbd5e1; background: white; padding: 9px 12px; border-radius: 6px; cursor: pointer; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.modal { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 10; }
.modal.open { display: flex; }
.modal-box { width: min(760px, 100%); max-height: 90vh; overflow: auto; background: white; border-radius: 8px; padding: 18px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
@media (max-width: 850px) {
    .shell { display: block; }
    .grid { display: block; }
    .grid > * { margin-bottom: 12px; }
}
