:root {
  font-family:
    Inter,
    Segoe UI,
    Arial,
    sans-serif;
  color: #202d31;
  background: #f5f7f8;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  border-radius: 8px;
  padding: 11px 17px;
  background: #067568;
  color: white;
  font-weight: 600;
}
button:hover {
  filter: brightness(0.94);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.secondary {
  background: #edf2f3;
  color: #35474b;
}
a {
  color: #067568;
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #d7e1e4;
  border-radius: 7px;
  background: white;
  color: #24383d;
  outline: none;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #078b79;
  box-shadow: 0 0 0 3px #078b7915;
}
label {
  display: block;
  font-size: 12px;
  color: #52666b;
  margin: 14px 0 6px;
}
textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  margin: 0 0 9px;
}
h2 {
  font-size: 17px;
  margin: 0 0 15px;
}
p {
  line-height: 1.7;
  color: #74858a;
  margin: 5px 0 18px;
}
.shell {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #132b2c;
  color: #c4d8d8;
  padding: 30px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.logo {
  color: white;
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -1px;
  padding: 0 13px 36px;
}
.logo span {
  color: #67dec2;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  text-align: left;
  background: transparent;
  color: #a3bdbc;
  font-weight: 500;
  padding: 13px;
}
.nav button.active {
  background: #254443;
  color: #a3f2d8;
}
.side-bottom {
  margin-top: auto;
  border-top: 1px solid #31504f;
  padding: 18px 10px 0;
  font-size: 12px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.main {
  max-width: 1390px;
  width: 100%;
  padding: 38px 44px;
  margin: 0 auto;
  align-self: start;
}
.topline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #84969a;
  margin-bottom: 18px;
}
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}
.pill {
  font-size: 11px;
  border-radius: 30px;
  padding: 6px 10px;
  background: #e4f5ed;
  color: #238061;
  white-space: nowrap;
}
.pill.warn {
  background: #fff1d9;
  color: #9c6714;
}
.pill.bad {
  background: #fbe4e4;
  color: #ac4444;
}
.grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
}
.card {
  background: white;
  border: 1px solid #e1e8ea;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 3px 6px #17303703;
  margin-bottom: 22px;
}
.card small,
.muted {
  color: #89999d;
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row > * {
  flex: 1;
}
.row button {
  flex: 0 0 auto;
}
.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}
.empty {
  text-align: center;
  padding: 50px 22px;
  color: #8a9c9e;
  border: 1px dashed #d9e2e4;
  border-radius: 9px;
}
.preview {
  background: #f8fafb;
  border: 1px solid #e1e7e9;
  border-radius: 10px;
  padding: 20px;
  white-space: pre-wrap;
  line-height: 1.7;
  min-height: 100px;
}
.preview .caption {
  margin: 14px 0;
  color: #3b4e54;
  font-size: 14px;
}
.preview .linkbox {
  border-top: 1px solid #e0e6e7;
  margin-top: 20px;
  padding-top: 16px;
  font-size: 12px;
  word-break: break-all;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #87979c;
  background: #f8fafb;
  text-transform: uppercase;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid #eef2f3;
}
td {
  vertical-align: top;
  max-width: 360px;
  overflow-wrap: anywhere;
}
td .excerpt {
  font-size: 12px;
  color: #7c8e93;
  line-height: 1.6;
  margin-top: 5px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  padding: 21px 24px;
  border: 1px solid #dfe8e9;
  border-radius: 10px;
  background: white;
}
.stat strong {
  font-size: 27px;
  display: block;
  margin-top: 8px;
}
.stat span {
  font-size: 12px;
  color: #7b8e91;
}
.login {
  max-width: 410px;
  margin: 11vh auto;
  padding: 35px;
}
.login-logo {
  font-size: 30px;
  font-weight: 750;
  color: #17685b;
  letter-spacing: -1px;
  margin-bottom: 30px;
}
.login button {
  width: 100%;
  margin-top: 24px;
}
.secret {
  background: #edf7f3;
  padding: 18px;
  border-radius: 8px;
  word-break: break-all;
  font:
    12px/1.8 Consolas,
    monospace;
  white-space: pre-wrap;
}
details {
  margin-top: 18px;
}
summary {
  cursor: pointer;
  color: #547574;
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: 430px;
  background: #183c38;
  color: white;
  border-radius: 10px;
  padding: 0;
  z-index: 100;
}
#toast:not(:empty) {
  padding: 16px 20px;
  box-shadow: 0 8px 35px #0002;
}
.hint {
  padding: 13px 15px;
  background: #eef7f4;
  border-radius: 8px;
  color: #4a766a;
  font-size: 12px;
  line-height: 1.7;
  margin: 18px 0;
}
.source-item {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid #edf1f2;
  padding: 15px 0;
}
.source-item > div {
  flex: 1;
}
.source-item strong {
  font-size: 13px;
}
.source-item small {
  display: block;
  margin-top: 6px;
}
.source-item button {
  font-size: 12px;
  padding: 8px 12px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: #78918d;
  text-transform: uppercase;
  margin: 23px 0 4px;
}
code {
  font-family: Consolas, monospace;
  font-size: 12px;
}
footer {
  font-size: 11px;
  color: #9caaad;
  margin-top: 24px;
  text-align: center;
}
.account {
  border: 1px solid #dce5e6;
  border-radius: 30px;
  padding: 7px 12px;
  font-size: 12px;
  color: #5a7176;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 1000px) {
  .main {
    padding: 28px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
  }
  .logo {
    padding: 0 0 14px;
  }
  .nav {
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
  }
  .nav button {
    text-align: center;
    padding: 10px 4px;
    font-size: 11px;
  }
  .side-bottom {
    display: none;
  }
  .main {
    padding: 22px 16px;
  }
  .header {
    align-items: start;
  }
  .account {
    max-width: 160px;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 15px 12px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
}

.page-picker {
  max-height: 230px;
  overflow: auto;
  border: 1px solid #d7e1e4;
  border-radius: 8px;
  padding: 8px 12px;
}
.page-picker label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  color: #264441;
  font-size: 13px;
}
.page-picker input,
input[name="pages"] {
  width: 16px;
  height: 16px;
  accent-color: #067568;
}
.page-picker small {
  display: block;
  font-size: 11px;
  color: #87999d;
  margin-top: 5px;
}
#profileFilter {
  max-width: 220px;
}
tr[hidden] {
  display: none;
}

.mobile-logout {
  display: none;
}
@media (max-width: 650px) {
  .mobile-logout {
    display: inline-block;
    padding: 8px;
    font-size: 11px;
  }
  .header {
    flex-wrap: wrap;
  }
  .nav {
    grid-template-columns: repeat(5, 1fr);
  }
}
