:root {
  --ink: #172a46;
  --green: #2563b9;
  --green-dark: #174b91;
  --coral: #3979d6;
  --cream: #f1f6fc;
  --paper: #f8fbff;
  --mint: #e5f0ff;
  --peach: #eaf2ff;
  --lavender: #e8edff;
  --muted: #65748a;
  --line: #d9e4f1;
  --shadow: 0 18px 50px rgba(33, 74, 130, 0.14);
}

body,
.market {
  background: #f2f6fb;
}
.composer,
.feed-post {
  border-color: #dfe8f2;
}
.market-note {
  background: #e8f2ff;
}
.feed-offers {
  background: #f8fbff;
}
.comment-bubble {
  background: #e9f1fb;
}
.comment-avatar {
  background: #e2eaff;
  color: #345c9c;
}
.post-head .favorite {
  background: #edf3fa;
}
.live-label span,
.pulse,
.status-pill:before {
  background: #4d8ee8;
}
.difference {
  background: #edf3fa;
}

.post-head .post-avatar,
.comment-avatar,
.composer-top .avatar,
.seller .avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  line-height: 1;
  text-align: center;
}
.post-head .post-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  font-size: 16px;
  margin: 0;
}
.post-avatar img,
.comment-avatar img,
.avatar img,
.profile-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.comment-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  font-size: 13px;
}
.offers-title {
  font-size: 13px;
}
.offers-title span {
  font-size: 12px;
}
.comment-bubble {
  padding: 10px 13px;
  gap: 2px 7px;
}
.comment-bubble b,
.comment-bubble span {
  font-size: 13px;
}
.comment-bubble small {
  font-size: 11px;
  margin-top: 3px;
}
.offer-comment > i {
  font-size: 10px;
}
.no-offers {
  font-size: 13px;
}
.post-actions {
  display: block;
}
.post-actions .offer-action {
  width: 100%;
  font-size: 13px;
  padding: 12px;
}
.post-head-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.post-head .post-head-actions .favorite {
  margin: 0;
}
.post-menu-wrap {
  position: relative;
}
.post-menu-trigger {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #edf3fa;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  padding: 0 0 5px;
}
.post-menu-trigger:hover,
.post-menu-trigger[aria-expanded="true"] {
  background: var(--mint);
  color: var(--green);
}
.post-menu {
  position: absolute;
  z-index: 12;
  right: 0;
  top: 43px;
  width: 168px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(23, 42, 70, 0.18);
}
.post-menu[hidden] {
  display: none;
}
.post-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 10px 11px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
}
.post-menu button:hover {
  background: var(--mint);
  color: var(--green);
}
.post-menu button span {
  font-size: 16px;
}

.composer-top .avatar {
  font-size: 15px;
}
.profile-card {
  width: min(500px, 100%);
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #edf4fc;
  border-radius: 18px;
  padding: 15px;
  margin: 18px 0 22px;
}
.profile-avatar {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--green);
  font-size: 25px;
  font-weight: 800;
}
.profile-identity b,
.profile-identity small {
  display: block;
}
.profile-identity small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.avatar-upload {
  display: inline-block !important;
  margin-top: 9px !important;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--green) !important;
  cursor: pointer;
}
.avatar-upload input {
  display: none;
}
.profile-logout {
  width: 100%;
  border: 0;
  background: transparent;
  color: #6c7890;
  padding: 13px;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 700;
}
.profile-offers-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  margin-top: 18px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}
.profile-offers-link:hover {
  background: var(--mint);
}
.standalone-page {
  min-height: calc(100vh - 76px);
  padding: 72px max(24px, calc((100% - 760px) / 2));
  background: #f3f5f2;
}
.standalone-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(20, 53, 47, 0.07);
}
.standalone-card h1 {
  font-size: 34px;
  margin: 8px 0 6px;
}
.standalone-card > p {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 24px;
}
.standalone-card .empty {
  padding: 35px 10px 20px;
}
.account-card {
  min-height: 560px;
}
.account-tabs {
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  margin: 24px 0 22px;
}
.account-tabs button {
  position: relative;
  border: 0;
  background: none;
  padding: 0 0 12px;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.account-tabs button.active {
  color: var(--green);
}
.account-tabs button.active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--green);
}
.account-panel {
  max-width: 620px;
}
.account-form label {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  margin: 14px 0;
}
.account-form input {
  width: 100%;
  margin-top: 7px;
}
.account-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: #19704b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.account-message.error {
  color: #b42318;
}
.account-loading {
  padding: 30px 0;
  color: var(--muted);
}
.account-listing {
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: start;
  cursor: pointer;
}
.account-listing:hover {
  border-color: #9db9e5;
  background: #fbfdff;
}
.account-listing:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
.account-listing-thumb {
  width: 72px;
  height: 72px;
  grid-row: span 2;
  border-radius: 10px;
  object-fit: cover;
}

@media (max-width: 600px) {
  .profile-card {
    padding: 24px 18px;
  }
  .profile-avatar {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
  }
  .standalone-page {
    padding: 32px 16px;
  }
  .standalone-card {
    padding: 24px 16px;
  }
  .standalone-card h1 {
    font-size: 28px;
  }
  .account-tabs {
    gap: 20px;
  }
  .account-listing {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .account-listing-thumb {
    width: 60px;
    height: 60px;
  }
  .account-listing .offer-amount {
    grid-column: 2;
    font-size: 15px;
  }
  .post-menu {
    width: 158px;
  }
}
