:root{
  --bg: #0a1c2b;
  --panel: rgba(9, 20, 32, 0.85);
  --panel2: rgba(15, 33, 52, 0.85);
  --border: rgba(170, 214, 255, 0.16);
  --text: #f6fbff;
  --muted: #b6c8db;
  --muted2: #7f95ab;
  --accent: #7af7c6;
  --accent-soft: rgba(122, 247, 198, 0.2);
  --accent-strong: rgba(122, 247, 198, 0.6);
  --pine: #53c2ff;
  --pine-soft: rgba(83, 194, 255, 0.2);
  --shadow: 0 18px 40px rgba(5, 12, 22, 0.45);
  --r: 18px;
  --pad: 18px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:
              radial-gradient(900px 520px at 15% 10%, rgba(74, 212, 255, 0.25), transparent 60%),
              radial-gradient(800px 520px at 80% 12%, rgba(122, 247, 198, 0.22), transparent 55%),
              radial-gradient(700px 420px at 50% -10%, rgba(178, 255, 239, 0.2), transparent 60%),
              linear-gradient(180deg, rgba(7, 15, 25, 0.92) 0%, rgba(9, 23, 38, 0.95) 40%, rgba(7, 33, 52, 0.96) 70%, rgba(6, 17, 28, 1) 100%),
              var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 1200px 760px, 1200px 760px, 1000px 640px, cover, cover;
  background-position: 0 0, 100% 0, 50% -40px, center, center;
  color: var(--text);
}
body::before{
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(1.5px 1.5px at 120px 90px, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 80px 140px, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1.5px 1.5px at 180px 60px, rgba(255,255,255,0.5), transparent 60%),
    linear-gradient(180deg, rgba(9, 20, 32, 0.0) 40%, rgba(9, 35, 52, 0.5) 80%, rgba(6, 17, 28, 0.9) 100%),
    linear-gradient(0deg, rgba(10, 30, 48, 0.7) 0%, rgba(9, 25, 40, 0.0) 55%);
  background-repeat: no-repeat;
  background-size: 520px 520px, 560px 560px, 460px 460px, 600px 600px, cover, cover;
  background-position: 0 0, 120px 60px, 40px 180px, 220px 120px, center, center;
  opacity: 0.8;
  z-index: -1;
}

a{ color:inherit; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.subtle{ color: var(--muted); }

.topbar{
  position: sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(6, 16, 28, 0.8);
  border-bottom: 1px solid var(--border);
  padding: 14px 18px;
}
.topbar-inner{
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:42px; height:42px; border-radius:14px;
  background: linear-gradient(135deg, rgba(122, 247, 198, 0.45), rgba(83, 194, 255, 0.85));
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
  box-shadow: var(--shadow);
}
.title{ font-weight:800; letter-spacing:.2px; }
.subtitle{ font-size:12px; color: var(--muted); margin-top:2px; }
.topbar-right{ display:flex; gap:10px; align-items:center; }
.topbar-tabs{ flex: 1; justify-content: center; }
.topbar-tabs.tabs{ margin: 0 auto; }
.renders-actions{
  display: flex;
  align-items: center;
  gap: 10px;
}
.timelapse-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 4px 0;
}
.timelapse-toolbar .subtle{
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.view-menu{
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(10, 28, 44, 0.65);
  position: relative;
}
.view-menu summary{
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}
.view-menu summary::-webkit-details-marker{ display:none; }
.view-menu .drawer-toggle{
  width: 22px;
  height: 22px;
}
.view-menu-body{
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 20;
}
.checkbox{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text);
}
.checkbox input{
  accent-color: var(--accent);
}

.container{ max-width: 1200px; margin: 18px auto; padding: 0 18px 40px; }

@media (max-width: 900px){
  .topbar-inner{ justify-content:flex-start; }
  .topbar-tabs{
    order: 3;
    width: 100%;
    justify-content: flex-start;
  }
}

