:root {
  --navy: #2f6f37;
  --navy-2: #24542b;
  --orange: #62bd2d;
  --orange-soft: #edf8e7;
  --bg: #f5f4ed;
  --text: #253329;
  --muted: #6d786e;
  --line: #e1e5dc;
  --shadow: 0 12px 36px rgba(35, 84, 43, .09);
}

.company-logo {
  display: block;
  object-fit: contain;
}

.brand-logo {
  width: 58px;
  height: 42px;
  border-radius: 8px;
}

.sidebar > .brand {
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  text-align: center;
}

.sidebar > .brand .brand-logo {
  width: 132px;
  height: 72px;
}

.sidebar > .brand b {
  font-size: 1.22rem;
  letter-spacing: -.035em;
}

.auth-brand {
  background: linear-gradient(145deg, #f7f5ec 0%, #eef4e7 100%);
  color: var(--navy);
}

.auth-logo {
  width: min(300px, 72%);
  height: auto;
  position: relative;
  z-index: 2;
  mix-blend-mode: multiply;
}

.auth-brand > p {
  color: var(--navy);
  font-weight: 900;
}

.auth-pattern {
  border-color: rgba(47, 111, 55, .055);
}

.auth-pattern::after {
  background: var(--orange);
  opacity: .92;
}

.primary {
  box-shadow: 0 8px 18px rgba(47, 111, 55, .2);
}

.primary span {
  color: #b8ef96;
}

.header-actions,
.mobile-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notification-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
}

.notification-count {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid white;
  border-radius: 999px;
  background: #df4d3f;
  color: white;
  font-size: .63rem;
  font-weight: 900;
  line-height: 15px;
}

.upload-status {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--orange-soft);
}

.upload-status > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: .75rem;
}

.upload-status progress {
  display: block;
  width: 100%;
  height: 8px;
  accent-color: var(--navy);
}

.notifications-card {
  max-width: 560px;
}

.notification-setting {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 16px !important;
  padding: 14px;
  border-radius: 12px;
  background: var(--orange-soft);
}

.notification-setting span,
.notification-setting small {
  display: block;
}

.notification-setting small {
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.notification-setting input {
  width: 22px;
  height: 22px;
  flex: none;
  accent-color: var(--navy);
}

.notification-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}

.notification-list {
  max-height: min(52vh, 480px);
  overflow-y: auto;
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  width: 100%;
  padding: 14px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  text-align: left;
  cursor: pointer;
}

.notification-item.unread {
  background: #fbfdf9;
}

.notification-dot {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  border-radius: 50%;
  background: transparent;
}

.notification-item.unread .notification-dot {
  background: var(--orange);
}

.notification-item b,
.notification-item small,
.notification-item time {
  display: block;
}

.notification-item b {
  color: var(--text);
  font-size: .84rem;
}

.notification-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.4;
}

.notification-item time {
  margin-top: 5px;
  color: #98a099;
  font-size: .67rem;
}

.notification-empty {
  padding: 34px 10px;
}

.avatar {
  font-size: .7rem;
  letter-spacing: -.08em;
  line-height: 1;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.avatar.has-photo {
  color: transparent;
  box-shadow: inset 0 0 0 1px rgba(47, 111, 55, .12);
}

.member-photo {
  grid-column: 1 / -1;
  border: 1px dashed #b9c7b7;
  border-radius: 11px;
  padding: 11px 13px;
  margin: 0 !important;
}

.member-photo input {
  border: 0;
  padding: 6px 0 0;
}

.member-photo small {
  color: var(--muted);
  font-weight: 400;
}

.avatar-change {
  display: inline-flex !important;
  align-items: center;
  margin: 0 !important;
  padding: 6px 9px;
  border-radius: 7px;
  background: var(--orange-soft);
  color: var(--navy);
  font-size: .7rem !important;
  white-space: nowrap;
  cursor: pointer;
}

.avatar-change input {
  display: none;
}

.post-menu-wrap {
  position: relative;
  margin-left: 4px;
}

.post-menu {
  position: absolute;
  z-index: 5;
  right: 0;
  top: calc(100% + 4px);
  width: 106px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  box-shadow: 0 10px 28px rgba(37, 51, 41, .16);
}

.post-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-size: .8rem;
  font-weight: 800;
}

.post-menu button:hover {
  background: var(--orange-soft);
}

.post-menu .delete-post {
  color: #b33a32;
}

.edit-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .78rem;
}

.board-tabs {
  display: flex;
  gap: 8px;
  margin: -8px 0 20px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.board-tabs button {
  flex: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: white;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.board-tabs button.active {
  border-color: var(--navy);
  background: var(--navy);
  color: white;
}

.attachment video {
  display: block;
  width: 100%;
  max-height: 520px;
  background: #172018;
}

.board-help,
.archive-note {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.board-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 18px 0;
}

.board-list {
  border-top: 1px solid var(--line);
}

.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
}

.board-row > div {
  flex: 1;
  min-width: 0;
}

.board-row b,
.board-row small {
  display: block;
}

.board-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: .74rem;
}

.archive-board {
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f5efed;
  color: #9c4037;
  font-size: .72rem;
  font-weight: 800;
}

.admin-menu-card {
  max-width: 360px;
}

.admin-menu-card > .wide + .wide {
  margin-top: 10px;
}

@media (max-width: 760px) {
  .board-tabs {
    margin-top: -4px;
    margin-bottom: 15px;
  }

  .board-form {
    grid-template-columns: 1fr;
  }
}

.post-badge {
  color: #38751d;
}

.welcome-card {
  background: linear-gradient(140deg, var(--navy), var(--navy-2));
}

.welcome-card::after {
  content: "ECO";
  right: -20px;
  font-size: 5.4rem;
  color: rgba(255, 255, 255, .05);
}

@media (max-width: 760px) {
  .mobile-header .brand-logo {
    width: 64px;
    height: 30px;
  }

  .mobile-header .brand {
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .mobile-header .brand b {
    font-size: .76rem;
    line-height: 1;
  }

  .auth-brand {
    min-height: 230px;
  }

  .auth-brand .auth-logo {
    width: 190px;
  }

  .auth-brand > p {
    margin-top: 12px;
  }

  .auth-brand h1 {
    margin-top: 30px;
  }
}
