@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
  font-family: "Inter", Helvetica, Arial, sans-serif;
  color: #18243a;
  background: #f7f9fc;
  font-size: 14px
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-text-size-adjust: none;   
}

body {
    font: 14px/1.45 'Inter', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  margin: 0
}

a {
  color: #4c61df;
  text-decoration: none
}

a:hover {
  text-decoration: underline
}



input {
  font: 16px 'Inter', Helvetica, Arial, sans-serif!important;
font-size-adjust: 0.47 !important;
}

button {
  cursor: pointer
}

.dashboard {
  min-height: 100vh
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  background: #fff;
  border-right: 1px solid #e9edf4;
  padding: 25px 15px 5px 15px;
  display: flex;
  flex-direction: column;
  z-index: 10
}

.brand {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: #1c2940;
  display: flex;
  align-items: center;
  gap: 8px
}

.brand:hover {
  text-decoration: none
}

.brand-mark {
  color: #5368e8;
  font-size: 29px
}

.brand-dot {
  color: #5368e8;
  margin-left: -8px
}

.sidebar nav {
  margin-top: 30px;
  display: grid;
  gap: 5px;
}

.nav-link {
  display: block;
  padding: 10px 15px;
  color: #667389;
  border-radius: 0;
  font-weight: 500;
  text-transform: capitalize;
  font-size: 13px;
}

.nav-link:hover,
.nav-link.selected {
  background: #eef1ff;
  color: #4359d7;
  text-decoration: none
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #edf0f5;
  padding: 15px 5px 10px;
  display: flex;
  gap: 12px;
  align-items: center
}

.sidebar-foot strong,
.sidebar-foot small {
  display: block;
  max-width: 157px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.sidebar-foot small {
  font-size: 11px;
  color: #8995a6;
  margin-top: 1px
}

.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e8ebff;
  color: #4e61d5;
  font-weight: 700
}

.logout {
  border: 0;
  background: transparent;
  color: #778499;
  padding: 10px 8px;
  text-align: left
}

.main {
  margin-left: 230px
}

.topbar {
  height: 75px;
  background: #fff;
  border-bottom: 1px solid #e9edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 42px;
  color: #8691a2
}

.topbar-user {
  color: #263449;
  font-weight: 600
}

.content {
  margin: auto;
  padding: 20px 30px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.7px;
  color: #6378e7
}

h1 {
  font-size: 29px;
  letter-spacing: -1.1px;
  margin: 8px 0
}

h2 {
  font-size: 17px;
  letter-spacing: -.4px;
  margin: 0
}

h3 {
  margin: 6px 0
}

.muted {
  color: #929db0
}

.page-heading h1 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-heading p {
  margin: 5px 0 0 0;
}

.phmon h1 {
  font-size: 25px;
  letter-spacing: -0.02em;
  margin: 0;
}


.btn {
  border: 1px solid #e1e6f0;
  border-radius: 9px;
  padding: 12px 17px;
  color: #4a566a;
  background: #fff;
  display: inline-block;
  font: 13px 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  text-align: center
}

.btn:hover {
  text-decoration: none;
  filter: brightness(.97)
}

.btn.primary {
  background: #5368e8;
  border-color: #5368e8;
  color: #fff
}

.btn.full {
  width: 100%
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.stat {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: center;
}

.stat span {
  color: #8793a6;
  font-weight: 600
}

.stat strong {
    font-size: 20px!important;
  letter-spacing: -1px
}

.stat strong.small-stat {
   font-size: 20px!important;
}

.stat small {
  color: #a3adbb
}

.green {
  color: #2aaf78
}

.red {
  color: #e85d70
}

.panel {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 0;
  padding: 25px
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px
}

.table-wrap {
  overflow-x: auto
}

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left
}

th {
  font-size: 12px;
  color: #8e9aae;
  font-weight: 700;
  background: #f8f9fc
}

th,
td {
  padding: 17px;
  border-bottom: 1px solid #eef1f6
}

td small {
  display: block;
  color: #9aa5b4;
  margin-top: 5px
}

.monitor-link {
  font-weight: 700;
  color: #28364e
}

.pill {
  display: inline-block;
  border-radius: 50px;
  padding: 6px 11px;
  background: #f1f3f8;
  color: #8792a5;
  font-weight: 700;
  font-size: 12px
}

.pill.up {
  background: #e8f8f0;
  color: #24a46a
}

.pill.down {
  background: #fff0f1;
  color: #d94b60
}

.empty {
  text-align: center;
  padding: 58px 12px;
  color: #8e9bad
}

.empty p {
  margin-bottom: 23px
}

.empty-icon {
  font-size: 38px;
  color: #7d8bf0
}

.placeholder {
  text-align: center;
  padding: 80px 20px
}

.placeholder p {
  margin: 18px 0
}

.back {
  display: block;
  margin-bottom: 12px;
  color: #7f8ca2
}

.form-panel {
  max-width: 700px
}

.form-panel form,
.auth-card form {
  display: grid;
  gap: 21px
}

label {
  display: grid;
  gap: 9px;
  font-weight: 700;
  color: #3c4a62
}

input:not([type=checkbox]):not([type=range]) {
  height: 46px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 0 13px;
  width: 100%;
  background: #fff;
  outline: none
}

input:focus {
  border-color: #5368e8 !important;
  box-shadow: 0 0 0 3px #5368e822
}

input:disabled {
  background: #f6f7fa
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 500
}

.check input {
  accent-color: #5368e8
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: #8b98aa;
  font-size: 12px;
  margin-top: -13px
}

input[type=range] {
  width: 100%;
  accent-color: #5368e8
}

.auth-page {
  min-height: 100vh;
  background: #f7f9fc
}

.auth-wrap {
  max-width: 470px;
  margin: 0 auto;
  padding: 65px 20px
}

.auth-brand {
  justify-content: center;
  margin-bottom: 34px
}

.auth-card {
  background: #fff;
  border: 1px solid #e9edf4;
  border-radius: 15px;
  padding: 38px;
  box-shadow: 0 14px 42px #26375d08
}

.auth-card h1 {
  font-size: 26px
}

.auth-card>.muted {
  margin: 10px 0 29px
}

.auth-card label small {
  font-weight: 400;
  color: #8794a7
}

.form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px
}

.auth-footer {
  text-align: center;
  margin: 26px 0 0;
  color: #8290a5
}

.mobile-menu {
  display: none
}

.toast {
  position: relative;
  background: #1c2c44;
  color: #fff;
  padding: 15px 42px 15px 18px;
  border-radius: 10px;
  box-shadow: 0 12px 30px #18243a30;
  max-width: 380px;
  line-height: 1.5
}

.toast.error {
  background: #b63c51
}

.toast button {
  position: relative;
  border: 0;
  background: none;
  color: #fff;
  font-size: 16px
}

#toasts {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: grid;
  gap: 10px
}

@media(max-width:1050px) {

  .response-kpis,
  .stats {
    grid-template-columns: repeat(2, 1fr)!important;
  }
  .content {
    padding: 20px 30px;
  }
}

@media(max-width:720px) {

 .brside {
  display: none!important;
}
 
  .sidebar {
    transform: translateX(-100%);
    padding: 18px 15px;
    transition: transform .2s
  }
  .menu-open .sidebar {
    transform: none
  }
  .main {
    margin-left: 0
  }
  .topbar {
    padding: 0 20px
  }
  .mobile-menu {
    display: block;
    background: none;
    border: 0;
    font-size: 22px
  }
  .content {
    padding: 20px 20px;
  }
  .page-heading {
    align-items: flex-start
  }
  .stats {
    gap: 15px
  }
  .stat {
    padding: 16px
  }
  .stat strong {
    font-size: 27px
  }
  .auth-card {
    padding: 26px
  }
  .form-row {
    align-items: flex-start;
    flex-direction: column
  }
}

/* Phase 3 history and analytics */

.mini-history {
  display: flex;
  gap: 2px;
  max-width: 230px;
  margin-top: 7px;
  height: 12px
}

.history-hour {
  flex: 1;
  min-width: 2px;
  border-radius: 2px;
  background: #a5abb4
}

.history-hour.up {
  background: #22a66b
}

.history-hour.down {
  background: #e05656
}

.history-hour.mixed {
  background: #e5a64a
}

.history-hour.unknown {
  background: #c7ccd4
}

.performance-chart {
  height: 195px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding: 14px 3px 4px;
  border-bottom: 1px solid #c7ccd4;
  overflow: hidden
}

.chart-column {
  flex: 1;
  min-width: 2px;
  display: flex;
  align-items: end;
  height: 100%
}

.chart-bar {
  width: 100%;
  background: #438fdf;
  border-radius: 3px 3px 0 0;
  min-height: 2px
}

.chart-bar.missing {
  background: #c7ccd4
}

.performance-panel .panel-title {
  gap: 15px;
  flex-wrap: wrap;
  padding: 20px 20px 0 20px!important;
}

.performance-panel select,
.incident-filters select {
  padding: 9px;
  border: 1px solid #c7ccd4;
  border-radius: 7px;
  background: transparent;
  color: inherit
}

.incident-filters {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding: 16px
}

.incident-filters label {
  display: flex;
  flex-direction: column;
  gap: 5px
}

/* Phase 4 status pages */

.status-form {
  display: grid;
  gap: 21px
}

.status-form select,
.crop-dialog select {
  height: 44px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  padding: 0 12px;
  background: white
}

.status-form small {
  font-weight: 400
}

.status-monitor-list {
  border: 1px solid #e4e8f0;
  border-radius: 0px;
  padding: 18px;
  display: grid;
  gap: 14px
}

.status-monitor-list legend {
  font-weight: 700;
  padding: 0 6px
}

.status-monitor-list .check {
  flex-wrap: wrap
}

.status-extra {
  max-width: 700px;
  margin-top: 20px;
  display: grid;
  gap: 15px
}

.status-extra code {
  overflow-wrap: anywhere
}

