:root {
  font-family: system-ui, sans-serif;
  color: #25282b;
  background: #f5f4f1;
  --orange: #d75113;
  --line: #dbdcd8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #24292d;
  color: white;
  padding: 18px 4%;
  flex-wrap: wrap;
}
.brand-logo {
  display: block;
  width: 196px;
  height: auto;
  max-width: 100%;
  padding: 6px;
  border-radius: 6px;
  background: white;
}
header span {
  font-weight: 400;
}
#identity {
  flex: 1;
  font-size: 14px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 24px;
}
h1 {
  font-size: 26px;
  margin-top: 0;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 16px;
}
p,
small {
  line-height: 1.55;
}
.panel,
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}
.card b {
  display: block;
  font-size: 24px;
  margin: 6px 0;
}
.card {
  margin: 0;
}
.positive {
  background: #e2f5e8;
  color: #166332;
}
.negative {
  background: #ffe8e4;
  color: #a02721;
}
.pending {
  background: #fff1c6;
  color: #745606;
}
.manual {
  border-left: 4px solid #d75113;
}
button,
.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: #24292d;
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}
button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus,
select:focus,
textarea:focus {
  outline: 3px solid #ffba7d;
  outline-offset: 2px;
}
form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 14px;
}
input,
select,
textarea {
  font: inherit;
  border: 1px solid #b7bcb9;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  color: inherit;
  background: white;
}
textarea {
  min-height: 80px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row > * {
  flex: 1;
}
nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
nav .active {
  border-color: var(--orange);
  color: var(--orange);
  font-weight: 700;
}
.table {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: #f6f5f2;
  white-space: nowrap;
}
.num {
  text-align: right;
  white-space: nowrap;
}
.muted {
  color: #626a6e;
  font-size: 13px;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  padding: 3px 6px;
  font-size: 12px;
  background: #fff0dc;
  color: #91430e;
}
.photos {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.photos img {
  max-width: 150px;
  max-height: 120px;
}
#message:not(:empty) {
  padding: 12px 4%;
  background: #fff1c6;
  color: #742d0d;
}
#connection {
  padding: 6px 4%;
  background: #e6e9e6;
  font-size: 13px;
}
.login {
  max-width: 430px;
  margin: 40px auto;
}
.service {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}
details {
  margin: 12px 0;
}
summary {
  cursor: pointer;
}
progress {
  width: 100%;
  accent-color: var(--orange);
}
.entry {
  border-left: 3px solid var(--orange);
  padding: 12px;
  margin: 12px 0;
  background: #faf9f6;
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.danger {
  color: #a02721;
}
.status {
  font-weight: 600;
}
@media (max-width: 600px) {
  main {
    padding: 14px;
  }
  .panel {
    padding: 14px;
  }
  .row {
    display: grid;
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
  }
  .card {
    padding: 12px;
  }
  .card b {
    font-size: 20px;
  }
  header {
    padding: 14px;
  }
  h1 {
    font-size: 22px;
  }
  nav button {
    flex: 1;
  }
  th,
  td {
    padding: 8px;
  }
}

.task-done {
  border-left: 5px solid #218141;
}
.task-card > summary {
  line-height: 1.8;
}
.badge.positive {
  background: #e2f5e8;
  color: #166332;
}
.badge.pending {
  background: #fff1c6;
  color: #745606;
}
[hidden] {
  display: none !important;
}
.task-card {
  overflow-wrap: anywhere;
}

.local-unlock { width: min(460px, calc(100vw - 32px)); margin: auto; }
.local-unlock::backdrop { background: #0008; }
.local-unlock [role="alert"] { color: #a02721; }
