﻿/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  color: #1a1a1a;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
input, select, button, textarea { font-family: inherit; font-size: inherit; }

/* ===== App Header ===== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  margin: 0 auto;
  background: rgba(252, 250, 246, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(32, 36, 51, 0.08);
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  min-height: 58px;
  box-shadow:
    0 8px 18px rgba(18, 23, 38, 0.06),
    0 1px 0 rgba(18, 23, 38, 0.06);
}
.app-logo {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.app-logo-image {
  display: block;
  width: auto;
  height: 40px;
  max-width: 168px;
  object-fit: contain;
}
.app-header-right { display: flex; align-items: center; gap: 8px; }
.header-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2b3040;
  border-radius: 4px;
  border: 1px solid rgba(32, 36, 51, 0.08);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
}
.header-icon:active { background: rgba(239, 238, 234, 0.9); }

/* ===== App Main ===== */
.app-main {
  padding: 6px 0 82px;
  min-height: calc(100vh - 54px);
}

.page-home .app-main {
  padding-top: 58px;
}

.page-write .app-main,
.page-network .app-main,
.page-chat .app-main,
.page-profile .app-main {
  padding-top: 0;
}

/* ===== Bottom Nav ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: linear-gradient(180deg, #3a4048 0%, #20242a 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0;
  box-shadow:
    0 -8px 22px rgba(10, 12, 16, 0.18),
    0 -1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(22px);
  display: flex;
  z-index: 100;
  padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav .nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 5px 0 3px;
  font-size: 10px;
  font-weight: 700;
  color: rgba(245, 242, 235, 0.58);
  gap: 3px;
  border-radius: 2px;
}

.bottom-nav.bottom-nav-six .nav-item {
  min-width: 0;
  font-size: 9px;
}

.bottom-nav.bottom-nav-six .nav-item svg {
  width: 20px;
  height: 20px;
}
.bottom-nav .nav-item.active {
  color: #f5f2eb;
  background: rgba(255, 255, 255, 0.06);
}
.bottom-nav .nav-item svg { transition: color .15s; }
.nav-item-write { position: relative; }
.write-btn {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  box-shadow: none;
}

/* ===== Category Tabs ===== */
.category-tabs {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  background: #f4f4f4;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s;
}
.category-tab.active {
  background: #4f46e5;
  color: #fff;
}