.status-logo {
  max-width: 240px;
  max-height: 110px;
  object-fit: contain
}

.crop-dialog {
  border: 1px solid #e4e8f0;
  border-radius: 14px;
  padding: 24px;
  width: min(92vw, 680px)
}

.crop-dialog::backdrop {
  background: #14243a99
}

.crop-dialog label {
  margin-top: 14px
}

.crop-stage {
  background: #e9edf3;
  display: grid;
  place-items: center;
  margin: 18px 0;
  padding: 15px
}

.crop-stage canvas {
  width: 100%;
  max-height: 360px;
  object-fit: contain
}

.status-public {
  background: #f7f9fc;
  min-height: 100vh
}

.status-container {
  max-width: 850px;
  margin: auto;
  padding: 30px 20px
}

.status-public-head {
  margin-bottom: 30px
}

.status-public-head h1 {
  font-size: 34px
}

.status-container .panel {
  margin-bottom: 22px
}

.status-container .panel h2 {
  margin-bottom: 18px
}

.status-banner {
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px
}

.status-up {
  background: #dff6e9;
  color: #176b42
}

.status-down {
  background: #ffe8ea;
  color: #a72840
}

.status-pending {
  background: #edf0f5;
  color: #4e5e72
}

.status-service,
.status-incident {
  padding: 16px 0;
  border-bottom: 1px solid #edf0f5
}

.status-service {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.status-service:last-child,
.status-incident:last-child {
  border: 0
}

.status-container footer {
  text-align: center;
  padding: 0
}

@media(max-width:600px) {
  .status-banner {
    align-items: flex-start;
    flex-direction: column
  }
}

.phase5-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 16px 0
}

.phase5-form select,
.phase5-inline select {
  border: 1px solid #dce3ed;
  border-radius: 8px;
  background: #fff;
  padding: 11px;
  min-height: 43px
}

.phase5-inline {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin: 8px 0
}

.phase5-inline .btn {
  white-space: nowrap
}

/* Phase 6 account avatar */

.avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%
}

.avatar-settings {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: wrap
}

.avatar-preview {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e7edf5;
  display: grid;
  place-items: center;
  font-size: 38px;
  overflow: hidden
}

.avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.avatar-settings>div:last-child {
  flex: 1;
  min-width: 220px
}

#avatar-file {
  height: auto !important;
}

.avatar-drop {
  display: block;
  padding: 25px 10px 5px 10px;
  border: 2px dashed #aab9cb;
  border-radius: 12px;
  cursor: pointer;
  margin: 20px 0 !important;
  text-align: center;
}


.avatar-drop.dragging {
  background: #e8f1ff
}

.avatar-drop span {
  text-decoration: underline
}

.avatar-drop input {
  position: relative;
  width: 1px;
  height: 1px;
  opacity: 0
}

.avatar-dialog {
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  padding: 25px;
  width: min(95vw, 410px)
}

.avatar-dialog::backdrop {
  background: #13253c99
}

.avatar-crop-stage {
  display: grid;
  place-items: center;
  margin: 20px auto;
  background: #eef1f6;
  padding: 12px
}

.avatar-crop-stage canvas {
  width: 300px;
  height: 300px;
  max-width: 100%;
  border-radius: 50%;
  touch-action: none;
  cursor: grab
}

.avatar-dialog input[type=range] {
  width: 100%
}

/* Performance history: compact 60-slot status strip */

.performance-chart.uptime-segments {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 30px;
  min-height: 30px;
  margin: 15px 0 30px;
  padding: 0;
  background: transparent;
  overflow: hidden
}

.uptime-segment {
  display: block;
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  border-radius: 0;
  background: #cbd0d7
}

.uptime-segment.up {
  background: #20bf68
}

.uptime-segment.down {
  background: #ef4444
}

.uptime-segment.mixed {
  background: #f59e0b
}

.uptime-segment.unknown {
  background: #cbd0d7
}

.status-logo-dropzone {
  border: 2px dashed #a8bbd9;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  display: block;
  margin: 12px 0
}

.status-logo-dropzone.dragover {
  background: #eef4ff;
  border-color: #5467ee
}

.status-logo-dropzone input {
  display: none
}

.status-logo-dropzone strong {
  display: block
}

.status-logo-dropzone small {
  display: block;
  margin-top: 7px
}

/* Responsive status histories: fixed logical 24-hour bars, wrap rather than shrink. */

.mini-history {
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 3px;
  max-width: none;
  height: auto;
  margin-top: 8px
}

.mini-history .history-hour {
  height: 19px;
  min-width: 0;
  border-radius: 0
}

.performance-chart.uptime-segments {
  display: grid;
  grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr));
  height: auto;
  min-height: 0;
  gap: 4px;
  overflow: visible;
  align-items: initial
}

.performance-chart.uptime-segments .uptime-segment {
  height: 26px;
  min-width: 0
}

.status-service {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 15px
}

.status-hour-history {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 4px
}

.status-hour {
  height: 22px;
  background: #cbd0d7
}

.status-hour.up {
  background: #20bf68
}

.status-hour.down {
  background: #ef4444
}

.status-hour.mixed {
  background: #f59e0b
}

.table-pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 15px 5px
}

.table-pager a {
  font-weight: 600
}

@media(max-width:900px) {
  .mini-history,
  .status-hour-history {
    grid-template-columns: repeat(12, minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="0"] {
    grid-template-columns: repeat(12, minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="14"] {
    grid-template-columns: repeat(7, minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="30"],
  .performance-chart.uptime-segments[data-period="60"],
  .performance-chart.uptime-segments[data-period="90"] {
    grid-template-columns: repeat(15, minmax(0, 1fr))
  }
}

@media(max-width:600px) {
  .mini-history,
  .status-hour-history {
    grid-template-columns: repeat(6, minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="0"] {
    grid-template-columns: repeat(6, minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="30"],
  .performance-chart.uptime-segments[data-period="60"],
  .performance-chart.uptime-segments[data-period="90"] {
    grid-template-columns: repeat(10, minmax(0, 1fr))
  }
}

@media(max-width:400px) {
  .performance-chart.uptime-segments[data-period="30"],
  .performance-chart.uptime-segments[data-period="60"],
  .performance-chart.uptime-segments[data-period="90"] {
    grid-template-columns: repeat(5, minmax(0, 1fr))
  }
}

/* Responsive two-column panels for settings and monitor details. */

.settings-panel-grid,
.monitor-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start
}

.settings-panel-grid>.panel,
.monitor-details-grid>.panel {
  min-width: 0;
  max-width: none;
  margin: 0;
  width: 100%
}

.settings-panel-grid>.panel.form-panel,
.settings-panel-grid>.panel.status-extra {
  max-width: none;
  margin-top: 0
}

.monitor-details-grid .table-wrap {
  overflow-x: auto
}

@media(max-width:1100px) {
  .monitor-details-grid {
    grid-template-columns: minmax(0, 1fr)
  }
}

@media(max-width:850px) {
  .settings-panel-grid {
    grid-template-columns: minmax(0, 1fr)
  }
}

/* Match the number of recent-check blocks to each monitor interval. */

.mini-history {
  grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr))
}

@media(max-width:900px) {
  .mini-history {
    grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="-1"] {
    grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr))
  }
}

@media(max-width:600px) {
  .mini-history {
    grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr))
  }
  .performance-chart.uptime-segments[data-period="-1"] {
    grid-template-columns: repeat(var(--history-columns, 24), minmax(0, 1fr))
  }
}

/* Theme toggle and dark palette */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px
}

.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid #dce3ed;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  padding: 7px
}

.theme-toggle:hover {
  background: #eef1ff
}

.theme-icon {
  width: 20px;
  height: 20px
}

.sun-icon {
  display: none
}

[data-theme="dark"] .sun-icon {
  display: block
}

[data-theme="dark"] .moon-icon {
  display: none
}

.performance-panel {
  margin-bottom: 20px;
  padding: 0 10px!important;
}

[data-theme="dark"] {
  color-scheme: dark;
  background: #0d1422;
  color: #e7edf8
}

[data-theme="dark"] body,
[data-theme="dark"] .dashboard,
[data-theme="dark"] .status-public,
[data-theme="dark"] .auth-page {
  background: #0d1422;
  color: #e7edf8
}

[data-theme="dark"] .sidebar,
[data-theme="dark"] .topbar,
[data-theme="dark"] .panel,
[data-theme="dark"] .stat,
[data-theme="dark"] .auth-card,
[data-theme="dark"] .crop-dialog,
[data-theme="dark"] .avatar-dialog {
  background: #172235;
  border-color: #2b3a50;
  color: #e7edf8
}

[data-theme="dark"] .brand,
[data-theme="dark"] .topbar-user,
[data-theme="dark"] .monitor-link,
[data-theme="dark"] label {
  color: #e7edf8
}

[data-theme="dark"] .muted,
[data-theme="dark"] .stat span,
[data-theme="dark"] .back,
[data-theme="dark"] .topbar,
[data-theme="dark"] .sidebar-foot small {
  color: #9daec6
}

[data-theme="dark"] .sidebar-foot,
[data-theme="dark"] th,
[data-theme="dark"] td,
[data-theme="dark"] .status-service,
[data-theme="dark"] .status-incident {
  border-color: #2b3a50
}

