:root {
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #111111;
  --muted: #6e6e73;
  --border: #e5e5e7;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  --rank-seed: #a16207;
  --rank-sprout: #84cc16;
  --rank-leaf: #65a30d;
  --rank-branch: #a16207;
  --rank-bud: #f97316;
  --rank-flower: #e11d48;
  --rank-tree: #16a34a;
  --rank-forest: #15803d;
  --rank-giant: #0f766e;
  --rank-nature: #2563eb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
}
header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(245, 245, 247, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav {
  max-width: 1100px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; color: var(--muted);
}
.brand { font-weight: 600; color: #111; letter-spacing: -0.2px; text-decoration: none; }
.nav-links { display: flex; gap: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: #111; }
main { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.hero {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 44px; box-shadow: var(--shadow);
}
.hero.hero-split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.hero-copy { max-width: 60%; }
.hero-legend { text-align: right; min-width: 320px; }
.hero-legend .tier-legend-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.hero-legend .tier-legend-title { font-weight: 600; margin-bottom: 8px; }
.hero-legend .muted { margin-top: 8px; }
.hero h1 { margin: 0 0 10px; font-size: 36px; letter-spacing: -0.6px; font-weight: 500; }
.hero p { margin: 0; color: var(--muted); font-weight: 300; }
.section { margin-top: 28px; }
.section h2 { margin: 0 0 10px; font-size: 22px; font-weight: 500; }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.choice-card {
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.choice-card:visited {
  color: var(--text);
}
.choice-card * {
  text-decoration: none;
  color: inherit;
}
.choice-card p {
  color: var(--muted);
}
.choice-card:hover {
  border-color: #d0d0d6;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.choice-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border); background: #fff; font-size: 14px;
}
textarea { min-height: 120px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 10px; border: 1px solid #111;
  background: #111; color: #fff; text-decoration: none; font-weight: 600;
  cursor: pointer;
}
.btn.ghost { background: #fff; color: #111; }
.inline { display: flex; gap: 10px; flex-wrap: wrap; }
.badge { padding: 6px 10px; border-radius: 999px; background: #f2f2f2; border: 1px solid var(--border); font-size: 12px; }
.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  background: transparent;
  border: 1px solid var(--border);
}
.rank-icon { width: 16px; height: 16px; object-fit: contain; }
.rank-inline { display: inline-flex; align-items: center; gap: 6px; }
.rank-seed,
.rank-sprout,
.rank-leaf,
.rank-branch,
.rank-bud,
.rank-flower,
.rank-tree,
.rank-forest,
.rank-giant,
.rank-nature {
  background: transparent;
}
.video-link {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  color: #111;
}
.video-link:hover { text-decoration: underline; }
.video-table {
  width: 100%;
  table-layout: fixed;
}
.video-col-type { width: 72px; }
.video-col-views { width: 90px; text-align: right; }
.video-col-date { width: 100px; text-align: right; }
.video-col-title {
  width: auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.video-table .video-col-title,
.video-table .video-col-title .video-link {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.range-wrap { position: relative; padding: 10px 0 20px; }
.range-input { width: 100%; appearance: none; height: 10px; border-radius: 999px; background: #f0f0f0; outline: none; border: 1px solid var(--border); }
.range-input::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #111; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; }
.range-input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #111; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); cursor: pointer; }
.range-bubble { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 10px; background: #111; color: #fff; font-weight: 700; font-size: 12px; pointer-events: none; white-space: nowrap; left: 50%; }
.tier-card { background: #fafafa; border: 1px solid var(--border); border-radius: 18px; padding: 16px; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; color: #fff; font-weight: 700; background: #111; }
.tier-label { font-size: 22px; font-weight: 800; margin: 6px 0 2px; }
.tier-desc { color: var(--muted); font-size: 13px; }
.tier-basis { color: var(--muted); font-size: 12px; margin-top: 6px; }
.tier-badge { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); color: #111; font-weight: 700; font-size: 12px; background:#f2f2f2; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.65); display: none; align-items: center; justify-content: center; padding: 20px; z-index: 999; backdrop-filter: blur(4px); }
.modal { background: #fff; border: 1px solid var(--border); border-radius: 16px; max-width: 720px; width: 100%; box-shadow: var(--shadow); padding: 18px 18px 10px 18px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal-title { font-weight: 800; font-size: 18px; color: #111; }
.modal-close { cursor: pointer; border: 1px solid var(--border); background: #f2f2f2; color: #111; border-radius: 10px; padding: 6px 10px; }
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th, .tier-table td { padding: 10px 8px; text-align: left; font-size: 13px; color: var(--muted); border-bottom: 1px solid #eee; }
.tier-table th { color: #111; font-weight: 700; }
.tier-dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 4px rgba(0,0,0,0.08); }
.list { display: grid; gap: 12px; }
.list-item { padding: 14px; border-radius: 12px; border: 1px solid var(--border); background: #fafafa; }
.muted { color: var(--muted); font-size: 13px; }
.notice { margin-top: 10px; color: #0b57d0; font-size: 13px; }
.error { color: #b3261e; font-size: 13px; }
.hidden { display: none; }
.profile-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}
.profile-top { display: grid; grid-template-columns: 180px 1fr 280px; gap: 18px; align-items: start; }
.profile-info { display: flex; flex-direction: column; gap: 6px; }
.profile-meta { display: flex; }
.meta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.avatar {
  width: 72px; height: 72px; border-radius: 18px;
  background: #ffe0e0; display: grid; place-items: center; font-weight: 700;
  color: #d72626; flex: 0 0 auto; overflow: hidden;
}
.avatar.square { width: 160px; height: 160px; border-radius: 16px; }
.avatar img { width: 100%; height: 100%; border-radius: 18px; object-fit: contain; display: block; background: #fff; }
.avatar.square img { border-radius: 16px; }
.avatar-text { font-weight: 700; }
.profile-name { font-size: 20px; font-weight: 600; margin-bottom: 4px; }
.profile-handle { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.profile-desc-wrap { margin-bottom: 8px; }
.profile-desc-wrap { cursor: pointer; }
.profile-desc-text {
  font-size: 13px; color: var(--muted);
  white-space: pre-line; line-height: 1.5; word-break: break-word;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  max-height: calc(1.5em * 4);
}
.profile-desc-wrap.is-expanded .profile-desc-text {
  display: block;
  max-height: none;
  overflow: visible;
}
.tier-inline { display: inline-flex; align-items: center; gap: 6px; }
.profile-tier-dot { width: 10px; height: 10px; border-radius: 50%; background: #6b7280; display: inline-block; }
.tooltip-target { position: relative; display: inline-flex; align-items: center; gap: 4px; }
.tooltip-target::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: 120%;
  min-width: 180px;
  max-width: 260px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #111;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-line;
  opacity: 0;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}
.tooltip-target:hover::after,
.tooltip-target:focus::after,
.tooltip-target.is-open::after {
  opacity: 1;
  transform: translateY(0);
}
.chip { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; background: #f7f7f7; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fafafa;
  height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.stat-item .label { margin: 0 0 6px; display: flex; align-items: center; gap: 6px; }
.stat-item strong { font-size: 18px; font-weight: 700; color: #111; line-height: 1.2; }
.stat-item .muted { font-size: 12px; font-weight: 400; color: var(--muted); }
.profile-meta .stat-item {
  padding: 10px 12px;
  height: 84px;
}
.profile-meta .stat-item .label { margin-bottom: 6px; }
.profile-meta .stat-item strong { font-size: 14px; }
.stat-item.tone {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7ff 100%);
  border-color: #e4e7ff;
  box-shadow: none;
  justify-content: flex-start;
  text-align: center;
  align-items: center;
}
.stat-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: #eef2ff;
}
.stat-metric { display: grid; gap: 6px; }
.stat-metric { justify-items: center; }
.stat-sub { display: flex; align-items: baseline; gap: 6px; font-size: 12px; color: var(--muted); }
.stat-sub span:last-child { color: #111; font-weight: 600; }
.stat-metric.no-sub { gap: 10px; align-content: start; }
.stat-item.tone .stat-metric strong { font-size: 20px; }
#totalViews { font-size: 24px; letter-spacing: -0.2px; }
.stat-sub-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.stat-sub-item { display: inline-flex; align-items: center; gap: 8px; }
.stat-sub-item span:last-child { color: #111; font-weight: 700; font-size: 14px; }
.stat-sub-divider { width: 1px; height: 14px; background: var(--border); }
.stat-sub-emoji { line-height: 1; }
.avg-inline { display: flex; align-items: center; gap: 10px; }
.avg-item { display: flex; align-items: center; gap: 6px; }
.avg-item strong { font-size: 14px; font-weight: 700; color: #111; }
.avg-divider { width: 1px; height: 18px; background: var(--border); }
.avg-icon { font-size: 12px; color: #9ca3af; line-height: 1; }
.avg-lines { display: grid; gap: 4px; }
.avg-line { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #111; }
.stat-item.emphasis { border-color: #ffd6d6; background: #fff5f5; }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs { display: flex; gap: 14px; border-bottom: 1px solid var(--border); padding: 12px 4px; margin-top: 18px; }
.tab { background: transparent; border: none; color: var(--muted); padding: 8px 2px; cursor: pointer; font-size: 14px; }
.tab.active { color: #111; border-bottom: 2px solid #ff0000; font-weight: 600; }
.alert {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px;
  background: #ff0033; color: #fff; display: flex; align-items: center; justify-content: space-between;
}
.mypage-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.stack { display: grid; gap: 16px; }
.card-title { font-weight: 600; margin-bottom: 10px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-table th, .price-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }

.ledger-direction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
}

.ledger-direction.credit::before,
.ledger-direction.debit::before {
  content: "";
}
.ledger-direction.credit {
  color: #2563eb;
}
.ledger-direction.debit {
  color: #ef4444;
}
.chip.red { border-color: #ffd6d6; background: #fff5f5; color: #c62828; }
.recent-videos-card { margin-top: 18px; }
.table-wrap { overflow-x: auto; }
.video-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
.video-table th, .video-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.video-table th { color: #111; font-weight: 600; }
.video-table td:nth-child(1) { white-space: nowrap; }
.video-table td:nth-child(2) { max-width: 460px; }
.video-table td:nth-child(3),
.video-table td:nth-child(4),
.video-table th:nth-child(3),
.video-table th:nth-child(4) { text-align: right; white-space: nowrap; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  color: #111;
  font-weight: 600;
  background: #fafafa;
}
.admin-table tbody tr.creator-row { cursor: pointer; }
.admin-table tbody tr.creator-row.is-active { background: #f8fafc; }
.creator-table {
  table-layout: fixed;
}
.creator-table th,
.creator-table td {
  padding: 12px 10px;
}
.creator-table .col-id { width: 56px; text-align: center; }
.creator-table .col-yt { width: 56px; text-align: center; }
.creator-table .col-name {
  text-align: center;
}
.creator-table .col-subs,
.creator-table .col-score,
.creator-table .col-rank,
.creator-table .col-date {
  text-align: center;
  white-space: nowrap;
}
.creator-table th:nth-child(2),
.creator-table th:nth-child(3),
.creator-table th:nth-child(5),
.creator-table th:nth-child(6),
.creator-table th:nth-child(7),
.creator-table th:nth-child(8),
.creator-table th:nth-child(9),
.creator-table th:nth-child(10) {
  text-align: center;
}
.creator-table th:nth-child(4),
.creator-table td.col-title {
  text-align: left;
}
.creator-table th:nth-child(4),
.creator-table td.col-title {
  width: 180px;
}
.creator-table .col-manage {
  text-align: center;
}
.creator-table .col-name,
.creator-table .col-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.yt-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f1f5f9;
  text-decoration: none;
  font-size: 16px;
}
.yt-link:hover {
  background: #fee2e2;
}
.manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.manage-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.manage-item.emphasis {
  border-color: #fca5a5;
  background: #fff1f2;
}
.plain-link {
  color: inherit;
  text-decoration: none;
  word-break: break-all;
}
.plain-link:hover {
  text-decoration: underline;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.settlement-card {
  margin-top: 16px;
}
.settlement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.settlement-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}
.settlement-label {
  font-size: 12px;
  color: var(--muted);
}
.settlement-value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #111;
}
.settlement-actions {
  margin-top: 6px;
}
.settlement-ledger {
  margin-top: 16px;
}
.settlement-ledger-title {
  font-weight: 600;
  margin-bottom: 8px;
}
.settlement-ledger .admin-table th,
.settlement-ledger .admin-table td {
  font-size: 12px;
}
.settlement-ledger .admin-table td:last-child,
.settlement-ledger .admin-table td:nth-child(3),
.settlement-ledger .admin-table td:nth-child(5) {
  text-align: right;
}
.settlement-form {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}
.form-grid {
  display: grid;
  gap: 12px;
}
.metric-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fafafa;
}
.metric-label { font-size: 12px; color: var(--muted); }
.metric-value { font-size: 16px; font-weight: 700; color: #111; margin-top: 6px; }
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.compare-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}
.analysis-block {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #f9fafb;
}
.analysis-title { font-weight: 600; margin-bottom: 10px; }
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
.analysis-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 12px;
}
.analysis-label { color: var(--muted); }
.analysis-value { font-weight: 700; color: #111; }
.analysis-text { font-size: 13px; color: #111; line-height: 1.5; }
.analysis-text p { margin: 6px 0; }
.admin-chat-layout { margin-top: 12px; }
.pager { display: inline-flex; align-items: center; gap: 10px; }
.chat-card h2 { margin: 0; font-size: 20px; font-weight: 600; }
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-modal { max-width: 980px; }
.chat-modal .chat-header { margin-bottom: 12px; }
.chat-modal .chat-layout { margin-top: 0; }
.chat-new {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.chat-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 14px;
  margin-top: 16px;
}
.chat-rooms {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  min-height: 320px;
}
.chat-room-list { display: grid; gap: 8px; }
.chat-room {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  background: #fafafa;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chat-room.active {
  border-color: #111;
  background: #fff;
}
.chat-room-title { font-weight: 600; font-size: 14px; }
.chat-room-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.chat-thread {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}

.cash-summary {
  display: grid;
  gap: 16px;
  align-items: start;
}

.cash-summary-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cash-summary-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.cash-summary-filters .divider {
  color: var(--border);
}

.cash-summary-filters .btn.active {
  background: #111;
  color: #fff;
  border-color: #111;
}

.cash-summary-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}

.flow-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: #f6f7fb;
  color: #111;
  font-weight: 600;
}

.flow-item span {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.flow-arrow {
  color: var(--muted);
  font-size: 14px;
}

.flow-divider {
  color: var(--border);
  margin: 0 6px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.toolbar-row .input,
.toolbar-row select {
  max-width: 180px;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
}

.th-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.cash-summary-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: nowrap;
}
.cash-summary-calendar {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cash-summary-calendar .input-date {
  max-width: 150px;
}
.cash-summary-calendar .summary-range {
  display: flex;
  align-items: center;
  gap: 8px;
}
.admin-cash-withdraw th,
.admin-cash-withdraw td,
.admin-cash-ledger th,
.admin-cash-ledger td {
  vertical-align: middle;
  padding: 10px 8px;
  text-align: center;
}
.admin-cash-withdraw,
.admin-cash-ledger {
  width: 100%;
  table-layout: fixed;
}
.admin-cash-ledger .col-date {
  width: 160px;
  white-space: nowrap;
  text-align: center;
  padding-left: 10px;
  padding-right: 16px;
}
.admin-cash-ledger .col-text {
  text-align: center;
  width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-cash-ledger .col-amount {
  text-align: center;
  width: 120px;
}
.admin-cash-ledger .col-status {
  width: 140px;
}
.admin-cash-withdraw .th-manage {
  width: 120px;
}
.admin-cash-withdraw th:first-child,
.admin-cash-withdraw td:first-child {
  width: 44px;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}
.admin-cash-ledger th:first-child,
.admin-cash-ledger td:first-child {
  width: 160px;
}
.admin-cash-withdraw .col-date {
  width: 140px;
  white-space: nowrap;
  text-align: center;
  padding-right: 12px;
}
.admin-cash-withdraw .col-withdraw-name {
  width: 95px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-cash-withdraw .col-withdraw-channel {
  width: 120px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-cash-withdraw .col-amount {
  width: 90px;
  text-align: center;
}
.admin-cash-withdraw .col-status {
  width: 110px;
}
.admin-cash-withdraw .th-manage {
  width: 70px;
  display: table-cell;
  text-align: center;
}
.admin-cash-withdraw-section .withdraw-toolbar {
  gap: 10px;
  align-items: center;
}
.admin-cash-withdraw-section .withdraw-toolbar .input {
  max-width: 200px;
}
.admin-cash-withdraw-section #withdrawSearch {
  max-width: 220px;
}
.admin-cash-withdraw-section #withdrawPageSize,
.admin-cash-withdraw-section #withdrawStatus {
  max-width: 140px;
}
.admin-cash-withdraw-section .input-date {
  max-width: 140px;
}
.admin-cash-withdraw-section #withdrawCount {
  margin-left: 2px;
}
.admin-cash-withdraw-section .is-bulk .input {
  max-width: 160px;
}
.admin-cash-withdraw th:first-child .inline {
  justify-content: center;
  align-items: center;
}
.admin-cash-withdraw th:first-child label {
  margin: 0;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-cash-withdraw td:first-child input[type="checkbox"] {
  display: block;
  margin: 0 auto;
}
.admin-cash-withdraw .withdraw-status {
  max-width: 110px;
  padding: 6px 10px;
}
.admin-cash-withdraw .withdraw-view {
  padding: 6px 12px;
  margin: 0 auto;
  display: block;
}
.admin-cash-withdraw td:last-child,
.admin-cash-withdraw th:last-child,
.admin-cash-ledger td:last-child,
.admin-cash-ledger th:last-child {
  text-align: center;
}
.admin-cash-withdraw thead,
.admin-cash-withdraw thead tr,
.admin-cash-withdraw thead th {
  border-bottom: 0;
}
.admin-cash-withdraw tbody tr:last-child td,
.admin-cash-ledger tbody tr:last-child td {
  border-bottom: 0;
}
.admin-cash-withdraw tbody tr:last-child {
  border-bottom: 0;
}
.admin-cash-withdraw {
  border-bottom: 0;
}
.settlement-lock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-size: 12px;
  font-weight: 600;
}
.pager-link {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  color: #111;
}
.pager-link:hover {
  text-decoration: underline;
}
.chat-thread-header { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 6px;
  background: #fafafa;
  border-radius: 12px;
}
.admin-chat-layout .chat-messages {
  max-height: 260px;
}
.chat-bubble {
  max-width: 70%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.5;
}
.chat-bubble-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-bubble.me {
  background: #111;
  color: #fff;
  margin-left: auto;
}
.chat-bubble.other {
  background: #fff;
  border: 1px solid var(--border);
  color: #111;
}
.chat-bubble.from-brand {
  margin-right: auto;
  background: #fff;
  border: 1px solid #e5e5e7;
}
.chat-bubble.from-creator {
  margin-left: auto;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
}
.chat-form {
  margin-top: 10px;
  display: flex;
  gap: 10px;
}
.chat-form .input { flex: 1; }
@media (max-width: 720px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-rooms { min-height: 180px; }
}
@media (max-width: 720px) {
  main { padding: 28px 18px 60px; }
  .hero { padding: 32px; }
  .hero.hero-split { flex-direction: column; }
  .hero-copy { max-width: 100%; }
  .hero-legend { text-align: left; width: 100%; }
  .hero-legend .tier-legend-items { justify-content: flex-start; }
  .profile-top { grid-template-columns: 1fr; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar.square { width: 100%; height: 180px; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
