/* Basis voor Insights op de eigen server: wat het claude.ai-dashboardtype anders levert (lettertype, maten, laadstaat),
   plus het inlogscherm en de knop Ververs. De rest van de stijl staat in dashboard/index.html. */
:root {
  --font-anthropic-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-anthropic-serif: ui-serif, "New York", Georgia, serif;
  --cds-gap-xs: 4px; --cds-gap-sm: 8px; --cds-pad-sm: 8px; --cds-pad-md: 12px;
  --cds-font-size-caption: 12px; --cds-dur-slow: .3s;
  color-scheme: light;
}
html, body { margin: 0; background: #ecebe8; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font-family: var(--font-anthropic-sans); color: #111; -webkit-font-smoothing: antialiased; }
#dash-root { min-height: 100vh; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); box-sizing: border-box; }
#dash-root *, #dash-root *::before, #dash-root *::after { box-sizing: border-box; }
button, input, select { font: inherit; }

.dash-skeleton { position: relative; color: transparent !important; border-radius: 10px;
  background: linear-gradient(90deg, rgba(17, 17, 17, .04) 0%, rgba(17, 17, 17, .08) 50%, rgba(17, 17, 17, .04) 100%) !important;
  background-size: 200% 100% !important; animation: eb-skel 1.4s ease-in-out infinite; }
.dash-skeleton > * { visibility: hidden; }
@keyframes eb-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .dash-skeleton { animation: none; } }

/* Kop: nettowinst-pill en Ververs naast elkaar */
.eb-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.eb-refresh { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; min-height: 44px; border: 0; border-radius: 999px;
  background: #111; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 28px rgba(17, 17, 17, .05); }
.eb-refresh:hover { background: #2a2a2a; }
.eb-refresh:focus-visible { outline: 2px solid #8cbf2f; outline-offset: 2px; }
.eb-refresh:disabled { cursor: progress; opacity: .75; }
.eb-refresh.busy svg { animation: eb-spin 1s linear infinite; }
@keyframes eb-spin { to { transform: rotate(360deg); } }

/* Inloggen */
body.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; box-sizing: border-box;
  background: radial-gradient(900px 520px at 100% 0%, rgba(198, 254, 86, .20), transparent 60%),
    radial-gradient(900px 640px at 0% 100%, rgba(255, 208, 186, .30), transparent 62%), linear-gradient(180deg, #f2f1ee 0%, #e9e8e4 100%); }
.login-card { width: 100%; max-width: 360px; background: #fbfbfa; border-radius: 22px; padding: 28px 24px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 10px 28px rgba(17, 17, 17, .05); box-sizing: border-box; }
.login-card .eb-logo { width: 46px; height: 46px; border-radius: 14px; background: #111; color: #c6fe56; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; letter-spacing: -.02em; }
.login-card h1 { font-size: 22px; font-weight: 650; letter-spacing: -.02em; margin: 16px 0 20px; }
.login-card form { display: grid; gap: 8px; }
.login-card label { font-size: 14px; color: #6f6e69; }
.login-card input[type=password] { width: 100%; box-sizing: border-box; padding: 12px 14px; min-height: 48px; font-size: 16px;
  border: 1px solid rgba(17, 17, 17, .14); border-radius: 12px; background: #fff; color: #111; }
.login-card input[type=password]:focus { outline: 2px solid #8cbf2f; outline-offset: 1px; border-color: transparent; }
.login-card button { margin-top: 8px; min-height: 48px; border: 0; border-radius: 999px; background: #111; color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.login-card button:focus-visible { outline: 2px solid #8cbf2f; outline-offset: 2px; }
.login-card .err { margin: 4px 0 0; color: #dc2626; font-size: 14px; }
@media (max-width: 30rem) {  /* telefoon: Ververs als ronde knop naast de nettowinst */
  .eb-head-actions { flex-wrap: nowrap; }
  .eb-refresh { padding: 10px 13px; }
  .eb-refresh span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