.tabs{
  display:flex; gap:10px; padding: 8px;
  background: rgba(10, 28, 44, 0.55);
  border:1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
}
.tab{
  border:0; cursor:pointer;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
}
.tab.active{
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(122, 247, 198, 0.35);
}

.panel{ display:none; margin-top: 16px; }
.panel.active{ display:block; }

.grid2{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}
.renders-stack{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 980px){
  .grid2{ grid-template-columns: 1fr; }
}
.renders-layout{
  grid-template-columns: 1fr;
  align-items: start;
}
.show-calendar:not(.show-list) .renders-layout{
  grid-template-columns: 1fr;
}
.show-list:not(.show-calendar) .renders-layout{
  grid-template-columns: 1fr;
}
.view-list,
.view-calendar,
.view-render{
  display: none;
}
.show-list .view-list{
  display: block;
}
.show-calendar .view-calendar{
  display: block;
}
.show-render .view-render{
  display: block;
}
.snapshot-layout{
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.snapshot-controls .form{
  padding-top: 6px;
}

.card{
  background: var(--panel);
  border:1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.card-h{
  padding: var(--pad);
  border-bottom: 1px solid var(--border);
  background: var(--panel2);
}
.card-b{
  padding: var(--pad);
}
.card-h h2{ margin:0 0 6px; font-size: 18px; }
.card-h h3{ margin: 0 0 8px; font-size: 15px; }
.card-h p{ margin:0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.row-between{ display:flex; justify-content:space-between; align-items:center; gap: 12px; }
.field.inline{
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.field.inline span{
  font-size: 12px;
  white-space: nowrap;
}
.renders-filters{
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 900px){
  .renders-filters{ grid-template-columns: 1fr; }
}

.form{ padding: var(--pad); display:flex; flex-direction:column; gap: 12px; }
.field{ display:flex; flex-direction:column; gap: 7px; }
.field span{ font-size: 12px; color: var(--muted); }
.checkbox-field .checkbox{
  margin-top: 4px;
}
.checkbox-field > span{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

input,select{
  background: rgba(8, 18, 30, 0.85);
  border:1px solid var(--border);
  color: var(--text);
  padding: 11px 12px;
  border-radius: 14px;
  outline:none;
}
input:focus,select:focus{
  border-color: rgba(122, 247, 198, 0.4);
  box-shadow: 0 0 0 3px rgba(122, 247, 198, 0.16);
}

/* Fix: dark themed select + dropdown options */
select,
select option {
  background-color: rgba(8, 18, 30, 0.95);
  color: var(--text);
}
select option[disabled] {
  color: var(--muted2);
}

.row2{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 620px){ .row2{ grid-template-columns: 1fr; } }

.slider{ display:flex; align-items:center; gap: 12px; }
.slider input[type=range]{ width:100%; }
.slider-meta{ width:120px; text-align:right; }
.hint{ display:block; font-size: 11px; color: var(--muted2); margin-top:2px; }

.presets{ display:flex; flex-wrap:wrap; gap: 8px; }
.presets.compact{ margin-top: 12px; }
.chip{
  border:1px solid var(--border);
  background: rgba(10, 28, 44, 0.6);
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
  font-weight:600;
  font-size: 12px;
}
.chip:hover{ background: rgba(15, 40, 62, 0.7); }

.actions{ display:flex; gap: 10px; align-items:center; }
.btn{
  border:1px solid var(--border);
  background: rgba(10, 28, 44, 0.65);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{ background: rgba(15, 45, 70, 0.75); }
.btn.primary{
  border-color: rgba(122, 247, 198, 0.5);
  background: rgba(122, 247, 198, 0.25);
}
.btn.ghost{ background: transparent; }

.btn.small{
  padding: 7px 10px;
  font-size: 12px;
  border-radius: 12px;
}
.btn.icon{
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn.icon svg{
  width: 14px;
  height: 14px;
  fill: currentColor;
  display: block;
}

.badge{
  border:1px solid var(--border);
  background: rgba(10, 28, 44, 0.65);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}
.badge.ok{
  border-color: rgba(122, 247, 198, .45);
  background: rgba(122, 247, 198, .16);
}
.badge.warn{
  border-color: rgba(83, 194, 255, .35);
  background: rgba(83, 194, 255, .16);
}

.status{
  padding: 10px 12px;
  border:1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 14px;
  background: rgba(10, 28, 44, 0.65);
  font-size: 12px;
  line-height: 1.4;
}
.status.ok{ border-color: rgba(90,255,170,0.25); }
.status.warn{ border-color: rgba(255,200,90,0.25); }

.meta{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.kpi{
  padding: 10px 12px;
  border:1px solid var(--border);
  border-radius: 14px;
  background: rgba(10, 28, 44, 0.65);
}
.kpi-label{ font-size: 11px; color: var(--muted2); }
.kpi-value{ margin-top: 6px; font-weight:800; }

.player{
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display:block;
}
.player-meta{ padding: 12px 18px; border-top: 1px solid var(--border); }

.table-wrap{ overflow:auto; }
.table{ width:100%; border-collapse: collapse; }
.table th, .table td{
  padding: 12px 12px;
  border-bottom:1px solid var(--border);
  font-size: 13px;
}
.table th{ text-align:left; color: var(--muted); font-weight: 800; }
.table td.right, .table th.right{ text-align:right; }
.table tr:hover td{ background: rgba(15, 23, 42, 0.04); }
.table tr.selected td{
  background: rgba(122, 247, 198, 0.18);
  box-shadow: inset 0 0 0 1px rgba(122, 247, 198, 0.25);
}
.table tr.clickable{ cursor: pointer; }

.group-row td{
  padding: 10px 12px;
  background: rgba(10, 28, 44, 0.65);
}
.group-title{ font-weight: 800; }

.actions-cell{ white-space: nowrap; }

.drawer-card{ margin-top: 16px; }
.drawer{
  border:1px solid var(--border);
  border-radius: var(--r);
  background: rgba(10, 28, 44, 0.65);
  overflow: hidden;
}
.drawer summary{
  cursor: pointer;
  list-style: none;
  padding: 14px 18px;
  font-weight: 700;
  background: rgba(10, 28, 44, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-summary{
  padding: 14px 18px;
  font-weight: 700;
  background: rgba(10, 28, 44, 0.75);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}
.drawer-toggle{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 28, 44, 0.75);
}
.drawer-toggle svg{
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.2s ease;
}
.drawer[open] .drawer-toggle svg{
  transform: rotate(180deg);
}
.drawer summary::-webkit-details-marker{ display:none; }
.drawer[open] summary{
  border-bottom: 1px solid var(--border);
}
.filter-drawer{
  border: 1px dashed var(--border);
  border-radius: 14px;
  background: rgba(10, 28, 44, 0.5);
}
.filter-drawer summary{
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}
.filter-drawer .drawer-toggle{
  width: 24px;
  height: 24px;
}
.filter-drawer-body{
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.calendar-drawer{
  min-width: 210px;
}
.drawer-body{
  padding-bottom: 8px;
}
.render-drawer-body{
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  gap: 16px;
  padding: var(--pad);
}
.render-form{
  padding: 0;
}
.render-form-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.render-form-row{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.render-presets .presets{
  margin-top: 6px;
}
.render-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.drawer-slot{ margin-top: 16px; }
.render-progress{
  position: relative;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10, 28, 44, 0.7);
  margin: 10px 0 12px;
  opacity: 0;
  transform: scaleY(0.5);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.render-progress.active{
  opacity: 1;
  transform: scaleY(1);
}
.render-progress-bar{
  position: absolute;
  inset: 0;
  width: 45%;
  background: linear-gradient(90deg, rgba(122, 247, 198, 0.25), rgba(122, 247, 198, 0.7), rgba(122, 247, 198, 0.25));
  animation: render-progress-slide 1.4s ease-in-out infinite;
}
@keyframes render-progress-slide{
  0%{ transform: translateX(-120%); }
  50%{ transform: translateX(40%); }
  100%{ transform: translateX(120%); }
}

.divider{ height:1px; background: var(--border); margin: 16px 0; }

.links{ display:flex; flex-direction:column; gap: 10px; padding: 0 18px 18px; }
.link{
  padding: 10px 12px;
  border:1px solid var(--border);
  border-radius: 14px;
  text-decoration:none;
  color: var(--text);
  background: rgba(10, 28, 44, 0.65);
}
.link:hover{ background: rgba(15, 45, 70, 0.8); }

.health-list{ padding: 0 18px 18px; display:flex; flex-direction:column; gap: 10px; }
.health-item{ display:flex; justify-content:space-between; align-items:center; gap: 10px; }
.health-box{ padding: 18px; }
.vrm-meta{
  padding: 0 18px 12px;
  font-size: 12px;
}
.vrm-chart{
  padding: 16px 18px 18px;
  border-top: 1px solid var(--border);
  background: rgba(10, 28, 44, 0.5);
}
.vrm-chart-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted);
  gap: 8px;
  flex-wrap: wrap;
}
.vrm-hint{
  font-size: 11px;
}
.vrm-canvas{
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background: rgba(8, 20, 34, 0.7);
  border: 1px solid rgba(170, 214, 255, 0.12);
}
.health-uploads-detail{
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}
.health-upload-row{
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(10, 28, 44, 0.65);
}
.health-upload-head{
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.status-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.status-dot.online{ background: rgba(90, 255, 170, 0.9); box-shadow: 0 0 0 3px rgba(90, 255, 170, 0.15); }
.status-dot.delayed{ background: rgba(255, 200, 90, 0.9); box-shadow: 0 0 0 3px rgba(255, 200, 90, 0.15); }
.status-dot.offline{ background: rgba(255, 90, 90, 0.9); box-shadow: 0 0 0 3px rgba(255, 90, 90, 0.15); }
.health-upload-meta{ color: var(--muted); margin-top: 6px; }
.health-upload-frames{
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
}
.album-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  padding: 18px;
}
.album-card{
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(10, 28, 44, 0.65);
  display: flex;
  flex-direction: column;
}
.album-thumb{
  display: block;
  position: relative;
}
.album-card img{
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: #000;
}
.album-meta{
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}
.album-camera{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text);
}
.album-camera::before{
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  display: inline-block;
}
.album-empty{
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}
.calendar-card .card-b{
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: auto;
  overflow-y: visible;
}
.calendar-month{
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.calendar-controls{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.calendar-controls .field.inline select{
  padding: 8px 10px;
  border-radius: 12px;
}
.calendar-range{
  font-size: 12px;
}
.calendar-legend{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
.legend-item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.legend-dot{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.legend-dot.has{
  background: var(--accent-strong);
  border-color: rgba(122, 247, 198, 0.5);
}
.legend-dot.empty{
  background: rgba(10, 28, 44, 0.65);
}
.legend-dot.carryover{
  background: rgba(155, 124, 255, 0.55);
  border-color: rgba(155, 124, 255, 0.8);
}
.calendar-grid{
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.calendar-grid-simple{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-cell{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  min-height: 96px;
  background: rgba(10, 28, 44, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-cell.outside{
  opacity: 0.45;
}
.calendar-cell.has{
  background: rgba(83, 194, 255, 0.12);
  border-color: rgba(83, 194, 255, 0.3);
}
.calendar-cell-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
}
.calendar-cell-count{
  font-size: 11px;
  color: var(--muted2);
}
.calendar-items{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-pill{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(122, 247, 198, 0.4);
  background: rgba(122, 247, 198, 0.12);
  font-size: 10px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.calendar-pill.secondary{
  border-color: rgba(83, 194, 255, 0.45);
  background: rgba(83, 194, 255, 0.16);
}
.calendar-weekdays{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-week{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}
.calendar-month-marker{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  padding: 0 6px;
}
.calendar-weekday{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted2);
  text-align: right;
  padding: 4px 6px 0;
}
.calendar-days{
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(110px, auto);
  gap: 8px;
}
.calendar-span-layer{
  position: absolute;
  inset: 18px 8px 12px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(20px, auto);
  gap: 6px 8px;
  align-content: start;
  pointer-events: none;
  overflow: hidden;
}
.calendar-span{
  pointer-events: auto;
  border: 1px solid rgba(83, 194, 255, 0.4);
  background: rgba(83, 194, 255, 0.16);
  color: var(--text);
  border-radius: 10px;
  padding: 4px 6px;
  font-size: 10px;
  line-height: 1.1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1px;
  backdrop-filter: blur(6px);
  max-height: 34px;
  overflow: hidden;
}
.calendar-span.multi{
  border-color: rgba(122, 247, 198, 0.45);
  background: rgba(122, 247, 198, 0.2);
}
.calendar-span.carryover{
  border-color: rgba(155, 124, 255, 0.55);
  background: rgba(155, 124, 255, 0.2);
}
.calendar-span-camera{
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.calendar-span-meta{
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.calendar-span-badge{
  align-self: flex-start;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(155, 124, 255, 0.95);
}
.calendar-day{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  min-height: 110px;
  background: rgba(10, 28, 44, 0.6);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.calendar-day.outside{
  opacity: 0.5;
}
.calendar-day.has{
  background: rgba(83, 194, 255, 0.12);
  border-color: rgba(83, 194, 255, 0.3);
}
.calendar-day-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 12px;
}
.calendar-day-count{
  font-size: 11px;
  color: var(--muted2);
}
.calendar-empty{
  grid-column: 1 / -1;
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 14px;
  text-align: center;
  color: var(--muted);
}
.hide-mobile{
  display: table-cell;
}
.input{
  background: rgba(10, 28, 44, 0.65);
  border:1px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 14px;
  outline:none;
}

.modal{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 50;
}
.modal.open{
  display: flex;
}
.modal-content{
  width: min(100%, 980px);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.modal-close{
  width: 100%;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px){
  .render-drawer-body{
    grid-template-columns: 1fr;
  }
  .render-form-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .renders-layout{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px){
  .container{
    max-width: 100%;
    padding: 0 12px 32px;
  }
  .topbar{
    padding: 12px;
  }
  .topbar-inner{
    width: 100%;
  }
  .topbar-right{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .topbar-right .btn{
    flex: 1 1 auto;
    text-align: center;
  }
  .tabs{
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .tab{
    flex: 1 1 calc(50% - 10px);
    text-align: center;
  }
  .timelapse-toolbar{
    flex-direction: column;
    align-items: flex-start;
  }
  .row-between{
    flex-direction: column;
    align-items: flex-start;
  }
  .renders-actions{
    width: 100%;
  }
  .table th,
  .table td{
    padding: 10px 8px;
    font-size: 12px;
  }
  .actions-cell{
    white-space: normal;
  }
  .actions-cell .btn{
    margin-top: 4px;
  }
  .health-item{
    flex-direction: column;
    align-items: flex-start;
  }
  .render-form-grid{
    grid-template-columns: 1fr;
  }
  .render-form-row{
    align-items: stretch;
  }
  .render-actions{
    width: 100%;
    justify-content: flex-start;
  }
  .player-card{
    display: none;
  }
  .modal-content{
    width: 100%;
    height: 100%;
    border-radius: 16px;
  }
  .modal .player{
    aspect-ratio: auto;
    height: calc(100vh - 70px);
  }
  .album-grid{
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  .hide-mobile{
    display: none;
  }
}
