:root {
  --howler-bg: #e0e4e9;
  --howler-card: #f5f6f8;
  --howler-border: #c8cdd3;
  --howler-text: #121212;
  --howler-brand: #b00000;
  --howler-brand-dark: #890000;
  --howler-content-width: 680px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: var(--howler-bg);
  color: var(--howler-text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

.howler-header {
  background: var(--howler-brand);
  color: #fff;
}

.howler-header a {
  color: #fff;
  text-decoration: none;
}

.howler-header .howler-button {
  color: var(--howler-brand);
  background: #fff;
}

.howler-header .howler-button:hover,
.howler-header .howler-button:focus {
  color: #fff;
  background-color: var(--howler-brand-dark);
  border-color: var(--howler-brand-dark);
}

.howler-title {
  font-size: 2.2rem;
  letter-spacing: 0.02rem;
  line-height: 1;
}

.howler-header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.howler-userchip {
  font-size: 1.1rem;
  font-weight: 600;
}

.howler-shell {
  max-width: 980px;
  margin: 0 auto;
}

.howler-main-flex {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.howler-feed {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: min(100%, var(--howler-content-width));
}

.howler-panel {
  background: var(--howler-card);
  border: 1px solid var(--howler-border);
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgb(0 0 0 / 5%);
}

.howler-input-panel {
  width: min(100%, var(--howler-content-width));
  margin: 0 0 1.5rem;
}

.howler-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.howler-nav-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid #afb5bc;
}

.howler-nav-list li:last-child {
  border-bottom: 0;
}

.howl-card {
  background: var(--howler-card);
  border: 1px solid var(--howler-border);
  border-radius: 0.45rem;
  padding: 1rem 1.1rem;
  width: 100%;
  margin: 0;
}

.howl-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.howl-user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.howl-meta {
  font-size: 0.85rem;
  color: #424242;
}

.howl-text {
  margin-bottom: 0.65rem;
  font-size: 1.05rem;
  line-height: 1.4;
}

.howl-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
  font-size: 1rem;
}

.howl-actions a {
  color: #1d4f73;
}

.howler-footer {
  border-top: 2px solid var(--howler-brand);
  background: #f8f9fa;
  margin-top: auto;
}

.howler-auth-panel {
  width: min(100%, 420px);
  align-self: flex-start;
}

.howler-auth-main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.howler-auth-panel .nav-tabs {
  border-bottom: 1px solid var(--howler-border);
}

.howler-auth-panel .nav-tabs .nav-link {
  color: var(--howler-brand);
  border: 1px solid transparent;
  border-bottom: 0;
  font-weight: 600;
}

.howler-auth-panel .nav-tabs .nav-link:hover,
.howler-auth-panel .nav-tabs .nav-link:focus {
  color: var(--howler-brand-dark);
  border-color: var(--howler-border) var(--howler-border) transparent;
}

.howler-auth-panel .nav-tabs .nav-link.active {
  color: var(--howler-brand);
  background-color: #fff;
  border-color: var(--howler-border) var(--howler-border) #fff;
}

textarea.form-control {
  resize: none;
}

.howler-button {
  border: 1px solid var(--howler-brand);
  color: var(--howler-brand);
  border-radius: 0;
  background: #fff;
  font-weight: 700;
}

.howler-button:hover,
.howler-button:focus {
  background-color: var(--howler-brand);
  border-color: var(--howler-brand);
  color: #fff;
}

.howler-button-solid {
  background-color: var(--howler-brand);
  border-color: var(--howler-brand);
}

.howler-button-solid:hover,
.howler-button-solid:focus {
  background-color: var(--howler-brand-dark);
  border-color: var(--howler-brand-dark);
}

#backToTop {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1000;
}

.howler-follows {
  width: min(100%, var(--howler-content-width));
  margin: 0 0 1rem;
  border: 1px solid var(--howler-border);
  background: #efefef;
}

.howler-follows summary {
  list-style: none;
  cursor: pointer;
  padding: 0.65rem 0.8rem;
  font-weight: 600;
}

.howler-follows summary::-webkit-details-marker {
  display: none;
}

.howler-follows-list {
  border-top: 1px solid #b4b4b4;
  padding: 0.6rem 0.8rem;
}

.howler-follows-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

@media (max-width: 768px) {
  .howler-title {
    font-size: 1.7rem;
  }

  .howler-header {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .howler-header .howler-shell {
    gap: 0.55rem;
  }

  .howler-header-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .howler-userchip {
    width: auto;
    text-align: left;
    font-size: 1rem;
  }

  .howler-header .howler-button {
    padding: 0.25rem 0.55rem;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .howl-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
}
