* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 164px;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "zero" 0;
}
button,input,textarea,select {
  font: inherit;
  color: inherit;
}
button,a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  background: none;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
}
input,select,textarea {
  min-width: 0;
}
h1,h2,h3,p {
  margin: 0;
}
h1,h2,h3 {
  font-family: var(--font-heading);
  font-weight: 600;
}
h1 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  letter-spacing: -.35px;
  line-height: 1.4;
}
h3 {
  font-size: 14px;
  letter-spacing: -.1px;
}
strong {
  font-weight: 600;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.secondary {
  color: var(--secondary);
}
.positive {
  color: var(--positive);
}
.warning {
  color: var(--warning);
}
.negative {
  color: var(--negative);
}
.number {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
}
.right {
  text-align: right !important;
}
.nowrap {
  white-space: nowrap;
}
.wrap {
  overflow-wrap: anywhere;
}
.mono,code,pre {
  font-family: var(--font-code);
  font-size: 12px;
  font-feature-settings: "zero" 0;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  stroke: none;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}
.icon.small {
  width: 13px;
  height: 13px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
#main:focus,.dialog-content:focus {
  outline: none;
}
::selection {
  background: var(--ink);
  color: var(--bg);
}
.skip-link {
  position: fixed;
  left: 14px;
  top: 10px;
  padding: 9px 14px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}
.container {
  width: min(1424px,100%);
  padding-inline: 40px;
  margin-inline: auto;
}
/*Shared shell: horizontal navigation only.*/
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}
.brand-link {
  display: block;
  line-height: 0;
  padding-block: 14px;
}
.brand-link img {
  display: block;
  width: 126px;
  height: auto;
}
.logo-dark {
  display: none !important;
}
html[data-theme=dark] .logo-light {
  display: none !important;
}
html[data-theme=dark] .logo-dark {
  display: block !important;
}
.brand-separator {
  color: var(--muted);
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}
.product-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 18px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
  line-height: 1.6;
  text-align: left;
  border-radius: 0;
}
.workspace strong {
  font-size: 13px;
  display: block;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 6px;
  flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-out),background-color var(--motion-fast) ease;
}
.icon-btn:active:not(:disabled) {
  transform: scale(.97);
}
.account-btn {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 5px 4px 5px 9px;
  margin-left: 3px;
  border-radius: 6px;
  min-height: 38px;
}
.initials {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--subtle);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
}
.nav-border {
  border-block: 1px solid var(--line);
}
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.main-nav,.subnav {
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}
.main-nav a {
  height: 48px;
  display: flex;
  align-items: center;
  color: var(--secondary);
  font-size: 13px;
  padding: 0 3px;
  border-radius: 2px;
}
.main-nav a[aria-current=page] {
  font-weight: 600;
  color: var(--ink);
}
.main-nav a:focus-visible {
  outline-offset: -3px;
}
.nav-extra {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--secondary);
  font-size: 12px;
  white-space: nowrap;
  padding: 9px 3px;
}
.subnav-shell {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.subnav {
  min-height: 43px;
  gap: 22px;
}
.subnav a {
  font-size: 12px;
  color: var(--muted);
  padding: 11px 3px;
}
.subnav a[aria-current=page] {
  color: var(--ink);
  font-weight: 600;
}
.subnav a:focus-visible {
  outline-offset: -3px;
}
main#main {
  padding-block: 38px 60px;
  min-height: calc(100dvh - 210px);
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.page-head p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 13px;
}
.page-actions,.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 39px;
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  background: var(--surface);
  line-height: 1.4;
  transition: transform var(--motion-fast) var(--ease-out),background-color var(--motion-fast) ease;
}
.btn:active:not(:disabled) {
  transform: scale(.977);
}
.btn.primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.btn.quiet {
  background: transparent;
  border-color: transparent;
  color: var(--secondary);
}
.btn.small {
  min-height: 31px;
  padding: 6px 10px;
  font-size: 11px;
}
.btn.danger {
  color: var(--negative);
}
.text-btn {
  color: var(--accent-text);
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn.full {
  width: 100%;
}
.link-text {
  color: var(--accent-text);
  text-underline-offset: 4px;
}
.row-link {
  font-weight: 600;
  text-align: left;
  padding: 5px 0;
}
.status {
  font-size: 12px;
  white-space: nowrap;
  font-weight: 500;
}
.badge {
  display: inline-flex;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--subtle);
  color: var(--secondary);
  font-size: 11px;
  line-height: 1.5;
}
.plain-count {
  margin-left: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
/*Data, not card decoration.*/
.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  padding-block: 22px;
  border-block: 1px solid var(--line);
  margin-bottom: 28px;
}
.metric {
  padding-inline: 26px;
  border-left: 1px solid var(--line);
  min-width: 0;
}
.metric:first-child {
  padding-left: 0;
  border: 0;
}
.metric-label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
  display: block;
}
.metric-value {
  font-size: 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -.8px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "zero" 0;
}
.metric-value.word {
  font-size: 20px;
  letter-spacing: -.35px;
}
.metric-note {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0,1.7fr) minmax(0,1fr);
  gap: 24px;
}
.two-col.equal {
  grid-template-columns: repeat(2,minmax(0,1fr));
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}
.panel-head h2 {
  font-size: 15px;
}
.panel-body {
  padding: 20px;
}
.section {
  margin-top: 28px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.table-wrap {
  width: 100%;
  overflow: auto;
  scrollbar-width: thin;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.panel .table-wrap {
  border: 0;
  border-radius: 0;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: auto;
}
.table th {
  height: 42px;
  padding: 10px 17px;
  background: var(--subtle);
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  height: var(--row-height);
  padding: 11px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.table th.select-cell,.table td.select-cell {
  width: 48px;
  min-width: 48px;
  padding-left: 18px;
  padding-right: 12px;
}
.table .subject-col {
  min-width: 200px;
}
.table .truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table .selected td {
  background: var(--selected);
}
.table .previewing:not(.selected) td {
  background: var(--subtle);
}
.table tbody tr {
  outline-offset: -2px;
}
.checkbox {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.task-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row strong {
  display: block;
  font-size: 13px;
}
.task-row p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.fact-list {
  margin: 0;
  padding: 0;
}
.fact-list>div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.fact-list>div:last-child {
  border: 0;
}
.fact-list dt {
  color: var(--muted);
}
.fact-list dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  padding: 15px 0;
}
.notice {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--subtle);
  padding: 14px 17px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.6;
}
.notice strong {
  color: var(--ink);
}
.legal-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.empty {
  padding: 46px 20px;
  text-align: center;
}
.empty h2 {
  font-size: 16px;
  margin-bottom: 6px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
}
.empty .btn {
  margin-top: 18px;
}
/*Interactive chart: fixed geometry, no animated fabricated performance.*/
.chart {
  width: 100%;
  height: 184px;
  display: block;
  overflow: visible;
}
.chart-grid {
  stroke: var(--line);
  stroke-width: 1;
  fill: none;
}
.chart-line {
  stroke: var(--brand);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.chart-axis {
  font-size: 10px;
  fill: var(--muted);
}
.chart-cursor {
  stroke: var(--secondary);
  stroke-width: 1;
  fill: none;
}
.chart-point {
  fill: var(--surface);
  stroke: var(--brand);
  stroke-width: 2;
}
.chart-labels,.chart-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 11px;
}
.chart-bottom {
  margin-top: 14px;
  min-height: 32px;
}
.chart-bottom output {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.range {
  width: 100%;
  margin: 15px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
  height: 20px;
}
.chart-period {
  display: flex;
  gap: 2px;
}
.chart-period button {
  font-size: 11px;
  color: var(--muted);
  padding: 5px 8px;
  border-radius: 4px;
}
.chart-period button[aria-pressed=true] {
  color: var(--ink);
  font-weight: 600;
  background: var(--subtle);
}
progress {
  width: 100%;
  height: 6px;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: var(--line);
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--brand);
}
progress::-moz-progress-bar {
  background: var(--brand);
}
.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
/*Archive search and readable message preview.*/
.search-panel {
  padding: 19px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 20px;
}
.search-line {
  display: flex;
  gap: 10px;
  align-items: center;
}
.search-input {
  position: relative;
  flex: 1;
  min-width: 0;
}
.search-input>.icon {
  position: absolute;
  left: 14px;
  top: 15px;
  color: var(--muted);
  pointer-events: none;
}
.search-input input {
  width: 100%;
  height: 46px;
  padding: 10px 45px 10px 41px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  font-size: 13px;
}
.search-input .clear-search {
  position: absolute;
  right: 4px;
  top: 4px;
}
.search-line .btn {
  min-height: 46px;
}
.scope-label {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin: 18px 0 8px;
}
.mailbox-scope {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.scope-btn {
  border: 1px solid var(--line);
  padding: 7px 12px;
  border-radius: 5px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scope-btn[aria-pressed=true] {
  background: var(--selected);
  border-color: var(--line-strong);
}
.scope-btn svg {
  width: 11px;
  height: 11px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.filters label {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.compact-select,.date-input {
  background: var(--surface);
  color: var(--secondary);
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 33px;
  padding: 5px 10px;
  font-size: 12px;
  max-width: 100%;
}
.archive-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 335px;
  gap: 22px;
  align-items: start;
}
.archive-results {
  min-width: 0;
}
.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
  min-height: 34px;
}
.results-toolbar>span {
  font-size: 12px;
  color: var(--muted);
}
.result-table {
  min-width: 580px;
}
.result-table td {
  height: 72px;
}
.result-table .row-link {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.selection-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 10px 15px;
  border-top: 1px solid var(--line);
  background: var(--subtle);
  font-size: 12px;
  flex-wrap: wrap;
}
.selection-bar .button-row {
  gap: 7px;
}
.selection-bar .btn {
  font-size: 11px;
  padding: 7px 11px;
}
.selection-info {
  color: var(--muted);
}
.selection-info strong {
  color: var(--ink);
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  font-size: 12px;
  color: var(--muted);
}
.pager .button-row {
  gap: 4px;
}
.message-preview {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
  overflow: hidden;
}
.preview-top {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.preview-top h2 {
  font-size: 13px;
}
.preview-body {
  padding: 20px;
}
.preview-body h3 {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 16px;
}
.preview-body .fact-list>div {
  font-size: 11px;
  padding: 8px 0;
}
.message-text {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--secondary);
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 20px 0;
  max-height: 265px;
  overflow: auto;
}
.attachment {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 5px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.attachment small {
  display: block;
  color: var(--muted);
}
.preview-footer {
  padding: 18px;
  border-top: 1px solid var(--line);
}
.preview-footer .btn {
  margin-top: 16px;
  width: 100%;
}
.detail-label {
  font-size: 10px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.preview-footer p {
  font-size: 12px;
  margin-bottom: 10px;
}
.highlight {
  background: var(--selected);
  color: inherit;
  padding: 2px 4px;
  border-radius: 2px;
  margin-inline: 1px;
}
/*Forms, menus and dialogs.*/
.field {
  margin-bottom: 18px;
  min-width: 0;
}
.field label,.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input:not([type=checkbox]):not([type=range]),.field select,.field textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: var(--surface);
  font-size: 13px;
}
.field input[readonly] {
  background: var(--subtle);
  color: var(--muted);
}
.field textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.7;
}
.field small {
  display: block;
  color: var(--muted);
  margin-top: 7px;
  font-size: 11px;
}
.field-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.field-heading a {
  font-size: 12px;
  color: var(--accent-text);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.7;
}
.check-label input {
  margin-top: 3px;
  flex-shrink: 0;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 48px !important;
}
.password-field .icon-btn {
  position: absolute;
  right: 3px;
  top: 3px;
}
.form-error {
  background: var(--subtle);
  border: 1px solid var(--negative);
  padding: 12px 14px;
  color: var(--negative);
  font-size: 12px;
  border-radius: 5px;
  margin: 0 0 18px;
}
.settings-form {
  max-width: 680px;
}
.form-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.form-section:first-child {
  padding-top: 0;
}
.form-section h2 {
  font-size: 16px;
  margin-bottom: 20px;
}
.form-section:last-child {
  border: 0;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.table-input {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  font-size: 12px;
  padding: 8px;
  max-width: 100%;
}
.menu-anchor {
  position: relative;
}
.menu-user {
  padding: 12px 12px 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.menu-user strong {
  display: block;
  font-size: 13px;
}
.menu-user small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.menu-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  padding: 12px 12px 6px;
}
.menu-item {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 12px;
  min-height: 39px;
}
.menu-item small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}
.menu-item[aria-pressed=true] {
  background: var(--selected);
  font-weight: 600;
}
.menu-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 4px;
}
.modal {
  max-width: min(620px,calc(100vw - 32px));
  width: 620px;
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--raised);
  box-shadow: var(--shadow-dialog);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop {
  background: var(--backdrop);
}
.modal.wide {
  width: 860px;
  max-width: min(860px,calc(100vw - 32px));
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.dialog-heading h2 {
  font-size: 19px;
}
.dialog-content {
  padding: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
  margin: 0 -24px -24px;
}
.dialog-content form>.notice {
  margin-bottom: 20px;
}
.dialog-content>p {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}
.command-search {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 19px 24px;
  min-height: 60px;
  font-size: 16px;
}
.command-list {
  max-height: 400px;
  overflow: auto;
  padding: 8px;
}
.command-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border-radius: 5px;
  font-size: 13px;
}
.command-item small {
  color: var(--muted);
  font-size: 11px;
}
.command-item[aria-selected=true] {
  background: var(--selected);
}
.command-empty {
  padding: 25px;
  color: var(--muted);
  font-size: 13px;
}
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  color: var(--muted);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: min(560px,calc(100vw - 32px));
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 7px;
  box-shadow: var(--shadow-menu);
  z-index: 100;
  font-size: 12px;
}
.toast button {
  color: inherit;
  display: flex;
  padding: 3px;
}
.tooltip {
  position: fixed;
  z-index: 99;
  padding: 6px 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 11px;
  border-radius: 4px;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 16px);
}
.page-footer {
  border-top: 1px solid var(--line);
  padding-block: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-brand strong {
  color: var(--secondary);
  font-weight: 500;
}
.skeleton-free {
  min-height: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.breakdown {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.breakdown:last-child {
  border-bottom: 0;
}
.breakdown .progress-label {
  font-size: 12px;
  margin-bottom: 10px;
}
.activity-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.activity-row:last-child {
  border: 0;
}
.activity-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.code-block {
  max-height: 400px;
  overflow: auto;
  background: var(--subtle);
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 5px;
  line-height: 1.65;
}
.tabs-inline {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 22px;
  overflow: auto;
}
.tabs-inline a {
  padding: 10px 2px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.tabs-inline a[aria-current=page] {
  color: var(--ink);
  font-weight: 600;
}
@media (hover:hover) and (pointer:fine) {
  .icon-btn:hover,.account-btn:hover,.btn:not(.primary):hover,.scope-btn:not([aria-pressed=true]):hover,.menu-item:not([aria-pressed=true]):hover,.command-item:hover {
    background: var(--hover);
  }
  .btn.primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
  }
  .table tbody tr:not(.selected):hover td {
    background: var(--hover);
  }
  .main-nav a:hover,.subnav a:hover,.text-btn:hover,.row-link:hover,.nav-extra:hover {
    color: var(--ink);
  }
  .row-link:hover,.link-text:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}
@media (max-width:1200px) {
  .container {
    padding-inline: 28px;
  }
  .workspace {
    margin-left: 0;
    padding-left: 20px;
  }
  .archive-layout {
    grid-template-columns: minmax(0,1fr) 302px;
    gap: 18px;
  }
  .result-table .subject-col {
    min-width: 180px;
  }
  .table td,.table th {
    padding-inline: 14px;
  }
  .two-col {
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    gap: 20px;
  }
  .brand-group {
    gap: 18px;
  }
}
@media (max-width:980px) {
  .workspace small {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar {
    gap: 16px;
  }
  .product-name {
    display: none;
  }
  .brand-group {
    gap: 18px;
  }
  .archive-layout {
    grid-template-columns: minmax(0,1fr);
  }
  .message-preview {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
  }
  .preview-top {
    grid-column: 1/-1;
  }
  .preview-footer {
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .message-text {
    max-height: 160px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .two-col.equal {
    grid-template-columns: 1fr 1fr;
  }
  .metrics {
    gap: 0;
  }
  .metric {
    padding-inline: 18px;
  }
  .metric-value {
    font-size: 25px;
  }
  .metric-value.word {
    font-size: 18px;
  }
  .page-actions .btn {
    white-space: normal;
  }
  .main-nav {
    gap: 23px;
  }
  .main-nav a {
    font-size: 12px;
  }
}
@media (max-width:700px) {
  .container {
    padding-inline: 20px;
  }
  .topbar {
    height: 75px;
    gap: 12px;
  }
  .brand-link img {
    width: 102px;
  }
  .brand-group {
    gap: 13px;
  }
  .brand-separator {
    font-size: 21px;
  }
  .workspace {
    border: 0;
    padding: 0;
    margin-left: 0;
  }
  .workspace strong {
    font-size: 12px;
  }
  .workspace small {
    max-width: 130px;
    font-size: 10px;
  }
  .workspace>.icon {
    display: none;
  }
  .top-actions {
    gap: 0;
  }
  .top-actions .help-trigger {
    display: none;
  }
  .initials {
    width: 27px;
    height: 27px;
  }
  .account-btn {
    gap: 4px;
    padding: 4px;
    margin: 0;
  }
  .account-btn>.icon {
    display: none;
  }
  .nav-extra {
    font-size: 0;
    gap: 0;
  }
  .nav-extra .icon {
    width: 14px;
  }
  .nav-row {
    gap: 12px;
  }
  .main-nav {
    gap: 22px;
    max-width: 100%;
  }
  .subnav {
    gap: 21px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 23px;
  }
  h1 {
    font-size: 28px;
  }
  .page-head p {
    font-size: 12px;
  }
  .page-actions {
    width: 100%;
  }
  .metrics {
    grid-template-columns: repeat(2,minmax(0,1fr));
    row-gap: 20px;
    padding-block: 20px;
  }
  .metric {
    padding: 0 14px;
  }
  .metric:nth-child(3) {
    padding-left: 0;
    border-left: 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .metric:nth-child(4) {
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-note {
    font-size: 10px;
  }
  .two-col.equal {
    grid-template-columns: 1fr;
  }
  .panel-head {
    padding: 16px;
  }
  .panel-body {
    padding: 16px;
  }
  .task-row {
    padding: 16px;
    gap: 12px;
  }
  .task-row strong {
    font-size: 12px;
  }
  .task-row p {
    font-size: 11px;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  main#main {
    padding-top: 26px;
  }
  .search-panel {
    padding: 15px;
  }
  .search-input input {
    font-size: 16px;
  }
  .search-line .btn {
    padding: 9px 12px;
  }
  .scope-btn {
    font-size: 11px;
    padding: 7px 10px;
  }
  .filters {
    gap: 12px;
  }
  .date-input {
    width: 135px;
  }
  .results-toolbar {
    flex-wrap: wrap;
  }
  .selection-bar .button-row {
    width: 100%;
  }
  .selection-bar .btn {
    flex: 1;
    white-space: normal;
  }
  .message-preview {
    display: block;
  }
  .preview-footer {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .field-row,.detail-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .page-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    font-size: 10px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px);
  }
  .dialog-heading {
    padding: 16px 18px;
  }
  .dialog-heading h2 {
    font-size: 18px;
  }
  .dialog-content {
    padding: 20px 18px;
  }
  .dialog-actions {
    margin: 0 -18px -20px;
    padding: 16px 18px;
  }
  .field input:not([type=checkbox]),.field textarea,.field select {
    font-size: 16px;
  }
  .command-item {
    font-size: 12px;
  }
  .table {
    min-width: 580px;
  }
  .table td {
    font-size: 12px;
  }
  .topbar .icon-btn {
    min-width: 33px;
    width: 33px;
  }
  .archive-results .table-wrap {
    border-radius: 6px;
  }
  .chart {
    height: 167px;
  }
  .page-actions .btn {
    font-size: 11px;
  }
  .toast {
    bottom: 16px;
  }
  .chart-bottom {
    align-items: flex-start;
  }
  .footer-brand {
    flex-wrap: wrap;
  }
  .page-actions .compact-select {
    max-width: 130px;
  }
}
@media (max-width:400px) {
  .workspace {
    display: none;
  }
  .brand-link img {
    width: 114px;
  }
  .topbar {
    gap: 9px;
  }
  .top-actions {
    margin-left: auto;
  }
  .container {
    padding-inline: 16px;
  }
  .main-nav {
    gap: 18px;
  }
  .metrics {
    margin-bottom: 23px;
  }
  .metric-value.word {
    font-size: 16px;
  }
  .panel-head {
    gap: 10px;
  }
  .chart-period button {
    padding: 5px 6px;
  }
  .brand-group {
    gap: 16px;
  }
  .selection-bar {
    padding: 12px;
  }
  .search-panel {
    padding: 13px;
  }
  .scope-btn {
    font-size: 10px;
  }
  .date-input {
    width: 128px;
  }
  .page-actions {
    gap: 8px;
  }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (forced-colors:active) {
  .btn,.scope-btn,.panel,.table-wrap,.modal {
    border-color: ButtonText;
  }
  .selected td {
    outline: 1px solid Highlight;
  }
  .brand-link img {
    forced-color-adjust: none;
  }
  .chart-line {
    stroke: LinkText;
  }
  .chart-point {
    stroke: LinkText;
  }
  .icon {
    fill: currentColor;
  }
}
/*Floating position is set through this stylesheet's CSSOM, never HTML style attributes.*/
#tooltip {
  left: 0;
  top: 0;
}
.small-search {
  flex: 0 1 245px;
}
.small-search input {
  height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}
.expanded-message {
  max-height: none;
  font-size: 13px;
}
.command-item[type=button] {
  width: 100%;
  text-align: left;
}
.modal .notice {
  margin-block: 18px;
}
.modal form>.notice:first-of-type {
  margin-top: 0;
}
.auth-note .text-btn {
  font-size: 10px;
  padding-block: 0;
}
.field input[aria-invalid=true],.date-input[aria-invalid=true] {
  border-color: var(--negative);
}
@media (max-width:700px) {
  .small-search {
    flex-basis: 100%;
    width: 100%;
  }
  .small-search input {
    font-size: 16px;
  }
}
/*No light-to-dark colour interpolation or flash on theme changes.*/
html[data-theme-changing] *,html[data-theme-changing] *::before,html[data-theme-changing] *::after {
  transition: none !important;
  animation: none !important;
}
.range {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}
.range::-webkit-slider-runnable-track {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
}
.range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  background: var(--brand);
  border: 2px solid var(--surface);
  outline: 1px solid var(--brand);
  border-radius: 50%;
}
.range::-moz-range-track {
  height: 3px;
  background: var(--line);
  border-radius: 2px;
}
.range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  background: var(--brand);
  border: 2px solid var(--surface);
  outline: 1px solid var(--brand);
  border-radius: 50%;
}
.mobile-context {
  display: none;
}
@media (max-width:400px) {
  .mobile-context {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 10px;
    color: var(--muted);
    font-size: 10px;
  }
  .mobile-context span:first-child {
    color: var(--secondary);
  }
}
.toast {
  width: max-content;
}
.toast>span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.toast>button {
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width:400px) {
  .main-nav {
    gap: 12px;
  }
}
