.panel-body { background: #f5f5f4; font-family: "DM Sans", system-ui, sans-serif; color: #1c1917; }
.panel-body a { color: #c2410c; text-decoration: none; }
.panel-body a:hover { color: #9a3412; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.15rem; border-radius: 999px; font-weight: 600;
    border: 1px solid transparent; cursor: pointer; font: inherit;
}
.btn-primary { background: #c2410c; color: #fff; }
.btn-primary:hover { background: #9a3412; color: #fff; }
.btn-outline { background: transparent; border-color: #e7e5e4; color: #1c1917; }
.btn-outline:hover { border-color: #c2410c; color: #c2410c; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .75rem; font-size: .875rem; }
.site-form .form-row { margin-bottom: 1rem; }
.site-form label { display: block; font-weight: 600; margin-bottom: .35rem; }
.site-form input, .site-form select, .site-form textarea {
    width: 100%; padding: .7rem .85rem; border: 1px solid #e7e5e4;
    border-radius: 8px; font: inherit; background: #fff;
}
.alert { padding: .85rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }
.muted { color: #57534e; }

.panel-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.panel-sidebar {
    background: #1c1917; color: #faf7f2; padding: 1.25rem; display: flex; flex-direction: column;
}
.panel-brand {
    font-family: var(--font-serif, Georgia, serif);
    font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 1.5rem;
}
.panel-nav { display: grid; gap: .35rem; }
.panel-nav a {
    color: #d6d3d1; padding: .55rem .65rem; border-radius: 8px;
    display: flex; justify-content: space-between; align-items: center;
}
.panel-nav a:hover { background: #292524; color: #fff; }
.panel-sidebar__foot { margin-top: auto; padding-top: 1rem; font-size: .875rem; color: #a8a29e; }
.panel-sidebar__foot a { color: #faf7f2; display: inline-block; margin-top: .35rem; }
.badge {
    background: #c2410c; color: #fff; font-size: .7rem; padding: .1rem .45rem; border-radius: 999px;
}
.panel-main { display: flex; flex-direction: column; }
.panel-topbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem 1.5rem; background: #fff; border-bottom: 1px solid #e7e5e4;
}
.panel-topbar h1 { font-size: 1.25rem; margin: 0; font-family: var(--font-serif, Georgia, serif); }
.panel-content { padding: 1.5rem; }
.panel-card {
    background: #fff; border: 1px solid #e7e5e4; border-radius: 12px;
    padding: 1rem 1.25rem; margin-bottom: 1rem;
}
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat-card {
    background: #fff; border: 1px solid #e7e5e4; border-radius: 12px; padding: 1rem 1.25rem;
}
.stat-card span { color: #57534e; font-size: .875rem; }
.stat-card strong { display: block; font-size: 2rem; font-family: var(--font-serif, Georgia, serif); }
.data-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.data-table th, .data-table td { padding: .55rem .35rem; border-bottom: 1px solid #e7e5e4; text-align: left; }
.data-table tr.is-unread td { font-weight: 600; }
.panel-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.panel-toolbar .is-active { border-color: #c2410c; color: #c2410c; }
.detail-list { display: grid; grid-template-columns: 140px 1fr; gap: .5rem 1rem; margin: 1rem 0; }
.detail-list dt { color: #57534e; font-weight: 600; }
.inline-form { display: flex; flex-wrap: wrap; gap: .75rem; align-items: end; }

.panel-login {
    min-height: 100vh; display: grid; place-items: center;
    background: #faf7f2; padding: 1rem;
}
.panel-login__card {
    width: min(420px, 100%); background: #fff; border: 1px solid #e7e5e4;
    border-radius: 16px; padding: 2rem; box-shadow: 0 12px 40px rgba(28,25,23,.08);
}
.panel-login__card h1 { font-family: var(--font-serif, Georgia, serif); margin-bottom: .25rem; }
.panel-login__card p { color: #57534e; margin-top: 0; margin-bottom: 1.5rem; }

@media (max-width: 800px) {
    .panel-shell { grid-template-columns: 1fr; }
    .panel-sidebar { position: sticky; top: 0; z-index: 10; }
    .panel-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
}
