/* OrbitLab Admin — Sneat-inspired light design system */
* { box-sizing: border-box; margin: 0; }
body { font-family: "Segoe UI", system-ui, -apple-system, sans-serif; background: #F5F5F9; color: #2B2C40; font-size: 14px; }
a { color: #696CFF; text-decoration: none; }

.layout { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: #fff; border-right: 1px solid #E4E6EF; display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 16px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: #696CFF; color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.brand-name { font-size: 17px; font-weight: 800; }
.brand-sub { font-size: 11px; color: #697A8D; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { padding: 9px 12px; border-radius: 9px; color: #697A8D; font-weight: 600; }
.nav a:hover { background: #F0F0FA; color: #2B2C40; }
.sidebar-foot { margin-top: auto; padding: 10px 8px 0; }

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 26px; background: #fff; border-bottom: 1px solid #E4E6EF; position: sticky; top: 0; z-index: 5; }
.topbar-title { font-size: 17px; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.content { padding: 24px 26px 48px; max-width: 1240px; }

.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; }
.auth-card { background: #fff; border: 1px solid #E4E6EF; border-radius: 16px; padding: 34px; width: 430px; box-shadow: 0 6px 24px rgba(86,106,127,.12); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }

.card { background: #fff; border: 1px solid #E4E6EF; border-radius: 14px; padding: 20px; box-shadow: 0 3px 14px rgba(86,106,127,.07); margin-bottom: 18px; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid #E4E6EF; border-radius: 14px; padding: 16px 18px; }
.stat .v { font-size: 26px; font-weight: 800; }
.stat .l { color: #697A8D; font-size: 12.5px; font-weight: 600; }

h2.section { font-size: 15px; font-weight: 700; margin: 4px 0 10px; }
.muted { color: #697A8D; }
.small { font-size: 12px; }

table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: #697A8D; padding: 8px 10px; border-bottom: 1px solid #E4E6EF; }
td { padding: 9px 10px; border-bottom: 1px solid #F0F0F4; vertical-align: middle; }
tr:hover td { background: #FAFAFE; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.chip-green { background: #E8FADF; color: #4CAF2E; }
.chip-red { background: #FFE0DB; color: #FF3E1D; }
.chip-amber { background: #FFF2D6; color: #B97E00; }
.chip-gray { background: #EEEEF3; color: #697A8D; }
.chip-purple { background: #E7E7FF; color: #696CFF; }

.btn { display: inline-block; border: none; border-radius: 9px; padding: 9px 16px; font-size: 13px; font-weight: 700; cursor: pointer; background: #696CFF; color: #fff; }
.btn:hover { background: #5F61E6; }
.btn-danger { background: #FF3E1D; }
.btn-danger:hover { background: #E6381B; }
.btn-soft { background: #E7E7FF; color: #696CFF; }
.btn-soft:hover { background: #DBDBFA; }
.btn-ghost { background: transparent; color: #697A8D; border: 1px solid #D9DEE3; }
.btn-ghost:hover { color: #2B2C40; }
.btn-sm { padding: 5px 11px; font-size: 12px; }

label { display: block; font-weight: 600; color: #697A8D; margin: 12px 0 5px; font-size: 12.5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #C6CBD4; border-radius: 9px; font-size: 13.5px; background: #fff; color: #2B2C40; }
input:focus, select:focus, textarea:focus { outline: 2px solid #C7C8FF; border-color: #696CFF; }
.inline-form { display: inline; }
.filters { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 14px; }
.filters label { margin: 0 0 5px; }
.filters .f { min-width: 160px; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.warn-box { background: #FFF2D6; border-radius: 10px; padding: 13px 15px; color: #8a6100; font-weight: 600; margin-bottom: 10px; }
.ok-box { background: #E8FADF; border-radius: 10px; padding: 13px 15px; color: #3f8f26; font-weight: 600; margin-bottom: 10px; }
.err-box { background: #FFE0DB; border-radius: 10px; padding: 13px 15px; color: #c22e12; font-weight: 600; margin-bottom: 10px; }
.code-box { background: #2B2C40; color: #E8FADF; font-family: Consolas, monospace; padding: 14px 16px; border-radius: 10px; margin: 8px 0; font-size: 14px; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 6px 14px; }
.kv .k { color: #697A8D; font-weight: 600; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: 1fr; } }
