:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #172b3a;
  background: #f4f6f7;
  line-height: 1.6;
  --accent: #076860;
  --border: #cbd5da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 22px max(20px, calc((100vw - 1100px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.identity strong {
  display: block;
  font-size: 20px;
}
.identity span:not(.mark) {
  display: block;
  font-size: 13px;
  color: #526775;
}
.mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 700;
}
main {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
  min-height: 70vh;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 21px;
}
p {
  max-width: 75ch;
}
button,
.button {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary {
  background: white;
  color: var(--accent);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
input,
textarea,
select {
  font: inherit;
  padding: 10px;
  border: 1px solid #8a9ca7;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  width: 100%;
  min-width: 0;
}
textarea {
  min-height: 130px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  margin: 18px 0 6px;
}
form button {
  margin-top: 20px;
}
a {
  color: var(--accent);
}
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
}
.login {
  max-width: 480px;
  margin: 60px auto;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  align-items: end;
  gap: 12px;
}
.filters label {
  margin-top: 0;
}
.filters button {
  margin: 0;
}
.ticket {
  display: block;
  padding: 18px 0;
  border-bottom: 1px solid #e0e5e8;
  text-decoration: none;
}
.ticket strong {
  display: block;
  font-size: 17px;
}
.meta {
  font-size: 13px;
  color: #526775;
}
.badge {
  background: #e0f1ed;
  color: #075c54;
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 12px;
  display: inline-block;
  margin-right: 7px;
}
.warning {
  background: #fff0cd;
  color: #664700;
}
.notice {
  background: #e0f1ed;
  padding: 14px 18px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.error {
  background: #fff0ed;
  color: #862b1d;
}
.muted {
  color: #526775;
}
.empty {
  padding: 28px;
  text-align: center;
  color: #526775;
}
.thread {
  list-style: none;
  padding: 0;
}
.message {
  border-left: 3px solid var(--accent);
  padding: 14px 18px;
  background: #f4faf8;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
}
.message.incoming {
  border-color: #8697a3;
  background: #f3f5f7;
}
.message.private {
  border-color: #b48010;
  background: #fff8e7;
}
.message-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
}
.check input {
  width: auto;
}
details {
  margin: 18px 0;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
footer {
  text-align: center;
  color: #526775;
  font-size: 13px;
  padding: 30px;
}
.skip {
  position: absolute;
  top: -100px;
  left: 10px;
  background: white;
  padding: 10px;
  z-index: 10;
}
.skip:focus {
  top: 10px;
}
:focus-visible {
  outline: 3px solid #d28500;
  outline-offset: 4px;
}
.pages {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.count {
  font-size: 30px;
  font-weight: 700;
}
#account {
  font-size: 13px;
}
#account button {
  margin-left: 12px;
}
@media (max-width: 700px) {
  header {
    padding: 16px;
    align-items: flex-start;
  }
  .identity span:not(.mark) {
    display: none;
  }
  main {
    margin-top: 20px;
  }
  .grid,
  .filters {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .filters button {
    width: 100%;
  }
  h1 {
    font-size: 26px;
  }
  #account button {
    display: block;
    margin: 7px 0;
  }
  .toolbar button {
    width: 100%;
  }
}