[data-theme="dark"] th,
[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.selected {
  background: #202e47
}

[data-theme="dark"] .nav-link {
  color: #a8b8d0
}

[data-theme="dark"] .nav-link.selected {
  color: #9aaaff
}

[data-theme="dark"] input:not([type=checkbox]):not([type=range]),
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .btn,
[data-theme="dark"] .theme-toggle {
  background: #202e43;
  color: #e7edf8;
  border-color: #394963
}

[data-theme="dark"] input:disabled {
  background: #293244
}

[data-theme="dark"] .btn.primary {
  background: #5368e8;
  color: white;
  border-color: #5368e8
}

[data-theme="dark"] .status-monitor-list,
[data-theme="dark"] .status-logo-dropzone,
[data-theme="dark"] .avatar-drop,
[data-theme="dark"] .avatar-crop-stage,
[data-theme="dark"] .crop-stage {
  background: #1b293c;
  border-color: #394963
}

[data-theme="dark"] .status-up {
  background: #153e30;
  color: #8de6b5
}

[data-theme="dark"] .status-down {
  background: #512333;
  color: #ffc1cb
}

[data-theme="dark"] .status-pending {
  background: #29364b;
  color: #cbd7e8
}

[data-theme="dark"] .pill:not(.up):not(.down) {
  background: #2a3950;
  color: #cbd7e8
}

[data-theme="dark"] .pill.up {
  background: #164733;
  color: #9af2c2
}

[data-theme="dark"] .pill.down {
  background: #502a39;
  color: #ffb5c0
}

[data-theme="dark"] .theme-toggle:hover {
  background: #2d3c55
}

/* One floating tooltip for all history bars, avoids clipping in scroll containers. */

.uptime-tooltip {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  max-width: min(310px, calc(100vw - 24px));
  padding: 11px 14px;
  background: #152235;
  color: #f6f9ff;
  border: 1px solid #34445d;
  border-radius: 9px;
  box-shadow: 0 12px 32px #0005;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-line;
  opacity: 0;
  visibility: hidden;
  transition: opacity .12s ease
}

.uptime-tooltip.visible {
  opacity: 1;
  visibility: visible
}

.uptime-tooltip strong {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-bottom: 4px
}

.uptime-tooltip .tooltip-state {
  font-weight: 700;
  color: #6ce4a2
}

.uptime-tooltip .tooltip-state.down {
  color: #ff9090
}

.uptime-tooltip .tooltip-state.mixed {
  color: #ffd17a
}

.uptime-tooltip .tooltip-state.unknown {
  color: #c5d0df
}

.history-hour,
.uptime-segment,
.status-hour {
  cursor: pointer
}

.history-hour:focus-visible,
.uptime-segment:focus-visible,
.status-hour:focus-visible {
  outline: 2px solid #647aff;
  outline-offset: 2px
}

.performance-chart {
  border-bottom: 0;
  padding: 10px 25px 0 25px !important;
}

/* Uptime Robot-inspired monitor overview */

.robot-dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr)240px;
  gap: 25px;
  align-items: start
}

.robot-toolbar {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px
}

.robot-toolbar input {
  margin-left: auto;
  max-width: 260px
}

.robot-toolbar select {
  max-width: 160px
}
.robot-toolbar .choices {
  margin: 0!important;
}



.robot-list {
  display: grid;
  gap: 15px
}

.robot-monitor {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 17px;
  border: 1px solid var(--border, #29364b);
  background: var(--surface, #fff);
  border-radius: 9px;
  color: inherit;
  text-decoration: none
}

.robot-monitor:hover {
  border-color: #39c987;
  text-decoration: none !important;
}

.robot-status {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #9aa8bb;
  box-shadow: 0 0 0 6px #72819520
}

.robot-status.up {
  background: #39d47e;
  box-shadow: 0 0 0 6px #39d47e24
}

.robot-status.down {
  background: #fa6370;
  box-shadow: 0 0 0 6px #fa637024
}

.robot-monitor-info {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 1px
}

.robot-monitor-info strong,
.robot-monitor-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}

.robot-monitor-info small,
.robot-history small {
  color: var(--muted, #728195);
  font-size: 12px
}

.robot-history {
  width: 175px;
  flex: none;
  text-align: right
}

.robot-history .mini-history {
  margin-bottom: 5px
}

.robot-side {
  display: grid;
  gap: 18px
}

.robot-side .panel {
  margin: 0;
  padding: 22px
}

.robot-side h3 {
  margin: 0 0 24px
}

.robot-status-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #34d47b;
  color: #123;
  display: grid;
  place-items: center;
  margin: 12px auto 20px;
  font-size: 22px
}

.robot-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center
}

.robot-metrics div {
  display: grid;
  gap: 6px
}

.robot-metrics strong {
  font-size: 19px
}

.robot-metrics small {
  font-size: 11px;
  color: var(--muted, #9daec6)
}

.robot-side p {
  text-align: center;
  margin: 25px 0 0
}

.robot-two {
  grid-template-columns: repeat(2, 1fr);
  text-align: left;
  gap: 25px 12px
}

.robot-two strong {
  font-size: 18px
}

.response-chart {
  min-height: 220px;
  margin-top: 15px
}

.response-chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
  color: var(--muted, #9daec6)
}

.chart-switch {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 20px
}

.chart-switch [aria-pressed=true] {
  border-color: #39c987;
  color: #39c987
}

.response-stats {
  font-size: 13px;
  color: var(--muted, #728195);
  margin: 10px 0 20px
}

.robot-monitor[hidden] {
  display: none !important
}

@media(max-width:1000px) {
  .robot-dashboard {
    grid-template-columns: auto;
    gap: 15px;
  }
  .robot-side {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:650px) {
  .robot-toolbar {
    flex-wrap: wrap
  }
  .robot-toolbar input {
    margin-left: 0;
    max-width: none;
    flex: 1 1 100%
  }
  .robot-monitor {
    gap: 10px;
    padding: 12px
  }
  .robot-history {
    width: 105px
  }
  .robot-side {
    grid-template-columns: 1fr
  }
  .robot-monitor-info small {
    max-width: 150px
  }
  .uptime-tooltip {
    transition: none !important
  }
}

/* Unified light/dark controls and monitor dashboard surfaces */

:root {
  color-scheme: light;
  --control-bg: #fff;
  --control-fg: #243249;
  --control-border: #cbd5e3;
  --control-placeholder: #7b899e;
  --control-focus: #5368e8;
  --monitor-bg: #fff;
  --monitor-border: #e2e8f0;
  --monitor-hover: #f3f6fb
}

[data-theme="dark"] {
  color-scheme: dark;
  --control-bg: #202e43;
  --control-fg: #e7edf8;
  --control-border: #394963;
  --control-placeholder: #9daec6;
  --control-focus: #899aff;
  --monitor-bg: #172235;
  --monitor-border: #2b3a50;
  --monitor-hover: #202e47
}

/* All form inputs, including controls on account, team and status-page */

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]),
select,
textarea {
  background: var(--control-bg);
  color: var(--control-fg) !important;
  border: 1px solid var(--control-border);
  border-radius: 0;
  min-height: 43px;
  font: 16px 'Inter', Helvetica, Arial, sans-serif!important;
font-size-adjust: 0.47 !important;
  max-width: 100%;
  box-sizing: border-box
}

select {
  padding: 9px 36px 9px 12px;
  cursor: pointer;
  appearance: auto
}

textarea {
  padding: 12px;
  min-height: 95px;
  resize: vertical
}

input::placeholder,
textarea::placeholder {
  color: var(--control-placeholder);
  opacity: 1
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 1px;
  border-color: var(--control-focus) !important
}

input:disabled,
select:disabled,
textarea:disabled {
  opacity: .65;
  cursor: not-allowed
}

input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  accent-color: #5368e8
}

select option,
select optgroup {
  background: var(--control-bg);
  color: var(--control-fg)
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  font-size: 16px !important
}

.robot-list {
  min-width: 0
}

.robot-monitor {
  background: var(--monitor-bg);
  border-color: var(--monitor-border);
  color: var(--control-fg)
}

.robot-monitor:hover {
  background: var(--monitor-hover)
}

.robot-monitor:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 2px
}

#monitor-sort,
#monitor-search {
  background: var(--control-bg) !important;
  color: var(--control-fg) !important;
  border-color: var(--control-border) !important
}

#monitor-sort {
  min-width: 135px
}

.robot-monitor-info strong {
  color: var(--control-fg)
}

.robot-monitor-info small,
.robot-history small {
  color: var(--control-placeholder)
}

.response-chart {
  min-width: 0;
  overflow: hidden
}

.response-chart svg {
  width: 100%;
  max-width: 100%;
  overflow: hidden
}

@media(max-width:650px) {
  .robot-toolbar select {
    max-width: 100%;
    flex: 1 1 135px
  }
  .robot-list {
    width: 100%
  }
  .robot-monitor {
    min-width: 0
  }
  .robot-history {
    min-width: 0
  }
}

/* Response history: horizontal, vertically stacked bars on phones. */

.response-mobile-bars {
  display: none
}

@media(max-width:650px) {
  .response-chart>svg {
    display: none
  }
  .response-mobile-bars {
    display: grid;
    gap: 7px;
    max-height: 420px;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 2px 8px 0
  }
  .response-mobile-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr)48px;
    gap: 8px;
    align-items: center;
    min-height: 22px
  }
  .response-mobile-label {
    font-size: 10px;
    color: var(--muted, #728195);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right
  }
  .response-mobile-track {
    height: 15px;
    min-width: 0;
    border-bottom: 0;
    display: flex;
    align-items: end
  }
  .response-mobile-bar {
    height: 13px;
    border-radius: 3px;
    background: #39c987;
    min-width: 0
  }
  .response-mobile-bar.is-empty {
    background: transparent
  }
  .response-mobile-value {
    font-size: 10px;
    color: var(--muted, #728195);
    white-space: nowrap;
    text-align: right
  }
}

.performance-panel .muted,
.performance-panel .response-stats {
  display: none;
}

/* Layout and public status page settings */

@media(min-width:721px) {
  .sidebar {
    width: 230px
  }
  .main {
    margin-left: 230px
  }
}

.content {
  padding: 20px 30px
}

@media(max-width:720px) {
  .content {
    padding: 20px 30px
  }
}

.status-public-head {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 30px
}

.status-public-head>.status-logo {
  width: auto;
  max-width: 210px;
  max-height: 115px;
  flex: none;
  object-fit: contain
}

.status-public-heading {
  min-width: 0;
  flex: 1
}

.status-public-heading h1 {
  margin: 0 0 10px
}

.status-header-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px
}

.status-header-summary strong {
  font-size: 15px
}

