:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1c3439;
  background: #f4f7f6;
  font-size: 14px;
  --sidebar-width: 252px;
  --sidebar-compact-width: 80px;
  --nexxo-green: #087e70;
  --nexxo-dark: #102e32;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid #087e70; background: #087e70; color: white; padding: 11px 16px; border-radius: 6px; font-weight: 600; }
button:disabled { opacity: .5; cursor: wait; }
button:hover { filter: brightness(.96); }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid #61bea8; outline-offset: 2px; }
button.secondary { color: #284e48; background: white; border-color: #d7e2df; }
button.danger { background: #a73535; border-color: #a73535; }
button.link { padding: 5px 0; background: none; border: 0; color: #087e70; }
a.button { display: inline-block; text-decoration: none; border: 1px solid #d7e2df; padding: 11px 16px; border-radius: 6px; color: #284e48; background: white; font-weight: 600; text-align: center; }
a.button:focus-visible { outline: 3px solid #61bea8; outline-offset: 2px; }
.report-actions { display: grid; gap: 12px; margin-block: 18px; }
.report-period { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; margin-bottom: 24px; }
.report-period label { display: flex; align-items: center; gap: 12px; }
.report-weekly { margin-top: 24px; }
h1 { font-size: 30px; letter-spacing: -.8px; margin: 8px 0 12px; }
h2 { font-size: 19px; margin-top: 0; }
h3 { font-size: 14px; }
p { line-height: 1.65; overflow-wrap: anywhere; }
small, .muted, dt { color: #6c8180; font-size: 12px; }
td small, .account small { display: block; margin-top: 5px; }
.eyebrow { color: #6c8180; font-size: 10px; letter-spacing: 1.5px; }
.brand { font-size: 28px; font-weight: 700; letter-spacing: 2px; color: white; }
.brand span { display: block; font-size: 9px; letter-spacing: 3px; margin-top: 5px; }
.shell { display: flex; min-height: 100vh; }
.ui-icon { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.portal-event { padding: 16px 0; border-bottom: 1px solid #e1e8e5; overflow-wrap: anywhere; }
.admin-filters { align-items: end; }
.admin-deletion { overflow-wrap: anywhere; }
.admin-deletion footer { flex-wrap: wrap; }
.admin-deletion header { align-items: flex-start; }
.admin-deletion header h2 { min-width: 0; }
.admin-deletion header button { flex-shrink: 0; }
.admin-deletion summary { cursor: pointer; padding-block: 10px; font-weight: 600; }
.admin-impact { padding-left: 22px; line-height: 1.7; }
.admin-ack { display: flex; align-items: flex-start; gap: 10px; line-height: 1.6; font-size: 12px; }
.admin-ack input { flex-shrink: 0; margin-top: 4px; }
.heading h1 { overflow-wrap: anywhere; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar-width); height: 100vh; height: 100dvh; background: var(--nexxo-dark); padding: 22px 16px 18px; display: flex; flex-direction: column; z-index: 30; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 3px 6px 22px; flex-shrink: 0; }
.sidebar-brand .brand { min-width: 0; flex: 1; font-size: 26px; }
.sidebar-brand button { display: inline-flex; align-items: center; justify-content: center; padding: 6px; border: 0; background: transparent; color: #b7ceca; }
.sidebar-brand .sidebar-close { display: none; }
.sidebar nav { display: flex; flex-direction: column; gap: 15px; flex: 1; min-height: 0; overflow-y: auto; margin-bottom: 16px; padding-right: 3px; scrollbar-width: thin; scrollbar-color: #466c61 transparent; }
.sidebar nav::-webkit-scrollbar { width: 5px; }
.sidebar nav::-webkit-scrollbar-thumb { background: #466c61; border-radius: 5px; }
.nav-group { flex-shrink: 0; min-width: 0; }
.nav-group-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 8px 10px; background: transparent; color: #96b3aa; border: 0; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; text-align: left; }
.nav-group-toggle .ui-icon { width: 14px; height: 14px; flex-basis: 14px; }
.nav-group-toggle[aria-expanded=false] .ui-icon { transform: rotate(-90deg); }
.nav-group.current > .nav-group-toggle { color: #cee6de; }
.nav-group-items { display: flex; flex-direction: column; gap: 4px; }
.nav-route { display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: 100%; min-height: 40px; border: 1px solid transparent; padding: 10px 11px; background: transparent; color: #b7ceca; text-align: left; font-size: 12px; }
.nav-route .ui-icon { width: 18px; height: 18px; flex-basis: 18px; }
.route-label { min-width: 0; overflow-wrap: anywhere; }
.nav-route:hover { background: #1b4540; }
.nav-route.active { background: #19594f; border-color: #286a5c; color: #effbf4; }
.account { flex-shrink: 0; color: #d8ebe3; margin-top: auto; padding-top: 15px; border-top: 1px solid #34514e; }
.account-identity { display: flex; align-items: center; gap: 10px; }
.account-avatar { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; background: #dbece4; color: #205347; font-size: 12px; font-weight: 700; }
.account-info { min-width: 0; overflow-wrap: anywhere; }
.account strong { display: block; font-size: 12px; }
.account small { color: #9bbab0; font-size: 10px; }
.sidebar .account button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 12px; font-size: 11px; padding: 8px 12px; color: #e0f0e7; border-color: #41665a; background: #1a4540; }
.account button .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.main { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-width: 0; }
.sidebar-compact .sidebar { width: var(--sidebar-compact-width); padding-inline: 10px; }
.sidebar-compact .main { margin-left: var(--sidebar-compact-width); width: calc(100% - var(--sidebar-compact-width)); }
.sidebar-compact .sidebar-brand { flex-direction: column; gap: 12px; padding-inline: 0; }
.sidebar-compact .sidebar-brand .brand { font-size: 14px; letter-spacing: .5px; }
.sidebar-compact .brand span, .sidebar-compact .route-label, .sidebar-compact .account-info, .sidebar-compact .account-action-label, .sidebar-compact .nav-group-toggle { display: none; }
.sidebar-compact .nav-group { border-top: 1px solid #34514e; padding-top: 10px; }
.sidebar-compact .nav-group:first-child { border-top: 0; padding-top: 0; }
.sidebar-compact .nav-route, .sidebar-compact .account-identity { justify-content: center; }
.sidebar-compact .nav-route { padding-inline: 8px; }
.topbar { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 28px; border-bottom: 1px solid #e1e8e5; background: white; font-size: 12px; }
.topbar-start { display: flex; align-items: center; gap: 15px; min-width: 0; }
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; font-size: 15px; letter-spacing: -.3px; }
.topbar-title > span { display: block; margin-top: 3px; color: #6c8180; font-size: 11px; }
.topbar-actions { display: flex; flex-shrink: 0; align-items: center; gap: 14px; }
.topbar-actions small { white-space: nowrap; font-size: 11px; }
.topbar-actions button, .topbar .mobile { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; font-size: 12px; }
.topbar-actions .ui-icon, .topbar .mobile .ui-icon { width: 17px; height: 17px; flex-basis: 17px; }
.topbar .mobile { display: none; }
.menu-backdrop { position: fixed; inset: 0; z-index: 25; border: 0; border-radius: 0; padding: 0; background: #102e3270; }
.page-loading { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 180px; color: #526e65; font-size: 13px; }
.loading-mark { width: 18px; height: 18px; border: 3px solid #d5e7de; border-top-color: var(--nexxo-green); border-radius: 50%; }
.page-error h1 { font-size: 24px; }
.connection-error { display: grid; align-content: center; justify-items: center; min-height: 100vh; padding: 24px; }
.connection-error > section { width: 100%; max-width: 540px; }
.connection-error .brand { color: var(--nexxo-dark); margin-bottom: 25px; }
.mobile { display: none; }
.page { padding: 32px 35px; max-width: 1500px; margin: auto; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 27px; }
.heading .muted { margin-bottom: 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.panel { background: white; border: 1px solid #e0e8e4; border-radius: 9px; overflow: hidden; }
.padded { padding: 26px; }
.toolbar { padding: 20px 23px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 15px; }
.search { font-size: 12px; color: #6c8180; display: flex; align-items: center; gap: 10px; }
.search-results { padding: 0 23px 12px; margin: 0; }
input, select, textarea { border: 1px solid #d4e0db; border-radius: 5px; padding: 10px 12px; background: white; color: #1c3439; }
.search input { width: 270px; font-size: 12px; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; font-size: 12px; }
th { padding: 14px 23px; text-transform: uppercase; font-size: 10px; color: #71847f; background: #fafcfb; border-block: 1px solid #e6ece8; white-space: nowrap; }
td { padding: 17px 23px; border-bottom: 1px solid #edf2ee; line-height: 1.5; }
tbody tr:last-child td { border-bottom: 0; }
td:last-child { white-space: nowrap; }
tr[hidden] { display: none; }
.badge { display: inline-flex; padding: 5px 8px; background: #e7f4ed; color: #267658; border-radius: 5px; font-size: 10px; white-space: nowrap; }
.empty { padding: 55px 25px; color: #6c8180; text-align: center; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 25px; }
.metrics article { padding: 22px; border: 1px solid #e0e8e4; border-radius: 8px; background: white; }
.metrics strong { display: block; font-size: 29px; margin-top: 15px; }
.metrics .small-number { font-size: 17px; }
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; margin-bottom: 24px; }
.columns aside button { width: 100%; margin-top: 13px; }
.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; margin: 28px 0; }
dt { font-size: 10px; text-transform: uppercase; margin-bottom: 7px; }
dd { margin: 0; overflow-wrap: anywhere; }
.entry { padding-top: 23px; margin-top: 25px; border-top: 1px solid #e0e8e4; }
.entry header { display: flex; justify-content: space-between; align-items: flex-start; }
.entry h3 { margin: 7px 0; }
.entry p { white-space: pre-wrap; }
.notice { padding: 13px 16px; border-left: 3px solid #c19b36; border-radius: 4px; background: #fff8e5; color: #69531e; }
.os-filters { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 16px; padding: 22px; }
.os-filters > label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 600; min-width: 0; }
.os-filters input:not([type=checkbox]), .os-filters select { width: 100%; min-width: 0; }
.os-filters .os-mine { grid-column: span 2; flex-direction: row; align-items: center; font-weight: 400; }
.os-results { padding: 0 22px 12px; margin: 0; }
.os-pagination { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 18px 22px; }
.os-checklist { list-style: none; padding: 0; font-size: 12px; }
.os-checklist li { display: flex; gap: 9px; padding: 7px 0; line-height: 1.5; color: #856a30; }
.os-checklist li span { flex: 0 0 15px; font-weight: 700; }
.os-checklist li.done { color: #267658; }
.os-problem { white-space: pre-wrap; overflow-wrap: anywhere; }
.field-help { display: block; margin-top: 7px; line-height: 1.5; }
.columns aside button:disabled { cursor: default; }
dialog { width: min(700px, calc(100vw - 32px)); border: 1px solid #d8e5df; border-radius: 10px; padding: 27px; color: #1c3439; max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); overflow-y: auto; }
dialog::backdrop { background: #102e3280; }
dialog header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
dialog header button { background: none; color: #6c8180; border: 0; font-size: 24px; padding: 0 5px; }
dialog footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding-top: 22px; margin-top: 22px; border-top: 1px solid #e0e8e4; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 25px; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > legend { padding: 0; }
.wide { grid-column: 1 / -1; }
.field > label, .login-form label { display: block; font-size: 12px; font-weight: 600; }
.field-label { display: block; font-size: 12px; font-weight: 600; }
.field input:not([type=checkbox]), .field select, .field textarea, .login-form input { display: block; width: 100%; margin-top: 9px; }
.field textarea { resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 13px; padding: 15px 0 5px; }
.checks label { font-size: 12px; font-weight: 400; }
.error { color: #ab3030; font-size: 12px; }
pre { font-size: 11px; padding: 15px; max-height: 330px; overflow: auto; background: #f2f6f3; white-space: pre-wrap; overflow-wrap: anywhere; }
#toast { position: fixed; bottom: 24px; right: 24px; background: #102e32; color: white; padding: 15px 22px; border-radius: 7px; max-width: calc(100vw - 48px); opacity: 0; pointer-events: none; z-index: 20; }
#toast.visible { opacity: 1; }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-brand { padding: 60px; background: #102e32; color: #d6eae1; }
.login-brand h1 { font-size: 55px; margin-top: 120px; line-height: 1.2; font-weight: 500; }
.login-brand p { color: #9dbfb1; }
.login-form { max-width: 440px; width: 100%; padding: 50px; align-self: center; justify-self: center; }
.login-form h2 { font-size: 28px; margin-top: 22px; }
.login-form label { margin: 23px 0; }
.login-form button { width: 100%; }
@media (max-width: 1050px) {
  .page { padding: 27px 22px; }
  .columns { grid-template-columns: minmax(0, 1fr); }
  .metrics strong { font-size: 24px; }
  th, td { padding: 15px; }
}
@media (max-width: 800px) {
  .os-filters { grid-template-columns: minmax(0, 1fr); }
  .os-filters .os-mine { grid-column: auto; }
  .sidebar { transform: translateX(-100%); width: min(280px, calc(100vw - 48px)); box-shadow: 10px 0 40px #102e3230; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-brand .sidebar-close { display: inline-flex; }
  .sidebar-brand .sidebar-collapse { display: none; }
  .main { margin-left: 0; width: 100%; }
  .mobile { display: block; }
  .topbar .mobile { display: inline-flex; }
  .topbar { padding: 10px 18px; }
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 25px; }
  .login-brand h1 { font-size: 32px; margin-top: 30px; }
  .login-brand h1 br { display: none; }
  .login-brand p { display: none; }
  .login-form { padding: 35px 25px; }
}
@media (max-width: 520px) {
  .topbar { gap: 10px; padding-inline: 15px; }
  .topbar-title { display: none; }
  .os-pagination { flex-wrap: wrap; }
  .heading, .toolbar { align-items: flex-start; flex-direction: column; }
  .metrics, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .metrics article { display: flex; justify-content: space-between; align-items: center; }
  .metrics strong { margin: 0; }
  .search { width: 100%; }
  .search input { min-width: 0; width: 100%; }
  .page { padding: 25px 18px; }
  .padded { padding: 21px; }
  dialog { padding: 22px; }
}
