.topbar {
  display: none;
}

main {
  padding-top: 30px;
}

.portal-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 24px;
}

.portal-tab {
  border: 1px solid #d9e1da;
  border-radius: 10px;
  padding: 10px 16px;
  color: #40514d;
  background: #fff;
  cursor: pointer;
  font-weight: 750;
}

.portal-tab.active {
  color: #fff;
  border-color: #123d34;
  background: #123d34;
}

.journal-view {
  display: none;
}

body.journal-open .hero,
body.journal-open .stats,
body.journal-open .panel,
body.journal-open .bottom-actions {
  display: none;
}

body.journal-open .journal-view {
  display: block;
}

.journal-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 18px;
}

.journal-dates,
.journal-report {
  background: #fff;
  border: 1px solid #dfe5de;
  border-radius: 16px;
  overflow: hidden;
}

.journal-dates h2,
.journal-report h2 {
  padding: 20px 22px;
  border-bottom: 1px solid #e6eae5;
}

.journal-date-list {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.journal-date {
  width: 100%;
  border: 0;
  border-radius: 9px;
  padding: 12px 13px;
  text-align: left;
  color: #344541;
  background: #f3f5f1;
  cursor: pointer;
  font-weight: 750;
}

.journal-date.active {
  color: #fff;
  background: #123d34;
}

.journal-empty,
.journal-hint {
  padding: 22px;
  color: #74807c;
}

.journal-table {
  width: 100%;
  border-collapse: collapse;
}

.journal-table th,
.journal-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf0ec;
  text-align: left;
  vertical-align: top;
}

.journal-table th {
  color: #7f8985;
  background: #fafbf9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.journal-table td:first-child,
.journal-table th:first-child {
  width: 58px;
  text-align: center;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #f3f5f1;
}

.auth-card {
  width: min(380px, 100%);
  padding: 26px;
  background: #fff;
  border: 1px solid #dfe5de;
  border-radius: 16px;
  box-shadow: 0 16px 46px #1b2f2814;
}

.auth-card h1 {
  margin-bottom: 18px;
  font-size: 30px;
}

.auth-card label {
  display: block;
  margin-bottom: 8px;
  color: #6f7b77;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.auth-card input {
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 14px;
  border: 1px solid #d9e1da;
  border-radius: 10px;
  outline: 0;
}

.auth-card input:focus {
  border-color: #123d34;
}

.auth-error {
  min-height: 18px;
  margin: 10px 0 0;
  color: #923e3e;
  font-size: 13px;
  font-weight: 700;
}

body.auth-locked #app {
  pointer-events: none;
  user-select: none;
}

@media (max-width: 760px) {
  .journal-layout {
    grid-template-columns: 1fr;
  }

  .portal-tabs {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px 0;
    background: #f3f5f1;
  }

  .portal-tab {
    flex: 1;
  }
}