.status-header-summary span {
  color: #8995a6;
  font-size: 15px
}

.status-header-summary.status-up strong {
  color: #23a66d
}

.status-header-summary.status-down strong {
  color: #d94b60
}

.status-header-summary.status-pending strong {
  color: #8b98aa
}

[data-theme="dark"] .status-public {
  background: #101927;
  color: #e7edf8
}

[data-theme="dark"] .status-header-summary span {
  color: #9daec6
}

[data-theme="dark"] .status-public-heading h1 {
  color: #e7edf8
}

@media(max-width:600px) {
  .status-public-head {
    gap: 14px;
    align-items: center
  }
  .status-public-head>.status-logo {
    max-width: 95px;
    max-height: 85px
  }
  .status-public-heading h1 {
    font-size: 24px
  }
  .status-header-summary {
    display: grid;
    gap: 5px
  }
}

/* Monitor tag editor and list filters. */
.tag-editor {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 10px 10px;
  border: 1px solid var(--control-border);
  border-radius: 0;
  background: var(--control-bg);
  color: var(--control-fg);
}


.tag-editor:focus-within {
  border-color: var(--control-focus);
}

.tag-chips,
.monitor-list-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip,
.monitor-list-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  background: rgba(45, 180, 121, 0.14);
  color: var(--control-fg);
  font-size: 12px;
  line-height: 1.4;
}

.tag-chip-remove {
  border: 0;
  padding: 0 2px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.tag-editor input[data-tag-input] {
  flex: 1 1 170px;
  min-width: 140px;
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none;
  outline: none;
  height: auto !important;
  min-height: unset !important;
  border-radius: 0 !important;
}
.tag-editor-hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.monitor-list-tags {
  margin-top: 6px;
}

#monitor-tag-filter {
  min-width: 130px;
  background: var(--control-bg);
  color: var(--control-fg);
  border-color: var(--control-border);
}

:root {
  --greenui: #43aa8b;
 --border: #e8e8e6;
 --white: #fff;
}

input[type="checkbox"] {
    appearance: none !important;
    width: 14px !important;
    height: 14px !important;
    border: 2px solid var(--border) !important;
    padding: 10px !important;
    background: var(--white);
    cursor: pointer !important;
    border-radius: 0!important;
    position: relative !important;
    vertical-align: middle !important;
}

input[type="checkbox"]:checked {
    background: var(--greenui);
    border-color: var(--greenui) !important;
}

input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 3px;
    width: 4px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.check,
.check span {
  font-weight: 400;
  font-size: 13px !important;
}


/* Sidebar navigation and mobile close control. */
.sidebar-brand-row { display: flex; align-items: center; justify-content: space-between; }
.sidebar-close { display: none; border: 0; background: transparent; color: inherit; font-size: 30px; line-height: 1; padding: 2px 7px; }
.sidebar-profile-link { color: inherit; text-decoration: none; }
.sidebar-profile-link:hover { text-decoration: none; }
.sidebar-profile-text { min-width: 0; }
.sidebar-profile-text strong, .sidebar-profile-text small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidebar-actions .theme-toggle { flex: 0 0 36px; }
.mobile-menu-launch { display: none; }
@media (max-width: 720px) {
 .mobile-menu-launch { display: block; position: fixed; top: 12px; left: 12px; z-index: 9; border: 0; background: none; color: inherit; border-radius: 0; padding: 0 0 0 10px; font-size: 21px; }
 .sidebar-close { display: block; }

.sidebar-close svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}



