:root {
  --nav: #111827;
  --nav-soft: #1f2937;
  --blue: #238be6;
  --line: #dce4ef;
  --paper: #f3f7fb;
  --text: #172033;
  --muted: #66758d;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--paper); color: var(--text); }
a { text-decoration: none; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 268px; background: var(--nav); color: #fff; display: flex; flex-direction: column; padding: 22px 14px; gap: 22px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 26px; padding: 0 10px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand span { width: 52px; height: 52px; border-radius: 50%; background: #fff; color: #0f766e; display: grid; place-items: center; font-weight: 800; }
.sidebar nav { display: grid; gap: 8px; }
.sidebar a, .logout { border: 0; color: #dbe7f7; background: transparent; display: flex; align-items: center; gap: 16px; min-height: 54px; padding: 0 14px; border-radius: 7px; font-size: 18px; width: 100%; }
.sidebar a.active, .sidebar a:hover, .logout:hover { background: var(--blue); color: #fff; }
.sidebar i { width: 28px; font-size: 22px; text-align: center; }
.main { flex: 1; min-width: 0; }
.topbar { min-height: 96px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 18px 28px; }
.eyebrow { color: #53657f; text-transform: uppercase; font-weight: 800; font-size: 14px; }
.topbar h1 { margin: 0; font-size: 30px; font-weight: 500; }
.host-data { text-align: right; color: var(--muted); }
.host-data strong { display: block; color: var(--text); }
.content { padding: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 10px 28px rgba(31,41,55,.04); }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; margin-bottom: 18px; }
label { color: var(--muted); font-weight: 600; margin-top: 10px; margin-bottom: 5px; }
.auth-page { min-height: calc(100vh - 48px); display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: -24px; background: #fff; }
.auth-visual { background: #eef4fb; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px; text-align: center; }
.auth-logo { width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #0f766e; display: grid; place-items: center; font-size: 38px; font-weight: 900; margin-bottom: 24px; }
.auth-card { width: min(520px, calc(100vw - 32px)); background: #fff; padding: 34px; border: 1px solid var(--line); border-radius: 8px; align-self: center; justify-self: center; }
.auth-card h2 { margin-bottom: 18px; }
.auth-links { display: flex; justify-content: space-between; margin-top: 16px; }
.host-strip { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); margin-bottom: 18px; font-size: 14px; }
.badge { font-size: 13px; }
.status-new { background: #e9f3ff; color: #0b65bd; }
.status-in_progress { background: #fff5dc; color: #945c00; }
.status-done { background: #e3f8ee; color: #0f766e; }
.status-rejected { background: #fde7e7; color: #a61b1b; }
.service-row { background: #f8fbff; }
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-height: auto; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
}
