:root{
  color-scheme:dark;
  --bg:#101211;
  --panel:#171a18;
  --raised:#1e221f;
  --border:#2b302c;
  --text:#edf0e9;
  --muted:#939d94;
  --accent:#b9f279;
  --error:#ff8d8a;
  --warn:#e9c777;
  font-family:Inter,Segoe UI,Arial,sans-serif;
  font-size:14px}
*{
  box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text)}
button,input,select{
  font:inherit}
button,a,input,select,summary{
  -webkit-tap-highlight-color:transparent}
button{
  cursor:pointer}
button:disabled{
  opacity:.55;
  cursor:wait}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px}
a{
  color:inherit;
  text-decoration:none}
button{
  color:inherit}
input,select{
  background:#121613;
  border:1px solid var(--border);
  border-radius:8px;
  color:var(--text);
  padding:11px 13px;
  min-width:0}
input::placeholder{
  color:#778278}
input[type=checkbox]{
  accent-color:var(--accent)}
[hidden]{
  display:none!important}
.muted{
  color:var(--muted)}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-size:23px;
  font-weight:700;
  letter-spacing:-.8px}
.brand span{
  font-size:9px;
  letter-spacing:2px;
  font-weight:500;
  color:var(--muted);
  margin-left:12px}
.dot{
  display:inline-block;
  width:7px;
  height:7px;
  background:var(--accent);
  border-radius:50%;
  flex-shrink:0;
  box-shadow:0 0 0 4px #b9f2790b}
.dot.offline{
  background:var(--warn)}
.tiny{
  width:5px;
  height:5px}
.eyebrow,.small-label{
  font-size:10px;
  letter-spacing:1.8px;
  font-weight:600;
  color:var(--accent)}
.eyebrow{
  display:flex;
  align-items:center;
  gap:11px}
.primary{
  background:var(--accent);
  color:#16200f;
  font-weight:650;
  border:0;
  border-radius:8px;
  padding:13px 19px}
.primary:hover{
  background:#ccff95}
.secondary{
  border:1px solid #394039;
  background:#20251f;
  border-radius:8px;
  padding:10px 15px;
  font-size:12px;
  white-space:nowrap}
.secondary:hover,.icon-button:hover{
  background:#2b3329}
.compact{
  padding:7px 13px}
.icon-button{
  background:transparent;
  border:1px solid var(--border);
  border-radius:7px;
  min-width:34px;
  height:34px;
  font-size:20px}
.full{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center}
.login-page{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.12fr 1fr}
.login-story{
  padding:48px 64px;
  background:radial-gradient(ellipse at 10% 55%,#243120 0,transparent 65%),#151a15;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column}
.story-body{
  max-width:560px;
  margin:auto 0;
  padding:70px 0}
.story-body h1{
  font-size:clamp(40px,4.2vw,66px);
  font-weight:550;
  letter-spacing:-2.6px;
  line-height:1.13;
  margin:24px 0}
.story-body>p{
  color:#a8b1a6;
  font-size:16px;
  line-height:1.7;
  max-width:370px}
.terminal-preview{
  border:1px solid #35402f;
  border-radius:12px;
  background:#10170fc9;
  padding:20px 24px;
  margin-top:35px;
  font:12px/1.7 Consolas,monospace;
  max-width:430px;
  transform:rotate(-1deg)}
.terminal-top{
  display:flex;
  align-items:center;
  gap:5px;
  margin-bottom:23px}
.terminal-top i{
  width:6px;
  height:6px;
  background:#46523f;
  border-radius:50%}
.terminal-top span{
  margin-left:auto;
  color:#7e8e75;
  font-size:10px}
.terminal-preview p{
  margin:8px 0}
.terminal-preview em{
  color:var(--accent);
  font-style:normal;
  margin-right:12px}
.terminal-preview b{
  color:var(--error);
  font-weight:400;
  margin-right:5px}
.cursor{
  color:var(--accent)}
.login-story footer{
  color:#7f8d7b;
  font-size:11px;
  display:flex;
  gap:14px}
.login-form-panel{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px}
.login-box{
  width:100%;
  max-width:350px}
.login-box h2{
  font-size:32px;
  letter-spacing:-1px;
  font-weight:550;
  margin:18px 0 12px}
.login-box>.muted{
  margin-bottom:35px}
.login-box form label{
  display:block;
  margin:22px 0 10px;
  font-size:12px}
.login-box input{
  width:100%;
  padding:13px}
.form-error{
  min-height:18px;
  color:var(--error);
  font-size:12px}
.login-note{
  font-size:11px;
  line-height:1.8;
  color:#737d73;
  text-align:center;
  margin-top:24px}
.shell{
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  min-height:100vh}
.sidebar{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  border-right:1px solid var(--border);
  padding:28px 17px 0;
  background:#151815}
.sidebar>.brand{
  padding-left:7px;
  margin-bottom:31px}
.workspace-label{
  display:flex;
  align-items:center;
  gap:10px;
  background:#20251e;
  border:1px solid #30382c;
  border-radius:8px;
  padding:12px 10px;
  font-size:12px;
  margin-bottom:32px}
.workspace-label small,.sidebar-bottom small,.account small{
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:5px}
.server-symbol{
  font-size:22px;
  color:#c0cbb8}
.nav-label{
  font-size:9px;
  letter-spacing:1.6px;
  color:#7e8b7c;
  padding:0 10px}
.nav-item{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  border:0;
  background:none;
  border-radius:7px;
  text-align:left;
  color:#a9b4a3;
  padding:12px;
  font-size:12px;
  margin-top:12px}
.nav-item.active{
  color:var(--accent);
  background:#b9f27912}
.nav-item>span:first-child{
  font-size:18px}
.nav-dot{
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
  margin-left:auto}
.apps-label{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:30px 6px 10px 0}
.apps-label>span:last-child{
  font-size:10px;
  color:#8d9a88}
.app-nav-button{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  border:0;
  background:none;
  text-align:left;
  padding:12px 10px;
  border-radius:7px;
  color:#a5b29d;
  font-size:12px;
  overflow-wrap:anywhere}
.app-nav-button.active{
  background:#262e22;
  color:var(--accent)}
.app-nav-button:hover{
  background:#252c21}
.app-nav-button .dot{
  width:5px;
  height:5px}
.sidebar-bottom{
  margin-top:auto;
  padding:24px 7px;
  display:flex;
  align-items:center;
  gap:10px;
  font-size:10px;
  color:#a6b39e}
.local-icon{
  font-size:27px;
  color:var(--accent)}
.account{
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:10px;
  padding:20px 4px}
.account strong{
  font-size:11px}
.avatar{
  background:#2e3928;
  color:var(--accent);
  border:1px solid #435037;
  border-radius:50%;
  padding:9px 12px;
  font-size:12px}
.account button{
  margin-left:auto;
  border:0}
.topbar{
  height:40px;
  border-bottom:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 18px;
  font-size:11px;
  color:var(--muted)}
.topbar strong{
  font-weight:500;
  color:#d5ddd0}
.separator{
  margin:0 14px;
  color:#4e5949}
.connection{
  display:flex;
  align-items:center;
  gap:9px;
  font-size:11px}
.page-content{
  padding:12px 18px;
  width:100%;
  margin:0;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:10px}
.heading-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:0}
.heading-row h1{
  font-size:22px;
  letter-spacing:-.5px;
  font-weight:560;
  margin:0}
.heading-row p{
  font-size:12px;
  margin:0}
.accent{
  color:var(--accent)}
.metrics{display:flex;align-items:center;gap:24px;padding:10px 14px;border:1px solid var(--border);border-radius:8px;background:#1a2017;flex-shrink:0}
.metric{display:flex;align-items:baseline;gap:8px;min-width:0}
.metric>div{color:#a2af99;font-size:11px}
.metric-icon{display:none}
.metric strong,.metric-filter{font:600 17px Consolas,monospace}
.metric small{font-size:10px;color:#7d8b75}
.metric:nth-child(n+3) small{display:none}
.error-text{
  color:var(--error)}
.warn-text{
  color:var(--warn)}
.log-panel{
  border:1px solid #30382c;
  border-radius:11px;
  background:#161b15;
  overflow:hidden}
.log-panel-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:7px 12px;
  border-bottom:1px solid var(--border)}
.log-panel-header>div{
  display:flex;
  align-items:center;
  gap:10px}
.log-panel-header h2{
  font-size:13px;
  font-weight:550;
  margin:0}
.count-badge{
  font:10px Consolas,monospace;
  color:#9dab94;
  background:#293024;
  padding:4px 7px;
  border-radius:4px}
.filters{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 12px;
  border-bottom:1px solid var(--border)}
.search-wrap{
  position:relative;
  flex:1;
  min-width:140px}
.search-wrap>span{
  position:absolute;
  left:11px;
  top:50%;
  transform:translateY(-50%);
  display:grid;
  place-items:center;
  width:16px;
  height:16px;
  pointer-events:none;
  color:#8b9981;
  line-height:1}
.search-wrap input{
  width:100%;
  padding:10px 30px 10px 33px;
  font-size:11px}
.search-wrap kbd{
  position:absolute;
  right:11px;
  top:11px;
  font-size:10px;
  color:#718166;
  border:1px solid #384331;
  border-radius:3px;
  padding:1px 4px}
.filters select{
  font-size:11px;
  padding:10px 9px;
  max-width:170px}
.filters>.icon-button{
  border:0}
.table-wrap{
  overflow:auto;
  flex:1;
  min-height:0;
  scrollbar-color:#3d4937 transparent}
table{
  border-collapse:collapse;
  width:100%;
  table-layout:fixed;
  text-align:left}
thead{
  position:sticky;
  top:0;
  background:#1b2118;
  z-index:1}
th{
  font-size:9px;
  letter-spacing:1px;
  color:#7d8e73;
  font-weight:500;
  height:30px}
th:first-child,td:first-child{
  padding-left:12px;
  width:142px}
th:nth-child(2){
  width:80px}
th:nth-child(3){
  width:168px}
th:last-child{
  width:40px}
td{
  font:11px/1.55 Consolas,SFMono-Regular,monospace;
  color:#b4c1a9;
  border-top:1px solid #262e21;
  padding:3px 10px 3px 0;
  vertical-align:middle}
td time{
  color:#7f9271}
td time small{
  display:inline;
  margin-left:8px;
  color:#718366;
  font-size:9px}
.log-row:hover{
  background:#20281b}
.log-row.error-row{
  background:#ff7b7210}
.log-row.error-row:hover{
  background:#ff7b721c}
.level{
  font:9px/1.5 Consolas,monospace;
  border-radius:4px;
  padding:1px 5px;
  display:inline-block;
  text-transform:uppercase;
  border:1px solid}
.level.info{
  color:#8cc9a7;
  background:#8cc9a70b;
  border-color:#385844}
.level.error{
  color:var(--error);
  background:#ff8d8a0b;
  border-color:#6b3f3b}
.level.warn{
  color:var(--warn);
  background:#e9c7770b;
  border-color:#615332}
.level.debug{
  color:#a8adf0;
  background:#a8adf00b;
  border-color:#464964}
.message-button{
  text-align:left;
  background:none;
  border:0;
  color:inherit;
  padding:0;
  font:inherit;
  display:block;
  width:100%;
  white-space:nowrap;
  text-overflow:ellipsis;
  line-height:24px;
  overflow:hidden}
.error-row .message-button{
  color:#f3b7ab}
.app-cell{
  font-size:10px;
  color:#9eae90;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis}
.stream-label{
  display:inline;
  margin-left:8px;
  font-size:9px;
  color:#687b5c}
.detail-arrow{
  background:none;
  border:0;
  color:#8fa37f;
  font-size:18px}
.log-footer{
  border-top:1px solid var(--border);
  padding:7px 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  font-size:10px;
  color:#809275}
.toggle{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap}
.empty{
  text-align:center;
  padding:45px 20px}
.empty-symbol{
  color:#5f7b4c;
  font-size:35px}
.empty h3{
  font-size:14px;
  font-weight:500}
.empty p{
  color:var(--muted);
  font-size:12px;
  max-width:440px;
  margin:10px auto;
  line-height:1.6}
.page-alert{
  background:#e9c77710;
  border-bottom:1px solid #e9c77733;
  color:var(--warn);
  padding:10px 18px;
  margin:0;
  font-size:11px}
.sources-panel{
  margin-top:0;
  border:1px solid var(--border);
  border-radius:8px;
  padding:8px 12px;
  font-size:11px;
  color:var(--muted)}
.sources-panel summary{
  cursor:pointer;
  color:#a9b89e}
.sources-panel summary span{
  float:right;
  font-size:10px;
  color:#7f9272}
.source{
  padding:13px 0;
  border-top:1px solid var(--border);
  margin-top:10px;
  display:flex;
  justify-content:space-between;
  gap:10px}
.source code{
  font-size:10px;
  overflow-wrap:anywhere;
  display:block;
  margin-top:7px;
  color:#788e69}
.source-state{
  color:var(--accent);
  text-align:right;
  flex-shrink:0}
.source-state.bad{
  color:var(--warn)}
.page-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:0;
  font-size:10px;
  color:#637657}
.page-footer>span:first-child{
  display:flex;
  align-items:center;
  gap:8px}
dialog{
  background:#181e16;
  border:1px solid #425239;
  border-radius:13px;
  color:var(--text);
  padding:25px;
  width:min(760px,calc(100vw - 24px));
  max-height:90vh;
  box-shadow:0 25px 90px #0008}
dialog::backdrop{
  background:#080e08b8;
  backdrop-filter:blur(4px)}
.detail-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid var(--border);
  padding-bottom:17px}
.detail-header h2{
  font-size:21px;
  font-weight:500;
  margin:9px 0 0}
.detail-meta{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  margin:23px 0;
  font-size:12px;
  overflow-wrap:anywhere}
.detail-meta small{
  display:block;
  color:var(--muted);
  font-size:10px;
  margin-bottom:5px}
dialog h3{
  font-size:11px;
  font-weight:500;
  color:#94a686;
  margin:22px 0 9px}
pre{
  background:#0d130b;
  border:1px solid #2a3622;
  padding:16px;
  border-radius:8px;
  font:12px/1.8 Consolas,monospace;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  color:#c1d4b1;
  max-height:300px;
  overflow:auto}
.detail-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  font-size:11px;
  color:var(--accent)}
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0}
.shell{height:100dvh;min-height:520px}
.main-panel{display:flex;flex-direction:column;min-height:0;min-width:0}
.topbar,.heading-row,.log-panel-header,.filters,.log-footer,.sources-panel,.page-footer{flex-shrink:0}
.heading-row>button{padding:7px 10px;font-size:11px}
.log-panel{display:flex;flex-direction:column;flex:1;min-height:160px}
.detail-arrow{padding:0;width:26px;height:24px;line-height:24px}
#sources-list{max-height:180px;overflow:auto}
@media(max-width:1200px){
  .shell{grid-template-columns:190px minmax(0,1fr)}
  .metrics{gap:18px}.metric small{display:none}
  .filters{flex-wrap:wrap}.search-wrap{flex-basis:200px}
  .filters select{max-width:150px}
  .login-story{padding:35px}.brand span{display:none}
}
@media(max-width:760px){
  .shell{display:flex;flex-direction:column;min-height:640px}
  .sidebar{position:relative;height:auto;padding:6px 12px;display:flex;flex-direction:row;justify-content:space-between;align-items:center;border-right:0;border-bottom:1px solid var(--border);flex-shrink:0}
  .sidebar>.brand{margin:0;padding:0;font-size:18px}
  .sidebar .workspace-label,.sidebar>.nav-label,.sidebar .nav-item,.sidebar .apps-label,.sidebar nav,.sidebar-bottom{display:none}
  .account{border:0;padding:0}.account .avatar,.account small{display:none}
  .main-panel{flex:1}.topbar{height:30px;padding:0 12px;font-size:10px}.connection{font-size:10px}
  .page-content{padding:8px;gap:7px}.heading-row{gap:10px}.heading-row h1{font-size:20px}
  .metrics{gap:0;justify-content:space-between;padding:8px}.metric{gap:5px}.metric>div{font-size:9px}.metric strong,.metric-filter{font-size:14px}
  .log-panel-header{padding:6px 8px}.count-badge{font-size:9px}
  .filters{padding:7px;gap:6px}.search-wrap{flex-basis:100%}.filters select{flex:1;min-width:0;max-width:none;padding:7px 4px;font-size:10px}.filters>.icon-button{display:none}
  table{min-width:650px}th:first-child,td:first-child{width:125px;padding-left:10px}th:nth-child(2){width:65px}th:nth-child(3){width:140px}th:last-child{width:36px}
  td{font-size:10px}.app-cell{font-size:10px}th{font-size:8px;letter-spacing:.5px}
  .detail-arrow{height:28px;width:28px;line-height:28px}
  .log-footer{font-size:9px;padding:7px;gap:6px}.sources-panel{padding:7px 10px}.source{flex-direction:column}.source-state{text-align:left}
.login-page{
  display:block}
.login-story{
  padding:24px;
  background:#181f15;
  border-bottom:1px solid var(--border);
  border-right:0}
.story-body{
  padding:24px 0 0}
.story-body h1{
  font-size:35px;
  letter-spacing:-1px;
  margin:14px 0}
.story-body h1 br{
  display:none}
.story-body>p,.terminal-preview,.login-story footer{
  display:none}
.login-form-panel{
  padding:36px 28px}
.login-box h2{
  font-size:28px}
.detail-meta{
  grid-template-columns:1fr}
dialog{
  padding:20px}
.page-footer{
  font-size:9px}
}
@media(prefers-reduced-motion:no-preference){
  button{
  transition:background .15s ease}
dialog[open]{
  animation:reveal .15s ease}
@keyframes reveal{
  from{
  opacity:0;
  transform:translateY(8px)}
to{
  opacity:1;
  transform:translateY(0)}
}
}

.logout-dialog{width:min(400px,calc(100vw - 32px));padding:24px}
.logout-dialog h2{margin:0;font-size:20px;font-weight:550}
.logout-dialog>p{font-size:12px;line-height:1.7;color:var(--muted)}
.logout-dialog .form-error{color:var(--error);margin:12px 0}
.logout-dialog .form-error:empty{display:none}
.logout-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px}
.logout-actions button{min-width:88px}

.metric-filter{background:transparent;border:1px solid transparent;border-radius:4px;padding:2px 5px;line-height:1;margin:-3px -6px}
.metric-filter:hover{background:#ffffff0a;text-decoration:underline;text-underline-offset:3px}
.metric-filter[aria-pressed="true"]{border-color:currentColor;background:#ffffff0a}

.apps-dialog{width:min(760px,calc(100vw - 24px))}
.apps-dialog>p{font-size:12px;line-height:1.6}
.apps-list{max-height:48vh;overflow:auto;scrollbar-color:#3d4937 transparent}
.application-status{border:1px solid var(--border);border-radius:8px;padding:14px;margin-bottom:12px;font-size:12px}
.application-status-header{display:flex;justify-content:space-between;align-items:center;gap:12px}
.application-status-header h3{margin:0;color:var(--text);font-size:13px;overflow-wrap:anywhere}
.application-status .source{margin-top:10px;padding:10px 0 0}
.application-status .source>div{min-width:0}
.apps-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}
.apps-actions>span{font-size:11px;color:var(--muted)}
.apps-actions>button{flex-shrink:0}
@media(max-width:500px){.application-status-header{align-items:flex-start;flex-direction:column;gap:7px}.apps-actions{align-items:flex-start;flex-direction:column}}

.application-name-button{background:none;border:0;padding:3px 0;color:var(--accent);font:inherit;line-height:1.5;text-align:left;overflow-wrap:anywhere;border-radius:3px}
.application-name-button:hover{text-decoration:underline;text-underline-offset:3px}

th.occurrence-heading{width:78px;text-align:center}
.occurrence-cell{text-align:center;padding-right:8px}
.occurrence-count{font:inherit;color:var(--error);border:1px solid #6b3f3b;background:#ff8d8a0b;border-radius:4px;padding:1px 7px;min-width:35px;line-height:20px}
.occurrence-count:hover{background:#ff8d8a20}
.occurrence-section{margin-top:18px;padding:12px;border:1px solid var(--border);border-radius:8px;font-size:12px}
.occurrence-section>p{margin:0 0 12px;line-height:1.6}
.occurrence-section label{display:block;margin-bottom:7px;color:var(--muted);font-size:11px}
.occurrence-section select{width:100%;min-width:0;font:inherit;padding:9px}
.occurrence-section #occurrence-note{font-size:10px;margin:10px 0 0}
#buffer-note{line-height:1.5}
@media(max-width:760px){th.occurrence-heading{width:67px}.log-panel-header>div{gap:6px}.log-panel-header h2{font-size:11px}.count-badge{font-size:8px}.occurrence-section{padding:10px}}
