/* Quiet documentation-style surfaces, shared by the panel and public reports. */
:root, [data-theme] {
  --radius-selector: .15rem;
  --radius-field: .15rem;
  --radius-box: .2rem;
  --rounded-box: .2rem;
  --rounded-btn: .15rem;
  --rounded-badge: .15rem;
}
.rounded-lg, .rounded-xl, .rounded-2xl, .rounded-box, .rounded-btn { border-radius: .15rem !important; }
.rounded-md, .rounded { border-radius: .1rem !important; }
[data-theme="light"] { --color-primary: oklch(24% .008 260); --color-primary-content: oklch(98% 0 0); --color-base-100: #fff; --color-base-200: #f7f7f8; --color-base-300: #e9e9ec; }
[data-theme="dark"] { --color-primary: oklch(92% .008 260); --color-primary-content: oklch(20% 0 0); --color-base-100: #18191c; --color-base-200: #202126; --color-base-300: #303138; }
html { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
body { font-size: 14px; line-height: 1.65; }
h1,h2,h3,h4 { letter-spacing: -.035em; font-weight: 600; }
.navbar { min-height: 3.25rem; padding: .55rem 3.5rem .55rem 1.5rem; border-color: var(--color-base-300); }
.navbar .brand { font-size: 1.15rem; }
#theme-toggle { position: fixed; top: .85rem; right: .85rem; bottom: auto; left: auto; z-index: 60; width: 2rem; height: 2rem; min-height: 2rem; padding: .4rem; border-radius: .15rem; }
#shell.hidden { display: none !important; }
#shell:not(.hidden) { min-height: 100vh; display: flex; flex-direction: column; }
body:not(.is-authed) #shell { display: none !important; }
body:not(.is-authed) #gate.hidden { display: flex !important; }
#shell > .flex { flex: 1 1 auto; min-height: 0; align-items: stretch; }
#shell aside {
  top: 3.25rem;
  width: 15rem;
  padding: 1.25rem .75rem;
  border-right: 0;
  overflow-x: hidden;
}
#shell main {
  margin-left: 15rem;
  padding: 1.5rem 2rem 2rem;
  min-height: 0;
  overflow: visible;
}
#shell main > .view { max-width: 1240px; margin: 0; }
.sidebar-link {
  display: flex !important;
  align-items: center !important;
  border-radius: .1rem;
  padding: .4rem .55rem;
  margin: .05rem 0;
  font-size: .72rem;
  line-height: 1.2;
  white-space: nowrap;
  gap: .4rem;
}
a.sidebar-link.adminonly { display: none !important; }
body.is-admin a.sidebar-link.adminonly { display: flex !important; }
.sidebar-link .lucide,
.sidebar-link svg {
  display: block;
  flex: 0 0 auto;
  width: .85rem;
  height: .85rem;
  margin: 0;
  align-self: center;
}
.sidebar-link > span { line-height: 1.2; }
.sidebar-link.active { background: var(--color-base-content); color: var(--color-base-100); }
.view > h2, .view > div > h2 { font-size: 1.75rem; margin-bottom: 1rem; }
.view .overflow-x-auto, #detail, #settings-form, #favicon-form { border-radius: .15rem; border-color: var(--color-base-300); }
#detail { margin-top: 1.5rem; padding: 1.4rem; }
.table { font-size: .8rem; }
.table :where(th, td) { padding: .7rem .85rem; }
.table thead { background: var(--color-base-200); color: var(--color-base-content); }
.table tbody tr { border-color: var(--color-base-300); }
.table th { font-size: .75rem; font-weight: 500; }
.console { border-radius: .15rem; }
.flag-btn, .flag-btn.active { border: 0; border-radius: 0; outline: none; box-shadow: none; }
.flag-btn { opacity: .4; transition: opacity .15s; }
.flag-btn.active, .flag-btn:hover { opacity: 1; }
.flag-btn:focus-visible { outline: 1px solid var(--color-base-content); outline-offset: 4px; }
#gate > div { border-radius: .2rem; padding: 2rem; }
.brand-mark { border-radius: .2rem; }
.plan-badge { position: relative; display: inline-flex; align-items: center; gap: .45rem; overflow: hidden; isolation: isolate; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); padding: .4rem .8rem; border-radius: .2rem; font-size: .72rem; font-weight: 600; line-height: 1; letter-spacing: .02em; white-space: nowrap; box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 35%, transparent); }
.plan-badge .lucide { width: .9rem; height: .9rem; position: relative; z-index: 1; }
.plan-badge > span:last-child { position: relative; z-index: 1; }
.plan-badge-glow { position: absolute; inset: -40% -20%; background: linear-gradient(115deg, transparent 35%, color-mix(in srgb, #fff 55%, transparent) 50%, transparent 65%); opacity: .55; transform: translateX(-60%); animation: plan-shine 3.6s ease-in-out infinite; pointer-events: none; z-index: 0; }
@keyframes plan-shine { 0%, 55% { transform: translateX(-70%); } 85%, 100% { transform: translateX(70%); } }
.plan-free { color: #3f4654; background: linear-gradient(135deg, #eef1f5, #d9dee7); }
.plan-trial { color: #0b7a58; background: linear-gradient(135deg, #e6fcf5, #c3fae8); }
.plan-pro { color: #1d4f91; background: linear-gradient(135deg, #e7f1ff, #cfe2ff); }
.plan-proplus { color: #8a4b00; background: linear-gradient(135deg, #fff4d6, #ffd978); }
.plan-admin { color: #0f5c66; background: linear-gradient(135deg, #e3fafc, #99e9f2); }
[data-theme="dark"] .plan-free { color: #d5dae3; background: linear-gradient(135deg, #2a2d35, #3a404c); }
[data-theme="dark"] .plan-trial { color: #8cf0c0; background: linear-gradient(135deg, #16352b, #1f4a3a); }
[data-theme="dark"] .plan-pro { color: #9ec5ff; background: linear-gradient(135deg, #1a2c44, #274368); }
[data-theme="dark"] .plan-proplus { color: #ffe08a; background: linear-gradient(135deg, #3a2e16, #5a4318); }
[data-theme="dark"] .plan-admin { color: #8ce8f0; background: linear-gradient(135deg, #163940, #21555e); }
@media (prefers-reduced-motion: reduce) { .plan-badge-glow { animation: none; opacity: .25; } }
.report-chart { border: 1px solid var(--color-base-300); border-radius: .15rem; padding: 1rem; margin: 1rem 0 1.5rem; background: var(--color-base-100); }
.report-chart svg { width: 100%; height: 240px; color: var(--color-base-content); }
.report-chart circle { cursor: help; }
.report-chart circle:hover { r: 6; }
.results-scroll { max-height: 25rem; overflow: auto; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .8rem; flex-wrap: wrap; font-size: .75rem; }
.share-box { border: 1px solid var(--color-base-300); padding: 1rem; border-radius: .15rem; background: var(--color-base-200); margin-bottom: 1rem; }
.btn, .input, .select, .textarea, .file-input, .badge, .alert, .modal-box, .checkbox, .toggle { border-radius: .15rem; }
.passive-overlay {
  position: fixed;
  inset: 3.25rem 0 0 15rem;
  z-index: 35;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: color-mix(in srgb, var(--color-base-100) 88%, transparent);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: 2rem;
}
.passive-overlay.hidden { display: none !important; }
.passive-overlay img { width: min(220px, 42vw); height: auto; display: block; }
.passive-overlay p { font-size: .95rem; font-weight: 600; opacity: .75; max-width: 20rem; }
body.is-inactive #shell main > .view,
body.is-inactive #shell main > .maintenance-notice { visibility: hidden; }
@media(max-width:900px) { .passive-overlay { inset: 3.25rem 0 0 12rem; } }
@media(max-width:640px) { .passive-overlay { inset: 0; } }
@media(max-width:900px) { #shell aside { width: 12rem; } #shell main { margin-left: 12rem; padding: 1.25rem 1rem 1.5rem; } #scope-hint { display: none; } }
@media(max-width:640px) { #shell aside { position: static; width: 100%; } #shell > .flex { display: block; } #shell main { margin-left: 0; } .navbar { flex-wrap: wrap; gap: .5rem; } .report-chart { padding: .6rem; } }
