:root { --ink: #102c33; --slate: #607176; --paper: #edf1ef; --white: #fff; --blue: #2f80ed; --mint: #a9efd0; --line: #c8d2cf; --orange: #fa4616; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, sans-serif; line-height: 1.55; }
button, input { font: inherit; }
a { color: inherit; }
.brand { display: block; width: 190px; height: auto; }
.eyebrow { margin: 28px 0 12px; color: var(--blue); font-size: 10px; font-weight: bold; letter-spacing: .14em; }
h1 { margin: 0 0 12px; font-size: clamp(36px, 5vw, 54px); line-height: 1; letter-spacing: -.05em; }
h2 { margin: 0 0 5px; font-size: 23px; letter-spacing: -.03em; }
.muted { color: var(--slate); }
.login-view { display: grid; place-items: center; min-height: 100vh; padding: 30px; }
.login-card { width: min(440px, 100%); padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 25px 70px #102c3315; }
.login-card form { margin-top: 28px; }
label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: bold; }
input { width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fafcfb; }
input:focus { border-color: var(--blue); outline: 3px solid #2f80ed25; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 17px; border-radius: 8px; font-size: 13px; font-weight: bold; text-decoration: none; cursor: pointer; }
.primary { border: 1px solid var(--blue); background: var(--blue); color: var(--white); }
.primary:hover { background: #1c66c2; }
.primary:disabled { opacity: .6; cursor: wait; }
.login-card .primary { width: 100%; margin-top: 16px; }
.secondary { border: 1px solid var(--line); background: transparent; color: var(--ink); }
.secondary:hover { background: var(--white); }
.form-status { min-height: 22px; margin: 14px 0 0; color: #a83226; font-size: 13px; }
.back-link { display: inline-block; margin-top: 20px; color: var(--slate); font-size: 12px; text-decoration: none; }
.dashboard { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 70px; }
.dashboard-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.dashboard-header .eyebrow { margin-bottom: 10px; }
.header-actions { display: flex; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.stats article { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.stats span, .stats small { display: block; color: var(--slate); font-size: 12px; }
.stats strong { display: block; margin: 12px 0 6px; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.table-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--white); }
.table-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid var(--line); }
.table-head p { margin: 0; font-size: 13px; }
.export { flex: none; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 16px 24px; border-bottom: 1px solid #e6ebe8; text-align: left; white-space: nowrap; }
th { color: var(--slate); background: #f7faf8; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
td a { color: var(--blue); }
.badge { display: inline-block; padding: 5px 9px; border-radius: 100px; background: #edf1ef; color: var(--slate); font-size: 11px; }
.badge.yes { background: #e0f5e9; color: #1d6847; }
.badge.no { background: #f3e9e6; color: #8a4937; }
.empty { padding: 40px; color: var(--slate); text-align: center; }
.calendar-card { margin-bottom: 24px; }
.calendar-card .table-head .eyebrow { margin: 0 0 10px; }
.calendar-card .header-actions { align-items: center; flex-wrap: wrap; }
.calendar-card > .form-status { margin: 14px 24px; }
.connection-badge { display: inline-flex; align-items: center; min-height: 30px; padding: 5px 10px; border-radius: 100px; background: #f3e9e6; color: #8a4937; font-size: 11px; font-weight: bold; white-space: nowrap; }
.connection-badge.is-connected { background: #e0f5e9; color: #1d6847; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .login-card { padding: 28px; }
  .dashboard { width: calc(100% - 28px); padding-top: 28px; }
  .dashboard-header, .table-head { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; }
  .header-actions > * { flex: 1; }
  .stats { grid-template-columns: 1fr; }
  th, td { padding: 14px 18px; }
}