/* ===== Post Feed ===== */
.feed-list { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.post-card {
  background: #fff;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 16px;
  cursor: pointer;
}
.post-card:active { background: #fafafa; }
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta { flex: 1; min-width: 0; }
.post-author {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-group-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.post-time {
  font-size: 12px;
  color: #aaa;
  flex-shrink: 0;
}
.post-content {
  font-size: 15px;
  line-height: 1.6;
  color: #1a1a1a;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-media-grid {
  display: grid;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  gap: 2px;
}
.post-media-grid.single { grid-template-columns: 1fr; }
.post-media-grid.double { grid-template-columns: 1fr 1fr; }
.post-media-grid.triple { grid-template-columns: 1fr 1fr; }
.post-media-grid.triple .media-item:first-child { grid-column: 1 / -1; }
.media-item { aspect-ratio: 1; overflow: hidden; background: #eee; }
.media-item img, .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.post-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}
.post-action {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #888;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.post-action.liked { color: #e53e3e; }
.post-action svg { flex-shrink: 0; }

/* ===== Group Tag Badges ===== */
.group-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.tag-school  { background: #dbeafe; color: #1d4ed8; }
.tag-company { background: #dcfce7; color: #15803d; }
.tag-clan    { background: #fce7f3; color: #be185d; }
.tag-region  { background: #fff7ed; color: #c2410c; }

/* ===== Post Detail ===== */
.post-detail {
  background: #fff;
  min-height: 100%;
  padding-bottom: 18px;
}
.post-detail-header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #ebebeb;
  gap: 12px;
}
.back-btn {
  display: flex;
  align-items: center;
  color: #1a1a1a;
  padding: 4px;
}
.post-detail-body { padding: 16px; }
.post-detail-content {
  font-size: 16px;
  line-height: 1.7;
  color: #1a1a1a;
  margin-bottom: 16px;
  white-space: pre-wrap;
}
.post-detail-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
}
.comment-section {
  padding: 0 0 16px;
}
.comment-section-title {
  font-size: 14px;
  font-weight: 700;
  padding: 14px 16px 8px;
  color: #555;
}
.comment-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f5f5f5;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.comment-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.comment-author { font-size: 13px; font-weight: 600; }
.comment-time   { font-size: 11px; color: #aaa; margin-left: auto; }
.comment-content { font-size: 14px; line-height: 1.5; color: #333; padding-left: 38px; }
.comment-reply { padding-left: 32px; background: #fafafa; }
.comment-input-bar {
  position: relative;
  bottom: auto;
  left: auto;
  transform: none;
  width: 100%;
  max-width: none;
  background: #fff;
  border-top: 1px solid #eceef2;
  padding: 12px 0 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  z-index: auto;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.comment-input-bar-inline { margin-top: 0; }
.comment-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #d9dee8;
  border-radius: 12px;
  font-size: 13px;
  outline: none;
  background: #f7f9fc;
  color: #111821;
}
.comment-input:focus {
  border-color: #2f4f8f;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 79, 143, 0.08);
}
.comment-submit {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(180deg, #4667a7 0%, #2c4570 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 10px 18px rgba(41, 64, 105, 0.18);
}

.post-detail-page {
  margin: -18px -14px -22px;
  background: #fff;
  min-height: calc(100dvh - 58px - 68px);
}

.post-detail-surface {
  background: #fff;
  border-radius: 0;
  padding: 18px 18px 14px;
  box-shadow: none;
}

.post-detail-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 18px;
  border-bottom: 1px solid #eceef2;
}

.post-detail-head h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #131720;
}

.post-detail-card {
  padding: 0 0 10px;
  border-bottom: 1px solid #eceef2;
}

.post-detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.post-author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  background: #e7edf8;
  color: #31456f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.post-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-author-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.post-author-info strong {
  font-size: 14px;
  font-weight: 700;
  color: #141a24;
  letter-spacing: -0.01em;
}

.post-author-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: #7b8495;
  font-size: 11px;
}

.post-affiliation-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: #e4f8de;
  color: #2f7d32;
  font-size: 12px;
  font-weight: 700;
}

.post-detail-text {
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.78;
  color: #11151d;
  white-space: pre-wrap;
  margin-bottom: 18px;
  letter-spacing: -0.03em;
}

.post-detail-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.post-detail-media-grid.single {
  grid-template-columns: 1fr;
}

.post-detail-media-item {
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background: #f3f5f9;
}

.post-detail-media-item img,
.post-detail-media-item video {
  display: block;
  width: 100%;
  height: auto;
}

.post-detail-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: none;
  background: transparent;
  color: #596172;
  font-size: 13px;
  font-weight: 600;
}

.stat-button.active {
  color: #23356a;
}

.stat-static {
  cursor: default;
}

.comment-form-inline {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-form-inline .comment-input,
.comment-form-inline .comment-submit {
  border-radius: 12px;
}

.comment-section-head {
  padding: 18px 0 12px;
  border-top: 1px solid #eceef2;
}

.comment-section-head strong {
  font-size: 14px;
  color: #1b2230;
}

.comment-empty {
  padding: 4px 0 10px;
  color: #7a8292;
  font-size: 13px;
}

.comment-card {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0f2f6;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.comment-topline strong {
  font-size: 12px;
  color: #131a24;
}

.comment-topline-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-topline-meta span {
  color: #8b93a3;
  font-size: 11px;
}

.comment-body p {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.7;
  color: #171d27;
  white-space: pre-wrap;
  letter-spacing: -0.025em;
}

.comment-delete-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 600;
  color: #7d8696;
  cursor: pointer;
}

.setup-school-meta {
  margin-top: 10px;
}

.setup-school-meta-panel {
  padding: 14px;
  border: 1px solid #e7ebf3;
  border-radius: 16px;
  background: #fafbfd;
}

.setup-school-meta-head {
  font-size: 14px;
  font-weight: 700;
  color: #172031;
  margin-bottom: 6px;
}

.setup-school-meta-copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #737c8c;
}

.setup-school-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.setup-meta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setup-meta-field span {
  font-size: 12px;
  font-weight: 700;
  color: #5d6678;
}

.setup-meta-select,
.setup-meta-input {
  width: 100%;
  height: 42px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  color: #111821;
}

.setup-inline-helper {
  margin-top: 8px;
}

.setup-inline-request {
  padding: 0;
  border: none;
  background: transparent;
  color: #415488;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.setup-inline-request:disabled {
  color: #9aa4b8;
  cursor: not-allowed;
}

/* ===== Write Post ===== */
.write-container {
  background: #fff;
  min-height: calc(100vh - 54px - 80px);
  padding: 0 0 180px;
}
.write-header {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #ebebeb;
  gap: 12px;
}
.write-header h1 { flex: 1; font-size: 17px; font-weight: 700; }
.write-group-select {
  padding: 12px 16px;
  border-bottom: 1px solid #f0f0f0;
}
.write-group-select label { display: block; font-size: 12px; color: #888; margin-bottom: 6px; font-weight: 600; letter-spacing: 0.3px; }
.group-type-tabs { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.group-type-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid #e0e0e0;
  background: #fff;
  color: #666;
  cursor: pointer;
}
.group-type-btn.selected { border-color: #4f46e5; color: #4f46e5; background: #ede9fe; }
.affiliation-chip-list {
  flex-wrap: wrap;
}
.affiliation-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
}
.affiliation-btn small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #97918a;
}
.affiliation-btn.selected small {
  color: #6a63c7;
}
.write-textarea {
  width: 100%;
  min-height: 200px;
  padding: 16px;
  border: none;
  outline: none;
  font-size: 16px;
  line-height: 1.7;
  resize: none;
  color: #1a1a1a;
}
.write-toolbar {
  position: fixed;
  bottom: calc(82px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-top: 1px solid #ebebeb;
  box-shadow: 0 -10px 24px rgba(18, 23, 38, 0.08);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 100;
}
.media-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f4f4f4;
  border: none;
  cursor: pointer;
  color: #555;
}
.media-preview-list { display: flex; gap: 8px; overflow-x: auto; flex: 1; }
.media-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e0e0e0;
}
.submit-btn {
  padding: 10px 22px;
  background: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
}
.submit-btn:disabled { opacity: .5; }

/* ===== Profile ===== */
.profile-container { padding: 0 0 32px; }
.profile-top {
  background: #fff;
  padding: 28px 20px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #ebebeb;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #e0e7ff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { flex: 1; }
.profile-name { font-size: 20px; font-weight: 700; margin-bottom: 2px; }
.profile-nickname { font-size: 14px; color: #888; margin-bottom: 8px; }
.profile-section {
  background: #fff;
  margin-top: 8px;
  border-top: 1px solid #ebebeb;
  border-bottom: 1px solid #ebebeb;
  padding: 0 16px;
}
.profile-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}
.profile-section-title { font-size: 15px; font-weight: 700; }
.profile-section-action { font-size: 13px; color: #4f46e5; font-weight: 600; }
.group-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #f5f5f5;
}
.group-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.group-item-info { flex: 1; min-width: 0; }
.group-item-name { font-size: 14px; font-weight: 600; }
.group-item-meta { font-size: 12px; color: #888; }

/* ===== Profile Setup ===== */
.setup-container { padding: 24px 20px 100px; }
.setup-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.setup-subtitle { font-size: 14px; color: #888; margin-bottom: 24px; }
.setup-section { margin-bottom: 28px; }
.setup-section-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.setup-section-title .tag-optional {
  font-size: 11px;
  font-weight: 500;
  color: #aaa;
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
}
.search-input-wrap { position: relative; }
.search-input-wrap input { padding-right: 42px; }
.search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}
.search-results {
  background: #fff;
  border: 1.5px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 200px;
  overflow-y: auto;
}
.search-result-item {
  padding: 12px 14px;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  font-size: 14px;
}
.search-result-item:hover { background: #f8f8f8; }
.search-result-item:last-child { border-bottom: none; }
.selected-groups { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.selected-group-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f7ff;
  border: 1.5px solid #e0dcff;
  border-radius: 10px;
  padding: 10px 14px;
}
.selected-group-name { font-size: 14px; font-weight: 600; color: #4f46e5; }
.selected-group-meta { font-size: 12px; color: #888; }
.remove-group-btn {
  background: none;
  border: none;
  color: #aaa;
  cursor: pointer;
  padding: 4px;
  display: flex;
}
.setup-bottom {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: #fff;
  padding: 12px 20px;
  border-top: 1px solid #ebebeb;
  z-index: 100;
}

/* ===== Empty State ===== */
.empty-state {
  padding: 80px 24px;
  text-align: center;
  color: #888;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-state svg { color: #ccc; margin-bottom: 8px; }
.empty-state p { font-size: 15px; font-weight: 600; }
.empty-hint { font-size: 14px; color: #aaa; }

/* ===== Auth ===== */
.auth-container {
  padding: 48px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-logo { font-size: 38px; font-weight: 800; color: #4f46e5; text-align: center; letter-spacing: -1px; margin-bottom: 4px; }
.auth-subtitle { text-align: center; color: #888; font-size: 14px; }
.auth-header { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.auth-header h1 { font-size: 22px; font-weight: 700; }
.auth-footer { text-align: center; font-size: 14px; color: #888; }
.auth-footer a { color: #4f46e5; font-weight: 600; }

/* ===== Form ===== */
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
label { font-size: 14px; font-weight: 600; color: #444; }
.required { color: #e53e3e; }
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  color: #1a1a1a;
}
input:focus, select:focus, textarea:focus { border-color: #4f46e5; }

/* ===== Buttons ===== */
.btn {
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity .15s;
}
.btn:active { opacity: .8; }
.btn-primary { background: #4f46e5; color: #fff; }
.btn-outline { background: #fff; color: #666; border: 1.5px solid #e0e0e0; }
.btn-full { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 14px; border-radius: 8px; }

/* ===== Alert ===== */
.alert {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
}
.alert-error { background: #fee2e2; color: #b91c1c; }
.alert-success { background: #dcfce7; color: #15803d; }

/* ===== Error Page ===== */
.error-container {
  padding: 80px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  color: #888;
}

/* ===== Auth Refresh ===== */
.auth-hero {
  position: relative;
  min-height: 100vh;
  padding: 24px 16px 32px;
  overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(143, 160, 255, 0.30), transparent 18%),
    radial-gradient(circle at 78% 26%, rgba(119, 224, 209, 0.18), transparent 16%),
    radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.10), transparent 14%),
    linear-gradient(145deg, rgba(24, 28, 45, 0.97), rgba(44, 50, 78, 0.90)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='1400' viewBox='0 0 900 1400'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.11)' stroke-width='2'%3E%3Cpath d='M120 210L280 320L430 240L610 360L760 250'/%3E%3Cpath d='M150 640L310 520L470 610L630 500L760 580'/%3E%3Cpath d='M110 1010L270 920L430 1040L610 940L760 1080'/%3E%3Cpath d='M280 320L310 520'/%3E%3Cpath d='M430 240L470 610'/%3E%3Cpath d='M610 360L630 500'/%3E%3Cpath d='M270 920L310 520'/%3E%3Cpath d='M430 1040L470 610'/%3E%3Cpath d='M610 940L630 500'/%3E%3C/g%3E%3Cg fill='rgba(255,255,255,0.92)'%3E%3Ccircle cx='120' cy='210' r='8'/%3E%3Ccircle cx='280' cy='320' r='7'/%3E%3Ccircle cx='430' cy='240' r='8'/%3E%3Ccircle cx='610' cy='360' r='7'/%3E%3Ccircle cx='760' cy='250' r='8'/%3E%3Ccircle cx='150' cy='640' r='8'/%3E%3Ccircle cx='310' cy='520' r='7'/%3E%3Ccircle cx='470' cy='610' r='8'/%3E%3Ccircle cx='630' cy='500' r='7'/%3E%3Ccircle cx='760' cy='580' r='8'/%3E%3Ccircle cx='110' cy='1010' r='8'/%3E%3Ccircle cx='270' cy='920' r='7'/%3E%3Ccircle cx='430' cy='1040' r='8'/%3E%3Ccircle cx='610' cy='940' r='7'/%3E%3Ccircle cx='760' cy='1080' r='8'/%3E%3C/g%3E%3C/svg%3E") center/cover;
  transform: scale(1.02);
  filter: saturate(1);
}
.auth-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.10), transparent 18%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, rgba(13, 15, 24, 0.10), rgba(13, 15, 24, 0.24));
}
.auth-hero-panel {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 56px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.auth-brand {
  color: #f5f2eb;
  padding: 8px 8px 0;
}
.auth-brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.auth-brand-mark {
  margin-top: 18px;
  font-family: 'Cormorant Garamond', 'Noto Serif KR', serif;
  font-size: 4rem;
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.06em;
  text-transform: lowercase;
}
.auth-brand-logo-wrap {
  margin-top: 18px;
}
.auth-brand-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(10, 14, 30, 0.22));
}
.auth-brand-copy {
  margin-top: 14px;
  max-width: 260px;
  color: rgba(245, 242, 235, 0.82);
  font-size: 14px;
  line-height: 1.7;
}
.auth-card {
  background: #fbfaf7;
  border: 1px solid rgba(33, 36, 49, 0.08);
  border-radius: 24px;
  padding: 24px 18px 20px;
  box-shadow:
    0 22px 44px rgba(18, 23, 38, 0.16),
    0 2px 10px rgba(18, 23, 38, 0.06);
}
.auth-card-topline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8578;
}
.auth-card-title {
  margin-top: 10px;
  font-family: 'Noto Sans KR', sans-serif;
  font-size: 1.9rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #1d2130;
}
.auth-card-description {
  margin-top: 8px;
  margin-bottom: 18px;
  color: #74706a;
  font-size: 13px;
  line-height: 1.6;
}
.auth-form-modern {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-social-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 14px;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  transition: transform .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.auth-social-btn:hover,
.auth-social-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.auth-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.auth-social-btn-google {
  background: #fff;
  color: #161b22;
}

.auth-social-btn-kakao {
  background: #fee500;
  color: #191600;
}

.auth-social-btn-naver {
  background: #03c75a;
  color: #fff;
}

.auth-divider {
  position: relative;
  margin: 12px 0 18px;
  text-align: center;
}

.auth-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(17, 24, 39, 0.08);
}

.auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 12px;
  background: #fff;
  color: #7b8698;
  font-size: 12px;
  font-weight: 700;
}
.auth-form-modern .form-group {
  gap: 6px;
}
.auth-form-modern label {
  font-size: 11px;
  font-weight: 700;
  color: #282b38;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.auth-form-modern input {
  height: 50px;
  border: none;
  border-bottom: 1px solid rgba(37, 40, 52, 0.16);
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  box-shadow: none;
  font-size: 15px;
  color: #181c28;
}
.auth-form-modern select {
  height: 50px;
  border: none;
  border-bottom: 1px solid rgba(37, 40, 52, 0.16);
  border-radius: 0;
  background: transparent;
  padding: 0 2px;
  box-shadow: none;
  font-size: 15px;
  color: #181c28;
}
.auth-form-modern input::placeholder,
.auth-form-modern select {
  color: #a3a0a0;
}
.auth-form-modern input:focus {
  border-bottom-color: #5e63ff;
  box-shadow: inset 0 -1px 0 #5e63ff;
}
.auth-form-modern select:focus {
  border-bottom-color: #5e63ff;
  box-shadow: inset 0 -1px 0 #5e63ff;
}
.auth-submit-btn {
  margin-top: 12px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6a7cff 0%, #5870f3 100%);
  box-shadow: 0 12px 24px rgba(88, 112, 243, 0.26);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.auth-footer-modern {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #7c776f;
}
.auth-footer-modern a {
  color: #2f3da1;
  font-weight: 700;
}

@media (max-width: 480px) {
  .auth-brand-mark {
    font-size: 3.55rem;
  }
  .auth-card {
    border-radius: 24px;
    padding: 24px 18px 20px;
  }
}

/* ===== Feed Social ===== */
.feed-shell {
  padding: 0 0 110px;
}

.feed-shell-social {
  padding-top: 0;
}

.feed-canvas {
  min-height: calc(100vh - 196px);
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 0;
  padding: 12px 10px 16px;
}

.page-home .app-header,
.page-network .app-header,
.page-chat .app-header,
.page-profile .app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  min-height: 58px;
  padding: 11px 16px;
  border-radius: 0;
  background: linear-gradient(135deg, #25315d 0%, #394a82 100%);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 8px 20px rgba(30, 34, 45, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-profile .header-icon {
  color: #f5f2eb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.page-network .header-icon,
.page-chat .header-icon,
.page-profile .header-icon,
.page-home .header-icon {
  color: #f5f2eb;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}

.app-header-write {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  min-height: 58px;
  padding: 11px 16px;
  border-radius: 0;
  background: linear-gradient(135deg, #25315d 0%, #394a82 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f5f2eb;
  box-shadow:
    0 8px 20px rgba(30, 34, 45, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.08);
}

.app-logo-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.app-logo-write-title {
  color: rgba(245, 242, 235, 0.96);
  font-size: 1.1rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.app-logo-write-text {
  min-height: auto;
}

.header-icon-plain,
.header-icon-ghost {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #f5f2eb;
  box-shadow: none;
}

.header-icon-ghost {
  visibility: hidden;
}

.page-home .app-logo-image,
.page-network .app-logo-image {
  height: 38px;
}

.feed-search-shell {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #66758d;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(74, 98, 132, 0.1);
  box-shadow:
    0 12px 24px rgba(46, 63, 89, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.page-home .feed-search-shell {
  margin-top: 2px;
}

.feed-search-shell span {
  white-space: nowrap;
}

.feed-search-trailing {
  margin-left: auto;
  color: #5f6f88;
}

.feed-hero-banner {
  position: relative;
  margin-top: 8px;
  padding: 18px 16px;
  border-radius: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(143, 188, 255, 0.28), transparent 20%),
    radial-gradient(circle at 88% 14%, rgba(255, 214, 170, 0.18), transparent 18%),
    linear-gradient(155deg, #1d2744 0%, #243760 56%, #355284 100%);
  box-shadow:
    0 10px 24px rgba(28, 36, 58, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}

.feed-hero-top {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.feed-hero-copy {
  flex: 1;
  min-width: 0;
}

.feed-hero-kicker {
  color: rgba(233, 240, 250, 0.72);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feed-hero-title {
  margin-top: 10px;
  color: #f7f4ee;
  font-size: 1.9rem;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.feed-hero-description {
  margin-top: 10px;
  color: rgba(233, 240, 250, 0.78);
  font-size: 13px;
  line-height: 1.65;
  max-width: 260px;
}

.feed-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.feed-hero-icon-btn {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f2eb;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feed-hero-link {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f5f2eb;
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feed-hero-metrics {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.feed-metric-card {
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.feed-metric-label {
  display: block;
  color: rgba(230, 238, 249, 0.68);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feed-metric-value {
  display: block;
  margin-top: 8px;
  color: #fff8ef;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
}

.feed-search-drawer {
  margin-top: 12px;
  animation: fadeSlideDown 0.18s ease;
}

.feed-search-shell-drawer {
  text-decoration: none;
}

.feed-section-head-social {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 4px 12px;
  margin-top: 14px;
}

.feed-section-kicker {
  color: #7a8ca8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.feed-section-title-social {
  margin-top: 6px;
  color: #252837;
  font-size: 1.5rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.feed-section-link-social {
  display: inline-flex;
  align-items: center;
  color: #3d4c82;
  font-size: 13px;
  font-weight: 800;
}

.feed-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 0 8px;
}

.feed-filter-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 11px 16px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(36, 40, 58, 0.08);
  color: #6f7f96;
  font-size: 13px;
  font-weight: 800;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 8px 18px rgba(24, 29, 44, 0.03);
  backdrop-filter: blur(12px);
}

.feed-filter-chip.is-active {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  border-color: rgba(37, 49, 93, 0.14);
  color: #25315d;
  box-shadow:
    0 14px 24px rgba(37, 49, 93, 0.08),
    inset 0 0 0 1px rgba(37, 49, 93, 0.04);
}

.feed-spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  margin-top: 8px;
  padding: 14px;
  border-radius: 0;
  background: #ffffff;
  border: 1px solid rgba(74, 98, 132, 0.08);
  box-shadow:
    0 8px 18px rgba(46, 63, 89, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  cursor: pointer;
}

.feed-spotlight-copy {
  min-width: 0;
}

.feed-spotlight-label {
  color: #7c8fae;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.feed-spotlight-title {
  margin-top: 8px;
  color: #1f2636;
  font-size: 1.18rem;
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-spotlight-meta {
  margin-top: 10px;
  color: #677a96;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.feed-spotlight-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.feed-spotlight-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf3fb;
  color: #30446a;
  font-size: 12px;
  font-weight: 800;
}

.feed-spotlight-media {
  min-height: 150px;
  border-radius: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #d7def8 0%, #eef1ff 100%);
}

.feed-spotlight-media img,
.feed-spotlight-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feed-list-social {
  gap: 0;
  padding: 0;
  background: transparent;
}

.feed-feature-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 108px;
  gap: 10px;
  min-height: 102px;
  background: #ffffff;
  cursor: pointer;
  border: none;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
  border-radius: 0;
  padding: 14px 0;
  box-shadow: none;
}

.feed-feature-prefix {
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.feed-feature-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 2px;
  background: #eef3fb;
  color: #31476d;
  font-size: 10px;
  font-weight: 800;
}

.feed-feature-cover {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d7def8 0%, #eef1ff 100%);
}

.feed-feature-cover-list {
  margin: 0;
  border-radius: 0;
  min-height: 84px;
}

.feed-feature-cover img,
.feed-feature-cover video,
.feed-cover-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-cover-fallback {
  background: linear-gradient(135deg, #243053 0%, #44558f 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.8rem;
  font-weight: 800;
}

.feed-feature-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.feed-feature-body-list {
  padding-right: 0;
}

.feed-feature-topline {
  color: #8b97ab;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.feed-feature-title {
  color: #232738;
  font-size: 0.96rem;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-feature-subline {
  color: #66758d;
  font-size: 12px;
  font-weight: 700;
}

.feed-feature-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #6f7282;
  font-size: 12px;
  font-weight: 700;
}

.feed-meta-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cfd7e4;
}

.feed-feature-card:last-child {
  margin-bottom: 0;
}

.empty-state-social {
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 0;
  border: 1px solid rgba(74, 98, 132, 0.08);
  box-shadow: 0 10px 22px rgba(46, 63, 89, 0.05);
}

.feed-list-endcap {
  padding: 14px 16px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.68);
  color: #6d7d95;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 700;
  text-align: center;
}

.post-author-nickname {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #8d8881;
}
.post-group-name {
  margin-left: 6px;
  color: #807b74;
  font-size: 12px;
}
@media (max-width: 480px) {
  .page-home .app-main {
    padding-top: 58px;
  }

  .feed-hero-banner {
    padding: 18px 16px;
    border-radius: 0;
  }

  .feed-hero-top {
    flex-direction: column;
  }

  .feed-hero-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .feed-hero-title {
    font-size: 1.72rem;
  }

  .feed-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feed-spotlight-card {
    grid-template-columns: minmax(0, 1fr) 116px;
    gap: 12px;
  }

  .feed-spotlight-media {
    min-height: 138px;
  }

  .feed-feature-card {
    grid-template-columns: minmax(0, 1fr) 96px;
    min-height: 98px;
    gap: 10px;
    padding: 14px 0;
  }

  .feed-feature-cover-list {
    min-height: 82px;
    order: 2;
  }

  .feed-feature-prefix {
    grid-column: 1 / -1;
    padding-top: 0;
  }

  .feed-feature-body {
    grid-column: 1 / 2;
  }

  .feed-feature-title {
    font-size: 0.95rem;
  }
}

/* ===== Profile Refresh ===== */
.profile-shell {
  padding: 12px 14px 110px;
}
.profile-shell-social {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 28px;
  padding: 14px 8px 110px;
}
.profile-hero-card {
  background: rgba(251, 250, 247, 0.96);
  border: 1px solid rgba(33, 36, 49, 0.08);
  border-radius: 26px;
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow:
    0 18px 36px rgba(18, 23, 38, 0.08),
    0 2px 10px rgba(18, 23, 38, 0.04);
}
.profile-hero-topline {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8578;
}
.profile-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.profile-avatar-refined {
  width: 76px;
  height: 76px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eff1ff 0%, #dde3ff 100%);
  color: #243165;
  font-size: 30px;
}
.profile-hero-info {
  flex: 1;
  min-width: 0;
}
.profile-hero-summary {
  margin-top: 8px;
  color: #716d67;
  font-size: 13px;
  line-height: 1.6;
}
.profile-edit-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 14px;
  border-color: rgba(33, 36, 49, 0.1);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(18, 23, 38, 0.06);
  font-weight: 700;
  color: #23283b;
}
.profile-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.profile-panel {
  background: rgba(251, 250, 247, 0.96);
  border: 1px solid rgba(33, 36, 49, 0.08);
  border-radius: 22px;
  padding: 16px;
  box-shadow:
    0 18px 36px rgba(18, 23, 38, 0.08),
    0 2px 10px rgba(18, 23, 38, 0.04);
}
.profile-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.profile-panel-title {
  font-size: 15px;
  font-weight: 800;
  color: #1f2332;
}
.profile-row-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(33, 36, 49, 0.07);
}
.profile-row-item:first-of-type {
  border-top: none;
}
.profile-row-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(106, 124, 255, 0.1);
  color: #28366f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
}
.profile-row-copy {
  flex: 1;
  min-width: 0;
}
.profile-row-name {
  font-size: 14px;
  font-weight: 700;
  color: #202431;
}
.profile-row-meta {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.55;
  color: #7a756f;
}
.profile-panel-empty {
  padding-top: 12px;
  color: #8f8a84;
  font-size: 13px;
}
.profile-logout-form {
  margin-top: 16px;
}
.profile-logout-btn {
  border-radius: 16px;
  background: rgba(251, 250, 247, 0.96);
  border-color: rgba(33, 36, 49, 0.08);
}

/* ===== Search Page ===== */
.search-shell {
  padding: 0 2px 110px;
}

.search-shell-form {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 28px;
  padding: 14px 8px 110px;
}

.search-page-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-page-card-form {
  gap: 14px;
}

.search-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.search-page-kicker {
  color: #9a9388;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-page-title {
  margin-top: 6px;
  color: #252837;
  font-size: 1.65rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.search-page-link {
  color: #3d4c82;
  font-size: 13px;
  font-weight: 800;
}

.search-page-trigger {
  text-decoration: none;
}

.search-form-panel {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(74, 98, 132, 0.08);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow: 0 10px 22px rgba(46, 63, 89, 0.05);
}

.search-form-intro {
  background:
    radial-gradient(circle at 18% 20%, rgba(143, 175, 255, 0.18), transparent 20%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(235, 242, 251, 0.88));
}

.search-form-label {
  margin-bottom: 12px;
  color: #708099;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-form-label-inline {
  margin-bottom: 10px;
}

.search-page-description {
  margin-top: 8px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.6;
}

.search-section-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.search-section-card {
  background: #fff;
  border: 1px solid rgba(36, 40, 58, 0.06);
  border-radius: 22px;
  padding: 16px;
  box-shadow:
    0 14px 28px rgba(28, 32, 45, 0.06),
    0 2px 8px rgba(28, 32, 45, 0.04);
}

.search-section-title {
  color: #252837;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 12px;
}

.search-line-list {
  border-top: 1px solid rgba(36, 40, 58, 0.08);
}

.search-line-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
}

.search-line-item strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 700;
}

.search-line-item small {
  color: #708099;
  font-size: 12px;
  text-transform: capitalize;
  flex-shrink: 0;
}

.search-form-merged {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-merged-group + .search-merged-group {
  padding-top: 2px;
}

/* ===== Network Page ===== */
.network-shell {
  padding: 0 0 82px;
}

.network-panel {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  padding: 14px 10px 20px;
}

.network-intro {
  padding: 16px 0 14px;
}

.network-kicker {
  color: #7a8ca8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.network-title {
  margin-top: 6px;
  color: #252837;
  font-size: 1.6rem;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.network-description {
  margin-top: 8px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.6;
}

.network-search-card,
.network-section {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid rgba(74, 98, 132, 0.08);
  box-shadow: 0 8px 18px rgba(46, 63, 89, 0.05);
}

.network-search-card {
  padding: 14px;
}

.network-search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.network-search-label {
  color: #708099;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.network-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 8px;
}

.network-search-input {
  height: 44px;
  border: 1px solid rgba(74, 98, 132, 0.16);
  border-radius: 0;
  background: #f8fbff;
}

.network-search-btn {
  height: 44px;
  border: none;
  border-radius: 0;
  background: #25315d;
  color: #f8f5ef;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.network-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0;
}

.network-section-title {
  color: #252837;
  font-size: 15px;
  font-weight: 800;
}

.network-section-count {
  color: #7c8fae;
  font-size: 12px;
  font-weight: 800;
}

.network-list {
  padding: 6px 14px 0;
}

.network-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
}

.network-card:last-child {
  border-bottom: none;
}

.network-avatar {
  width: 42px;
  height: 42px;
  overflow: hidden;
  background: #dbe6f7;
  color: #2f446c;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.network-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.network-copy {
  min-width: 0;
}

.network-name-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.network-name-row strong {
  color: #252837;
  font-size: 14px;
  font-weight: 800;
}

.network-name-row span {
  color: #7f8ea4;
  font-size: 12px;
  font-weight: 700;
}

.network-headline {
  margin-top: 4px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.5;
}

.network-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.network-tags span,
.network-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  background: #eef3fb;
  color: #31476d;
  font-size: 11px;
  font-weight: 800;
}

.network-actions,
.network-inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.network-action-btn {
  min-width: 68px;
  height: 34px;
  padding: 0 10px;
  border-radius: 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.network-inline-actions .network-action-btn {
  min-width: 54px;
}

.network-empty-line {
  padding: 14px;
  color: #6d7d95;
  font-size: 13px;
  line-height: 1.6;
}

.network-status-chip.is-connected {
  background: #edf6ef;
  color: #2f6c45;
}

@media (max-width: 480px) {
  .network-search-row {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .network-card {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: flex-start;
  }

  .network-actions,
  .network-inline-actions {
    grid-column: 2 / 3;
    margin-top: 8px;
    flex-wrap: wrap;
  }
}

/* ===== Chat Page ===== */
.chat-shell {
  padding: 0 0 82px;
}

.chat-panel {
  background: #eef4fb;
  padding: 14px 10px 16px;
}

.chat-page-intro {
  padding: 16px 0 14px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
}

.chat-page-kicker {
  color: #7a8ca8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.chat-page-title {
  margin-top: 6px;
  color: #252837;
  font-size: 1.55rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.chat-page-description {
  margin-top: 8px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.6;
}

.chat-room-list {
  background: #ffffff;
}

.chat-room-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
}

.chat-room-avatar {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dbe6f7;
  color: #2f446c;
  font-size: 15px;
  font-weight: 800;
}

.chat-room-copy {
  min-width: 0;
}

.chat-room-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-room-top strong {
  color: #252837;
  font-size: 14px;
  font-weight: 800;
}

.chat-room-top span {
  color: #8391a5;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.chat-room-copy p {
  margin-top: 5px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25315d;
  color: #f8f5ef;
  font-size: 11px;
  font-weight: 800;
}

.chat-panel-real {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== CMS ===== */
.cms-shell {
  padding: 18px 14px 110px;
}

.cms-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cms-kicker {
  color: #7a8ca8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cms-title {
  margin-top: 6px;
  color: #252837;
  font-size: 1.6rem;
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cms-description {
  margin-top: 8px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.6;
}

.cms-link {
  color: #3d4c82;
  font-size: 13px;
  font-weight: 800;
}

.cms-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cms-card {
  background: #ffffff;
  border: 1px solid rgba(74, 98, 132, 0.08);
  box-shadow: 0 8px 18px rgba(46, 63, 89, 0.05);
  padding: 16px;
}

.cms-card-kicker {
  color: #708099;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cms-card-title {
  margin-top: 8px;
  color: #252837;
  font-size: 15px;
  font-weight: 800;
}

.cms-card-copy {
  margin-top: 8px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.6;
}

.cms-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cms-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  background: #eef3fb;
  color: #31476d;
  font-size: 11px;
  font-weight: 800;
}

.chat-create-card,
.chat-room-column,
.chat-detail-column {
  background: #ffffff;
  border: 1px solid rgba(74, 98, 132, 0.08);
  box-shadow: 0 8px 18px rgba(46, 63, 89, 0.05);
}

.chat-create-card {
  padding: 14px;
}

.chat-create-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-create-title,
.chat-column-title,
.chat-room-detail-title {
  color: #252837;
  font-size: 15px;
  font-weight: 800;
}

.chat-create-subtitle,
.chat-column-count,
.chat-room-detail-subtitle,
.chat-room-copy small {
  color: #7c8fae;
  font-size: 12px;
  font-weight: 700;
}

.chat-create-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.chat-create-input,
.chat-message-input {
  border-radius: 0;
  border: 1px solid rgba(74, 98, 132, 0.16);
  background: #f8fbff;
}

.chat-connection-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-member-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(74, 98, 132, 0.12);
  background: #f8fbff;
  color: #31476d;
  font-size: 12px;
  font-weight: 700;
}

.chat-create-btn,
.chat-message-submit {
  height: 42px;
  border: none;
  border-radius: 0;
  background: #25315d;
  color: #f8f5ef;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.chat-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.chat-column-head,
.chat-room-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 0;
}

.chat-room-column .chat-room-list {
  padding: 6px 14px 0;
  background: transparent;
}

.chat-room-card {
  color: inherit;
}

.chat-room-card.is-active {
  background: rgba(238, 243, 251, 0.72);
}

.chat-detail-column {
  min-height: 360px;
}

.chat-room-detail {
  display: flex;
  flex-direction: column;
  min-height: 360px;
}

.chat-message-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}

.chat-message-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.chat-message-item.is-mine {
  align-items: flex-end;
}

.chat-message-author {
  color: #7c8fae;
  font-size: 11px;
  font-weight: 700;
}

.chat-bubble {
  max-width: 82%;
  padding: 10px 12px;
  background: #eef3fb;
  color: #24324e;
  font-size: 13px;
  line-height: 1.55;
}

.chat-bubble-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-message-item.is-mine .chat-bubble {
  background: #25315d;
  color: #f8f5ef;
}

.chat-bubble.chat-bubble-image {
  padding: 8px;
  max-width: min(82%, 280px);
}

.chat-message-image {
  display: block;
  width: 100%;
  max-width: 264px;
  border-radius: 14px;
  object-fit: cover;
}

.chat-message-image-link {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.chat-bubble.chat-bubble-file {
  padding: 8px 10px;
}

.chat-file-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.chat-file-link-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  border-radius: 10px;
  background: rgba(37, 49, 93, 0.08);
  font-size: 11px;
  font-weight: 800;
}

.chat-file-link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-file-link-copy strong,
.chat-file-link-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-file-link-copy strong {
  font-size: 12px;
}

.chat-file-link-copy span {
  font-size: 10px;
  opacity: 0.72;
}

.chat-bubble.chat-bubble-image .chat-bubble-text {
  margin-top: 8px;
}

.chat-message-item.is-system {
  align-items: center;
}

.chat-system-message {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  background: #eef1f5;
  color: #6e7a8d;
  font-size: 11px;
  font-weight: 700;
}

.chat-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
  padding: 0 14px 14px;
}

.chat-empty-room {
  padding: 20px 14px;
  color: #6d7d95;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .chat-create-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-message-form {
    grid-template-columns: minmax(0, 1fr) 74px;
  }
}

/* ===== Compose ===== */
.compose-shell {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 28px;
  padding: 14px 8px 118px;
}

.compose-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compose-alert {
  margin: 0;
}

.compose-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compose-section {
  background: #fff;
  border: 1px solid rgba(36, 40, 58, 0.06);
  border-radius: 22px;
  padding: 16px;
  box-shadow:
    0 14px 28px rgba(28, 32, 45, 0.06),
    0 2px 8px rgba(28, 32, 45, 0.04);
}

.compose-section-label {
  margin-bottom: 12px;
  color: #8d877e;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.compose-select-wrap {
  position: relative;
}

.compose-select {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(36, 40, 58, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: #252837;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 16px rgba(24, 29, 44, 0.03);
}

.compose-select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #717588;
}

.compose-empty,
.compose-selected-group {
  margin-top: 12px;
  color: #3d4c82;
  font-size: 13px;
  font-weight: 700;
}

.compose-textarea {
  width: 100%;
  min-height: 220px;
  border: none;
  outline: none;
  resize: none;
  padding: 0;
  background: transparent;
  color: #252837;
  font-size: 15px;
  line-height: 1.75;
}

.compose-preview-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 0 0;
}

.compose-upload-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px;
  border-radius: 16px;
  border: 1px dashed rgba(36, 40, 58, 0.16);
  background: rgba(248, 248, 246, 0.8);
  cursor: pointer;
}

.compose-upload-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #3d4c82;
}

.compose-upload-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compose-upload-copy strong {
  color: #252837;
  font-size: 14px;
}

.compose-upload-copy span {
  color: #89838d;
  font-size: 12px;
}

.compose-toolbar {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(36, 40, 58, 0.08);
  border-radius: 18px;
  box-shadow:
    0 12px 22px rgba(24, 29, 44, 0.06),
    0 2px 8px rgba(24, 29, 44, 0.04);
  backdrop-filter: blur(14px);
}

.compose-toolbar-copy {
  color: #717588;
  font-size: 12px;
  font-weight: 700;
}

.compose-submit-btn {
  min-width: 88px;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #25315d 0%, #3d4c82 100%);
  color: #f8f5ef;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.compose-submit-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

/* ===== School Setup ===== */
.setup-hero {
  min-height: 100vh;
  padding: 24px 16px 32px;
}
.setup-hero-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.setup-intro-card,
.setup-form-card {
  background: #fbfaf7;
  border: 1px solid rgba(33, 36, 49, 0.08);
  border-radius: 24px;
  box-shadow:
    0 22px 44px rgba(18, 23, 38, 0.1),
    0 2px 10px rgba(18, 23, 38, 0.05);
}
.setup-intro-card {
  padding: 22px 18px 18px;
}
.setup-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8578;
}
.setup-intro-title {
  margin-top: 10px;
  font-size: 1.85rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: #1d2130;
}
.setup-intro-copy {
  margin-top: 10px;
  color: #716d67;
  font-size: 14px;
  line-height: 1.65;
}
.setup-form-card {
  padding: 22px 18px 20px;
}
.setup-field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #282b38;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.setup-search-wrap {
  position: relative;
  margin-top: 8px;
}
.setup-search-input {
  width: 100%;
  height: 50px;
  border: none;
  border-bottom: 1px solid rgba(37, 40, 52, 0.16);
  border-radius: 0;
  background: transparent;
  padding: 0 26px 0 2px;
  font-size: 15px;
  color: #181c28;
}
.setup-search-input:focus {
  border-bottom-color: #5e63ff;
  box-shadow: inset 0 -1px 0 #5e63ff;
}
.setup-search-icon {
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: #8d8a86;
}
.setup-results {
  margin-top: 10px;
  border: 1px solid rgba(33, 36, 49, 0.08);
  border-radius: 16px;
  overflow: hidden;
  background: #fffdfa;
}
.setup-result-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px;
  border: none;
  border-bottom: 1px solid rgba(33, 36, 49, 0.06);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.setup-result-item:last-child {
  border-bottom: none;
}
.setup-result-item.is-empty {
  color: #908c86;
  cursor: default;
}
.setup-result-name {
  font-size: 14px;
  font-weight: 700;
  color: #222534;
}
.setup-result-meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7e7a76;
}
.setup-selected-list {
  margin-top: 12px;
}
.setup-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f2f4ff;
  border: 1px solid rgba(94, 99, 255, 0.14);
}
.setup-selected-name {
  font-size: 14px;
  font-weight: 700;
  color: #23284a;
}
.setup-selected-meta {
  margin-top: 4px;
  font-size: 12px;
  color: #6e6f86;
}
.setup-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(33, 36, 49, 0.08);
  font-size: 13px;
  line-height: 1.65;
  color: #77726d;
}
.setup-save-btn {
  margin-top: 18px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6a7cff 0%, #5870f3 100%);
  box-shadow: 0 12px 24px rgba(88, 112, 243, 0.26);
  font-size: 15px;
  font-weight: 800;
}
.setup-stepper {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 4px;
}
.setup-stepper::-webkit-scrollbar {
  display: none;
}
.setup-step-pill {
  flex-shrink: 0;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(33, 36, 49, 0.08);
  background: rgba(255, 255, 255, 0.72);
  color: #77726b;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.setup-step-pill.is-active {
  background: #1f2440;
  border-color: #1f2440;
  color: #f6f3ee;
}
.setup-step-page {
  display: none;
}
.setup-step-page.is-active {
  display: block;
}
.setup-page-header {
  margin-bottom: 18px;
}
.setup-page-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8d8578;
}
.setup-page-title {
  margin-top: 8px;
  font-size: 1.6rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #1d2130;
}
.setup-page-description {
  margin-top: 8px;
  color: #716d67;
  font-size: 13px;
  line-height: 1.65;
}
.setup-inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.setup-summary-grid {
  display: grid;
  gap: 12px;
}
.setup-summary-card {
  border: 1px solid rgba(33, 36, 49, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
}
.setup-summary-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8578;
}
.setup-summary-body {
  margin-top: 10px;
}
.setup-summary-line {
  font-size: 14px;
  line-height: 1.6;
  color: #252938;
}
.setup-summary-line + .setup-summary-line {
  margin-top: 6px;
}
.setup-summary-empty {
  font-size: 13px;
  color: #918d87;
}
.setup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}
.setup-action-btn {
  height: 52px;
  border-radius: 14px;
}

@media (max-width: 480px) {
  .setup-inline-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Profile Setup Refresh ===== */
.setup-shell {
  padding: 0 2px 110px;
}

.setup-shell-social {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 28px;
  padding: 14px 8px 110px;
}

.setup-page-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setup-intro-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(74, 98, 132, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(46, 63, 89, 0.05);
}

.setup-page-kicker {
  color: #708099;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.setup-page-title-main {
  margin-top: 6px;
  color: #252837;
  font-size: 1.65rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.setup-page-copy {
  margin-top: 8px;
  color: #66758d;
  font-size: 13px;
  line-height: 1.6;
}

.setup-page-link {
  color: #3d4c82;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.setup-stepper-refined {
  padding: 0 2px;
}

.setup-form-card-refined {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(74, 98, 132, 0.08);
  border-radius: 22px;
  padding: 16px 14px;
  box-shadow: 0 10px 22px rgba(46, 63, 89, 0.05);
}

.setup-panel-head {
  margin-bottom: 16px;
}

.setup-section-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.setup-section-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(36, 40, 58, 0.06);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 14px 28px rgba(28, 32, 45, 0.05), 0 2px 8px rgba(28, 32, 45, 0.03);
}

.setup-field-label {
  color: #708099;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.setup-search-wrap {
  margin-top: 10px;
}

.setup-search-input {
  height: 52px;
  padding: 0 34px 0 4px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.18);
  color: #22314f;
}

.setup-search-input::placeholder {
  color: #90a0b5;
}

.setup-search-icon {
  color: #90a0b5;
}

.setup-results {
  margin-top: 12px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.setup-result-item {
  padding: 14px 16px;
}

.setup-selected-list {
  margin-top: 12px;
}

.setup-selected-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(231, 238, 248, 0.9);
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.setup-selected-name {
  color: #22314f;
}

.setup-selected-meta {
  color: #708099;
}

.setup-summary-grid-refined {
  gap: 10px;
}

.setup-summary-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(74, 98, 132, 0.08);
  border-radius: 18px;
}

.setup-summary-label {
  color: #708099;
}

.setup-summary-line {
  color: #22314f;
}

.setup-summary-empty {
  color: #90a0b5;
}

.setup-actions-refined {
  margin-top: 20px;
}

.page-profile .setup-action-btn.btn-outline {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(36, 40, 58, 0.08);
  color: #25315d;
}

.page-profile .setup-action-btn.btn-primary {
  background: linear-gradient(135deg, #25315d 0%, #3d4c82 100%);
  color: #f8f5ef;
}

@media (max-width: 480px) {
  .setup-intro-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .setup-page-link {
    font-size: 12px;
  }
}

/* ===== Chat Refresh ===== */
.page-chat .app-main {
  padding-top: 0;
}

.chat-shell-social {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 28px;
  padding: 14px 8px 110px;
}

.chat-list-screen,
.chat-detail-screen {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-list-intro,
.chat-list-panel,
.chat-start-panel,
.chat-detail-card,
.chat-group-panel {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(74, 98, 132, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(46, 63, 89, 0.05);
}

.chat-list-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.chat-list-count,
.chat-panel-meta {
  color: #708099;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.chat-panel-head-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 0;
}

.chat-panel-title {
  color: #252837;
  font-size: 15px;
  font-weight: 800;
}

.chat-room-list-lined,
.chat-direct-list {
  padding: 8px 18px 2px;
}

.chat-room-row,
.chat-direct-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
  color: inherit;
  background: transparent;
}

.chat-room-row:last-child,
.chat-direct-form:last-child .chat-direct-row {
  border-bottom: none;
}

.chat-room-row .chat-room-avatar,
.chat-direct-row .chat-room-avatar {
  border-radius: 14px;
}

.chat-direct-form {
  margin: 0;
}

.chat-direct-row {
  border: none;
  cursor: pointer;
  text-align: left;
}

.chat-direct-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-direct-copy strong {
  color: #252837;
  font-size: 14px;
  font-weight: 800;
}

.chat-direct-copy small {
  color: #708099;
  font-size: 12px;
  font-weight: 600;
}

.chat-direct-action {
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.chat-empty-state-line {
  padding: 18px;
  color: #6d7d95;
  font-size: 13px;
  line-height: 1.6;
}

.chat-group-panel {
  padding: 0;
  overflow: hidden;
}

.chat-group-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  color: #25315d;
  font-size: 14px;
  font-weight: 800;
}

.chat-group-panel summary::-webkit-details-marker {
  display: none;
}

.chat-create-form-clean {
  padding: 0 18px 18px;
}

.chat-detail-card {
  min-height: calc(100vh - 220px);
  padding: 0;
  overflow: hidden;
}

.chat-detail-subheader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
}

.chat-back-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #25315d;
  font-size: 13px;
  font-weight: 800;
}

.chat-room-detail-headline {
  min-width: 0;
}

.chat-message-list-refined {
  gap: 12px;
  padding: 18px;
  min-height: 52vh;
}

.chat-bubble {
  border-radius: 18px;
}

.chat-message-form-refined {
  padding: 12px 18px 18px;
  border-top: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-message-input {
  min-height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(74, 98, 132, 0.14);
  background: rgba(248, 251, 255, 0.92);
}

.chat-message-submit {
  border-radius: 16px;
}

@media (max-width: 480px) {
  .chat-list-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-detail-subheader {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .chat-room-row,
  .chat-direct-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .chat-direct-action,
  .chat-room-row .chat-room-top span {
    justify-self: end;
  }
}

/* ===== Chat Messenger Polish ===== */
.chat-search-row {
  padding: 12px 18px 4px;
}

.chat-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(74, 98, 132, 0.10);
  color: #90a0b5;
}

.chat-search-field input {
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
  color: #22314f;
}

.chat-search-field input:focus {
  border: none;
  box-shadow: none;
}

.chat-room-row,
.chat-direct-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.chat-room-avatar-photo {
  overflow: hidden;
  border-radius: 16px;
}

.chat-room-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-room-avatar-photo span {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.chat-room-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 22px;
}

.chat-unread-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25315d;
  color: #f8f5ef;
  font-size: 10px;
  font-weight: 800;
}

.chat-unread-badge.is-empty {
  visibility: hidden;
}

.chat-detail-card {
  height: calc(100vh - 214px);
  min-height: calc(100vh - 214px);
}

.chat-detail-subheader-rich {
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
}

.chat-room-avatar-large {
  width: 56px;
  height: 56px;
  font-size: 20px;
}

.chat-detail-list-link {
  color: #25315d;
  font-size: 13px;
  font-weight: 800;
}

.chat-message-list-refined {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-message-form-refined {
  position: sticky;
  bottom: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

@media (max-width: 480px) {
  .chat-detail-card {
    height: calc(100vh - 206px);
    min-height: calc(100vh - 206px);
  }

  .chat-detail-subheader-rich {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .chat-room-avatar-large {
    width: 48px;
    height: 48px;
  }
}

/* ===== Chat Detail Full Height Fix ===== */
.page-chat .app-main {
  padding-left: 0;
  padding-right: 0;
}

.chat-shell-social.is-room-open {
  background: transparent;
  border-radius: 0;
  padding: 0 0 98px;
  height: calc(100dvh - 96px - 92px);
  min-height: calc(100dvh - 96px - 92px);
}

.chat-shell-social.is-room-open .chat-detail-screen {
  height: 100%;
}

.chat-shell-social.is-room-open .chat-detail-card {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
  background: linear-gradient(180deg, #eef4fb 0%, #e7eff9 100%);
}

.chat-shell-social.is-room-open .chat-detail-subheader {
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.72);
  position: sticky;
  top: 0;
  z-index: 3;
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-detail-status {
  color: #708099;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.chat-shell-social.is-room-open .chat-message-list-refined {
  padding: 18px 18px 12px;
  scroll-padding-top: 84px;
}

.chat-shell-social.is-room-open .chat-message-form-refined {
  margin-top: auto;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom));
}

@media (max-width: 480px) {
  .chat-shell-social.is-room-open {
    height: calc(100dvh - 94px - 88px);
    min-height: calc(100dvh - 94px - 88px);
    padding-bottom: 92px;
  }
}

/* ===== Chat Room Layout Tighten ===== */
.page-chat .app-main.app-main-chat-room {
  height: calc(100dvh - 58px);
  min-height: calc(100dvh - 58px);
  padding: 0 0 78px;
  overflow: hidden;
}

.chat-shell-social.is-room-open {
  height: 100%;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.chat-shell-social.is-room-open .chat-detail-screen {
  flex: 1;
  min-height: 0;
}

.chat-shell-social.is-room-open .chat-detail-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.chat-shell-social.is-room-open .chat-detail-subheader {
  flex-shrink: 0;
}

.chat-shell-social.is-room-open .chat-message-list-refined {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.chat-shell-social.is-room-open .chat-message-form-refined {
  position: relative;
  flex-shrink: 0;
  margin-top: 0;
  padding: 12px 18px 16px;
  background: rgba(255, 255, 255, 0.96);
}

@media (max-width: 480px) {
  .page-chat .app-main.app-main-chat-room {
    height: calc(100dvh - 58px);
    min-height: calc(100dvh - 58px);
    padding-bottom: 76px;
  }
}

/* ===== Chat Room Dedicated Layout ===== */
body.page-chat-room {
  max-width: 480px;
  margin: 0 auto;
  height: 100dvh;
  overflow: hidden;
  background: linear-gradient(180deg, #eef4fb 0%, #e7eff9 100%);
  color: #22314f;
}

.chat-room-global-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 58px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  background: linear-gradient(135deg, #25315d 0%, #394a82 100%);
  color: #f5f2eb;
  z-index: 120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-room-global-title {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-room-main-shell {
  position: fixed;
  top: 58px;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  overflow: hidden;
}

.chat-room-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.chat-room-screen-head {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 18px 12px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-room-screen-copy {
  min-width: 0;
}

.chat-room-thread {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
}

.chat-room-compose {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 106px;
  gap: 10px;
  padding: 10px 18px 2px;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-room-compose-actions {
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-upload-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(36, 50, 78, 0.12);
  background: #fff;
  color: #51617d;
  cursor: pointer;
}

.chat-room-compose-main {
  min-width: 0;
}

.chat-room-compose .chat-message-input {
  min-height: 52px;
  border-radius: 18px;
}

.chat-upload-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f3f6fb;
  color: #52627f;
  font-size: 12px;
  font-weight: 700;
}

.chat-upload-selected-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-upload-selected-clear {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.chat-room-compose .chat-message-submit {
  min-height: 52px;
  border-radius: 18px;
}

.chat-message-time {
  margin-top: 2px;
  color: #8192aa;
  font-size: 11px;
  font-weight: 700;
}

.chat-message-item.is-mine .chat-message-time {
  text-align: right;
}

@media (max-width: 480px) {
  .chat-room-main-shell {
    bottom: 70px;
  }

  .chat-room-screen-head {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    padding: 12px 16px 10px;
  }

  .chat-room-compose {
    grid-template-columns: 42px minmax(0, 1fr) 96px;
    padding: 10px 16px 2px;
  }
}

/* ===== Chat List Simplify ===== */
.chat-shell-list-only {
  height: calc(100dvh - 58px - 76px);
  padding: 0;
  margin-top: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.chat-list-screen-full,
.chat-list-panel-full {
  height: 100%;
}

.chat-list-screen-full {
  gap: 0;
}

.chat-list-panel-full {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.chat-search-row-tight {
  padding-top: 4px;
}

.chat-room-list-full {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-top: 0;
}

.chat-room-row-compact {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
}

.chat-room-row-compact .chat-room-copy p {
  margin-top: 4px;
}

.chat-room-row-compact .chat-room-copy small {
  display: none;
}

.chat-room-row-compact .chat-unread-badge {
  min-width: 22px;
  height: 22px;
}

@media (max-width: 480px) {
  .chat-shell-list-only {
    height: calc(100dvh - 58px - 76px);
  }

  .chat-room-row-compact {
    padding: 14px 16px;
  }
}

/* ===== Network Refresh ===== */
.network-shell-refined {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 28px;
  padding: 12px 8px 110px;
}

.network-panel-refined {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.network-toolbar-card,
.network-section-refined {
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(74, 98, 132, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(46, 63, 89, 0.05);
}

.network-toolbar-card {
  padding: 16px 18px;
}

.network-search-form-refined {
  gap: 12px;
}

.network-search-row-refined {
  gap: 10px;
}

.network-search-input-wrap {
  flex: 1;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(74, 98, 132, 0.10);
  color: #90a0b5;
}

.network-search-input-wrap .network-search-input {
  border: none;
  background: transparent;
  padding: 0;
  height: auto;
}

.network-search-input-wrap .network-search-input:focus {
  border: none;
  box-shadow: none;
}

.network-quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.network-quick-action {
  position: relative;
  min-height: 76px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(74, 98, 132, 0.10);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.network-quick-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
}

.network-quick-label {
  color: #22314f;
  font-size: 13px;
  font-weight: 800;
}

.network-quick-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25315d;
  color: #f8f5ef;
  font-size: 11px;
  font-weight: 800;
}

.network-section-head-refined {
  padding: 16px 18px 8px;
}

.network-list-refined {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.network-card-refined {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 0;
  box-shadow: none;
  padding: 14px 18px;
  grid-template-columns: 52px minmax(0, 1fr) auto;
}

.network-card-refined:last-child {
  border-bottom: none;
}

.network-avatar-refined {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: #dbe6f7;
  color: #2f446c;
}

.network-copy-refined {
  gap: 0;
}

.network-actions-refined {
  align-items: center;
}

.network-inline-actions-refined {
  gap: 8px;
}

.network-tags-refined {
  margin-top: 8px;
}

.network-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.network-actions-connection {
  gap: 10px;
}

@media (max-width: 480px) {
  .network-quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .network-card-refined {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .network-actions-refined,
  .network-inline-actions-refined,
  .network-actions-connection {
    grid-column: 2 / 3;
    margin-top: 10px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ===== Network Header Actions ===== */
.network-header-actions {
  gap: 8px;
}

.network-header-btn {
  position: relative;
}

.network-header-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.18);
}

.header-count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f5f2eb;
  color: #25315d;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.network-toggle-panels {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== Network List Style ===== */
.page-network .app-main {
  padding: 0 0 110px;
}

.network-shell-refined {
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
  border-radius: 0;
  height: calc(100dvh - 58px - 76px);
  padding: 0;
  margin-top: 5px;
  overflow: hidden;
}

.network-panel-refined {
  height: 100%;
  gap: 0;
  overflow: hidden;
}

.network-toolbar-card-flat,
.network-section-flat {
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.52);
}

.network-toolbar-card-flat {
  padding: 0 16px 10px;
  border-top: none;
  flex-shrink: 0;
}

.network-search-input-wrap-flat {
  min-height: 50px;
  border-radius: 12px;
  background: #f7faff;
}

.network-search-input-wrap-flat .network-search-input {
  font-size: 15px;
}

.network-section-flat .network-section-head-refined {
  padding: 14px 18px 6px;
}

.network-list-refined {
  gap: 0;
}

.network-toggle-panels {
  flex-shrink: 0;
}

.network-panel-refined > .network-section-flat:last-child {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.network-panel-refined > .network-section-flat:last-child .network-list-refined {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.network-card-refined {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
}

.network-card-refined:last-child {
  border-bottom: none;
}

.network-card-refined .network-copy-refined {
  min-width: 0;
}

.network-card-refined .network-headline {
  margin-top: 5px;
}

.network-card-refined .network-tags-refined {
  margin-top: 6px;
}

.network-empty-line {
  padding: 14px 18px 18px;
}

/* ===== Network Directory Final ===== */
.page-network .app-main {
  padding: 58px 0 76px;
}

.network-directory-shell {
  height: calc(100dvh - 58px - 76px);
  padding: 0;
  margin-top: 0;
  border-radius: 0;
  background: #fff;
  overflow: hidden;
}

.network-list-screen-full,
.network-directory-panel-full {
  height: 100%;
}

.network-list-screen-full {
  gap: 0;
}

.network-directory-panel-full {
  display: flex;
  flex-direction: column;
  border-radius: 0;
  border-left: none;
  border-right: none;
  box-shadow: none;
  background: #fff;
  overflow: hidden;
}

.network-directory-search-row {
  padding: 4px 0 0;
  flex-shrink: 0;
}

.network-directory-search-form-full {
  display: block;
  width: 100%;
  padding: 0 16px 10px;
}

.network-directory-search-field-full {
  width: 100%;
}

.network-directory-search-field-full input {
  width: 100%;
}

.network-directory-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.network-inline-panel {
  background: transparent;
}

.network-inline-panel + .network-inline-panel {
  border-top: 1px solid rgba(74, 98, 132, 0.12);
}

.network-inline-panel-main {
  min-height: 100%;
}

.network-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 8px;
  color: #22314f;
}

.network-inline-head strong {
  font-size: 17px;
  font-weight: 800;
}

.network-inline-head span {
  font-size: 14px;
  font-weight: 700;
  color: #7084a3;
}

.network-directory-list {
  display: flex;
  flex-direction: column;
}

.network-directory-list-lined {
  gap: 0;
}

.network-directory-row-lined {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
}

.network-directory-row-lined:last-child {
  border-bottom: none;
}

.network-directory-copy {
  min-width: 0;
}

.network-directory-topline {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.network-directory-topline strong {
  font-size: 15px;
  font-weight: 800;
  color: #1f2d4b;
}

.network-directory-topline span {
  font-size: 13px;
  font-weight: 700;
  color: #7385a3;
}

.network-directory-copy p {
  margin: 4px 0 0;
  font-size: 14px;
  color: #516583;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.network-directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.network-directory-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(219, 230, 247, 0.7);
  color: #2f446c;
  font-size: 12px;
  font-weight: 700;
}

.network-directory-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.network-directory-actions-stack {
  flex-direction: column;
  align-items: stretch;
}

.network-directory-actions-inline {
  gap: 6px;
}

.network-action-btn {
  min-width: 64px;
  height: 34px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
}

.network-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.network-status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.network-status-chip.is-connected {
  background: rgba(219, 240, 227, 0.95);
  color: #2c6b4b;
}

@media (max-width: 480px) {
  .network-directory-row-lined {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .network-directory-actions {
    grid-column: 2 / 3;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 8px;
  }
}



/* ===== Network Directory Refinement ===== */
.network-directory-fixed {
  flex-shrink: 0;
}

.network-inline-head-main {
  border-top: 1px solid rgba(74, 98, 132, 0.12);
  border-bottom: 1px solid rgba(74, 98, 132, 0.12);
  padding-top: 15px;
  padding-bottom: 10px;
}

.network-inline-panel-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.network-directory-main-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.network-directory-row-lined {
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

/* ===== Feed Appointments Refresh ===== */
.page-home .app-main {
  padding: 58px 0 92px;
  background: linear-gradient(180deg, #edf3fb 0%, #f7fafb 100%);
}

.feed-appointments-shell {
  min-height: calc(100dvh - 58px - 76px);
  padding: 0 14px 0;
}

.feed-appointments-tools {
  padding: 12px 0 8px;
}

.feed-appointments-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.feed-top-icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.88) 0%, rgba(240,244,252,.92) 100%);
  color: #44506a;
  box-shadow: inset 0 0 0 1px rgba(129,145,178,.18), inset 0 1px 0 rgba(255,255,255,.85), 0 4px 10px rgba(33,47,79,.05);
}

.feed-top-panel {
  margin-bottom: 10px;
}

.feed-top-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e7edf4;
  box-shadow: 0 8px 18px rgba(43,62,102,.05);
  color: #5d6d86;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.feed-top-relation-panel {
  background: #fff;
  border: 1px solid #e7edf4;
  border-radius: 22px;
  box-shadow: 0 10px 22px rgba(43,62,102,.06);
  padding: 14px;
}

.feed-relation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feed-relation-head strong {
  font-size: 14px;
  font-weight: 900;
  color: #3d4658;
}

.feed-relation-head span {
  font-size: 12px;
  color: #7f8ba0;
  font-weight: 700;
}

.feed-relation-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feed-relation-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef2f8;
  color: #4a566d;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px #e4eaf3;
}

.feed-relation-chip.is-active {
  background: linear-gradient(180deg, #4a566d 0%, #3d4658 100%);
  color: #fff;
  box-shadow: 0 10px 18px rgba(61,70,88,.18);
}

.feed-appointments-main {
  padding: 2px 0 0;
}

.feed-appointments-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 2px 14px;
}

.feed-appointments-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #232c3a;
}

.feed-appointments-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: #7f8ba0;
  font-weight: 600;
}

.feed-appointments-link {
  color: #2f6bff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.feed-appointments-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feed-appointment-card {
  background: rgba(255,255,255,.92);
  border-radius: 30px;
  border: 1px solid rgba(221,228,239,.95);
  box-shadow: 0 10px 24px rgba(24,38,74,.07);
  padding: 16px;
  cursor: pointer;
}

.feed-appointment-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.feed-appointment-time strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #2d3139;
}

.feed-appointment-time span {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: #8090a8;
  line-height: 1.2;
}

.feed-appointment-status {
  text-align: right;
  flex-shrink: 0;
}

.feed-appointment-target {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #2d3139;
  margin-bottom: 8px;
}

.feed-appointment-pills {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-appointment-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.feed-appointment-pill.is-primary {
  background: #86af0a;
}

.feed-appointment-pill.is-soft {
  background: #eb4254;
}

.feed-appointment-content {
  display: flex;
  gap: 14px;
  align-items: center;
}

.feed-appointment-thumb {
  width: 116px;
  height: 86px;
  border-radius: 18px;
  overflow: hidden;
  flex-shrink: 0;
  background: #e8edf7;
  border: 1px solid #e2e8f2;
}

.feed-appointment-thumb img,
.feed-appointment-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-appointment-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #e2e9f7 0%, #d4ddf1 100%);
  color: #33466f;
  font-size: 28px;
  font-weight: 800;
}

.feed-appointment-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feed-appointment-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #2b313b;
}

.feed-appointment-desc {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: #6f7d97;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-appointment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #7c89a1;
  font-size: 13px;
  font-weight: 700;
}

.feed-appointments-empty {
  padding: 28px 18px;
  border-radius: 24px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(221,228,239,.95);
  color: #566986;
  text-align: center;
}

.feed-appointments-empty p {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #27344d;
}

.feed-appointments-empty span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

@media (max-width: 390px) {
  .feed-appointment-thumb {
    width: 104px;
    height: 80px;
  }

  .feed-appointment-title {
    font-size: 15px;
  }

  .feed-appointment-desc {
    font-size: 13px;
  }
}

.feed-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.feed-header-btn {
  border: none;
  cursor: pointer;
}

.feed-appointments-tools {
  padding: 12px 0 8px;
}

/* ===== Write Canvas Refresh ===== */
.page-write .app-main {
  padding: 0 0 76px;
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
}

.write-canvas-shell {
  min-height: calc(100dvh - 58px - 76px);
  padding: 0;
}

.write-canvas-panel {
  min-height: calc(100dvh - 58px - 76px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.52);
}

.write-canvas-form {
  min-height: calc(100dvh - 58px - 76px);
  display: flex;
  flex-direction: column;
}

.write-canvas-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.write-canvas-section {
  padding: 18px 18px 16px;
  background: transparent;
}

.write-canvas-section + .write-canvas-section {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

.write-canvas-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.write-canvas-label {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
}

.write-canvas-caption {
  color: #7a8ba5;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}

.write-canvas-select-wrap {
  max-width: none;
}

.write-canvas-select {
  border-radius: 14px;
  border-color: rgba(74, 98, 132, 0.12);
  box-shadow: none;
}

.write-canvas-empty,
.write-canvas-selected {
  color: #3d4c82;
}

.write-canvas-section-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.write-canvas-textarea {
  flex: 1;
  min-height: 260px;
  padding: 4px 0 0;
}

.write-canvas-upload-field {
  background: rgba(247, 250, 255, 0.9);
}

.write-canvas-preview-list {
  padding-top: 14px;
}

.write-canvas-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(74, 98, 132, 0.10);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.write-canvas-toolbar-copy {
  color: #717588;
  font-size: 12px;
  font-weight: 700;
}

.write-canvas-submit-btn {
  min-width: 92px;
}

@media (max-width: 480px) {
  .write-canvas-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .write-canvas-caption {
    text-align: left;
  }
}

/* ===== Profile Canvas Refresh ===== */
.page-profile .app-main {
  padding: 0 0 76px;
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
}

.profile-canvas-shell {
  min-height: calc(100dvh - 58px - 76px);
  padding: 0;
}

.profile-canvas-panel {
  min-height: calc(100dvh - 58px - 76px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.52);
}

.profile-canvas-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.profile-canvas-summary {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
}

.profile-canvas-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  overflow: hidden;
  background: #dbe6f7;
  color: #2f446c;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
}

.profile-canvas-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-canvas-name {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #1f2d4b;
}

.profile-canvas-nickname {
  margin-top: 4px;
  color: #6f83a2;
  font-size: 14px;
  font-weight: 700;
}

.profile-canvas-summary-text {
  margin: 8px 0 0;
  color: #61748f;
  font-size: 13px;
  line-height: 1.6;
}

.profile-canvas-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}

.profile-canvas-section {
  padding: 0 18px;
}

.profile-canvas-section + .profile-canvas-section {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

.profile-canvas-section-head {
  padding: 16px 0 8px;
}

.profile-canvas-section-head strong {
  font-size: 15px;
  font-weight: 800;
  color: #22314f;
}

.profile-canvas-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

.profile-canvas-row:last-child {
  border-bottom: none;
}

.profile-canvas-row-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.profile-canvas-row-name {
  color: #1f2d4b;
  font-size: 15px;
  font-weight: 800;
}

.profile-canvas-row-meta {
  margin-top: 4px;
  color: #6f83a2;
  font-size: 13px;
  line-height: 1.5;
}

.profile-canvas-empty {
  margin: 0;
  padding: 4px 0 16px;
  color: #7283a0;
  font-size: 13px;
}

.profile-canvas-section-caption {
  color: #7a8ba5;
  font-size: 12px;
  font-weight: 600;
}

.profile-canvas-footer {
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(74, 98, 132, 0.10);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.profile-canvas-logout-btn {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(37, 49, 93, 0.12);
  border-radius: 14px;
  background: #fff;
  color: #25315d;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .profile-canvas-summary {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .profile-canvas-edit-link {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ===== Chat List Canvas Final ===== */
.page-chat .app-main {
  padding: 0 0 76px;
  background: linear-gradient(180deg, #eef4fb 0%, #e5edf7 100%);
}

.chat-shell-list-only {
  min-height: calc(100dvh - 58px - 76px);
  height: calc(100dvh - 58px - 76px);
  margin-top: 0;
  background: transparent;
}

.chat-list-panel-full {
  background: rgba(255, 255, 255, 0.52);
}

.chat-search-row-tight {
  padding: 0 0 6px;
}

.chat-room-list-full {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

.chat-room-row-compact {
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

.feed-appointment-body-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.feed-appointment-relation-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(61, 70, 88, 0.1);
  color: #3d4658;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-appointment-relation-badge-company {
  background: rgba(46, 107, 91, 0.12);
  color: #1f6a59;
}

.feed-appointment-relation-badge-school {
  background: rgba(56, 96, 168, 0.12);
  color: #2f5ea8;
}

.feed-appointment-relation-badge-region {
  background: rgba(133, 94, 66, 0.12);
  color: #8a5b35;
}

.feed-appointment-relation-badge-clan {
  background: rgba(122, 76, 138, 0.12);
  color: #7a4c8a;
}

.chat-live-toast {
  position: fixed;
  left: 50%;
  bottom: 94px;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(37, 49, 93, 0.94);
  color: #f7f9ff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: 0 14px 28px rgba(24, 29, 44, 0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 90;
}

.chat-live-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.chat-room-head-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.chat-room-info-toggle {
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(74, 98, 132, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.chat-room-info-toggle.is-active {
  background: #25315d;
  color: #f8f5ef;
}

.chat-room-info-panel {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
  padding: 12px 18px 14px;
}

.chat-room-info-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-room-info-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-room-info-label {
  color: #708099;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.chat-room-member-list {
  display: flex;
  flex-direction: column;
}

.chat-room-member-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-room-member-row:last-child {
  border-bottom: none;
}

.chat-room-member-avatar {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  overflow: hidden;
  background: #dbe6f7;
  color: #2f446c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.chat-room-member-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-room-member-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-room-member-copy strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
}

.chat-room-member-copy span {
  color: #708099;
  font-size: 12px;
  font-weight: 600;
}

.chat-room-leave-form {
  margin-top: 12px;
}

.chat-room-invite-section {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-room-invite-toggle {
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(74, 98, 132, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.chat-room-invite-toggle.is-active {
  background: #25315d;
  color: #f8f5ef;
}

.chat-room-invite-list {
  display: flex;
  flex-direction: column;
}

.chat-room-invite-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-room-invite-row:last-child {
  border-bottom: none;
}

.chat-room-invite-form {
  display: flex;
  align-items: center;
}

.chat-room-invite-btn {
  min-width: 52px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(37, 49, 93, 0.12);
  border-radius: 999px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.chat-room-leave-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(201, 68, 68, 0.18);
  border-radius: 14px;
  background: rgba(255, 244, 244, 0.96);
  color: #b33a3a;
  font-size: 14px;
  font-weight: 800;
}

.profile-canvas-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.profile-canvas-photo-btn {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(37, 49, 93, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.profile-canvas-photo-status {
  margin-top: 8px;
  color: #6f83a2;
  font-size: 12px;
  font-weight: 700;
}

.profile-canvas-photo-status.is-error {
  color: #b33a3a;
}

.profile-canvas-summary-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-canvas-summary-actions-inline {
  margin-top: 10px;
}

.profile-canvas-posts-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  border: 1px solid rgba(37, 49, 93, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.profile-posts-shell {
  min-height: calc(100vh - 116px);
  background: #edf3fb;
  padding: 14px 12px 20px;
}

.profile-posts-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding: 18px 18px 8px;
}

.profile-posts-head {
  padding: 4px 0 18px;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
}

.profile-posts-user {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-posts-avatar {
  width: 86px;
  height: 86px;
  border-radius: 28px;
  overflow: hidden;
  background: #dbe6f7;
  color: #2f446c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}

.profile-posts-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-posts-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-posts-copy h2 {
  color: #20314d;
  font-size: 24px;
  font-weight: 800;
}

.profile-posts-copy div,
.profile-posts-copy p {
  color: #708099;
  font-size: 14px;
  font-weight: 700;
}

.profile-posts-empty {
  padding: 26px 2px 18px;
  color: #708099;
  font-size: 14px;
  font-weight: 700;
}

.profile-posts-grid {
  display: flex;
  flex-direction: column;
}

.profile-post-card {
  position: relative;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
  padding: 20px 0;
}

.profile-post-card:first-child {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

.profile-post-card-link {
  display: grid;
  grid-template-columns: 46% minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.profile-post-thumb {
  order: 1;
  width: 100%;
  min-height: 180px;
  aspect-ratio: 1 / 1.08;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(37, 49, 93, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #25315d;
  font-size: 28px;
  font-weight: 800;
}

.profile-post-thumb img,
.profile-post-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-post-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
  padding: 4px 0;
}

.profile-post-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-post-card-top span {
  color: #7f8ea7;
  font-size: 12px;
  font-weight: 800;
}

.profile-post-card-top strong {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.profile-post-card-body p {
  color: #1f2f4d;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
  overflow: hidden;
}

.profile-post-card-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #708099;
  font-size: 12px;
  font-weight: 700;
}

.profile-post-delete-form {
  position: absolute;
  right: 0;
  top: 20px;
}

.profile-post-delete-btn {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(179, 58, 58, 0.14);
  border-radius: 999px;
  background: rgba(255, 244, 244, 0.92);
  color: #b33a3a;
  font-size: 12px;
  font-weight: 800;
}

.feed-appointment-author-link {
  color: inherit;
}

.feed-appointment-author-link:hover {
  color: #2f5ea8;
}

.write-affiliation-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 10px 0 12px;
  border-radius: 999px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
  margin-right: 8px;
  margin-bottom: 8px;
}

.write-affiliation-chip.is-primary {
  background: rgba(37, 49, 93, 0.14);
}

.write-affiliation-chip button {
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 999px;
  background: rgba(37, 49, 93, 0.14);
  color: #25315d;
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
}

.app-header-home {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(32, 36, 51, 0.08);
  box-shadow: none;
  min-height: 60px;
  padding: 10px 14px;
}

.app-header-home-side {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 72px;
}

.app-logo-home {
  justify-content: center;
  flex: 1;
}

.app-logo-image-home {
  height: 34px;
  max-width: 152px;
}

.header-icon-home {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  box-shadow: none;
  color: #111318;
  padding: 0;
}

.page-home .app-main {
  padding-top: 60px;
  padding-bottom: 84px;
  background: #f7f8fb;
}

.feed-ig-shell {
  background: #f7f8fb;
}

.feed-ig-tools {
  position: sticky;
  top: 60px;
  z-index: 20;
}

.feed-ig-list {
  display: flex;
  flex-direction: column;
}

.feed-ig-post {
  background: #fff;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  cursor: pointer;
}

.feed-ig-post-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.feed-ig-author {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.feed-ig-avatar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe6f7;
  color: #2f446c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.feed-ig-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-ig-author-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-ig-author-name {
  color: #14181f;
  font-size: 14px;
  font-weight: 800;
}

.feed-ig-author-sub {
  color: #6f7a8e;
  font-size: 12px;
  font-weight: 700;
}

.feed-ig-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(61, 70, 88, 0.1);
  color: #3d4658;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-ig-badge-company {
  background: rgba(46, 107, 91, 0.12);
  color: #1f6a59;
}

.feed-ig-badge-school {
  background: rgba(56, 96, 168, 0.12);
  color: #2f5ea8;
}

.feed-ig-badge-region {
  background: rgba(133, 94, 66, 0.12);
  color: #8a5b35;
}

.feed-ig-badge-clan {
  background: rgba(122, 76, 138, 0.12);
  color: #7a4c8a;
}

.feed-ig-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #e8edf5;
  overflow: hidden;
}

.feed-ig-media img,
.feed-ig-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-ig-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3c4e75;
  font-size: 48px;
  font-weight: 800;
}

.feed-ig-media-count {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.62);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
}

.feed-ig-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 8px;
  color: #14181f;
}

.feed-ig-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feed-ig-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 14px;
}

.feed-ig-stats {
  color: #14181f;
  font-size: 13px;
  font-weight: 800;
}

.feed-ig-caption {
  color: #14181f;
  font-size: 14px;
  line-height: 1.55;
}

.feed-ig-caption strong {
  margin-right: 6px;
}

.feed-ig-empty {
  padding: 30px 18px;
  color: #6f7a8e;
  font-size: 14px;
  font-weight: 700;
}

.feed-ig-empty p {
  color: #22314f;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 6px;
}

.page-chat .app-main,
.page-network .app-main {
  padding-top: 0;
  background: #f6f7fb;
}

.chat-shell-list-only,
.network-directory-shell {
  background: #f6f7fb;
}

.chat-list-panel-full,
.network-directory-panel-full {
  background: #fff;
}

.chat-search-row-tight,
.network-directory-search-row {
  padding: 0;
}

.chat-search-row-tight {
  border-bottom: 1px solid rgba(18, 23, 38, 0.06);
}

.chat-search-field,
.network-directory-search-field-full {
  min-height: 48px;
  border-radius: 12px;
  background: #f1f3f7;
  border: 1px solid rgba(18, 23, 38, 0.04);
  box-shadow: none;
}

.chat-search-field svg,
.network-directory-search-field-full svg {
  color: #a0a8b7;
}

.chat-search-field input,
.network-directory-search-field-full input {
  color: #293445;
  font-size: 14px;
}

.chat-search-field input::placeholder,
.network-directory-search-field-full input::placeholder {
  color: #9aa3b2;
}

.chat-room-list-full {
  border-top: none;
}

.chat-room-row-compact,
.network-directory-row-lined {
  min-height: 78px;
  padding: 12px 16px;
  gap: 12px;
  border-bottom: 1px solid rgba(18, 23, 38, 0.07);
  background: #fff;
}

.chat-room-avatar-photo,
.network-directory-row-lined .chat-room-avatar-photo {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: #dde6f3;
}

.chat-room-top,
.network-directory-topline {
  align-items: center;
}

.chat-room-title,
.network-directory-topline strong {
  font-size: 15px;
  color: #222d3f;
}

.chat-room-time {
  font-size: 12px;
  color: #99a2b3;
  font-weight: 700;
}

.chat-room-subtitle,
.network-directory-topline span {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: #98a1b1;
  font-weight: 700;
}

.chat-room-preview,
.network-directory-copy p {
  margin-top: 2px;
  color: #a2aaba;
  font-size: 13px;
  line-height: 1.35;
}

.chat-room-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.chat-room-side-icon {
  color: #b3bbca;
  line-height: 0;
}

.chat-unread-badge {
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #2d3868;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-unread-badge.is-empty {
  visibility: hidden;
}

.network-directory-main-list {
  background: #fff;
}

.network-inline-head-main {
  padding: 12px 16px 8px;
  border-top: none;
  border-bottom: 1px solid rgba(18, 23, 38, 0.07);
  background: #fff;
}

.network-inline-head-main strong {
  font-size: 16px;
}

.network-icon-btn-plain {
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  border-radius: 999px;
  color: #acb3c1;
}

.network-status-chip.is-connected {
  min-height: 24px;
  padding: 0 8px;
  background: transparent;
  color: #8690a2;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .network-directory-row-lined {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
  }

  .network-directory-actions {
    grid-column: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-top: 0;
  }
}

body.page-home .app-header.app-header-home {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  min-height: 60px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  box-shadow: none;
  color: #111318;
}

body.page-home .app-header.app-header-home .header-icon-home {
  color: #111318;
  background: transparent;
  border: none;
}

body.page-home .app-header.app-header-home .app-logo-image-home {
  height: 34px;
  max-width: 152px;
}

body.page-chat .app-header.app-header-write,
body.page-network .app-header.app-header-write {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  box-shadow: none;
  color: #111318;
}

body.page-chat .app-header.app-header-write .app-logo-write-title,
body.page-network .app-header.app-header-write .app-logo-write-title {
  color: #111318;
}

body.page-chat .app-header.app-header-write .header-icon-plain,
body.page-chat .app-header.app-header-write .header-icon-ghost,
body.page-network .app-header.app-header-write .header-icon-plain,
body.page-network .app-header.app-header-write .header-icon-ghost,
body.page-network .app-header.app-header-write .network-header-btn {
  color: #111318;
  background: transparent;
  border: none;
}

body.page-network .app-header.app-header-write .header-count-badge {
  background: #25315d;
  color: #fff;
}

body.page-profile .app-header.app-header-write {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  box-shadow: none;
  color: #111318;
}

body.page-profile .app-header.app-header-write .app-logo-write-title {
  color: #111318;
}

body.page-profile .app-header.app-header-write .header-icon-plain,
body.page-profile .app-header.app-header-write .header-icon-ghost {
  color: #111318;
  background: transparent;
  border: none;
}

body.page-chat-room {
  background: #fff;
}

.chat-room-global-header {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  box-shadow: none;
  color: #111318;
}

.chat-room-global-header .header-icon-plain,
.chat-room-global-header .header-icon-ghost {
  color: #111318;
  background: transparent;
  border: none;
}

.chat-room-global-title {
  color: #111318;
}

.chat-room-main-shell {
  background: #fff;
}

.chat-room-screen-head {
  background: #fff;
}

.chat-room-thread {
  background: #fff;
}

.chat-room-compose {
  background: #fff;
}

body.page-write .app-header.app-header-write {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  box-shadow: none;
  color: #111318;
}

body.page-help .app-header.app-header-write {
  background: rgba(255, 255, 255, 0.98);
  border: none;
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
  box-shadow: none;
  color: #111318;
}

/* ===== Chat Room Sharp Mode ===== */
body.page-chat-room {
  background: #fff;
}

.chat-room-main-shell {
  top: 58px;
  bottom: 0;
  background: #fff;
}

.chat-room-global-header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(22, 27, 38, 0.08);
}

.chat-room-global-title {
  color: #111318;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chat-room-global-info-btn {
  border: none;
  background: transparent;
  color: #465066;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  cursor: pointer;
}

.chat-room-thread {
  gap: 12px;
  padding: 14px 16px 12px;
  background: #fff;
}

.chat-message-author {
  font-size: 10px;
  color: #7c8fae;
}

.chat-bubble {
  max-width: 82%;
  padding: 8px 10px;
  background: #f7f9fc;
  border: 1px solid rgba(37, 49, 93, 0.08);
  color: #24324e;
  font-size: 12px;
  line-height: 1.48;
  border-radius: 12px;
}

.chat-message-item.is-mine .chat-bubble {
  background: #25315d;
  border-color: rgba(37, 49, 93, 0.18);
  color: #f8f5ef;
}

.chat-bubble.chat-bubble-image {
  padding: 6px;
  max-width: min(82%, 280px);
}

.chat-bubble.chat-bubble-image .chat-bubble-text {
  margin-top: 6px;
}

.chat-bubble-pending {
  opacity: 0.86;
}

.chat-bubble-pending-label {
  margin-bottom: 4px;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  opacity: 0.72;
}

.chat-message-item.is-pending-preview {
  opacity: 0.92;
}

.chat-file-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.chat-file-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-file-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(35, 45, 68, 0.08);
  background: rgba(34, 49, 81, 0.08);
  color: #223151;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chat-file-link-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chat-file-link-copy strong {
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  word-break: break-word;
}

.chat-file-link-copy span {
  color: inherit;
  opacity: 0.72;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.chat-file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(35, 45, 68, 0.1);
  background: rgba(255, 255, 255, 0.45);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.chat-message-time {
  font-size: 10px;
}

.chat-room-compose {
  grid-template-columns: 40px minmax(0, 1fr) 88px;
  gap: 8px;
  padding: 8px 16px 10px;
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid rgba(74, 98, 132, 0.08);
}

.chat-upload-trigger {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(36, 50, 78, 0.1);
  color: #51617d;
}

.chat-room-compose .chat-message-input {
  min-height: 40px;
  border-radius: 10px;
  border-width: 1px;
  font-size: 12px;
}

.chat-room-compose .chat-message-submit {
  min-height: 40px;
  border-radius: 10px;
  font-size: 12px;
}

.chat-upload-selected {
  display: none;
}

.chat-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  background: rgba(10, 14, 20, 0.88);
}

.chat-image-viewer[hidden] {
  display: none !important;
}

.chat-image-viewer-image {
  max-width: 100%;
  max-height: calc(100dvh - 140px);
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.04);
}

.chat-image-viewer-close,
.chat-image-viewer-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

body.has-chat-image-viewer {
  overflow: hidden;
}

@media (max-width: 480px) {
  .chat-room-main-shell {
    bottom: 0;
  }

  .chat-room-compose {
    grid-template-columns: 38px minmax(0, 1fr) 82px;
    padding: 8px 14px 10px;
  }
}

body.page-write .app-header.app-header-write .app-logo-write-title {
  color: #111318;
}

body.page-help .app-header.app-header-write .app-logo-write-title {
  color: #111318;
  letter-spacing: -0.03em;
}

body.page-write .app-header.app-header-write .header-icon-plain,
body.page-write .app-header.app-header-write .header-icon-ghost {
  color: #111318;
  background: transparent;
  border: none;
}

body.page-help .app-header.app-header-write .header-icon-plain,
body.page-help .app-header.app-header-write .header-icon-ghost {
  color: #111318;
  background: transparent;
  border: none;
}

body.page-write .app-main {
  background: #fff;
}

body.page-help .app-main {
  background: #f3f6fb;
}

body.page-write .write-canvas-shell {
  min-height: calc(100dvh - 58px - 76px);
  background: #fff;
  padding: 18px 14px 22px;
}

body.page-help .write-canvas-shell {
  min-height: calc(100dvh - 58px - 76px);
  background: #f3f6fb;
  padding: 18px 14px 22px;
}

body.page-write .write-canvas-panel {
  min-height: auto;
  background: transparent;
}

body.page-help .write-canvas-panel {
  min-height: auto;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(88, 108, 148, 0.08);
  box-shadow: 0 16px 30px rgba(39, 61, 102, 0.08);
  overflow: hidden;
}

body.page-write .write-canvas-form {
  min-height: auto;
}

body.page-help .write-canvas-form {
  min-height: auto;
}

body.page-write .write-canvas-section {
  padding: 18px 2px 16px;
}

body.page-help .write-canvas-section {
  padding: 18px 18px 16px;
}

body.page-write .write-canvas-section + .write-canvas-section {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

body.page-help .write-canvas-section + .write-canvas-section {
  border-top: 1px solid rgba(74, 98, 132, 0.08);
}

body.page-write .write-canvas-select,
body.page-write .write-canvas-upload-field {
  background: rgba(247, 250, 255, 0.92);
  border-color: rgba(74, 98, 132, 0.10);
}

body.page-help .write-canvas-select,
body.page-help .write-canvas-upload-field,
body.page-help .project-single-input {
  background: #f8faff;
  border-color: rgba(74, 98, 132, 0.10);
}

body.page-write .write-canvas-textarea {
  min-height: 260px;
  background: transparent;
}

body.page-help .write-canvas-textarea {
  min-height: 260px;
  background: transparent;
}

body.page-write .write-canvas-footer {
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: transparent;
  border-top: 1px solid rgba(74, 98, 132, 0.10);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-help .write-canvas-footer {
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid rgba(74, 98, 132, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

@media (max-width: 480px) {
  body.page-write .write-canvas-shell {
    padding: 14px 10px 18px;
  }

  body.page-help .write-canvas-shell {
    padding: 14px 10px 18px;
  }
}

body.page-profile .app-main {
  background: #fff;
}

body.page-profile .profile-canvas-shell {
  min-height: calc(100dvh - 58px - 76px);
  background: #fff;
  padding: 18px 14px 22px;
}

body.page-profile .profile-canvas-panel {
  min-height: auto;
  background: transparent;
  display: flex;
  flex-direction: column;
}

body.page-profile .profile-canvas-main {
  display: flex;
  flex-direction: column;
}

body.page-profile .profile-canvas-summary {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 6px 2px 22px;
}

body.page-profile .profile-canvas-avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
}

body.page-profile .profile-canvas-summary-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-reward-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 6px;
}

.profile-reward-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-reward-summary-card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f9ff;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.profile-reward-summary-label {
  display: block;
  color: #7a8ba5;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.profile-reward-summary-card strong {
  color: #22314f;
  font-size: 20px;
  font-weight: 800;
}

.profile-reward-filter {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.profile-reward-filter-select {
  flex: 1;
  max-width: none;
}

.profile-reward-card {
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.profile-reward-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.profile-reward-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.profile-reward-card-copy strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.profile-reward-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #7a8ba5;
  font-size: 12px;
  font-weight: 600;
}

.profile-reward-card-points {
  color: #284d9d;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.profile-reward-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-reward-card-note {
  margin: 10px 0 0;
  color: #566785;
  font-size: 13px;
  line-height: 1.6;
}

.profile-reward-card-actions {
  margin-top: 12px;
}

.profile-reward-status-chip {
  font-weight: 800;
}

.profile-reward-status-chip-approved {
  background: rgba(55, 132, 255, 0.12);
  color: #2b63cb;
}

.profile-reward-status-chip-paid {
  background: rgba(51, 181, 121, 0.14);
  color: #17784c;
}

.profile-reward-status-chip-rejected {
  background: rgba(228, 73, 73, 0.12);
  color: #b53737;
}

.profile-reward-status-chip-pending {
  background: rgba(255, 184, 0, 0.14);
  color: #986b05;
}

.profile-settlement-filter-input {
  flex: 1.2;
}

.profile-settlement-card .profile-reward-card-points {
  font-size: 13px;
}

@media (max-width: 640px) {
  .profile-reward-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-reward-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-settlement-filter-input {
    flex: auto;
  }
}

body.page-profile .profile-canvas-posts-link,
body.page-profile .profile-canvas-edit-link {
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(37, 49, 93, 0.10);
  background: rgba(37, 49, 93, 0.06);
}

body.page-profile .profile-canvas-section {
  padding: 18px 2px;
}

body.page-profile .profile-canvas-footer {
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(74, 98, 132, 0.10);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.page-profile .profile-canvas-logout-btn {
  border-radius: 12px;
  background: rgba(255, 244, 244, 0.92);
  border-color: rgba(179, 58, 58, 0.14);
  color: #b33a3a;
}

@media (max-width: 480px) {
  body.page-profile .profile-canvas-shell {
    padding: 14px 10px 18px;
  }

  body.page-profile .profile-canvas-summary {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
    align-items: flex-start;
  }

  body.page-profile .profile-canvas-avatar {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 480px) {
  .profile-posts-shell {
    padding: 10px 8px 18px;
  }

  .profile-posts-panel {
    padding: 16px 14px 6px;
  }

  .profile-posts-user {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-posts-avatar {
    width: 74px;
    height: 74px;
    border-radius: 24px;
    font-size: 30px;
  }

  .profile-post-card-link {
    grid-template-columns: 44% minmax(0, 1fr);
    gap: 14px;
  }

  .profile-post-thumb {
    min-height: 160px;
    border-radius: 18px;
  }
}

body.page-profile .app-main:has(.setup-shell-social) {
  background: #fff;
}

body.page-profile .setup-shell {
  min-height: calc(100dvh - 58px - 76px);
  padding: 18px 14px 22px;
}

body.page-profile .setup-shell-social {
  background: #fff;
  border-radius: 22px;
  padding: 0 18px 18px;
}

body.page-profile .setup-page-card {
  gap: 0;
}

body.page-profile .setup-intro-panel {
  padding: 8px 2px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 0;
  box-shadow: none;
}

body.page-profile .setup-page-link {
  color: #25315d;
}

body.page-profile .setup-stepper-refined {
  padding: 14px 0 2px;
}

body.page-profile .setup-step-pill {
  background: rgba(247, 250, 255, 0.92);
  border-color: rgba(74, 98, 132, 0.10);
  color: #6a7790;
}

body.page-profile .setup-step-pill.is-active {
  background: #25315d;
  border-color: #25315d;
  color: #fff;
}

body.page-profile .setup-form-card-refined {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 18px 0 0;
  box-shadow: none;
}

body.page-profile .setup-panel-head {
  margin-bottom: 18px;
}

body.page-profile .setup-page-description {
  color: #66758d;
}

body.page-profile .setup-section-stack {
  gap: 0;
}

body.page-profile .setup-section-panel {
  padding: 18px 2px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

body.page-profile .setup-section-panel + .setup-section-panel {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

body.page-profile .setup-search-wrap {
  margin-top: 12px;
}

body.page-profile .setup-field-helper {
  margin-top: 8px;
  color: #73829a;
  font-size: 12px;
  line-height: 1.45;
}

body.page-profile .setup-clan-stage-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  margin-bottom: 6px;
}

body.page-profile .setup-clan-stage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(74, 98, 132, 0.12);
  border-radius: 14px;
  background: rgba(250, 252, 255, 0.9);
  color: #7c89a1;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

body.page-profile .setup-clan-stage.is-active,
body.page-profile .setup-clan-stage.is-complete {
  border-color: rgba(39, 86, 179, 0.22);
  background: rgba(237, 244, 255, 0.95);
  color: #244485;
}

body.page-profile .setup-clan-stage-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(126, 144, 168, 0.14);
  color: inherit;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}

body.page-profile .setup-clan-stage.is-active .setup-clan-stage-badge,
body.page-profile .setup-clan-stage.is-complete .setup-clan-stage-badge {
  background: rgba(39, 86, 179, 0.12);
}

body.page-profile .setup-clan-stage-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

body.page-profile .setup-search-input {
  padding: 0 34px 0 0;
  background: transparent;
  border-bottom: 1px solid rgba(74, 98, 132, 0.18);
}

body.page-profile .setup-results {
  margin-top: 12px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 14px;
  background: #fff;
}

body.page-profile .setup-result-item {
  padding: 14px 16px;
}

body.page-profile .setup-result-item-clan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

body.page-profile .setup-result-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(44, 79, 146, 0.08);
  color: #4160a0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

body.page-profile .setup-result-item-clan .setup-result-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #22314f;
}

body.page-profile .setup-result-item-clan .setup-result-meta {
  font-size: 12px;
  line-height: 1.45;
  color: #6f7d97;
}

body.page-profile .setup-selected-item {
  border-radius: 14px;
  background: rgba(247, 250, 255, 0.92);
  border: 1px solid rgba(74, 98, 132, 0.10);
}

body.page-profile .setup-selected-item-clan {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(241, 246, 255, 0.94) 100%);
  border-color: rgba(56, 92, 156, 0.14);
}

body.page-profile .setup-selected-item-clan .setup-selected-name {
  letter-spacing: -0.03em;
}

body.page-profile .setup-selected-item-clan .setup-selected-meta + .setup-selected-meta {
  margin-top: 4px;
}

body.page-profile .setup-summary-grid-refined {
  gap: 0;
}

body.page-profile .setup-summary-card {
  padding: 18px 2px;
  background: transparent;
  border: none;
  border-radius: 0;
}

body.page-profile .setup-summary-card + .setup-summary-card {
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

body.page-profile .setup-actions-refined {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(74, 98, 132, 0.10);
}

@media (max-width: 480px) {
  body.page-profile .setup-shell {
    padding: 14px 10px 18px;
  }

  body.page-profile .setup-shell-social {
    padding: 0 14px 16px;
  }
}

body.page-chat .app-main,
body.page-network .app-main {
  padding-top: 0;
}

.page-home .app-main,
body.page-home .app-main {
  padding-top: 58px;
}

.feed-ig-tools {
  top: 58px;
}

body.page-home .app-header.app-header-home {
  min-height: 58px;
}

.chat-shell-list-only,
.network-directory-shell {
  margin-top: 0;
  padding-top: 0;
}

.chat-search-row-tight,
.network-directory-search-row {
  padding-top: 0;
}

body.page-write .write-canvas-shell {
  padding-top: 0;
}

@media (max-width: 480px) {
  body.page-write .write-canvas-shell {
    padding-top: 0;
  }
}

/* ===== Unified Page Start Line ===== */
body.page-chat .chat-shell-list-only,
body.page-network .network-directory-shell,
body.page-write .write-canvas-shell {
  padding-top: 18px !important;
}

body.page-chat .chat-search-row-tight,
body.page-network .network-directory-search-row {
  padding-top: 0 !important;
}

@media (max-width: 480px) {
  body.page-chat .chat-shell-list-only,
  body.page-network .network-directory-shell,
  body.page-write .write-canvas-shell {
    padding-top: 14px !important;
  }
}

/* ===== Standard Page Shell ===== */
.app-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
}

.app-main {
  padding-top: 58px;
}

.page-shell-standard {
  position: fixed;
  top: 58px;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 18px 14px 22px;
}

body.page-write .app-main,
body.page-network .app-main,
body.page-chat .app-main,
body.page-profile .app-main {
  padding: 0 !important;
}

body.page-write .page-shell-standard,
body.page-network .page-shell-standard,
body.page-chat .page-shell-standard,
body.page-profile .page-shell-standard {
  background: transparent;
}

body.page-chat .page-shell-standard,
body.page-network .page-shell-standard {
  overflow: hidden;
  bottom: 68px;
}

body.page-chat .page-shell-standard {
  padding: 0;
}

body.page-network .page-shell-standard {
  padding: 0;
}

body.page-chat .chat-shell-list-only,
body.page-chat .chat-list-screen-full,
body.page-chat .chat-list-panel-full,
body.page-chat .chat-room-list-full {
  height: 100%;
  min-height: 100%;
}

body.page-write .write-canvas-shell,
body.page-network .network-directory-shell,
body.page-chat .chat-shell-list-only,
body.page-profile .profile-canvas-shell,
body.page-profile .setup-shell,
body.page-profile .profile-showcase-shell {
  min-height: 100%;
  padding: 0;
  padding-top: 0 !important;
}

body.page-write .write-canvas-panel,
body.page-network .network-directory-panel-full,
body.page-chat .chat-list-panel-full,
body.page-profile .profile-canvas-panel {
  min-height: auto;
}

body.page-network .network-directory-shell,
body.page-chat .chat-shell-list-only {
  height: 100%;
}

body.page-profile .setup-shell-social {
  border-radius: 22px;
}

@media (max-width: 480px) {
  .page-shell-standard {
    padding: 14px 10px 18px;
  }
}

body.page-home .app-main {
  padding: 0 !important;
}

body.page-home .page-shell-standard {
  background: #f7f8fb;
}

body.page-home .feed-ig-shell {
  min-height: 100%;
  background: #f7f8fb;
}

body.page-home .feed-ig-tools {
  top: 0 !important;
}

body.page-network .network-directory-search-row {
  padding: 12px 0 10px !important;
}

body.page-network .network-directory-search-form-full {
  padding: 0 14px;
}

body.page-chat .chat-search-row-tight {
  padding: 12px 0 10px !important;
  border-bottom: 1px solid rgba(18, 23, 38, 0.07);
}

body.page-chat .chat-search-field {
  margin: 0 14px;
}

.profile-showcase-shell {
  min-height: calc(100vh - 116px);
  background: #fff;
  padding: 18px 14px 22px;
}

.profile-showcase-top {
  padding: 4px 2px 18px;
}

.profile-showcase-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.profile-showcase-avatar {
  width: 88px;
  height: 88px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbe6f7;
  color: #2f446c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
}

.profile-showcase-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-showcase-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.profile-showcase-metric {
  text-align: center;
}

.profile-showcase-metric strong {
  display: block;
  color: #20314d;
  font-size: 20px;
  font-weight: 800;
}

.profile-showcase-metric span {
  display: block;
  margin-top: 2px;
  color: #7687a3;
  font-size: 12px;
  font-weight: 700;
}

.profile-showcase-copy {
  margin-top: 16px;
}

.profile-showcase-copy h2 {
  color: #20314d;
  font-size: 19px;
  font-weight: 800;
}

.profile-showcase-handle {
  margin-top: 3px;
  color: #6f809e;
  font-size: 13px;
  font-weight: 700;
}

.profile-showcase-bio {
  margin-top: 8px;
  color: #22314f;
  font-size: 14px;
  line-height: 1.55;
}

.profile-showcase-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.profile-showcase-highlight {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(37, 49, 93, 0.08);
  color: #25315d;
  font-size: 12px;
  font-weight: 800;
}

.profile-showcase-actions {
  margin-top: 14px;
}

.profile-showcase-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(74, 98, 132, 0.10);
  color: #25315d;
  font-size: 13px;
  font-weight: 800;
}

.profile-showcase-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 12px;
  border-top: 1px solid rgba(74, 98, 132, 0.10);
  border-bottom: 1px solid rgba(74, 98, 132, 0.10);
  color: #20314d;
}

.profile-showcase-grid-head strong {
  font-size: 15px;
  font-weight: 800;
}

.profile-showcase-grid-head span {
  color: #7484a0;
  font-size: 13px;
  font-weight: 700;
}

.profile-showcase-empty {
  padding: 24px 4px;
  color: #72829d;
  font-size: 14px;
  font-weight: 700;
}

.profile-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding-top: 12px;
}

.profile-showcase-post {
  position: relative;
}

.profile-showcase-post-link {
  display: block;
}

.profile-showcase-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: rgba(37, 49, 93, 0.08);
  overflow: hidden;
}

.profile-showcase-thumb img,
.profile-showcase-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-showcase-thumb.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2f446c;
  font-size: 28px;
  font-weight: 800;
}

.profile-showcase-thumb-overlay {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 34px;
  padding: 0 8px;
  background: linear-gradient(180deg, transparent, rgba(17, 19, 24, 0.64));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity .15s ease;
}

.profile-showcase-post:hover .profile-showcase-thumb-overlay,
.profile-showcase-post:active .profile-showcase-thumb-overlay {
  opacity: 1;
}

.profile-showcase-delete-form {
  position: absolute;
  top: 8px;
  right: 8px;
}

.profile-showcase-delete-btn {
  min-height: 24px;
  padding: 0 8px;
  border: none;
  border-radius: 999px;
  background: rgba(17, 19, 24, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

@media (max-width: 480px) {
  .profile-showcase-shell {
    padding: 14px 10px 18px;
  }

  .profile-showcase-hero {
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 14px;
  }

  .profile-showcase-avatar {
    width: 80px;
    height: 80px;
    font-size: 30px;
  }
}

.network-directory-row-main {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
}

.network-directory-row-main .network-directory-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  margin-top: 0;
}

.network-directory-row-main .network-status-chip {
  min-width: 44px;
}

@media (max-width: 480px) {
  .network-directory-row-main {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
  }

  .network-directory-row-main .network-directory-actions {
    grid-column: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
    margin-top: 0;
  }
}

.app-logo-home-title {
  color: #11161f !important;
  font-weight: 800;
  letter-spacing: -0.02em;
}



.push-permission-banner {
  position: fixed;
  left: 50%;
  bottom: calc(92px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(452px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  z-index: 140;
}

.push-permission-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.push-permission-copy strong {
  font-size: 14px;
  color: #101828;
}

.push-permission-copy span {
  font-size: 12px;
  color: #667085;
  line-height: 1.4;
}

.push-permission-btn {
  flex-shrink: 0;
  height: 38px;
  padding: 0 14px;
  border: 0;
  background: #1f2937;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

body.page-network .app-header.app-header-write .app-logo-write-title {
  letter-spacing: -0.03em;
}

body.page-network .network-inline-panel-main {
  border-top: 1px solid rgba(18, 23, 38, 0.06);
}

body.page-network .network-directory-main-list {
  padding-top: 0;
  background: #fff;
}

body.page-network .network-directory-shell,
body.page-network .network-list-screen-full,
body.page-network .network-directory-panel-full,
body.page-network .network-inline-panel-main,
body.page-network .network-directory-main-list {
  height: 100%;
  min-height: 100%;
}

body.page-network .network-directory-row-lined {
  min-height: 76px;
  transition: background-color .16s ease;
}

body.page-network .network-directory-row-lined:hover,
body.page-network .network-directory-row-lined:active {
  background: rgba(21, 27, 38, 0.02);
}

body.page-network .network-directory-panel-full {
  box-shadow: none;
}

.network-project-strip {
  padding: 14px 16px 10px;
  border-bottom: 1px solid rgba(18, 23, 38, 0.06);
  background: #fff;
}

.network-inline-link {
  color: #4069b2;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.network-project-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.network-project-card {
  display: block;
  padding: 14px 14px 12px;
  border-radius: 14px;
  border: 1px solid rgba(33, 58, 103, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  text-decoration: none;
  color: inherit;
}

.network-project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.network-project-top strong {
  color: #18243d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.network-project-top span {
  flex-shrink: 0;
  color: #6c7a98;
  font-size: 11px;
  font-weight: 700;
}

.network-project-card p {
  margin: 8px 0 10px;
  color: #52617f;
  font-size: 13px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.network-project-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body.page-chat .app-header.app-header-write .app-logo-write-title {
  letter-spacing: -0.03em;
}

body.page-chat .chat-list-panel-full {
  box-shadow: none;
}

body.page-chat .chat-room-list-full {
  padding-top: 0;
  background: #fff;
}

body.page-chat .chat-room-list-full.chat-room-list-lined {
  padding: 0;
}

body.page-chat .chat-room-row-compact {
  min-height: 76px;
  transition: background-color .16s ease;
}

body.page-chat .chat-room-row-compact:hover,
body.page-chat .chat-room-row-compact:active {
  background: rgba(21, 27, 38, 0.02);
}

.project-list-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.help-list-shell {
  min-height: calc(100dvh - 58px - 76px);
  padding: 18px 14px 22px;
  background: #fff;
}

.help-list-surface {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.help-search-group,
.help-create-callout,
.help-request-card,
.help-empty-state {
  border: 1px solid rgba(88, 108, 148, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(39, 61, 102, 0.05);
}

.help-search-group {
  padding: 16px;
}

.help-search-group-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.help-search-group-head strong {
  color: #1f2d4b;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.help-search-group-head span {
  color: #7a88a6;
  font-size: 12px;
  font-weight: 600;
}

.help-search-form {
  display: block;
}

.help-search-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-search-input-wrap {
  position: relative;
}

.help-search-input-wrap svg {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  color: #98a4b7;
}

.help-search-input,
.help-search-select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(88, 108, 148, 0.10);
  background: #f8faff;
  color: #25324f;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
}

.help-search-input {
  padding: 0 14px 0 42px;
}

.help-search-input::placeholder {
  color: #9ba7bb;
}

.help-search-input:focus,
.help-search-select:focus {
  outline: none;
  border-color: rgba(82, 110, 176, 0.32);
  background: #fff;
}

.help-search-select-wrap {
  position: relative;
}

.help-search-select {
  appearance: none;
  padding: 0 40px 0 14px;
}

.help-search-chevron {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: #8290a8;
  pointer-events: none;
}

.help-search-submit {
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #4069b2 0%, #27457d 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(64, 105, 178, 0.16);
}

.help-create-callout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  background: linear-gradient(135deg, #f6f9ff 0%, #eef3fb 100%);
}

.help-create-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.help-create-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(87, 118, 182, 0.10);
  color: #4c6294;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.help-create-copy strong {
  color: #1f2d4b;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.help-create-copy p {
  margin: 0;
  color: #677692;
  font-size: 13px;
  line-height: 1.58;
}

.help-create-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #344a72 0%, #1f2b44 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(31, 43, 68, 0.16);
}

.help-list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: #7382a0;
  font-size: 12px;
  font-weight: 700;
}

.help-list-meta strong {
  color: #23314f;
}

.help-request-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.help-filter-panel {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(88, 108, 148, 0.08);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(39, 61, 102, 0.05);
}

.help-search-form.is-panel {
  margin: 0;
}

.help-search-controls.is-stacked {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.help-search-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.help-list-meta.is-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.help-list-meta-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-list-meta-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.help-empty-state {
  padding: 28px 18px;
  color: #5f6d88;
  text-align: center;
}

.help-empty-state strong {
  display: block;
  color: #24314d;
  font-size: 15px;
  margin-bottom: 6px;
}

.help-empty-state p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.help-request-card {
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.help-request-link {
  display: block;
  padding: 18px 18px 16px;
  color: inherit;
  text-decoration: none;
}

.help-request-card:hover {
  transform: translateY(-1px);
  border-color: rgba(67, 101, 160, 0.14);
  box-shadow: 0 16px 32px rgba(39, 61, 102, 0.08);
}

.help-request-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  overflow: hidden;
}

.help-request-head-request {
  background: linear-gradient(135deg, #eef5ff 0%, #dfeaff 100%);
}

.help-request-head-offer {
  background: linear-gradient(135deg, #eefaf2 0%, #def4e5 100%);
}

.help-request-head-ad {
  background: linear-gradient(135deg, #fff5e9 0%, #ffe8c6 100%);
}

.help-request-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.help-request-head-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.help-request-title-block {
  min-width: 0;
}

.help-request-title-block strong {
  display: block;
  color: #1d2f4f;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.help-request-title-block strong {
  display: block;
  color: #1b2740;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.help-request-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.help-request-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.help-request-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.help-request-type-badge-request {
  background: #e8f1ff;
  color: #2f5faa;
}

.help-request-type-badge-offer {
  background: #eaf8ed;
  color: #2f7b4f;
}

.help-request-type-badge-ad {
  background: #fff1e3;
  color: #a9621b;
}

.help-request-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(217, 232, 255, 0.66);
  color: #395688;
  font-size: 12px;
  font-weight: 800;
}

.help-request-chip.is-muted {
  background: rgba(240, 243, 249, 0.96);
  color: #6e7f99;
}

.help-request-time {
  color: #8b98b0;
  font-size: 12px;
  font-weight: 700;
}

.help-request-budget-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #243a63;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(38, 57, 95, 0.10);
  white-space: nowrap;
}

.help-request-budget-caption {
  color: #6d7c95;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.help-request-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(244, 247, 253, 0.98);
  color: #5f7293;
  font-size: 11px;
  font-weight: 800;
}

.help-request-arrow {
  flex-shrink: 0;
  color: #90a0bb;
}

.help-request-arrow-in-head {
  position: absolute;
  top: 18px;
  right: 16px;
  color: rgba(44, 66, 104, 0.48);
}

.help-request-description {
  margin: 14px 0 16px;
  color: #4f5f7e;
  font-size: 14px;
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.help-request-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.help-request-summary-item {
  padding: 12px 13px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f6fd 100%);
  border: 1px solid rgba(79, 108, 156, 0.08);
}

.help-request-summary-item strong {
  display: block;
  margin-bottom: 5px;
  color: #7a89a1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.help-request-summary-item span {
  display: block;
  color: #203761;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.help-request-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(88, 108, 148, 0.08);
}

.help-request-author {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.help-request-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #d7e4f7 0%, #edf2fb 100%);
  color: #354b76;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.help-request-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.help-request-author span {
  color: #25324f;
  font-size: 13px;
  font-weight: 700;
}

.help-request-author-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.help-request-author-copy small {
  color: #8a97ad;
  font-size: 11px;
  font-weight: 700;
}

.help-request-detail {
  color: #3f64a8;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.help-pagination {
  margin-top: 2px;
  padding: 2px 4px 0;
}

.help-pagination-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fd 100%);
  border: 1px solid rgba(67, 101, 160, 0.10);
  box-shadow: 0 12px 28px rgba(31, 53, 91, 0.06);
}

.help-pagination-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.help-pagination-copy strong {
  color: #203761;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.help-pagination-copy span {
  color: #70829e;
  font-size: 13px;
  font-weight: 600;
}

.help-pagination-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.help-pagination-meta span {
  color: #8a9bb3;
  font-size: 12px;
  font-weight: 600;
}

.help-pagination-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(237, 243, 255, 0.92);
  color: #315ea8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.help-pagination-chip.is-keyword {
  background: rgba(248, 242, 255, 0.96);
  color: #7a4ab2 !important;
}

.help-pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.help-pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf3ff;
  color: #315ea8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.help-pagination-link.is-disabled {
  background: #f1f4f8;
  color: #9aa7bc;
}

.project-filter-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-filter-input,
.project-single-input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(33, 58, 103, 0.12);
  background: #fbfcff;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #14213d;
}

.project-filter-select-wrap {
  width: 100%;
}

.project-filter-btn,
.project-create-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.project-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-list-card {
  padding: 18px 18px 16px;
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-list-snippet {
  margin-top: 10px;
}

.project-form-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-allow-contact {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #5c6887;
  font-size: 13px;
  line-height: 1.6;
}

.project-allow-contact input {
  margin-top: 2px;
}

.project-broker-toggle {
  margin-bottom: 14px;
}

.project-toggle-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(74, 98, 132, 0.12);
  border-radius: 18px;
  background: #f8fbff;
}

.project-toggle-row-compact {
  margin-top: 14px;
}

.project-toggle-input {
  position: absolute;
  display: none !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.project-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  width: 50px;
  cursor: pointer;
}

.project-switch input[type='checkbox'] {
  display: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

.project-toggle-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.project-toggle-copy strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
}

.project-toggle-copy span {
  color: #6d7c95;
  font-size: 12px;
  line-height: 1.55;
}

.project-toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  max-width: 50px;
  min-width: 50px;
  border-radius: 999px;
  background: #d8e1ef;
  transition: background 0.18s ease;
}

.project-toggle-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 14px rgba(34, 49, 79, 0.16);
  transition: transform 0.18s ease;
}

.project-toggle-input:checked + .project-toggle-switch {
  background: #4c79ff;
}

.project-toggle-input:checked + .project-toggle-switch::after {
  transform: translateX(20px);
}

.project-broker-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 18px;
  background: #f8faff;
  transition: opacity 0.18s ease, filter 0.18s ease;
}

.project-broker-settings.is-disabled {
  opacity: 0.58;
}

.project-success-textarea {
  min-height: 120px !important;
}

.project-broker-box-copy {
  margin-top: 6px !important;
}

.project-broker-action-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: #f8faff;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.project-broker-action-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.project-broker-action-head strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
}

.project-broker-action-head span {
  color: #7a8ba5;
  font-size: 12px;
  line-height: 1.5;
}

.project-broker-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.project-broker-select-wrap {
  max-width: none;
}

.project-broker-note {
  min-height: 120px !important;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.project-broker-action-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.project-broker-action-footer span {
  color: #6d7c95;
  font-size: 12px;
  line-height: 1.5;
}

.project-candidate-builder {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-candidate-search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.project-candidate-search .compose-input {
  flex: 1;
}

.project-candidate-search-btn,
.project-candidate-add-btn {
  flex-shrink: 0;
}

.project-candidate-results,
.project-candidate-selected-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-candidate-search-item,
.project-candidate-selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.project-candidate-selected-card {
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.project-candidate-selected-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.project-candidate-selected-head strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
}

.project-candidate-selected-head span {
  color: #7a8ba5;
  font-size: 12px;
  line-height: 1.5;
}

.project-candidate-selected-user,
.project-broker-candidate-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.project-candidate-selected-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.project-candidate-selected-copy strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
}

.project-candidate-selected-copy span {
  color: #7a8ba5;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-candidate-remove-btn {
  border: none;
  background: transparent;
  color: #e05466;
  font-size: 12px;
  font-weight: 800;
}

.project-broker-candidates {
  margin: 14px 0 0;
  padding: 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid rgba(74, 98, 132, 0.08);
}

.project-broker-candidates-head {
  margin-bottom: 10px;
}

.project-broker-candidates-head strong {
  color: #22314f;
  font-size: 13px;
  font-weight: 800;
}

.project-broker-candidate-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-broker-candidate-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(74, 98, 132, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.project-broker-candidate-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-broker-candidate-user {
  flex: 1;
  min-width: 0;
}

.project-broker-candidate-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.project-broker-candidate-copy strong {
  color: #22314f;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.project-broker-candidate-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.project-broker-candidate-title-row strong {
  flex: 1;
  min-width: 0;
}

.project-broker-candidate-link-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
}

.project-broker-candidate-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef4ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3559b5;
  font-size: 15px;
  font-weight: 800;
  flex-shrink: 0;
}

.project-broker-candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-broker-candidate-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  min-width: auto;
}

.project-inline-chat-form {
  width: 100%;
}

.project-inline-chat-btn {
  width: 100%;
  min-height: 42px;
}

.project-broker-candidate-empty {
  color: #7a8ba5;
  font-size: 12px;
  line-height: 1.6;
}

.project-broker-submit-btn {
  align-self: flex-start;
}

.project-broker-list-section {
  margin-top: 14px;
}

.project-broker-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-broker-item {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(88, 108, 148, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(39, 61, 102, 0.05);
}

.project-broker-item-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.project-broker-item-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 6px;
}

.project-broker-item-copy strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.project-broker-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-candidate-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-candidate-state-badge.is-proposed {
  background: #eaf2ff;
  color: #4668b8;
}

.project-candidate-state-badge.is-selected {
  background: #eef2ff;
  color: #34458f;
}

.project-candidate-state-badge.is-confirmed {
  background: #e9f8ee;
  color: #2d8c55;
}

.project-candidate-state-badge.is-rejected {
  background: #fff0f2;
  color: #d34b63;
}

body.page-help .project-broker-candidate-link-row .profile-canvas-posts-link,
body.page-help .project-broker-candidate-link-row .compose-submit-btn.is-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

body.page-help .project-broker-candidate-link-row .profile-canvas-posts-link {
  min-width: 96px;
}

body.page-help .project-broker-candidate-link-row .compose-submit-btn.is-inline {
  min-width: 68px;
}

body.page-help .project-broker-candidate-link-row .project-broker-reject-btn.is-inline {
  background: #fff;
  border: 1px solid rgba(225, 88, 104, 0.3);
  color: #d34b63;
}

.project-broker-item-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(237, 243, 252, 0.88);
  color: #495a78;
  font-size: 13px;
  line-height: 1.7;
}

.project-broker-item-review {
  margin: 10px 0 0;
  padding: 0 2px;
  color: #7a8ba5;
  font-size: 12px;
  line-height: 1.6;
}

.project-broker-item-links {
  margin-top: 8px;
}

.project-broker-review {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-broker-review-note {
  min-height: 84px !important;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(74, 98, 132, 0.10);
}

.project-broker-review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio-shell .profile-canvas-summary-actions {
  flex-wrap: wrap;
}

.portfolio-section-copy {
  margin: 0 0 16px;
  color: #53647f;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-line;
}

.portfolio-unlock-card {
  border: 1px solid rgba(59, 99, 201, 0.10);
  background: linear-gradient(180deg, #f9fbff 0%, #f1f6ff 100%);
}

.portfolio-unlock-card.is-active {
  border-color: rgba(47, 123, 79, 0.12);
  background: linear-gradient(180deg, #f8fffb 0%, #eefaf3 100%);
}

.portfolio-unlock-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.portfolio-unlock-form {
  margin: 0;
}

.portfolio-contact-actions {
  margin-top: 14px;
}

.portfolio-contact-form {
  margin: 0;
}

.portfolio-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 12px;
}

.portfolio-item-card {
  padding: 16px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 18px;
  background: #f8fbff;
}

.portfolio-item-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.portfolio-item-top strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.portfolio-item-copy {
  margin: 10px 0 0;
  color: #53647f;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.portfolio-item-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7a8ba5;
  font-size: 12px;
  font-weight: 600;
}

.portfolio-item-link {
  margin-top: 12px;
}

.profile-canvas-posts-link-static {
  pointer-events: none;
}

.profile-canvas-portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfdff 0%, #f5f9ff 100%);
}

.profile-canvas-portfolio-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-canvas-portfolio-title {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.profile-canvas-portfolio-desc {
  margin: 0;
  color: #60718d;
  font-size: 13px;
  line-height: 1.7;
}

.profile-canvas-portfolio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.profile-canvas-portfolio-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: #ecf4ff;
  color: #3559b5;
  font-size: 12px;
  font-weight: 700;
}

.profile-canvas-portfolio-headline {
  color: #42516c;
  font-size: 13px;
  line-height: 1.7;
  white-space: pre-line;
}

.profile-canvas-portfolio-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-canvas-portfolio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(76, 121, 255, 0.16);
  background: #fff;
  color: #3559b5;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.profile-canvas-portfolio-link-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #4c79ff 0%, #3f69e8 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(76, 121, 255, 0.24);
}

.portfolio-edit-shell .write-canvas-panel {
  background: #fff;
}

.portfolio-edit-textarea {
  min-height: 160px !important;
}

.portfolio-edit-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-edit-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portfolio-edit-list-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  background: #f8fbff;
}

.portfolio-edit-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.portfolio-edit-list-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.portfolio-edit-list-copy strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.portfolio-edit-list-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.portfolio-list-view-btn,
.portfolio-list-delete-btn {
  align-self: flex-start;
}

.portfolio-edit-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(74, 98, 132, 0.10);
  background: #f8fbff;
}

.portfolio-item-description {
  min-height: 110px !important;
}

.portfolio-item-actions {
  display: flex;
  justify-content: flex-start;
}

.portfolio-item-editor {
  margin-top: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(74, 98, 132, 0.12);
  background: #f8fbff;
}

.portfolio-item-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.portfolio-item-editor-head strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.portfolio-item-editor-actions {
  display: flex;
  justify-content: flex-start;
}

.portfolio-item-add-row {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.portfolio-item-add-btn,
.portfolio-item-remove-btn {
  align-self: flex-start;
}

.project-broker-approve-btn,
.project-broker-reject-btn,
.project-broker-chat-link {
  min-width: 88px;
}

.project-broker-chat-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.project-broker-reject-btn {
  background: #fff;
  color: #d14d5f;
  border: 1px solid rgba(209, 77, 95, 0.24);
  box-shadow: none;
}

@media (max-width: 640px) {
  .project-broker-action-grid {
    grid-template-columns: 1fr;
  }
}

.project-detail-meta-box {
  position: relative;
  margin-top: 0;
  padding: 16px 16px 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(56, 96, 171, 0.10);
  box-shadow: 0 10px 24px rgba(31, 53, 91, 0.05);
  overflow: hidden;
}

.project-detail-meta-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #4d78da 0%, #77a7ff 100%);
}

.project-detail-meta-box.is-budget::before {
  background: linear-gradient(90deg, #4d78da 0%, #6d95f0 100%);
}

.project-detail-meta-box.is-summary::before {
  background: linear-gradient(90deg, #5a6f96 0%, #8a9cc0 100%);
}

.project-detail-meta-box.is-broker::before {
  background: linear-gradient(90deg, #2f9b83 0%, #6ec5af 100%);
}

.project-detail-meta-box strong {
  display: block;
  margin-bottom: 8px;
  color: #203761;
  font-size: 13px;
  font-weight: 700;
}

.project-detail-meta-box p {
  margin: 0;
  color: #31415f;
  font-size: 14px;
  line-height: 1.7;
}

.project-detail-meta-box p + p {
  margin-top: 6px;
}

.project-detail-card {
  overflow: hidden;
}

.project-detail-hero {
  margin: -20px -20px 0;
  border-radius: 0 0 26px 26px;
  box-shadow: none;
}

.project-detail-hero-top {
  align-items: flex-start;
}

.project-detail-hero-bottom {
  align-items: flex-end;
}

.project-detail-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.project-detail-author-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.project-detail-author-copy strong {
  color: #1f3153;
  font-size: 15px;
  font-weight: 800;
}

.project-detail-author-copy span {
  color: #71809c;
  font-size: 12px;
  font-weight: 600;
}

.project-detail-body-text {
  margin-top: 16px;
}

.project-detail-meta-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.project-type-cta-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(67, 101, 160, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  box-shadow: 0 10px 30px rgba(31, 53, 91, 0.06);
}

.project-type-cta-card.is-ad {
  background: linear-gradient(180deg, #ffffff 0%, #fff8f1 100%);
  border-color: rgba(219, 141, 61, 0.14);
}

.project-type-cta-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.project-type-cta-copy strong {
  color: #1f3458;
  font-size: 15px;
  font-weight: 800;
}

.project-type-cta-copy p {
  margin: 0;
  color: #60708c;
  font-size: 13px;
  line-height: 1.7;
}

.project-type-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.project-type-cta-form {
  margin: 0;
}

.project-type-cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b63c9 0%, #2f8ee5 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(59, 99, 201, 0.18);
}

.project-type-cta-link.is-secondary {
  background: #eef4ff;
  color: #2a4c88;
  box-shadow: none;
}

.project-type-cta-note {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: #7d8aa4;
  font-size: 12px;
  line-height: 1.6;
}

.project-type-cta-note.is-accent {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(246, 164, 59, 0.1);
  color: #8a5923;
  font-weight: 700;
}

.project-timeline-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid rgba(76, 104, 146, 0.10);
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fbff 0%, #fdfefe 100%);
}

.project-timeline-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.project-timeline-head strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.project-timeline-head span {
  color: #7a8ba5;
  font-size: 12px;
  line-height: 1.5;
}

.project-timeline-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-progress-actions-card {
  margin-top: 14px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(76, 104, 146, 0.10);
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.project-progress-actions-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.project-progress-actions-head strong {
  color: #22314f;
  font-size: 15px;
  font-weight: 800;
}

.project-progress-actions-head span {
  color: #7a8ba5;
  font-size: 12px;
  line-height: 1.6;
}

.project-progress-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-activity-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(76, 104, 146, 0.1);
  background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.project-activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.project-activity-head strong {
  font-size: 17px;
  color: #22365c;
}

.project-activity-head span {
  max-width: 210px;
  font-size: 12px;
  line-height: 1.5;
  color: #7e8cac;
  text-align: right;
}

.project-activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.project-activity-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid #e5ecf8;
  background: #f9fbff;
}

.project-activity-main {
  min-width: 0;
}

.project-activity-main strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: #213459;
}

.project-activity-main p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #5f6f93;
}

.project-activity-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.project-activity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #48638f;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.project-activity-note-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.project-activity-note {
  padding: 9px 11px;
  border-radius: 12px;
  background: #f2f6fd;
  color: #5d6d90;
  font-size: 12px;
  line-height: 1.45;
}

.project-settlement-card .project-settlement-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-settlement-form {
  display: grid;
  gap: 10px;
}

.agent-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.agent-stat-card {
  padding: 16px;
  border-radius: 20px;
  background: #f7f9ff;
  border: 1px solid rgba(43, 58, 103, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.agent-stat-card strong {
  font-size: 22px;
  line-height: 1;
  color: #24314f;
}

.agent-stat-card span {
  font-size: 12px;
  color: #66728f;
}

.agent-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-history-list {
  display: grid;
  gap: 12px;
}

.agent-history-card {
  padding: 16px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(43, 58, 103, 0.08);
  box-shadow: 0 10px 20px rgba(33, 44, 74, 0.05);
  display: grid;
  gap: 10px;
}

.agent-history-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.agent-history-top strong {
  color: #24314f;
  font-size: 15px;
  line-height: 1.45;
}

.agent-history-top span {
  flex-shrink: 0;
  color: #7f8aa7;
  font-size: 12px;
}

.agent-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-category-list {
  display: grid;
  gap: 12px;
}

.agent-category-card {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(43, 58, 103, 0.08);
  display: grid;
  gap: 10px;
}

.agent-category-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.agent-category-top strong {
  color: #24314f;
  font-size: 15px;
}

.agent-category-top span {
  color: #3754b4;
  font-size: 14px;
  font-weight: 800;
}

.agent-category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-activity-meta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 12px;
  color: #8897b4;
  text-align: right;
}

.project-progress-action-btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.project-progress-action-btn.is-danger {
  background: #fff;
  color: #d34b63;
  border: 1px solid rgba(225, 88, 104, 0.3);
}

.project-timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px 12px 10px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(76, 104, 146, 0.08);
}

.project-timeline-item.is-current {
  border-color: rgba(76, 121, 255, 0.22);
  box-shadow: 0 12px 24px rgba(76, 121, 255, 0.08);
}

.project-timeline-item.is-done .project-timeline-marker {
  background: linear-gradient(135deg, #4c79ff 0%, #6aa4ff 100%);
  color: #fff;
}

.project-timeline-item.is-current .project-timeline-marker {
  border-color: rgba(76, 121, 255, 0.34);
}

.project-timeline-marker {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef3fb;
  border: 1px solid rgba(76, 104, 146, 0.12);
  color: #5f7394;
  font-size: 12px;
  font-weight: 800;
}

.project-timeline-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-timeline-copy strong {
  color: #1f2c45;
  font-size: 14px;
  font-weight: 800;
}

.project-timeline-copy p {
  margin: 0;
  color: #62728f;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 480px) {
  .help-list-shell {
    padding: 14px 10px 18px;
  }

  .help-search-submit,
  .help-create-button {
    width: 100%;
  }

  .help-list-meta,
  .help-request-head,
  .help-request-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-request-head-top,
  .help-request-head-bottom {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
  }

  .help-request-title-block strong {
    font-size: 24px;
  }

  .help-request-summary-strip {
    grid-template-columns: 1fr;
  }

  .help-request-budget-badge,
  .help-request-budget-caption {
    white-space: normal;
  }

  .help-search-row,
  .help-list-meta.is-compact {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .help-list-meta-tags {
    justify-content: flex-start;
  }

  body.page-help .post-detail-page {
    padding: 14px 10px 18px;
  }
}

.project-connect-form {
  margin-top: 16px;
}

.project-connect-btn {
  width: 100%;
  min-height: 50px;
}

.project-match-section {
  margin-top: 14px;
}

.project-match-list {
  display: flex;
  flex-direction: column;
}

.project-match-card {
  padding: 15px;
  border-radius: 18px;
  border: 1px solid rgba(88, 108, 148, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: 0 10px 24px rgba(39, 61, 102, 0.05);
}

.project-match-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-match-user {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.project-match-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef4ff;
  flex-shrink: 0;
}

.project-match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-match-avatar span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #29457c;
  font-weight: 800;
}

.project-match-user-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-match-user-copy strong {
  color: #16223a;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.project-match-user-copy span {
  color: #7a88a6;
  font-size: 12px;
  font-weight: 700;
}

.project-match-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-left: 54px;
}

body.page-help .post-detail-page {
  margin: 0;
  min-height: calc(100dvh - 58px - 76px);
  padding: 18px 14px 24px;
  background:
    radial-gradient(circle at top left, rgba(214, 228, 255, 0.68), transparent 32%),
    linear-gradient(180deg, #f5f8ff 0%, #eef3fb 52%, #f7f9fd 100%);
}

body.page-help .post-detail-surface {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: transparent;
  padding: 0;
}

body.page-help .post-detail-card,
body.page-help .project-match-section {
  padding: 18px 18px 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(88, 108, 148, 0.08);
  box-shadow: 0 16px 30px rgba(39, 61, 102, 0.08);
}

body.page-help .post-detail-card {
  border-bottom: none;
}

body.page-help .post-author-info strong {
  color: #1b2740;
  font-size: 18px;
  letter-spacing: -0.02em;
}

body.page-help .post-author-sub {
  gap: 8px;
}

body.page-help .post-affiliation-chip {
  border-radius: 999px;
  background: rgba(217, 232, 255, 0.72);
  color: #395688;
  font-weight: 800;
}

body.page-help .post-detail-text {
  margin-top: 16px;
  color: #455573;
  font-size: 14px;
  line-height: 1.72;
}

body.page-help .project-detail-meta-box {
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid rgba(88, 108, 148, 0.08);
}

body.page-help .project-detail-meta-box strong {
  color: #22314f;
}

body.page-help .comment-section-head strong {
  color: #22314f;
  font-size: 17px;
}

.project-form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.help-request-ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.help-request-ad-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 247, 234, 0.92);
  color: #8a5923;
  font-size: 12px;
  font-weight: 700;
}

.help-request-ad-chip strong {
  font-weight: 800;
}

.help-request-ad-chip em {
  font-style: normal;
  color: #6f4b24;
  font-weight: 600;
}

.help-request-chip.is-ad-state {
  border: 1px solid transparent;
}

.help-request-chip.is-ad-state.is-live {
  background: rgba(217, 245, 229, 0.96);
  color: #19724d;
  border-color: rgba(25, 114, 77, 0.12);
}

.help-request-chip.is-ad-state.is-scheduled {
  background: rgba(232, 240, 255, 0.96);
  color: #315ea8;
  border-color: rgba(49, 94, 168, 0.12);
}

.help-request-chip.is-ad-state.is-ended {
  background: rgba(241, 244, 248, 0.96);
  color: #68778f;
  border-color: rgba(104, 119, 143, 0.12);
}

.help-request-chip.is-ad-state.is-always {
  background: rgba(255, 243, 227, 0.96);
  color: #9b6428;
  border-color: rgba(155, 100, 40, 0.12);
}

.project-detail-meta-box-ad {
  background: linear-gradient(180deg, #fffefb 0%, #fff7ea 100%);
  border-color: rgba(219, 141, 61, 0.18);
}

.project-ad-state-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.project-ad-state-badge.is-live {
  background: rgba(217, 245, 229, 0.96);
  color: #19724d;
}

.project-ad-state-badge.is-scheduled {
  background: rgba(232, 240, 255, 0.96);
  color: #315ea8;
}

.project-ad-state-badge.is-ended {
  background: rgba(241, 244, 248, 0.96);
  color: #68778f;
}

.project-ad-state-badge.is-always {
  background: rgba(255, 243, 227, 0.96);
  color: #9b6428;
}

.project-ad-reaction-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(227, 157, 79, 0.18);
  background: linear-gradient(180deg, #fffdfa 0%, #fff6ea 100%);
  box-shadow: 0 10px 24px rgba(110, 76, 36, 0.06);
}

.project-ad-reaction-copy strong {
  display: block;
  color: #6f4b24;
  font-size: 15px;
  font-weight: 800;
}

.project-ad-reaction-copy p {
  margin: 8px 0 0;
  color: #7d6447;
  font-size: 13px;
  line-height: 1.6;
}

.project-ad-reaction-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-ad-reaction-breakdown {
  color: #8a5923;
  font-size: 12px;
  font-weight: 700;
}

.project-ad-reaction-count,
.project-ad-reaction-reward {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #8a5923;
  font-size: 12px;
  font-weight: 700;
}

.project-ad-react-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #f6a43b 0%, #e48924 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(228, 137, 36, 0.22);
}

.project-ad-react-btn.is-done {
  background: #e6edf6;
  color: #6a7f9f;
  box-shadow: none;
}

.project-ad-react-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.project-ad-comment-list {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(227, 157, 79, 0.12);
}

.project-ad-comment-compose {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.project-ad-comment-textarea {
  width: 100%;
  min-height: 88px;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(223, 194, 160, 0.72);
  background: rgba(255, 255, 255, 0.92);
  color: #59452d;
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
}

.project-ad-comment-textarea::placeholder {
  color: #b08f67;
}

.project-ad-comment-submit {
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f1a035 0%, #d9831f 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 13px 16px;
  box-shadow: 0 10px 22px rgba(217, 131, 31, 0.18);
}

.project-ad-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.project-ad-comment-head strong {
  color: #6f4b24;
  font-size: 14px;
  font-weight: 800;
}

.project-ad-comment-head span {
  color: #9b7447;
  font-size: 12px;
  font-weight: 700;
}

.project-ad-comment-items {
  display: grid;
  gap: 10px;
}

.project-ad-comment-item {
  padding: 12px 13px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(227, 157, 79, 0.1);
}

.project-ad-comment-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-ad-comment-user strong {
  color: #5c4224;
  font-size: 13px;
  font-weight: 800;
}

.project-ad-comment-user span {
  color: #9b7447;
  font-size: 12px;
  font-weight: 700;
}

.project-ad-comment-item p {
  margin: 6px 0 0;
  color: #6f604e;
  font-size: 13px;
  line-height: 1.55;
}

.project-ad-comment-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
}

.project-ad-comment-links a {
  color: #915e27;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 640px) {
  .project-form-grid-2 {
    grid-template-columns: 1fr;
  }

  .project-ad-react-grid {
    grid-template-columns: 1fr;
  }

  .help-pagination-card {
    flex-direction: column;
    align-items: stretch;
  }

  .help-pagination-actions {
    width: 100%;
    justify-content: space-between;
  }

  .help-pagination-link {
    flex: 1;
  }
}

.help-list-shell .help-request-title-block strong {
  display: block;
  color: #1d2f4f;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.03em;
}

@media (max-width: 640px) {
  .help-list-shell .help-request-title-block strong {
    font-size: 24px;
  }
}

body.page-help .project-match-card {
  padding: 15px;
  border-top: none;
}

body.page-help .project-match-card:first-child {
  border-top: none;
}

body.page-help .project-broker-item-meta .post-affiliation-chip,
body.page-help .project-broker-candidate-item .post-affiliation-chip {
  padding: 3px 8px;
  font-size: 12px;
  line-height: 1.2;
}

body.page-help .project-broker-candidate-item {
  padding: 10px 12px;
  border-radius: 14px;
  gap: 8px;
}

body.page-help .project-broker-candidate-main {
  gap: 10px;
}

body.page-help .project-broker-candidate-copy {
  gap: 5px;
}

body.page-help .project-broker-candidate-copy strong {
  line-height: 1.25;
}

body.page-help .project-broker-item-links .profile-canvas-posts-link {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  writing-mode: horizontal-tb;
  word-break: keep-all;
  font-size: 12px;
}

.project-candidate-state-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 26px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.project-candidate-state-badge.is-proposed {
  background: rgba(218, 231, 255, 0.92);
  color: #30538f;
}

.project-candidate-state-badge.is-selected {
  background: #eef2ff;
  color: #34458f;
}

.project-candidate-state-badge.is-confirmed {
  background: #e9f8ee;
  color: #2d8c55;
}

.project-candidate-state-badge.is-rejected {
  background: rgba(255, 228, 232, 0.96);
  color: #b44557;
}

body.page-help .project-broker-candidate-link-row .compose-submit-btn.is-inline {
  height: 36px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  border-radius: 999px;
  white-space: nowrap;
}

body.page-help .project-broker-candidate-actions {
  min-width: 0;
  max-width: none;
  gap: 6px;
}

body.page-help .project-broker-candidate-actions .compose-submit-btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
  white-space: nowrap;
}

body.page-help .project-broker-item {
  padding: 14px;
}

body.page-help .project-broker-item-note {
  padding: 10px 12px;
  font-size: 12px;
}

@media (max-width: 420px) {
  .project-broker-candidate-main {
    align-items: flex-start;
  }

  .project-broker-candidate-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

body.page-help .project-match-avatar {
  background: linear-gradient(135deg, #d7e4f7 0%, #edf2fb 100%);
}

body.page-help .project-match-user-copy strong {
  color: #1b2740;
}

body.page-help .project-match-user-copy span {
  color: #7a88a6;
}
