:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #243247;
  background: #f5f7fa;
  font-size: 14px;
  line-height: 1.65;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid #e1e6ee;
  padding: 16px max(24px, calc((100vw - 1160px) / 2));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #243247;
  font-weight: 750;
  font-size: 21px;
  line-height: 1.25;
}
.brand-mark {
  display: block;
  object-fit: contain;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 25px;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #728096;
  margin-top: 3px;
}
.account-name {
  font-weight: 600;
}
.account-name small {
  display: block;
  color: #728096;
  font-weight: 400;
  font-size: 12px;
}
main {
  max-width: 1160px;
  margin: 32px auto;
  padding: 0 24px;
  min-height: 70vh;
}
footer {
  text-align: center;
  padding: 20px;
  color: #728096;
  font-size: 12px;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -0.6px;
  margin: 3px 0 8px;
}
h2 {
  font-size: 18px;
  line-height: 1.45;
  margin: 0 0 10px;
}
h3 {
  font-size: 15px;
  margin: 0 0 10px;
}
p {
  margin: 8px 0;
  color: #5a687c;
}
.eyebrow {
  font-size: 12px;
  color: #6f7e92;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.card {
  background: #fff;
  border: 1px solid #e0e6ee;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px #25365303;
}
.login {
  max-width: 460px;
  margin: 56px auto;
  padding: 32px;
}
.login h1 {
  margin-top: 12px;
}
.login form {
  margin-top: 25px;
}
.login > .help {
  margin-top: 24px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.page-heading {
  margin-bottom: 24px;
}
.workspace-bar {
  padding: 16px 20px;
  background: #eaf0f8;
  border: 1px solid #dce5f1;
  border-radius: 10px;
  margin-bottom: 20px;
}
.tenant-picker {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.tenant-picker select {
  max-width: 320px;
}
.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #dce3ee;
  margin-bottom: 24px;
  overflow-x: auto;
}
.tabs button {
  flex-shrink: 0;
  background: transparent;
  color: #65748a;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  padding: 12px 20px;
}
.tabs button.active {
  color: #1c7166;
  border-bottom-color: #1c7166;
  font-weight: 650;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.stat > span {
  color: #6f7e92;
  font-size: 13px;
}
.stat strong {
  display: block;
  font-size: 28px;
  line-height: 1.5;
  margin: 10px 0 6px;
  font-variant-numeric: tabular-nums;
}
.stat strong small {
  font-size: 13px;
  color: #728096;
  font-weight: 400;
}
.stat p {
  font-size: 12px;
}
.positive {
  color: #21784f;
}
.warning {
  color: #a85a18;
}
.getting-started {
  border-left: 3px solid #1c7166;
}
.getting-started .row {
  margin-top: 18px;
}
form {
  display: grid;
  gap: 16px;
  max-width: 540px;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 550;
}
input,
select,
textarea {
  font: inherit;
  border: 1px solid #c3cedd;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  min-width: 0;
  background: #fff;
  color: #243247;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
input::placeholder {
  color: #8794a7;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #a0d8ce;
  outline-offset: 2px;
}
button {
  font: inherit;
  background: #1c7166;
  color: white;
  border: 1px solid #1c7166;
  border-radius: 7px;
  padding: 10px 16px;
  cursor: pointer;
  line-height: 1.5;
  min-height: 40px;
}
button:hover {
  filter: brightness(0.95);
}
button.secondary {
  background: #fff;
  color: #1c7166;
  border-color: #c8d5e9;
}
button.danger {
  background: #fff;
  color: #b53c35;
  border-color: #e6c2bf;
}
button.confirming {
  background: #b53c35;
  color: #fff;
  border-color: #b53c35;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.small {
  font-size: 12px;
  padding: 7px 12px;
  min-height: 34px;
}
.help {
  color: #718096;
  font-size: 12px;
  line-height: 1.7;
}
.badge {
  border-radius: 5px;
  background: #edf6f0;
  color: #27754b;
  padding: 4px 9px;
  font-size: 12px;
  display: inline-block;
}
.badge.off,
.status-reopened,
.status-fix_available {
  background: #fff4e5;
  color: #9c5d14;
}
.status-uploaded,
.status-triaged {
  background: #edf3fc;
  color: #345f9c;
}
.error {
  background: #fff1ee;
  color: #aa3830;
  padding: 12px;
  border-radius: 7px;
}
.feedback:empty {
  display: none;
}
.table-wrap {
  overflow: auto;
  margin-top: 14px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  color: #758399;
  font-weight: 550;
  background: #f7f9fc;
}
td,
th {
  padding: 14px 12px;
  border-bottom: 1px solid #e9edf4;
  white-space: nowrap;
  vertical-align: top;
}
td.wrap {
  white-space: normal;
  min-width: 220px;
  max-width: 480px;
  overflow-wrap: anywhere;
}
td strong {
  font-weight: 550;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.empty {
  padding: 32px;
  text-align: center;
  color: #758399;
  white-space: normal;
}
.empty-log {
  padding: 14px 16px;
  background: #f5f7fa;
  border-radius: 8px;
  font-size: 13px;
}
.support-filters {
  margin-top: 24px;
  align-items: end;
}
.support-filters label:first-child {
  flex: 1;
  min-width: 180px;
}
.support-filters label:last-child {
  min-width: 145px;
}
details summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.6;
}
details[open] > summary {
  margin-bottom: 20px;
}
.device-id {
  font-size: 11px;
  color: #78869a;
  margin-top: 5px;
}
.device-id[open] > summary {
  margin-bottom: 4px;
}
.action-form form {
  padding-top: 2px;
}
.danger-zone {
  border-color: #ead5d2;
}
.danger-zone summary {
  color: #ad4b43;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
  white-space: normal;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #243247;
  color: white;
  padding: 13px 20px;
  border-radius: 9px;
  max-width: min(90%, 600px);
  width: max-content;
  z-index: 20;
  box-shadow: 0 5px 25px #24324726;
}
dialog {
  border: 1px solid #dce3ee;
  border-radius: 14px;
  width: min(850px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  color: #243247;
  box-shadow: 0 20px 90px #14223844;
}
dialog::backdrop {
  background: #14223877;
}
#session-dialog {
  width: min(460px, calc(100vw - 32px));
}
.session-content {
  padding: 24px;
}
.dialog-header {
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid #e6ebf2;
  position: sticky;
  top: 0;
  z-index: 1;
}
.dialog-header h2 {
  font-size: 17px;
  margin: 4px 0 0;
}
#report-content {
  padding: 24px;
}
.report-description {
  font-size: 16px;
  color: #243247;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.metadata {
  display: flex;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding: 14px 0;
  font-size: 12px;
  color: #728096;
  border-bottom: 1px solid #e6ebf2;
}
.metadata strong {
  font-weight: 500;
  color: #243247;
  display: block;
}
.report-section {
  margin-top: 24px;
}
.report-section details {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #e0e6ee;
  border-radius: 8px;
}
.diagnostic {
  background: #f5f7fa;
  padding: 16px;
  max-height: 360px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.7;
  border-radius: 8px;
}
.loading {
  padding: 32px;
  color: #728096;
}
.skip-link {
  position: absolute;
  top: -100px;
}
.skip-link:focus {
  top: 5px;
  left: 5px;
  background: white;
  padding: 8px;
  z-index: 30;
}
[hidden] {
  display: none;
}
@media (max-width: 800px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .stat {
    margin-bottom: 0;
  }
  .stats {
    margin-bottom: 20px;
  }
  .stat strong {
    font-size: 24px;
  }
  .workspace-bar > .help {
    width: 100%;
  }
  .stat p {
    margin: 0;
  }
  .tenant-picker select {
    max-width: none;
  }
}
@media (max-width: 500px) {
  header {
    padding: 14px 16px;
  }
  .brand small {
    display: none;
  }
  .account-name {
    font-size: 12px;
  }
  .row {
    gap: 8px;
  }
  main {
    padding: 0 16px;
    margin-top: 24px;
  }
  h1 {
    font-size: 24px;
  }
  .card {
    padding: 18px;
  }
  .login {
    margin: 24px auto;
    padding: 24px;
  }
  .tabs button {
    padding: 12px 14px;
  }
  .tenant-picker {
    display: grid;
    gap: 6px;
  }
  .workspace-bar {
    padding: 14px;
  }
  .support-filters label:last-child {
    flex: 1;
  }
  .dialog-header,
  #report-content {
    padding: 16px;
  }
  dialog {
    max-height: calc(100dvh - 24px);
    width: calc(100vw - 16px);
  }
  .dialog-header h2 {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
  }
}

.support-image {
  margin: 16px 0;
  padding: 12px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
}
.support-image img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  margin: 12px auto;
}
.support-image a {
  display: inline-block;
  margin-top: 8px;
}