.mobile-menu svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}


 .dashboard .content { padding-top: 65px; }
 .menu-open .mobile-menu-launch { visibility: hidden; }
}
/* One responsive response-time line chart, with horizontal scrolling for dense date labels. */
.response-chart { width: 100%; overflow-x: auto; overflow-y: hidden; }
.response-chart svg { display: block !important; width: auto; max-width: none; height: 340px; overflow: visible; }
.response-mobile-bars { display: none !important; }
.response-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 0; }
.response-kpis .stat { min-width: 0; }
@media (max-width: 900px) { .response-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .response-kpis { grid-template-columns: 1fr; } }
/* Choices.js controls inherit the app's light/dark input palette. */
.choices { min-width: 0; margin-bottom: 0; color: var(--control-text, #18243a); }

.choices__inner, .choices[data-type*="select-one"] .choices__inner {
  border-radius: 0;
  min-height: 43px;
  background: var(--control-bg) !important;
  color: var(--control-fg) !important;
  border: 1px solid var(--control-border) !important;
  font: 16px 'Inter', Helvetica, Arial, sans-serif!important;
font-size-adjust: 0.47 !important;
}



.choices__list--dropdown, .choices__list[aria-expanded] {
 background: var(--control-bg, #fff) !important;
 border-color: var(--control-border, #dce3ed) !important;
 color: var(--control-text, #18243a) !important;
 z-index: 30;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted,
.choices__list[aria-expanded] .choices__item--selectable.is-highlighted {
 background: var(--control-hover, #eef1ff);
}
.choices__input { background: var(--control-bg, #fff) !important; color: var(--control-text, #18243a) !important; }

/* Select controls: keep the selected label on a single line. */
.robot-toolbar .choices,
.incident-filters .choices {
 flex-shrink: 0;
 min-width: 0;
}
.robot-toolbar .choices[data-type="select-one"] {
 width: 185px;
 max-width: 185px;
}
.robot-toolbar .choices__inner,
.incident-filters .choices__inner {
 box-sizing: border-box;
 width: 100%;
}
.robot-toolbar .choices__list--single,
.incident-filters .choices__list--single {
 min-width: 0;
 padding-right: 18px;
}
.robot-toolbar .choices__list--single .choices__item,
.incident-filters .choices__list--single .choices__item {
 overflow: hidden;
 text-overflow: ellipsis;
 white-space: nowrap;
}
.robot-toolbar .choices__list--dropdown .choices__item,
.incident-filters .choices__list--dropdown .choices__item {
 overflow-wrap: anywhere;
}
.robot-toolbar { flex-wrap: wrap; }
.robot-toolbar #monitor-search { flex: 1 1 260px; min-width: 150px; }
.incident-filters label:first-child { width: min(100%, 280px); }
.incident-filters label:nth-child(2) { width: min(100%, 190px); }
.incident-filters label .choices { width: 100%; }

/* The response chart fits the full available panel width on all screens. */
.performance-panel,
.response-chart { min-width: 0; }
.response-chart { width: 100%; overflow: hidden; }
.response-chart svg { width: 100% !important; max-width: 100%; height: 340px; }

/* Response KPIs sit alongside the monitor's existing top statistics. */
.stats.response-kpis { margin-top: 0; margin-bottom: 25px; }
.performance-panel .response-stats { display: none; }

/* Prevent profile photo controls from widening the account page. */
.settings-panel-grid,
.settings-panel-grid > .panel,
.avatar-settings,
.avatar-settings > div:last-child,
.avatar-settings form,
.avatar-drop { min-width: 0; max-width: 100%; box-sizing: border-box; }
.avatar-settings > div:last-child { flex: 1 1 220px; overflow-wrap: anywhere; }
.avatar-settings input[type="file"] { max-width: 100%; }
@media (max-width: 650px) {
 .robot-toolbar .choices[data-type="select-one"] { width: 160px; max-width: 100%; }
 .incident-filters label:first-child { width: min(100%, 280px); }
 .incident-filters label:nth-child(2) { width: min(100%, 190px); }
}


/* Choices.js: explicit dark-theme colours for every dropdown state. */
[data-theme="dark"] .choices,
[data-theme="dark"] .choices__item,
[data-theme="dark"] .choices__list--single,
[data-theme="dark"] .choices__placeholder {
 color: #e8edf7 !important;
}
[data-theme="dark"] .choices__inner,
[data-theme="dark"] .choices[data-type*="select-one"] .choices__inner,
[data-theme="dark"] .choices__list--dropdown,
[data-theme="dark"] .choices__list[aria-expanded],
[data-theme="dark"] .choices__input,
[data-theme="dark"] .choices__list--dropdown .choices__item {
  border: 1px solid var(--control-border)!important;
  border-radius: 0!important;
  background: var(--control-bg)!important;
  color: var(--control-fg)!important;
}
[data-theme="dark"] .choices__list--dropdown .choices__item--selectable.is-highlighted,
[data-theme="dark"] .choices__list[aria-expanded] .choices__item--selectable.is-highlighted,
[data-theme="dark"] .choices__item.is-highlighted {
 background: #33445c !important;
 color: #fff !important;
}
[data-theme="dark"] .choices[data-type*="select-one"]::after {
 border-color: #e8edf7 transparent transparent;
}
[data-theme="dark"] .choices[data-type*="select-one"].is-open::after {
 border-color: transparent transparent #e8edf7;
}

.response-zoom-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: 10px 0 5px;
  padding: 0 25px;
}

.response-zoom-controls .btn { min-width: 38px; padding: 6px 11px; }
#response-chart circle[data-tooltip] { cursor: crosshair; outline-offset: 3px; }
#response-chart circle[data-tooltip]:focus { outline: 2px solid #39c987; }

/* Mobile application header. */
.mobile-topbar { display: none; }
@media (max-width: 720px) {
 .dashboard .content { padding: 15px 20px; }
 .mobile-topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 60px;
  padding: 8px 10px;
  box-sizing: border-box;
  background: var(--control-bg, #fff);
  border-bottom: 1px solid var(--control-border, #dce3ed);
 }
 .mobile-topbar .mobile-menu-launch {
  display: inline-flex;
  position: static;
  justify-self: start;
  align-items: center;
  z-index: auto;
 }
 .mobile-topbar-brand { justify-self: center; white-space: nowrap; }
 .mobile-topbar-right { justify-self: end; }
 .dashboard .content { padding-top: 15px; }
 .menu-open .mobile-topbar .mobile-menu-launch { visibility: hidden; }
}
@media (max-width: 480px) {
 .robot-toolbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
 }
 .robot-toolbar #monitor-search {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
 }
 .robot-toolbar .choices[data-type="select-one"],
 .robot-toolbar .choices {
  width: 100%;
  max-width: 100%;
  min-width: 0;
 }
 .robot-toolbar #monitor-reset { width: 100%; min-width: 0; }
 .robot-toolbar .choices__inner { padding-left: 7px; padding-right: 6px; }
}

.monitor-list-tags {
  display: none;
}

.brand-logo {
  width: 120px;
}

.brand-logo svg {
  width: 100%;
  height:auto;
  display: block;
  margin: 0;
}
/* Advanced monitoring controls — unminified */
.advanced-monitor-fields { display: grid; gap: 14px; margin: 18px 0; }
.advanced-monitor-fields label { min-width: 0; }
.advanced-monitor-panel { margin: 20px auto; }
.advanced-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.advanced-actions form { margin: 0; }
.maintenance-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 12px 0; }
.maintenance-form label { flex: 1 1 190px; min-width: 0; }
.maintenance-form input { width: 100%; }
.advanced-health { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 15px; color: var(--muted, #64748b); }
.incident-summary-form { margin-top: 12px; min-width: 200px; }
.incident-summary-form textarea { width: 100%; margin: 6px 0; }
@media (max-width: 720px) { .maintenance-form { display: grid; grid-template-columns: minmax(0, 1fr); } }


@media(max-width:400px) {

  .response-kpis,
  .stats {
    grid-template-columns: auto!important;
  }

}


/* Single-monitor actions and health details appear before the KPI cards. */
.monitor-overview-panel {
    margin-bottom: 22px;
}
.monitor-overview-panel .advanced-actions {
    margin-bottom: 12px;
}
.monitor-overview-panel .advanced-health {
    margin-top: 14px;
}

/* Maintenance scheduling stays at the bottom in an accessible native accordion. */
.monitor-maintenance-accordion {
    margin-top: 22px;
}
.monitor-maintenance-accordion > summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
}
.monitor-maintenance-accordion > summary:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}
.monitor-maintenance-body {
    padding-top: 18px;
}

/* Status-page monitor selection: custom name left, URL to the right. */
.status-monitor-list .check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.status-monitor-choice-name {
    font-weight: 600;
    overflow-wrap: anywhere;
}
.status-monitor-choice-url {
    margin-left: auto;
    text-align: right;
    overflow-wrap: anywhere;
    min-width: 0;
}
@media (max-width: 600px) {
    .status-monitor-choice-url {
        flex-basis: 100%;
        margin-left: 28px;
        text-align: left;
    }
}

/* Public status page logo sizing, based on the saved crop shape. */
.status-public-head > .status-logo.status-logo-square {
  max-width: 60px;
  max-height: unset;
}

.status-public-head > .status-logo.status-logo-rectangle {
  max-width: 150px;
  max-height: unset;
}

/* The hidden attribute must override the generic label display rules. */
#logo-height-field[hidden] {
  display: none !important;
}

/* Monitor detail actions and multi-status-page management */
.monitor-heading-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.monitor-heading-actions form { margin:0; }
.monitor-action-menu { position:relative; }
.monitor-action-menu > summary { display:flex; align-items:center; justify-content:center; min-width:38px; cursor:pointer; list-style:none; }
.monitor-action-menu > summary::-webkit-details-marker { display:none; }
.monitor-action-dropdown { position:absolute; right:0; top:calc(100% + 15px); z-index:30; width:235px; max-width:calc(100vw - 28px); padding:6px; border-radius:10px; background:var(--card, var(--surface, #1e293b)); border:1px solid var(--border, #334155); box-shadow:0 12px 32px #0003; }
.monitor-action-dropdown a, .monitor-action-dropdown button { display:block; width:100%; padding:8px 10px; text-align:left; background:transparent; border:0; border-radius:6px; font: 14px 'Inter', Helvetica, Arial, sans-serif !important; color:var(--text, inherit); text-decoration:none; cursor:pointer; }
.monitor-action-dropdown a:hover, .monitor-action-dropdown button:hover { background:var(--hover, #64748b22); }
.monitor-action-dropdown .monitor-menu-danger { color:#ef4444; }
.monitor-overview-panel { margin-top:16px; }
.status-pages-list { display:grid; gap:14px; }
.status-page-list-item { display:flex; justify-content:space-between; align-items:center; gap:15px; padding: 15px; flex-wrap:wrap; }
.status-page-list-info { display:flex; align-items:center; gap:25px; min-width:0; }
.status-page-list-info h2 { margin:0 0 3px; font-size:16px; }
.status-page-list-info p { margin:0; overflow-wrap:anywhere; }
.status-page-list-logo { width:60px; height:50px; object-fit:contain; }
.status-page-list-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.status-page-list-actions form { margin:0; }
@media(max-width:640px) { .status-page-list-item { align-items:stretch; } .monitor-heading-actions { width:100%; } }

/* Monitor actions: explicit light and dark palettes. */
.monitor-action-dropdown {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #18243a;
  box-shadow: 0 14px 32px rgba(22, 34, 55, .16);
}
.monitor-action-dropdown a,
.monitor-action-dropdown button { color: #18243a; }
.monitor-action-dropdown a:hover,
.monitor-action-dropdown button:hover { background: #eef1ff; }
.monitor-action-dropdown .monitor-menu-danger { color: #dc2626; }
[data-theme="dark"] .monitor-action-dropdown {
  background: #172235;
  border-color: #2b3a50;
  color: #e7edf8;
}
[data-theme="dark"] .monitor-action-dropdown a,
[data-theme="dark"] .monitor-action-dropdown button { color: #e7edf8; }
[data-theme="dark"] .monitor-action-dropdown a:hover,
[data-theme="dark"] .monitor-action-dropdown button:hover { background: #26364d; }
[data-theme="dark"] .monitor-action-dropdown .monitor-menu-danger { color: #f87171; }
.monitor-heading-expiry { display:flex; gap:8px 20px; flex-wrap:wrap; margin-top:7px; font-size:12px; }
.monitor-share-notice {
  margin: 10px auto;
}


/* Full-width single-monitor history tabs. */
.monitor-history-tabs {
  width: 100%;
  min-width: 0;
  padding: 5px 20px;
  box-sizing: border-box;
}
.monitor-tab-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border, #dce3ed);
}
.monitor-tab {
  appearance: none;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: inherit;
  opacity: .7;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  margin-bottom: -1px;
}
.monitor-tab:hover { opacity: 1; }
.monitor-tab.is-active {
  opacity: 1;
  border-bottom-color: var(--accent, #6366f1);
}
.monitor-tab:focus-visible { outline: 2px solid var(--accent, #6366f1); outline-offset: -3px; }
.monitor-tab-panel { width: 100%; min-width: 0; }
.monitor-tab-panel[hidden] { display: none !important; }
.monitor-tab-panel .table-wrap { width: 100%; overflow-x: auto; }
.monitor-tab-panel .monitor-maintenance-body { padding: 0; }
@media (max-width: 600px) {
  .monitor-tab-list { gap: 0; }
  .monitor-tab { font-size: 13px; }
}

/* Period-aware response metrics, placed beneath the performance chart. */
.response-chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 15px;
    padding: 20px;
  border-top: 1px solid var(--border, rgba(128, 140, 160, .22));
}
.response-chart-metric {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 22px;
  text-align: center;
}
.response-chart-metric:first-child { padding-left: 0; }
.response-chart-metric + .response-chart-metric {
  border-left: 1px solid var(--border, rgba(128, 140, 160, .22));
}

.response-metric-value {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  text-align: center;
  margin: 0 auto;
}

.response-metric-value strong { font-weight: 700; }

.response-metric-icon {
  font-size: 16px;
  line-height: 1.4;
}

.response-metric-average { color: #8397b7; }
.response-metric-min { color: #22c55e; }
.response-metric-max { color: #ef4444; }
.response-metric-label { font-size: 12px; color: var(--muted, #8792a4); }
@media (max-width: 520px) {
  .response-chart-metric { padding: 0 10px; }
  .response-metric-value { font-size: 15px; gap: 4px; }
}

/* Single monitor KPI details */
.monitor-detail-stats .stat .stat-detail {
  color: #8793a6;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: normal;
}
.monitor-detail-stats .stat .monitor-domain-ssl-value {
  font-size: 14px !important;
  letter-spacing: normal;
  line-height: 1.5;
}

/* Single-monitor heading: stack actions below the name and URL on small screens. */
@media (max-width: 640px) {
    .monitor-detail-heading {
        display: flex;
      
        align-items: center;
        gap: 12px;
    }

.monitor-heading-actions .btn {
  padding: 10px 12px;
}


.monitor-detail-heading p {
        display: none!important;
    }


    .monitor-detail-heading .back {
        display: none;
    }

    .monitor-detail-heading .monitor-heading-actions {
        width: 100%;
        justify-content: end;
    }
}

  .monitor-detail-heading .back {
    display: none;
  }

  [data-theme="dark"] .response-chart-metric + .response-chart-metric {
  border-left: 1px solid #2b3a50;
}

[data-theme="dark"] .response-chart-metrics {
  border-top: 1px solid #2b3a50;
}

[data-theme="dark"] .monitor-tab-list {
  border-bottom: 1px solid #2b3a50;
}

.monitor-last-check {
  color: #18243a !important;
}

[data-theme="dark"] .monitor-last-check {
  color: #e7edf8 !important;
}

.page-heading .back {
  display: none;
}

@media (max-width: 400px) {
.page-heading h1 {
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}
}
/* Give the single-monitor performance period selector room for its labels. */
.performance-panel .panel-title select#performance-days {
  min-width: 145px;
}
.performance-panel .panel-title .choices {
  min-width: 145px;
}

/* Monitor list spacing and separated check-frequency line. */
.robot-monitor { gap: 15px; }
.robot-monitor-info { gap: 3px; }

/* Smaller performance history segments; the selected period controls the columns. */
.performance-chart.uptime-segments .uptime-segment { height: 18px; }
@media (max-width: 900px) {
  .performance-chart.uptime-segments[data-period="90"] { grid-template-columns: repeat(45, minmax(0, 1fr)); }
  .performance-chart.uptime-segments[data-period="60"] { grid-template-columns: repeat(30, minmax(0, 1fr)); }
  .performance-chart.uptime-segments[data-period="30"] { grid-template-columns: repeat(30, minmax(0, 1fr)); }
  .performance-chart.uptime-segments[data-period="14"] { grid-template-columns: repeat(14, minmax(0, 1fr)); }
  .performance-chart.uptime-segments[data-period="7"] { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .performance-chart.uptime-segments[data-period="0"] { grid-template-columns: repeat(24, minmax(0, 1fr)); }
}
/* Keep the mobile action links in the existing dropdown, not the heading. */
.monitor-action-dropdown .monitor-mobile-action { display: none; }
@media (max-width: 500px) {
  .monitor-heading-actions > .monitor-primary-pause,
  .monitor-heading-actions > .monitor-primary-edit { display: none; }
  .monitor-action-dropdown .monitor-mobile-action { display: block; }
}

/* Single-monitor checks history filters */

.checks-filters {
  margin: 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto auto 100px;
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  justify-items: stretch;
  align-items: end;
}


.checks-filters label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; }
.checks-filters select { min-width: 110px; }

.fspanel {
  padding: 0px 20px!important;
}

.fsstatus-service {
  padding: 25px 15px!important;
}

  .shourh.shourh-24 {
    grid-template-columns: repeat(24, minmax(0, 1fr)) !important;
  }
  .shourh.shourh-7 {
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  }
  .shourh.shourh-30 {
    grid-template-columns: repeat(30, minmax(0, 1fr)) !important;
  }


/* Team page: 70/30 members and invitations */
.team-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr); gap: 20px; align-items: start; }
.team-layout > *, .team-sidebar { min-width: 0; }
.team-sidebar { display: grid; gap: 20px; }
.team-member-list { display: grid; gap: 12px; margin-top: 18px; }
.team-member-card { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 16px; border: 1px solid var(--border, #dce1e8); border-radius: 12px; }
.team-member-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2, #e9eef5); color: var(--text, #263248); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.team-member-details { display: grid; gap: 4px; min-width: 0; flex: 1 1 140px; }
.team-member-details small, .team-pending-invite small { color: #8793a6; overflow-wrap: anywhere; }
.team-role { font-size: 12px; font-weight: 600; }
.team-member-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.team-member-actions select { max-width: 140px; }

.team-member-actions .choices {
  margin: 0!important;
}



.team-pending-invite { display: grid; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border, #dce1e8); }
.team-pending-invite strong { overflow-wrap: anywhere; }
.team-pending-invite .btn { justify-self: start; }
@media(max-width: 900px) { .team-layout { grid-template-columns: 1fr; } }
/* DataTables controls follow the existing dashboard theme. */
.dt-container { color: inherit; }
.dt-container .dt-layout-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 12px 0; }
.dt-container .dt-input { background: var(--surface, transparent); color: inherit; border: 1px solid var(--border, #dce1e8); border-radius: 7px; padding: 7px 10px; }
.dt-container .dt-paging .dt-paging-button { color: inherit !important; border-radius: 7px; }
.dt-container .dt-paging .dt-paging-button.current { background: var(--surface-2, #e9eef5) !important; color: inherit !important; }
.dt-container table.dataTable thead th { cursor: pointer; }

/* DataTables: consistent alignment, spacing and responsive controls. */
.dt-container,
.dt-container .dt-layout-row,
.dt-container .dt-layout-cell {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.dt-container .dt-layout-row {
  width: 100% !important;
}
.dt-container .dt-layout-row .dt-layout-start,
.dt-container .dt-layout-row .dt-layout-end {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.dt-container .dt-layout-row .dt-layout-end {
  margin-left: auto !important;
}
.dt-container .dt-search,
.dt-container .dt-length {
  display: flex !important;
  align-items: center !important;
  max-width: 100% !important;
}
.dt-container .dt-search input {
  min-width: 0 !important;
  max-width: 100% !important;
  width: min(240px, 100%) !important;
  margin-left: 0 !important;
}
.dt-container .dt-search label,
.dt-container .dt-length label {
  display: none !important;
}
.dt-container .dt-layout-table,
.dt-container .dt-layout-table .dt-layout-cell {
  width: 100% !important;
  min-width: 0 !important;
  overflow-x: auto !important;
}
.dt-container table.dataTable {
  width: 100% !important;
}
table.dataTable > thead > tr > th,
table.dataTable > thead > tr > td {
  padding: 12px !important;
  border-bottom: 0 !important;
  text-align: left !important;
}
table.dataTable > tbody > tr > th,
table.dataTable > tbody > tr > td {
  padding: 12px 12px !important;
  text-align: left !important;
}
table.dataTable > thead > tr > th.dt-orderable-asc,
table.dataTable > thead > tr > th.dt-orderable-desc,
table.dataTable > thead > tr > td.dt-orderable-asc,
table.dataTable > thead > tr > td.dt-orderable-desc {
  padding-right: 30px !important;
}
table.dataTable > thead > tr > th .dt-column-header,
table.dataTable > thead > tr > td .dt-column-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  text-align: left !important;
}
table.dataTable > thead > tr > th .dt-column-title,
table.dataTable > thead > tr > td .dt-column-title {
  text-align: left !important;
}
table.dataTable > thead > tr > th .dt-column-order,
table.dataTable > thead > tr > td .dt-column-order {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
table.dataTable > thead > tr > th .dt-column-order::before,
table.dataTable > thead > tr > th .dt-column-order::after,
table.dataTable > thead > tr > td .dt-column-order::before,
table.dataTable > thead > tr > td .dt-column-order::after {
  opacity: 1 !important;
}
div.dt-container.dt-empty-footer tbody > tr:last-child > * {
  border-bottom: 0 !important;
}
table.dataTable > tbody > tr:nth-of-type(2n) {
  background: #fafafa !important;
}
[data-theme="dark"] table.dataTable > tbody > tr:nth-of-type(2n) {
  background: #202e47 !important;
}
@media (max-width: 600px) {
  .dt-container .dt-layout-row .dt-layout-start,
  .dt-container .dt-layout-row .dt-layout-end {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

/* DataTables 2: keep date/number column titles left and sort indicators right. */
.dt-container table.dataTable > thead > tr > th,
.dt-container table.dataTable > thead > tr > td,
.dt-container table.dataTable > thead > tr > th.dt-type-date,
.dt-container table.dataTable > thead > tr > th.dt-type-numeric {
  text-align: left !important;
  direction: ltr !important;
}
.dt-container table.dataTable > thead > tr > th .dt-column-header,
.dt-container table.dataTable > thead > tr > td .dt-column-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: center !important;
  direction: ltr !important;
  position: relative !important;
}
.dt-container table.dataTable > thead > tr > th .dt-column-title,
.dt-container table.dataTable > thead > tr > td .dt-column-title {
  order: 0 !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}
.dt-container table.dataTable > thead > tr > th .dt-column-order,
.dt-container table.dataTable > thead > tr > td .dt-column-order {
  order: 1 !important;
  position: relative !important;
  inset: auto !important;
  left: auto !important;
  right: auto !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  flex: 0 0 14px !important;
  width: 14px !important;
  height: 20px !important;
}
.dt-container table.dataTable > tbody > tr > th,
.dt-container table.dataTable > tbody > tr > td,
.dt-container table.dataTable > tbody > tr > .dt-type-date,
.dt-container table.dataTable > tbody > tr > .dt-type-numeric {
  text-align: left !important;
}

/* Active pagination button in dark mode, including hover/focus. */
[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.current,
[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.current:hover,
[data-theme="dark"] .dt-container .dt-paging .dt-paging-button.current:focus {
  background: #344766 !important;
  background-image: none !important;
  color: #ffffff !important;
  border: 1px solid #52688b !important;
  box-shadow: none !important;
}

/* Integrations */
.integrations-panel { width: 100%; box-sizing: border-box; }
.integrations-panel h2 { margin: 0 0 10px; }
.integrations-monitor-table { width: 100%; }
.integrations-monitor-table th:last-child,
.integrations-monitor-table td:last-child { text-align: left; width: 220px; }
.integrations-monitor-url { display: block; margin-top: 4px; color: #8793a6; overflow-wrap: anywhere; }
.integrations-notify-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; cursor: pointer; }
.integrations-actions { margin-top: 20px; }
@media (max-width: 600px) {
  .integrations-monitor-table th:last-child,
  .integrations-monitor-table td:last-child { width: auto; }
  .integrations-check-label { display: none; }
}

/* Public status page display controls */
.status-display-settings { display:grid; gap:13px; margin:0; padding:18px; border:1px solid var(--border,#dce3ea); border-radius:0px; }
.status-display-settings legend { font-weight:700; padding:0 8px; }
.status-display-settings label.check { margin:0; }
.status-service-title { display:flex; flex-direction:column; gap:3px; min-width:0; }
.status-service-url { overflow-wrap:anywhere; font-size:12px; }
.status-uptime-pct { font-weight:700; white-space:nowrap; }
.status-uptime-pct small { font-weight:400; }
.status-line-chart { grid-column:1/-1; width:100%; min-width:0; padding-top:12px; }
.status-line-label { font-size:12px; margin-bottom:6px; }
.status-response-canvas { display:block; width:100%; height:145px; }

/* Status page editor: five full-width panels. */
.status-editor { display:grid; gap:20px; width:100%; margin: -20px 0 0 0;}
.status-editor > .panel { width:100%; max-width:none; margin:0; }
.status-editor-panel { display:grid; gap:18px; }
.status-editor-panel > h2 { margin:0; }
.status-editor-panel .status-form { display:grid; gap:20px; }
.status-editor-panel .status-monitor-list { margin:0; }
.status-editor-actions { display:flex !important; align-items:center; gap:12px; flex-wrap:wrap; }
.status-editor-actions form { margin:0; }
/* Public status page width and header. */
.status-container.status-container-narrow { max-width:850px !important; }
.status-container.status-container-wide { max-width:1050px !important; }
.status-public .status-header-summary.status-up { background:transparent !important; }
.status-public .status-header-summary { display:flex !important; flex-direction:column !important; align-items:flex-end !important; justify-content:center !important; text-align:right !important; gap:2px !important; padding:0 !important; }
.status-public .status-header-summary .status-headline { font-size:18px !important; font-weight:700; }

.status-public .status-header-summary.status-up .status-all-systems { color:#8995a6 !important; }

.status-public .status-header-summary.status-up .status-operational { color:#23a66d !important; }
[data-theme="dark"] .status-public .status-header-summary.status-up .status-all-systems { color:#9daec6 !important; }
.status-public .status-header-summary .status-service-label { font-size:14px !important; margin: 0 0 3px 0;}
.status-public .status-header-summary .status-last-updated { font-size:13px !important; }


[data-theme="dark"] .status-display-settings {
  border-color: #394963;
}


@media (max-width: 460px) {
.status-public-head {
  display: block!important;
  text-align: center; !important;
}

.status-public .status-header-summary {
  align-items: center !important;
  justify-content: center !important;
  text-align: left !important;
  gap: 2px !important;
  padding: 5px 0 0 0 !important;
}

}
/* Integrations: left-side navigation inspired by the add-ons directory. */
.integrations-layout { display:grid; grid-template-columns:260px minmax(0,1fr); align-items:start; gap:24px; width:100%; }
.integrations-sidebar { display:flex; flex-direction:column; align-items:stretch; gap:6px; min-width:0; }
.integrations-sidebar .monitor-tab { display:flex; align-items:center; width:100%; min-height:44px; padding:12px 14px; margin:0; border:0 !important; border-radius:8px; background:transparent; text-align:left; font-size:14px; font-weight:600; opacity:1; color:inherit; transition:background-color .15s ease; }
.integrations-sidebar .monitor-tab:hover { background:var(--surface, #eef1f4); }
.integrations-sidebar .monitor-tab.is-active { background:#edf0f3; color:#303843; }
[data-theme="dark"] .integrations-sidebar .monitor-tab:hover { background:#283750; }
[data-theme="dark"] .integrations-sidebar .monitor-tab.is-active { background:#34445e; color:#fff; }
.integrations-layout > .integrations-panel { min-width:0; margin:0; width:100%; }

@media (max-width:1100px) {
.integrations-layout {
  display: grid;
  grid-template-columns: 200px minmax(0,1fr);
  align-items: start;
  gap: 24px;
  width: 100%;
}
}

@media (max-width:960px) {
 .integrations-layout { grid-template-columns:1fr; gap:14px; }
 .integrations-sidebar { flex-direction:row; flex-wrap:wrap; gap:8px; }
 .integrations-sidebar .monitor-tab { width:auto; min-height:40px; padding:10px 14px; }
}

/* Monitor overview: all three summaries share a single panel. */
.robot-summary-panel .robot-metrics { text-align: left; }
.robot-summary-panel .robot-metrics.robot-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.robot-summary-panel .robot-summary-period { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border, #dce1e8); }
.robot-summary-panel .robot-summary-period h3 { margin-bottom: 20px; }
.team-member-avatar { overflow: hidden; }
.team-member-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 50%; }
/* The mobile header owns the profile controls at 720px and below. */
.mobile-profile { display: none; position: relative; justify-self: end; }

.mobile-profile-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0 10px 0 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}


.mobile-profile-chevron svg {
  width: 12px;
  display: block;
  margin: 5px 0 0 0;
  height: 6px;
}

.stad {
fill: #18243a;
}

[data-theme="dark"] .stad {
fill: #e8edf7;
}

.menu-icon {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0;
}

.mobile-profile-trigger .avatar { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; }
.mobile-profile-trigger .avatar-img { width: 100%; height: 100%; object-fit: cover; }
.mobile-profile-chevron { font-size: 18px; }

.mobile-profile-menu {
position: absolute;
  right: -10px;
  top: calc(100% + 12px);
  width: 180px;
  padding: 8px;
  border: 1px solid var(--border, #dce1e8);
  background: var(--surface, #fff);
  z-index: 1000;
}


.mobile-profile-menu[hidden] { display: none !important; }
.mobile-profile-menu a, .mobile-profile-menu button { display: block; width: 100%; text-align: left; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-decoration: none; cursor: pointer; }
.mobile-profile-menu a:hover, .mobile-profile-menu button:hover { background: rgba(128,145,165,.13); }
.mobile-profile-menu form { margin: 0; }
[data-theme="dark"] .mobile-profile-menu { background: #202e47; border-color: #394963; color: #e4ebf7; }
@media (max-width: 720px) {
 .sidebar .sidebar-profile-link, .sidebar .sidebar-actions { display: none !important; }
 .mobile-topbar .mobile-profile { display: flex; margin: 2px 0 0 0;}
}


[data-theme="dark"] .team-member-card {
  border: 1px solid #2b3a50;
}

[data-theme="dark"] .robot-summary-panel .robot-summary-period {
  border-top: 1px solid #2b3a50;
}

.bt-plus {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: -2px 5px 0 0;
  vertical-align: middle;
}
.bt-plus svg {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0;
}
.svplus {
  fill: #fff;
  opacity: 1;
}

.bt-op {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin: -1px 0 0 10px;
  vertical-align: middle;
}


.bt-op svg {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0;
}
.svop {
  fill: #4a566a;
}

[data-theme="dark"] .svop {
  fill: #e7edf8;
}



@media (max-width: 600px) {

.performance-panel {
  margin-bottom: 15px;
  padding: 0!important;
}

.monitor-history-tabs {
  padding:15px;
}

}




@media (max-width: 380px) {
  .performance-panel .panel-title .choices {
  min-width: 120px;
}

.response-chart-metrics {
  padding: 20px 5px;
}

  .monitor-tab {
    padding: 10px;
}
}
/* Integration services and API keys. */
.integration-service { padding:20px 0; border-bottom:1px solid var(--border,#e1e5eb); }
.integration-service h3 { margin:0 0 8px; }
.integration-service form { max-width:600px; margin-top:12px; }
.integration-service form label { display:block; margin-bottom:12px; }
.integration-connected { font-size:12px; color:#168047; font-weight:600; margin-left:8px; }
.integration-disable { margin-top:8px !important; }
.integration-key-once { padding:14px; border:1px solid #168047; border-radius:8px; margin:14px 0; }
.integration-key-once input { margin-top:10px; width:100%; }


.integration-key-create {
  margin: 20px 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto 150px;
  grid-column-gap: 20px;
  grid-row-gap: 20px;
  justify-items: stretch;
  align-items: end;
}



.integration-key-row { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:14px 0; border-top:1px solid var(--border,#e1e5eb); }
.integration-key-row small { display:block; margin-top:5px; color:#8793a6; overflow-wrap:anywhere; }
@media(max-width:600px){.integration-key-row{align-items:flex-start;flex-direction:column;}}

/* API key: one-click copy control. */
.integration-key-copy-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.integration-key-copy-row input { flex: 1 1 auto; min-width: 0; }
.integration-key-copy-row button { flex: 0 0 auto; }
@media (max-width: 520px) { .integration-key-copy-row { flex-wrap: wrap; } }


[data-theme="dark"] .integration-key-row {
  border-top: 1px solid #2b3a50;
}

[data-theme="dark"] .integration-service {
  border-bottom: 1px solid #2b3a50;
}

.integration-service:last-of-type {
  border-bottom: 0;
}

@media (max-width: 550px) { 
.integration-key-create {
  margin: 20px 0;
  width: 100%;
  display: grid;
  grid-template-columns: auto;
  grid-column-gap: 15px;
  grid-row-gap: 15px;
  justify-items: stretch;
  align-items: end;
}
}


.tag-editor input[data-tag-input] {
  flex: 1 1 170px;
  min-width: 140px;
  width: auto;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none;
  outline: none;
  height: auto !important;
  min-height: unset !important;
  border-radius: 0 !important;
}

.tag-editor input[type="text"] {
 border: 0 !important;
}

@media(max-width:780px) {

 .bt-pu, 
.bt-cre {
  display: none;
}

.bt-op {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: -2px 0 0 0;
  vertical-align: middle;
}

.bt-op svg {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
}

.bt-plus {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: -2px 0 0 0;
  vertical-align: middle;
}

.bt-plus svg {
  display: block;
  width: 12px;
  height: 12px;
  margin: 0;
}
}

footer {
  position: static;
  text-align: right;
  padding: 0 25px 15px 25px;
  font-size: 12px;
}

/* Integration notification preferences: individual monitor cards. */
.integration-notification-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; }
.integration-notification-card {
  border-bottom: 1px solid var(--control-border, #dce3ed);
  padding: 0 0 15px 0;
  min-width: 0;
}


.integration-notification-heading { display: flex; flex-direction: column; gap: 0px; min-width: 0; }
.integration-notification-heading a { text-decoration: none; }
.integration-notification-heading .integrations-monitor-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.integration-notification-channels { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 18px; }
.integration-notification-channels .integrations-notify-check { min-width: 0; }
[data-theme="dark"] .integration-notification-card { border-color: #35445e; }
@media (max-width: 1050px) { .integration-notification-cards { grid-template-columns: 1fr; } }

/* Keep all three mobile header controls on the same vertical centre line. */
@media (max-width: 720px) {
 .mobile-topbar { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; }
 .mobile-topbar .mobile-menu-launch { align-self: center; justify-self: start; margin: 0; }
 .mobile-topbar .mobile-topbar-brand { display: flex; align-items: center; justify-content: center; align-self: center; margin: 0 !important; }
 .mobile-topbar .mobile-profile { display: flex; align-items: center; justify-self: end; align-self: center; margin: 2px 0 0 0 !important; }
 .mobile-topbar .mobile-profile-trigger { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
 .mobile-topbar .brand-logo-mobile { display: block; margin: 0 !important; }
}

/* Flatpickr calendar follows the application theme. */
html[data-theme="dark"] .flatpickr-calendar { background: #202e47; border-color: #394963; box-shadow: 0 8px 25px rgba(0,0,0,.35); }
html[data-theme="dark"] .flatpickr-calendar .flatpickr-months .flatpickr-month,
html[data-theme="dark"] .flatpickr-calendar .flatpickr-weekdays,
html[data-theme="dark"] .flatpickr-calendar .flatpickr-weekday,
html[data-theme="dark"] .flatpickr-calendar .flatpickr-day,
html[data-theme="dark"] .flatpickr-calendar .flatpickr-current-month input.cur-year,
html[data-theme="dark"] .flatpickr-calendar .flatpickr-current-month .flatpickr-monthDropdown-months { background: #202e47; color: #e4ebf7; }
html[data-theme="dark"] .flatpickr-calendar .flatpickr-day:hover { background: #344766; border-color: #344766; }
html[data-theme="dark"] .flatpickr-calendar .flatpickr-day.selected { background: #20bf68; border-color: #20bf68; color: #fff; }

/* Single-monitor status and uptime KPI colours. */
.monitor-detail-stats .monitor-kpi-green { color: #20bf68 !important; }
.monitor-detail-stats .monitor-kpi-yellow { color: #d97706 !important; }
.monitor-detail-stats .monitor-kpi-red { color: #f94144 !important; }

/* Keep uptime percentage on the same row as the monitor name and status. */
.status-public .fsstatus-service.has-uptime-percentage {
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
}
.status-public .fsstatus-service.has-uptime-percentage .status-hour-history,
.status-public .fsstatus-service.has-uptime-percentage .status-line-chart {
  grid-column: 1 / -1;
}
@media (max-width: 480px) {
  .status-public .fsstatus-service.has-uptime-percentage {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .status-public .fsstatus-service.has-uptime-percentage .status-uptime-pct {
    grid-column: 1 / -1;
    justify-self: start;
  }
}


.flatpickr-calendar {
  width: 320px !important;
  padding: 12px !important;
  border: 1px solid #e9edf3 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 12px 40px rgba(15, 35, 65, .12) !important;
  font-family: inherit !important;
}

.flatpickr-calendar:before,
.flatpickr-calendar:after {
  display: none !important;
}

.flatpickr-months {
  align-items: center;
  margin-bottom: 10px;
}

.flatpickr-months .flatpickr-month {
  height: 42px;
}

.flatpickr-current-month {
  padding-top: 8px;
  font-size: 15px;
  font-weight: 600;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
  font-size: 15px;
  font-weight: 600;
}

.flatpickr-current-month input.cur-year {
  font-size: 15px;
  font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
  top: 14px;
  padding: 8px;
}

.flatpickr-months svg {
  width: 13px;
  height: 13px;
}

.flatpickr-weekdays {
  margin-bottom: 6px;
}

span.flatpickr-weekday {
  color: #9299a5;
  font-size: 12px;
  font-weight: 500;
}

.flatpickr-innerContainer,
.flatpickr-rContainer,
.flatpickr-days,
.dayContainer {
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
}

.dayContainer {
  padding: 2px 0 4px;
}

.flatpickr-day {
  height: 38px;
  max-width: none !important;
  line-height: 38px;
  border-radius: 10px !important;
  font-size: 13px;
  font-weight: 500;
  color: #273247;
}

.flatpickr-day:hover,
.flatpickr-day:focus {
  background: #f1f5fb !important;
  border-color: transparent !important;
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus,
.flatpickr-day.today.selected {
  background: #0877ff !important;
  border-color: #0877ff !important;
  color: #fff !important;
}

.flatpickr-day.today:not(.selected) {
  border: 1px solid #0877ff !important;
  color: #0877ff;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: #bec4cd !important;
}

.flatpickr-day.flatpickr-disabled {
  color: #d7dbe2 !important;
}

@media (max-width: 480px) {
  .flatpickr-calendar {
    width: min(320px, calc(100vw - 24px)) !important;
    padding: 10px !important;
  }
}

.saskio-date-display {
  position: relative;
  outline: none!important;
}

.saskio-date-display {
    background-image: url('../img/calendar.svg') !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 18px 18px !important;
    padding-right: 40px !important;
}



@media (max-width: 380px) {
  .flatpickr-calendar {
    width: min(280px, calc(100vw - 20px)) !important;
    padding: 10px !important;
  }
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-time input,
.flatpickr-current-month input.cur-year {
min-height: unset !important;
border: 0 !important;
}

.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month {
top: 10px!important;
}

.flatpickr-months .flatpickr-prev-month.flatpickr-next-month, .flatpickr-months .flatpickr-next-month.flatpickr-next-month {
  right: 5px!important;
}

.flatpickr-months .flatpickr-prev-month.flatpickr-prev-month, .flatpickr-months .flatpickr-next-month.flatpickr-prev-month {
  left: 5px!important;
}

[data-theme="dark"] .flatpickr-calendar {
  border: 1px solid #2b3a50 !important;
  background: #202e47 !important;
}

[data-theme="dark"] .flatpickr-months .flatpickr-prev-month, 
[data-theme="dark"] .flatpickr-months .flatpickr-next-month {
  cursor: pointer;
  color: #fff!important;
  fill: #fff!important;
}

[data-theme="dark"] .flatpickr-day:hover,
[data-theme="dark"] .flatpickr-day:focus {
  background: #0d1422 !important;
  border-color: transparent !important;
}

[data-theme="dark"] .flatpickr-calendar.hasTime .flatpickr-time {
  border-top: 1px solid #2b3a50!important;
}

[data-theme="dark"] .saskio-date-display {
    background-image: url('../img/calendard.svg') !important;
}

@media (max-width: 400px) {
.panel {
  padding: 15px;
}
}

body.dashboard {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

body.dashboard > .main {
    flex: 1 0 auto;
    min-height: 0;
}

body.dashboard > .dashboard-footer {
    flex-shrink: 0;
    margin-top: auto;
}


.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: 10px;
  padding: 0 30px 15px 25px;
  font-size: 12px;
  color: #8793a6;
  position: static;
  text-align: right;
}


.dashboard-footer p {
    margin: 0;
    position: relative;
}

.dashboard-footer p:before {
    position: relative;
  content: "|";
  padding: 0 10px 0 0;
}

.dashboard-footer p:first-of-type:before {
  content: "";
  padding: 0;
}

@supports (-webkit-touch-callout: none) {
 .mobile-topbar .mobile-profile { display: flex; align-items: center; justify-self: end; align-self: center; margin: 2px 0 0 0 !important; height: 45px!important;}

.mobile-profile-menu {
  top: calc(100% + 5px);
}


}

@media (max-width: 720px) {

.dashboard-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

}

@media (max-width: 600px) {
  .status-monitor-choice-url {
    display: none;
  }
}

a,
.dashboard-footer a {
  color: #1d4ed8;
  text-decoration: none;
}

.integration-notification-heading a {
  color: #18243a;
}


[data-theme="dark"] a,
[data-theme="dark"] .dashboard-footer a {
  color: #22c55e;
  text-decoration: none;
}


[data-theme="dark"] .integration-notification-heading a {
  color: #e7edf8;
}

.stat-deb {
 color: #18243a!important;
}

[data-theme="dark"] .stat-deb {
 color: #fff!important;
}


/* temp button styles */


.btn.primary {
  background: #059669!important;
  color: #fff!important;
  border-color: #059669!important;
}

[data-theme="dark"] .btn.primary {
  background: #0f766e!important;
  color: #fff!important;
  border-color: #0f766e!important;
}

.danger {
  background: #ef4444!important;
  color: #fff!important;
  border-color: #ef4444!important;
}

.btn {
  font: 13px 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important;
  text-align: center!important;
  letter-spacing: 0 !important;
  text-transform: capitalize;
  border-radius: 30px!important;
  padding: 12px 20px!important;
  height: 44px!important;
}

.bt-plus {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: -2px 10px 0 0;
  vertical-align: middle;
}


@media (max-width: 780px) {
  .bt-plus {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: -2px 0 0 0;
    vertical-align: middle;
  }
}

/* Remove yellow autofill background */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1e293b !important;
    caret-color: #1e293b;
}

/* Dark mode */
[data-theme="dark"] input:-webkit-autofill,
[data-theme="dark"] input:-webkit-autofill:hover,
[data-theme="dark"] input:-webkit-autofill:focus,
[data-theme="dark"] input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #202e47 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff;
}
/* Dashboard sidebar sign-out and footer theme switch. */
.sidebar-logout-form { margin: 0; }
.sidebar-signout { display: block; width: 100%; text-align: left; border: 0; background: transparent;   font: 13px 'Inter', Helvetica, Arial, sans-serif !important;
  font-weight: 500 !important; cursor: pointer; }
.avatar.avatar-has-image { background: none !important; }
.footer-theme-toggle { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.footer-theme-toggle:hover { text-decoration: underline; }
/* Authentication pages are always dark, regardless of the saved dashboard theme. */
html:has(body.auth-page) { color-scheme: dark; }
@media (max-width: 720px) {
  .flatpickr-calendar.open { max-width: calc(100vw - 20px) !important; }
}


[data-theme="dark"] .nav-link.selected {
  color: #22c55e;
}

#all-incidents-table_wrapper .dt-layout-row:last-of-type,
#monitor-incidents-table_wrapper .dt-layout-row:last-of-type,
#monitor-checks-table_wrapper .dt-layout-row:last-of-type {
  border-top: 1px solid #2b3a50!important;
  padding: 15px 5px 10px 5px!important;
  margin: 0 !important;
}

.dt-container div.dt-layout-row {
  margin: 15px 0 0 0!important;
}


@media (max-width: 400px) {
.footer-tt {
  display:none;
}
}